@ckeditor/ckeditor5-track-changes 45.0.0-alpha.1 → 45.0.0-alpha.11

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 (302) hide show
  1. package/build/track-changes.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index.js +3 -3
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/lang/translations/ar.po +13 -13
  188. package/lang/translations/bg.po +5 -5
  189. package/lang/translations/bn.po +5 -5
  190. package/lang/translations/ca.po +5 -5
  191. package/lang/translations/cs.po +7 -7
  192. package/lang/translations/da.po +5 -5
  193. package/lang/translations/de.po +5 -5
  194. package/lang/translations/el.po +5 -5
  195. package/lang/translations/es.po +5 -5
  196. package/lang/translations/et.po +5 -5
  197. package/lang/translations/fi.po +5 -5
  198. package/lang/translations/fr.po +5 -5
  199. package/lang/translations/he.po +5 -5
  200. package/lang/translations/hi.po +5 -5
  201. package/lang/translations/hu.po +5 -5
  202. package/lang/translations/id.po +3 -3
  203. package/lang/translations/it.po +5 -5
  204. package/lang/translations/ja.po +3 -3
  205. package/lang/translations/ko.po +3 -3
  206. package/lang/translations/lt.po +7 -7
  207. package/lang/translations/lv.po +7 -7
  208. package/lang/translations/ms.po +3 -3
  209. package/lang/translations/nl.po +5 -5
  210. package/lang/translations/no.po +5 -5
  211. package/lang/translations/pl.po +7 -7
  212. package/lang/translations/pt-br.po +5 -5
  213. package/lang/translations/pt.po +5 -5
  214. package/lang/translations/ro.po +7 -7
  215. package/lang/translations/ru.po +7 -7
  216. package/lang/translations/sk.po +7 -7
  217. package/lang/translations/sr.po +7 -7
  218. package/lang/translations/sv.po +5 -5
  219. package/lang/translations/th.po +3 -3
  220. package/lang/translations/tr.po +5 -5
  221. package/lang/translations/uk.po +7 -7
  222. package/lang/translations/vi.po +3 -3
  223. package/lang/translations/zh-cn.po +3 -3
  224. package/lang/translations/zh.po +3 -3
  225. package/package.json +27 -27
  226. package/src/commands/acceptsuggestioncommand.js +1 -1
  227. package/src/commands/discardsuggestioncommand.js +1 -1
  228. package/src/commands/executeonallsuggestionscommand.js +1 -1
  229. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  230. package/src/commands/previewfinalcontentcommand.js +1 -1
  231. package/src/commands/trackchangescommand.js +1 -1
  232. package/src/index.js +1 -1
  233. package/src/integrations/aiassistant.js +1 -1
  234. package/src/integrations/alignment.js +1 -1
  235. package/src/integrations/basicstyles.js +1 -1
  236. package/src/integrations/blockquote.js +1 -1
  237. package/src/integrations/bookmark.js +1 -1
  238. package/src/integrations/casechange.js +1 -1
  239. package/src/integrations/ckbox.js +1 -1
  240. package/src/integrations/codeblock.js +1 -1
  241. package/src/integrations/comments.js +1 -1
  242. package/src/integrations/deletecommand.js +1 -1
  243. package/src/integrations/emoji.js +1 -1
  244. package/src/integrations/entercommand.js +1 -1
  245. package/src/integrations/findandreplace.js +1 -1
  246. package/src/integrations/font.js +1 -1
  247. package/src/integrations/formatpainter.js +1 -1
  248. package/src/integrations/heading.js +1 -1
  249. package/src/integrations/highlight.js +1 -1
  250. package/src/integrations/horizontalline.js +1 -1
  251. package/src/integrations/htmlembed.js +1 -1
  252. package/src/integrations/image.js +1 -1
  253. package/src/integrations/imagereplace.js +1 -1
  254. package/src/integrations/imagestyle.js +1 -1
  255. package/src/integrations/importword.js +1 -1
  256. package/src/integrations/indent.js +1 -1
  257. package/src/integrations/inputcommand.js +1 -1
  258. package/src/integrations/legacylist.js +1 -1
  259. package/src/integrations/legacylistproperties.js +1 -1
  260. package/src/integrations/link.js +1 -1
  261. package/src/integrations/list.js +1 -1
  262. package/src/integrations/listproperties.js +1 -1
  263. package/src/integrations/mediaembed.js +1 -1
  264. package/src/integrations/mention.js +1 -1
  265. package/src/integrations/mergefields.js +1 -1
  266. package/src/integrations/multilevellist.js +1 -1
  267. package/src/integrations/pagebreak.js +1 -1
  268. package/src/integrations/paragraph.js +1 -1
  269. package/src/integrations/removeformat.js +1 -1
  270. package/src/integrations/replacesourcecommand.js +1 -1
  271. package/src/integrations/restrictededitingmode.js +1 -1
  272. package/src/integrations/shiftentercommand.js +1 -1
  273. package/src/integrations/standardeditingmode.js +1 -1
  274. package/src/integrations/style.js +1 -1
  275. package/src/integrations/table.js +1 -1
  276. package/src/integrations/tablecaption.js +1 -1
  277. package/src/integrations/tableclipboard.js +1 -1
  278. package/src/integrations/tablecolumnresize.js +1 -1
  279. package/src/integrations/tableheadings.js +1 -1
  280. package/src/integrations/tablelayout.js +1 -1
  281. package/src/integrations/tablemergesplit.js +1 -1
  282. package/src/integrations/tableofcontents.js +1 -1
  283. package/src/integrations/tableproperties.js +1 -1
  284. package/src/integrations/template.js +1 -1
  285. package/src/integrations/title.js +1 -1
  286. package/src/integrations/undo.js +1 -1
  287. package/src/integrations/uploadcare.js +1 -1
  288. package/src/integrations/utils.js +1 -1
  289. package/src/suggestion.js +2 -2
  290. package/src/suggestiondescriptionfactory.js +1 -1
  291. package/src/trackchanges.js +1 -1
  292. package/src/trackchangesdata.js +1 -1
  293. package/src/trackchangesediting.js +1 -1
  294. package/src/trackchangespreview.js +1 -1
  295. package/src/trackchangesui.js +1 -1
  296. package/src/ui/suggestioncontroller.js +2 -2
  297. package/src/ui/view/basesuggestionthreadview.js +1 -1
  298. package/src/ui/view/suggestionthreadview.js +1 -1
  299. package/src/ui/view/suggestionview.js +1 -1
  300. package/src/ui/view/trackchangespreviewview.js +1 -1
  301. package/src/utils/common-translations.js +1 -1
  302. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x59a388,Plugin as _0x4a939c,PendingActions as _0x4edae6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x103cc1,ObservableMixin as _0xf22df1,uid as _0x3028ef,priorities as _0x3495c0,insertToPriorityArray as _0x57e990,logWarning as _0x4e8b27,getEnvKeystrokeText as _0x519021,FocusTracker as _0x36e12a,KeystrokeHandler as _0x183cc3,Collection as _0x3cfb1e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x461925,IconCancel as _0x384952,IconTrackChanges as _0x3eb7bd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4ee2d5,View as _0x5a07b3,ViewCollection as _0x1ea32f,FocusCycler as _0x4c7df7,ViewModel as _0x3c69f8,createDropdown as _0x2cb513,SplitButtonView as _0x534307,addListToDropdown as _0x4091e6,MenuBarMenuView as _0x27e532,MenuBarMenuListView as _0x4fd26b,ListSeparatorView as _0x2c257c,MenuBarMenuListItemView as _0x58a428,MenuBarMenuListItemButtonView as _0x45b08c,BodyCollection as _0x5d80e0,Dialog as _0x4563b9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xfd6374,hashObject as _0x19fc01,surroundingMarkersDetector as _0x9e4f30,FOCUS_ANNOTATION_KEYSTROKE as _0x1f6976,AriaDescriptionView as _0x3cd32,setupThreadKeyboardNavigation as _0x4c32b0,trimHtml as ti,UserView as _0x1107a0,LateFocusButtonView as _0x4849c4,getDateTimeFormatter as _0x5888cd,getAllMarkersDomElementsSorted as _0x131c42,sanitizeEditorConfig as _0x3a86d7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x42328e,LiveRange as _0x21fe73,LivePosition as _0x457f50,DowncastWriter as _0x1e3850}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x408c7e,toWidget as _0x4fa0c5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59462c,set as _0x3236c6,isEqual as _0x19b3c4,unset as _0x117971,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2009ac,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x225b27}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4a3ddf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x59a388{['_enabledCommands'];constructor(_0x3b7e05,_0x2f9402){super(_0x3b7e05),this['_enabledCommands']=_0x2f9402,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x5ac9be of this['editor']['commands']['commands']())_0x5ac9be['affectsData']&&!this['_enabledCommands']['has'](_0x5ac9be)&&_0x5ac9be['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xbb05c7 of this['editor']['commands']['commands']())_0xbb05c7['affectsData']&&!this['_enabledCommands']['has'](_0xbb05c7)&&_0xbb05c7['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x59a388{['_suggestions'];constructor(_0x141f3f,_0x38a1f0){super(_0x141f3f),this['_suggestions']=_0x38a1f0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xed86b){const _0x27ceb0=this['_suggestions']['get'](_0xed86b);if(!_0x27ceb0)throw new _0x103cc1('track-changes-accept-suggestion-not-found',this);const _0x4f6cf6=_0x27ceb0['getRanges']();this['editor']['model']['canEditAt'](_0x4f6cf6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x27ceb0);}}class R extends _0x59a388{['_suggestions'];constructor(_0x41f478,_0x26e3ad){super(_0x41f478),this['_suggestions']=_0x26e3ad,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x123176){const _0x19f778=this['_suggestions']['get'](_0x123176);if(!_0x19f778)throw new _0x103cc1('track-changes-discard-suggestion-not-found',this);const _0x3798ba=_0x19f778['getRanges']();this['editor']['model']['canEditAt'](_0x3798ba)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x19f778);}}function ls(_0x26364d,_0x4bbf45){let _0x32dbdb='';return _0x32dbdb+=_0x26364d['split']('*')['map']((_0xf571a3,_0x16ddbe)=>_0x16ddbe%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xf571a3)+'</span>':nn(_0xf571a3))['join'](''),_0x4bbf45&&(_0x32dbdb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4bbf45['value']+'\x22\x20title=\x22'+_0x4bbf45['title']+'\x22></span>'),_0x32dbdb;}function nn(_0x1e9c87){const _0x33fb29=document['createElement']('span');return _0x33fb29['innerText']=_0x1e9c87,_0x33fb29['innerHTML'];}function ts(_0x381279){return _0x381279['sort']((_0x23235f,_0x26483b)=>'deletion'==_0x23235f['type']&&'deletion'!=_0x26483b['type']?-0x1:'deletion'!=_0x23235f['type']&&'deletion'==_0x26483b['type']?0x1:0x0);}function to(_0x2355e3,_0x182347){let _0x3422d6,_0x2ae241=0x0;const _0x3dd169=[],_0x1d3351=_0x182347['schema'];for(;_0x2ae241<_0x2355e3['length'];){const _0x3d36f7=_0x2355e3[_0x2ae241],_0x4c0ae4=_0x2355e3[_0x2ae241+0x1];_0x3422d6||(_0x3422d6=_0x182347['createPositionBefore'](_0x3d36f7)),on(_0x182347,_0x3d36f7,_0x4c0ae4)||(_0x3dd169['push'](_0x182347['createRange'](_0x3422d6,_0x1d3351['isObject'](_0x3d36f7)?_0x182347['createPositionAfter'](_0x3d36f7):_0x182347['createPositionAt'](_0x3d36f7,'end'))),_0x3422d6=null),_0x2ae241++;}return _0x3dd169;}function on(_0x483d0c,_0x4334ec,_0x57f341){if(!_0x57f341)return!0x1;const _0xe04f44=_0x483d0c['createPositionAfter'](_0x4334ec),_0x4da05b=_0x483d0c['createPositionBefore'](_0x57f341);return _0xe04f44['isTouching'](_0x4da05b);}function rs(_0x42ae1f,_0x18f103,_0x44b86f){for(;_0x44b86f['length'];){const _0x213903=_0x44b86f['splice'](0x0,0x64);_0x42ae1f['change'](()=>{for(const _0x249000 of _0x213903)_0x249000['isInContent']&&_0x18f103['execute'](_0x249000['id']);});}}class x extends _0x59a388{['_command'];['_suggestions'];constructor(_0x2c9c77,_0x3e7cbb,_0x282519){super(_0x2c9c77),this['_command']=_0x3e7cbb,this['_suggestions']=_0x282519,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4b5476=Array['from'](this['_suggestions']['values']())['some'](_0x4c66bd=>_0x4c66bd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4b5476;}['execute'](){const _0x4aa2d1=ts(Array['from'](this['_suggestions']['values']()));for(const _0x38e1e6 of _0x4aa2d1){const _0x47e29e=_0x38e1e6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x47e29e))return;}rs(this['editor']['model'],this['_command'],_0x4aa2d1);}}class E extends _0x59a388{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x205e33,_0x3ec3bf,_0xfa40e9){super(_0x205e33),this['_command']=_0x3ec3bf,this['_suggestions']=_0xfa40e9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5dc614=this['editor']['model']['document']['selection'],_0x29484b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x42a6d1,_0x47cc2a){const _0x9c282=Array['from'](_0x42a6d1['getRanges']()),_0xb94398=new Set();for(const _0x2da313 of _0x47cc2a)if(_0x2da313['isInContent']){for(const _0x35b28e of _0x9c282)for(const _0xc57144 of _0x2da313['getRanges']())(_0x35b28e['isIntersecting'](_0xc57144)||_0x42a6d1['isCollapsed']&&!_0x2da313['isMultiRange']&&_0x2da313['next']&&_0xc57144['end']['isTouching'](_0x35b28e['start']))&&_0xb94398['add'](_0x2da313);}return _0xb94398;}(_0x5dc614,_0x29484b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x6fe6cf=ts(Array['from'](this['_selectedSuggestions']));for(const _0x77577 of _0x6fe6cf){const _0x314752=_0x77577['getRanges']();if(!this['editor']['model']['canEditAt'](_0x314752))return;}rs(this['editor']['model'],this['_command'],_0x6fe6cf);}}class o extends/* #__PURE__ -- @preserve */
24
- _0xf22df1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2a28dc,_0xc2903f){super(),this['id']=_0xc2903f['id'],this['type']=_0xc2903f['type'],this['subType']=_0xc2903f['subType']||null,this['author']=_0xc2903f['author'],this['creator']=_0xc2903f['creator']||_0xc2903f['author'],this['isExternal']=Boolean(_0xc2903f['attributes']&&_0xc2903f['attributes']['@external']),this['data']=null,this['_model']=_0x2a28dc,this['_onAccept']=_0xc2903f['onAccept'],this['_onDiscard']=_0xc2903f['onDiscard'],this['_onAttributesChange']=_0xc2903f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc2903f['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x78cfb7=this;for(;_0x78cfb7['previous'];)_0x78cfb7=_0x78cfb7['previous'];return _0x78cfb7;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0xda3bbf){this['_markerNames']['add'](_0xda3bbf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x13726b=>this['_model']['markers']['get'](_0x13726b))['filter'](_0x28737b=>_0x28737b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x52a1d5=>{for(const _0x20619a of this['getMarkers']())_0x52a1d5['removeMarker'](_0x20619a);}),this['_markerNames']['clear']();}['removeMarker'](_0x33b0f2){this['_model']['change'](_0x41fb74=>{_0x41fb74['removeMarker'](_0x33b0f2);}),this['_markerNames']['delete'](_0x33b0f2);}['addRange'](_0x48fa62){const _0x2217b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2217b1),this['_model']['change'](_0x2ceb9d=>{_0x2ceb9d['addMarker'](_0x2217b1,{'range':_0x48fa62,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1d4687){for(const _0x32756a of this['getRanges']())if(_0x32756a['isIntersecting'](_0x1d4687))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x50df20=>_0x50df20['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x7bad83,_0x2cbeb2)=>[..._0x7bad83,..._0x2cbeb2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4a6ec7=this['getRanges']();if(0x1!=_0x4a6ec7['length'])return null;const _0x13071c=_0x4a6ec7[0x0],_0x5e216e=_0x13071c['start']['nodeAfter'],_0xb5961e=_0x13071c['end']['nodeBefore'];return _0x5e216e instanceof _0x42328e?_0x5e216e!=_0xb5961e?null:_0x5e216e:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0xb0d6e8=[];let _0x3f0fa5=this['head'];for(;_0x3f0fa5;)_0xb0d6e8['push'](_0x3f0fa5),_0x3f0fa5=_0x3f0fa5['next'];return _0xb0d6e8;}['setAttribute'](_0x493742,_0x16031b){const _0x41813a=_0x59462c(this['attributes']);_0x3236c6(_0x41813a,_0x493742,_0x16031b),_0x19b3c4(_0x41813a,this['attributes'])||(this['attributes']=_0x41813a,this['_onAttributesChange'](_0x41813a));}['removeAttribute'](_0x4f948c){const _0x270bdc=_0x59462c(this['attributes']);_0x117971(_0x270bdc,_0x4f948c),_0x19b3c4(_0x270bdc,this['attributes'])||(this['attributes']=_0x270bdc,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x3028ef()['substr'](0x1,0x5);}}function c(_0x6af6e5,_0x34183c,_0x41bba0){const _0x3706ca=_0x6af6e5['t'],t=_0x6af6e5['t'];switch(_0x34183c){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x41bba0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41bba0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41bba0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41bba0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41bba0);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x41bba0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41bba0);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x41bba0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41bba0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41bba0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41bba0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41bba0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41bba0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x41bba0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41bba0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41bba0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41bba0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41bba0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41bba0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41bba0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41bba0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41bba0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41bba0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41bba0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x41bba0);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x41bba0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x41bba0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x41bba0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41bba0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41bba0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41bba0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41bba0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41bba0);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x41bba0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41bba0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41bba0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41bba0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41bba0);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x41bba0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41bba0);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x41bba0);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x41bba0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41bba0);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x41bba0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41bba0);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x41bba0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41bba0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41bba0);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x41bba0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x41bba0);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x3706ca({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x41bba0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3706ca({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x41bba0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x41bba0);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x41bba0);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x41bba0);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x41bba0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34183c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x281e9a,_0x57d437){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x281e9a,this['_locale']=_0x57d437;}['getDescriptions'](_0x7ac383){const _0x1324fd=[],_0x3e1de=new Set(),_0xba58e6=new Set();for(let _0x511895=0x0;_0x511895<_0x7ac383['length'];_0x511895++){const _0xf7364f=_0x7ac383[_0x511895];if(!_0xf7364f['isInContent'])continue;const _0x181d39=this['_handleCustomCallbackDescription'](_0xf7364f);if(_0x181d39){if(null!=_0xf7364f['subType']){if(_0x3e1de['has'](_0xf7364f['subType']))continue;_0x3e1de['add'](_0xf7364f['subType']);}_0x1324fd['push'](_0x181d39);}else{if('attribute'!=_0xf7364f['type'])'insertion'!=_0xf7364f['type']&&'deletion'!=_0xf7364f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1324fd,_0xf7364f,_0x7ac383[_0x511895+0x1]);else{const _0x5ae4e9=_0xf7364f['data']['key'];if(_0xba58e6['has'](_0x5ae4e9))continue;_0xba58e6['add'](_0xf7364f['data']['key']),_0x5ae4e9==u?this['_handleRenameSuggestionDescription'](_0x1324fd,_0xf7364f):this['_handleAttributeSuggestionDescription'](_0x1324fd,_0xf7364f);}}}return this['_resolveDescriptionItems'](_0x1324fd);}['registerDescriptionCallback'](_0x3dccd2){this['_customCallbacks']['push'](_0x3dccd2);}['registerElementLabel'](_0x33775b,_0xafd43a,_0x3e5938=_0x3495c0['normal']){'function'==typeof _0x33775b?_0x57e990(this['_itemLabelsCallbacks'],{'matchingCallback':_0x33775b,'label':_0xafd43a,'priority':_0x3e5938}):this['_itemLabels']['set'](_0x33775b,_0xafd43a);}['registerAttributeLabel'](_0x4d6a54,_0xd98b16){this['_attributeLabels']['set'](_0x4d6a54,_0xd98b16);}['getItemLabel'](_0x1594c9,_0x399489=0x1){let _0x9b74c5;for(const _0x5e8047 of this['_itemLabelsCallbacks'])if(_0x5e8047['matchingCallback'](_0x1594c9)){_0x9b74c5=_0x5e8047['label'];break;}return _0x9b74c5||(_0x9b74c5=this['_itemLabels']['get'](_0x1594c9['name'])),_0x9b74c5?_0x9b74c5(_0x399489):0x1!==_0x399489?_0x399489+'\x20'+_0x1594c9['name']+'s':''+_0x1594c9['name'];}['_addDescriptionItems'](_0x36a17f,_0x389edf){const _0x3de8d9=_0x389edf['getFirstRange']()['getWalker'](),_0x5e47d7='insertion'==_0x389edf['type']?'add':'remove';for(const _0x2c3f46 of _0x3de8d9){const _0x483356=_0x2c3f46['item'],_0x454d1f=_0x36a17f[_0x36a17f['length']-0x1];if(_0x483356['is']('$textProxy'))_0x454d1f&&_0x454d1f['type']['indexOf']('Container')>-0x1&&_0x36a17f['pop'](),_0x454d1f&&'text'==_0x454d1f['type']?_0x454d1f[_0x5e47d7]+=_0x483356['data']:_0x36a17f['push']({'type':'text','add':'add'==_0x5e47d7?_0x483356['data']:'','remove':'remove'==_0x5e47d7?_0x483356['data']:''});else{if(this['_schema']['isObject'](_0x483356)){const _0x2891e6=_0x483356;if(_0x454d1f&&_0x454d1f['type']['indexOf']('Container')>-0x1&&_0x36a17f['pop'](),'elementEnd'==_0x2c3f46['type'])continue;_0x454d1f&&_0x454d1f['type']==_0x5e47d7+'Object'&&_0x454d1f['element']['name']==_0x2891e6['name']?_0x454d1f['quantity']++:_0x36a17f['push']({'type':_0x5e47d7+'Object','element':_0x2891e6,'quantity':0x1}),_0x3de8d9['skip'](_0x4423a5=>!('elementEnd'==_0x4423a5['type']&&_0x4423a5['item']==_0x483356));}else{if(this['_schema']['checkChild'](_0x483356,'$text')||_0x483356['is']('element','softBreak')){const _0x57f12d=_0x483356;if('add'==_0x5e47d7&&'elementStart'==_0x2c3f46['type']||'remove'==_0x5e47d7&&'elementEnd'==_0x2c3f46['type'])continue;if(_0x454d1f&&-0x1==_0x454d1f['type']['indexOf']('Container')){'text'==_0x454d1f['type']&&(_0x454d1f[_0x5e47d7]+='\x0a');continue;}let _0x26d04e;if(_0x26d04e='add'==_0x5e47d7?_0x57f12d['nextSibling']&&!this['_schema']['isObject'](_0x57f12d['nextSibling'])?_0x57f12d['nextSibling']:null:_0x57f12d['previousSibling']&&!this['_schema']['isObject'](_0x57f12d['previousSibling'])?_0x57f12d['previousSibling']:null,_0x57f12d['isEmpty']||_0x26d04e&&_0x26d04e['isEmpty']){const _0x3da5d6=_0x26d04e&&_0x26d04e['isEmpty']?_0x26d04e:_0x57f12d;_0x454d1f&&_0x454d1f['type']==_0x5e47d7+'EmptyContainer'&&_0x454d1f['element']['name']==_0x3da5d6['name']?_0x454d1f['quantity']++:_0x36a17f['push']({'type':_0x5e47d7+'EmptyContainer','element':_0x3da5d6,'quantity':0x1});}else _0x36a17f['push']({'type':_0x5e47d7+'Container','element':_0x57f12d});}}}}}['_resolveDescriptionItems'](_0x3aec3a){const _0x275de0=this['_locale'],_0x3eb58c=[],_0x1db1f1=[],_0x2098ff=[];for(const _0x4b3059 of _0x3aec3a)switch(_0x4b3059['type']){case'text':if(_0x4b3059['add']=_0x4b3059['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4b3059['remove']=_0x4b3059['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4b3059['add']&&''!=_0x4b3059['remove']){_0x3eb58c['push']({'type':'replace','content':c(_0x275de0,'REPLACE_TEXT',['\x22'+_0x4b3059['remove']+'\x22','\x22'+_0x4b3059['add']+'\x22'])});continue;}if(null!=_0x4b3059['add']['match'](/^ +$/)){_0x3eb58c['push']({'type':'insertion','content':c(_0x275de0,'*Insert:*\x20%0',c(_0x275de0,'ELEMENT_SPACE',_0x4b3059['add']['length']))});continue;}if(null!=_0x4b3059['remove']['match'](/^ +$/)){_0x3eb58c['push']({'type':'deletion','content':c(_0x275de0,'*Remove:*\x20%0',c(_0x275de0,'ELEMENT_SPACE',_0x4b3059['remove']['length']))});continue;}if(''!=_0x4b3059['add']){_0x3eb58c['push']({'type':'insertion','content':c(_0x275de0,'*Insert:*\x20%0','\x22'+_0x4b3059['add']+'\x22')});continue;}_0x3eb58c['push']({'type':'deletion','content':c(_0x275de0,'*Remove:*\x20%0','\x22'+_0x4b3059['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3eb58c['push']({'type':'insertion','content':c(_0x275de0,'*Insert:*\x20%0',this['getItemLabel'](_0x4b3059['element'],_0x4b3059['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3eb58c['push']({'type':'deletion','content':c(_0x275de0,'*Remove:*\x20%0',this['getItemLabel'](_0x4b3059['element'],_0x4b3059['quantity']))});continue;case'addContainer':_0x3eb58c['push']({'type':'insertion','content':c(_0x275de0,'*Split:*\x20%0',this['getItemLabel'](_0x4b3059['element'],_0x4b3059['quantity']))});continue;case'removeContainer':_0x3eb58c['push']({'type':'deletion','content':c(_0x275de0,'*Merge:*\x20%0',this['getItemLabel'](_0x4b3059['element'],_0x4b3059['quantity']))});continue;case'addFormat':_0x1db1f1['push'](_0x4b3059['key']);continue;case'removeFormat':_0x2098ff['push'](_0x4b3059['key']);continue;default:_0x3eb58c['push'](_0x4b3059);}if(_0x1db1f1['length']){const _0x438847=_0x1db1f1['map'](_0x13ce05=>this['_attributeLabels']['has'](_0x13ce05)?this['_attributeLabels']['get'](_0x13ce05):_0x13ce05)['join'](',\x20');_0x3eb58c['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x438847)});}if(_0x2098ff['length']){const _0xb2ce21=_0x2098ff['map'](_0x56fe52=>this['_attributeLabels']['has'](_0x56fe52)?this['_attributeLabels']['get'](_0x56fe52):_0x56fe52)['join'](',\x20');_0x3eb58c['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xb2ce21)});}return _0x3eb58c;}['_handleCustomCallbackDescription'](_0x208402){for(const _0x3dcc87 of this['_customCallbacks']){const _0x4ad100=_0x3dcc87(_0x208402);if(_0x4ad100&&'type'in _0x4ad100)return _0x4ad100;}}['_handleAttributeSuggestionDescription'](_0x4ff68b,_0x57ab62){const _0x579e69=_0x57ab62['data'],_0x548f73=void 0x0===_0x579e69['newValue']?'removeFormat':'addFormat';_0x4ff68b['push']({'type':_0x548f73,'key':_0x579e69['key']});}['_handleRenameSuggestionDescription'](_0x397bc4,_0x4d4fde){_0x397bc4['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4d4fde['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12b638,_0x51d1a1,_0x18dd04){if(this['_addDescriptionItems'](_0x12b638,_0x51d1a1),_0x18dd04&&_0x18dd04['getFirstRange']()&&!_0x51d1a1['getFirstRange']()['end']['isEqual'](_0x18dd04['getFirstRange']()['start'])){const _0x343ac3=_0x12b638[_0x12b638['length']-0x1],_0x373722='insertion'==_0x51d1a1['type']?'add':'remove';_0x343ac3&&'text'==_0x343ac3['type']&&(_0x343ac3[_0x373722]+='\x0a');}}}class U extends _0x4a939c{['afterInit'](){const _0x1c3e5b=this['editor'],_0x35925f=_0x1c3e5b['plugins']['get']('TrackChangesEditing');_0x1c3e5b['commands']['get']('showAIAssistant')&&_0x35925f['enableCommand']('showAIAssistant');}}class V extends _0x4a939c{['afterInit'](){const _0x445141=this['editor'],_0x577060=_0x445141['locale'];if(!_0x445141['plugins']['has']('AlignmentEditing'))return;const _0x4d180d=_0x445141['plugins']['get']('TrackChangesEditing');_0x4d180d['enableDefaultAttributesIntegration']('alignment'),_0x4d180d['registerBlockAttribute']('alignment'),_0x4d180d['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x577060,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10b5be=this['editor'],_0x57ae15=_0x10b5be['locale'];_0x10b5be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e4bbe=>{if('formatBlock'!=_0x7e4bbe['type'])return;const {data:_0xae9f8f}=_0x7e4bbe;if(_0xae9f8f&&'alignment'==_0xae9f8f['commandName']){const _0x19208f=_0xae9f8f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x57ae15,'*Format:*\x20%0',function(_0x35a0a6){switch(_0x35a0a6){case'left':return c(_0x57ae15,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x57ae15,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x57ae15,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x57ae15,'FORMAT_JUSTIFY_TEXT');}}(_0x19208f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x4a939c{['afterInit'](){const _0x122357=this['editor'],_0x44f6b9=_0x122357['plugins']['get']('TrackChangesEditing'),_0x2568d5=_0x122357['locale'];for(const _0x45cf2a of Zt){if(!_0x122357['plugins']['has'](_0x45cf2a))continue;const _0x4f573f=_0x45cf2a['slice'](0x0,-0x7)['toLowerCase'](),_0x1aa5a6='FORMAT_'+_0x4f573f['toUpperCase']();_0x44f6b9['enableDefaultAttributesIntegration'](_0x4f573f),_0x44f6b9['registerInlineAttribute'](_0x4f573f),_0x44f6b9['descriptionFactory']['registerAttributeLabel'](_0x4f573f,c(_0x2568d5,_0x1aa5a6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1951e4=this['editor'],_0x3836cb=_0x1951e4['locale'],_0xef7f08=_0x1951e4['plugins']['get']('TrackChangesEditing');function _0x100bc2(_0x5ce928,_0x3b28d8){_0xef7f08['descriptionFactory']['registerDescriptionCallback'](_0xd5a158=>{if('formatInline'!=_0xd5a158['type'])return;const {data:_0x187b1d}=_0xd5a158;return _0x187b1d&&_0x187b1d['commandName']===_0x5ce928?_0x187b1d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3836cb,'*Format:*\x20%0',_0x3b28d8)}:{'type':'format','content':c(_0x3836cb,'*Remove\x20format:*\x20%0',_0x3b28d8)}:void 0x0;});}_0x100bc2('bold',c(_0x3836cb,'FORMAT_BOLD')),_0x100bc2('italic',c(_0x3836cb,'FORMAT_ITALIC')),_0x100bc2('underline',c(_0x3836cb,'FORMAT_UNDERLINE')),_0x100bc2('code',c(_0x3836cb,'FORMAT_CODE')),_0x100bc2('strikethrough',c(_0x3836cb,'FORMAT_STRIKETHROUGH')),_0x100bc2('subscript',c(_0x3836cb,'FORMAT_SUBSCRIPT')),_0x100bc2('superscript',c(_0x3836cb,'FORMAT_SUPERSCRIPT'));}}class G extends _0x4a939c{['afterInit'](){const _0x441252=this['editor'],_0x3c7a5d=_0x441252['locale'];if(!_0x441252['plugins']['has']('BlockQuoteEditing'))return;const _0x935f96=_0x441252['plugins']['get']('TrackChangesEditing'),_0x5f1687=this['editor']['commands']['get']('blockQuote');_0x935f96['enableCommand']('blockQuote',(_0x47dda7,_0x24221f={})=>{const _0xac035a=this['editor']['model']['document']['selection'],_0x481a90=_0x24221f&&void 0x0!==_0x24221f['forceValue']?_0x24221f['forceValue']:!_0x5f1687['value'];let _0x3629ed=[];if(_0x481a90){const _0x3caa49=Array['from'](_0xac035a['getSelectedBlocks']())['filter'](_0x4e1692=>oo(_0x4e1692)||function(_0x200f6f,_0x21505e){const _0x4ef591=_0x21505e['checkChild'](_0x200f6f['parent'],'blockQuote'),_0x411c36=_0x21505e['checkChild'](['$root','blockQuote'],_0x200f6f);return _0x4ef591&&_0x411c36;}(_0x4e1692,this['editor']['model']['schema']));_0x3629ed=to(_0x3caa49,_0x441252['model']);}else{const _0x4a5d94=Array['from'](_0xac035a['getSelectedBlocks']())['filter'](_0x389621=>oo(_0x389621));_0x3629ed=to(_0x4a5d94,_0x441252['model']);}_0x441252['model']['change'](()=>{for(const _0x2f8b74 of _0x3629ed)_0x935f96['markBlockFormat'](_0x2f8b74,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x481a90}]});});}),_0x935f96['descriptionFactory']['registerDescriptionCallback'](_0x2ba58f=>{const {data:_0x3c023d}=_0x2ba58f;if(_0x3c023d&&'blockQuote'==_0x3c023d['commandName']){const _0x311006=c(_0x3c7a5d,'ELEMENT_BLOCK_QUOTE');return _0x3c023d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c7a5d,'*Set\x20format:*\x20%0',_0x311006)}:{'type':'format','content':c(_0x3c7a5d,'*Remove\x20format:*\x20%0',_0x311006)};}});}}function oo(_0xfffc40){return'blockQuote'==_0xfffc40['parent']['name'];}class L extends _0x4a939c{['afterInit'](){const _0x3fbd6d=this['editor'],_0x48b7a9=_0x3fbd6d['locale'],_0x4b5f4a=_0x3fbd6d['plugins']['get']('TrackChangesEditing');_0x3fbd6d['plugins']['has']('BookmarkEditing')&&(_0x4b5f4a['enableCommand']('insertBookmark'),_0x4b5f4a['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b5f4a['registerBlockAttribute']('bookmarkId'),_0x4b5f4a['descriptionFactory']['registerDescriptionCallback'](_0xeb6cdc=>{if('insertion'!=_0xeb6cdc['type']&&'deletion'!=_0xeb6cdc['type']&&'attribute'!=_0xeb6cdc['type'])return;const _0x52ecd2=_0xeb6cdc['getContainedElement']();if(null==_0x52ecd2)return;if(!_0x52ecd2['is']('element','bookmark'))return;const _0x4edae2=_0x52ecd2['getAttribute']('bookmarkId');if('insertion'==_0xeb6cdc['type'])return{'type':'insertion','content':c(_0x48b7a9,'*Insert:*\x20%0','\x22'+_0x4edae2+'\x22\x20'+c(_0x48b7a9,'ELEMENT_BOOKMARK'))};if('deletion'==_0xeb6cdc['type'])return{'type':'deletion','content':c(_0x48b7a9,'*Remove:*\x20%0','\x22'+_0x4edae2+'\x22\x20'+c(_0x48b7a9,'ELEMENT_BOOKMARK'))};const {data:_0xbbd6b2}=_0xeb6cdc;if(!_0xbbd6b2||'bookmarkId'!=_0xbbd6b2['key'])return;return{'type':'format','content':c(_0x48b7a9,'*Set\x20bookmark:*\x20%0','\x22'+_0xbbd6b2['newValue']+'\x22')};}));}}class J extends _0x4a939c{['afterInit'](){const _0xd9178a=this['editor'];_0xd9178a['plugins']['has']('CaseChange')&&(_0xd9178a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xd9178a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xd9178a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x4a939c{['afterInit'](){const _0x41b42f=this['editor'];_0x41b42f['commands']['get']('ckbox')&&_0x41b42f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x4a939c{['afterInit'](){const _0x4f1f89=this['editor'];if(!_0x4f1f89['plugins']['has']('CodeBlock'))return;const _0x8a30d9=_0x4f1f89['plugins']['get']('TrackChangesEditing'),_0x2b0211=_0x4f1f89['locale'],_0x4a3fbd=_0x4f1f89['config']['get']('codeBlock')['languages'],_0x57d208=_0x4f1f89['commands']['get']('codeBlock');_0x8a30d9['enableCommand']('indentCodeBlock'),_0x8a30d9['enableCommand']('outdentCodeBlock'),_0x8a30d9['enableCommand']('codeBlock',(_0x1bd8c6,_0x1bd918={})=>{const _0x203497=_0x4f1f89['model'],_0x5a3025=_0x4f1f89['model']['document']['selection'],_0x1ef5a2=_0x1bd918&&void 0x0!==_0x1bd918['forceValue']?_0x1bd918['forceValue']:!_0x57d208['value'];let _0x16f441;_0x1bd918['language']||(_0x1bd918['language']=_0x4a3fbd[0x0]['language']),_0x16f441=_0x1ef5a2?Array['from'](_0x5a3025['getSelectedBlocks']())['filter'](_0x29a482=>eo(_0x29a482)||function(_0x29f04f,_0x53606f){if(_0x29f04f['is']('rootElement')||_0x53606f['isLimit'](_0x29f04f))return!0x1;return _0x53606f['checkChild'](_0x29f04f['parent'],'codeBlock');}(_0x29a482,_0x203497['schema'])):Array['from'](_0x5a3025['getSelectedBlocks']())['filter'](_0x2feabd=>eo(_0x2feabd));const _0x462328=to(_0x16f441,_0x203497);_0x203497['change'](()=>{for(const _0x2257df of _0x462328)_0x8a30d9['markBlockFormat'](_0x2257df,{'commandName':'codeBlock','commandParams':[{..._0x1bd918,'forceValue':_0x1ef5a2}],'formatGroupId':'blockName'});});}),(_0x8a30d9['descriptionFactory']['registerElementLabel']('codeBlock',_0x1fbebf=>c(_0x2b0211,'ELEMENT_CODE_BLOCK',_0x1fbebf)),_0x8a30d9['descriptionFactory']['registerDescriptionCallback'](_0x5b65d3=>{if('formatBlock'!=_0x5b65d3['type'])return;const _0x10ae93=_0x2b0211['t'],{data:_0xd89b80}=_0x5b65d3;if(!_0xd89b80||'codeBlock'!=_0xd89b80['commandName'])return;const _0x5e565c=_0xd89b80['commandParams'][0x0]['language'],_0xab16cb=_0x10ae93(_0x4a3fbd['find'](_0x2fb214=>_0x2fb214['language']===_0x5e565c)['label'])['toLowerCase']();return _0xd89b80['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b0211,'*Set\x20format:*\x20%0',c(_0x2b0211,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xab16cb+')')}:{'type':'format','content':c(_0x2b0211,'*Remove\x20format:*\x20%0',c(_0x2b0211,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1af8c4){return'codeBlock'==_0x1af8c4['name'];}class q extends _0x4a939c{['afterInit'](){const _0x301679=this['editor'];if(!_0x301679['plugins']['has']('CommentsEditing'))return;_0x301679['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x30afc4,_0x585a41,_0x5cd791){const _0x2ae5e9=[];for(const _0x17bb40 of _0x585a41['getItems']())_0x17bb40['hasAttribute'](_0x30afc4)&&_0x2ae5e9['push'](_0x5cd791['createRangeOn'](_0x17bb40));return _0x2ae5e9;}function Fe(_0x35b3b3,_0x457240,{showActiveMarker:_0x4116ba=!0x0}={}){const _0x347a66=_0x35b3b3['plugins']['get']('TrackChangesEditing');return(_0x31183d,_0x358a03,_0x544e36)=>{if(!_0x544e36['consumable']['test'](_0x358a03['markerRange'],_0x31183d['name']))return;const _0x75252f=_0x358a03['markerRange']['getWalker'](),_0x2e4c22=_0x358a03['markerRange']['start'],_0x4f52f6=_0x35b3b3['model']['schema'];let _0x5a26c3=null,_0x3787b4=null,_0x14cf4c=!0x1,_0x19d9a4=!0x1;for(const _0xe81e6e of _0x75252f){const _0x47ef9d=_0xe81e6e['item'];_0x14cf4c=_0x14cf4c||_0x4f52f6['isContent'](_0x47ef9d);const _0x23fde0=_0x544e36['mapper']['toViewElement'](_0x47ef9d);if(_0x23fde0&&_0x23fde0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe81e6e['type']&&(_0x4f52f6['isBlock'](_0x47ef9d)&&!_0x4f52f6['isLimit'](_0x47ef9d)&&(_0x47ef9d['nextSibling']||_0x2e4c22['isAtEnd']?_0x5a26c3&&_0x5a26c3['parent']==_0x47ef9d||(_0x5a26c3=_0x47ef9d,_0x37c02e(_0xe81e6e['previousPosition']),_0x19d9a4=!0x0):_0x3787b4=_0x3787b4||_0xe81e6e['previousPosition']));}function _0x37c02e(_0x4b1eb0){const {authorId:_0x39542b}=_0x347a66['_splitMarkerName'](_0x358a03['markerName']),_0xa1746=_0x544e36['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x457240,'data-author-id':_0x39542b}),_0x8402c9=_0x544e36['mapper']['toViewPosition'](_0x4b1eb0);_0x4116ba&&_0x347a66['activeMarkers']['includes'](_0x358a03['markerName'])&&_0x544e36['writer']['addClass']('ck-suggestion-marker--active',_0xa1746),_0x544e36['writer']['insert'](_0x8402c9,_0xa1746),_0x544e36['mapper']['bindElementToMarker'](_0xa1746,_0x358a03['markerName']);}_0x14cf4c||_0x19d9a4||!_0x3787b4||_0x37c02e(_0x3787b4);};}class z extends _0x4a939c{static get['requires'](){return[_0x2009ac];}['init'](){const _0x2e3163=this['editor'],_0x34e600=_0x2e3163['plugins']['get']('TrackChangesEditing');_0x34e600['enableCommand']('delete');const _0x49daa8=_0x2e3163['commands']['get']('deleteForward');_0x34e600['enableCommand']('deleteForward',(_0x149c2d,_0x4985ca={})=>{const _0x41d5f1=_0x2e3163['model']['createSelection'](_0x2e3163['model']['document']['selection']);_0x41d5f1['isCollapsed']&&_0x2e3163['model']['modifySelection'](_0x41d5f1,{'direction':'forward','unit':_0x4985ca['unit']});const _0x37cc4c=_0x41d5f1['getFirstRange'](),_0x4b680c=_0x21fe73['fromRange'](_0x37cc4c);let _0x3abeb9;_0x149c2d(_0x4985ca),_0x3abeb9='$graveyard'==_0x4b680c['root']['rootName']?_0x2e3163['model']['createRange'](_0x37cc4c['start']):_0x2e3163['model']['createRange'](_0x4b680c['start'],_0x4b680c['end']),_0x4b680c['detach'](),_0x2e3163['model']['enqueueChange'](_0x49daa8['buffer']['batch'],_0x4d715e=>{_0x49daa8['buffer']['lock'](),_0x4d715e['setSelection'](_0x4d715e['createRange'](_0x3abeb9['end'])),_0x49daa8['buffer']['unlock']();});}),_0x2e3163['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2e3163,'merge'),{'priority':'high'}),_0x2e3163['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5c6b82,_0x135374,_0x2bd815)=>{_0x2bd815['options']['showSuggestionHighlights']&&Fe(_0x2e3163,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5c6b82,_0x135374,_0x2bd815);},{'priority':'high'}),_0x2e3163['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x426b7b,_0x3e1417,_0x547cb3)=>{const _0x269543=_0x547cb3['mapper']['markerNameToElements'](_0x3e1417['markerName']);if(_0x269543){for(const _0x3a77d1 of _0x269543)_0x3a77d1['is']('uiElement')&&(_0x547cb3['mapper']['unbindElementFromMarkerName'](_0x3a77d1,_0x3e1417['markerName']),_0x547cb3['writer']['remove'](_0x3a77d1));}},{'priority':'high'});}}class W extends _0x4a939c{['afterInit'](){const _0x3e3405=this['editor'];if(!_0x3e3405['plugins']['has']('ListEditing'))return;const _0x13917e=_0x3e3405['locale'],_0x5201b6=_0x3e3405['plugins']['get']('TrackChangesEditing'),_0x3b47b5=_0x3e3405['plugins']['has']('TodoListEditing'),_0x58fe60=!!_0x3e3405['config']['get']('list.multiBlock');function _0x9c6e31(_0x38fd7f){return{'type':'format','content':''+c(_0x13917e,'*Set\x20format:*\x20%0',_0x38fd7f)};}function _0x4be6ed(_0x3e235c){return{'type':'format','content':''+c(_0x13917e,'*Remove\x20format:*\x20%0',_0x3e235c)};}_0x5201b6['enableDefaultAttributesIntegration']('numberedList'),_0x5201b6['enableDefaultAttributesIntegration']('bulletedList'),_0x5201b6['enableDefaultAttributesIntegration']('customNumberedList'),_0x5201b6['enableDefaultAttributesIntegration']('customBulletedList'),_0x5201b6['enableDefaultAttributesIntegration']('indentList'),_0x5201b6['enableDefaultAttributesIntegration']('outdentList'),_0x5201b6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5201b6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5201b6['registerBlockAttribute']('listItemId'),_0x5201b6['registerBlockAttribute']('listType'),_0x5201b6['registerBlockAttribute']('listIndent'),_0x58fe60&&(_0x5201b6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5201b6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3b47b5&&(_0x5201b6['enableDefaultAttributesIntegration']('todoList'),_0x5201b6['enableDefaultAttributesIntegration']('checkTodoList'),_0x5201b6['registerBlockAttribute']('todoListChecked'),_0x5201b6['descriptionFactory']['registerDescriptionCallback'](_0x494c66=>{const {data:_0x2143d8}=_0x494c66;if(_0x2143d8&&'todoListChecked'==_0x2143d8['key'])return{'type':'format','content':_0x2143d8['newValue']?c(_0x13917e,'*Check\x20item*'):c(_0x13917e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c8d19=>{if(_0x4c8d19['batch']['isUndo'])return!0x1;let _0x253a32=!0x1;const _0x453c3a=_0x5201b6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33eeca=>'todoListChecked'===_0x5201b6['_getAttributeKey'](_0x33eeca));for(const _0x5a8c97 of _0x453c3a){'todo'!=_0x5a8c97['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5201b6['_findSuggestions'](_0x5a8c97['getFirstRange'](),'attribute')['find'](_0xb4998f=>'listType'===_0x5201b6['_getAttributeKey'](_0xb4998f['suggestion']))||(_0x4c8d19['removeMarker'](_0x5a8c97['getFirstMarker']()),_0x253a32=!0x0));}return _0x253a32;})),_0x5201b6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x13917e,'FORMAT_INDENT'));const _0x17eb3b={'type':'format','content':''};_0x5201b6['descriptionFactory']['registerDescriptionCallback'](_0x232fa1=>{const {data:_0x5301c0}=_0x232fa1;if(!_0x5301c0||'listType'!=_0x5301c0['key'])return;let _0x2ce65d=_0x232fa1['head'];for(;_0x2ce65d;){if(_0x2ce65d['data']&&(('listStyle'==_0x2ce65d['data']['key']||'listMarkerStyle'==_0x2ce65d['data']['key'])&&(_0x2ce65d['data']['newValue']&&'default'!=_0x2ce65d['data']['newValue']||'default'!=_0x2ce65d['data']['oldValue']&&!_0x5301c0['newValue'])||!_0x58fe60&&_0x2ce65d['data']['key']==u))return _0x17eb3b;_0x2ce65d=_0x2ce65d['next'];}if(null==_0x5301c0['newValue'])switch(_0x5301c0['oldValue']){case'bulleted':return _0x4be6ed(c(_0x13917e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4be6ed(c(_0x13917e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4be6ed(c(_0x13917e,'ELEMENT_TODO_LIST'));}switch(_0x5301c0['newValue']){case'bulleted':return _0x9c6e31(c(_0x13917e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9c6e31(c(_0x13917e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9c6e31(c(_0x13917e,'ELEMENT_TODO_LIST'));}}),_0x5201b6['descriptionFactory']['registerDescriptionCallback'](_0x2c43f8=>{const {data:_0x3312f9}=_0x2c43f8;if(_0x3312f9&&'listIndent'==_0x3312f9['key'])return null==_0x3312f9['newValue']||null==_0x3312f9['oldValue']&&0x0==_0x3312f9['newValue']?_0x17eb3b:void 0x0;}),_0x5201b6['descriptionFactory']['registerDescriptionCallback'](_0x19c6ae=>{if('attribute'!=_0x19c6ae['type'])return;const {data:_0x58b666}=_0x19c6ae;if(!_0x58b666||'listItemId'!=_0x58b666['key'])return;const _0x46722f=Te(_0x19c6ae);return'newValue'==_0x46722f?{'type':'format','content':c(_0x13917e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x46722f?{'type':'format','content':c(_0x13917e,'*Split:*\x20list\x20item')}:_0x17eb3b;}),_0x3e3405['model']['document']['registerPostFixer'](_0x2dc807=>this['listItemIdFixer'](_0x2dc807)),_0x3e3405['model']['document']['registerPostFixer'](_0x16dce4=>this['noTrackChangesFixer'](_0x16dce4)),_0x3e3405['model']['document']['on']('change:data',(_0xcdb43d,_0x56ec58)=>{if(_0x56ec58['isUndo']||!_0x56ec58['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x28ca11){if(_0x28ca11['batch']['isUndo']||!_0x28ca11['batch']['isLocal'])return!0x1;let _0x472a3f=!0x1;const _0x533856=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195bef=>_0x195bef['data']&&'listItemId'==_0x195bef['data']['key'])['filter'](_0x575b6b=>_0x575b6b['data']['newValue']&&_0x575b6b['data']['oldValue']);for(const _0x3f9fb2 of _0x533856)Te(_0x3f9fb2)||(_0x28ca11['removeMarker'](_0x3f9fb2['getFirstMarker']()),_0x472a3f=!0x0);return _0x472a3f;}['noTrackChangesFixer'](_0x2e63a7){if(_0x2e63a7['batch']['isUndo']||!_0x2e63a7['batch']['isLocal'])return!0x1;const _0x39ab92=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x39ab92['trackChangesCommand']['value'])return!0x1;let _0x3cb838=!0x1;const _0x4ff875=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x50b9bf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4cf6c1=>'attribute'==_0x4cf6c1['type'])['filter'](_0x2f6127=>_0x4ff875['includes'](_0x2f6127['attributeKey']));if(0x0==_0x50b9bf['length'])return _0x3cb838;for(const _0x560e2c of _0x50b9bf){const _0x4491bd=_0x39ab92['_findSuggestions'](_0x560e2c['range'],'attribute')['filter'](_0x40e4c7=>!_0x40e4c7['meta']['isNextTo'])['map'](_0x13c2c2=>_0x13c2c2['suggestion'])['filter'](_0x3d3bd0=>{const _0x2eba91=_0x39ab92['_getAttributeKey'](_0x3d3bd0);return _0x4ff875['includes'](_0x2eba91);});if(_0x4491bd['length']){for(const _0x2e9064 of _0x4491bd)_0x2e63a7['removeMarker'](_0x2e9064['getFirstMarker']());_0x3cb838=!0x0;}}return _0x3cb838;}['assureChains'](){const _0x166a47=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a51fa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x123fb3;const _0x569337=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b26bb=>{if(_0x1b26bb['data']['oldRange']||!_0x1b26bb['data']['newRange'])return null;if(!_0x1b26bb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x11f9f4}=_0x166a47['_splitMarkerName'](_0x1b26bb['name']);if(!_0x166a47['hasSuggestion'](_0x11f9f4))return null;const _0x38b32c=_0x166a47['getSuggestion'](_0x11f9f4);return _0x5a51fa['includes'](_0x38b32c['data']['key']);})['map'](_0x304cca=>{const {id:_0x2d4b11}=_0x166a47['_splitMarkerName'](_0x304cca['name']),_0x4cd41a=_0x166a47['getSuggestion'](_0x2d4b11);return _0x123fb3=_0x4cd41a['attributes']['groupId'],_0x4cd41a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x569337['size'])return;const _0x3d6ae8=_0x166a47['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x460461=>'attribute'==_0x460461['type']&&_0x460461['data']&&_0x5a51fa['includes'](_0x460461['data']['key'])&&_0x460461['attributes']['groupId']!=_0x123fb3)['map'](_0x1087df=>({'listItem':_0x1087df['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1087df['attributes']['groupId']})),_0x38b7af=new Set();for(const {groupId:_0x148ced,listItem:_0x12e20d}of _0x3d6ae8)_0x569337['has'](_0x12e20d)&&_0x38b7af['add'](_0x148ced);for(const _0x3e1a87 of _0x166a47['getSuggestions']())_0x38b7af['has'](_0x3e1a87['attributes']['groupId'])&&_0x3e1a87['setAttribute']('groupId',_0x123fb3);}['_supportLegacySuggestions'](){const _0x1329ee=this['editor'],_0x3b5795=_0x1329ee['locale'],_0x409bd5=_0x1329ee['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x409bd5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4196eb,_0x26ceab){const _0x48b67b=[];for(let _0x276f78 of _0x4196eb)_0x276f78['start']['nodeAfter']===_0x276f78['end']['parent']&&(_0x276f78=_0x1329ee['model']['createRange'](_0x1329ee['model']['createPositionAt'](_0x276f78['start']['nodeAfter'],0x0))),_0x48b67b['push'](_0x276f78);_0x1329ee['model']['change'](_0x233040=>{const _0x7a3164=_0x1329ee['model']['document']['selection'],_0x860337=Array['from'](_0x7a3164['getRanges']())['map'](_0x4a7bb0=>_0x21fe73['fromRange'](_0x4a7bb0));_0x233040['setSelection'](_0x48b67b),_0x1329ee['commands']['get'](_0x26ceab['commandName'])['refresh'](),_0x26ceab['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1329ee['execute'](_0x26ceab['commandName'],..._0x26ceab['commandParams']),_0x233040['setSelection'](_0x860337);for(const _0x307a09 of _0x860337)_0x307a09['detach']();});}),_0x409bd5['descriptionFactory']['registerElementLabel'](function(_0x490606){const _0x35359b=!_0x1329ee['model']['schema']['isObject'](_0x490606),_0x48ed0e=_0x490606['previousSibling'],_0x492d2c=_0x490606['nextSibling'],_0x31b6e7=_0x490606['getAttribute']('listItemId'),_0x466355=!_0x48ed0e||_0x48ed0e['getAttribute']('listItemId')!==_0x31b6e7,_0x3197f9=!_0x492d2c||_0x492d2c['getAttribute']('listItemId')!==_0x31b6e7;return _0x35359b&&Boolean(_0x31b6e7)&&_0x466355&&_0x3197f9;},_0x4869ae=>c(_0x3b5795,'ELEMENT_LIST_ITEM',_0x4869ae));}['_registerLegacyDescription'](){const _0x13b583=this['editor'],_0x4af02a=_0x13b583['locale'];function _0x1f45a7(_0x3b5f70){const _0x2bbc6d=_0x13b583['commands']['get']('bulletedList')['value'],_0x39b96b=_0x13b583['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b5f70?_0x2bbc6d:_0x39b96b;}_0x13b583['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x47fb0d){if('formatBlock'!=_0x47fb0d['type'])return;const {data:_0x404341}=_0x47fb0d;if(!_0x404341)return;let _0x3be02a,_0x3ce783,_0x5ada04,_0xd679f7;switch(_0x404341['commandName']){case'bulletedList':_0x5ada04=_0x404341['commandParams'][0x0]['forceValue'],_0xd679f7=_0x1f45a7(_0x404341['commandName']),_0x3be02a=_0x5ada04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd679f7&&_0x13b583['config']['get']('list.multiBlock')||(_0x3be02a='*Change\x20to:*\x20%0'),_0x3ce783={'type':'format','content':c(_0x4af02a,_0x3be02a,c(_0x4af02a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ada04=_0x404341['commandParams'][0x0]['forceValue'],_0xd679f7=_0x1f45a7(_0x404341['commandName']),_0x3be02a=_0x5ada04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd679f7&&_0x13b583['config']['get']('list.multiBlock')||(_0x3be02a='*Change\x20to:*\x20%0'),_0x3ce783={'type':'format','content':c(_0x4af02a,_0x3be02a,c(_0x4af02a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3be02a='*Indent:*\x20%0',_0x3ce783={'type':'format','content':c(_0x4af02a,_0x3be02a,c(_0x4af02a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3be02a=function(_0x14c705){const _0x249bfb=_0x14c705['getFirstRange']();let _0x19a6c8=_0x249bfb['start']['nodeAfter'];for(;_0x19a6c8&&_0x249bfb['containsItem'](_0x19a6c8);){if(_0x19a6c8['getAttribute']('listIndent')>0x0)return!0x1;_0x19a6c8=_0x19a6c8['nextSibling'];}return!0x0;}(_0x47fb0d)?c(_0x4af02a,'*Format:*\x20remove\x20from\x20%0',c(_0x4af02a,function(_0x3ccc42){return'ELEMENT_'+_0x3ccc42['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x47fb0d))):c(_0x4af02a,'*Outdent:*\x20%0',c(_0x4af02a,'ELEMENT_LIST_ITEM')),_0x3ce783={'type':'format','content':_0x3be02a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x404341['multipleBlocks']&&(_0x3be02a='*Merge:*\x20%0',_0x3ce783={'type':'deletion','content':c(_0x4af02a,_0x3be02a,c(_0x4af02a,'ELEMENT_LIST_ITEM'))});}return _0x3ce783;});}}function Te(_0x32d6e4){let _0x56a8f7=_0x32d6e4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x56a8f7;){const _0x4d6513=_0x56a8f7['getAttribute']('listItemId');if(!_0x4d6513)return!0x1;if(_0x4d6513==_0x32d6e4['data']['newValue'])return'newValue';if(_0x4d6513==_0x32d6e4['data']['oldValue'])return'oldValue';_0x56a8f7=_0x56a8f7['previousSibling'];}return!0x1;}class Se extends _0x4a939c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22fed0=this['editor']['config']['get']('list.properties'),_0xfc2b86=this['editor']['plugins']['get']('TrackChangesEditing');_0x22fed0['styles']&&(_0xfc2b86['enableDefaultAttributesIntegration']('listStyle'),_0xfc2b86['registerBlockAttribute']('listStyle')),_0x22fed0['reversed']&&(_0xfc2b86['enableDefaultAttributesIntegration']('listReversed'),_0xfc2b86['registerBlockAttribute']('listReversed')),_0x22fed0['startIndex']&&(_0xfc2b86['enableDefaultAttributesIntegration']('listStart'),_0xfc2b86['registerBlockAttribute']('listStart'));const _0x5a535e={'type':'format','content':''};_0xfc2b86['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x89af32=this['editor']['locale'];_0xfc2b86['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x89af32,'FORMAT_LIST_REVERSED')),_0xfc2b86['descriptionFactory']['registerDescriptionCallback'](_0x52eaa2=>{const {data:_0x2ff830}=_0x52eaa2;if(_0x2ff830&&'listReversed'==_0x2ff830['key'])return null==_0x2ff830['newValue']||0x0==_0x2ff830['newValue']&&null==_0x2ff830['oldValue']?_0x5a535e:void 0x0;}),_0xfc2b86['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x89af32,'FORMAT_LIST_START')),_0xfc2b86['descriptionFactory']['registerDescriptionCallback'](_0x53a40b=>{const {data:_0x1f594d}=_0x53a40b;if(_0x1f594d&&'listStart'==_0x1f594d['key'])return null==_0x1f594d['newValue']||0x1==_0x1f594d['newValue']&&null==_0x1f594d['oldValue']?_0x5a535e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x31abdb=>{if(_0x31abdb['batch']['isUndo'])return!0x1;let _0x2c5399=!0x1;const _0x4aa15f=_0xfc2b86['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a4b40=>{const _0x27be07=_0xfc2b86['_getAttributeKey'](_0x2a4b40);return'listStart'==_0x27be07||'listReversed'==_0x27be07;});for(const _0x37693c of _0x4aa15f){const _0x1c2107=_0x37693c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1c2107||'customNumbered'==_0x1c2107)continue;_0xfc2b86['_findSuggestions'](_0x37693c['getFirstRange'](),'attribute')['find'](_0xb74c97=>'listType'==_0xfc2b86['_getAttributeKey'](_0xb74c97['suggestion']))||(_0x31abdb['removeMarker'](_0x37693c['getFirstMarker']()),_0x2c5399=!0x0);}return _0x2c5399;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x460492){const _0x43625b=this['editor']['locale'],{data:_0xcf48c2}=_0x460492,_0x5a8dd1={'type':'format','content':''};if(!_0xcf48c2||'listStyle'!=_0xcf48c2['key'])return;if(!_0xcf48c2['oldValue'])return'default'==_0xcf48c2['newValue']?_0x5a8dd1:{'type':'format','content':''+c(_0x43625b,'*Set\x20format:*\x20%0',c(_0x43625b,this['_getTranslationKeyForListStyle'](_0xcf48c2['newValue'])))};if(!_0xcf48c2['newValue']){if('default'==_0xcf48c2['oldValue'])return _0x5a8dd1;let _0x20b2c8=_0x460492['head'];for(;_0x20b2c8;){if(_0x20b2c8['data']&&'listType'==_0x20b2c8['data']['key']&&_0x20b2c8['data']['newValue'])return _0x5a8dd1;_0x20b2c8=_0x20b2c8['next'];}return{'type':'format','content':''+c(_0x43625b,'*Remove\x20format:*\x20%0',c(_0x43625b,this['_getTranslationKeyForListStyle'](_0xcf48c2['oldValue'])))};}if('default'!=_0xcf48c2['newValue'])return{'type':'format','content':''+c(_0x43625b,'*Set\x20format:*\x20%0',c(_0x43625b,this['_getTranslationKeyForListStyle'](_0xcf48c2['newValue'])))};let _0x246910=_0x460492['head'];for(;_0x246910;){if(_0x246910['data']&&'listType'==_0x246910['data']['key']&&_0x246910['data']['newValue']&&_0x246910['data']['oldValue'])return _0x5a8dd1;_0x246910=_0x246910['next'];}return{'type':'format','content':c(_0x43625b,'*Set\x20format:*\x20%0',c(_0x43625b,'ELEMENT_'+_0x460492['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x571254=this['editor'],_0x1206a0=_0x571254['locale'];_0x571254['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f7aa5=>{if('formatBlock'!=_0x2f7aa5['type'])return;const {data:_0x30da6b}=_0x2f7aa5;if(!_0x30da6b)return;let _0x5e0d78,_0x4b2dc2;switch(_0x30da6b['commandName']){case'listStyle':_0x5e0d78='*Change\x20to:*\x20%0',_0x4b2dc2={'type':'format','content':c(_0x1206a0,_0x5e0d78,c(_0x1206a0,this['_getTranslationKeyForListStyle'](_0x30da6b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e0d78=_0x30da6b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b2dc2={'type':'format','content':c(_0x1206a0,_0x5e0d78)};break;case'listStart':_0x5e0d78='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b2dc2={'type':'format','content':c(_0x1206a0,_0x5e0d78,_0x30da6b['commandParams'][0x0]['startIndex'])};}return _0x4b2dc2;});}['_getTranslationKeyForListStyle'](_0x34cbfc){return'ELEMENT_'+function(_0x26b2e4){if(_e['includes'](_0x26b2e4))return'bulleted';if(Re['includes'](_0x26b2e4))return'numbered';return null;}(_0x34cbfc)['toUpperCase']()+'_LIST_'+_0x34cbfc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4a939c{['afterInit'](){const _0x4ca362=this['editor'];_0x4ca362['commands']['get']('emoji')&&_0x4ca362['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x4a939c{static get['requires'](){return[_0x225b27];}['init'](){const _0x536f1a=this['editor'],_0x512e66=_0x536f1a['plugins']['get']('TrackChangesEditing'),_0x99370c=_0x536f1a['commands']['get']('enter');_0x512e66['enableCommand']('enter',()=>{_0x536f1a['model']['change'](_0x29be6e=>{const _0x3de95d=_0x536f1a['model']['document']['selection'],_0x5743e7=_0x3de95d['getFirstPosition'](),_0xb0de66=_0x21fe73['fromRange'](_0x3de95d['getFirstRange']());if(_0x99370c['enterBlock'](_0x29be6e)){const _0x466b40=_0x536f1a['model']['createPositionAt'](_0x5743e7['parent']['nextSibling'],0x0),_0x3d8e32=_0x29be6e['createRange'](_0x5743e7,_0x466b40);_0x512e66['markInsertion'](_0x3d8e32);}else _0x29be6e['setSelection'](_0x29be6e['createRange'](_0xb0de66['end']));_0xb0de66['detach'](),_0x99370c['fire']('afterExecute',{'writer':_0x29be6e});});}),_0x536f1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x536f1a,'split'),{'priority':'high'}),_0x536f1a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4dfddd,_0x3bf6c6,_0x491c3b)=>{const _0x4ff561=_0x491c3b['mapper']['markerNameToElements'](_0x3bf6c6['markerName']);if(_0x4ff561){for(const _0x232887 of _0x4ff561)_0x232887['hasClass']('ck-suggestion-marker-split')&&(_0x491c3b['mapper']['unbindElementFromMarkerName'](_0x232887,_0x3bf6c6['markerName']),_0x491c3b['writer']['remove'](_0x232887));}},{'priority':'high'}),_0x536f1a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x402ce8,_0x5d3df0,_0x7212ae)=>{_0x7212ae['options']['showSuggestionHighlights']&&Fe(_0x536f1a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x402ce8,_0x5d3df0,_0x7212ae);},{'priority':'high'});}}class Z extends _0x4a939c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5ceca7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ceca7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5ceca7['enableCommand']('findNext'),_0x5ceca7['enableCommand']('findPrevious'),_0x5ceca7['enableCommand']('replace'),_0x5ceca7['enableCommand']('replaceAll');}['handleFindCommand'](_0x13e664,_0x52adac,_0x373108={}){const _0x5b766d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x13e664(_0x10bfb5=>{let _0x57c23e=('string'==typeof _0x52adac?_0x5b766d['findByTextCallback'](_0x52adac,_0x373108):_0x52adac)(_0x10bfb5);Array['isArray'](_0x57c23e)&&(_0x57c23e={'results':_0x57c23e,'searchText':'string'==typeof _0x52adac?_0x52adac:''});const _0x567f68=_0x57c23e['results']['filter'](_0x36f55e=>!0x1===this['_isInDeletionRange'](_0x36f55e,_0x10bfb5['item']));return{..._0x57c23e,'results':_0x567f68};},_0x373108);}['_isInDeletionRange'](_0x4f7635,_0x2bef87){const _0x5028f9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bef87,_0x4f7635['start']),this['editor']['model']['createPositionAt'](_0x2bef87,_0x4f7635['end']));for(const _0x261d3c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5028f9['getIntersection'](_0x261d3c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x4a939c{['afterInit'](){const _0x44a622=this['editor']['locale'],_0x5c6033=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4ee0e3,commandName:_0x42c76c}of ro)this['editor']['plugins']['has'](_0x4ee0e3)&&(_0x5c6033['enableDefaultAttributesIntegration'](_0x42c76c),_0x5c6033['registerInlineAttribute'](_0x42c76c));_0x5c6033['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x44a622,'FORMAT_FONT_SIZE')),_0x5c6033['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x44a622,'FORMAT_FONT_FAMILY')),_0x5c6033['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x44a622,'FORMAT_FONT_COLOR')),_0x5c6033['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x44a622,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d557f=this['editor'],_0x260eb3=_0x4d557f['locale'];_0x4d557f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d258a=>{const _0x26efe9=_0x260eb3['t'];if('formatInline'!=_0x2d258a['type'])return;const {data:_0x182b95}=_0x2d258a;if(null!=_0x182b95){if('fontSize'==_0x182b95['commandName']){const _0x50b2fc=_0x182b95['commandParams'][0x0]['value'];if(_0x50b2fc){const _0x1c9499=_0x26efe9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4328d1=>_0x4328d1['model']==_0x50b2fc)['title'])['toLowerCase']();return{'type':'format','content':c(_0x260eb3,'*Set\x20font\x20size:*\x20%0',_0x1c9499)};}return{'type':'format','content':c(_0x260eb3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x182b95['commandName']){const _0x4eef6d=_0x182b95['commandParams'][0x0]['value'];return _0x4eef6d?{'type':'format','content':c(_0x260eb3,'*Set\x20font\x20family:*\x20%0',_0x4eef6d)}:{'type':'format','content':c(_0x260eb3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x182b95['commandName']){const _0x2317db=_0x182b95['commandParams'][0x0]['value'];if(_0x2317db){const _0x27ed02=_0x4ee2d5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x49b0e2=>_0x49b0e2['model']==_0x2317db);let _0x2a2a46=_0x2317db,_0x32bf57='';return _0x27ed02&&(_0x2a2a46=_0x27ed02['label'],_0x32bf57=_0x26efe9(_0x2a2a46)['toLowerCase']()),{'type':'format','content':c(_0x260eb3,'*Set\x20font\x20color:*\x20%0',_0x32bf57)['trim'](),'color':{'value':_0x2317db,'title':_0x32bf57||_0x2a2a46}};}return{'type':'format','content':c(_0x260eb3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x182b95['commandName']){const _0x4119d0=_0x182b95['commandParams'][0x0]['value'];if(_0x4119d0){const _0x47f2bc=_0x4ee2d5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c3cb1=>_0x5c3cb1['model']==_0x4119d0);let _0x15cdfe=_0x4119d0,_0x290b8c='';return _0x47f2bc&&(_0x15cdfe=_0x47f2bc['label'],_0x290b8c=_0x26efe9(_0x15cdfe)['toLowerCase']()),{'type':'format','content':c(_0x260eb3,'*Set\x20font\x20background\x20color:*\x20%0',_0x290b8c)['trim'](),'color':{'value':_0x4119d0,'title':_0x290b8c||_0x15cdfe}};}return{'type':'format','content':c(_0x260eb3,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x4a939c{['afterInit'](){const _0x4ce266=this['editor'],_0x255f1a=_0x4ce266['plugins']['get']('TrackChangesEditing'),_0xcb41dc=_0x4ce266['commands']['get']('copyFormat'),_0x2182c7=_0x4ce266['commands']['get']('pasteFormat');_0xcb41dc&&_0x2182c7&&(_0x255f1a['enableDefaultAttributesIntegration']('pasteFormat'),_0x255f1a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x51feda=this['editor'],_0x58f96d=_0x51feda['locale'];_0x51feda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d3dfd=>{if('formatBlock'!=_0x7d3dfd['type']&&'formatInline'!=_0x7d3dfd['type'])return;const {data:_0x1b1076}=_0x7d3dfd;if(_0x1b1076&&'pasteFormat'===_0x1b1076['commandName']){const _0x4d5f61=[],_0x5bd275=_0x1b1076['commandParams'][0x0];for(const [_0x4619da,_0x39be10]of Object['entries'](_0x5bd275))_0x4d5f61['push'](so(_0x51feda,_0x4619da,_0x39be10));return _0x4d5f61['length']?{'type':'format','content':c(_0x58f96d,'*Set\x20format\x20to:*\x20%0',_0x4d5f61['join'](',\x20'))}:{'type':'format','content':c(_0x58f96d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x494378,_0x360977,_0x317add){const _0x4e5e4d=_0x494378['locale']['t'],_0x214748=_0x360977['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b0b6d=_0x4e5e4d(_0x214748['charAt'](0x0)['toUpperCase']()+_0x214748['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x317add)return _0x5b0b6d;if('fontColor'===_0x360977||'fontBackgroundColor'===_0x360977){const _0x3f45c2=_0x4ee2d5(_0x494378['config']['get']('fontColor.colors'))['find'](_0x54a56e=>_0x54a56e['model']==_0x317add);return _0x5b0b6d+'\x20('+(_0x3f45c2?_0x4e5e4d(_0x3f45c2['label'])['toLowerCase']():_0x317add)+')';}if('fontSize'===_0x360977&&isNaN(parseFloat(_0x317add))){const _0x27ee71=_0x494378['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x494378['config']['get']('fontSize.options'))['find'](_0xe0a9a1=>_0xe0a9a1['model']==_0x317add);return _0x5b0b6d+'\x20('+(_0x27ee71?_0x4e5e4d(_0x27ee71['title'])['toLowerCase']():_0x317add)+')';}return _0x5b0b6d+'\x20('+_0x317add+')';}class nt extends _0x4a939c{['_headingOptions'];['afterInit'](){const _0x282a11=this['editor'];if(!_0x282a11['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x282a11['config']['get']('heading.options');const _0x97e26e=_0x282a11['locale'],_0x23db0b=_0x282a11['plugins']['get']('TrackChangesEditing');_0x23db0b['enableDefaultAttributesIntegration']('heading');for(const _0xc18f0 of this['_headingOptions'])'paragraph'!=_0xc18f0['model']&&_0x23db0b['descriptionFactory']['registerElementLabel'](_0xc18f0['model'],_0x1158d2=>{const _0x322c77=this['_getHeadingLevel'](_0xc18f0['model']);return null!==_0x322c77?_0x5b9a45(_0x1158d2,_0x322c77):_0x4fb5e6(_0x1158d2,_0xc18f0['title']);});function _0x5b9a45(_0x4eaebd,_0x13daa8){return c(_0x97e26e,'ELEMENT_HEADING',[_0x4eaebd,_0x13daa8]);}function _0x4fb5e6(_0x13e6c6,_0x28a0e3){return c(_0x97e26e,'ELEMENT_HEADING_CUSTOM',[_0x13e6c6,_0x28a0e3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b8086=this['editor'],_0x100bd8=_0x5b8086['locale'];function _0x3e13d4(_0x1230ec,_0x4bbda9){return c(_0x100bd8,'ELEMENT_HEADING_CUSTOM',[_0x1230ec,_0x4bbda9]);}_0x5b8086['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba9345=>{if('formatBlock'!=_0xba9345['type'])return;const {data:_0x339e93}=_0xba9345;if(_0x339e93&&'heading'==_0x339e93['commandName']){const _0x275f0e=_0x339e93['commandParams'][0x0]['value'],_0x1eb7a1=this['_getHeadingLevel'](_0x275f0e);if(null!==_0x1eb7a1)return{'type':'format','content':c(_0x100bd8,'*Change\x20to:*\x20%0',(_0x5dffb0=0x1,_0x32b641=_0x1eb7a1,c(_0x100bd8,'ELEMENT_HEADING',[_0x5dffb0,_0x32b641])))};const _0x28d6f2=this['_headingOptions']['find'](_0x399d6e=>_0x399d6e['model']===_0x275f0e)['title'];return{'type':'format','content':c(_0x100bd8,'*Change\x20to:*\x20%0',_0x3e13d4(0x1,_0x28d6f2))};}var _0x5dffb0,_0x32b641;});}['_getHeadingLevel'](_0x411446){const _0x29017b=_0x411446['match'](/^heading(\d+)/);if(_0x29017b)return _0x29017b[0x1];const _0x39cef0=this['_headingOptions']?.['find'](_0x1b12c1=>_0x1b12c1['model']==_0x411446);if(_0x39cef0&&_0x39cef0['view']){const _0x34e72d=_0x39cef0['view'],_0x644f13=(_0x34e72d['name']??_0x34e72d)['match'](/^h(\d+)/);if(_0x644f13)return _0x644f13[0x1];}return null;}}class it extends _0x4a939c{['afterInit'](){const _0x38e72c=this['editor'];if(!_0x38e72c['plugins']['has']('HighlightEditing'))return;const _0xce63af=_0x38e72c['plugins']['get']('TrackChangesEditing'),_0xf41727=_0x38e72c['locale'];_0xce63af['enableDefaultAttributesIntegration']('highlight'),_0xce63af['registerInlineAttribute']('highlight'),_0xce63af['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xf41727,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2660af=this['editor'],_0xd89626=_0x2660af['locale'];_0x2660af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434e72=>{if('formatInline'!=_0x434e72['type'])return;const {data:_0x59d027}=_0x434e72;if(_0x59d027&&'highlight'==_0x59d027['commandName']){const _0xab9f87=_0xd89626['t'],_0x27063f=_0x59d027['commandParams'][0x0]['value'];if(_0x27063f){const _0x59ba87=_0x2660af['config']['get']('highlight.options')['find'](_0x25db95=>_0x25db95['model']==_0x27063f),_0x3163e7=_0xab9f87(_0x59ba87['title'])['toLowerCase']();return{'type':'format','content':c(_0xd89626,'*Set\x20highlight:*\x20%0',_0x3163e7),'color':{'value':_0x59ba87['color'],'title':_0x59ba87['title']}};}return{'type':'format','content':c(_0xd89626,'*Remove\x20highlight*',c(_0xd89626,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4a939c{['afterInit'](){const _0x1c2125=this['editor'];if(!_0x1c2125['plugins']['has']('HorizontalLineEditing'))return;_0x1c2125['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c9c9f=_0x1c2125['plugins']['get']('TrackChangesEditing'),_0x460104=_0x1c2125['locale'];_0x4c9c9f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2f1f92=>c(_0x460104,'ELEMENT_HORIZONTAL_LINE',_0x2f1f92)),_0x1c2125['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d8244,{writer:_0x2fa6a7,options:_0x4b7192})=>{if(!_0x4b7192['showSuggestionHighlights'])return null;const _0x45c237=_0x2fa6a7['createContainerElement']('div'),_0x30df4b=_0x2fa6a7['createEmptyElement']('hr');return _0x2fa6a7['addClass']('ck-horizontal-line',_0x45c237),_0x2fa6a7['insert'](_0x2fa6a7['createPositionAt'](_0x45c237,0x0),_0x30df4b),_0x45c237;},'converterPriority':'high'});}}class ot extends _0x4a939c{['afterInit'](){const _0x4685f7=this['editor'];if(!_0x4685f7['plugins']['has']('HtmlEmbed'))return;const _0x29285f=_0x4685f7['plugins']['get']('TrackChangesEditing'),_0x49dc16=_0x4685f7['locale'];_0x29285f['descriptionFactory']['registerElementLabel']('rawHtml',_0x28bb01=>c(_0x49dc16,'ELEMENT_HTML_EMBED',_0x28bb01)),_0x29285f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29285f['registerBlockAttribute']('value'),_0x29285f['descriptionFactory']['registerDescriptionCallback'](_0x3e0e1e=>{if('attribute'!=_0x3e0e1e['type'])return;const {data:_0xc5847f}=_0x3e0e1e;if(_0xc5847f&&'value'==_0xc5847f['key']&&_0x3e0e1e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x722ebc=c(_0x49dc16,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x49dc16,'*Change\x20%0\x20content*',_0x722ebc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c257e=this['editor'],_0x1be37c=_0x2c257e['locale'];_0x2c257e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fab27=>{if('formatBlock'!=_0x1fab27['type'])return;const {data:_0x5f3707}=_0x1fab27;if(_0x5f3707&&'htmlEmbed'==_0x5f3707['commandName']){const _0x26c39b=c(_0x1be37c,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1be37c,'*Change\x20%0\x20content*',_0x26c39b)};}});}}class rt extends _0x4a939c{['afterInit'](){const _0x5b2ae7=this['editor'];if(!_0x5b2ae7['plugins']['has']('ImageEditing'))return;const _0x3e43b8=_0x5b2ae7['plugins']['get']('TrackChangesEditing'),_0x330710=_0x5b2ae7['plugins']['get']('ImageUtils'),_0x2ad550=_0x5b2ae7['locale'];_0x3e43b8['enableCommand']('insertImage'),_0x3e43b8['descriptionFactory']['registerElementLabel']('imageBlock',_0x31f049=>c(_0x2ad550,'ELEMENT_IMAGE',_0x31f049)),_0x3e43b8['descriptionFactory']['registerElementLabel']('imageInline',_0x95e790=>c(_0x2ad550,'ELEMENT_INLINE_IMAGE',_0x95e790)),_0x3e43b8['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2ad550,'ELEMENT_CAPTION')),_0x5b2ae7['plugins']['has']('ImageUploadEditing')&&_0x3e43b8['enableCommand']('uploadImage'),_0x5b2ae7['plugins']['has']('ImageBlockEditing')&&_0x5b2ae7['plugins']['has']('ImageInlineEditing')&&(_0x3e43b8['enableCommand']('imageTypeInline',(_0xf9e2fd,_0x332269)=>{const _0x1cec9e=_0x330710['getClosestSelectedImageElement'](_0x5b2ae7['model']['document']['selection']);_0x5b2ae7['model']['change'](()=>{_0x3e43b8['markBlockFormat'](_0x1cec9e,{'commandName':'imageTypeInline','commandParams':[_0x332269]},[],'convertBlockImageToInline');});}),_0x3e43b8['enableCommand']('imageTypeBlock',(_0x224f21,_0x25861a)=>{_0x5b2ae7['model']['change'](_0x4ec623=>{let _0x380183=_0x330710['getClosestSelectedImageElement'](_0x5b2ae7['model']['document']['selection']),_0x5f585b=_0x4ec623['createRangeOn'](_0x380183);const _0xd9956d=_0x457f50['fromPosition'](_0x5f585b['start'],'toPrevious'),_0x4660a2=_0x457f50['fromPosition'](_0x5f585b['end'],'toNext');_0x3e43b8['forceDefaultExecution'](()=>_0x224f21(_0x25861a)),_0x380183=_0x330710['getClosestSelectedImageElement'](_0x5b2ae7['model']['document']['selection']),_0x5f585b=_0x4ec623['createRangeOn'](_0x380183);const _0x4888ed=_0x4ec623['createRange'](_0xd9956d,_0x4660a2);_0xd9956d['detach'](),_0x4660a2['detach'](),_0x3e43b8['markBlockFormat'](_0x380183,{'commandName':'imageTypeInline','commandParams':[_0x25861a]},[],'convertInlineImageToBlock'),_0x4888ed['start']['isBefore'](_0x5f585b['start'])&&_0x3e43b8['markInsertion'](_0x4ec623['createRange'](_0x4888ed['start'],_0x5f585b['start']),'convertInlineImageToBlock'),_0x5f585b['end']['isBefore'](_0x4888ed['end'])&&_0x3e43b8['markInsertion'](_0x4ec623['createRange'](_0x5f585b['end'],_0x4888ed['end']),'convertInlineImageToBlock');});}),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3e43b8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x242320])=>{const _0x244dbb=_0x3e43b8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a5dc6=_0x242320['start'],_0xb327b5=_0x242320['end'];const _0x3fe472=_0x5b2ae7['model']['schema']['getNearestSelectionRange'](_0x4a5dc6,'backward'),_0x2a377b=_0x5b2ae7['model']['schema']['getNearestSelectionRange'](_0xb327b5,'forward');_0x3fe472['isCollapsed']&&(_0x4a5dc6=_0x3fe472['start']),_0x2a377b['isCollapsed']&&(_0xb327b5=_0x2a377b['end']),_0x244dbb([_0x5b2ae7['model']['createRange'](_0x4a5dc6,_0xb327b5)]);}),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4858e8),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4858e8)),_0x5b2ae7['plugins']['has']('ImageCaptionEditing')&&(_0x3e43b8['enableCommand']('toggleImageCaption',(_0x57d63b,_0x58f937)=>{const _0x55265f=_0x5b2ae7['plugins']['get']('ImageCaptionUtils');let _0x42e4e6=_0x330710['getClosestSelectedImageElement'](_0x5b2ae7['model']['document']['selection']),_0x42ab3e=_0x55265f['getCaptionFromImageModelElement'](_0x42e4e6);_0x5b2ae7['model']['change'](()=>{if(_0x42ab3e)return void _0x3e43b8['markDeletion'](_0x5b2ae7['model']['createRangeOn'](_0x42ab3e));const _0xf01762=_0x330710['isBlockImage'](_0x42e4e6);_0x57d63b(_0x58f937),_0x42e4e6=_0x330710['getClosestSelectedImageElement'](_0x5b2ae7['model']['document']['selection']),_0x42ab3e=_0x55265f['getCaptionFromImageModelElement'](_0x42e4e6),_0x3e43b8['markInsertion'](_0x5b2ae7['model']['createRangeOn'](_0x42ab3e),_0xf01762?null:'imageCaption');});}),_0x3e43b8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4858e8));const _0x10cd9f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40a94d(_0x2bae2c,_0x359e32){const _0x4d3502=_0x10cd9f['findIndex'](({type:_0x74a46c,subType:_0x4ec891})=>_0x2bae2c['type']==_0x74a46c&&_0x2bae2c['subType']==_0x4ec891),_0x17bea8=_0x10cd9f['findIndex'](({type:_0x1642bb,subType:_0x308e77})=>_0x359e32['type']==_0x1642bb&&_0x359e32['subType']==_0x308e77);if(_0x4d3502<0x0||_0x17bea8<0x0)return!0x1;const _0x451b61=_0x2bae2c['getFirstRange'](),_0x280f03=_0x359e32['getFirstRange']();if((0x0==_0x4d3502||0x1==_0x4d3502)&&0x2==_0x17bea8&&_0x451b61['isIntersecting'](_0x280f03))return!0x0;if(0x2==_0x4d3502&&0x3==_0x17bea8){const _0x74ecd6=_0x3e43b8['_findSuggestions'](_0x451b61,'insertion')['filter'](({suggestion:_0x20190e,meta:_0x425e96})=>_0x425e96['isOwn']&&'convertInlineImageToBlock'==_0x20190e['subType']);if(_0x74ecd6['length']>0x1&&_0x280f03['end']['isEqual'](_0x451b61['start']))return!0x0;if(0x1==_0x74ecd6['length']&&(_0x451b61['start']['isEqual'](_0x280f03['end'])||_0x451b61['end']['isEqual'](_0x280f03['start'])))return!0x0;}if(0x3==_0x4d3502&&0x3==_0x17bea8&&_0x451b61['start']['isBefore'](_0x280f03['start'])){const _0x38559f=_0x451b61['end']['nodeAfter'],_0x5c4076=_0x280f03['start']['nodeBefore'];return _0x330710['isBlockImage'](_0x38559f)&&_0x38559f===_0x5c4076;}return!0x1;}function _0x4858e8(_0x49a55d,_0x42df26){return _0x40a94d(_0x49a55d,_0x42df26)?[_0x49a55d,_0x42df26]:_0x40a94d(_0x42df26,_0x49a55d)?[_0x42df26,_0x49a55d]:null;}_0x5b2ae7['plugins']['has']('ImageResize')&&(_0x3e43b8['enableDefaultAttributesIntegration']('resizeImage'),_0x3e43b8['registerBlockAttribute']('resizedWidth'),_0x3e43b8['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2ad550,'FORMAT_IMAGE_SIZE'))),_0x5b2ae7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3e43b8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e43b8['registerBlockAttribute']('alt')),_0x5b2ae7['plugins']['has']('PictureEditing')&&(_0x3e43b8['registerBlockAttribute']('sources'),_0x3e43b8['descriptionFactory']['registerDescriptionCallback'](_0x3949db=>{if('attribute'!=_0x3949db['type'])return;const {data:_0x21f05c}=_0x3949db;return _0x21f05c&&'sources'==_0x21f05c['key']?{'type':'format','content':''}:void 0x0;})),_0x5b2ae7['plugins']['has']('ImageSizeAttributes')&&(_0x3e43b8['registerBlockAttribute']('width'),_0x3e43b8['registerBlockAttribute']('height'),_0x3e43b8['descriptionFactory']['registerDescriptionCallback'](_0x346b2b=>{if('attribute'!=_0x346b2b['type'])return;const {data:_0x48da33}=_0x346b2b;return!_0x48da33||'width'!=_0x48da33['key']&&'height'!=_0x48da33['key']?void 0x0:{'type':'format','content':''};})),_0x3e43b8['descriptionFactory']['registerDescriptionCallback'](_0x295293=>{if(!!_0x10cd9f['find'](({type:_0x562fad,subType:_0x1f6830})=>_0x295293['type']==_0x562fad&&_0x295293['subType']==_0x1f6830))return _0x295293['previous']?{}:void 0x0;}),_0x3e43b8['descriptionFactory']['registerDescriptionCallback'](_0x36fc5c=>{if('insertion'==_0x36fc5c['type']||'deletion'==_0x36fc5c['type']){const _0x17e91b=_0x36fc5c['getContainedElement']();if(_0x17e91b&&_0x17e91b['is']('element','caption'))return{'type':'insertion'==_0x36fc5c['type']?'addObject':'removeObject','element':_0x17e91b,'quantity':0x1};}}),_0x3e43b8['descriptionFactory']['registerDescriptionCallback'](_0x30d8dc=>'formatBlock'==_0x30d8dc['type']&&'convertInlineImageToBlock'==_0x30d8dc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x30d8dc['type']&&'convertBlockImageToInline'==_0x30d8dc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3e43b8['descriptionFactory']['registerDescriptionCallback'](_0x107d52=>{if('attribute'!=_0x107d52['type'])return;const {data:_0x53590e}=_0x107d52;if(!_0x53590e||'alt'!=_0x53590e['key'])return;const _0x42cdef=_0x53590e['newValue'];return _0x42cdef?{'type':'format','content':c(_0x2ad550,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42cdef+'\x22')}:{'type':'format','content':c(_0x2ad550,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce7af=this['editor'],_0x263469=_0x4ce7af['locale'];_0x4ce7af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4f32=>{if('formatBlock'!=_0x5a4f32['type']&&'formatInline'!=_0x5a4f32['type'])return;const {data:_0x521409}=_0x5a4f32;if(_0x521409){if('imageTextAlternative'==_0x521409['commandName']){const _0x236bcf=_0x521409['commandParams'][0x0]['newValue'];return _0x236bcf?{'type':'format','content':c(_0x263469,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x236bcf+'\x22')}:{'type':'format','content':c(_0x263469,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x521409['commandName']){const _0x10bbe1=_0x521409['commandParams'][0x0]['width'];return _0x10bbe1?{'type':'format','content':c(_0x263469,'*Set\x20image\x20width:*\x20%0',_0x10bbe1)}:{'type':'format','content':c(_0x263469,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4a939c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x12550c=this['editor']['locale'],_0x2c80ef=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c80ef['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2c80ef['registerBlockAttribute']('src'),_0x2c80ef['descriptionFactory']['registerDescriptionCallback'](_0x59abe4=>{if('attribute'!=_0x59abe4['type'])return;const {data:_0x2cc6dd}=_0x59abe4;return _0x2cc6dd&&'src'==_0x2cc6dd['key']?_0x2cc6dd['newValue']&&_0x2cc6dd['oldValue']?{'type':'format','content':c(_0x12550c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x469282=this['editor']['plugins']['get']('TrackChangesEditing');_0x469282['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x469282['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x469282['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x469282['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b5763=this['editor'],_0x4e4505=_0x4b5763['locale'];_0x4b5763['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376270=>{if('formatBlock'!=_0x376270['type']&&'formatInline'!=_0x376270['type'])return;const {data:_0x2d0cdd}=_0x376270;if(!_0x2d0cdd||'replaceImageSource'!=_0x2d0cdd['commandName'])return;return{'type':'format','content':c(_0x4e4505,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4a939c{['afterInit'](){const _0x2b29b1=this['editor'];if(!_0x2b29b1['plugins']['has']('ImageStyleEditing'))return;const _0x78f1e3=_0x2b29b1['plugins']['get']('TrackChangesEditing'),_0x30f09b=_0x2b29b1['plugins']['get']('ImageUtils'),_0x577042={};_0x78f1e3['enableCommand']('imageStyle',(_0x3b499a,_0x32921a)=>{const _0x4394f8=_0x2b29b1['plugins']['get']('Users')['me'],_0x7317e=_0x2b29b1['commands']['get']('imageStyle');let _0x4cc622=_0x30f09b['getClosestSelectedImageElement'](_0x2b29b1['model']['document']['selection']),_0x26cf37=_0x2b29b1['model']['createRangeOn'](_0x4cc622),_0x56c76d=_0x7317e['value'];if(_0x56c76d==_0x32921a['value'])return;const _0x3ab1f7={'commandName':'imageStyle','commandParams':[_0x32921a],'formatGroupId':_0x3028ef()};_0x2b29b1['model']['change'](()=>{if(_0x78f1e3['getSuggestions']()['filter'](_0x7d1571=>_0x7d1571['isInContent']&&_0x4394f8==_0x7d1571['author']&&('formatBlock'==_0x7d1571['type']||'formatInline'==_0x7d1571['type'])&&('imageStylePreApply'==_0x7d1571['subType']||'imageStylePostApply'==_0x7d1571['subType'])&&_0x7d1571['getFirstRange']()['isEqual'](_0x26cf37))['forEach'](_0x11990e=>_0x78f1e3['discardSuggestion'](_0x11990e['head'])),_0x4cc622=_0x30f09b['getClosestSelectedImageElement'](_0x2b29b1['model']['document']['selection']),_0x26cf37=_0x2b29b1['model']['createRangeOn'](_0x4cc622),_0x7317e['refresh'](),_0x2b29b1['commands']['get']('imageTypeInline')['refresh'](),_0x2b29b1['commands']['get']('imageTypeBlock')['refresh'](),_0x56c76d=_0x7317e['value'],_0x56c76d!=_0x32921a['value'])return _0x30f09b['isInlineImage'](_0x4cc622)&&_0x7317e['shouldConvertImageType'](_0x32921a['value'],_0x4cc622)?(_0x3b499a({..._0x32921a,'setImageSizes':!0x1}),_0x4cc622=_0x30f09b['getClosestSelectedImageElement'](_0x2b29b1['model']['document']['selection']),void _0x78f1e3['markBlockFormat'](_0x4cc622,{..._0x3ab1f7,'commandReversedParams':[{'value':_0x56c76d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x30f09b['isBlockImage'](_0x4cc622)?_0x78f1e3['markBlockFormat'](_0x4cc622,_0x3ab1f7,[],'imageStylePostApply'):_0x78f1e3['markInlineFormat'](_0x26cf37,_0x3ab1f7,'imageStylePostApply'));});});for(const _0x9ce342 of _0x2b29b1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x577042[_0x9ce342['name']]=_0x9ce342['title']['toLowerCase']();_0x78f1e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x78f1e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x78f1e3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x78f1e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2dd1e0])=>{_0x30f09b['setImageNaturalSizeAttributes'](_0x2dd1e0['getContainedElement']());}),_0x78f1e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xf83b5f,_0x187624)=>{_0x78f1e3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xf83b5f,{'commandName':_0x187624['commandName'],'commandParams':_0x187624['commandReversedParams']});}),_0x78f1e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1e9943,_0x3efffb){if(_0x22322b(_0x1e9943,_0x3efffb))return[_0x1e9943,_0x3efffb];if(_0x22322b(_0x3efffb,_0x1e9943))return[_0x3efffb,_0x1e9943];return null;});const _0x56f548=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x22322b(_0x495588,_0x526815){const _0x387391=_0x56f548['findIndex'](({type:_0x289888,subType:_0x23b540})=>_0x495588['type']==_0x289888&&_0x495588['subType']==_0x23b540),_0x30f2d4=_0x56f548['findIndex'](({type:_0x36215f,subType:_0x2903d6})=>_0x526815['type']==_0x36215f&&_0x526815['subType']==_0x2903d6);if(_0x387391<0x0||_0x30f2d4<0x0)return!0x1;const _0x5d7ca1=_0x495588['getFirstRange'](),_0x39af00=_0x526815['getFirstRange']();if((0x0==_0x387391||0x1==_0x387391)&&0x2==_0x30f2d4&&_0x5d7ca1['isIntersecting'](_0x39af00))return!0x0;if(0x2==_0x387391&&0x3==_0x30f2d4){const _0xae092c=_0x78f1e3['_findSuggestions'](_0x5d7ca1,'insertion')['filter'](({suggestion:_0x11f656,meta:_0x3284a7})=>_0x3284a7['isOwn']&&'convertInlineImageToBlock'==_0x11f656['subType']);if(_0xae092c['length']>0x1&&_0x39af00['end']['isEqual'](_0x5d7ca1['start']))return!0x0;if(0x1==_0xae092c['length']&&(_0x5d7ca1['start']['isEqual'](_0x39af00['end'])||_0x5d7ca1['end']['isEqual'](_0x39af00['start'])))return!0x0;}if(0x3==_0x387391&&0x3==_0x30f2d4&&_0x5d7ca1['start']['isBefore'](_0x39af00['start'])){const _0x2cfa99=_0x5d7ca1['end']['nodeAfter'],_0x101c1d=_0x39af00['start']['nodeBefore'];return _0x30f09b['isBlockImage'](_0x2cfa99)&&_0x2cfa99===_0x101c1d;}return!0x1;}_0x2b29b1['model']['document']['registerPostFixer'](()=>{let _0x215ed8=!0x1;const _0x2ecae7=Array['from'](_0x2b29b1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x382204,data:_0x183475}of _0x2ecae7){const {group:_0x9272d0,type:_0x4d1203,subType:_0x2e377d,id:_0x30df17}=_0x78f1e3['_splitMarkerName'](_0x382204);if('suggestion'==_0x9272d0&&_0x78f1e3['hasSuggestion'](_0x30df17)){if('formatBlock'==_0x4d1203&&('imageStylePreApply'==_0x2e377d||'imageStylePostApply'==_0x2e377d)){const _0x332b48=_0x78f1e3['getSuggestion'](_0x30df17);if(_0x183475['newRange']){const _0x49b69c=_0x332b48['getFirstRange']()['getContainedElement']();if(_0x30f09b['isBlockImage'](_0x49b69c))continue;_0x78f1e3['discardSuggestion'](_0x332b48),_0x215ed8=!0x0;}}if('insertion'==_0x4d1203&&'imageCaption'==_0x2e377d&&!_0x183475['newRange']){const _0x3648e6=_0x78f1e3['getSuggestion'](_0x30df17);_0x3648e6['next']&&_0x3648e6['next']['isInContent']&&(_0x78f1e3['discardSuggestion'](_0x3648e6['next']),_0x215ed8=!0x0);}}}return _0x215ed8;}),this['_registerLegacyDescription'](_0x577042);}['_registerLegacyDescription'](_0x36b837){const _0x74fea=this['editor'],_0x5327f9=_0x74fea['locale'];_0x74fea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x132a55=>{if('formatBlock'!=_0x132a55['type']&&'formatInline'!=_0x132a55['type'])return;const {data:_0x328bd7}=_0x132a55;if(!_0x328bd7||'imageStyle'!=_0x328bd7['commandName'])return;const _0xf1d3dd=_0x328bd7['commandParams'][0x0]['value'];return _0x433ec9('side'===_0xf1d3dd?c(_0x5327f9,'FORMAT_SIDE_IMAGE'):_0x36b837[_0xf1d3dd]||_0xf1d3dd);function _0x433ec9(_0x334f69){return{'type':'format','content':c(_0x5327f9,'*Format:*\x20%0',_0x334f69)};}});}}class ut extends _0x4a939c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2d78dc){super(_0x2d78dc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xf045f3=this['editor'],_0x504d0b=_0xf045f3['commands']['get']('importWord'),_0x41f2e7=_0xf045f3['commands']['get']('trackChanges');_0x504d0b&&(_0x504d0b['on']('execute',(_0x467f1c,[,_0x4b5c10])=>{this['_trackChangesValueDuringImport']=_0x41f2e7['value'],_0x4b5c10['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x504d0b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x504d0b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x41f2e7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xf045f3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x443f03,_0x12fb27){const {suggestions:_0x3223a4}=_0x12fb27,_0x20a841=this['editor']['commands']['get']('trackChanges'),_0xe4339b=_0x20a841['value'];this['_trackChangesValueDuringImport']!==_0xe4339b&&(_0x20a841['execute'](),this['_trackChangesExecuted']=!0x0),_0x3223a4&&_0x3223a4['forEach'](({id:_0x9a3ed2,type:_0x16b48f,author:_0x1fea81,created_at:_0x3a7979})=>{const _0x5e2269={'id':_0x9a3ed2,'type':_0x16b48f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1fea81,'createdAt':_0x3a7979?new Date(_0x3a7979):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5e2269);});}}class ft extends _0x4a939c{['afterInit'](){const _0x4a1e9d=this['editor'],_0x40919b=_0x4a1e9d['plugins']['get']('TrackChangesEditing');if(_0x4a1e9d['plugins']['has']('IndentEditing')&&(_0x40919b['enableCommand']('indent'),_0x40919b['enableCommand']('outdent')),_0x4a1e9d['plugins']['has']('IndentBlock')){for(const _0x4ae0ab of['indentBlock','outdentBlock'])_0x40919b['enableDefaultAttributesIntegration'](_0x4ae0ab);}const _0x12879e=_0x4a1e9d['locale'];_0x40919b['registerBlockAttribute']('blockIndent'),_0x40919b['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x12879e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11c4f1=this['editor'],_0x21cacf=_0x11c4f1['locale'],_0x285468=_0x11c4f1['plugins']['get']('TrackChangesEditing');_0x285468['descriptionFactory']['registerDescriptionCallback'](_0x2bc9e1=>{if('formatBlock'!=_0x2bc9e1['type'])return;const {data:_0x2de662}=_0x2bc9e1;if(!_0x2de662)return;if('indentBlock'!=_0x2de662['commandName']&&'outdentBlock'!=_0x2de662['commandName'])return;const _0x3c0191=_0x2bc9e1['getItems']()[0x0],_0x77c1ec=_0x285468['descriptionFactory']['getItemLabel'](_0x3c0191);return'indentBlock'==_0x2de662['commandName']?{'type':'format','content':c(_0x21cacf,'*Indent:*\x20%0',_0x77c1ec)}:'outdentBlock'==_0x2de662['commandName']?{'type':'format','content':c(_0x21cacf,'*Outdent:*\x20%0',_0x77c1ec)}:void 0x0;});}}class ht extends _0x4a939c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4a939c{['afterInit'](){const _0x8d92c5=this['editor'];if(!_0x8d92c5['plugins']['has']('LinkEditing'))return;const _0x3b4c3e=_0x8d92c5['plugins']['get']('TrackChangesEditing'),_0x126b08=_0x8d92c5['commands']['get']('link');_0x3b4c3e['enableDefaultAttributesIntegration']('link'),_0x3b4c3e['enableDefaultAttributesIntegration']('unlink'),_0x3b4c3e['registerInlineAttribute']('linkHref');for(const _0x7e1403 of _0x126b08['manualDecorators'])_0x3b4c3e['registerInlineAttribute'](_0x7e1403['id']),_0x3b4c3e['descriptionFactory']['registerAttributeLabel'](_0x7e1403['id'],'link\x20('+_0x7e1403['label']['toLowerCase']()+')');_0x3b4c3e['descriptionFactory']['registerDescriptionCallback'](_0x32758a=>{if('attribute'!=_0x32758a['type'])return;const {data:_0x272700}=_0x32758a;if(!_0x272700||'linkHref'!=_0x272700['key'])return;const _0x5463c0=_0x272700['newValue'],_0x5024c6=_0x8d92c5['locale'];return{'type':'format','content':null==_0x5463c0?c(_0x5024c6,'*Remove\x20link*'):c(_0x5024c6,'*Set\x20link:*\x20%0','\x22'+_0x5463c0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25ff0a=this['editor'],_0x2d9603=_0x25ff0a['locale'];_0x25ff0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38cc5f=>{if('formatInline'!=_0x38cc5f['type'])return;const {data:_0x4e8504}=_0x38cc5f;if(_0x4e8504){if('link'==_0x4e8504['commandName']){const _0x3295e4=_0x4e8504['commandParams'][0x0];return{'type':'format','content':c(_0x2d9603,'*Set\x20link:*\x20%0','\x22'+_0x3295e4+'\x22')};}return'unlink'==_0x4e8504['commandName']?{'type':'format','content':c(_0x2d9603,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4a939c{['afterInit'](){const _0x5b4cf2=this['editor'],_0x508744=_0x5b4cf2['locale'];if(!_0x5b4cf2['plugins']['has']('LegacyListEditing'))return;const _0x1b0624=_0x5b4cf2['plugins']['get']('TrackChangesEditing'),_0x2db405=_0x5b4cf2['plugins']['has']('LegacyTodoListEditing');function _0x4dc73f(_0x389d8a){return()=>{const _0x2bab07=_0x5b4cf2['model']['document']['selection'],_0x5ac041=_0x5b4cf2['commands']['get'](_0x389d8a);if(_0x5ac041['value'])return void _0x5b4cf2['execute']('paragraph',{});const _0x118595=_0x389d8a['slice'](0x0,-0x4),_0x4208a2=function(_0x14bdb3,_0x383f84,_0x1def26){let _0x30e44c=Array['from'](_0x14bdb3)['filter'](_0x5db629=>function(_0x27be69,_0x4b11ba){return _0x4b11ba['checkChild'](_0x27be69['parent'],'listItem')&&!_0x4b11ba['isObject'](_0x27be69);}(_0x5db629,_0x1def26));_0x30e44c=_0x30e44c['filter'](_0x8d8518=>!_0x8d8518['is']('element','listItem')||_0x8d8518['getAttribute']('listType')!=_0x383f84);const _0x3e5682=new Set();for(const _0x56a1cd of _0x30e44c)_0x56a1cd['is']('element','listItem')?_0x3e5682['add'](Le(_0x56a1cd)):_0x3e5682['add'](_0x56a1cd);return Array['from'](_0x3e5682);}(_0x2bab07['getSelectedBlocks'](),_0x118595,_0x5b4cf2['model']['schema']);_0x5b4cf2['model']['change'](()=>{for(const _0x2a9f7d of _0x4208a2)_0x1b0624['markBlockFormat'](_0x2a9f7d,{'commandName':_0x389d8a,'commandParams':[{'forceValue':!_0x5ac041['value']}],'formatGroupId':'blockName'},Ee(_0x2a9f7d));});};}function _0x1eb849(_0x588f7c){return()=>{const _0x2a8c31=function(_0x1c6df1){let _0x2b276e=Array['from'](_0x1c6df1);const _0x2e3466=_0x2b276e['findIndex'](_0x224675=>'listItem'!=_0x224675['name']);return _0x2e3466>-0x1&&(_0x2b276e=_0x2b276e['slice'](0x0,_0x2e3466)),_0x2b276e;}(_0x5b4cf2['model']['document']['selection']['getSelectedBlocks']()),_0x3d6a0c=_0x5b4cf2['model']['createRange'](_0x5b4cf2['model']['createPositionAt'](_0x2a8c31[0x0],'before'),_0x5b4cf2['model']['createPositionAt'](_0x2a8c31[_0x2a8c31['length']-0x1],'end'));_0x5b4cf2['model']['change'](()=>{_0x1b0624['markBlockFormat'](_0x3d6a0c,{'commandName':_0x588f7c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x22ce1e){const _0x10c85=new Set();for(const _0x519be4 of _0x22ce1e){let _0x2fe2a4=_0x519be4['nextSibling'];for(;_0x2fe2a4&&_0x2fe2a4['getAttribute']('listIndent')>_0x519be4['getAttribute']('listIndent');)_0x10c85['add'](_0x2fe2a4),_0x2fe2a4=_0x2fe2a4['nextSibling'];}return Array['from'](_0x10c85);}(_0x2a8c31));});};}_0x1b0624['enableCommand']('numberedList',_0x4dc73f('numberedList')),_0x1b0624['enableCommand']('bulletedList',_0x4dc73f('bulletedList')),_0x2db405&&_0x1b0624['enableCommand']('todoList',_0x4dc73f('todoList')),_0x1b0624['enableCommand']('indentList',_0x1eb849('indentList')),_0x1b0624['enableCommand']('outdentList',_0x1eb849('outdentList')),_0x2db405&&_0x1b0624['enableCommand']('checkTodoList',()=>{const _0x11ee36=_0x5b4cf2['commands']['get']('checkTodoList'),_0x18cbab=Array['from'](_0x11ee36['_selectedElements']);_0x18cbab['filter'](_0xf46d8=>_0xf46d8['getAttribute']('todoListChecked')!=_0x11ee36['value']),_0x5b4cf2['model']['change'](()=>{for(const _0x130db9 of _0x18cbab)_0x1b0624['markBlockFormat'](_0x130db9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x11ee36['value']}]});});}),_0x1b0624['descriptionFactory']['registerElementLabel']('listItem',_0x425ef5=>c(_0x508744,'ELEMENT_LIST_ITEM',_0x425ef5)),_0x1b0624['descriptionFactory']['registerDescriptionCallback'](_0x3c83ff=>{if('formatBlock'!=_0x3c83ff['type']&&'formatInline'!=_0x3c83ff['type'])return;const {data:_0x251b47}=_0x3c83ff;if(_0x251b47){if('numberedList'==_0x251b47['commandName']||'bulletedList'==_0x251b47['commandName']||'todoList'==_0x251b47['commandName'])switch(_0x251b47['commandName']['replace']('List','')){case'bulleted':return _0x20ce6b(c(_0x508744,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20ce6b(c(_0x508744,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20ce6b(c(_0x508744,'ELEMENT_TODO_LIST'));}if('indentList'==_0x251b47['commandName'])return{'type':'format','content':c(_0x508744,'*Indent:*\x20%0',c(_0x508744,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x251b47['commandName'])return{'type':'format','content':c(_0x508744,'*Outdent:*\x20%0',c(_0x508744,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x251b47['commandName'])return _0x251b47['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x508744,'*Check\x20item*')}:{'type':'format','content':c(_0x508744,'*Uncheck\x20item*')};}function _0x20ce6b(_0x3fefb7){return{'type':'format','content':c(_0x508744,'*Change\x20to:*\x20%0',_0x3fefb7)};}});}}function Le(_0x2cd4be){const _0x53966d=_0x2cd4be['getAttribute']('listIndent');if(0x0==_0x53966d)return _0x2cd4be;let _0x5b3137=_0x2cd4be;for(;_0x2cd4be['previousSibling']&&_0x2cd4be['previousSibling']['is']('element','listItem');){const _0x238dac=_0x2cd4be['previousSibling']['getAttribute']('listIndent');if(_0x238dac==_0x53966d)_0x5b3137=_0x2cd4be['previousSibling'];else{if(_0x238dac<_0x53966d)break;}_0x2cd4be=_0x2cd4be['previousSibling'];}return _0x5b3137;}function Ee(_0x3d084f){const _0x4ef676=[];if(_0x3d084f['is']('element','listItem')&&_0x3d084f['getAttribute']('listIndent')>0x0){let _0x5ba2c9=_0x3d084f['nextSibling'];for(;_0x5ba2c9&&'listItem'==_0x5ba2c9['name']&&_0x5ba2c9['getAttribute']('listIndent')==_0x3d084f['getAttribute']('listIndent');)_0x4ef676['push'](_0x5ba2c9),_0x5ba2c9=_0x5ba2c9['nextSibling'];}return _0x4ef676;}class Q extends _0x4a939c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14f9f8=this['editor']['config']['get']('list.properties'),_0xb34a00=this['editor']['plugins']['get']('TrackChangesEditing');_0x14f9f8['styles']&&_0xb34a00['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14f9f8['reversed']&&_0xb34a00['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14f9f8['startIndex']&&_0xb34a00['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xb34a00['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2f1d7f,_0x3269f7={}){const _0x3210a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b9ec2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3210a8['markMultiRangeBlockFormat'](_0x3b9ec2,{'commandName':'listStyle','commandParams':[{'type':_0x3269f7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4cacc5,_0x1e0f69={}){const _0x17d686=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5bdc=this['_getSuggestionBlocks'](_0x1ed94a=>_0x1ed94a['is']('element','listItem')&&'numbered'===_0x1ed94a['getAttribute']('listType'));if(_0x3d5bdc['length']<0x1)return;const _0x3692a0=_0x3d5bdc['map'](_0x25124e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25124e,'before'),this['editor']['model']['createPositionAt'](_0x25124e,0x0)));this['editor']['model']['change'](()=>{_0x17d686['markMultiRangeBlockFormat'](_0x3692a0,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e0f69['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x16f703,_0x5a34f5={}){const _0x23c21f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40c9ee=this['_getSuggestionBlocks'](_0x3b303a=>_0x3b303a['is']('element','listItem')&&'numbered'===_0x3b303a['getAttribute']('listType'));if(_0x40c9ee['length']<0x1)return;const _0x143d61=_0x40c9ee['map'](_0x156e29=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x156e29,'before'),this['editor']['model']['createPositionAt'](_0x156e29,0x0)));this['editor']['model']['change'](()=>{_0x23c21f['markMultiRangeBlockFormat'](_0x143d61,{'commandName':'listStart','commandParams':[{'startIndex':_0x5a34f5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1b4051){if('formatBlock'!=_0x1b4051['type']&&'formatInline'!=_0x1b4051['type'])return;const _0x550ec2=this['editor']['locale'],{data:_0x578edd}=_0x1b4051;if(!_0x578edd)return;let _0x4f02d9,_0x3cc6d8;switch(_0x578edd['commandName']){case'listStyle':_0x4f02d9='*Change\x20to:*\x20%0',_0x3cc6d8={'type':'format','content':c(_0x550ec2,_0x4f02d9,c(_0x550ec2,this['_getTranslationKeyForListStyle'](_0x578edd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f02d9=_0x578edd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cc6d8={'type':'format','content':c(_0x550ec2,_0x4f02d9)};break;case'listStart':_0x4f02d9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cc6d8={'type':'format','content':c(_0x550ec2,_0x4f02d9,_0x578edd['commandParams'][0x0]['startIndex'])};}return _0x3cc6d8;}['_getSuggestionBlocksForListStyle'](){const _0x3e8e8c=this['editor']['plugins']['get']('LegacyListUtils');let _0x568df5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x568df5[0x0]?.['is']('element','listItem')&&_0x568df5['unshift'](..._0x3e8e8c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x568df5[_0x568df5['length']-0x1]?.['is']('element','listItem')&&_0x568df5['push'](..._0x3e8e8c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x568df5=[...new Set(_0x568df5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x568df5=_0x568df5['filter'](_0x220a5f=>_0x220a5f['is']('element','listItem'))),_0x568df5;}['_getSuggestionBlocks'](_0x53b1c9){const _0x450166=this['editor']['plugins']['get']('LegacyListUtils');let _0x277b2a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x53b1c9)['map'](_0x323c8d=>{const _0x441c8f=this['editor']['model']['createPositionAt'](_0x323c8d,0x0);return[..._0x450166['getSiblingNodes'](_0x441c8f,'backward'),..._0x450166['getSiblingNodes'](_0x441c8f,'forward')];})['flat']();return _0x277b2a=[...new Set(_0x277b2a)],_0x277b2a;}['_getTranslationKeyForListStyle'](_0x1c2972){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1c2972)||'default')['toUpperCase']()+'_LIST_'+_0x1c2972['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4a939c{['afterInit'](){const _0x34ea8d=this['editor'];if(!_0x34ea8d['plugins']['has']('MediaEmbedEditing'))return;const _0x585d13=_0x34ea8d['plugins']['get']('TrackChangesEditing'),_0x30f984=_0x34ea8d['locale'];_0x585d13['enableCommand']('mediaEmbed'),_0x585d13['descriptionFactory']['registerElementLabel']('media',_0x4adfbd=>c(_0x30f984,'ELEMENT_MEDIA',_0x4adfbd)),_0x34ea8d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2d9e71,{writer:_0x5c5b26,options:_0x5dfd28})=>{if(_0x5dfd28['showSuggestionHighlights'])return _0x5c5b26['createEmptyElement']('div');},'converterPriority':'high'}),_0x34ea8d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2f5a89,_0xdb73c9,_0x3d5836)=>{_0x3d5836['options']['showSuggestionHighlights']&&_0x2f5a89['stop']();},{'priority':'high'});}}class pt extends _0x4a939c{['afterInit'](){const _0x4a9486=this['editor'];_0x4a9486['plugins']['has']('MentionEditing')&&_0x4a9486['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4a939c{['afterInit'](){const _0x1200c1=this['editor'];if(!_0x1200c1['plugins']['has']('MergeFieldsEditing'))return;const _0xde43aa=_0x1200c1['plugins']['get']('TrackChangesEditing'),_0x416363=_0x1200c1['locale'];_0xde43aa['enableCommand']('insertMergeField'),_0xde43aa['enableCommand']('insertMergeFieldBlock'),_0xde43aa['enableCommand']('insertMergeFieldImage'),_0xde43aa['descriptionFactory']['registerElementLabel']('mergeField',_0x29550c=>c(_0x416363,'ELEMENT_MERGE_FIELD',_0x29550c)),_0xde43aa['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c9a74=>c(_0x416363,'ELEMENT_MERGE_FIELD',_0x5c9a74)),_0xde43aa['descriptionFactory']['registerDescriptionCallback'](_0x34db04=>{if('insertion'!=_0x34db04['type']&&'deletion'!=_0x34db04['type'])return;const _0x56c321=_0x34db04['getContainedElement']();if(null==_0x56c321)return;const _0x1781ca=_0x1200c1['plugins']['get']('MergeFieldsEditing');let _0x415360;switch(_0x1781ca['getMergeFieldType'](_0x56c321)){case null:return;case'image':{const _0x236661=_0x1781ca['unwrapAffixes'](_0x56c321['getAttribute']('src'));_0x415360=_0x1781ca['getLabel'](_0x236661)||_0x236661;break;}default:{const _0x3034a7=_0x56c321['getAttribute']('id');_0x415360=_0x1781ca['getLabel'](_0x3034a7)||_0x3034a7;break;}}return'insertion'==_0x34db04['type']?{'type':'insertion','content':c(_0x416363,'*Insert:*\x20%0','\x22'+_0x415360+'\x22\x20'+c(_0x416363,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x416363,'*Remove:*\x20%0','\x22'+_0x415360+'\x22\x20'+c(_0x416363,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4a939c{['afterInit'](){const _0x29bbc2=this['editor'],_0x6d8b0a=_0x29bbc2['plugins']['get']('TrackChangesEditing');_0x29bbc2['plugins']['has']('MultiLevelList')&&(_0x6d8b0a['enableDefaultAttributesIntegration']('multiLevelList'),_0x6d8b0a['registerBlockAttribute']('listMarkerStyle'),_0x6d8b0a['descriptionFactory']['registerDescriptionCallback'](_0x2848b5=>this['handleDescriptions'](_0x2848b5)));}['handleDescriptions'](_0x18b066){const _0x39c91b=this['editor']['locale'],{data:_0x4a5007}=_0x18b066,_0x32956f={'type':'format','content':''};if(_0x4a5007&&'listMarkerStyle'==_0x4a5007['key']){if(!_0x4a5007['oldValue'])return{'type':'format','content':c(_0x39c91b,'*Set\x20format:*\x20%0',c(_0x39c91b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4a5007['newValue']+')'};if(!_0x4a5007['newValue']){let _0x3fb2a6=_0x18b066['head'];for(;_0x3fb2a6;){if(_0x3fb2a6['data']&&'listType'==_0x3fb2a6['data']['key']&&_0x3fb2a6['data']['newValue'])return _0x32956f;_0x3fb2a6=_0x3fb2a6['next'];}return{'type':'format','content':c(_0x39c91b,'*Remove\x20format:*\x20%0',c(_0x39c91b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4a5007['oldValue']+')'};}}}}class bt extends _0x4a939c{['afterInit'](){const _0x236904=this['editor'];if(!_0x236904['plugins']['has']('PageBreakEditing'))return;_0x236904['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x373bf9=_0x236904['plugins']['get']('TrackChangesEditing'),_0x30a3cf=_0x236904['locale'];_0x373bf9['descriptionFactory']['registerElementLabel']('pageBreak',_0x3be445=>c(_0x30a3cf,'ELEMENT_PAGE_BREAK',_0x3be445));}}class yt extends _0x4a939c{['afterInit'](){const _0x3d8e35=this['editor'];if(!_0x3d8e35['plugins']['has']('Paragraph'))return;const _0x556a54=_0x3d8e35['locale'],_0x289a5d=_0x3d8e35['plugins']['get']('TrackChangesEditing');_0x289a5d['descriptionFactory']['registerElementLabel']('paragraph',_0x3e2417=>c(_0x556a54,'ELEMENT_PARAGRAPH',_0x3e2417)),_0x289a5d['enableDefaultAttributesIntegration']('paragraph'),_0x289a5d['enableCommand']('insertParagraph'),_0x3d8e35['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3d8e35),{'priority':'highest'}),_0x3d8e35['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5aff2a,_0x3809e3,_0x3a047e)=>{_0x3a047e['options']['showSuggestionHighlights']&&nr(_0x3d8e35,{'showActiveMarker':!0x1})(_0x5aff2a,_0x3809e3,_0x3a047e);},{'priority':'highest'});const _0x39ab62=_0x289a5d['descriptionFactory'];_0x39ab62['registerDescriptionCallback'](_0x3524f5=>{if('insertion'!==_0x3524f5['type'])return;const {start:_0x526ae8,end:_0x14cce8}=_0x3524f5['getFirstRange']();if(!_0x526ae8['isTouching'](_0x14cce8)||!_0x526ae8['nodeAfter'])return;const _0x3effa0=_0x3d8e35['model']['schema'],_0x4e79c8=_0x526ae8['nodeAfter'];return _0x3effa0['isBlock'](_0x4e79c8)&&!_0x3effa0['isLimit'](_0x4e79c8)&&_0x3effa0['checkChild'](_0x4e79c8,'$text')?{'type':'insertion','content':c(_0x556a54,'*Insert:*\x20%0',_0x39ab62['getItemLabel'](_0x4e79c8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15b0bc=this['editor'],_0x364102=_0x15b0bc['locale'];_0x15b0bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x588485=>{if('formatBlock'!=_0x588485['type'])return;const {data:_0x24d4df}=_0x588485;return _0x24d4df&&'paragraph'==_0x24d4df['commandName']?{'type':'format','content':c(_0x364102,'*Change\x20to:*\x20%0',c(_0x364102,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1f3cbe,{showActiveMarker:_0x31c53f=!0x0}={}){return(_0x3e109b,_0x18a44e,_0x5499ce)=>{const _0xdf8cc3=_0x1f3cbe['plugins']['get']('TrackChangesEditing'),_0x3a78e8=_0x18a44e['markerRange']['start'],_0x394bc7=_0x18a44e['markerRange']['end'],_0x27723f=_0x1f3cbe['model']['schema'];if(!_0x3a78e8['isTouching'](_0x394bc7)||!_0x3a78e8['nodeAfter'])return;const _0x16f125=_0x3a78e8['nodeAfter'];if(_0x27723f['isBlock'](_0x16f125)&&!_0x27723f['isLimit'](_0x16f125)&&_0x27723f['checkChild'](_0x16f125,'$text')){if(!_0x5499ce['consumable']['consume'](_0x18a44e['markerRange'],_0x3e109b['name']))return;const {authorId:_0x38fa10}=_0xdf8cc3['_splitMarkerName'](_0x18a44e['markerName']),_0x5e598c=_0x5499ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x38fa10}),_0x30d331=_0x5499ce['mapper']['toViewPosition'](_0x394bc7);_0x31c53f&&_0xdf8cc3['activeMarkers']['includes'](_0x18a44e['markerName'])&&_0x5499ce['writer']['addClass']('ck-suggestion-marker--active',_0x5e598c),_0x5499ce['writer']['insert'](_0x30d331,_0x5e598c),_0x5499ce['mapper']['bindElementToMarker'](_0x5e598c,_0x18a44e['markerName']);}};}class jt extends _0x4a939c{['afterInit'](){const _0x4714f1=this['editor'];_0x4714f1['commands']['get']('replaceSource')&&_0x4714f1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4a939c{['afterInit'](){const _0x3a8efe=this['editor'];if(!_0x3a8efe['plugins']['has']('RemoveFormatEditing'))return;_0x3a8efe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39ff57=this['editor'];_0x39ff57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17e17c=>{if('formatBlock'!=_0x17e17c['type']&&'formatInline'!=_0x17e17c['type'])return;const {data:_0x3e7975}=_0x17e17c;return _0x3e7975&&'removeFormat'==_0x3e7975['commandName']?{'type':'format','content':c(_0x39ff57['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x4a939c{['afterInit'](){const _0x176a5a=this['editor'];if(!_0x176a5a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x384a64=_0x176a5a['plugins']['get']('TrackChangesEditing');_0x384a64['enableCommand']('goToPreviousRestrictedEditingException'),_0x384a64['enableCommand']('goToNextRestrictedEditingException');const _0x5bf7e5=_0x176a5a['plugins']['get']('RestrictedEditingModeEditing');_0x5bf7e5['enableCommand']('trackChanges'),_0x5bf7e5['enableCommand']('acceptSuggestion'),_0x5bf7e5['enableCommand']('discardSuggestion'),_0x5bf7e5['enableCommand']('acceptAllSuggestions'),_0x5bf7e5['enableCommand']('discardAllSuggestions'),_0x5bf7e5['enableCommand']('acceptSelectedSuggestions'),_0x5bf7e5['enableCommand']('discardSelectedSuggestions');}}class It extends _0x4a939c{['afterInit'](){const _0x1c2d28=this['editor'];if(!_0x1c2d28['plugins']['has']('ShiftEnter'))return;const _0x50cf7a=_0x1c2d28['plugins']['get']('TrackChangesEditing');_0x50cf7a['enableCommand']('shiftEnter'),_0x1c2d28['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1c2d28),{'priority':'high'}),_0x1c2d28['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1c2d28),{'priority':'high'}),_0x1c2d28['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x151c11,_0x463138,_0x10f544)=>{_0x10f544['options']['showSuggestionHighlights']&&je(_0x1c2d28,{'showActiveMarker':!0x1})(_0x151c11,_0x463138,_0x10f544);}),_0x50cf7a['descriptionFactory']['registerElementLabel']('softBreak',_0x1c90be=>c(_0x1c2d28['locale'],'ELEMENT_LINE_BREAK',_0x1c90be));}}function je(_0x19c754,{showActiveMarker:_0x2a2f5b=!0x0}={}){return(_0xa79346,_0x3e79c6,_0x296197)=>{const _0x3465cb=_0x19c754['plugins']['get']('TrackChangesEditing');if(!_0x296197['consumable']['test'](_0x3e79c6['markerRange'],_0xa79346['name']))return;const _0x1a5077=_0x19c754['model'];for(const _0x691fff of _0x3e79c6['markerRange']['getItems']()){if(!_0x691fff['is']('element','softBreak'))continue;const _0x177f4e='deletion'==_0x3e79c6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1a4f68}=_0x3465cb['_splitMarkerName'](_0x3e79c6['markerName']),_0x2b57d4=_0x296197['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x177f4e,'data-author-id':_0x1a4f68}),_0x3d2a69=_0x296197['mapper']['toViewPosition'](_0x1a5077['createPositionBefore'](_0x691fff));_0x2a2f5b&&_0x3465cb['activeMarkers']['includes'](_0x3e79c6['markerName'])&&_0x296197['writer']['addClass']('ck-suggestion-marker--active',_0x2b57d4),_0x296197['writer']['insert'](_0x3d2a69,_0x2b57d4),_0x296197['mapper']['bindElementToMarker'](_0x2b57d4,_0x3e79c6['markerName']);}};}class _t extends _0x4a939c{['afterInit'](){const _0x161e63=this['editor'],_0x6a40c2=_0x161e63['model'],_0x4ef047=_0x161e63['locale'];if(!_0x161e63['plugins']['has']('StandardEditingModeEditing'))return;const _0x4ccec7=_0x161e63['plugins']['get']('TrackChangesEditing'),_0x407cca='restrictedEditingException',_0x8877a4=_0x161e63['commands']['get'](_0x407cca);_0x4ccec7['enableCommand'](_0x407cca,(_0x2dee1b,_0x1ba5e1={})=>{const _0x3b88d4=_0x6a40c2['document']['selection'];if(_0x3b88d4['isCollapsed'])return void _0x2dee1b(_0x1ba5e1);const _0x4144dc=void 0x0!==_0x1ba5e1['forceValue']?_0x1ba5e1['forceValue']:!_0x8877a4['value'];_0x6a40c2['change'](()=>{const _0x5d1939=Array['from'](_0x3b88d4['getRanges']());for(const _0xda67ef of _0x5d1939){const _0x57410b=_0x4144dc?[_0xda67ef]:io(_0x407cca,_0xda67ef,_0x6a40c2);for(const _0x75e6aa of _0x57410b)_0x4ccec7['markInlineFormat'](_0x75e6aa,{'commandName':_0x407cca,'commandParams':[{'forceValue':_0x4144dc}]});}});}),_0x4ccec7['descriptionFactory']['registerDescriptionCallback'](_0x29cffd=>{if('formatBlock'!=_0x29cffd['type']&&'formatInline'!=_0x29cffd['type'])return;const {data:_0x2992ad}=_0x29cffd;return _0x2992ad&&_0x2992ad['commandName']==_0x407cca?_0x2992ad['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ef047,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4ef047,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x4a939c{['afterInit'](){const _0xe18d25=this['editor'];if(!_0xe18d25['plugins']['has']('Style')||!_0xe18d25['plugins']['has']('DataSchema'))return;const _0x5bef9a=_0xe18d25['plugins']['get']('TrackChangesEditing'),_0x27ebd0=_0xe18d25['locale'],_0x3a76b7=_0xe18d25['config']['get']('style')||{},_0x3fad1c=_0xe18d25['plugins']['get']('GeneralHtmlSupport'),_0x14ad26=_0xe18d25['plugins']['get']('StyleUtils')['normalizeConfig'](_0xe18d25['plugins']['get']('DataSchema'),_0x3a76b7['definitions']);_0x5bef9a['enableDefaultAttributesIntegration']('style');const _0x4b4703=new Set();for(const _0x57415a of _0x14ad26['block']){const _0x12892e=_0x3fad1c['getGhsAttributeNameForElement'](_0x57415a['element']);_0x4b4703['add'](_0x12892e);}const _0x89e931=new Set();for(const _0x126e7c of _0x14ad26['inline']){const _0x41206a=_0x3fad1c['getGhsAttributeNameForElement'](_0x126e7c['element']);_0x89e931['add'](_0x41206a);for(const _0x38a153 of _0x126e7c['ghsAttributes'])_0x89e931['add'](_0x38a153);}for(const _0x1d3e2b of _0x4b4703)_0x5bef9a['registerBlockAttribute'](_0x1d3e2b),_0x5bef9a['descriptionFactory']['registerAttributeLabel'](_0x1d3e2b,c(_0x27ebd0,'FORMAT_STYLE'));for(const _0x3a5e98 of _0x89e931)_0x5bef9a['registerInlineAttribute'](_0x3a5e98),_0x5bef9a['descriptionFactory']['registerAttributeLabel'](_0x3a5e98,c(_0x27ebd0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfeb36a=this['editor'],_0x4432cc=_0xfeb36a['locale'];_0xfeb36a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6e44=>{if('formatBlock'!=_0x4b6e44['type']&&'formatInline'!=_0x4b6e44['type'])return;const {data:_0xf3f9c7}=_0x4b6e44;return _0xf3f9c7&&'style'===_0xf3f9c7['commandName']?_0xf3f9c7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4432cc,'*Set\x20format:*\x20%0',_0xf3f9c7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4432cc,'*Remove\x20format:*\x20%0',_0xf3f9c7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x4a939c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e1c54){super(_0x4e1c54),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41cfc3=this['editor'],_0x3d7a76=_0x41cfc3['model']['document']['selection'];if(!_0x41cfc3['plugins']['has']('TableEditing'))return;const _0x1a59b5=_0x41cfc3['locale'],_0x1516f7=_0x41cfc3['plugins']['get']('TrackChangesEditing'),_0x30869d=_0x41cfc3['plugins']['get']('TableUtils');_0x1516f7['descriptionFactory']['registerElementLabel']('table',_0x58a47d=>c(_0x1a59b5,'ELEMENT_TABLE',_0x58a47d)),this['_setupColumnsRowsFixing'](),_0x1516f7['enableCommand']('insertTable'),_0x1516f7['enableCommand']('selectTableRow'),_0x1516f7['enableCommand']('selectTableColumn');for(const _0x51ac37 of['insertTableRowAbove','insertTableRowBelow']){const _0x4f3c45=_0x41cfc3['commands']['get'](_0x51ac37);_0x1516f7['enableCommand'](_0x51ac37,_0x11ef01=>{_0x41cfc3['model']['change'](_0x204aac=>{_0x11ef01();const _0x36a20d='above'===_0x4f3c45['order'],_0x524e0c=_0x30869d['getSelectionAffectedTableCells'](_0x3d7a76),_0x18506d=_0x30869d['getRowIndexes'](_0x524e0c),_0x2851ef=_0x36a20d?_0x18506d['first']-0x1:_0x18506d['last']+0x1,_0x339705=_0x524e0c[0x0]['findAncestor']('table'),_0xbcb618=_0x30869d['createTableWalker'](_0x339705,{'startRow':_0x2851ef,'endRow':_0x2851ef}),_0x257e8c=Array['from'](_0xbcb618)['map'](_0x275d42=>_0x204aac['createRangeOn'](_0x275d42['cell']));_0x1516f7['markMultiRangeInsertion'](_0x257e8c,'tableRow');});});}for(const _0x16327e of['insertTableColumnLeft','insertTableColumnRight']){const _0x3dcc6c=_0x41cfc3['commands']['get'](_0x16327e);_0x1516f7['enableCommand'](_0x16327e,_0x54c7ca=>{_0x41cfc3['model']['change'](_0x528cc9=>{_0x54c7ca();const _0x3cacb1='left'===_0x3dcc6c['order'],_0x2a3bc2=_0x30869d['getSelectionAffectedTableCells'](_0x3d7a76),_0x34ea38=_0x30869d['getColumnIndexes'](_0x2a3bc2),_0x3ce6f6=_0x3cacb1?_0x34ea38['first']-0x1:_0x34ea38['last']+0x1,_0x41f991=_0x2a3bc2[0x0]['findAncestor']('table'),_0x5ca985=_0x30869d['createTableWalker'](_0x41f991,{'startRow':0x0,'column':_0x3ce6f6,'includeAllSlots':!0x1}),_0x2f0aee=Array['from'](_0x5ca985)['map'](_0x2f56e2=>_0x528cc9['createRangeOn'](_0x2f56e2['cell']));_0x1516f7['markMultiRangeInsertion'](_0x2f0aee,'tableColumn');});});}for(const _0x580ffd of['removeTableRow','removeTableColumn']){const _0x25c82f=_0x580ffd['substr'](0xb),_0x58d194=_0x25c82f['toLowerCase'](),_0x2d28c5=_0x58d194['substr'](0x0,0x3)+'span',_0x6a1dd5='table'+_0x25c82f,_0x301bbe='min'+_0x25c82f,_0x274ed0='max'+_0x25c82f;_0x1516f7['enableCommand'](_0x580ffd,()=>{_0x41cfc3['model']['change'](_0x8c5e39=>{const _0x42b89f=_0x30869d['getSelectionAffectedTableCells'](_0x3d7a76),_0x3cf01a=_0x42b89f[0x0]['findAncestor']('table');let _0x587461;if('removeTableRow'==_0x580ffd){const _0x33f5c8=_0x30869d['getRowIndexes'](_0x42b89f);_0x587461={'startRow':_0x33f5c8['first'],'endRow':_0x33f5c8['last'],'includeAllSlots':!0x0};}else{const _0x5ba274=_0x30869d['getColumnIndexes'](_0x42b89f);_0x587461={'startColumn':_0x5ba274['first'],'endColumn':_0x5ba274['last'],'includeAllSlots':!0x0};}const _0x563145=_0x30869d['createTableWalker'](_0x3cf01a,_0x587461),_0x2bcddd=Array['from'](_0x563145)['map'](({cell:_0x4e60c8})=>_0x4e60c8),_0xc55a78=Ne(_0x2bcddd['filter'](_0x299f1a=>_0x299f1a['hasAttribute'](_0x2d28c5))),_0x37c5ad=Ne(_0x2bcddd['filter'](_0x127a6c=>!_0x127a6c['hasAttribute'](_0x2d28c5)))['map'](_0x2aee1e=>_0x8c5e39['createRangeOn'](_0x2aee1e)),_0x31ae97=_0x1516f7['markMultiRangeDeletion'](_0x37c5ad,_0x6a1dd5);if(_0x31ae97&&('tableRow'==_0x31ae97['subType']||'tableColumn'==_0x31ae97['subType'])){const _0x210fe2=this['_getSuggestionCoords'](_0x31ae97);for(const _0xdacd92 of _0xc55a78){const _0x20760e=_0x8c5e39['createRangeOn'](_0xdacd92),_0x24d05f=_0x30869d['getCellLocation'](_0xdacd92),_0x4a50e3=_0xdacd92['getAttribute'](_0x2d28c5)-0x1,_0x1939f6=_0x210fe2[_0x301bbe],_0x587b2c=_0x210fe2[_0x274ed0];_0x1939f6<=_0x24d05f[_0x58d194]&&_0x24d05f[_0x58d194]+_0x4a50e3<=_0x587b2c&&_0x31ae97['addRange'](_0x20760e);}}});});}function _0x5ec17e(_0xaaf422){const _0x391e0a=Array['from'](_0x3d7a76['getRanges']())['map'](_0x529205=>_0x21fe73['fromRange'](_0x529205));_0x41cfc3['model']['change'](_0x1cbbd0=>{const _0x23921f=_0x1cbbd0['batch'];_0xaaf422=_0xaaf422['filter'](_0x531f37=>'$graveyard'!=_0x531f37['root']['rootName']),_0x1cbbd0['setSelection'](_0xaaf422),_0x41cfc3['commands']['get']('removeTableRow')['refresh'](),_0x41cfc3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41cfc3['model']['enqueueChange'](()=>{_0x41cfc3['model']['enqueueChange'](_0x23921f,_0x88ab49=>{const _0x298c5d=_0x391e0a['filter'](_0x492b2e=>'$graveyard'!=_0x492b2e['root']['rootName']);_0x298c5d['length']>0x0&&_0x88ab49['setSelection'](_0x298c5d);for(const _0x472a46 of _0x391e0a)_0x472a46['detach']();});});});}function _0x21c565(_0x43295a){_0x41cfc3['model']['change'](_0x2e01e9=>{const _0x34e0c8=Array['from'](_0x3d7a76['getRanges']())['map'](_0x1edf7a=>_0x21fe73['fromRange'](_0x1edf7a)),_0x205ae2=[];for(const _0x1d565b of _0x43295a)for(const _0x27595f of _0x1d565b['getItems']({'shallow':!0x0}))_0x205ae2['push'](_0x27595f);for(const _0x336e70 of _0x205ae2)'$graveyard'!=_0x336e70['root']['rootName']&&(_0x2e01e9['setSelection'](_0x2e01e9['createPositionAt'](_0x336e70,0x0)),_0x41cfc3['commands']['get']('removeTableColumn')['refresh'](),_0x41cfc3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5af578=_0x34e0c8['filter'](_0x44a39f=>'$graveyard'!=_0x44a39f['root']['rootName']);_0x5af578['length']>0x0&&_0x2e01e9['setSelection'](_0x5af578);for(const _0xcf17fb of _0x34e0c8)_0xcf17fb['detach']();});}function _0x21d5eb(_0x4c47d7,_0x21b7d3){return _0x21b7d3['every'](_0x3ce7eb=>_0x4c47d7['some'](_0x5ccfbd=>_0x5ccfbd['end']['isEqual'](_0x3ce7eb['start'])||_0x3ce7eb['end']['isEqual'](_0x5ccfbd['start'])));}function _0x5da954(_0x137c61,_0x4b8bcd){return!_0x137c61['some'](_0x13be64=>_0x4b8bcd['some'](_0x339a68=>_0x13be64['isIntersecting'](_0x339a68)))&&_0x137c61['some'](_0x27858c=>_0x4b8bcd['some'](_0x12f126=>_0x27858c['end']['isTouching'](_0x12f126['start'])));}_0x41cfc3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30b9b7,_0x2a886f,_0x4074c2)=>{if(!_0x4074c2['options']['showSuggestionHighlights'])return;const _0x461e6b=_0x2a886f['item'];if(!_0x461e6b)return;const _0x38b3d6=_0x4074c2['mapper']['toViewElement'](_0x461e6b);function _0x1180a9(_0x73fdce){return Array['isArray'](_0x73fdce)?_0x73fdce:[_0x73fdce];}_0x38b3d6&&'tableCell'===_0x461e6b['name']&&_0x408c7e(_0x38b3d6,_0x4074c2['writer'],(_0x19a41c,_0x46936d,_0x37732b)=>_0x37732b['addClass'](_0x1180a9(_0x46936d['classes']),_0x19a41c),(_0x24bba5,_0x5dd6ed,_0x4eb837)=>_0x4eb837['removeClass'](_0x1180a9(_0x5dd6ed['classes']),_0x24bba5));},{'priority':'highest'}),_0x1516f7['descriptionFactory']['registerDescriptionCallback'](_0x119a59=>{if('insertion'!=_0x119a59['type']&&'deletion'!=_0x119a59['type'])return;const _0x1dcd00=_0x119a59['getContainedElement']();if(null!=_0x1dcd00&&_0x1dcd00['is']('element','table')){if('insertion'==_0x119a59['type']){const _0x58d30a=_0x119a59['getItems']()['filter'](_0x3b66b0=>_0x3b66b0['is']('$textProxy'))['map'](_0x15ca3c=>_0x15ca3c['data']);if(_0x58d30a['length'])return{'type':'insertion','content':c(_0x1a59b5,'*Insert:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58d30a['join']('\x20')+'\x22'))};}if('deletion'==_0x119a59['type']){const _0x4317d5=_0x119a59['getItems']()['filter'](_0x459a7e=>_0x459a7e['is']('$textProxy'))['map'](_0x44baed=>_0x44baed['data']);if(_0x4317d5['length'])return{'type':'deletion','content':c(_0x1a59b5,'*Remove:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4317d5['join']('\x20')+'\x22'))};}}}),_0x1516f7['descriptionFactory']['registerDescriptionCallback'](_0x14f140=>{if('tableRow'==_0x14f140['subType']){const _0x23cc4f=_0x14f140['getItems']()['filter'](_0x103c25=>_0x103c25['is']('$textProxy'))['map'](_0x27c1ac=>_0x27c1ac['data']),_0x20c006=this['_getSuggestionCoords'](_0x14f140),_0x2b6fc5=_0x20c006['maxRow']-_0x20c006['minRow']+0x1;if('insertion'==_0x14f140['type'])return _0x23cc4f['length']?{'type':'insertion','content':c(_0x1a59b5,'*Insert:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b6fc5,'\x22'+_0x23cc4f['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1a59b5,'*Insert:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_ROW',_0x2b6fc5))};if('deletion'==_0x14f140['type'])return _0x23cc4f['length']?{'type':'deletion','content':c(_0x1a59b5,'*Remove:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b6fc5,'\x22'+_0x23cc4f['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1a59b5,'*Remove:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_ROW',_0x2b6fc5))};}if('tableColumn'==_0x14f140['subType']){const _0x4132d1=_0x14f140['getItems']()['filter'](_0x43775e=>_0x43775e['is']('$textProxy'))['map'](_0x5958ec=>_0x5958ec['data']),_0x54b37f=this['_getSuggestionCoords'](_0x14f140),_0x395936=_0x54b37f['maxColumn']-_0x54b37f['minColumn']+0x1;if('insertion'==_0x14f140['type'])return _0x4132d1['length']?{'type':'insertion','content':c(_0x1a59b5,'*Insert:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x395936,'\x22'+_0x4132d1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1a59b5,'*Insert:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_COLUMN',_0x395936))};if('deletion'==_0x14f140['type'])return _0x4132d1['length']?{'type':'deletion','content':c(_0x1a59b5,'*Remove:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x395936,'\x22'+_0x4132d1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1a59b5,'*Remove:*\x20%0',c(_0x1a59b5,'ELEMENT_TABLE_COLUMN',_0x395936))};}}),_0x1516f7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ec17e),_0x1516f7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ec17e),_0x1516f7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x21c565),_0x1516f7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x21c565),_0x1516f7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x21d5eb),_0x1516f7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x21d5eb),_0x1516f7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5da954),_0x1516f7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5da954);}['_acceptFormatSuggestionCallbackFactory'](){const _0x752085=this['editor'],_0x5476f6=_0x752085['model']['document']['selection'];return(_0x3dd8f7,_0x4a50ff)=>{_0x752085['model']['change'](_0x428274=>{const {commandName:_0x2ac029,commandParams:_0x8d2972}=_0x4a50ff;let _0x2b24a1=_0x3dd8f7[0x0]['end']['nodeBefore'];_0x8d2972&&_0x8d2972[0x0]&&!0x1===_0x8d2972[0x0]['forceValue']&&(_0x2b24a1=_0x3dd8f7[0x0]['start']['nodeAfter']);const _0x5f285f=_0x428274['createRangeIn'](_0x2b24a1);if('$graveyard'==_0x5f285f['root']['rootName'])return;const _0x269463=Array['from'](_0x5476f6['getRanges']())['map'](_0x10a06a=>_0x21fe73['fromRange'](_0x10a06a));_0x428274['setSelection'](_0x5f285f),_0x752085['commands']['get'](_0x2ac029)['refresh'](),_0x8d2972['push']({'forceDefaultExecution':!0x0}),_0x752085['execute'](_0x2ac029,..._0x8d2972);const _0x581571=_0x269463['filter'](_0x14678e=>'$graveyard'!=_0x14678e['root']['rootName']);_0x581571['length']>0x0&&_0x428274['setSelection'](_0x581571);for(const _0x4c703e of _0x269463)_0x4c703e['detach']();});};}['_getCoordsForCells'](_0x36dea6){const _0x2ef0d7=this['editor']['plugins']['get']('TableUtils');let _0x297a21=Number['MAX_SAFE_INTEGER'],_0x51cfa7=Number['MIN_SAFE_INTEGER'],_0x5227be=Number['MAX_SAFE_INTEGER'],_0x4a16f4=Number['MIN_SAFE_INTEGER'];for(const _0x229510 of _0x36dea6){if('$graveyard'==_0x229510['root']['rootName'])continue;const {row:_0x58dc61,column:_0x14b250}=_0x2ef0d7['getCellLocation'](_0x229510),_0x30716e=_0x229510['hasAttribute']('rowspan')?_0x229510['getAttribute']('rowspan')-0x1:0x0,_0x4f11c4=_0x229510['hasAttribute']('colspan')?_0x229510['getAttribute']('colspan')-0x1:0x0;_0x297a21=_0x58dc61<_0x297a21?_0x58dc61:_0x297a21,_0x51cfa7=_0x58dc61+_0x30716e>_0x51cfa7?_0x58dc61+_0x30716e:_0x51cfa7,_0x5227be=_0x14b250<_0x5227be?_0x14b250:_0x5227be,_0x4a16f4=_0x14b250+_0x4f11c4>_0x4a16f4?_0x14b250+_0x4f11c4:_0x4a16f4;}return{'minRow':_0x297a21,'maxRow':_0x51cfa7,'minColumn':_0x5227be,'maxColumn':_0x4a16f4};}['_setupColumnsRowsFixing'](){const _0x29b4ed=this['editor'],_0x2270c1=_0x29b4ed['plugins']['get']('TrackChangesEditing'),_0x3eb0a1=_0x29b4ed['plugins']['get']('TableUtils');_0x29b4ed['model']['document']['on']('change:data',()=>{const _0xa45b3=Array['from'](_0x29b4ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x376228,data:_0x4abf2c}of _0xa45b3){const {group:_0x406885,id:_0x17707d,subType:_0x19ced4}=_0x2270c1['_splitMarkerName'](_0x376228);if('suggestion'!=_0x406885)continue;if(null!=_0x4abf2c['oldRange'])continue;const _0x17c83f=_0x2270c1['getSuggestion'](_0x17707d);this['_tablePostFixingSubtypes']['includes'](_0x19ced4)&&this['_tableSuggestions']['add'](_0x17c83f);}},{'priority':'low'});const _0x3ac95d=(_0x229d14,_0xfbd694)=>{let _0x42ce1c=!0x1;const _0x46a775=_0xfbd694['createRangeOn'](_0x229d14),_0x16d9ae=_0x229d14['findAncestor']('table'),_0x36dfc4=_0x3eb0a1['getCellLocation'](_0x229d14);for(const _0x46dd5b of this['_tableSuggestions']){const _0x14190c=_0x46dd5b['subType'],_0x4ba96a=_0x14190c['startsWith']('tablePaste'),_0x196770=_0x14190c['substr'](_0x4ba96a?0xa:0x5),_0x15a480=_0x196770['toLowerCase'](),_0x27a56b=_0x15a480['substr'](0x0,0x3)+'span',_0xe52b7='min'+_0x196770,_0x1a9de8='max'+_0x196770;if(!_0x46dd5b['isInContent'])continue;if(_0x16d9ae!=_0x46dd5b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x46dd5b['isIntersectingWithRange'](_0x46a775))continue;const _0x4f874e=_0x229d14['hasAttribute'](_0x27a56b)?_0x229d14['getAttribute'](_0x27a56b)-0x1:0x0,_0x8b0d22=this['_getSuggestionCoords'](_0x46dd5b),_0x396ec8=_0x8b0d22[_0xe52b7],_0x284160=_0x8b0d22[_0x1a9de8];_0x396ec8<=_0x36dfc4[_0x15a480]&&_0x36dfc4[_0x15a480]+_0x4f874e<=_0x284160&&(_0x46dd5b['addRange'](_0x46a775),_0x42ce1c=!0x0);}return _0x42ce1c;};_0x29b4ed['model']['document']['registerPostFixer'](_0x56b6ab=>{let _0x2ea4a5=!0x1;for(const _0x4cbdfa of _0x29b4ed['model']['document']['differ']['getChanges']())if('insert'==_0x4cbdfa['type']){if('tableRow'==_0x4cbdfa['name']){for(const _0x34e632 of _0x4cbdfa['position']['nodeAfter']['getChildren']())_0x2ea4a5=_0x2ea4a5||_0x3ac95d(_0x34e632,_0x56b6ab);}else'tableCell'==_0x4cbdfa['name']&&(_0x2ea4a5=_0x2ea4a5||_0x3ac95d(_0x4cbdfa['position']['nodeAfter'],_0x56b6ab));}return _0x2ea4a5;});}['_getSuggestionCoords'](_0x5d1d97){return this['_getCoordsForCells'](_0x5d1d97['getRanges']()['map'](_0x54b27d=>_0x54b27d['start']['nodeAfter']));}}function Ne(_0x172279){return Array['from'](new Set(_0x172279)['values']());}class Nt extends _0x4a939c{static get['requires'](){return[Ct];}['afterInit'](){const _0x1cdb2e=this['editor'],_0x3f4bdd=_0x1cdb2e['model']['document']['selection'],_0x230183=_0x1cdb2e['locale'];if(!_0x1cdb2e['plugins']['has']('TableEditing'))return;const _0x5f2411=_0x1cdb2e['plugins']['get']('TrackChangesEditing'),_0x2e697d=_0x1cdb2e['plugins']['get']('TableUtils'),_0x4be872=_0x1cdb2e['plugins']['get'](Ct);_0x4be872['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5f2411['enableCommand']('mergeTableCells',()=>{const _0x37ccdc=_0x2e697d['getSelectionAffectedTableCells'](_0x1cdb2e['model']['document']['selection']);_0x1cdb2e['model']['change'](()=>{_0x5f2411['markMultiRangeBlockFormat'](_0x37ccdc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1cdb2e['commands']['get']('mergeTableCells')['on']('execute',(_0x4fbc5d,_0x325cbe)=>{_0x1cdb2e['commands']['get']('trackChanges')['value']&&(_0x325cbe['length']>0x0&&_0x325cbe[_0x325cbe['length']-0x1]&&_0x325cbe[_0x325cbe['length']-0x1]['forceDefaultExecution']||_0x5f2411['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4fbc5d['stop']());},{'priority':'highest'});for(const _0x472d30 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4203d5=_0x1cdb2e['commands']['get'](_0x472d30);_0x5f2411['enableCommand'](_0x472d30,()=>{const _0x1d6146=_0x1cdb2e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a3241=>_0x2a3241['is']('element','tableCell')),_0x321876=_0x4203d5['value'];_0x1cdb2e['model']['change'](()=>{_0x5f2411['markMultiRangeBlockFormat']([_0x1d6146,_0x321876],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1672e0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c7fd3=_0x1cdb2e['commands']['get'](_0x1672e0);_0x5f2411['enableCommand'](_0x1672e0,()=>{const _0x5b9782=_0x2e697d['getSelectionAffectedTableCells'](_0x1cdb2e['model']['document']['selection'])[0x0],_0x5c7ef6=_0x5b9782['findAncestor']('table'),{column:_0x1607e7,row:_0x5a3ac1}=_0x2e697d['getCellLocation'](_0x5b9782);let _0x3cfae0=[];if('horizontally'==_0x1c7fd3['direction']){const _0x4fe34e=_0x2e697d['createTableWalker'](_0x5c7ef6,{'startRow':_0x5a3ac1,'endRow':_0x5a3ac1,'includeAllSlots':!0x0});_0x3cfae0=Array['from'](_0x4fe34e)['map'](_0x347246=>_0x347246['cell']);}else{const _0x562c57=_0x2e697d['createTableWalker'](_0x5c7ef6,{'column':_0x1607e7,'includeAllSlots':!0x0});_0x3cfae0=Array['from'](_0x562c57)['map'](_0x527e7d=>_0x527e7d['cell']);}_0x1cdb2e['model']['change'](_0x24d26c=>{_0x5f2411['markBlockFormat'](_0x24d26c['createRangeOn'](_0x5b9782),{'commandName':_0x1672e0,'commandParams':[]},_0x3cfae0,_0x1672e0);});});}_0x5f2411['descriptionFactory']['registerDescriptionCallback'](_0x420a24=>{if('formatBlock'!=_0x420a24['type']&&'formatInline'!=_0x420a24['type'])return;const {data:_0x4e747a}=_0x420a24;return _0x4e747a&&'mergeTableCells'==_0x4e747a['commandName']?{'type':'format','content':c(_0x230183,'*Merge\x20cells*')}:void 0x0;}),_0x5f2411['descriptionFactory']['registerDescriptionCallback'](_0x327a14=>{if('formatBlock'!=_0x327a14['type']&&'formatInline'!=_0x327a14['type'])return;const {data:_0x1892ea}=_0x327a14;return _0x1892ea?'splitTableCellVertically'==_0x1892ea['commandName']?{'type':'format','content':c(_0x230183,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1892ea['commandName']?{'type':'format','content':c(_0x230183,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x49c78e=_0x4be872['_acceptFormatSuggestionCallbackFactory']();for(const _0x27295f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5f2411['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27295f,'accept',_0x49c78e);for(const _0x3946b5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5f2411['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3946b5,'accept',_0x49c78e);_0x5f2411['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35d35a=>{_0x1cdb2e['model']['change'](_0x38ed12=>{const _0x33e033=Array['from'](_0x3f4bdd['getRanges']())['map'](_0x1d9a90=>_0x21fe73['fromRange'](_0x1d9a90));_0x38ed12['setSelection'](_0x35d35a),_0x1cdb2e['commands']['get']('mergeTableCells')['refresh'](),_0x1cdb2e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xf4f75a=_0x33e033['filter'](_0x547d1e=>'$graveyard'!=_0x547d1e['root']['rootName']);_0xf4f75a['length']>0x0&&_0x38ed12['setSelection'](_0xf4f75a);for(const _0x3b0c9f of _0x33e033)_0x3b0c9f['detach']();});});for(const _0x5eba44 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x140d5d=_0x1cdb2e['commands']['get'](_0x5eba44);_0x140d5d['on']('set:isEnabled',(_0x26aa23,_0x171fe7,_0x31059e)=>{if(_0x31059e){const _0x3400da=_0x1cdb2e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e959c=>_0x2e959c['is']('element','tableCell'));this['_areMergableCells'](_0x140d5d['value'],_0x3400da)||(_0x26aa23['return']=!0x1,_0x26aa23['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x21418c=this['editor']['commands']['get']('mergeTableCells'),_0x11a0c3=this['editor']['plugins']['get']('TableUtils');if(!_0x21418c['isEnabled'])return!0x1;const _0x26b515=_0x11a0c3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x26f825 of _0x26b515)for(const _0x5545f6 of _0x26b515)if(_0x26f825!=_0x5545f6&&!this['_areMergableCells'](_0x26f825,_0x5545f6))return!0x1;return!0x0;}['_areMergableCells'](_0x55ca74,_0x2cedd4){const _0x14e58d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38ace8=this['editor']['model']['createRangeOn'](_0x55ca74),_0x2f6e72=this['editor']['model']['createRangeOn'](_0x2cedd4),_0xe182e9=new Set(),_0xc0da86=new Set();for(const _0x410374 of _0x14e58d['getSuggestions']())if(('insertion'==_0x410374['type']||'deletion'==_0x410374['type']||'mergeTableCells'==_0x410374['subType'])&&_0x410374['isInContent']){for(const _0x5a283a of _0x410374['getRanges']())_0x5a283a['containsRange'](_0x38ace8,!0x0)&&_0xe182e9['add'](_0x410374['type']+':'+_0x410374['author']['id']),_0x5a283a['containsRange'](_0x2f6e72,!0x0)&&_0xc0da86['add'](_0x410374['type']+':'+_0x410374['author']['id']);}if(_0xe182e9['size']!=_0xc0da86['size'])return!0x1;for(const _0x4faad7 of _0xe182e9)if(!_0xc0da86['has'](_0x4faad7))return!0x1;return!0x0;}}class Dt extends _0x4a939c{static get['requires'](){return[Ct];}['afterInit'](){const _0x45d764=this['editor'];if(!_0x45d764['plugins']['has']('TableEditing'))return;const _0x409fd5=_0x45d764['locale'],_0x54bd98=_0x45d764['plugins']['get']('TrackChangesEditing');_0x54bd98['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x54bd98['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x54bd98['registerBlockAttribute']('headingRows'),_0x54bd98['registerBlockAttribute']('headingColumns'),_0x54bd98['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x409fd5,'FORMAT_HEADER_ROW')),_0x54bd98['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x409fd5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9d00bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0854=this['editor']['plugins']['get']('TableUtils'),_0x190e50=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x21723d({showActiveMarker:_0x3693a9=!0x0,setDataAttribute:_0x4df2b5=!0x0}={}){return(_0x4b1f2f,_0x1ec97c,_0x3c8b38)=>{const {type:_0xb1baf2,id:_0x4e1c4c}=_0x9d00bf['_splitMarkerName'](_0x1ec97c['markerName']),_0x2edc97=_0x9d00bf['getSuggestion'](_0x4e1c4c),_0x3aabcb=_0x2edc97['data'];if('formatBlock'!=_0x2edc97['type']||!_0x3aabcb||'setTableColumnHeader'!=_0x3aabcb['commandName'])return;if(_0x1ec97c['item'])return void _0x4b1f2f['stop']();if(!_0x3c8b38['consumable']['consume'](_0x1ec97c['markerRange'],_0x4b1f2f['name']))return;const _0x326fc7=_0x1ec97c['markerRange']['start']['nodeAfter'],_0x10efae=_0x1ec97c['markerRange']['end']['nodeBefore'],_0x346713=_0x326fc7['parent']['parent'],{column:_0x3c7c8e}=_0x5b0854['getCellLocation'](_0x326fc7),{column:_0x5431fc}=_0x5b0854['getCellLocation'](_0x10efae);for(let _0x2d776c=_0x3c7c8e;_0x2d776c<=_0x5431fc;_0x2d776c++){const _0x3ce464=_0x5b0854['createTableWalker'](_0x346713,{'column':_0x2d776c,'includeAllSlots':!0x1});for(const _0x407a1f of _0x3ce464){const _0x338503=_0x407a1f['cell'],_0x418b54=_0x3c8b38['mapper']['toViewElement'](_0x338503);_0x3c8b38['writer']['addClass']('ck-suggestion-marker-'+_0xb1baf2,_0x418b54),_0x4df2b5&&_0x3c8b38['writer']['setAttribute']('data-suggestion',_0x4e1c4c,_0x418b54),_0x3c8b38['mapper']['bindElementToMarker'](_0x418b54,_0x1ec97c['markerName']),_0x3693a9&&(_0x9d00bf['activeMarkers']['includes'](_0x1ec97c['markerName'])?_0x3c8b38['writer']['addClass']('ck-suggestion-marker--active',_0x418b54):_0x3c8b38['writer']['removeClass']('ck-suggestion-marker--active',_0x418b54));}}};}_0x9d00bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x190e50),_0x9d00bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x190e50),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21723d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47be0d,_0x3594ec,_0x305a54)=>{_0x305a54['options']['showSuggestionHighlights']&&_0x21723d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47be0d,_0x3594ec,_0x305a54);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x668233,_0x34bb2e,_0x212b17)=>{const {type:_0x2885df,id:_0x284e7e}=_0x9d00bf['_splitMarkerName'](_0x34bb2e['markerName']),_0x24b0ec=_0x9d00bf['getSuggestion'](_0x284e7e),_0x5a9e1d=_0x24b0ec['data'];if('formatBlock'!=_0x24b0ec['type']||!_0x5a9e1d||'setTableColumnHeader'!=_0x5a9e1d['commandName'])return;const _0x2fa6e3=_0x212b17['mapper']['markerNameToElements'](_0x34bb2e['markerName']);if(_0x2fa6e3){for(const _0x22ecca of _0x2fa6e3)_0x212b17['writer']['removeClass']('ck-suggestion-marker-'+_0x2885df,_0x22ecca),_0x212b17['writer']['removeClass']('ck-suggestion-marker--active',_0x22ecca),_0x212b17['writer']['removeAttribute']('data-suggestion',_0x22ecca),_0x212b17['mapper']['unbindElementFromMarkerName'](_0x22ecca,_0x34bb2e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440aa5=this['editor'],_0x1196d8=_0x440aa5['locale'];function _0x58073c(_0x567e4e){return{'type':'format','content':c(_0x1196d8,'*Format:*\x20%0',_0x567e4e)};}_0x440aa5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dcfc4=>{if('formatBlock'!=_0x5dcfc4['type'])return;const {data:_0x112220}=_0x5dcfc4;if(_0x112220){if('setTableRowHeader'==_0x112220['commandName']){const _0x48e896=_0x112220['commandParams'][0x0]['forceValue'];return _0x58073c(c(_0x1196d8,_0x48e896?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x112220['commandName']){const _0x23ece3=_0x112220['commandParams'][0x0]['forceValue'];return _0x58073c(c(_0x1196d8,_0x23ece3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x4a939c{['afterInit'](){const _0x4fbf74=this['editor'],_0x458b9a=_0x4fbf74['locale'],_0x48d457=_0x4fbf74['plugins']['get']('TrackChangesEditing');function _0x487bd5(_0x24349b){return{'type':'format','content':''+c(_0x458b9a,'*Set\x20table\x20type:*\x20%0',_0x24349b)};}_0x4fbf74['plugins']['has']('TableLayout')&&(_0x48d457['enableCommand']('insertTableLayout'),_0x48d457['enableDefaultAttributesIntegration']('tableType'),_0x48d457['registerBlockAttribute']('tableType'),_0x48d457['descriptionFactory']['registerElementLabel'](_0x18d135=>_0x18d135['is']('element','table')&&'layout'===_0x18d135['getAttribute']('tableType'),_0x4bb208=>c(_0x458b9a,'ELEMENT_LAYOUT_TABLE',_0x4bb208)),_0x48d457['descriptionFactory']['registerDescriptionCallback'](_0x5a044a=>{const {data:_0x121405}=_0x5a044a;if(_0x121405&&'tableType'==_0x121405['key'])switch(_0x121405['newValue']){case'layout':return _0x487bd5(c(_0x458b9a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x487bd5(c(_0x458b9a,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x3aae79=>[_0x3aae79,null]));class $t extends _0x4a939c{static get['requires'](){return[Ct];}['afterInit'](){const _0x5cd504=this['editor'];if(!_0x5cd504['plugins']['has']('TableClipboard'))return;const _0x505e94=_0x5cd504['plugins']['get']('TrackChangesEditing'),_0x4126d3=_0x5cd504['plugins']['get']('TableUtils'),_0x408ec5=_0x5cd504['plugins']['get'](Ct),_0x4f3c75=_0x5cd504['plugins']['get']('TableClipboard'),_0x24523b=_0x5cd504['plugins']['get']('TableSelection'),_0x39c2ad=_0x5cd504['plugins']['get'](_0x4a3ddf);_0x408ec5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5cd504['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5cd504['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46de26=null,_0x40ed4a=!0x1;_0x39c2ad['on']('contentInsertion',(_0x18b0ee,_0x19c2c2)=>{_0x40ed4a='paste'===_0x19c2c2['method'];}),_0x5cd504['model']['on']('insertContent',(_0x54993e,_0x54b4f8)=>{if(!_0x40ed4a&&null===_0x24523b['getSelectedTableCells']())return;const [_0x530563,_0x5c805b]=_0x54b4f8,_0x5983a9=_0x54b4f8[_0x54b4f8['length']-0x1];_0x5983a9&&_0x5983a9['forceDefaultExecution']||_0x505e94['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5f2480,_0x4d551c,_0x19771f,_0x18c123,_0x3cf9b8){if(_0x4d551c&&!_0x4d551c['is']('documentSelection'))return!0x1;const _0xdf090a=_0x3cf9b8['getTableIfOnlyTableInContent'](_0x5f2480,_0x19771f);if(!_0xdf090a||!De(_0xdf090a,void 0x0,_0x18c123))return!0x1;const _0x731aeb=_0x18c123['getSelectionAffectedTableCells'](_0x19771f['document']['selection']);if(!_0x731aeb['length'])return!0x1;const _0x591197=_0x731aeb[0x0]['findAncestor']('table'),_0x4bbe52=_0x18c123['getRowIndexes'](_0x731aeb),_0x1dd677=_0x18c123['getColumnIndexes'](_0x731aeb),_0x1087ab={'startRow':_0x4bbe52['first'],'endRow':_0x4bbe52['last'],'startColumn':_0x1dd677['first'],'endColumn':_0x1dd677['last']};return 0x1==_0x731aeb['length']&&(_0x1087ab['endRow']+=_0x18c123['getRows'](_0xdf090a)-0x1,_0x1087ab['endColumn']+=_0x18c123['getColumns'](_0xdf090a)-0x1),De(_0x591197,_0x1087ab,_0x18c123);}(_0x530563,_0x5c805b,_0x5cd504['model'],_0x4126d3,_0x4f3c75)&&(_0x54993e['stop'](),_0x46de26={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5cd504['model']['change'](()=>{_0x5cd504['model']['insertContent'](_0x54b4f8[0x0],_0x54b4f8[0x1],_0x54b4f8[0x2],{'forceDefaultExecution':!0x0});const _0x32ad2c=_0x3028ef(),{rowInsertionRanges:_0x220b6a,columnInsertionRanges:_0x500521,insertionRanges:_0x2380c4,deletionRanges:_0x2db71e,cells:_0x29eef9}=_0x46de26;_0x220b6a['length']&&_0x505e94['markMultiRangeInsertion'](_0x220b6a,'tablePasteRow',{'tablePasteChainId':_0x32ad2c}),_0x500521['length']&&_0x505e94['markMultiRangeInsertion'](_0x500521,'tablePasteColumn',{'tablePasteChainId':_0x32ad2c}),_0x2380c4['length']&&(_0x505e94['markMultiRangeInsertion'](_0x2380c4,'tablePaste',{'tablePasteChainId':_0x32ad2c,'skipNestingCheck':!0x0}),_0x2380c4['forEach'](_0x1bea9e=>_0x1bea9e['detach']?.())),_0x2db71e['length']&&(_0x505e94['markMultiRangeDeletion'](_0x2db71e,'tablePaste',{'tablePasteChainId':_0x32ad2c,'skipNestingCheck':!0x0}),_0x2db71e['forEach'](_0x3da461=>_0x3da461['detach']?.()));const _0x56f88c=_0x505e94['markMultiRangeBlockFormat'](_0x29eef9['map'](({element:_0x3888fa})=>_0x3888fa),{'formatGroupId':_0x3028ef()},[],'tablePasteCell',{'tablePasteChainId':_0x32ad2c});if(_0x56f88c){const _0x456956=_0x56f88c['getMarkers'](),_0x6b7f76=[];for(const {element:_0x36ef23,attributes:_0x27045e}of _0x29eef9){if(!_0x27045e)continue;const _0x269fde=_0x5cd504['model']['createRangeOn'](_0x36ef23),_0x2fe3b5=_0x456956['find'](_0x3e5201=>_0x3e5201['getRange']()['isEqual'](_0x269fde));_0x2fe3b5&&_0x6b7f76['push']([_0x2fe3b5['name'],_0x27045e]);}_0x6b7f76['length']&&_0x56f88c['setAttribute']('markerAttributes',Object['fromEntries'](_0x6b7f76));}_0x46de26=null;}));},{'priority':_0x3495c0['high']+0xa}),_0x39c2ad['on']('contentInsertion',()=>{_0x40ed4a=!0x1;},{'priority':'lowest'}),_0x5cd504['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xd0a048,_0x2c2eda)=>{const [_0x4e2779,_0xa27525,,_0x5567f0]=_0x2c2eda;if(!_0x46de26)return;_0xd0a048['stop']();const _0x41334b=_0x4e2779['cell'],_0x3a47b2=_0xa27525,_0x4ae48f=Ue(_0x41334b),_0x48fd2f=Ue(_0x3a47b2);_0xd0a048['return']=_0x41334b;let _0x54e540=null,_0x306555=null;if(_0x48fd2f||_0x4ae48f){if(_0x4ae48f&&!_0x48fd2f){_0x5567f0['remove'](_0x41334b['getChild'](0x0));for(const _0x39cd98 of Array['from'](_0x3a47b2['getChildren']()))_0x5567f0['insert'](_0x39cd98,_0x41334b,'end');const _0x3e70a7=_0x46de26['rowInsertionIndexes']['includes'](_0x4e2779['row']),_0x1e3c1c=_0x46de26['columnInsertionIndexes']['includes'](_0x4e2779['column']);_0x3e70a7||_0x1e3c1c||(_0x54e540=_0x21fe73['fromRange'](_0x5567f0['createRangeIn'](_0x41334b)));}else _0x48fd2f&&!_0x4ae48f&&(_0x306555=_0x5567f0['createRangeIn'](_0x41334b));}else{const _0x27c08e=_0x5567f0['createElement']('tableCellSuggestion'),_0x505c1f=_0x5567f0['createElement']('tableCellSuggestion');_0x5567f0['wrap'](_0x5567f0['createRangeIn'](_0x41334b),_0x505c1f),_0x5567f0['insert'](_0x27c08e,_0x41334b,0x0);for(const _0x328101 of Array['from'](_0x3a47b2['getChildren']()))_0x5567f0['insert'](_0x328101,_0x27c08e,'end');_0x54e540=_0x21fe73['fromRange'](_0x5567f0['createRangeOn'](_0x27c08e)),_0x306555=_0x21fe73['fromRange'](_0x5567f0['createRangeOn'](_0x505c1f));}const _0x168f34=Array['from'](_0x3a47b2['getAttributes']())['filter'](([_0x1a9202])=>xe['includes'](_0x1a9202));_0x46de26['cells']['push']({'element':_0x41334b,'attributes':_0x168f34['length']?Object['fromEntries'](_0x168f34):null}),_0x54e540&&_0x46de26['insertionRanges']['push'](_0x54e540),_0x306555&&_0x46de26['deletionRanges']['push'](_0x306555);},{'priority':'high'}),_0x4126d3['on']('insertColumns',(_0xb322c4,_0x45b7ef)=>{const [_0x26c3e8,_0x28337a={}]=_0x45b7ef;if(!_0x46de26)return;const _0x11ca0b=_0x28337a['at']||0x0,_0x2652a3=_0x28337a['columns']||0x1;_0x46de26['columnInsertionIndexes']=new Array(_0x2652a3)['fill'](_0x11ca0b)['map']((_0x496f5d,_0x210704)=>_0x496f5d+_0x210704);for(const {cell:_0x53842a}of _0x4126d3['createTableWalker'](_0x26c3e8,{'startColumn':_0x11ca0b,'endColumn':_0x11ca0b+_0x2652a3-0x1}))_0x46de26['columnInsertionRanges']['push'](_0x5cd504['model']['createRangeOn'](_0x53842a));},{'priority':'low'}),_0x4126d3['on']('insertRows',(_0xb1263b,_0x3002ac)=>{const [_0x46d19c,_0x3c1464={}]=_0x3002ac;if(!_0x46de26)return;const _0x400865=_0x3c1464['at']||0x0,_0x24907c=_0x3c1464['rows']||0x1;_0x46de26['rowInsertionIndexes']=new Array(_0x24907c)['fill'](_0x400865)['map']((_0x28bc6d,_0x217071)=>_0x28bc6d+_0x217071);for(const {cell:_0x26af27}of _0x4126d3['createTableWalker'](_0x46d19c,{'startRow':_0x400865,'endRow':_0x400865+_0x24907c-0x1}))_0x46de26['rowInsertionRanges']['push'](_0x5cd504['model']['createRangeOn'](_0x26af27));},{'priority':'low'}),_0x505e94['descriptionFactory']['registerDescriptionCallback'](_0x1cda3c=>{if(_0x1cda3c['subType']&&_0x1cda3c['subType']['startsWith']('tablePaste'))return _0x1cda3c['previous']?{}:{'type':'insertion','content':c(_0x5cd504['locale'],'*Replace\x20table\x20cells*')};});const _0x4ae460=()=>!0x1;for(const _0x4ac4e9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x505e94['_suggestionFactory']['registerCustomCallback']('insertion',_0x4ac4e9,'join',_0x4ae460),_0x505e94['_suggestionFactory']['registerCustomCallback']('deletion',_0x4ac4e9,'join',_0x4ae460),_0x505e94['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ac4e9,'join',_0x4ae460);_0x505e94['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ae460),_0x505e94['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x16a92a,_0x4ae16d,_0x5e3d71)=>{const _0x2e1be6=_0x16a92a['map'](_0x4b84ec=>_0x4b84ec['getContainedElement']())['filter'](_0x330ad8=>_0x330ad8),_0x3ba78e=new Map(_0x2e1be6['map'](_0x3361ec=>[_0x3361ec,null]));if(_0x46de26){for(const {element:_0x4f4d26,attributes:_0x584bd7}of _0x46de26['cells'])_0x584bd7&&_0x3ba78e['set'](_0x4f4d26,_0x584bd7);}else{if(_0x5e3d71&&_0x5e3d71['markerAttributes'])for(const [_0x16ae1e,_0x35de34]of Object['entries'](_0x5e3d71['markerAttributes'])){const _0x1c640f=_0x5cd504['model']['markers']['get'](_0x16ae1e),_0x2a9c53=_0x1c640f?_0x1c640f['getRange']()['getContainedElement']():null;_0x2a9c53&&_0x3ba78e['set'](_0x2a9c53,_0x35de34);}}_0x5cd504['model']['change'](_0x2e7fd5=>{for(const [_0x2fd202,_0x4811b1]of _0x3ba78e)_0x2e7fd5['setAttributes']({...Oe,..._0x4811b1},_0x2fd202);});});const _0x4b3966=(_0x4d2491,_0x2c027c)=>{_0x505e94['_suggestionFactory']['registerCustomCallback'](_0x4d2491,'tablePaste',_0x2c027c,(_0x50ca09,_0x15588a,_0x165cdc)=>{_0x5cd504['model']['change'](_0xd5806c=>{const _0x2e442f=[];for(const _0x379b01 of _0x50ca09){const _0x2264cf=_0x379b01['start']['nodeAfter'];_0x2264cf['is']('element','tableCellSuggestion')&&_0x2e442f['push'](_0x2264cf);}_0x505e94['_suggestionFactory']['getSuggestionCallback'](_0x4d2491,null,_0x2c027c)(_0x50ca09,_0x15588a,_0x165cdc);for(const _0x29df1d of _0x2e442f)'$graveyard'!=_0x29df1d['root']['rootName']&&_0xd5806c['unwrap'](_0x29df1d);});});};_0x4b3966('insertion','accept'),_0x4b3966('insertion','discard'),_0x4b3966('deletion','accept'),_0x4b3966('deletion','discard'),_0x505e94['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x45dcba=>{const _0x54925d=_0x45dcba['map'](_0x3fc6cf=>_0x3fc6cf['getContainedElement']()),_0x5f04cd=_0x54925d[0x0]['findAncestor']('table'),{minRow:_0x50ef10,maxRow:_0x30952c}=_0x408ec5['_getCoordsForCells'](_0x54925d);_0x4126d3['removeRows'](_0x5f04cd,{'at':_0x50ef10,'rows':_0x30952c-_0x50ef10+0x1});}),_0x505e94['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x39ff58=>{const _0x49bf97=_0x39ff58['map'](_0x1cdf08=>_0x1cdf08['getContainedElement']()),_0x57cd46=_0x49bf97[0x0]['findAncestor']('table'),{minColumn:_0x401d39,maxColumn:_0x1413db}=_0x408ec5['_getCoordsForCells'](_0x49bf97);_0x4126d3['removeColumns'](_0x57cd46,{'at':_0x401d39,'columns':_0x1413db-_0x401d39+0x1});});const _0x288c3b=(_0x1f7f55,_0x1dd002)=>{if(!_0x1dd002['subType']||!_0x1dd002['subType']['startsWith']('tablePaste'))return;const _0x49224e=_0x1dd002['attributes']['tablePasteChainId'],_0x353c38=_0x505e94['getSuggestions']()['filter'](_0x19b6af=>_0x19b6af['isInContent']&&_0x19b6af['attributes']&&_0x19b6af['attributes']['tablePasteChainId']==_0x49224e);_0x353c38['length']&&_0x1dd002['getAllAdjacentSuggestions']()['length']!=_0x353c38['length']&&_0x353c38['reduce']((_0x5076c1,_0x446e31)=>(_0x5076c1['next']=_0x446e31,_0x446e31['previous']=_0x5076c1,_0x446e31));};function _0x2fd5ba(_0x7147a,_0x2f92f4=!0x0){const {id:_0x527c0a,authorId:_0x1171aa}=_0x505e94['_splitMarkerName'](_0x7147a['markerName']),_0x59eca9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x484954=_0x505e94['activeMarkers']['includes'](_0x7147a['markerName']);return _0x484954&&_0x59eca9['push']('ck-suggestion-marker--active'),{'classes':_0x59eca9,'attributes':{'data-suggestion':_0x527c0a,'data-author-id':_0x1171aa},'priority':_0x484954&&_0x2f92f4?0xbc2:0xbb8};}_0x505e94['on']('suggestionLoaded',_0x288c3b,{'priority':'high'}),_0x505e94['on']('suggestionUnloaded',_0x288c3b,{'priority':'high'}),_0x5cd504['model']['document']['registerPostFixer'](()=>{let _0x3d3490=!0x1;const _0x3da1bc=Array['from'](_0x5cd504['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x392a39,data:_0x2d8bed}of _0x3da1bc){const {group:_0x5e340d,type:_0xacc62e,id:_0x4603a5}=_0x505e94['_splitMarkerName'](_0x392a39);if('suggestion'!=_0x5e340d||'deletion'!=_0xacc62e||_0x2d8bed['oldRange'])continue;if(!_0x505e94['hasSuggestion'](_0x4603a5))continue;const _0x5a743c=_0x505e94['getSuggestion'](_0x4603a5)['getRanges'](),_0x5cf82c=_0x5cd504['plugins']['get']('Users')['me'];for(const _0x54cece of _0x505e94['getSuggestions']()){if(!_0x54cece['isInContent']||_0x54cece['author']!=_0x5cf82c)continue;if('formatBlock'!=_0x54cece['type']||'tablePasteCell'!=_0x54cece['subType'])continue;if(_0x54cece['getRanges']()['every'](_0x1c0cce=>_0x5a743c['some'](_0x568cb1=>_0x568cb1['containsRange'](_0x1c0cce,!0x0)))){for(const _0x46a2c7 of _0x54cece['getAllAdjacentSuggestions']())_0x46a2c7['isInContent']&&(_0x46a2c7['discard'](),_0x3d3490=!0x0);}}}return _0x3d3490;}),_0x5cd504['model']['document']['registerPostFixer'](_0x3ff43c=>{const _0xa0f92c=_0x5cd504['commands']['get']('redo');if(!_0xa0f92c||!_0xa0f92c['_createdBatches']['has'](_0x3ff43c['batch']))return!0x1;let _0x31e9a1=!0x1;const _0xff71ef=_0x5cd504['plugins']['get']('Users')['me'],_0x4f61ad=_0x5cd504['model']['document']['differ']['getChanges'](),_0x5eff65=Array['from'](_0x5cd504['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2e36da,data:_0x482b74})=>{const {group:_0x4f3681,subType:_0x4bac4d,authorId:_0x5af20c}=_0x505e94['_splitMarkerName'](_0x2e36da);return'suggestion'==_0x4f3681&&'tablePaste'==_0x4bac4d&&_0x5af20c==_0xff71ef['id']&&!_0x482b74['oldRange'];});for(const _0x42e693 of _0x4f61ad){if('insert'!=_0x42e693['type']||'tableCellSuggestion'!=_0x42e693['name']||0x1!=_0x42e693['length'])continue;const _0x1a0cc9=_0x3ff43c['createRange'](_0x42e693['position'],_0x42e693['position']['getShiftedBy'](0x1));if(!_0x5eff65['find'](({data:_0x13717b})=>_0x13717b['newRange']['isEqual'](_0x1a0cc9))){for(const {name:_0x1df18a,data:_0x107955}of _0x5eff65)if(_0x1a0cc9['containsRange'](_0x107955['newRange'])){_0x3ff43c['updateMarker'](_0x1df18a,{'range':_0x1a0cc9}),_0x31e9a1=!0x0;break;}}}return _0x31e9a1;}),_0x5cd504['model']['document']['registerPostFixer'](_0x268d38=>{let _0x22818d=!0x1;const _0x1ef024=_0x5cd504['plugins']['get']('Users')['me'],_0x53a6ce=_0x505e94['getSuggestions']()['filter'](_0x5e0fcd=>_0x5e0fcd['isInContent']&&_0x5e0fcd['author']==_0x1ef024),_0x537a73=new Set(),_0x426000=new Set();for(const _0x4062c9 of _0x53a6ce)if('tablePaste'==_0x4062c9['subType'])for(const _0x2b8d3c of _0x4062c9['getMarkers']()){const _0x599398=_0x2b8d3c['getRange']()['getContainedElement']();if(_0x599398){if(_0x599398['is']('element','tableCellSuggestion')&&Ue(_0x599398)){_0x4062c9['removeMarker'](_0x2b8d3c['name']),_0x537a73['add'](_0x599398),_0x22818d=!0x0;const _0xe160ad=_0x599398['nextSibling'],_0x5df2b5=_0x599398['previousSibling'],_0x13f404=_0xe160ad&&_0xe160ad['is']('element','tableCellSuggestion'),_0x4c1c5b=_0x5df2b5&&_0x5df2b5['is']('element','tableCellSuggestion');_0x13f404&&!_0x537a73['has'](_0xe160ad)&&_0x426000['add'](_0xe160ad),_0x4c1c5b&&!_0x537a73['has'](_0x5df2b5)&&_0x426000['add'](_0x5df2b5);}else _0x599398['is']('element','paragraph')&&_0x599398['isEmpty']&&(_0x4062c9['removeMarker'](_0x2b8d3c['name']),_0x22818d=!0x0);}}else{if('tablePasteCell'==_0x4062c9['subType']){if(!_0x4062c9['attributes']||!_0x4062c9['attributes']['tablePasteChainId'])continue;const _0x4df00a=_0x4062c9['attributes']['markerAttributes'];if(_0x4df00a&&Object['keys'](_0x4df00a)['length'])continue;const _0xb0d89a=_0x4062c9['attributes']['tablePasteChainId'];let _0x4d71d7=!0x0,_0x38e8a7=!0x0;for(const _0x4040b0 of _0x53a6ce)if(_0x4040b0['subType']&&_0x4040b0['subType']['startsWith']('tablePaste')){if(!_0x4040b0['attributes']['tablePasteChainId']){_0x38e8a7=!0x1;break;}if(_0x4040b0['id']!=_0x4062c9['id']&&_0x4040b0['attributes']['tablePasteChainId']==_0xb0d89a){_0x4d71d7=!0x1;break;}}_0x38e8a7&&_0x4d71d7&&(_0x4062c9['removeMarkers'](),_0x22818d=!0x0);}}for(const _0x58f7fd of _0x537a73)_0x268d38['remove'](_0x58f7fd);for(const _0x5ca0ea of _0x426000)_0x268d38['unwrap'](_0x5ca0ea);return _0x22818d;}),_0x5cd504['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2ee7e4=>_0x2fd5ba(_0x2ee7e4),'converterPriority':'high'}),_0x5cd504['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x16f7dd,_0x716039)=>_0x716039['options']['showSuggestionHighlights']?_0x2fd5ba(_0x16f7dd,!0x1):null,'converterPriority':'high'});const _0x726ea5=_0x5cd504['editing']['view'];this['listenTo'](_0x726ea5['document'],'clipboardOutput',(_0x519d47,_0x9d674b)=>{const _0x348fad=[];for(const _0xfa0c6d of _0x726ea5['createRangeIn'](_0x9d674b['content'])['getItems']())_0xfa0c6d['is']('element','suggestion-td')&&_0x348fad['push'](_0xfa0c6d);_0x726ea5['change'](_0x3db028=>{for(const _0x54bf5c of _0x348fad)_0x3db028['move'](_0x3db028['createRangeIn'](_0x54bf5c),_0x3db028['createPositionBefore'](_0x54bf5c)),_0x3db028['remove'](_0x54bf5c);});});}}function Ue(_0x10b2dc){if(_0x10b2dc['isEmpty'])return!0x0;const _0x1b64a=_0x10b2dc['getChild'](0x0);return _0x1b64a['is']('element','paragraph')&&_0x1b64a['isEmpty'];}function De(_0x568422,_0x4233f6={},_0x3ad9d4){for(const {isAnchor:_0x27f910,cellHeight:_0x20f64e,cellWidth:_0x94aaa8}of _0x3ad9d4['createTableWalker'](_0x568422,{'includeAllSlots':!0x0,..._0x4233f6}))if(!_0x27f910||0x1!=_0x20f64e||0x1!=_0x94aaa8)return!0x1;return!0x0;}class Bt extends _0x4a939c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3903ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x3903ad['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3903ad['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3903ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3903ad['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3903ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3903ad['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf76134,_0x1d2d41){const _0x4c8f42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x127ed7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5eae4e=_0x1d2d41['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x551878=_0x127ed7['getColumnGroupElement'](_0x5eae4e);let _0x1bbd5e=_0x551878?_0x127ed7['getTableColumnsWidths'](_0x551878):null,_0x50d672=_0x5eae4e['getAttribute']('tableWidth')||null;const _0x2826eb=_0x1d2d41['tableWidth']||_0x50d672,_0x25849e=_0x1d2d41['columnWidths']||_0x1bbd5e,_0xba1506=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ddefc of _0x4c8f42['getSuggestions']()){const _0x3772dd=_0x3ddefc['getContainedElement']();if('resizeTable'===_0x3ddefc['subType']&&_0x3772dd===_0x5eae4e){_0x3ddefc['author']!==_0xba1506&&_0x3ddefc['discard']();const _0x317fdf=_0x3ddefc['data']['commandParams'];_0x50d672=_0x317fdf[0x0]['tableWidth'],_0x1bbd5e=_0x317fdf[0x0]['columnWidths'];break;}}_0xf76134({'table':_0x5eae4e,'tableWidth':_0x2826eb,'columnWidths':_0x25849e}),_0x4c8f42['markBlockFormat'](_0x5eae4e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x50d672,'columnWidths':_0x1bbd5e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x9701f3){if('formatBlock'!=_0x9701f3['type']&&'formatInline'!=_0x9701f3['type'])return;const {data:_0x5a830e}=_0x9701f3;if(_0x5a830e&&'resizeTable'===_0x5a830e['formatGroupId']){const _0x929f1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x929f1)};}}}class Ot extends _0x4a939c{['afterInit'](){const _0xe08866=this['editor'];_0xe08866['plugins']['has']('Template')&&_0xe08866['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x4a939c{['afterInit'](){const _0x538c48=this['editor'];if(!_0x538c48['commands']['get']('insertTableOfContents'))return;_0x538c48['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x89ac0d=_0x538c48['plugins']['get']('TrackChangesEditing'),_0x3af17c=_0x538c48['locale'];_0x89ac0d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c9054=>c(_0x3af17c,'ELEMENT_TABLE_OF_CONTENTS',_0x5c9054));}}class xt extends _0x4a939c{['afterInit'](){const _0x3fd3ee=this['editor'];if(!_0x3fd3ee['plugins']['has']('Title'))return;const _0x254dcd=_0x3fd3ee['plugins']['get']('TrackChangesEditing');_0x254dcd['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x3fd3ee['locale'],'ELEMENT_TITLE')),_0x3fd3ee['model']['document']['registerPostFixer'](_0x3d9f07=>{let _0x220ad2=!0x1;const _0x30800d=Array['from'](_0x3fd3ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bd40a,data:_0x4a0a39}of _0x30800d){const {group:_0x55d800}=_0x254dcd['_splitMarkerName'](_0x4bd40a);if('suggestion'!==_0x55d800||!_0x4a0a39['newRange'])continue;const _0x581c0f=_0x4a0a39['newRange'],_0x57a230=_0x581c0f['end']['nodeBefore'];if(!_0x57a230||!_0x57a230['is']('element','title-content'))continue;if(!_0x581c0f['start']['isTouching'](_0x581c0f['end']))continue;const _0x340105=_0x3fd3ee['model']['schema']['getNearestSelectionRange'](_0x581c0f['end'],'forward');if(_0x340105&&_0x340105['isCollapsed']){const _0x528f6f=_0x3d9f07['createRange'](_0x581c0f['start'],_0x340105['start']);_0x528f6f['isEqual'](_0x581c0f)||(_0x3d9f07['updateMarker'](_0x4bd40a,{'range':_0x528f6f}),_0x220ad2=!0x0);}_0x220ad2||(_0x3d9f07['removeMarker'](_0x4bd40a),_0x220ad2=!0x0);}return _0x220ad2;});}}class Tt extends _0x4a939c{['afterInit'](){const _0x42bcb6=this['editor'],_0x27f1c0=_0x42bcb6['plugins']['get']('TrackChangesEditing');_0x42bcb6['plugins']['has']('Uploadcare')&&(_0x27f1c0['enableCommand']('uploadcare'),_0x42bcb6['plugins']['has']('UploadcareImageEdit')&&(_0x27f1c0['enableCommand']('uploadcareImageEdit'),_0x27f1c0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27f1c0['registerBlockAttribute']('uploadcareImageId'),_0x27f1c0['descriptionFactory']['registerDescriptionCallback'](_0x4e1e21=>{if('attribute'!=_0x4e1e21['type'])return;const {data:_0x558d22}=_0x4e1e21;return _0x558d22&&'uploadcareImageId'==_0x558d22['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x4a939c{['afterInit'](){const _0x3b38e0=this['editor'],_0x48d827=_0x3b38e0['plugins']['get']('TrackChangesEditing');_0x3b38e0['plugins']['has']('UndoEditing')&&(_0x48d827['enableCommand']('undo'),_0x48d827['enableCommand']('redo'));}}class Ut extends _0x4a939c{static get['requires'](){return[Ct];}['afterInit'](){const _0x28ec9f=this['editor'];if(!_0x28ec9f['plugins']['has']('TableCaptionEditing'))return;_0x28ec9f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x4a939c{['tableProperties'];['tableCellProperties'];constructor(_0x1cbefb){super(_0x1cbefb),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x102a20=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xeb437e of this['tableProperties'])_0x102a20['enableCommand'](_0xeb437e,(_0x4e5b15,_0x7dbd9c)=>{const _0x48e7c6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xeb437e,[_0x48e7c6],this['tableProperties'],'tableProperties',_0x4e5b15,_0x7dbd9c);});_0x102a20['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x102a20['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x102a20['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x29ffae,_0x42e372)=>this['handleDiscardAction'](this['tableProperties'],_0x29ffae,_0x42e372)),_0x102a20['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x34e5d5 of this['tableCellProperties'])_0x102a20['enableCommand'](_0x34e5d5,(_0x2cbce7,_0x5004e1)=>{const _0x5be8e1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x34e5d5,_0x5be8e1,this['tableCellProperties'],'tableCellProperties',_0x2cbce7,_0x5004e1);});_0x102a20['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x102a20['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x102a20['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x475d56,_0x2addc0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x475d56,_0x2addc0)),_0x102a20['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x102a20['descriptionFactory']['registerDescriptionCallback'](_0x174039=>this['handleSuggestionDescription'](_0x174039));}['_handlePropertyChange'](_0x8e3034,_0x16d9fc,_0x4b4b56,_0x34d0c5,_0x51a15b,_0x2a1fe4){const _0x4d9a93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2a1fe4['batch'],()=>{for(const _0x2b9e51 of _0x16d9fc){if(this['_getSuggestion'](_0x2b9e51,_0x34d0c5))_0x51a15b(_0x2a1fe4);else{const _0x1f61ff={};for(const _0x4185da of _0x4b4b56){const _0x367d9b=_0x2b9e51['getAttribute'](_0x4185da);void 0x0!==_0x367d9b&&(_0x1f61ff[_0x4185da]=_0x367d9b);}_0x51a15b(_0x2a1fe4),_0x4d9a93['markBlockFormat'](_0x2b9e51,{'commandParams':[_0x1f61ff]},[],_0x34d0c5);}}});}['handleDiscardAction'](_0x315868,_0x2b68c7,_0x12e45b){const _0x30fb68=_0x2b68c7[0x0]['start']['nodeAfter'],_0x5559b4=_0x12e45b['commandParams'][0x0];this['editor']['model']['change'](_0x8e105e=>{for(const _0x24be82 of _0x315868)void 0x0!==_0x5559b4[_0x24be82]?_0x8e105e['setAttribute'](_0x24be82,_0x5559b4[_0x24be82],_0x30fb68):_0x8e105e['removeAttribute'](_0x24be82,_0x30fb68);});}['handleSuggestionDescription'](_0x1bce18){if(_0x1bce18['data'])switch(_0x1bce18['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x40dcb2,_0xa2f3a7){const _0x3d4194=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x82dad3 of _0x3d4194['getSuggestions']({'skipNotAttached':!0x0})){const _0x28f07d=_0x82dad3['getContainedElement']();if(_0x82dad3['subType']===_0xa2f3a7&&_0x28f07d===_0x40dcb2)return _0x82dad3;}return null;}}const u='$elementName';class p extends _0x4a939c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xfd6374,_0x4edae6,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2eae21){super(_0x2eae21),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2882a5,_0x562899,_0x4a612c,_0xd75f9b)=>{this['_model']['change'](()=>{for(const _0x7e0056 of[..._0xd75f9b,..._0x4a612c])this['_model']['markers']['has'](_0x7e0056)&&_0x2eae21['editing']['reconvertMarker'](_0x7e0056);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2eae21['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2eae21['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2eae21['config']['get']('trackChanges.trackFormatChanges'),_0x2eae21['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2eae21['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2eae21,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x26b3fa=this['editor'],_0x3d555c=(_0x1658b1,_0x2fc5dc)=>{if('attribute'!=_0x1658b1)return'ck-suggestion-marker-'+_0x1658b1;const _0x4ee19a=_0x2fc5dc['split']('|')[0x0];return this['_isBlockAttribute'](_0x4ee19a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x26b3fa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x307d54=>{const {id:_0x513d3a,authorId:_0x64f1f6,type:_0x20f33d,subType:_0x5b3d5f}=this['_splitMarkerName'](_0x307d54['markerName']),_0x4e7163=['ck-suggestion-marker',_0x3d555c(_0x20f33d,_0x5b3d5f)];let _0x54e2b6=0xbb8;return this['activeMarkers']['includes'](_0x307d54['markerName'])&&(_0x4e7163['push']('ck-suggestion-marker--active'),_0x54e2b6=0xbc2),'deletion'==_0x20f33d&&(_0x54e2b6+=0x5),{'classes':_0x4e7163,'attributes':{'data-suggestion':_0x513d3a,'data-author-id':_0x64f1f6},'priority':_0x54e2b6};}}),_0x26b3fa['conversion']['for']('dataDowncast')['add'](_0x432f0d=>{_0x432f0d['on']('addMarker:suggestion',(_0x28f742,_0x5b1e00,_0xa82ed4)=>{if(!_0xa82ed4['options']['showSuggestionHighlights'])return;const _0x4ca374=_0x5b1e00['item'];if(!_0x4ca374)return;const _0x3f0b2d=_0xa82ed4['mapper']['toViewElement'](_0x4ca374);_0x26b3fa['model']['schema']['isObject'](_0x4ca374)&&_0x3f0b2d&&!_0x3f0b2d['getCustomProperty']('widget')&&_0x3f0b2d['is']('containerElement')&&_0x4fa0c5(_0x3f0b2d,_0xa82ed4['writer']);},{'priority':'high'});}),_0x26b3fa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5b00e6,_0xd8ac7e)=>{if(!_0xd8ac7e['options']['showSuggestionHighlights'])return null;const {type:_0x14c0cc,subType:_0x22ff49}=this['_splitMarkerName'](_0x5b00e6['markerName']);return{'classes':['ck-suggestion-marker',_0x3d555c(_0x14c0cc,_0x22ff49)],'priority':0xbb8};}});const _0xeab05a=({showActiveMarkers:_0x5c0889=!0x0,isAttributeSuggestion:_0x18d23d=!0x1}={})=>(_0x54ebd1,_0x254f8a,_0x4b769c)=>{if(!_0x254f8a['item'])return;const {id:_0x5cb3a0,authorId:_0x18680a}=this['_splitMarkerName'](_0x254f8a['markerName']);if(_0x18d23d){const _0x54e61e=this['_suggestions']['get'](_0x5cb3a0),_0x5df2bb=this['_getAttributeKey'](_0x54e61e);if(!this['_isBlockAttribute'](_0x5df2bb))return;}if(_0x254f8a['item']['is']('selection'))return void _0x4b769c['consumable']['consume'](_0x254f8a['item'],_0x54ebd1['name']);const _0x5e76af=_0x4b769c['mapper']['toViewElement'](_0x254f8a['item']);if(_0x254f8a['item']['is']('element')&&_0x26b3fa['model']['schema']['isBlock'](_0x254f8a['item'])&&!_0x5e76af['getCustomProperty']('addHighlight')){_0x4b769c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5e76af),_0x4b769c['writer']['setAttribute']('data-suggestion',_0x5cb3a0,_0x5e76af),_0x4b769c['writer']['setAttribute']('data-author-id',_0x18680a,_0x5e76af),_0x4b769c['mapper']['bindElementToMarker'](_0x5e76af,_0x254f8a['markerName']),_0x5c0889&&(this['activeMarkers']['includes'](_0x254f8a['markerName'])?_0x4b769c['writer']['addClass']('ck-suggestion-marker--active',_0x5e76af):_0x4b769c['writer']['removeClass']('ck-suggestion-marker--active',_0x5e76af));for(const _0xfccbdd of _0x26b3fa['model']['createRangeIn'](_0x254f8a['item'])['getItems']())_0x4b769c['consumable']['consume'](_0xfccbdd,_0x54ebd1['name']);_0x4b769c['consumable']['consume'](_0x254f8a['item'],_0x54ebd1['name']);}};_0x26b3fa['conversion']['for']('dataDowncast')['add'](_0x157b3c=>{_0x157b3c['on']('addMarker:suggestion:formatBlock',(_0x5beaa8,_0x55e624,_0x7600de)=>{_0x7600de['options']['showSuggestionHighlights']&&_0xeab05a({'showActiveMarkers':!0x1})(_0x5beaa8,_0x55e624,_0x7600de);},{'priority':'highest'});}),_0x26b3fa['conversion']['for']('dataDowncast')['add'](_0x2498ef=>{_0x2498ef['on']('addMarker:suggestion:attribute',(_0x34ccb9,_0x35a173,_0xddaca9)=>{_0xddaca9['options']['showSuggestionHighlights']&&_0xeab05a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x34ccb9,_0x35a173,_0xddaca9);},{'priority':'highest'});}),_0x26b3fa['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3322a4,_0x3bd57a)=>_0x3bd57a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3322a4['substr'](0xb)}}),_0x26b3fa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5cbc62,{writer:_0x1883e5})=>{let _0x4f73c8='suggestion:'+_0x5cbc62['getAttribute']('suggestion-type')+':'+_0x5cbc62['getAttribute']('id');return _0x5cbc62['getAttribute']('marker-count')&&(_0x4f73c8+=':'+_0x5cbc62['getAttribute']('marker-count')),_0x1883e5['createElement']('$marker',{'data-name':_0x4f73c8});}}),_0x26b3fa['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x26b3fa['conversion']['for']('editingDowncast')['add'](_0x17a65e=>{_0x17a65e['on']('addMarker:suggestion:formatBlock',_0xeab05a(),{'priority':'high'});}),_0x26b3fa['conversion']['for']('editingDowncast')['add'](_0x385919=>{_0x385919['on']('addMarker:suggestion:attribute',_0xeab05a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x26b3fa['conversion']['for']('editingDowncast')['add'](_0x56c8d1=>{_0x56c8d1['on']('removeMarker:suggestion:formatBlock',(_0x2b7212,_0x357332,_0x238733)=>{const _0x5e948b=_0x238733['mapper']['markerNameToElements'](_0x357332['markerName']);if(_0x5e948b){for(const _0x3d584f of _0x5e948b)_0x3d584f['getCustomProperty']('addHighlight')||(_0x238733['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3d584f),_0x238733['writer']['removeAttribute']('data-suggestion',_0x3d584f),_0x238733['writer']['removeAttribute']('data-author-id',_0x3d584f),_0x238733['mapper']['unbindElementFromMarkerName'](_0x3d584f,_0x357332['markerName']));}},{'priority':'high'});}),_0x26b3fa['conversion']['for']('editingDowncast')['add'](_0x13177d=>{_0x13177d['on']('removeMarker:suggestion:attribute',(_0x4cd36e,_0x51b551,_0x39c816)=>{const _0x4650d1=_0x39c816['mapper']['markerNameToElements'](_0x51b551['markerName']);if(!_0x4650d1)return;const {id:_0x225965}=this['_splitMarkerName'](_0x51b551['markerName']),_0x4ffe05=this['_suggestions']['get'](_0x225965),_0x51dcf=this['_getAttributeKey'](_0x4ffe05);if(this['_isBlockAttribute'](_0x51dcf)){for(const _0x26bb67 of _0x4650d1)_0x26bb67['getCustomProperty']('addHighlight')||(_0x39c816['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26bb67),_0x39c816['writer']['removeAttribute']('data-suggestion',_0x26bb67),_0x39c816['writer']['removeAttribute']('data-author-id',_0x26bb67),_0x39c816['mapper']['unbindElementFromMarkerName'](_0x26bb67,_0x51b551['markerName']));}},{'priority':'high'});}),_0x26b3fa['model']['document']['registerPostFixer'](_0x22a3e6=>{let _0x589647=!0x1;const _0x1c891c=Array['from'](_0x26b3fa['model']['document']['differ']['getChangedMarkers']()),_0x1101cb=new Set();for(const {name:_0xd395f0,data:_0x1de14e}of _0x1c891c){const {group:_0x1b9b25,type:_0x20bad1,subType:_0x43ada3,id:_0x1450cb}=this['_splitMarkerName'](_0xd395f0);if('suggestion'!==_0x1b9b25)continue;const _0x2b31c0=this['_suggestions']['get'](_0x1450cb);if(null!=_0x1de14e['newRange']){'formatInline'==_0x20bad1&&(_0x589647=_0x589647||Jt(_0x1de14e['newRange'],_0xd395f0,_0x22a3e6,_0x26b3fa['model']['schema']));const _0x2790a3='attribute'==_0x20bad1&&this['_isBlockAttribute'](_0x43ada3['split']('|')[0x0]);if(_0x1de14e['newRange']['isCollapsed']||'$graveyard'==_0x1de14e['newRange']['root']['rootName']||'formatBlock'==_0x20bad1&&!Ht(_0x1de14e['newRange'])||_0x2790a3&&!Ht(_0x1de14e['newRange'])||'deletion'==_0x20bad1&&!(!Lt(_0x2e43ad=_0x1de14e['newRange'])&&!function(_0x4e7dff){return _0x4e7dff['start']['parent']==_0x4e7dff['end']['nodeBefore']&&_0x4e7dff['start']['isAtEnd'];}(_0x2e43ad)))_0x22a3e6['removeMarker'](_0xd395f0),_0x589647=!0x0;else{if(!_0x2b31c0||!_0x2b31c0['isInContent'])continue;if(_0x1de14e['newRange']&&_0x1de14e['oldRange']&&_0x1de14e['newRange']['isEqual'](_0x1de14e['oldRange']))continue;_0x1101cb['add'](_0x2b31c0);}}}var _0x2e43ad;return _0x1101cb['size']>0x0&&(_0x589647=!!this['_joinWithAdjacentSuggestions'](_0x1101cb)||_0x589647),_0x589647;}),_0x26b3fa['model']['document']['registerPostFixer'](_0x463739=>{let _0x5de1c0=!0x1;for(const _0x42104a of _0x26b3fa['model']['document']['differ']['getChanges']())if('insert'==_0x42104a['type'])for(const _0x34ad50 of this['_suggestions']['values']()){if(_0x34ad50['isMultiRange']||!_0x34ad50['isInContent'])continue;const _0x135aa7='formatBlock'==_0x34ad50['type'],_0x3fbb53=this['_getAttributeKey'](_0x34ad50),_0x99cc95=_0x3fbb53&&this['_isBlockAttribute'](_0x3fbb53);if(!_0x135aa7&&!_0x99cc95)continue;const _0x27ab0c=_0x34ad50['getFirstRange']();if(_0x27ab0c['start']['parent']!=_0x27ab0c['end']['parent']&&!_0x27ab0c['end']['isAtEnd']){const _0x370dbe=_0x26b3fa['model']['createPositionAt'](_0x27ab0c['start']['nodeAfter'],'end'),_0x192629=_0x26b3fa['model']['createRange'](_0x27ab0c['start'],_0x370dbe);_0x463739['updateMarker'](_0x34ad50['getFirstMarker'](),{'range':_0x192629}),_0x5de1c0=!0x0;}}return _0x5de1c0;}),_0x26b3fa['model']['document']['registerPostFixer'](_0xe41a93=>this['_processAttributeChanges'](_0xe41a93)),_0x26b3fa['model']['document']['registerPostFixer'](_0x448161=>!_0x448161['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x448161)),_0x26b3fa['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x26b3fa['model']['document']['on']('change:data',(_0x4e231e,_0x2f5034)=>{if(!_0x2f5034['isLocal']||_0x2f5034['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5da30a=_0x26b3fa['model']['document']['differ']['getChanges']();if(0x0==_0x5da30a['length'])return;const _0x2a8fd3=[],_0x48266d=_0x5da30a['filter'](_0x430d4f=>'attribute'==_0x430d4f['type']),_0x47c203=_0x5da30a['filter'](_0x57248a=>'insert'==_0x57248a['type']&&'$text'!=_0x57248a['name']);for(const _0x530eee of _0x48266d)this['_isRegisteredAttribute'](_0x530eee['attributeKey'])&&_0x2a8fd3['push']({'key':_0x530eee['attributeKey'],'newValue':_0x530eee['attributeNewValue'],'oldValue':_0x530eee['attributeOldValue'],'range':qt(_0x530eee['range'],_0x26b3fa['model'])});for(const _0x32743e of _0x47c203){if('rename'!=_0x32743e['action']&&'refresh'!=_0x32743e['action'])continue;const _0x33d7e7=zt(_0x32743e['position']['nodeAfter'],_0x26b3fa['model']),_0x42a0b9=_0x32743e['before'];'rename'==_0x32743e['action']&&_0x2a8fd3['push']({'key':u,'newValue':_0x32743e['name'],'oldValue':_0x42a0b9['name'],'range':_0x33d7e7});for(const [_0x1fbab1,_0x3ecf59]of _0x42a0b9['attributes']){if(!this['_isRegisteredAttribute'](_0x1fbab1))continue;const _0x5aa95b=_0x32743e['attributes']['get'](_0x1fbab1);_0x3ecf59!==_0x5aa95b&&_0x2a8fd3['push']({'key':_0x1fbab1,'newValue':_0x5aa95b,'oldValue':_0x3ecf59,'range':_0x33d7e7});}for(const [_0x2c6b13,_0x1e11ef]of _0x32743e['attributes'])this['_isRegisteredAttribute'](_0x2c6b13)&&(_0x42a0b9['attributes']['has'](_0x2c6b13)||_0x2a8fd3['push']({'key':_0x2c6b13,'newValue':_0x1e11ef,'oldValue':null,'range':_0x33d7e7}));}0x0!=_0x2a8fd3['length']&&_0x26b3fa['model']['enqueueChange'](_0x2f5034,_0x312caa=>{const _0x3bef41=_0x3028ef();for(const {range:_0x5a3f60,key:_0x438799,oldValue:_0x5756a5,newValue:_0x127425}of _0x2a8fd3)this['markAttributeChange'](_0x5a3f60,_0x438799,_0x5756a5,_0x127425,{'groupId':_0x3bef41});this['_reduceExistingSuggestions'](_0x312caa,_0x2a8fd3);});},{'priority':'lowest'}),_0x26b3fa['model']['markers']['on']('update:suggestion',(_0x2cd1d4,_0x533cbb,_0x2766b7)=>{if(null==_0x2766b7){const {id:_0x116e81}=this['_splitMarkerName'](_0x533cbb['name']),_0x2f7d99=this['_suggestions']['get'](_0x116e81);_0x2f7d99&&_0x2f7d99['addMarkerName'](_0x533cbb['name']);}}),_0x26b3fa['model']['document']['on']('change:data',()=>{const _0x33e2dd=Array['from'](_0x26b3fa['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1ea1bf=>'suggestion'===this['_splitMarkerName'](_0x1ea1bf['name'])['group']);if(0x0===_0x33e2dd['length'])return;_0x33e2dd['sort']((_0x4de3a3,_0x433c54)=>{const _0x95df6a=_0x4de3a3['data']['oldRange'],_0x1fc236=_0x433c54['data']['oldRange'];return null===_0x95df6a&&null===_0x1fc236?0x0:null===_0x95df6a&&null!==_0x1fc236?-0x1:null!==_0x95df6a&&null===_0x1fc236?0x1:_0x95df6a['start']['isBefore'](_0x1fc236['start'])?-0x1:0x1;});const _0x4406b4=new Set(),_0x2d2180=new Set();for(const {name:_0x24fbb8,data:_0x4272f6}of _0x33e2dd){const {id:_0x29328f}=this['_splitMarkerName'](_0x24fbb8);if(null===_0x4272f6['oldRange']){const _0xabe41a=this['_handleNewSuggestionMarker'](_0x24fbb8);_0x2d2180['add'](_0xabe41a);}else{const _0x6a6312=this['_suggestions']['get'](_0x29328f);null!==_0x4272f6['newRange']||_0x6a6312['isInContent']?(_0x4406b4['add'](_0x6a6312['head']),_0x2d2180['add'](_0x6a6312)):this['_removeSuggestion'](_0x6a6312);}}_0x2d2180['size']>0x0&&this['_refreshSuggestionsChain'](_0x2d2180);for(const _0x1466e6 of _0x4406b4)this['fire']('suggestionChanged',_0x1466e6);}),_0x26b3fa['model']['on']('applyOperation',(_0x414de5,_0x5c2bd1)=>{const _0x59925d=_0x5c2bd1[0x0];if(!this['_suggestions']['size'])return;if(!_0x59925d['isDocumentOperation'])return;if(_0x59925d['batch']['isUndo']||!_0x59925d['batch']['isLocal'])return;let _0x45e675,_0x34c93e;switch(_0x59925d['type']){case'insert':_0x45e675=_0x26b3fa['model']['createPositionAt'](_0x59925d['position']),_0x34c93e=_0x45e675['getShiftedBy'](_0x59925d['howMany']);break;case'split':_0x45e675=_0x26b3fa['model']['createPositionAt'](_0x59925d['splitPosition']),_0x34c93e=_0x26b3fa['model']['createPositionAt'](_0x59925d['moveTargetPosition']);break;case'move':_0x45e675=_0x26b3fa['model']['createPositionAt'](_0x59925d['targetPosition']),_0x34c93e=_0x45e675['getShiftedBy'](_0x59925d['howMany']);break;default:return;}const _0x5a4f08=_0x26b3fa['model']['createRange'](_0x45e675,_0x34c93e);_0x26b3fa['model']['change'](()=>{for(const {suggestion:_0x278f89,meta:_0x36deec}of this['_findSuggestions'](_0x5a4f08)){if(_0x278f89['isMultiRange'])continue;if('formatInline'==_0x278f89['type'])continue;const _0x2ea095=this['_getAttributeKey'](_0x278f89);if(_0x2ea095&&this['_isBlockAttribute'](_0x2ea095)&&'split'!=_0x59925d['type'])continue;const _0x5755fd=_0x278f89['data']&&_0x278f89['data']['multipleBlocks'];('formatBlock'!=_0x278f89['type']||'split'==_0x59925d['type']&&!_0x5755fd)&&(_0x36deec['containsRangeInObject']||'insertion'==_0x278f89['type']&&_0x36deec['isOwn']||_0x278f89['getFirstRange']()['containsRange'](_0x5a4f08)&&this['_breakSuggestionMarker'](_0x278f89,_0x45e675,_0x34c93e));}});},{'priority':'lowest'}),_0x26b3fa['model']['on']('deleteContent',(_0x7cf491,_0x51c4fb)=>{const _0x1f5c64=_0x51c4fb[0x0],_0x11671a=_0x51c4fb[0x1];if(_0x11671a&&_0x11671a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1f5c64['isCollapsed'])return;const _0x1bbc7f=_0x26b3fa['model']['schema'],{start:_0x18ed8e,end:_0x3f593f}=_0x1f5c64['getFirstRange'](),_0x2e1edc=_0x18ed8e['nodeAfter']&&_0x1bbc7f['isLimit'](_0x18ed8e['nodeAfter'])?null:_0x1bbc7f['getNearestSelectionRange'](_0x18ed8e,'forward'),_0x1b6ddc=_0x3f593f['nodeBefore']&&_0x1bbc7f['isLimit'](_0x3f593f['nodeBefore'])?null:_0x1bbc7f['getNearestSelectionRange'](_0x3f593f,'backward'),_0x2547c5=_0x26b3fa['model']['createRange'](_0x2e1edc?_0x2e1edc['start']:_0x18ed8e,_0x1b6ddc?_0x1b6ddc['end']:_0x3f593f);_0x26b3fa['model']['change'](_0x4bfade=>{this['markDeletion'](_0x2547c5);const _0x1587e6=_0x26b3fa['model']['schema']['getNearestSelectionRange'](_0x2547c5['start']);_0x1f5c64['is']('documentSelection')?_0x4bfade['setSelection'](_0x1587e6):_0x1f5c64['setTo'](_0x1587e6);}),_0x7cf491['stop']();},{'priority':_0x3495c0['normal']+0xa}),_0x26b3fa['model']['on']('insertContent',(_0x2496f7,_0x152396)=>{const _0x342707=_0x152396[_0x152396['length']-0x1];_0x342707&&_0x342707['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x26b3fa['model']['change'](()=>{let _0x3bc53e=_0x26b3fa['model']['insertContent'](_0x152396[0x0],_0x152396[0x1],_0x152396[0x2],{'forceDefaultExecution':!0x0});if(!_0x3bc53e)return;_0x2496f7['return']=_0x3bc53e['clone']();const _0x5792c3=_0x3bc53e['end']['nodeBefore'],_0x24409d=_0x26b3fa['model']['schema'];_0x5792c3&&_0x24409d['isBlock'](_0x5792c3)&&!_0x24409d['isObject'](_0x5792c3)&&(_0x3bc53e=_0x26b3fa['model']['createRange'](_0x3bc53e['start'],_0x26b3fa['model']['createPositionAt'](_0x5792c3,'end'))),this['markInsertion'](_0x3bc53e);}),_0x2496f7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1259bf=new O(_0x26b3fa,this['_suggestions']);_0x26b3fa['commands']['add']('acceptSuggestion',_0x1259bf),this['enableCommand']('acceptSuggestion');const _0x451a35=new R(_0x26b3fa,this['_suggestions']);_0x26b3fa['commands']['add']('discardSuggestion',_0x451a35),this['enableCommand']('discardSuggestion'),_0x26b3fa['commands']['add']('acceptAllSuggestions',new x(_0x26b3fa,_0x1259bf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x26b3fa['commands']['add']('discardAllSuggestions',new x(_0x26b3fa,_0x451a35,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x26b3fa['commands']['add']('acceptSelectedSuggestions',new E(_0x26b3fa,_0x1259bf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x26b3fa['commands']['add']('discardSelectedSuggestions',new E(_0x26b3fa,_0x451a35,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2dbd1b=_0x26b3fa['plugins']['get']('CommentsRepository');this['listenTo'](_0x2dbd1b,'addComment',(_0x24fc24,{threadId:_0x37a5bd})=>{const _0x543011=this['_suggestions']['get'](_0x37a5bd);_0x543011&&_0x543011['commentThread']&&0x1===_0x543011['commentThread']['length']&&this['_updateSuggestionData'](_0x37a5bd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2dbd1b,'removeComment',(_0x5745df,{threadId:_0x3c655d})=>{const _0x3bec98=this['_suggestions']['get'](_0x3c655d);_0x3bec98&&_0x3bec98['commentThread']&&!_0x3bec98['commentThread']['length']&&this['_updateSuggestionData'](_0x3c655d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x243934){const _0x26c9fc=_0x5f17c0([0x6d,0x77,0x4b,0x65,0x48,0x53,0x78,0x74,0x63,0x44,0x6f,0x37,0x30,0x39,0x45,0x50,0x32,0x33,0x57,0x41,0x67,0x49,0x55,0x66,0x79,0x59,0x34,0x56,0x72,0x61,0x6b,0x51,0x6e,0x4c,0x36,0x52,0x6a,0x42,0x35,0x71,0x4f,0x47,0x31,0x46,0x4e,0x62,0x7a,0x64,0x6c,0x76,0x68,0x70,0x43,0x38,0x5a,0x54,0x4d,0x73,0x75,0x58,0x4a,0x69]),_0x5c68d2=0xb0e18a2,_0x36d3ea=0xb097bf2^_0x5c68d2,_0x267138=window[_0x5f17c0([0x44,0x61,0x74,0x65])][_0x5f17c0([0x6e,0x6f,0x77])](),_0x3fdad3=_0x243934[_0x5f17c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x477929=new window[(_0x5f17c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d73ea=>{_0x3fdad3[_0x5f17c0([0x6f,0x6e,0x63,0x65])](_0x5f17c0([0x72,0x65,0x61,0x64,0x79]),_0x4d73ea);}),_0x1da98b={[_0x5f17c0([0x6b,0x74,0x79])]:_0x5f17c0([0x45,0x43]),[_0x5f17c0([0x75,0x73,0x65])]:_0x5f17c0([0x73,0x69,0x67]),[_0x5f17c0([0x63,0x72,0x76])]:_0x5f17c0([0x50,0x2d,0x32,0x35,0x36]),[_0x5f17c0([0x78])]:_0x5f17c0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5f17c0([0x79])]:_0x5f17c0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5f17c0([0x61,0x6c,0x67])]:_0x5f17c0([0x45,0x53,0x32,0x35,0x36])},_0x391073=_0x3fdad3[_0x5f17c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f17c0([0x67,0x65,0x74])](_0x5f17c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ef29e(){let _0x1d0dfb,_0x43a377=null,_0x23b72c=null;try{if(_0x391073==_0x5f17c0([0x47,0x50,0x4c]))return _0x5f17c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d0dfb=_0x4450f7(),!_0x1d0dfb)return _0x5f17c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d0dfb[_0x5f17c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23b72c=_0x6a6d6d(_0x1d0dfb[_0x5f17c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d0dfb[_0x5f17c0([0x6a,0x74,0x69])])),await _0x232db8()?_0x6e4415()?_0xdc3561()?_0x5f17c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xbe97af()?(_0x1d0dfb[_0x5f17c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f17c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43a377=_0x3bd273(_0x5f17c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d0dfb[_0x5f17c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f17c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x43a377=_0x3bd273(_0x5f17c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21e332()):_0x5f17c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f17c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f17c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38390e){return _0x5f17c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xdc3561(){const _0x687ba5=[_0x5f17c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f17c0([0x74,0x72,0x69,0x61,0x6c])][_0x5f17c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d0dfb[_0x5f17c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x267138/0x3e8:0xe10*_0x36d3ea;return _0x1d0dfb[_0x5f17c0([0x65,0x78,0x70])]<_0x687ba5;}function _0x6e4415(){const _0x3ea1a9=_0x1d0dfb[_0x5f17c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ea1a9)return!0x1;if(_0x3ea1a9[_0x5f17c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f17c0([0x2a])))return!0x0;if(_0x3ea1a9[_0x5f17c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f17c0([0x54,0x43])))return!0x0;if(_0x3ea1a9[_0x5f17c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f17c0([0x52,0x54,0x43]))){if(_0x5dc490())return!0x0;if(_0x2799bf()||_0x40d7ca())return!0x0;}return!0x1;}function _0xbe97af(){const _0x2ba2b8=_0x1d0dfb[_0x5f17c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ba2b8||0x0==_0x2ba2b8[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38555e}=new URL(window[_0x5f17c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ba2b8[_0x5f17c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38555e))return!0x0;const _0x345b83=_0x38555e[_0x5f17c0([0x73,0x70,0x6c,0x69,0x74])](_0x5f17c0([0x2e]));return _0x2ba2b8[_0x5f17c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f875f=>_0x1f875f[_0x5f17c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f17c0([0x2a])))[_0x5f17c0([0x6d,0x61,0x70])](_0x2a809e=>_0x2a809e[_0x5f17c0([0x73,0x70,0x6c,0x69,0x74])](_0x5f17c0([0x2e])))[_0x5f17c0([0x73,0x6f,0x6d,0x65])](_0x4f22ad=>_0x345b83[_0x5f17c0([0x65,0x76,0x65,0x72,0x79])]((_0x33f81a,_0x217981)=>_0x4f22ad[_0x217981]===_0x33f81a||_0x4f22ad[_0x217981]===_0x5f17c0([0x2a])));}function _0x21e332(){return _0x43a377&&_0x23b72c?new window[(_0x5f17c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d42ff,_0x455330)=>{_0x43a377[_0x5f17c0([0x74,0x68,0x65,0x6e])](_0x5d42ff,_0x455330),_0x23b72c[_0x5f17c0([0x74,0x68,0x65,0x6e])](_0x9bc6c6=>{_0x9bc6c6!=_0x5f17c0([0x56,0x61,0x6c,0x69,0x64])&&_0x5d42ff(_0x9bc6c6);},_0x455330);}):_0x43a377||_0x23b72c||_0x5f17c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6a6d6d(_0x56130f,_0xc1b0a1){return new window[(_0x5f17c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34db79=>{if(_0x20d90c())return _0x34db79(_0x5f17c0([0x56,0x61,0x6c,0x69,0x64]));_0x168fd0(),_0x3fdad3[_0x5f17c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f17c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cb77f=!0x1;const _0xa88f85=_0x3028ef();function _0x569689(_0x22bf26){return!!_0x22bf26&&(typeof _0x22bf26===_0x5f17c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22bf26===_0x5f17c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22bf26[_0x5f17c0([0x74,0x68,0x65,0x6e])]===_0x5f17c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22bf26[_0x5f17c0([0x63,0x61,0x74,0x63,0x68])]===_0x5f17c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3832d8(_0x2be5be){_0x3080d0(_0x2be5be)[_0x5f17c0([0x74,0x68,0x65,0x6e])](_0x3adc2b=>{if(!_0x3adc2b||_0x3adc2b[_0x5f17c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f17c0([0x6f,0x6b]))return _0x5f17c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b739a(_0x5e9174(_0xa88f85+_0xc1b0a1))!=_0x3adc2b[_0x5f17c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f17c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f17c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f17c0([0x74,0x68,0x65,0x6e])](_0x2d2fbf=>(_0x4d6c0e(),_0x2d2fbf),()=>{const _0x448c43=_0x471af5();return null==_0x448c43?(_0x4d6c0e(),_0x5f17c0([0x56,0x61,0x6c,0x69,0x64])):_0x5f17c0(_0x267138-_0x448c43>(0x2f029ca2^_0x5c68d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f17c0([0x74,0x68,0x65,0x6e])](_0x34db79)[_0x5f17c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34db79(_0x5f17c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10fa99=0xb38f622^_0x5c68d2;function _0x4d6c0e(){const _0x55fc24=_0x5f17c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b739a(_0x5e9174(_0x56130f)),_0xc5d886=_0x2d95c1(_0x4b739a(window[_0x5f17c0([0x4d,0x61,0x74,0x68])][_0x5f17c0([0x63,0x65,0x69,0x6c])](_0x267138/_0x10fa99)));window[_0x5f17c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f17c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55fc24,_0xc5d886);}function _0x471af5(){const _0x2cce6c=_0x5f17c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b739a(_0x5e9174(_0x56130f)),_0x8e072c=window[_0x5f17c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f17c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cce6c);return _0x8e072c?window[_0x5f17c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d95c1(_0x8e072c),0x10)*_0x10fa99:null;}function _0x3080d0(_0x2f6919){return new window[(_0x5f17c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26d03c,_0x4f0b60)=>{_0x2f6919[_0x5f17c0([0x74,0x68,0x65,0x6e])](_0x26d03c,_0x4f0b60),window[_0x5f17c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f0b60,0xb0fcc62^_0x5c68d2);});}}_0x3fdad3[_0x5f17c0([0x6f,0x6e])](_0x5f17c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d1d85,_0x10fddf)=>{if(_0x10fddf[0x0]!=_0x56130f)return _0x34db79(_0x5f17c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10fddf[0x1]={..._0x10fddf[0x1],[_0x5f17c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa88f85};},{[_0x5f17c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f17c0([0x68,0x69,0x67,0x68])}),_0x3fdad3[_0x5f17c0([0x6f,0x6e])](_0x5f17c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x588a4b=>{_0x569689(_0x588a4b[_0x5f17c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cb77f=!0x0,_0x3832d8(_0x588a4b[_0x5f17c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f17c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f17c0([0x6c,0x6f,0x77])}),_0x477929[_0x5f17c0([0x74,0x68,0x65,0x6e])](()=>{_0x5cb77f||_0x34db79(_0x5f17c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20d90c(){return _0x3fdad3[_0x5f17c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f17c0([0x76,0x69,0x65,0x77])][_0x5f17c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f17c0([0x61,0x75,0x74,0x6f]);}function _0x168fd0(){_0x3fdad3[_0x5f17c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f17c0([0x76,0x69,0x65,0x77])][_0x5f17c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f17c0([0x61,0x75,0x74,0x6f]);}}function _0x3bd273(_0x4dd064){const _0x19d3a1=[new window[(_0x5f17c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b3af7=>setTimeout(_0x2b3af7,0xb07266e^_0x5c68d2)),_0x477929[_0x5f17c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f17c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a0bad=>{let _0x2a97d3=0x0;_0x3fdad3[_0x5f17c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f17c0([0x6f,0x6e])](_0x5f17c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cfc0f,_0x55f8d5)=>{_0x55f8d5[0x0][_0x5f17c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a97d3++,_0x2a97d3==(0xb0e195a^_0x5c68d2)&&(_0x4a0bad(),_0x4cfc0f[_0x5f17c0([0x6f,0x66,0x66])]());});}))];return window[_0x5f17c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f17c0([0x72,0x61,0x63,0x65])](_0x19d3a1)[_0x5f17c0([0x74,0x68,0x65,0x6e])](()=>_0x4dd064);}async function _0x3f8f2b(){await _0x477929,_0x3fdad3[_0x5f17c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f17c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17b952,_0x3fdad3[_0x5f17c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f17c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17b952,_0x3fdad3[_0x5f17c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f17c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5dc490(){return _0x5b220f(_0x5f17c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5338b2(_0x5f17c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f17c0([0x73,0x74,0x61,0x74,0x65])]==_0x5f17c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2799bf(){return _0x5b220f(_0x5f17c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x40d7ca(){return _0x5b220f(_0x5f17c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x281f67(_0x227ba7){const _0x3fbdd8=_0x422475();_0x3fdad3[_0x3fbdd8]=_0x5f17c0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x227ba7,_0x227ba7!=_0x5f17c0([0x56,0x61,0x6c,0x69,0x64])&&_0x3f8f2b();}function _0x422475(){const _0x2e79db=window[_0x5f17c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f17c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f17c0([0x6e,0x6f,0x77])]())[_0x5f17c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f17c0([0x2e]),'');let _0xcd7d8e=_0x5f17c0([0x6d]);for(let _0x3cf43a=0x0;_0x3cf43a<_0x2e79db[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cf43a+=0x2){let _0x53d1bd=window[_0x5f17c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e79db[_0x5f17c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cf43a,_0x3cf43a+0x2));_0x53d1bd>=_0x26c9fc[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53d1bd-=_0x26c9fc[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcd7d8e+=_0x26c9fc[_0x53d1bd];}return _0xcd7d8e;}function _0x4450f7(){const _0x1ff2b9=_0x391073[_0x5f17c0([0x73,0x70,0x6c,0x69,0x74])](_0x5f17c0([0x2e]));if(0x3!=_0x1ff2b9[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x364af9(_0x1ff2b9[0x1]);function _0x364af9(_0xe65c68){const _0xa2487f=_0x253d55(_0xe65c68);return _0xa2487f&&_0x23063b()?_0xa2487f:null;function _0x23063b(){const _0x20f7da=_0xa2487f[_0x5f17c0([0x6a,0x74,0x69])],_0xfc5b1c=window[_0x5f17c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20f7da[_0x5f17c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20f7da[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29f65d={..._0xa2487f,[_0x5f17c0([0x6a,0x74,0x69])]:_0x20f7da[_0x5f17c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20f7da[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29f65d[_0x5f17c0([0x76,0x63])],_0x5e9174(_0x29f65d)==_0xfc5b1c;}}}async function _0x232db8(){let _0x3bb4e3=!0x0;try{const _0x466445=_0x391073[_0x5f17c0([0x73,0x70,0x6c,0x69,0x74])](_0x5f17c0([0x2e])),[_0x4c325a,_0x1f5edd,_0x5a77eb]=_0x466445;return _0x3f6fb6(_0x4c325a),await _0x4412d3(_0x4c325a,_0x1f5edd,_0x5a77eb),_0x3bb4e3;}catch(_0x282c21){return!0x1;}function _0x3f6fb6(_0x5ce3bb){const _0x57cf45=_0x253d55(_0x5ce3bb);_0x57cf45&&_0x57cf45[_0x5f17c0([0x61,0x6c,0x67])]==_0x5f17c0([0x45,0x53,0x32,0x35,0x36])||(_0x3bb4e3=!0x1);}async function _0x4412d3(_0x4b23a7,_0x54dd5c,_0xf20887){const _0x5a942c=window[_0x5f17c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f17c0([0x66,0x72,0x6f,0x6d])](_0x687b6(_0xf20887),_0x44efae=>_0x44efae[_0x5f17c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3684c6=new window[(_0x5f17c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f17c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b23a7+_0x5f17c0([0x2e])+_0x54dd5c),_0x307ca9=window[_0x5f17c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f17c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x307ca9)return;const _0x309d3d=await _0x307ca9[_0x5f17c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f17c0([0x6a,0x77,0x6b]),_0x1da98b,{[_0x5f17c0([0x6e,0x61,0x6d,0x65])]:_0x5f17c0([0x45,0x43,0x44,0x53,0x41]),[_0x5f17c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f17c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f17c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x307ca9[_0x5f17c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f17c0([0x6e,0x61,0x6d,0x65])]:_0x5f17c0([0x45,0x43,0x44,0x53,0x41]),[_0x5f17c0([0x68,0x61,0x73,0x68])]:{[_0x5f17c0([0x6e,0x61,0x6d,0x65])]:_0x5f17c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x309d3d,_0x5a942c,_0x3684c6)||(_0x3bb4e3=!0x1);}}function _0x253d55(_0xd244c4){return _0xd244c4[_0x5f17c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f17c0([0x65,0x79]))?JSON[_0x5f17c0([0x70,0x61,0x72,0x73,0x65])](_0x687b6(_0xd244c4)):null;}function _0x687b6(_0x1641b9){return window[_0x5f17c0([0x61,0x74,0x6f,0x62])](_0x1641b9[_0x5f17c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f17c0([0x2b]))[_0x5f17c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f17c0([0x2f])));}function _0x5e9174(_0x430be4){let _0x37bc14=0x1505;function _0x275bce(_0x138096){for(let _0x26fe45=0x0;_0x26fe45<_0x138096[_0x5f17c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26fe45++){const _0x3e8516=_0x138096[_0x5f17c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26fe45);_0x37bc14=(_0x37bc14<<0x5)+_0x37bc14+_0x3e8516,_0x37bc14&=_0x37bc14;}}function _0x51c22b(_0xb68263){Array[_0x5f17c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb68263)?_0xb68263[_0x5f17c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51c22b):_0xb68263&&typeof _0xb68263==_0x5f17c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f17c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb68263)[_0x5f17c0([0x73,0x6f,0x72,0x74])]()[_0x5f17c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27c571,_0x5429f5])=>{_0x275bce(_0x27c571),_0x51c22b(_0x5429f5);}):_0x275bce(window[_0x5f17c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb68263));}return _0x51c22b(_0x430be4),_0x37bc14>>>0x0;}function _0x4b739a(_0x3fa6e1){return _0x3fa6e1[_0x5f17c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f17c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f17c0([0x30]));}function _0x2d95c1(_0x8ff454){return _0x8ff454[_0x5f17c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f17c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f17c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b220f(_0x1ede5b){return _0x3fdad3[_0x5f17c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f17c0([0x68,0x61,0x73])](_0x1ede5b);}function _0x5338b2(_0x428675){return _0x3fdad3[_0x5f17c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f17c0([0x67,0x65,0x74])](_0x428675);}function _0x17b952(){}function _0x5f17c0(_0x57b87d){return _0x57b87d['map'](_0x1b6e86=>String['fromCharCode'](_0x1b6e86))['join']('');}_0x281f67(await _0x3ef29e());}(this);}set['adapter'](_0x12323c){if(this['_adapter'])throw new _0x103cc1('track-changes-adapter-already-set',this);this['_adapter']=_0x12323c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ff24b=!0x1,toJSON:_0xcec33e=!0x1}={}){const _0x2ab3bf=[];for(const _0x189e8e of this['_suggestions']['values']())_0x2ff24b&&!_0x189e8e['isInContent']||_0x2ab3bf['push'](_0x189e8e);return _0xcec33e?_0x2ab3bf['map'](_0x597e70=>_0x597e70['toJSON']()):_0x2ab3bf;}['getSuggestion'](_0x1eeb7e){const _0x4bd9c7=this['_suggestions']['get'](_0x1eeb7e);if(!_0x4bd9c7)throw new _0x103cc1('track-changes-suggestion-not-found',this);return _0x4bd9c7;}['hasSuggestion'](_0x334456){return this['_suggestions']['has'](_0x334456);}['addSuggestionData'](_0xaa87a){const {authorId:_0x2e1415,id:_0x30a0ec,attributes:_0x20f44}=_0xaa87a,[_0x4e4858,_0x575bd4]=_0xaa87a['type']['split'](':'),_0x302256=this['_suggestions']['get'](_0x30a0ec)||this['_createSuggestion'](_0x4e4858,_0x575bd4,_0x30a0ec,_0x2e1415,_0x20f44);if(this['_addThreadToSuggestion'](_0x302256),this['_checkSuggestionCorrectness'](_0x302256,_0x4e4858,_0x575bd4||null,_0x2e1415),_0x302256['createdAt']=_0xaa87a['createdAt'],_0x302256['_isDataLoaded']=!0x0,_0x20f44&&_0x20f44['@external']){const _0x1147e5=_0x20f44['@external'],_0x565dde=this['_getExternalAuthor'](_0x1147e5['authorName']);_0x302256['authoredAt']=_0x1147e5['createdAt'],_0x302256['author']=_0x565dde,_0x302256['isExternal']=!0x0;}else _0x302256['authoredAt']=_0xaa87a['createdAt'];switch(_0xaa87a['data']&&(_0x302256['data']=_0xaa87a['data']),_0xaa87a['attributes']&&(_0x302256['attributes']=_0xaa87a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x302256['_saved']=!0x0),this['_suggestionState']['get'](_0x302256)){case'notReady':this['_suggestionState']['set'](_0x302256,'dataReady');break;case'markerReady':_0x302256['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x302256])),this['_refreshSuggestionsChain'](new Set([_0x302256])),this['_suggestionState']['set'](_0x302256,'ready'),this['fire']('suggestionLoaded',_0x302256)):this['_suggestionState']['set'](_0x302256,'removed');}return _0x302256;}['acceptSuggestion'](_0x439405){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41cd0b of _0x439405['getAllAdjacentSuggestions']())_0x41cd0b['accept']();});});}['discardSuggestion'](_0xb42a78){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52adc3 of _0xb42a78['getAllAdjacentSuggestions']())_0x52adc3['discard']();});});}['enableCommand'](_0x48f720,_0x2a9ad3){const _0x58c9f2=this['editor']['commands']['get'](_0x48f720);if(!_0x58c9f2)throw new _0x103cc1('track-changes-command-not-found',this,{'commandName':_0x48f720});if(this['_enabledCommands']['has'](_0x58c9f2))throw new _0x103cc1('track-changes-enable-command-twice',this,{'commandName':_0x48f720});this['_enabledCommands']['add'](_0x58c9f2),_0x2a9ad3&&_0x58c9f2['on']('execute',(_0x27ab79,_0x37852d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x37852d['length']>0x0&&_0x37852d[_0x37852d['length']-0x1]&&_0x37852d[_0x37852d['length']-0x1]['forceDefaultExecution']?_0x37852d['pop']():(_0x27ab79['return']=_0x2a9ad3((..._0xc411a2)=>_0x58c9f2['execute'](..._0xc411a2,{'forceDefaultExecution':!0x0}),..._0x37852d),_0x27ab79['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x48e2ee){let _0x56db78,_0x4c1b79;const _0x2dbc96=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56db78=_0x48e2ee();}catch(_0x1487ef){_0x4c1b79=_0x1487ef;}return _0x2dbc96||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c1b79&&_0x103cc1['rethrowUnexpectedError'](_0x4c1b79,this),_0x56db78;}['markInsertion'](_0x43b354,_0x4230f0=null,_0x2eb1a0={}){if(_0x43b354['isCollapsed'])return null;const _0x4e86f1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2393a5,meta:_0x3b3b04}of this['_findSuggestions'](_0x43b354,'insertion'))if(_0x3b3b04['isOwn']){if(!_0x3b3b04['isNextTo']){if(_0x3b3b04['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2393a5,_0x2eb1a0))continue;return _0x2393a5;}if(Xt(_0x2393a5,_0x2eb1a0))return _0x2393a5;this['_breakSuggestionMarker'](_0x2393a5,_0x43b354['start'],_0x43b354['end']);break;}if(_0x4230f0==_0x2393a5['subType']&&Xt(_0x2393a5,_0x2eb1a0)){const _0x2184ca=_0x2393a5['getFirstRange']();return _0x2184ca['start']['isEqual'](_0x43b354['end'])?this['_setSuggestionRange'](_0x2393a5,this['_model']['createRange'](_0x43b354['start'],_0x2184ca['end'])):this['_setSuggestionRange'](_0x2393a5,this['_model']['createRange'](_0x2184ca['start'],_0x43b354['end'])),_0x2393a5;}}const _0x1a268f=_0x3028ef(),_0x168240=_0x4e86f1['id'],_0x44a89d=_0x4230f0?'insertion:'+_0x4230f0:'insertion',_0x235754=this['_setSuggestionData']({'id':_0x1a268f,'type':_0x44a89d,'createdAt':new Date(),'authorId':_0x168240,'attributes':_0x2eb1a0});return this['_addSuggestionMarker'](_0x44a89d,_0x1a268f,_0x168240,_0x43b354),_0x235754;}['markMultiRangeInsertion'](_0x240b18,_0x11b057='multi',_0x235ca6={}){const _0xecb90f=this['editor']['plugins']['get']('Users')['me'],_0x2eb8dc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x11b057,'join');for(const _0x8067b2 of this['getSuggestions']())if(_0x8067b2['author']['id']==_0xecb90f['id']&&'insertion'==_0x8067b2['type']&&_0x8067b2['subType']==_0x11b057&&Xt(_0x8067b2,_0x235ca6)&&(_0x2eb8dc(_0x8067b2['getRanges'](),_0x240b18)||_0x2eb8dc(_0x240b18,_0x8067b2['getRanges']()))){for(const _0x3a00c3 of _0x240b18)_0x8067b2['addRange'](_0x3a00c3);return _0x8067b2;}for(const {suggestion:_0x345a0b,meta:_0x55ee07}of this['_findSuggestions'](_0x240b18,'insertion')){if(!_0x55ee07['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x55ee07['containsRangeInObject'])continue;if(!Xt(_0x345a0b,_0x235ca6))continue;let _0x976e77=!0x0;for(const _0x2bdd99 of _0x345a0b['getRanges']())for(const _0x44d4ff of _0x240b18)if(!_0x2bdd99['containsRange'](_0x44d4ff)){_0x976e77=!0x1;break;}if(_0x976e77)return _0x345a0b;}const _0x1ef2c3=_0x3028ef(),_0x258b0d=_0xecb90f['id'],_0x4692c3='insertion:'+_0x11b057,_0x9bcbb4=this['_setSuggestionData']({'id':_0x1ef2c3,'type':_0x4692c3,'createdAt':new Date(),'authorId':_0x258b0d,'attributes':_0x235ca6});for(const _0x2c641e of _0x240b18)this['_addSuggestionMarker'](_0x4692c3,_0x1ef2c3,_0x258b0d,_0x2c641e,o['getMultiRangeId']());return _0x9bcbb4;}['markInlineFormat'](_0x25d0be,_0x24f8df,_0x22646f=null,_0x22606c={}){if(_0x22646f=_0x22646f||Kt(_0x24f8df),_0x25d0be['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4de22d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22646f,'accept');return this['forceDefaultExecution'](()=>_0x4de22d([_0x25d0be],_0x24f8df,_0x22606c)),null;}const _0x2599bb=this['editor']['plugins']['get']('Users')['me'],_0x52986d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x25a16e,meta:_0xb614ce}of this['_findSuggestions'](_0x25d0be,'insertion'))_0xb614ce['isOwn']&&!_0xb614ce['isInsideObject']&&_0x52986d['push'](..._0x25a16e['getRanges']());}const _0x1fd805=function(_0x4c2aa8,_0x38ea6d){const _0x2e5a7c=[];for(const _0x54f3de of _0x38ea6d){const _0x563d19=_0x4c2aa8['getIntersection'](_0x54f3de);_0x563d19&&_0x2e5a7c['push'](_0x563d19);}return _0x2e5a7c;}(_0x25d0be,_0x52986d),_0x583842=function(_0x4b4127,_0x162f58){const _0x235799=[_0x4b4127];for(const _0x40fbe1 of _0x162f58){let _0x9f76c5=0x0;for(;_0x9f76c5<_0x235799['length'];){const _0x1068ec=_0x235799[_0x9f76c5]['getDifference'](_0x40fbe1);_0x235799['splice'](_0x9f76c5,0x1,..._0x1068ec),_0x9f76c5+=_0x1068ec['length'];}}return _0x235799;}(_0x25d0be,_0x52986d);_0x1fd805['length']&&this['_model']['change'](()=>{for(const _0x3a486d of _0x1fd805){const _0x5d4f9d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22646f,'accept');this['forceDefaultExecution'](()=>_0x5d4f9d([_0x3a486d],_0x24f8df,_0x22606c));}});for(const _0x406265 of _0x583842){let _0x1ed307=null,_0x3e2264=_0x406265['start'],_0x199dc9=_0x406265['end'];for(const {suggestion:_0x1475f6,meta:_0x21c15a}of this['_findSuggestions'](_0x406265,'formatInline')){if(!_0x21c15a['isOwn'])continue;if(_0x1475f6['subType']!=_0x22646f)continue;if(!Xt(_0x1475f6,_0x22606c))continue;const _0x3850b9=_0x1475f6['getFirstRange']();if(_0x3850b9['containsRange'](_0x406265,!0x0))return null;_0x3e2264=_0x3e2264['isBefore'](_0x3850b9['start'])?_0x3e2264:_0x3850b9['start'],_0x199dc9=_0x199dc9['isAfter'](_0x3850b9['end'])?_0x199dc9:_0x3850b9['end'],_0x1ed307?_0x3850b9['start']['isBefore'](_0x1ed307['getFirstRange']()['start'])?(_0x1ed307['removeMarkers'](),_0x1ed307=_0x1475f6):_0x1475f6['removeMarkers']():_0x1ed307=_0x1475f6;}const _0x5e7a83=this['_model']['createRange'](_0x3e2264,_0x199dc9);if(_0x1ed307)this['_setSuggestionRange'](_0x1ed307,_0x5e7a83);else{const _0x3a5582=_0x3028ef(),_0x9f1f80=_0x2599bb['id'];this['_setSuggestionData']({'id':_0x3a5582,'type':'formatInline:'+_0x22646f,'data':_0x24f8df,'createdAt':new Date(),'authorId':_0x9f1f80,'attributes':_0x22606c}),this['_addSuggestionMarker']('formatInline:'+_0x22646f,_0x3a5582,_0x9f1f80,_0x5e7a83);}}return null;}['markBlockFormat'](_0x3cd300,_0xe7bd63,_0x3f2b40=[],_0x574fc7=null,_0xbadbb2={}){_0xe7bd63['formatGroupId']||(_0xe7bd63['formatGroupId']=_0xe7bd63['commandName']),_0xe7bd63['multipleBlocks']=_0x3cd300['is']('range'),_0x574fc7=_0x574fc7||Kt(_0xe7bd63);const _0x39fe4c=_0x3f2b40['map'](_0x500a93=>zt(_0x500a93,this['_model'])),_0x2084ac=_0x3cd300['is']('range')?_0x3cd300:zt(_0x3cd300,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2afda7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x574fc7,'accept');return this['forceDefaultExecution'](()=>_0x2afda7([_0x2084ac],_0xe7bd63,_0xbadbb2)),null;}_0x39fe4c['push'](_0x2084ac);let _0x14bba2=!0x0;for(const _0x10e021 of _0x39fe4c)if(!this['_rangeIsInLocalUserInsertion'](_0x10e021)){_0x14bba2=!0x1;break;}if(_0x14bba2&&'always'!==this['_trackFormatChanges']){const _0x24b810=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x574fc7,'accept');return this['forceDefaultExecution'](()=>_0x24b810([_0x2084ac],_0xe7bd63,_0xbadbb2)),null;}let _0x3c4c55=null,_0x3d097f=_0x2084ac['start'],_0x463fbf=_0x2084ac['end'];for(const {suggestion:_0x2b58a8,meta:_0x6082ea}of this['_findSuggestions'](_0x2084ac,'formatBlock')){if(!_0x6082ea['isOwn'])continue;if(_0x6082ea['isNextTo']||_0x6082ea['containsRangeInObject']||_0x6082ea['isInsideObject'])continue;if(_0x2b58a8['data']['formatGroupId']!=_0xe7bd63['formatGroupId'])continue;if(!Xt(_0x2b58a8,_0xbadbb2))continue;const _0x220828=_0x2b58a8['getFirstRange']();if(_0x2b58a8['subType']==_0x574fc7){if(_0x220828['containsRange'](_0x2084ac,!0x0))return null;_0x3d097f=_0x3d097f['isBefore'](_0x220828['start'])?_0x3d097f:_0x220828['start'],_0x463fbf=_0x463fbf['isAfter'](_0x220828['end'])?_0x463fbf:_0x220828['end'],_0x3c4c55?_0x220828['start']['isBefore'](_0x3c4c55['getFirstRange']()['start'])?(_0x3c4c55['removeMarkers'](),_0x3c4c55=_0x2b58a8):_0x2b58a8['removeMarkers']():_0x3c4c55=_0x2b58a8;}else{const _0x4387ec=_0x2084ac['getIntersection'](_0x220828);this['_cutOutSuggestionMarker'](_0x2b58a8,_0x4387ec);}}const _0x1e5bdd=this['editor']['plugins']['get']('Users')['me'],_0x60afcb=_0x3028ef(),_0x291c2c=_0x1e5bdd['id'];if(_0x3c4c55)return this['_setSuggestionRange'](_0x3c4c55,this['_model']['createRange'](_0x3d097f,_0x463fbf)),_0x3c4c55;{const _0x3ce981=this['_setSuggestionData']({'id':_0x60afcb,'type':'formatBlock:'+_0x574fc7,'data':_0xe7bd63,'createdAt':new Date(),'authorId':_0x291c2c,'attributes':_0xbadbb2});return this['_addSuggestionMarker']('formatBlock:'+_0x574fc7,_0x60afcb,_0x291c2c,this['_model']['createRange'](_0x3d097f,_0x463fbf)),_0x3ce981;}}['markMultiRangeBlockFormat'](_0x572156,_0x6d8cf1,_0x604aba=[],_0x3307f7=null,_0x363aee={}){_0x6d8cf1['formatGroupId']||(_0x6d8cf1['formatGroupId']=_0x6d8cf1['commandName']);const _0x256a8e=_0x572156[0x0];_0x6d8cf1['multipleBlocks']=_0x256a8e['is']('range'),_0x3307f7=_0x3307f7||Kt(_0x6d8cf1);const _0x1f4edb=_0x604aba['map'](_0x3d5a81=>zt(_0x3d5a81,this['_model'])),_0x2736fe=_0x256a8e['is']('range')?_0x572156:_0x572156['map'](_0x2ab115=>zt(_0x2ab115,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4f09fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3307f7,'accept');return this['forceDefaultExecution'](()=>_0x4f09fc(_0x2736fe,_0x6d8cf1,_0x363aee)),null;}_0x1f4edb['push'](..._0x2736fe);let _0x267130=!0x0;for(const _0x4c9fc6 of _0x1f4edb)if(!this['_rangeIsInLocalUserInsertion'](_0x4c9fc6)){_0x267130=!0x1;break;}if(_0x267130&&'always'!==this['_trackFormatChanges']){const _0x2880a6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3307f7,'accept');return this['forceDefaultExecution'](()=>_0x2880a6(_0x2736fe,_0x6d8cf1,_0x363aee)),null;}const _0x50dc71=this['editor']['plugins']['get']('Users')['me'];for(const _0x3373ec of this['getSuggestions']()){if(_0x3373ec['author']['id']!=_0x50dc71['id'])continue;if('formatBlock'!=_0x3373ec['type']||_0x3373ec['data']['formatGroupId']!=_0x6d8cf1['formatGroupId'])continue;if(!Xt(_0x3373ec,_0x363aee))continue;const _0x4ea9e8=_0x3373ec['subType']==_0x3307f7;for(let _0x467ac4=0x0;_0x467ac4<_0x2736fe['length'];_0x467ac4++){const _0x3aee3d=_0x2736fe[_0x467ac4];for(const _0x38891a of _0x3373ec['getMarkers']()){const _0x5e874f=_0x38891a['getRange']();if(_0x3aee3d['isEqual'](_0x5e874f)){_0x4ea9e8?(_0x2736fe['splice'](_0x467ac4,0x1),_0x467ac4--):_0x3373ec['removeMarker'](_0x38891a['name']);break;}}}}if(0x0==_0x2736fe['length'])return null;const _0xcba1b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3307f7,'join');for(const _0xd29d78 of this['getSuggestions']())if(_0xd29d78['author']['id']==_0x50dc71['id']&&'formatBlock'==_0xd29d78['type']&&_0xd29d78['data']['formatGroupId']==_0x6d8cf1['formatGroupId']&&_0xd29d78['subType']==_0x3307f7&&Xt(_0xd29d78,_0x363aee)&&(_0xcba1b5(_0xd29d78['getRanges'](),_0x2736fe)||_0xcba1b5(_0x2736fe,_0xd29d78['getRanges']()))){for(const _0x29134d of _0x2736fe)_0xd29d78['addRange'](_0x29134d);return _0xd29d78;}const _0x12db58=_0x3028ef(),_0x4684f6=_0x50dc71['id'],_0xc7ff1a='formatBlock:'+_0x3307f7,_0xaf90b4=this['_setSuggestionData']({'id':_0x12db58,'type':_0xc7ff1a,'data':_0x6d8cf1,'createdAt':new Date(),'authorId':_0x4684f6,'attributes':_0x363aee});for(const _0x1e2723 of _0x2736fe)this['_addSuggestionMarker'](_0xc7ff1a,_0x12db58,_0x4684f6,_0x1e2723,o['getMultiRangeId']());return _0xaf90b4;}['markDeletion'](_0x4fcb02,_0x3287c5=null,_0x360106={}){if(_0x4fcb02['isCollapsed'])return null;const _0x21cd46=this['editor']['plugins']['get']('Users')['me'],_0xd128bd=new _0x21fe73(_0x4fcb02['start'],_0x4fcb02['end']);for(const {suggestion:_0x1d4ade,meta:_0x4b82d1}of this['_findSuggestions'](_0xd128bd,'insertion'))if(_0x4b82d1['isOwn']&&!_0x4b82d1['isNextTo']){if(_0x1d4ade['isMultiRange']){const _0x501089=_0x1d4ade['getRanges']()['filter'](_0x7a4b49=>'$graveyard'!=_0x7a4b49['root']['rootName']);_0x501089['every'](_0x309e52=>_0xd128bd['containsRange'](_0x309e52,!0x0))&&_0x1d4ade['discard']();if(_0x501089['some'](_0x6bebe6=>_0x6bebe6['containsRange'](_0xd128bd,!0x0))){const _0x6a276b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3287c5,'accept');return this['forceDefaultExecution'](()=>_0x6a276b([_0xd128bd],null,_0x360106)),null;}}else{const _0x4a122e=_0xd128bd['getIntersection'](_0x1d4ade['getFirstRange']());null!==_0x4a122e&&_0x1d4ade['_onDiscard']([_0x4a122e],null,_0x360106);}}if(_0xd128bd['detach'](),_0xd128bd['isCollapsed']||'$graveyard'==_0xd128bd['root']['rootName'])return null;let _0x324764=null,_0x46fa84=_0xd128bd['start'],_0x1f6e22=_0xd128bd['end'];const _0x54995d=this['_findSuggestions'](_0xd128bd,'deletion');for(const {suggestion:_0x275d5d,meta:_0x4dc105}of _0x54995d){const _0x31ff17=this['_model']['createRange'](_0x46fa84,_0x1f6e22);if(_0x4dc105['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4dc105['containsRangeInObject']&&!_0x4dc105['isInsideObject'])){if(_0x275d5d['isMultiRange']){if(!Xt(_0x275d5d,_0x360106))continue;let _0x31b8bc=!0x0;for(const _0x1aa50b of _0x275d5d['getRanges']()){if(_0x1aa50b['containsRange'](_0x31ff17,!0x0))return _0x275d5d;_0x31ff17['containsRange'](_0x1aa50b)||(_0x31b8bc=!0x1);}_0x31b8bc&&_0x275d5d['discard']();}else{const _0x30a8d6=_0x275d5d['getFirstRange']();if(_0x30a8d6['containsRange'](_0x31ff17,!0x0))return _0x275d5d;if(!Xt(_0x275d5d,_0x360106)){_0x31ff17['containsRange'](_0x30a8d6)?_0x275d5d['removeMarkers']():_0x30a8d6['containsPosition'](_0x46fa84)?_0x46fa84=_0x30a8d6['end']:_0x30a8d6['containsPosition'](_0x1f6e22)&&(_0x1f6e22=_0x30a8d6['start']);continue;}_0x46fa84=_0x46fa84['isBefore'](_0x30a8d6['start'])?_0x46fa84:_0x30a8d6['start'],_0x1f6e22=_0x1f6e22['isAfter'](_0x30a8d6['end'])?_0x1f6e22:_0x30a8d6['end'],_0x360106=Object['assign']({},_0x275d5d['attributes']),_0x324764?_0x30a8d6['start']['isBefore'](_0x324764['getFirstRange']()['start'])?(_0x324764['removeMarkers'](),_0x324764=_0x275d5d):_0x275d5d['removeMarkers']():_0x324764=_0x275d5d;}}}if(_0x324764)return this['_setSuggestionRange'](_0x324764,this['_model']['createRange'](_0x46fa84,_0x1f6e22)),_0x324764;{const _0xef4b57=_0x3028ef(),_0x117b10=this['_model']['createRange'](_0x46fa84,_0x1f6e22),_0x2c2bfd=_0x21cd46['id'],_0x4c9f0c=_0x3287c5?'deletion:'+_0x3287c5:'deletion',_0x18261a=this['_setSuggestionData']({'id':_0xef4b57,'type':_0x4c9f0c,'createdAt':new Date(),'authorId':_0x2c2bfd,'attributes':_0x360106});return this['_addSuggestionMarker'](_0x4c9f0c,_0xef4b57,_0x2c2bfd,_0x117b10),_0x18261a;}}['markMultiRangeDeletion'](_0x7a16aa,_0x18797b='multi',_0x1148a3={}){const _0x143915=this['editor']['plugins']['get']('Users')['me'],_0x23ff11=_0x7a16aa['map'](_0x36d027=>new _0x21fe73(_0x36d027['start'],_0x36d027['end'])),_0x12125a=new Set();for(const {suggestion:_0x1036fb,meta:_0x5a9768}of this['_findSuggestions'](_0x23ff11,'insertion'))_0x5a9768['isOwn']&&!_0x5a9768['isNextTo']&&_0x12125a['add'](_0x1036fb);for(const _0x4b024e of _0x12125a)if(_0x4b024e['isMultiRange']){const _0x53a6ee=_0x4b024e['getRanges']();(!_0x4b024e['attributes']||!_0x4b024e['attributes']['skipNestingCheck'])&&(_0x53a6ee['every'](_0x4556e1=>_0x23ff11['some'](_0x1f75b0=>_0x1f75b0['containsRange'](_0x4556e1,!0x0)))&&_0x4b024e['discard']());if(_0x23ff11['every'](_0x50f647=>_0x53a6ee['some'](_0x1cd045=>_0x1cd045['containsRange'](_0x50f647,!0x0)))){const _0x164f03=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18797b,'accept');return this['forceDefaultExecution'](()=>_0x164f03(_0x7a16aa,null,_0x1148a3)),null;}}else{const _0x58b4a7=_0x4b024e['getFirstRange']();_0x23ff11['some'](_0x497fa1=>_0x497fa1['containsRange'](_0x58b4a7,!0x0))&&_0x4b024e['discard']();if(_0x23ff11['every'](_0x3f133b=>_0x58b4a7['containsRange'](_0x3f133b,!0x0))){const _0x3bd314=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18797b,'accept');return this['forceDefaultExecution'](()=>_0x3bd314(_0x23ff11,null,_0x1148a3)),null;}}const _0x437248=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18797b,'join');let _0x4b7daa=null;for(const _0xd5b956 of this['getSuggestions']())if(_0xd5b956['author']['id']==_0x143915['id']&&_0xd5b956['isInContent']&&'deletion'==_0xd5b956['type']&&_0xd5b956['subType']==_0x18797b&&Xt(_0xd5b956,_0x1148a3)&&(_0x437248(_0xd5b956['getRanges'](),_0x23ff11)||_0x437248(_0x23ff11,_0xd5b956['getRanges']()))){if(_0x4b7daa){if(_0xd5b956['commentThread']&&_0xd5b956['commentThread']['length'])continue;for(const _0x3fbce7 of _0xd5b956['getRanges']())_0x4b7daa['isIntersectingWithRange'](_0x3fbce7)||_0x4b7daa['addRange'](_0x3fbce7);_0xd5b956['removeMarkers']();}else{_0x4b7daa=_0xd5b956;for(const _0x192205 of _0x23ff11)_0xd5b956['isIntersectingWithRange'](_0x192205)||_0xd5b956['addRange'](_0x192205);}}if(_0x4b7daa)return _0x4b7daa;_0x12125a['clear']();for(const {suggestion:_0x54b3ab,meta:_0x49175e}of this['_findSuggestions'](_0x23ff11,'deletion'))_0x49175e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49175e['containsRangeInObject']&&!_0x49175e['isInsideObject'])&&Xt(_0x54b3ab,_0x1148a3)&&_0x12125a['add'](_0x54b3ab);for(const _0x362c2e of _0x12125a){const _0x4c2001=_0x362c2e['getRanges']();if(!_0x1148a3||!_0x1148a3['skipNestingCheck']){if(_0x23ff11['every'](_0x757f9b=>_0x4c2001['some'](_0x1f08da=>_0x1f08da['containsRange'](_0x757f9b,!0x0))))return _0x362c2e;}(!_0x362c2e['attributes']||!_0x362c2e['attributes']['skipNestingCheck'])&&(_0x4c2001['every'](_0x524cf6=>_0x23ff11['some'](_0x513a61=>_0x513a61['containsRange'](_0x524cf6,!0x0)))&&_0x362c2e['discard']());}const _0x5caa57=_0x3028ef(),_0x5901d8=_0x143915['id'],_0x3663d4='deletion:'+_0x18797b,_0x5ba384=this['_setSuggestionData']({'id':_0x5caa57,'type':_0x3663d4,'createdAt':new Date(),'authorId':_0x5901d8,'attributes':_0x1148a3});for(const _0x8f7034 of _0x23ff11)_0x8f7034['detach'](),_0x8f7034['isCollapsed']||'$graveyard'==_0x8f7034['root']['rootName']||this['_addSuggestionMarker'](_0x3663d4,_0x5caa57,_0x5901d8,_0x8f7034,o['getMultiRangeId']());return _0x5ba384;}['markAttributeChange'](_0xc55d82,_0x2cfb34,_0x5dd89b,_0x426de9,_0x2e0e3c){if(_0xc55d82['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x122e9d=this['editor']['plugins']['get']('Users')['me']['id'],_0x6635a4=Array['from'](this['_suggestions']['values']())['filter'](_0x55384c=>'attribute'==_0x55384c['type']&&_0x55384c['data']['key']==_0x2cfb34&&_0x55384c['isIntersectingWithRange'](_0xc55d82));if('default'===this['_trackFormatChanges']){const _0x2f9036=this['_findSuggestions'](_0xc55d82,'insertion')['filter'](({meta:_0x5b0319})=>_0x5b0319['isOwn']&&!_0x5b0319['isInsideObject']&&!_0x5b0319['isNextTo'])['map'](({suggestion:_0x51822f})=>_0x51822f);_0x6635a4['unshift'](..._0x2f9036);}const _0x26eed7=new Map([[_0xc55d82,_0x5dd89b]]);for(const _0x263ccb of _0x6635a4){const _0x149fa6='attribute'==_0x263ccb['type']?_0x263ccb['data']['oldValue']:void 0x0,_0x49d8c0=_0x263ccb['getFirstRange'](),_0x1093ce=Array['from'](_0x26eed7['keys']())['find'](_0x1f1235=>_0x1f1235['isIntersecting'](_0x49d8c0));if(!_0x1093ce)continue;const _0x4bf8e0=_0x1093ce['getDifference'](_0x49d8c0);this['_isBlockAttribute'](_0x2cfb34)&&'insertion'==_0x263ccb['type']&&0x0!=_0x4bf8e0['length']||(_0x26eed7['delete'](_0x1093ce),_0x4bf8e0['forEach'](_0x300dc3=>{_0x26eed7['set'](_0x300dc3,_0x5dd89b);}),'insertion'!=_0x263ccb['type']&&_0x149fa6!=_0x426de9&&_0x26eed7['set'](_0x1093ce['getIntersection'](_0x49d8c0),_0x149fa6));}const _0x34f025=[];for(const [_0x18ed71,_0x230718]of _0x26eed7){const _0x1f763d=_0x3028ef(),_0x4a7e5b={'key':_0x2cfb34,'oldValue':_0x230718,'newValue':_0x426de9};_0x2cfb34['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x2cfb34});const _0x2addc5=('attribute:'+(_0x2cfb34+'|'+Kt({'newValue':_0x426de9})))['substring'](0x0,0x3c),_0x1c28ed=this['_setSuggestionData']({'id':_0x1f763d,'type':_0x2addc5,'data':_0x4a7e5b,'createdAt':new Date(),'authorId':_0x122e9d,'attributes':_0x2e0e3c});_0x34f025['push'](_0x1c28ed),this['_addSuggestionMarker'](_0x2addc5,_0x1f763d,_0x122e9d,_0x18ed71);}return _0x34f025;}['enableDefaultAttributesIntegration'](_0x58140f){this['enableCommand'](_0x58140f,(_0xeae250,..._0x3040bc)=>{this['_recordAttributeChanges'](()=>{_0xeae250(..._0x3040bc);});});}['registerBlockAttribute'](_0x5f325d){this['_blockAttributeKeys']['add'](_0x5f325d);}['registerInlineAttribute'](_0x42fae5){this['_inlineAttributeKeys']['add'](_0x42fae5);}['_getAttributeKey'](_0x434288){return'attribute'==_0x434288['type']?_0x434288['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f7e00,_0x197a8a){const _0x16a6b8=_0x2f7e00['getFirstMarker']();this['_model']['change'](_0x51f5ca=>{_0x51f5ca['updateMarker'](_0x16a6b8,{'range':_0x197a8a});});}['_addThreadToSuggestion'](_0x573526){const _0x5b9517=_0x573526['id'],_0x26a289=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5b9517)||this['_commentsRepository']['addCommentThread']({'channelId':_0x26a289,'threadId':_0x5b9517,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x73a2d6=this['_commentsRepository']['getCommentThread'](_0x5b9517);_0x73a2d6['unbind']('isRemovable'),_0x73a2d6['isRemovable']=!0x1,_0x573526['commentThread']=_0x73a2d6;}['_checkSuggestionCorrectness'](_0x4a43b5,_0x4f905d,_0x106bca,_0x9cf644){if(_0x4a43b5['type']!=_0x4f905d||_0x4a43b5['subType']!=_0x106bca||_0x4a43b5['creator']['id']!=_0x9cf644)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x103cc1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x221cd4,_0x4f4d70){const _0x1c8ddc=_0x221cd4['getFirstRange']();if(_0x4f4d70['isEqual'](_0x1c8ddc))_0x221cd4['removeMarkers']();else{if(_0x1c8ddc['containsRange'](_0x4f4d70)){const _0x4d85b6=this['_model']['createPositionAt'](_0x4f4d70['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x221cd4,this['_model']['createRange'](_0x1c8ddc['start'],_0x4d85b6));const _0x5321e7=_0x3028ef(),_0x5e5df2=_0x221cd4['creator']['id'],_0x26d786=_0x221cd4['type']+':'+_0x221cd4['subType'];this['_setSuggestionData']({'id':_0x5321e7,'type':_0x26d786,'createdAt':new Date(),'authorId':_0x5e5df2,'data':_0x221cd4['data'],'attributes':_0x221cd4['attributes']});const _0x1cf6b5=this['_model']['createPositionAt'](_0x4f4d70['end']['parent'],'after'),_0x2b89f9=this['_model']['createRange'](_0x1cf6b5,_0x1c8ddc['end']);this['_addSuggestionMarker'](_0x26d786,_0x5321e7,_0x5e5df2,_0x2b89f9);}else{if(_0x1c8ddc['containsPosition'](_0x4f4d70['start'])){const _0xb5112b=this['_model']['createPositionAt'](_0x4f4d70['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x221cd4,this['_model']['createRange'](_0x1c8ddc['start'],_0xb5112b));}else{const _0x2f9d31=this['_model']['createPositionAt'](_0x4f4d70['end']['parent'],'after');this['_setSuggestionRange'](_0x221cd4,this['_model']['createRange'](_0x2f9d31,_0x1c8ddc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25f0b7){for(const {suggestion:_0x4f0c2a,meta:_0xafd19}of this['_findSuggestions'](_0x25f0b7,'insertion')){if(!_0xafd19['isOwn'])continue;const _0x3d3a7a=_0x4f0c2a['getRanges']();for(const _0x4ee6c2 of _0x3d3a7a)if(!_0x25f0b7['getDifference'](_0x4ee6c2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x355348){const _0x1d5812=this['editor']['plugins']['get']('Users')['getUser'](_0x355348);if(!_0x1d5812)throw new _0x103cc1('track-changes-user-not-found',this);return _0x1d5812;}['_getExternalAuthor'](_0x261195){const _0x47efc1=this['editor']['plugins']['get']('Users'),_0x4af9f6=_0x19fc01('external:'+_0x261195),_0x309e88=_0x47efc1['getUser'](_0x4af9f6);return _0x309e88||_0x47efc1['addUser']({'id':_0x4af9f6,'name':_0x261195});}['_createSuggestion'](_0x3274ad,_0x35259b,_0x19d02f,_0x105d2e,_0x1caf05){const _0xfbda0f=this['_getAuthorFromId'](_0x105d2e),_0x1f923d=this['_suggestionFactory']['buildSuggestion'](_0x3274ad,_0x35259b,_0x19d02f,_0xfbda0f,_0x1caf05,_0x15ad6f=>{this['_updateSuggestionData'](_0x19d02f,{'attributes':_0x15ad6f});const _0x4c4fc6=this['getSuggestion'](_0x19d02f);this['_joinWithAdjacentSuggestions'](new Set([_0x4c4fc6])),this['_refreshSuggestionsChain'](new Set([_0x4c4fc6]));});return this['listenTo'](_0x1f923d,'accept',()=>{this['_updateSuggestionData'](_0x19d02f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1f923d,'discard',()=>{this['_updateSuggestionData'](_0x19d02f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x19d02f,_0x1f923d),this['_suggestionState']['set'](_0x1f923d,'notReady'),_0x1f923d;}['_splitMarkerName'](_0x1aec76){const _0x33307=_0x1aec76['split'](':');return{'group':_0x33307[0x0],'type':_0x33307[0x1],'subType':_0x33307['length']>=0x5?_0x33307[0x2]:null,'id':_0x33307['length']<0x5?_0x33307[0x2]:_0x33307[0x3],'authorId':_0x33307['length']<0x5?_0x33307[0x3]:_0x33307[0x4],'markerCount':0x6==_0x33307['length']?_0x33307[0x5]:null};}['_breakSuggestionMarker'](_0x572c0d,_0x398870,_0x599975){const _0x107df7=_0x572c0d['getFirstRange'](),_0x414e5d=_0x107df7['start'],_0x3bbb72=_0x107df7['end'];this['_setSuggestionRange'](_0x572c0d,this['_model']['createRange'](_0x414e5d,_0x398870));const _0x41bd77=_0x3028ef(),_0x4f75de=_0x572c0d['creator']['id'],_0x1a84cf=_0x572c0d['type']+(_0x572c0d['subType']?':'+_0x572c0d['subType']:'');this['_setSuggestionData']({'id':_0x41bd77,'type':_0x1a84cf,'createdAt':new Date(),'authorId':_0x4f75de,'originalSuggestionId':_0x572c0d['id'],'attributes':_0x572c0d['attributes'],'data':_0x572c0d['data']});const _0xefdbb9=this['_getAttributeKey'](_0x572c0d);('formatBlock'==_0x572c0d['type']||_0xefdbb9&&this['_isBlockAttribute'](_0xefdbb9))&&(_0x599975=this['_model']['createPositionBefore'](_0x599975['parent'])),this['_addSuggestionMarker'](_0x1a84cf,_0x41bd77,_0x4f75de,this['_model']['createRange'](_0x599975,_0x3bbb72));}['_findSuggestions'](_0x47aa57,_0x430a8c=null){const _0x1a3ca8=[],_0x3ae583=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47aa57)||(_0x47aa57=[_0x47aa57]);for(const _0x26b2b3 of this['getSuggestions']()){if(!_0x26b2b3['isInContent'])continue;if(_0x430a8c&&_0x26b2b3['type']!=_0x430a8c)continue;let _0x776141=!0x1;for(const _0x355b15 of _0x26b2b3['getRanges']()){for(const _0x589ab5 of _0x47aa57){const _0x20406c=_0x589ab5['start']['isEqual'](_0x355b15['end'])||_0x589ab5['end']['isEqual'](_0x355b15['start']);if(_0x20406c||_0x589ab5['getIntersection'](_0x355b15)){const _0x1d7805=_0x589ab5['containsRange'](_0x355b15)&&Gt(this['_model']['schema'],_0x355b15['start'],_0x589ab5),_0x58a219=_0x355b15['containsRange'](_0x589ab5)&&Gt(this['_model']['schema'],_0x589ab5['start'],_0x355b15);_0x1a3ca8['push']({'suggestion':_0x26b2b3,'meta':{'isOwn':_0x3ae583==_0x26b2b3['author'],'isNextTo':_0x20406c,'isInsideObject':_0x1d7805,'containsRangeInObject':_0x58a219}}),_0x776141=!0x0;break;}}if(_0x776141)break;}}return _0x1a3ca8;}['_addSuggestionMarker'](_0x46ba30,_0xbdb98d,_0x51a4f1,_0x3d81f0,_0x1b17ab){this['_model']['change'](_0x3cc795=>{let _0x54424b='suggestion:'+_0x46ba30+':'+_0xbdb98d+':'+_0x51a4f1;_0x1b17ab&&(_0x54424b=_0x54424b+':'+_0x1b17ab),_0x3cc795['addMarker'](_0x54424b,{'range':_0x3d81f0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x37e466){const _0x1670e5=_0x37e466['previous'],_0x1a51ee=_0x37e466['next'];_0x37e466['previous']=null,_0x37e466['next']=null,null!=_0x1670e5&&_0x1670e5['next']==_0x37e466&&(_0x1670e5['next']=_0x1a51ee),null!=_0x1a51ee&&_0x1a51ee['previous']==_0x37e466&&(_0x1a51ee['previous']=_0x1670e5),'ready'==this['_suggestionState']['get'](_0x37e466)&&(this['_suggestionState']['set'](_0x37e466,'removed'),this['fire']('suggestionUnloaded',_0x37e466,_0x1670e5,_0x1a51ee));}['_setSuggestionData'](_0x3f3e37){const _0x246608=_0x3f3e37['id'],_0x50f7ab=this['addSuggestionData'](_0x3f3e37);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x43176f=this['editor']['plugins']['get']('PendingActions'),_0x13640d=_0x50f7ab['hasComments'],_0x355a2e=_0x50f7ab['subType']?_0x50f7ab['type']+':'+_0x50f7ab['subType']:_0x50f7ab['type'],_0x2bfad2=this['editor']['locale'],_0x43994c=_0x43176f['add'](c(_0x2bfad2,'PENDING_ACTION_SUGGESTION')),_0x1e5b88={'id':_0x246608,'type':_0x355a2e,'hasComments':_0x13640d,'data':_0x3f3e37['data']||null,'originalSuggestionId':_0x3f3e37['originalSuggestionId']||null,'attributes':_0x50f7ab['attributes']};this['_adapter']['addSuggestion'](_0x1e5b88)['then'](_0x463f2e=>{_0x50f7ab['_saved']=!0x0,_0x43176f['remove'](_0x43994c),_0x463f2e&&_0x463f2e['createdAt']&&(this['_suggestions']['get'](_0x246608)['createdAt']=_0x463f2e['createdAt']);})['catch'](_0x5023cd=>{throw _0x4e8b27('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50f7ab['discard']();}),_0x50f7ab['stopListening'](),this['_suggestions']['delete'](_0x50f7ab['id']),this['_suggestionState']['delete'](_0x50f7ab),_0x5023cd;});}return _0x50f7ab;}['_isBlockAttribute'](_0x2b740d){return this['_blockAttributeKeys']['has'](_0x2b740d);}['_updateSuggestionData'](_0x33f4c4,_0x28ed96){const _0x4e3cc0=this['editor']['plugins']['get']('PendingActions'),_0xaa820b=this['getSuggestion'](_0x33f4c4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xaa820b['_saved']){const _0x50b9d8=_0x4e3cc0['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33f4c4,_0x28ed96)['then'](()=>{_0x4e3cc0['remove'](_0x50b9d8);});}else _0xaa820b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33f4c4,_0x28ed96);});}}['_getSuggestionData'](_0x4fc582){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x103cc1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4fc582);}['_handleNewSuggestionMarker'](_0x20b007){const {id:_0x5a53bf,type:_0x6ee2f9,subType:_0x3d3735,authorId:_0x38c296}=this['_splitMarkerName'](_0x20b007),_0x293c82=this['_suggestions']['get'](_0x5a53bf)||this['_createSuggestion'](_0x6ee2f9,_0x3d3735,_0x5a53bf,_0x38c296,{});switch(this['_checkSuggestionCorrectness'](_0x293c82,_0x6ee2f9,_0x3d3735,_0x38c296),this['_suggestionState']['get'](_0x293c82)){case'notReady':this['_getSuggestionData'](_0x5a53bf)['then'](_0x17316b=>{let _0x143c0e=Promise['resolve']();_0x17316b['hasComments']&&(_0x143c0e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a53bf})),_0x143c0e['then'](()=>{this['addSuggestionData'](_0x17316b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x293c82,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a53bf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x293c82,'ready'),this['fire']('suggestionLoaded',_0x293c82);break;case'ready':this['fire']('suggestionChanged',_0x293c82);}return _0x293c82['addMarkerName'](_0x20b007),_0x293c82;}['_refreshSuggestionsChain'](_0x4496a1){const _0x27a96e=Array['from'](_0x4496a1),_0xceb143=_0x27a96e['filter'](_0x1601d6=>'attribute'==_0x1601d6['type']);this['_refreshAttributeSuggestionsChain'](_0xceb143);const _0xae913f=_0x27a96e['filter'](_0x47dd0=>!_0x47dd0['isMultiRange']&&'attribute'!=_0x47dd0['type']),_0x4d3a5f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x569b92=>!_0x569b92['isMultiRange']&&'attribute'!=_0x569b92['type']),_0x25f477=_0x4d3a5f['filter'](_0x59b707=>!_0x4496a1['has'](_0x59b707)),_0x7f0f9b=new Map(_0x4d3a5f['map'](_0x240c18=>[_0x240c18,this['_suggestionFactory']['getSuggestionCallback'](_0x240c18['type'],_0x240c18['subType'],'chain')])),_0x23538f=new Map(_0x4d3a5f['map'](_0x523625=>[_0x523625,_0x523625['getFirstRange']()])),_0x1b6e1d=new Set(),_0x3757a5=new Set();for(let _0x148831=0x0;_0x148831<_0xae913f['length'];_0x148831++)_0x4c709b(_0xae913f[_0x148831],_0xae913f,_0x148831+0x1);for(let _0x497c9b=0x0;_0x497c9b<_0xae913f['length'];_0x497c9b++)_0x4c709b(_0xae913f[_0x497c9b],_0x25f477,0x0);const _0xe773dc=new Set();for(let _0x5b4413=0x0;_0x5b4413<_0xae913f['length'];_0x5b4413++){const _0x3abda7=_0xae913f[_0x5b4413];!_0x3757a5['has'](_0x3abda7)&&_0x3abda7['previous']&&(_0xe773dc['add'](_0x3abda7['previous']),_0x3abda7['previous']['next']===_0x3abda7&&(_0x3abda7['previous']['next']=null),_0x3abda7['previous']=null),!_0x1b6e1d['has'](_0x3abda7)&&_0x3abda7['next']&&(_0xe773dc['add'](_0x3abda7['next']),_0x3abda7['next']['previous']===_0x3abda7&&(_0x3abda7['next']['previous']=null),_0x3abda7['next']=null);}function _0x4c709b(_0x3798ed,_0x3b7df3,_0x494212){for(let _0x11afc0=_0x494212;_0x11afc0<_0x3b7df3['length'];_0x11afc0++){const _0x501e32=_0x558f04(_0x3798ed,_0x3b7df3[_0x11afc0]);_0x501e32&&(_0x501e32[0x0]['next']=_0x501e32[0x1],_0x501e32[0x1]['previous']=_0x501e32[0x0],_0x1b6e1d['add'](_0x501e32[0x0]),_0x3757a5['add'](_0x501e32[0x1]));}}function _0x558f04(_0x41922a,_0x460796){if(_0x41922a['author']['id']!==_0x460796['author']['id'])return null;const _0x327c1c=_0x7f0f9b['get'](_0x41922a)(_0x41922a,_0x460796,_0x23538f['get'](_0x41922a),_0x23538f['get'](_0x460796));if(!_0x327c1c)return null;return _0x7f0f9b['get'](_0x460796)(_0x41922a,_0x460796,_0x23538f['get'](_0x41922a),_0x23538f['get'](_0x460796))?_0x327c1c[0x1]['commentThread']&&_0x327c1c[0x1]['commentThread']['length']?null:_0x327c1c:null;}_0xe773dc['size']&&this['_refreshSuggestionsChain'](_0xe773dc);}['_refreshAttributeSuggestionsChain'](_0x1087b9){if(0x0==_0x1087b9['length'])return;const _0x1e62d3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e8322=>'attribute'==_0x3e8322['type']&&_0x3e8322['_isDataLoaded']),_0x40b054=[],_0x1adb4c=new Map();for(const _0x46611e of _0x1e62d3){const _0x31a60f=_0x19fc01(_0x46611e['attributes']);_0x1adb4c['has'](_0x31a60f)||(_0x1adb4c['set'](_0x31a60f,_0x40b054['length']),_0x40b054['push']([]));const _0x16e5a8=_0x1adb4c['get'](_0x31a60f);_0x40b054[_0x16e5a8]['push'](_0x46611e);}!(function(){_0x40b054['sort']((_0x1d9eb8,_0x27e30a)=>{const _0x27e477=_0x1d9eb8[0x0]['createdAt'],_0x2f35af=_0x27e30a[0x0]['createdAt'];return _0x27e477==_0x2f35af?_0x1d9eb8[0x0]['attributes']['groupId']<_0x27e30a[0x0]['attributes']['groupId']?-0x1:0x1:_0x27e477<_0x2f35af?-0x1:0x1;});for(const _0xea6123 of _0x40b054)_0xea6123['sort']((_0x43f986,_0x416f38)=>_0x43f986['id']<_0x416f38['id']?-0x1:0x1);}());for(let _0x34ae00=0x0;_0x34ae00<_0x40b054['length'];_0x34ae00++){if(0x0==_0x40b054[_0x34ae00]['length'])continue;const _0x5925f6=[];for(let _0x4322c6=_0x34ae00+0x1;_0x4322c6<_0x40b054['length'];_0x4322c6++)0x0!=_0x40b054[_0x4322c6]['length']&&_0x4017f0(_0x40b054[_0x34ae00],_0x40b054[_0x4322c6])&&_0x5925f6['push'](_0x4322c6);for(const _0x52026c of _0x5925f6)_0x40b054[_0x34ae00]=_0x40b054[_0x34ae00]['concat'](_0x40b054[_0x52026c]),_0x40b054[_0x52026c]=[];}for(const _0x23c600 of _0x40b054)for(let _0x30f0b2=0x0;_0x30f0b2<_0x23c600['length'];_0x30f0b2++){const _0x23b2ee=_0x23c600[_0x30f0b2+0x1]||null;_0x23c600[_0x30f0b2]['next']!==_0x23b2ee&&(_0x23c600[_0x30f0b2]['next']=_0x23b2ee);}for(const _0x2ba45c of _0x40b054)for(let _0x49a7a3=0x0;_0x49a7a3<_0x2ba45c['length'];_0x49a7a3++){const _0xdfb042=_0x2ba45c[_0x49a7a3-0x1]||null;_0x2ba45c[_0x49a7a3]['previous']!==_0xdfb042&&(_0x2ba45c[_0x49a7a3]['previous']=_0xdfb042);}function _0x4017f0(_0x45c095,_0x142f75){if(_0x45c095[0x0]['attributes']['groupId']!==_0x142f75[0x0]['attributes']['groupId']&&_0x45c095[0x0]['author']!==_0x142f75[0x0]['author'])return!0x1;if(!function(_0x2f0b6d,_0x573d9d){if(!_0x2f0b6d['hasComments']&&!_0x573d9d['hasComments'])return!0x0;if(_0x2f0b6d['hasComments']&&_0x573d9d['hasComments'])return!0x1;if(_0x2f0b6d['hasComments']&&_0x573d9d['createdAt']<_0x2f0b6d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x573d9d['hasComments']&&_0x2f0b6d['createdAt']<_0x573d9d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45c095[0x0],_0x142f75[0x0]))return!0x1;const _0x5a8a6f=Ft(_0x45c095[0x0]['attributes'],'groupId'),_0x5919fa=Ft(_0x142f75[0x0]['attributes'],'groupId');if(!_0x19b3c4(_0x5a8a6f,_0x5919fa))return!0x1;return!!_0x45c095['every'](_0x9a6834=>_0x142f75['some'](_0x34aec3=>_0x9a6834['getFirstRange']()['isEqual'](_0x34aec3['getFirstRange']())))&&_0x142f75['every'](_0x448f82=>_0x45c095['some'](_0x1bcb2c=>_0x448f82['getFirstRange']()['isEqual'](_0x1bcb2c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5a740d){const _0x3e95d0=Array['from'](_0x5a740d),_0x44c956=this['getSuggestions']({'skipNotAttached':!0x0}),_0x281380=_0x44c956['filter'](_0x484781=>!_0x5a740d['has'](_0x484781)),_0x5187a5=new Map(_0x3e95d0['map'](_0x32a308=>[_0x32a308,this['_suggestionFactory']['getSuggestionCallback'](_0x32a308['type'],_0x32a308['subType'],'join')])),_0x5c38c9=new Map(_0x44c956['map'](_0x7c7133=>[_0x7c7133,_0x7c7133['getRanges']()]));for(let _0x3a2986=0x0;_0x3a2986<_0x3e95d0['length'];_0x3a2986++){if(_0x52c52d(this,_0x3e95d0[_0x3a2986],_0x3e95d0,_0x3a2986+0x1))return!0x0;}for(let _0x3dbe0c=0x0;_0x3dbe0c<_0x3e95d0['length'];_0x3dbe0c++){if(_0x52c52d(this,_0x3e95d0[_0x3dbe0c],_0x281380,0x0))return!0x0;}return!0x1;function _0x52c52d(_0xc98d7a,_0x5380ed,_0x4b4f62,_0x2278e5){for(let _0x6567f6=_0x2278e5;_0x6567f6<_0x4b4f62['length'];_0x6567f6++){const _0x1d79d3=_0x4b4f62[_0x6567f6];if(_0x1d79d3['type']!==_0x5380ed['type']||_0x1d79d3['author']['id']!==_0x5380ed['author']['id']||_0x1d79d3['subType']!==_0x5380ed['subType'])continue;if(!Qt(_0x5380ed,_0x1d79d3))continue;if('attribute'==_0x5380ed['type']&&_0x5380ed['data']['oldValue']!=_0x1d79d3['data']['oldValue'])continue;if('attribute'==_0x5380ed['type']&&_0xc98d7a['_isBlockAttribute'](_0x5380ed['data']['key']))continue;if('formatBlock'==_0x5380ed['type']){const _0x2fa694=_0xc98d7a['editor']['model'],_0x161f95=_0x5380ed['getContainedElement']();if(_0x161f95&&(_0x2fa694['schema']['isObject'](_0x161f95)||_0x2fa694['schema']['isLimit'](_0x161f95)))continue;}const _0xffe82=_0x5187a5['get'](_0x5380ed),_0x23a82f=_0x5c38c9['get'](_0x5380ed),_0x31f56a=_0x5c38c9['get'](_0x1d79d3),_0x221fb8=_0x5380ed['commentThread']&&_0x5380ed['commentThread']['length'],_0x700ba1=_0x1d79d3['commentThread']&&_0x1d79d3['commentThread']['length'];if(!_0x221fb8&&_0xffe82(_0x31f56a,_0x23a82f))return _0xc98d7a['_joinSuggestions'](_0x1d79d3,_0x5380ed),_0x5c38c9['delete'](_0x5380ed),!0x0;if(!_0x700ba1&&_0xffe82(_0x23a82f,_0x31f56a))return _0xc98d7a['_joinSuggestions'](_0x5380ed,_0x1d79d3),_0x5c38c9['delete'](_0x1d79d3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c572c,_0x287bad){if(_0x5c572c['isMultiRange']){for(const _0x1184d3 of _0x287bad['getRanges']())_0x5c572c['addRange'](_0x1184d3);}else{const _0x12f494=_0x287bad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c572c,this['_model']['createRange'](_0x5c572c['getFirstRange']()['start'],_0x12f494));}_0x287bad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1f255c,_0x19bb8b,_0x7996bd){const _0x5bbf5b=_0x1f255c['startsWith']('format')||_0x1f255c['startsWith']('attribute')?'FORMATTING':_0x1f255c['toUpperCase']();return c(this['editor']['locale'],_0x19bb8b+'_'+_0x5bbf5b+'_SUGGESTION_ANNOUNCEMENT',_0x7996bd);}['_initAriaMarkerChangeAnnouncements'](){const _0x2b42a8=this['editor'];if(!_0x2b42a8['ui'])return;const {ariaLiveAnnouncer:_0x5883f4}=_0x2b42a8['ui'];_0x9e4f30(this['_model'],({left:_0x464db2,entered:_0x5ae5ab})=>{for(const _0x5c86a1 of _0x464db2){const {group:_0x147539,type:_0x221d8b}=this['_splitMarkerName'](_0x5c86a1['name']);if('suggestion'===_0x147539){_0x5883f4['announce'](this['_getMarkerAnnouncementText'](_0x221d8b,'LEAVE'));break;}}for(const _0x5f5d61 of _0x5ae5ab){const {group:_0x1d6e4e,type:_0x116253}=this['_splitMarkerName'](_0x5f5d61['name']);if('suggestion'===_0x1d6e4e){_0x5883f4['announce'](this['_getMarkerAnnouncementText'](_0x116253,'ENTER',_0x519021(_0x1f6976)));break;}}});}['_processAttributeChanges'](_0x3d45ed){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5fbf8d=this['editor'],_0x4cc023=_0x5fbf8d['model']['document']['differ']['getChanges']();if(0x0==_0x4cc023['length'])return!0x1;const _0x571ef9=[],_0x190c8c=_0x4cc023['filter'](_0x574c23=>'attribute'==_0x574c23['type']),_0xec4d6f=_0x4cc023['filter'](_0x5be0e0=>'insert'==_0x5be0e0['type']&&'$text'!=_0x5be0e0['name']),_0x27bf94=_0x4cc023['filter'](_0x34b493=>'remove'==_0x34b493['type']&&'$text'!=_0x34b493['name']);for(const _0x9b501 of _0x190c8c)_0x571ef9['push']({'key':_0x9b501['attributeKey'],'newValue':_0x9b501['attributeNewValue'],'oldValue':_0x9b501['attributeOldValue'],'range':qt(_0x9b501['range'],_0x5fbf8d['model'])});for(const _0x48fda2 of _0xec4d6f){const _0x1d48a1=_0x27bf94['find'](_0xa4201c=>_0xa4201c['position']['isEqual'](_0x48fda2['position']));_0x1d48a1&&_0x571ef9['push']({'key':u,'newValue':_0x48fda2['name'],'oldValue':_0x1d48a1['name'],'range':_0x5fbf8d['model']['createRangeOn'](_0x48fda2['position']['nodeAfter'])});}return 0x0!=_0x571ef9['length']&&this['_reduceExistingSuggestions'](_0x3d45ed,_0x571ef9);}['_processAttributeSuggestions'](_0x9c2ceb){let _0x584ae8=!0x1;const _0x38ae73=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d4b35=>_0x1d4b35['data']['newRange']&&_0x1d4b35['name']['startsWith']('suggestion:attribute:'));for(const _0x2ee190 of _0x38ae73){const {subType:_0x1d2f1e,id:_0x35ba5b}=this['_splitMarkerName'](_0x2ee190['name']),_0x2948cd=_0x1d2f1e['split']('|')[0x0];for(const _0x59f220 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59f220['id']!=_0x35ba5b&&'attribute'==_0x59f220['type']&&_0x59f220['data']&&_0x59f220['data']['key']==_0x2948cd&&_0x59f220['getFirstRange']()['isIntersecting'](_0x2ee190['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59f220,_0x2ee190['data']['newRange'],_0x9c2ceb),_0x584ae8=!0x0);}return _0x584ae8;}['_recordAttributeChanges'](_0x2ee5da){this['_recordAttributeSuggestions']=!0x0,_0x2ee5da();}['_isRegisteredAttribute'](_0x175821){const _0x5c5981=this['_isBlockAttribute'](_0x175821),_0xa09d2=this['_inlineAttributeKeys']['has'](_0x175821);return _0x5c5981||_0xa09d2;}['_reduceExistingSuggestions'](_0x11b03f,_0x1f2594){if(0x0==_0x1f2594['length'])return!0x1;let _0x49f904=!0x1;for(const _0x30d86f of _0x1f2594){const _0x298794=this['_findSuggestions'](_0x30d86f['range'],'attribute')['filter'](_0x2a5e6b=>!_0x2a5e6b['meta']['isNextTo'])['map'](_0xf137a5=>_0xf137a5['suggestion']),_0x10ae54=_0x19fc01({'newValue':_0x30d86f['newValue']});_0x298794['filter'](_0x3a2e2d=>{const [_0x3416d0,_0xbaf3a1]=_0x3a2e2d['subType']['split']('|');return _0x3416d0==_0x30d86f['key']&&_0xbaf3a1!=_0x10ae54;})['forEach'](_0x215b2b=>{this['_reduceSuggestionAttributeRange'](_0x215b2b,_0x30d86f['range'],_0x11b03f),_0x49f904=!0x0;});}return _0x49f904;}['_reduceSuggestionAttributeRange'](_0x59c821,_0xc52314,_0x21a2b2){const _0x2d10a8=_0x59c821['getFirstRange']()['getDifference'](_0xc52314);0x0!==_0x2d10a8['length']?0x1!==_0x2d10a8['length']?this['_breakSuggestionMarker'](_0x59c821,_0xc52314['start'],_0xc52314['end']):this['_setSuggestionRange'](_0x59c821,_0x2d10a8[0x0]):_0x21a2b2['removeMarker'](_0x59c821['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2ae723){this['_editor']=_0x2ae723,this['_model']=_0x2ae723['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x154235,_0x4dfe90,_0x424f65,_0x21557d,_0x94319a,_0xfb80b7){return new o(this['_model'],{'type':_0x154235,'subType':_0x4dfe90,'id':_0x424f65,'author':_0x21557d,'creator':_0x21557d,'attributes':_0x94319a,'onAttributesChange':_0xfb80b7,'onAccept':(..._0x3222e0)=>this['getSuggestionCallback'](_0x154235,_0x4dfe90,'accept')(..._0x3222e0),'onDiscard':(..._0x4d54bb)=>this['getSuggestionCallback'](_0x154235,_0x4dfe90,'discard')(..._0x4d54bb)});}['registerCustomCallback'](_0x2293f5,_0x2924f7,_0x598972,_0x4459c6){const _0x44bc8a=_0x2293f5+':'+_0x2924f7+':'+_0x598972;this['_customCallbacks']['set'](_0x44bc8a,_0x4459c6);}['getSuggestionCallback'](_0x193b13,_0x349d72,_0x10b2fa){const _0x39e753=_0x193b13+':'+_0x349d72+':'+_0x10b2fa;return this['_customCallbacks']['get'](_0x39e753)||this['_defaultCallbacks']['get'](_0x193b13+':'+_0x10b2fa);}['_registerDefaultCallbacks'](){const _0x40bd1c=()=>!0x1,_0x4d4d28=_0x3bed94=>{_0x3bed94['sort']((_0x2dc8f9,_0x6016d6)=>_0x2dc8f9['start']['isBefore'](_0x6016d6['start'])?0x1:-0x1),this['_model']['change'](_0x364ee4=>{for(const _0x398c69 of _0x3bed94){let _0x575874;_0x575874=_0x398c69['end']['isAtEnd']&&_0x398c69['end']['parent']==_0x398c69['start']['nodeAfter']?_0x364ee4['createSelection'](_0x398c69['start']['nodeAfter'],'on'):_0x364ee4['createSelection'](_0x398c69),this['_model']['deleteContent'](_0x575874,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4169bf=(_0x38859a,_0x183243)=>{_0x183243&&this['_model']['change'](_0x20e219=>{const {commandName:_0x429bbd,commandParams:_0x584fca=[]}=_0x183243,_0x143dcd=_0x38859a['map'](_0x14fc58=>(Lt(_0x14fc58)&&(_0x14fc58=this['_model']['createRange'](_0x14fc58['end'])),_0x14fc58))['filter'](_0x1012bb=>'$graveyard'!==_0x1012bb['root']['rootName']);if(_0x143dcd['length']<0x1)return;const _0x338ab=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5aee92=>_0x21fe73['fromRange'](_0x5aee92));_0x20e219['setSelection'](_0x143dcd);for(const _0x519c5c of this['_editor']['commands']['commands']())_0x519c5c['refresh']();_0x584fca['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x429bbd,..._0x584fca);const _0x4ee101=_0x338ab['filter'](_0x45479b=>'$graveyard'!=_0x45479b['root']['rootName']);_0x4ee101['length']>0x0&&_0x20e219['setSelection'](_0x4ee101);for(const _0x4fe67b of _0x338ab)_0x4fe67b['detach']();});},_0x296704=(_0x43a30,_0x3eac57)=>0x1==_0x43a30['length']&&0x1==_0x3eac57['length']&&_0x43a30[0x0]['end']['isEqual'](_0x3eac57[0x0]['start']),_0x218570=(_0x310186,_0x4768dc,_0x5b9725,_0x40e4c9)=>Wt(_0x310186,_0x4768dc,_0x5b9725,_0x40e4c9)?[_0x310186,_0x4768dc]:Wt(_0x4768dc,_0x310186,_0x40e4c9,_0x5b9725)?[_0x4768dc,_0x310186]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40bd1c),this['_defaultCallbacks']['set']('insertion:discard',_0x4d4d28),this['_defaultCallbacks']['set']('insertion:join',_0x296704),this['_defaultCallbacks']['set']('insertion:chain',_0x218570),this['_defaultCallbacks']['set']('deletion:accept',_0x4d4d28),this['_defaultCallbacks']['set']('deletion:discard',_0x40bd1c),this['_defaultCallbacks']['set']('deletion:join',_0x296704),this['_defaultCallbacks']['set']('deletion:chain',_0x218570),this['_defaultCallbacks']['set']('formatInline:accept',_0x4169bf),this['_defaultCallbacks']['set']('formatInline:discard',_0x40bd1c),this['_defaultCallbacks']['set']('formatInline:join',_0x296704),this['_defaultCallbacks']['set']('formatInline:chain',_0x40bd1c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4169bf),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40bd1c),this['_defaultCallbacks']['set']('formatBlock:join',_0x296704),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40bd1c),this['_defaultCallbacks']['set']('attribute:accept',_0x40bd1c),this['_defaultCallbacks']['set']('attribute:discard',(_0x277568,_0x4b339b)=>{if(!_0x4b339b)return;const _0x27622f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5ed9cb=>{if(_0x4b339b['key']==u)for(const _0xd74257 of _0x277568){const _0x4bf8c0=_0xd74257['start']['nodeAfter'],_0x56a2ab=_0x4b339b['oldValue'];_0x5ed9cb['rename'](_0x4bf8c0,_0x56a2ab);}else{if(_0x27622f['_isBlockAttribute'](_0x4b339b['key'])){for(const _0x56b606 of _0x277568)void 0x0!==_0x4b339b['oldValue']?_0x5ed9cb['setAttribute'](_0x4b339b['key'],_0x4b339b['oldValue'],_0x56b606['start']['nodeAfter']):_0x5ed9cb['removeAttribute'](_0x4b339b['key'],_0x56b606['start']['nodeAfter']);}else{for(const _0x45b8d0 of _0x277568)_0x4b339b['oldValue']?_0x5ed9cb['setAttribute'](_0x4b339b['key'],_0x4b339b['oldValue'],_0x45b8d0):_0x5ed9cb['removeAttribute'](_0x4b339b['key'],_0x45b8d0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x296704);}}function Gt(_0x5a91ce,_0x5b615c,_0x57fee9){for(const _0x1aa1a6 of _0x5b615c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1aa1a6['root']==_0x1aa1a6)return!0x1;if(!_0x57fee9['containsItem'](_0x1aa1a6))return!0x1;if(_0x5a91ce['isObject'](_0x1aa1a6)||_0x5a91ce['isLimit'](_0x1aa1a6))return!0x0;}return!0x1;}function Lt(_0x4d0d98){return _0x4d0d98['end']['parent']==_0x4d0d98['start']['nodeAfter']&&_0x4d0d98['end']['isAtStart'];}function Jt(_0x3be833,_0x13103f,_0x8ad282,_0xd18f39){const _0x4fd586=_0x5939ae=>!_0x5939ae['item']['is']('$textProxy')&&!_0xd18f39['isObject'](_0x5939ae['item']),_0x3e6b25=_0x3be833['start']['getLastMatchingPosition'](_0x4fd586),_0x4f669d=_0x3be833['end']['getLastMatchingPosition'](_0x4fd586,{'direction':'backward'});return(!_0x3be833['start']['isEqual'](_0x3e6b25)||!_0x3be833['end']['isEqual'](_0x4f669d))&&(_0x3e6b25['isBefore'](_0x4f669d)?_0x8ad282['updateMarker'](_0x13103f,{'range':_0x8ad282['createRange'](_0x3e6b25,_0x4f669d)}):_0x8ad282['removeMarker'](_0x13103f),!0x0);}function Kt(_0x4a32c9){return _0x19fc01(_0x4a32c9);}function Ht(_0x2d67e7){const _0x425776=_0x2d67e7['start']['nodeAfter'];return _0x425776&&_0x425776['is']('element');}function qt(_0x265497,_0x6901ba){return null==_0x265497['end']['nodeBefore']&&_0x265497['end']['parent']==_0x265497['start']['nodeAfter']?zt(_0x265497['start']['nodeAfter'],_0x6901ba):_0x265497;}function zt(_0x45b0c3,_0xedbb27){const _0x464899=_0xedbb27['schema']['isObject'](_0x45b0c3)||_0xedbb27['schema']['isSelectable'](_0x45b0c3);return _0xedbb27['createRange'](_0xedbb27['createPositionAt'](_0x45b0c3,'before'),_0x464899?_0xedbb27['createPositionAfter'](_0x45b0c3):_0xedbb27['createPositionAt'](_0x45b0c3,'end'));}function Wt(_0x40abeb,_0x2871d9,_0x2b48c6,_0x4abe40){return!!Qt(_0x40abeb,_0x2871d9)&&_0x2b48c6['end']['isEqual'](_0x4abe40['start']);}function Qt(_0x45f0cb,_0x2abcb6){if(!_0x45f0cb['_isDataLoaded']||!_0x2abcb6['_isDataLoaded'])return!0x1;const _0xfe46b7=new Set(Object['keys'](_0x45f0cb['attributes'])),_0x3c731b=new Set(Object['keys'](_0x2abcb6['attributes']));if(_0xfe46b7['delete']('groupId'),_0x3c731b['delete']('groupId'),0x0==_0xfe46b7['size']&&0x0==_0x3c731b['size'])return!0x0;if(_0xfe46b7['size']!=_0x3c731b['size'])return!0x1;const _0x265eba={..._0x45f0cb['attributes']},_0x146c0f={..._0x2abcb6['attributes']};return delete _0x265eba['groupId'],delete _0x146c0f['groupId'],JSON['stringify'](_0x265eba)==JSON['stringify'](_0x146c0f);}function Xt(_0x5086c6,_0x197f37){const _0x193254=Yt(_0x5086c6['attributes']),_0x3bf8bd=Yt(_0x197f37);if(!_0x5086c6['_isDataLoaded'])return!0x1;for(const _0x2f1887 of Object['keys'](_0x3bf8bd))if(!_0x19b3c4(_0x193254[_0x2f1887],_0x3bf8bd[_0x2f1887]))return!0x1;return!0x0;}function Yt(_0x30b19d){const _0x18692b=Object['assign']({},_0x30b19d);return delete _0x18692b['skipNestingCheck'],delete _0x18692b['tablePasteChainId'],_0x18692b;}class pe extends/* #__PURE__ -- @preserve */
25
- _0xf22df1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2fc124,_0x5458d4,_0x36639a,_0x5b68f3){super(),this['model']=_0x5458d4,this['view']=_0x36639a,this['commentThreadController']=_0x5b68f3,this['_editor']=_0x2fc124,this['_acceptCommand']=_0x2fc124['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2fc124['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3e2190,_0x18d9d3)=>_0x3e2190||_0x18d9d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x325a37=>_0x325a37&&this['_editor']['model']['canEditAt'](_0x5458d4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x593e60=>_0x593e60&&this['_editor']['model']['canEditAt'](_0x5458d4['getRanges']())),this['_pendingAction']=null,_0x36639a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x36639a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x36639a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x36639a,'change:isDirty',()=>{_0x36639a['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x4de840=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4de840);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5a07b3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2b99ef,_0x1eeb9a,_0x2ac960,_0x5fd409){super(_0x2b99ef),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3cd32(_0x2b99ef,c(_0x2b99ef,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1eeb9a['authoredAt']),this['bind']('authoredAt')['to'](_0x1eeb9a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1eeb9a,'authoredAt',this,'descriptionParts',(_0x204cfd,_0xbfff27,_0xd6d60)=>{const _0x1d939d=_0xd6d60['map'](_0x5f291f=>ls(_0x5f291f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x204cfd-0x1,_0x1eeb9a['author']['name'],_0xbfff27?_0x5fd409['formatDateTime'](_0xbfff27):'',new DOMParser()['parseFromString'](_0x1d939d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1ea32f(),this['focusTracker']=new _0x36e12a(),this['keystrokes']=new _0x183cc3(),this['focusCycler']=new _0x4c7df7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f8b73=>_0x1f8b73['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1eeb9a,this['_localUser']=_0x2ac960,this['_config']=_0x5fd409,_0x5fd409['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4c32b0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1aef05}=this['_config'];this['commentsListView']=new _0x1aef05(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x1a939a=>_0x1a939a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24b239,_0x25dd8c)=>_0x24b239||!!_0x25dd8c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x22604a}=this['_config'],_0x495720=new _0x22604a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x438417=_0x495720['commentInputView'];return _0x495720['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x438417,'value',(_0x8fbebc,_0x23d377,_0x573e2e)=>!!_0x573e2e||_0x8fbebc&&!_0x23d377),_0x438417['on']('submit',(_0x3af6ff,_0x14df28)=>{this['fire']('addComment',_0x14df28),_0x438417['editor']['setData']('');}),_0x438417['on']('cancel',()=>this['focus']()),_0x438417['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x495720;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3affc0,_0x40c12f,_0x1bd6ef,_0x2ee884){super(_0x3affc0,_0x40c12f,_0x1bd6ef,_0x2ee884),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x19a555=>_0x19a555&&_0x19a555[0x0]?_0x19a555[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x50927e,_0x4f455d)=>{let _0x385621='';for(const _0x44adf0 of _0x50927e)_0x385621+='<p>'+ls(_0x44adf0['content'],_0x44adf0['color'])+'</p>';return _0x4f455d?_0x385621:ti(_0x385621,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2ee884['SuggestionView'](_0x3affc0,_0x40c12f,{'formatDateTime':_0x2ee884['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x48600c=this['bindTemplate'],_0x4364c6=[this['suggestionView']];return this['commentsListView']&&_0x4364c6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4364c6['push'](this['commentThreadInputView']),_0x4364c6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x48600c['if']('isActive','ck-suggestion-wrapper--active'),_0x48600c['to']('type',_0x21b6a0=>'ck-suggestion-'+_0x21b6a0),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x48600c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4364c6};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x5a07b3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a0c05,_0x41280a,_0x1f52f2){super(_0x2a0c05),this['_model']=_0x41280a,this['_config']=_0x1f52f2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x41280a),this['acceptButton']=this['_createButton'](c(_0x2a0c05,'Accept\x20suggestion'),_0x461925,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2a0c05,'Discard\x20suggestion'),_0x384952,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1107a0(_0x2a0c05,_0x41280a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1ea32f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x36e12a(),this['keystrokes']=new _0x183cc3(),this['focusCycler']=new _0x4c7df7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x34864f=>_0x34864f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2e21f9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2e21f9['innerHTML']=this['description'],this['on']('change:description',(_0x5deee5,_0x43db40,_0x21b804)=>{_0x2e21f9['innerHTML']=_0x21b804;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xeee3ed=this['bindTemplate'],_0x2b7642=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0xeee3ed['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xeee3ed['to']('authoredAt',_0x1e89ca=>this['_config']['formatDateTime'](_0x1e89ca))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2b7642['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2b7642}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x35785c,_0xcde6e7,_0x313686,_0x348073,_0x241cd6){const _0x58bdd9=new _0x4849c4(this['locale']);return _0x58bdd9['set']({'label':_0x35785c,'icon':_0xcde6e7,'tooltip':!0x0,'tooltipPosition':_0x241cd6}),_0x58bdd9['extendTemplate']({'attributes':{'class':_0x313686}}),_0x58bdd9['on']('execute',()=>{this['fire'](_0x348073,this['_model']['id']);}),_0x58bdd9;}['_setupKeyboardNavigation'](){const _0x5e24c5=this['element'];this['keystrokes']['listenTo'](_0x5e24c5);for(const _0x512b28 of this['focusables'])this['focusTracker']['add'](_0x512b28['element']),this['keystrokes']['listenTo'](_0x512b28['element']);this['keystrokes']['set']('enter',(_0x2f13a4,_0x1d2cbb)=>{_0x5e24c5===_0x2f13a4['target']&&(this['focusCycler']['focusFirst'](),_0x1d2cbb());}),this['keystrokes']['set']('esc',(_0x416b63,_0x12c654)=>{_0x5e24c5!==_0x416b63['target']&&(this['focus'](),_0x12c654());});}}class d extends _0x4a939c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xfd6374,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30a65d){super(_0x30a65d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1c24da=this['editor']['config'];_0x1c24da['define']('trackChanges.SuggestionThreadView',fe),_0x1c24da['define']('trackChanges.SuggestionView',we),_0x1c24da['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1c24da['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40330e,_0x48eba1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5dae00,_0xbdce18]of this['_handleControllerBuffer']){const _0x38c4e4=this['_suggestionToController']['has'](_0x5dae00);_0x38c4e4||_0xbdce18?_0x38c4e4&&_0xbdce18&&this['_destroyController'](_0x5dae00):this['_initializeController'](_0x5dae00);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40330e,_0x48eba1);}['init'](){const _0x29a4c2=this['editor'],_0x32e62b=_0x29a4c2['plugins']['get']('TrackChangesEditing'),_0x3fde86=_0x29a4c2['plugins']['get']('Annotations'),_0x24a57c=_0x29a4c2['plugins']['get']('EditorAnnotations'),_0x486057=_0x29a4c2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x24a57c['addSourceCollector'](()=>{const _0x562f90=[];for(const [_0x19f444,_0x48e6d9]of Array['from'](this['_suggestionToController'])){const _0xa4db26=_0x19f444['getAllAdjacentSuggestions'](),_0x3a0b2e=[];for(const _0x48015d of _0xa4db26){if(!_0x48015d['isInContent'])continue;if(_0x48015d['isMultiRange']){_0x3a0b2e['push'](..._0x48015d['getRanges']());continue;}const _0x32ab46=_0x48015d['getFirstRange']();if(_0x3a0b2e['length']>0x0){const _0x287b14=_0x3a0b2e[0x0]['getJoined'](_0x32ab46);if(_0x287b14){_0x3a0b2e[0x0]=_0x287b14;continue;}}_0x3a0b2e['push'](_0x32ab46);}_0x562f90['push']([_0x48e6d9['view'],_0x3a0b2e]);}return _0x562f90;}),this['listenTo'](_0x32e62b,'suggestionLoaded',(_0x3a320f,_0x29bf03)=>{this['listenTo'](_0x29bf03,'change:previous',(_0x4583ef,_0x223ee2,_0x2473b8,_0x22021b)=>{_0x29bf03['isInContent']&&(null==_0x2473b8?(this['_updateController'](_0x22021b['head']),this['_handleSuggestionControllerDelayed'](_0x29bf03,!0x1)):(this['_updateController'](_0x2473b8['head']),null==_0x22021b&&this['_handleSuggestionControllerDelayed'](_0x29bf03,!0x0)));}),null!==_0x29bf03['previous']?this['_updateController'](_0x29bf03['head']):this['_handleSuggestionControllerDelayed'](_0x29bf03,!0x1);}),this['listenTo'](_0x32e62b,'suggestionUnloaded',(_0x3aab85,_0x25710c,_0x3da913)=>{this['stopListening'](_0x25710c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x25710c),this['_suggestionToController']['has'](_0x25710c)&&this['_destroyController'](_0x25710c),_0x3da913&&this['_updateController'](_0x3da913['head']);}),this['listenTo'](_0x32e62b,'suggestionChanged',(_0x3d68ab,_0x384f35)=>{this['_updateController'](_0x384f35);}),this['listenTo'](_0x3fde86,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x486057,'addComment',(_0xc1e4c5,{threadId:_0x53684a,isFromAdapter:_0x1b565e})=>{if(_0x1b565e||!_0x32e62b['hasSuggestion'](_0x53684a))return;const _0x18eaa8=_0x32e62b['getSuggestion'](_0x53684a);this['_suggestionToController']['get'](_0x18eaa8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x31e166=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x202619;for(const _0x29343a in _0x31e166){const _0x3cfd0c=_0x29343a,_0x6c66f8=_0x31e166[_0x3cfd0c];if('trackChangesLicenseKeyValid'==_0x6c66f8||'trackChangesLicenseKeyInvalid'==_0x6c66f8||'trackChangesLicenseKeyExpired'==_0x6c66f8||'trackChangesLicenseKeyDomainLimit'==_0x6c66f8||'trackChangesLicenseKeyNotAllowed'==_0x6c66f8||'trackChangesLicenseKeyEvaluationLimit'==_0x6c66f8||'trackChangesLicenseKeyTrialLimit'==_0x6c66f8||'trackChangesLicenseKeyUsageLimit'==_0x6c66f8){delete _0x31e166[_0x3cfd0c],_0x202619=_0x6c66f8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x202619&&_0x31e166['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x202619&&_0x31e166['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x202619&&_0x31e166['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x202619&&_0x31e166['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x202619&&_0x31e166['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x202619&&_0x31e166['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x202619&&_0x31e166['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x54caac=this['editor']['plugins']['get']('Annotations'),_0x376498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5af02d=Array['from'](_0x54caac['activeAnnotations'],_0x49a2bf=>_0x49a2bf['innerView'])['filter'](_0x36b18e=>this['_viewToController']['has'](_0x36b18e)),_0x38895f=[];for(const _0x3b50f7 of _0x5af02d){const _0x2d6cd2=this['_viewToController']['get'](_0x3b50f7)['model']['getAllAdjacentSuggestions']();_0x38895f['push'](..._0x2d6cd2['reduce']((_0x43b1fc,_0x5c052b)=>[..._0x43b1fc,..._0x5c052b['getMarkerNames']()],[]));}_0x376498['activeMarkers']=_0x38895f;}['_addUIComponentsToFactory'](){const _0x4f05c7=this['editor'],_0x42fe45=_0x4f05c7['locale'],_0x211286=c(_0x42fe45,'Track\x20changes'),_0x45f4ff=new _0x3cfb1e([{'type':'switchbutton','model':new _0x3c69f8({'withText':!0x0,'isToggleable':!0x0,'label':_0x211286,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3c69f8({'withText':!0x0,'label':c(_0x42fe45,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c69f8({'withText':!0x0,'label':c(_0x42fe45,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c69f8({'withText':!0x0,'label':c(_0x42fe45,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c69f8({'withText':!0x0,'label':c(_0x42fe45,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f05c7['plugins']['has']('TrackChangesPreview')&&_0x45f4ff['addMany']([{'type':'separator'},{'type':'button','model':new _0x3c69f8({'withText':!0x0,'label':c(_0x42fe45,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x255dd4 of _0x45f4ff)if(ke(_0x255dd4)){const _0x261944=_0x4f05c7['commands']['get'](_0x255dd4['model']['commandName']);_0x255dd4['model']['bind']('isOn','isEnabled')['to'](_0x261944,'value','isEnabled');}_0x4f05c7['ui']['componentFactory']['add']('trackChanges',_0x2b3e15=>this['_createToolbarButton'](_0x2b3e15,_0x45f4ff,_0x211286)),_0x4f05c7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13db1c=>this['_createMenuBarMenu'](_0x13db1c,_0x45f4ff,_0x211286));}['_createToolbarButton'](_0x59452d,_0x52e58f,_0x28c086){const _0x17d220=_0x2cb513(_0x59452d,_0x534307),_0x2254e4=this['editor']['commands']['get']('trackChanges');_0x17d220['buttonView']['set']({'tooltip':_0x28c086,'label':_0x28c086,'icon':_0x3eb7bd}),_0x17d220['buttonView']['bind']('isOn')['to'](_0x2254e4,'value'),_0x17d220['buttonView']['on']('execute',()=>{_0x2254e4['execute'](),this['editor']['editing']['view']['focus']();}),_0x4091e6(_0x17d220,_0x52e58f,{'role':'menu'});const _0x53e646=[];for(const _0x19dc9c of _0x52e58f)ke(_0x19dc9c)&&_0x53e646['push'](this['editor']['commands']['get'](_0x19dc9c['model']['commandName']));const _0x9823d7=_0x17d220['buttonView'];return _0x9823d7['actionView']['unbind']('isEnabled'),_0x9823d7['arrowView']['unbind']('isEnabled'),_0x9823d7['actionView']['bind']('isEnabled')['to'](_0x2254e4,'isEnabled'),_0x9823d7['arrowView']['bind']('isEnabled')['toMany'](_0x53e646,'isEnabled',(..._0x4bf3c6)=>_0x4bf3c6['some'](_0x2c98ff=>_0x2c98ff)),_0x17d220['on']('execute',_0x315228=>{this['editor']['execute'](_0x315228['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x17d220;}['_createMenuBarMenu'](_0x1cf0e2,_0x387fcf,_0x936ef1){const _0x13e1f4=new _0x27e532(_0x1cf0e2),_0x58fec6=this['editor']['commands']['get']('trackChanges');_0x13e1f4['buttonView']['set']({'label':_0x936ef1,'icon':_0x3eb7bd});const _0x1aecd0=new _0x4fd26b(_0x1cf0e2);for(const _0x146d4c of _0x387fcf){if('separator'==_0x146d4c['type']){_0x1aecd0['items']['add'](new _0x2c257c(_0x1cf0e2));continue;}const _0xa2ab3c=new _0x58a428(_0x1cf0e2,_0x13e1f4),_0x1b9ca1=new _0x45b08c(_0x1cf0e2),_0x443fd4=_0x146d4c['model'];_0x1b9ca1['bind'](...Object['keys'](_0x443fd4))['to'](_0x443fd4),_0x1b9ca1['delegate']('execute')['to'](_0x13e1f4),_0x1b9ca1['on']('execute',()=>{this['editor']['execute'](_0x443fd4['commandName']),this['editor']['editing']['view']['focus']();}),_0xa2ab3c['children']['add'](_0x1b9ca1),_0x1aecd0['items']['add'](_0xa2ab3c);}return _0x13e1f4['bind']('isEnabled')['to'](_0x58fec6,'isEnabled'),_0x13e1f4['panelView']['children']['add'](_0x1aecd0),_0x13e1f4;}['_initializeController'](_0x2630f6){const _0x4c603c=this['editor'],_0x4ae8e4=_0x4c603c['config'],_0x5a30a3=_0x4c603c['plugins']['get']('Annotations'),_0x34fbc8=_0x4c603c['plugins']['get']('CommentsRepository'),_0x5ce1d8=_0x4c603c['plugins']['get']('EditorAnnotations'),_0x304126=_0x4c603c['plugins']['get'](_0xfd6374)['me'],_0x4fba67=_0x4ae8e4['get']('trackChanges')['SuggestionThreadView'],_0x426074=_0x4ae8e4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xa7ec4f,CommentThreadInputView:_0x5bcf6c}=_0x4c603c['plugins']['get']('CommentsUI');let _0x3fafa6,_0x1c1a61,_0x38eb14;this['_annotationViews']['has'](_0x2630f6['id'])?(_0x1c1a61=this['_annotationViews']['get'](_0x2630f6['id']),_0x3fafa6=_0x1c1a61['mainView']):(_0x3fafa6=new _0x4fba67(_0x4c603c['locale'],_0x2630f6,_0x304126,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4ae8e4['get']('comments.editorConfig'),'licenseKey':_0x4ae8e4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4ae8e4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ae8e4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ae8e4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5888cd(_0x4ae8e4['get']('locale'),_0x4c603c['locale']),'CommentView':_0x4ae8e4['get']('comments')['CommentView'],'CommentsListView':_0xa7ec4f,'CommentThreadInputView':_0x5bcf6c,'SuggestionView':_0x426074}),_0x3fafa6['suggestionView']['acceptButton']['on']('execute',()=>{_0x4c603c['editing']['view']['focus']();}),_0x3fafa6['suggestionView']['discardButton']['on']('execute',()=>{_0x4c603c['editing']['view']['focus']();}),_0x1c1a61=_0x5a30a3['createAnnotationView'](this['editor']['locale'],_0x3fafa6),_0x1c1a61['bind']('isDirty')['to'](_0x3fafa6,'isDirty'),_0x1c1a61['bind']('length')['to'](_0x3fafa6),_0x1c1a61['bind']('type')['to'](_0x3fafa6,'type',_0x5e78f2=>'suggestion-'+_0x5e78f2),_0x3fafa6['on']('escape',()=>{_0x38eb14['fire']('escape');}),this['_annotationViews']['set'](_0x2630f6['id'],_0x1c1a61));const _0xde7fb1=_0x34fbc8['createCommentThreadController'](_0x2630f6['commentThread'],_0x3fafa6),_0x49ce44=new pe(_0x4c603c,_0x2630f6,_0x3fafa6,_0xde7fb1),_0xec2264=_0x2630f6['getAllAdjacentSuggestions']()['filter'](_0x3e8de7=>_0x3e8de7['isInContent']);_0x3fafa6['descriptionParts']=_0x4c603c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xec2264),this['_suggestionToController']['set'](_0x2630f6,_0x49ce44),this['_viewToController']['set'](_0x3fafa6,_0x49ce44),_0x38eb14=_0x5a30a3['createAnnotation']({'view':_0x1c1a61,'target':()=>{const _0x26604f=[],_0x1983ca=_0x2630f6['getAllAdjacentSuggestions']()['filter'](_0x599625=>_0x599625['isInContent']);for(const _0x48cf5b of _0x1983ca)_0x26604f['push'](..._0x48cf5b['getMarkers']());return _0x131c42(_0x4c603c['editing'],_0x26604f);},'type':()=>'suggestion-'+_0x49ce44['view']['type']}),_0x34fbc8['_bindAnnotationToEditors'](_0x3fafa6,_0x38eb14),_0x5a30a3['add'](_0x38eb14),_0x5ce1d8['registerAnnotation'](_0x38eb14);}['_destroyController'](_0x449457){const _0x3a7189=this['editor']['plugins']['get']('CommentsRepository'),_0x3caa76=this['editor']['plugins']['get']('Annotations'),_0x391f94=this['_suggestionToController']['get'](_0x449457),_0x268f46=_0x391f94['view'],_0x156c99=_0x3caa76['getByInnerView'](_0x268f46);_0x3a7189['_unbindEditors'](_0x268f46),_0x156c99&&_0x3caa76['remove'](_0x156c99),this['_suggestionToController']['delete'](_0x449457),this['_viewToController']['delete'](_0x268f46),_0x391f94['destroy']();}['_updateController'](_0x1db827){if(!_0x1db827['isInContent']||!this['_suggestionToController']['has'](_0x1db827))return;const _0x41a731=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23ae9a=this['_suggestionToController']['get'](_0x1db827),_0x2acd69=_0x1db827['getAllAdjacentSuggestions']();_0x23ae9a['view']['descriptionParts']=_0x41a731['descriptionFactory']['getDescriptions'](_0x2acd69);}['destroy'](){for(const _0x38a8ee of this['_suggestionToController']['keys']())this['_destroyController'](_0x38a8ee);for(const _0x3a676b of this['_annotationViews']['values']())_0x3a676b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x505f8b){return'model'in _0x505f8b;}class k extends _0x4a939c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5a93b4){this['editor']['plugins']['get'](p)['adapter']=_0x5a93b4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1052b1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1052b1);}['getSuggestions']({skipNotAttached:_0x1180ef=!0x1,toJSON:_0x36c143=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1180ef,'toJSON':_0x36c143});}['getSuggestion'](_0x2083ed){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2083ed);}}const w=['Pagination'];class T extends _0x4a939c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2d12fc=this['editor'];if(_0x2d12fc['config']['define']('trackChangesData.editorCreator',_0xe0e65b=>{const _0xd16205=_0x2d12fc['model']['document']['getRootNames']()['reduce']((_0x3b6a23,_0x1f754b)=>(_0x3b6a23[_0x1f754b]='',_0x3b6a23),{});return _0x2d12fc['constructor']['create'](_0xd16205,_0xe0e65b);}),'function'!=typeof _0x2d12fc['config']['get']('trackChangesData')['editorCreator'])throw new _0x103cc1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x32b8f5){return N(this['editor'],!0x0,_0x32b8f5);}['getDataWithDiscardedSuggestions'](_0x5e4e57){return N(this['editor'],!0x1,_0x5e4e57);}}class D extends _0x4a939c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f86d7){function _0x5c9545(_0x4a6885){return _0x4a6885['map'](_0x12bea5=>String['fromCharCode'](_0x12bea5))['join']('');}super(_0x2f86d7),this['result']='end',_0x2f86d7[_0x5c9545([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c9545([0x76,0x69,0x65,0x77])][_0x5c9545([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c9545([0x61,0x75,0x74,0x6f]),_0x2f86d7[_0x5c9545([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5c9545([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c9545([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5c9545([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5c9545([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x435a45){return void 0x0!==_0x435a45['getRootsAttributes'];}async function N(_0x110b6e,_0x9f36a2,_0x568596){const _0x3b52e5=_0x3a86d7(_0x110b6e,w);_0x3b52e5['plugins']['push'](p,D),_0x3b52e5['rootsAttributes']=Ge(_0x110b6e)?_0x110b6e['getRootsAttributes']():void 0x0;const _0x300584=document['createDocumentFragment'](),_0x18ad34=_0x110b6e['config']['get']('trackChangesData')['editorCreator'],_0x3afc20=await _0x18ad34(_0x3b52e5,()=>function(_0x49c5f4){const _0x5422c2=document['createElement']('div');return _0x49c5f4['appendChild'](_0x5422c2),_0x5422c2;}(_0x300584));!function(_0x4f0e3d,_0x50d3f8){const _0x571d0e=_0x4f0e3d['model']['document']['getRootNames']()['reduce']((_0x5db50e,_0x3634ff)=>(_0x5db50e[_0x3634ff]=_0x4f0e3d['data']['get']({'rootName':_0x3634ff}),_0x5db50e),{}),_0x1578f6=_0x4f0e3d['plugins']['get']('Users')['users']['map'](_0x9a38a1=>({'id':_0x9a38a1['id'],'name':_0x9a38a1['name']})),_0x543cad=_0x4f0e3d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2cea71=_0x4f0e3d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf55346=_0x50d3f8['plugins']['get']('Users'),_0x4e535d=_0x50d3f8['plugins']['get']('TrackChangesEditing'),_0x94a1d4=_0x50d3f8['plugins']['get']('CommentsRepository');for(const _0x29b3d2 of _0x94a1d4['getCommentThreads']())_0x29b3d2['remove']();for(const _0x383c7f of _0x1578f6)_0xf55346['getUser'](_0x383c7f['id'])||_0xf55346['addUser'](_0x383c7f);_0xf55346['me']||_0xf55346['useAnonymousUser']();for(const _0x245cbf of _0x2cea71)_0x94a1d4['addCommentThread'](_0x245cbf);for(const _0x3adb2e of _0x543cad)_0x4e535d['addSuggestionData'](_0x3adb2e);_0x50d3f8['data']['set'](_0x571d0e);}(_0x110b6e,_0x3afc20),_0x3afc20['execute'](_0x9f36a2?'acceptAllSuggestions':'discardAllSuggestions');const _0x22390c=Ge(_0x3afc20)?_0x3afc20['getFullData'](_0x568596):_0x3afc20['data']['get'](_0x568596);return await _0x3afc20['destroy'](),_0x22390c;}class Me extends _0x5a07b3{['options'];constructor(_0x1cf410,_0x1983ee){super(_0x1cf410),this['options']=_0x1983ee,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2992b8,_0x315296){if(!this['element'])return;const _0x272abe=[];for(const [_0x53f372,_0x414350]of _0x2992b8){const _0x4c312e=document['createElement']('div');_0x4c312e['setAttribute']('data-ck-root-name',_0x53f372),_0x4c312e['className']=_0x414350['classes']+'\x20ck-track-changes-preview__root-container',_0x4c312e['innerHTML']=_0x414350['content'],_0x272abe['push'](_0x4c312e);}_0x315296(this['element'],_0x272abe),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x59a388{constructor(_0x21b0d1){super(_0x21b0d1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x59ca55=this['editor'],_0x25c775=_0x59ca55['locale'],_0x3542f5=_0x59ca55['plugins']['get']('Dialog');let _0x43945f;const _0x13c4ec=function(_0x5028aa){const _0x42679e={};if('editables'in _0x5028aa['ui']['view']){for(const [_0x20d1da,_0x37d8ad]of Object['entries'](_0x5028aa['ui']['view']['editables']))_0x42679e[_0x20d1da]=_0x37d8ad['element'];}else _0x42679e[_0x5028aa['model']['document']['getRootNames']()[0x0]]=_0x5028aa['ui']['view']['editable']['element'];return _0x42679e;}(_0x59ca55),_0x5d3963=function(_0x2aa9cc){let _0x340493=0x0;for(const _0x4b28c4 of Object['values'](_0x2aa9cc))_0x340493=Math['max'](_0x340493,_0x4b28c4['getBoundingClientRect']()['width']);let _0x788fbc=0x0;for(const _0x4fbcaa of Object['values'](_0x2aa9cc))_0x788fbc+=_0x4fbcaa['getBoundingClientRect']()['height'];const _0x23f259=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1235d4=Math['min'](_0x788fbc,_0x23f259);return{'width':_0x340493,'height':_0x1235d4};}(_0x13c4ec);_0x3542f5['show']({'id':'finalContentPreview','title':c(_0x25c775,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25c775,{'dialogRects':_0x5d3963}),'onHide':()=>{_0x43945f['detachFromDom']();},'onShow':()=>{_0x59ca55['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5979d5=>{const _0x55e175=this['_standarizeRootsData'](_0x5979d5,_0x59ca55,_0x13c4ec);_0x3542f5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x55e175,_0x59ca55['config']['get']('trackChanges.preview.renderFunction'));}),_0x43945f=new _0x5d80e0(_0x25c775,[_0x3542f5['view']]),_0x43945f['attachToDom'](),_0x43945f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x59ca55['once']('destroy',()=>{_0x43945f['detachFromDom']();});const _0x4067ec=_0x3542f5['view']['headerView']['class'];_0x3542f5['view']['headerView']['class']=_0x4067ec?_0x4067ec+'\x20ck-reset_all':'ck-reset_all',_0x3542f5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3542f5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3339ab=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x73d3c7=_0x3339ab['previewMode'],_0x399922={};if('$labels'===_0x73d3c7){for(const _0x2e407d of _0x3339ab['getMergeFieldsIds']())_0x399922[_0x2e407d]=_0x3339ab['getLabel'](_0x2e407d)||_0x2e407d;}else{const _0x231c49='$defaultValues'===_0x73d3c7?_0x3339ab['getDefaultValues']():_0x3339ab['getDataSetValues'](_0x73d3c7,!0x0);for(const _0x462e66 of Object['entries'](_0x231c49)){const [_0x494b1a,_0x2630c5]=_0x462e66;_0x399922[_0x494b1a]=null!==_0x2630c5?_0x2630c5:_0x3339ab['getLabel'](_0x494b1a)||_0x494b1a;}}return{'mergeFieldsData':_0x399922};}['_standarizeRootsData'](_0x2753e2,_0x1e4d9f,_0x5f0b45){let _0x1464ec;if('string'==typeof _0x2753e2){const _0x51b3df=_0x1e4d9f['model']['document']['getRootNames']()[0x0];_0x1464ec={[_0x51b3df]:_0x2753e2};}else _0x1464ec=_0x2753e2;const _0x520587=this['_fixMediaEmbeds'](_0x1464ec,_0x1e4d9f),_0x4cdbff=function(_0x21b9cc,_0x3806b0){for(const [_0x20d22c,_0x2303b5]of _0x21b9cc)_0x2303b5['classes']=_0x3806b0[_0x20d22c]['classList']['value']['replace']('ck-focused','');return _0x21b9cc;}(this['_sortRoots'](_0x1e4d9f)['reduce']((_0x5e1c6b,_0xc5bd2d)=>(_0x5e1c6b['push']([_0xc5bd2d,{'content':_0x520587[_0xc5bd2d],'classes':''}]),_0x5e1c6b),[]),_0x5f0b45);return _0x4cdbff;}['_fixMediaEmbeds'](_0x488eee,_0x4506ce){if(!_0x4506ce['plugins']['has']('MediaEmbedEditing'))return _0x488eee;const _0x1c8e9d=_0x4506ce['plugins']['get']('MediaEmbedEditing');for(const [_0x9e24cb,_0x26aabf]of Object['entries'](_0x488eee)){const _0x592fbe=document['createElement']('div');_0x592fbe['innerHTML']=_0x26aabf,(_0x592fbe['querySelectorAll']('figure.media')['forEach'](_0x46c709=>{const _0x11368d=_0x46c709['querySelector']('oembed');if(_0x11368d){const _0x138620=_0x11368d['getAttribute']('url');if(_0x138620){const _0x304298=_0x1c8e9d['registry']['getMediaViewElement'](new _0x1e3850(_0x4506ce['editing']['view']['document']),_0x138620,{'elementName':'','renderForEditingView':!0x0}),_0x5a7e37=document['createElement']('div');_0x5a7e37['classList']['add']('ck-media__wrapper'),_0x304298['render'](_0x5a7e37,_0x4506ce['editing']['view']['domConverter']),_0x11368d['replaceWith'](_0x5a7e37);}}}),_0x488eee[_0x9e24cb]=_0x592fbe['innerHTML']);}return _0x488eee;}['_sortRoots'](_0x5993ab){if(!function(_0xd53658){return void 0x0!==_0xd53658['getRootsAttributes'];}(_0x5993ab))return _0x5993ab['model']['document']['getRootNames']();const _0x75a506=[],_0x59747f=new Map();for(const _0xb268e1 of _0x5993ab['model']['document']['getRootNames']()){const _0x2c4a7f=_0x5993ab['editing']['view']['getDomRoot'](_0xb268e1)['getClientRects']()['item'](0x0);_0x75a506['push'](_0xb268e1),_0x59747f['set'](_0xb268e1,_0x2c4a7f);}return _0x75a506['sort']((_0x58513c,_0x523eb8)=>{const _0x4b10fd=_0x59747f['get'](_0x58513c),_0x89f923=_0x59747f['get'](_0x523eb8);return _0x4b10fd['y']-_0x89f923['y']||_0x4b10fd['x']-_0x89f923['x'];}),_0x75a506;}}class te extends _0x4a939c{static get['requires'](){return[T,_0x4563b9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d77cf){super(_0x5d77cf),_0x5d77cf['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5d77cf['config']['define']('trackChanges.preview.renderFunction',(_0x195188,_0x846ffc)=>{for(const _0x21f038 of _0x846ffc)_0x195188['appendChild'](_0x21f038);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x5567c6,Plugin as _0x2bb590,PendingActions as _0x47b17f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5240f6,ObservableMixin as _0x3306e3,uid as _0xf1d1da,priorities as _0x5bb012,insertToPriorityArray as _0xbb398a,logWarning as _0x57d13b,getEnvKeystrokeText as _0x132da3,FocusTracker as _0x3b022f,KeystrokeHandler as _0x258157,Collection as _0x460b9d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x389e43,IconCancel as _0x3297e3,IconTrackChanges as _0x54e32c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5810fc,View as _0x41197b,ViewCollection as _0x31f9e7,FocusCycler as _0x38f6e2,ViewModel as _0x9558c3,createDropdown as _0x1516b7,SplitButtonView as _0x1d75c1,addListToDropdown as _0x41a8eb,MenuBarMenuView as _0x1ad69d,MenuBarMenuListView as _0x232bed,ListSeparatorView as _0xd89dd3,MenuBarMenuListItemView as _0x5370ba,MenuBarMenuListItemButtonView as _0x1c2694,BodyCollection as _0x3e3912,Dialog as _0x5be8af}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x75af00,hashObject as _0x583c01,surroundingMarkersDetector as _0xe0f4f3,FOCUS_ANNOTATION_KEYSTROKE as _0x422745,AriaDescriptionView as _0x132c82,setupThreadKeyboardNavigation as _0x120934,trimHtml as ti,UserView as _0x1e3926,LateFocusButtonView as _0x14e86c,getDateTimeFormatter as _0x488bdc,getAllMarkersDomElementsSorted as _0x5d309a,sanitizeEditorConfig as _0x543b69}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3efdc9,LiveRange as _0x1ffa61,LivePosition as _0x48d435,DowncastWriter as _0x2956df}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2f1c8b,toWidget as _0x300646}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5e28d8,set as _0x5e227b,isEqual as _0x3595e6,unset as _0x3d13f2,omit as Ft}from'es-toolkit/compat';import{Delete as _0x46947c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5b0cbd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xcb2e10}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5567c6{['_enabledCommands'];constructor(_0x36d3ab,_0x17341d){super(_0x36d3ab),this['_enabledCommands']=_0x17341d,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x2cc8ad of this['editor']['commands']['commands']())_0x2cc8ad['affectsData']&&!this['_enabledCommands']['has'](_0x2cc8ad)&&_0x2cc8ad['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x381eaa of this['editor']['commands']['commands']())_0x381eaa['affectsData']&&!this['_enabledCommands']['has'](_0x381eaa)&&_0x381eaa['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5567c6{['_suggestions'];constructor(_0x39a2c7,_0x43ea15){super(_0x39a2c7),this['_suggestions']=_0x43ea15,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x121732){const _0x80c4f=this['_suggestions']['get'](_0x121732);if(!_0x80c4f)throw new _0x5240f6('track-changes-accept-suggestion-not-found',this);const _0x27ec86=_0x80c4f['getRanges']();this['editor']['model']['canEditAt'](_0x27ec86)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x80c4f);}}class R extends _0x5567c6{['_suggestions'];constructor(_0xb4f956,_0x2df8a8){super(_0xb4f956),this['_suggestions']=_0x2df8a8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x371aeb){const _0xe43c24=this['_suggestions']['get'](_0x371aeb);if(!_0xe43c24)throw new _0x5240f6('track-changes-discard-suggestion-not-found',this);const _0x41a26c=_0xe43c24['getRanges']();this['editor']['model']['canEditAt'](_0x41a26c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe43c24);}}function ls(_0x4d3a51,_0x3f6f78){let _0x215938='';return _0x215938+=_0x4d3a51['split']('*')['map']((_0x485b76,_0x3ef4a7)=>_0x3ef4a7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x485b76)+'</span>':nn(_0x485b76))['join'](''),_0x3f6f78&&(_0x215938+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3f6f78['value']+'\x22\x20title=\x22'+_0x3f6f78['title']+'\x22></span>'),_0x215938;}function nn(_0x407bcc){const _0x3f43cf=document['createElement']('span');return _0x3f43cf['innerText']=_0x407bcc,_0x3f43cf['innerHTML'];}function ts(_0xca633e){return _0xca633e['sort']((_0x25a55a,_0x180c30)=>'deletion'==_0x25a55a['type']&&'deletion'!=_0x180c30['type']?-0x1:'deletion'!=_0x25a55a['type']&&'deletion'==_0x180c30['type']?0x1:0x0);}function to(_0x34044a,_0x4cebe8){let _0x5585f6,_0x264553=0x0;const _0x2ab6a6=[],_0x5108d9=_0x4cebe8['schema'];for(;_0x264553<_0x34044a['length'];){const _0xd52a27=_0x34044a[_0x264553],_0x11daef=_0x34044a[_0x264553+0x1];_0x5585f6||(_0x5585f6=_0x4cebe8['createPositionBefore'](_0xd52a27)),on(_0x4cebe8,_0xd52a27,_0x11daef)||(_0x2ab6a6['push'](_0x4cebe8['createRange'](_0x5585f6,_0x5108d9['isObject'](_0xd52a27)?_0x4cebe8['createPositionAfter'](_0xd52a27):_0x4cebe8['createPositionAt'](_0xd52a27,'end'))),_0x5585f6=null),_0x264553++;}return _0x2ab6a6;}function on(_0x75d863,_0x16b795,_0x125be){if(!_0x125be)return!0x1;const _0xa70f2d=_0x75d863['createPositionAfter'](_0x16b795),_0x2c4ab1=_0x75d863['createPositionBefore'](_0x125be);return _0xa70f2d['isTouching'](_0x2c4ab1);}function rs(_0x49159b,_0x52fb7f,_0x162ed6){for(;_0x162ed6['length'];){const _0x5ed18f=_0x162ed6['splice'](0x0,0x64);_0x49159b['change'](()=>{for(const _0x56ba87 of _0x5ed18f)_0x56ba87['isInContent']&&_0x52fb7f['execute'](_0x56ba87['id']);});}}class x extends _0x5567c6{['_command'];['_suggestions'];constructor(_0x3e3194,_0x48236e,_0x44716e){super(_0x3e3194),this['_command']=_0x48236e,this['_suggestions']=_0x44716e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c2eac=Array['from'](this['_suggestions']['values']())['some'](_0x195377=>_0x195377['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5c2eac;}['execute'](){const _0x41634e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x53a466 of _0x41634e){const _0x4d9ed8=_0x53a466['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d9ed8))return;}rs(this['editor']['model'],this['_command'],_0x41634e);}}class E extends _0x5567c6{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1adb71,_0x4f67de,_0x25af7b){super(_0x1adb71),this['_command']=_0x4f67de,this['_suggestions']=_0x25af7b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fe61c=this['editor']['model']['document']['selection'],_0x23e6df=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x58df44,_0x3e4800){const _0x36345c=Array['from'](_0x58df44['getRanges']()),_0x58e13e=new Set();for(const _0x580808 of _0x3e4800)if(_0x580808['isInContent']){for(const _0x470412 of _0x36345c)for(const _0x320bec of _0x580808['getRanges']())(_0x470412['isIntersecting'](_0x320bec)||_0x58df44['isCollapsed']&&!_0x580808['isMultiRange']&&_0x580808['next']&&_0x320bec['end']['isTouching'](_0x470412['start']))&&_0x58e13e['add'](_0x580808);}return _0x58e13e;}(_0x4fe61c,_0x23e6df),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x59d4b9=ts(Array['from'](this['_selectedSuggestions']));for(const _0x50a13c of _0x59d4b9){const _0x228bec=_0x50a13c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x228bec))return;}rs(this['editor']['model'],this['_command'],_0x59d4b9);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x3306e3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f8de7,_0x23ce90){super(),this['id']=_0x23ce90['id'],this['type']=_0x23ce90['type'],this['subType']=_0x23ce90['subType']||null,this['author']=_0x23ce90['author'],this['creator']=_0x23ce90['creator']||_0x23ce90['author'],this['isExternal']=Boolean(_0x23ce90['attributes']&&_0x23ce90['attributes']['@external']),this['data']=null,this['_model']=_0x2f8de7,this['_onAccept']=_0x23ce90['onAccept'],this['_onDiscard']=_0x23ce90['onDiscard'],this['_onAttributesChange']=_0x23ce90['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23ce90['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x150e4b=this;for(;_0x150e4b['previous'];)_0x150e4b=_0x150e4b['previous'];return _0x150e4b;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3b5237){this['_markerNames']['add'](_0x3b5237);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4d6785=>this['_model']['markers']['get'](_0x4d6785))['filter'](_0x29a401=>_0x29a401);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f0fa6=>{for(const _0x1c272d of this['getMarkers']())_0x4f0fa6['removeMarker'](_0x1c272d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c87c6){this['_model']['change'](_0x45d5bb=>{_0x45d5bb['removeMarker'](_0x1c87c6);}),this['_markerNames']['delete'](_0x1c87c6);}['addRange'](_0x269616){const _0x55ed6a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x55ed6a),this['_model']['change'](_0x58e391=>{_0x58e391['addMarker'](_0x55ed6a,{'range':_0x269616,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x21edc5){for(const _0x18024f of this['getRanges']())if(_0x18024f['isIntersecting'](_0x21edc5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x21972c=>_0x21972c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3eb8d1,_0x3f58a7)=>[..._0x3eb8d1,..._0x3f58a7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1cba45=this['getRanges']();if(0x1!=_0x1cba45['length'])return null;const _0x75c9e=_0x1cba45[0x0],_0x19a4bc=_0x75c9e['start']['nodeAfter'],_0x3206da=_0x75c9e['end']['nodeBefore'];return _0x19a4bc instanceof _0x3efdc9?_0x19a4bc!=_0x3206da?null:_0x19a4bc:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0xe2d510=[];let _0xc99819=this['head'];for(;_0xc99819;)_0xe2d510['push'](_0xc99819),_0xc99819=_0xc99819['next'];return _0xe2d510;}['setAttribute'](_0xa7d7e,_0x3b33c2){const _0x1b7d1b=_0x5e28d8(this['attributes']);_0x5e227b(_0x1b7d1b,_0xa7d7e,_0x3b33c2),_0x3595e6(_0x1b7d1b,this['attributes'])||(this['attributes']=_0x1b7d1b,this['_onAttributesChange'](_0x1b7d1b));}['removeAttribute'](_0x5cf347){const _0x2656fa=_0x5e28d8(this['attributes']);_0x3d13f2(_0x2656fa,_0x5cf347),_0x3595e6(_0x2656fa,this['attributes'])||(this['attributes']=_0x2656fa,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0xf1d1da()['substr'](0x1,0x5);}}function c(_0x2739e6,_0x19cd8e,_0x17dd1c){const _0x55f65d=_0x2739e6['t'],t=_0x2739e6['t'];switch(_0x19cd8e){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x17dd1c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17dd1c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17dd1c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17dd1c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17dd1c);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x17dd1c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17dd1c);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17dd1c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17dd1c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17dd1c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17dd1c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17dd1c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17dd1c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x17dd1c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17dd1c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17dd1c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17dd1c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17dd1c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17dd1c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17dd1c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17dd1c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17dd1c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17dd1c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17dd1c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x17dd1c);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x17dd1c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x17dd1c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x17dd1c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17dd1c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17dd1c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17dd1c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17dd1c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17dd1c);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x17dd1c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17dd1c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17dd1c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17dd1c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17dd1c);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x17dd1c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17dd1c);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x17dd1c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x17dd1c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17dd1c);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x17dd1c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17dd1c);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x17dd1c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17dd1c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17dd1c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x17dd1c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x17dd1c);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x55f65d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x17dd1c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x55f65d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x17dd1c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x17dd1c);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x17dd1c);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x17dd1c);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x17dd1c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x19cd8e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5b469c,_0x224e39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5b469c,this['_locale']=_0x224e39;}['getDescriptions'](_0x4e6095){const _0x485bea=[],_0x534b2a=new Set(),_0x4960e4=new Set();for(let _0x56a79f=0x0;_0x56a79f<_0x4e6095['length'];_0x56a79f++){const _0x379a77=_0x4e6095[_0x56a79f];if(!_0x379a77['isInContent'])continue;const _0xb49389=this['_handleCustomCallbackDescription'](_0x379a77);if(_0xb49389){if(null!=_0x379a77['subType']){if(_0x534b2a['has'](_0x379a77['subType']))continue;_0x534b2a['add'](_0x379a77['subType']);}_0x485bea['push'](_0xb49389);}else{if('attribute'!=_0x379a77['type'])'insertion'!=_0x379a77['type']&&'deletion'!=_0x379a77['type']||this['_handleInsertRemoveSuggestionDescription'](_0x485bea,_0x379a77,_0x4e6095[_0x56a79f+0x1]);else{const _0x59721d=_0x379a77['data']['key'];if(_0x4960e4['has'](_0x59721d))continue;_0x4960e4['add'](_0x379a77['data']['key']),_0x59721d==u?this['_handleRenameSuggestionDescription'](_0x485bea,_0x379a77):this['_handleAttributeSuggestionDescription'](_0x485bea,_0x379a77);}}}return this['_resolveDescriptionItems'](_0x485bea);}['registerDescriptionCallback'](_0x2fd53a){this['_customCallbacks']['push'](_0x2fd53a);}['registerElementLabel'](_0x55cff5,_0x3ee10f,_0x41a947=_0x5bb012['normal']){'function'==typeof _0x55cff5?_0xbb398a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55cff5,'label':_0x3ee10f,'priority':_0x41a947}):this['_itemLabels']['set'](_0x55cff5,_0x3ee10f);}['registerAttributeLabel'](_0x4f8366,_0x4df9c8){this['_attributeLabels']['set'](_0x4f8366,_0x4df9c8);}['getItemLabel'](_0x31411e,_0x8ac63b=0x1){let _0x2fd427;for(const _0x33c350 of this['_itemLabelsCallbacks'])if(_0x33c350['matchingCallback'](_0x31411e)){_0x2fd427=_0x33c350['label'];break;}return _0x2fd427||(_0x2fd427=this['_itemLabels']['get'](_0x31411e['name'])),_0x2fd427?_0x2fd427(_0x8ac63b):0x1!==_0x8ac63b?_0x8ac63b+'\x20'+_0x31411e['name']+'s':''+_0x31411e['name'];}['_addDescriptionItems'](_0x31e9d8,_0x43ae3a){const _0x205f9d=_0x43ae3a['getFirstRange']()['getWalker'](),_0x3ec8f5='insertion'==_0x43ae3a['type']?'add':'remove';for(const _0x468513 of _0x205f9d){const _0x12fdad=_0x468513['item'],_0x2d4055=_0x31e9d8[_0x31e9d8['length']-0x1];if(_0x12fdad['is']('$textProxy'))_0x2d4055&&_0x2d4055['type']['indexOf']('Container')>-0x1&&_0x31e9d8['pop'](),_0x2d4055&&'text'==_0x2d4055['type']?_0x2d4055[_0x3ec8f5]+=_0x12fdad['data']:_0x31e9d8['push']({'type':'text','add':'add'==_0x3ec8f5?_0x12fdad['data']:'','remove':'remove'==_0x3ec8f5?_0x12fdad['data']:''});else{if(this['_schema']['isObject'](_0x12fdad)){const _0x15fbb0=_0x12fdad;if(_0x2d4055&&_0x2d4055['type']['indexOf']('Container')>-0x1&&_0x31e9d8['pop'](),'elementEnd'==_0x468513['type'])continue;_0x2d4055&&_0x2d4055['type']==_0x3ec8f5+'Object'&&_0x2d4055['element']['name']==_0x15fbb0['name']?_0x2d4055['quantity']++:_0x31e9d8['push']({'type':_0x3ec8f5+'Object','element':_0x15fbb0,'quantity':0x1}),_0x205f9d['skip'](_0x79048a=>!('elementEnd'==_0x79048a['type']&&_0x79048a['item']==_0x12fdad));}else{if(this['_schema']['checkChild'](_0x12fdad,'$text')||_0x12fdad['is']('element','softBreak')){const _0x26fef6=_0x12fdad;if('add'==_0x3ec8f5&&'elementStart'==_0x468513['type']||'remove'==_0x3ec8f5&&'elementEnd'==_0x468513['type'])continue;if(_0x2d4055&&-0x1==_0x2d4055['type']['indexOf']('Container')){'text'==_0x2d4055['type']&&(_0x2d4055[_0x3ec8f5]+='\x0a');continue;}let _0x311ddb;if(_0x311ddb='add'==_0x3ec8f5?_0x26fef6['nextSibling']&&!this['_schema']['isObject'](_0x26fef6['nextSibling'])?_0x26fef6['nextSibling']:null:_0x26fef6['previousSibling']&&!this['_schema']['isObject'](_0x26fef6['previousSibling'])?_0x26fef6['previousSibling']:null,_0x26fef6['isEmpty']||_0x311ddb&&_0x311ddb['isEmpty']){const _0x32a3b7=_0x311ddb&&_0x311ddb['isEmpty']?_0x311ddb:_0x26fef6;_0x2d4055&&_0x2d4055['type']==_0x3ec8f5+'EmptyContainer'&&_0x2d4055['element']['name']==_0x32a3b7['name']?_0x2d4055['quantity']++:_0x31e9d8['push']({'type':_0x3ec8f5+'EmptyContainer','element':_0x32a3b7,'quantity':0x1});}else _0x31e9d8['push']({'type':_0x3ec8f5+'Container','element':_0x26fef6});}}}}}['_resolveDescriptionItems'](_0x157ba8){const _0x1aaada=this['_locale'],_0x3504d3=[],_0x42f332=[],_0xe53b62=[];for(const _0x347567 of _0x157ba8)switch(_0x347567['type']){case'text':if(_0x347567['add']=_0x347567['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x347567['remove']=_0x347567['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x347567['add']&&''!=_0x347567['remove']){_0x3504d3['push']({'type':'replace','content':c(_0x1aaada,'REPLACE_TEXT',['\x22'+_0x347567['remove']+'\x22','\x22'+_0x347567['add']+'\x22'])});continue;}if(null!=_0x347567['add']['match'](/^ +$/)){_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0',c(_0x1aaada,'ELEMENT_SPACE',_0x347567['add']['length']))});continue;}if(null!=_0x347567['remove']['match'](/^ +$/)){_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0',c(_0x1aaada,'ELEMENT_SPACE',_0x347567['remove']['length']))});continue;}if(''!=_0x347567['add']){_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0','\x22'+_0x347567['add']+'\x22')});continue;}_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0','\x22'+_0x347567['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'addContainer':_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Split:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'removeContainer':_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Merge:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'addFormat':_0x42f332['push'](_0x347567['key']);continue;case'removeFormat':_0xe53b62['push'](_0x347567['key']);continue;default:_0x3504d3['push'](_0x347567);}if(_0x42f332['length']){const _0x478166=_0x42f332['map'](_0x53d10f=>this['_attributeLabels']['has'](_0x53d10f)?this['_attributeLabels']['get'](_0x53d10f):_0x53d10f)['join'](',\x20');_0x3504d3['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x478166)});}if(_0xe53b62['length']){const _0x50f4ef=_0xe53b62['map'](_0x59a176=>this['_attributeLabels']['has'](_0x59a176)?this['_attributeLabels']['get'](_0x59a176):_0x59a176)['join'](',\x20');_0x3504d3['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x50f4ef)});}return _0x3504d3;}['_handleCustomCallbackDescription'](_0x55c3d2){for(const _0x107f42 of this['_customCallbacks']){const _0x47e613=_0x107f42(_0x55c3d2);if(_0x47e613&&'type'in _0x47e613)return _0x47e613;}}['_handleAttributeSuggestionDescription'](_0x697496,_0x5340be){const _0x518797=_0x5340be['data'],_0x5cb370=void 0x0===_0x518797['newValue']?'removeFormat':'addFormat';_0x697496['push']({'type':_0x5cb370,'key':_0x518797['key']});}['_handleRenameSuggestionDescription'](_0xba8eda,_0x323e37){_0xba8eda['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x323e37['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x573f60,_0x403879,_0x4d4c75){if(this['_addDescriptionItems'](_0x573f60,_0x403879),_0x4d4c75&&_0x4d4c75['getFirstRange']()&&!_0x403879['getFirstRange']()['end']['isEqual'](_0x4d4c75['getFirstRange']()['start'])){const _0x2b1e64=_0x573f60[_0x573f60['length']-0x1],_0x34fc96='insertion'==_0x403879['type']?'add':'remove';_0x2b1e64&&'text'==_0x2b1e64['type']&&(_0x2b1e64[_0x34fc96]+='\x0a');}}}class U extends _0x2bb590{['afterInit'](){const _0x13f536=this['editor'],_0x352878=_0x13f536['plugins']['get']('TrackChangesEditing');_0x13f536['commands']['get']('showAIAssistant')&&_0x352878['enableCommand']('showAIAssistant');}}class V extends _0x2bb590{['afterInit'](){const _0x52b836=this['editor'],_0x546f53=_0x52b836['locale'];if(!_0x52b836['plugins']['has']('AlignmentEditing'))return;const _0x4cada1=_0x52b836['plugins']['get']('TrackChangesEditing');_0x4cada1['enableDefaultAttributesIntegration']('alignment'),_0x4cada1['registerBlockAttribute']('alignment'),_0x4cada1['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x546f53,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452eec=this['editor'],_0x1a3646=_0x452eec['locale'];_0x452eec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402bf8=>{if('formatBlock'!=_0x402bf8['type'])return;const {data:_0x18053e}=_0x402bf8;if(_0x18053e&&'alignment'==_0x18053e['commandName']){const _0x541726=_0x18053e['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1a3646,'*Format:*\x20%0',function(_0x4f3f32){switch(_0x4f3f32){case'left':return c(_0x1a3646,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1a3646,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1a3646,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1a3646,'FORMAT_JUSTIFY_TEXT');}}(_0x541726))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2bb590{['afterInit'](){const _0x3b71ae=this['editor'],_0x53aca4=_0x3b71ae['plugins']['get']('TrackChangesEditing'),_0x2f8217=_0x3b71ae['locale'];for(const _0x52234f of Zt){if(!_0x3b71ae['plugins']['has'](_0x52234f))continue;const _0x571567=_0x52234f['slice'](0x0,-0x7)['toLowerCase'](),_0x258f59='FORMAT_'+_0x571567['toUpperCase']();_0x53aca4['enableDefaultAttributesIntegration'](_0x571567),_0x53aca4['registerInlineAttribute'](_0x571567),_0x53aca4['descriptionFactory']['registerAttributeLabel'](_0x571567,c(_0x2f8217,_0x258f59));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c275=this['editor'],_0x609b25=_0x51c275['locale'],_0x1cb9c3=_0x51c275['plugins']['get']('TrackChangesEditing');function _0x16ba06(_0x8aa36b,_0x2f51d6){_0x1cb9c3['descriptionFactory']['registerDescriptionCallback'](_0x43cec0=>{if('formatInline'!=_0x43cec0['type'])return;const {data:_0x3d7db2}=_0x43cec0;return _0x3d7db2&&_0x3d7db2['commandName']===_0x8aa36b?_0x3d7db2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x609b25,'*Format:*\x20%0',_0x2f51d6)}:{'type':'format','content':c(_0x609b25,'*Remove\x20format:*\x20%0',_0x2f51d6)}:void 0x0;});}_0x16ba06('bold',c(_0x609b25,'FORMAT_BOLD')),_0x16ba06('italic',c(_0x609b25,'FORMAT_ITALIC')),_0x16ba06('underline',c(_0x609b25,'FORMAT_UNDERLINE')),_0x16ba06('code',c(_0x609b25,'FORMAT_CODE')),_0x16ba06('strikethrough',c(_0x609b25,'FORMAT_STRIKETHROUGH')),_0x16ba06('subscript',c(_0x609b25,'FORMAT_SUBSCRIPT')),_0x16ba06('superscript',c(_0x609b25,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2bb590{['afterInit'](){const _0x5483a6=this['editor'],_0x1df1af=_0x5483a6['locale'];if(!_0x5483a6['plugins']['has']('BlockQuoteEditing'))return;const _0x7570ce=_0x5483a6['plugins']['get']('TrackChangesEditing'),_0x6848a7=this['editor']['commands']['get']('blockQuote');_0x7570ce['enableCommand']('blockQuote',(_0x304341,_0x5d6a34={})=>{const _0x16d84e=this['editor']['model']['document']['selection'],_0x5a422d=_0x5d6a34&&void 0x0!==_0x5d6a34['forceValue']?_0x5d6a34['forceValue']:!_0x6848a7['value'];let _0x5a6ef8=[];if(_0x5a422d){const _0xabbc38=Array['from'](_0x16d84e['getSelectedBlocks']())['filter'](_0x1823e2=>oo(_0x1823e2)||function(_0xa6263d,_0x22266e){const _0x16c0a0=_0x22266e['checkChild'](_0xa6263d['parent'],'blockQuote'),_0x1af6cd=_0x22266e['checkChild'](['$root','blockQuote'],_0xa6263d);return _0x16c0a0&&_0x1af6cd;}(_0x1823e2,this['editor']['model']['schema']));_0x5a6ef8=to(_0xabbc38,_0x5483a6['model']);}else{const _0x33295e=Array['from'](_0x16d84e['getSelectedBlocks']())['filter'](_0x243b59=>oo(_0x243b59));_0x5a6ef8=to(_0x33295e,_0x5483a6['model']);}_0x5483a6['model']['change'](()=>{for(const _0x48989e of _0x5a6ef8)_0x7570ce['markBlockFormat'](_0x48989e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5a422d}]});});}),_0x7570ce['descriptionFactory']['registerDescriptionCallback'](_0x1de5c9=>{const {data:_0x2abb42}=_0x1de5c9;if(_0x2abb42&&'blockQuote'==_0x2abb42['commandName']){const _0x18beb6=c(_0x1df1af,'ELEMENT_BLOCK_QUOTE');return _0x2abb42['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1df1af,'*Set\x20format:*\x20%0',_0x18beb6)}:{'type':'format','content':c(_0x1df1af,'*Remove\x20format:*\x20%0',_0x18beb6)};}});}}function oo(_0x5b06fb){return'blockQuote'==_0x5b06fb['parent']['name'];}class L extends _0x2bb590{['afterInit'](){const _0x56b633=this['editor'],_0x62f425=_0x56b633['locale'],_0x36b9d6=_0x56b633['plugins']['get']('TrackChangesEditing');_0x56b633['plugins']['has']('BookmarkEditing')&&(_0x36b9d6['enableCommand']('insertBookmark'),_0x36b9d6['enableDefaultAttributesIntegration']('updateBookmark'),_0x36b9d6['registerBlockAttribute']('bookmarkId'),_0x36b9d6['descriptionFactory']['registerDescriptionCallback'](_0x3feb6e=>{if('insertion'!=_0x3feb6e['type']&&'deletion'!=_0x3feb6e['type']&&'attribute'!=_0x3feb6e['type'])return;const _0x9b6609=_0x3feb6e['getContainedElement']();if(null==_0x9b6609)return;if(!_0x9b6609['is']('element','bookmark'))return;const _0x2e6289=_0x9b6609['getAttribute']('bookmarkId');if('insertion'==_0x3feb6e['type'])return{'type':'insertion','content':c(_0x62f425,'*Insert:*\x20%0','\x22'+_0x2e6289+'\x22\x20'+c(_0x62f425,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3feb6e['type'])return{'type':'deletion','content':c(_0x62f425,'*Remove:*\x20%0','\x22'+_0x2e6289+'\x22\x20'+c(_0x62f425,'ELEMENT_BOOKMARK'))};const {data:_0x4d777a}=_0x3feb6e;if(!_0x4d777a||'bookmarkId'!=_0x4d777a['key'])return;return{'type':'format','content':c(_0x62f425,'*Set\x20bookmark:*\x20%0','\x22'+_0x4d777a['newValue']+'\x22')};}));}}class J extends _0x2bb590{['afterInit'](){const _0x3a6bd9=this['editor'];_0x3a6bd9['plugins']['has']('CaseChange')&&(_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2bb590{['afterInit'](){const _0x25d455=this['editor'];_0x25d455['commands']['get']('ckbox')&&_0x25d455['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2bb590{['afterInit'](){const _0x4ea3b2=this['editor'];if(!_0x4ea3b2['plugins']['has']('CodeBlock'))return;const _0x1a1b4b=_0x4ea3b2['plugins']['get']('TrackChangesEditing'),_0x3c2531=_0x4ea3b2['locale'],_0x876674=_0x4ea3b2['config']['get']('codeBlock')['languages'],_0x355e04=_0x4ea3b2['commands']['get']('codeBlock');_0x1a1b4b['enableCommand']('indentCodeBlock'),_0x1a1b4b['enableCommand']('outdentCodeBlock'),_0x1a1b4b['enableCommand']('codeBlock',(_0x55074f,_0x11922d={})=>{const _0x3cf763=_0x4ea3b2['model'],_0x3caeb5=_0x4ea3b2['model']['document']['selection'],_0x2df7d6=_0x11922d&&void 0x0!==_0x11922d['forceValue']?_0x11922d['forceValue']:!_0x355e04['value'];let _0x11c1cc;_0x11922d['language']||(_0x11922d['language']=_0x876674[0x0]['language']),_0x11c1cc=_0x2df7d6?Array['from'](_0x3caeb5['getSelectedBlocks']())['filter'](_0x47a177=>eo(_0x47a177)||function(_0x28ca03,_0x5e035b){if(_0x28ca03['is']('rootElement')||_0x5e035b['isLimit'](_0x28ca03))return!0x1;return _0x5e035b['checkChild'](_0x28ca03['parent'],'codeBlock');}(_0x47a177,_0x3cf763['schema'])):Array['from'](_0x3caeb5['getSelectedBlocks']())['filter'](_0x106437=>eo(_0x106437));const _0x4fb9a9=to(_0x11c1cc,_0x3cf763);_0x3cf763['change'](()=>{for(const _0x29723c of _0x4fb9a9)_0x1a1b4b['markBlockFormat'](_0x29723c,{'commandName':'codeBlock','commandParams':[{..._0x11922d,'forceValue':_0x2df7d6}],'formatGroupId':'blockName'});});}),(_0x1a1b4b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3481c5=>c(_0x3c2531,'ELEMENT_CODE_BLOCK',_0x3481c5)),_0x1a1b4b['descriptionFactory']['registerDescriptionCallback'](_0x5b2cb7=>{if('formatBlock'!=_0x5b2cb7['type'])return;const _0x38b01a=_0x3c2531['t'],{data:_0x13574d}=_0x5b2cb7;if(!_0x13574d||'codeBlock'!=_0x13574d['commandName'])return;const _0x3771bb=_0x13574d['commandParams'][0x0]['language'],_0x2f79b6=_0x38b01a(_0x876674['find'](_0x11564f=>_0x11564f['language']===_0x3771bb)['label'])['toLowerCase']();return _0x13574d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c2531,'*Set\x20format:*\x20%0',c(_0x3c2531,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f79b6+')')}:{'type':'format','content':c(_0x3c2531,'*Remove\x20format:*\x20%0',c(_0x3c2531,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3cecf3){return'codeBlock'==_0x3cecf3['name'];}class q extends _0x2bb590{['afterInit'](){const _0x41bcc5=this['editor'];if(!_0x41bcc5['plugins']['has']('CommentsEditing'))return;_0x41bcc5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24b5f7,_0x4ebd61,_0x28e3b8){const _0x1756f4=[];for(const _0x426136 of _0x4ebd61['getItems']())_0x426136['hasAttribute'](_0x24b5f7)&&_0x1756f4['push'](_0x28e3b8['createRangeOn'](_0x426136));return _0x1756f4;}function Fe(_0x39e418,_0x574edf,{showActiveMarker:_0x1d1943=!0x0}={}){const _0x45da4c=_0x39e418['plugins']['get']('TrackChangesEditing');return(_0x298b1a,_0x52457a,_0x1c8759)=>{if(!_0x1c8759['consumable']['test'](_0x52457a['markerRange'],_0x298b1a['name']))return;const _0x329adb=_0x52457a['markerRange']['getWalker'](),_0x209d79=_0x52457a['markerRange']['start'],_0xdd4696=_0x39e418['model']['schema'];let _0x4215e4=null,_0x236b6e=null,_0xa15f3d=!0x1,_0x5e3f8b=!0x1;for(const _0x144917 of _0x329adb){const _0x39037d=_0x144917['item'];_0xa15f3d=_0xa15f3d||_0xdd4696['isContent'](_0x39037d);const _0x38d965=_0x1c8759['mapper']['toViewElement'](_0x39037d);if(_0x38d965&&_0x38d965['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x144917['type']&&(_0xdd4696['isBlock'](_0x39037d)&&!_0xdd4696['isLimit'](_0x39037d)&&(_0x39037d['nextSibling']||_0x209d79['isAtEnd']?_0x4215e4&&_0x4215e4['parent']==_0x39037d||(_0x4215e4=_0x39037d,_0x2206ef(_0x144917['previousPosition']),_0x5e3f8b=!0x0):_0x236b6e=_0x236b6e||_0x144917['previousPosition']));}function _0x2206ef(_0xa0bfb9){const {authorId:_0x1050ea}=_0x45da4c['_splitMarkerName'](_0x52457a['markerName']),_0x936cb7=_0x1c8759['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x574edf,'data-author-id':_0x1050ea}),_0x42d1d5=_0x1c8759['mapper']['toViewPosition'](_0xa0bfb9);_0x1d1943&&_0x45da4c['activeMarkers']['includes'](_0x52457a['markerName'])&&_0x1c8759['writer']['addClass']('ck-suggestion-marker--active',_0x936cb7),_0x1c8759['writer']['insert'](_0x42d1d5,_0x936cb7),_0x1c8759['mapper']['bindElementToMarker'](_0x936cb7,_0x52457a['markerName']);}_0xa15f3d||_0x5e3f8b||!_0x236b6e||_0x2206ef(_0x236b6e);};}class z extends _0x2bb590{static get['requires'](){return[_0x46947c];}['init'](){const _0x235aea=this['editor'],_0x3a05fb=_0x235aea['plugins']['get']('TrackChangesEditing');_0x3a05fb['enableCommand']('delete');const _0xdbe71a=_0x235aea['commands']['get']('deleteForward');_0x3a05fb['enableCommand']('deleteForward',(_0x5775fd,_0x35fa63={})=>{const _0x15d0c2=_0x235aea['model']['createSelection'](_0x235aea['model']['document']['selection']);_0x15d0c2['isCollapsed']&&_0x235aea['model']['modifySelection'](_0x15d0c2,{'direction':'forward','unit':_0x35fa63['unit']});const _0x3f69d4=_0x15d0c2['getFirstRange'](),_0x14544d=_0x1ffa61['fromRange'](_0x3f69d4);let _0x3bd92f;_0x5775fd(_0x35fa63),_0x3bd92f='$graveyard'==_0x14544d['root']['rootName']?_0x235aea['model']['createRange'](_0x3f69d4['start']):_0x235aea['model']['createRange'](_0x14544d['start'],_0x14544d['end']),_0x14544d['detach'](),_0x235aea['model']['enqueueChange'](_0xdbe71a['buffer']['batch'],_0x124690=>{_0xdbe71a['buffer']['lock'](),_0x124690['setSelection'](_0x124690['createRange'](_0x3bd92f['end'])),_0xdbe71a['buffer']['unlock']();});}),_0x235aea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x235aea,'merge'),{'priority':'high'}),_0x235aea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54b141,_0x2e6b4b,_0x3a751e)=>{_0x3a751e['options']['showSuggestionHighlights']&&Fe(_0x235aea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54b141,_0x2e6b4b,_0x3a751e);},{'priority':'high'}),_0x235aea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ddde9,_0x358ec8,_0x30fb49)=>{const _0x24de35=_0x30fb49['mapper']['markerNameToElements'](_0x358ec8['markerName']);if(_0x24de35){for(const _0x3d31ba of _0x24de35)_0x3d31ba['is']('uiElement')&&(_0x30fb49['mapper']['unbindElementFromMarkerName'](_0x3d31ba,_0x358ec8['markerName']),_0x30fb49['writer']['remove'](_0x3d31ba));}},{'priority':'high'});}}class W extends _0x2bb590{['afterInit'](){const _0x2d2a3d=this['editor'];if(!_0x2d2a3d['plugins']['has']('ListEditing'))return;const _0x43534b=_0x2d2a3d['locale'],_0x36a684=_0x2d2a3d['plugins']['get']('TrackChangesEditing'),_0x23838d=_0x2d2a3d['plugins']['has']('TodoListEditing'),_0x5acd98=!!_0x2d2a3d['config']['get']('list.multiBlock');function _0x1f961e(_0x18fdda){return{'type':'format','content':''+c(_0x43534b,'*Set\x20format:*\x20%0',_0x18fdda)};}function _0x2e91cf(_0x5a1bf9){return{'type':'format','content':''+c(_0x43534b,'*Remove\x20format:*\x20%0',_0x5a1bf9)};}_0x36a684['enableDefaultAttributesIntegration']('numberedList'),_0x36a684['enableDefaultAttributesIntegration']('bulletedList'),_0x36a684['enableDefaultAttributesIntegration']('customNumberedList'),_0x36a684['enableDefaultAttributesIntegration']('customBulletedList'),_0x36a684['enableDefaultAttributesIntegration']('indentList'),_0x36a684['enableDefaultAttributesIntegration']('outdentList'),_0x36a684['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x36a684['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x36a684['registerBlockAttribute']('listItemId'),_0x36a684['registerBlockAttribute']('listType'),_0x36a684['registerBlockAttribute']('listIndent'),_0x5acd98&&(_0x36a684['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x36a684['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23838d&&(_0x36a684['enableDefaultAttributesIntegration']('todoList'),_0x36a684['enableDefaultAttributesIntegration']('checkTodoList'),_0x36a684['registerBlockAttribute']('todoListChecked'),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x31e756=>{const {data:_0x323d7e}=_0x31e756;if(_0x323d7e&&'todoListChecked'==_0x323d7e['key'])return{'type':'format','content':_0x323d7e['newValue']?c(_0x43534b,'*Check\x20item*'):c(_0x43534b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x81cc1b=>{if(_0x81cc1b['batch']['isUndo'])return!0x1;let _0x98429a=!0x1;const _0x1d924b=_0x36a684['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d398=>'todoListChecked'===_0x36a684['_getAttributeKey'](_0x25d398));for(const _0x3805d0 of _0x1d924b){'todo'!=_0x3805d0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x36a684['_findSuggestions'](_0x3805d0['getFirstRange'](),'attribute')['find'](_0x3df757=>'listType'===_0x36a684['_getAttributeKey'](_0x3df757['suggestion']))||(_0x81cc1b['removeMarker'](_0x3805d0['getFirstMarker']()),_0x98429a=!0x0));}return _0x98429a;})),_0x36a684['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x43534b,'FORMAT_INDENT'));const _0x18a588={'type':'format','content':''};_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x1fbf87=>{const {data:_0x32b37c}=_0x1fbf87;if(!_0x32b37c||'listType'!=_0x32b37c['key'])return;let _0x210d58=_0x1fbf87['head'];for(;_0x210d58;){if(_0x210d58['data']&&(('listStyle'==_0x210d58['data']['key']||'listMarkerStyle'==_0x210d58['data']['key'])&&(_0x210d58['data']['newValue']&&'default'!=_0x210d58['data']['newValue']||'default'!=_0x210d58['data']['oldValue']&&!_0x32b37c['newValue'])||!_0x5acd98&&_0x210d58['data']['key']==u))return _0x18a588;_0x210d58=_0x210d58['next'];}if(null==_0x32b37c['newValue'])switch(_0x32b37c['oldValue']){case'bulleted':return _0x2e91cf(c(_0x43534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e91cf(c(_0x43534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e91cf(c(_0x43534b,'ELEMENT_TODO_LIST'));}switch(_0x32b37c['newValue']){case'bulleted':return _0x1f961e(c(_0x43534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f961e(c(_0x43534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f961e(c(_0x43534b,'ELEMENT_TODO_LIST'));}}),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x5eae27=>{const {data:_0x385f96}=_0x5eae27;if(_0x385f96&&'listIndent'==_0x385f96['key'])return null==_0x385f96['newValue']||null==_0x385f96['oldValue']&&0x0==_0x385f96['newValue']?_0x18a588:void 0x0;}),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x9cd83c=>{if('attribute'!=_0x9cd83c['type'])return;const {data:_0x218de3}=_0x9cd83c;if(!_0x218de3||'listItemId'!=_0x218de3['key'])return;const _0x1d3fb1=Te(_0x9cd83c);return'newValue'==_0x1d3fb1?{'type':'format','content':c(_0x43534b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d3fb1?{'type':'format','content':c(_0x43534b,'*Split:*\x20list\x20item')}:_0x18a588;}),_0x2d2a3d['model']['document']['registerPostFixer'](_0x2a4f3c=>this['listItemIdFixer'](_0x2a4f3c)),_0x2d2a3d['model']['document']['registerPostFixer'](_0x24ea93=>this['noTrackChangesFixer'](_0x24ea93)),_0x2d2a3d['model']['document']['on']('change:data',(_0x206371,_0x75c2de)=>{if(_0x75c2de['isUndo']||!_0x75c2de['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1a0653){if(_0x1a0653['batch']['isUndo']||!_0x1a0653['batch']['isLocal'])return!0x1;let _0x552429=!0x1;const _0x9a58ed=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bbd5a=>_0x3bbd5a['data']&&'listItemId'==_0x3bbd5a['data']['key'])['filter'](_0x48dee3=>_0x48dee3['data']['newValue']&&_0x48dee3['data']['oldValue']);for(const _0x4d09a3 of _0x9a58ed)Te(_0x4d09a3)||(_0x1a0653['removeMarker'](_0x4d09a3['getFirstMarker']()),_0x552429=!0x0);return _0x552429;}['noTrackChangesFixer'](_0xc64624){if(_0xc64624['batch']['isUndo']||!_0xc64624['batch']['isLocal'])return!0x1;const _0x4b2b8f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b2b8f['trackChangesCommand']['value'])return!0x1;let _0xe204aa=!0x1;const _0x3252a7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x290529=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x526315=>'attribute'==_0x526315['type'])['filter'](_0x4b534f=>_0x3252a7['includes'](_0x4b534f['attributeKey']));if(0x0==_0x290529['length'])return _0xe204aa;for(const _0x10ff43 of _0x290529){const _0x1e33c3=_0x4b2b8f['_findSuggestions'](_0x10ff43['range'],'attribute')['filter'](_0x3a738c=>!_0x3a738c['meta']['isNextTo'])['map'](_0x54f9b1=>_0x54f9b1['suggestion'])['filter'](_0x1ebfcc=>{const _0x23b447=_0x4b2b8f['_getAttributeKey'](_0x1ebfcc);return _0x3252a7['includes'](_0x23b447);});if(_0x1e33c3['length']){for(const _0x11382b of _0x1e33c3)_0xc64624['removeMarker'](_0x11382b['getFirstMarker']());_0xe204aa=!0x0;}}return _0xe204aa;}['assureChains'](){const _0x2b41c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28d1cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x562414;const _0x5ca61b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6c04f0=>{if(_0x6c04f0['data']['oldRange']||!_0x6c04f0['data']['newRange'])return null;if(!_0x6c04f0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x549257}=_0x2b41c6['_splitMarkerName'](_0x6c04f0['name']);if(!_0x2b41c6['hasSuggestion'](_0x549257))return null;const _0x45faa0=_0x2b41c6['getSuggestion'](_0x549257);return _0x28d1cd['includes'](_0x45faa0['data']['key']);})['map'](_0x1b023b=>{const {id:_0x282254}=_0x2b41c6['_splitMarkerName'](_0x1b023b['name']),_0xcc897=_0x2b41c6['getSuggestion'](_0x282254);return _0x562414=_0xcc897['attributes']['groupId'],_0xcc897['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5ca61b['size'])return;const _0x17bcf7=_0x2b41c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15e552=>'attribute'==_0x15e552['type']&&_0x15e552['data']&&_0x28d1cd['includes'](_0x15e552['data']['key'])&&_0x15e552['attributes']['groupId']!=_0x562414)['map'](_0x540b2f=>({'listItem':_0x540b2f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x540b2f['attributes']['groupId']})),_0x5d1f55=new Set();for(const {groupId:_0x3b3020,listItem:_0x4bcb50}of _0x17bcf7)_0x5ca61b['has'](_0x4bcb50)&&_0x5d1f55['add'](_0x3b3020);for(const _0x7180b0 of _0x2b41c6['getSuggestions']())_0x5d1f55['has'](_0x7180b0['attributes']['groupId'])&&_0x7180b0['setAttribute']('groupId',_0x562414);}['_supportLegacySuggestions'](){const _0x221845=this['editor'],_0x525450=_0x221845['locale'],_0x34b590=_0x221845['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x34b590['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x592ea3,_0x5e4169){const _0x1ffc31=[];for(let _0x15cf43 of _0x592ea3)_0x15cf43['start']['nodeAfter']===_0x15cf43['end']['parent']&&(_0x15cf43=_0x221845['model']['createRange'](_0x221845['model']['createPositionAt'](_0x15cf43['start']['nodeAfter'],0x0))),_0x1ffc31['push'](_0x15cf43);_0x221845['model']['change'](_0x5b1593=>{const _0x104c63=_0x221845['model']['document']['selection'],_0x42a504=Array['from'](_0x104c63['getRanges']())['map'](_0x48c242=>_0x1ffa61['fromRange'](_0x48c242));_0x5b1593['setSelection'](_0x1ffc31),_0x221845['commands']['get'](_0x5e4169['commandName'])['refresh'](),_0x5e4169['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x221845['execute'](_0x5e4169['commandName'],..._0x5e4169['commandParams']),_0x5b1593['setSelection'](_0x42a504);for(const _0x325dea of _0x42a504)_0x325dea['detach']();});}),_0x34b590['descriptionFactory']['registerElementLabel'](function(_0x29f963){const _0x4e796b=!_0x221845['model']['schema']['isObject'](_0x29f963),_0x94a748=_0x29f963['previousSibling'],_0x466dba=_0x29f963['nextSibling'],_0x20c881=_0x29f963['getAttribute']('listItemId'),_0x58010d=!_0x94a748||_0x94a748['getAttribute']('listItemId')!==_0x20c881,_0xc2feca=!_0x466dba||_0x466dba['getAttribute']('listItemId')!==_0x20c881;return _0x4e796b&&Boolean(_0x20c881)&&_0x58010d&&_0xc2feca;},_0x155d86=>c(_0x525450,'ELEMENT_LIST_ITEM',_0x155d86));}['_registerLegacyDescription'](){const _0x5cd068=this['editor'],_0x5bec46=_0x5cd068['locale'];function _0x58894f(_0x37bd27){const _0x2afc23=_0x5cd068['commands']['get']('bulletedList')['value'],_0x2d2dec=_0x5cd068['commands']['get']('numberedList')['value'];return'numberedList'===_0x37bd27?_0x2afc23:_0x2d2dec;}_0x5cd068['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4b693a){if('formatBlock'!=_0x4b693a['type'])return;const {data:_0x52c6c0}=_0x4b693a;if(!_0x52c6c0)return;let _0xf64d5a,_0x3f99cd,_0x4082c8,_0x2ebed2;switch(_0x52c6c0['commandName']){case'bulletedList':_0x4082c8=_0x52c6c0['commandParams'][0x0]['forceValue'],_0x2ebed2=_0x58894f(_0x52c6c0['commandName']),_0xf64d5a=_0x4082c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebed2&&_0x5cd068['config']['get']('list.multiBlock')||(_0xf64d5a='*Change\x20to:*\x20%0'),_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4082c8=_0x52c6c0['commandParams'][0x0]['forceValue'],_0x2ebed2=_0x58894f(_0x52c6c0['commandName']),_0xf64d5a=_0x4082c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebed2&&_0x5cd068['config']['get']('list.multiBlock')||(_0xf64d5a='*Change\x20to:*\x20%0'),_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf64d5a='*Indent:*\x20%0',_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf64d5a=function(_0x1a135e){const _0x2556e4=_0x1a135e['getFirstRange']();let _0x3c333d=_0x2556e4['start']['nodeAfter'];for(;_0x3c333d&&_0x2556e4['containsItem'](_0x3c333d);){if(_0x3c333d['getAttribute']('listIndent')>0x0)return!0x1;_0x3c333d=_0x3c333d['nextSibling'];}return!0x0;}(_0x4b693a)?c(_0x5bec46,'*Format:*\x20remove\x20from\x20%0',c(_0x5bec46,function(_0x3ede79){return'ELEMENT_'+_0x3ede79['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4b693a))):c(_0x5bec46,'*Outdent:*\x20%0',c(_0x5bec46,'ELEMENT_LIST_ITEM')),_0x3f99cd={'type':'format','content':_0xf64d5a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52c6c0['multipleBlocks']&&(_0xf64d5a='*Merge:*\x20%0',_0x3f99cd={'type':'deletion','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_LIST_ITEM'))});}return _0x3f99cd;});}}function Te(_0x549541){let _0x1379af=_0x549541['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1379af;){const _0x30ca75=_0x1379af['getAttribute']('listItemId');if(!_0x30ca75)return!0x1;if(_0x30ca75==_0x549541['data']['newValue'])return'newValue';if(_0x30ca75==_0x549541['data']['oldValue'])return'oldValue';_0x1379af=_0x1379af['previousSibling'];}return!0x1;}class Se extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58b713=this['editor']['config']['get']('list.properties'),_0x4155b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x58b713['styles']&&(_0x4155b7['enableDefaultAttributesIntegration']('listStyle'),_0x4155b7['registerBlockAttribute']('listStyle')),_0x58b713['reversed']&&(_0x4155b7['enableDefaultAttributesIntegration']('listReversed'),_0x4155b7['registerBlockAttribute']('listReversed')),_0x58b713['startIndex']&&(_0x4155b7['enableDefaultAttributesIntegration']('listStart'),_0x4155b7['registerBlockAttribute']('listStart'));const _0x2ab88f={'type':'format','content':''};_0x4155b7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2c7976=this['editor']['locale'];_0x4155b7['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2c7976,'FORMAT_LIST_REVERSED')),_0x4155b7['descriptionFactory']['registerDescriptionCallback'](_0x379a35=>{const {data:_0x24b3ff}=_0x379a35;if(_0x24b3ff&&'listReversed'==_0x24b3ff['key'])return null==_0x24b3ff['newValue']||0x0==_0x24b3ff['newValue']&&null==_0x24b3ff['oldValue']?_0x2ab88f:void 0x0;}),_0x4155b7['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2c7976,'FORMAT_LIST_START')),_0x4155b7['descriptionFactory']['registerDescriptionCallback'](_0x112e3f=>{const {data:_0x4dbcfa}=_0x112e3f;if(_0x4dbcfa&&'listStart'==_0x4dbcfa['key'])return null==_0x4dbcfa['newValue']||0x1==_0x4dbcfa['newValue']&&null==_0x4dbcfa['oldValue']?_0x2ab88f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x849cac=>{if(_0x849cac['batch']['isUndo'])return!0x1;let _0x253d0c=!0x1;const _0xa4d388=_0x4155b7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11c310=>{const _0xc7ce7e=_0x4155b7['_getAttributeKey'](_0x11c310);return'listStart'==_0xc7ce7e||'listReversed'==_0xc7ce7e;});for(const _0xc877e of _0xa4d388){const _0x9a35d1=_0xc877e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x9a35d1||'customNumbered'==_0x9a35d1)continue;_0x4155b7['_findSuggestions'](_0xc877e['getFirstRange'](),'attribute')['find'](_0x5a3b38=>'listType'==_0x4155b7['_getAttributeKey'](_0x5a3b38['suggestion']))||(_0x849cac['removeMarker'](_0xc877e['getFirstMarker']()),_0x253d0c=!0x0);}return _0x253d0c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x40180a){const _0x26998c=this['editor']['locale'],{data:_0x31ff35}=_0x40180a,_0x56162a={'type':'format','content':''};if(!_0x31ff35||'listStyle'!=_0x31ff35['key'])return;if(!_0x31ff35['oldValue'])return'default'==_0x31ff35['newValue']?_0x56162a:{'type':'format','content':''+c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['newValue'])))};if(!_0x31ff35['newValue']){if('default'==_0x31ff35['oldValue'])return _0x56162a;let _0x31a843=_0x40180a['head'];for(;_0x31a843;){if(_0x31a843['data']&&'listType'==_0x31a843['data']['key']&&_0x31a843['data']['newValue'])return _0x56162a;_0x31a843=_0x31a843['next'];}return{'type':'format','content':''+c(_0x26998c,'*Remove\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['oldValue'])))};}if('default'!=_0x31ff35['newValue'])return{'type':'format','content':''+c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['newValue'])))};let _0x5d8156=_0x40180a['head'];for(;_0x5d8156;){if(_0x5d8156['data']&&'listType'==_0x5d8156['data']['key']&&_0x5d8156['data']['newValue']&&_0x5d8156['data']['oldValue'])return _0x56162a;_0x5d8156=_0x5d8156['next'];}return{'type':'format','content':c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,'ELEMENT_'+_0x40180a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x107d7b=this['editor'],_0x1e01ff=_0x107d7b['locale'];_0x107d7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352bbd=>{if('formatBlock'!=_0x352bbd['type'])return;const {data:_0x1c3060}=_0x352bbd;if(!_0x1c3060)return;let _0x223317,_0x3105a4;switch(_0x1c3060['commandName']){case'listStyle':_0x223317='*Change\x20to:*\x20%0',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317,c(_0x1e01ff,this['_getTranslationKeyForListStyle'](_0x1c3060['commandParams'][0x0]['type'])))};break;case'listReversed':_0x223317=_0x1c3060['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317)};break;case'listStart':_0x223317='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317,_0x1c3060['commandParams'][0x0]['startIndex'])};}return _0x3105a4;});}['_getTranslationKeyForListStyle'](_0x534abf){return'ELEMENT_'+function(_0x3dacca){if(_e['includes'](_0x3dacca))return'bulleted';if(Re['includes'](_0x3dacca))return'numbered';return null;}(_0x534abf)['toUpperCase']()+'_LIST_'+_0x534abf['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2bb590{['afterInit'](){const _0x2994c6=this['editor'];_0x2994c6['commands']['get']('emoji')&&_0x2994c6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2bb590{static get['requires'](){return[_0x5b0cbd];}['init'](){const _0x3bf734=this['editor'],_0x59c5fd=_0x3bf734['plugins']['get']('TrackChangesEditing'),_0x200505=_0x3bf734['commands']['get']('enter');_0x59c5fd['enableCommand']('enter',()=>{_0x3bf734['model']['change'](_0x19b318=>{const _0x4ee193=_0x3bf734['model']['document']['selection'],_0x484731=_0x4ee193['getFirstPosition'](),_0x5a0f75=_0x1ffa61['fromRange'](_0x4ee193['getFirstRange']());if(_0x200505['enterBlock'](_0x19b318)){const _0x107f02=_0x3bf734['model']['createPositionAt'](_0x484731['parent']['nextSibling'],0x0),_0x29de6a=_0x19b318['createRange'](_0x484731,_0x107f02);_0x59c5fd['markInsertion'](_0x29de6a);}else _0x19b318['setSelection'](_0x19b318['createRange'](_0x5a0f75['end']));_0x5a0f75['detach'](),_0x200505['fire']('afterExecute',{'writer':_0x19b318});});}),_0x3bf734['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3bf734,'split'),{'priority':'high'}),_0x3bf734['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1982e7,_0x285610,_0xa638d1)=>{const _0x265b57=_0xa638d1['mapper']['markerNameToElements'](_0x285610['markerName']);if(_0x265b57){for(const _0x1437c8 of _0x265b57)_0x1437c8['hasClass']('ck-suggestion-marker-split')&&(_0xa638d1['mapper']['unbindElementFromMarkerName'](_0x1437c8,_0x285610['markerName']),_0xa638d1['writer']['remove'](_0x1437c8));}},{'priority':'high'}),_0x3bf734['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29bc90,_0x42b6e6,_0x442ace)=>{_0x442ace['options']['showSuggestionHighlights']&&Fe(_0x3bf734,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29bc90,_0x42b6e6,_0x442ace);},{'priority':'high'});}}class Z extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x357010=this['editor']['plugins']['get']('TrackChangesEditing');_0x357010['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x357010['enableCommand']('findNext'),_0x357010['enableCommand']('findPrevious'),_0x357010['enableCommand']('replace'),_0x357010['enableCommand']('replaceAll');}['handleFindCommand'](_0xa93ff2,_0x5ec201,_0x53bcac={}){const _0x8df994=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa93ff2(_0x28b9b3=>{let _0x15fa41=('string'==typeof _0x5ec201?_0x8df994['findByTextCallback'](_0x5ec201,_0x53bcac):_0x5ec201)(_0x28b9b3);Array['isArray'](_0x15fa41)&&(_0x15fa41={'results':_0x15fa41,'searchText':'string'==typeof _0x5ec201?_0x5ec201:''});const _0x27ce39=_0x15fa41['results']['filter'](_0x345dc9=>!0x1===this['_isInDeletionRange'](_0x345dc9,_0x28b9b3['item']));return{..._0x15fa41,'results':_0x27ce39};},_0x53bcac);}['_isInDeletionRange'](_0x2b1a07,_0x2ecf6e){const _0x1af788=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ecf6e,_0x2b1a07['start']),this['editor']['model']['createPositionAt'](_0x2ecf6e,_0x2b1a07['end']));for(const _0x3a268d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1af788['getIntersection'](_0x3a268d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2bb590{['afterInit'](){const _0x4a9e02=this['editor']['locale'],_0x318dd1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x363765,commandName:_0x1ae926}of ro)this['editor']['plugins']['has'](_0x363765)&&(_0x318dd1['enableDefaultAttributesIntegration'](_0x1ae926),_0x318dd1['registerInlineAttribute'](_0x1ae926));_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x4a9e02,'FORMAT_FONT_SIZE')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x4a9e02,'FORMAT_FONT_FAMILY')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x4a9e02,'FORMAT_FONT_COLOR')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x4a9e02,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x97dd88=this['editor'],_0xac877a=_0x97dd88['locale'];_0x97dd88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d36be=>{const _0x14bc63=_0xac877a['t'];if('formatInline'!=_0x7d36be['type'])return;const {data:_0x2319a3}=_0x7d36be;if(null!=_0x2319a3){if('fontSize'==_0x2319a3['commandName']){const _0x5f57f0=_0x2319a3['commandParams'][0x0]['value'];if(_0x5f57f0){const _0x575a53=_0x14bc63(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x47d3a5=>_0x47d3a5['model']==_0x5f57f0)['title'])['toLowerCase']();return{'type':'format','content':c(_0xac877a,'*Set\x20font\x20size:*\x20%0',_0x575a53)};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2319a3['commandName']){const _0x2d00a1=_0x2319a3['commandParams'][0x0]['value'];return _0x2d00a1?{'type':'format','content':c(_0xac877a,'*Set\x20font\x20family:*\x20%0',_0x2d00a1)}:{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2319a3['commandName']){const _0x4469f4=_0x2319a3['commandParams'][0x0]['value'];if(_0x4469f4){const _0xa506a4=_0x5810fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x132dee=>_0x132dee['model']==_0x4469f4);let _0x52fc04=_0x4469f4,_0x5c9ea3='';return _0xa506a4&&(_0x52fc04=_0xa506a4['label'],_0x5c9ea3=_0x14bc63(_0x52fc04)['toLowerCase']()),{'type':'format','content':c(_0xac877a,'*Set\x20font\x20color:*\x20%0',_0x5c9ea3)['trim'](),'color':{'value':_0x4469f4,'title':_0x5c9ea3||_0x52fc04}};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2319a3['commandName']){const _0x2ecd8e=_0x2319a3['commandParams'][0x0]['value'];if(_0x2ecd8e){const _0x4398f6=_0x5810fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2a63a6=>_0x2a63a6['model']==_0x2ecd8e);let _0x3a6f4f=_0x2ecd8e,_0x3ddc6d='';return _0x4398f6&&(_0x3a6f4f=_0x4398f6['label'],_0x3ddc6d=_0x14bc63(_0x3a6f4f)['toLowerCase']()),{'type':'format','content':c(_0xac877a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ddc6d)['trim'](),'color':{'value':_0x2ecd8e,'title':_0x3ddc6d||_0x3a6f4f}};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2bb590{['afterInit'](){const _0x362c31=this['editor'],_0xe16f35=_0x362c31['plugins']['get']('TrackChangesEditing'),_0x53fad1=_0x362c31['commands']['get']('copyFormat'),_0x14c408=_0x362c31['commands']['get']('pasteFormat');_0x53fad1&&_0x14c408&&(_0xe16f35['enableDefaultAttributesIntegration']('pasteFormat'),_0xe16f35['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1c6e96=this['editor'],_0x297726=_0x1c6e96['locale'];_0x1c6e96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b1188=>{if('formatBlock'!=_0x5b1188['type']&&'formatInline'!=_0x5b1188['type'])return;const {data:_0x121484}=_0x5b1188;if(_0x121484&&'pasteFormat'===_0x121484['commandName']){const _0x214a8a=[],_0x3ad608=_0x121484['commandParams'][0x0];for(const [_0x4c2d6b,_0x2ae1ad]of Object['entries'](_0x3ad608))_0x214a8a['push'](so(_0x1c6e96,_0x4c2d6b,_0x2ae1ad));return _0x214a8a['length']?{'type':'format','content':c(_0x297726,'*Set\x20format\x20to:*\x20%0',_0x214a8a['join'](',\x20'))}:{'type':'format','content':c(_0x297726,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59c78f,_0x39e2b4,_0xab2468){const _0x2a502b=_0x59c78f['locale']['t'],_0x5ba16b=_0x39e2b4['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b6975=_0x2a502b(_0x5ba16b['charAt'](0x0)['toUpperCase']()+_0x5ba16b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xab2468)return _0x1b6975;if('fontColor'===_0x39e2b4||'fontBackgroundColor'===_0x39e2b4){const _0x54fcec=_0x5810fc(_0x59c78f['config']['get']('fontColor.colors'))['find'](_0x4138cd=>_0x4138cd['model']==_0xab2468);return _0x1b6975+'\x20('+(_0x54fcec?_0x2a502b(_0x54fcec['label'])['toLowerCase']():_0xab2468)+')';}if('fontSize'===_0x39e2b4&&isNaN(parseFloat(_0xab2468))){const _0xd00e30=_0x59c78f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59c78f['config']['get']('fontSize.options'))['find'](_0xa3c311=>_0xa3c311['model']==_0xab2468);return _0x1b6975+'\x20('+(_0xd00e30?_0x2a502b(_0xd00e30['title'])['toLowerCase']():_0xab2468)+')';}return _0x1b6975+'\x20('+_0xab2468+')';}class nt extends _0x2bb590{['_headingOptions'];['afterInit'](){const _0x11bc18=this['editor'];if(!_0x11bc18['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11bc18['config']['get']('heading.options');const _0x46f198=_0x11bc18['locale'],_0x1be248=_0x11bc18['plugins']['get']('TrackChangesEditing');_0x1be248['enableDefaultAttributesIntegration']('heading');for(const _0x13fe66 of this['_headingOptions'])'paragraph'!=_0x13fe66['model']&&_0x1be248['descriptionFactory']['registerElementLabel'](_0x13fe66['model'],_0x5c9336=>{const _0x30ec5e=this['_getHeadingLevel'](_0x13fe66['model']);return null!==_0x30ec5e?_0x51152e(_0x5c9336,_0x30ec5e):_0x370d24(_0x5c9336,_0x13fe66['title']);});function _0x51152e(_0x408833,_0x37ed52){return c(_0x46f198,'ELEMENT_HEADING',[_0x408833,_0x37ed52]);}function _0x370d24(_0x4cbbb4,_0x4ab55a){return c(_0x46f198,'ELEMENT_HEADING_CUSTOM',[_0x4cbbb4,_0x4ab55a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d3a2=this['editor'],_0x494879=_0x30d3a2['locale'];function _0x4abb71(_0x106123,_0x32f131){return c(_0x494879,'ELEMENT_HEADING_CUSTOM',[_0x106123,_0x32f131]);}_0x30d3a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5acbb5=>{if('formatBlock'!=_0x5acbb5['type'])return;const {data:_0x17495a}=_0x5acbb5;if(_0x17495a&&'heading'==_0x17495a['commandName']){const _0x3350df=_0x17495a['commandParams'][0x0]['value'],_0x5e2b6e=this['_getHeadingLevel'](_0x3350df);if(null!==_0x5e2b6e)return{'type':'format','content':c(_0x494879,'*Change\x20to:*\x20%0',(_0x10cbac=0x1,_0x2a54e1=_0x5e2b6e,c(_0x494879,'ELEMENT_HEADING',[_0x10cbac,_0x2a54e1])))};const _0x22628d=this['_headingOptions']['find'](_0x5a5770=>_0x5a5770['model']===_0x3350df)['title'];return{'type':'format','content':c(_0x494879,'*Change\x20to:*\x20%0',_0x4abb71(0x1,_0x22628d))};}var _0x10cbac,_0x2a54e1;});}['_getHeadingLevel'](_0x2f2ccb){const _0x175a8b=_0x2f2ccb['match'](/^heading(\d+)/);if(_0x175a8b)return _0x175a8b[0x1];const _0x4a0ec5=this['_headingOptions']?.['find'](_0x4862c=>_0x4862c['model']==_0x2f2ccb);if(_0x4a0ec5&&_0x4a0ec5['view']){const _0x239669=_0x4a0ec5['view'],_0x3a4b2b=(_0x239669['name']??_0x239669)['match'](/^h(\d+)/);if(_0x3a4b2b)return _0x3a4b2b[0x1];}return null;}}class it extends _0x2bb590{['afterInit'](){const _0xdbc174=this['editor'];if(!_0xdbc174['plugins']['has']('HighlightEditing'))return;const _0x1351ea=_0xdbc174['plugins']['get']('TrackChangesEditing'),_0x15f02e=_0xdbc174['locale'];_0x1351ea['enableDefaultAttributesIntegration']('highlight'),_0x1351ea['registerInlineAttribute']('highlight'),_0x1351ea['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x15f02e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5d8d=this['editor'],_0x514ca2=_0x1f5d8d['locale'];_0x1f5d8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56a3c6=>{if('formatInline'!=_0x56a3c6['type'])return;const {data:_0x7cc2d0}=_0x56a3c6;if(_0x7cc2d0&&'highlight'==_0x7cc2d0['commandName']){const _0x17fcb3=_0x514ca2['t'],_0xd19967=_0x7cc2d0['commandParams'][0x0]['value'];if(_0xd19967){const _0x14dd61=_0x1f5d8d['config']['get']('highlight.options')['find'](_0x5571b3=>_0x5571b3['model']==_0xd19967),_0x39283c=_0x17fcb3(_0x14dd61['title'])['toLowerCase']();return{'type':'format','content':c(_0x514ca2,'*Set\x20highlight:*\x20%0',_0x39283c),'color':{'value':_0x14dd61['color'],'title':_0x14dd61['title']}};}return{'type':'format','content':c(_0x514ca2,'*Remove\x20highlight*',c(_0x514ca2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2bb590{['afterInit'](){const _0x1d78e7=this['editor'];if(!_0x1d78e7['plugins']['has']('HorizontalLineEditing'))return;_0x1d78e7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x20edd8=_0x1d78e7['plugins']['get']('TrackChangesEditing'),_0xb04ad3=_0x1d78e7['locale'];_0x20edd8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4aa6d3=>c(_0xb04ad3,'ELEMENT_HORIZONTAL_LINE',_0x4aa6d3)),_0x1d78e7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f657a,{writer:_0x2b38a3,options:_0x21fcb7})=>{if(!_0x21fcb7['showSuggestionHighlights'])return null;const _0x52d03a=_0x2b38a3['createContainerElement']('div'),_0x23a356=_0x2b38a3['createEmptyElement']('hr');return _0x2b38a3['addClass']('ck-horizontal-line',_0x52d03a),_0x2b38a3['insert'](_0x2b38a3['createPositionAt'](_0x52d03a,0x0),_0x23a356),_0x52d03a;},'converterPriority':'high'});}}class ot extends _0x2bb590{['afterInit'](){const _0x2ac47c=this['editor'];if(!_0x2ac47c['plugins']['has']('HtmlEmbed'))return;const _0x32776d=_0x2ac47c['plugins']['get']('TrackChangesEditing'),_0x59ccab=_0x2ac47c['locale'];_0x32776d['descriptionFactory']['registerElementLabel']('rawHtml',_0x17baa6=>c(_0x59ccab,'ELEMENT_HTML_EMBED',_0x17baa6)),_0x32776d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x32776d['registerBlockAttribute']('value'),_0x32776d['descriptionFactory']['registerDescriptionCallback'](_0x2ed7bd=>{if('attribute'!=_0x2ed7bd['type'])return;const {data:_0x328154}=_0x2ed7bd;if(_0x328154&&'value'==_0x328154['key']&&_0x2ed7bd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4746ea=c(_0x59ccab,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x59ccab,'*Change\x20%0\x20content*',_0x4746ea)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaa4444=this['editor'],_0x19b03a=_0xaa4444['locale'];_0xaa4444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4baa57=>{if('formatBlock'!=_0x4baa57['type'])return;const {data:_0x194313}=_0x4baa57;if(_0x194313&&'htmlEmbed'==_0x194313['commandName']){const _0x4b10d4=c(_0x19b03a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x19b03a,'*Change\x20%0\x20content*',_0x4b10d4)};}});}}class rt extends _0x2bb590{['afterInit'](){const _0x2b5229=this['editor'];if(!_0x2b5229['plugins']['has']('ImageEditing'))return;const _0x8e6f2d=_0x2b5229['plugins']['get']('TrackChangesEditing'),_0xc6f9da=_0x2b5229['plugins']['get']('ImageUtils'),_0x5aed6e=_0x2b5229['locale'];_0x8e6f2d['enableCommand']('insertImage'),_0x8e6f2d['descriptionFactory']['registerElementLabel']('imageBlock',_0x25e3ad=>c(_0x5aed6e,'ELEMENT_IMAGE',_0x25e3ad)),_0x8e6f2d['descriptionFactory']['registerElementLabel']('imageInline',_0x2ebb59=>c(_0x5aed6e,'ELEMENT_INLINE_IMAGE',_0x2ebb59)),_0x8e6f2d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5aed6e,'ELEMENT_CAPTION')),_0x2b5229['plugins']['has']('ImageUploadEditing')&&_0x8e6f2d['enableCommand']('uploadImage'),_0x2b5229['plugins']['has']('ImageBlockEditing')&&_0x2b5229['plugins']['has']('ImageInlineEditing')&&(_0x8e6f2d['enableCommand']('imageTypeInline',(_0x23421b,_0x3a084d)=>{const _0x4b1171=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']);_0x2b5229['model']['change'](()=>{_0x8e6f2d['markBlockFormat'](_0x4b1171,{'commandName':'imageTypeInline','commandParams':[_0x3a084d]},[],'convertBlockImageToInline');});}),_0x8e6f2d['enableCommand']('imageTypeBlock',(_0x40b855,_0x296da1)=>{_0x2b5229['model']['change'](_0x431c96=>{let _0x3f5f18=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x3be5a6=_0x431c96['createRangeOn'](_0x3f5f18);const _0x5dbdc6=_0x48d435['fromPosition'](_0x3be5a6['start'],'toPrevious'),_0x308301=_0x48d435['fromPosition'](_0x3be5a6['end'],'toNext');_0x8e6f2d['forceDefaultExecution'](()=>_0x40b855(_0x296da1)),_0x3f5f18=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x3be5a6=_0x431c96['createRangeOn'](_0x3f5f18);const _0x3effc9=_0x431c96['createRange'](_0x5dbdc6,_0x308301);_0x5dbdc6['detach'](),_0x308301['detach'](),_0x8e6f2d['markBlockFormat'](_0x3f5f18,{'commandName':'imageTypeInline','commandParams':[_0x296da1]},[],'convertInlineImageToBlock'),_0x3effc9['start']['isBefore'](_0x3be5a6['start'])&&_0x8e6f2d['markInsertion'](_0x431c96['createRange'](_0x3effc9['start'],_0x3be5a6['start']),'convertInlineImageToBlock'),_0x3be5a6['end']['isBefore'](_0x3effc9['end'])&&_0x8e6f2d['markInsertion'](_0x431c96['createRange'](_0x3be5a6['end'],_0x3effc9['end']),'convertInlineImageToBlock');});}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8e6f2d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x55e320])=>{const _0x3cf3e5=_0x8e6f2d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x587ea1=_0x55e320['start'],_0x3e0d43=_0x55e320['end'];const _0x26e475=_0x2b5229['model']['schema']['getNearestSelectionRange'](_0x587ea1,'backward'),_0x260654=_0x2b5229['model']['schema']['getNearestSelectionRange'](_0x3e0d43,'forward');_0x26e475['isCollapsed']&&(_0x587ea1=_0x26e475['start']),_0x260654['isCollapsed']&&(_0x3e0d43=_0x260654['end']),_0x3cf3e5([_0x2b5229['model']['createRange'](_0x587ea1,_0x3e0d43)]);}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x227838),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x227838)),_0x2b5229['plugins']['has']('ImageCaptionEditing')&&(_0x8e6f2d['enableCommand']('toggleImageCaption',(_0x4e7949,_0x51d3c3)=>{const _0x38453f=_0x2b5229['plugins']['get']('ImageCaptionUtils');let _0x5c92d3=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x42531a=_0x38453f['getCaptionFromImageModelElement'](_0x5c92d3);_0x2b5229['model']['change'](()=>{if(_0x42531a)return void _0x8e6f2d['markDeletion'](_0x2b5229['model']['createRangeOn'](_0x42531a));const _0x58b987=_0xc6f9da['isBlockImage'](_0x5c92d3);_0x4e7949(_0x51d3c3),_0x5c92d3=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x42531a=_0x38453f['getCaptionFromImageModelElement'](_0x5c92d3),_0x8e6f2d['markInsertion'](_0x2b5229['model']['createRangeOn'](_0x42531a),_0x58b987?null:'imageCaption');});}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x227838));const _0x2d283e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x319e10(_0x50cbba,_0x3c5483){const _0x43aed2=_0x2d283e['findIndex'](({type:_0x172e2f,subType:_0x1c5d6c})=>_0x50cbba['type']==_0x172e2f&&_0x50cbba['subType']==_0x1c5d6c),_0x466026=_0x2d283e['findIndex'](({type:_0x283866,subType:_0xfe82c5})=>_0x3c5483['type']==_0x283866&&_0x3c5483['subType']==_0xfe82c5);if(_0x43aed2<0x0||_0x466026<0x0)return!0x1;const _0x523405=_0x50cbba['getFirstRange'](),_0x2ee20c=_0x3c5483['getFirstRange']();if((0x0==_0x43aed2||0x1==_0x43aed2)&&0x2==_0x466026&&_0x523405['isIntersecting'](_0x2ee20c))return!0x0;if(0x2==_0x43aed2&&0x3==_0x466026){const _0x34b005=_0x8e6f2d['_findSuggestions'](_0x523405,'insertion')['filter'](({suggestion:_0x2abe56,meta:_0x2ed40b})=>_0x2ed40b['isOwn']&&'convertInlineImageToBlock'==_0x2abe56['subType']);if(_0x34b005['length']>0x1&&_0x2ee20c['end']['isEqual'](_0x523405['start']))return!0x0;if(0x1==_0x34b005['length']&&(_0x523405['start']['isEqual'](_0x2ee20c['end'])||_0x523405['end']['isEqual'](_0x2ee20c['start'])))return!0x0;}if(0x3==_0x43aed2&&0x3==_0x466026&&_0x523405['start']['isBefore'](_0x2ee20c['start'])){const _0x3e424e=_0x523405['end']['nodeAfter'],_0x4e2fee=_0x2ee20c['start']['nodeBefore'];return _0xc6f9da['isBlockImage'](_0x3e424e)&&_0x3e424e===_0x4e2fee;}return!0x1;}function _0x227838(_0x3fe839,_0x3df23a){return _0x319e10(_0x3fe839,_0x3df23a)?[_0x3fe839,_0x3df23a]:_0x319e10(_0x3df23a,_0x3fe839)?[_0x3df23a,_0x3fe839]:null;}_0x2b5229['plugins']['has']('ImageResize')&&(_0x8e6f2d['enableDefaultAttributesIntegration']('resizeImage'),_0x8e6f2d['registerBlockAttribute']('resizedWidth'),_0x8e6f2d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5aed6e,'FORMAT_IMAGE_SIZE'))),_0x2b5229['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8e6f2d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8e6f2d['registerBlockAttribute']('alt')),_0x2b5229['plugins']['has']('PictureEditing')&&(_0x8e6f2d['registerBlockAttribute']('sources'),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x5e0169=>{if('attribute'!=_0x5e0169['type'])return;const {data:_0x46ec06}=_0x5e0169;return _0x46ec06&&'sources'==_0x46ec06['key']?{'type':'format','content':''}:void 0x0;})),_0x2b5229['plugins']['has']('ImageSizeAttributes')&&(_0x8e6f2d['registerBlockAttribute']('width'),_0x8e6f2d['registerBlockAttribute']('height'),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x4196b5=>{if('attribute'!=_0x4196b5['type'])return;const {data:_0x4158de}=_0x4196b5;return!_0x4158de||'width'!=_0x4158de['key']&&'height'!=_0x4158de['key']?void 0x0:{'type':'format','content':''};})),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x46c169=>{if(!!_0x2d283e['find'](({type:_0x27c045,subType:_0x4933eb})=>_0x46c169['type']==_0x27c045&&_0x46c169['subType']==_0x4933eb))return _0x46c169['previous']?{}:void 0x0;}),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x2c1c4f=>{if('insertion'==_0x2c1c4f['type']||'deletion'==_0x2c1c4f['type']){const _0xe81805=_0x2c1c4f['getContainedElement']();if(_0xe81805&&_0xe81805['is']('element','caption'))return{'type':'insertion'==_0x2c1c4f['type']?'addObject':'removeObject','element':_0xe81805,'quantity':0x1};}}),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x4b7580=>'formatBlock'==_0x4b7580['type']&&'convertInlineImageToBlock'==_0x4b7580['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b7580['type']&&'convertBlockImageToInline'==_0x4b7580['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x1254c9=>{if('attribute'!=_0x1254c9['type'])return;const {data:_0x3b1354}=_0x1254c9;if(!_0x3b1354||'alt'!=_0x3b1354['key'])return;const _0x3d26ad=_0x3b1354['newValue'];return _0x3d26ad?{'type':'format','content':c(_0x5aed6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d26ad+'\x22')}:{'type':'format','content':c(_0x5aed6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8427=this['editor'],_0x5c6441=_0x1f8427['locale'];_0x1f8427['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1097d3=>{if('formatBlock'!=_0x1097d3['type']&&'formatInline'!=_0x1097d3['type'])return;const {data:_0x103e5f}=_0x1097d3;if(_0x103e5f){if('imageTextAlternative'==_0x103e5f['commandName']){const _0x3ee365=_0x103e5f['commandParams'][0x0]['newValue'];return _0x3ee365?{'type':'format','content':c(_0x5c6441,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ee365+'\x22')}:{'type':'format','content':c(_0x5c6441,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x103e5f['commandName']){const _0x381e94=_0x103e5f['commandParams'][0x0]['width'];return _0x381e94?{'type':'format','content':c(_0x5c6441,'*Set\x20image\x20width:*\x20%0',_0x381e94)}:{'type':'format','content':c(_0x5c6441,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1c8615=this['editor']['locale'],_0x7bad04=this['editor']['plugins']['get']('TrackChangesEditing');_0x7bad04['enableDefaultAttributesIntegration']('replaceImageSource'),_0x7bad04['registerBlockAttribute']('src'),_0x7bad04['descriptionFactory']['registerDescriptionCallback'](_0x1d7d03=>{if('attribute'!=_0x1d7d03['type'])return;const {data:_0x207722}=_0x1d7d03;return _0x207722&&'src'==_0x207722['key']?_0x207722['newValue']&&_0x207722['oldValue']?{'type':'format','content':c(_0x1c8615,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48f460=this['editor']['plugins']['get']('TrackChangesEditing');_0x48f460['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x48f460['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48f460['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x48f460['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x205bf5=this['editor'],_0x4ee123=_0x205bf5['locale'];_0x205bf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11020d=>{if('formatBlock'!=_0x11020d['type']&&'formatInline'!=_0x11020d['type'])return;const {data:_0x2fa72a}=_0x11020d;if(!_0x2fa72a||'replaceImageSource'!=_0x2fa72a['commandName'])return;return{'type':'format','content':c(_0x4ee123,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2bb590{['afterInit'](){const _0x1f11c0=this['editor'];if(!_0x1f11c0['plugins']['has']('ImageStyleEditing'))return;const _0x24fa9f=_0x1f11c0['plugins']['get']('TrackChangesEditing'),_0x371bc9=_0x1f11c0['plugins']['get']('ImageUtils'),_0x33683f={};_0x24fa9f['enableCommand']('imageStyle',(_0x5af442,_0x3fd372)=>{const _0x29e7c1=_0x1f11c0['plugins']['get']('Users')['me'],_0x11ff7a=_0x1f11c0['commands']['get']('imageStyle');let _0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),_0x17bb65=_0x1f11c0['model']['createRangeOn'](_0x225764),_0x4df0a6=_0x11ff7a['value'];if(_0x4df0a6==_0x3fd372['value'])return;const _0x884144={'commandName':'imageStyle','commandParams':[_0x3fd372],'formatGroupId':_0xf1d1da()};_0x1f11c0['model']['change'](()=>{if(_0x24fa9f['getSuggestions']()['filter'](_0x19ee25=>_0x19ee25['isInContent']&&_0x29e7c1==_0x19ee25['author']&&('formatBlock'==_0x19ee25['type']||'formatInline'==_0x19ee25['type'])&&('imageStylePreApply'==_0x19ee25['subType']||'imageStylePostApply'==_0x19ee25['subType'])&&_0x19ee25['getFirstRange']()['isEqual'](_0x17bb65))['forEach'](_0x465dcb=>_0x24fa9f['discardSuggestion'](_0x465dcb['head'])),_0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),_0x17bb65=_0x1f11c0['model']['createRangeOn'](_0x225764),_0x11ff7a['refresh'](),_0x1f11c0['commands']['get']('imageTypeInline')['refresh'](),_0x1f11c0['commands']['get']('imageTypeBlock')['refresh'](),_0x4df0a6=_0x11ff7a['value'],_0x4df0a6!=_0x3fd372['value'])return _0x371bc9['isInlineImage'](_0x225764)&&_0x11ff7a['shouldConvertImageType'](_0x3fd372['value'],_0x225764)?(_0x5af442({..._0x3fd372,'setImageSizes':!0x1}),_0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),void _0x24fa9f['markBlockFormat'](_0x225764,{..._0x884144,'commandReversedParams':[{'value':_0x4df0a6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x371bc9['isBlockImage'](_0x225764)?_0x24fa9f['markBlockFormat'](_0x225764,_0x884144,[],'imageStylePostApply'):_0x24fa9f['markInlineFormat'](_0x17bb65,_0x884144,'imageStylePostApply'));});});for(const _0x5e4617 of _0x1f11c0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x33683f[_0x5e4617['name']]=_0x5e4617['title']['toLowerCase']();_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9ab69b])=>{_0x371bc9['setImageNaturalSizeAttributes'](_0x9ab69b['getContainedElement']());}),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fa3f7,_0xed4240)=>{_0x24fa9f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fa3f7,{'commandName':_0xed4240['commandName'],'commandParams':_0xed4240['commandReversedParams']});}),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e502f,_0x377ecd){if(_0x30d488(_0x3e502f,_0x377ecd))return[_0x3e502f,_0x377ecd];if(_0x30d488(_0x377ecd,_0x3e502f))return[_0x377ecd,_0x3e502f];return null;});const _0x1d84ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30d488(_0x536174,_0x5105ee){const _0x4a8353=_0x1d84ea['findIndex'](({type:_0x58c96f,subType:_0x2b7398})=>_0x536174['type']==_0x58c96f&&_0x536174['subType']==_0x2b7398),_0x333521=_0x1d84ea['findIndex'](({type:_0x3009aa,subType:_0x45ba0c})=>_0x5105ee['type']==_0x3009aa&&_0x5105ee['subType']==_0x45ba0c);if(_0x4a8353<0x0||_0x333521<0x0)return!0x1;const _0x3cb3d1=_0x536174['getFirstRange'](),_0x4b7af7=_0x5105ee['getFirstRange']();if((0x0==_0x4a8353||0x1==_0x4a8353)&&0x2==_0x333521&&_0x3cb3d1['isIntersecting'](_0x4b7af7))return!0x0;if(0x2==_0x4a8353&&0x3==_0x333521){const _0x3af5e7=_0x24fa9f['_findSuggestions'](_0x3cb3d1,'insertion')['filter'](({suggestion:_0x4f3f6d,meta:_0x1ab104})=>_0x1ab104['isOwn']&&'convertInlineImageToBlock'==_0x4f3f6d['subType']);if(_0x3af5e7['length']>0x1&&_0x4b7af7['end']['isEqual'](_0x3cb3d1['start']))return!0x0;if(0x1==_0x3af5e7['length']&&(_0x3cb3d1['start']['isEqual'](_0x4b7af7['end'])||_0x3cb3d1['end']['isEqual'](_0x4b7af7['start'])))return!0x0;}if(0x3==_0x4a8353&&0x3==_0x333521&&_0x3cb3d1['start']['isBefore'](_0x4b7af7['start'])){const _0x301ba7=_0x3cb3d1['end']['nodeAfter'],_0x177d8c=_0x4b7af7['start']['nodeBefore'];return _0x371bc9['isBlockImage'](_0x301ba7)&&_0x301ba7===_0x177d8c;}return!0x1;}_0x1f11c0['model']['document']['registerPostFixer'](()=>{let _0x4d43e1=!0x1;const _0x14b1cb=Array['from'](_0x1f11c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57879c,data:_0x519095}of _0x14b1cb){const {group:_0x1bc34f,type:_0x5f0e70,subType:_0x1a9cbe,id:_0x5854ec}=_0x24fa9f['_splitMarkerName'](_0x57879c);if('suggestion'==_0x1bc34f&&_0x24fa9f['hasSuggestion'](_0x5854ec)){if('formatBlock'==_0x5f0e70&&('imageStylePreApply'==_0x1a9cbe||'imageStylePostApply'==_0x1a9cbe)){const _0x64a248=_0x24fa9f['getSuggestion'](_0x5854ec);if(_0x519095['newRange']){const _0x2b9162=_0x64a248['getFirstRange']()['getContainedElement']();if(_0x371bc9['isBlockImage'](_0x2b9162))continue;_0x24fa9f['discardSuggestion'](_0x64a248),_0x4d43e1=!0x0;}}if('insertion'==_0x5f0e70&&'imageCaption'==_0x1a9cbe&&!_0x519095['newRange']){const _0x479ca8=_0x24fa9f['getSuggestion'](_0x5854ec);_0x479ca8['next']&&_0x479ca8['next']['isInContent']&&(_0x24fa9f['discardSuggestion'](_0x479ca8['next']),_0x4d43e1=!0x0);}}}return _0x4d43e1;}),this['_registerLegacyDescription'](_0x33683f);}['_registerLegacyDescription'](_0x49882e){const _0xdf9ff5=this['editor'],_0x204def=_0xdf9ff5['locale'];_0xdf9ff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x167233=>{if('formatBlock'!=_0x167233['type']&&'formatInline'!=_0x167233['type'])return;const {data:_0x565596}=_0x167233;if(!_0x565596||'imageStyle'!=_0x565596['commandName'])return;const _0xc5a435=_0x565596['commandParams'][0x0]['value'];return _0x407029('side'===_0xc5a435?c(_0x204def,'FORMAT_SIDE_IMAGE'):_0x49882e[_0xc5a435]||_0xc5a435);function _0x407029(_0x1fa5fe){return{'type':'format','content':c(_0x204def,'*Format:*\x20%0',_0x1fa5fe)};}});}}class ut extends _0x2bb590{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16ad10){super(_0x16ad10),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x20022b=this['editor'],_0x5367df=_0x20022b['commands']['get']('importWord'),_0x2cdc49=_0x20022b['commands']['get']('trackChanges');_0x5367df&&(_0x5367df['on']('execute',(_0x2b56e4,[,_0x311270])=>{this['_trackChangesValueDuringImport']=_0x2cdc49['value'],_0x311270['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5367df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5367df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2cdc49['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x20022b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x178326,_0x44e707){const {suggestions:_0x40811c}=_0x44e707,_0x2df765=this['editor']['commands']['get']('trackChanges'),_0x54144a=_0x2df765['value'];this['_trackChangesValueDuringImport']!==_0x54144a&&(_0x2df765['execute'](),this['_trackChangesExecuted']=!0x0),_0x40811c&&_0x40811c['forEach'](({id:_0x483c5a,type:_0x55ee60,author:_0x310539,created_at:_0x23e728})=>{const _0x2e32f6={'id':_0x483c5a,'type':_0x55ee60,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x310539,'createdAt':_0x23e728?new Date(_0x23e728):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2e32f6);});}}class ft extends _0x2bb590{['afterInit'](){const _0x3867d2=this['editor'],_0x3e5d28=_0x3867d2['plugins']['get']('TrackChangesEditing');if(_0x3867d2['plugins']['has']('IndentEditing')&&(_0x3e5d28['enableCommand']('indent'),_0x3e5d28['enableCommand']('outdent')),_0x3867d2['plugins']['has']('IndentBlock')){for(const _0x25be05 of['indentBlock','outdentBlock'])_0x3e5d28['enableDefaultAttributesIntegration'](_0x25be05);}const _0x27d427=_0x3867d2['locale'];_0x3e5d28['registerBlockAttribute']('blockIndent'),_0x3e5d28['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x27d427,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x243c78=this['editor'],_0x2eac74=_0x243c78['locale'],_0x147127=_0x243c78['plugins']['get']('TrackChangesEditing');_0x147127['descriptionFactory']['registerDescriptionCallback'](_0x36f86c=>{if('formatBlock'!=_0x36f86c['type'])return;const {data:_0x313f00}=_0x36f86c;if(!_0x313f00)return;if('indentBlock'!=_0x313f00['commandName']&&'outdentBlock'!=_0x313f00['commandName'])return;const _0x4677b9=_0x36f86c['getItems']()[0x0],_0x1906de=_0x147127['descriptionFactory']['getItemLabel'](_0x4677b9);return'indentBlock'==_0x313f00['commandName']?{'type':'format','content':c(_0x2eac74,'*Indent:*\x20%0',_0x1906de)}:'outdentBlock'==_0x313f00['commandName']?{'type':'format','content':c(_0x2eac74,'*Outdent:*\x20%0',_0x1906de)}:void 0x0;});}}class ht extends _0x2bb590{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2bb590{['afterInit'](){const _0x2b8530=this['editor'];if(!_0x2b8530['plugins']['has']('LinkEditing'))return;const _0x193e9c=_0x2b8530['plugins']['get']('TrackChangesEditing'),_0x2f8e35=_0x2b8530['commands']['get']('link');_0x193e9c['enableDefaultAttributesIntegration']('link'),_0x193e9c['enableDefaultAttributesIntegration']('unlink'),_0x193e9c['registerInlineAttribute']('linkHref');for(const _0x4ada4c of _0x2f8e35['manualDecorators'])_0x193e9c['registerInlineAttribute'](_0x4ada4c['id']),_0x193e9c['descriptionFactory']['registerAttributeLabel'](_0x4ada4c['id'],'link\x20('+_0x4ada4c['label']['toLowerCase']()+')');_0x193e9c['descriptionFactory']['registerDescriptionCallback'](_0x366348=>{if('attribute'!=_0x366348['type'])return;const {data:_0x170010}=_0x366348;if(!_0x170010||'linkHref'!=_0x170010['key'])return;const _0x17ff1e=_0x170010['newValue'],_0x58129e=_0x2b8530['locale'];return{'type':'format','content':null==_0x17ff1e?c(_0x58129e,'*Remove\x20link*'):c(_0x58129e,'*Set\x20link:*\x20%0','\x22'+_0x17ff1e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ed17a=this['editor'],_0x24aa6c=_0x3ed17a['locale'];_0x3ed17a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb394=>{if('formatInline'!=_0x4fb394['type'])return;const {data:_0x4b4970}=_0x4fb394;if(_0x4b4970){if('link'==_0x4b4970['commandName']){const _0x266f0c=_0x4b4970['commandParams'][0x0];return{'type':'format','content':c(_0x24aa6c,'*Set\x20link:*\x20%0','\x22'+_0x266f0c+'\x22')};}return'unlink'==_0x4b4970['commandName']?{'type':'format','content':c(_0x24aa6c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2bb590{['afterInit'](){const _0x2438bd=this['editor'],_0x8d7c3a=_0x2438bd['locale'];if(!_0x2438bd['plugins']['has']('LegacyListEditing'))return;const _0x23e30d=_0x2438bd['plugins']['get']('TrackChangesEditing'),_0x1611a2=_0x2438bd['plugins']['has']('LegacyTodoListEditing');function _0x3c54a2(_0x59172f){return()=>{const _0x3345dc=_0x2438bd['model']['document']['selection'],_0x56b840=_0x2438bd['commands']['get'](_0x59172f);if(_0x56b840['value'])return void _0x2438bd['execute']('paragraph',{});const _0x27be6=_0x59172f['slice'](0x0,-0x4),_0x5c3699=function(_0x2e1a6e,_0x519da2,_0xd750a8){let _0x12c587=Array['from'](_0x2e1a6e)['filter'](_0x11c4c4=>function(_0x1a2cbb,_0x4cbb36){return _0x4cbb36['checkChild'](_0x1a2cbb['parent'],'listItem')&&!_0x4cbb36['isObject'](_0x1a2cbb);}(_0x11c4c4,_0xd750a8));_0x12c587=_0x12c587['filter'](_0xe0a4a=>!_0xe0a4a['is']('element','listItem')||_0xe0a4a['getAttribute']('listType')!=_0x519da2);const _0x65237e=new Set();for(const _0x37a57b of _0x12c587)_0x37a57b['is']('element','listItem')?_0x65237e['add'](Le(_0x37a57b)):_0x65237e['add'](_0x37a57b);return Array['from'](_0x65237e);}(_0x3345dc['getSelectedBlocks'](),_0x27be6,_0x2438bd['model']['schema']);_0x2438bd['model']['change'](()=>{for(const _0x2491b9 of _0x5c3699)_0x23e30d['markBlockFormat'](_0x2491b9,{'commandName':_0x59172f,'commandParams':[{'forceValue':!_0x56b840['value']}],'formatGroupId':'blockName'},Ee(_0x2491b9));});};}function _0x30bea2(_0x3b9b93){return()=>{const _0x41c448=function(_0x4dc598){let _0x3aca53=Array['from'](_0x4dc598);const _0x462bf0=_0x3aca53['findIndex'](_0x27e950=>'listItem'!=_0x27e950['name']);return _0x462bf0>-0x1&&(_0x3aca53=_0x3aca53['slice'](0x0,_0x462bf0)),_0x3aca53;}(_0x2438bd['model']['document']['selection']['getSelectedBlocks']()),_0x97038=_0x2438bd['model']['createRange'](_0x2438bd['model']['createPositionAt'](_0x41c448[0x0],'before'),_0x2438bd['model']['createPositionAt'](_0x41c448[_0x41c448['length']-0x1],'end'));_0x2438bd['model']['change'](()=>{_0x23e30d['markBlockFormat'](_0x97038,{'commandName':_0x3b9b93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x399271){const _0xcfb126=new Set();for(const _0x261498 of _0x399271){let _0xe7ec53=_0x261498['nextSibling'];for(;_0xe7ec53&&_0xe7ec53['getAttribute']('listIndent')>_0x261498['getAttribute']('listIndent');)_0xcfb126['add'](_0xe7ec53),_0xe7ec53=_0xe7ec53['nextSibling'];}return Array['from'](_0xcfb126);}(_0x41c448));});};}_0x23e30d['enableCommand']('numberedList',_0x3c54a2('numberedList')),_0x23e30d['enableCommand']('bulletedList',_0x3c54a2('bulletedList')),_0x1611a2&&_0x23e30d['enableCommand']('todoList',_0x3c54a2('todoList')),_0x23e30d['enableCommand']('indentList',_0x30bea2('indentList')),_0x23e30d['enableCommand']('outdentList',_0x30bea2('outdentList')),_0x1611a2&&_0x23e30d['enableCommand']('checkTodoList',()=>{const _0x2f33c2=_0x2438bd['commands']['get']('checkTodoList'),_0x419537=Array['from'](_0x2f33c2['_selectedElements']);_0x419537['filter'](_0x1441f0=>_0x1441f0['getAttribute']('todoListChecked')!=_0x2f33c2['value']),_0x2438bd['model']['change'](()=>{for(const _0x36812f of _0x419537)_0x23e30d['markBlockFormat'](_0x36812f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f33c2['value']}]});});}),_0x23e30d['descriptionFactory']['registerElementLabel']('listItem',_0x2499e8=>c(_0x8d7c3a,'ELEMENT_LIST_ITEM',_0x2499e8)),_0x23e30d['descriptionFactory']['registerDescriptionCallback'](_0x1b6119=>{if('formatBlock'!=_0x1b6119['type']&&'formatInline'!=_0x1b6119['type'])return;const {data:_0x208df4}=_0x1b6119;if(_0x208df4){if('numberedList'==_0x208df4['commandName']||'bulletedList'==_0x208df4['commandName']||'todoList'==_0x208df4['commandName'])switch(_0x208df4['commandName']['replace']('List','')){case'bulleted':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x208df4['commandName'])return{'type':'format','content':c(_0x8d7c3a,'*Indent:*\x20%0',c(_0x8d7c3a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x208df4['commandName'])return{'type':'format','content':c(_0x8d7c3a,'*Outdent:*\x20%0',c(_0x8d7c3a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x208df4['commandName'])return _0x208df4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x8d7c3a,'*Check\x20item*')}:{'type':'format','content':c(_0x8d7c3a,'*Uncheck\x20item*')};}function _0x2570d3(_0x43efb6){return{'type':'format','content':c(_0x8d7c3a,'*Change\x20to:*\x20%0',_0x43efb6)};}});}}function Le(_0x49ac59){const _0x61e1ac=_0x49ac59['getAttribute']('listIndent');if(0x0==_0x61e1ac)return _0x49ac59;let _0x518d2e=_0x49ac59;for(;_0x49ac59['previousSibling']&&_0x49ac59['previousSibling']['is']('element','listItem');){const _0x492b31=_0x49ac59['previousSibling']['getAttribute']('listIndent');if(_0x492b31==_0x61e1ac)_0x518d2e=_0x49ac59['previousSibling'];else{if(_0x492b31<_0x61e1ac)break;}_0x49ac59=_0x49ac59['previousSibling'];}return _0x518d2e;}function Ee(_0x2f2854){const _0xa9e57=[];if(_0x2f2854['is']('element','listItem')&&_0x2f2854['getAttribute']('listIndent')>0x0){let _0x3cb503=_0x2f2854['nextSibling'];for(;_0x3cb503&&'listItem'==_0x3cb503['name']&&_0x3cb503['getAttribute']('listIndent')==_0x2f2854['getAttribute']('listIndent');)_0xa9e57['push'](_0x3cb503),_0x3cb503=_0x3cb503['nextSibling'];}return _0xa9e57;}class Q extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x38d55d=this['editor']['config']['get']('list.properties'),_0x5dd738=this['editor']['plugins']['get']('TrackChangesEditing');_0x38d55d['styles']&&_0x5dd738['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x38d55d['reversed']&&_0x5dd738['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x38d55d['startIndex']&&_0x5dd738['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5dd738['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x214724,_0x1da5d7={}){const _0x34353d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x119589=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34353d['markMultiRangeBlockFormat'](_0x119589,{'commandName':'listStyle','commandParams':[{'type':_0x1da5d7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5bce88,_0x422e94={}){const _0x402556=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a6cb=this['_getSuggestionBlocks'](_0x3dfa17=>_0x3dfa17['is']('element','listItem')&&'numbered'===_0x3dfa17['getAttribute']('listType'));if(_0x25a6cb['length']<0x1)return;const _0x230331=_0x25a6cb['map'](_0x124b79=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x124b79,'before'),this['editor']['model']['createPositionAt'](_0x124b79,0x0)));this['editor']['model']['change'](()=>{_0x402556['markMultiRangeBlockFormat'](_0x230331,{'commandName':'listReversed','commandParams':[{'reversed':_0x422e94['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x58d686,_0x55bfbf={}){const _0x386fb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c3968=this['_getSuggestionBlocks'](_0x213d57=>_0x213d57['is']('element','listItem')&&'numbered'===_0x213d57['getAttribute']('listType'));if(_0x3c3968['length']<0x1)return;const _0x5c8401=_0x3c3968['map'](_0x371d2b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x371d2b,'before'),this['editor']['model']['createPositionAt'](_0x371d2b,0x0)));this['editor']['model']['change'](()=>{_0x386fb8['markMultiRangeBlockFormat'](_0x5c8401,{'commandName':'listStart','commandParams':[{'startIndex':_0x55bfbf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47a732){if('formatBlock'!=_0x47a732['type']&&'formatInline'!=_0x47a732['type'])return;const _0x1b61e0=this['editor']['locale'],{data:_0xe1ac65}=_0x47a732;if(!_0xe1ac65)return;let _0x1cf6db,_0x1a0e40;switch(_0xe1ac65['commandName']){case'listStyle':_0x1cf6db='*Change\x20to:*\x20%0',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db,c(_0x1b61e0,this['_getTranslationKeyForListStyle'](_0xe1ac65['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cf6db=_0xe1ac65['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db)};break;case'listStart':_0x1cf6db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db,_0xe1ac65['commandParams'][0x0]['startIndex'])};}return _0x1a0e40;}['_getSuggestionBlocksForListStyle'](){const _0x14912b=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a782e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a782e[0x0]?.['is']('element','listItem')&&_0x5a782e['unshift'](..._0x14912b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a782e[_0x5a782e['length']-0x1]?.['is']('element','listItem')&&_0x5a782e['push'](..._0x14912b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a782e=[...new Set(_0x5a782e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a782e=_0x5a782e['filter'](_0x226d67=>_0x226d67['is']('element','listItem'))),_0x5a782e;}['_getSuggestionBlocks'](_0x6dd97){const _0x563990=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d67e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x6dd97)['map'](_0x5f01d7=>{const _0x4d92a1=this['editor']['model']['createPositionAt'](_0x5f01d7,0x0);return[..._0x563990['getSiblingNodes'](_0x4d92a1,'backward'),..._0x563990['getSiblingNodes'](_0x4d92a1,'forward')];})['flat']();return _0x5d67e4=[...new Set(_0x5d67e4)],_0x5d67e4;}['_getTranslationKeyForListStyle'](_0x41f24f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41f24f)||'default')['toUpperCase']()+'_LIST_'+_0x41f24f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2bb590{['afterInit'](){const _0xc1080c=this['editor'];if(!_0xc1080c['plugins']['has']('MediaEmbedEditing'))return;const _0x288314=_0xc1080c['plugins']['get']('TrackChangesEditing'),_0x1ce92f=_0xc1080c['locale'];_0x288314['enableCommand']('mediaEmbed'),_0x288314['descriptionFactory']['registerElementLabel']('media',_0x33580b=>c(_0x1ce92f,'ELEMENT_MEDIA',_0x33580b)),_0xc1080c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24c8f8,{writer:_0x39dfa4,options:_0x549965})=>{if(_0x549965['showSuggestionHighlights'])return _0x39dfa4['createEmptyElement']('div');},'converterPriority':'high'}),_0xc1080c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x585d5e,_0x1f68e9,_0x24f3c3)=>{_0x24f3c3['options']['showSuggestionHighlights']&&_0x585d5e['stop']();},{'priority':'high'});}}class pt extends _0x2bb590{['afterInit'](){const _0x5580eb=this['editor'];_0x5580eb['plugins']['has']('MentionEditing')&&_0x5580eb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2bb590{['afterInit'](){const _0x57a7b9=this['editor'];if(!_0x57a7b9['plugins']['has']('MergeFieldsEditing'))return;const _0x2b42df=_0x57a7b9['plugins']['get']('TrackChangesEditing'),_0xf64aa0=_0x57a7b9['locale'];_0x2b42df['enableCommand']('insertMergeField'),_0x2b42df['enableCommand']('insertMergeFieldBlock'),_0x2b42df['enableCommand']('insertMergeFieldImage'),_0x2b42df['descriptionFactory']['registerElementLabel']('mergeField',_0x4bf5e3=>c(_0xf64aa0,'ELEMENT_MERGE_FIELD',_0x4bf5e3)),_0x2b42df['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x78ba29=>c(_0xf64aa0,'ELEMENT_MERGE_FIELD',_0x78ba29)),_0x2b42df['descriptionFactory']['registerDescriptionCallback'](_0x8c424=>{if('insertion'!=_0x8c424['type']&&'deletion'!=_0x8c424['type'])return;const _0x16b168=_0x8c424['getContainedElement']();if(null==_0x16b168)return;const _0x5c7149=_0x57a7b9['plugins']['get']('MergeFieldsEditing');let _0x2d48c1;switch(_0x5c7149['getMergeFieldType'](_0x16b168)){case null:return;case'image':{const _0x213ecd=_0x5c7149['unwrapAffixes'](_0x16b168['getAttribute']('src'));_0x2d48c1=_0x5c7149['getLabel'](_0x213ecd)||_0x213ecd;break;}default:{const _0x50d440=_0x16b168['getAttribute']('id');_0x2d48c1=_0x5c7149['getLabel'](_0x50d440)||_0x50d440;break;}}return'insertion'==_0x8c424['type']?{'type':'insertion','content':c(_0xf64aa0,'*Insert:*\x20%0','\x22'+_0x2d48c1+'\x22\x20'+c(_0xf64aa0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xf64aa0,'*Remove:*\x20%0','\x22'+_0x2d48c1+'\x22\x20'+c(_0xf64aa0,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2bb590{['afterInit'](){const _0x3b652c=this['editor'],_0x34a8ab=_0x3b652c['plugins']['get']('TrackChangesEditing');_0x3b652c['plugins']['has']('MultiLevelList')&&(_0x34a8ab['enableDefaultAttributesIntegration']('multiLevelList'),_0x34a8ab['registerBlockAttribute']('listMarkerStyle'),_0x34a8ab['descriptionFactory']['registerDescriptionCallback'](_0x1b58cd=>this['handleDescriptions'](_0x1b58cd)));}['handleDescriptions'](_0x395fdc){const _0xf474d7=this['editor']['locale'],{data:_0x45f0a6}=_0x395fdc,_0x27f403={'type':'format','content':''};if(_0x45f0a6&&'listMarkerStyle'==_0x45f0a6['key']){if(!_0x45f0a6['oldValue'])return{'type':'format','content':c(_0xf474d7,'*Set\x20format:*\x20%0',c(_0xf474d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45f0a6['newValue']+')'};if(!_0x45f0a6['newValue']){let _0x1caa82=_0x395fdc['head'];for(;_0x1caa82;){if(_0x1caa82['data']&&'listType'==_0x1caa82['data']['key']&&_0x1caa82['data']['newValue'])return _0x27f403;_0x1caa82=_0x1caa82['next'];}return{'type':'format','content':c(_0xf474d7,'*Remove\x20format:*\x20%0',c(_0xf474d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45f0a6['oldValue']+')'};}}}}class bt extends _0x2bb590{['afterInit'](){const _0x215042=this['editor'];if(!_0x215042['plugins']['has']('PageBreakEditing'))return;_0x215042['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x142b32=_0x215042['plugins']['get']('TrackChangesEditing'),_0x2f3753=_0x215042['locale'];_0x142b32['descriptionFactory']['registerElementLabel']('pageBreak',_0x43e440=>c(_0x2f3753,'ELEMENT_PAGE_BREAK',_0x43e440));}}class yt extends _0x2bb590{['afterInit'](){const _0x14abd3=this['editor'];if(!_0x14abd3['plugins']['has']('Paragraph'))return;const _0x2efabb=_0x14abd3['locale'],_0x26965b=_0x14abd3['plugins']['get']('TrackChangesEditing');_0x26965b['descriptionFactory']['registerElementLabel']('paragraph',_0x256446=>c(_0x2efabb,'ELEMENT_PARAGRAPH',_0x256446)),_0x26965b['enableDefaultAttributesIntegration']('paragraph'),_0x26965b['enableCommand']('insertParagraph'),_0x14abd3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x14abd3),{'priority':'highest'}),_0x14abd3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbd4651,_0xfd6372,_0x48535b)=>{_0x48535b['options']['showSuggestionHighlights']&&nr(_0x14abd3,{'showActiveMarker':!0x1})(_0xbd4651,_0xfd6372,_0x48535b);},{'priority':'highest'});const _0x6d627b=_0x26965b['descriptionFactory'];_0x6d627b['registerDescriptionCallback'](_0x5e8387=>{if('insertion'!==_0x5e8387['type'])return;const {start:_0x26e8ec,end:_0xd5b9bb}=_0x5e8387['getFirstRange']();if(!_0x26e8ec['isTouching'](_0xd5b9bb)||!_0x26e8ec['nodeAfter'])return;const _0x26f493=_0x14abd3['model']['schema'],_0x5e5a44=_0x26e8ec['nodeAfter'];return _0x26f493['isBlock'](_0x5e5a44)&&!_0x26f493['isLimit'](_0x5e5a44)&&_0x26f493['checkChild'](_0x5e5a44,'$text')?{'type':'insertion','content':c(_0x2efabb,'*Insert:*\x20%0',_0x6d627b['getItemLabel'](_0x5e5a44,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f3eee=this['editor'],_0x394f8e=_0x4f3eee['locale'];_0x4f3eee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbb5c82=>{if('formatBlock'!=_0xbb5c82['type'])return;const {data:_0x4d3d8e}=_0xbb5c82;return _0x4d3d8e&&'paragraph'==_0x4d3d8e['commandName']?{'type':'format','content':c(_0x394f8e,'*Change\x20to:*\x20%0',c(_0x394f8e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x56c30,{showActiveMarker:_0xb94051=!0x0}={}){return(_0x428e14,_0x3b943d,_0x538901)=>{const _0x52d808=_0x56c30['plugins']['get']('TrackChangesEditing'),_0x1cde69=_0x3b943d['markerRange']['start'],_0x3b8af7=_0x3b943d['markerRange']['end'],_0xb49ed7=_0x56c30['model']['schema'];if(!_0x1cde69['isTouching'](_0x3b8af7)||!_0x1cde69['nodeAfter'])return;const _0x1f6cdf=_0x1cde69['nodeAfter'];if(_0xb49ed7['isBlock'](_0x1f6cdf)&&!_0xb49ed7['isLimit'](_0x1f6cdf)&&_0xb49ed7['checkChild'](_0x1f6cdf,'$text')){if(!_0x538901['consumable']['consume'](_0x3b943d['markerRange'],_0x428e14['name']))return;const {authorId:_0x32efa0}=_0x52d808['_splitMarkerName'](_0x3b943d['markerName']),_0x19bd3a=_0x538901['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x32efa0}),_0x6c52b3=_0x538901['mapper']['toViewPosition'](_0x3b8af7);_0xb94051&&_0x52d808['activeMarkers']['includes'](_0x3b943d['markerName'])&&_0x538901['writer']['addClass']('ck-suggestion-marker--active',_0x19bd3a),_0x538901['writer']['insert'](_0x6c52b3,_0x19bd3a),_0x538901['mapper']['bindElementToMarker'](_0x19bd3a,_0x3b943d['markerName']);}};}class jt extends _0x2bb590{['afterInit'](){const _0x1ef589=this['editor'];_0x1ef589['commands']['get']('replaceSource')&&_0x1ef589['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2bb590{['afterInit'](){const _0x4650a6=this['editor'];if(!_0x4650a6['plugins']['has']('RemoveFormatEditing'))return;_0x4650a6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x184154=this['editor'];_0x184154['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374f43=>{if('formatBlock'!=_0x374f43['type']&&'formatInline'!=_0x374f43['type'])return;const {data:_0x3e4bd1}=_0x374f43;return _0x3e4bd1&&'removeFormat'==_0x3e4bd1['commandName']?{'type':'format','content':c(_0x184154['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2bb590{['afterInit'](){const _0x489cd4=this['editor'];if(!_0x489cd4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4878b8=_0x489cd4['plugins']['get']('TrackChangesEditing');_0x4878b8['enableCommand']('goToPreviousRestrictedEditingException'),_0x4878b8['enableCommand']('goToNextRestrictedEditingException');const _0x18d81c=_0x489cd4['plugins']['get']('RestrictedEditingModeEditing');_0x18d81c['enableCommand']('trackChanges'),_0x18d81c['enableCommand']('acceptSuggestion'),_0x18d81c['enableCommand']('discardSuggestion'),_0x18d81c['enableCommand']('acceptAllSuggestions'),_0x18d81c['enableCommand']('discardAllSuggestions'),_0x18d81c['enableCommand']('acceptSelectedSuggestions'),_0x18d81c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2bb590{['afterInit'](){const _0x2c2e1a=this['editor'];if(!_0x2c2e1a['plugins']['has']('ShiftEnter'))return;const _0x30b6dc=_0x2c2e1a['plugins']['get']('TrackChangesEditing');_0x30b6dc['enableCommand']('shiftEnter'),_0x2c2e1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2c2e1a),{'priority':'high'}),_0x2c2e1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2c2e1a),{'priority':'high'}),_0x2c2e1a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44c7c7,_0x23aad9,_0x216262)=>{_0x216262['options']['showSuggestionHighlights']&&je(_0x2c2e1a,{'showActiveMarker':!0x1})(_0x44c7c7,_0x23aad9,_0x216262);}),_0x30b6dc['descriptionFactory']['registerElementLabel']('softBreak',_0x44ab19=>c(_0x2c2e1a['locale'],'ELEMENT_LINE_BREAK',_0x44ab19));}}function je(_0x4929e4,{showActiveMarker:_0x483b0f=!0x0}={}){return(_0x12787b,_0x259b69,_0x10d840)=>{const _0x2dcfe9=_0x4929e4['plugins']['get']('TrackChangesEditing');if(!_0x10d840['consumable']['test'](_0x259b69['markerRange'],_0x12787b['name']))return;const _0x1c8ff6=_0x4929e4['model'];for(const _0x390290 of _0x259b69['markerRange']['getItems']()){if(!_0x390290['is']('element','softBreak'))continue;const _0x3d9083='deletion'==_0x259b69['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x139a22}=_0x2dcfe9['_splitMarkerName'](_0x259b69['markerName']),_0x9992a5=_0x10d840['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d9083,'data-author-id':_0x139a22}),_0x326b6e=_0x10d840['mapper']['toViewPosition'](_0x1c8ff6['createPositionBefore'](_0x390290));_0x483b0f&&_0x2dcfe9['activeMarkers']['includes'](_0x259b69['markerName'])&&_0x10d840['writer']['addClass']('ck-suggestion-marker--active',_0x9992a5),_0x10d840['writer']['insert'](_0x326b6e,_0x9992a5),_0x10d840['mapper']['bindElementToMarker'](_0x9992a5,_0x259b69['markerName']);}};}class _t extends _0x2bb590{['afterInit'](){const _0x4cfd17=this['editor'],_0x2e06da=_0x4cfd17['model'],_0x419b68=_0x4cfd17['locale'];if(!_0x4cfd17['plugins']['has']('StandardEditingModeEditing'))return;const _0x57555b=_0x4cfd17['plugins']['get']('TrackChangesEditing'),_0x4e1468='restrictedEditingException',_0x2717d6=_0x4cfd17['commands']['get'](_0x4e1468);_0x57555b['enableCommand'](_0x4e1468,(_0x14aa28,_0x3da944={})=>{const _0x400694=_0x2e06da['document']['selection'];if(_0x400694['isCollapsed'])return void _0x14aa28(_0x3da944);const _0x58c4b0=void 0x0!==_0x3da944['forceValue']?_0x3da944['forceValue']:!_0x2717d6['value'];_0x2e06da['change'](()=>{const _0x40965f=Array['from'](_0x400694['getRanges']());for(const _0x13f0fb of _0x40965f){const _0x24cc04=_0x58c4b0?[_0x13f0fb]:io(_0x4e1468,_0x13f0fb,_0x2e06da);for(const _0x283877 of _0x24cc04)_0x57555b['markInlineFormat'](_0x283877,{'commandName':_0x4e1468,'commandParams':[{'forceValue':_0x58c4b0}]});}});}),_0x57555b['descriptionFactory']['registerDescriptionCallback'](_0x5e70ae=>{if('formatBlock'!=_0x5e70ae['type']&&'formatInline'!=_0x5e70ae['type'])return;const {data:_0xf259a1}=_0x5e70ae;return _0xf259a1&&_0xf259a1['commandName']==_0x4e1468?_0xf259a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x419b68,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x419b68,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2bb590{['afterInit'](){const _0x5bbfe6=this['editor'];if(!_0x5bbfe6['plugins']['has']('Style')||!_0x5bbfe6['plugins']['has']('DataSchema'))return;const _0x3766cf=_0x5bbfe6['plugins']['get']('TrackChangesEditing'),_0x4dbb52=_0x5bbfe6['locale'],_0x5382d9=_0x5bbfe6['config']['get']('style')||{},_0x1367cf=_0x5bbfe6['plugins']['get']('GeneralHtmlSupport'),_0x28f498=_0x5bbfe6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5bbfe6['plugins']['get']('DataSchema'),_0x5382d9['definitions']);_0x3766cf['enableDefaultAttributesIntegration']('style');const _0x2a0f5f=new Set();for(const _0x3fbf93 of _0x28f498['block']){const _0x2ef20b=_0x1367cf['getGhsAttributeNameForElement'](_0x3fbf93['element']);_0x2a0f5f['add'](_0x2ef20b);}const _0x3d88bf=new Set();for(const _0x223cee of _0x28f498['inline']){const _0x8c1301=_0x1367cf['getGhsAttributeNameForElement'](_0x223cee['element']);_0x3d88bf['add'](_0x8c1301);for(const _0x529bc7 of _0x223cee['ghsAttributes'])_0x3d88bf['add'](_0x529bc7);}for(const _0x10e26f of _0x2a0f5f)_0x3766cf['registerBlockAttribute'](_0x10e26f),_0x3766cf['descriptionFactory']['registerAttributeLabel'](_0x10e26f,c(_0x4dbb52,'FORMAT_STYLE'));for(const _0x3c5cc6 of _0x3d88bf)_0x3766cf['registerInlineAttribute'](_0x3c5cc6),_0x3766cf['descriptionFactory']['registerAttributeLabel'](_0x3c5cc6,c(_0x4dbb52,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f515a=this['editor'],_0x548fbe=_0x2f515a['locale'];_0x2f515a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19df4e=>{if('formatBlock'!=_0x19df4e['type']&&'formatInline'!=_0x19df4e['type'])return;const {data:_0x20c646}=_0x19df4e;return _0x20c646&&'style'===_0x20c646['commandName']?_0x20c646['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x548fbe,'*Set\x20format:*\x20%0',_0x20c646['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x548fbe,'*Remove\x20format:*\x20%0',_0x20c646['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2bb590{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5797b7){super(_0x5797b7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x522c32=this['editor'],_0x128782=_0x522c32['model']['document']['selection'];if(!_0x522c32['plugins']['has']('TableEditing'))return;const _0x5ec0cf=_0x522c32['locale'],_0x726ccb=_0x522c32['plugins']['get']('TrackChangesEditing'),_0x1f9859=_0x522c32['plugins']['get']('TableUtils');_0x726ccb['descriptionFactory']['registerElementLabel']('table',_0x5eea06=>c(_0x5ec0cf,'ELEMENT_TABLE',_0x5eea06)),this['_setupColumnsRowsFixing'](),_0x726ccb['enableCommand']('insertTable'),_0x726ccb['enableCommand']('selectTableRow'),_0x726ccb['enableCommand']('selectTableColumn');for(const _0x202cd1 of['insertTableRowAbove','insertTableRowBelow']){const _0xa6e922=_0x522c32['commands']['get'](_0x202cd1);_0x726ccb['enableCommand'](_0x202cd1,_0x9f3e6c=>{_0x522c32['model']['change'](_0x4ad85b=>{_0x9f3e6c();const _0x4dcc29='above'===_0xa6e922['order'],_0x11c56a=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x30250f=_0x1f9859['getRowIndexes'](_0x11c56a),_0x2c3126=_0x4dcc29?_0x30250f['first']-0x1:_0x30250f['last']+0x1,_0x2d02c8=_0x11c56a[0x0]['findAncestor']('table'),_0x59bb21=_0x1f9859['createTableWalker'](_0x2d02c8,{'startRow':_0x2c3126,'endRow':_0x2c3126}),_0x2ebc49=Array['from'](_0x59bb21)['map'](_0x44ce0f=>_0x4ad85b['createRangeOn'](_0x44ce0f['cell']));_0x726ccb['markMultiRangeInsertion'](_0x2ebc49,'tableRow');});});}for(const _0x32bd26 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1744f9=_0x522c32['commands']['get'](_0x32bd26);_0x726ccb['enableCommand'](_0x32bd26,_0x5017a4=>{_0x522c32['model']['change'](_0x50dd77=>{_0x5017a4();const _0x3b81c1='left'===_0x1744f9['order'],_0x298f57=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x5633aa=_0x1f9859['getColumnIndexes'](_0x298f57),_0x59bf1e=_0x3b81c1?_0x5633aa['first']-0x1:_0x5633aa['last']+0x1,_0x24a642=_0x298f57[0x0]['findAncestor']('table'),_0xfd7b56=_0x1f9859['createTableWalker'](_0x24a642,{'startRow':0x0,'column':_0x59bf1e,'includeAllSlots':!0x1}),_0x1df2b1=Array['from'](_0xfd7b56)['map'](_0x315acd=>_0x50dd77['createRangeOn'](_0x315acd['cell']));_0x726ccb['markMultiRangeInsertion'](_0x1df2b1,'tableColumn');});});}for(const _0x42ad40 of['removeTableRow','removeTableColumn']){const _0x305a17=_0x42ad40['substr'](0xb),_0x2b7f19=_0x305a17['toLowerCase'](),_0x1e393d=_0x2b7f19['substr'](0x0,0x3)+'span',_0x1fe65f='table'+_0x305a17,_0x416afe='min'+_0x305a17,_0x15f311='max'+_0x305a17;_0x726ccb['enableCommand'](_0x42ad40,()=>{_0x522c32['model']['change'](_0x315f53=>{const _0x18b6c3=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x2c8b24=_0x18b6c3[0x0]['findAncestor']('table');let _0x59ab45;if('removeTableRow'==_0x42ad40){const _0x11df7f=_0x1f9859['getRowIndexes'](_0x18b6c3);_0x59ab45={'startRow':_0x11df7f['first'],'endRow':_0x11df7f['last'],'includeAllSlots':!0x0};}else{const _0x461034=_0x1f9859['getColumnIndexes'](_0x18b6c3);_0x59ab45={'startColumn':_0x461034['first'],'endColumn':_0x461034['last'],'includeAllSlots':!0x0};}const _0x15e4b0=_0x1f9859['createTableWalker'](_0x2c8b24,_0x59ab45),_0x1cf65a=Array['from'](_0x15e4b0)['map'](({cell:_0x424d87})=>_0x424d87),_0x21940c=Ne(_0x1cf65a['filter'](_0x58bb61=>_0x58bb61['hasAttribute'](_0x1e393d))),_0x6873e8=Ne(_0x1cf65a['filter'](_0x334e83=>!_0x334e83['hasAttribute'](_0x1e393d)))['map'](_0x46609e=>_0x315f53['createRangeOn'](_0x46609e)),_0x607cb0=_0x726ccb['markMultiRangeDeletion'](_0x6873e8,_0x1fe65f);if(_0x607cb0&&('tableRow'==_0x607cb0['subType']||'tableColumn'==_0x607cb0['subType'])){const _0x472e5d=this['_getSuggestionCoords'](_0x607cb0);for(const _0x4fc275 of _0x21940c){const _0x2bd024=_0x315f53['createRangeOn'](_0x4fc275),_0x34cfad=_0x1f9859['getCellLocation'](_0x4fc275),_0x352242=_0x4fc275['getAttribute'](_0x1e393d)-0x1,_0x2a6777=_0x472e5d[_0x416afe],_0x57a66f=_0x472e5d[_0x15f311];_0x2a6777<=_0x34cfad[_0x2b7f19]&&_0x34cfad[_0x2b7f19]+_0x352242<=_0x57a66f&&_0x607cb0['addRange'](_0x2bd024);}}});});}function _0x2c3812(_0x49cc54){const _0x255881=Array['from'](_0x128782['getRanges']())['map'](_0x1b4b99=>_0x1ffa61['fromRange'](_0x1b4b99));_0x522c32['model']['change'](_0x521391=>{const _0x167a9c=_0x521391['batch'];_0x49cc54=_0x49cc54['filter'](_0xda77aa=>'$graveyard'!=_0xda77aa['root']['rootName']),_0x521391['setSelection'](_0x49cc54),_0x522c32['commands']['get']('removeTableRow')['refresh'](),_0x522c32['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x522c32['model']['enqueueChange'](()=>{_0x522c32['model']['enqueueChange'](_0x167a9c,_0x23d8d7=>{const _0x5f5360=_0x255881['filter'](_0xc581f4=>'$graveyard'!=_0xc581f4['root']['rootName']);_0x5f5360['length']>0x0&&_0x23d8d7['setSelection'](_0x5f5360);for(const _0xe129f0 of _0x255881)_0xe129f0['detach']();});});});}function _0x1ea1a2(_0x4f9e1b){_0x522c32['model']['change'](_0x300c00=>{const _0x21648b=Array['from'](_0x128782['getRanges']())['map'](_0x48fe5e=>_0x1ffa61['fromRange'](_0x48fe5e)),_0x42d76c=[];for(const _0x49a2e6 of _0x4f9e1b)for(const _0x4690e0 of _0x49a2e6['getItems']({'shallow':!0x0}))_0x42d76c['push'](_0x4690e0);for(const _0x54a266 of _0x42d76c)'$graveyard'!=_0x54a266['root']['rootName']&&(_0x300c00['setSelection'](_0x300c00['createPositionAt'](_0x54a266,0x0)),_0x522c32['commands']['get']('removeTableColumn')['refresh'](),_0x522c32['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x44fb09=_0x21648b['filter'](_0x4893e7=>'$graveyard'!=_0x4893e7['root']['rootName']);_0x44fb09['length']>0x0&&_0x300c00['setSelection'](_0x44fb09);for(const _0x83b82c of _0x21648b)_0x83b82c['detach']();});}function _0x3f8d96(_0x4c8b35,_0xf58dc4){return _0xf58dc4['every'](_0x2bb4d7=>_0x4c8b35['some'](_0x2b25b8=>_0x2b25b8['end']['isEqual'](_0x2bb4d7['start'])||_0x2bb4d7['end']['isEqual'](_0x2b25b8['start'])));}function _0x18cd88(_0x3b6579,_0x3517fe){return!_0x3b6579['some'](_0x39c96a=>_0x3517fe['some'](_0x42e34a=>_0x39c96a['isIntersecting'](_0x42e34a)))&&_0x3b6579['some'](_0x39634a=>_0x3517fe['some'](_0xf34c00=>_0x39634a['end']['isTouching'](_0xf34c00['start'])));}_0x522c32['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x222a27,_0xe2a297,_0x2488ec)=>{if(!_0x2488ec['options']['showSuggestionHighlights'])return;const _0x553b38=_0xe2a297['item'];if(!_0x553b38)return;const _0x3866c5=_0x2488ec['mapper']['toViewElement'](_0x553b38);function _0xe60d05(_0x55a4b7){return Array['isArray'](_0x55a4b7)?_0x55a4b7:[_0x55a4b7];}_0x3866c5&&'tableCell'===_0x553b38['name']&&_0x2f1c8b(_0x3866c5,_0x2488ec['writer'],(_0x33a8d3,_0x3c05d5,_0x514363)=>_0x514363['addClass'](_0xe60d05(_0x3c05d5['classes']),_0x33a8d3),(_0x74c129,_0x3b32c1,_0x446894)=>_0x446894['removeClass'](_0xe60d05(_0x3b32c1['classes']),_0x74c129));},{'priority':'highest'}),_0x726ccb['descriptionFactory']['registerDescriptionCallback'](_0x4cd3a1=>{if('insertion'!=_0x4cd3a1['type']&&'deletion'!=_0x4cd3a1['type'])return;const _0x44bce0=_0x4cd3a1['getContainedElement']();if(null!=_0x44bce0&&_0x44bce0['is']('element','table')){if('insertion'==_0x4cd3a1['type']){const _0x49deb4=_0x4cd3a1['getItems']()['filter'](_0x218f44=>_0x218f44['is']('$textProxy'))['map'](_0x3db002=>_0x3db002['data']);if(_0x49deb4['length'])return{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49deb4['join']('\x20')+'\x22'))};}if('deletion'==_0x4cd3a1['type']){const _0x5498db=_0x4cd3a1['getItems']()['filter'](_0x4a9011=>_0x4a9011['is']('$textProxy'))['map'](_0x2200c4=>_0x2200c4['data']);if(_0x5498db['length'])return{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5498db['join']('\x20')+'\x22'))};}}}),_0x726ccb['descriptionFactory']['registerDescriptionCallback'](_0x463a2f=>{if('tableRow'==_0x463a2f['subType']){const _0xe82c52=_0x463a2f['getItems']()['filter'](_0x2a8374=>_0x2a8374['is']('$textProxy'))['map'](_0x4bab6b=>_0x4bab6b['data']),_0x512408=this['_getSuggestionCoords'](_0x463a2f),_0xef2488=_0x512408['maxRow']-_0x512408['minRow']+0x1;if('insertion'==_0x463a2f['type'])return _0xe82c52['length']?{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xef2488,'\x22'+_0xe82c52['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW',_0xef2488))};if('deletion'==_0x463a2f['type'])return _0xe82c52['length']?{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xef2488,'\x22'+_0xe82c52['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW',_0xef2488))};}if('tableColumn'==_0x463a2f['subType']){const _0x3f9d05=_0x463a2f['getItems']()['filter'](_0x4a1cd5=>_0x4a1cd5['is']('$textProxy'))['map'](_0x7a3e1f=>_0x7a3e1f['data']),_0x2d193f=this['_getSuggestionCoords'](_0x463a2f),_0x3e1de9=_0x2d193f['maxColumn']-_0x2d193f['minColumn']+0x1;if('insertion'==_0x463a2f['type'])return _0x3f9d05['length']?{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1de9,'\x22'+_0x3f9d05['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN',_0x3e1de9))};if('deletion'==_0x463a2f['type'])return _0x3f9d05['length']?{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1de9,'\x22'+_0x3f9d05['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN',_0x3e1de9))};}}),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c3812),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c3812),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ea1a2),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ea1a2),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f8d96),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f8d96),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x18cd88),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x18cd88);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4110db=this['editor'],_0x598b40=_0x4110db['model']['document']['selection'];return(_0x519eb9,_0x5024cb)=>{_0x4110db['model']['change'](_0x436e94=>{const {commandName:_0x5ccddf,commandParams:_0x408ffa}=_0x5024cb;let _0x42baa1=_0x519eb9[0x0]['end']['nodeBefore'];_0x408ffa&&_0x408ffa[0x0]&&!0x1===_0x408ffa[0x0]['forceValue']&&(_0x42baa1=_0x519eb9[0x0]['start']['nodeAfter']);const _0x47f371=_0x436e94['createRangeIn'](_0x42baa1);if('$graveyard'==_0x47f371['root']['rootName'])return;const _0x43f5f6=Array['from'](_0x598b40['getRanges']())['map'](_0xc077d1=>_0x1ffa61['fromRange'](_0xc077d1));_0x436e94['setSelection'](_0x47f371),_0x4110db['commands']['get'](_0x5ccddf)['refresh'](),_0x408ffa['push']({'forceDefaultExecution':!0x0}),_0x4110db['execute'](_0x5ccddf,..._0x408ffa);const _0x3669f4=_0x43f5f6['filter'](_0x26554b=>'$graveyard'!=_0x26554b['root']['rootName']);_0x3669f4['length']>0x0&&_0x436e94['setSelection'](_0x3669f4);for(const _0x343813 of _0x43f5f6)_0x343813['detach']();});};}['_getCoordsForCells'](_0x61f3f){const _0x11d943=this['editor']['plugins']['get']('TableUtils');let _0x42f5df=Number['MAX_SAFE_INTEGER'],_0x5a5d9f=Number['MIN_SAFE_INTEGER'],_0x11c06a=Number['MAX_SAFE_INTEGER'],_0x572662=Number['MIN_SAFE_INTEGER'];for(const _0x4a3e6c of _0x61f3f){if('$graveyard'==_0x4a3e6c['root']['rootName'])continue;const {row:_0x408b94,column:_0x39310d}=_0x11d943['getCellLocation'](_0x4a3e6c),_0x527838=_0x4a3e6c['hasAttribute']('rowspan')?_0x4a3e6c['getAttribute']('rowspan')-0x1:0x0,_0x49ca93=_0x4a3e6c['hasAttribute']('colspan')?_0x4a3e6c['getAttribute']('colspan')-0x1:0x0;_0x42f5df=_0x408b94<_0x42f5df?_0x408b94:_0x42f5df,_0x5a5d9f=_0x408b94+_0x527838>_0x5a5d9f?_0x408b94+_0x527838:_0x5a5d9f,_0x11c06a=_0x39310d<_0x11c06a?_0x39310d:_0x11c06a,_0x572662=_0x39310d+_0x49ca93>_0x572662?_0x39310d+_0x49ca93:_0x572662;}return{'minRow':_0x42f5df,'maxRow':_0x5a5d9f,'minColumn':_0x11c06a,'maxColumn':_0x572662};}['_setupColumnsRowsFixing'](){const _0xde1025=this['editor'],_0x4448f8=_0xde1025['plugins']['get']('TrackChangesEditing'),_0x1c1f8f=_0xde1025['plugins']['get']('TableUtils');_0xde1025['model']['document']['on']('change:data',()=>{const _0x410069=Array['from'](_0xde1025['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f922c,data:_0x1c8245}of _0x410069){const {group:_0x1d3c62,id:_0x2889be,subType:_0x429f7a}=_0x4448f8['_splitMarkerName'](_0x3f922c);if('suggestion'!=_0x1d3c62)continue;if(null!=_0x1c8245['oldRange'])continue;const _0x503dec=_0x4448f8['getSuggestion'](_0x2889be);this['_tablePostFixingSubtypes']['includes'](_0x429f7a)&&this['_tableSuggestions']['add'](_0x503dec);}},{'priority':'low'});const _0x2e1210=(_0x355a87,_0x1ab776)=>{let _0x27063f=!0x1;const _0x1b4334=_0x1ab776['createRangeOn'](_0x355a87),_0x1ab3be=_0x355a87['findAncestor']('table'),_0x3c8032=_0x1c1f8f['getCellLocation'](_0x355a87);for(const _0xc25bb4 of this['_tableSuggestions']){const _0x3dbcdb=_0xc25bb4['subType'],_0x322cc8=_0x3dbcdb['startsWith']('tablePaste'),_0x1f86e0=_0x3dbcdb['substr'](_0x322cc8?0xa:0x5),_0x2de706=_0x1f86e0['toLowerCase'](),_0x19ef23=_0x2de706['substr'](0x0,0x3)+'span',_0x72d34d='min'+_0x1f86e0,_0x11eea9='max'+_0x1f86e0;if(!_0xc25bb4['isInContent'])continue;if(_0x1ab3be!=_0xc25bb4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc25bb4['isIntersectingWithRange'](_0x1b4334))continue;const _0x987210=_0x355a87['hasAttribute'](_0x19ef23)?_0x355a87['getAttribute'](_0x19ef23)-0x1:0x0,_0x3eff39=this['_getSuggestionCoords'](_0xc25bb4),_0x5d4716=_0x3eff39[_0x72d34d],_0x37c298=_0x3eff39[_0x11eea9];_0x5d4716<=_0x3c8032[_0x2de706]&&_0x3c8032[_0x2de706]+_0x987210<=_0x37c298&&(_0xc25bb4['addRange'](_0x1b4334),_0x27063f=!0x0);}return _0x27063f;};_0xde1025['model']['document']['registerPostFixer'](_0x45a7a4=>{let _0x33f39e=!0x1;for(const _0x26dd6a of _0xde1025['model']['document']['differ']['getChanges']())if('insert'==_0x26dd6a['type']){if('tableRow'==_0x26dd6a['name']){for(const _0x1bf05b of _0x26dd6a['position']['nodeAfter']['getChildren']())_0x33f39e=_0x33f39e||_0x2e1210(_0x1bf05b,_0x45a7a4);}else'tableCell'==_0x26dd6a['name']&&(_0x33f39e=_0x33f39e||_0x2e1210(_0x26dd6a['position']['nodeAfter'],_0x45a7a4));}return _0x33f39e;});}['_getSuggestionCoords'](_0x349515){return this['_getCoordsForCells'](_0x349515['getRanges']()['map'](_0x42adfa=>_0x42adfa['start']['nodeAfter']));}}function Ne(_0x1f5cd0){return Array['from'](new Set(_0x1f5cd0)['values']());}class Nt extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x51aa70=this['editor'],_0xccbf14=_0x51aa70['model']['document']['selection'],_0x110625=_0x51aa70['locale'];if(!_0x51aa70['plugins']['has']('TableEditing'))return;const _0x5d1f00=_0x51aa70['plugins']['get']('TrackChangesEditing'),_0x18d291=_0x51aa70['plugins']['get']('TableUtils'),_0x3428ed=_0x51aa70['plugins']['get'](Ct);_0x3428ed['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5d1f00['enableCommand']('mergeTableCells',()=>{const _0x28a6de=_0x18d291['getSelectionAffectedTableCells'](_0x51aa70['model']['document']['selection']);_0x51aa70['model']['change'](()=>{_0x5d1f00['markMultiRangeBlockFormat'](_0x28a6de,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x51aa70['commands']['get']('mergeTableCells')['on']('execute',(_0x1d8896,_0x22604f)=>{_0x51aa70['commands']['get']('trackChanges')['value']&&(_0x22604f['length']>0x0&&_0x22604f[_0x22604f['length']-0x1]&&_0x22604f[_0x22604f['length']-0x1]['forceDefaultExecution']||_0x5d1f00['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d8896['stop']());},{'priority':'highest'});for(const _0x17e1bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1353b7=_0x51aa70['commands']['get'](_0x17e1bb);_0x5d1f00['enableCommand'](_0x17e1bb,()=>{const _0x138af3=_0x51aa70['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48d29e=>_0x48d29e['is']('element','tableCell')),_0x331cb5=_0x1353b7['value'];_0x51aa70['model']['change'](()=>{_0x5d1f00['markMultiRangeBlockFormat']([_0x138af3,_0x331cb5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x9a1e1d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x15707f=_0x51aa70['commands']['get'](_0x9a1e1d);_0x5d1f00['enableCommand'](_0x9a1e1d,()=>{const _0x13ea58=_0x18d291['getSelectionAffectedTableCells'](_0x51aa70['model']['document']['selection'])[0x0],_0x20a7da=_0x13ea58['findAncestor']('table'),{column:_0x568448,row:_0x5c9904}=_0x18d291['getCellLocation'](_0x13ea58);let _0x220b1a=[];if('horizontally'==_0x15707f['direction']){const _0x365bd2=_0x18d291['createTableWalker'](_0x20a7da,{'startRow':_0x5c9904,'endRow':_0x5c9904,'includeAllSlots':!0x0});_0x220b1a=Array['from'](_0x365bd2)['map'](_0x499a90=>_0x499a90['cell']);}else{const _0x4532cd=_0x18d291['createTableWalker'](_0x20a7da,{'column':_0x568448,'includeAllSlots':!0x0});_0x220b1a=Array['from'](_0x4532cd)['map'](_0x2a2dac=>_0x2a2dac['cell']);}_0x51aa70['model']['change'](_0x235ad1=>{_0x5d1f00['markBlockFormat'](_0x235ad1['createRangeOn'](_0x13ea58),{'commandName':_0x9a1e1d,'commandParams':[]},_0x220b1a,_0x9a1e1d);});});}_0x5d1f00['descriptionFactory']['registerDescriptionCallback'](_0xee0975=>{if('formatBlock'!=_0xee0975['type']&&'formatInline'!=_0xee0975['type'])return;const {data:_0x20cde5}=_0xee0975;return _0x20cde5&&'mergeTableCells'==_0x20cde5['commandName']?{'type':'format','content':c(_0x110625,'*Merge\x20cells*')}:void 0x0;}),_0x5d1f00['descriptionFactory']['registerDescriptionCallback'](_0x263e15=>{if('formatBlock'!=_0x263e15['type']&&'formatInline'!=_0x263e15['type'])return;const {data:_0x5b23d3}=_0x263e15;return _0x5b23d3?'splitTableCellVertically'==_0x5b23d3['commandName']?{'type':'format','content':c(_0x110625,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b23d3['commandName']?{'type':'format','content':c(_0x110625,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3473dd=_0x3428ed['_acceptFormatSuggestionCallbackFactory']();for(const _0x173a9a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x173a9a,'accept',_0x3473dd);for(const _0x1041a2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1041a2,'accept',_0x3473dd);_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4abb6d=>{_0x51aa70['model']['change'](_0x2fbfae=>{const _0xfbeab=Array['from'](_0xccbf14['getRanges']())['map'](_0x33499a=>_0x1ffa61['fromRange'](_0x33499a));_0x2fbfae['setSelection'](_0x4abb6d),_0x51aa70['commands']['get']('mergeTableCells')['refresh'](),_0x51aa70['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ed8dc=_0xfbeab['filter'](_0x4a8bc0=>'$graveyard'!=_0x4a8bc0['root']['rootName']);_0x2ed8dc['length']>0x0&&_0x2fbfae['setSelection'](_0x2ed8dc);for(const _0x4c0b2b of _0xfbeab)_0x4c0b2b['detach']();});});for(const _0x7c06f9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2cfb40=_0x51aa70['commands']['get'](_0x7c06f9);_0x2cfb40['on']('set:isEnabled',(_0x58610a,_0x196984,_0x238549)=>{if(_0x238549){const _0x2ebb51=_0x51aa70['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x199ad9=>_0x199ad9['is']('element','tableCell'));this['_areMergableCells'](_0x2cfb40['value'],_0x2ebb51)||(_0x58610a['return']=!0x1,_0x58610a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x36bcd4=this['editor']['commands']['get']('mergeTableCells'),_0x107ba4=this['editor']['plugins']['get']('TableUtils');if(!_0x36bcd4['isEnabled'])return!0x1;const _0x303468=_0x107ba4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d5e2e of _0x303468)for(const _0x361a8c of _0x303468)if(_0x1d5e2e!=_0x361a8c&&!this['_areMergableCells'](_0x1d5e2e,_0x361a8c))return!0x1;return!0x0;}['_areMergableCells'](_0x12657d,_0x5cc18d){const _0x493f22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4258e7=this['editor']['model']['createRangeOn'](_0x12657d),_0x185453=this['editor']['model']['createRangeOn'](_0x5cc18d),_0x2c1bb5=new Set(),_0x128678=new Set();for(const _0x199ee9 of _0x493f22['getSuggestions']())if(('insertion'==_0x199ee9['type']||'deletion'==_0x199ee9['type']||'mergeTableCells'==_0x199ee9['subType'])&&_0x199ee9['isInContent']){for(const _0x456ca4 of _0x199ee9['getRanges']())_0x456ca4['containsRange'](_0x4258e7,!0x0)&&_0x2c1bb5['add'](_0x199ee9['type']+':'+_0x199ee9['author']['id']),_0x456ca4['containsRange'](_0x185453,!0x0)&&_0x128678['add'](_0x199ee9['type']+':'+_0x199ee9['author']['id']);}if(_0x2c1bb5['size']!=_0x128678['size'])return!0x1;for(const _0x4ff2f6 of _0x2c1bb5)if(!_0x128678['has'](_0x4ff2f6))return!0x1;return!0x0;}}class Dt extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x571aef=this['editor'];if(!_0x571aef['plugins']['has']('TableEditing'))return;const _0x29de78=_0x571aef['locale'],_0x6a0d7b=_0x571aef['plugins']['get']('TrackChangesEditing');_0x6a0d7b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x6a0d7b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x6a0d7b['registerBlockAttribute']('headingRows'),_0x6a0d7b['registerBlockAttribute']('headingColumns'),_0x6a0d7b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x29de78,'FORMAT_HEADER_ROW')),_0x6a0d7b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x29de78,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26ff37=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc12a74=this['editor']['plugins']['get']('TableUtils'),_0x30c590=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3087f6({showActiveMarker:_0x47ab9e=!0x0,setDataAttribute:_0x1dd799=!0x0}={}){return(_0x5ac270,_0x5eab94,_0xc13486)=>{const {type:_0x1525ee,id:_0x35ec8b}=_0x26ff37['_splitMarkerName'](_0x5eab94['markerName']),_0x457f4c=_0x26ff37['getSuggestion'](_0x35ec8b),_0x5e92ab=_0x457f4c['data'];if('formatBlock'!=_0x457f4c['type']||!_0x5e92ab||'setTableColumnHeader'!=_0x5e92ab['commandName'])return;if(_0x5eab94['item'])return void _0x5ac270['stop']();if(!_0xc13486['consumable']['consume'](_0x5eab94['markerRange'],_0x5ac270['name']))return;const _0x34e8d6=_0x5eab94['markerRange']['start']['nodeAfter'],_0x40915e=_0x5eab94['markerRange']['end']['nodeBefore'],_0x1623e6=_0x34e8d6['parent']['parent'],{column:_0x3be0bd}=_0xc12a74['getCellLocation'](_0x34e8d6),{column:_0x1764a5}=_0xc12a74['getCellLocation'](_0x40915e);for(let _0x219f21=_0x3be0bd;_0x219f21<=_0x1764a5;_0x219f21++){const _0x4a5086=_0xc12a74['createTableWalker'](_0x1623e6,{'column':_0x219f21,'includeAllSlots':!0x1});for(const _0x1d6f6e of _0x4a5086){const _0x165573=_0x1d6f6e['cell'],_0x1ce457=_0xc13486['mapper']['toViewElement'](_0x165573);_0xc13486['writer']['addClass']('ck-suggestion-marker-'+_0x1525ee,_0x1ce457),_0x1dd799&&_0xc13486['writer']['setAttribute']('data-suggestion',_0x35ec8b,_0x1ce457),_0xc13486['mapper']['bindElementToMarker'](_0x1ce457,_0x5eab94['markerName']),_0x47ab9e&&(_0x26ff37['activeMarkers']['includes'](_0x5eab94['markerName'])?_0xc13486['writer']['addClass']('ck-suggestion-marker--active',_0x1ce457):_0xc13486['writer']['removeClass']('ck-suggestion-marker--active',_0x1ce457));}}};}_0x26ff37['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30c590),_0x26ff37['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30c590),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3087f6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eee2b,_0x259437,_0x4432ab)=>{_0x4432ab['options']['showSuggestionHighlights']&&_0x3087f6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1eee2b,_0x259437,_0x4432ab);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ac48c,_0x109fe9,_0x5752bf)=>{const {type:_0x2a318a,id:_0x2befcb}=_0x26ff37['_splitMarkerName'](_0x109fe9['markerName']),_0x4b28ba=_0x26ff37['getSuggestion'](_0x2befcb),_0x103182=_0x4b28ba['data'];if('formatBlock'!=_0x4b28ba['type']||!_0x103182||'setTableColumnHeader'!=_0x103182['commandName'])return;const _0x4dee17=_0x5752bf['mapper']['markerNameToElements'](_0x109fe9['markerName']);if(_0x4dee17){for(const _0x2bb2fc of _0x4dee17)_0x5752bf['writer']['removeClass']('ck-suggestion-marker-'+_0x2a318a,_0x2bb2fc),_0x5752bf['writer']['removeClass']('ck-suggestion-marker--active',_0x2bb2fc),_0x5752bf['writer']['removeAttribute']('data-suggestion',_0x2bb2fc),_0x5752bf['mapper']['unbindElementFromMarkerName'](_0x2bb2fc,_0x109fe9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x472152=this['editor'],_0x2092a4=_0x472152['locale'];function _0x5cab9d(_0x146494){return{'type':'format','content':c(_0x2092a4,'*Format:*\x20%0',_0x146494)};}_0x472152['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aa1f6=>{if('formatBlock'!=_0x4aa1f6['type'])return;const {data:_0x41cce4}=_0x4aa1f6;if(_0x41cce4){if('setTableRowHeader'==_0x41cce4['commandName']){const _0x1a527d=_0x41cce4['commandParams'][0x0]['forceValue'];return _0x5cab9d(c(_0x2092a4,_0x1a527d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41cce4['commandName']){const _0x4ef3d2=_0x41cce4['commandParams'][0x0]['forceValue'];return _0x5cab9d(c(_0x2092a4,_0x4ef3d2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x2bb590{['afterInit'](){const _0x20b04d=this['editor'],_0x46b8cd=_0x20b04d['locale'],_0x562a18=_0x20b04d['plugins']['get']('TrackChangesEditing');function _0x1816e4(_0x443ff4){return{'type':'format','content':''+c(_0x46b8cd,'*Set\x20table\x20type:*\x20%0',_0x443ff4)};}_0x20b04d['plugins']['has']('TableLayout')&&(_0x562a18['enableCommand']('insertTableLayout'),_0x562a18['enableDefaultAttributesIntegration']('tableType'),_0x562a18['registerBlockAttribute']('tableType'),_0x562a18['descriptionFactory']['registerElementLabel'](_0x550990=>_0x550990['is']('element','table')&&'layout'===_0x550990['getAttribute']('tableType'),_0x33c93a=>c(_0x46b8cd,'ELEMENT_LAYOUT_TABLE',_0x33c93a)),_0x562a18['descriptionFactory']['registerDescriptionCallback'](_0x5a9add=>{const {data:_0x419c8b}=_0x5a9add;if(_0x419c8b&&'tableType'==_0x419c8b['key'])switch(_0x419c8b['newValue']){case'layout':return _0x1816e4(c(_0x46b8cd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1816e4(c(_0x46b8cd,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x462fb4=>[_0x462fb4,null]));class $t extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x20fdb1=this['editor'];if(!_0x20fdb1['plugins']['has']('TableClipboard'))return;const _0x3f9826=_0x20fdb1['plugins']['get']('TrackChangesEditing'),_0x574e85=_0x20fdb1['plugins']['get']('TableUtils'),_0x14da41=_0x20fdb1['plugins']['get'](Ct),_0x3a5beb=_0x20fdb1['plugins']['get']('TableClipboard'),_0x529804=_0x20fdb1['plugins']['get']('TableSelection'),_0x25974c=_0x20fdb1['plugins']['get'](_0xcb2e10);_0x14da41['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20fdb1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20fdb1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4ea661=null,_0x206585=!0x1;_0x25974c['on']('contentInsertion',(_0xae5ad6,_0xcaf540)=>{_0x206585='paste'===_0xcaf540['method'];}),_0x20fdb1['model']['on']('insertContent',(_0xf416cb,_0x123fc1)=>{if(!_0x206585&&null===_0x529804['getSelectedTableCells']())return;const [_0x553361,_0x2c0fe9]=_0x123fc1,_0x3a0722=_0x123fc1[_0x123fc1['length']-0x1];_0x3a0722&&_0x3a0722['forceDefaultExecution']||_0x3f9826['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6b8d66,_0x26dc81,_0x276d44,_0xf9c2c5,_0x3739a4){if(_0x26dc81&&!_0x26dc81['is']('documentSelection'))return!0x1;const _0x4e93ee=_0x3739a4['getTableIfOnlyTableInContent'](_0x6b8d66,_0x276d44);if(!_0x4e93ee||!De(_0x4e93ee,void 0x0,_0xf9c2c5))return!0x1;const _0x2113cb=_0xf9c2c5['getSelectionAffectedTableCells'](_0x276d44['document']['selection']);if(!_0x2113cb['length'])return!0x1;const _0x2bde71=_0x2113cb[0x0]['findAncestor']('table'),_0x1754a4=_0xf9c2c5['getRowIndexes'](_0x2113cb),_0x278071=_0xf9c2c5['getColumnIndexes'](_0x2113cb),_0x53f8bd={'startRow':_0x1754a4['first'],'endRow':_0x1754a4['last'],'startColumn':_0x278071['first'],'endColumn':_0x278071['last']};return 0x1==_0x2113cb['length']&&(_0x53f8bd['endRow']+=_0xf9c2c5['getRows'](_0x4e93ee)-0x1,_0x53f8bd['endColumn']+=_0xf9c2c5['getColumns'](_0x4e93ee)-0x1),De(_0x2bde71,_0x53f8bd,_0xf9c2c5);}(_0x553361,_0x2c0fe9,_0x20fdb1['model'],_0x574e85,_0x3a5beb)&&(_0xf416cb['stop'](),_0x4ea661={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20fdb1['model']['change'](()=>{_0x20fdb1['model']['insertContent'](_0x123fc1[0x0],_0x123fc1[0x1],_0x123fc1[0x2],{'forceDefaultExecution':!0x0});const _0x6e25e7=_0xf1d1da(),{rowInsertionRanges:_0x4fa4e4,columnInsertionRanges:_0x1feebb,insertionRanges:_0xa8791f,deletionRanges:_0x2f8fac,cells:_0x3a2cbb}=_0x4ea661;_0x4fa4e4['length']&&_0x3f9826['markMultiRangeInsertion'](_0x4fa4e4,'tablePasteRow',{'tablePasteChainId':_0x6e25e7}),_0x1feebb['length']&&_0x3f9826['markMultiRangeInsertion'](_0x1feebb,'tablePasteColumn',{'tablePasteChainId':_0x6e25e7}),_0xa8791f['length']&&(_0x3f9826['markMultiRangeInsertion'](_0xa8791f,'tablePaste',{'tablePasteChainId':_0x6e25e7,'skipNestingCheck':!0x0}),_0xa8791f['forEach'](_0x61b66=>_0x61b66['detach']?.())),_0x2f8fac['length']&&(_0x3f9826['markMultiRangeDeletion'](_0x2f8fac,'tablePaste',{'tablePasteChainId':_0x6e25e7,'skipNestingCheck':!0x0}),_0x2f8fac['forEach'](_0xf33c0b=>_0xf33c0b['detach']?.()));const _0x44236c=_0x3f9826['markMultiRangeBlockFormat'](_0x3a2cbb['map'](({element:_0xacab36})=>_0xacab36),{'formatGroupId':_0xf1d1da()},[],'tablePasteCell',{'tablePasteChainId':_0x6e25e7});if(_0x44236c){const _0x52b3c2=_0x44236c['getMarkers'](),_0x44834c=[];for(const {element:_0x544f91,attributes:_0x1dbffe}of _0x3a2cbb){if(!_0x1dbffe)continue;const _0x2c9563=_0x20fdb1['model']['createRangeOn'](_0x544f91),_0x2678f6=_0x52b3c2['find'](_0x23b17e=>_0x23b17e['getRange']()['isEqual'](_0x2c9563));_0x2678f6&&_0x44834c['push']([_0x2678f6['name'],_0x1dbffe]);}_0x44834c['length']&&_0x44236c['setAttribute']('markerAttributes',Object['fromEntries'](_0x44834c));}_0x4ea661=null;}));},{'priority':_0x5bb012['high']+0xa}),_0x25974c['on']('contentInsertion',()=>{_0x206585=!0x1;},{'priority':'lowest'}),_0x20fdb1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe83edf,_0x31bac7)=>{const [_0x1db3fe,_0x3f87cd,,_0x5f17a5]=_0x31bac7;if(!_0x4ea661)return;_0xe83edf['stop']();const _0x5dd442=_0x1db3fe['cell'],_0xa52da4=_0x3f87cd,_0x3c1059=Ue(_0x5dd442),_0x11ab5f=Ue(_0xa52da4);_0xe83edf['return']=_0x5dd442;let _0x47b43d=null,_0x4e3a8f=null;if(_0x11ab5f||_0x3c1059){if(_0x3c1059&&!_0x11ab5f){_0x5f17a5['remove'](_0x5dd442['getChild'](0x0));for(const _0x470dcd of Array['from'](_0xa52da4['getChildren']()))_0x5f17a5['insert'](_0x470dcd,_0x5dd442,'end');const _0x2ddc44=_0x4ea661['rowInsertionIndexes']['includes'](_0x1db3fe['row']),_0x2b9284=_0x4ea661['columnInsertionIndexes']['includes'](_0x1db3fe['column']);_0x2ddc44||_0x2b9284||(_0x47b43d=_0x1ffa61['fromRange'](_0x5f17a5['createRangeIn'](_0x5dd442)));}else _0x11ab5f&&!_0x3c1059&&(_0x4e3a8f=_0x5f17a5['createRangeIn'](_0x5dd442));}else{const _0x4c4924=_0x5f17a5['createElement']('tableCellSuggestion'),_0x235ffa=_0x5f17a5['createElement']('tableCellSuggestion');_0x5f17a5['wrap'](_0x5f17a5['createRangeIn'](_0x5dd442),_0x235ffa),_0x5f17a5['insert'](_0x4c4924,_0x5dd442,0x0);for(const _0x29a5b0 of Array['from'](_0xa52da4['getChildren']()))_0x5f17a5['insert'](_0x29a5b0,_0x4c4924,'end');_0x47b43d=_0x1ffa61['fromRange'](_0x5f17a5['createRangeOn'](_0x4c4924)),_0x4e3a8f=_0x1ffa61['fromRange'](_0x5f17a5['createRangeOn'](_0x235ffa));}const _0x185d47=Array['from'](_0xa52da4['getAttributes']())['filter'](([_0xc358e9])=>xe['includes'](_0xc358e9));_0x4ea661['cells']['push']({'element':_0x5dd442,'attributes':_0x185d47['length']?Object['fromEntries'](_0x185d47):null}),_0x47b43d&&_0x4ea661['insertionRanges']['push'](_0x47b43d),_0x4e3a8f&&_0x4ea661['deletionRanges']['push'](_0x4e3a8f);},{'priority':'high'}),_0x574e85['on']('insertColumns',(_0x534b9e,_0x8aebaa)=>{const [_0x352f5e,_0x2b2d74={}]=_0x8aebaa;if(!_0x4ea661)return;const _0x7c351=_0x2b2d74['at']||0x0,_0x5403f1=_0x2b2d74['columns']||0x1;_0x4ea661['columnInsertionIndexes']=new Array(_0x5403f1)['fill'](_0x7c351)['map']((_0x5d7b8d,_0x4df1f5)=>_0x5d7b8d+_0x4df1f5);for(const {cell:_0x157e17}of _0x574e85['createTableWalker'](_0x352f5e,{'startColumn':_0x7c351,'endColumn':_0x7c351+_0x5403f1-0x1}))_0x4ea661['columnInsertionRanges']['push'](_0x20fdb1['model']['createRangeOn'](_0x157e17));},{'priority':'low'}),_0x574e85['on']('insertRows',(_0x1604de,_0x3d88ea)=>{const [_0x5f39cd,_0x3bfe74={}]=_0x3d88ea;if(!_0x4ea661)return;const _0x37c402=_0x3bfe74['at']||0x0,_0x3530a6=_0x3bfe74['rows']||0x1;_0x4ea661['rowInsertionIndexes']=new Array(_0x3530a6)['fill'](_0x37c402)['map']((_0x5d2959,_0x739aa1)=>_0x5d2959+_0x739aa1);for(const {cell:_0x199dce}of _0x574e85['createTableWalker'](_0x5f39cd,{'startRow':_0x37c402,'endRow':_0x37c402+_0x3530a6-0x1}))_0x4ea661['rowInsertionRanges']['push'](_0x20fdb1['model']['createRangeOn'](_0x199dce));},{'priority':'low'}),_0x3f9826['descriptionFactory']['registerDescriptionCallback'](_0x20f531=>{if(_0x20f531['subType']&&_0x20f531['subType']['startsWith']('tablePaste'))return _0x20f531['previous']?{}:{'type':'insertion','content':c(_0x20fdb1['locale'],'*Replace\x20table\x20cells*')};});const _0x14e0fd=()=>!0x1;for(const _0x5f4811 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f4811,'join',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f4811,'join',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f4811,'join',_0x14e0fd);_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4c35e4,_0x401d06,_0x3c6b4e)=>{const _0xe55283=_0x4c35e4['map'](_0x21c3c2=>_0x21c3c2['getContainedElement']())['filter'](_0x5c3e92=>_0x5c3e92),_0x8c26bf=new Map(_0xe55283['map'](_0x506c4c=>[_0x506c4c,null]));if(_0x4ea661){for(const {element:_0x3ebe3f,attributes:_0x5129bc}of _0x4ea661['cells'])_0x5129bc&&_0x8c26bf['set'](_0x3ebe3f,_0x5129bc);}else{if(_0x3c6b4e&&_0x3c6b4e['markerAttributes'])for(const [_0x416158,_0x265e35]of Object['entries'](_0x3c6b4e['markerAttributes'])){const _0x46ce20=_0x20fdb1['model']['markers']['get'](_0x416158),_0x1b18ef=_0x46ce20?_0x46ce20['getRange']()['getContainedElement']():null;_0x1b18ef&&_0x8c26bf['set'](_0x1b18ef,_0x265e35);}}_0x20fdb1['model']['change'](_0x25df89=>{for(const [_0x104a7d,_0x5e56d0]of _0x8c26bf)_0x25df89['setAttributes']({...Oe,..._0x5e56d0},_0x104a7d);});});const _0xabd47c=(_0x3c5b50,_0x3b7887)=>{_0x3f9826['_suggestionFactory']['registerCustomCallback'](_0x3c5b50,'tablePaste',_0x3b7887,(_0x4f55e2,_0x21d1f7,_0xbd7902)=>{_0x20fdb1['model']['change'](_0x277568=>{const _0x2624b9=[];for(const _0x354442 of _0x4f55e2){const _0x5eda2b=_0x354442['start']['nodeAfter'];_0x5eda2b['is']('element','tableCellSuggestion')&&_0x2624b9['push'](_0x5eda2b);}_0x3f9826['_suggestionFactory']['getSuggestionCallback'](_0x3c5b50,null,_0x3b7887)(_0x4f55e2,_0x21d1f7,_0xbd7902);for(const _0x42290f of _0x2624b9)'$graveyard'!=_0x42290f['root']['rootName']&&_0x277568['unwrap'](_0x42290f);});});};_0xabd47c('insertion','accept'),_0xabd47c('insertion','discard'),_0xabd47c('deletion','accept'),_0xabd47c('deletion','discard'),_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x40093d=>{const _0x2b41c9=_0x40093d['map'](_0x572ac3=>_0x572ac3['getContainedElement']()),_0x5a8cf7=_0x2b41c9[0x0]['findAncestor']('table'),{minRow:_0x57d852,maxRow:_0xe7c302}=_0x14da41['_getCoordsForCells'](_0x2b41c9);_0x574e85['removeRows'](_0x5a8cf7,{'at':_0x57d852,'rows':_0xe7c302-_0x57d852+0x1});}),_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x122850=>{const _0xb86b20=_0x122850['map'](_0x35bc6a=>_0x35bc6a['getContainedElement']()),_0x2ab459=_0xb86b20[0x0]['findAncestor']('table'),{minColumn:_0x523ec3,maxColumn:_0x2c0a4f}=_0x14da41['_getCoordsForCells'](_0xb86b20);_0x574e85['removeColumns'](_0x2ab459,{'at':_0x523ec3,'columns':_0x2c0a4f-_0x523ec3+0x1});});const _0x5a822b=(_0x4862d8,_0x3501bb)=>{if(!_0x3501bb['subType']||!_0x3501bb['subType']['startsWith']('tablePaste'))return;const _0x92eabc=_0x3501bb['attributes']['tablePasteChainId'],_0x4cb3de=_0x3f9826['getSuggestions']()['filter'](_0x271e1e=>_0x271e1e['isInContent']&&_0x271e1e['attributes']&&_0x271e1e['attributes']['tablePasteChainId']==_0x92eabc);_0x4cb3de['length']&&_0x3501bb['getAllAdjacentSuggestions']()['length']!=_0x4cb3de['length']&&_0x4cb3de['reduce']((_0x1b5b85,_0x384c2d)=>(_0x1b5b85['next']=_0x384c2d,_0x384c2d['previous']=_0x1b5b85,_0x384c2d));};function _0x19227d(_0x3a993a,_0x333da3=!0x0){const {id:_0x3360ef,authorId:_0x52a5a6}=_0x3f9826['_splitMarkerName'](_0x3a993a['markerName']),_0x2e50f2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x37b7b6=_0x3f9826['activeMarkers']['includes'](_0x3a993a['markerName']);return _0x37b7b6&&_0x2e50f2['push']('ck-suggestion-marker--active'),{'classes':_0x2e50f2,'attributes':{'data-suggestion':_0x3360ef,'data-author-id':_0x52a5a6},'priority':_0x37b7b6&&_0x333da3?0xbc2:0xbb8};}_0x3f9826['on']('suggestionLoaded',_0x5a822b,{'priority':'high'}),_0x3f9826['on']('suggestionUnloaded',_0x5a822b,{'priority':'high'}),_0x20fdb1['model']['document']['registerPostFixer'](()=>{let _0x3302ac=!0x1;const _0x3d98a2=Array['from'](_0x20fdb1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xfaf791,data:_0x39c2ec}of _0x3d98a2){const {group:_0x3cd685,type:_0x5d2f1f,id:_0x3a7a5a}=_0x3f9826['_splitMarkerName'](_0xfaf791);if('suggestion'!=_0x3cd685||'deletion'!=_0x5d2f1f||_0x39c2ec['oldRange'])continue;if(!_0x3f9826['hasSuggestion'](_0x3a7a5a))continue;const _0x5c6f8f=_0x3f9826['getSuggestion'](_0x3a7a5a)['getRanges'](),_0x11a277=_0x20fdb1['plugins']['get']('Users')['me'];for(const _0x3c0aa0 of _0x3f9826['getSuggestions']()){if(!_0x3c0aa0['isInContent']||_0x3c0aa0['author']!=_0x11a277)continue;if('formatBlock'!=_0x3c0aa0['type']||'tablePasteCell'!=_0x3c0aa0['subType'])continue;if(_0x3c0aa0['getRanges']()['every'](_0x24a1cb=>_0x5c6f8f['some'](_0x43391a=>_0x43391a['containsRange'](_0x24a1cb,!0x0)))){for(const _0x257cd9 of _0x3c0aa0['getAllAdjacentSuggestions']())_0x257cd9['isInContent']&&(_0x257cd9['discard'](),_0x3302ac=!0x0);}}}return _0x3302ac;}),_0x20fdb1['model']['document']['registerPostFixer'](_0x155c69=>{const _0x40cb9c=_0x20fdb1['commands']['get']('redo');if(!_0x40cb9c||!_0x40cb9c['_createdBatches']['has'](_0x155c69['batch']))return!0x1;let _0x21d0c5=!0x1;const _0x17941e=_0x20fdb1['plugins']['get']('Users')['me'],_0x49f85c=_0x20fdb1['model']['document']['differ']['getChanges'](),_0x518b5f=Array['from'](_0x20fdb1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4489be,data:_0x6d0f72})=>{const {group:_0xaa363a,subType:_0x4d225f,authorId:_0x3aaf2a}=_0x3f9826['_splitMarkerName'](_0x4489be);return'suggestion'==_0xaa363a&&'tablePaste'==_0x4d225f&&_0x3aaf2a==_0x17941e['id']&&!_0x6d0f72['oldRange'];});for(const _0x308d82 of _0x49f85c){if('insert'!=_0x308d82['type']||'tableCellSuggestion'!=_0x308d82['name']||0x1!=_0x308d82['length'])continue;const _0x544619=_0x155c69['createRange'](_0x308d82['position'],_0x308d82['position']['getShiftedBy'](0x1));if(!_0x518b5f['find'](({data:_0x1dd60f})=>_0x1dd60f['newRange']['isEqual'](_0x544619))){for(const {name:_0x20e631,data:_0x1ae972}of _0x518b5f)if(_0x544619['containsRange'](_0x1ae972['newRange'])){_0x155c69['updateMarker'](_0x20e631,{'range':_0x544619}),_0x21d0c5=!0x0;break;}}}return _0x21d0c5;}),_0x20fdb1['model']['document']['registerPostFixer'](_0x5f0996=>{let _0x4ef09f=!0x1;const _0x2a750a=_0x20fdb1['plugins']['get']('Users')['me'],_0x445810=_0x3f9826['getSuggestions']()['filter'](_0x1994ff=>_0x1994ff['isInContent']&&_0x1994ff['author']==_0x2a750a),_0x26e5e5=new Set(),_0x4221fd=new Set();for(const _0x53fd62 of _0x445810)if('tablePaste'==_0x53fd62['subType'])for(const _0x454953 of _0x53fd62['getMarkers']()){const _0x3f18b7=_0x454953['getRange']()['getContainedElement']();if(_0x3f18b7){if(_0x3f18b7['is']('element','tableCellSuggestion')&&Ue(_0x3f18b7)){_0x53fd62['removeMarker'](_0x454953['name']),_0x26e5e5['add'](_0x3f18b7),_0x4ef09f=!0x0;const _0x5035df=_0x3f18b7['nextSibling'],_0x251ea8=_0x3f18b7['previousSibling'],_0x11fcb5=_0x5035df&&_0x5035df['is']('element','tableCellSuggestion'),_0x4e9510=_0x251ea8&&_0x251ea8['is']('element','tableCellSuggestion');_0x11fcb5&&!_0x26e5e5['has'](_0x5035df)&&_0x4221fd['add'](_0x5035df),_0x4e9510&&!_0x26e5e5['has'](_0x251ea8)&&_0x4221fd['add'](_0x251ea8);}else _0x3f18b7['is']('element','paragraph')&&_0x3f18b7['isEmpty']&&(_0x53fd62['removeMarker'](_0x454953['name']),_0x4ef09f=!0x0);}}else{if('tablePasteCell'==_0x53fd62['subType']){if(!_0x53fd62['attributes']||!_0x53fd62['attributes']['tablePasteChainId'])continue;const _0x3ed605=_0x53fd62['attributes']['markerAttributes'];if(_0x3ed605&&Object['keys'](_0x3ed605)['length'])continue;const _0x1d9341=_0x53fd62['attributes']['tablePasteChainId'];let _0x424b32=!0x0,_0x4fde28=!0x0;for(const _0x3ec453 of _0x445810)if(_0x3ec453['subType']&&_0x3ec453['subType']['startsWith']('tablePaste')){if(!_0x3ec453['attributes']['tablePasteChainId']){_0x4fde28=!0x1;break;}if(_0x3ec453['id']!=_0x53fd62['id']&&_0x3ec453['attributes']['tablePasteChainId']==_0x1d9341){_0x424b32=!0x1;break;}}_0x4fde28&&_0x424b32&&(_0x53fd62['removeMarkers'](),_0x4ef09f=!0x0);}}for(const _0xd66e17 of _0x26e5e5)_0x5f0996['remove'](_0xd66e17);for(const _0x5ccc1e of _0x4221fd)_0x5f0996['unwrap'](_0x5ccc1e);return _0x4ef09f;}),_0x20fdb1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b7696=>_0x19227d(_0x1b7696),'converterPriority':'high'}),_0x20fdb1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24de73,_0x40e8da)=>_0x40e8da['options']['showSuggestionHighlights']?_0x19227d(_0x24de73,!0x1):null,'converterPriority':'high'});const _0x3a2773=_0x20fdb1['editing']['view'];this['listenTo'](_0x3a2773['document'],'clipboardOutput',(_0x155991,_0x38d2c5)=>{const _0x287b9b=[];for(const _0x138975 of _0x3a2773['createRangeIn'](_0x38d2c5['content'])['getItems']())_0x138975['is']('element','suggestion-td')&&_0x287b9b['push'](_0x138975);_0x3a2773['change'](_0x202bba=>{for(const _0x35121f of _0x287b9b)_0x202bba['move'](_0x202bba['createRangeIn'](_0x35121f),_0x202bba['createPositionBefore'](_0x35121f)),_0x202bba['remove'](_0x35121f);});});}}function Ue(_0x1f8b33){if(_0x1f8b33['isEmpty'])return!0x0;const _0x189f87=_0x1f8b33['getChild'](0x0);return _0x189f87['is']('element','paragraph')&&_0x189f87['isEmpty'];}function De(_0x48ec53,_0x1d20d9={},_0x6cbca){for(const {isAnchor:_0x539fad,cellHeight:_0x58fa21,cellWidth:_0x25e117}of _0x6cbca['createTableWalker'](_0x48ec53,{'includeAllSlots':!0x0,..._0x1d20d9}))if(!_0x539fad||0x1!=_0x58fa21||0x1!=_0x25e117)return!0x1;return!0x0;}class Bt extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x15d940=this['editor']['plugins']['get']('TrackChangesEditing');_0x15d940['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x15d940['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x15d940['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15d940['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x15d940['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x15d940['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x27d6ef,_0x2ef9ab){const _0x30e5d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x108652=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55c64c=_0x2ef9ab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d9cc9=_0x108652['getColumnGroupElement'](_0x55c64c);let _0x3a199f=_0x5d9cc9?_0x108652['getTableColumnsWidths'](_0x5d9cc9):null,_0x5a62a8=_0x55c64c['getAttribute']('tableWidth')||null;const _0x5d20c5=_0x2ef9ab['tableWidth']||_0x5a62a8,_0x567c93=_0x2ef9ab['columnWidths']||_0x3a199f,_0x51f4b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d1f10 of _0x30e5d8['getSuggestions']()){const _0x3cde61=_0x5d1f10['getContainedElement']();if('resizeTable'===_0x5d1f10['subType']&&_0x3cde61===_0x55c64c){_0x5d1f10['author']!==_0x51f4b2&&_0x5d1f10['discard']();const _0x6a995a=_0x5d1f10['data']['commandParams'];_0x5a62a8=_0x6a995a[0x0]['tableWidth'],_0x3a199f=_0x6a995a[0x0]['columnWidths'];break;}}_0x27d6ef({'table':_0x55c64c,'tableWidth':_0x5d20c5,'columnWidths':_0x567c93}),_0x30e5d8['markBlockFormat'](_0x55c64c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a62a8,'columnWidths':_0x3a199f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d2403){if('formatBlock'!=_0x4d2403['type']&&'formatInline'!=_0x4d2403['type'])return;const {data:_0x8f64ec}=_0x4d2403;if(_0x8f64ec&&'resizeTable'===_0x8f64ec['formatGroupId']){const _0x39b9d1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x39b9d1)};}}}class Ot extends _0x2bb590{['afterInit'](){const _0x5ab29f=this['editor'];_0x5ab29f['plugins']['has']('Template')&&_0x5ab29f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x2bb590{['afterInit'](){const _0x213cbd=this['editor'];if(!_0x213cbd['commands']['get']('insertTableOfContents'))return;_0x213cbd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x447c85=_0x213cbd['plugins']['get']('TrackChangesEditing'),_0x36fbd3=_0x213cbd['locale'];_0x447c85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3de19e=>c(_0x36fbd3,'ELEMENT_TABLE_OF_CONTENTS',_0x3de19e));}}class xt extends _0x2bb590{['afterInit'](){const _0x51df05=this['editor'];if(!_0x51df05['plugins']['has']('Title'))return;const _0x5d4933=_0x51df05['plugins']['get']('TrackChangesEditing');_0x5d4933['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x51df05['locale'],'ELEMENT_TITLE')),_0x51df05['model']['document']['registerPostFixer'](_0xd34596=>{let _0x5a0eaa=!0x1;const _0x13adcb=Array['from'](_0x51df05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d2907,data:_0x1d95ea}of _0x13adcb){const {group:_0x2f99b8}=_0x5d4933['_splitMarkerName'](_0x1d2907);if('suggestion'!==_0x2f99b8||!_0x1d95ea['newRange'])continue;const _0x555b53=_0x1d95ea['newRange'],_0x3cec7d=_0x555b53['end']['nodeBefore'];if(!_0x3cec7d||!_0x3cec7d['is']('element','title-content'))continue;if(!_0x555b53['start']['isTouching'](_0x555b53['end']))continue;const _0x84ba61=_0x51df05['model']['schema']['getNearestSelectionRange'](_0x555b53['end'],'forward');if(_0x84ba61&&_0x84ba61['isCollapsed']){const _0x288398=_0xd34596['createRange'](_0x555b53['start'],_0x84ba61['start']);_0x288398['isEqual'](_0x555b53)||(_0xd34596['updateMarker'](_0x1d2907,{'range':_0x288398}),_0x5a0eaa=!0x0);}_0x5a0eaa||(_0xd34596['removeMarker'](_0x1d2907),_0x5a0eaa=!0x0);}return _0x5a0eaa;});}}class Tt extends _0x2bb590{['afterInit'](){const _0x2f4de0=this['editor'],_0x25a202=_0x2f4de0['plugins']['get']('TrackChangesEditing');_0x2f4de0['plugins']['has']('Uploadcare')&&(_0x25a202['enableCommand']('uploadcare'),_0x2f4de0['plugins']['has']('UploadcareImageEdit')&&(_0x25a202['enableCommand']('uploadcareImageEdit'),_0x25a202['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x25a202['registerBlockAttribute']('uploadcareImageId'),_0x25a202['descriptionFactory']['registerDescriptionCallback'](_0x36f496=>{if('attribute'!=_0x36f496['type'])return;const {data:_0x307b14}=_0x36f496;return _0x307b14&&'uploadcareImageId'==_0x307b14['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2bb590{['afterInit'](){const _0x36e797=this['editor'],_0x505c6d=_0x36e797['plugins']['get']('TrackChangesEditing');_0x36e797['plugins']['has']('UndoEditing')&&(_0x505c6d['enableCommand']('undo'),_0x505c6d['enableCommand']('redo'));}}class Ut extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x1c2751=this['editor'];if(!_0x1c2751['plugins']['has']('TableCaptionEditing'))return;_0x1c2751['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2bb590{['tableProperties'];['tableCellProperties'];constructor(_0x6ba4cc){super(_0x6ba4cc),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1c3f5a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6b4e4b of this['tableProperties'])_0x1c3f5a['enableCommand'](_0x6b4e4b,(_0x5cbd56,_0x4be583)=>{const _0xd89f96=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6b4e4b,[_0xd89f96],this['tableProperties'],'tableProperties',_0x5cbd56,_0x4be583);});_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1c3f5a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47f3be,_0x41f7f2)=>this['handleDiscardAction'](this['tableProperties'],_0x47f3be,_0x41f7f2)),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x147cbf of this['tableCellProperties'])_0x1c3f5a['enableCommand'](_0x147cbf,(_0x55d8d7,_0x452cb9)=>{const _0x43460d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x147cbf,_0x43460d,this['tableCellProperties'],'tableCellProperties',_0x55d8d7,_0x452cb9);});_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1c3f5a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e66df,_0x138490)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e66df,_0x138490)),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1c3f5a['descriptionFactory']['registerDescriptionCallback'](_0x16a93f=>this['handleSuggestionDescription'](_0x16a93f));}['_handlePropertyChange'](_0x2cfc3c,_0x39c54c,_0x5c9f86,_0x354b0e,_0x24f166,_0x200558){const _0x4ce8a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x200558['batch'],()=>{for(const _0xbc47e8 of _0x39c54c){if(this['_getSuggestion'](_0xbc47e8,_0x354b0e))_0x24f166(_0x200558);else{const _0xe16039={};for(const _0x5a109f of _0x5c9f86){const _0x4fb126=_0xbc47e8['getAttribute'](_0x5a109f);void 0x0!==_0x4fb126&&(_0xe16039[_0x5a109f]=_0x4fb126);}_0x24f166(_0x200558),_0x4ce8a2['markBlockFormat'](_0xbc47e8,{'commandParams':[_0xe16039]},[],_0x354b0e);}}});}['handleDiscardAction'](_0x2206b8,_0x5bed22,_0xa49d15){const _0x5296f1=_0x5bed22[0x0]['start']['nodeAfter'],_0x2b79cc=_0xa49d15['commandParams'][0x0];this['editor']['model']['change'](_0x3961a1=>{for(const _0x3ec600 of _0x2206b8)void 0x0!==_0x2b79cc[_0x3ec600]?_0x3961a1['setAttribute'](_0x3ec600,_0x2b79cc[_0x3ec600],_0x5296f1):_0x3961a1['removeAttribute'](_0x3ec600,_0x5296f1);});}['handleSuggestionDescription'](_0x2a1d05){if(_0x2a1d05['data'])switch(_0x2a1d05['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ead9c,_0x2fdad9){const _0x1e0349=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x351fee of _0x1e0349['getSuggestions']({'skipNotAttached':!0x0})){const _0x211fdc=_0x351fee['getContainedElement']();if(_0x351fee['subType']===_0x2fdad9&&_0x211fdc===_0x1ead9c)return _0x351fee;}return null;}}const u='$elementName';class p extends _0x2bb590{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x75af00,_0x47b17f,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a5da2){super(_0x2a5da2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b1384,_0x3d376b,_0x4edd3a,_0x32b39b)=>{this['_model']['change'](()=>{for(const _0x3af580 of[..._0x32b39b,..._0x4edd3a])this['_model']['markers']['has'](_0x3af580)&&_0x2a5da2['editing']['reconvertMarker'](_0x3af580);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2a5da2['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2a5da2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a5da2['config']['get']('trackChanges.trackFormatChanges'),_0x2a5da2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a5da2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a5da2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x6095ae=this['editor'],_0x4f470c=(_0x39c894,_0x24fe19)=>{if('attribute'!=_0x39c894)return'ck-suggestion-marker-'+_0x39c894;const _0x3dcefa=_0x24fe19['split']('|')[0x0];return this['_isBlockAttribute'](_0x3dcefa)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x6095ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xecef83=>{const {id:_0x19fefd,authorId:_0x4764fc,type:_0x52d0af,subType:_0x1d5317}=this['_splitMarkerName'](_0xecef83['markerName']),_0x488e63=['ck-suggestion-marker',_0x4f470c(_0x52d0af,_0x1d5317)];let _0x4483e0=0xbb8;return this['activeMarkers']['includes'](_0xecef83['markerName'])&&(_0x488e63['push']('ck-suggestion-marker--active'),_0x4483e0=0xbc2),'deletion'==_0x52d0af&&(_0x4483e0+=0x5),{'classes':_0x488e63,'attributes':{'data-suggestion':_0x19fefd,'data-author-id':_0x4764fc},'priority':_0x4483e0};}}),_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x17fcb0=>{_0x17fcb0['on']('addMarker:suggestion',(_0x3c8ef7,_0x432db9,_0x2dd2eb)=>{if(!_0x2dd2eb['options']['showSuggestionHighlights'])return;const _0x2ee1ed=_0x432db9['item'];if(!_0x2ee1ed)return;const _0x1e193d=_0x2dd2eb['mapper']['toViewElement'](_0x2ee1ed);_0x6095ae['model']['schema']['isObject'](_0x2ee1ed)&&_0x1e193d&&!_0x1e193d['getCustomProperty']('widget')&&_0x1e193d['is']('containerElement')&&_0x300646(_0x1e193d,_0x2dd2eb['writer']);},{'priority':'high'});}),_0x6095ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3bd867,_0x320b33)=>{if(!_0x320b33['options']['showSuggestionHighlights'])return null;const {type:_0x37a267,subType:_0x360f25}=this['_splitMarkerName'](_0x3bd867['markerName']);return{'classes':['ck-suggestion-marker',_0x4f470c(_0x37a267,_0x360f25)],'priority':0xbb8};}});const _0x4b2e32=({showActiveMarkers:_0x35bec5=!0x0,isAttributeSuggestion:_0x1960d0=!0x1}={})=>(_0x50927d,_0x5c117a,_0x30ed90)=>{if(!_0x5c117a['item'])return;const {id:_0x208c59,authorId:_0x39cf25}=this['_splitMarkerName'](_0x5c117a['markerName']);if(_0x1960d0){const _0x428cf2=this['_suggestions']['get'](_0x208c59),_0x19ba8d=this['_getAttributeKey'](_0x428cf2);if(!this['_isBlockAttribute'](_0x19ba8d))return;}if(_0x5c117a['item']['is']('selection'))return void _0x30ed90['consumable']['consume'](_0x5c117a['item'],_0x50927d['name']);const _0x2643e7=_0x30ed90['mapper']['toViewElement'](_0x5c117a['item']);if(_0x5c117a['item']['is']('element')&&_0x6095ae['model']['schema']['isBlock'](_0x5c117a['item'])&&!_0x2643e7['getCustomProperty']('addHighlight')){_0x30ed90['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2643e7),_0x30ed90['writer']['setAttribute']('data-suggestion',_0x208c59,_0x2643e7),_0x30ed90['writer']['setAttribute']('data-author-id',_0x39cf25,_0x2643e7),_0x30ed90['mapper']['bindElementToMarker'](_0x2643e7,_0x5c117a['markerName']),_0x35bec5&&(this['activeMarkers']['includes'](_0x5c117a['markerName'])?_0x30ed90['writer']['addClass']('ck-suggestion-marker--active',_0x2643e7):_0x30ed90['writer']['removeClass']('ck-suggestion-marker--active',_0x2643e7));for(const _0x4d5576 of _0x6095ae['model']['createRangeIn'](_0x5c117a['item'])['getItems']())_0x30ed90['consumable']['consume'](_0x4d5576,_0x50927d['name']);_0x30ed90['consumable']['consume'](_0x5c117a['item'],_0x50927d['name']);}};_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x391b16=>{_0x391b16['on']('addMarker:suggestion:formatBlock',(_0x4a1f8a,_0x5485c4,_0x5402bf)=>{_0x5402bf['options']['showSuggestionHighlights']&&_0x4b2e32({'showActiveMarkers':!0x1})(_0x4a1f8a,_0x5485c4,_0x5402bf);},{'priority':'highest'});}),_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x1b24a0=>{_0x1b24a0['on']('addMarker:suggestion:attribute',(_0x14b59e,_0x476c5a,_0x2fa983)=>{_0x2fa983['options']['showSuggestionHighlights']&&_0x4b2e32({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x14b59e,_0x476c5a,_0x2fa983);},{'priority':'highest'});}),_0x6095ae['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1f95d4,_0x240d62)=>_0x240d62['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1f95d4['substr'](0xb)}}),_0x6095ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13eda1,{writer:_0x5323c4})=>{let _0x2a69e0='suggestion:'+_0x13eda1['getAttribute']('suggestion-type')+':'+_0x13eda1['getAttribute']('id');return _0x13eda1['getAttribute']('marker-count')&&(_0x2a69e0+=':'+_0x13eda1['getAttribute']('marker-count')),_0x5323c4['createElement']('$marker',{'data-name':_0x2a69e0});}}),_0x6095ae['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x3cb496=>{_0x3cb496['on']('addMarker:suggestion:formatBlock',_0x4b2e32(),{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x286c2a=>{_0x286c2a['on']('addMarker:suggestion:attribute',_0x4b2e32({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x4f513c=>{_0x4f513c['on']('removeMarker:suggestion:formatBlock',(_0x2422ef,_0x114df7,_0x297047)=>{const _0x4b8942=_0x297047['mapper']['markerNameToElements'](_0x114df7['markerName']);if(_0x4b8942){for(const _0x537abd of _0x4b8942)_0x537abd['getCustomProperty']('addHighlight')||(_0x297047['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x537abd),_0x297047['writer']['removeAttribute']('data-suggestion',_0x537abd),_0x297047['writer']['removeAttribute']('data-author-id',_0x537abd),_0x297047['mapper']['unbindElementFromMarkerName'](_0x537abd,_0x114df7['markerName']));}},{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x5ff2f4=>{_0x5ff2f4['on']('removeMarker:suggestion:attribute',(_0xe33f23,_0x297609,_0x15500d)=>{const _0xa7eea8=_0x15500d['mapper']['markerNameToElements'](_0x297609['markerName']);if(!_0xa7eea8)return;const {id:_0x21f93c}=this['_splitMarkerName'](_0x297609['markerName']),_0x530ced=this['_suggestions']['get'](_0x21f93c),_0x2e4d60=this['_getAttributeKey'](_0x530ced);if(this['_isBlockAttribute'](_0x2e4d60)){for(const _0x4989b9 of _0xa7eea8)_0x4989b9['getCustomProperty']('addHighlight')||(_0x15500d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4989b9),_0x15500d['writer']['removeAttribute']('data-suggestion',_0x4989b9),_0x15500d['writer']['removeAttribute']('data-author-id',_0x4989b9),_0x15500d['mapper']['unbindElementFromMarkerName'](_0x4989b9,_0x297609['markerName']));}},{'priority':'high'});}),_0x6095ae['model']['document']['registerPostFixer'](_0x4f6544=>{let _0x2ede9f=!0x1;const _0x6fe926=Array['from'](_0x6095ae['model']['document']['differ']['getChangedMarkers']()),_0x12357b=new Set();for(const {name:_0x1500e7,data:_0x1cee07}of _0x6fe926){const {group:_0x279c01,type:_0x12d1fe,subType:_0x269d17,id:_0x115ffa}=this['_splitMarkerName'](_0x1500e7);if('suggestion'!==_0x279c01)continue;const _0x2826f7=this['_suggestions']['get'](_0x115ffa);if(null!=_0x1cee07['newRange']){'formatInline'==_0x12d1fe&&(_0x2ede9f=_0x2ede9f||Jt(_0x1cee07['newRange'],_0x1500e7,_0x4f6544,_0x6095ae['model']['schema']));const _0x55e809='attribute'==_0x12d1fe&&this['_isBlockAttribute'](_0x269d17['split']('|')[0x0]);if(_0x1cee07['newRange']['isCollapsed']||'$graveyard'==_0x1cee07['newRange']['root']['rootName']||'formatBlock'==_0x12d1fe&&!Ht(_0x1cee07['newRange'])||_0x55e809&&!Ht(_0x1cee07['newRange'])||'deletion'==_0x12d1fe&&!(!Lt(_0x2743b2=_0x1cee07['newRange'])&&!function(_0x163d48){return _0x163d48['start']['parent']==_0x163d48['end']['nodeBefore']&&_0x163d48['start']['isAtEnd'];}(_0x2743b2)))_0x4f6544['removeMarker'](_0x1500e7),_0x2ede9f=!0x0;else{if(!_0x2826f7||!_0x2826f7['isInContent'])continue;if(_0x1cee07['newRange']&&_0x1cee07['oldRange']&&_0x1cee07['newRange']['isEqual'](_0x1cee07['oldRange']))continue;_0x12357b['add'](_0x2826f7);}}}var _0x2743b2;return _0x12357b['size']>0x0&&(_0x2ede9f=!!this['_joinWithAdjacentSuggestions'](_0x12357b)||_0x2ede9f),_0x2ede9f;}),_0x6095ae['model']['document']['registerPostFixer'](_0x5589fc=>{let _0x382c1f=!0x1;for(const _0x411624 of _0x6095ae['model']['document']['differ']['getChanges']())if('insert'==_0x411624['type'])for(const _0x33258e of this['_suggestions']['values']()){if(_0x33258e['isMultiRange']||!_0x33258e['isInContent'])continue;const _0x2d633c='formatBlock'==_0x33258e['type'],_0x1ce476=this['_getAttributeKey'](_0x33258e),_0x533d86=_0x1ce476&&this['_isBlockAttribute'](_0x1ce476);if(!_0x2d633c&&!_0x533d86)continue;const _0x599c71=_0x33258e['getFirstRange']();if(_0x599c71['start']['parent']!=_0x599c71['end']['parent']&&!_0x599c71['end']['isAtEnd']){const _0x514014=_0x6095ae['model']['createPositionAt'](_0x599c71['start']['nodeAfter'],'end'),_0x4a1dbc=_0x6095ae['model']['createRange'](_0x599c71['start'],_0x514014);_0x5589fc['updateMarker'](_0x33258e['getFirstMarker'](),{'range':_0x4a1dbc}),_0x382c1f=!0x0;}}return _0x382c1f;}),_0x6095ae['model']['document']['registerPostFixer'](_0x196193=>this['_processAttributeChanges'](_0x196193)),_0x6095ae['model']['document']['registerPostFixer'](_0x5c0379=>!_0x5c0379['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5c0379)),_0x6095ae['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x6095ae['model']['document']['on']('change:data',(_0x37cb15,_0x45c4bd)=>{if(!_0x45c4bd['isLocal']||_0x45c4bd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x576701=_0x6095ae['model']['document']['differ']['getChanges']();if(0x0==_0x576701['length'])return;const _0x4088e3=[],_0x270e71=_0x576701['filter'](_0x28096e=>'attribute'==_0x28096e['type']),_0x5da6b9=_0x576701['filter'](_0x136e25=>'insert'==_0x136e25['type']&&'$text'!=_0x136e25['name']);for(const _0x4ff1d9 of _0x270e71)this['_isRegisteredAttribute'](_0x4ff1d9['attributeKey'])&&_0x4088e3['push']({'key':_0x4ff1d9['attributeKey'],'newValue':_0x4ff1d9['attributeNewValue'],'oldValue':_0x4ff1d9['attributeOldValue'],'range':qt(_0x4ff1d9['range'],_0x6095ae['model'])});for(const _0x332d4d of _0x5da6b9){if('rename'!=_0x332d4d['action']&&'refresh'!=_0x332d4d['action'])continue;const _0x260aaa=zt(_0x332d4d['position']['nodeAfter'],_0x6095ae['model']),_0x4ed66b=_0x332d4d['before'];'rename'==_0x332d4d['action']&&_0x4088e3['push']({'key':u,'newValue':_0x332d4d['name'],'oldValue':_0x4ed66b['name'],'range':_0x260aaa});for(const [_0x5a3676,_0x154aad]of _0x4ed66b['attributes']){if(!this['_isRegisteredAttribute'](_0x5a3676))continue;const _0x1cb0c4=_0x332d4d['attributes']['get'](_0x5a3676);_0x154aad!==_0x1cb0c4&&_0x4088e3['push']({'key':_0x5a3676,'newValue':_0x1cb0c4,'oldValue':_0x154aad,'range':_0x260aaa});}for(const [_0x1311bf,_0x4df6bc]of _0x332d4d['attributes'])this['_isRegisteredAttribute'](_0x1311bf)&&(_0x4ed66b['attributes']['has'](_0x1311bf)||_0x4088e3['push']({'key':_0x1311bf,'newValue':_0x4df6bc,'oldValue':null,'range':_0x260aaa}));}0x0!=_0x4088e3['length']&&_0x6095ae['model']['enqueueChange'](_0x45c4bd,_0x4b8e29=>{const _0x5c6600=_0xf1d1da();for(const {range:_0xfa2434,key:_0x29ae5c,oldValue:_0x2582cb,newValue:_0x3925e7}of _0x4088e3)this['markAttributeChange'](_0xfa2434,_0x29ae5c,_0x2582cb,_0x3925e7,{'groupId':_0x5c6600});this['_reduceExistingSuggestions'](_0x4b8e29,_0x4088e3);});},{'priority':'lowest'}),_0x6095ae['model']['markers']['on']('update:suggestion',(_0x59bc7c,_0x280d17,_0x3399d0)=>{if(null==_0x3399d0){const {id:_0x18f125}=this['_splitMarkerName'](_0x280d17['name']),_0x4c174b=this['_suggestions']['get'](_0x18f125);_0x4c174b&&_0x4c174b['addMarkerName'](_0x280d17['name']);}}),_0x6095ae['model']['document']['on']('change:data',()=>{const _0x254e8b=Array['from'](_0x6095ae['model']['document']['differ']['getChangedMarkers']())['filter'](_0x295561=>'suggestion'===this['_splitMarkerName'](_0x295561['name'])['group']);if(0x0===_0x254e8b['length'])return;_0x254e8b['sort']((_0x89e60e,_0x3105fd)=>{const _0x30d807=_0x89e60e['data']['oldRange'],_0x41644b=_0x3105fd['data']['oldRange'];return null===_0x30d807&&null===_0x41644b?0x0:null===_0x30d807&&null!==_0x41644b?-0x1:null!==_0x30d807&&null===_0x41644b?0x1:_0x30d807['start']['isBefore'](_0x41644b['start'])?-0x1:0x1;});const _0x40d554=new Set(),_0x2bd1a2=new Set();for(const {name:_0x4d9eaa,data:_0x499666}of _0x254e8b){const {id:_0x42dce9}=this['_splitMarkerName'](_0x4d9eaa);if(null===_0x499666['oldRange']){const _0x47ee71=this['_handleNewSuggestionMarker'](_0x4d9eaa);_0x2bd1a2['add'](_0x47ee71);}else{const _0x5f07a4=this['_suggestions']['get'](_0x42dce9);null!==_0x499666['newRange']||_0x5f07a4['isInContent']?(_0x40d554['add'](_0x5f07a4['head']),_0x2bd1a2['add'](_0x5f07a4)):this['_removeSuggestion'](_0x5f07a4);}}_0x2bd1a2['size']>0x0&&this['_refreshSuggestionsChain'](_0x2bd1a2);for(const _0x408eaf of _0x40d554)this['fire']('suggestionChanged',_0x408eaf);}),_0x6095ae['model']['on']('applyOperation',(_0x212974,_0x11c783)=>{const _0x5838e5=_0x11c783[0x0];if(!this['_suggestions']['size'])return;if(!_0x5838e5['isDocumentOperation'])return;if(_0x5838e5['batch']['isUndo']||!_0x5838e5['batch']['isLocal'])return;let _0x2bd187,_0x3c1de2;switch(_0x5838e5['type']){case'insert':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['position']),_0x3c1de2=_0x2bd187['getShiftedBy'](_0x5838e5['howMany']);break;case'split':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['splitPosition']),_0x3c1de2=_0x6095ae['model']['createPositionAt'](_0x5838e5['moveTargetPosition']);break;case'move':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['targetPosition']),_0x3c1de2=_0x2bd187['getShiftedBy'](_0x5838e5['howMany']);break;default:return;}const _0x4a153f=_0x6095ae['model']['createRange'](_0x2bd187,_0x3c1de2);_0x6095ae['model']['change'](()=>{for(const {suggestion:_0x1aa1ca,meta:_0x444a05}of this['_findSuggestions'](_0x4a153f)){if(_0x1aa1ca['isMultiRange'])continue;if('formatInline'==_0x1aa1ca['type'])continue;const _0x31ee6e=this['_getAttributeKey'](_0x1aa1ca);if(_0x31ee6e&&this['_isBlockAttribute'](_0x31ee6e)&&'split'!=_0x5838e5['type'])continue;const _0x1dee74=_0x1aa1ca['data']&&_0x1aa1ca['data']['multipleBlocks'];('formatBlock'!=_0x1aa1ca['type']||'split'==_0x5838e5['type']&&!_0x1dee74)&&(_0x444a05['containsRangeInObject']||'insertion'==_0x1aa1ca['type']&&_0x444a05['isOwn']||_0x1aa1ca['getFirstRange']()['containsRange'](_0x4a153f)&&this['_breakSuggestionMarker'](_0x1aa1ca,_0x2bd187,_0x3c1de2));}});},{'priority':'lowest'}),_0x6095ae['model']['on']('deleteContent',(_0x1ca196,_0x129f8c)=>{const _0x5ae466=_0x129f8c[0x0],_0x1d8951=_0x129f8c[0x1];if(_0x1d8951&&_0x1d8951['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ae466['isCollapsed'])return;const _0x472be6=_0x6095ae['model']['schema'],{start:_0x582134,end:_0x185f4d}=_0x5ae466['getFirstRange'](),_0x411bb7=_0x582134['nodeAfter']&&_0x472be6['isLimit'](_0x582134['nodeAfter'])?null:_0x472be6['getNearestSelectionRange'](_0x582134,'forward'),_0x4834ab=_0x185f4d['nodeBefore']&&_0x472be6['isLimit'](_0x185f4d['nodeBefore'])?null:_0x472be6['getNearestSelectionRange'](_0x185f4d,'backward'),_0x1f02c2=_0x6095ae['model']['createRange'](_0x411bb7?_0x411bb7['start']:_0x582134,_0x4834ab?_0x4834ab['end']:_0x185f4d);_0x6095ae['model']['change'](_0x1b2efb=>{this['markDeletion'](_0x1f02c2);const _0xce7758=_0x6095ae['model']['schema']['getNearestSelectionRange'](_0x1f02c2['start']);_0x5ae466['is']('documentSelection')?_0x1b2efb['setSelection'](_0xce7758):_0x5ae466['setTo'](_0xce7758);}),_0x1ca196['stop']();},{'priority':_0x5bb012['normal']+0xa}),_0x6095ae['model']['on']('insertContent',(_0x102ddd,_0x359023)=>{const _0x15294e=_0x359023[_0x359023['length']-0x1];_0x15294e&&_0x15294e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x6095ae['model']['change'](()=>{let _0x53fe8b=_0x6095ae['model']['insertContent'](_0x359023[0x0],_0x359023[0x1],_0x359023[0x2],{'forceDefaultExecution':!0x0});if(!_0x53fe8b)return;_0x102ddd['return']=_0x53fe8b['clone']();const _0xf68968=_0x53fe8b['end']['nodeBefore'],_0x44e927=_0x6095ae['model']['schema'];_0xf68968&&_0x44e927['isBlock'](_0xf68968)&&!_0x44e927['isObject'](_0xf68968)&&(_0x53fe8b=_0x6095ae['model']['createRange'](_0x53fe8b['start'],_0x6095ae['model']['createPositionAt'](_0xf68968,'end'))),this['markInsertion'](_0x53fe8b);}),_0x102ddd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x45986c=new O(_0x6095ae,this['_suggestions']);_0x6095ae['commands']['add']('acceptSuggestion',_0x45986c),this['enableCommand']('acceptSuggestion');const _0x4ffcdb=new R(_0x6095ae,this['_suggestions']);_0x6095ae['commands']['add']('discardSuggestion',_0x4ffcdb),this['enableCommand']('discardSuggestion'),_0x6095ae['commands']['add']('acceptAllSuggestions',new x(_0x6095ae,_0x45986c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x6095ae['commands']['add']('discardAllSuggestions',new x(_0x6095ae,_0x4ffcdb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x6095ae['commands']['add']('acceptSelectedSuggestions',new E(_0x6095ae,_0x45986c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x6095ae['commands']['add']('discardSelectedSuggestions',new E(_0x6095ae,_0x4ffcdb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3efaba=_0x6095ae['plugins']['get']('CommentsRepository');this['listenTo'](_0x3efaba,'addComment',(_0x210f01,{threadId:_0x23af3a})=>{const _0x357dcb=this['_suggestions']['get'](_0x23af3a);_0x357dcb&&_0x357dcb['commentThread']&&0x1===_0x357dcb['commentThread']['length']&&this['_updateSuggestionData'](_0x23af3a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3efaba,'removeComment',(_0x48075e,{threadId:_0x2a7737})=>{const _0x70754a=this['_suggestions']['get'](_0x2a7737);_0x70754a&&_0x70754a['commentThread']&&!_0x70754a['commentThread']['length']&&this['_updateSuggestionData'](_0x2a7737,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xdd0b10){const _0x485ae5=_0x43f50e([0x61,0x70,0x75,0x4e,0x30,0x58,0x74,0x33,0x7a,0x4d,0x44,0x63,0x38,0x42,0x62,0x35,0x45,0x52,0x32,0x5a,0x48,0x36,0x31,0x6a,0x73,0x6d,0x67,0x6c,0x79,0x4f,0x43,0x72,0x53,0x46,0x64,0x69,0x6e,0x49,0x4a,0x78,0x47,0x66,0x56,0x55,0x77,0x59,0x76,0x34,0x4b,0x6b,0x71,0x51,0x50,0x6f,0x57,0x68,0x54,0x4c,0x39,0x37,0x41,0x65]),_0x49f949=0x5cab1adf,_0x493499=0x5cac7e9f^_0x49f949,_0x235259=window[_0x43f50e([0x44,0x61,0x74,0x65])][_0x43f50e([0x6e,0x6f,0x77])](),_0x388fb7=_0xdd0b10[_0x43f50e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x203849=new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e089=>{_0x388fb7[_0x43f50e([0x6f,0x6e,0x63,0x65])](_0x43f50e([0x72,0x65,0x61,0x64,0x79]),_0x38e089);}),_0x86ef0d={[_0x43f50e([0x6b,0x74,0x79])]:_0x43f50e([0x45,0x43]),[_0x43f50e([0x75,0x73,0x65])]:_0x43f50e([0x73,0x69,0x67]),[_0x43f50e([0x63,0x72,0x76])]:_0x43f50e([0x50,0x2d,0x32,0x35,0x36]),[_0x43f50e([0x78])]:_0x43f50e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x43f50e([0x79])]:_0x43f50e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x43f50e([0x61,0x6c,0x67])]:_0x43f50e([0x45,0x53,0x32,0x35,0x36])},_0x1db57a=_0x388fb7[_0x43f50e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43f50e([0x67,0x65,0x74])](_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x270ddc(){let _0x2e5608,_0x2d3997=null,_0x2768a4=null;try{if(_0x1db57a==_0x43f50e([0x47,0x50,0x4c]))return _0x43f50e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e5608=_0x824216(),!_0x2e5608)return _0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e5608[_0x43f50e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2768a4=_0x5ceff8(_0x2e5608[_0x43f50e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e5608[_0x43f50e([0x6a,0x74,0x69])])),await _0x4b11a3()?_0x29eb10()?_0x34713f()?_0x43f50e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a57ab()?(_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f50e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d3997=_0x3004aa(_0x43f50e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f50e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d3997=_0x3004aa(_0x43f50e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x543328()):_0x43f50e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43f50e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x210452){return _0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34713f(){const _0xe28923=[_0x43f50e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43f50e([0x74,0x72,0x69,0x61,0x6c])][_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x235259/0x3e8:0xe10*_0x493499;return _0x2e5608[_0x43f50e([0x65,0x78,0x70])]<_0xe28923;}function _0x29eb10(){const _0x29e6ac=_0x2e5608[_0x43f50e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29e6ac)return!0x1;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x2a])))return!0x0;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x54,0x43])))return!0x0;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x52,0x54,0x43]))){if(_0x49ba29())return!0x0;if(_0x5223a6()||_0xb1da33())return!0x0;}return!0x1;}function _0x1a57ab(){const _0x2ccb54=_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ccb54||0x0==_0x2ccb54[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f3089}=new URL(window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ccb54[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3089))return!0x0;const _0x2a87b2=_0x2f3089[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e]));return _0x2ccb54[_0x43f50e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6562fd=>_0x6562fd[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x2a])))[_0x43f50e([0x6d,0x61,0x70])](_0x6268be=>_0x6268be[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e])))[_0x43f50e([0x73,0x6f,0x6d,0x65])](_0x4d3014=>_0x2a87b2[_0x43f50e([0x65,0x76,0x65,0x72,0x79])]((_0x2b2c6b,_0x21880a)=>_0x4d3014[_0x21880a]===_0x2b2c6b||_0x4d3014[_0x21880a]===_0x43f50e([0x2a])));}function _0x543328(){return _0x2d3997&&_0x2768a4?new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9b79,_0x2c5008)=>{_0x2d3997[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x2d9b79,_0x2c5008),_0x2768a4[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1b2216=>{_0x1b2216!=_0x43f50e([0x56,0x61,0x6c,0x69,0x64])&&_0x2d9b79(_0x1b2216);},_0x2c5008);}):_0x2d3997||_0x2768a4||_0x43f50e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ceff8(_0x590edf,_0x1a8995){return new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dde20=>{if(_0x6f2628())return _0x3dde20(_0x43f50e([0x56,0x61,0x6c,0x69,0x64]));_0x2f1753(),_0x388fb7[_0x43f50e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd205c4=!0x1;const _0x1c8c3a=_0xf1d1da();function _0x36cabb(_0x57b6e5){return!!_0x57b6e5&&(typeof _0x57b6e5===_0x43f50e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57b6e5===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57b6e5[_0x43f50e([0x74,0x68,0x65,0x6e])]===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57b6e5[_0x43f50e([0x63,0x61,0x74,0x63,0x68])]===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51dc41(_0x441222){_0x2d51b2(_0x441222)[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1bb969=>{if(!_0x1bb969||_0x1bb969[_0x43f50e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43f50e([0x6f,0x6b]))return _0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57eb94(_0x3e3879(_0x1c8c3a+_0x1a8995))!=_0x1bb969[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43f50e([0x56,0x61,0x6c,0x69,0x64]);})[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1de6fe=>(_0x2d55c9(),_0x1de6fe),()=>{const _0x2975f2=_0x174b41();return null==_0x2975f2?(_0x2d55c9(),_0x43f50e([0x56,0x61,0x6c,0x69,0x64])):_0x43f50e(_0x235259-_0x2975f2>(0x78a79edf^_0x49f949)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x3dde20)[_0x43f50e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x301c37=0x5c9df45f^_0x49f949;function _0x2d55c9(){const _0x164aee=_0x43f50e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57eb94(_0x3e3879(_0x590edf)),_0x49ab94=_0x1cab47(_0x57eb94(window[_0x43f50e([0x4d,0x61,0x74,0x68])][_0x43f50e([0x63,0x65,0x69,0x6c])](_0x235259/_0x301c37)));window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f50e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x164aee,_0x49ab94);}function _0x174b41(){const _0x546ca3=_0x43f50e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57eb94(_0x3e3879(_0x590edf)),_0x1398a5=window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f50e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x546ca3);return _0x1398a5?window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cab47(_0x1398a5),0x10)*_0x301c37:null;}function _0x2d51b2(_0x377132){return new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e293a,_0x316f79)=>{_0x377132[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x5e293a,_0x316f79),window[_0x43f50e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x316f79,0x5caace1f^_0x49f949);});}}_0x388fb7[_0x43f50e([0x6f,0x6e])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51be14,_0x437adc)=>{if(_0x437adc[0x0]!=_0x590edf)return _0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x437adc[0x1]={..._0x437adc[0x1],[_0x43f50e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c8c3a};},{[_0x43f50e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f50e([0x68,0x69,0x67,0x68])}),_0x388fb7[_0x43f50e([0x6f,0x6e])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x283198=>{_0x36cabb(_0x283198[_0x43f50e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd205c4=!0x0,_0x51dc41(_0x283198[_0x43f50e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43f50e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f50e([0x6c,0x6f,0x77])}),_0x203849[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>{_0xd205c4||_0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6f2628(){return _0x388fb7[_0x43f50e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f50e([0x76,0x69,0x65,0x77])][_0x43f50e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43f50e([0x61,0x75,0x74,0x6f]);}function _0x2f1753(){_0x388fb7[_0x43f50e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f50e([0x76,0x69,0x65,0x77])][_0x43f50e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43f50e([0x61,0x75,0x74,0x6f]);}}function _0x3004aa(_0x580d81){const _0x5ea525=[new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cbe24=>setTimeout(_0x3cbe24,0x5ca22413^_0x49f949)),_0x203849[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454de7=>{let _0x5d8d3e=0x0;_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x6f,0x6e])](_0x43f50e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ea2eb,_0x238ecf)=>{_0x238ecf[0x0][_0x43f50e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d8d3e++,_0x5d8d3e==(0x5cab1b27^_0x49f949)&&(_0x454de7(),_0x5ea2eb[_0x43f50e([0x6f,0x66,0x66])]());});}))];return window[_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43f50e([0x72,0x61,0x63,0x65])](_0x5ea525)[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>_0x580d81);}async function _0x437736(){await _0x203849,_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8f41e7,_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8f41e7,_0x388fb7[_0x43f50e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49ba29(){return _0x4c2299(_0x43f50e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1d7250(_0x43f50e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43f50e([0x73,0x74,0x61,0x74,0x65])]==_0x43f50e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5223a6(){return _0x4c2299(_0x43f50e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xb1da33(){return _0x4c2299(_0x43f50e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4d37da(_0x25b727){const _0x41b5ea=_0x4f263a();_0x388fb7[_0x41b5ea]=_0x43f50e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25b727,_0x25b727!=_0x43f50e([0x56,0x61,0x6c,0x69,0x64])&&_0x437736();}function _0x4f263a(){const _0x232996=window[_0x43f50e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43f50e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43f50e([0x6e,0x6f,0x77])]())[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43f50e([0x2e]),'');let _0xde7f93=_0x43f50e([0x61]);for(let _0x231d52=0x0;_0x231d52<_0x232996[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231d52+=0x2){let _0x42e55b=window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x232996[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x231d52,_0x231d52+0x2));_0x42e55b>=_0x485ae5[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42e55b-=_0x485ae5[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xde7f93+=_0x485ae5[_0x42e55b];}return _0xde7f93;}function _0x824216(){const _0x591dbd=_0x1db57a[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e]));if(0x3!=_0x591dbd[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a7ee1(_0x591dbd[0x1]);function _0x5a7ee1(_0x2765b2){const _0x34fc8e=_0x267a6f(_0x2765b2);return _0x34fc8e&&_0xfa0cc2()?_0x34fc8e:null;function _0xfa0cc2(){const _0x2b1dcb=_0x34fc8e[_0x43f50e([0x6a,0x74,0x69])],_0x46c6cb=window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b1dcb[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b1dcb[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f0a55={..._0x34fc8e,[_0x43f50e([0x6a,0x74,0x69])]:_0x2b1dcb[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b1dcb[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f0a55[_0x43f50e([0x76,0x63])],_0x3e3879(_0x4f0a55)==_0x46c6cb;}}}async function _0x4b11a3(){let _0x594ab7=!0x0;try{const _0x3aa485=_0x1db57a[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e])),[_0x254df2,_0x2cdb17,_0xbe4a96]=_0x3aa485;return _0x498e18(_0x254df2),await _0x2b0aff(_0x254df2,_0x2cdb17,_0xbe4a96),_0x594ab7;}catch(_0x2ef2e8){return!0x1;}function _0x498e18(_0x2e31b1){const _0x34ca75=_0x267a6f(_0x2e31b1);_0x34ca75&&_0x34ca75[_0x43f50e([0x61,0x6c,0x67])]==_0x43f50e([0x45,0x53,0x32,0x35,0x36])||(_0x594ab7=!0x1);}async function _0x2b0aff(_0x5905be,_0x50851e,_0x1d6b5e){const _0x36a3ab=window[_0x43f50e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43f50e([0x66,0x72,0x6f,0x6d])](_0xc0b2af(_0x1d6b5e),_0x4b346b=>_0x4b346b[_0x43f50e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x408b5f=new window[(_0x43f50e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43f50e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5905be+_0x43f50e([0x2e])+_0x50851e),_0x53c984=window[_0x43f50e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43f50e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53c984)return;const _0x5e045a=await _0x53c984[_0x43f50e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43f50e([0x6a,0x77,0x6b]),_0x86ef0d,{[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x45,0x43,0x44,0x53,0x41]),[_0x43f50e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43f50e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53c984[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x45,0x43,0x44,0x53,0x41]),[_0x43f50e([0x68,0x61,0x73,0x68])]:{[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e045a,_0x36a3ab,_0x408b5f)||(_0x594ab7=!0x1);}}function _0x267a6f(_0x1a1cae){return _0x1a1cae[_0x43f50e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43f50e([0x65,0x79]))?JSON[_0x43f50e([0x70,0x61,0x72,0x73,0x65])](_0xc0b2af(_0x1a1cae)):null;}function _0xc0b2af(_0x4668e8){return window[_0x43f50e([0x61,0x74,0x6f,0x62])](_0x4668e8[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43f50e([0x2b]))[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43f50e([0x2f])));}function _0x3e3879(_0x1bb6ae){let _0x5419df=0x1505;function _0x3636a2(_0x56c5e7){for(let _0x4da4ec=0x0;_0x4da4ec<_0x56c5e7[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4da4ec++){const _0x1f2001=_0x56c5e7[_0x43f50e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4da4ec);_0x5419df=(_0x5419df<<0x5)+_0x5419df+_0x1f2001,_0x5419df&=_0x5419df;}}function _0x20fd44(_0x3a1a99){Array[_0x43f50e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a1a99)?_0x3a1a99[_0x43f50e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20fd44):_0x3a1a99&&typeof _0x3a1a99==_0x43f50e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43f50e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a1a99)[_0x43f50e([0x73,0x6f,0x72,0x74])]()[_0x43f50e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17f5cc,_0x33b93a])=>{_0x3636a2(_0x17f5cc),_0x20fd44(_0x33b93a);}):_0x3636a2(window[_0x43f50e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a1a99));}return _0x20fd44(_0x1bb6ae),_0x5419df>>>0x0;}function _0x57eb94(_0x4c7be9){return _0x4c7be9[_0x43f50e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43f50e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43f50e([0x30]));}function _0x1cab47(_0x51d799){return _0x51d799[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43f50e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43f50e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c2299(_0x1b3472){return _0x388fb7[_0x43f50e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43f50e([0x68,0x61,0x73])](_0x1b3472);}function _0x1d7250(_0x2c5511){return _0x388fb7[_0x43f50e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43f50e([0x67,0x65,0x74])](_0x2c5511);}function _0x8f41e7(){}function _0x43f50e(_0x52bd22){return _0x52bd22['map'](_0x1e7b25=>String['fromCharCode'](_0x1e7b25))['join']('');}_0x4d37da(await _0x270ddc());}(this);}set['adapter'](_0x18a56c){if(this['_adapter'])throw new _0x5240f6('track-changes-adapter-already-set',this);this['_adapter']=_0x18a56c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3009d9=!0x1,toJSON:_0x57e394=!0x1}={}){const _0x4b72c9=[];for(const _0x253efa of this['_suggestions']['values']())_0x3009d9&&!_0x253efa['isInContent']||_0x4b72c9['push'](_0x253efa);return _0x57e394?_0x4b72c9['map'](_0x477860=>_0x477860['toJSON']()):_0x4b72c9;}['getSuggestion'](_0x1d447c){const _0x2ad9ee=this['_suggestions']['get'](_0x1d447c);if(!_0x2ad9ee)throw new _0x5240f6('track-changes-suggestion-not-found',this);return _0x2ad9ee;}['hasSuggestion'](_0x568a92){return this['_suggestions']['has'](_0x568a92);}['addSuggestionData'](_0x5aad54){const {authorId:_0x3e54f1,id:_0x215ad7,attributes:_0x80c68d}=_0x5aad54,[_0x1544bf,_0x483441]=_0x5aad54['type']['split'](':'),_0x3c8f7c=this['_suggestions']['get'](_0x215ad7)||this['_createSuggestion'](_0x1544bf,_0x483441,_0x215ad7,_0x3e54f1,_0x80c68d);if(this['_addThreadToSuggestion'](_0x3c8f7c),this['_checkSuggestionCorrectness'](_0x3c8f7c,_0x1544bf,_0x483441||null,_0x3e54f1),_0x3c8f7c['createdAt']=_0x5aad54['createdAt'],_0x3c8f7c['_isDataLoaded']=!0x0,_0x80c68d&&_0x80c68d['@external']){const _0xf8053a=_0x80c68d['@external'],_0x74b9c3=this['_getExternalAuthor'](_0xf8053a['authorName']);_0x3c8f7c['authoredAt']=_0xf8053a['createdAt'],_0x3c8f7c['author']=_0x74b9c3,_0x3c8f7c['isExternal']=!0x0;}else _0x3c8f7c['authoredAt']=_0x5aad54['createdAt'];switch(_0x5aad54['data']&&(_0x3c8f7c['data']=_0x5aad54['data']),_0x5aad54['attributes']&&(_0x3c8f7c['attributes']=_0x5aad54['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c8f7c['_saved']=!0x0),this['_suggestionState']['get'](_0x3c8f7c)){case'notReady':this['_suggestionState']['set'](_0x3c8f7c,'dataReady');break;case'markerReady':_0x3c8f7c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c8f7c])),this['_refreshSuggestionsChain'](new Set([_0x3c8f7c])),this['_suggestionState']['set'](_0x3c8f7c,'ready'),this['fire']('suggestionLoaded',_0x3c8f7c)):this['_suggestionState']['set'](_0x3c8f7c,'removed');}return _0x3c8f7c;}['acceptSuggestion'](_0x19ad09){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x39deb4 of _0x19ad09['getAllAdjacentSuggestions']())_0x39deb4['accept']();});});}['discardSuggestion'](_0x52b9f5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35a1bf of _0x52b9f5['getAllAdjacentSuggestions']())_0x35a1bf['discard']();});});}['enableCommand'](_0x2d0ad1,_0x437998){const _0x5714ae=this['editor']['commands']['get'](_0x2d0ad1);if(!_0x5714ae)throw new _0x5240f6('track-changes-command-not-found',this,{'commandName':_0x2d0ad1});if(this['_enabledCommands']['has'](_0x5714ae))throw new _0x5240f6('track-changes-enable-command-twice',this,{'commandName':_0x2d0ad1});this['_enabledCommands']['add'](_0x5714ae),_0x437998&&_0x5714ae['on']('execute',(_0x6d5723,_0x385024)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x385024['length']>0x0&&_0x385024[_0x385024['length']-0x1]&&_0x385024[_0x385024['length']-0x1]['forceDefaultExecution']?_0x385024['pop']():(_0x6d5723['return']=_0x437998((..._0x55e762)=>_0x5714ae['execute'](..._0x55e762,{'forceDefaultExecution':!0x0}),..._0x385024),_0x6d5723['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4293c0){let _0x461126,_0x647ef;const _0x139879=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x461126=_0x4293c0();}catch(_0x1439c3){_0x647ef=_0x1439c3;}return _0x139879||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x647ef&&_0x5240f6['rethrowUnexpectedError'](_0x647ef,this),_0x461126;}['markInsertion'](_0x4ecdd1,_0x3a877c=null,_0x8df20={}){if(_0x4ecdd1['isCollapsed'])return null;const _0x235e3a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x52775f,meta:_0x4915cc}of this['_findSuggestions'](_0x4ecdd1,'insertion'))if(_0x4915cc['isOwn']){if(!_0x4915cc['isNextTo']){if(_0x4915cc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x52775f,_0x8df20))continue;return _0x52775f;}if(Xt(_0x52775f,_0x8df20))return _0x52775f;this['_breakSuggestionMarker'](_0x52775f,_0x4ecdd1['start'],_0x4ecdd1['end']);break;}if(_0x3a877c==_0x52775f['subType']&&Xt(_0x52775f,_0x8df20)){const _0x271179=_0x52775f['getFirstRange']();return _0x271179['start']['isEqual'](_0x4ecdd1['end'])?this['_setSuggestionRange'](_0x52775f,this['_model']['createRange'](_0x4ecdd1['start'],_0x271179['end'])):this['_setSuggestionRange'](_0x52775f,this['_model']['createRange'](_0x271179['start'],_0x4ecdd1['end'])),_0x52775f;}}const _0x26e7ee=_0xf1d1da(),_0x209170=_0x235e3a['id'],_0x146957=_0x3a877c?'insertion:'+_0x3a877c:'insertion',_0x5222b1=this['_setSuggestionData']({'id':_0x26e7ee,'type':_0x146957,'createdAt':new Date(),'authorId':_0x209170,'attributes':_0x8df20});return this['_addSuggestionMarker'](_0x146957,_0x26e7ee,_0x209170,_0x4ecdd1),_0x5222b1;}['markMultiRangeInsertion'](_0x1d4581,_0x2d465e='multi',_0x1629a3={}){const _0xb7e41c=this['editor']['plugins']['get']('Users')['me'],_0x5e33de=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d465e,'join');for(const _0x497857 of this['getSuggestions']())if(_0x497857['author']['id']==_0xb7e41c['id']&&'insertion'==_0x497857['type']&&_0x497857['subType']==_0x2d465e&&Xt(_0x497857,_0x1629a3)&&(_0x5e33de(_0x497857['getRanges'](),_0x1d4581)||_0x5e33de(_0x1d4581,_0x497857['getRanges']()))){for(const _0x40db7b of _0x1d4581)_0x497857['addRange'](_0x40db7b);return _0x497857;}for(const {suggestion:_0x54643a,meta:_0x58fc96}of this['_findSuggestions'](_0x1d4581,'insertion')){if(!_0x58fc96['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x58fc96['containsRangeInObject'])continue;if(!Xt(_0x54643a,_0x1629a3))continue;let _0x2aa11a=!0x0;for(const _0x1639ad of _0x54643a['getRanges']())for(const _0x2666c6 of _0x1d4581)if(!_0x1639ad['containsRange'](_0x2666c6)){_0x2aa11a=!0x1;break;}if(_0x2aa11a)return _0x54643a;}const _0x322e4f=_0xf1d1da(),_0x428d4e=_0xb7e41c['id'],_0x43ab2a='insertion:'+_0x2d465e,_0x11476b=this['_setSuggestionData']({'id':_0x322e4f,'type':_0x43ab2a,'createdAt':new Date(),'authorId':_0x428d4e,'attributes':_0x1629a3});for(const _0x4e1c2a of _0x1d4581)this['_addSuggestionMarker'](_0x43ab2a,_0x322e4f,_0x428d4e,_0x4e1c2a,o['getMultiRangeId']());return _0x11476b;}['markInlineFormat'](_0x1666f0,_0xe8850e,_0x130db7=null,_0x3b477e={}){if(_0x130db7=_0x130db7||Kt(_0xe8850e),_0x1666f0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f308=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x130db7,'accept');return this['forceDefaultExecution'](()=>_0x1f308([_0x1666f0],_0xe8850e,_0x3b477e)),null;}const _0x50c561=this['editor']['plugins']['get']('Users')['me'],_0x2b8755=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5ab6cc,meta:_0x48b678}of this['_findSuggestions'](_0x1666f0,'insertion'))_0x48b678['isOwn']&&!_0x48b678['isInsideObject']&&_0x2b8755['push'](..._0x5ab6cc['getRanges']());}const _0x320004=function(_0x3bbcb6,_0x2ef1b0){const _0x1fc610=[];for(const _0x3b0d0f of _0x2ef1b0){const _0x3de3dc=_0x3bbcb6['getIntersection'](_0x3b0d0f);_0x3de3dc&&_0x1fc610['push'](_0x3de3dc);}return _0x1fc610;}(_0x1666f0,_0x2b8755),_0x3fd737=function(_0xe38573,_0x3e1d6c){const _0x1d9bd3=[_0xe38573];for(const _0x5e5bcb of _0x3e1d6c){let _0x3c78d9=0x0;for(;_0x3c78d9<_0x1d9bd3['length'];){const _0x5accc6=_0x1d9bd3[_0x3c78d9]['getDifference'](_0x5e5bcb);_0x1d9bd3['splice'](_0x3c78d9,0x1,..._0x5accc6),_0x3c78d9+=_0x5accc6['length'];}}return _0x1d9bd3;}(_0x1666f0,_0x2b8755);_0x320004['length']&&this['_model']['change'](()=>{for(const _0x45a7c0 of _0x320004){const _0x32620e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x130db7,'accept');this['forceDefaultExecution'](()=>_0x32620e([_0x45a7c0],_0xe8850e,_0x3b477e));}});for(const _0x28ab10 of _0x3fd737){let _0xd03085=null,_0x334529=_0x28ab10['start'],_0x447c5e=_0x28ab10['end'];for(const {suggestion:_0x3df24a,meta:_0x35cf78}of this['_findSuggestions'](_0x28ab10,'formatInline')){if(!_0x35cf78['isOwn'])continue;if(_0x3df24a['subType']!=_0x130db7)continue;if(!Xt(_0x3df24a,_0x3b477e))continue;const _0x11257d=_0x3df24a['getFirstRange']();if(_0x11257d['containsRange'](_0x28ab10,!0x0))return null;_0x334529=_0x334529['isBefore'](_0x11257d['start'])?_0x334529:_0x11257d['start'],_0x447c5e=_0x447c5e['isAfter'](_0x11257d['end'])?_0x447c5e:_0x11257d['end'],_0xd03085?_0x11257d['start']['isBefore'](_0xd03085['getFirstRange']()['start'])?(_0xd03085['removeMarkers'](),_0xd03085=_0x3df24a):_0x3df24a['removeMarkers']():_0xd03085=_0x3df24a;}const _0x554e6b=this['_model']['createRange'](_0x334529,_0x447c5e);if(_0xd03085)this['_setSuggestionRange'](_0xd03085,_0x554e6b);else{const _0x468865=_0xf1d1da(),_0x33c39c=_0x50c561['id'];this['_setSuggestionData']({'id':_0x468865,'type':'formatInline:'+_0x130db7,'data':_0xe8850e,'createdAt':new Date(),'authorId':_0x33c39c,'attributes':_0x3b477e}),this['_addSuggestionMarker']('formatInline:'+_0x130db7,_0x468865,_0x33c39c,_0x554e6b);}}return null;}['markBlockFormat'](_0x2c521a,_0x18b9e4,_0x2613eb=[],_0x1310ce=null,_0x28cf9d={}){_0x18b9e4['formatGroupId']||(_0x18b9e4['formatGroupId']=_0x18b9e4['commandName']),_0x18b9e4['multipleBlocks']=_0x2c521a['is']('range'),_0x1310ce=_0x1310ce||Kt(_0x18b9e4);const _0x2609d0=_0x2613eb['map'](_0x1a2091=>zt(_0x1a2091,this['_model'])),_0x30d3c0=_0x2c521a['is']('range')?_0x2c521a:zt(_0x2c521a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x23478d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1310ce,'accept');return this['forceDefaultExecution'](()=>_0x23478d([_0x30d3c0],_0x18b9e4,_0x28cf9d)),null;}_0x2609d0['push'](_0x30d3c0);let _0x31ef43=!0x0;for(const _0x4d9d9a of _0x2609d0)if(!this['_rangeIsInLocalUserInsertion'](_0x4d9d9a)){_0x31ef43=!0x1;break;}if(_0x31ef43&&'always'!==this['_trackFormatChanges']){const _0x20d3a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1310ce,'accept');return this['forceDefaultExecution'](()=>_0x20d3a7([_0x30d3c0],_0x18b9e4,_0x28cf9d)),null;}let _0x492a52=null,_0xe06b5c=_0x30d3c0['start'],_0x26b5ce=_0x30d3c0['end'];for(const {suggestion:_0x5aae6e,meta:_0x10842b}of this['_findSuggestions'](_0x30d3c0,'formatBlock')){if(!_0x10842b['isOwn'])continue;if(_0x10842b['isNextTo']||_0x10842b['containsRangeInObject']||_0x10842b['isInsideObject'])continue;if(_0x5aae6e['data']['formatGroupId']!=_0x18b9e4['formatGroupId'])continue;if(!Xt(_0x5aae6e,_0x28cf9d))continue;const _0x1c08bd=_0x5aae6e['getFirstRange']();if(_0x5aae6e['subType']==_0x1310ce){if(_0x1c08bd['containsRange'](_0x30d3c0,!0x0))return null;_0xe06b5c=_0xe06b5c['isBefore'](_0x1c08bd['start'])?_0xe06b5c:_0x1c08bd['start'],_0x26b5ce=_0x26b5ce['isAfter'](_0x1c08bd['end'])?_0x26b5ce:_0x1c08bd['end'],_0x492a52?_0x1c08bd['start']['isBefore'](_0x492a52['getFirstRange']()['start'])?(_0x492a52['removeMarkers'](),_0x492a52=_0x5aae6e):_0x5aae6e['removeMarkers']():_0x492a52=_0x5aae6e;}else{const _0x19d69d=_0x30d3c0['getIntersection'](_0x1c08bd);this['_cutOutSuggestionMarker'](_0x5aae6e,_0x19d69d);}}const _0x27389b=this['editor']['plugins']['get']('Users')['me'],_0x116216=_0xf1d1da(),_0x440784=_0x27389b['id'];if(_0x492a52)return this['_setSuggestionRange'](_0x492a52,this['_model']['createRange'](_0xe06b5c,_0x26b5ce)),_0x492a52;{const _0x4f906b=this['_setSuggestionData']({'id':_0x116216,'type':'formatBlock:'+_0x1310ce,'data':_0x18b9e4,'createdAt':new Date(),'authorId':_0x440784,'attributes':_0x28cf9d});return this['_addSuggestionMarker']('formatBlock:'+_0x1310ce,_0x116216,_0x440784,this['_model']['createRange'](_0xe06b5c,_0x26b5ce)),_0x4f906b;}}['markMultiRangeBlockFormat'](_0x12680f,_0x2f7ef3,_0x3c7d66=[],_0x11d981=null,_0x1ba9fd={}){_0x2f7ef3['formatGroupId']||(_0x2f7ef3['formatGroupId']=_0x2f7ef3['commandName']);const _0x116c2b=_0x12680f[0x0];_0x2f7ef3['multipleBlocks']=_0x116c2b['is']('range'),_0x11d981=_0x11d981||Kt(_0x2f7ef3);const _0x3b6deb=_0x3c7d66['map'](_0x1614f3=>zt(_0x1614f3,this['_model'])),_0x317c5b=_0x116c2b['is']('range')?_0x12680f:_0x12680f['map'](_0x433488=>zt(_0x433488,this['_model']));if('never'===this['_trackFormatChanges']){const _0x426fa3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'accept');return this['forceDefaultExecution'](()=>_0x426fa3(_0x317c5b,_0x2f7ef3,_0x1ba9fd)),null;}_0x3b6deb['push'](..._0x317c5b);let _0x52eb01=!0x0;for(const _0x4537f7 of _0x3b6deb)if(!this['_rangeIsInLocalUserInsertion'](_0x4537f7)){_0x52eb01=!0x1;break;}if(_0x52eb01&&'always'!==this['_trackFormatChanges']){const _0x5a191b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'accept');return this['forceDefaultExecution'](()=>_0x5a191b(_0x317c5b,_0x2f7ef3,_0x1ba9fd)),null;}const _0x5dfb56=this['editor']['plugins']['get']('Users')['me'];for(const _0x4513f4 of this['getSuggestions']()){if(_0x4513f4['author']['id']!=_0x5dfb56['id'])continue;if('formatBlock'!=_0x4513f4['type']||_0x4513f4['data']['formatGroupId']!=_0x2f7ef3['formatGroupId'])continue;if(!Xt(_0x4513f4,_0x1ba9fd))continue;const _0x3895fb=_0x4513f4['subType']==_0x11d981;for(let _0x3014be=0x0;_0x3014be<_0x317c5b['length'];_0x3014be++){const _0xee7090=_0x317c5b[_0x3014be];for(const _0x3d0ce0 of _0x4513f4['getMarkers']()){const _0x48f0f2=_0x3d0ce0['getRange']();if(_0xee7090['isEqual'](_0x48f0f2)){_0x3895fb?(_0x317c5b['splice'](_0x3014be,0x1),_0x3014be--):_0x4513f4['removeMarker'](_0x3d0ce0['name']);break;}}}}if(0x0==_0x317c5b['length'])return null;const _0x114a3a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'join');for(const _0x50e9b9 of this['getSuggestions']())if(_0x50e9b9['author']['id']==_0x5dfb56['id']&&'formatBlock'==_0x50e9b9['type']&&_0x50e9b9['data']['formatGroupId']==_0x2f7ef3['formatGroupId']&&_0x50e9b9['subType']==_0x11d981&&Xt(_0x50e9b9,_0x1ba9fd)&&(_0x114a3a(_0x50e9b9['getRanges'](),_0x317c5b)||_0x114a3a(_0x317c5b,_0x50e9b9['getRanges']()))){for(const _0x4499e1 of _0x317c5b)_0x50e9b9['addRange'](_0x4499e1);return _0x50e9b9;}const _0x3d6a88=_0xf1d1da(),_0x5a3525=_0x5dfb56['id'],_0x1f12d1='formatBlock:'+_0x11d981,_0x1b6902=this['_setSuggestionData']({'id':_0x3d6a88,'type':_0x1f12d1,'data':_0x2f7ef3,'createdAt':new Date(),'authorId':_0x5a3525,'attributes':_0x1ba9fd});for(const _0x2ac965 of _0x317c5b)this['_addSuggestionMarker'](_0x1f12d1,_0x3d6a88,_0x5a3525,_0x2ac965,o['getMultiRangeId']());return _0x1b6902;}['markDeletion'](_0x1d9fb1,_0x12344b=null,_0x471115={}){if(_0x1d9fb1['isCollapsed'])return null;const _0x40c15f=this['editor']['plugins']['get']('Users')['me'],_0x5e4153=new _0x1ffa61(_0x1d9fb1['start'],_0x1d9fb1['end']);for(const {suggestion:_0x25880d,meta:_0x3bc0dc}of this['_findSuggestions'](_0x5e4153,'insertion'))if(_0x3bc0dc['isOwn']&&!_0x3bc0dc['isNextTo']){if(_0x25880d['isMultiRange']){const _0xb542c9=_0x25880d['getRanges']()['filter'](_0x20b6a6=>'$graveyard'!=_0x20b6a6['root']['rootName']);_0xb542c9['every'](_0x37c3da=>_0x5e4153['containsRange'](_0x37c3da,!0x0))&&_0x25880d['discard']();if(_0xb542c9['some'](_0x24fc7a=>_0x24fc7a['containsRange'](_0x5e4153,!0x0))){const _0x55b2bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12344b,'accept');return this['forceDefaultExecution'](()=>_0x55b2bc([_0x5e4153],null,_0x471115)),null;}}else{const _0x44a2f1=_0x5e4153['getIntersection'](_0x25880d['getFirstRange']());null!==_0x44a2f1&&_0x25880d['_onDiscard']([_0x44a2f1],null,_0x471115);}}if(_0x5e4153['detach'](),_0x5e4153['isCollapsed']||'$graveyard'==_0x5e4153['root']['rootName'])return null;let _0x1a731e=null,_0x5cb880=_0x5e4153['start'],_0x6af797=_0x5e4153['end'];const _0x5df735=this['_findSuggestions'](_0x5e4153,'deletion');for(const {suggestion:_0x389eeb,meta:_0x1995f1}of _0x5df735){const _0x93ccab=this['_model']['createRange'](_0x5cb880,_0x6af797);if(_0x1995f1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1995f1['containsRangeInObject']&&!_0x1995f1['isInsideObject'])){if(_0x389eeb['isMultiRange']){if(!Xt(_0x389eeb,_0x471115))continue;let _0x222218=!0x0;for(const _0x24de34 of _0x389eeb['getRanges']()){if(_0x24de34['containsRange'](_0x93ccab,!0x0))return _0x389eeb;_0x93ccab['containsRange'](_0x24de34)||(_0x222218=!0x1);}_0x222218&&_0x389eeb['discard']();}else{const _0x571c56=_0x389eeb['getFirstRange']();if(_0x571c56['containsRange'](_0x93ccab,!0x0))return _0x389eeb;if(!Xt(_0x389eeb,_0x471115)){_0x93ccab['containsRange'](_0x571c56)?_0x389eeb['removeMarkers']():_0x571c56['containsPosition'](_0x5cb880)?_0x5cb880=_0x571c56['end']:_0x571c56['containsPosition'](_0x6af797)&&(_0x6af797=_0x571c56['start']);continue;}_0x5cb880=_0x5cb880['isBefore'](_0x571c56['start'])?_0x5cb880:_0x571c56['start'],_0x6af797=_0x6af797['isAfter'](_0x571c56['end'])?_0x6af797:_0x571c56['end'],_0x471115=Object['assign']({},_0x389eeb['attributes']),_0x1a731e?_0x571c56['start']['isBefore'](_0x1a731e['getFirstRange']()['start'])?(_0x1a731e['removeMarkers'](),_0x1a731e=_0x389eeb):_0x389eeb['removeMarkers']():_0x1a731e=_0x389eeb;}}}if(_0x1a731e)return this['_setSuggestionRange'](_0x1a731e,this['_model']['createRange'](_0x5cb880,_0x6af797)),_0x1a731e;{const _0x539ca8=_0xf1d1da(),_0x2c8ef8=this['_model']['createRange'](_0x5cb880,_0x6af797),_0x10c687=_0x40c15f['id'],_0x2c955f=_0x12344b?'deletion:'+_0x12344b:'deletion',_0x13cc9f=this['_setSuggestionData']({'id':_0x539ca8,'type':_0x2c955f,'createdAt':new Date(),'authorId':_0x10c687,'attributes':_0x471115});return this['_addSuggestionMarker'](_0x2c955f,_0x539ca8,_0x10c687,_0x2c8ef8),_0x13cc9f;}}['markMultiRangeDeletion'](_0x2fe096,_0x4240ec='multi',_0x1a5714={}){const _0x58f0ac=this['editor']['plugins']['get']('Users')['me'],_0xbbadb0=_0x2fe096['map'](_0x1f14ff=>new _0x1ffa61(_0x1f14ff['start'],_0x1f14ff['end'])),_0x452a49=new Set();for(const {suggestion:_0x39b6d6,meta:_0x4b469b}of this['_findSuggestions'](_0xbbadb0,'insertion'))_0x4b469b['isOwn']&&!_0x4b469b['isNextTo']&&_0x452a49['add'](_0x39b6d6);for(const _0x5a6b07 of _0x452a49)if(_0x5a6b07['isMultiRange']){const _0xc15b5a=_0x5a6b07['getRanges']();(!_0x5a6b07['attributes']||!_0x5a6b07['attributes']['skipNestingCheck'])&&(_0xc15b5a['every'](_0x4423aa=>_0xbbadb0['some'](_0x2b0fc2=>_0x2b0fc2['containsRange'](_0x4423aa,!0x0)))&&_0x5a6b07['discard']());if(_0xbbadb0['every'](_0x5cdb37=>_0xc15b5a['some'](_0x24f8cf=>_0x24f8cf['containsRange'](_0x5cdb37,!0x0)))){const _0x3b8037=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'accept');return this['forceDefaultExecution'](()=>_0x3b8037(_0x2fe096,null,_0x1a5714)),null;}}else{const _0x2442e1=_0x5a6b07['getFirstRange']();_0xbbadb0['some'](_0x455573=>_0x455573['containsRange'](_0x2442e1,!0x0))&&_0x5a6b07['discard']();if(_0xbbadb0['every'](_0x4b8537=>_0x2442e1['containsRange'](_0x4b8537,!0x0))){const _0x34beb8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'accept');return this['forceDefaultExecution'](()=>_0x34beb8(_0xbbadb0,null,_0x1a5714)),null;}}const _0x257c97=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'join');let _0x51ea57=null;for(const _0x28a33c of this['getSuggestions']())if(_0x28a33c['author']['id']==_0x58f0ac['id']&&_0x28a33c['isInContent']&&'deletion'==_0x28a33c['type']&&_0x28a33c['subType']==_0x4240ec&&Xt(_0x28a33c,_0x1a5714)&&(_0x257c97(_0x28a33c['getRanges'](),_0xbbadb0)||_0x257c97(_0xbbadb0,_0x28a33c['getRanges']()))){if(_0x51ea57){if(_0x28a33c['commentThread']&&_0x28a33c['commentThread']['length'])continue;for(const _0x2bf364 of _0x28a33c['getRanges']())_0x51ea57['isIntersectingWithRange'](_0x2bf364)||_0x51ea57['addRange'](_0x2bf364);_0x28a33c['removeMarkers']();}else{_0x51ea57=_0x28a33c;for(const _0x55716a of _0xbbadb0)_0x28a33c['isIntersectingWithRange'](_0x55716a)||_0x28a33c['addRange'](_0x55716a);}}if(_0x51ea57)return _0x51ea57;_0x452a49['clear']();for(const {suggestion:_0x116137,meta:_0xfd09b7}of this['_findSuggestions'](_0xbbadb0,'deletion'))_0xfd09b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfd09b7['containsRangeInObject']&&!_0xfd09b7['isInsideObject'])&&Xt(_0x116137,_0x1a5714)&&_0x452a49['add'](_0x116137);for(const _0x4b488d of _0x452a49){const _0x2788eb=_0x4b488d['getRanges']();if(!_0x1a5714||!_0x1a5714['skipNestingCheck']){if(_0xbbadb0['every'](_0xec7613=>_0x2788eb['some'](_0x1c4b8d=>_0x1c4b8d['containsRange'](_0xec7613,!0x0))))return _0x4b488d;}(!_0x4b488d['attributes']||!_0x4b488d['attributes']['skipNestingCheck'])&&(_0x2788eb['every'](_0x3bc271=>_0xbbadb0['some'](_0x3243c8=>_0x3243c8['containsRange'](_0x3bc271,!0x0)))&&_0x4b488d['discard']());}const _0x4ffb12=_0xf1d1da(),_0x91d58f=_0x58f0ac['id'],_0x436eb4='deletion:'+_0x4240ec,_0x3e3347=this['_setSuggestionData']({'id':_0x4ffb12,'type':_0x436eb4,'createdAt':new Date(),'authorId':_0x91d58f,'attributes':_0x1a5714});for(const _0x570678 of _0xbbadb0)_0x570678['detach'](),_0x570678['isCollapsed']||'$graveyard'==_0x570678['root']['rootName']||this['_addSuggestionMarker'](_0x436eb4,_0x4ffb12,_0x91d58f,_0x570678,o['getMultiRangeId']());return _0x3e3347;}['markAttributeChange'](_0x3addad,_0x2ff42f,_0x423562,_0x506d42,_0x68765a){if(_0x3addad['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x18fb3c=this['editor']['plugins']['get']('Users')['me']['id'],_0x43d39e=Array['from'](this['_suggestions']['values']())['filter'](_0x40d931=>'attribute'==_0x40d931['type']&&_0x40d931['data']['key']==_0x2ff42f&&_0x40d931['isIntersectingWithRange'](_0x3addad));if('default'===this['_trackFormatChanges']){const _0x4365a0=this['_findSuggestions'](_0x3addad,'insertion')['filter'](({meta:_0x224876})=>_0x224876['isOwn']&&!_0x224876['isInsideObject']&&!_0x224876['isNextTo'])['map'](({suggestion:_0x24b5d8})=>_0x24b5d8);_0x43d39e['unshift'](..._0x4365a0);}const _0x4f7339=new Map([[_0x3addad,_0x423562]]);for(const _0x4293cc of _0x43d39e){const _0x313d3e='attribute'==_0x4293cc['type']?_0x4293cc['data']['oldValue']:void 0x0,_0x26ab2c=_0x4293cc['getFirstRange'](),_0xc7f9e1=Array['from'](_0x4f7339['keys']())['find'](_0x18830c=>_0x18830c['isIntersecting'](_0x26ab2c));if(!_0xc7f9e1)continue;const _0x5cddb1=_0xc7f9e1['getDifference'](_0x26ab2c);this['_isBlockAttribute'](_0x2ff42f)&&'insertion'==_0x4293cc['type']&&0x0!=_0x5cddb1['length']||(_0x4f7339['delete'](_0xc7f9e1),_0x5cddb1['forEach'](_0x5110b5=>{_0x4f7339['set'](_0x5110b5,_0x423562);}),'insertion'!=_0x4293cc['type']&&_0x313d3e!=_0x506d42&&_0x4f7339['set'](_0xc7f9e1['getIntersection'](_0x26ab2c),_0x313d3e));}const _0x1890e8=[];for(const [_0x5bd54f,_0x4d9b38]of _0x4f7339){const _0x2fae6b=_0xf1d1da(),_0x253871={'key':_0x2ff42f,'oldValue':_0x4d9b38,'newValue':_0x506d42};_0x2ff42f['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x2ff42f});const _0x59761c=('attribute:'+(_0x2ff42f+'|'+Kt({'newValue':_0x506d42})))['substring'](0x0,0x3c),_0x2f6f5d=this['_setSuggestionData']({'id':_0x2fae6b,'type':_0x59761c,'data':_0x253871,'createdAt':new Date(),'authorId':_0x18fb3c,'attributes':_0x68765a});_0x1890e8['push'](_0x2f6f5d),this['_addSuggestionMarker'](_0x59761c,_0x2fae6b,_0x18fb3c,_0x5bd54f);}return _0x1890e8;}['enableDefaultAttributesIntegration'](_0x550690){this['enableCommand'](_0x550690,(_0x52573f,..._0x404882)=>{this['_recordAttributeChanges'](()=>{_0x52573f(..._0x404882);});});}['registerBlockAttribute'](_0x1b292f){this['_blockAttributeKeys']['add'](_0x1b292f);}['registerInlineAttribute'](_0x92b12e){this['_inlineAttributeKeys']['add'](_0x92b12e);}['_getAttributeKey'](_0x2fb4ad){return'attribute'==_0x2fb4ad['type']?_0x2fb4ad['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15ee23,_0x56c077){const _0x171850=_0x15ee23['getFirstMarker']();this['_model']['change'](_0x52192e=>{_0x52192e['updateMarker'](_0x171850,{'range':_0x56c077});});}['_addThreadToSuggestion'](_0x3603e6){const _0x55eaa5=_0x3603e6['id'],_0x4015e9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x55eaa5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4015e9,'threadId':_0x55eaa5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b5329=this['_commentsRepository']['getCommentThread'](_0x55eaa5);_0x2b5329['unbind']('isRemovable'),_0x2b5329['isRemovable']=!0x1,_0x3603e6['commentThread']=_0x2b5329;}['_checkSuggestionCorrectness'](_0x5e2a69,_0x3f8a07,_0x353100,_0x39d00f){if(_0x5e2a69['type']!=_0x3f8a07||_0x5e2a69['subType']!=_0x353100||_0x5e2a69['creator']['id']!=_0x39d00f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5240f6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xbecb32,_0x5437fd){const _0x5ee246=_0xbecb32['getFirstRange']();if(_0x5437fd['isEqual'](_0x5ee246))_0xbecb32['removeMarkers']();else{if(_0x5ee246['containsRange'](_0x5437fd)){const _0x1b038c=this['_model']['createPositionAt'](_0x5437fd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x5ee246['start'],_0x1b038c));const _0x443625=_0xf1d1da(),_0x505a44=_0xbecb32['creator']['id'],_0x232949=_0xbecb32['type']+':'+_0xbecb32['subType'];this['_setSuggestionData']({'id':_0x443625,'type':_0x232949,'createdAt':new Date(),'authorId':_0x505a44,'data':_0xbecb32['data'],'attributes':_0xbecb32['attributes']});const _0x4f412b=this['_model']['createPositionAt'](_0x5437fd['end']['parent'],'after'),_0x46932b=this['_model']['createRange'](_0x4f412b,_0x5ee246['end']);this['_addSuggestionMarker'](_0x232949,_0x443625,_0x505a44,_0x46932b);}else{if(_0x5ee246['containsPosition'](_0x5437fd['start'])){const _0x3d5a95=this['_model']['createPositionAt'](_0x5437fd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x5ee246['start'],_0x3d5a95));}else{const _0x1f4b75=this['_model']['createPositionAt'](_0x5437fd['end']['parent'],'after');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x1f4b75,_0x5ee246['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5363c9){for(const {suggestion:_0xa636aa,meta:_0x31a9a9}of this['_findSuggestions'](_0x5363c9,'insertion')){if(!_0x31a9a9['isOwn'])continue;const _0x14482e=_0xa636aa['getRanges']();for(const _0x323b14 of _0x14482e)if(!_0x5363c9['getDifference'](_0x323b14)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3871b1){const _0x4ec554=this['editor']['plugins']['get']('Users')['getUser'](_0x3871b1);if(!_0x4ec554)throw new _0x5240f6('track-changes-user-not-found',this);return _0x4ec554;}['_getExternalAuthor'](_0x226228){const _0x4c30c4=this['editor']['plugins']['get']('Users'),_0x500a49=_0x583c01('external:'+_0x226228),_0x1433ba=_0x4c30c4['getUser'](_0x500a49);return _0x1433ba||_0x4c30c4['addUser']({'id':_0x500a49,'name':_0x226228});}['_createSuggestion'](_0x1fa0f8,_0x469e34,_0x58ecf4,_0x217716,_0x3682ee){const _0x192833=this['_getAuthorFromId'](_0x217716),_0x50d5b0=this['_suggestionFactory']['buildSuggestion'](_0x1fa0f8,_0x469e34,_0x58ecf4,_0x192833,_0x3682ee,_0x13094a=>{this['_updateSuggestionData'](_0x58ecf4,{'attributes':_0x13094a});const _0xca9844=this['getSuggestion'](_0x58ecf4);this['_joinWithAdjacentSuggestions'](new Set([_0xca9844])),this['_refreshSuggestionsChain'](new Set([_0xca9844]));});return this['listenTo'](_0x50d5b0,'accept',()=>{this['_updateSuggestionData'](_0x58ecf4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x50d5b0,'discard',()=>{this['_updateSuggestionData'](_0x58ecf4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58ecf4,_0x50d5b0),this['_suggestionState']['set'](_0x50d5b0,'notReady'),_0x50d5b0;}['_splitMarkerName'](_0xacb9a2){const _0xc5fb10=_0xacb9a2['split'](':');return{'group':_0xc5fb10[0x0],'type':_0xc5fb10[0x1],'subType':_0xc5fb10['length']>=0x5?_0xc5fb10[0x2]:null,'id':_0xc5fb10['length']<0x5?_0xc5fb10[0x2]:_0xc5fb10[0x3],'authorId':_0xc5fb10['length']<0x5?_0xc5fb10[0x3]:_0xc5fb10[0x4],'markerCount':0x6==_0xc5fb10['length']?_0xc5fb10[0x5]:null};}['_breakSuggestionMarker'](_0x456d3b,_0x45307b,_0x15015a){const _0x29236d=_0x456d3b['getFirstRange'](),_0x4cbbd8=_0x29236d['start'],_0xed9c2f=_0x29236d['end'];this['_setSuggestionRange'](_0x456d3b,this['_model']['createRange'](_0x4cbbd8,_0x45307b));const _0x972158=_0xf1d1da(),_0x2b3c6c=_0x456d3b['creator']['id'],_0x1dd0b3=_0x456d3b['type']+(_0x456d3b['subType']?':'+_0x456d3b['subType']:'');this['_setSuggestionData']({'id':_0x972158,'type':_0x1dd0b3,'createdAt':new Date(),'authorId':_0x2b3c6c,'originalSuggestionId':_0x456d3b['id'],'attributes':_0x456d3b['attributes'],'data':_0x456d3b['data']});const _0x41f70b=this['_getAttributeKey'](_0x456d3b);('formatBlock'==_0x456d3b['type']||_0x41f70b&&this['_isBlockAttribute'](_0x41f70b))&&(_0x15015a=this['_model']['createPositionBefore'](_0x15015a['parent'])),this['_addSuggestionMarker'](_0x1dd0b3,_0x972158,_0x2b3c6c,this['_model']['createRange'](_0x15015a,_0xed9c2f));}['_findSuggestions'](_0x27d08c,_0x29c3aa=null){const _0xff94d2=[],_0x134bf5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27d08c)||(_0x27d08c=[_0x27d08c]);for(const _0x266f00 of this['getSuggestions']()){if(!_0x266f00['isInContent'])continue;if(_0x29c3aa&&_0x266f00['type']!=_0x29c3aa)continue;let _0xf5611a=!0x1;for(const _0x3f0e0d of _0x266f00['getRanges']()){for(const _0x3b7715 of _0x27d08c){const _0x1dca2f=_0x3b7715['start']['isEqual'](_0x3f0e0d['end'])||_0x3b7715['end']['isEqual'](_0x3f0e0d['start']);if(_0x1dca2f||_0x3b7715['getIntersection'](_0x3f0e0d)){const _0xdfafa9=_0x3b7715['containsRange'](_0x3f0e0d)&&Gt(this['_model']['schema'],_0x3f0e0d['start'],_0x3b7715),_0x1be09a=_0x3f0e0d['containsRange'](_0x3b7715)&&Gt(this['_model']['schema'],_0x3b7715['start'],_0x3f0e0d);_0xff94d2['push']({'suggestion':_0x266f00,'meta':{'isOwn':_0x134bf5==_0x266f00['author'],'isNextTo':_0x1dca2f,'isInsideObject':_0xdfafa9,'containsRangeInObject':_0x1be09a}}),_0xf5611a=!0x0;break;}}if(_0xf5611a)break;}}return _0xff94d2;}['_addSuggestionMarker'](_0x350d0e,_0x42d0b9,_0x4337df,_0x425a33,_0x47adb7){this['_model']['change'](_0x31572b=>{let _0x356965='suggestion:'+_0x350d0e+':'+_0x42d0b9+':'+_0x4337df;_0x47adb7&&(_0x356965=_0x356965+':'+_0x47adb7),_0x31572b['addMarker'](_0x356965,{'range':_0x425a33,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x523bbe){const _0x4bbe03=_0x523bbe['previous'],_0x29d480=_0x523bbe['next'];_0x523bbe['previous']=null,_0x523bbe['next']=null,null!=_0x4bbe03&&_0x4bbe03['next']==_0x523bbe&&(_0x4bbe03['next']=_0x29d480),null!=_0x29d480&&_0x29d480['previous']==_0x523bbe&&(_0x29d480['previous']=_0x4bbe03),'ready'==this['_suggestionState']['get'](_0x523bbe)&&(this['_suggestionState']['set'](_0x523bbe,'removed'),this['fire']('suggestionUnloaded',_0x523bbe,_0x4bbe03,_0x29d480));}['_setSuggestionData'](_0x39cd10){const _0x3db4bd=_0x39cd10['id'],_0x205d03=this['addSuggestionData'](_0x39cd10);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10432e=this['editor']['plugins']['get']('PendingActions'),_0x43b884=_0x205d03['hasComments'],_0x3ef9f0=_0x205d03['subType']?_0x205d03['type']+':'+_0x205d03['subType']:_0x205d03['type'],_0x5f01f5=this['editor']['locale'],_0x1464ac=_0x10432e['add'](c(_0x5f01f5,'PENDING_ACTION_SUGGESTION')),_0x2febb8={'id':_0x3db4bd,'type':_0x3ef9f0,'hasComments':_0x43b884,'data':_0x39cd10['data']||null,'originalSuggestionId':_0x39cd10['originalSuggestionId']||null,'attributes':_0x205d03['attributes']};this['_adapter']['addSuggestion'](_0x2febb8)['then'](_0x106df5=>{_0x205d03['_saved']=!0x0,_0x10432e['remove'](_0x1464ac),_0x106df5&&_0x106df5['createdAt']&&(this['_suggestions']['get'](_0x3db4bd)['createdAt']=_0x106df5['createdAt']);})['catch'](_0x547fb8=>{throw _0x57d13b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x205d03['discard']();}),_0x205d03['stopListening'](),this['_suggestions']['delete'](_0x205d03['id']),this['_suggestionState']['delete'](_0x205d03),_0x547fb8;});}return _0x205d03;}['_isBlockAttribute'](_0x167f23){return this['_blockAttributeKeys']['has'](_0x167f23);}['_updateSuggestionData'](_0x3a61cf,_0xeecdc5){const _0x50192d=this['editor']['plugins']['get']('PendingActions'),_0x2f1d88=this['getSuggestion'](_0x3a61cf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2f1d88['_saved']){const _0x473069=_0x50192d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3a61cf,_0xeecdc5)['then'](()=>{_0x50192d['remove'](_0x473069);});}else _0x2f1d88['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3a61cf,_0xeecdc5);});}}['_getSuggestionData'](_0x5e378a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5240f6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5e378a);}['_handleNewSuggestionMarker'](_0x5cec49){const {id:_0x4feef2,type:_0x8c84f2,subType:_0x3674fc,authorId:_0x16d8ce}=this['_splitMarkerName'](_0x5cec49),_0x41c1a6=this['_suggestions']['get'](_0x4feef2)||this['_createSuggestion'](_0x8c84f2,_0x3674fc,_0x4feef2,_0x16d8ce,{});switch(this['_checkSuggestionCorrectness'](_0x41c1a6,_0x8c84f2,_0x3674fc,_0x16d8ce),this['_suggestionState']['get'](_0x41c1a6)){case'notReady':this['_getSuggestionData'](_0x4feef2)['then'](_0x2abc2f=>{let _0x732e95=Promise['resolve']();_0x2abc2f['hasComments']&&(_0x732e95=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4feef2})),_0x732e95['then'](()=>{this['addSuggestionData'](_0x2abc2f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x41c1a6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4feef2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x41c1a6,'ready'),this['fire']('suggestionLoaded',_0x41c1a6);break;case'ready':this['fire']('suggestionChanged',_0x41c1a6);}return _0x41c1a6['addMarkerName'](_0x5cec49),_0x41c1a6;}['_refreshSuggestionsChain'](_0x5a8802){const _0x5b9e8c=Array['from'](_0x5a8802),_0x344bdc=_0x5b9e8c['filter'](_0x1f90ea=>'attribute'==_0x1f90ea['type']);this['_refreshAttributeSuggestionsChain'](_0x344bdc);const _0x3f8a6b=_0x5b9e8c['filter'](_0x46dd1f=>!_0x46dd1f['isMultiRange']&&'attribute'!=_0x46dd1f['type']),_0x107948=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49ea60=>!_0x49ea60['isMultiRange']&&'attribute'!=_0x49ea60['type']),_0x2c140c=_0x107948['filter'](_0x320fd8=>!_0x5a8802['has'](_0x320fd8)),_0x54734f=new Map(_0x107948['map'](_0x2881a3=>[_0x2881a3,this['_suggestionFactory']['getSuggestionCallback'](_0x2881a3['type'],_0x2881a3['subType'],'chain')])),_0x10927b=new Map(_0x107948['map'](_0x5e348d=>[_0x5e348d,_0x5e348d['getFirstRange']()])),_0x17c954=new Set(),_0x4c0c36=new Set();for(let _0x11937a=0x0;_0x11937a<_0x3f8a6b['length'];_0x11937a++)_0x4dba98(_0x3f8a6b[_0x11937a],_0x3f8a6b,_0x11937a+0x1);for(let _0x588c3c=0x0;_0x588c3c<_0x3f8a6b['length'];_0x588c3c++)_0x4dba98(_0x3f8a6b[_0x588c3c],_0x2c140c,0x0);const _0x16b848=new Set();for(let _0xc455b1=0x0;_0xc455b1<_0x3f8a6b['length'];_0xc455b1++){const _0x56260e=_0x3f8a6b[_0xc455b1];!_0x4c0c36['has'](_0x56260e)&&_0x56260e['previous']&&(_0x16b848['add'](_0x56260e['previous']),_0x56260e['previous']['next']===_0x56260e&&(_0x56260e['previous']['next']=null),_0x56260e['previous']=null),!_0x17c954['has'](_0x56260e)&&_0x56260e['next']&&(_0x16b848['add'](_0x56260e['next']),_0x56260e['next']['previous']===_0x56260e&&(_0x56260e['next']['previous']=null),_0x56260e['next']=null);}function _0x4dba98(_0x49a2c9,_0x1764ce,_0x5a083){for(let _0x225e6e=_0x5a083;_0x225e6e<_0x1764ce['length'];_0x225e6e++){const _0x4c01a6=_0x294c13(_0x49a2c9,_0x1764ce[_0x225e6e]);_0x4c01a6&&(_0x4c01a6[0x0]['next']=_0x4c01a6[0x1],_0x4c01a6[0x1]['previous']=_0x4c01a6[0x0],_0x17c954['add'](_0x4c01a6[0x0]),_0x4c0c36['add'](_0x4c01a6[0x1]));}}function _0x294c13(_0x2dee1f,_0x46d96c){if(_0x2dee1f['author']['id']!==_0x46d96c['author']['id'])return null;const _0x7c1e11=_0x54734f['get'](_0x2dee1f)(_0x2dee1f,_0x46d96c,_0x10927b['get'](_0x2dee1f),_0x10927b['get'](_0x46d96c));if(!_0x7c1e11)return null;return _0x54734f['get'](_0x46d96c)(_0x2dee1f,_0x46d96c,_0x10927b['get'](_0x2dee1f),_0x10927b['get'](_0x46d96c))?_0x7c1e11[0x1]['commentThread']&&_0x7c1e11[0x1]['commentThread']['length']?null:_0x7c1e11:null;}_0x16b848['size']&&this['_refreshSuggestionsChain'](_0x16b848);}['_refreshAttributeSuggestionsChain'](_0x32e053){if(0x0==_0x32e053['length'])return;const _0x37c4e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d1b4e=>'attribute'==_0x5d1b4e['type']&&_0x5d1b4e['_isDataLoaded']),_0x26df21=[],_0x3d0448=new Map();for(const _0x4107b1 of _0x37c4e4){const _0x234fe3=_0x583c01(_0x4107b1['attributes']);_0x3d0448['has'](_0x234fe3)||(_0x3d0448['set'](_0x234fe3,_0x26df21['length']),_0x26df21['push']([]));const _0x4aa3e6=_0x3d0448['get'](_0x234fe3);_0x26df21[_0x4aa3e6]['push'](_0x4107b1);}!(function(){_0x26df21['sort']((_0x93d018,_0x5d94f5)=>{const _0x390fad=_0x93d018[0x0]['createdAt'],_0x1f9d02=_0x5d94f5[0x0]['createdAt'];return _0x390fad==_0x1f9d02?_0x93d018[0x0]['attributes']['groupId']<_0x5d94f5[0x0]['attributes']['groupId']?-0x1:0x1:_0x390fad<_0x1f9d02?-0x1:0x1;});for(const _0x2b3738 of _0x26df21)_0x2b3738['sort']((_0x3f2559,_0x25a593)=>_0x3f2559['id']<_0x25a593['id']?-0x1:0x1);}());for(let _0x496421=0x0;_0x496421<_0x26df21['length'];_0x496421++){if(0x0==_0x26df21[_0x496421]['length'])continue;const _0x52a9c0=[];for(let _0x15e9dc=_0x496421+0x1;_0x15e9dc<_0x26df21['length'];_0x15e9dc++)0x0!=_0x26df21[_0x15e9dc]['length']&&_0x8fdba9(_0x26df21[_0x496421],_0x26df21[_0x15e9dc])&&_0x52a9c0['push'](_0x15e9dc);for(const _0x2bc53e of _0x52a9c0)_0x26df21[_0x496421]=_0x26df21[_0x496421]['concat'](_0x26df21[_0x2bc53e]),_0x26df21[_0x2bc53e]=[];}for(const _0x120be3 of _0x26df21)for(let _0x1d4905=0x0;_0x1d4905<_0x120be3['length'];_0x1d4905++){const _0x58dcf0=_0x120be3[_0x1d4905+0x1]||null;_0x120be3[_0x1d4905]['next']!==_0x58dcf0&&(_0x120be3[_0x1d4905]['next']=_0x58dcf0);}for(const _0x3f662b of _0x26df21)for(let _0x547fab=0x0;_0x547fab<_0x3f662b['length'];_0x547fab++){const _0x417006=_0x3f662b[_0x547fab-0x1]||null;_0x3f662b[_0x547fab]['previous']!==_0x417006&&(_0x3f662b[_0x547fab]['previous']=_0x417006);}function _0x8fdba9(_0x55461f,_0x1109a8){if(_0x55461f[0x0]['attributes']['groupId']!==_0x1109a8[0x0]['attributes']['groupId']&&_0x55461f[0x0]['author']!==_0x1109a8[0x0]['author'])return!0x1;if(!function(_0x337bcc,_0x2af085){if(!_0x337bcc['hasComments']&&!_0x2af085['hasComments'])return!0x0;if(_0x337bcc['hasComments']&&_0x2af085['hasComments'])return!0x1;if(_0x337bcc['hasComments']&&_0x2af085['createdAt']<_0x337bcc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2af085['hasComments']&&_0x337bcc['createdAt']<_0x2af085['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55461f[0x0],_0x1109a8[0x0]))return!0x1;const _0x536ff3=Ft(_0x55461f[0x0]['attributes'],'groupId'),_0x4569a3=Ft(_0x1109a8[0x0]['attributes'],'groupId');if(!_0x3595e6(_0x536ff3,_0x4569a3))return!0x1;return!!_0x55461f['every'](_0x40a86f=>_0x1109a8['some'](_0x283506=>_0x40a86f['getFirstRange']()['isEqual'](_0x283506['getFirstRange']())))&&_0x1109a8['every'](_0x4772f9=>_0x55461f['some'](_0x29d0c1=>_0x4772f9['getFirstRange']()['isEqual'](_0x29d0c1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12ee10){const _0x5e049d=Array['from'](_0x12ee10),_0x325be9=this['getSuggestions']({'skipNotAttached':!0x0}),_0xff817=_0x325be9['filter'](_0x59d338=>!_0x12ee10['has'](_0x59d338)),_0x5d7a60=new Map(_0x5e049d['map'](_0x4b881f=>[_0x4b881f,this['_suggestionFactory']['getSuggestionCallback'](_0x4b881f['type'],_0x4b881f['subType'],'join')])),_0x211a82=new Map(_0x325be9['map'](_0x4c75b6=>[_0x4c75b6,_0x4c75b6['getRanges']()]));for(let _0x29b423=0x0;_0x29b423<_0x5e049d['length'];_0x29b423++){if(_0x2c42c8(this,_0x5e049d[_0x29b423],_0x5e049d,_0x29b423+0x1))return!0x0;}for(let _0x1052c6=0x0;_0x1052c6<_0x5e049d['length'];_0x1052c6++){if(_0x2c42c8(this,_0x5e049d[_0x1052c6],_0xff817,0x0))return!0x0;}return!0x1;function _0x2c42c8(_0x5405c4,_0x569d57,_0xc7fc2f,_0x25bac0){for(let _0x480f24=_0x25bac0;_0x480f24<_0xc7fc2f['length'];_0x480f24++){const _0x459d04=_0xc7fc2f[_0x480f24];if(_0x459d04['type']!==_0x569d57['type']||_0x459d04['author']['id']!==_0x569d57['author']['id']||_0x459d04['subType']!==_0x569d57['subType'])continue;if(!Qt(_0x569d57,_0x459d04))continue;if('attribute'==_0x569d57['type']&&_0x569d57['data']['oldValue']!=_0x459d04['data']['oldValue'])continue;if('attribute'==_0x569d57['type']&&_0x5405c4['_isBlockAttribute'](_0x569d57['data']['key']))continue;if('formatBlock'==_0x569d57['type']){const _0x47e2a2=_0x5405c4['editor']['model'],_0x8e4125=_0x569d57['getContainedElement']();if(_0x8e4125&&(_0x47e2a2['schema']['isObject'](_0x8e4125)||_0x47e2a2['schema']['isLimit'](_0x8e4125)))continue;}const _0x25dc17=_0x5d7a60['get'](_0x569d57),_0xf107fe=_0x211a82['get'](_0x569d57),_0x378487=_0x211a82['get'](_0x459d04),_0x29d8ba=_0x569d57['commentThread']&&_0x569d57['commentThread']['length'],_0x18ba80=_0x459d04['commentThread']&&_0x459d04['commentThread']['length'];if(!_0x29d8ba&&_0x25dc17(_0x378487,_0xf107fe))return _0x5405c4['_joinSuggestions'](_0x459d04,_0x569d57),_0x211a82['delete'](_0x569d57),!0x0;if(!_0x18ba80&&_0x25dc17(_0xf107fe,_0x378487))return _0x5405c4['_joinSuggestions'](_0x569d57,_0x459d04),_0x211a82['delete'](_0x459d04),!0x0;}return!0x1;}}['_joinSuggestions'](_0x578c84,_0x161cd9){if(_0x578c84['isMultiRange']){for(const _0x64be99 of _0x161cd9['getRanges']())_0x578c84['addRange'](_0x64be99);}else{const _0x2efca4=_0x161cd9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x578c84,this['_model']['createRange'](_0x578c84['getFirstRange']()['start'],_0x2efca4));}_0x161cd9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2192ec,_0x361c71,_0x21dbf5){const _0x4cc90d=_0x2192ec['startsWith']('format')||_0x2192ec['startsWith']('attribute')?'FORMATTING':_0x2192ec['toUpperCase']();return c(this['editor']['locale'],_0x361c71+'_'+_0x4cc90d+'_SUGGESTION_ANNOUNCEMENT',_0x21dbf5);}['_initAriaMarkerChangeAnnouncements'](){const _0x117429=this['editor'];if(!_0x117429['ui'])return;const {ariaLiveAnnouncer:_0x4cd528}=_0x117429['ui'];_0xe0f4f3(this['_model'],({left:_0xf52f36,entered:_0x47ac95})=>{for(const _0x490db7 of _0xf52f36){const {group:_0x2665bb,type:_0x4c8f5b}=this['_splitMarkerName'](_0x490db7['name']);if('suggestion'===_0x2665bb){_0x4cd528['announce'](this['_getMarkerAnnouncementText'](_0x4c8f5b,'LEAVE'));break;}}for(const _0x12dde6 of _0x47ac95){const {group:_0xd65bf,type:_0x342ad0}=this['_splitMarkerName'](_0x12dde6['name']);if('suggestion'===_0xd65bf){_0x4cd528['announce'](this['_getMarkerAnnouncementText'](_0x342ad0,'ENTER',_0x132da3(_0x422745)));break;}}});}['_processAttributeChanges'](_0x1a6b97){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3f54e6=this['editor'],_0x4e190b=_0x3f54e6['model']['document']['differ']['getChanges']();if(0x0==_0x4e190b['length'])return!0x1;const _0xdf0879=[],_0x3b0eb6=_0x4e190b['filter'](_0x1aa24a=>'attribute'==_0x1aa24a['type']),_0x324938=_0x4e190b['filter'](_0x1af63d=>'insert'==_0x1af63d['type']&&'$text'!=_0x1af63d['name']),_0xecb653=_0x4e190b['filter'](_0x1ff070=>'remove'==_0x1ff070['type']&&'$text'!=_0x1ff070['name']);for(const _0x4b84c5 of _0x3b0eb6)_0xdf0879['push']({'key':_0x4b84c5['attributeKey'],'newValue':_0x4b84c5['attributeNewValue'],'oldValue':_0x4b84c5['attributeOldValue'],'range':qt(_0x4b84c5['range'],_0x3f54e6['model'])});for(const _0x29c9c7 of _0x324938){const _0x1a08b8=_0xecb653['find'](_0x3938e3=>_0x3938e3['position']['isEqual'](_0x29c9c7['position']));_0x1a08b8&&_0xdf0879['push']({'key':u,'newValue':_0x29c9c7['name'],'oldValue':_0x1a08b8['name'],'range':_0x3f54e6['model']['createRangeOn'](_0x29c9c7['position']['nodeAfter'])});}return 0x0!=_0xdf0879['length']&&this['_reduceExistingSuggestions'](_0x1a6b97,_0xdf0879);}['_processAttributeSuggestions'](_0x573f0e){let _0x50868e=!0x1;const _0x59aa34=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e4f2a=>_0x5e4f2a['data']['newRange']&&_0x5e4f2a['name']['startsWith']('suggestion:attribute:'));for(const _0x4e4eb9 of _0x59aa34){const {subType:_0x32d392,id:_0x2b772a}=this['_splitMarkerName'](_0x4e4eb9['name']),_0x52fe91=_0x32d392['split']('|')[0x0];for(const _0x20f641 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x20f641['id']!=_0x2b772a&&'attribute'==_0x20f641['type']&&_0x20f641['data']&&_0x20f641['data']['key']==_0x52fe91&&_0x20f641['getFirstRange']()['isIntersecting'](_0x4e4eb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x20f641,_0x4e4eb9['data']['newRange'],_0x573f0e),_0x50868e=!0x0);}return _0x50868e;}['_recordAttributeChanges'](_0x29a8e0){this['_recordAttributeSuggestions']=!0x0,_0x29a8e0();}['_isRegisteredAttribute'](_0x439a29){const _0x1da11b=this['_isBlockAttribute'](_0x439a29),_0x25f343=this['_inlineAttributeKeys']['has'](_0x439a29);return _0x1da11b||_0x25f343;}['_reduceExistingSuggestions'](_0xf8909f,_0x5796a4){if(0x0==_0x5796a4['length'])return!0x1;let _0x528658=!0x1;for(const _0x50ce31 of _0x5796a4){const _0x407b7a=this['_findSuggestions'](_0x50ce31['range'],'attribute')['filter'](_0x20cfc2=>!_0x20cfc2['meta']['isNextTo'])['map'](_0x1434fe=>_0x1434fe['suggestion']),_0x343d96=_0x583c01({'newValue':_0x50ce31['newValue']});_0x407b7a['filter'](_0x55518e=>{const [_0x2e1d14,_0x5375b0]=_0x55518e['subType']['split']('|');return _0x2e1d14==_0x50ce31['key']&&_0x5375b0!=_0x343d96;})['forEach'](_0x28a26d=>{this['_reduceSuggestionAttributeRange'](_0x28a26d,_0x50ce31['range'],_0xf8909f),_0x528658=!0x0;});}return _0x528658;}['_reduceSuggestionAttributeRange'](_0x1c088a,_0x4e08ec,_0x5f3998){const _0x2d545c=_0x1c088a['getFirstRange']()['getDifference'](_0x4e08ec);0x0!==_0x2d545c['length']?0x1!==_0x2d545c['length']?this['_breakSuggestionMarker'](_0x1c088a,_0x4e08ec['start'],_0x4e08ec['end']):this['_setSuggestionRange'](_0x1c088a,_0x2d545c[0x0]):_0x5f3998['removeMarker'](_0x1c088a['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4b3155){this['_editor']=_0x4b3155,this['_model']=_0x4b3155['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2d9ab8,_0x8605a0,_0x904e8d,_0x5a5a11,_0x3b8d14,_0x10ee85){return new o(this['_model'],{'type':_0x2d9ab8,'subType':_0x8605a0,'id':_0x904e8d,'author':_0x5a5a11,'creator':_0x5a5a11,'attributes':_0x3b8d14,'onAttributesChange':_0x10ee85,'onAccept':(..._0x1d7d7f)=>this['getSuggestionCallback'](_0x2d9ab8,_0x8605a0,'accept')(..._0x1d7d7f),'onDiscard':(..._0x451e25)=>this['getSuggestionCallback'](_0x2d9ab8,_0x8605a0,'discard')(..._0x451e25)});}['registerCustomCallback'](_0x31643f,_0x295edc,_0x300d40,_0x3b4148){const _0xfd8f63=_0x31643f+':'+_0x295edc+':'+_0x300d40;this['_customCallbacks']['set'](_0xfd8f63,_0x3b4148);}['getSuggestionCallback'](_0x13a4f0,_0x361553,_0x33e108){const _0x217170=_0x13a4f0+':'+_0x361553+':'+_0x33e108;return this['_customCallbacks']['get'](_0x217170)||this['_defaultCallbacks']['get'](_0x13a4f0+':'+_0x33e108);}['_registerDefaultCallbacks'](){const _0x546f1a=()=>!0x1,_0x25c361=_0x269db2=>{_0x269db2['sort']((_0x23a948,_0x2a1ef3)=>_0x23a948['start']['isBefore'](_0x2a1ef3['start'])?0x1:-0x1),this['_model']['change'](_0x233adc=>{for(const _0x420cf8 of _0x269db2){let _0x53293b;_0x53293b=_0x420cf8['end']['isAtEnd']&&_0x420cf8['end']['parent']==_0x420cf8['start']['nodeAfter']?_0x233adc['createSelection'](_0x420cf8['start']['nodeAfter'],'on'):_0x233adc['createSelection'](_0x420cf8),this['_model']['deleteContent'](_0x53293b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x23ca87=(_0x2ad4f4,_0x548954)=>{_0x548954&&this['_model']['change'](_0x46fe52=>{const {commandName:_0x491f11,commandParams:_0x470239=[]}=_0x548954,_0x1a29bc=_0x2ad4f4['map'](_0x483181=>(Lt(_0x483181)&&(_0x483181=this['_model']['createRange'](_0x483181['end'])),_0x483181))['filter'](_0x9d92b9=>'$graveyard'!==_0x9d92b9['root']['rootName']);if(_0x1a29bc['length']<0x1)return;const _0x57320a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x95f5e2=>_0x1ffa61['fromRange'](_0x95f5e2));_0x46fe52['setSelection'](_0x1a29bc);for(const _0x47e668 of this['_editor']['commands']['commands']())_0x47e668['refresh']();_0x470239['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x491f11,..._0x470239);const _0x31be26=_0x57320a['filter'](_0x2b9e1a=>'$graveyard'!=_0x2b9e1a['root']['rootName']);_0x31be26['length']>0x0&&_0x46fe52['setSelection'](_0x31be26);for(const _0x3f4f01 of _0x57320a)_0x3f4f01['detach']();});},_0x514ef1=(_0x56208d,_0x34c338)=>0x1==_0x56208d['length']&&0x1==_0x34c338['length']&&_0x56208d[0x0]['end']['isEqual'](_0x34c338[0x0]['start']),_0xcf2aa5=(_0x22107b,_0x5334c8,_0x2199da,_0x13a66c)=>Wt(_0x22107b,_0x5334c8,_0x2199da,_0x13a66c)?[_0x22107b,_0x5334c8]:Wt(_0x5334c8,_0x22107b,_0x13a66c,_0x2199da)?[_0x5334c8,_0x22107b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x546f1a),this['_defaultCallbacks']['set']('insertion:discard',_0x25c361),this['_defaultCallbacks']['set']('insertion:join',_0x514ef1),this['_defaultCallbacks']['set']('insertion:chain',_0xcf2aa5),this['_defaultCallbacks']['set']('deletion:accept',_0x25c361),this['_defaultCallbacks']['set']('deletion:discard',_0x546f1a),this['_defaultCallbacks']['set']('deletion:join',_0x514ef1),this['_defaultCallbacks']['set']('deletion:chain',_0xcf2aa5),this['_defaultCallbacks']['set']('formatInline:accept',_0x23ca87),this['_defaultCallbacks']['set']('formatInline:discard',_0x546f1a),this['_defaultCallbacks']['set']('formatInline:join',_0x514ef1),this['_defaultCallbacks']['set']('formatInline:chain',_0x546f1a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x23ca87),this['_defaultCallbacks']['set']('formatBlock:discard',_0x546f1a),this['_defaultCallbacks']['set']('formatBlock:join',_0x514ef1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x546f1a),this['_defaultCallbacks']['set']('attribute:accept',_0x546f1a),this['_defaultCallbacks']['set']('attribute:discard',(_0x496fe0,_0x1c56ed)=>{if(!_0x1c56ed)return;const _0x1579cb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5977b=>{if(_0x1c56ed['key']==u)for(const _0x355ba1 of _0x496fe0){const _0x14bd46=_0x355ba1['start']['nodeAfter'],_0x261e58=_0x1c56ed['oldValue'];_0x5977b['rename'](_0x14bd46,_0x261e58);}else{if(_0x1579cb['_isBlockAttribute'](_0x1c56ed['key'])){for(const _0x27487f of _0x496fe0)void 0x0!==_0x1c56ed['oldValue']?_0x5977b['setAttribute'](_0x1c56ed['key'],_0x1c56ed['oldValue'],_0x27487f['start']['nodeAfter']):_0x5977b['removeAttribute'](_0x1c56ed['key'],_0x27487f['start']['nodeAfter']);}else{for(const _0x17d9d7 of _0x496fe0)_0x1c56ed['oldValue']?_0x5977b['setAttribute'](_0x1c56ed['key'],_0x1c56ed['oldValue'],_0x17d9d7):_0x5977b['removeAttribute'](_0x1c56ed['key'],_0x17d9d7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x514ef1);}}function Gt(_0x3c3470,_0x53acf0,_0x513dd0){for(const _0x44c1f9 of _0x53acf0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44c1f9['root']==_0x44c1f9)return!0x1;if(!_0x513dd0['containsItem'](_0x44c1f9))return!0x1;if(_0x3c3470['isObject'](_0x44c1f9)||_0x3c3470['isLimit'](_0x44c1f9))return!0x0;}return!0x1;}function Lt(_0x58e758){return _0x58e758['end']['parent']==_0x58e758['start']['nodeAfter']&&_0x58e758['end']['isAtStart'];}function Jt(_0x257ce1,_0x232e2c,_0x37a616,_0x302088){const _0x428fd6=_0x8520ad=>!_0x8520ad['item']['is']('$textProxy')&&!_0x302088['isObject'](_0x8520ad['item']),_0x3edc29=_0x257ce1['start']['getLastMatchingPosition'](_0x428fd6),_0x2c7bed=_0x257ce1['end']['getLastMatchingPosition'](_0x428fd6,{'direction':'backward'});return(!_0x257ce1['start']['isEqual'](_0x3edc29)||!_0x257ce1['end']['isEqual'](_0x2c7bed))&&(_0x3edc29['isBefore'](_0x2c7bed)?_0x37a616['updateMarker'](_0x232e2c,{'range':_0x37a616['createRange'](_0x3edc29,_0x2c7bed)}):_0x37a616['removeMarker'](_0x232e2c),!0x0);}function Kt(_0xec6c95){return _0x583c01(_0xec6c95);}function Ht(_0x1e3020){const _0x1ce7f0=_0x1e3020['start']['nodeAfter'];return _0x1ce7f0&&_0x1ce7f0['is']('element');}function qt(_0x5ab007,_0x2442d3){return null==_0x5ab007['end']['nodeBefore']&&_0x5ab007['end']['parent']==_0x5ab007['start']['nodeAfter']?zt(_0x5ab007['start']['nodeAfter'],_0x2442d3):_0x5ab007;}function zt(_0x270633,_0x532b4a){const _0x4bd49b=_0x532b4a['schema']['isObject'](_0x270633)||_0x532b4a['schema']['isSelectable'](_0x270633);return _0x532b4a['createRange'](_0x532b4a['createPositionAt'](_0x270633,'before'),_0x4bd49b?_0x532b4a['createPositionAfter'](_0x270633):_0x532b4a['createPositionAt'](_0x270633,'end'));}function Wt(_0x55fdad,_0x48fb64,_0x3e8c43,_0xf2b21){return!!Qt(_0x55fdad,_0x48fb64)&&_0x3e8c43['end']['isEqual'](_0xf2b21['start']);}function Qt(_0x307626,_0x29463f){if(!_0x307626['_isDataLoaded']||!_0x29463f['_isDataLoaded'])return!0x1;const _0x515967=new Set(Object['keys'](_0x307626['attributes'])),_0x27564f=new Set(Object['keys'](_0x29463f['attributes']));if(_0x515967['delete']('groupId'),_0x27564f['delete']('groupId'),0x0==_0x515967['size']&&0x0==_0x27564f['size'])return!0x0;if(_0x515967['size']!=_0x27564f['size'])return!0x1;const _0x98ca44={..._0x307626['attributes']},_0x4089fd={..._0x29463f['attributes']};return delete _0x98ca44['groupId'],delete _0x4089fd['groupId'],JSON['stringify'](_0x98ca44)==JSON['stringify'](_0x4089fd);}function Xt(_0x450f2d,_0xc47d96){const _0x4ceb7d=Yt(_0x450f2d['attributes']),_0x41daf7=Yt(_0xc47d96);if(!_0x450f2d['_isDataLoaded'])return!0x1;for(const _0xe145f7 of Object['keys'](_0x41daf7))if(!_0x3595e6(_0x4ceb7d[_0xe145f7],_0x41daf7[_0xe145f7]))return!0x1;return!0x0;}function Yt(_0x54e078){const _0x2e5e55=Object['assign']({},_0x54e078);return delete _0x2e5e55['skipNestingCheck'],delete _0x2e5e55['tablePasteChainId'],_0x2e5e55;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x3306e3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a95be,_0x1cdd32,_0x494db8,_0x5bea8b){super(),this['model']=_0x1cdd32,this['view']=_0x494db8,this['commentThreadController']=_0x5bea8b,this['_editor']=_0x3a95be,this['_acceptCommand']=_0x3a95be['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a95be['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c324c,_0x8ea5f9)=>_0x1c324c||_0x8ea5f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x6de691=>_0x6de691&&this['_editor']['model']['canEditAt'](_0x1cdd32['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3d2a14=>_0x3d2a14&&this['_editor']['model']['canEditAt'](_0x1cdd32['getRanges']())),this['_pendingAction']=null,_0x494db8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x494db8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x494db8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x494db8,'change:isDirty',()=>{_0x494db8['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x2f7d3b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f7d3b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x41197b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3bcc74,_0x1f74e0,_0x331a82,_0x173a0c){super(_0x3bcc74),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x132c82(_0x3bcc74,c(_0x3bcc74,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1f74e0['authoredAt']),this['bind']('authoredAt')['to'](_0x1f74e0),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1f74e0,'authoredAt',this,'descriptionParts',(_0x1308e3,_0x501120,_0x771b11)=>{const _0x1c6cbe=_0x771b11['map'](_0x1d5833=>ls(_0x1d5833['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1308e3-0x1,_0x1f74e0['author']['name'],_0x501120?_0x173a0c['formatDateTime'](_0x501120):'',new DOMParser()['parseFromString'](_0x1c6cbe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x31f9e7(),this['focusTracker']=new _0x3b022f(),this['keystrokes']=new _0x258157(),this['focusCycler']=new _0x38f6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a1640=>_0x1a1640['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1f74e0,this['_localUser']=_0x331a82,this['_config']=_0x173a0c,_0x173a0c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x120934(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49b193}=this['_config'];this['commentsListView']=new _0x49b193(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x4c1e73=>_0x4c1e73+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x620b2a,_0x75707d)=>_0x620b2a||!!_0x75707d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x56552a}=this['_config'],_0x443f50=new _0x56552a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x449dda=_0x443f50['commentInputView'];return _0x443f50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x449dda,'value',(_0x4dace8,_0x1f48a4,_0x38381b)=>!!_0x38381b||_0x4dace8&&!_0x1f48a4),_0x449dda['on']('submit',(_0x23463d,_0x28b2d4)=>{this['fire']('addComment',_0x28b2d4),_0x449dda['editor']['setData']('');}),_0x449dda['on']('cancel',()=>this['focus']()),_0x449dda['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x443f50;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x366794,_0x4db3b1,_0xa982db,_0x2ede0b){super(_0x366794,_0x4db3b1,_0xa982db,_0x2ede0b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e3706=>_0x4e3706&&_0x4e3706[0x0]?_0x4e3706[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3a7232,_0x12f616)=>{let _0x2de81e='';for(const _0x350910 of _0x3a7232)_0x2de81e+='<p>'+ls(_0x350910['content'],_0x350910['color'])+'</p>';return _0x12f616?_0x2de81e:ti(_0x2de81e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2ede0b['SuggestionView'](_0x366794,_0x4db3b1,{'formatDateTime':_0x2ede0b['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xad4b73=this['bindTemplate'],_0x190d19=[this['suggestionView']];return this['commentsListView']&&_0x190d19['push'](this['commentsListView']),this['commentThreadInputView']&&_0x190d19['push'](this['commentThreadInputView']),_0x190d19['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xad4b73['if']('isActive','ck-suggestion-wrapper--active'),_0xad4b73['to']('type',_0x58b853=>'ck-suggestion-'+_0x58b853),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xad4b73['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x190d19};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x41197b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8d29d,_0x1618e8,_0x213753){super(_0x8d29d),this['_model']=_0x1618e8,this['_config']=_0x213753,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1618e8),this['acceptButton']=this['_createButton'](c(_0x8d29d,'Accept\x20suggestion'),_0x389e43,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x8d29d,'Discard\x20suggestion'),_0x3297e3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1e3926(_0x8d29d,_0x1618e8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x31f9e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b022f(),this['keystrokes']=new _0x258157(),this['focusCycler']=new _0x38f6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4334b9=>_0x4334b9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x533765=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x533765['innerHTML']=this['description'],this['on']('change:description',(_0x53af44,_0x1a6469,_0x19b2cc)=>{_0x533765['innerHTML']=_0x19b2cc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42dd6e=this['bindTemplate'],_0x3ff6e7=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x42dd6e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42dd6e['to']('authoredAt',_0x2d5135=>this['_config']['formatDateTime'](_0x2d5135))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3ff6e7['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3ff6e7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3c14b6,_0x2d496a,_0x4cbee7,_0x419be1,_0x401a70){const _0x4f0731=new _0x14e86c(this['locale']);return _0x4f0731['set']({'label':_0x3c14b6,'icon':_0x2d496a,'tooltip':!0x0,'tooltipPosition':_0x401a70}),_0x4f0731['extendTemplate']({'attributes':{'class':_0x4cbee7}}),_0x4f0731['on']('execute',()=>{this['fire'](_0x419be1,this['_model']['id']);}),_0x4f0731;}['_setupKeyboardNavigation'](){const _0x26c6c2=this['element'];this['keystrokes']['listenTo'](_0x26c6c2);for(const _0x12948c of this['focusables'])this['focusTracker']['add'](_0x12948c['element']),this['keystrokes']['listenTo'](_0x12948c['element']);this['keystrokes']['set']('enter',(_0x9d4349,_0xc10b97)=>{_0x26c6c2===_0x9d4349['target']&&(this['focusCycler']['focusFirst'](),_0xc10b97());}),this['keystrokes']['set']('esc',(_0x3e2dfe,_0x2851a4)=>{_0x26c6c2!==_0x3e2dfe['target']&&(this['focus'](),_0x2851a4());});}}class d extends _0x2bb590{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x75af00,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x251c62){super(_0x251c62),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xbee52a=this['editor']['config'];_0xbee52a['define']('trackChanges.SuggestionThreadView',fe),_0xbee52a['define']('trackChanges.SuggestionView',we),_0xbee52a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xbee52a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4d2e4b,_0x321445){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3ef7a1,_0x3b1a13]of this['_handleControllerBuffer']){const _0x47d785=this['_suggestionToController']['has'](_0x3ef7a1);_0x47d785||_0x3b1a13?_0x47d785&&_0x3b1a13&&this['_destroyController'](_0x3ef7a1):this['_initializeController'](_0x3ef7a1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d2e4b,_0x321445);}['init'](){const _0x35ff17=this['editor'],_0xa22dec=_0x35ff17['plugins']['get']('TrackChangesEditing'),_0x4ffddd=_0x35ff17['plugins']['get']('Annotations'),_0x29a220=_0x35ff17['plugins']['get']('EditorAnnotations'),_0x5b8b23=_0x35ff17['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x29a220['addSourceCollector'](()=>{const _0x22c188=[];for(const [_0x4f8740,_0x344246]of Array['from'](this['_suggestionToController'])){const _0x608564=_0x4f8740['getAllAdjacentSuggestions'](),_0xf98d7a=[];for(const _0x4fa088 of _0x608564){if(!_0x4fa088['isInContent'])continue;if(_0x4fa088['isMultiRange']){_0xf98d7a['push'](..._0x4fa088['getRanges']());continue;}const _0x592b3c=_0x4fa088['getFirstRange']();if(_0xf98d7a['length']>0x0){const _0x3acd5f=_0xf98d7a[0x0]['getJoined'](_0x592b3c);if(_0x3acd5f){_0xf98d7a[0x0]=_0x3acd5f;continue;}}_0xf98d7a['push'](_0x592b3c);}_0x22c188['push']([_0x344246['view'],_0xf98d7a]);}return _0x22c188;}),this['listenTo'](_0xa22dec,'suggestionLoaded',(_0x1d1fd7,_0x3833a9)=>{this['listenTo'](_0x3833a9,'change:previous',(_0x5952e1,_0xf4696f,_0x5cec30,_0x3144ab)=>{_0x3833a9['isInContent']&&(null==_0x5cec30?(this['_updateController'](_0x3144ab['head']),this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x1)):(this['_updateController'](_0x5cec30['head']),null==_0x3144ab&&this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x0)));}),null!==_0x3833a9['previous']?this['_updateController'](_0x3833a9['head']):this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x1);}),this['listenTo'](_0xa22dec,'suggestionUnloaded',(_0x4c8b42,_0x113963,_0x3ab9aa)=>{this['stopListening'](_0x113963,'change:previous'),this['_handleControllerBuffer']['delete'](_0x113963),this['_suggestionToController']['has'](_0x113963)&&this['_destroyController'](_0x113963),_0x3ab9aa&&this['_updateController'](_0x3ab9aa['head']);}),this['listenTo'](_0xa22dec,'suggestionChanged',(_0x21dac6,_0x201579)=>{this['_updateController'](_0x201579);}),this['listenTo'](_0x4ffddd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b8b23,'addComment',(_0x53f79f,{threadId:_0x54f7c4,isFromAdapter:_0x1f50c0})=>{if(_0x1f50c0||!_0xa22dec['hasSuggestion'](_0x54f7c4))return;const _0x267026=_0xa22dec['getSuggestion'](_0x54f7c4);this['_suggestionToController']['get'](_0x267026)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25ae85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b9e65;for(const _0x55dcc9 in _0x25ae85){const _0x21d0ee=_0x55dcc9,_0x362f19=_0x25ae85[_0x21d0ee];if('trackChangesLicenseKeyValid'==_0x362f19||'trackChangesLicenseKeyInvalid'==_0x362f19||'trackChangesLicenseKeyExpired'==_0x362f19||'trackChangesLicenseKeyDomainLimit'==_0x362f19||'trackChangesLicenseKeyNotAllowed'==_0x362f19||'trackChangesLicenseKeyEvaluationLimit'==_0x362f19||'trackChangesLicenseKeyTrialLimit'==_0x362f19||'trackChangesLicenseKeyUsageLimit'==_0x362f19){delete _0x25ae85[_0x21d0ee],_0x5b9e65=_0x362f19,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5b9e65&&_0x25ae85['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5b9e65&&_0x25ae85['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5b9e65&&_0x25ae85['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a5ec8=this['editor']['plugins']['get']('Annotations'),_0x2a12ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x63d188=Array['from'](_0x2a5ec8['activeAnnotations'],_0x35fcd2=>_0x35fcd2['innerView'])['filter'](_0x20fca8=>this['_viewToController']['has'](_0x20fca8)),_0x31afd6=[];for(const _0x3c2184 of _0x63d188){const _0x2e81b8=this['_viewToController']['get'](_0x3c2184)['model']['getAllAdjacentSuggestions']();_0x31afd6['push'](..._0x2e81b8['reduce']((_0x733a8b,_0x1c0527)=>[..._0x733a8b,..._0x1c0527['getMarkerNames']()],[]));}_0x2a12ea['activeMarkers']=_0x31afd6;}['_addUIComponentsToFactory'](){const _0x51adce=this['editor'],_0x112ab2=_0x51adce['locale'],_0x2b1da2=c(_0x112ab2,'Track\x20changes'),_0x5ead97=new _0x460b9d([{'type':'switchbutton','model':new _0x9558c3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b1da2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x51adce['plugins']['has']('TrackChangesPreview')&&_0x5ead97['addMany']([{'type':'separator'},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x479966 of _0x5ead97)if(ke(_0x479966)){const _0x3ceb3c=_0x51adce['commands']['get'](_0x479966['model']['commandName']);_0x479966['model']['bind']('isOn','isEnabled')['to'](_0x3ceb3c,'value','isEnabled');}_0x51adce['ui']['componentFactory']['add']('trackChanges',_0xf2d2eb=>this['_createToolbarButton'](_0xf2d2eb,_0x5ead97,_0x2b1da2)),_0x51adce['ui']['componentFactory']['add']('menuBar:trackChanges',_0x422e31=>this['_createMenuBarMenu'](_0x422e31,_0x5ead97,_0x2b1da2));}['_createToolbarButton'](_0x881e60,_0x23f5a0,_0x52eea6){const _0x2f8e6b=_0x1516b7(_0x881e60,_0x1d75c1),_0x2a19b0=this['editor']['commands']['get']('trackChanges');_0x2f8e6b['buttonView']['set']({'tooltip':_0x52eea6,'label':_0x52eea6,'icon':_0x54e32c}),_0x2f8e6b['buttonView']['bind']('isOn')['to'](_0x2a19b0,'value'),_0x2f8e6b['buttonView']['on']('execute',()=>{_0x2a19b0['execute'](),this['editor']['editing']['view']['focus']();}),_0x41a8eb(_0x2f8e6b,_0x23f5a0,{'role':'menu'});const _0x1f1899=[];for(const _0x49b44d of _0x23f5a0)ke(_0x49b44d)&&_0x1f1899['push'](this['editor']['commands']['get'](_0x49b44d['model']['commandName']));const _0x31e2d2=_0x2f8e6b['buttonView'];return _0x31e2d2['actionView']['unbind']('isEnabled'),_0x31e2d2['arrowView']['unbind']('isEnabled'),_0x31e2d2['actionView']['bind']('isEnabled')['to'](_0x2a19b0,'isEnabled'),_0x31e2d2['arrowView']['bind']('isEnabled')['toMany'](_0x1f1899,'isEnabled',(..._0x16d41f)=>_0x16d41f['some'](_0x2a17ca=>_0x2a17ca)),_0x2f8e6b['on']('execute',_0x514cba=>{this['editor']['execute'](_0x514cba['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f8e6b;}['_createMenuBarMenu'](_0x507ae7,_0x16b104,_0x13dae1){const _0x485598=new _0x1ad69d(_0x507ae7),_0x3b9d55=this['editor']['commands']['get']('trackChanges');_0x485598['buttonView']['set']({'label':_0x13dae1,'icon':_0x54e32c});const _0x19cc26=new _0x232bed(_0x507ae7);for(const _0x3c3ae9 of _0x16b104){if('separator'==_0x3c3ae9['type']){_0x19cc26['items']['add'](new _0xd89dd3(_0x507ae7));continue;}const _0x1fc330=new _0x5370ba(_0x507ae7,_0x485598),_0x1b21c5=new _0x1c2694(_0x507ae7),_0x694796=_0x3c3ae9['model'];_0x1b21c5['bind'](...Object['keys'](_0x694796))['to'](_0x694796),_0x1b21c5['delegate']('execute')['to'](_0x485598),_0x1b21c5['on']('execute',()=>{this['editor']['execute'](_0x694796['commandName']),this['editor']['editing']['view']['focus']();}),_0x1fc330['children']['add'](_0x1b21c5),_0x19cc26['items']['add'](_0x1fc330);}return _0x485598['bind']('isEnabled')['to'](_0x3b9d55,'isEnabled'),_0x485598['panelView']['children']['add'](_0x19cc26),_0x485598;}['_initializeController'](_0x1d9b0c){const _0x5cfb03=this['editor'],_0x46a1d5=_0x5cfb03['config'],_0x3550fe=_0x5cfb03['plugins']['get']('Annotations'),_0x543d3c=_0x5cfb03['plugins']['get']('CommentsRepository'),_0x3977c1=_0x5cfb03['plugins']['get']('EditorAnnotations'),_0x361fd7=_0x5cfb03['plugins']['get'](_0x75af00)['me'],_0x34f130=_0x46a1d5['get']('trackChanges')['SuggestionThreadView'],_0x1424dd=_0x46a1d5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x28e86e,CommentThreadInputView:_0x2f499d}=_0x5cfb03['plugins']['get']('CommentsUI');let _0x1451fa,_0x596fc7,_0x5b1a64;this['_annotationViews']['has'](_0x1d9b0c['id'])?(_0x596fc7=this['_annotationViews']['get'](_0x1d9b0c['id']),_0x1451fa=_0x596fc7['mainView']):(_0x1451fa=new _0x34f130(_0x5cfb03['locale'],_0x1d9b0c,_0x361fd7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x46a1d5['get']('comments.editorConfig'),'licenseKey':_0x46a1d5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x46a1d5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46a1d5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46a1d5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x488bdc(_0x46a1d5['get']('locale'),_0x5cfb03['locale']),'CommentView':_0x46a1d5['get']('comments')['CommentView'],'CommentsListView':_0x28e86e,'CommentThreadInputView':_0x2f499d,'SuggestionView':_0x1424dd}),_0x1451fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x5cfb03['editing']['view']['focus']();}),_0x1451fa['suggestionView']['discardButton']['on']('execute',()=>{_0x5cfb03['editing']['view']['focus']();}),_0x596fc7=_0x3550fe['createAnnotationView'](this['editor']['locale'],_0x1451fa),_0x596fc7['bind']('isDirty')['to'](_0x1451fa,'isDirty'),_0x596fc7['bind']('length')['to'](_0x1451fa),_0x596fc7['bind']('type')['to'](_0x1451fa,'type',_0x6cb0ff=>'suggestion-'+_0x6cb0ff),_0x1451fa['on']('escape',()=>{_0x5b1a64['fire']('escape');}),this['_annotationViews']['set'](_0x1d9b0c['id'],_0x596fc7));const _0x26762f=_0x543d3c['createCommentThreadController'](_0x1d9b0c['commentThread'],_0x1451fa),_0x15ccbe=new pe(_0x5cfb03,_0x1d9b0c,_0x1451fa,_0x26762f),_0x4240d1=_0x1d9b0c['getAllAdjacentSuggestions']()['filter'](_0x441ede=>_0x441ede['isInContent']);_0x1451fa['descriptionParts']=_0x5cfb03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4240d1),this['_suggestionToController']['set'](_0x1d9b0c,_0x15ccbe),this['_viewToController']['set'](_0x1451fa,_0x15ccbe),_0x5b1a64=_0x3550fe['createAnnotation']({'view':_0x596fc7,'target':()=>{const _0x5f160e=[],_0x22412b=_0x1d9b0c['getAllAdjacentSuggestions']()['filter'](_0x434f71=>_0x434f71['isInContent']);for(const _0x407791 of _0x22412b)_0x5f160e['push'](..._0x407791['getMarkers']());return _0x5d309a(_0x5cfb03['editing'],_0x5f160e);},'type':()=>'suggestion-'+_0x15ccbe['view']['type']}),_0x543d3c['_bindAnnotationToEditors'](_0x1451fa,_0x5b1a64),_0x3550fe['add'](_0x5b1a64),_0x3977c1['registerAnnotation'](_0x5b1a64);}['_destroyController'](_0x34f4ce){const _0x19c706=this['editor']['plugins']['get']('CommentsRepository'),_0x70a923=this['editor']['plugins']['get']('Annotations'),_0xb6ebcd=this['_suggestionToController']['get'](_0x34f4ce),_0x56f81d=_0xb6ebcd['view'],_0x5e8768=_0x70a923['getByInnerView'](_0x56f81d);_0x19c706['_unbindEditors'](_0x56f81d),_0x5e8768&&_0x70a923['remove'](_0x5e8768),this['_suggestionToController']['delete'](_0x34f4ce),this['_viewToController']['delete'](_0x56f81d),_0xb6ebcd['destroy']();}['_updateController'](_0x4c3179){if(!_0x4c3179['isInContent']||!this['_suggestionToController']['has'](_0x4c3179))return;const _0x1040f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374beb=this['_suggestionToController']['get'](_0x4c3179),_0x5b6cbe=_0x4c3179['getAllAdjacentSuggestions']();_0x374beb['view']['descriptionParts']=_0x1040f5['descriptionFactory']['getDescriptions'](_0x5b6cbe);}['destroy'](){for(const _0x15c949 of this['_suggestionToController']['keys']())this['_destroyController'](_0x15c949);for(const _0x49f1bf of this['_annotationViews']['values']())_0x49f1bf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3413c5){return'model'in _0x3413c5;}class k extends _0x2bb590{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xde153b){this['editor']['plugins']['get'](p)['adapter']=_0xde153b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x39348c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x39348c);}['getSuggestions']({skipNotAttached:_0x109c69=!0x1,toJSON:_0x43cba6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x109c69,'toJSON':_0x43cba6});}['getSuggestion'](_0x2c155a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c155a);}}const w=['Pagination'];class T extends _0x2bb590{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4bd2ad=this['editor'];if(_0x4bd2ad['config']['define']('trackChangesData.editorCreator',_0xb787fd=>{const _0x5ea911=_0x4bd2ad['model']['document']['getRootNames']()['reduce']((_0x5207e9,_0x4b9b27)=>(_0x5207e9[_0x4b9b27]='',_0x5207e9),{});return _0x4bd2ad['constructor']['create'](_0x5ea911,_0xb787fd);}),'function'!=typeof _0x4bd2ad['config']['get']('trackChangesData')['editorCreator'])throw new _0x5240f6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf5bc36){return N(this['editor'],!0x0,_0xf5bc36);}['getDataWithDiscardedSuggestions'](_0x497244){return N(this['editor'],!0x1,_0x497244);}}class D extends _0x2bb590{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34e002){function _0x16b667(_0x1a472b){return _0x1a472b['map'](_0x37a83b=>String['fromCharCode'](_0x37a83b))['join']('');}super(_0x34e002),this['result']='end',_0x34e002[_0x16b667([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16b667([0x76,0x69,0x65,0x77])][_0x16b667([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16b667([0x61,0x75,0x74,0x6f]),_0x34e002[_0x16b667([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16b667([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16b667([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16b667([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16b667([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x4215ae){return void 0x0!==_0x4215ae['getRootsAttributes'];}async function N(_0x28ea0b,_0xfe52a1,_0x5af0dc){const _0x8b0039=_0x543b69(_0x28ea0b,w);_0x8b0039['plugins']['push'](p,D),_0x8b0039['rootsAttributes']=Ge(_0x28ea0b)?_0x28ea0b['getRootsAttributes']():void 0x0;const _0x53dc4b=document['createDocumentFragment'](),_0x3d5a3d=_0x28ea0b['config']['get']('trackChangesData')['editorCreator'],_0xa65594=await _0x3d5a3d(_0x8b0039,()=>function(_0x2d2a70){const _0x187028=document['createElement']('div');return _0x2d2a70['appendChild'](_0x187028),_0x187028;}(_0x53dc4b));!function(_0x329961,_0x4707fe){const _0x31f07d=_0x329961['model']['document']['getRootNames']()['reduce']((_0x110c33,_0x438163)=>(_0x110c33[_0x438163]=_0x329961['data']['get']({'rootName':_0x438163}),_0x110c33),{}),_0x5bab56=_0x329961['plugins']['get']('Users')['users']['map'](_0xb38bf8=>({'id':_0xb38bf8['id'],'name':_0xb38bf8['name']})),_0x1799f7=_0x329961['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bd7c3=_0x329961['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2541bd=_0x4707fe['plugins']['get']('Users'),_0x429000=_0x4707fe['plugins']['get']('TrackChangesEditing'),_0x2dac1b=_0x4707fe['plugins']['get']('CommentsRepository');for(const _0x5ef518 of _0x2dac1b['getCommentThreads']())_0x5ef518['remove']();for(const _0x327a42 of _0x5bab56)_0x2541bd['getUser'](_0x327a42['id'])||_0x2541bd['addUser'](_0x327a42);_0x2541bd['me']||_0x2541bd['useAnonymousUser']();for(const _0x570a63 of _0x2bd7c3)_0x2dac1b['addCommentThread'](_0x570a63);for(const _0x152e4b of _0x1799f7)_0x429000['addSuggestionData'](_0x152e4b);_0x4707fe['data']['set'](_0x31f07d);}(_0x28ea0b,_0xa65594),_0xa65594['execute'](_0xfe52a1?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f8fdc=Ge(_0xa65594)?_0xa65594['getFullData'](_0x5af0dc):_0xa65594['data']['get'](_0x5af0dc);return await _0xa65594['destroy'](),_0x1f8fdc;}class Me extends _0x41197b{['options'];constructor(_0x3d4224,_0x516761){super(_0x3d4224),this['options']=_0x516761,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x43ae76,_0x371e5f){if(!this['element'])return;const _0x3bfb1e=[];for(const [_0x46447e,_0x131d07]of _0x43ae76){const _0x38bdc2=document['createElement']('div');_0x38bdc2['setAttribute']('data-ck-root-name',_0x46447e),_0x38bdc2['className']=_0x131d07['classes']+'\x20ck-track-changes-preview__root-container',_0x38bdc2['innerHTML']=_0x131d07['content'],_0x3bfb1e['push'](_0x38bdc2);}_0x371e5f(this['element'],_0x3bfb1e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5567c6{constructor(_0x3a9573){super(_0x3a9573),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x18b404=this['editor'],_0x3bb335=_0x18b404['locale'],_0x367180=_0x18b404['plugins']['get']('Dialog');let _0x4451c8;const _0x5ae06e=function(_0x44890c){const _0x4fc0d8={};if('editables'in _0x44890c['ui']['view']){for(const [_0x3a3719,_0x5e6ac7]of Object['entries'](_0x44890c['ui']['view']['editables']))_0x4fc0d8[_0x3a3719]=_0x5e6ac7['element'];}else _0x4fc0d8[_0x44890c['model']['document']['getRootNames']()[0x0]]=_0x44890c['ui']['view']['editable']['element'];return _0x4fc0d8;}(_0x18b404),_0x4b74b0=function(_0x4f5d0f){let _0x16f0a4=0x0;for(const _0x3b557b of Object['values'](_0x4f5d0f))_0x16f0a4=Math['max'](_0x16f0a4,_0x3b557b['getBoundingClientRect']()['width']);let _0x17c763=0x0;for(const _0x11328b of Object['values'](_0x4f5d0f))_0x17c763+=_0x11328b['getBoundingClientRect']()['height'];const _0xe0895d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x542765=Math['min'](_0x17c763,_0xe0895d);return{'width':_0x16f0a4,'height':_0x542765};}(_0x5ae06e);_0x367180['show']({'id':'finalContentPreview','title':c(_0x3bb335,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3bb335,{'dialogRects':_0x4b74b0}),'onHide':()=>{_0x4451c8['detachFromDom']();},'onShow':()=>{_0x18b404['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x79047f=>{const _0x41ff70=this['_standarizeRootsData'](_0x79047f,_0x18b404,_0x5ae06e);_0x367180['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x41ff70,_0x18b404['config']['get']('trackChanges.preview.renderFunction'));}),_0x4451c8=new _0x3e3912(_0x3bb335,[_0x367180['view']]),_0x4451c8['attachToDom'](),_0x4451c8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x18b404['once']('destroy',()=>{_0x4451c8['detachFromDom']();});const _0x7eebc2=_0x367180['view']['headerView']['class'];_0x367180['view']['headerView']['class']=_0x7eebc2?_0x7eebc2+'\x20ck-reset_all':'ck-reset_all',_0x367180['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x367180['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3d08f7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x42f300=_0x3d08f7['previewMode'],_0x256bd4={};if('$labels'===_0x42f300){for(const _0x181ff0 of _0x3d08f7['getMergeFieldsIds']())_0x256bd4[_0x181ff0]=_0x3d08f7['getLabel'](_0x181ff0)||_0x181ff0;}else{const _0x4ef488='$defaultValues'===_0x42f300?_0x3d08f7['getDefaultValues']():_0x3d08f7['getDataSetValues'](_0x42f300,!0x0);for(const _0x32f0b3 of Object['entries'](_0x4ef488)){const [_0xb1226d,_0x97ea40]=_0x32f0b3;_0x256bd4[_0xb1226d]=null!==_0x97ea40?_0x97ea40:_0x3d08f7['getLabel'](_0xb1226d)||_0xb1226d;}}return{'mergeFieldsData':_0x256bd4};}['_standarizeRootsData'](_0x561f39,_0x21c64b,_0x38ca24){let _0x150734;if('string'==typeof _0x561f39){const _0x111b40=_0x21c64b['model']['document']['getRootNames']()[0x0];_0x150734={[_0x111b40]:_0x561f39};}else _0x150734=_0x561f39;const _0x2f0504=this['_fixMediaEmbeds'](_0x150734,_0x21c64b),_0x457e31=function(_0x1d79ed,_0x52b465){for(const [_0x3de45c,_0xfa4daa]of _0x1d79ed)_0xfa4daa['classes']=_0x52b465[_0x3de45c]['classList']['value']['replace']('ck-focused','');return _0x1d79ed;}(this['_sortRoots'](_0x21c64b)['reduce']((_0x1450de,_0x56e7a9)=>(_0x1450de['push']([_0x56e7a9,{'content':_0x2f0504[_0x56e7a9],'classes':''}]),_0x1450de),[]),_0x38ca24);return _0x457e31;}['_fixMediaEmbeds'](_0x350a6b,_0x206b03){if(!_0x206b03['plugins']['has']('MediaEmbedEditing'))return _0x350a6b;const _0x3a77f6=_0x206b03['plugins']['get']('MediaEmbedEditing');for(const [_0x119671,_0x58f495]of Object['entries'](_0x350a6b)){const _0x47666c=document['createElement']('div');_0x47666c['innerHTML']=_0x58f495,(_0x47666c['querySelectorAll']('figure.media')['forEach'](_0x5df9a7=>{const _0x1430ca=_0x5df9a7['querySelector']('oembed');if(_0x1430ca){const _0x544c3c=_0x1430ca['getAttribute']('url');if(_0x544c3c){const _0x42458d=_0x3a77f6['registry']['getMediaViewElement'](new _0x2956df(_0x206b03['editing']['view']['document']),_0x544c3c,{'elementName':'','renderForEditingView':!0x0}),_0xfe9823=document['createElement']('div');_0xfe9823['classList']['add']('ck-media__wrapper'),_0x42458d['render'](_0xfe9823,_0x206b03['editing']['view']['domConverter']),_0x1430ca['replaceWith'](_0xfe9823);}}}),_0x350a6b[_0x119671]=_0x47666c['innerHTML']);}return _0x350a6b;}['_sortRoots'](_0x2808ed){if(!function(_0x6f889d){return void 0x0!==_0x6f889d['getRootsAttributes'];}(_0x2808ed))return _0x2808ed['model']['document']['getRootNames']();const _0x4aba4a=[],_0x3ad91d=new Map();for(const _0x56aa85 of _0x2808ed['model']['document']['getRootNames']()){const _0x5b0e0f=_0x2808ed['editing']['view']['getDomRoot'](_0x56aa85)['getClientRects']()['item'](0x0);_0x4aba4a['push'](_0x56aa85),_0x3ad91d['set'](_0x56aa85,_0x5b0e0f);}return _0x4aba4a['sort']((_0x5df94d,_0xad47f3)=>{const _0x277bd9=_0x3ad91d['get'](_0x5df94d),_0x12a2e4=_0x3ad91d['get'](_0xad47f3);return _0x277bd9['y']-_0x12a2e4['y']||_0x277bd9['x']-_0x12a2e4['x'];}),_0x4aba4a;}}class te extends _0x2bb590{static get['requires'](){return[T,_0x5be8af];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a095f){super(_0x1a095f),_0x1a095f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1a095f['config']['define']('trackChanges.preview.renderFunction',(_0x20b86a,_0x4b93e7)=>{for(const _0x5ca686 of _0x4b93e7)_0x20b86a['appendChild'](_0x5ca686);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};