@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250317.0 → 0.0.0-nightly-20250319.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +26 -26
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. 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 _0x1ab01a,Plugin as _0x307cfb,PendingActions as _0x166579}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52489f,ObservableMixin as _0x51c58c,uid as _0x2b49b6,priorities as _0x4d0204,insertToPriorityArray as _0x5554c0,logWarning as _0x399ba0,getEnvKeystrokeText as _0x490251,FocusTracker as _0x13c5dc,KeystrokeHandler as _0x36964d,Collection as _0x5be8f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x150ec3,IconCancel as _0x13288b,IconTrackChanges as _0x334860}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x141a17,View as _0x30d4d1,ViewCollection as _0x4e0298,FocusCycler as _0x110ff0,ViewModel as _0x244af2,createDropdown as _0x4ee41f,SplitButtonView as _0x5a0a73,addListToDropdown as _0x13d791,MenuBarMenuView as _0x425b5b,MenuBarMenuListView as _0x337c8d,ListSeparatorView as _0x451473,MenuBarMenuListItemView as _0x1ee616,MenuBarMenuListItemButtonView as _0xb53895,BodyCollection as _0x3a656f,Dialog as _0x3fccae}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2ea921,hashObject as _0x4ed5ba,surroundingMarkersDetector as _0x28ac5c,FOCUS_ANNOTATION_KEYSTROKE as _0x379c3a,AriaDescriptionView as _0x262fbf,setupThreadKeyboardNavigation as _0x9e78b0,trimHtml as ti,UserView as _0x28b6d7,LateFocusButtonView as _0x5962f8,getDateTimeFormatter as _0x22b113,getAllMarkersDomElementsSorted as _0x1750b2,sanitizeEditorConfig as _0x19f056}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x143328,LiveRange as _0x10a155,LivePosition as _0x1863e8,DowncastWriter as _0x4ea2cc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3950f5,toWidget as _0x42437d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x232559,set as _0x7b284c,isEqual as _0x403583,unset as _0x5b24bb,omit as Vt}from'es-toolkit/compat';import{Delete as _0x4d6fdc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xd175f6,ShiftEnter as _0x1fc86b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x1ab01a{['_enabledCommands'];constructor(_0x226875,_0x5ec39c){super(_0x226875),this['_enabledCommands']=_0x5ec39c,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 _0x2fa4cb of this['editor']['commands']['commands']())_0x2fa4cb['affectsData']&&!this['_enabledCommands']['has'](_0x2fa4cb)&&_0x2fa4cb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3a1099 of this['editor']['commands']['commands']())_0x3a1099['affectsData']&&!this['_enabledCommands']['has'](_0x3a1099)&&_0x3a1099['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1ab01a{['_suggestions'];constructor(_0x3dccca,_0x5343cb){super(_0x3dccca),this['_suggestions']=_0x5343cb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12e194){const _0x236b59=this['_suggestions']['get'](_0x12e194);if(!_0x236b59)throw new _0x52489f('track-changes-accept-suggestion-not-found',this);const _0x21b0d4=_0x236b59['getRanges']();this['editor']['model']['canEditAt'](_0x21b0d4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x236b59);}}class R extends _0x1ab01a{['_suggestions'];constructor(_0xa2cd51,_0x308b6b){super(_0xa2cd51),this['_suggestions']=_0x308b6b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1810b8){const _0x21e43b=this['_suggestions']['get'](_0x1810b8);if(!_0x21e43b)throw new _0x52489f('track-changes-discard-suggestion-not-found',this);const _0x50b1ed=_0x21e43b['getRanges']();this['editor']['model']['canEditAt'](_0x50b1ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x21e43b);}}function ls(_0x32f919,_0x36695e){let _0x561001='';return _0x561001+=_0x32f919['split']('*')['map']((_0x3d48cc,_0x3c51b4)=>_0x3c51b4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3d48cc)+'</span>':nn(_0x3d48cc))['join'](''),_0x36695e&&(_0x561001+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x36695e['value']+'\x22\x20title=\x22'+_0x36695e['title']+'\x22></span>'),_0x561001;}function nn(_0x5ddfc9){const _0x417f48=document['createElement']('span');return _0x417f48['innerText']=_0x5ddfc9,_0x417f48['innerHTML'];}function ts(_0x2a5f5a){return _0x2a5f5a['sort']((_0x51e376,_0x67bc26)=>'deletion'==_0x51e376['type']&&'deletion'!=_0x67bc26['type']?-0x1:'deletion'!=_0x51e376['type']&&'deletion'==_0x67bc26['type']?0x1:0x0);}function Zt(_0x35d8d8,_0x3bf2db){let _0x5afcd3,_0xe43288=0x0;const _0x47963d=[],_0x2bf4df=_0x3bf2db['schema'];for(;_0xe43288<_0x35d8d8['length'];){const _0x4a72d3=_0x35d8d8[_0xe43288],_0x5592d4=_0x35d8d8[_0xe43288+0x1];_0x5afcd3||(_0x5afcd3=_0x3bf2db['createPositionBefore'](_0x4a72d3)),on(_0x3bf2db,_0x4a72d3,_0x5592d4)||(_0x47963d['push'](_0x3bf2db['createRange'](_0x5afcd3,_0x2bf4df['isObject'](_0x4a72d3)?_0x3bf2db['createPositionAfter'](_0x4a72d3):_0x3bf2db['createPositionAt'](_0x4a72d3,'end'))),_0x5afcd3=null),_0xe43288++;}return _0x47963d;}function on(_0x1d2bf9,_0x18f4fa,_0x3c4d5a){if(!_0x3c4d5a)return!0x1;const _0x5964cc=_0x1d2bf9['createPositionAfter'](_0x18f4fa),_0x1be15d=_0x1d2bf9['createPositionBefore'](_0x3c4d5a);return _0x5964cc['isTouching'](_0x1be15d);}function rs(_0x3aaa35,_0x191ba3,_0x507039){for(;_0x507039['length'];){const _0x43fa0d=_0x507039['splice'](0x0,0x64);_0x3aaa35['change'](()=>{for(const _0x564b64 of _0x43fa0d)_0x564b64['isInContent']&&_0x191ba3['execute'](_0x564b64['id']);});}}class x extends _0x1ab01a{['_command'];['_suggestions'];constructor(_0x1532e7,_0x54a09f,_0x1a8ad1){super(_0x1532e7),this['_command']=_0x54a09f,this['_suggestions']=_0x1a8ad1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4cfd22=Array['from'](this['_suggestions']['values']())['some'](_0x19c482=>_0x19c482['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4cfd22;}['execute'](){const _0xdba424=ts(Array['from'](this['_suggestions']['values']()));for(const _0x28ee9c of _0xdba424){const _0x4c1fdd=_0x28ee9c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c1fdd))return;}rs(this['editor']['model'],this['_command'],_0xdba424);}}class E extends _0x1ab01a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5cb843,_0x10cbb4,_0x5e6e38){super(_0x5cb843),this['_command']=_0x10cbb4,this['_suggestions']=_0x5e6e38,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a2c7f=this['editor']['model']['document']['selection'],_0x48db02=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x31b274,_0x417fd4){const _0x27efa4=Array['from'](_0x31b274['getRanges']()),_0x1e2767=new Set();for(const _0x2b1d08 of _0x417fd4)if(_0x2b1d08['isInContent']){for(const _0xb89dac of _0x27efa4)for(const _0x3c5ff2 of _0x2b1d08['getRanges']())(_0xb89dac['isIntersecting'](_0x3c5ff2)||_0x31b274['isCollapsed']&&!_0x2b1d08['isMultiRange']&&_0x2b1d08['next']&&_0x3c5ff2['end']['isTouching'](_0xb89dac['start']))&&_0x1e2767['add'](_0x2b1d08);}return _0x1e2767;}(_0x3a2c7f,_0x48db02),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x35f146=ts(Array['from'](this['_selectedSuggestions']));for(const _0x478e3a of _0x35f146){const _0x2628cc=_0x478e3a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2628cc))return;}rs(this['editor']['model'],this['_command'],_0x35f146);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x51c58c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x454544,_0x582102){super(),this['id']=_0x582102['id'],this['type']=_0x582102['type'],this['subType']=_0x582102['subType']||null,this['author']=_0x582102['author'],this['creator']=_0x582102['creator']||_0x582102['author'],this['isExternal']=Boolean(_0x582102['attributes']&&_0x582102['attributes']['@external']),this['data']=null,this['_model']=_0x454544,this['_onAccept']=_0x582102['onAccept'],this['_onDiscard']=_0x582102['onDiscard'],this['_onAttributesChange']=_0x582102['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x582102['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 _0x653a7e=this;for(;_0x653a7e['previous'];)_0x653a7e=_0x653a7e['previous'];return _0x653a7e;}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'](_0x51b20c){this['_markerNames']['add'](_0x51b20c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x448747=>this['_model']['markers']['get'](_0x448747))['filter'](_0x4b4fc0=>_0x4b4fc0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x539e28=>{for(const _0x4de8b7 of this['getMarkers']())_0x539e28['removeMarker'](_0x4de8b7);}),this['_markerNames']['clear']();}['removeMarker'](_0xc1764f){this['_model']['change'](_0x53ceab=>{_0x53ceab['removeMarker'](_0xc1764f);}),this['_markerNames']['delete'](_0xc1764f);}['addRange'](_0x419445){const _0x2854b0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2854b0),this['_model']['change'](_0x309625=>{_0x309625['addMarker'](_0x2854b0,{'range':_0x419445,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3fe580){for(const _0x58bb30 of this['getRanges']())if(_0x58bb30['isIntersecting'](_0x3fe580))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2abbb9=>_0x2abbb9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5326e4,_0x3e7da9)=>[..._0x5326e4,..._0x3e7da9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37542d=this['getRanges']();if(0x1!=_0x37542d['length'])return null;const _0x3d9e59=_0x37542d[0x0],_0x182cc4=_0x3d9e59['start']['nodeAfter'],_0x54b51c=_0x3d9e59['end']['nodeBefore'];return _0x182cc4 instanceof _0x143328?_0x182cc4!=_0x54b51c?null:_0x182cc4: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 _0x5af0ca=[];let _0x44a2e1=this['head'];for(;_0x44a2e1;)_0x5af0ca['push'](_0x44a2e1),_0x44a2e1=_0x44a2e1['next'];return _0x5af0ca;}['setAttribute'](_0x1b64cd,_0x5c8caa){const _0x3ab17d=_0x232559(this['attributes']);_0x7b284c(_0x3ab17d,_0x1b64cd,_0x5c8caa),_0x403583(_0x3ab17d,this['attributes'])||(this['attributes']=_0x3ab17d,this['_onAttributesChange'](_0x3ab17d));}['removeAttribute'](_0x2d34b8){const _0x26344a=_0x232559(this['attributes']);_0x5b24bb(_0x26344a,_0x2d34b8),_0x403583(_0x26344a,this['attributes'])||(this['attributes']=_0x26344a,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 _0x2b49b6()['substr'](0x1,0x5);}}function c(_0x50081c,_0x25554c,_0x5a614e){const _0x450bff=_0x50081c['t'],t=_0x50081c['t'];switch(_0x25554c){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',_0x5a614e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a614e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a614e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a614e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a614e);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',_0x5a614e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a614e);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',_0x5a614e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a614e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a614e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a614e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a614e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a614e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a614e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a614e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a614e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a614e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a614e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a614e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a614e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a614e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a614e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a614e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a614e);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'},_0x5a614e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a614e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a614e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a614e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a614e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a614e);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'},_0x5a614e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a614e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a614e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a614e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a614e);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'},_0x5a614e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a614e);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'},_0x5a614e);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'},_0x5a614e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a614e);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'},_0x5a614e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a614e);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'},_0x5a614e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a614e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a614e);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'},_0x5a614e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a614e);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 _0x450bff({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a614e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x450bff({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a614e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a614e);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'},_0x5a614e);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'},_0x5a614e);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'},_0x5a614e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x25554c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x39c572,_0x1083c9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x39c572,this['_locale']=_0x1083c9;}['getDescriptions'](_0xee2a7a){const _0x2a6869=[],_0x125986=new Set(),_0x148702=new Set();for(let _0x1ef95d=0x0;_0x1ef95d<_0xee2a7a['length'];_0x1ef95d++){const _0x563f07=_0xee2a7a[_0x1ef95d];if(!_0x563f07['isInContent'])continue;const _0x1bc598=this['_handleCustomCallbackDescription'](_0x563f07);if(_0x1bc598){if(null!=_0x563f07['subType']){if(_0x125986['has'](_0x563f07['subType']))continue;_0x125986['add'](_0x563f07['subType']);}_0x2a6869['push'](_0x1bc598);}else{if('attribute'!=_0x563f07['type'])'insertion'!=_0x563f07['type']&&'deletion'!=_0x563f07['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2a6869,_0x563f07,_0xee2a7a[_0x1ef95d+0x1]);else{const _0x35275b=_0x563f07['data']['key'];if(_0x148702['has'](_0x35275b))continue;_0x148702['add'](_0x563f07['data']['key']),_0x35275b==u?this['_handleRenameSuggestionDescription'](_0x2a6869,_0x563f07):this['_handleAttributeSuggestionDescription'](_0x2a6869,_0x563f07);}}}return this['_resolveDescriptionItems'](_0x2a6869);}['registerDescriptionCallback'](_0x240eb3){this['_customCallbacks']['push'](_0x240eb3);}['registerElementLabel'](_0xd53977,_0x4a9273,_0x3724b8=_0x4d0204['normal']){'function'==typeof _0xd53977?_0x5554c0(this['_itemLabelsCallbacks'],{'matchingCallback':_0xd53977,'label':_0x4a9273,'priority':_0x3724b8}):this['_itemLabels']['set'](_0xd53977,_0x4a9273);}['registerAttributeLabel'](_0x1aad72,_0x32473b){this['_attributeLabels']['set'](_0x1aad72,_0x32473b);}['getItemLabel'](_0x4f6df1,_0x39c9ba=0x1){let _0x144306;for(const _0x55dfed of this['_itemLabelsCallbacks'])if(_0x55dfed['matchingCallback'](_0x4f6df1)){_0x144306=_0x55dfed['label'];break;}return _0x144306||(_0x144306=this['_itemLabels']['get'](_0x4f6df1['name'])),_0x144306?_0x144306(_0x39c9ba):0x1!==_0x39c9ba?_0x39c9ba+'\x20'+_0x4f6df1['name']+'s':''+_0x4f6df1['name'];}['_addDescriptionItems'](_0x16ec92,_0x5e0c3f){const _0x2c25b6=_0x5e0c3f['getFirstRange']()['getWalker'](),_0x371d44='insertion'==_0x5e0c3f['type']?'add':'remove';for(const _0x3a5c98 of _0x2c25b6){const _0x3b1296=_0x3a5c98['item'],_0x29b6df=_0x16ec92[_0x16ec92['length']-0x1];if(_0x3b1296['is']('$textProxy'))_0x29b6df&&_0x29b6df['type']['indexOf']('Container')>-0x1&&_0x16ec92['pop'](),_0x29b6df&&'text'==_0x29b6df['type']?_0x29b6df[_0x371d44]+=_0x3b1296['data']:_0x16ec92['push']({'type':'text','add':'add'==_0x371d44?_0x3b1296['data']:'','remove':'remove'==_0x371d44?_0x3b1296['data']:''});else{if(this['_schema']['isObject'](_0x3b1296)){const _0x5afe87=_0x3b1296;if(_0x29b6df&&_0x29b6df['type']['indexOf']('Container')>-0x1&&_0x16ec92['pop'](),'elementEnd'==_0x3a5c98['type'])continue;_0x29b6df&&_0x29b6df['type']==_0x371d44+'Object'&&_0x29b6df['element']['name']==_0x5afe87['name']?_0x29b6df['quantity']++:_0x16ec92['push']({'type':_0x371d44+'Object','element':_0x5afe87,'quantity':0x1}),_0x2c25b6['skip'](_0x55f102=>!('elementEnd'==_0x55f102['type']&&_0x55f102['item']==_0x3b1296));}else{if(this['_schema']['checkChild'](_0x3b1296,'$text')||_0x3b1296['is']('element','softBreak')){const _0x7b12c=_0x3b1296;if('add'==_0x371d44&&'elementStart'==_0x3a5c98['type']||'remove'==_0x371d44&&'elementEnd'==_0x3a5c98['type'])continue;if(_0x29b6df&&-0x1==_0x29b6df['type']['indexOf']('Container')){'text'==_0x29b6df['type']&&(_0x29b6df[_0x371d44]+='\x0a');continue;}let _0x4ea2e9;if(_0x4ea2e9='add'==_0x371d44?_0x7b12c['nextSibling']&&!this['_schema']['isObject'](_0x7b12c['nextSibling'])?_0x7b12c['nextSibling']:null:_0x7b12c['previousSibling']&&!this['_schema']['isObject'](_0x7b12c['previousSibling'])?_0x7b12c['previousSibling']:null,_0x7b12c['isEmpty']||_0x4ea2e9&&_0x4ea2e9['isEmpty']){const _0xc9903a=_0x4ea2e9&&_0x4ea2e9['isEmpty']?_0x4ea2e9:_0x7b12c;_0x29b6df&&_0x29b6df['type']==_0x371d44+'EmptyContainer'&&_0x29b6df['element']['name']==_0xc9903a['name']?_0x29b6df['quantity']++:_0x16ec92['push']({'type':_0x371d44+'EmptyContainer','element':_0xc9903a,'quantity':0x1});}else _0x16ec92['push']({'type':_0x371d44+'Container','element':_0x7b12c});}}}}}['_resolveDescriptionItems'](_0x162f58){const _0x52b7c4=this['_locale'],_0x4218c6=[],_0x4c6575=[],_0x259919=[];for(const _0x39f538 of _0x162f58)switch(_0x39f538['type']){case'text':if(_0x39f538['add']=_0x39f538['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x39f538['remove']=_0x39f538['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x39f538['add']&&''!=_0x39f538['remove']){_0x4218c6['push']({'type':'replace','content':c(_0x52b7c4,'REPLACE_TEXT',['\x22'+_0x39f538['remove']+'\x22','\x22'+_0x39f538['add']+'\x22'])});continue;}if(null!=_0x39f538['add']['match'](/^ +$/)){_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Insert:*\x20%0',c(_0x52b7c4,'ELEMENT_SPACE',_0x39f538['add']['length']))});continue;}if(null!=_0x39f538['remove']['match'](/^ +$/)){_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Remove:*\x20%0',c(_0x52b7c4,'ELEMENT_SPACE',_0x39f538['remove']['length']))});continue;}if(''!=_0x39f538['add']){_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Insert:*\x20%0','\x22'+_0x39f538['add']+'\x22')});continue;}_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Remove:*\x20%0','\x22'+_0x39f538['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Insert:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Remove:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'addContainer':_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Split:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'removeContainer':_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Merge:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'addFormat':_0x4c6575['push'](_0x39f538['key']);continue;case'removeFormat':_0x259919['push'](_0x39f538['key']);continue;default:_0x4218c6['push'](_0x39f538);}if(_0x4c6575['length']){const _0x4b61a3=_0x4c6575['map'](_0x113e10=>this['_attributeLabels']['has'](_0x113e10)?this['_attributeLabels']['get'](_0x113e10):_0x113e10)['join'](',\x20');_0x4218c6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4b61a3)});}if(_0x259919['length']){const _0x3be12b=_0x259919['map'](_0x37b8a6=>this['_attributeLabels']['has'](_0x37b8a6)?this['_attributeLabels']['get'](_0x37b8a6):_0x37b8a6)['join'](',\x20');_0x4218c6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3be12b)});}return _0x4218c6;}['_handleCustomCallbackDescription'](_0x512ebd){for(const _0x473d0a of this['_customCallbacks']){const _0xb0d793=_0x473d0a(_0x512ebd);if(_0xb0d793&&'type'in _0xb0d793)return _0xb0d793;}}['_handleAttributeSuggestionDescription'](_0x37678b,_0x1cc2cb){const _0x44a93f=_0x1cc2cb['data'],_0x52a280=void 0x0===_0x44a93f['newValue']?'removeFormat':'addFormat';_0x37678b['push']({'type':_0x52a280,'key':_0x44a93f['key']});}['_handleRenameSuggestionDescription'](_0x5d0ced,_0x435faa){_0x5d0ced['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x435faa['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x199355,_0x577da8,_0x53f246){if(this['_addDescriptionItems'](_0x199355,_0x577da8),_0x53f246&&_0x53f246['getFirstRange']()&&!_0x577da8['getFirstRange']()['end']['isEqual'](_0x53f246['getFirstRange']()['start'])){const _0x27c779=_0x199355[_0x199355['length']-0x1],_0x753305='insertion'==_0x577da8['type']?'add':'remove';_0x27c779&&'text'==_0x27c779['type']&&(_0x27c779[_0x753305]+='\x0a');}}}class U extends _0x307cfb{['afterInit'](){const _0x1450fd=this['editor'],_0x570c95=_0x1450fd['plugins']['get']('TrackChangesEditing');_0x1450fd['commands']['get']('showAIAssistant')&&_0x570c95['enableCommand']('showAIAssistant');}}class V extends _0x307cfb{['afterInit'](){const _0x15f048=this['editor'],_0x1e43f7=_0x15f048['locale'];if(!_0x15f048['plugins']['has']('AlignmentEditing'))return;const _0x36a43e=_0x15f048['plugins']['get']('TrackChangesEditing');_0x36a43e['enableDefaultAttributesIntegration']('alignment'),_0x36a43e['registerBlockAttribute']('alignment'),_0x36a43e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1e43f7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19263c=this['editor'],_0x333e3d=_0x19263c['locale'];_0x19263c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x242fa7=>{if('formatBlock'!=_0x242fa7['type'])return;const {data:_0x2a2646}=_0x242fa7;if(_0x2a2646&&'alignment'==_0x2a2646['commandName']){const _0x58de9b=_0x2a2646['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x333e3d,'*Format:*\x20%0',function(_0x3dbea8){switch(_0x3dbea8){case'left':return c(_0x333e3d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x333e3d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x333e3d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x333e3d,'FORMAT_JUSTIFY_TEXT');}}(_0x58de9b))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x307cfb{['afterInit'](){const _0xe87bb0=this['editor'],_0x567308=_0xe87bb0['plugins']['get']('TrackChangesEditing'),_0x2a770e=_0xe87bb0['locale'];for(const _0x28bb3b of Yt){if(!_0xe87bb0['plugins']['has'](_0x28bb3b))continue;const _0x4cdd7f=_0x28bb3b['slice'](0x0,-0x7)['toLowerCase'](),_0x3637ef='FORMAT_'+_0x4cdd7f['toUpperCase']();_0x567308['enableDefaultAttributesIntegration'](_0x4cdd7f),_0x567308['registerInlineAttribute'](_0x4cdd7f),_0x567308['descriptionFactory']['registerAttributeLabel'](_0x4cdd7f,c(_0x2a770e,_0x3637ef));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e825b=this['editor'],_0x7fa298=_0x3e825b['locale'],_0x231f0f=_0x3e825b['plugins']['get']('TrackChangesEditing');function _0x534ef9(_0x58cc74,_0x2d55e2){_0x231f0f['descriptionFactory']['registerDescriptionCallback'](_0x490989=>{if('formatInline'!=_0x490989['type'])return;const {data:_0x47ff3d}=_0x490989;return _0x47ff3d&&_0x47ff3d['commandName']===_0x58cc74?_0x47ff3d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x7fa298,'*Format:*\x20%0',_0x2d55e2)}:{'type':'format','content':c(_0x7fa298,'*Remove\x20format:*\x20%0',_0x2d55e2)}:void 0x0;});}_0x534ef9('bold',c(_0x7fa298,'FORMAT_BOLD')),_0x534ef9('italic',c(_0x7fa298,'FORMAT_ITALIC')),_0x534ef9('underline',c(_0x7fa298,'FORMAT_UNDERLINE')),_0x534ef9('code',c(_0x7fa298,'FORMAT_CODE')),_0x534ef9('strikethrough',c(_0x7fa298,'FORMAT_STRIKETHROUGH')),_0x534ef9('subscript',c(_0x7fa298,'FORMAT_SUBSCRIPT')),_0x534ef9('superscript',c(_0x7fa298,'FORMAT_SUPERSCRIPT'));}}class G extends _0x307cfb{['afterInit'](){const _0x4e6127=this['editor'],_0x391592=_0x4e6127['locale'];if(!_0x4e6127['plugins']['has']('BlockQuoteEditing'))return;const _0x3c1ed4=_0x4e6127['plugins']['get']('TrackChangesEditing'),_0x549a09=this['editor']['commands']['get']('blockQuote');_0x3c1ed4['enableCommand']('blockQuote',(_0x693368,_0x1c24c7={})=>{const _0x3a1504=this['editor']['model']['document']['selection'],_0x5759ad=_0x1c24c7&&void 0x0!==_0x1c24c7['forceValue']?_0x1c24c7['forceValue']:!_0x549a09['value'];let _0x160f72=[];if(_0x5759ad){const _0x236e1d=Array['from'](_0x3a1504['getSelectedBlocks']())['filter'](_0x371372=>to(_0x371372)||function(_0x218bb2,_0x323404){const _0x2de774=_0x323404['checkChild'](_0x218bb2['parent'],'blockQuote'),_0x1c6b3b=_0x323404['checkChild'](['$root','blockQuote'],_0x218bb2);return _0x2de774&&_0x1c6b3b;}(_0x371372,this['editor']['model']['schema']));_0x160f72=Zt(_0x236e1d,_0x4e6127['model']);}else{const _0x3ec516=Array['from'](_0x3a1504['getSelectedBlocks']())['filter'](_0x2a2ec2=>to(_0x2a2ec2));_0x160f72=Zt(_0x3ec516,_0x4e6127['model']);}_0x4e6127['model']['change'](()=>{for(const _0x416ca2 of _0x160f72)_0x3c1ed4['markBlockFormat'](_0x416ca2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5759ad}]});});}),_0x3c1ed4['descriptionFactory']['registerDescriptionCallback'](_0x5b8c29=>{const {data:_0x53e45d}=_0x5b8c29;if(_0x53e45d&&'blockQuote'==_0x53e45d['commandName']){const _0x5e169d=c(_0x391592,'ELEMENT_BLOCK_QUOTE');return _0x53e45d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x391592,'*Set\x20format:*\x20%0',_0x5e169d)}:{'type':'format','content':c(_0x391592,'*Remove\x20format:*\x20%0',_0x5e169d)};}});}}function to(_0x286c4a){return'blockQuote'==_0x286c4a['parent']['name'];}class L extends _0x307cfb{['afterInit'](){const _0x212ebc=this['editor'],_0x5cdc9d=_0x212ebc['locale'],_0x8b67d8=_0x212ebc['plugins']['get']('TrackChangesEditing');_0x212ebc['plugins']['has']('BookmarkEditing')&&(_0x8b67d8['enableCommand']('insertBookmark'),_0x8b67d8['enableDefaultAttributesIntegration']('updateBookmark'),_0x8b67d8['registerBlockAttribute']('bookmarkId'),_0x8b67d8['descriptionFactory']['registerDescriptionCallback'](_0x827430=>{if('insertion'!=_0x827430['type']&&'deletion'!=_0x827430['type']&&'attribute'!=_0x827430['type'])return;const _0x55c813=_0x827430['getContainedElement']();if(null==_0x55c813)return;if(!_0x55c813['is']('element','bookmark'))return;const _0x3d2850=_0x55c813['getAttribute']('bookmarkId');if('insertion'==_0x827430['type'])return{'type':'insertion','content':c(_0x5cdc9d,'*Insert:*\x20%0','\x22'+_0x3d2850+'\x22\x20'+c(_0x5cdc9d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x827430['type'])return{'type':'deletion','content':c(_0x5cdc9d,'*Remove:*\x20%0','\x22'+_0x3d2850+'\x22\x20'+c(_0x5cdc9d,'ELEMENT_BOOKMARK'))};const {data:_0x4f91c5}=_0x827430;if(!_0x4f91c5||'bookmarkId'!=_0x4f91c5['key'])return;return{'type':'format','content':c(_0x5cdc9d,'*Set\x20bookmark:*\x20%0','\x22'+_0x4f91c5['newValue']+'\x22')};}));}}class J extends _0x307cfb{['afterInit'](){const _0x5577b7=this['editor'];_0x5577b7['plugins']['has']('CaseChange')&&(_0x5577b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5577b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5577b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x307cfb{['afterInit'](){const _0x35e8df=this['editor'];_0x35e8df['commands']['get']('ckbox')&&_0x35e8df['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x307cfb{['afterInit'](){const _0x3d2854=this['editor'];if(!_0x3d2854['plugins']['has']('CodeBlock'))return;const _0x1d208e=_0x3d2854['plugins']['get']('TrackChangesEditing'),_0x1e2684=_0x3d2854['locale'],_0x5cbe33=_0x3d2854['config']['get']('codeBlock')['languages'],_0x59d55b=_0x3d2854['commands']['get']('codeBlock');_0x1d208e['enableCommand']('indentCodeBlock'),_0x1d208e['enableCommand']('outdentCodeBlock'),_0x1d208e['enableCommand']('codeBlock',(_0x1819c5,_0xacfab1={})=>{const _0x2602a0=_0x3d2854['model'],_0x46ca8a=_0x3d2854['model']['document']['selection'],_0x2e7565=_0xacfab1&&void 0x0!==_0xacfab1['forceValue']?_0xacfab1['forceValue']:!_0x59d55b['value'];let _0x25b917;_0xacfab1['language']||(_0xacfab1['language']=_0x5cbe33[0x0]['language']),_0x25b917=_0x2e7565?Array['from'](_0x46ca8a['getSelectedBlocks']())['filter'](_0xded951=>oo(_0xded951)||function(_0x5b42ce,_0x5a3513){if(_0x5b42ce['is']('rootElement')||_0x5a3513['isLimit'](_0x5b42ce))return!0x1;return _0x5a3513['checkChild'](_0x5b42ce['parent'],'codeBlock');}(_0xded951,_0x2602a0['schema'])):Array['from'](_0x46ca8a['getSelectedBlocks']())['filter'](_0x3cc6ea=>oo(_0x3cc6ea));const _0x202f27=Zt(_0x25b917,_0x2602a0);_0x2602a0['change'](()=>{for(const _0x508f8b of _0x202f27)_0x1d208e['markBlockFormat'](_0x508f8b,{'commandName':'codeBlock','commandParams':[{..._0xacfab1,'forceValue':_0x2e7565}],'formatGroupId':'blockName'});});}),(_0x1d208e['descriptionFactory']['registerElementLabel']('codeBlock',_0x181888=>c(_0x1e2684,'ELEMENT_CODE_BLOCK',_0x181888)),_0x1d208e['descriptionFactory']['registerDescriptionCallback'](_0x2645b9=>{if('formatBlock'!=_0x2645b9['type'])return;const _0x59df32=_0x1e2684['t'],{data:_0x3fc8dd}=_0x2645b9;if(!_0x3fc8dd||'codeBlock'!=_0x3fc8dd['commandName'])return;const _0x839a13=_0x3fc8dd['commandParams'][0x0]['language'],_0x3c4bde=_0x59df32(_0x5cbe33['find'](_0x29a140=>_0x29a140['language']===_0x839a13)['label'])['toLowerCase']();return _0x3fc8dd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1e2684,'*Set\x20format:*\x20%0',c(_0x1e2684,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c4bde+')')}:{'type':'format','content':c(_0x1e2684,'*Remove\x20format:*\x20%0',c(_0x1e2684,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x4707dc){return'codeBlock'==_0x4707dc['name'];}class q extends _0x307cfb{['afterInit'](){const _0x2a3763=this['editor'];if(!_0x2a3763['plugins']['has']('CommentsEditing'))return;_0x2a3763['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2b7035,_0x5a3c1d,_0x166bcc){const _0x1414ee=[];for(const _0x9d2850 of _0x5a3c1d['getItems']())_0x9d2850['hasAttribute'](_0x2b7035)&&_0x1414ee['push'](_0x166bcc['createRangeOn'](_0x9d2850));return _0x1414ee;}function De(_0x51f5cc,_0x5d26f3,{showActiveMarker:_0x4fa5c4=!0x0}={}){const _0x47186d=_0x51f5cc['plugins']['get']('TrackChangesEditing');return(_0x445868,_0x4e34ff,_0x571923)=>{if(!_0x571923['consumable']['test'](_0x4e34ff['markerRange'],_0x445868['name']))return;const _0x20c93f=_0x4e34ff['markerRange']['getWalker'](),_0x23957c=_0x4e34ff['markerRange']['start'],_0x4afcee=_0x51f5cc['model']['schema'];let _0x38b9c6=null,_0x40791a=null,_0x488cb3=!0x1,_0x356095=!0x1;for(const _0x2b5738 of _0x20c93f){const _0x43ab8d=_0x2b5738['item'];_0x488cb3=_0x488cb3||_0x4afcee['isContent'](_0x43ab8d);const _0xbd1194=_0x571923['mapper']['toViewElement'](_0x43ab8d);if(_0xbd1194&&_0xbd1194['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b5738['type']&&(_0x4afcee['isBlock'](_0x43ab8d)&&!_0x4afcee['isLimit'](_0x43ab8d)&&(_0x43ab8d['nextSibling']||_0x23957c['isAtEnd']?_0x38b9c6&&_0x38b9c6['parent']==_0x43ab8d||(_0x38b9c6=_0x43ab8d,_0xbbc77c(_0x2b5738['previousPosition']),_0x356095=!0x0):_0x40791a=_0x40791a||_0x2b5738['previousPosition']));}function _0xbbc77c(_0x38a1ae){const {authorId:_0x3fa450}=_0x47186d['_splitMarkerName'](_0x4e34ff['markerName']),_0x1d8d5b=_0x571923['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d26f3,'data-author-id':_0x3fa450}),_0x4b4c0e=_0x571923['mapper']['toViewPosition'](_0x38a1ae);_0x4fa5c4&&_0x47186d['activeMarkers']['includes'](_0x4e34ff['markerName'])&&_0x571923['writer']['addClass']('ck-suggestion-marker--active',_0x1d8d5b),_0x571923['writer']['insert'](_0x4b4c0e,_0x1d8d5b),_0x571923['mapper']['bindElementToMarker'](_0x1d8d5b,_0x4e34ff['markerName']);}_0x488cb3||_0x356095||!_0x40791a||_0xbbc77c(_0x40791a);};}class z extends _0x307cfb{static get['requires'](){return[_0x4d6fdc];}['init'](){const _0x376a74=this['editor'],_0xdb4b07=_0x376a74['plugins']['get']('TrackChangesEditing');_0xdb4b07['enableCommand']('delete');const _0x1db363=_0x376a74['commands']['get']('deleteForward');_0xdb4b07['enableCommand']('deleteForward',(_0x540fdb,_0x5bb873={})=>{const _0x43f569=_0x376a74['model']['createSelection'](_0x376a74['model']['document']['selection']);_0x43f569['isCollapsed']&&_0x376a74['model']['modifySelection'](_0x43f569,{'direction':'forward','unit':_0x5bb873['unit']});const _0x2460a1=_0x43f569['getFirstRange'](),_0x5555f5=_0x10a155['fromRange'](_0x2460a1);let _0x1ab9de;_0x540fdb(_0x5bb873),_0x1ab9de='$graveyard'==_0x5555f5['root']['rootName']?_0x376a74['model']['createRange'](_0x2460a1['start']):_0x376a74['model']['createRange'](_0x5555f5['start'],_0x5555f5['end']),_0x5555f5['detach'](),_0x376a74['model']['enqueueChange'](_0x1db363['buffer']['batch'],_0x1b9238=>{_0x1db363['buffer']['lock'](),_0x1b9238['setSelection'](_0x1b9238['createRange'](_0x1ab9de['end'])),_0x1db363['buffer']['unlock']();});}),_0x376a74['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x376a74,'merge'),{'priority':'high'}),_0x376a74['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5422f7,_0x1d8395,_0x4de992)=>{_0x4de992['options']['showSuggestionHighlights']&&De(_0x376a74,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5422f7,_0x1d8395,_0x4de992);},{'priority':'high'}),_0x376a74['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fd26c,_0xf1537d,_0x16883a)=>{const _0x35996e=_0x16883a['mapper']['markerNameToElements'](_0xf1537d['markerName']);if(_0x35996e){for(const _0x3c17a8 of _0x35996e)_0x3c17a8['is']('uiElement')&&(_0x16883a['mapper']['unbindElementFromMarkerName'](_0x3c17a8,_0xf1537d['markerName']),_0x16883a['writer']['remove'](_0x3c17a8));}},{'priority':'high'});}}class W extends _0x307cfb{['afterInit'](){const _0x303b0c=this['editor'];if(!_0x303b0c['plugins']['has']('ListEditing'))return;const _0x246572=_0x303b0c['locale'],_0x3bd443=_0x303b0c['plugins']['get']('TrackChangesEditing'),_0x40ce37=_0x303b0c['plugins']['has']('TodoListEditing'),_0x261c37=!!_0x303b0c['config']['get']('list.multiBlock');function _0x4d5208(_0x193653){return{'type':'format','content':''+c(_0x246572,'*Set\x20format:*\x20%0',_0x193653)};}function _0x3e2398(_0x30cbfa){return{'type':'format','content':''+c(_0x246572,'*Remove\x20format:*\x20%0',_0x30cbfa)};}_0x3bd443['enableDefaultAttributesIntegration']('numberedList'),_0x3bd443['enableDefaultAttributesIntegration']('bulletedList'),_0x3bd443['enableDefaultAttributesIntegration']('customNumberedList'),_0x3bd443['enableDefaultAttributesIntegration']('customBulletedList'),_0x3bd443['enableDefaultAttributesIntegration']('indentList'),_0x3bd443['enableDefaultAttributesIntegration']('outdentList'),_0x3bd443['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3bd443['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3bd443['registerBlockAttribute']('listItemId'),_0x3bd443['registerBlockAttribute']('listType'),_0x3bd443['registerBlockAttribute']('listIndent'),_0x261c37&&(_0x3bd443['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3bd443['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x40ce37&&(_0x3bd443['enableDefaultAttributesIntegration']('todoList'),_0x3bd443['enableDefaultAttributesIntegration']('checkTodoList'),_0x3bd443['registerBlockAttribute']('todoListChecked'),_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x437f7a=>{const {data:_0xf0ba61}=_0x437f7a;if(_0xf0ba61&&'todoListChecked'==_0xf0ba61['key'])return{'type':'format','content':_0xf0ba61['newValue']?c(_0x246572,'*Check\x20item*'):c(_0x246572,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42a279=>{if(_0x42a279['batch']['isUndo'])return!0x1;let _0x9dc309=!0x1;const _0x5ba6de=_0x3bd443['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x362699=>'todoListChecked'===_0x3bd443['_getAttributeKey'](_0x362699));for(const _0xf2d750 of _0x5ba6de){'todo'!=_0xf2d750['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3bd443['_findSuggestions'](_0xf2d750['getFirstRange'](),'attribute')['find'](_0x2a6596=>'listType'===_0x3bd443['_getAttributeKey'](_0x2a6596['suggestion']))||(_0x42a279['removeMarker'](_0xf2d750['getFirstMarker']()),_0x9dc309=!0x0));}return _0x9dc309;})),_0x3bd443['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x246572,'FORMAT_INDENT'));const _0x2bbe07={'type':'format','content':''};_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x554ace=>{const {data:_0x1cc62e}=_0x554ace;if(!_0x1cc62e||'listType'!=_0x1cc62e['key'])return;let _0x8b7d92=_0x554ace['head'];for(;_0x8b7d92;){if(_0x8b7d92['data']&&(('listStyle'==_0x8b7d92['data']['key']||'listMarkerStyle'==_0x8b7d92['data']['key'])&&(_0x8b7d92['data']['newValue']&&'default'!=_0x8b7d92['data']['newValue']||'default'!=_0x8b7d92['data']['oldValue']&&!_0x1cc62e['newValue'])||!_0x261c37&&_0x8b7d92['data']['key']==u))return _0x2bbe07;_0x8b7d92=_0x8b7d92['next'];}if(null==_0x1cc62e['newValue'])switch(_0x1cc62e['oldValue']){case'bulleted':return _0x3e2398(c(_0x246572,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e2398(c(_0x246572,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e2398(c(_0x246572,'ELEMENT_TODO_LIST'));}switch(_0x1cc62e['newValue']){case'bulleted':return _0x4d5208(c(_0x246572,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d5208(c(_0x246572,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d5208(c(_0x246572,'ELEMENT_TODO_LIST'));}}),_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x4bf4c3=>{const {data:_0x32087e}=_0x4bf4c3;if(_0x32087e&&'listIndent'==_0x32087e['key'])return null==_0x32087e['newValue']||null==_0x32087e['oldValue']&&0x0==_0x32087e['newValue']?_0x2bbe07:void 0x0;}),_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x374098=>{if('attribute'!=_0x374098['type'])return;const {data:_0x34db9c}=_0x374098;if(!_0x34db9c||'listItemId'!=_0x34db9c['key'])return;const _0x234c8e=Te(_0x374098);return'newValue'==_0x234c8e?{'type':'format','content':c(_0x246572,'*Merge:*\x20list\x20item')}:'oldValue'==_0x234c8e?{'type':'format','content':c(_0x246572,'*Split:*\x20list\x20item')}:_0x2bbe07;}),_0x303b0c['model']['document']['registerPostFixer'](_0x46957a=>this['listItemIdFixer'](_0x46957a)),_0x303b0c['model']['document']['registerPostFixer'](_0x1b974e=>this['noTrackChangesFixer'](_0x1b974e)),_0x303b0c['model']['document']['on']('change:data',(_0x44010c,_0x2e9629)=>{if(_0x2e9629['isUndo']||!_0x2e9629['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x37e831){if(_0x37e831['batch']['isUndo']||!_0x37e831['batch']['isLocal'])return!0x1;let _0x1d6e42=!0x1;const _0x5223b3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x439cee=>_0x439cee['data']&&'listItemId'==_0x439cee['data']['key'])['filter'](_0x3927ec=>_0x3927ec['data']['newValue']&&_0x3927ec['data']['oldValue']);for(const _0x5369fc of _0x5223b3)Te(_0x5369fc)||(_0x37e831['removeMarker'](_0x5369fc['getFirstMarker']()),_0x1d6e42=!0x0);return _0x1d6e42;}['noTrackChangesFixer'](_0x1faa16){if(_0x1faa16['batch']['isUndo']||!_0x1faa16['batch']['isLocal'])return!0x1;const _0x2a8d05=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a8d05['trackChangesCommand']['value'])return!0x1;let _0x2f726d=!0x1;const _0x8fd911=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3b7076=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2304a7=>'attribute'==_0x2304a7['type'])['filter'](_0x5723bf=>_0x8fd911['includes'](_0x5723bf['attributeKey']));if(0x0==_0x3b7076['length'])return _0x2f726d;for(const _0x8bcc49 of _0x3b7076){const _0x3c10b9=_0x2a8d05['_findSuggestions'](_0x8bcc49['range'],'attribute')['filter'](_0x5f3809=>!_0x5f3809['meta']['isNextTo'])['map'](_0x4c18f0=>_0x4c18f0['suggestion'])['filter'](_0x2d36cd=>{const _0x591c4e=_0x2a8d05['_getAttributeKey'](_0x2d36cd);return _0x8fd911['includes'](_0x591c4e);});if(_0x3c10b9['length']){for(const _0x41a811 of _0x3c10b9)_0x1faa16['removeMarker'](_0x41a811['getFirstMarker']());_0x2f726d=!0x0;}}return _0x2f726d;}['assureChains'](){const _0x2cbffe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ded7f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x328c7c;const _0x1d8cd5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x179cd2=>{if(_0x179cd2['data']['oldRange']||!_0x179cd2['data']['newRange'])return null;if(!_0x179cd2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2119c2}=_0x2cbffe['_splitMarkerName'](_0x179cd2['name']);if(!_0x2cbffe['hasSuggestion'](_0x2119c2))return null;const _0x5d0529=_0x2cbffe['getSuggestion'](_0x2119c2);return _0x1ded7f['includes'](_0x5d0529['data']['key']);})['map'](_0x4fdcb7=>{const {id:_0xacbb2c}=_0x2cbffe['_splitMarkerName'](_0x4fdcb7['name']),_0x26f445=_0x2cbffe['getSuggestion'](_0xacbb2c);return _0x328c7c=_0x26f445['attributes']['groupId'],_0x26f445['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1d8cd5['size'])return;const _0xfeaefa=_0x2cbffe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x354c60=>'attribute'==_0x354c60['type']&&_0x354c60['data']&&_0x1ded7f['includes'](_0x354c60['data']['key'])&&_0x354c60['attributes']['groupId']!=_0x328c7c)['map'](_0x270c68=>({'listItem':_0x270c68['getFirstRange']()['start']['nodeAfter'],'groupId':_0x270c68['attributes']['groupId']})),_0x44a6a9=new Set();for(const {groupId:_0x2ec3c7,listItem:_0xcf0bd0}of _0xfeaefa)_0x1d8cd5['has'](_0xcf0bd0)&&_0x44a6a9['add'](_0x2ec3c7);for(const _0x29d5c4 of _0x2cbffe['getSuggestions']())_0x44a6a9['has'](_0x29d5c4['attributes']['groupId'])&&_0x29d5c4['setAttribute']('groupId',_0x328c7c);}['_supportLegacySuggestions'](){const _0x8f9f16=this['editor'],_0x24734e=_0x8f9f16['locale'],_0x301dc1=_0x8f9f16['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x301dc1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5bfbb6,_0x427335){const _0x5b9d04=[];for(let _0x4c3716 of _0x5bfbb6)_0x4c3716['start']['nodeAfter']===_0x4c3716['end']['parent']&&(_0x4c3716=_0x8f9f16['model']['createRange'](_0x8f9f16['model']['createPositionAt'](_0x4c3716['start']['nodeAfter'],0x0))),_0x5b9d04['push'](_0x4c3716);_0x8f9f16['model']['change'](_0x5e9299=>{const _0x4665e0=_0x8f9f16['model']['document']['selection'],_0x4ff131=Array['from'](_0x4665e0['getRanges']())['map'](_0x5d2a85=>_0x10a155['fromRange'](_0x5d2a85));_0x5e9299['setSelection'](_0x5b9d04),_0x8f9f16['commands']['get'](_0x427335['commandName'])['refresh'](),_0x427335['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8f9f16['execute'](_0x427335['commandName'],..._0x427335['commandParams']),_0x5e9299['setSelection'](_0x4ff131);for(const _0x4145bc of _0x4ff131)_0x4145bc['detach']();});}),_0x301dc1['descriptionFactory']['registerElementLabel'](function(_0x13e793){const _0x15c953=!_0x8f9f16['model']['schema']['isObject'](_0x13e793),_0x298afd=_0x13e793['previousSibling'],_0x1d2ba1=_0x13e793['nextSibling'],_0x271f2d=_0x13e793['getAttribute']('listItemId'),_0x51b164=!_0x298afd||_0x298afd['getAttribute']('listItemId')!==_0x271f2d,_0x1a3cca=!_0x1d2ba1||_0x1d2ba1['getAttribute']('listItemId')!==_0x271f2d;return _0x15c953&&Boolean(_0x271f2d)&&_0x51b164&&_0x1a3cca;},_0x87ff9c=>c(_0x24734e,'ELEMENT_LIST_ITEM',_0x87ff9c));}['_registerLegacyDescription'](){const _0x2409d5=this['editor'],_0xb3bc35=_0x2409d5['locale'];function _0x6b2ce5(_0x5377bd){const _0x3c2a9d=_0x2409d5['commands']['get']('bulletedList')['value'],_0x1de299=_0x2409d5['commands']['get']('numberedList')['value'];return'numberedList'===_0x5377bd?_0x3c2a9d:_0x1de299;}_0x2409d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ffc9f){if('formatBlock'!=_0x1ffc9f['type'])return;const {data:_0x105525}=_0x1ffc9f;if(!_0x105525)return;let _0x552f83,_0x78fe6d,_0x2bfeb7,_0x342575;switch(_0x105525['commandName']){case'bulletedList':_0x2bfeb7=_0x105525['commandParams'][0x0]['forceValue'],_0x342575=_0x6b2ce5(_0x105525['commandName']),_0x552f83=_0x2bfeb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x342575&&_0x2409d5['config']['get']('list.multiBlock')||(_0x552f83='*Change\x20to:*\x20%0'),_0x78fe6d={'type':'format','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2bfeb7=_0x105525['commandParams'][0x0]['forceValue'],_0x342575=_0x6b2ce5(_0x105525['commandName']),_0x552f83=_0x2bfeb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x342575&&_0x2409d5['config']['get']('list.multiBlock')||(_0x552f83='*Change\x20to:*\x20%0'),_0x78fe6d={'type':'format','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x552f83='*Indent:*\x20%0',_0x78fe6d={'type':'format','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x552f83=function(_0x4a546b){const _0x5961b2=_0x4a546b['getFirstRange']();let _0x3b3f9c=_0x5961b2['start']['nodeAfter'];for(;_0x3b3f9c&&_0x5961b2['containsItem'](_0x3b3f9c);){if(_0x3b3f9c['getAttribute']('listIndent')>0x0)return!0x1;_0x3b3f9c=_0x3b3f9c['nextSibling'];}return!0x0;}(_0x1ffc9f)?c(_0xb3bc35,'*Format:*\x20remove\x20from\x20%0',c(_0xb3bc35,function(_0xb8b401){return'ELEMENT_'+_0xb8b401['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ffc9f))):c(_0xb3bc35,'*Outdent:*\x20%0',c(_0xb3bc35,'ELEMENT_LIST_ITEM')),_0x78fe6d={'type':'format','content':_0x552f83};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x105525['multipleBlocks']&&(_0x552f83='*Merge:*\x20%0',_0x78fe6d={'type':'deletion','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_LIST_ITEM'))});}return _0x78fe6d;});}}function Te(_0x5884ca){let _0x48d88e=_0x5884ca['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x48d88e;){const _0x4f6fca=_0x48d88e['getAttribute']('listItemId');if(!_0x4f6fca)return!0x1;if(_0x4f6fca==_0x5884ca['data']['newValue'])return'newValue';if(_0x4f6fca==_0x5884ca['data']['oldValue'])return'oldValue';_0x48d88e=_0x48d88e['previousSibling'];}return!0x1;}class Se extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ffecc=this['editor']['config']['get']('list.properties'),_0x823386=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ffecc['styles']&&(_0x823386['enableDefaultAttributesIntegration']('listStyle'),_0x823386['registerBlockAttribute']('listStyle')),_0x1ffecc['reversed']&&(_0x823386['enableDefaultAttributesIntegration']('listReversed'),_0x823386['registerBlockAttribute']('listReversed')),_0x1ffecc['startIndex']&&(_0x823386['enableDefaultAttributesIntegration']('listStart'),_0x823386['registerBlockAttribute']('listStart'));const _0x27b263={'type':'format','content':''};_0x823386['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xdc8ab6=this['editor']['locale'];_0x823386['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0xdc8ab6,'FORMAT_LIST_REVERSED')),_0x823386['descriptionFactory']['registerDescriptionCallback'](_0x39bdd4=>{const {data:_0x396ae8}=_0x39bdd4;if(_0x396ae8&&'listReversed'==_0x396ae8['key'])return null==_0x396ae8['newValue']||0x0==_0x396ae8['newValue']&&null==_0x396ae8['oldValue']?_0x27b263:void 0x0;}),_0x823386['descriptionFactory']['registerAttributeLabel']('listStart',c(_0xdc8ab6,'FORMAT_LIST_START')),_0x823386['descriptionFactory']['registerDescriptionCallback'](_0x41306e=>{const {data:_0x543fba}=_0x41306e;if(_0x543fba&&'listStart'==_0x543fba['key'])return null==_0x543fba['newValue']||0x1==_0x543fba['newValue']&&null==_0x543fba['oldValue']?_0x27b263:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b001c=>{if(_0x4b001c['batch']['isUndo'])return!0x1;let _0xdd0b7d=!0x1;const _0x5eef88=_0x823386['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c607d=>{const _0x2f9900=_0x823386['_getAttributeKey'](_0x5c607d);return'listStart'==_0x2f9900||'listReversed'==_0x2f9900;});for(const _0x30f013 of _0x5eef88){const _0x4fc7e6=_0x30f013['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4fc7e6||'customNumbered'==_0x4fc7e6)continue;_0x823386['_findSuggestions'](_0x30f013['getFirstRange'](),'attribute')['find'](_0x177c7b=>'listType'==_0x823386['_getAttributeKey'](_0x177c7b['suggestion']))||(_0x4b001c['removeMarker'](_0x30f013['getFirstMarker']()),_0xdd0b7d=!0x0);}return _0xdd0b7d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3693ed){const _0x3d656f=this['editor']['locale'],{data:_0x558af7}=_0x3693ed,_0x58cc44={'type':'format','content':''};if(!_0x558af7||'listStyle'!=_0x558af7['key'])return;if(!_0x558af7['oldValue'])return'default'==_0x558af7['newValue']?_0x58cc44:{'type':'format','content':''+c(_0x3d656f,'*Set\x20format:*\x20%0',c(_0x3d656f,this['_getTranslationKeyForListStyle'](_0x558af7['newValue'])))};if(!_0x558af7['newValue']){if('default'==_0x558af7['oldValue'])return _0x58cc44;let _0x1609f2=_0x3693ed['head'];for(;_0x1609f2;){if(_0x1609f2['data']&&'listType'==_0x1609f2['data']['key']&&_0x1609f2['data']['newValue'])return _0x58cc44;_0x1609f2=_0x1609f2['next'];}return{'type':'format','content':''+c(_0x3d656f,'*Remove\x20format:*\x20%0',c(_0x3d656f,this['_getTranslationKeyForListStyle'](_0x558af7['oldValue'])))};}if('default'!=_0x558af7['newValue'])return{'type':'format','content':''+c(_0x3d656f,'*Set\x20format:*\x20%0',c(_0x3d656f,this['_getTranslationKeyForListStyle'](_0x558af7['newValue'])))};let _0x58b582=_0x3693ed['head'];for(;_0x58b582;){if(_0x58b582['data']&&'listType'==_0x58b582['data']['key']&&_0x58b582['data']['newValue']&&_0x58b582['data']['oldValue'])return _0x58cc44;_0x58b582=_0x58b582['next'];}return{'type':'format','content':c(_0x3d656f,'*Set\x20format:*\x20%0',c(_0x3d656f,'ELEMENT_'+_0x3693ed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x972adb=this['editor'],_0x898bb3=_0x972adb['locale'];_0x972adb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df0f3=>{if('formatBlock'!=_0x2df0f3['type'])return;const {data:_0x57f895}=_0x2df0f3;if(!_0x57f895)return;let _0x3e9bd3,_0x31f902;switch(_0x57f895['commandName']){case'listStyle':_0x3e9bd3='*Change\x20to:*\x20%0',_0x31f902={'type':'format','content':c(_0x898bb3,_0x3e9bd3,c(_0x898bb3,this['_getTranslationKeyForListStyle'](_0x57f895['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3e9bd3=_0x57f895['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31f902={'type':'format','content':c(_0x898bb3,_0x3e9bd3)};break;case'listStart':_0x3e9bd3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31f902={'type':'format','content':c(_0x898bb3,_0x3e9bd3,_0x57f895['commandParams'][0x0]['startIndex'])};}return _0x31f902;});}['_getTranslationKeyForListStyle'](_0xb783f0){return'ELEMENT_'+function(_0x2d17ed){if(_e['includes'](_0x2d17ed))return'bulleted';if(Re['includes'](_0x2d17ed))return'numbered';return null;}(_0xb783f0)['toUpperCase']()+'_LIST_'+_0xb783f0['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x307cfb{['afterInit'](){const _0x3abcc1=this['editor'];_0x3abcc1['commands']['get']('emoji')&&_0x3abcc1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x307cfb{static get['requires'](){return[_0xd175f6];}['init'](){const _0x3975d7=this['editor'],_0x14170e=_0x3975d7['plugins']['get']('TrackChangesEditing'),_0x2ae576=_0x3975d7['commands']['get']('enter');_0x14170e['enableCommand']('enter',()=>{_0x3975d7['model']['change'](_0xcc4094=>{const _0x4335ad=_0x3975d7['model']['document']['selection'],_0x4ee812=_0x4335ad['getFirstPosition'](),_0x1dbde8=_0x10a155['fromRange'](_0x4335ad['getFirstRange']());if(_0x2ae576['enterBlock'](_0xcc4094)){const _0x1a9130=_0x3975d7['model']['createPositionAt'](_0x4ee812['parent']['nextSibling'],0x0),_0x4806e8=_0xcc4094['createRange'](_0x4ee812,_0x1a9130);_0x14170e['markInsertion'](_0x4806e8);}else _0xcc4094['setSelection'](_0xcc4094['createRange'](_0x1dbde8['end']));_0x1dbde8['detach'](),_0x2ae576['fire']('afterExecute',{'writer':_0xcc4094});});}),_0x3975d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3975d7,'split'),{'priority':'high'}),_0x3975d7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fde67,_0x13bff3,_0x1765d1)=>{const _0x274a47=_0x1765d1['mapper']['markerNameToElements'](_0x13bff3['markerName']);if(_0x274a47){for(const _0x2abb8c of _0x274a47)_0x2abb8c['hasClass']('ck-suggestion-marker-split')&&(_0x1765d1['mapper']['unbindElementFromMarkerName'](_0x2abb8c,_0x13bff3['markerName']),_0x1765d1['writer']['remove'](_0x2abb8c));}},{'priority':'high'}),_0x3975d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xfd2e86,_0x22402c,_0x333d92)=>{_0x333d92['options']['showSuggestionHighlights']&&De(_0x3975d7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xfd2e86,_0x22402c,_0x333d92);},{'priority':'high'});}}class Z extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x50118b=this['editor']['plugins']['get']('TrackChangesEditing');_0x50118b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x50118b['enableCommand']('findNext'),_0x50118b['enableCommand']('findPrevious'),_0x50118b['enableCommand']('replace'),_0x50118b['enableCommand']('replaceAll');}['handleFindCommand'](_0x327631,_0x3df514,_0x3eac47={}){const _0x16e30b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x327631(_0x7c5d38=>{let _0x5436dd=('string'==typeof _0x3df514?_0x16e30b['findByTextCallback'](_0x3df514,_0x3eac47):_0x3df514)(_0x7c5d38);Array['isArray'](_0x5436dd)&&(_0x5436dd={'results':_0x5436dd,'searchText':'string'==typeof _0x3df514?_0x3df514:''});const _0x4c2c6b=_0x5436dd['results']['filter'](_0x421bbd=>!0x1===this['_isInDeletionRange'](_0x421bbd,_0x7c5d38['item']));return{..._0x5436dd,'results':_0x4c2c6b};},_0x3eac47);}['_isInDeletionRange'](_0x5b9a75,_0x396495){const _0x4cdf04=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x396495,_0x5b9a75['start']),this['editor']['model']['createPositionAt'](_0x396495,_0x5b9a75['end']));for(const _0x42fed3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4cdf04['getIntersection'](_0x42fed3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x307cfb{['afterInit'](){const _0x45520a=this['editor']['locale'],_0x40f067=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x301e45,commandName:_0x229faf}of eo)this['editor']['plugins']['has'](_0x301e45)&&(_0x40f067['enableDefaultAttributesIntegration'](_0x229faf),_0x40f067['registerInlineAttribute'](_0x229faf));_0x40f067['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x45520a,'FORMAT_FONT_SIZE')),_0x40f067['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x45520a,'FORMAT_FONT_FAMILY')),_0x40f067['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x45520a,'FORMAT_FONT_COLOR')),_0x40f067['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x45520a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x182e9e=this['editor'],_0x1d73d7=_0x182e9e['locale'];_0x182e9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e3c9f=>{const _0x4545c7=_0x1d73d7['t'];if('formatInline'!=_0x4e3c9f['type'])return;const {data:_0x2e732e}=_0x4e3c9f;if(null!=_0x2e732e){if('fontSize'==_0x2e732e['commandName']){const _0x9b23ab=_0x2e732e['commandParams'][0x0]['value'];if(_0x9b23ab){const _0x4fcc73=_0x4545c7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd3a09c=>_0xd3a09c['model']==_0x9b23ab)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20size:*\x20%0',_0x4fcc73)};}return{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2e732e['commandName']){const _0x5ed6d7=_0x2e732e['commandParams'][0x0]['value'];return _0x5ed6d7?{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20family:*\x20%0',_0x5ed6d7)}:{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2e732e['commandName']){const _0x36e6fb=_0x2e732e['commandParams'][0x0]['value'];if(_0x36e6fb){const _0x1cc7e7=_0x141a17(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14f9f1=>_0x14f9f1['model']==_0x36e6fb);let _0x5e107b=_0x36e6fb,_0x4539f7='';return _0x1cc7e7&&(_0x5e107b=_0x1cc7e7['label'],_0x4539f7=_0x4545c7(_0x5e107b)['toLowerCase']()),{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20color:*\x20%0',_0x4539f7)['trim'](),'color':{'value':_0x36e6fb,'title':_0x4539f7||_0x5e107b}};}return{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2e732e['commandName']){const _0x453e43=_0x2e732e['commandParams'][0x0]['value'];if(_0x453e43){const _0x151501=_0x141a17(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x292b00=>_0x292b00['model']==_0x453e43);let _0x413408=_0x453e43,_0x1dffcd='';return _0x151501&&(_0x413408=_0x151501['label'],_0x1dffcd=_0x4545c7(_0x413408)['toLowerCase']()),{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x1dffcd)['trim'](),'color':{'value':_0x453e43,'title':_0x1dffcd||_0x413408}};}return{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x307cfb{['afterInit'](){const _0x1cae41=this['editor'],_0x3cce0b=_0x1cae41['plugins']['get']('TrackChangesEditing'),_0x80a7=_0x1cae41['commands']['get']('copyFormat'),_0x140577=_0x1cae41['commands']['get']('pasteFormat');_0x80a7&&_0x140577&&(_0x3cce0b['enableDefaultAttributesIntegration']('pasteFormat'),_0x3cce0b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x371c1b=this['editor'],_0x4e9d51=_0x371c1b['locale'];_0x371c1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a235=>{if('formatBlock'!=_0x12a235['type']&&'formatInline'!=_0x12a235['type'])return;const {data:_0x4eca1c}=_0x12a235;if(_0x4eca1c&&'pasteFormat'===_0x4eca1c['commandName']){const _0x7b54e9=[],_0x44ca24=_0x4eca1c['commandParams'][0x0];for(const [_0x370422,_0x1e05dd]of Object['entries'](_0x44ca24))_0x7b54e9['push'](ro(_0x371c1b,_0x370422,_0x1e05dd));return _0x7b54e9['length']?{'type':'format','content':c(_0x4e9d51,'*Set\x20format\x20to:*\x20%0',_0x7b54e9['join'](',\x20'))}:{'type':'format','content':c(_0x4e9d51,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5b3c16,_0x7ed968,_0x2c0a8b){const _0x3df0aa=_0x5b3c16['locale']['t'],_0x5c0fd6=_0x7ed968['split'](/(?=[A-Z])/)['join']('\x20'),_0x4064d5=_0x3df0aa(_0x5c0fd6['charAt'](0x0)['toUpperCase']()+_0x5c0fd6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c0a8b)return _0x4064d5;if('fontColor'===_0x7ed968||'fontBackgroundColor'===_0x7ed968){const _0x3cee90=_0x141a17(_0x5b3c16['config']['get']('fontColor.colors'))['find'](_0x1fd7e2=>_0x1fd7e2['model']==_0x2c0a8b);return _0x4064d5+'\x20('+(_0x3cee90?_0x3df0aa(_0x3cee90['label'])['toLowerCase']():_0x2c0a8b)+')';}if('fontSize'===_0x7ed968&&isNaN(parseFloat(_0x2c0a8b))){const _0x57b675=_0x5b3c16['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5b3c16['config']['get']('fontSize.options'))['find'](_0x2f58dd=>_0x2f58dd['model']==_0x2c0a8b);return _0x4064d5+'\x20('+(_0x57b675?_0x3df0aa(_0x57b675['title'])['toLowerCase']():_0x2c0a8b)+')';}return _0x4064d5+'\x20('+_0x2c0a8b+')';}class nt extends _0x307cfb{['_headingOptions'];['afterInit'](){const _0x5f4396=this['editor'];if(!_0x5f4396['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f4396['config']['get']('heading.options');const _0x203145=_0x5f4396['locale'],_0x1304e0=_0x5f4396['plugins']['get']('TrackChangesEditing');_0x1304e0['enableDefaultAttributesIntegration']('heading');for(const _0x1aecbb of this['_headingOptions'])'paragraph'!=_0x1aecbb['model']&&_0x1304e0['descriptionFactory']['registerElementLabel'](_0x1aecbb['model'],_0x27ba61=>{const _0x11276d=this['_getHeadingLevel'](_0x1aecbb['model']);return null!==_0x11276d?_0x585fea(_0x27ba61,_0x11276d):_0x575f33(_0x27ba61,_0x1aecbb['title']);});function _0x585fea(_0x3ce607,_0x51d436){return c(_0x203145,'ELEMENT_HEADING',[_0x3ce607,_0x51d436]);}function _0x575f33(_0x42eb0c,_0x31fec5){return c(_0x203145,'ELEMENT_HEADING_CUSTOM',[_0x42eb0c,_0x31fec5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24835a=this['editor'],_0x4d7c9a=_0x24835a['locale'];function _0x5883b1(_0x561d6b,_0x31596d){return c(_0x4d7c9a,'ELEMENT_HEADING_CUSTOM',[_0x561d6b,_0x31596d]);}_0x24835a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ee24=>{if('formatBlock'!=_0x27ee24['type'])return;const {data:_0x5dd6ab}=_0x27ee24;if(_0x5dd6ab&&'heading'==_0x5dd6ab['commandName']){const _0x5e9cb8=_0x5dd6ab['commandParams'][0x0]['value'],_0x47795e=this['_getHeadingLevel'](_0x5e9cb8);if(null!==_0x47795e)return{'type':'format','content':c(_0x4d7c9a,'*Change\x20to:*\x20%0',(_0x5810eb=0x1,_0x3af3da=_0x47795e,c(_0x4d7c9a,'ELEMENT_HEADING',[_0x5810eb,_0x3af3da])))};const _0x3525f8=this['_headingOptions']['find'](_0x4bfd2b=>_0x4bfd2b['model']===_0x5e9cb8)['title'];return{'type':'format','content':c(_0x4d7c9a,'*Change\x20to:*\x20%0',_0x5883b1(0x1,_0x3525f8))};}var _0x5810eb,_0x3af3da;});}['_getHeadingLevel'](_0x381129){const _0x141674=_0x381129['match'](/^heading(\d+)/);if(_0x141674)return _0x141674[0x1];const _0x3b7581=this['_headingOptions']?.['find'](_0x84a375=>_0x84a375['model']==_0x381129);if(_0x3b7581&&_0x3b7581['view']){const _0x413d71=_0x3b7581['view'],_0x334815=(_0x413d71['name']??_0x413d71)['match'](/^h(\d+)/);if(_0x334815)return _0x334815[0x1];}return null;}}class it extends _0x307cfb{['afterInit'](){const _0x5f501b=this['editor'];if(!_0x5f501b['plugins']['has']('HighlightEditing'))return;const _0x411fdd=_0x5f501b['plugins']['get']('TrackChangesEditing'),_0x1fe085=_0x5f501b['locale'];_0x411fdd['enableDefaultAttributesIntegration']('highlight'),_0x411fdd['registerInlineAttribute']('highlight'),_0x411fdd['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1fe085,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f48a9=this['editor'],_0x20cf81=_0x4f48a9['locale'];_0x4f48a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dccaa=>{if('formatInline'!=_0x5dccaa['type'])return;const {data:_0x136a9c}=_0x5dccaa;if(_0x136a9c&&'highlight'==_0x136a9c['commandName']){const _0x266df1=_0x20cf81['t'],_0x339e62=_0x136a9c['commandParams'][0x0]['value'];if(_0x339e62){const _0x121f96=_0x4f48a9['config']['get']('highlight.options')['find'](_0x22a4f2=>_0x22a4f2['model']==_0x339e62),_0x3d113e=_0x266df1(_0x121f96['title'])['toLowerCase']();return{'type':'format','content':c(_0x20cf81,'*Set\x20highlight:*\x20%0',_0x3d113e),'color':{'value':_0x121f96['color'],'title':_0x121f96['title']}};}return{'type':'format','content':c(_0x20cf81,'*Remove\x20highlight*',c(_0x20cf81,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x307cfb{['afterInit'](){const _0x40aa47=this['editor'];if(!_0x40aa47['plugins']['has']('HorizontalLineEditing'))return;_0x40aa47['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe4e1e5=_0x40aa47['plugins']['get']('TrackChangesEditing'),_0x2b3099=_0x40aa47['locale'];_0xe4e1e5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x385010=>c(_0x2b3099,'ELEMENT_HORIZONTAL_LINE',_0x385010)),_0x40aa47['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1299b7,{writer:_0x3546b6,options:_0x2cf3cc})=>{if(!_0x2cf3cc['showSuggestionHighlights'])return null;const _0xddc73e=_0x3546b6['createContainerElement']('div'),_0x3bca63=_0x3546b6['createEmptyElement']('hr');return _0x3546b6['addClass']('ck-horizontal-line',_0xddc73e),_0x3546b6['insert'](_0x3546b6['createPositionAt'](_0xddc73e,0x0),_0x3bca63),_0xddc73e;},'converterPriority':'high'});}}class ot extends _0x307cfb{['afterInit'](){const _0x26d6d8=this['editor'];if(!_0x26d6d8['plugins']['has']('HtmlEmbed'))return;const _0x58d41b=_0x26d6d8['plugins']['get']('TrackChangesEditing'),_0x32c0d3=_0x26d6d8['locale'];_0x58d41b['descriptionFactory']['registerElementLabel']('rawHtml',_0xd8402d=>c(_0x32c0d3,'ELEMENT_HTML_EMBED',_0xd8402d)),_0x58d41b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58d41b['registerBlockAttribute']('value'),_0x58d41b['descriptionFactory']['registerDescriptionCallback'](_0x5af427=>{if('attribute'!=_0x5af427['type'])return;const {data:_0x308adc}=_0x5af427;if(_0x308adc&&'value'==_0x308adc['key']&&_0x5af427['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x364e17=c(_0x32c0d3,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x32c0d3,'*Change\x20%0\x20content*',_0x364e17)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d3e54=this['editor'],_0x47f5d7=_0x3d3e54['locale'];_0x3d3e54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7547=>{if('formatBlock'!=_0x2b7547['type'])return;const {data:_0x2482de}=_0x2b7547;if(_0x2482de&&'htmlEmbed'==_0x2482de['commandName']){const _0x411398=c(_0x47f5d7,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x47f5d7,'*Change\x20%0\x20content*',_0x411398)};}});}}class rt extends _0x307cfb{['afterInit'](){const _0xf4f66b=this['editor'];if(!_0xf4f66b['plugins']['has']('ImageEditing'))return;const _0x158437=_0xf4f66b['plugins']['get']('TrackChangesEditing'),_0x4fcbc5=_0xf4f66b['plugins']['get']('ImageUtils'),_0x493a56=_0xf4f66b['locale'];_0x158437['enableCommand']('insertImage'),_0x158437['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c8724=>c(_0x493a56,'ELEMENT_IMAGE',_0x2c8724)),_0x158437['descriptionFactory']['registerElementLabel']('imageInline',_0x2ab240=>c(_0x493a56,'ELEMENT_INLINE_IMAGE',_0x2ab240)),_0x158437['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x493a56,'ELEMENT_CAPTION')),_0xf4f66b['plugins']['has']('ImageUploadEditing')&&_0x158437['enableCommand']('uploadImage'),_0xf4f66b['plugins']['has']('ImageBlockEditing')&&_0xf4f66b['plugins']['has']('ImageInlineEditing')&&(_0x158437['enableCommand']('imageTypeInline',(_0x5303b5,_0x4a2997)=>{const _0x535a10=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']);_0xf4f66b['model']['change'](()=>{_0x158437['markBlockFormat'](_0x535a10,{'commandName':'imageTypeInline','commandParams':[_0x4a2997]},[],'convertBlockImageToInline');});}),_0x158437['enableCommand']('imageTypeBlock',(_0x46a31b,_0x45be19)=>{_0xf4f66b['model']['change'](_0x54c491=>{let _0x5c4382=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x175c1d=_0x54c491['createRangeOn'](_0x5c4382);const _0x4b3d0c=_0x1863e8['fromPosition'](_0x175c1d['start'],'toPrevious'),_0x11e8ba=_0x1863e8['fromPosition'](_0x175c1d['end'],'toNext');_0x158437['forceDefaultExecution'](()=>_0x46a31b(_0x45be19)),_0x5c4382=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x175c1d=_0x54c491['createRangeOn'](_0x5c4382);const _0x5dd897=_0x54c491['createRange'](_0x4b3d0c,_0x11e8ba);_0x4b3d0c['detach'](),_0x11e8ba['detach'](),_0x158437['markBlockFormat'](_0x5c4382,{'commandName':'imageTypeInline','commandParams':[_0x45be19]},[],'convertInlineImageToBlock'),_0x5dd897['start']['isBefore'](_0x175c1d['start'])&&_0x158437['markInsertion'](_0x54c491['createRange'](_0x5dd897['start'],_0x175c1d['start']),'convertInlineImageToBlock'),_0x175c1d['end']['isBefore'](_0x5dd897['end'])&&_0x158437['markInsertion'](_0x54c491['createRange'](_0x175c1d['end'],_0x5dd897['end']),'convertInlineImageToBlock');});}),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x158437['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5f49f9])=>{const _0x3d8c92=_0x158437['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3a8bf4=_0x5f49f9['start'],_0x530bb5=_0x5f49f9['end'];const _0xc2856d=_0xf4f66b['model']['schema']['getNearestSelectionRange'](_0x3a8bf4,'backward'),_0x14b369=_0xf4f66b['model']['schema']['getNearestSelectionRange'](_0x530bb5,'forward');_0xc2856d['isCollapsed']&&(_0x3a8bf4=_0xc2856d['start']),_0x14b369['isCollapsed']&&(_0x530bb5=_0x14b369['end']),_0x3d8c92([_0xf4f66b['model']['createRange'](_0x3a8bf4,_0x530bb5)]);}),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x471d8e),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x471d8e)),_0xf4f66b['plugins']['has']('ImageCaptionEditing')&&(_0x158437['enableCommand']('toggleImageCaption',(_0x92ea13,_0x4703c9)=>{const _0x5c86a9=_0xf4f66b['plugins']['get']('ImageCaptionUtils');let _0x107399=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x232e8d=_0x5c86a9['getCaptionFromImageModelElement'](_0x107399);_0xf4f66b['model']['change'](()=>{if(_0x232e8d)return void _0x158437['markDeletion'](_0xf4f66b['model']['createRangeOn'](_0x232e8d));const _0x1e4a2=_0x4fcbc5['isBlockImage'](_0x107399);_0x92ea13(_0x4703c9),_0x107399=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x232e8d=_0x5c86a9['getCaptionFromImageModelElement'](_0x107399),_0x158437['markInsertion'](_0xf4f66b['model']['createRangeOn'](_0x232e8d),_0x1e4a2?null:'imageCaption');});}),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x471d8e));const _0x4ad896=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9d3199(_0x42d23c,_0x1d5b5e){const _0x43d765=_0x4ad896['findIndex'](({type:_0x4ae59c,subType:_0x18c769})=>_0x42d23c['type']==_0x4ae59c&&_0x42d23c['subType']==_0x18c769),_0x275239=_0x4ad896['findIndex'](({type:_0x421dca,subType:_0x410029})=>_0x1d5b5e['type']==_0x421dca&&_0x1d5b5e['subType']==_0x410029);if(_0x43d765<0x0||_0x275239<0x0)return!0x1;const _0x1b8031=_0x42d23c['getFirstRange'](),_0x1b788f=_0x1d5b5e['getFirstRange']();if((0x0==_0x43d765||0x1==_0x43d765)&&0x2==_0x275239&&_0x1b8031['isIntersecting'](_0x1b788f))return!0x0;if(0x2==_0x43d765&&0x3==_0x275239){const _0x4c0bad=_0x158437['_findSuggestions'](_0x1b8031,'insertion')['filter'](({suggestion:_0xc3b30b,meta:_0x568b5b})=>_0x568b5b['isOwn']&&'convertInlineImageToBlock'==_0xc3b30b['subType']);if(_0x4c0bad['length']>0x1&&_0x1b788f['end']['isEqual'](_0x1b8031['start']))return!0x0;if(0x1==_0x4c0bad['length']&&(_0x1b8031['start']['isEqual'](_0x1b788f['end'])||_0x1b8031['end']['isEqual'](_0x1b788f['start'])))return!0x0;}if(0x3==_0x43d765&&0x3==_0x275239&&_0x1b8031['start']['isBefore'](_0x1b788f['start'])){const _0x3ec4ae=_0x1b8031['end']['nodeAfter'],_0x9ebaee=_0x1b788f['start']['nodeBefore'];return _0x4fcbc5['isBlockImage'](_0x3ec4ae)&&_0x3ec4ae===_0x9ebaee;}return!0x1;}function _0x471d8e(_0x25e175,_0x31abec){return _0x9d3199(_0x25e175,_0x31abec)?[_0x25e175,_0x31abec]:_0x9d3199(_0x31abec,_0x25e175)?[_0x31abec,_0x25e175]:null;}_0xf4f66b['plugins']['has']('ImageResize')&&(_0x158437['enableDefaultAttributesIntegration']('resizeImage'),_0x158437['registerBlockAttribute']('resizedWidth'),_0x158437['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x493a56,'FORMAT_IMAGE_SIZE'))),_0xf4f66b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x158437['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x158437['registerBlockAttribute']('alt')),_0xf4f66b['plugins']['has']('PictureEditing')&&(_0x158437['registerBlockAttribute']('sources'),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x131c9f=>{if('attribute'!=_0x131c9f['type'])return;const {data:_0x1693a0}=_0x131c9f;return _0x1693a0&&'sources'==_0x1693a0['key']?{'type':'format','content':''}:void 0x0;})),_0xf4f66b['plugins']['has']('ImageSizeAttributes')&&(_0x158437['registerBlockAttribute']('width'),_0x158437['registerBlockAttribute']('height'),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x35aeb7=>{if('attribute'!=_0x35aeb7['type'])return;const {data:_0x1d77fd}=_0x35aeb7;return!_0x1d77fd||'width'!=_0x1d77fd['key']&&'height'!=_0x1d77fd['key']?void 0x0:{'type':'format','content':''};})),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x1fe47f=>{if(!!_0x4ad896['find'](({type:_0xd80a88,subType:_0x56356b})=>_0x1fe47f['type']==_0xd80a88&&_0x1fe47f['subType']==_0x56356b))return _0x1fe47f['previous']?{}:void 0x0;}),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x55d2ae=>{if('insertion'==_0x55d2ae['type']||'deletion'==_0x55d2ae['type']){const _0x54805f=_0x55d2ae['getContainedElement']();if(_0x54805f&&_0x54805f['is']('element','caption'))return{'type':'insertion'==_0x55d2ae['type']?'addObject':'removeObject','element':_0x54805f,'quantity':0x1};}}),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x262b09=>'formatBlock'==_0x262b09['type']&&'convertInlineImageToBlock'==_0x262b09['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x262b09['type']&&'convertBlockImageToInline'==_0x262b09['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x5d5bdf=>{if('attribute'!=_0x5d5bdf['type'])return;const {data:_0x107033}=_0x5d5bdf;if(!_0x107033||'alt'!=_0x107033['key'])return;const _0x42dbe1=_0x107033['newValue'];return _0x42dbe1?{'type':'format','content':c(_0x493a56,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42dbe1+'\x22')}:{'type':'format','content':c(_0x493a56,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f0a90=this['editor'],_0x12ac8b=_0x4f0a90['locale'];_0x4f0a90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4edbc6=>{if('formatBlock'!=_0x4edbc6['type']&&'formatInline'!=_0x4edbc6['type'])return;const {data:_0x545122}=_0x4edbc6;if(_0x545122){if('imageTextAlternative'==_0x545122['commandName']){const _0x25c8c7=_0x545122['commandParams'][0x0]['newValue'];return _0x25c8c7?{'type':'format','content':c(_0x12ac8b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25c8c7+'\x22')}:{'type':'format','content':c(_0x12ac8b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x545122['commandName']){const _0x53657b=_0x545122['commandParams'][0x0]['width'];return _0x53657b?{'type':'format','content':c(_0x12ac8b,'*Set\x20image\x20width:*\x20%0',_0x53657b)}:{'type':'format','content':c(_0x12ac8b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5ddc24=this['editor']['locale'],_0x17027e=this['editor']['plugins']['get']('TrackChangesEditing');_0x17027e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17027e['registerBlockAttribute']('src'),_0x17027e['descriptionFactory']['registerDescriptionCallback'](_0x27f828=>{if('attribute'!=_0x27f828['type'])return;const {data:_0x3bb375}=_0x27f828;return _0x3bb375&&'src'==_0x3bb375['key']?_0x3bb375['newValue']&&_0x3bb375['oldValue']?{'type':'format','content':c(_0x5ddc24,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x126017=this['editor']['plugins']['get']('TrackChangesEditing');_0x126017['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x126017['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x126017['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x126017['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c5c90=this['editor'],_0x1fe048=_0x4c5c90['locale'];_0x4c5c90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c05cc=>{if('formatBlock'!=_0x4c05cc['type']&&'formatInline'!=_0x4c05cc['type'])return;const {data:_0x25d7cf}=_0x4c05cc;if(!_0x25d7cf||'replaceImageSource'!=_0x25d7cf['commandName'])return;return{'type':'format','content':c(_0x1fe048,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x307cfb{['afterInit'](){const _0x303fb5=this['editor'];if(!_0x303fb5['plugins']['has']('ImageStyleEditing'))return;const _0x5cf761=_0x303fb5['plugins']['get']('TrackChangesEditing'),_0x5519fc=_0x303fb5['plugins']['get']('ImageUtils'),_0x4c1fe6={};_0x5cf761['enableCommand']('imageStyle',(_0x434001,_0x5b2f7b)=>{const _0x1d7e70=_0x303fb5['plugins']['get']('Users')['me'],_0x54acc8=_0x303fb5['commands']['get']('imageStyle');let _0x34a91e=_0x5519fc['getClosestSelectedImageElement'](_0x303fb5['model']['document']['selection']),_0x52fd2c=_0x303fb5['model']['createRangeOn'](_0x34a91e),_0x4cf833=_0x54acc8['value'];if(_0x4cf833==_0x5b2f7b['value'])return;const _0x43d1a6={'commandName':'imageStyle','commandParams':[_0x5b2f7b],'formatGroupId':_0x2b49b6()};_0x303fb5['model']['change'](()=>{if(_0x5cf761['getSuggestions']()['filter'](_0x557be1=>_0x557be1['isInContent']&&_0x1d7e70==_0x557be1['author']&&('formatBlock'==_0x557be1['type']||'formatInline'==_0x557be1['type'])&&('imageStylePreApply'==_0x557be1['subType']||'imageStylePostApply'==_0x557be1['subType'])&&_0x557be1['getFirstRange']()['isEqual'](_0x52fd2c))['forEach'](_0x4ceb35=>_0x5cf761['discardSuggestion'](_0x4ceb35['head'])),_0x34a91e=_0x5519fc['getClosestSelectedImageElement'](_0x303fb5['model']['document']['selection']),_0x52fd2c=_0x303fb5['model']['createRangeOn'](_0x34a91e),_0x54acc8['refresh'](),_0x303fb5['commands']['get']('imageTypeInline')['refresh'](),_0x303fb5['commands']['get']('imageTypeBlock')['refresh'](),_0x4cf833=_0x54acc8['value'],_0x4cf833!=_0x5b2f7b['value'])return _0x5519fc['isInlineImage'](_0x34a91e)&&_0x54acc8['shouldConvertImageType'](_0x5b2f7b['value'],_0x34a91e)?(_0x434001({..._0x5b2f7b,'setImageSizes':!0x1}),_0x34a91e=_0x5519fc['getClosestSelectedImageElement'](_0x303fb5['model']['document']['selection']),void _0x5cf761['markBlockFormat'](_0x34a91e,{..._0x43d1a6,'commandReversedParams':[{'value':_0x4cf833||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5519fc['isBlockImage'](_0x34a91e)?_0x5cf761['markBlockFormat'](_0x34a91e,_0x43d1a6,[],'imageStylePostApply'):_0x5cf761['markInlineFormat'](_0x52fd2c,_0x43d1a6,'imageStylePostApply'));});});for(const _0x47803a of _0x303fb5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4c1fe6[_0x47803a['name']]=_0x47803a['title']['toLowerCase']();_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x211270])=>{_0x5519fc['setImageNaturalSizeAttributes'](_0x211270['getContainedElement']());}),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4acbf2,_0x3db828)=>{_0x5cf761['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4acbf2,{'commandName':_0x3db828['commandName'],'commandParams':_0x3db828['commandReversedParams']});}),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x59330a,_0x4616fa){if(_0x3e84ce(_0x59330a,_0x4616fa))return[_0x59330a,_0x4616fa];if(_0x3e84ce(_0x4616fa,_0x59330a))return[_0x4616fa,_0x59330a];return null;});const _0x566b25=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e84ce(_0x5efaa7,_0x1f0b2c){const _0x1a49a8=_0x566b25['findIndex'](({type:_0xc71aa1,subType:_0x15148d})=>_0x5efaa7['type']==_0xc71aa1&&_0x5efaa7['subType']==_0x15148d),_0x54fd2b=_0x566b25['findIndex'](({type:_0x377c7a,subType:_0x4b8196})=>_0x1f0b2c['type']==_0x377c7a&&_0x1f0b2c['subType']==_0x4b8196);if(_0x1a49a8<0x0||_0x54fd2b<0x0)return!0x1;const _0x6e61f0=_0x5efaa7['getFirstRange'](),_0x45fc51=_0x1f0b2c['getFirstRange']();if((0x0==_0x1a49a8||0x1==_0x1a49a8)&&0x2==_0x54fd2b&&_0x6e61f0['isIntersecting'](_0x45fc51))return!0x0;if(0x2==_0x1a49a8&&0x3==_0x54fd2b){const _0x11a97b=_0x5cf761['_findSuggestions'](_0x6e61f0,'insertion')['filter'](({suggestion:_0x4ba309,meta:_0x1ea492})=>_0x1ea492['isOwn']&&'convertInlineImageToBlock'==_0x4ba309['subType']);if(_0x11a97b['length']>0x1&&_0x45fc51['end']['isEqual'](_0x6e61f0['start']))return!0x0;if(0x1==_0x11a97b['length']&&(_0x6e61f0['start']['isEqual'](_0x45fc51['end'])||_0x6e61f0['end']['isEqual'](_0x45fc51['start'])))return!0x0;}if(0x3==_0x1a49a8&&0x3==_0x54fd2b&&_0x6e61f0['start']['isBefore'](_0x45fc51['start'])){const _0x3d2508=_0x6e61f0['end']['nodeAfter'],_0x47a5ba=_0x45fc51['start']['nodeBefore'];return _0x5519fc['isBlockImage'](_0x3d2508)&&_0x3d2508===_0x47a5ba;}return!0x1;}_0x303fb5['model']['document']['registerPostFixer'](()=>{let _0x3b8554=!0x1;const _0x2784cf=Array['from'](_0x303fb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45aadd,data:_0x5ce21b}of _0x2784cf){const {group:_0x4d4c9d,type:_0x34f9fe,subType:_0x5449da,id:_0x173ca3}=_0x5cf761['_splitMarkerName'](_0x45aadd);if('suggestion'==_0x4d4c9d&&_0x5cf761['hasSuggestion'](_0x173ca3)){if('formatBlock'==_0x34f9fe&&('imageStylePreApply'==_0x5449da||'imageStylePostApply'==_0x5449da)){const _0x1f1564=_0x5cf761['getSuggestion'](_0x173ca3);if(_0x5ce21b['newRange']){const _0x70694e=_0x1f1564['getFirstRange']()['getContainedElement']();if(_0x5519fc['isBlockImage'](_0x70694e))continue;_0x5cf761['discardSuggestion'](_0x1f1564),_0x3b8554=!0x0;}}if('insertion'==_0x34f9fe&&'imageCaption'==_0x5449da&&!_0x5ce21b['newRange']){const _0x1fac01=_0x5cf761['getSuggestion'](_0x173ca3);_0x1fac01['next']&&_0x1fac01['next']['isInContent']&&(_0x5cf761['discardSuggestion'](_0x1fac01['next']),_0x3b8554=!0x0);}}}return _0x3b8554;}),this['_registerLegacyDescription'](_0x4c1fe6);}['_registerLegacyDescription'](_0x11a9d9){const _0x5e3768=this['editor'],_0x134246=_0x5e3768['locale'];_0x5e3768['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20bff5=>{if('formatBlock'!=_0x20bff5['type']&&'formatInline'!=_0x20bff5['type'])return;const {data:_0x86bc88}=_0x20bff5;if(!_0x86bc88||'imageStyle'!=_0x86bc88['commandName'])return;const _0x359f4b=_0x86bc88['commandParams'][0x0]['value'];return _0x33b641('side'===_0x359f4b?c(_0x134246,'FORMAT_SIDE_IMAGE'):_0x11a9d9[_0x359f4b]||_0x359f4b);function _0x33b641(_0x460861){return{'type':'format','content':c(_0x134246,'*Format:*\x20%0',_0x460861)};}});}}class ut extends _0x307cfb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x282bcb){super(_0x282bcb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x48863b=this['editor'],_0x15629f=_0x48863b['commands']['get']('importWord'),_0x2c6026=_0x48863b['commands']['get']('trackChanges');_0x15629f&&(_0x15629f['on']('execute',(_0x534f4a,[,_0x1e8471])=>{this['_trackChangesValueDuringImport']=_0x2c6026['value'],_0x1e8471['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x15629f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x15629f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c6026['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x48863b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xf828ad,_0x1a4657){const {suggestions:_0x5e61ee}=_0x1a4657,_0x1689c3=this['editor']['commands']['get']('trackChanges'),_0x175488=_0x1689c3['value'];this['_trackChangesValueDuringImport']!==_0x175488&&(_0x1689c3['execute'](),this['_trackChangesExecuted']=!0x0),_0x5e61ee&&_0x5e61ee['forEach'](({id:_0x168800,type:_0x44ab92,author:_0x2a6241,created_at:_0x2ed5af})=>{const _0x2965ec={'id':_0x168800,'type':_0x44ab92,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a6241,'createdAt':_0x2ed5af?new Date(_0x2ed5af):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2965ec);});}}class ft extends _0x307cfb{['afterInit'](){const _0x4538f2=this['editor'],_0x542e80=_0x4538f2['plugins']['get']('TrackChangesEditing');if(_0x4538f2['plugins']['has']('IndentEditing')&&(_0x542e80['enableCommand']('indent'),_0x542e80['enableCommand']('outdent')),_0x4538f2['plugins']['has']('IndentBlock')){for(const _0x22daee of['indentBlock','outdentBlock'])_0x542e80['enableDefaultAttributesIntegration'](_0x22daee);}const _0x4f6b66=_0x4538f2['locale'];_0x542e80['registerBlockAttribute']('blockIndent'),_0x542e80['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4f6b66,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d05db=this['editor'],_0x1dd1d8=_0x3d05db['locale'],_0x45c394=_0x3d05db['plugins']['get']('TrackChangesEditing');_0x45c394['descriptionFactory']['registerDescriptionCallback'](_0xcf7f7c=>{if('formatBlock'!=_0xcf7f7c['type'])return;const {data:_0x504502}=_0xcf7f7c;if(!_0x504502)return;if('indentBlock'!=_0x504502['commandName']&&'outdentBlock'!=_0x504502['commandName'])return;const _0x5d00c8=_0xcf7f7c['getItems']()[0x0],_0x208856=_0x45c394['descriptionFactory']['getItemLabel'](_0x5d00c8);return'indentBlock'==_0x504502['commandName']?{'type':'format','content':c(_0x1dd1d8,'*Indent:*\x20%0',_0x208856)}:'outdentBlock'==_0x504502['commandName']?{'type':'format','content':c(_0x1dd1d8,'*Outdent:*\x20%0',_0x208856)}:void 0x0;});}}class ht extends _0x307cfb{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x307cfb{['afterInit'](){const _0x5d9d47=this['editor'];if(!_0x5d9d47['plugins']['has']('LinkEditing'))return;const _0x4bd0c6=_0x5d9d47['plugins']['get']('TrackChangesEditing'),_0x14fe35=_0x5d9d47['commands']['get']('link');_0x4bd0c6['enableDefaultAttributesIntegration']('link'),_0x4bd0c6['enableDefaultAttributesIntegration']('unlink'),_0x4bd0c6['registerInlineAttribute']('linkHref');for(const _0x2fb5a2 of _0x14fe35['manualDecorators'])_0x4bd0c6['registerInlineAttribute'](_0x2fb5a2['id']),_0x4bd0c6['descriptionFactory']['registerAttributeLabel'](_0x2fb5a2['id'],'link\x20('+_0x2fb5a2['label']['toLowerCase']()+')');_0x4bd0c6['descriptionFactory']['registerDescriptionCallback'](_0x5a5665=>{if('attribute'!=_0x5a5665['type'])return;const {data:_0x8c9d5f}=_0x5a5665;if(!_0x8c9d5f||'linkHref'!=_0x8c9d5f['key'])return;const _0x10422f=_0x8c9d5f['newValue'],_0x3a553d=_0x5d9d47['locale'];return{'type':'format','content':null==_0x10422f?c(_0x3a553d,'*Remove\x20link*'):c(_0x3a553d,'*Set\x20link:*\x20%0','\x22'+_0x10422f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14bcef=this['editor'],_0x2e1b6a=_0x14bcef['locale'];_0x14bcef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184ec6=>{if('formatInline'!=_0x184ec6['type'])return;const {data:_0x5c5bf6}=_0x184ec6;if(_0x5c5bf6){if('link'==_0x5c5bf6['commandName']){const _0x11151a=_0x5c5bf6['commandParams'][0x0];return{'type':'format','content':c(_0x2e1b6a,'*Set\x20link:*\x20%0','\x22'+_0x11151a+'\x22')};}return'unlink'==_0x5c5bf6['commandName']?{'type':'format','content':c(_0x2e1b6a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x307cfb{['afterInit'](){const _0x4ac0d4=this['editor'],_0x4e4cf0=_0x4ac0d4['locale'];if(!_0x4ac0d4['plugins']['has']('LegacyListEditing'))return;const _0x2efceb=_0x4ac0d4['plugins']['get']('TrackChangesEditing'),_0x500bd5=_0x4ac0d4['plugins']['has']('LegacyTodoListEditing');function _0x335468(_0xe31f63){return()=>{const _0x465cb6=_0x4ac0d4['model']['document']['selection'],_0x574f2f=_0x4ac0d4['commands']['get'](_0xe31f63);if(_0x574f2f['value'])return void _0x4ac0d4['execute']('paragraph',{});const _0x10df29=_0xe31f63['slice'](0x0,-0x4),_0x58f6b4=function(_0x4d98e3,_0x278c6d,_0x2e1a2d){let _0x59c603=Array['from'](_0x4d98e3)['filter'](_0x4ac795=>function(_0x3a7644,_0x13beda){return _0x13beda['checkChild'](_0x3a7644['parent'],'listItem')&&!_0x13beda['isObject'](_0x3a7644);}(_0x4ac795,_0x2e1a2d));_0x59c603=_0x59c603['filter'](_0x325c81=>!_0x325c81['is']('element','listItem')||_0x325c81['getAttribute']('listType')!=_0x278c6d);const _0x271dc1=new Set();for(const _0x15b3a7 of _0x59c603)_0x15b3a7['is']('element','listItem')?_0x271dc1['add'](Le(_0x15b3a7)):_0x271dc1['add'](_0x15b3a7);return Array['from'](_0x271dc1);}(_0x465cb6['getSelectedBlocks'](),_0x10df29,_0x4ac0d4['model']['schema']);_0x4ac0d4['model']['change'](()=>{for(const _0x11ddf3 of _0x58f6b4)_0x2efceb['markBlockFormat'](_0x11ddf3,{'commandName':_0xe31f63,'commandParams':[{'forceValue':!_0x574f2f['value']}],'formatGroupId':'blockName'},Ee(_0x11ddf3));});};}function _0x31c2cb(_0x571d88){return()=>{const _0x331df5=function(_0x35c4a2){let _0x18238a=Array['from'](_0x35c4a2);const _0x330ba1=_0x18238a['findIndex'](_0x4dc591=>'listItem'!=_0x4dc591['name']);return _0x330ba1>-0x1&&(_0x18238a=_0x18238a['slice'](0x0,_0x330ba1)),_0x18238a;}(_0x4ac0d4['model']['document']['selection']['getSelectedBlocks']()),_0x459332=_0x4ac0d4['model']['createRange'](_0x4ac0d4['model']['createPositionAt'](_0x331df5[0x0],'before'),_0x4ac0d4['model']['createPositionAt'](_0x331df5[_0x331df5['length']-0x1],'end'));_0x4ac0d4['model']['change'](()=>{_0x2efceb['markBlockFormat'](_0x459332,{'commandName':_0x571d88,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd251de){const _0x2c684d=new Set();for(const _0x4504f8 of _0xd251de){let _0xbe48f2=_0x4504f8['nextSibling'];for(;_0xbe48f2&&_0xbe48f2['getAttribute']('listIndent')>_0x4504f8['getAttribute']('listIndent');)_0x2c684d['add'](_0xbe48f2),_0xbe48f2=_0xbe48f2['nextSibling'];}return Array['from'](_0x2c684d);}(_0x331df5));});};}_0x2efceb['enableCommand']('numberedList',_0x335468('numberedList')),_0x2efceb['enableCommand']('bulletedList',_0x335468('bulletedList')),_0x500bd5&&_0x2efceb['enableCommand']('todoList',_0x335468('todoList')),_0x2efceb['enableCommand']('indentList',_0x31c2cb('indentList')),_0x2efceb['enableCommand']('outdentList',_0x31c2cb('outdentList')),_0x500bd5&&_0x2efceb['enableCommand']('checkTodoList',()=>{const _0x5ad246=_0x4ac0d4['commands']['get']('checkTodoList'),_0x41f29b=Array['from'](_0x5ad246['_selectedElements']);_0x41f29b['filter'](_0x4fb4b1=>_0x4fb4b1['getAttribute']('todoListChecked')!=_0x5ad246['value']),_0x4ac0d4['model']['change'](()=>{for(const _0x216f15 of _0x41f29b)_0x2efceb['markBlockFormat'](_0x216f15,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ad246['value']}]});});}),_0x2efceb['descriptionFactory']['registerElementLabel']('listItem',_0x3b1dd2=>c(_0x4e4cf0,'ELEMENT_LIST_ITEM',_0x3b1dd2)),_0x2efceb['descriptionFactory']['registerDescriptionCallback'](_0x5e9261=>{if('formatBlock'!=_0x5e9261['type']&&'formatInline'!=_0x5e9261['type'])return;const {data:_0x7f630a}=_0x5e9261;if(_0x7f630a){if('numberedList'==_0x7f630a['commandName']||'bulletedList'==_0x7f630a['commandName']||'todoList'==_0x7f630a['commandName'])switch(_0x7f630a['commandName']['replace']('List','')){case'bulleted':return _0x2755a6(c(_0x4e4cf0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2755a6(c(_0x4e4cf0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2755a6(c(_0x4e4cf0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x7f630a['commandName'])return{'type':'format','content':c(_0x4e4cf0,'*Indent:*\x20%0',c(_0x4e4cf0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x7f630a['commandName'])return{'type':'format','content':c(_0x4e4cf0,'*Outdent:*\x20%0',c(_0x4e4cf0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x7f630a['commandName'])return _0x7f630a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4e4cf0,'*Check\x20item*')}:{'type':'format','content':c(_0x4e4cf0,'*Uncheck\x20item*')};}function _0x2755a6(_0x467e57){return{'type':'format','content':c(_0x4e4cf0,'*Change\x20to:*\x20%0',_0x467e57)};}});}}function Le(_0x3c2ee1){const _0x17c7e5=_0x3c2ee1['getAttribute']('listIndent');if(0x0==_0x17c7e5)return _0x3c2ee1;let _0x1362f3=_0x3c2ee1;for(;_0x3c2ee1['previousSibling']&&_0x3c2ee1['previousSibling']['is']('element','listItem');){const _0x554066=_0x3c2ee1['previousSibling']['getAttribute']('listIndent');if(_0x554066==_0x17c7e5)_0x1362f3=_0x3c2ee1['previousSibling'];else{if(_0x554066<_0x17c7e5)break;}_0x3c2ee1=_0x3c2ee1['previousSibling'];}return _0x1362f3;}function Ee(_0x5d9e1e){const _0x372d66=[];if(_0x5d9e1e['is']('element','listItem')&&_0x5d9e1e['getAttribute']('listIndent')>0x0){let _0x35adb7=_0x5d9e1e['nextSibling'];for(;_0x35adb7&&'listItem'==_0x35adb7['name']&&_0x35adb7['getAttribute']('listIndent')==_0x5d9e1e['getAttribute']('listIndent');)_0x372d66['push'](_0x35adb7),_0x35adb7=_0x35adb7['nextSibling'];}return _0x372d66;}class Q extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3cf40a=this['editor']['config']['get']('list.properties'),_0xadce43=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cf40a['styles']&&_0xadce43['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3cf40a['reversed']&&_0xadce43['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3cf40a['startIndex']&&_0xadce43['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xadce43['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3a2292,_0x350c9f={}){const _0x1d2c90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x391bad=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d2c90['markMultiRangeBlockFormat'](_0x391bad,{'commandName':'listStyle','commandParams':[{'type':_0x350c9f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f7872,_0x427324={}){const _0x56eecf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dc90e=this['_getSuggestionBlocks'](_0x624e26=>_0x624e26['is']('element','listItem')&&'numbered'===_0x624e26['getAttribute']('listType'));if(_0x3dc90e['length']<0x1)return;const _0x297d76=_0x3dc90e['map'](_0x173fae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x173fae,'before'),this['editor']['model']['createPositionAt'](_0x173fae,0x0)));this['editor']['model']['change'](()=>{_0x56eecf['markMultiRangeBlockFormat'](_0x297d76,{'commandName':'listReversed','commandParams':[{'reversed':_0x427324['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x15c7fe,_0x5527a3={}){const _0x229744=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b08c=this['_getSuggestionBlocks'](_0x2e041f=>_0x2e041f['is']('element','listItem')&&'numbered'===_0x2e041f['getAttribute']('listType'));if(_0x4b08c['length']<0x1)return;const _0x286bb3=_0x4b08c['map'](_0xab1855=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xab1855,'before'),this['editor']['model']['createPositionAt'](_0xab1855,0x0)));this['editor']['model']['change'](()=>{_0x229744['markMultiRangeBlockFormat'](_0x286bb3,{'commandName':'listStart','commandParams':[{'startIndex':_0x5527a3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x570d31){if('formatBlock'!=_0x570d31['type']&&'formatInline'!=_0x570d31['type'])return;const _0x102247=this['editor']['locale'],{data:_0x1115af}=_0x570d31;if(!_0x1115af)return;let _0x322232,_0x1f9e4d;switch(_0x1115af['commandName']){case'listStyle':_0x322232='*Change\x20to:*\x20%0',_0x1f9e4d={'type':'format','content':c(_0x102247,_0x322232,c(_0x102247,this['_getTranslationKeyForListStyle'](_0x1115af['commandParams'][0x0]['type'])))};break;case'listReversed':_0x322232=_0x1115af['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f9e4d={'type':'format','content':c(_0x102247,_0x322232)};break;case'listStart':_0x322232='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f9e4d={'type':'format','content':c(_0x102247,_0x322232,_0x1115af['commandParams'][0x0]['startIndex'])};}return _0x1f9e4d;}['_getSuggestionBlocksForListStyle'](){const _0xee6bc7=this['editor']['plugins']['get']('LegacyListUtils');let _0x322291=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x322291[0x0]?.['is']('element','listItem')&&_0x322291['unshift'](..._0xee6bc7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x322291[_0x322291['length']-0x1]?.['is']('element','listItem')&&_0x322291['push'](..._0xee6bc7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x322291=[...new Set(_0x322291)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x322291=_0x322291['filter'](_0x5324de=>_0x5324de['is']('element','listItem'))),_0x322291;}['_getSuggestionBlocks'](_0x27fed3){const _0x3bb25d=this['editor']['plugins']['get']('LegacyListUtils');let _0x3aec5f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x27fed3)['map'](_0x224806=>{const _0x2a60e5=this['editor']['model']['createPositionAt'](_0x224806,0x0);return[..._0x3bb25d['getSiblingNodes'](_0x2a60e5,'backward'),..._0x3bb25d['getSiblingNodes'](_0x2a60e5,'forward')];})['flat']();return _0x3aec5f=[...new Set(_0x3aec5f)],_0x3aec5f;}['_getTranslationKeyForListStyle'](_0x900321){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x900321)||'default')['toUpperCase']()+'_LIST_'+_0x900321['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x307cfb{['afterInit'](){const _0x1c1dcc=this['editor'];if(!_0x1c1dcc['plugins']['has']('MediaEmbedEditing'))return;const _0x2cba34=_0x1c1dcc['plugins']['get']('TrackChangesEditing'),_0x2c0277=_0x1c1dcc['locale'];_0x2cba34['enableCommand']('mediaEmbed'),_0x2cba34['descriptionFactory']['registerElementLabel']('media',_0x33a5c3=>c(_0x2c0277,'ELEMENT_MEDIA',_0x33a5c3)),_0x1c1dcc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5b53f8,{writer:_0x228854,options:_0x2e8eff})=>{if(_0x2e8eff['showSuggestionHighlights'])return _0x228854['createEmptyElement']('div');},'converterPriority':'high'}),_0x1c1dcc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3e5718,_0x43df03,_0x308e55)=>{_0x308e55['options']['showSuggestionHighlights']&&_0x3e5718['stop']();},{'priority':'high'});}}class pt extends _0x307cfb{['afterInit'](){const _0x4656a0=this['editor'];_0x4656a0['plugins']['has']('MentionEditing')&&_0x4656a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x307cfb{['afterInit'](){const _0x5d241c=this['editor'];if(!_0x5d241c['plugins']['has']('MergeFieldsEditing'))return;const _0x235aee=_0x5d241c['plugins']['get']('TrackChangesEditing'),_0x8feeec=_0x5d241c['locale'];_0x235aee['enableCommand']('insertMergeField'),_0x235aee['enableCommand']('insertMergeFieldBlock'),_0x235aee['enableCommand']('insertMergeFieldImage'),_0x235aee['descriptionFactory']['registerElementLabel']('mergeField',_0x8b8066=>c(_0x8feeec,'ELEMENT_MERGE_FIELD',_0x8b8066)),_0x235aee['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3ea222=>c(_0x8feeec,'ELEMENT_MERGE_FIELD',_0x3ea222)),_0x235aee['descriptionFactory']['registerDescriptionCallback'](_0x1d2322=>{if('insertion'!=_0x1d2322['type']&&'deletion'!=_0x1d2322['type'])return;const _0x2f68d9=_0x1d2322['getContainedElement']();if(null==_0x2f68d9)return;const _0x1e0453=_0x5d241c['plugins']['get']('MergeFieldsEditing');let _0x4da3d4;switch(_0x1e0453['getMergeFieldType'](_0x2f68d9)){case null:return;case'image':{const _0x1188d1=_0x1e0453['unwrapAffixes'](_0x2f68d9['getAttribute']('src'));_0x4da3d4=_0x1e0453['getLabel'](_0x1188d1)||_0x1188d1;break;}default:{const _0x849298=_0x2f68d9['getAttribute']('id');_0x4da3d4=_0x1e0453['getLabel'](_0x849298)||_0x849298;break;}}return'insertion'==_0x1d2322['type']?{'type':'insertion','content':c(_0x8feeec,'*Insert:*\x20%0','\x22'+_0x4da3d4+'\x22\x20'+c(_0x8feeec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x8feeec,'*Remove:*\x20%0','\x22'+_0x4da3d4+'\x22\x20'+c(_0x8feeec,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x307cfb{['afterInit'](){const _0x176ac4=this['editor'],_0x1e53db=_0x176ac4['plugins']['get']('TrackChangesEditing');_0x176ac4['plugins']['has']('MultiLevelList')&&(_0x1e53db['enableDefaultAttributesIntegration']('multiLevelList'),_0x1e53db['registerBlockAttribute']('listMarkerStyle'),_0x1e53db['descriptionFactory']['registerDescriptionCallback'](_0x1afbb6=>this['handleDescriptions'](_0x1afbb6)));}['handleDescriptions'](_0x5e8cf5){const _0x58930a=this['editor']['locale'],{data:_0x361025}=_0x5e8cf5,_0x49114f={'type':'format','content':''};if(_0x361025&&'listMarkerStyle'==_0x361025['key']){if(!_0x361025['oldValue'])return{'type':'format','content':c(_0x58930a,'*Set\x20format:*\x20%0',c(_0x58930a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x361025['newValue']+')'};if(!_0x361025['newValue']){let _0x26a115=_0x5e8cf5['head'];for(;_0x26a115;){if(_0x26a115['data']&&'listType'==_0x26a115['data']['key']&&_0x26a115['data']['newValue'])return _0x49114f;_0x26a115=_0x26a115['next'];}return{'type':'format','content':c(_0x58930a,'*Remove\x20format:*\x20%0',c(_0x58930a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x361025['oldValue']+')'};}}}}class bt extends _0x307cfb{['afterInit'](){const _0x29a2d9=this['editor'];if(!_0x29a2d9['plugins']['has']('PageBreakEditing'))return;_0x29a2d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3eac39=_0x29a2d9['plugins']['get']('TrackChangesEditing'),_0x1daac3=_0x29a2d9['locale'];_0x3eac39['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fc544=>c(_0x1daac3,'ELEMENT_PAGE_BREAK',_0x1fc544));}}class yt extends _0x307cfb{['afterInit'](){const _0xda2a2e=this['editor'];if(!_0xda2a2e['plugins']['has']('Paragraph'))return;const _0x2b216b=_0xda2a2e['locale'],_0x5a0d48=_0xda2a2e['plugins']['get']('TrackChangesEditing');_0x5a0d48['descriptionFactory']['registerElementLabel']('paragraph',_0x54ee73=>c(_0x2b216b,'ELEMENT_PARAGRAPH',_0x54ee73)),_0x5a0d48['enableDefaultAttributesIntegration']('paragraph'),_0x5a0d48['enableCommand']('insertParagraph'),_0xda2a2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xda2a2e),{'priority':'highest'}),_0xda2a2e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2de3b8,_0x5012fb,_0x4db449)=>{_0x4db449['options']['showSuggestionHighlights']&&nr(_0xda2a2e,{'showActiveMarker':!0x1})(_0x2de3b8,_0x5012fb,_0x4db449);},{'priority':'highest'});const _0x251353=_0x5a0d48['descriptionFactory'];_0x251353['registerDescriptionCallback'](_0xc3a13b=>{if('insertion'!==_0xc3a13b['type'])return;const {start:_0x294725,end:_0x3d85c5}=_0xc3a13b['getFirstRange']();if(!_0x294725['isTouching'](_0x3d85c5)||!_0x294725['nodeAfter'])return;const _0x27669f=_0xda2a2e['model']['schema'],_0x56adcc=_0x294725['nodeAfter'];return _0x27669f['isBlock'](_0x56adcc)&&!_0x27669f['isLimit'](_0x56adcc)&&_0x27669f['checkChild'](_0x56adcc,'$text')?{'type':'insertion','content':c(_0x2b216b,'*Insert:*\x20%0',_0x251353['getItemLabel'](_0x56adcc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x393c83=this['editor'],_0x40b112=_0x393c83['locale'];_0x393c83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a679=>{if('formatBlock'!=_0x19a679['type'])return;const {data:_0x5def18}=_0x19a679;return _0x5def18&&'paragraph'==_0x5def18['commandName']?{'type':'format','content':c(_0x40b112,'*Change\x20to:*\x20%0',c(_0x40b112,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2227c1,{showActiveMarker:_0x485d1e=!0x0}={}){return(_0x4d9842,_0xd5d34b,_0x588228)=>{const _0x2c1ce7=_0x2227c1['plugins']['get']('TrackChangesEditing'),_0x5f255f=_0xd5d34b['markerRange']['start'],_0x46e4b1=_0xd5d34b['markerRange']['end'],_0x43d323=_0x2227c1['model']['schema'];if(!_0x5f255f['isTouching'](_0x46e4b1)||!_0x5f255f['nodeAfter'])return;const _0x4224c5=_0x5f255f['nodeAfter'];if(_0x43d323['isBlock'](_0x4224c5)&&!_0x43d323['isLimit'](_0x4224c5)&&_0x43d323['checkChild'](_0x4224c5,'$text')){if(!_0x588228['consumable']['consume'](_0xd5d34b['markerRange'],_0x4d9842['name']))return;const {authorId:_0x3489df}=_0x2c1ce7['_splitMarkerName'](_0xd5d34b['markerName']),_0x520401=_0x588228['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3489df}),_0x5bdb9a=_0x588228['mapper']['toViewPosition'](_0x46e4b1);_0x485d1e&&_0x2c1ce7['activeMarkers']['includes'](_0xd5d34b['markerName'])&&_0x588228['writer']['addClass']('ck-suggestion-marker--active',_0x520401),_0x588228['writer']['insert'](_0x5bdb9a,_0x520401),_0x588228['mapper']['bindElementToMarker'](_0x520401,_0xd5d34b['markerName']);}};}class jt extends _0x307cfb{['afterInit'](){const _0x33a179=this['editor'];_0x33a179['commands']['get']('replaceSource')&&_0x33a179['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x307cfb{['afterInit'](){const _0x131c7e=this['editor'];if(!_0x131c7e['plugins']['has']('RemoveFormatEditing'))return;_0x131c7e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403d3d=this['editor'];_0x403d3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x515977=>{if('formatBlock'!=_0x515977['type']&&'formatInline'!=_0x515977['type'])return;const {data:_0x2833df}=_0x515977;return _0x2833df&&'removeFormat'==_0x2833df['commandName']?{'type':'format','content':c(_0x403d3d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x307cfb{['afterInit'](){const _0xe94472=this['editor'];if(!_0xe94472['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x388cd4=_0xe94472['plugins']['get']('TrackChangesEditing');_0x388cd4['enableCommand']('goToPreviousRestrictedEditingException'),_0x388cd4['enableCommand']('goToNextRestrictedEditingException');const _0x2b4528=_0xe94472['plugins']['get']('RestrictedEditingModeEditing');_0x2b4528['enableCommand']('trackChanges'),_0x2b4528['enableCommand']('acceptSuggestion'),_0x2b4528['enableCommand']('discardSuggestion'),_0x2b4528['enableCommand']('acceptAllSuggestions'),_0x2b4528['enableCommand']('discardAllSuggestions'),_0x2b4528['enableCommand']('acceptSelectedSuggestions'),_0x2b4528['enableCommand']('discardSelectedSuggestions');}}class It extends _0x307cfb{static get['requires'](){return[_0x1fc86b];}['init'](){const _0x1fa7ad=this['editor'],_0x1b5967=_0x1fa7ad['plugins']['get']('TrackChangesEditing');_0x1b5967['enableCommand']('shiftEnter'),_0x1fa7ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1fa7ad),{'priority':'high'}),_0x1fa7ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1fa7ad),{'priority':'high'}),_0x1fa7ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x114e94,_0x33153e,_0xda92ce)=>{_0xda92ce['options']['showSuggestionHighlights']&&je(_0x1fa7ad,{'showActiveMarker':!0x1})(_0x114e94,_0x33153e,_0xda92ce);}),_0x1b5967['descriptionFactory']['registerElementLabel']('softBreak',_0x59a3f3=>c(_0x1fa7ad['locale'],'ELEMENT_LINE_BREAK',_0x59a3f3));}}function je(_0x40bdb5,{showActiveMarker:_0x504a76=!0x0}={}){return(_0x4f8104,_0x5ddbf6,_0x28b8da)=>{const _0x1e4a46=_0x40bdb5['plugins']['get']('TrackChangesEditing');if(!_0x28b8da['consumable']['test'](_0x5ddbf6['markerRange'],_0x4f8104['name']))return;const _0x1e645b=_0x40bdb5['model'];for(const _0x10129e of _0x5ddbf6['markerRange']['getItems']()){if(!_0x10129e['is']('element','softBreak'))continue;const _0x51c430='deletion'==_0x5ddbf6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x7dbd1e}=_0x1e4a46['_splitMarkerName'](_0x5ddbf6['markerName']),_0x1d85b3=_0x28b8da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51c430,'data-author-id':_0x7dbd1e}),_0x233164=_0x28b8da['mapper']['toViewPosition'](_0x1e645b['createPositionBefore'](_0x10129e));_0x504a76&&_0x1e4a46['activeMarkers']['includes'](_0x5ddbf6['markerName'])&&_0x28b8da['writer']['addClass']('ck-suggestion-marker--active',_0x1d85b3),_0x28b8da['writer']['insert'](_0x233164,_0x1d85b3),_0x28b8da['mapper']['bindElementToMarker'](_0x1d85b3,_0x5ddbf6['markerName']);}};}class _t extends _0x307cfb{['afterInit'](){const _0x5e3ba4=this['editor'],_0x264327=_0x5e3ba4['model'],_0x1afba8=_0x5e3ba4['locale'];if(!_0x5e3ba4['plugins']['has']('StandardEditingModeEditing'))return;const _0x1057af=_0x5e3ba4['plugins']['get']('TrackChangesEditing'),_0xf59ea9='restrictedEditingException',_0x2cfd06=_0x5e3ba4['commands']['get'](_0xf59ea9);_0x1057af['enableCommand'](_0xf59ea9,(_0x41c01e,_0x3b0429={})=>{const _0x312bb0=_0x264327['document']['selection'];if(_0x312bb0['isCollapsed'])return void _0x41c01e(_0x3b0429);const _0x47891c=void 0x0!==_0x3b0429['forceValue']?_0x3b0429['forceValue']:!_0x2cfd06['value'];_0x264327['change'](()=>{const _0x141a46=Array['from'](_0x312bb0['getRanges']());for(const _0x3187d4 of _0x141a46){const _0x2d66b9=_0x47891c?[_0x3187d4]:io(_0xf59ea9,_0x3187d4,_0x264327);for(const _0xfa3518 of _0x2d66b9)_0x1057af['markInlineFormat'](_0xfa3518,{'commandName':_0xf59ea9,'commandParams':[{'forceValue':_0x47891c}]});}});}),_0x1057af['descriptionFactory']['registerDescriptionCallback'](_0x38e346=>{if('formatBlock'!=_0x38e346['type']&&'formatInline'!=_0x38e346['type'])return;const {data:_0x1c6243}=_0x38e346;return _0x1c6243&&_0x1c6243['commandName']==_0xf59ea9?_0x1c6243['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1afba8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1afba8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x307cfb{['afterInit'](){const _0x361b9f=this['editor'];if(!_0x361b9f['plugins']['has']('Style')||!_0x361b9f['plugins']['has']('DataSchema'))return;const _0x21252d=_0x361b9f['plugins']['get']('TrackChangesEditing'),_0x3427b6=_0x361b9f['locale'],_0x32c2c4=_0x361b9f['config']['get']('style')||{},_0x4185a2=_0x361b9f['plugins']['get']('GeneralHtmlSupport'),_0x556f5e=_0x361b9f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x361b9f['plugins']['get']('DataSchema'),_0x32c2c4['definitions']);_0x21252d['enableDefaultAttributesIntegration']('style');const _0xe6c84d=new Set();for(const _0x57e422 of _0x556f5e['block']){const _0x84be2=_0x4185a2['getGhsAttributeNameForElement'](_0x57e422['element']);_0xe6c84d['add'](_0x84be2);}const _0x4c1a0f=new Set();for(const _0x11e738 of _0x556f5e['inline']){const _0x4e9f20=_0x4185a2['getGhsAttributeNameForElement'](_0x11e738['element']);_0x4c1a0f['add'](_0x4e9f20);for(const _0x3cd53e of _0x11e738['ghsAttributes'])_0x4c1a0f['add'](_0x3cd53e);}for(const _0x51aa01 of _0xe6c84d)_0x21252d['registerBlockAttribute'](_0x51aa01),_0x21252d['descriptionFactory']['registerAttributeLabel'](_0x51aa01,c(_0x3427b6,'FORMAT_STYLE'));for(const _0x43bbf0 of _0x4c1a0f)_0x21252d['registerInlineAttribute'](_0x43bbf0),_0x21252d['descriptionFactory']['registerAttributeLabel'](_0x43bbf0,c(_0x3427b6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fdd27=this['editor'],_0x55c73a=_0x2fdd27['locale'];_0x2fdd27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14a927=>{if('formatBlock'!=_0x14a927['type']&&'formatInline'!=_0x14a927['type'])return;const {data:_0x3f440}=_0x14a927;return _0x3f440&&'style'===_0x3f440['commandName']?_0x3f440['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x55c73a,'*Set\x20format:*\x20%0',_0x3f440['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x55c73a,'*Remove\x20format:*\x20%0',_0x3f440['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x307cfb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3c51ca){super(_0x3c51ca),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xfacb13=this['editor'],_0x12b9f5=_0xfacb13['model']['document']['selection'];if(!_0xfacb13['plugins']['has']('TableEditing'))return;const _0x341692=_0xfacb13['locale'],_0x51a98b=_0xfacb13['plugins']['get']('TrackChangesEditing'),_0x28312f=_0xfacb13['plugins']['get']('TableUtils');_0x51a98b['descriptionFactory']['registerElementLabel']('table',_0x57c617=>c(_0x341692,'ELEMENT_TABLE',_0x57c617)),this['_setupColumnsRowsFixing'](),_0x51a98b['enableCommand']('insertTable'),_0x51a98b['enableCommand']('selectTableRow'),_0x51a98b['enableCommand']('selectTableColumn');for(const _0x235062 of['insertTableRowAbove','insertTableRowBelow']){const _0x105c95=_0xfacb13['commands']['get'](_0x235062);_0x51a98b['enableCommand'](_0x235062,_0x1d7a74=>{_0xfacb13['model']['change'](_0xeef051=>{_0x1d7a74();const _0x3c3252='above'===_0x105c95['order'],_0x198c01=_0x28312f['getSelectionAffectedTableCells'](_0x12b9f5),_0x136f10=_0x28312f['getRowIndexes'](_0x198c01),_0x2022c6=_0x3c3252?_0x136f10['first']-0x1:_0x136f10['last']+0x1,_0x3f70e6=_0x198c01[0x0]['findAncestor']('table'),_0x147d95=_0x28312f['createTableWalker'](_0x3f70e6,{'startRow':_0x2022c6,'endRow':_0x2022c6}),_0x4e1e09=Array['from'](_0x147d95)['map'](_0x5b2a7c=>_0xeef051['createRangeOn'](_0x5b2a7c['cell']));_0x51a98b['markMultiRangeInsertion'](_0x4e1e09,'tableRow');});});}for(const _0x55651e of['insertTableColumnLeft','insertTableColumnRight']){const _0x4ca501=_0xfacb13['commands']['get'](_0x55651e);_0x51a98b['enableCommand'](_0x55651e,_0x3ce1cf=>{_0xfacb13['model']['change'](_0x2a4706=>{_0x3ce1cf();const _0x1d4b34='left'===_0x4ca501['order'],_0x228aa3=_0x28312f['getSelectionAffectedTableCells'](_0x12b9f5),_0x198b11=_0x28312f['getColumnIndexes'](_0x228aa3),_0x50ce80=_0x1d4b34?_0x198b11['first']-0x1:_0x198b11['last']+0x1,_0x5a098d=_0x228aa3[0x0]['findAncestor']('table'),_0x5cd97c=_0x28312f['createTableWalker'](_0x5a098d,{'startRow':0x0,'column':_0x50ce80,'includeAllSlots':!0x1}),_0x11e530=Array['from'](_0x5cd97c)['map'](_0x5b86c8=>_0x2a4706['createRangeOn'](_0x5b86c8['cell']));_0x51a98b['markMultiRangeInsertion'](_0x11e530,'tableColumn');});});}for(const _0x41aa1f of['removeTableRow','removeTableColumn']){const _0x57f73b=_0x41aa1f['substr'](0xb),_0x150066=_0x57f73b['toLowerCase'](),_0x7e69b9=_0x150066['substr'](0x0,0x3)+'span',_0x1faa26='table'+_0x57f73b,_0x513a2f='min'+_0x57f73b,_0x2ee578='max'+_0x57f73b;_0x51a98b['enableCommand'](_0x41aa1f,()=>{_0xfacb13['model']['change'](_0x27d293=>{const _0x25e240=_0x28312f['getSelectionAffectedTableCells'](_0x12b9f5),_0x464ed2=_0x25e240[0x0]['findAncestor']('table');let _0x412116;if('removeTableRow'==_0x41aa1f){const _0x41324d=_0x28312f['getRowIndexes'](_0x25e240);_0x412116={'startRow':_0x41324d['first'],'endRow':_0x41324d['last'],'includeAllSlots':!0x0};}else{const _0x307c85=_0x28312f['getColumnIndexes'](_0x25e240);_0x412116={'startColumn':_0x307c85['first'],'endColumn':_0x307c85['last'],'includeAllSlots':!0x0};}const _0x2b5b44=_0x28312f['createTableWalker'](_0x464ed2,_0x412116),_0xcd3c22=Array['from'](_0x2b5b44)['map'](({cell:_0x594229})=>_0x594229),_0x1c4c3d=Ne(_0xcd3c22['filter'](_0x3e5c9f=>_0x3e5c9f['hasAttribute'](_0x7e69b9))),_0x350c5f=Ne(_0xcd3c22['filter'](_0x3525f7=>!_0x3525f7['hasAttribute'](_0x7e69b9)))['map'](_0x6059c0=>_0x27d293['createRangeOn'](_0x6059c0)),_0x134525=_0x51a98b['markMultiRangeDeletion'](_0x350c5f,_0x1faa26);if(_0x134525&&('tableRow'==_0x134525['subType']||'tableColumn'==_0x134525['subType'])){const _0x579c37=this['_getSuggestionCoords'](_0x134525);for(const _0x5d32b3 of _0x1c4c3d){const _0x492de0=_0x27d293['createRangeOn'](_0x5d32b3),_0x168251=_0x28312f['getCellLocation'](_0x5d32b3),_0x2ecc3a=_0x5d32b3['getAttribute'](_0x7e69b9)-0x1,_0xae3a4b=_0x579c37[_0x513a2f],_0x2366dc=_0x579c37[_0x2ee578];_0xae3a4b<=_0x168251[_0x150066]&&_0x168251[_0x150066]+_0x2ecc3a<=_0x2366dc&&_0x134525['addRange'](_0x492de0);}}});});}function _0x51f8cb(_0x5890c5){const _0x321508=Array['from'](_0x12b9f5['getRanges']())['map'](_0x49025a=>_0x10a155['fromRange'](_0x49025a));_0xfacb13['model']['change'](_0x1c0f6a=>{const _0x9e39f=_0x1c0f6a['batch'];_0x5890c5=_0x5890c5['filter'](_0x28a5c4=>'$graveyard'!=_0x28a5c4['root']['rootName']),_0x1c0f6a['setSelection'](_0x5890c5),_0xfacb13['commands']['get']('removeTableRow')['refresh'](),_0xfacb13['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xfacb13['model']['enqueueChange'](()=>{_0xfacb13['model']['enqueueChange'](_0x9e39f,_0x244061=>{const _0x35257e=_0x321508['filter'](_0x499bd9=>'$graveyard'!=_0x499bd9['root']['rootName']);_0x35257e['length']>0x0&&_0x244061['setSelection'](_0x35257e);for(const _0x5ef455 of _0x321508)_0x5ef455['detach']();});});});}function _0x4264e1(_0x35ffb8){_0xfacb13['model']['change'](_0x416ea7=>{const _0x55ab1b=Array['from'](_0x12b9f5['getRanges']())['map'](_0xb2766f=>_0x10a155['fromRange'](_0xb2766f)),_0x365fbf=[];for(const _0x49b61f of _0x35ffb8)for(const _0x552c57 of _0x49b61f['getItems']({'shallow':!0x0}))_0x365fbf['push'](_0x552c57);for(const _0x2a1feb of _0x365fbf)'$graveyard'!=_0x2a1feb['root']['rootName']&&(_0x416ea7['setSelection'](_0x416ea7['createPositionAt'](_0x2a1feb,0x0)),_0xfacb13['commands']['get']('removeTableColumn')['refresh'](),_0xfacb13['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2cf388=_0x55ab1b['filter'](_0x161441=>'$graveyard'!=_0x161441['root']['rootName']);_0x2cf388['length']>0x0&&_0x416ea7['setSelection'](_0x2cf388);for(const _0x5abb8c of _0x55ab1b)_0x5abb8c['detach']();});}function _0x1c7101(_0x23e859,_0x3726b9){return _0x3726b9['every'](_0x3bb270=>_0x23e859['some'](_0x4fbe37=>_0x4fbe37['end']['isEqual'](_0x3bb270['start'])||_0x3bb270['end']['isEqual'](_0x4fbe37['start'])));}function _0x36cd26(_0x4ffbb8,_0x5e1093){return!_0x4ffbb8['some'](_0x2c2150=>_0x5e1093['some'](_0x5b6c5f=>_0x2c2150['isIntersecting'](_0x5b6c5f)))&&_0x4ffbb8['some'](_0x159e4b=>_0x5e1093['some'](_0x4da7e9=>_0x159e4b['end']['isTouching'](_0x4da7e9['start'])));}_0xfacb13['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc2eafd,_0x8960c9,_0x415b55)=>{if(!_0x415b55['options']['showSuggestionHighlights'])return;const _0x5d3295=_0x8960c9['item'];if(!_0x5d3295)return;const _0x37c4e6=_0x415b55['mapper']['toViewElement'](_0x5d3295);function _0x4c3680(_0x35300e){return Array['isArray'](_0x35300e)?_0x35300e:[_0x35300e];}_0x37c4e6&&'tableCell'===_0x5d3295['name']&&_0x3950f5(_0x37c4e6,_0x415b55['writer'],(_0x39a19d,_0x4e4d66,_0x5967eb)=>_0x5967eb['addClass'](_0x4c3680(_0x4e4d66['classes']),_0x39a19d),(_0xb07a1f,_0x588ea2,_0xd15df2)=>_0xd15df2['removeClass'](_0x4c3680(_0x588ea2['classes']),_0xb07a1f));},{'priority':'highest'}),_0x51a98b['descriptionFactory']['registerDescriptionCallback'](_0x4a90a8=>{if('insertion'!=_0x4a90a8['type']&&'deletion'!=_0x4a90a8['type'])return;const _0x5e100c=_0x4a90a8['getContainedElement']();if(null!=_0x5e100c&&_0x5e100c['is']('element','table')){if('insertion'==_0x4a90a8['type']){const _0xf77232=_0x4a90a8['getItems']()['filter'](_0x550f1d=>_0x550f1d['is']('$textProxy'))['map'](_0x4f1b17=>_0x4f1b17['data']);if(_0xf77232['length'])return{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf77232['join']('\x20')+'\x22'))};}if('deletion'==_0x4a90a8['type']){const _0x613da3=_0x4a90a8['getItems']()['filter'](_0x388cce=>_0x388cce['is']('$textProxy'))['map'](_0x59a4fb=>_0x59a4fb['data']);if(_0x613da3['length'])return{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x613da3['join']('\x20')+'\x22'))};}}}),_0x51a98b['descriptionFactory']['registerDescriptionCallback'](_0x3ac931=>{if('tableRow'==_0x3ac931['subType']){const _0x246ba5=_0x3ac931['getItems']()['filter'](_0x1559a9=>_0x1559a9['is']('$textProxy'))['map'](_0x56fed0=>_0x56fed0['data']),_0x2deede=this['_getSuggestionCoords'](_0x3ac931),_0x57e5fb=_0x2deede['maxRow']-_0x2deede['minRow']+0x1;if('insertion'==_0x3ac931['type'])return _0x246ba5['length']?{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57e5fb,'\x22'+_0x246ba5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW',_0x57e5fb))};if('deletion'==_0x3ac931['type'])return _0x246ba5['length']?{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57e5fb,'\x22'+_0x246ba5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW',_0x57e5fb))};}if('tableColumn'==_0x3ac931['subType']){const _0x32b1d4=_0x3ac931['getItems']()['filter'](_0x28b92c=>_0x28b92c['is']('$textProxy'))['map'](_0x134c91=>_0x134c91['data']),_0x4953d9=this['_getSuggestionCoords'](_0x3ac931),_0x44905d=_0x4953d9['maxColumn']-_0x4953d9['minColumn']+0x1;if('insertion'==_0x3ac931['type'])return _0x32b1d4['length']?{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44905d,'\x22'+_0x32b1d4['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN',_0x44905d))};if('deletion'==_0x3ac931['type'])return _0x32b1d4['length']?{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44905d,'\x22'+_0x32b1d4['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN',_0x44905d))};}}),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x51f8cb),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x51f8cb),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4264e1),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4264e1),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1c7101),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1c7101),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x36cd26),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x36cd26);}['_acceptFormatSuggestionCallbackFactory'](){const _0x19ef71=this['editor'],_0x275738=_0x19ef71['model']['document']['selection'];return(_0x4ddf00,_0x2aa28a)=>{_0x19ef71['model']['change'](_0x35d567=>{const {commandName:_0x83a617,commandParams:_0x37dc3b}=_0x2aa28a;let _0x240b1a=_0x4ddf00[0x0]['end']['nodeBefore'];_0x37dc3b&&_0x37dc3b[0x0]&&!0x1===_0x37dc3b[0x0]['forceValue']&&(_0x240b1a=_0x4ddf00[0x0]['start']['nodeAfter']);const _0x1dfe07=_0x35d567['createRangeIn'](_0x240b1a);if('$graveyard'==_0x1dfe07['root']['rootName'])return;const _0x58b7d6=Array['from'](_0x275738['getRanges']())['map'](_0x4e44e8=>_0x10a155['fromRange'](_0x4e44e8));_0x35d567['setSelection'](_0x1dfe07),_0x19ef71['commands']['get'](_0x83a617)['refresh'](),_0x37dc3b['push']({'forceDefaultExecution':!0x0}),_0x19ef71['execute'](_0x83a617,..._0x37dc3b);const _0xafdc3=_0x58b7d6['filter'](_0x2e558a=>'$graveyard'!=_0x2e558a['root']['rootName']);_0xafdc3['length']>0x0&&_0x35d567['setSelection'](_0xafdc3);for(const _0x2cc8f0 of _0x58b7d6)_0x2cc8f0['detach']();});};}['_getCoordsForCells'](_0x355c81){const _0xafb305=this['editor']['plugins']['get']('TableUtils');let _0x55b1c0=Number['MAX_SAFE_INTEGER'],_0x20cc60=Number['MIN_SAFE_INTEGER'],_0x35bbdc=Number['MAX_SAFE_INTEGER'],_0x41c2c7=Number['MIN_SAFE_INTEGER'];for(const _0x4af37b of _0x355c81){if('$graveyard'==_0x4af37b['root']['rootName'])continue;const {row:_0x87d25b,column:_0x15753f}=_0xafb305['getCellLocation'](_0x4af37b),_0x1f62b4=_0x4af37b['hasAttribute']('rowspan')?_0x4af37b['getAttribute']('rowspan')-0x1:0x0,_0xc87ada=_0x4af37b['hasAttribute']('colspan')?_0x4af37b['getAttribute']('colspan')-0x1:0x0;_0x55b1c0=_0x87d25b<_0x55b1c0?_0x87d25b:_0x55b1c0,_0x20cc60=_0x87d25b+_0x1f62b4>_0x20cc60?_0x87d25b+_0x1f62b4:_0x20cc60,_0x35bbdc=_0x15753f<_0x35bbdc?_0x15753f:_0x35bbdc,_0x41c2c7=_0x15753f+_0xc87ada>_0x41c2c7?_0x15753f+_0xc87ada:_0x41c2c7;}return{'minRow':_0x55b1c0,'maxRow':_0x20cc60,'minColumn':_0x35bbdc,'maxColumn':_0x41c2c7};}['_setupColumnsRowsFixing'](){const _0x259125=this['editor'],_0x52f10f=_0x259125['plugins']['get']('TrackChangesEditing'),_0x4e9020=_0x259125['plugins']['get']('TableUtils');_0x259125['model']['document']['on']('change:data',()=>{const _0x3678cb=Array['from'](_0x259125['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d7bc0,data:_0x19519e}of _0x3678cb){const {group:_0x1d9be5,id:_0x1523ba,subType:_0x2ac8fa}=_0x52f10f['_splitMarkerName'](_0x5d7bc0);if('suggestion'!=_0x1d9be5)continue;if(null!=_0x19519e['oldRange'])continue;const _0x46f758=_0x52f10f['getSuggestion'](_0x1523ba);this['_tablePostFixingSubtypes']['includes'](_0x2ac8fa)&&this['_tableSuggestions']['add'](_0x46f758);}},{'priority':'low'});const _0x530300=(_0x3d9e8b,_0x4a9375)=>{let _0xbf30d2=!0x1;const _0x556d9c=_0x4a9375['createRangeOn'](_0x3d9e8b),_0x387116=_0x3d9e8b['findAncestor']('table'),_0x576ace=_0x4e9020['getCellLocation'](_0x3d9e8b);for(const _0x3ecc9f of this['_tableSuggestions']){const _0x25817c=_0x3ecc9f['subType'],_0x2ab550=_0x25817c['startsWith']('tablePaste'),_0x3a4f41=_0x25817c['substr'](_0x2ab550?0xa:0x5),_0x22fe43=_0x3a4f41['toLowerCase'](),_0xedde5e=_0x22fe43['substr'](0x0,0x3)+'span',_0x58fc56='min'+_0x3a4f41,_0x549a02='max'+_0x3a4f41;if(!_0x3ecc9f['isInContent'])continue;if(_0x387116!=_0x3ecc9f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3ecc9f['isIntersectingWithRange'](_0x556d9c))continue;const _0x59cf15=_0x3d9e8b['hasAttribute'](_0xedde5e)?_0x3d9e8b['getAttribute'](_0xedde5e)-0x1:0x0,_0x51e228=this['_getSuggestionCoords'](_0x3ecc9f),_0x1aee49=_0x51e228[_0x58fc56],_0xb841a=_0x51e228[_0x549a02];_0x1aee49<=_0x576ace[_0x22fe43]&&_0x576ace[_0x22fe43]+_0x59cf15<=_0xb841a&&(_0x3ecc9f['addRange'](_0x556d9c),_0xbf30d2=!0x0);}return _0xbf30d2;};_0x259125['model']['document']['registerPostFixer'](_0x3d8700=>{let _0x177e5e=!0x1;for(const _0x2c0af4 of _0x259125['model']['document']['differ']['getChanges']())if('insert'==_0x2c0af4['type']){if('tableRow'==_0x2c0af4['name']){for(const _0x4b1473 of _0x2c0af4['position']['nodeAfter']['getChildren']())_0x177e5e=_0x177e5e||_0x530300(_0x4b1473,_0x3d8700);}else'tableCell'==_0x2c0af4['name']&&(_0x177e5e=_0x177e5e||_0x530300(_0x2c0af4['position']['nodeAfter'],_0x3d8700));}return _0x177e5e;});}['_getSuggestionCoords'](_0x11aca3){return this['_getCoordsForCells'](_0x11aca3['getRanges']()['map'](_0x27c9b9=>_0x27c9b9['start']['nodeAfter']));}}function Ne(_0x5bfbec){return Array['from'](new Set(_0x5bfbec)['values']());}class Nt extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0x44ecb3=this['editor'],_0x58474c=_0x44ecb3['model']['document']['selection'],_0x595215=_0x44ecb3['locale'];if(!_0x44ecb3['plugins']['has']('TableEditing'))return;const _0x3d5931=_0x44ecb3['plugins']['get']('TrackChangesEditing'),_0x5d9900=_0x44ecb3['plugins']['get']('TableUtils'),_0x4d244c=_0x44ecb3['plugins']['get'](Ct);_0x4d244c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d5931['enableCommand']('mergeTableCells',()=>{const _0x167795=_0x5d9900['getSelectionAffectedTableCells'](_0x44ecb3['model']['document']['selection']);_0x44ecb3['model']['change'](()=>{_0x3d5931['markMultiRangeBlockFormat'](_0x167795,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x44ecb3['commands']['get']('mergeTableCells')['on']('execute',(_0x293b91,_0x41fa31)=>{_0x44ecb3['commands']['get']('trackChanges')['value']&&(_0x41fa31['length']>0x0&&_0x41fa31[_0x41fa31['length']-0x1]&&_0x41fa31[_0x41fa31['length']-0x1]['forceDefaultExecution']||_0x3d5931['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x293b91['stop']());},{'priority':'highest'});for(const _0x309a09 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4a773f=_0x44ecb3['commands']['get'](_0x309a09);_0x3d5931['enableCommand'](_0x309a09,()=>{const _0x58e51e=_0x44ecb3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9c6822=>_0x9c6822['is']('element','tableCell')),_0x5756ce=_0x4a773f['value'];_0x44ecb3['model']['change'](()=>{_0x3d5931['markMultiRangeBlockFormat']([_0x58e51e,_0x5756ce],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x405cce of['splitTableCellVertically','splitTableCellHorizontally']){const _0xdcf533=_0x44ecb3['commands']['get'](_0x405cce);_0x3d5931['enableCommand'](_0x405cce,()=>{const _0x533f5b=_0x5d9900['getSelectionAffectedTableCells'](_0x44ecb3['model']['document']['selection'])[0x0],_0x12f33c=_0x533f5b['findAncestor']('table'),{column:_0x1cad0a,row:_0x5cdd03}=_0x5d9900['getCellLocation'](_0x533f5b);let _0x54e62e=[];if('horizontally'==_0xdcf533['direction']){const _0x465136=_0x5d9900['createTableWalker'](_0x12f33c,{'startRow':_0x5cdd03,'endRow':_0x5cdd03,'includeAllSlots':!0x0});_0x54e62e=Array['from'](_0x465136)['map'](_0x47a095=>_0x47a095['cell']);}else{const _0x888ba9=_0x5d9900['createTableWalker'](_0x12f33c,{'column':_0x1cad0a,'includeAllSlots':!0x0});_0x54e62e=Array['from'](_0x888ba9)['map'](_0x3dcd79=>_0x3dcd79['cell']);}_0x44ecb3['model']['change'](_0x3aa261=>{_0x3d5931['markBlockFormat'](_0x3aa261['createRangeOn'](_0x533f5b),{'commandName':_0x405cce,'commandParams':[]},_0x54e62e,_0x405cce);});});}_0x3d5931['descriptionFactory']['registerDescriptionCallback'](_0x54bec9=>{if('formatBlock'!=_0x54bec9['type']&&'formatInline'!=_0x54bec9['type'])return;const {data:_0x22d1a8}=_0x54bec9;return _0x22d1a8&&'mergeTableCells'==_0x22d1a8['commandName']?{'type':'format','content':c(_0x595215,'*Merge\x20cells*')}:void 0x0;}),_0x3d5931['descriptionFactory']['registerDescriptionCallback'](_0xdcb617=>{if('formatBlock'!=_0xdcb617['type']&&'formatInline'!=_0xdcb617['type'])return;const {data:_0x579726}=_0xdcb617;return _0x579726?'splitTableCellVertically'==_0x579726['commandName']?{'type':'format','content':c(_0x595215,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x579726['commandName']?{'type':'format','content':c(_0x595215,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e3c76=_0x4d244c['_acceptFormatSuggestionCallbackFactory']();for(const _0x63f55a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d5931['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x63f55a,'accept',_0x3e3c76);for(const _0x393993 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d5931['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x393993,'accept',_0x3e3c76);_0x3d5931['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x165fd3=>{_0x44ecb3['model']['change'](_0x1dfb8a=>{const _0x5eb50a=Array['from'](_0x58474c['getRanges']())['map'](_0x418509=>_0x10a155['fromRange'](_0x418509));_0x1dfb8a['setSelection'](_0x165fd3),_0x44ecb3['commands']['get']('mergeTableCells')['refresh'](),_0x44ecb3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x117b8a=_0x5eb50a['filter'](_0x464d25=>'$graveyard'!=_0x464d25['root']['rootName']);_0x117b8a['length']>0x0&&_0x1dfb8a['setSelection'](_0x117b8a);for(const _0x5543a3 of _0x5eb50a)_0x5543a3['detach']();});});for(const _0x4381fe of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ac8c0=_0x44ecb3['commands']['get'](_0x4381fe);_0x5ac8c0['on']('set:isEnabled',(_0x5327de,_0x34233f,_0x5d3575)=>{if(_0x5d3575){const _0x4b07de=_0x44ecb3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc404d5=>_0xc404d5['is']('element','tableCell'));this['_areMergableCells'](_0x5ac8c0['value'],_0x4b07de)||(_0x5327de['return']=!0x1,_0x5327de['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2591d5=this['editor']['commands']['get']('mergeTableCells'),_0x108d3b=this['editor']['plugins']['get']('TableUtils');if(!_0x2591d5['isEnabled'])return!0x1;const _0x31dafb=_0x108d3b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x43239b of _0x31dafb)for(const _0x8c27de of _0x31dafb)if(_0x43239b!=_0x8c27de&&!this['_areMergableCells'](_0x43239b,_0x8c27de))return!0x1;return!0x0;}['_areMergableCells'](_0x6e8fd9,_0x1dc087){const _0xbcdeeb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d07f=this['editor']['model']['createRangeOn'](_0x6e8fd9),_0x4af3b9=this['editor']['model']['createRangeOn'](_0x1dc087),_0x5740dc=new Set(),_0x2b2af3=new Set();for(const _0x1476c3 of _0xbcdeeb['getSuggestions']())if(('insertion'==_0x1476c3['type']||'deletion'==_0x1476c3['type']||'mergeTableCells'==_0x1476c3['subType'])&&_0x1476c3['isInContent']){for(const _0x258304 of _0x1476c3['getRanges']())_0x258304['containsRange'](_0x22d07f,!0x0)&&_0x5740dc['add'](_0x1476c3['type']+':'+_0x1476c3['author']['id']),_0x258304['containsRange'](_0x4af3b9,!0x0)&&_0x2b2af3['add'](_0x1476c3['type']+':'+_0x1476c3['author']['id']);}if(_0x5740dc['size']!=_0x2b2af3['size'])return!0x1;for(const _0x56910d of _0x5740dc)if(!_0x2b2af3['has'](_0x56910d))return!0x1;return!0x0;}}class Dt extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0x3bf73f=this['editor'];if(!_0x3bf73f['plugins']['has']('TableEditing'))return;const _0x26df81=_0x3bf73f['locale'],_0x576ed1=_0x3bf73f['plugins']['get']('TrackChangesEditing');_0x576ed1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x576ed1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x576ed1['registerBlockAttribute']('headingRows'),_0x576ed1['registerBlockAttribute']('headingColumns'),_0x576ed1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x26df81,'FORMAT_HEADER_ROW')),_0x576ed1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x26df81,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x40cf1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51c112=this['editor']['plugins']['get']('TableUtils'),_0x322546=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1855da({showActiveMarker:_0x1d3aed=!0x0,setDataAttribute:_0x5c511d=!0x0}={}){return(_0x34b6bc,_0x48ee35,_0x552e1e)=>{const {type:_0x52b2a0,id:_0x4953d3}=_0x40cf1c['_splitMarkerName'](_0x48ee35['markerName']),_0x47cc5a=_0x40cf1c['getSuggestion'](_0x4953d3),_0x5bf32e=_0x47cc5a['data'];if('formatBlock'!=_0x47cc5a['type']||!_0x5bf32e||'setTableColumnHeader'!=_0x5bf32e['commandName'])return;if(_0x48ee35['item'])return void _0x34b6bc['stop']();if(!_0x552e1e['consumable']['consume'](_0x48ee35['markerRange'],_0x34b6bc['name']))return;const _0x5453aa=_0x48ee35['markerRange']['start']['nodeAfter'],_0x41dec9=_0x48ee35['markerRange']['end']['nodeBefore'],_0x58bb66=_0x5453aa['parent']['parent'],{column:_0x582ae9}=_0x51c112['getCellLocation'](_0x5453aa),{column:_0x507433}=_0x51c112['getCellLocation'](_0x41dec9);for(let _0x144c00=_0x582ae9;_0x144c00<=_0x507433;_0x144c00++){const _0x10e660=_0x51c112['createTableWalker'](_0x58bb66,{'column':_0x144c00,'includeAllSlots':!0x1});for(const _0x3b5daa of _0x10e660){const _0x4ee187=_0x3b5daa['cell'],_0x392b7f=_0x552e1e['mapper']['toViewElement'](_0x4ee187);_0x552e1e['writer']['addClass']('ck-suggestion-marker-'+_0x52b2a0,_0x392b7f),_0x5c511d&&_0x552e1e['writer']['setAttribute']('data-suggestion',_0x4953d3,_0x392b7f),_0x552e1e['mapper']['bindElementToMarker'](_0x392b7f,_0x48ee35['markerName']),_0x1d3aed&&(_0x40cf1c['activeMarkers']['includes'](_0x48ee35['markerName'])?_0x552e1e['writer']['addClass']('ck-suggestion-marker--active',_0x392b7f):_0x552e1e['writer']['removeClass']('ck-suggestion-marker--active',_0x392b7f));}}};}_0x40cf1c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x322546),_0x40cf1c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x322546),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1855da(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a32ff,_0x6e5692,_0x358375)=>{_0x358375['options']['showSuggestionHighlights']&&_0x1855da({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a32ff,_0x6e5692,_0x358375);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x26c649,_0x4e2a0f,_0x1a2e16)=>{const {type:_0x5de7cd,id:_0x33e521}=_0x40cf1c['_splitMarkerName'](_0x4e2a0f['markerName']),_0x520fb1=_0x40cf1c['getSuggestion'](_0x33e521),_0x3062c1=_0x520fb1['data'];if('formatBlock'!=_0x520fb1['type']||!_0x3062c1||'setTableColumnHeader'!=_0x3062c1['commandName'])return;const _0x55e00d=_0x1a2e16['mapper']['markerNameToElements'](_0x4e2a0f['markerName']);if(_0x55e00d){for(const _0x400d8e of _0x55e00d)_0x1a2e16['writer']['removeClass']('ck-suggestion-marker-'+_0x5de7cd,_0x400d8e),_0x1a2e16['writer']['removeClass']('ck-suggestion-marker--active',_0x400d8e),_0x1a2e16['writer']['removeAttribute']('data-suggestion',_0x400d8e),_0x1a2e16['mapper']['unbindElementFromMarkerName'](_0x400d8e,_0x4e2a0f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1516ce=this['editor'],_0x425961=_0x1516ce['locale'];function _0x913e06(_0x1a4f4a){return{'type':'format','content':c(_0x425961,'*Format:*\x20%0',_0x1a4f4a)};}_0x1516ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25facb=>{if('formatBlock'!=_0x25facb['type'])return;const {data:_0x10e1eb}=_0x25facb;if(_0x10e1eb){if('setTableRowHeader'==_0x10e1eb['commandName']){const _0x54a2a2=_0x10e1eb['commandParams'][0x0]['forceValue'];return _0x913e06(c(_0x425961,_0x54a2a2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x10e1eb['commandName']){const _0x1e01e7=_0x10e1eb['commandParams'][0x0]['forceValue'];return _0x913e06(c(_0x425961,_0x1e01e7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2b9352=>[_0x2b9352,null]));class Mt extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0xf04f4b=this['editor'];if(!_0xf04f4b['plugins']['has']('TableClipboard'))return;const _0xd13fc0=_0xf04f4b['plugins']['get']('TrackChangesEditing'),_0x29049f=_0xf04f4b['plugins']['get']('TableUtils'),_0x368e94=_0xf04f4b['plugins']['get'](Ct),_0xa218b4=_0xf04f4b['plugins']['get']('TableClipboard');_0x368e94['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xf04f4b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xf04f4b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xae9ad7=null;_0xf04f4b['model']['on']('insertContent',(_0x5a52e3,_0x29249c)=>{const [_0xce0112,_0x175815]=_0x29249c,_0x21203e=_0x29249c[_0x29249c['length']-0x1];_0x21203e&&_0x21203e['forceDefaultExecution']||_0xd13fc0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3eea31,_0x544341,_0x114e5f,_0x57d0f5,_0x10992a){if(_0x544341&&!_0x544341['is']('documentSelection'))return!0x1;const _0x477beb=_0x10992a['getTableIfOnlyTableInContent'](_0x3eea31,_0x114e5f);if(!_0x477beb||!Ue(_0x477beb,void 0x0,_0x57d0f5))return!0x1;const _0x348f95=_0x57d0f5['getSelectionAffectedTableCells'](_0x114e5f['document']['selection']);if(!_0x348f95['length'])return!0x1;const _0x41a7c3=_0x348f95[0x0]['findAncestor']('table'),_0x1c0158=_0x57d0f5['getRowIndexes'](_0x348f95),_0x7f10d5=_0x57d0f5['getColumnIndexes'](_0x348f95),_0x46f4e1={'startRow':_0x1c0158['first'],'endRow':_0x1c0158['last'],'startColumn':_0x7f10d5['first'],'endColumn':_0x7f10d5['last']};return 0x1==_0x348f95['length']&&(_0x46f4e1['endRow']+=_0x57d0f5['getRows'](_0x477beb)-0x1,_0x46f4e1['endColumn']+=_0x57d0f5['getColumns'](_0x477beb)-0x1),Ue(_0x41a7c3,_0x46f4e1,_0x57d0f5);}(_0xce0112,_0x175815,_0xf04f4b['model'],_0x29049f,_0xa218b4)&&(_0x5a52e3['stop'](),_0xae9ad7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xf04f4b['model']['change'](()=>{_0xf04f4b['model']['insertContent'](_0x29249c[0x0],_0x29249c[0x1],_0x29249c[0x2],{'forceDefaultExecution':!0x0});const _0x1cd01f=_0x2b49b6(),{rowInsertionRanges:_0x539053,columnInsertionRanges:_0x3a5653,insertionRanges:_0x182bea,deletionRanges:_0x534fb2,cells:_0x21ed8f}=_0xae9ad7;_0x539053['length']&&_0xd13fc0['markMultiRangeInsertion'](_0x539053,'tablePasteRow',{'tablePasteChainId':_0x1cd01f}),_0x3a5653['length']&&_0xd13fc0['markMultiRangeInsertion'](_0x3a5653,'tablePasteColumn',{'tablePasteChainId':_0x1cd01f}),_0x182bea['length']&&(_0xd13fc0['markMultiRangeInsertion'](_0x182bea,'tablePaste',{'tablePasteChainId':_0x1cd01f,'skipNestingCheck':!0x0}),_0x182bea['forEach'](_0x590ca2=>_0x590ca2['detach']?.())),_0x534fb2['length']&&(_0xd13fc0['markMultiRangeDeletion'](_0x534fb2,'tablePaste',{'tablePasteChainId':_0x1cd01f,'skipNestingCheck':!0x0}),_0x534fb2['forEach'](_0x4ebd93=>_0x4ebd93['detach']?.()));const _0x257a74=_0xd13fc0['markMultiRangeBlockFormat'](_0x21ed8f['map'](({element:_0x516d02})=>_0x516d02),{'formatGroupId':_0x2b49b6()},[],'tablePasteCell',{'tablePasteChainId':_0x1cd01f});if(_0x257a74){const _0x2d38f4=_0x257a74['getMarkers'](),_0x118796=[];for(const {element:_0x24d18a,attributes:_0x30a9d0}of _0x21ed8f){if(!_0x30a9d0)continue;const _0x3298d5=_0xf04f4b['model']['createRangeOn'](_0x24d18a),_0x215244=_0x2d38f4['find'](_0x53c417=>_0x53c417['getRange']()['isEqual'](_0x3298d5));_0x215244&&_0x118796['push']([_0x215244['name'],_0x30a9d0]);}_0x118796['length']&&_0x257a74['setAttribute']('markerAttributes',Object['fromEntries'](_0x118796));}_0xae9ad7=null;}));},{'priority':_0x4d0204['high']+0xa}),_0xf04f4b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c4b27,_0x2b10cb)=>{const [_0x5a144a,_0x2d63a3,,_0x5dbbb]=_0x2b10cb;if(!_0xae9ad7)return;_0x4c4b27['stop']();const _0x194369=_0x5a144a['cell'],_0x3d1659=_0x2d63a3,_0x4e483c=Oe(_0x194369),_0xfc88a9=Oe(_0x3d1659);_0x4c4b27['return']=_0x194369;let _0x5bf526=null,_0x23a00e=null;if(_0xfc88a9||_0x4e483c){if(_0x4e483c&&!_0xfc88a9){_0x5dbbb['remove'](_0x194369['getChild'](0x0));for(const _0x55d876 of Array['from'](_0x3d1659['getChildren']()))_0x5dbbb['insert'](_0x55d876,_0x194369,'end');const _0x3d2fa2=_0xae9ad7['rowInsertionIndexes']['includes'](_0x5a144a['row']),_0x45ed3f=_0xae9ad7['columnInsertionIndexes']['includes'](_0x5a144a['column']);_0x3d2fa2||_0x45ed3f||(_0x5bf526=_0x10a155['fromRange'](_0x5dbbb['createRangeIn'](_0x194369)));}else _0xfc88a9&&!_0x4e483c&&(_0x23a00e=_0x5dbbb['createRangeIn'](_0x194369));}else{const _0x3d1c8c=_0x5dbbb['createElement']('tableCellSuggestion'),_0x2452de=_0x5dbbb['createElement']('tableCellSuggestion');_0x5dbbb['wrap'](_0x5dbbb['createRangeIn'](_0x194369),_0x2452de),_0x5dbbb['insert'](_0x3d1c8c,_0x194369,0x0);for(const _0x4583ae of Array['from'](_0x3d1659['getChildren']()))_0x5dbbb['insert'](_0x4583ae,_0x3d1c8c,'end');_0x5bf526=_0x10a155['fromRange'](_0x5dbbb['createRangeOn'](_0x3d1c8c)),_0x23a00e=_0x10a155['fromRange'](_0x5dbbb['createRangeOn'](_0x2452de));}const _0x40773e=Array['from'](_0x3d1659['getAttributes']())['filter'](([_0x2c8115])=>Be['includes'](_0x2c8115));_0xae9ad7['cells']['push']({'element':_0x194369,'attributes':_0x40773e['length']?Object['fromEntries'](_0x40773e):null}),_0x5bf526&&_0xae9ad7['insertionRanges']['push'](_0x5bf526),_0x23a00e&&_0xae9ad7['deletionRanges']['push'](_0x23a00e);},{'priority':'high'}),_0x29049f['on']('insertColumns',(_0x25f9e4,_0x951589)=>{const [_0x2cdaba,_0x214a0f={}]=_0x951589;if(!_0xae9ad7)return;const _0x142817=_0x214a0f['at']||0x0,_0x381e25=_0x214a0f['columns']||0x1;_0xae9ad7['columnInsertionIndexes']=new Array(_0x381e25)['fill'](_0x142817)['map']((_0x1d30c0,_0x5418c6)=>_0x1d30c0+_0x5418c6);for(const {cell:_0xb51fc2}of _0x29049f['createTableWalker'](_0x2cdaba,{'startColumn':_0x142817,'endColumn':_0x142817+_0x381e25-0x1}))_0xae9ad7['columnInsertionRanges']['push'](_0xf04f4b['model']['createRangeOn'](_0xb51fc2));},{'priority':'low'}),_0x29049f['on']('insertRows',(_0x2e27ef,_0x54c536)=>{const [_0x1ed5be,_0x35e4bf={}]=_0x54c536;if(!_0xae9ad7)return;const _0x27853c=_0x35e4bf['at']||0x0,_0x18c775=_0x35e4bf['rows']||0x1;_0xae9ad7['rowInsertionIndexes']=new Array(_0x18c775)['fill'](_0x27853c)['map']((_0x19d599,_0x4f3317)=>_0x19d599+_0x4f3317);for(const {cell:_0x380ebb}of _0x29049f['createTableWalker'](_0x1ed5be,{'startRow':_0x27853c,'endRow':_0x27853c+_0x18c775-0x1}))_0xae9ad7['rowInsertionRanges']['push'](_0xf04f4b['model']['createRangeOn'](_0x380ebb));},{'priority':'low'}),_0xd13fc0['descriptionFactory']['registerDescriptionCallback'](_0x4d52cc=>{if(_0x4d52cc['subType']&&_0x4d52cc['subType']['startsWith']('tablePaste'))return _0x4d52cc['previous']?{}:{'type':'insertion','content':c(_0xf04f4b['locale'],'*Replace\x20table\x20cells*')};});const _0x12228c=()=>!0x1;for(const _0x174c27 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xd13fc0['_suggestionFactory']['registerCustomCallback']('insertion',_0x174c27,'join',_0x12228c),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('deletion',_0x174c27,'join',_0x12228c),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x174c27,'join',_0x12228c);_0xd13fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x12228c),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4591f2,_0x36cc1f,_0x13c389)=>{const _0x577715=_0x4591f2['map'](_0x599170=>_0x599170['getContainedElement']())['filter'](_0x5c42a5=>_0x5c42a5),_0x584570=new Map(_0x577715['map'](_0x54d328=>[_0x54d328,null]));if(_0xae9ad7){for(const {element:_0x489bba,attributes:_0x204d20}of _0xae9ad7['cells'])_0x204d20&&_0x584570['set'](_0x489bba,_0x204d20);}else{if(_0x13c389&&_0x13c389['markerAttributes'])for(const [_0x3a5efa,_0x2867a0]of Object['entries'](_0x13c389['markerAttributes'])){const _0x3c2321=_0xf04f4b['model']['markers']['get'](_0x3a5efa),_0x2c184c=_0x3c2321?_0x3c2321['getRange']()['getContainedElement']():null;_0x2c184c&&_0x584570['set'](_0x2c184c,_0x2867a0);}}_0xf04f4b['model']['change'](_0x4c42ce=>{for(const [_0x3516f6,_0x396bc1]of _0x584570)_0x4c42ce['setAttributes']({...xe,..._0x396bc1},_0x3516f6);});});const _0x51ed89=(_0x38173c,_0x29e31d)=>{_0xd13fc0['_suggestionFactory']['registerCustomCallback'](_0x38173c,'tablePaste',_0x29e31d,(_0x3e925d,_0x5dc8ef,_0x5e72a2)=>{_0xf04f4b['model']['change'](_0x213147=>{const _0x5670fd=[];for(const _0x250387 of _0x3e925d){const _0x426040=_0x250387['start']['nodeAfter'];_0x426040['is']('element','tableCellSuggestion')&&_0x5670fd['push'](_0x426040);}_0xd13fc0['_suggestionFactory']['getSuggestionCallback'](_0x38173c,null,_0x29e31d)(_0x3e925d,_0x5dc8ef,_0x5e72a2);for(const _0x387487 of _0x5670fd)'$graveyard'!=_0x387487['root']['rootName']&&_0x213147['unwrap'](_0x387487);});});};_0x51ed89('insertion','accept'),_0x51ed89('insertion','discard'),_0x51ed89('deletion','accept'),_0x51ed89('deletion','discard'),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5971c2=>{const _0x155771=_0x5971c2['map'](_0x289b53=>_0x289b53['getContainedElement']()),_0x302e46=_0x155771[0x0]['findAncestor']('table'),{minRow:_0x52f9a5,maxRow:_0x18245e}=_0x368e94['_getCoordsForCells'](_0x155771);_0x29049f['removeRows'](_0x302e46,{'at':_0x52f9a5,'rows':_0x18245e-_0x52f9a5+0x1});}),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x257fab=>{const _0x78333f=_0x257fab['map'](_0x6bcd7c=>_0x6bcd7c['getContainedElement']()),_0x5cb37f=_0x78333f[0x0]['findAncestor']('table'),{minColumn:_0x5db32d,maxColumn:_0x2964e2}=_0x368e94['_getCoordsForCells'](_0x78333f);_0x29049f['removeColumns'](_0x5cb37f,{'at':_0x5db32d,'columns':_0x2964e2-_0x5db32d+0x1});});const _0x5e4b64=(_0x305316,_0x1ab20e)=>{if(!_0x1ab20e['subType']||!_0x1ab20e['subType']['startsWith']('tablePaste'))return;const _0x29fb00=_0x1ab20e['attributes']['tablePasteChainId'],_0x19a5b0=_0xd13fc0['getSuggestions']()['filter'](_0x108451=>_0x108451['isInContent']&&_0x108451['attributes']&&_0x108451['attributes']['tablePasteChainId']==_0x29fb00);_0x19a5b0['length']&&_0x1ab20e['getAllAdjacentSuggestions']()['length']!=_0x19a5b0['length']&&_0x19a5b0['reduce']((_0xc7fdf0,_0x5d780a)=>(_0xc7fdf0['next']=_0x5d780a,_0x5d780a['previous']=_0xc7fdf0,_0x5d780a));};function _0x52ac9a(_0x3881b7,_0x1c3ac2=!0x0){const {id:_0x26f209,authorId:_0x512235}=_0xd13fc0['_splitMarkerName'](_0x3881b7['markerName']),_0x4fe0eb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ad116=_0xd13fc0['activeMarkers']['includes'](_0x3881b7['markerName']);return _0x1ad116&&_0x4fe0eb['push']('ck-suggestion-marker--active'),{'classes':_0x4fe0eb,'attributes':{'data-suggestion':_0x26f209,'data-author-id':_0x512235},'priority':_0x1ad116&&_0x1c3ac2?0xbc2:0xbb8};}_0xd13fc0['on']('suggestionLoaded',_0x5e4b64,{'priority':'high'}),_0xd13fc0['on']('suggestionUnloaded',_0x5e4b64,{'priority':'high'}),_0xf04f4b['model']['document']['registerPostFixer'](()=>{let _0xfc620c=!0x1;const _0x15bdbe=Array['from'](_0xf04f4b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40b0e6,data:_0x211122}of _0x15bdbe){const {group:_0x135d68,type:_0x5318bd,id:_0x56da88}=_0xd13fc0['_splitMarkerName'](_0x40b0e6);if('suggestion'!=_0x135d68||'deletion'!=_0x5318bd||_0x211122['oldRange'])continue;if(!_0xd13fc0['hasSuggestion'](_0x56da88))continue;const _0x331cf1=_0xd13fc0['getSuggestion'](_0x56da88)['getRanges'](),_0xda2ec9=_0xf04f4b['plugins']['get']('Users')['me'];for(const _0x5d70e2 of _0xd13fc0['getSuggestions']()){if(!_0x5d70e2['isInContent']||_0x5d70e2['author']!=_0xda2ec9)continue;if('formatBlock'!=_0x5d70e2['type']||'tablePasteCell'!=_0x5d70e2['subType'])continue;if(_0x5d70e2['getRanges']()['every'](_0x15ea59=>_0x331cf1['some'](_0x31af90=>_0x31af90['containsRange'](_0x15ea59,!0x0)))){for(const _0x32a5ad of _0x5d70e2['getAllAdjacentSuggestions']())_0x32a5ad['isInContent']&&(_0x32a5ad['discard'](),_0xfc620c=!0x0);}}}return _0xfc620c;}),_0xf04f4b['model']['document']['registerPostFixer'](_0x2f45da=>{const _0x30f79d=_0xf04f4b['commands']['get']('redo');if(!_0x30f79d||!_0x30f79d['_createdBatches']['has'](_0x2f45da['batch']))return!0x1;let _0x1ed823=!0x1;const _0xd7c4d3=_0xf04f4b['plugins']['get']('Users')['me'],_0x13f9e1=_0xf04f4b['model']['document']['differ']['getChanges'](),_0x4e914f=Array['from'](_0xf04f4b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x165f81,data:_0x2064db})=>{const {group:_0x42bd0b,subType:_0x2ba7ac,authorId:_0x172cf7}=_0xd13fc0['_splitMarkerName'](_0x165f81);return'suggestion'==_0x42bd0b&&'tablePaste'==_0x2ba7ac&&_0x172cf7==_0xd7c4d3['id']&&!_0x2064db['oldRange'];});for(const _0x80c100 of _0x13f9e1){if('insert'!=_0x80c100['type']||'tableCellSuggestion'!=_0x80c100['name']||0x1!=_0x80c100['length'])continue;const _0x398d2e=_0x2f45da['createRange'](_0x80c100['position'],_0x80c100['position']['getShiftedBy'](0x1));if(!_0x4e914f['find'](({data:_0x2f4d9e})=>_0x2f4d9e['newRange']['isEqual'](_0x398d2e))){for(const {name:_0x131e83,data:_0x3676f4}of _0x4e914f)if(_0x398d2e['containsRange'](_0x3676f4['newRange'])){_0x2f45da['updateMarker'](_0x131e83,{'range':_0x398d2e}),_0x1ed823=!0x0;break;}}}return _0x1ed823;}),_0xf04f4b['model']['document']['registerPostFixer'](_0x46fd67=>{let _0x500d77=!0x1;const _0x53f46a=_0xf04f4b['plugins']['get']('Users')['me'],_0x357b66=_0xd13fc0['getSuggestions']()['filter'](_0x599d8d=>_0x599d8d['isInContent']&&_0x599d8d['author']==_0x53f46a),_0x178758=new Set(),_0x570434=new Set();for(const _0x38f42a of _0x357b66)if('tablePaste'==_0x38f42a['subType'])for(const _0x56e4e5 of _0x38f42a['getMarkers']()){const _0xae7f33=_0x56e4e5['getRange']()['getContainedElement']();if(_0xae7f33){if(_0xae7f33['is']('element','tableCellSuggestion')&&Oe(_0xae7f33)){_0x38f42a['removeMarker'](_0x56e4e5['name']),_0x178758['add'](_0xae7f33),_0x500d77=!0x0;const _0x30b028=_0xae7f33['nextSibling'],_0xc43610=_0xae7f33['previousSibling'],_0x4f9520=_0x30b028&&_0x30b028['is']('element','tableCellSuggestion'),_0x11d30f=_0xc43610&&_0xc43610['is']('element','tableCellSuggestion');_0x4f9520&&!_0x178758['has'](_0x30b028)&&_0x570434['add'](_0x30b028),_0x11d30f&&!_0x178758['has'](_0xc43610)&&_0x570434['add'](_0xc43610);}else _0xae7f33['is']('element','paragraph')&&_0xae7f33['isEmpty']&&(_0x38f42a['removeMarker'](_0x56e4e5['name']),_0x500d77=!0x0);}}else{if('tablePasteCell'==_0x38f42a['subType']){if(!_0x38f42a['attributes']||!_0x38f42a['attributes']['tablePasteChainId'])continue;const _0x48eed3=_0x38f42a['attributes']['markerAttributes'];if(_0x48eed3&&Object['keys'](_0x48eed3)['length'])continue;const _0x308f66=_0x38f42a['attributes']['tablePasteChainId'];let _0x1137b4=!0x0,_0x3e029f=!0x0;for(const _0x389e06 of _0x357b66)if(_0x389e06['subType']&&_0x389e06['subType']['startsWith']('tablePaste')){if(!_0x389e06['attributes']['tablePasteChainId']){_0x3e029f=!0x1;break;}if(_0x389e06['id']!=_0x38f42a['id']&&_0x389e06['attributes']['tablePasteChainId']==_0x308f66){_0x1137b4=!0x1;break;}}_0x3e029f&&_0x1137b4&&(_0x38f42a['removeMarkers'](),_0x500d77=!0x0);}}for(const _0x23f8d6 of _0x178758)_0x46fd67['remove'](_0x23f8d6);for(const _0x31f02c of _0x570434)_0x46fd67['unwrap'](_0x31f02c);return _0x500d77;}),_0xf04f4b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x371eba=>_0x52ac9a(_0x371eba),'converterPriority':'high'}),_0xf04f4b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bd935,_0x287b45)=>_0x287b45['options']['showSuggestionHighlights']?_0x52ac9a(_0x3bd935,!0x1):null,'converterPriority':'high'});const _0x109479=_0xf04f4b['editing']['view'];this['listenTo'](_0x109479['document'],'clipboardOutput',(_0x497045,_0x1b554b)=>{const _0x4c31a7=[];for(const _0x478e3d of _0x109479['createRangeIn'](_0x1b554b['content'])['getItems']())_0x478e3d['is']('element','suggestion-td')&&_0x4c31a7['push'](_0x478e3d);_0x109479['change'](_0x176c5c=>{for(const _0x223182 of _0x4c31a7)_0x176c5c['move'](_0x176c5c['createRangeIn'](_0x223182),_0x176c5c['createPositionBefore'](_0x223182)),_0x176c5c['remove'](_0x223182);});});}}function Oe(_0x207a85){if(_0x207a85['isEmpty'])return!0x0;const _0x175a61=_0x207a85['getChild'](0x0);return _0x175a61['is']('element','paragraph')&&_0x175a61['isEmpty'];}function Ue(_0x137cd6,_0x43bcd9={},_0x46bff6){for(const {isAnchor:_0x19b75b,cellHeight:_0x2b5bbf,cellWidth:_0x3d0298}of _0x46bff6['createTableWalker'](_0x137cd6,{'includeAllSlots':!0x0,..._0x43bcd9}))if(!_0x19b75b||0x1!=_0x2b5bbf||0x1!=_0x3d0298)return!0x1;return!0x0;}class $t extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5ddd7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ddd7b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5ddd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5ddd7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ddd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5ddd7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5ddd7b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d224a,_0x14cf79){const _0x225b6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c29de=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x341973=_0x14cf79['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x27805f=_0x4c29de['getColumnGroupElement'](_0x341973);let _0xc8c4f4=_0x27805f?_0x4c29de['getTableColumnsWidths'](_0x27805f):null,_0x1c0301=_0x341973['getAttribute']('tableWidth')||null;const _0x2cbb45=_0x14cf79['tableWidth']||_0x1c0301,_0x5baac4=_0x14cf79['columnWidths']||_0xc8c4f4,_0x4f64f9=this['editor']['plugins']['get']('Users')['me'];for(const _0x40972c of _0x225b6a['getSuggestions']()){const _0x5822e9=_0x40972c['getContainedElement']();if('resizeTable'===_0x40972c['subType']&&_0x5822e9===_0x341973){_0x40972c['author']!==_0x4f64f9&&_0x40972c['discard']();const _0x58bc9f=_0x40972c['data']['commandParams'];_0x1c0301=_0x58bc9f[0x0]['tableWidth'],_0xc8c4f4=_0x58bc9f[0x0]['columnWidths'];break;}}_0x1d224a({'table':_0x341973,'tableWidth':_0x2cbb45,'columnWidths':_0x5baac4}),_0x225b6a['markBlockFormat'](_0x341973,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c0301,'columnWidths':_0xc8c4f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5a6320){if('formatBlock'!=_0x5a6320['type']&&'formatInline'!=_0x5a6320['type'])return;const {data:_0x931961}=_0x5a6320;if(_0x931961&&'resizeTable'===_0x931961['formatGroupId']){const _0xf49913='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0xf49913)};}}}class Bt extends _0x307cfb{['afterInit'](){const _0x18ad20=this['editor'];_0x18ad20['plugins']['has']('Template')&&_0x18ad20['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x307cfb{['afterInit'](){const _0x1c14da=this['editor'];if(!_0x1c14da['commands']['get']('insertTableOfContents'))return;_0x1c14da['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x524e12=_0x1c14da['plugins']['get']('TrackChangesEditing'),_0x1f870e=_0x1c14da['locale'];_0x524e12['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3acad2=>c(_0x1f870e,'ELEMENT_TABLE_OF_CONTENTS',_0x3acad2));}}class Rt extends _0x307cfb{['afterInit'](){const _0x5c4fd4=this['editor'];if(!_0x5c4fd4['plugins']['has']('Title'))return;const _0xadc76=_0x5c4fd4['plugins']['get']('TrackChangesEditing');_0xadc76['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5c4fd4['locale'],'ELEMENT_TITLE')),_0x5c4fd4['model']['document']['registerPostFixer'](_0x262607=>{let _0x31bed6=!0x1;const _0x5d351d=Array['from'](_0x5c4fd4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd93de5,data:_0x4d156a}of _0x5d351d){const {group:_0x6810bd}=_0xadc76['_splitMarkerName'](_0xd93de5);if('suggestion'!==_0x6810bd||!_0x4d156a['newRange'])continue;const _0x516f93=_0x4d156a['newRange'],_0x194f37=_0x516f93['end']['nodeBefore'];if(!_0x194f37||!_0x194f37['is']('element','title-content'))continue;if(!_0x516f93['start']['isTouching'](_0x516f93['end']))continue;const _0x5584b7=_0x5c4fd4['model']['schema']['getNearestSelectionRange'](_0x516f93['end'],'forward');if(_0x5584b7&&_0x5584b7['isCollapsed']){const _0x4f950f=_0x262607['createRange'](_0x516f93['start'],_0x5584b7['start']);_0x4f950f['isEqual'](_0x516f93)||(_0x262607['updateMarker'](_0xd93de5,{'range':_0x4f950f}),_0x31bed6=!0x0);}_0x31bed6||(_0x262607['removeMarker'](_0xd93de5),_0x31bed6=!0x0);}return _0x31bed6;});}}class xt extends _0x307cfb{['afterInit'](){const _0x443c9d=this['editor'],_0x27da9c=_0x443c9d['plugins']['get']('TrackChangesEditing');_0x443c9d['plugins']['has']('Uploadcare')&&(_0x27da9c['enableCommand']('uploadcare'),_0x443c9d['plugins']['has']('UploadcareImageEdit')&&(_0x27da9c['enableCommand']('uploadcareImageEdit'),_0x27da9c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27da9c['registerBlockAttribute']('uploadcareImageId'),_0x27da9c['descriptionFactory']['registerDescriptionCallback'](_0x946bfb=>{if('attribute'!=_0x946bfb['type'])return;const {data:_0x3fac0a}=_0x946bfb;return _0x3fac0a&&'uploadcareImageId'==_0x3fac0a['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x307cfb{['afterInit'](){const _0x1f7be0=this['editor'],_0x3a21c8=_0x1f7be0['plugins']['get']('TrackChangesEditing');_0x1f7be0['plugins']['has']('UndoEditing')&&(_0x3a21c8['enableCommand']('undo'),_0x3a21c8['enableCommand']('redo'));}}class Et extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0x3ad8e7=this['editor'];if(!_0x3ad8e7['plugins']['has']('TableCaptionEditing'))return;_0x3ad8e7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x307cfb{['tableProperties'];['tableCellProperties'];constructor(_0xce2626){super(_0xce2626),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 _0x1d5f1a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39add7 of this['tableProperties'])_0x1d5f1a['enableCommand'](_0x39add7,(_0x22d62a,_0x647caf)=>{const _0x671a18=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39add7,[_0x671a18],this['tableProperties'],'tableProperties',_0x22d62a,_0x647caf);});_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d5f1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5d0b88,_0xab449e)=>this['handleDiscardAction'](this['tableProperties'],_0x5d0b88,_0xab449e)),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3ae691 of this['tableCellProperties'])_0x1d5f1a['enableCommand'](_0x3ae691,(_0x3ffece,_0x1e4a45)=>{const _0x440a02=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3ae691,_0x440a02,this['tableCellProperties'],'tableCellProperties',_0x3ffece,_0x1e4a45);});_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d5f1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x446923,_0x628a79)=>this['handleDiscardAction'](this['tableCellProperties'],_0x446923,_0x628a79)),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d5f1a['descriptionFactory']['registerDescriptionCallback'](_0x42c9e6=>this['handleSuggestionDescription'](_0x42c9e6));}['_handlePropertyChange'](_0x40c2ac,_0x33a528,_0x50a4ad,_0x3d84b4,_0x3382bd,_0x481628){const _0x230432=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x481628['batch'],()=>{for(const _0x38eb54 of _0x33a528){if(this['_getSuggestion'](_0x38eb54,_0x3d84b4))_0x3382bd(_0x481628);else{const _0x4a0e4c={};for(const _0x4d19e0 of _0x50a4ad){const _0x1d8f03=_0x38eb54['getAttribute'](_0x4d19e0);void 0x0!==_0x1d8f03&&(_0x4a0e4c[_0x4d19e0]=_0x1d8f03);}_0x3382bd(_0x481628),_0x230432['markBlockFormat'](_0x38eb54,{'commandParams':[_0x4a0e4c]},[],_0x3d84b4);}}});}['handleDiscardAction'](_0x12d8f3,_0x1c59c1,_0x2d9c23){const _0x33a91e=_0x1c59c1[0x0]['start']['nodeAfter'],_0x4b47eb=_0x2d9c23['commandParams'][0x0];this['editor']['model']['change'](_0x3eab7a=>{for(const _0x412257 of _0x12d8f3)void 0x0!==_0x4b47eb[_0x412257]?_0x3eab7a['setAttribute'](_0x412257,_0x4b47eb[_0x412257],_0x33a91e):_0x3eab7a['removeAttribute'](_0x412257,_0x33a91e);});}['handleSuggestionDescription'](_0x41423b){if(_0x41423b['data'])switch(_0x41423b['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'](_0x59baff,_0x4cf627){const _0x35a5e9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x57fa74 of _0x35a5e9['getSuggestions']({'skipNotAttached':!0x0})){const _0x21b4ec=_0x57fa74['getContainedElement']();if(_0x57fa74['subType']===_0x4cf627&&_0x21b4ec===_0x59baff)return _0x57fa74;}return null;}}const u='$elementName';class p extends _0x307cfb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ea921,_0x166579,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,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4732c2){super(_0x4732c2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xc1f016,_0x1090ba,_0x3730b6,_0x34ef7d)=>{this['_model']['change'](()=>{for(const _0x41b908 of[..._0x34ef7d,..._0x3730b6])this['_model']['markers']['has'](_0x41b908)&&_0x4732c2['editing']['reconvertMarker'](_0x41b908);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4732c2['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(),_0x4732c2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4732c2['config']['get']('trackChanges.trackFormatChanges'),_0x4732c2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4732c2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4732c2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45ae10=this['editor'],_0x2901b6=(_0x377db0,_0x14f59b)=>{if('attribute'!=_0x377db0)return'ck-suggestion-marker-'+_0x377db0;const _0x511ef2=_0x14f59b['split']('|')[0x0];return this['_isBlockAttribute'](_0x511ef2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x45ae10['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x143288=>{const {id:_0xaefcd7,authorId:_0x33c062,type:_0x4a4678,subType:_0x3aadb8}=this['_splitMarkerName'](_0x143288['markerName']),_0x10a35d=['ck-suggestion-marker',_0x2901b6(_0x4a4678,_0x3aadb8)];let _0x3b8e84=0xbb8;return this['activeMarkers']['includes'](_0x143288['markerName'])&&(_0x10a35d['push']('ck-suggestion-marker--active'),_0x3b8e84=0xbc2),'deletion'==_0x4a4678&&(_0x3b8e84+=0x5),{'classes':_0x10a35d,'attributes':{'data-suggestion':_0xaefcd7,'data-author-id':_0x33c062},'priority':_0x3b8e84};}}),_0x45ae10['conversion']['for']('dataDowncast')['add'](_0x1ba138=>{_0x1ba138['on']('addMarker:suggestion',(_0x44442c,_0x3650c0,_0x49d3c1)=>{if(!_0x49d3c1['options']['showSuggestionHighlights'])return;const _0x3678ad=_0x3650c0['item'];if(!_0x3678ad)return;const _0x4ae8db=_0x49d3c1['mapper']['toViewElement'](_0x3678ad);_0x45ae10['model']['schema']['isObject'](_0x3678ad)&&_0x4ae8db&&!_0x4ae8db['getCustomProperty']('widget')&&_0x4ae8db['is']('containerElement')&&_0x42437d(_0x4ae8db,_0x49d3c1['writer']);},{'priority':'high'});}),_0x45ae10['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d7e42,_0x307a01)=>{if(!_0x307a01['options']['showSuggestionHighlights'])return null;const {type:_0x56f9e3,subType:_0x2e009f}=this['_splitMarkerName'](_0x4d7e42['markerName']);return{'classes':['ck-suggestion-marker',_0x2901b6(_0x56f9e3,_0x2e009f)],'priority':0xbb8};}});const _0x151c4b=({showActiveMarkers:_0x26e972=!0x0,isAttributeSuggestion:_0x186063=!0x1}={})=>(_0x2236ed,_0x5699b8,_0x6b2755)=>{if(!_0x5699b8['item'])return;const {id:_0x3bfdef,authorId:_0x1600d4}=this['_splitMarkerName'](_0x5699b8['markerName']);if(_0x186063){const _0x3c8522=this['_suggestions']['get'](_0x3bfdef),_0x8a55b9=this['_getAttributeKey'](_0x3c8522);if(!this['_isBlockAttribute'](_0x8a55b9))return;}if(_0x5699b8['item']['is']('selection'))return void _0x6b2755['consumable']['consume'](_0x5699b8['item'],_0x2236ed['name']);const _0xf0cf54=_0x6b2755['mapper']['toViewElement'](_0x5699b8['item']);if(_0x5699b8['item']['is']('element')&&_0x45ae10['model']['schema']['isBlock'](_0x5699b8['item'])&&!_0xf0cf54['getCustomProperty']('addHighlight')){_0x6b2755['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xf0cf54),_0x6b2755['writer']['setAttribute']('data-suggestion',_0x3bfdef,_0xf0cf54),_0x6b2755['writer']['setAttribute']('data-author-id',_0x1600d4,_0xf0cf54),_0x6b2755['mapper']['bindElementToMarker'](_0xf0cf54,_0x5699b8['markerName']),_0x26e972&&(this['activeMarkers']['includes'](_0x5699b8['markerName'])?_0x6b2755['writer']['addClass']('ck-suggestion-marker--active',_0xf0cf54):_0x6b2755['writer']['removeClass']('ck-suggestion-marker--active',_0xf0cf54));for(const _0x19650a of _0x45ae10['model']['createRangeIn'](_0x5699b8['item'])['getItems']())_0x6b2755['consumable']['consume'](_0x19650a,_0x2236ed['name']);_0x6b2755['consumable']['consume'](_0x5699b8['item'],_0x2236ed['name']);}};_0x45ae10['conversion']['for']('dataDowncast')['add'](_0x2deaa2=>{_0x2deaa2['on']('addMarker:suggestion:formatBlock',(_0x3fe04a,_0x2b3b04,_0x2e165d)=>{_0x2e165d['options']['showSuggestionHighlights']&&_0x151c4b({'showActiveMarkers':!0x1})(_0x3fe04a,_0x2b3b04,_0x2e165d);},{'priority':'highest'});}),_0x45ae10['conversion']['for']('dataDowncast')['add'](_0x27e4d0=>{_0x27e4d0['on']('addMarker:suggestion:attribute',(_0x7b36f5,_0x33a7e5,_0x5434a6)=>{_0x5434a6['options']['showSuggestionHighlights']&&_0x151c4b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x7b36f5,_0x33a7e5,_0x5434a6);},{'priority':'highest'});}),_0x45ae10['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x54fa30,_0x3b1c72)=>_0x3b1c72['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x54fa30['substr'](0xb)}}),_0x45ae10['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59a099,{writer:_0x4f47ad})=>{let _0x1578e8='suggestion:'+_0x59a099['getAttribute']('suggestion-type')+':'+_0x59a099['getAttribute']('id');return _0x59a099['getAttribute']('marker-count')&&(_0x1578e8+=':'+_0x59a099['getAttribute']('marker-count')),_0x4f47ad['createElement']('$marker',{'data-name':_0x1578e8});}}),_0x45ae10['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x2db897=>{_0x2db897['on']('addMarker:suggestion:formatBlock',_0x151c4b(),{'priority':'high'});}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x7e33c=>{_0x7e33c['on']('addMarker:suggestion:attribute',_0x151c4b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x2f89c5=>{_0x2f89c5['on']('removeMarker:suggestion:formatBlock',(_0x457bd4,_0x3e0cf4,_0x56e524)=>{const _0x4137c7=_0x56e524['mapper']['markerNameToElements'](_0x3e0cf4['markerName']);if(_0x4137c7){for(const _0x52e251 of _0x4137c7)_0x52e251['getCustomProperty']('addHighlight')||(_0x56e524['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x52e251),_0x56e524['writer']['removeAttribute']('data-suggestion',_0x52e251),_0x56e524['writer']['removeAttribute']('data-author-id',_0x52e251),_0x56e524['mapper']['unbindElementFromMarkerName'](_0x52e251,_0x3e0cf4['markerName']));}},{'priority':'high'});}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x56d582=>{_0x56d582['on']('removeMarker:suggestion:attribute',(_0x366616,_0x1a38ac,_0x3132b2)=>{const _0x293063=_0x3132b2['mapper']['markerNameToElements'](_0x1a38ac['markerName']);if(!_0x293063)return;const {id:_0x579f7f}=this['_splitMarkerName'](_0x1a38ac['markerName']),_0x39d992=this['_suggestions']['get'](_0x579f7f),_0x5e90ae=this['_getAttributeKey'](_0x39d992);if(this['_isBlockAttribute'](_0x5e90ae)){for(const _0x4d9e5b of _0x293063)_0x4d9e5b['getCustomProperty']('addHighlight')||(_0x3132b2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d9e5b),_0x3132b2['writer']['removeAttribute']('data-suggestion',_0x4d9e5b),_0x3132b2['writer']['removeAttribute']('data-author-id',_0x4d9e5b),_0x3132b2['mapper']['unbindElementFromMarkerName'](_0x4d9e5b,_0x1a38ac['markerName']));}},{'priority':'high'});}),_0x45ae10['model']['document']['registerPostFixer'](_0x382771=>{let _0x4ec51f=!0x1;const _0x1065d7=Array['from'](_0x45ae10['model']['document']['differ']['getChangedMarkers']()),_0x355b09=new Set();for(const {name:_0x147936,data:_0xba7c61}of _0x1065d7){const {group:_0xf4480b,type:_0x14f0a5,subType:_0x3e0753,id:_0x1c0095}=this['_splitMarkerName'](_0x147936);if('suggestion'!==_0xf4480b)continue;const _0x5463cd=this['_suggestions']['get'](_0x1c0095);if(null!=_0xba7c61['newRange']){'formatInline'==_0x14f0a5&&(_0x4ec51f=_0x4ec51f||Lt(_0xba7c61['newRange'],_0x147936,_0x382771,_0x45ae10['model']['schema']));const _0x2a68a9='attribute'==_0x14f0a5&&this['_isBlockAttribute'](_0x3e0753['split']('|')[0x0]);if(_0xba7c61['newRange']['isCollapsed']||'$graveyard'==_0xba7c61['newRange']['root']['rootName']||'formatBlock'==_0x14f0a5&&!Kt(_0xba7c61['newRange'])||_0x2a68a9&&!Kt(_0xba7c61['newRange'])||'deletion'==_0x14f0a5&&!(!Gt(_0x1b0517=_0xba7c61['newRange'])&&!function(_0x1888a8){return _0x1888a8['start']['parent']==_0x1888a8['end']['nodeBefore']&&_0x1888a8['start']['isAtEnd'];}(_0x1b0517)))_0x382771['removeMarker'](_0x147936),_0x4ec51f=!0x0;else{if(!_0x5463cd||!_0x5463cd['isInContent'])continue;if(_0xba7c61['newRange']&&_0xba7c61['oldRange']&&_0xba7c61['newRange']['isEqual'](_0xba7c61['oldRange']))continue;_0x355b09['add'](_0x5463cd);}}}var _0x1b0517;return _0x355b09['size']>0x0&&(_0x4ec51f=!!this['_joinWithAdjacentSuggestions'](_0x355b09)||_0x4ec51f),_0x4ec51f;}),_0x45ae10['model']['document']['registerPostFixer'](_0x28942b=>{let _0x29020e=!0x1;for(const _0x33314 of _0x45ae10['model']['document']['differ']['getChanges']())if('insert'==_0x33314['type'])for(const _0x4f8d97 of this['_suggestions']['values']()){if(_0x4f8d97['isMultiRange']||!_0x4f8d97['isInContent'])continue;const _0x365697='formatBlock'==_0x4f8d97['type'],_0x141452=this['_getAttributeKey'](_0x4f8d97),_0x45df8f=_0x141452&&this['_isBlockAttribute'](_0x141452);if(!_0x365697&&!_0x45df8f)continue;const _0x64bdbc=_0x4f8d97['getFirstRange']();if(_0x64bdbc['start']['parent']!=_0x64bdbc['end']['parent']&&!_0x64bdbc['end']['isAtEnd']){const _0x3579b5=_0x45ae10['model']['createPositionAt'](_0x64bdbc['start']['nodeAfter'],'end'),_0x5b9ee1=_0x45ae10['model']['createRange'](_0x64bdbc['start'],_0x3579b5);_0x28942b['updateMarker'](_0x4f8d97['getFirstMarker'](),{'range':_0x5b9ee1}),_0x29020e=!0x0;}}return _0x29020e;}),_0x45ae10['model']['document']['registerPostFixer'](_0x100e03=>this['_processAttributeChanges'](_0x100e03)),_0x45ae10['model']['document']['registerPostFixer'](_0x1d9c62=>!_0x1d9c62['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1d9c62)),_0x45ae10['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45ae10['model']['document']['on']('change:data',(_0x5b7620,_0x216f70)=>{if(!_0x216f70['isLocal']||_0x216f70['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2daaf3=_0x45ae10['model']['document']['differ']['getChanges']();if(0x0==_0x2daaf3['length'])return;const _0x4033a9=[],_0x2e1873=_0x2daaf3['filter'](_0x4d871c=>'attribute'==_0x4d871c['type']),_0x481984=_0x2daaf3['filter'](_0xdc31e2=>'insert'==_0xdc31e2['type']&&'$text'!=_0xdc31e2['name']);for(const _0x36796b of _0x2e1873)this['_isRegisteredAttribute'](_0x36796b['attributeKey'])&&_0x4033a9['push']({'key':_0x36796b['attributeKey'],'newValue':_0x36796b['attributeNewValue'],'oldValue':_0x36796b['attributeOldValue'],'range':Ht(_0x36796b['range'],_0x45ae10['model'])});for(const _0x49c66b of _0x481984){if('rename'!=_0x49c66b['action']&&'refresh'!=_0x49c66b['action'])continue;const _0x1f582a=qt(_0x49c66b['position']['nodeAfter'],_0x45ae10['model']),_0x59b927=_0x49c66b['before'];'rename'==_0x49c66b['action']&&_0x4033a9['push']({'key':u,'newValue':_0x49c66b['name'],'oldValue':_0x59b927['name'],'range':_0x1f582a});for(const [_0x416b57,_0x3ce870]of _0x59b927['attributes']){if(!this['_isRegisteredAttribute'](_0x416b57))continue;const _0x5da8b0=_0x49c66b['attributes']['get'](_0x416b57);_0x3ce870!==_0x5da8b0&&_0x4033a9['push']({'key':_0x416b57,'newValue':_0x5da8b0,'oldValue':_0x3ce870,'range':_0x1f582a});}for(const [_0x1f2206,_0x4f731e]of _0x49c66b['attributes'])this['_isRegisteredAttribute'](_0x1f2206)&&(_0x59b927['attributes']['has'](_0x1f2206)||_0x4033a9['push']({'key':_0x1f2206,'newValue':_0x4f731e,'oldValue':null,'range':_0x1f582a}));}0x0!=_0x4033a9['length']&&_0x45ae10['model']['enqueueChange'](_0x216f70,_0x6c41ee=>{const _0x4ab63e=_0x2b49b6();for(const {range:_0x2fae14,key:_0x22aff6,oldValue:_0x25bd7d,newValue:_0x38a1e6}of _0x4033a9)this['markAttributeChange'](_0x2fae14,_0x22aff6,_0x25bd7d,_0x38a1e6,{'groupId':_0x4ab63e});this['_reduceExistingSuggestions'](_0x6c41ee,_0x4033a9);});},{'priority':'lowest'}),_0x45ae10['model']['markers']['on']('update:suggestion',(_0x128446,_0x16d4f1,_0x325a9a)=>{if(null==_0x325a9a){const {id:_0x12d85f}=this['_splitMarkerName'](_0x16d4f1['name']),_0x3ebeb0=this['_suggestions']['get'](_0x12d85f);_0x3ebeb0&&_0x3ebeb0['addMarkerName'](_0x16d4f1['name']);}}),_0x45ae10['model']['document']['on']('change:data',()=>{const _0x231c10=Array['from'](_0x45ae10['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4a0233=>'suggestion'===this['_splitMarkerName'](_0x4a0233['name'])['group']);if(0x0===_0x231c10['length'])return;_0x231c10['sort']((_0x3a731c,_0x2a1442)=>{const _0x3f4345=_0x3a731c['data']['oldRange'],_0x4e0b31=_0x2a1442['data']['oldRange'];return null===_0x3f4345&&null===_0x4e0b31?0x0:null===_0x3f4345&&null!==_0x4e0b31?-0x1:null!==_0x3f4345&&null===_0x4e0b31?0x1:_0x3f4345['start']['isBefore'](_0x4e0b31['start'])?-0x1:0x1;});const _0x2f1445=new Set(),_0x2ba70b=new Set();for(const {name:_0x648c64,data:_0x9659c7}of _0x231c10){const {id:_0x1e9962}=this['_splitMarkerName'](_0x648c64);if(null===_0x9659c7['oldRange']){const _0x21ab42=this['_handleNewSuggestionMarker'](_0x648c64);_0x2ba70b['add'](_0x21ab42);}else{const _0x49bb2b=this['_suggestions']['get'](_0x1e9962);null!==_0x9659c7['newRange']||_0x49bb2b['isInContent']?(_0x2f1445['add'](_0x49bb2b['head']),_0x2ba70b['add'](_0x49bb2b)):this['_removeSuggestion'](_0x49bb2b);}}_0x2ba70b['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ba70b);for(const _0x491c86 of _0x2f1445)this['fire']('suggestionChanged',_0x491c86);}),_0x45ae10['model']['on']('applyOperation',(_0x5f6608,_0xb557e5)=>{const _0x10e8b0=_0xb557e5[0x0];if(!this['_suggestions']['size'])return;if(!_0x10e8b0['isDocumentOperation'])return;if(_0x10e8b0['batch']['isUndo']||!_0x10e8b0['batch']['isLocal'])return;let _0x5ef812,_0x26a680;switch(_0x10e8b0['type']){case'insert':_0x5ef812=_0x45ae10['model']['createPositionAt'](_0x10e8b0['position']),_0x26a680=_0x5ef812['getShiftedBy'](_0x10e8b0['howMany']);break;case'split':_0x5ef812=_0x45ae10['model']['createPositionAt'](_0x10e8b0['splitPosition']),_0x26a680=_0x45ae10['model']['createPositionAt'](_0x10e8b0['moveTargetPosition']);break;case'move':_0x5ef812=_0x45ae10['model']['createPositionAt'](_0x10e8b0['targetPosition']),_0x26a680=_0x5ef812['getShiftedBy'](_0x10e8b0['howMany']);break;default:return;}const _0x23d075=_0x45ae10['model']['createRange'](_0x5ef812,_0x26a680);_0x45ae10['model']['change'](()=>{for(const {suggestion:_0x167fbc,meta:_0x257f5f}of this['_findSuggestions'](_0x23d075)){if(_0x167fbc['isMultiRange'])continue;if('formatInline'==_0x167fbc['type'])continue;const _0x4655de=this['_getAttributeKey'](_0x167fbc);if(_0x4655de&&this['_isBlockAttribute'](_0x4655de)&&'split'!=_0x10e8b0['type'])continue;const _0x448500=_0x167fbc['data']&&_0x167fbc['data']['multipleBlocks'];('formatBlock'!=_0x167fbc['type']||'split'==_0x10e8b0['type']&&!_0x448500)&&(_0x257f5f['containsRangeInObject']||'insertion'==_0x167fbc['type']&&_0x257f5f['isOwn']||_0x167fbc['getFirstRange']()['containsRange'](_0x23d075)&&this['_breakSuggestionMarker'](_0x167fbc,_0x5ef812,_0x26a680));}});},{'priority':'lowest'}),_0x45ae10['model']['on']('deleteContent',(_0x2ddfb1,_0x2def32)=>{const _0x269429=_0x2def32[0x0],_0x54fa49=_0x2def32[0x1];if(_0x54fa49&&_0x54fa49['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x269429['isCollapsed'])return;const _0x2369ff=_0x45ae10['model']['schema'],{start:_0x223c46,end:_0xc357bb}=_0x269429['getFirstRange'](),_0xfe066a=_0x223c46['nodeAfter']&&_0x2369ff['isLimit'](_0x223c46['nodeAfter'])?null:_0x2369ff['getNearestSelectionRange'](_0x223c46,'forward'),_0xf66cd0=_0xc357bb['nodeBefore']&&_0x2369ff['isLimit'](_0xc357bb['nodeBefore'])?null:_0x2369ff['getNearestSelectionRange'](_0xc357bb,'backward'),_0x473a78=_0x45ae10['model']['createRange'](_0xfe066a?_0xfe066a['start']:_0x223c46,_0xf66cd0?_0xf66cd0['end']:_0xc357bb);_0x45ae10['model']['change'](_0x5afa36=>{this['markDeletion'](_0x473a78);const _0x281943=_0x45ae10['model']['schema']['getNearestSelectionRange'](_0x473a78['start']);_0x269429['is']('documentSelection')?_0x5afa36['setSelection'](_0x281943):_0x269429['setTo'](_0x281943);}),_0x2ddfb1['stop']();},{'priority':_0x4d0204['normal']+0xa}),_0x45ae10['model']['on']('insertContent',(_0x5b0907,_0x26bf29)=>{const _0x533aa8=_0x26bf29[_0x26bf29['length']-0x1];_0x533aa8&&_0x533aa8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45ae10['model']['change'](()=>{let _0x3bec3c=_0x45ae10['model']['insertContent'](_0x26bf29[0x0],_0x26bf29[0x1],_0x26bf29[0x2],{'forceDefaultExecution':!0x0});if(!_0x3bec3c)return;_0x5b0907['return']=_0x3bec3c['clone']();const _0x4264d6=_0x3bec3c['end']['nodeBefore'],_0x394d51=_0x45ae10['model']['schema'];_0x4264d6&&_0x394d51['isBlock'](_0x4264d6)&&!_0x394d51['isObject'](_0x4264d6)&&(_0x3bec3c=_0x45ae10['model']['createRange'](_0x3bec3c['start'],_0x45ae10['model']['createPositionAt'](_0x4264d6,'end'))),this['markInsertion'](_0x3bec3c);}),_0x5b0907['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3880ce=new O(_0x45ae10,this['_suggestions']);_0x45ae10['commands']['add']('acceptSuggestion',_0x3880ce),this['enableCommand']('acceptSuggestion');const _0x497324=new R(_0x45ae10,this['_suggestions']);_0x45ae10['commands']['add']('discardSuggestion',_0x497324),this['enableCommand']('discardSuggestion'),_0x45ae10['commands']['add']('acceptAllSuggestions',new x(_0x45ae10,_0x3880ce,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45ae10['commands']['add']('discardAllSuggestions',new x(_0x45ae10,_0x497324,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45ae10['commands']['add']('acceptSelectedSuggestions',new E(_0x45ae10,_0x3880ce,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45ae10['commands']['add']('discardSelectedSuggestions',new E(_0x45ae10,_0x497324,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2dfef2=_0x45ae10['plugins']['get']('CommentsRepository');this['listenTo'](_0x2dfef2,'addComment',(_0x26a9b4,{threadId:_0x3b8d83})=>{const _0xc892e9=this['_suggestions']['get'](_0x3b8d83);_0xc892e9&&_0xc892e9['commentThread']&&0x1===_0xc892e9['commentThread']['length']&&this['_updateSuggestionData'](_0x3b8d83,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2dfef2,'removeComment',(_0x59d334,{threadId:_0x628654})=>{const _0x24050b=this['_suggestions']['get'](_0x628654);_0x24050b&&_0x24050b['commentThread']&&!_0x24050b['commentThread']['length']&&this['_updateSuggestionData'](_0x628654,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3b455b){const _0x5d12ea=_0x280578([0x67,0x69,0x7a,0x5a,0x70,0x59,0x57,0x31,0x66,0x75,0x36,0x64,0x6a,0x39,0x72,0x6e,0x65,0x56,0x77,0x48,0x46,0x4e,0x41,0x50,0x62,0x33,0x78,0x6f,0x30,0x49,0x61,0x4f,0x6c,0x74,0x71,0x32,0x73,0x4c,0x63,0x6b,0x4b,0x42,0x44,0x45,0x53,0x58,0x34,0x76,0x54,0x47,0x4a,0x38,0x6d,0x35,0x51,0x55,0x37,0x79,0x52,0x4d,0x68,0x43]),_0x23a79b=0x54c6a3ed,_0x5e77e9=0x54c1c18d^_0x23a79b,_0x4c505c=window[_0x280578([0x44,0x61,0x74,0x65])][_0x280578([0x6e,0x6f,0x77])](),_0x74dd7b=_0x3b455b[_0x280578([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3783b8=new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491da2=>{_0x74dd7b[_0x280578([0x6f,0x6e,0x63,0x65])](_0x280578([0x72,0x65,0x61,0x64,0x79]),_0x491da2);}),_0x1b908d={[_0x280578([0x6b,0x74,0x79])]:_0x280578([0x45,0x43]),[_0x280578([0x75,0x73,0x65])]:_0x280578([0x73,0x69,0x67]),[_0x280578([0x63,0x72,0x76])]:_0x280578([0x50,0x2d,0x32,0x35,0x36]),[_0x280578([0x78])]:_0x280578([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]),[_0x280578([0x79])]:_0x280578([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]),[_0x280578([0x61,0x6c,0x67])]:_0x280578([0x45,0x53,0x32,0x35,0x36])},_0x49f32c=_0x74dd7b[_0x280578([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x280578([0x67,0x65,0x74])](_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bbeca(){let _0x142ba1,_0x56fcc4=null,_0x31a07a=null;try{if(_0x49f32c==_0x280578([0x47,0x50,0x4c]))return _0x280578([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x142ba1=_0x409ff0(),!_0x142ba1)return _0x280578([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x142ba1[_0x280578([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31a07a=_0x3c6ef0(_0x142ba1[_0x280578([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x142ba1[_0x280578([0x6a,0x74,0x69])])),await _0xc664ff()?_0x662991()?_0x216912()?_0x280578([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x524f8e()?(_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x280578([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56fcc4=_0x3fc7ea(_0x280578([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x280578([0x74,0x72,0x69,0x61,0x6c])&&(_0x56fcc4=_0x3fc7ea(_0x280578([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20f362()):_0x280578([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x280578([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x280578([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1322f1){return _0x280578([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x216912(){const _0x49bbf5=[_0x280578([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x280578([0x74,0x72,0x69,0x61,0x6c])][_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c505c/0x3e8:0xe10*_0x5e77e9;return _0x142ba1[_0x280578([0x65,0x78,0x70])]<_0x49bbf5;}function _0x662991(){const _0xafc2fc=_0x142ba1[_0x280578([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xafc2fc)return!0x1;if(_0xafc2fc[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x2a])))return!0x0;if(_0xafc2fc[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x54,0x43])))return!0x0;if(_0xafc2fc[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x52,0x54,0x43]))){if(_0x3efdfd())return!0x0;if(_0x6bd50a()||_0x10e160())return!0x0;}return!0x1;}function _0x524f8e(){const _0x27da52=_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27da52||0x0==_0x27da52[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b62ad}=new URL(window[_0x280578([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27da52[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b62ad))return!0x0;const _0x53064e=_0x1b62ad[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e]));return _0x27da52[_0x280578([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x484be7=>_0x484be7[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x2a])))[_0x280578([0x6d,0x61,0x70])](_0x1af4e6=>_0x1af4e6[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e])))[_0x280578([0x73,0x6f,0x6d,0x65])](_0x2bad47=>_0x53064e[_0x280578([0x65,0x76,0x65,0x72,0x79])]((_0xbe575,_0x351751)=>_0x2bad47[_0x351751]===_0xbe575||_0x2bad47[_0x351751]===_0x280578([0x2a])));}function _0x20f362(){return _0x56fcc4&&_0x31a07a?new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2900f2,_0x333708)=>{_0x56fcc4[_0x280578([0x74,0x68,0x65,0x6e])](_0x2900f2,_0x333708),_0x31a07a[_0x280578([0x74,0x68,0x65,0x6e])](_0x21b626=>{_0x21b626!=_0x280578([0x56,0x61,0x6c,0x69,0x64])&&_0x2900f2(_0x21b626);},_0x333708);}):_0x56fcc4||_0x31a07a||_0x280578([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c6ef0(_0x426d8d,_0x21be5d){return new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d761a=>{if(_0x8e3e0d())return _0x5d761a(_0x280578([0x56,0x61,0x6c,0x69,0x64]));_0x5ba4ee(),_0x74dd7b[_0x280578([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x280578([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x653c34=!0x1;const _0x431867=_0x2b49b6();function _0x3fb65d(_0x4fdb6f){return!!_0x4fdb6f&&(typeof _0x4fdb6f===_0x280578([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fdb6f===_0x280578([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fdb6f[_0x280578([0x74,0x68,0x65,0x6e])]===_0x280578([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fdb6f[_0x280578([0x63,0x61,0x74,0x63,0x68])]===_0x280578([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x532971(_0x515ed3){_0x2e26df(_0x515ed3)[_0x280578([0x74,0x68,0x65,0x6e])](_0x25f6fe=>{if(!_0x25f6fe||_0x25f6fe[_0x280578([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x280578([0x6f,0x6b]))return _0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ffa22(_0x1186c7(_0x431867+_0x21be5d))!=_0x25f6fe[_0x280578([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x280578([0x56,0x61,0x6c,0x69,0x64]);})[_0x280578([0x74,0x68,0x65,0x6e])](_0x194935=>(_0x2b023a(),_0x194935),()=>{const _0x1bd32e=_0x14ae75();return null==_0x1bd32e?(_0x2b023a(),_0x280578([0x56,0x61,0x6c,0x69,0x64])):_0x280578(_0x4c505c-_0x1bd32e>(0x70ca27ed^_0x23a79b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x280578([0x74,0x68,0x65,0x6e])](_0x5d761a)[_0x280578([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d761a(_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c2257=0x54f04d6d^_0x23a79b;function _0x2b023a(){const _0x79da9=_0x280578([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffa22(_0x1186c7(_0x426d8d)),_0x2f38bd=_0x99de93(_0x4ffa22(window[_0x280578([0x4d,0x61,0x74,0x68])][_0x280578([0x63,0x65,0x69,0x6c])](_0x4c505c/_0x2c2257)));window[_0x280578([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x280578([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x79da9,_0x2f38bd);}function _0x14ae75(){const _0x1b4b3d=_0x280578([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffa22(_0x1186c7(_0x426d8d)),_0x2c1075=window[_0x280578([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x280578([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b4b3d);return _0x2c1075?window[_0x280578([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x99de93(_0x2c1075),0x10)*_0x2c2257:null;}function _0x2e26df(_0x57388e){return new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1496d1,_0x565c0a)=>{_0x57388e[_0x280578([0x74,0x68,0x65,0x6e])](_0x1496d1,_0x565c0a),window[_0x280578([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x565c0a,0x54c7772d^_0x23a79b);});}}_0x74dd7b[_0x280578([0x6f,0x6e])](_0x280578([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b463,_0x500b3a)=>{if(_0x500b3a[0x0]!=_0x426d8d)return _0x5d761a(_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x500b3a[0x1]={..._0x500b3a[0x1],[_0x280578([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x431867};},{[_0x280578([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x280578([0x68,0x69,0x67,0x68])}),_0x74dd7b[_0x280578([0x6f,0x6e])](_0x280578([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bbe5e=>{_0x3fb65d(_0x3bbe5e[_0x280578([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x653c34=!0x0,_0x532971(_0x3bbe5e[_0x280578([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x280578([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x280578([0x6c,0x6f,0x77])}),_0x3783b8[_0x280578([0x74,0x68,0x65,0x6e])](()=>{_0x653c34||_0x5d761a(_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8e3e0d(){return _0x74dd7b[_0x280578([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x280578([0x76,0x69,0x65,0x77])][_0x280578([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x280578([0x61,0x75,0x74,0x6f]);}function _0x5ba4ee(){_0x74dd7b[_0x280578([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x280578([0x76,0x69,0x65,0x77])][_0x280578([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x280578([0x61,0x75,0x74,0x6f]);}}function _0x3fc7ea(_0x4cf8a4){const _0x4dfc5f=[new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x438857=>setTimeout(_0x438857,0x54cf9d21^_0x23a79b)),_0x3783b8[_0x280578([0x74,0x68,0x65,0x6e])](()=>new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1252d5=>{let _0xce8095=0x0;_0x74dd7b[_0x280578([0x6d,0x6f,0x64,0x65,0x6c])][_0x280578([0x6f,0x6e])](_0x280578([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41b9fc,_0x2c5c8f)=>{_0x2c5c8f[0x0][_0x280578([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xce8095++,_0xce8095==(0x54c6a215^_0x23a79b)&&(_0x1252d5(),_0x41b9fc[_0x280578([0x6f,0x66,0x66])]());});}))];return window[_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x280578([0x72,0x61,0x63,0x65])](_0x4dfc5f)[_0x280578([0x74,0x68,0x65,0x6e])](()=>_0x4cf8a4);}async function _0x3b5fe5(){await _0x3783b8,_0x74dd7b[_0x280578([0x6d,0x6f,0x64,0x65,0x6c])][_0x280578([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25e647,_0x74dd7b[_0x280578([0x6d,0x6f,0x64,0x65,0x6c])][_0x280578([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25e647,_0x74dd7b[_0x280578([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x280578([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3efdfd(){return _0xa76ce1(_0x280578([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5efc92(_0x280578([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x280578([0x73,0x74,0x61,0x74,0x65])]==_0x280578([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x6bd50a(){return _0xa76ce1(_0x280578([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 _0x10e160(){return _0xa76ce1(_0x280578([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x57059b(_0x2caf35){const _0x283b5e=_0x40cedc();_0x74dd7b[_0x283b5e]=_0x280578([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2caf35,_0x2caf35!=_0x280578([0x56,0x61,0x6c,0x69,0x64])&&_0x3b5fe5();}function _0x40cedc(){const _0x51d3a9=window[_0x280578([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x280578([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x280578([0x6e,0x6f,0x77])]())[_0x280578([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x280578([0x2e]),'');let _0x2d5a44=_0x280578([0x67]);for(let _0x554be7=0x0;_0x554be7<_0x51d3a9[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x554be7+=0x2){let _0xf39620=window[_0x280578([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51d3a9[_0x280578([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x554be7,_0x554be7+0x2));_0xf39620>=_0x5d12ea[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf39620-=_0x5d12ea[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d5a44+=_0x5d12ea[_0xf39620];}return _0x2d5a44;}function _0x409ff0(){const _0x2b157b=_0x49f32c[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e]));if(0x3!=_0x2b157b[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x210215(_0x2b157b[0x1]);function _0x210215(_0x3cf6d7){const _0x1f36b8=_0x37b59f(_0x3cf6d7);return _0x1f36b8&&_0x19ef1f()?_0x1f36b8:null;function _0x19ef1f(){const _0x4322bc=_0x1f36b8[_0x280578([0x6a,0x74,0x69])],_0x41db53=window[_0x280578([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4322bc[_0x280578([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4322bc[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bfa45={..._0x1f36b8,[_0x280578([0x6a,0x74,0x69])]:_0x4322bc[_0x280578([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4322bc[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bfa45[_0x280578([0x76,0x63])],_0x1186c7(_0x3bfa45)==_0x41db53;}}}async function _0xc664ff(){let _0x5d2143=!0x0;try{const _0xd07ec8=_0x49f32c[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e])),[_0x4079bc,_0x5ce094,_0x246f3d]=_0xd07ec8;return _0x1e94ce(_0x4079bc),await _0x16512a(_0x4079bc,_0x5ce094,_0x246f3d),_0x5d2143;}catch(_0x5574e1){return!0x1;}function _0x1e94ce(_0x33bd03){const _0x536bac=_0x37b59f(_0x33bd03);_0x536bac&&_0x536bac[_0x280578([0x61,0x6c,0x67])]==_0x280578([0x45,0x53,0x32,0x35,0x36])||(_0x5d2143=!0x1);}async function _0x16512a(_0x5c704a,_0x7b5ef2,_0x145f14){const _0x41eab5=window[_0x280578([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x280578([0x66,0x72,0x6f,0x6d])](_0xbc5877(_0x145f14),_0x398680=>_0x398680[_0x280578([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42757a=new window[(_0x280578([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x280578([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c704a+_0x280578([0x2e])+_0x7b5ef2),_0x32cc61=window[_0x280578([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x280578([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32cc61)return;const _0x4fa07d=await _0x32cc61[_0x280578([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x280578([0x6a,0x77,0x6b]),_0x1b908d,{[_0x280578([0x6e,0x61,0x6d,0x65])]:_0x280578([0x45,0x43,0x44,0x53,0x41]),[_0x280578([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x280578([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x280578([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32cc61[_0x280578([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x280578([0x6e,0x61,0x6d,0x65])]:_0x280578([0x45,0x43,0x44,0x53,0x41]),[_0x280578([0x68,0x61,0x73,0x68])]:{[_0x280578([0x6e,0x61,0x6d,0x65])]:_0x280578([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fa07d,_0x41eab5,_0x42757a)||(_0x5d2143=!0x1);}}function _0x37b59f(_0x29d965){return _0x29d965[_0x280578([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x280578([0x65,0x79]))?JSON[_0x280578([0x70,0x61,0x72,0x73,0x65])](_0xbc5877(_0x29d965)):null;}function _0xbc5877(_0x37cec8){return window[_0x280578([0x61,0x74,0x6f,0x62])](_0x37cec8[_0x280578([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x280578([0x2b]))[_0x280578([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x280578([0x2f])));}function _0x1186c7(_0x2bf890){let _0x2128b2=0x1505;function _0x45e56c(_0x450371){for(let _0x5589a4=0x0;_0x5589a4<_0x450371[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5589a4++){const _0x985e38=_0x450371[_0x280578([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5589a4);_0x2128b2=(_0x2128b2<<0x5)+_0x2128b2+_0x985e38,_0x2128b2&=_0x2128b2;}}function _0x48d196(_0x556cce){Array[_0x280578([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x556cce)?_0x556cce[_0x280578([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48d196):_0x556cce&&typeof _0x556cce==_0x280578([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x280578([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x556cce)[_0x280578([0x73,0x6f,0x72,0x74])]()[_0x280578([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x391894,_0x669dae])=>{_0x45e56c(_0x391894),_0x48d196(_0x669dae);}):_0x45e56c(window[_0x280578([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x556cce));}return _0x48d196(_0x2bf890),_0x2128b2>>>0x0;}function _0x4ffa22(_0x480a63){return _0x480a63[_0x280578([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x280578([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x280578([0x30]));}function _0x99de93(_0x5f489f){return _0x5f489f[_0x280578([0x73,0x70,0x6c,0x69,0x74])]('')[_0x280578([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x280578([0x6a,0x6f,0x69,0x6e])]('');}function _0xa76ce1(_0x1c4fab){return _0x74dd7b[_0x280578([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x280578([0x68,0x61,0x73])](_0x1c4fab);}function _0x5efc92(_0x6f53b4){return _0x74dd7b[_0x280578([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x280578([0x67,0x65,0x74])](_0x6f53b4);}function _0x25e647(){}function _0x280578(_0xe0fdca){return _0xe0fdca['map'](_0x53f279=>String['fromCharCode'](_0x53f279))['join']('');}_0x57059b(await _0x2bbeca());}(this);}set['adapter'](_0x211b73){if(this['_adapter'])throw new _0x52489f('track-changes-adapter-already-set',this);this['_adapter']=_0x211b73;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1fb80f=!0x1,toJSON:_0x1a1096=!0x1}={}){const _0x4676b0=[];for(const _0x26e097 of this['_suggestions']['values']())_0x1fb80f&&!_0x26e097['isInContent']||_0x4676b0['push'](_0x26e097);return _0x1a1096?_0x4676b0['map'](_0x3e6902=>_0x3e6902['toJSON']()):_0x4676b0;}['getSuggestion'](_0x2037d6){const _0xcbb46a=this['_suggestions']['get'](_0x2037d6);if(!_0xcbb46a)throw new _0x52489f('track-changes-suggestion-not-found',this);return _0xcbb46a;}['hasSuggestion'](_0x4bb610){return this['_suggestions']['has'](_0x4bb610);}['addSuggestionData'](_0x3db98b){const {authorId:_0x1e03a1,id:_0x506ec7,attributes:_0x57caae}=_0x3db98b,[_0x8d8dda,_0x418202]=_0x3db98b['type']['split'](':'),_0x35df81=this['_suggestions']['get'](_0x506ec7)||this['_createSuggestion'](_0x8d8dda,_0x418202,_0x506ec7,_0x1e03a1,_0x57caae);if(this['_addThreadToSuggestion'](_0x35df81),this['_checkSuggestionCorrectness'](_0x35df81,_0x8d8dda,_0x418202||null,_0x1e03a1),_0x35df81['createdAt']=_0x3db98b['createdAt'],_0x35df81['_isDataLoaded']=!0x0,_0x57caae&&_0x57caae['@external']){const _0xb9a8=_0x57caae['@external'],_0x4a9b1d=this['_getExternalAuthor'](_0xb9a8['authorName']);_0x35df81['authoredAt']=_0xb9a8['createdAt'],_0x35df81['author']=_0x4a9b1d,_0x35df81['isExternal']=!0x0;}else _0x35df81['authoredAt']=_0x3db98b['createdAt'];switch(_0x3db98b['data']&&(_0x35df81['data']=_0x3db98b['data']),_0x3db98b['attributes']&&(_0x35df81['attributes']=_0x3db98b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x35df81['_saved']=!0x0),this['_suggestionState']['get'](_0x35df81)){case'notReady':this['_suggestionState']['set'](_0x35df81,'dataReady');break;case'markerReady':_0x35df81['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x35df81])),this['_refreshSuggestionsChain'](new Set([_0x35df81])),this['_suggestionState']['set'](_0x35df81,'ready'),this['fire']('suggestionLoaded',_0x35df81)):this['_suggestionState']['set'](_0x35df81,'removed');}return _0x35df81;}['acceptSuggestion'](_0x3ef464){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d9eb0 of _0x3ef464['getAllAdjacentSuggestions']())_0x5d9eb0['accept']();});});}['discardSuggestion'](_0x37696a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e7aa0 of _0x37696a['getAllAdjacentSuggestions']())_0x1e7aa0['discard']();});});}['enableCommand'](_0x4514b6,_0x17cde2){const _0x202114=this['editor']['commands']['get'](_0x4514b6);if(!_0x202114)throw new _0x52489f('track-changes-command-not-found',this,{'commandName':_0x4514b6});if(this['_enabledCommands']['has'](_0x202114))throw new _0x52489f('track-changes-enable-command-twice',this,{'commandName':_0x4514b6});this['_enabledCommands']['add'](_0x202114),_0x17cde2&&_0x202114['on']('execute',(_0x325c20,_0x26a4e3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26a4e3['length']>0x0&&_0x26a4e3[_0x26a4e3['length']-0x1]&&_0x26a4e3[_0x26a4e3['length']-0x1]['forceDefaultExecution']?_0x26a4e3['pop']():(_0x325c20['return']=_0x17cde2((..._0x55687f)=>_0x202114['execute'](..._0x55687f,{'forceDefaultExecution':!0x0}),..._0x26a4e3),_0x325c20['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x94ed30){let _0x351b26,_0x6546c3;const _0x28dd88=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x351b26=_0x94ed30();}catch(_0x1095c6){_0x6546c3=_0x1095c6;}return _0x28dd88||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x6546c3&&_0x52489f['rethrowUnexpectedError'](_0x6546c3,this),_0x351b26;}['markInsertion'](_0xee67e1,_0x45869d=null,_0x50c66e={}){if(_0xee67e1['isCollapsed'])return null;const _0xa49539=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x9067f5,meta:_0x4b585b}of this['_findSuggestions'](_0xee67e1,'insertion'))if(_0x4b585b['isOwn']){if(!_0x4b585b['isNextTo']){if(_0x4b585b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x9067f5,_0x50c66e))continue;return _0x9067f5;}if(Qt(_0x9067f5,_0x50c66e))return _0x9067f5;this['_breakSuggestionMarker'](_0x9067f5,_0xee67e1['start'],_0xee67e1['end']);break;}if(_0x45869d==_0x9067f5['subType']&&Qt(_0x9067f5,_0x50c66e)){const _0x4dc401=_0x9067f5['getFirstRange']();return _0x4dc401['start']['isEqual'](_0xee67e1['end'])?this['_setSuggestionRange'](_0x9067f5,this['_model']['createRange'](_0xee67e1['start'],_0x4dc401['end'])):this['_setSuggestionRange'](_0x9067f5,this['_model']['createRange'](_0x4dc401['start'],_0xee67e1['end'])),_0x9067f5;}}const _0x135649=_0x2b49b6(),_0x2df0fb=_0xa49539['id'],_0x3edfdb=_0x45869d?'insertion:'+_0x45869d:'insertion',_0x497481=this['_setSuggestionData']({'id':_0x135649,'type':_0x3edfdb,'createdAt':new Date(),'authorId':_0x2df0fb,'attributes':_0x50c66e});return this['_addSuggestionMarker'](_0x3edfdb,_0x135649,_0x2df0fb,_0xee67e1),_0x497481;}['markMultiRangeInsertion'](_0x436caa,_0x1c4ca0='multi',_0x37d78e={}){const _0x102148=this['editor']['plugins']['get']('Users')['me'],_0x440bff=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c4ca0,'join');for(const _0x5a0bea of this['getSuggestions']())if(_0x5a0bea['author']['id']==_0x102148['id']&&'insertion'==_0x5a0bea['type']&&_0x5a0bea['subType']==_0x1c4ca0&&Qt(_0x5a0bea,_0x37d78e)&&(_0x440bff(_0x5a0bea['getRanges'](),_0x436caa)||_0x440bff(_0x436caa,_0x5a0bea['getRanges']()))){for(const _0x52e444 of _0x436caa)_0x5a0bea['addRange'](_0x52e444);return _0x5a0bea;}for(const {suggestion:_0x57c266,meta:_0x5474f5}of this['_findSuggestions'](_0x436caa,'insertion')){if(!_0x5474f5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5474f5['containsRangeInObject'])continue;if(!Qt(_0x57c266,_0x37d78e))continue;let _0x13dc69=!0x0;for(const _0x527bc5 of _0x57c266['getRanges']())for(const _0x2a833c of _0x436caa)if(!_0x527bc5['containsRange'](_0x2a833c)){_0x13dc69=!0x1;break;}if(_0x13dc69)return _0x57c266;}const _0x24ca9e=_0x2b49b6(),_0x308dfa=_0x102148['id'],_0x716e84='insertion:'+_0x1c4ca0,_0x1585bc=this['_setSuggestionData']({'id':_0x24ca9e,'type':_0x716e84,'createdAt':new Date(),'authorId':_0x308dfa,'attributes':_0x37d78e});for(const _0x130de7 of _0x436caa)this['_addSuggestionMarker'](_0x716e84,_0x24ca9e,_0x308dfa,_0x130de7,o['getMultiRangeId']());return _0x1585bc;}['markInlineFormat'](_0x78c8,_0x4d3de4,_0x1187a2=null,_0x5ea1f8={}){if(_0x1187a2=_0x1187a2||Jt(_0x4d3de4),_0x78c8['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x530a24=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1187a2,'accept');return this['forceDefaultExecution'](()=>_0x530a24([_0x78c8],_0x4d3de4,_0x5ea1f8)),null;}const _0x2319fa=this['editor']['plugins']['get']('Users')['me'],_0x38488e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xbf24e7,meta:_0x1eca1d}of this['_findSuggestions'](_0x78c8,'insertion'))_0x1eca1d['isOwn']&&!_0x1eca1d['isInsideObject']&&_0x38488e['push'](..._0xbf24e7['getRanges']());}const _0x3a578f=function(_0x475f39,_0x528924){const _0x1af0ed=[];for(const _0x310962 of _0x528924){const _0x579ec9=_0x475f39['getIntersection'](_0x310962);_0x579ec9&&_0x1af0ed['push'](_0x579ec9);}return _0x1af0ed;}(_0x78c8,_0x38488e),_0x105335=function(_0x4f0e12,_0x174cf8){const _0x2601d8=[_0x4f0e12];for(const _0x5e06dc of _0x174cf8){let _0x33388d=0x0;for(;_0x33388d<_0x2601d8['length'];){const _0x31bd32=_0x2601d8[_0x33388d]['getDifference'](_0x5e06dc);_0x2601d8['splice'](_0x33388d,0x1,..._0x31bd32),_0x33388d+=_0x31bd32['length'];}}return _0x2601d8;}(_0x78c8,_0x38488e);_0x3a578f['length']&&this['_model']['change'](()=>{for(const _0x5d96e0 of _0x3a578f){const _0x5b1f45=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1187a2,'accept');this['forceDefaultExecution'](()=>_0x5b1f45([_0x5d96e0],_0x4d3de4,_0x5ea1f8));}});for(const _0xe6133f of _0x105335){let _0x49b8f3=null,_0x59f8cf=_0xe6133f['start'],_0x550ebb=_0xe6133f['end'];for(const {suggestion:_0x550235,meta:_0x55fa40}of this['_findSuggestions'](_0xe6133f,'formatInline')){if(!_0x55fa40['isOwn'])continue;if(_0x550235['subType']!=_0x1187a2)continue;if(!Qt(_0x550235,_0x5ea1f8))continue;const _0x4146c=_0x550235['getFirstRange']();if(_0x4146c['containsRange'](_0xe6133f,!0x0))return null;_0x59f8cf=_0x59f8cf['isBefore'](_0x4146c['start'])?_0x59f8cf:_0x4146c['start'],_0x550ebb=_0x550ebb['isAfter'](_0x4146c['end'])?_0x550ebb:_0x4146c['end'],_0x49b8f3?_0x4146c['start']['isBefore'](_0x49b8f3['getFirstRange']()['start'])?(_0x49b8f3['removeMarkers'](),_0x49b8f3=_0x550235):_0x550235['removeMarkers']():_0x49b8f3=_0x550235;}const _0x46c36c=this['_model']['createRange'](_0x59f8cf,_0x550ebb);if(_0x49b8f3)this['_setSuggestionRange'](_0x49b8f3,_0x46c36c);else{const _0xdbb2d8=_0x2b49b6(),_0x559e78=_0x2319fa['id'];this['_setSuggestionData']({'id':_0xdbb2d8,'type':'formatInline:'+_0x1187a2,'data':_0x4d3de4,'createdAt':new Date(),'authorId':_0x559e78,'attributes':_0x5ea1f8}),this['_addSuggestionMarker']('formatInline:'+_0x1187a2,_0xdbb2d8,_0x559e78,_0x46c36c);}}return null;}['markBlockFormat'](_0x45cba3,_0x58b94e,_0x357590=[],_0x2ba339=null,_0x1f7fe1={}){_0x58b94e['formatGroupId']||(_0x58b94e['formatGroupId']=_0x58b94e['commandName']),_0x58b94e['multipleBlocks']=_0x45cba3['is']('range'),_0x2ba339=_0x2ba339||Jt(_0x58b94e);const _0x4fb058=_0x357590['map'](_0x1b89fc=>qt(_0x1b89fc,this['_model'])),_0x50520e=_0x45cba3['is']('range')?_0x45cba3:qt(_0x45cba3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3a38b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba339,'accept');return this['forceDefaultExecution'](()=>_0x3a38b5([_0x50520e],_0x58b94e,_0x1f7fe1)),null;}_0x4fb058['push'](_0x50520e);let _0x335622=!0x0;for(const _0x4e58d0 of _0x4fb058)if(!this['_rangeIsInLocalUserInsertion'](_0x4e58d0)){_0x335622=!0x1;break;}if(_0x335622&&'always'!==this['_trackFormatChanges']){const _0x317c4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba339,'accept');return this['forceDefaultExecution'](()=>_0x317c4b([_0x50520e],_0x58b94e,_0x1f7fe1)),null;}let _0x4b3120=null,_0x32247a=_0x50520e['start'],_0x2e07c1=_0x50520e['end'];for(const {suggestion:_0x199c3d,meta:_0x5ec7c6}of this['_findSuggestions'](_0x50520e,'formatBlock')){if(!_0x5ec7c6['isOwn'])continue;if(_0x5ec7c6['isNextTo']||_0x5ec7c6['containsRangeInObject']||_0x5ec7c6['isInsideObject'])continue;if(_0x199c3d['data']['formatGroupId']!=_0x58b94e['formatGroupId'])continue;if(!Qt(_0x199c3d,_0x1f7fe1))continue;const _0x5de499=_0x199c3d['getFirstRange']();if(_0x199c3d['subType']==_0x2ba339){if(_0x5de499['containsRange'](_0x50520e,!0x0))return null;_0x32247a=_0x32247a['isBefore'](_0x5de499['start'])?_0x32247a:_0x5de499['start'],_0x2e07c1=_0x2e07c1['isAfter'](_0x5de499['end'])?_0x2e07c1:_0x5de499['end'],_0x4b3120?_0x5de499['start']['isBefore'](_0x4b3120['getFirstRange']()['start'])?(_0x4b3120['removeMarkers'](),_0x4b3120=_0x199c3d):_0x199c3d['removeMarkers']():_0x4b3120=_0x199c3d;}else{const _0x49b512=_0x50520e['getIntersection'](_0x5de499);this['_cutOutSuggestionMarker'](_0x199c3d,_0x49b512);}}const _0x5c4b1d=this['editor']['plugins']['get']('Users')['me'],_0x117421=_0x2b49b6(),_0x46e660=_0x5c4b1d['id'];if(_0x4b3120)return this['_setSuggestionRange'](_0x4b3120,this['_model']['createRange'](_0x32247a,_0x2e07c1)),_0x4b3120;{const _0x193e28=this['_setSuggestionData']({'id':_0x117421,'type':'formatBlock:'+_0x2ba339,'data':_0x58b94e,'createdAt':new Date(),'authorId':_0x46e660,'attributes':_0x1f7fe1});return this['_addSuggestionMarker']('formatBlock:'+_0x2ba339,_0x117421,_0x46e660,this['_model']['createRange'](_0x32247a,_0x2e07c1)),_0x193e28;}}['markMultiRangeBlockFormat'](_0x28acae,_0xfa87c,_0x16ebc6=[],_0x6cdbdc=null,_0x3acbed={}){_0xfa87c['formatGroupId']||(_0xfa87c['formatGroupId']=_0xfa87c['commandName']);const _0x5a3f1c=_0x28acae[0x0];_0xfa87c['multipleBlocks']=_0x5a3f1c['is']('range'),_0x6cdbdc=_0x6cdbdc||Jt(_0xfa87c);const _0x140711=_0x16ebc6['map'](_0x164168=>qt(_0x164168,this['_model'])),_0x25b0e8=_0x5a3f1c['is']('range')?_0x28acae:_0x28acae['map'](_0x1e53c6=>qt(_0x1e53c6,this['_model']));if('never'===this['_trackFormatChanges']){const _0xd3ee=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6cdbdc,'accept');return this['forceDefaultExecution'](()=>_0xd3ee(_0x25b0e8,_0xfa87c,_0x3acbed)),null;}_0x140711['push'](..._0x25b0e8);let _0x396950=!0x0;for(const _0x3c37b0 of _0x140711)if(!this['_rangeIsInLocalUserInsertion'](_0x3c37b0)){_0x396950=!0x1;break;}if(_0x396950&&'always'!==this['_trackFormatChanges']){const _0x42f7d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6cdbdc,'accept');return this['forceDefaultExecution'](()=>_0x42f7d0(_0x25b0e8,_0xfa87c,_0x3acbed)),null;}const _0x166e42=this['editor']['plugins']['get']('Users')['me'];for(const _0xc6c178 of this['getSuggestions']()){if(_0xc6c178['author']['id']!=_0x166e42['id'])continue;if('formatBlock'!=_0xc6c178['type']||_0xc6c178['data']['formatGroupId']!=_0xfa87c['formatGroupId'])continue;if(!Qt(_0xc6c178,_0x3acbed))continue;const _0xd76342=_0xc6c178['subType']==_0x6cdbdc;for(let _0x2c65b7=0x0;_0x2c65b7<_0x25b0e8['length'];_0x2c65b7++){const _0x52d5cc=_0x25b0e8[_0x2c65b7];for(const _0xa75a0b of _0xc6c178['getMarkers']()){const _0x43afae=_0xa75a0b['getRange']();if(_0x52d5cc['isEqual'](_0x43afae)){_0xd76342?(_0x25b0e8['splice'](_0x2c65b7,0x1),_0x2c65b7--):_0xc6c178['removeMarker'](_0xa75a0b['name']);break;}}}}if(0x0==_0x25b0e8['length'])return null;const _0xb8b78a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6cdbdc,'join');for(const _0x22c187 of this['getSuggestions']())if(_0x22c187['author']['id']==_0x166e42['id']&&'formatBlock'==_0x22c187['type']&&_0x22c187['data']['formatGroupId']==_0xfa87c['formatGroupId']&&_0x22c187['subType']==_0x6cdbdc&&Qt(_0x22c187,_0x3acbed)&&(_0xb8b78a(_0x22c187['getRanges'](),_0x25b0e8)||_0xb8b78a(_0x25b0e8,_0x22c187['getRanges']()))){for(const _0x210b3e of _0x25b0e8)_0x22c187['addRange'](_0x210b3e);return _0x22c187;}const _0x221c5c=_0x2b49b6(),_0x5174e2=_0x166e42['id'],_0x251b23='formatBlock:'+_0x6cdbdc,_0x1bd185=this['_setSuggestionData']({'id':_0x221c5c,'type':_0x251b23,'data':_0xfa87c,'createdAt':new Date(),'authorId':_0x5174e2,'attributes':_0x3acbed});for(const _0x1514a3 of _0x25b0e8)this['_addSuggestionMarker'](_0x251b23,_0x221c5c,_0x5174e2,_0x1514a3,o['getMultiRangeId']());return _0x1bd185;}['markDeletion'](_0x1d6dc8,_0x4cf099=null,_0x12e5e4={}){if(_0x1d6dc8['isCollapsed'])return null;const _0x5eb91e=this['editor']['plugins']['get']('Users')['me'],_0x9254d2=new _0x10a155(_0x1d6dc8['start'],_0x1d6dc8['end']);for(const {suggestion:_0x2696c4,meta:_0x3d15cc}of this['_findSuggestions'](_0x9254d2,'insertion'))if(_0x3d15cc['isOwn']&&!_0x3d15cc['isNextTo']){if(_0x2696c4['isMultiRange']){const _0xf5f2b2=_0x2696c4['getRanges']()['filter'](_0x3d2c0=>'$graveyard'!=_0x3d2c0['root']['rootName']);_0xf5f2b2['every'](_0x1f119f=>_0x9254d2['containsRange'](_0x1f119f,!0x0))&&_0x2696c4['discard']();if(_0xf5f2b2['some'](_0x120686=>_0x120686['containsRange'](_0x9254d2,!0x0))){const _0x6c9119=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cf099,'accept');return this['forceDefaultExecution'](()=>_0x6c9119([_0x9254d2],null,_0x12e5e4)),null;}}else{const _0x2aa811=_0x9254d2['getIntersection'](_0x2696c4['getFirstRange']());null!==_0x2aa811&&_0x2696c4['_onDiscard']([_0x2aa811],null,_0x12e5e4);}}if(_0x9254d2['detach'](),_0x9254d2['isCollapsed']||'$graveyard'==_0x9254d2['root']['rootName'])return null;let _0x78bcaf=null,_0x143fbf=_0x9254d2['start'],_0x1eae63=_0x9254d2['end'];const _0x4a6ca6=this['_findSuggestions'](_0x9254d2,'deletion');for(const {suggestion:_0x3fada1,meta:_0x448842}of _0x4a6ca6){const _0x33a1e2=this['_model']['createRange'](_0x143fbf,_0x1eae63);if(_0x448842['isOwn']&&(this['_mergeNestedSuggestions']||!_0x448842['containsRangeInObject']&&!_0x448842['isInsideObject'])){if(_0x3fada1['isMultiRange']){if(!Qt(_0x3fada1,_0x12e5e4))continue;let _0x2043cc=!0x0;for(const _0x1b44c0 of _0x3fada1['getRanges']()){if(_0x1b44c0['containsRange'](_0x33a1e2,!0x0))return _0x3fada1;_0x33a1e2['containsRange'](_0x1b44c0)||(_0x2043cc=!0x1);}_0x2043cc&&_0x3fada1['discard']();}else{const _0x3644f3=_0x3fada1['getFirstRange']();if(_0x3644f3['containsRange'](_0x33a1e2,!0x0))return _0x3fada1;if(!Qt(_0x3fada1,_0x12e5e4)){_0x33a1e2['containsRange'](_0x3644f3)?_0x3fada1['removeMarkers']():_0x3644f3['containsPosition'](_0x143fbf)?_0x143fbf=_0x3644f3['end']:_0x3644f3['containsPosition'](_0x1eae63)&&(_0x1eae63=_0x3644f3['start']);continue;}_0x143fbf=_0x143fbf['isBefore'](_0x3644f3['start'])?_0x143fbf:_0x3644f3['start'],_0x1eae63=_0x1eae63['isAfter'](_0x3644f3['end'])?_0x1eae63:_0x3644f3['end'],_0x12e5e4=Object['assign']({},_0x3fada1['attributes']),_0x78bcaf?_0x3644f3['start']['isBefore'](_0x78bcaf['getFirstRange']()['start'])?(_0x78bcaf['removeMarkers'](),_0x78bcaf=_0x3fada1):_0x3fada1['removeMarkers']():_0x78bcaf=_0x3fada1;}}}if(_0x78bcaf)return this['_setSuggestionRange'](_0x78bcaf,this['_model']['createRange'](_0x143fbf,_0x1eae63)),_0x78bcaf;{const _0x4ede29=_0x2b49b6(),_0x6d03fa=this['_model']['createRange'](_0x143fbf,_0x1eae63),_0x4d167f=_0x5eb91e['id'],_0x54e4ea=_0x4cf099?'deletion:'+_0x4cf099:'deletion',_0x23093f=this['_setSuggestionData']({'id':_0x4ede29,'type':_0x54e4ea,'createdAt':new Date(),'authorId':_0x4d167f,'attributes':_0x12e5e4});return this['_addSuggestionMarker'](_0x54e4ea,_0x4ede29,_0x4d167f,_0x6d03fa),_0x23093f;}}['markMultiRangeDeletion'](_0x297548,_0x3ec64c='multi',_0x7a2121={}){const _0xf679b5=this['editor']['plugins']['get']('Users')['me'],_0x36229d=_0x297548['map'](_0x2fe560=>new _0x10a155(_0x2fe560['start'],_0x2fe560['end'])),_0x366cb5=new Set();for(const {suggestion:_0x2baa35,meta:_0x1cedee}of this['_findSuggestions'](_0x36229d,'insertion'))_0x1cedee['isOwn']&&!_0x1cedee['isNextTo']&&_0x366cb5['add'](_0x2baa35);for(const _0x408e3a of _0x366cb5)if(_0x408e3a['isMultiRange']){const _0x423f64=_0x408e3a['getRanges']();(!_0x408e3a['attributes']||!_0x408e3a['attributes']['skipNestingCheck'])&&(_0x423f64['every'](_0x1e27af=>_0x36229d['some'](_0x4517ee=>_0x4517ee['containsRange'](_0x1e27af,!0x0)))&&_0x408e3a['discard']());if(_0x36229d['every'](_0x16e152=>_0x423f64['some'](_0x1fddca=>_0x1fddca['containsRange'](_0x16e152,!0x0)))){const _0x36bf3d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ec64c,'accept');return this['forceDefaultExecution'](()=>_0x36bf3d(_0x297548,null,_0x7a2121)),null;}}else{const _0xb9cbb=_0x408e3a['getFirstRange']();_0x36229d['some'](_0x16c68c=>_0x16c68c['containsRange'](_0xb9cbb,!0x0))&&_0x408e3a['discard']();if(_0x36229d['every'](_0x2fe455=>_0xb9cbb['containsRange'](_0x2fe455,!0x0))){const _0x415e52=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ec64c,'accept');return this['forceDefaultExecution'](()=>_0x415e52(_0x36229d,null,_0x7a2121)),null;}}const _0x1f20d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ec64c,'join');let _0x166add=null;for(const _0x4a75dd of this['getSuggestions']())if(_0x4a75dd['author']['id']==_0xf679b5['id']&&_0x4a75dd['isInContent']&&'deletion'==_0x4a75dd['type']&&_0x4a75dd['subType']==_0x3ec64c&&Qt(_0x4a75dd,_0x7a2121)&&(_0x1f20d8(_0x4a75dd['getRanges'](),_0x36229d)||_0x1f20d8(_0x36229d,_0x4a75dd['getRanges']()))){if(_0x166add){if(_0x4a75dd['commentThread']&&_0x4a75dd['commentThread']['length'])continue;for(const _0x2464ff of _0x4a75dd['getRanges']())_0x166add['isIntersectingWithRange'](_0x2464ff)||_0x166add['addRange'](_0x2464ff);_0x4a75dd['removeMarkers']();}else{_0x166add=_0x4a75dd;for(const _0x53961b of _0x36229d)_0x4a75dd['isIntersectingWithRange'](_0x53961b)||_0x4a75dd['addRange'](_0x53961b);}}if(_0x166add)return _0x166add;_0x366cb5['clear']();for(const {suggestion:_0x4c762f,meta:_0x50f82a}of this['_findSuggestions'](_0x36229d,'deletion'))_0x50f82a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50f82a['containsRangeInObject']&&!_0x50f82a['isInsideObject'])&&Qt(_0x4c762f,_0x7a2121)&&_0x366cb5['add'](_0x4c762f);for(const _0x7fc48b of _0x366cb5){const _0x1bc7de=_0x7fc48b['getRanges']();if(!_0x7a2121||!_0x7a2121['skipNestingCheck']){if(_0x36229d['every'](_0x49d5c2=>_0x1bc7de['some'](_0x1999ba=>_0x1999ba['containsRange'](_0x49d5c2,!0x0))))return _0x7fc48b;}(!_0x7fc48b['attributes']||!_0x7fc48b['attributes']['skipNestingCheck'])&&(_0x1bc7de['every'](_0xcb1dd7=>_0x36229d['some'](_0x18d12a=>_0x18d12a['containsRange'](_0xcb1dd7,!0x0)))&&_0x7fc48b['discard']());}const _0x24bad4=_0x2b49b6(),_0x309c0c=_0xf679b5['id'],_0x3ca637='deletion:'+_0x3ec64c,_0x5aa2c9=this['_setSuggestionData']({'id':_0x24bad4,'type':_0x3ca637,'createdAt':new Date(),'authorId':_0x309c0c,'attributes':_0x7a2121});for(const _0x4b9683 of _0x36229d)_0x4b9683['detach'](),_0x4b9683['isCollapsed']||'$graveyard'==_0x4b9683['root']['rootName']||this['_addSuggestionMarker'](_0x3ca637,_0x24bad4,_0x309c0c,_0x4b9683,o['getMultiRangeId']());return _0x5aa2c9;}['markAttributeChange'](_0x2932f8,_0x3588f2,_0x1419bc,_0x5acf4b,_0x95b262){if(_0x2932f8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x43700b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1144c8=Array['from'](this['_suggestions']['values']())['filter'](_0xd2d09a=>'attribute'==_0xd2d09a['type']&&_0xd2d09a['data']['key']==_0x3588f2&&_0xd2d09a['isIntersectingWithRange'](_0x2932f8));if('default'===this['_trackFormatChanges']){const _0x5d0a5e=this['_findSuggestions'](_0x2932f8,'insertion')['filter'](({meta:_0x511869})=>_0x511869['isOwn']&&!_0x511869['isInsideObject']&&!_0x511869['isNextTo'])['map'](({suggestion:_0x51afc2})=>_0x51afc2);_0x1144c8['unshift'](..._0x5d0a5e);}const _0x95931b=new Map([[_0x2932f8,_0x1419bc]]);for(const _0x33d61e of _0x1144c8){const _0x59b96c='attribute'==_0x33d61e['type']?_0x33d61e['data']['oldValue']:void 0x0,_0x1c24d0=_0x33d61e['getFirstRange'](),_0x1b0894=Array['from'](_0x95931b['keys']())['find'](_0x2a6c5c=>_0x2a6c5c['isIntersecting'](_0x1c24d0));if(!_0x1b0894)continue;const _0x2421f8=_0x1b0894['getDifference'](_0x1c24d0);this['_isBlockAttribute'](_0x3588f2)&&'insertion'==_0x33d61e['type']&&0x0!=_0x2421f8['length']||(_0x95931b['delete'](_0x1b0894),_0x2421f8['forEach'](_0x4666d1=>{_0x95931b['set'](_0x4666d1,_0x1419bc);}),'insertion'!=_0x33d61e['type']&&_0x59b96c!=_0x5acf4b&&_0x95931b['set'](_0x1b0894['getIntersection'](_0x1c24d0),_0x59b96c));}const _0x44c0a7=[];for(const [_0xdb0321,_0x40a5d4]of _0x95931b){const _0x50efdf=_0x2b49b6(),_0x656eea={'key':_0x3588f2,'oldValue':_0x40a5d4,'newValue':_0x5acf4b};_0x3588f2['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':_0x3588f2});const _0x4a4579=('attribute:'+(_0x3588f2+'|'+Jt({'newValue':_0x5acf4b})))['substring'](0x0,0x3c),_0x427511=this['_setSuggestionData']({'id':_0x50efdf,'type':_0x4a4579,'data':_0x656eea,'createdAt':new Date(),'authorId':_0x43700b,'attributes':_0x95b262});_0x44c0a7['push'](_0x427511),this['_addSuggestionMarker'](_0x4a4579,_0x50efdf,_0x43700b,_0xdb0321);}return _0x44c0a7;}['enableDefaultAttributesIntegration'](_0x3238a9){this['enableCommand'](_0x3238a9,(_0x45c7cb,..._0x2641f3)=>{this['_recordAttributeChanges'](()=>{_0x45c7cb(..._0x2641f3);});});}['registerBlockAttribute'](_0x250810){this['_blockAttributeKeys']['add'](_0x250810);}['registerInlineAttribute'](_0x3851e8){this['_inlineAttributeKeys']['add'](_0x3851e8);}['_getAttributeKey'](_0x4ebe89){return'attribute'==_0x4ebe89['type']?_0x4ebe89['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d35b3,_0xe044c7){const _0x3169e2=_0x5d35b3['getFirstMarker']();this['_model']['change'](_0x5872b5=>{_0x5872b5['updateMarker'](_0x3169e2,{'range':_0xe044c7});});}['_addThreadToSuggestion'](_0x4c0e74){const _0x4e8ba3=_0x4c0e74['id'],_0x5c77ce=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4e8ba3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c77ce,'threadId':_0x4e8ba3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1bf2b3=this['_commentsRepository']['getCommentThread'](_0x4e8ba3);_0x1bf2b3['unbind']('isRemovable'),_0x1bf2b3['isRemovable']=!0x1,_0x4c0e74['commentThread']=_0x1bf2b3;}['_checkSuggestionCorrectness'](_0x632f82,_0x91a209,_0xc5e8cb,_0x46fcf9){if(_0x632f82['type']!=_0x91a209||_0x632f82['subType']!=_0xc5e8cb||_0x632f82['creator']['id']!=_0x46fcf9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52489f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x321fb7,_0x14665d){const _0x886666=_0x321fb7['getFirstRange']();if(_0x14665d['isEqual'](_0x886666))_0x321fb7['removeMarkers']();else{if(_0x886666['containsRange'](_0x14665d)){const _0x3d4c3b=this['_model']['createPositionAt'](_0x14665d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x321fb7,this['_model']['createRange'](_0x886666['start'],_0x3d4c3b));const _0x2f67a2=_0x2b49b6(),_0x7790ea=_0x321fb7['creator']['id'],_0x150e0=_0x321fb7['type']+':'+_0x321fb7['subType'];this['_setSuggestionData']({'id':_0x2f67a2,'type':_0x150e0,'createdAt':new Date(),'authorId':_0x7790ea,'data':_0x321fb7['data'],'attributes':_0x321fb7['attributes']});const _0x810754=this['_model']['createPositionAt'](_0x14665d['end']['parent'],'after'),_0xb40f69=this['_model']['createRange'](_0x810754,_0x886666['end']);this['_addSuggestionMarker'](_0x150e0,_0x2f67a2,_0x7790ea,_0xb40f69);}else{if(_0x886666['containsPosition'](_0x14665d['start'])){const _0x3d1bab=this['_model']['createPositionAt'](_0x14665d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x321fb7,this['_model']['createRange'](_0x886666['start'],_0x3d1bab));}else{const _0x574713=this['_model']['createPositionAt'](_0x14665d['end']['parent'],'after');this['_setSuggestionRange'](_0x321fb7,this['_model']['createRange'](_0x574713,_0x886666['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xda85f6){for(const {suggestion:_0x4f6112,meta:_0x41dc36}of this['_findSuggestions'](_0xda85f6,'insertion')){if(!_0x41dc36['isOwn'])continue;const _0x11c195=_0x4f6112['getRanges']();for(const _0x1bdc94 of _0x11c195)if(!_0xda85f6['getDifference'](_0x1bdc94)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1fccab){const _0x30141e=this['editor']['plugins']['get']('Users')['getUser'](_0x1fccab);if(!_0x30141e)throw new _0x52489f('track-changes-user-not-found',this);return _0x30141e;}['_getExternalAuthor'](_0x8204f4){const _0x2fdc21=this['editor']['plugins']['get']('Users'),_0x51cc47=_0x4ed5ba('external:'+_0x8204f4),_0x1f8e87=_0x2fdc21['getUser'](_0x51cc47);return _0x1f8e87||_0x2fdc21['addUser']({'id':_0x51cc47,'name':_0x8204f4});}['_createSuggestion'](_0x448ef1,_0x412780,_0x4ef166,_0x18ed94,_0x71dd4b){const _0x13eda9=this['_getAuthorFromId'](_0x18ed94),_0x5e227a=this['_suggestionFactory']['buildSuggestion'](_0x448ef1,_0x412780,_0x4ef166,_0x13eda9,_0x71dd4b,_0xa5db46=>{this['_updateSuggestionData'](_0x4ef166,{'attributes':_0xa5db46});const _0x2002cd=this['getSuggestion'](_0x4ef166);this['_joinWithAdjacentSuggestions'](new Set([_0x2002cd])),this['_refreshSuggestionsChain'](new Set([_0x2002cd]));});return this['listenTo'](_0x5e227a,'accept',()=>{this['_updateSuggestionData'](_0x4ef166,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e227a,'discard',()=>{this['_updateSuggestionData'](_0x4ef166,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ef166,_0x5e227a),this['_suggestionState']['set'](_0x5e227a,'notReady'),_0x5e227a;}['_splitMarkerName'](_0x48a8bc){const _0x2b82e9=_0x48a8bc['split'](':');return{'group':_0x2b82e9[0x0],'type':_0x2b82e9[0x1],'subType':_0x2b82e9['length']>=0x5?_0x2b82e9[0x2]:null,'id':_0x2b82e9['length']<0x5?_0x2b82e9[0x2]:_0x2b82e9[0x3],'authorId':_0x2b82e9['length']<0x5?_0x2b82e9[0x3]:_0x2b82e9[0x4],'markerCount':0x6==_0x2b82e9['length']?_0x2b82e9[0x5]:null};}['_breakSuggestionMarker'](_0x4ef4a9,_0x4334a2,_0x3c209a){const _0x37fefb=_0x4ef4a9['getFirstRange'](),_0x4694b2=_0x37fefb['start'],_0x4071ae=_0x37fefb['end'];this['_setSuggestionRange'](_0x4ef4a9,this['_model']['createRange'](_0x4694b2,_0x4334a2));const _0x47e73f=_0x2b49b6(),_0x28e09c=_0x4ef4a9['creator']['id'],_0x4b3f44=_0x4ef4a9['type']+(_0x4ef4a9['subType']?':'+_0x4ef4a9['subType']:'');this['_setSuggestionData']({'id':_0x47e73f,'type':_0x4b3f44,'createdAt':new Date(),'authorId':_0x28e09c,'originalSuggestionId':_0x4ef4a9['id'],'attributes':_0x4ef4a9['attributes'],'data':_0x4ef4a9['data']});const _0x1e37ba=this['_getAttributeKey'](_0x4ef4a9);('formatBlock'==_0x4ef4a9['type']||_0x1e37ba&&this['_isBlockAttribute'](_0x1e37ba))&&(_0x3c209a=this['_model']['createPositionBefore'](_0x3c209a['parent'])),this['_addSuggestionMarker'](_0x4b3f44,_0x47e73f,_0x28e09c,this['_model']['createRange'](_0x3c209a,_0x4071ae));}['_findSuggestions'](_0x31a68e,_0x5dff32=null){const _0x3baa7b=[],_0x2eceac=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31a68e)||(_0x31a68e=[_0x31a68e]);for(const _0x487c15 of this['getSuggestions']()){if(!_0x487c15['isInContent'])continue;if(_0x5dff32&&_0x487c15['type']!=_0x5dff32)continue;let _0x12c217=!0x1;for(const _0x2cef43 of _0x487c15['getRanges']()){for(const _0x2ada1c of _0x31a68e){const _0x2a216a=_0x2ada1c['start']['isEqual'](_0x2cef43['end'])||_0x2ada1c['end']['isEqual'](_0x2cef43['start']);if(_0x2a216a||_0x2ada1c['getIntersection'](_0x2cef43)){const _0x424fb2=_0x2ada1c['containsRange'](_0x2cef43)&&Pt(this['_model']['schema'],_0x2cef43['start'],_0x2ada1c),_0x2f9b63=_0x2cef43['containsRange'](_0x2ada1c)&&Pt(this['_model']['schema'],_0x2ada1c['start'],_0x2cef43);_0x3baa7b['push']({'suggestion':_0x487c15,'meta':{'isOwn':_0x2eceac==_0x487c15['author'],'isNextTo':_0x2a216a,'isInsideObject':_0x424fb2,'containsRangeInObject':_0x2f9b63}}),_0x12c217=!0x0;break;}}if(_0x12c217)break;}}return _0x3baa7b;}['_addSuggestionMarker'](_0x172657,_0x5bcdb0,_0x32b45f,_0x4f91ff,_0x5e2925){this['_model']['change'](_0x417866=>{let _0x20f3b6='suggestion:'+_0x172657+':'+_0x5bcdb0+':'+_0x32b45f;_0x5e2925&&(_0x20f3b6=_0x20f3b6+':'+_0x5e2925),_0x417866['addMarker'](_0x20f3b6,{'range':_0x4f91ff,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3eabb4){const _0x50c51c=_0x3eabb4['previous'],_0x40509b=_0x3eabb4['next'];_0x3eabb4['previous']=null,_0x3eabb4['next']=null,null!=_0x50c51c&&_0x50c51c['next']==_0x3eabb4&&(_0x50c51c['next']=_0x40509b),null!=_0x40509b&&_0x40509b['previous']==_0x3eabb4&&(_0x40509b['previous']=_0x50c51c),'ready'==this['_suggestionState']['get'](_0x3eabb4)&&(this['_suggestionState']['set'](_0x3eabb4,'removed'),this['fire']('suggestionUnloaded',_0x3eabb4,_0x50c51c,_0x40509b));}['_setSuggestionData'](_0x5061f2){const _0x568604=_0x5061f2['id'],_0x42753a=this['addSuggestionData'](_0x5061f2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13dfa7=this['editor']['plugins']['get']('PendingActions'),_0xd9535e=_0x42753a['hasComments'],_0x50e2f1=_0x42753a['subType']?_0x42753a['type']+':'+_0x42753a['subType']:_0x42753a['type'],_0x5ed5b8=this['editor']['locale'],_0x4be951=_0x13dfa7['add'](c(_0x5ed5b8,'PENDING_ACTION_SUGGESTION')),_0x451bdd={'id':_0x568604,'type':_0x50e2f1,'hasComments':_0xd9535e,'data':_0x5061f2['data']||null,'originalSuggestionId':_0x5061f2['originalSuggestionId']||null,'attributes':_0x42753a['attributes']};this['_adapter']['addSuggestion'](_0x451bdd)['then'](_0x5d3975=>{_0x42753a['_saved']=!0x0,_0x13dfa7['remove'](_0x4be951),_0x5d3975&&_0x5d3975['createdAt']&&(this['_suggestions']['get'](_0x568604)['createdAt']=_0x5d3975['createdAt']);})['catch'](_0x4fee7b=>{throw _0x399ba0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42753a['discard']();}),_0x42753a['stopListening'](),this['_suggestions']['delete'](_0x42753a['id']),this['_suggestionState']['delete'](_0x42753a),_0x4fee7b;});}return _0x42753a;}['_isBlockAttribute'](_0xa70299){return this['_blockAttributeKeys']['has'](_0xa70299);}['_updateSuggestionData'](_0x503a64,_0x23a8ee){const _0x53e275=this['editor']['plugins']['get']('PendingActions'),_0x260f71=this['getSuggestion'](_0x503a64);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x260f71['_saved']){const _0x442e5b=_0x53e275['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x503a64,_0x23a8ee)['then'](()=>{_0x53e275['remove'](_0x442e5b);});}else _0x260f71['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x503a64,_0x23a8ee);});}}['_getSuggestionData'](_0x491f23){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52489f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x491f23);}['_handleNewSuggestionMarker'](_0x55d10f){const {id:_0x3f14a8,type:_0x581459,subType:_0x26ef93,authorId:_0x1619ae}=this['_splitMarkerName'](_0x55d10f),_0x293343=this['_suggestions']['get'](_0x3f14a8)||this['_createSuggestion'](_0x581459,_0x26ef93,_0x3f14a8,_0x1619ae,{});switch(this['_checkSuggestionCorrectness'](_0x293343,_0x581459,_0x26ef93,_0x1619ae),this['_suggestionState']['get'](_0x293343)){case'notReady':this['_getSuggestionData'](_0x3f14a8)['then'](_0x4fd05e=>{let _0x405d4e=Promise['resolve']();_0x4fd05e['hasComments']&&(_0x405d4e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3f14a8})),_0x405d4e['then'](()=>{this['addSuggestionData'](_0x4fd05e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x293343,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3f14a8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x293343,'ready'),this['fire']('suggestionLoaded',_0x293343);break;case'ready':this['fire']('suggestionChanged',_0x293343);}return _0x293343['addMarkerName'](_0x55d10f),_0x293343;}['_refreshSuggestionsChain'](_0x19bc46){const _0x5248c7=Array['from'](_0x19bc46),_0x429bf5=_0x5248c7['filter'](_0x1a5600=>'attribute'==_0x1a5600['type']);this['_refreshAttributeSuggestionsChain'](_0x429bf5);const _0x54f9a8=_0x5248c7['filter'](_0x489cab=>!_0x489cab['isMultiRange']&&'attribute'!=_0x489cab['type']),_0x346a9e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ab5f7=>!_0x3ab5f7['isMultiRange']&&'attribute'!=_0x3ab5f7['type']),_0x182263=_0x346a9e['filter'](_0xaf7792=>!_0x19bc46['has'](_0xaf7792)),_0x43dc19=new Map(_0x346a9e['map'](_0x2afe67=>[_0x2afe67,this['_suggestionFactory']['getSuggestionCallback'](_0x2afe67['type'],_0x2afe67['subType'],'chain')])),_0x2b682c=new Map(_0x346a9e['map'](_0x18a0f6=>[_0x18a0f6,_0x18a0f6['getFirstRange']()])),_0x156aab=new Set(),_0x24d8c1=new Set();for(let _0x57ad22=0x0;_0x57ad22<_0x54f9a8['length'];_0x57ad22++)_0x4ef27d(_0x54f9a8[_0x57ad22],_0x54f9a8,_0x57ad22+0x1);for(let _0x4257dc=0x0;_0x4257dc<_0x54f9a8['length'];_0x4257dc++)_0x4ef27d(_0x54f9a8[_0x4257dc],_0x182263,0x0);const _0x178e2e=new Set();for(let _0x3cf43f=0x0;_0x3cf43f<_0x54f9a8['length'];_0x3cf43f++){const _0x536940=_0x54f9a8[_0x3cf43f];!_0x24d8c1['has'](_0x536940)&&_0x536940['previous']&&(_0x178e2e['add'](_0x536940['previous']),_0x536940['previous']['next']===_0x536940&&(_0x536940['previous']['next']=null),_0x536940['previous']=null),!_0x156aab['has'](_0x536940)&&_0x536940['next']&&(_0x178e2e['add'](_0x536940['next']),_0x536940['next']['previous']===_0x536940&&(_0x536940['next']['previous']=null),_0x536940['next']=null);}function _0x4ef27d(_0x56c80d,_0x119788,_0x27fc72){for(let _0xf3fbb=_0x27fc72;_0xf3fbb<_0x119788['length'];_0xf3fbb++){const _0x3482d4=_0x2cb3c8(_0x56c80d,_0x119788[_0xf3fbb]);_0x3482d4&&(_0x3482d4[0x0]['next']=_0x3482d4[0x1],_0x3482d4[0x1]['previous']=_0x3482d4[0x0],_0x156aab['add'](_0x3482d4[0x0]),_0x24d8c1['add'](_0x3482d4[0x1]));}}function _0x2cb3c8(_0x3a2d23,_0x1f68ed){if(_0x3a2d23['author']['id']!==_0x1f68ed['author']['id'])return null;const _0x5de6bb=_0x43dc19['get'](_0x3a2d23)(_0x3a2d23,_0x1f68ed,_0x2b682c['get'](_0x3a2d23),_0x2b682c['get'](_0x1f68ed));if(!_0x5de6bb)return null;return _0x43dc19['get'](_0x1f68ed)(_0x3a2d23,_0x1f68ed,_0x2b682c['get'](_0x3a2d23),_0x2b682c['get'](_0x1f68ed))?_0x5de6bb[0x1]['commentThread']&&_0x5de6bb[0x1]['commentThread']['length']?null:_0x5de6bb:null;}_0x178e2e['size']&&this['_refreshSuggestionsChain'](_0x178e2e);}['_refreshAttributeSuggestionsChain'](_0x551ef2){if(0x0==_0x551ef2['length'])return;const _0x2bb0ce=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x112fc2=>'attribute'==_0x112fc2['type']&&_0x112fc2['_isDataLoaded']),_0x4df15d=[],_0x4274f5=new Map();for(const _0x24fffd of _0x2bb0ce){const _0xa32e1c=_0x4ed5ba(_0x24fffd['attributes']);_0x4274f5['has'](_0xa32e1c)||(_0x4274f5['set'](_0xa32e1c,_0x4df15d['length']),_0x4df15d['push']([]));const _0x28e0e1=_0x4274f5['get'](_0xa32e1c);_0x4df15d[_0x28e0e1]['push'](_0x24fffd);}!(function(){_0x4df15d['sort']((_0x306010,_0x2abc6e)=>{const _0x4af267=_0x306010[0x0]['createdAt'],_0x3ea7e6=_0x2abc6e[0x0]['createdAt'];return _0x4af267==_0x3ea7e6?_0x306010[0x0]['attributes']['groupId']<_0x2abc6e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4af267<_0x3ea7e6?-0x1:0x1;});for(const _0x2f622c of _0x4df15d)_0x2f622c['sort']((_0x4d1fe8,_0x410ed8)=>_0x4d1fe8['id']<_0x410ed8['id']?-0x1:0x1);}());for(let _0x47833f=0x0;_0x47833f<_0x4df15d['length'];_0x47833f++){if(0x0==_0x4df15d[_0x47833f]['length'])continue;const _0x43fe93=[];for(let _0x411956=_0x47833f+0x1;_0x411956<_0x4df15d['length'];_0x411956++)0x0!=_0x4df15d[_0x411956]['length']&&_0x2a5472(_0x4df15d[_0x47833f],_0x4df15d[_0x411956])&&_0x43fe93['push'](_0x411956);for(const _0x3e4b6d of _0x43fe93)_0x4df15d[_0x47833f]=_0x4df15d[_0x47833f]['concat'](_0x4df15d[_0x3e4b6d]),_0x4df15d[_0x3e4b6d]=[];}for(const _0x57377c of _0x4df15d)for(let _0x424722=0x0;_0x424722<_0x57377c['length'];_0x424722++){const _0x22c188=_0x57377c[_0x424722+0x1]||null;_0x57377c[_0x424722]['next']!==_0x22c188&&(_0x57377c[_0x424722]['next']=_0x22c188);}for(const _0x21d7a5 of _0x4df15d)for(let _0x392826=0x0;_0x392826<_0x21d7a5['length'];_0x392826++){const _0x4dd845=_0x21d7a5[_0x392826-0x1]||null;_0x21d7a5[_0x392826]['previous']!==_0x4dd845&&(_0x21d7a5[_0x392826]['previous']=_0x4dd845);}function _0x2a5472(_0x14e83f,_0x2ef479){if(_0x14e83f[0x0]['attributes']['groupId']!==_0x2ef479[0x0]['attributes']['groupId']&&_0x14e83f[0x0]['author']!==_0x2ef479[0x0]['author'])return!0x1;if(!function(_0x1fbb22,_0x25b209){if(!_0x1fbb22['hasComments']&&!_0x25b209['hasComments'])return!0x0;if(_0x1fbb22['hasComments']&&_0x25b209['hasComments'])return!0x1;if(_0x1fbb22['hasComments']&&_0x25b209['createdAt']<_0x1fbb22['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x25b209['hasComments']&&_0x1fbb22['createdAt']<_0x25b209['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x14e83f[0x0],_0x2ef479[0x0]))return!0x1;const _0x12d126=Vt(_0x14e83f[0x0]['attributes'],'groupId'),_0x5a6e30=Vt(_0x2ef479[0x0]['attributes'],'groupId');if(!_0x403583(_0x12d126,_0x5a6e30))return!0x1;return!!_0x14e83f['every'](_0x4cf6eb=>_0x2ef479['some'](_0x1177b4=>_0x4cf6eb['getFirstRange']()['isEqual'](_0x1177b4['getFirstRange']())))&&_0x2ef479['every'](_0x2c0064=>_0x14e83f['some'](_0x137c82=>_0x2c0064['getFirstRange']()['isEqual'](_0x137c82['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x446c1e){const _0x2899fb=Array['from'](_0x446c1e),_0x2670fe=this['getSuggestions']({'skipNotAttached':!0x0}),_0x86d8ab=_0x2670fe['filter'](_0x44d837=>!_0x446c1e['has'](_0x44d837)),_0x3ecc01=new Map(_0x2899fb['map'](_0x37c92f=>[_0x37c92f,this['_suggestionFactory']['getSuggestionCallback'](_0x37c92f['type'],_0x37c92f['subType'],'join')])),_0x505f0f=new Map(_0x2670fe['map'](_0x43268c=>[_0x43268c,_0x43268c['getRanges']()]));for(let _0x280e53=0x0;_0x280e53<_0x2899fb['length'];_0x280e53++){if(_0x13a66a(this,_0x2899fb[_0x280e53],_0x2899fb,_0x280e53+0x1))return!0x0;}for(let _0x5f5bbc=0x0;_0x5f5bbc<_0x2899fb['length'];_0x5f5bbc++){if(_0x13a66a(this,_0x2899fb[_0x5f5bbc],_0x86d8ab,0x0))return!0x0;}return!0x1;function _0x13a66a(_0x58a90f,_0x35e2aa,_0x377df6,_0x2cfe7d){for(let _0x1a5053=_0x2cfe7d;_0x1a5053<_0x377df6['length'];_0x1a5053++){const _0xfa33d5=_0x377df6[_0x1a5053];if(_0xfa33d5['type']!==_0x35e2aa['type']||_0xfa33d5['author']['id']!==_0x35e2aa['author']['id']||_0xfa33d5['subType']!==_0x35e2aa['subType'])continue;if(!Wt(_0x35e2aa,_0xfa33d5))continue;if('attribute'==_0x35e2aa['type']&&_0x35e2aa['data']['oldValue']!=_0xfa33d5['data']['oldValue'])continue;if('attribute'==_0x35e2aa['type']&&_0x58a90f['_isBlockAttribute'](_0x35e2aa['data']['key']))continue;if('formatBlock'==_0x35e2aa['type']){const _0x1d6327=_0x58a90f['editor']['model'],_0x58865e=_0x35e2aa['getContainedElement']();if(_0x58865e&&(_0x1d6327['schema']['isObject'](_0x58865e)||_0x1d6327['schema']['isLimit'](_0x58865e)))continue;}const _0x3015dd=_0x3ecc01['get'](_0x35e2aa),_0x2361ad=_0x505f0f['get'](_0x35e2aa),_0x1b7cce=_0x505f0f['get'](_0xfa33d5),_0x119b04=_0x35e2aa['commentThread']&&_0x35e2aa['commentThread']['length'],_0x5567e3=_0xfa33d5['commentThread']&&_0xfa33d5['commentThread']['length'];if(!_0x119b04&&_0x3015dd(_0x1b7cce,_0x2361ad))return _0x58a90f['_joinSuggestions'](_0xfa33d5,_0x35e2aa),_0x505f0f['delete'](_0x35e2aa),!0x0;if(!_0x5567e3&&_0x3015dd(_0x2361ad,_0x1b7cce))return _0x58a90f['_joinSuggestions'](_0x35e2aa,_0xfa33d5),_0x505f0f['delete'](_0xfa33d5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1fcc83,_0x3642fe){if(_0x1fcc83['isMultiRange']){for(const _0x5a66ca of _0x3642fe['getRanges']())_0x1fcc83['addRange'](_0x5a66ca);}else{const _0x4d0dbe=_0x3642fe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1fcc83,this['_model']['createRange'](_0x1fcc83['getFirstRange']()['start'],_0x4d0dbe));}_0x3642fe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1b4d71,_0x457685,_0x519ad0){const _0x26656f=_0x1b4d71['startsWith']('format')||_0x1b4d71['startsWith']('attribute')?'FORMATTING':_0x1b4d71['toUpperCase']();return c(this['editor']['locale'],_0x457685+'_'+_0x26656f+'_SUGGESTION_ANNOUNCEMENT',_0x519ad0);}['_initAriaMarkerChangeAnnouncements'](){const _0x3aaa23=this['editor'];if(!_0x3aaa23['ui'])return;const {ariaLiveAnnouncer:_0x54ddf1}=_0x3aaa23['ui'];_0x28ac5c(this['_model'],({left:_0x551d4f,entered:_0x213ddf})=>{for(const _0x4f061b of _0x551d4f){const {group:_0x4bcb75,type:_0x464a85}=this['_splitMarkerName'](_0x4f061b['name']);if('suggestion'===_0x4bcb75){_0x54ddf1['announce'](this['_getMarkerAnnouncementText'](_0x464a85,'LEAVE'));break;}}for(const _0x3ae327 of _0x213ddf){const {group:_0x154577,type:_0x2c71e}=this['_splitMarkerName'](_0x3ae327['name']);if('suggestion'===_0x154577){_0x54ddf1['announce'](this['_getMarkerAnnouncementText'](_0x2c71e,'ENTER',_0x490251(_0x379c3a)));break;}}});}['_processAttributeChanges'](_0x4a4f3b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x25285a=this['editor'],_0x3faf00=_0x25285a['model']['document']['differ']['getChanges']();if(0x0==_0x3faf00['length'])return!0x1;const _0x2f6f7c=[],_0x2d17b5=_0x3faf00['filter'](_0x4639c0=>'attribute'==_0x4639c0['type']),_0x50c8b8=_0x3faf00['filter'](_0xa070dc=>'insert'==_0xa070dc['type']&&'$text'!=_0xa070dc['name']),_0x4066e0=_0x3faf00['filter'](_0x3e55df=>'remove'==_0x3e55df['type']&&'$text'!=_0x3e55df['name']);for(const _0x146e77 of _0x2d17b5)_0x2f6f7c['push']({'key':_0x146e77['attributeKey'],'newValue':_0x146e77['attributeNewValue'],'oldValue':_0x146e77['attributeOldValue'],'range':Ht(_0x146e77['range'],_0x25285a['model'])});for(const _0xf51f7b of _0x50c8b8){const _0x19f5eb=_0x4066e0['find'](_0x1c7b2a=>_0x1c7b2a['position']['isEqual'](_0xf51f7b['position']));_0x19f5eb&&_0x2f6f7c['push']({'key':u,'newValue':_0xf51f7b['name'],'oldValue':_0x19f5eb['name'],'range':_0x25285a['model']['createRangeOn'](_0xf51f7b['position']['nodeAfter'])});}return 0x0!=_0x2f6f7c['length']&&this['_reduceExistingSuggestions'](_0x4a4f3b,_0x2f6f7c);}['_processAttributeSuggestions'](_0x254fed){let _0x5ba09b=!0x1;const _0x137ec0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x220613=>_0x220613['data']['newRange']&&_0x220613['name']['startsWith']('suggestion:attribute:'));for(const _0x2b895e of _0x137ec0){const {subType:_0x28257e,id:_0x3e492a}=this['_splitMarkerName'](_0x2b895e['name']),_0x4abd86=_0x28257e['split']('|')[0x0];for(const _0x241518 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x241518['id']!=_0x3e492a&&'attribute'==_0x241518['type']&&_0x241518['data']&&_0x241518['data']['key']==_0x4abd86&&_0x241518['getFirstRange']()['isIntersecting'](_0x2b895e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x241518,_0x2b895e['data']['newRange'],_0x254fed),_0x5ba09b=!0x0);}return _0x5ba09b;}['_recordAttributeChanges'](_0x592fc1){this['_recordAttributeSuggestions']=!0x0,_0x592fc1();}['_isRegisteredAttribute'](_0x2214f3){const _0x5def96=this['_isBlockAttribute'](_0x2214f3),_0x18b1f9=this['_inlineAttributeKeys']['has'](_0x2214f3);return _0x5def96||_0x18b1f9;}['_reduceExistingSuggestions'](_0x664522,_0x2c0a47){if(0x0==_0x2c0a47['length'])return!0x1;let _0x39ec3a=!0x1;for(const _0x227c9f of _0x2c0a47){const _0x37b777=this['_findSuggestions'](_0x227c9f['range'],'attribute')['filter'](_0x1703b6=>!_0x1703b6['meta']['isNextTo'])['map'](_0xc5ffd=>_0xc5ffd['suggestion']),_0x52ae49=_0x4ed5ba({'newValue':_0x227c9f['newValue']});_0x37b777['filter'](_0x5d5ae=>{const [_0x458d51,_0x2e3fde]=_0x5d5ae['subType']['split']('|');return _0x458d51==_0x227c9f['key']&&_0x2e3fde!=_0x52ae49;})['forEach'](_0x1ee53a=>{this['_reduceSuggestionAttributeRange'](_0x1ee53a,_0x227c9f['range'],_0x664522),_0x39ec3a=!0x0;});}return _0x39ec3a;}['_reduceSuggestionAttributeRange'](_0x104aeb,_0x3673a5,_0x226ef3){const _0x2655ab=_0x104aeb['getFirstRange']()['getDifference'](_0x3673a5);0x0!==_0x2655ab['length']?0x1!==_0x2655ab['length']?this['_breakSuggestionMarker'](_0x104aeb,_0x3673a5['start'],_0x3673a5['end']):this['_setSuggestionRange'](_0x104aeb,_0x2655ab[0x0]):_0x226ef3['removeMarker'](_0x104aeb['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xeccbeb){this['_editor']=_0xeccbeb,this['_model']=_0xeccbeb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x447432,_0x4f8aee,_0x25e0db,_0x27a614,_0x546b5d,_0x2f5092){return new o(this['_model'],{'type':_0x447432,'subType':_0x4f8aee,'id':_0x25e0db,'author':_0x27a614,'creator':_0x27a614,'attributes':_0x546b5d,'onAttributesChange':_0x2f5092,'onAccept':(..._0x5dcdd0)=>this['getSuggestionCallback'](_0x447432,_0x4f8aee,'accept')(..._0x5dcdd0),'onDiscard':(..._0x4a846f)=>this['getSuggestionCallback'](_0x447432,_0x4f8aee,'discard')(..._0x4a846f)});}['registerCustomCallback'](_0x1de951,_0x5344f1,_0x54e166,_0x438d22){const _0x1b7e39=_0x1de951+':'+_0x5344f1+':'+_0x54e166;this['_customCallbacks']['set'](_0x1b7e39,_0x438d22);}['getSuggestionCallback'](_0xabd862,_0x1b3718,_0x27a7af){const _0x555f32=_0xabd862+':'+_0x1b3718+':'+_0x27a7af;return this['_customCallbacks']['get'](_0x555f32)||this['_defaultCallbacks']['get'](_0xabd862+':'+_0x27a7af);}['_registerDefaultCallbacks'](){const _0x126588=()=>!0x1,_0x44be2f=_0x2dfd89=>{_0x2dfd89['sort']((_0x581ef7,_0x12dad1)=>_0x581ef7['start']['isBefore'](_0x12dad1['start'])?0x1:-0x1),this['_model']['change'](_0x5c5cbc=>{for(const _0x5e7273 of _0x2dfd89){let _0x2299ef;_0x2299ef=_0x5e7273['end']['isAtEnd']&&_0x5e7273['end']['parent']==_0x5e7273['start']['nodeAfter']?_0x5c5cbc['createSelection'](_0x5e7273['start']['nodeAfter'],'on'):_0x5c5cbc['createSelection'](_0x5e7273),this['_model']['deleteContent'](_0x2299ef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x970676=(_0x321f47,_0x34f687)=>{_0x34f687&&this['_model']['change'](_0x51d090=>{const {commandName:_0x55a49c,commandParams:_0x376b23=[]}=_0x34f687,_0x284e14=_0x321f47['map'](_0xfd0ace=>(Gt(_0xfd0ace)&&(_0xfd0ace=this['_model']['createRange'](_0xfd0ace['end'])),_0xfd0ace))['filter'](_0x11ce66=>'$graveyard'!==_0x11ce66['root']['rootName']);if(_0x284e14['length']<0x1)return;const _0x3a6a66=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x252070=>_0x10a155['fromRange'](_0x252070));_0x51d090['setSelection'](_0x284e14);for(const _0x305ef3 of this['_editor']['commands']['commands']())_0x305ef3['refresh']();_0x376b23['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x55a49c,..._0x376b23);const _0x26be93=_0x3a6a66['filter'](_0x217f14=>'$graveyard'!=_0x217f14['root']['rootName']);_0x26be93['length']>0x0&&_0x51d090['setSelection'](_0x26be93);for(const _0x34872c of _0x3a6a66)_0x34872c['detach']();});},_0x304cf8=(_0x3fb963,_0x45028f)=>0x1==_0x3fb963['length']&&0x1==_0x45028f['length']&&_0x3fb963[0x0]['end']['isEqual'](_0x45028f[0x0]['start']),_0x452499=(_0x1db006,_0xb1a3f3,_0x5c2522,_0x30baff)=>zt(_0x1db006,_0xb1a3f3,_0x5c2522,_0x30baff)?[_0x1db006,_0xb1a3f3]:zt(_0xb1a3f3,_0x1db006,_0x30baff,_0x5c2522)?[_0xb1a3f3,_0x1db006]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x126588),this['_defaultCallbacks']['set']('insertion:discard',_0x44be2f),this['_defaultCallbacks']['set']('insertion:join',_0x304cf8),this['_defaultCallbacks']['set']('insertion:chain',_0x452499),this['_defaultCallbacks']['set']('deletion:accept',_0x44be2f),this['_defaultCallbacks']['set']('deletion:discard',_0x126588),this['_defaultCallbacks']['set']('deletion:join',_0x304cf8),this['_defaultCallbacks']['set']('deletion:chain',_0x452499),this['_defaultCallbacks']['set']('formatInline:accept',_0x970676),this['_defaultCallbacks']['set']('formatInline:discard',_0x126588),this['_defaultCallbacks']['set']('formatInline:join',_0x304cf8),this['_defaultCallbacks']['set']('formatInline:chain',_0x126588),this['_defaultCallbacks']['set']('formatBlock:accept',_0x970676),this['_defaultCallbacks']['set']('formatBlock:discard',_0x126588),this['_defaultCallbacks']['set']('formatBlock:join',_0x304cf8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x126588),this['_defaultCallbacks']['set']('attribute:accept',_0x126588),this['_defaultCallbacks']['set']('attribute:discard',(_0x1d1ead,_0x19a318)=>{if(!_0x19a318)return;const _0x5aac84=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x49020f=>{if(_0x19a318['key']==u)for(const _0x1b54f4 of _0x1d1ead){const _0x33b5d6=_0x1b54f4['start']['nodeAfter'],_0x5727aa=_0x19a318['oldValue'];_0x49020f['rename'](_0x33b5d6,_0x5727aa);}else{if(_0x5aac84['_isBlockAttribute'](_0x19a318['key'])){for(const _0x26baae of _0x1d1ead)void 0x0!==_0x19a318['oldValue']?_0x49020f['setAttribute'](_0x19a318['key'],_0x19a318['oldValue'],_0x26baae['start']['nodeAfter']):_0x49020f['removeAttribute'](_0x19a318['key'],_0x26baae['start']['nodeAfter']);}else{for(const _0x22b7ec of _0x1d1ead)_0x19a318['oldValue']?_0x49020f['setAttribute'](_0x19a318['key'],_0x19a318['oldValue'],_0x22b7ec):_0x49020f['removeAttribute'](_0x19a318['key'],_0x22b7ec);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x304cf8);}}function Pt(_0x596d16,_0x183e70,_0x25e46b){for(const _0x2f9259 of _0x183e70['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f9259['root']==_0x2f9259)return!0x1;if(!_0x25e46b['containsItem'](_0x2f9259))return!0x1;if(_0x596d16['isObject'](_0x2f9259)||_0x596d16['isLimit'](_0x2f9259))return!0x0;}return!0x1;}function Gt(_0x2c381a){return _0x2c381a['end']['parent']==_0x2c381a['start']['nodeAfter']&&_0x2c381a['end']['isAtStart'];}function Lt(_0x395bfe,_0x41a1c5,_0x32d1c4,_0x2b6697){const _0x1125d2=_0x437b11=>!_0x437b11['item']['is']('$textProxy')&&!_0x2b6697['isObject'](_0x437b11['item']),_0x2af454=_0x395bfe['start']['getLastMatchingPosition'](_0x1125d2),_0x2f02ad=_0x395bfe['end']['getLastMatchingPosition'](_0x1125d2,{'direction':'backward'});return(!_0x395bfe['start']['isEqual'](_0x2af454)||!_0x395bfe['end']['isEqual'](_0x2f02ad))&&(_0x2af454['isBefore'](_0x2f02ad)?_0x32d1c4['updateMarker'](_0x41a1c5,{'range':_0x32d1c4['createRange'](_0x2af454,_0x2f02ad)}):_0x32d1c4['removeMarker'](_0x41a1c5),!0x0);}function Jt(_0x1561b0){return _0x4ed5ba(_0x1561b0);}function Kt(_0x13a070){const _0x32d531=_0x13a070['start']['nodeAfter'];return _0x32d531&&_0x32d531['is']('element');}function Ht(_0x4bbcfa,_0x3d0b87){return null==_0x4bbcfa['end']['nodeBefore']&&_0x4bbcfa['end']['parent']==_0x4bbcfa['start']['nodeAfter']?qt(_0x4bbcfa['start']['nodeAfter'],_0x3d0b87):_0x4bbcfa;}function qt(_0x5ecf4a,_0x5c7731){const _0x140d37=_0x5c7731['schema']['isObject'](_0x5ecf4a)||_0x5c7731['schema']['isSelectable'](_0x5ecf4a);return _0x5c7731['createRange'](_0x5c7731['createPositionAt'](_0x5ecf4a,'before'),_0x140d37?_0x5c7731['createPositionAfter'](_0x5ecf4a):_0x5c7731['createPositionAt'](_0x5ecf4a,'end'));}function zt(_0x4f3ed0,_0xe6d0bb,_0x16afef,_0x33c941){return!!Wt(_0x4f3ed0,_0xe6d0bb)&&_0x16afef['end']['isEqual'](_0x33c941['start']);}function Wt(_0x71c046,_0x33515a){if(!_0x71c046['_isDataLoaded']||!_0x33515a['_isDataLoaded'])return!0x1;const _0x2bd16e=new Set(Object['keys'](_0x71c046['attributes'])),_0xa826=new Set(Object['keys'](_0x33515a['attributes']));if(_0x2bd16e['delete']('groupId'),_0xa826['delete']('groupId'),0x0==_0x2bd16e['size']&&0x0==_0xa826['size'])return!0x0;if(_0x2bd16e['size']!=_0xa826['size'])return!0x1;const _0x16fafe={..._0x71c046['attributes']},_0x1d2599={..._0x33515a['attributes']};return delete _0x16fafe['groupId'],delete _0x1d2599['groupId'],JSON['stringify'](_0x16fafe)==JSON['stringify'](_0x1d2599);}function Qt(_0x43052b,_0xe04cdc){const _0x426e22=Xt(_0x43052b['attributes']),_0x110e08=Xt(_0xe04cdc);if(!_0x43052b['_isDataLoaded'])return!0x1;for(const _0x582249 of Object['keys'](_0x110e08))if(!_0x403583(_0x426e22[_0x582249],_0x110e08[_0x582249]))return!0x1;return!0x0;}function Xt(_0x1a6c89){const _0x5159ef=Object['assign']({},_0x1a6c89);return delete _0x5159ef['skipNestingCheck'],delete _0x5159ef['tablePasteChainId'],_0x5159ef;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x51c58c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x18cf0f,_0x2f88e5,_0x119e4e,_0x18501b){super(),this['model']=_0x2f88e5,this['view']=_0x119e4e,this['commentThreadController']=_0x18501b,this['_editor']=_0x18cf0f,this['_acceptCommand']=_0x18cf0f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x18cf0f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5e7022,_0x3f431a)=>_0x5e7022||_0x3f431a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x155d91=>_0x155d91&&this['_editor']['model']['canEditAt'](_0x2f88e5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2fd8db=>_0x2fd8db&&this['_editor']['model']['canEditAt'](_0x2f88e5['getRanges']())),this['_pendingAction']=null,_0x119e4e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x119e4e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x119e4e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x119e4e,'change:isDirty',()=>{_0x119e4e['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 _0x209f13=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x209f13);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x30d4d1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x13cf0e,_0x1b31b5,_0xf3901a,_0x5bc51d){super(_0x13cf0e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x262fbf(_0x13cf0e,c(_0x13cf0e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1b31b5['authoredAt']),this['bind']('authoredAt')['to'](_0x1b31b5),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',_0x1b31b5,'authoredAt',this,'descriptionParts',(_0x4f996c,_0x314dfa,_0x2f91dc)=>{const _0x4da17e=_0x2f91dc['map'](_0x4913fa=>ls(_0x4913fa['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f996c-0x1,_0x1b31b5['author']['name'],_0x314dfa?_0x5bc51d['formatDateTime'](_0x314dfa):'',new DOMParser()['parseFromString'](_0x4da17e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4e0298(),this['focusTracker']=new _0x13c5dc(),this['keystrokes']=new _0x36964d(),this['focusCycler']=new _0x110ff0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5627df=>_0x5627df['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1b31b5,this['_localUser']=_0xf3901a,this['_config']=_0x5bc51d,_0x5bc51d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x9e78b0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e8b99}=this['_config'];this['commentsListView']=new _0x1e8b99(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',_0x39d51b=>_0x39d51b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x27afdc,_0x253e19)=>_0x27afdc||!!_0x253e19);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x587042}=this['_config'],_0x176247=new _0x587042(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c42bb=_0x176247['commentInputView'];return _0x176247['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c42bb,'value',(_0x176a76,_0xe7b49b,_0x56f79e)=>!!_0x56f79e||_0x176a76&&!_0xe7b49b),_0x4c42bb['on']('submit',(_0x2aac2f,_0x1a52bb)=>{this['fire']('addComment',_0x1a52bb),_0x4c42bb['editor']['setData']('');}),_0x4c42bb['on']('cancel',()=>this['focus']()),_0x4c42bb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x176247;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x73e90,_0x2f518a,_0x45cf09,_0x420405){super(_0x73e90,_0x2f518a,_0x45cf09,_0x420405),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x511726=>_0x511726&&_0x511726[0x0]?_0x511726[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4950b6,_0x6a00c1)=>{let _0x3a9d88='';for(const _0x2adcaf of _0x4950b6)_0x3a9d88+='<p>'+ls(_0x2adcaf['content'],_0x2adcaf['color'])+'</p>';return _0x6a00c1?_0x3a9d88:ti(_0x3a9d88,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x420405['SuggestionView'](_0x73e90,_0x2f518a,{'formatDateTime':_0x420405['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 _0x4ae27f=this['bindTemplate'],_0x234275=[this['suggestionView']];return this['commentsListView']&&_0x234275['push'](this['commentsListView']),this['commentThreadInputView']&&_0x234275['push'](this['commentThreadInputView']),_0x234275['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4ae27f['if']('isActive','ck-suggestion-wrapper--active'),_0x4ae27f['to']('type',_0x4d420b=>'ck-suggestion-'+_0x4d420b),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':_0x4ae27f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x234275};}['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 _0x30d4d1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4e8778,_0x24d4d4,_0x37e64d){super(_0x4e8778),this['_model']=_0x24d4d4,this['_config']=_0x37e64d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x24d4d4),this['acceptButton']=this['_createButton'](c(_0x4e8778,'Accept\x20suggestion'),_0x150ec3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4e8778,'Discard\x20suggestion'),_0x13288b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x28b6d7(_0x4e8778,_0x24d4d4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4e0298([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13c5dc(),this['keystrokes']=new _0x36964d(),this['focusCycler']=new _0x110ff0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4bd689=>_0x4bd689['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x572be1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x572be1['innerHTML']=this['description'],this['on']('change:description',(_0x42372e,_0x51c883,_0x1cdc4c)=>{_0x572be1['innerHTML']=_0x1cdc4c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x50d10f=this['bindTemplate'],_0x1f5aa6=[{'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':_0x50d10f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x50d10f['to']('authoredAt',_0x22fcb0=>this['_config']['formatDateTime'](_0x22fcb0))}]}]},{'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']&&_0x1f5aa6['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':_0x1f5aa6}]};}['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'](_0x3f4f3f,_0x9f2142,_0x5babb0,_0xffe2d0,_0x2651fe){const _0x2a1578=new _0x5962f8(this['locale']);return _0x2a1578['set']({'label':_0x3f4f3f,'icon':_0x9f2142,'tooltip':!0x0,'tooltipPosition':_0x2651fe}),_0x2a1578['extendTemplate']({'attributes':{'class':_0x5babb0}}),_0x2a1578['on']('execute',()=>{this['fire'](_0xffe2d0,this['_model']['id']);}),_0x2a1578;}['_setupKeyboardNavigation'](){const _0x100edd=this['element'];this['keystrokes']['listenTo'](_0x100edd);for(const _0x8a794c of this['focusables'])this['focusTracker']['add'](_0x8a794c['element']),this['keystrokes']['listenTo'](_0x8a794c['element']);this['keystrokes']['set']('enter',(_0x3e2a84,_0x517045)=>{_0x100edd===_0x3e2a84['target']&&(this['focusCycler']['focusFirst'](),_0x517045());}),this['keystrokes']['set']('esc',(_0x36f34b,_0x35f746)=>{_0x100edd!==_0x36f34b['target']&&(this['focus'](),_0x35f746());});}}class d extends _0x307cfb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ea921,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29055e){super(_0x29055e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2c1c0b=this['editor']['config'];_0x2c1c0b['define']('trackChanges.SuggestionThreadView',fe),_0x2c1c0b['define']('trackChanges.SuggestionView',we),_0x2c1c0b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2c1c0b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f7e5b,_0x9e89b9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xc18ac,_0x5054a5]of this['_handleControllerBuffer']){const _0x502fda=this['_suggestionToController']['has'](_0xc18ac);_0x502fda||_0x5054a5?_0x502fda&&_0x5054a5&&this['_destroyController'](_0xc18ac):this['_initializeController'](_0xc18ac);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f7e5b,_0x9e89b9);}['init'](){const _0x555ad1=this['editor'],_0x169cc0=_0x555ad1['plugins']['get']('TrackChangesEditing'),_0x55898e=_0x555ad1['plugins']['get']('Annotations'),_0x303bda=_0x555ad1['plugins']['get']('EditorAnnotations'),_0x338777=_0x555ad1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x303bda['addSourceCollector'](()=>{const _0x3841bb=[];for(const [_0x543952,_0x203533]of Array['from'](this['_suggestionToController'])){const _0x2e9096=_0x543952['getAllAdjacentSuggestions'](),_0x25547b=[];for(const _0x13293b of _0x2e9096){if(!_0x13293b['isInContent'])continue;if(_0x13293b['isMultiRange']){_0x25547b['push'](..._0x13293b['getRanges']());continue;}const _0x4b50b7=_0x13293b['getFirstRange']();if(_0x25547b['length']>0x0){const _0x3024bd=_0x25547b[0x0]['getJoined'](_0x4b50b7);if(_0x3024bd){_0x25547b[0x0]=_0x3024bd;continue;}}_0x25547b['push'](_0x4b50b7);}_0x3841bb['push']([_0x203533['view'],_0x25547b]);}return _0x3841bb;}),this['listenTo'](_0x169cc0,'suggestionLoaded',(_0x27c8d2,_0x1d77ac)=>{this['listenTo'](_0x1d77ac,'change:previous',(_0x5db90a,_0x5a555e,_0x384a23,_0x542d21)=>{_0x1d77ac['isInContent']&&(null==_0x384a23?(this['_updateController'](_0x542d21['head']),this['_handleSuggestionControllerDelayed'](_0x1d77ac,!0x1)):(this['_updateController'](_0x384a23['head']),null==_0x542d21&&this['_handleSuggestionControllerDelayed'](_0x1d77ac,!0x0)));}),null!==_0x1d77ac['previous']?this['_updateController'](_0x1d77ac['head']):this['_handleSuggestionControllerDelayed'](_0x1d77ac,!0x1);}),this['listenTo'](_0x169cc0,'suggestionUnloaded',(_0x5771a6,_0x2ffca9,_0x34268b)=>{this['stopListening'](_0x2ffca9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ffca9),this['_suggestionToController']['has'](_0x2ffca9)&&this['_destroyController'](_0x2ffca9),_0x34268b&&this['_updateController'](_0x34268b['head']);}),this['listenTo'](_0x169cc0,'suggestionChanged',(_0x456c28,_0x4d8d62)=>{this['_updateController'](_0x4d8d62);}),this['listenTo'](_0x55898e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x338777,'addComment',(_0x49bea7,{threadId:_0x32ac83,isFromAdapter:_0xfbd459})=>{if(_0xfbd459||!_0x169cc0['hasSuggestion'](_0x32ac83))return;const _0x1bc305=_0x169cc0['getSuggestion'](_0x32ac83);this['_suggestionToController']['get'](_0x1bc305)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3fa671=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22dd3c;for(const _0x23fcb6 in _0x3fa671){const _0x453fc7=_0x23fcb6,_0x522cb5=_0x3fa671[_0x453fc7];if('trackChangesLicenseKeyValid'==_0x522cb5||'trackChangesLicenseKeyInvalid'==_0x522cb5||'trackChangesLicenseKeyExpired'==_0x522cb5||'trackChangesLicenseKeyDomainLimit'==_0x522cb5||'trackChangesLicenseKeyNotAllowed'==_0x522cb5||'trackChangesLicenseKeyEvaluationLimit'==_0x522cb5||'trackChangesLicenseKeyTrialLimit'==_0x522cb5||'trackChangesLicenseKeyUsageLimit'==_0x522cb5){delete _0x3fa671[_0x453fc7],_0x22dd3c=_0x522cb5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x22dd3c&&_0x3fa671['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x22dd3c&&_0x3fa671['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x22dd3c&&_0x3fa671['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2458cb=this['editor']['plugins']['get']('Annotations'),_0x1c724d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x217c06=Array['from'](_0x2458cb['activeAnnotations'],_0x36001b=>_0x36001b['innerView'])['filter'](_0x414655=>this['_viewToController']['has'](_0x414655)),_0xfefa7c=[];for(const _0x4e79d6 of _0x217c06){const _0x567a1a=this['_viewToController']['get'](_0x4e79d6)['model']['getAllAdjacentSuggestions']();_0xfefa7c['push'](..._0x567a1a['reduce']((_0x5bbdce,_0x43b049)=>[..._0x5bbdce,..._0x43b049['getMarkerNames']()],[]));}_0x1c724d['activeMarkers']=_0xfefa7c;}['_addUIComponentsToFactory'](){const _0x506d79=this['editor'],_0x2789c=_0x506d79['locale'],_0x5eec96=c(_0x2789c,'Track\x20changes'),_0x1e1224=new _0x5be8f1([{'type':'switchbutton','model':new _0x244af2({'withText':!0x0,'isToggleable':!0x0,'label':_0x5eec96,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x506d79['plugins']['has']('TrackChangesPreview')&&_0x1e1224['addMany']([{'type':'separator'},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x92240c of _0x1e1224)if(ke(_0x92240c)){const _0xfe0bc8=_0x506d79['commands']['get'](_0x92240c['model']['commandName']);_0x92240c['model']['bind']('isOn','isEnabled')['to'](_0xfe0bc8,'value','isEnabled');}_0x506d79['ui']['componentFactory']['add']('trackChanges',_0x2b373c=>this['_createToolbarButton'](_0x2b373c,_0x1e1224,_0x5eec96)),_0x506d79['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1ed666=>this['_createMenuBarMenu'](_0x1ed666,_0x1e1224,_0x5eec96));}['_createToolbarButton'](_0x14ea47,_0x120627,_0x2bc4ec){const _0x330b1f=_0x4ee41f(_0x14ea47,_0x5a0a73),_0x55acde=this['editor']['commands']['get']('trackChanges');_0x330b1f['buttonView']['set']({'tooltip':_0x2bc4ec,'label':_0x2bc4ec,'icon':_0x334860}),_0x330b1f['buttonView']['bind']('isOn')['to'](_0x55acde,'value'),_0x330b1f['buttonView']['on']('execute',()=>{_0x55acde['execute'](),this['editor']['editing']['view']['focus']();}),_0x13d791(_0x330b1f,_0x120627,{'role':'menu'});const _0x19374b=[];for(const _0x38eac4 of _0x120627)ke(_0x38eac4)&&_0x19374b['push'](this['editor']['commands']['get'](_0x38eac4['model']['commandName']));const _0x3f8eb2=_0x330b1f['buttonView'];return _0x3f8eb2['actionView']['unbind']('isEnabled'),_0x3f8eb2['arrowView']['unbind']('isEnabled'),_0x3f8eb2['actionView']['bind']('isEnabled')['to'](_0x55acde,'isEnabled'),_0x3f8eb2['arrowView']['bind']('isEnabled')['toMany'](_0x19374b,'isEnabled',(..._0x55cf2d)=>_0x55cf2d['some'](_0x5db78e=>_0x5db78e)),_0x330b1f['on']('execute',_0x26c076=>{this['editor']['execute'](_0x26c076['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x330b1f;}['_createMenuBarMenu'](_0x4d98cf,_0x318796,_0x55508e){const _0x50c949=new _0x425b5b(_0x4d98cf),_0x15baad=this['editor']['commands']['get']('trackChanges');_0x50c949['buttonView']['set']({'label':_0x55508e,'icon':_0x334860});const _0x2f9715=new _0x337c8d(_0x4d98cf);for(const _0x5b6afe of _0x318796){if('separator'==_0x5b6afe['type']){_0x2f9715['items']['add'](new _0x451473(_0x4d98cf));continue;}const _0x1f762d=new _0x1ee616(_0x4d98cf,_0x50c949),_0x5db116=new _0xb53895(_0x4d98cf),_0x5ab681=_0x5b6afe['model'];_0x5db116['bind'](...Object['keys'](_0x5ab681))['to'](_0x5ab681),_0x5db116['delegate']('execute')['to'](_0x50c949),_0x5db116['on']('execute',()=>{this['editor']['execute'](_0x5ab681['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f762d['children']['add'](_0x5db116),_0x2f9715['items']['add'](_0x1f762d);}return _0x50c949['bind']('isEnabled')['to'](_0x15baad,'isEnabled'),_0x50c949['panelView']['children']['add'](_0x2f9715),_0x50c949;}['_initializeController'](_0x925ca3){const _0x28074f=this['editor'],_0x580462=_0x28074f['config'],_0x49cf1d=_0x28074f['plugins']['get']('Annotations'),_0x41a994=_0x28074f['plugins']['get']('CommentsRepository'),_0x23bdde=_0x28074f['plugins']['get']('EditorAnnotations'),_0x2045da=_0x28074f['plugins']['get'](_0x2ea921)['me'],_0x54c69e=_0x580462['get']('trackChanges')['SuggestionThreadView'],_0x5e9eb5=_0x580462['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xd4126d,CommentThreadInputView:_0x23419e}=_0x28074f['plugins']['get']('CommentsUI');let _0x19122a,_0x4b561d,_0x448579;this['_annotationViews']['has'](_0x925ca3['id'])?(_0x4b561d=this['_annotationViews']['get'](_0x925ca3['id']),_0x19122a=_0x4b561d['mainView']):(_0x19122a=new _0x54c69e(_0x28074f['locale'],_0x925ca3,_0x2045da,{'disableComments':this['_disableComments'],'editorConfig':{..._0x580462['get']('comments.editorConfig'),'licenseKey':_0x580462['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x580462['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x580462['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x580462['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22b113(_0x580462['get']('locale')),'CommentView':_0x580462['get']('comments')['CommentView'],'CommentsListView':_0xd4126d,'CommentThreadInputView':_0x23419e,'SuggestionView':_0x5e9eb5}),_0x19122a['suggestionView']['acceptButton']['on']('execute',()=>{_0x28074f['editing']['view']['focus']();}),_0x19122a['suggestionView']['discardButton']['on']('execute',()=>{_0x28074f['editing']['view']['focus']();}),_0x4b561d=_0x49cf1d['createAnnotationView'](this['editor']['locale'],_0x19122a),_0x4b561d['bind']('isDirty')['to'](_0x19122a,'isDirty'),_0x4b561d['bind']('length')['to'](_0x19122a),_0x4b561d['bind']('type')['to'](_0x19122a,'type',_0x3492e8=>'suggestion-'+_0x3492e8),_0x19122a['on']('escape',()=>{_0x448579['fire']('escape');}),this['_annotationViews']['set'](_0x925ca3['id'],_0x4b561d));const _0xe93e4b=_0x41a994['createCommentThreadController'](_0x925ca3['commentThread'],_0x19122a),_0x3baee6=new pe(_0x28074f,_0x925ca3,_0x19122a,_0xe93e4b),_0x19808d=_0x925ca3['getAllAdjacentSuggestions']()['filter'](_0x5762cb=>_0x5762cb['isInContent']);_0x19122a['descriptionParts']=_0x28074f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19808d),this['_suggestionToController']['set'](_0x925ca3,_0x3baee6),this['_viewToController']['set'](_0x19122a,_0x3baee6),_0x448579=_0x49cf1d['createAnnotation']({'view':_0x4b561d,'target':()=>{const _0x95744a=[],_0x502908=_0x925ca3['getAllAdjacentSuggestions']()['filter'](_0x219101=>_0x219101['isInContent']);for(const _0x18e46c of _0x502908)_0x95744a['push'](..._0x18e46c['getMarkers']());return _0x1750b2(_0x28074f['editing'],_0x95744a);},'type':()=>'suggestion-'+_0x3baee6['view']['type']}),_0x41a994['_bindAnnotationToEditors'](_0x19122a,_0x448579),_0x49cf1d['add'](_0x448579),_0x23bdde['registerAnnotation'](_0x448579);}['_destroyController'](_0x1ffd7f){const _0x35bf51=this['editor']['plugins']['get']('CommentsRepository'),_0x2f0554=this['editor']['plugins']['get']('Annotations'),_0x546947=this['_suggestionToController']['get'](_0x1ffd7f),_0x4e9ca2=_0x546947['view'],_0x36fbbe=_0x2f0554['getByInnerView'](_0x4e9ca2);_0x35bf51['_unbindEditors'](_0x4e9ca2),_0x36fbbe&&_0x2f0554['remove'](_0x36fbbe),this['_suggestionToController']['delete'](_0x1ffd7f),this['_viewToController']['delete'](_0x4e9ca2),_0x546947['destroy']();}['_updateController'](_0xc400ba){if(!_0xc400ba['isInContent']||!this['_suggestionToController']['has'](_0xc400ba))return;const _0x3ff5fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ff3d=this['_suggestionToController']['get'](_0xc400ba),_0x16d3d7=_0xc400ba['getAllAdjacentSuggestions']();_0x20ff3d['view']['descriptionParts']=_0x3ff5fa['descriptionFactory']['getDescriptions'](_0x16d3d7);}['destroy'](){for(const _0x174195 of this['_suggestionToController']['keys']())this['_destroyController'](_0x174195);for(const _0x4b32bb of this['_annotationViews']['values']())_0x4b32bb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1aca90){return'model'in _0x1aca90;}class k extends _0x307cfb{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5934fb){this['editor']['plugins']['get'](p)['adapter']=_0x5934fb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x48f9d5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x48f9d5);}['getSuggestions']({skipNotAttached:_0xdf1a02=!0x1,toJSON:_0x505a8d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xdf1a02,'toJSON':_0x505a8d});}['getSuggestion'](_0x1b83c7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1b83c7);}}const w=['Pagination'];class T extends _0x307cfb{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x335341=this['editor'];if(_0x335341['config']['define']('trackChangesData.editorCreator',_0x5f5a98=>{const _0x54aaf7=_0x335341['model']['document']['getRootNames']()['reduce']((_0x32959c,_0x228192)=>(_0x32959c[_0x228192]='',_0x32959c),{});return _0x335341['constructor']['create'](_0x54aaf7,_0x5f5a98);}),'function'!=typeof _0x335341['config']['get']('trackChangesData')['editorCreator'])throw new _0x52489f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5ec0fd){return N(this['editor'],!0x0,_0x5ec0fd);}['getDataWithDiscardedSuggestions'](_0x50b416){return N(this['editor'],!0x1,_0x50b416);}}class D extends _0x307cfb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45ab52){function _0xc1dd9(_0x2a43d8){return _0x2a43d8['map'](_0x3ae46b=>String['fromCharCode'](_0x3ae46b))['join']('');}super(_0x45ab52),this['result']='end',_0x45ab52[_0xc1dd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc1dd9([0x76,0x69,0x65,0x77])][_0xc1dd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc1dd9([0x61,0x75,0x74,0x6f]),_0x45ab52[_0xc1dd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc1dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc1dd9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc1dd9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc1dd9([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 Fe(_0x1e9e02){return void 0x0!==_0x1e9e02['getRootsAttributes'];}async function N(_0x3b8094,_0x43ac11,_0x4fc993){const _0x4f9b29=_0x19f056(_0x3b8094,w);_0x4f9b29['plugins']['push'](p,D),_0x4f9b29['rootsAttributes']=Fe(_0x3b8094)?_0x3b8094['getRootsAttributes']():void 0x0;const _0x5838ac=document['createDocumentFragment'](),_0x459d69=_0x3b8094['config']['get']('trackChangesData')['editorCreator'],_0xd32fc3=await _0x459d69(_0x4f9b29,()=>function(_0x5453d0){const _0x4bd270=document['createElement']('div');return _0x5453d0['appendChild'](_0x4bd270),_0x4bd270;}(_0x5838ac));!function(_0x2149c9,_0x434d7e){const _0x163b00=_0x2149c9['model']['document']['getRootNames']()['reduce']((_0x46a442,_0x57f029)=>(_0x46a442[_0x57f029]=_0x2149c9['data']['get']({'rootName':_0x57f029}),_0x46a442),{}),_0x15cc20=_0x2149c9['plugins']['get']('Users')['users']['map'](_0xd3ece1=>({'id':_0xd3ece1['id'],'name':_0xd3ece1['name']})),_0x23508d=_0x2149c9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4bc6f5=_0x2149c9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24437a=_0x434d7e['plugins']['get']('Users'),_0x4201ce=_0x434d7e['plugins']['get']('TrackChangesEditing'),_0x186a27=_0x434d7e['plugins']['get']('CommentsRepository');for(const _0xe6640e of _0x186a27['getCommentThreads']())_0xe6640e['remove']();for(const _0x576b3a of _0x15cc20)_0x24437a['getUser'](_0x576b3a['id'])||_0x24437a['addUser'](_0x576b3a);_0x24437a['me']||_0x24437a['useAnonymousUser']();for(const _0x56fdbf of _0x4bc6f5)_0x186a27['addCommentThread'](_0x56fdbf);for(const _0x3f959a of _0x23508d)_0x4201ce['addSuggestionData'](_0x3f959a);_0x434d7e['data']['set'](_0x163b00);}(_0x3b8094,_0xd32fc3),_0xd32fc3['execute'](_0x43ac11?'acceptAllSuggestions':'discardAllSuggestions');const _0xc86cf1=Fe(_0xd32fc3)?_0xd32fc3['getFullData'](_0x4fc993):_0xd32fc3['data']['get'](_0x4fc993);return await _0xd32fc3['destroy'](),_0xc86cf1;}class Me extends _0x30d4d1{['options'];constructor(_0x22306b,_0x2464f6){super(_0x22306b),this['options']=_0x2464f6,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'](_0x504af8,_0x44bf86){if(!this['element'])return;const _0x393d37=[];for(const [_0x612312,_0x586a99]of _0x504af8){const _0x2f171f=document['createElement']('div');_0x2f171f['setAttribute']('data-ck-root-name',_0x612312),_0x2f171f['className']=_0x586a99['classes']+'\x20ck-track-changes-preview__root-container',_0x2f171f['innerHTML']=_0x586a99['content'],_0x393d37['push'](_0x2f171f);}_0x44bf86(this['element'],_0x393d37),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1ab01a{constructor(_0x3db8c7){super(_0x3db8c7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1c1e4b=this['editor'],_0x240491=_0x1c1e4b['locale'],_0x123cac=_0x1c1e4b['plugins']['get']('Dialog');let _0x187667;const _0x2aa60f=function(_0x326a2e){const _0x5d81de={};if('editables'in _0x326a2e['ui']['view']){for(const [_0x10cf33,_0x1ffe25]of Object['entries'](_0x326a2e['ui']['view']['editables']))_0x5d81de[_0x10cf33]=_0x1ffe25['element'];}else _0x5d81de[_0x326a2e['model']['document']['getRootNames']()[0x0]]=_0x326a2e['ui']['view']['editable']['element'];return _0x5d81de;}(_0x1c1e4b),_0x2b8613=function(_0x53cffc){let _0x207bf3=0x0;for(const _0x58801c of Object['values'](_0x53cffc))_0x207bf3=Math['max'](_0x207bf3,_0x58801c['getBoundingClientRect']()['width']);let _0x38af99=0x0;for(const _0x350e51 of Object['values'](_0x53cffc))_0x38af99+=_0x350e51['getBoundingClientRect']()['height'];const _0x3c916a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x409a11=Math['min'](_0x38af99,_0x3c916a);return{'width':_0x207bf3,'height':_0x409a11};}(_0x2aa60f);_0x123cac['show']({'id':'finalContentPreview','title':c(_0x240491,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x240491,{'dialogRects':_0x2b8613}),'onHide':()=>{_0x187667['detachFromDom']();},'onShow':()=>{_0x1c1e4b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x313e3e=>{const _0x32c842=this['_standarizeRootsData'](_0x313e3e,_0x1c1e4b,_0x2aa60f);_0x123cac['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x32c842,_0x1c1e4b['config']['get']('trackChanges.preview.renderFunction'));}),_0x187667=new _0x3a656f(_0x240491,[_0x123cac['view']]),_0x187667['attachToDom'](),_0x187667['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1c1e4b['once']('destroy',()=>{_0x187667['detachFromDom']();});const _0x57d8b1=_0x123cac['view']['headerView']['class'];_0x123cac['view']['headerView']['class']=_0x57d8b1?_0x57d8b1+'\x20ck-reset_all':'ck-reset_all',_0x123cac['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x123cac['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xfb5253=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x597093=_0xfb5253['previewMode'],_0x2b66aa={};if('$labels'===_0x597093){for(const _0x1d1cbc of _0xfb5253['getMergeFieldsIds']())_0x2b66aa[_0x1d1cbc]=_0xfb5253['getLabel'](_0x1d1cbc)||_0x1d1cbc;}else{const _0x5820bd='$defaultValues'===_0x597093?_0xfb5253['getDefaultValues']():_0xfb5253['getDataSetValues'](_0x597093,!0x0);for(const _0x10c4d8 of Object['entries'](_0x5820bd)){const [_0x4c5bb5,_0x817f90]=_0x10c4d8;_0x2b66aa[_0x4c5bb5]=null!==_0x817f90?_0x817f90:_0xfb5253['getLabel'](_0x4c5bb5)||_0x4c5bb5;}}return{'mergeFieldsData':_0x2b66aa};}['_standarizeRootsData'](_0x4d720d,_0x5bd279,_0x5ef41e){let _0x4fe1bd;if('string'==typeof _0x4d720d){const _0x5c9fd3=_0x5bd279['model']['document']['getRootNames']()[0x0];_0x4fe1bd={[_0x5c9fd3]:_0x4d720d};}else _0x4fe1bd=_0x4d720d;const _0xb5148f=this['_fixMediaEmbeds'](_0x4fe1bd,_0x5bd279),_0x310a75=function(_0x104792,_0x39b1f2){for(const [_0x232777,_0x228f83]of _0x104792)_0x228f83['classes']=_0x39b1f2[_0x232777]['classList']['value']['replace']('ck-focused','');return _0x104792;}(this['_sortRoots'](_0x5bd279)['reduce']((_0xc92f51,_0x559f91)=>(_0xc92f51['push']([_0x559f91,{'content':_0xb5148f[_0x559f91],'classes':''}]),_0xc92f51),[]),_0x5ef41e);return _0x310a75;}['_fixMediaEmbeds'](_0x9978f9,_0x367f38){if(!_0x367f38['plugins']['has']('MediaEmbedEditing'))return _0x9978f9;const _0x1a50e0=_0x367f38['plugins']['get']('MediaEmbedEditing');for(const [_0x2d251a,_0x53f2e7]of Object['entries'](_0x9978f9)){const _0x388555=document['createElement']('div');_0x388555['innerHTML']=_0x53f2e7,(_0x388555['querySelectorAll']('figure.media')['forEach'](_0x2d78ee=>{const _0x399b1b=_0x2d78ee['querySelector']('oembed');if(_0x399b1b){const _0xcda282=_0x399b1b['getAttribute']('url');if(_0xcda282){const _0x438fee=_0x1a50e0['registry']['getMediaViewElement'](new _0x4ea2cc(_0x367f38['editing']['view']['document']),_0xcda282,{'elementName':'','renderForEditingView':!0x0}),_0x391504=document['createElement']('div');_0x391504['classList']['add']('ck-media__wrapper'),_0x438fee['render'](_0x391504,_0x367f38['editing']['view']['domConverter']),_0x399b1b['replaceWith'](_0x391504);}}}),_0x9978f9[_0x2d251a]=_0x388555['innerHTML']);}return _0x9978f9;}['_sortRoots'](_0x377d37){if(!function(_0x405521){return void 0x0!==_0x405521['getRootsAttributes'];}(_0x377d37))return _0x377d37['model']['document']['getRootNames']();const _0x2c26c3=[],_0x143f71=new Map();for(const _0x580bfc of _0x377d37['model']['document']['getRootNames']()){const _0x1dad20=_0x377d37['editing']['view']['getDomRoot'](_0x580bfc)['getClientRects']()['item'](0x0);_0x2c26c3['push'](_0x580bfc),_0x143f71['set'](_0x580bfc,_0x1dad20);}return _0x2c26c3['sort']((_0xa50513,_0x4a2b79)=>{const _0x217340=_0x143f71['get'](_0xa50513),_0x4fd8d3=_0x143f71['get'](_0x4a2b79);return _0x217340['y']-_0x4fd8d3['y']||_0x217340['x']-_0x4fd8d3['x'];}),_0x2c26c3;}}class te extends _0x307cfb{static get['requires'](){return[T,_0x3fccae];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19ba7d){super(_0x19ba7d),_0x19ba7d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x19ba7d['config']['define']('trackChanges.preview.renderFunction',(_0x5e7764,_0x2fdfb2)=>{for(const _0x3097b5 of _0x2fdfb2)_0x5e7764['appendChild'](_0x3097b5);});}}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 _0x46c601,Plugin as _0x368c11,PendingActions as _0x56125d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x921117,ObservableMixin as _0x3d99c5,uid as _0x2ea4c3,priorities as _0x79d5b2,insertToPriorityArray as _0x5b49b4,logWarning as _0x58f0f1,getEnvKeystrokeText as _0x3e2c26,FocusTracker as _0x1a4c5d,KeystrokeHandler as _0x5eb6eb,Collection as _0x233d6f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x48959a,IconCancel as _0x2a4cef,IconTrackChanges as _0x5b2a51}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x511ff4,View as _0x2baa4b,ViewCollection as _0x20fb58,FocusCycler as _0x366294,ViewModel as _0x45532b,createDropdown as _0x4315a1,SplitButtonView as _0x936d1,addListToDropdown as _0x4a36cd,MenuBarMenuView as _0x4e63f9,MenuBarMenuListView as _0x23aa5e,ListSeparatorView as _0x34a850,MenuBarMenuListItemView as _0x2a8dc1,MenuBarMenuListItemButtonView as _0x1b9a32,BodyCollection as _0x287a96,Dialog as _0x165194}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x329083,hashObject as _0x21fcb1,surroundingMarkersDetector as _0x2b0b75,FOCUS_ANNOTATION_KEYSTROKE as _0x16fc57,AriaDescriptionView as _0xc3e34,setupThreadKeyboardNavigation as _0x5f3251,trimHtml as ti,UserView as _0x4112db,LateFocusButtonView as _0x4efd78,getDateTimeFormatter as _0x187b0c,getAllMarkersDomElementsSorted as _0x9fb501,sanitizeEditorConfig as _0x5adfcb}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x33534d,LiveRange as _0x2b7c87,LivePosition as _0x22afac,DowncastWriter as _0x2e2cfe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x505b5a,toWidget as _0x3d756d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5dd10a,set as _0x214c7d,isEqual as _0x35d3c5,unset as _0x4626ce,omit as Vt}from'es-toolkit/compat';import{Delete as _0x5edd43,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x56df10,ShiftEnter as _0xb8357f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x46c601{['_enabledCommands'];constructor(_0x198612,_0x280eef){super(_0x198612),this['_enabledCommands']=_0x280eef,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 _0x9dc11c of this['editor']['commands']['commands']())_0x9dc11c['affectsData']&&!this['_enabledCommands']['has'](_0x9dc11c)&&_0x9dc11c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5c1d14 of this['editor']['commands']['commands']())_0x5c1d14['affectsData']&&!this['_enabledCommands']['has'](_0x5c1d14)&&_0x5c1d14['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x46c601{['_suggestions'];constructor(_0x580ccb,_0x46a8c0){super(_0x580ccb),this['_suggestions']=_0x46a8c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f954c){const _0x2b9a81=this['_suggestions']['get'](_0x3f954c);if(!_0x2b9a81)throw new _0x921117('track-changes-accept-suggestion-not-found',this);const _0x5d81f8=_0x2b9a81['getRanges']();this['editor']['model']['canEditAt'](_0x5d81f8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2b9a81);}}class R extends _0x46c601{['_suggestions'];constructor(_0x510b5e,_0x15d851){super(_0x510b5e),this['_suggestions']=_0x15d851,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54add2){const _0x214167=this['_suggestions']['get'](_0x54add2);if(!_0x214167)throw new _0x921117('track-changes-discard-suggestion-not-found',this);const _0x55390e=_0x214167['getRanges']();this['editor']['model']['canEditAt'](_0x55390e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x214167);}}function ls(_0x50e9df,_0x29a2ad){let _0x149d3a='';return _0x149d3a+=_0x50e9df['split']('*')['map']((_0x36398c,_0x49905d)=>_0x49905d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x36398c)+'</span>':nn(_0x36398c))['join'](''),_0x29a2ad&&(_0x149d3a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x29a2ad['value']+'\x22\x20title=\x22'+_0x29a2ad['title']+'\x22></span>'),_0x149d3a;}function nn(_0x170dfd){const _0x3f093f=document['createElement']('span');return _0x3f093f['innerText']=_0x170dfd,_0x3f093f['innerHTML'];}function ts(_0x224bab){return _0x224bab['sort']((_0x46daaf,_0x4462b1)=>'deletion'==_0x46daaf['type']&&'deletion'!=_0x4462b1['type']?-0x1:'deletion'!=_0x46daaf['type']&&'deletion'==_0x4462b1['type']?0x1:0x0);}function Zt(_0x462ed5,_0x2f6aa9){let _0x48f272,_0x3a24b9=0x0;const _0x2be1f7=[],_0x359b58=_0x2f6aa9['schema'];for(;_0x3a24b9<_0x462ed5['length'];){const _0x1ff395=_0x462ed5[_0x3a24b9],_0x259a7e=_0x462ed5[_0x3a24b9+0x1];_0x48f272||(_0x48f272=_0x2f6aa9['createPositionBefore'](_0x1ff395)),on(_0x2f6aa9,_0x1ff395,_0x259a7e)||(_0x2be1f7['push'](_0x2f6aa9['createRange'](_0x48f272,_0x359b58['isObject'](_0x1ff395)?_0x2f6aa9['createPositionAfter'](_0x1ff395):_0x2f6aa9['createPositionAt'](_0x1ff395,'end'))),_0x48f272=null),_0x3a24b9++;}return _0x2be1f7;}function on(_0x255624,_0x314952,_0x14ba1c){if(!_0x14ba1c)return!0x1;const _0x3273d5=_0x255624['createPositionAfter'](_0x314952),_0x446407=_0x255624['createPositionBefore'](_0x14ba1c);return _0x3273d5['isTouching'](_0x446407);}function rs(_0x25b240,_0x5ea8ed,_0x1694aa){for(;_0x1694aa['length'];){const _0x38723c=_0x1694aa['splice'](0x0,0x64);_0x25b240['change'](()=>{for(const _0x30546c of _0x38723c)_0x30546c['isInContent']&&_0x5ea8ed['execute'](_0x30546c['id']);});}}class x extends _0x46c601{['_command'];['_suggestions'];constructor(_0x205308,_0x5f09a9,_0x42db24){super(_0x205308),this['_command']=_0x5f09a9,this['_suggestions']=_0x42db24,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5ef731=Array['from'](this['_suggestions']['values']())['some'](_0x3eaa98=>_0x3eaa98['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5ef731;}['execute'](){const _0x3ee3e3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2da505 of _0x3ee3e3){const _0x4d90d9=_0x2da505['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d90d9))return;}rs(this['editor']['model'],this['_command'],_0x3ee3e3);}}class E extends _0x46c601{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x294be3,_0x2b9973,_0x4e56cf){super(_0x294be3),this['_command']=_0x2b9973,this['_suggestions']=_0x4e56cf,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d2386=this['editor']['model']['document']['selection'],_0x1e5fb5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5343c7,_0x312f81){const _0x39625b=Array['from'](_0x5343c7['getRanges']()),_0x3c8089=new Set();for(const _0x44202f of _0x312f81)if(_0x44202f['isInContent']){for(const _0x1fa7fc of _0x39625b)for(const _0x3af545 of _0x44202f['getRanges']())(_0x1fa7fc['isIntersecting'](_0x3af545)||_0x5343c7['isCollapsed']&&!_0x44202f['isMultiRange']&&_0x44202f['next']&&_0x3af545['end']['isTouching'](_0x1fa7fc['start']))&&_0x3c8089['add'](_0x44202f);}return _0x3c8089;}(_0x2d2386,_0x1e5fb5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1f365c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x41f6d6 of _0x1f365c){const _0x5f1e22=_0x41f6d6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5f1e22))return;}rs(this['editor']['model'],this['_command'],_0x1f365c);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x3d99c5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4a71f8,_0x1a5e68){super(),this['id']=_0x1a5e68['id'],this['type']=_0x1a5e68['type'],this['subType']=_0x1a5e68['subType']||null,this['author']=_0x1a5e68['author'],this['creator']=_0x1a5e68['creator']||_0x1a5e68['author'],this['isExternal']=Boolean(_0x1a5e68['attributes']&&_0x1a5e68['attributes']['@external']),this['data']=null,this['_model']=_0x4a71f8,this['_onAccept']=_0x1a5e68['onAccept'],this['_onDiscard']=_0x1a5e68['onDiscard'],this['_onAttributesChange']=_0x1a5e68['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a5e68['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 _0x255488=this;for(;_0x255488['previous'];)_0x255488=_0x255488['previous'];return _0x255488;}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'](_0x2ca9f2){this['_markerNames']['add'](_0x2ca9f2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x287810=>this['_model']['markers']['get'](_0x287810))['filter'](_0x3c2fc5=>_0x3c2fc5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c70d2=>{for(const _0x29addc of this['getMarkers']())_0x3c70d2['removeMarker'](_0x29addc);}),this['_markerNames']['clear']();}['removeMarker'](_0x578920){this['_model']['change'](_0x16c3c8=>{_0x16c3c8['removeMarker'](_0x578920);}),this['_markerNames']['delete'](_0x578920);}['addRange'](_0x221c6f){const _0xe15ab1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xe15ab1),this['_model']['change'](_0x3caed1=>{_0x3caed1['addMarker'](_0xe15ab1,{'range':_0x221c6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x26ab11){for(const _0x1a406e of this['getRanges']())if(_0x1a406e['isIntersecting'](_0x26ab11))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x7fb8b2=>_0x7fb8b2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fa479,_0x9cfee2)=>[..._0x2fa479,..._0x9cfee2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x50bd45=this['getRanges']();if(0x1!=_0x50bd45['length'])return null;const _0x2553fd=_0x50bd45[0x0],_0x53fb65=_0x2553fd['start']['nodeAfter'],_0x42ea5f=_0x2553fd['end']['nodeBefore'];return _0x53fb65 instanceof _0x33534d?_0x53fb65!=_0x42ea5f?null:_0x53fb65: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 _0x765253=[];let _0x128d2a=this['head'];for(;_0x128d2a;)_0x765253['push'](_0x128d2a),_0x128d2a=_0x128d2a['next'];return _0x765253;}['setAttribute'](_0xa8e2b1,_0x920c38){const _0x45668c=_0x5dd10a(this['attributes']);_0x214c7d(_0x45668c,_0xa8e2b1,_0x920c38),_0x35d3c5(_0x45668c,this['attributes'])||(this['attributes']=_0x45668c,this['_onAttributesChange'](_0x45668c));}['removeAttribute'](_0x5a1594){const _0x5389b9=_0x5dd10a(this['attributes']);_0x4626ce(_0x5389b9,_0x5a1594),_0x35d3c5(_0x5389b9,this['attributes'])||(this['attributes']=_0x5389b9,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 _0x2ea4c3()['substr'](0x1,0x5);}}function c(_0x12c43c,_0x18c3ca,_0x52c6d8){const _0x5a773b=_0x12c43c['t'],t=_0x12c43c['t'];switch(_0x18c3ca){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',_0x52c6d8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x52c6d8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x52c6d8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x52c6d8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x52c6d8);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',_0x52c6d8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x52c6d8);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',_0x52c6d8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x52c6d8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x52c6d8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x52c6d8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x52c6d8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x52c6d8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x52c6d8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x52c6d8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x52c6d8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x52c6d8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x52c6d8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x52c6d8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x52c6d8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x52c6d8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x52c6d8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x52c6d8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x52c6d8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x52c6d8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x52c6d8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x52c6d8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x52c6d8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x52c6d8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x52c6d8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x52c6d8);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'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x52c6d8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x52c6d8);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 _0x5a773b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x52c6d8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5a773b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x52c6d8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x52c6d8);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'},_0x52c6d8);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'},_0x52c6d8);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'},_0x52c6d8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x18c3ca;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x157282,_0x582590){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x157282,this['_locale']=_0x582590;}['getDescriptions'](_0x5c50b4){const _0xa1f9a7=[],_0x2970a8=new Set(),_0x45e5d1=new Set();for(let _0x361afd=0x0;_0x361afd<_0x5c50b4['length'];_0x361afd++){const _0x350df3=_0x5c50b4[_0x361afd];if(!_0x350df3['isInContent'])continue;const _0x1ff8e6=this['_handleCustomCallbackDescription'](_0x350df3);if(_0x1ff8e6){if(null!=_0x350df3['subType']){if(_0x2970a8['has'](_0x350df3['subType']))continue;_0x2970a8['add'](_0x350df3['subType']);}_0xa1f9a7['push'](_0x1ff8e6);}else{if('attribute'!=_0x350df3['type'])'insertion'!=_0x350df3['type']&&'deletion'!=_0x350df3['type']||this['_handleInsertRemoveSuggestionDescription'](_0xa1f9a7,_0x350df3,_0x5c50b4[_0x361afd+0x1]);else{const _0x4dc30c=_0x350df3['data']['key'];if(_0x45e5d1['has'](_0x4dc30c))continue;_0x45e5d1['add'](_0x350df3['data']['key']),_0x4dc30c==u?this['_handleRenameSuggestionDescription'](_0xa1f9a7,_0x350df3):this['_handleAttributeSuggestionDescription'](_0xa1f9a7,_0x350df3);}}}return this['_resolveDescriptionItems'](_0xa1f9a7);}['registerDescriptionCallback'](_0x3abc72){this['_customCallbacks']['push'](_0x3abc72);}['registerElementLabel'](_0x4b5a84,_0x180394,_0x4f175a=_0x79d5b2['normal']){'function'==typeof _0x4b5a84?_0x5b49b4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b5a84,'label':_0x180394,'priority':_0x4f175a}):this['_itemLabels']['set'](_0x4b5a84,_0x180394);}['registerAttributeLabel'](_0x114536,_0x3c2db0){this['_attributeLabels']['set'](_0x114536,_0x3c2db0);}['getItemLabel'](_0x15c13f,_0x419736=0x1){let _0xfa0f57;for(const _0x12d4b7 of this['_itemLabelsCallbacks'])if(_0x12d4b7['matchingCallback'](_0x15c13f)){_0xfa0f57=_0x12d4b7['label'];break;}return _0xfa0f57||(_0xfa0f57=this['_itemLabels']['get'](_0x15c13f['name'])),_0xfa0f57?_0xfa0f57(_0x419736):0x1!==_0x419736?_0x419736+'\x20'+_0x15c13f['name']+'s':''+_0x15c13f['name'];}['_addDescriptionItems'](_0x36feae,_0x540941){const _0x5bdf30=_0x540941['getFirstRange']()['getWalker'](),_0x36a9fb='insertion'==_0x540941['type']?'add':'remove';for(const _0x498bf5 of _0x5bdf30){const _0x2fa952=_0x498bf5['item'],_0x5602e0=_0x36feae[_0x36feae['length']-0x1];if(_0x2fa952['is']('$textProxy'))_0x5602e0&&_0x5602e0['type']['indexOf']('Container')>-0x1&&_0x36feae['pop'](),_0x5602e0&&'text'==_0x5602e0['type']?_0x5602e0[_0x36a9fb]+=_0x2fa952['data']:_0x36feae['push']({'type':'text','add':'add'==_0x36a9fb?_0x2fa952['data']:'','remove':'remove'==_0x36a9fb?_0x2fa952['data']:''});else{if(this['_schema']['isObject'](_0x2fa952)){const _0x5d820b=_0x2fa952;if(_0x5602e0&&_0x5602e0['type']['indexOf']('Container')>-0x1&&_0x36feae['pop'](),'elementEnd'==_0x498bf5['type'])continue;_0x5602e0&&_0x5602e0['type']==_0x36a9fb+'Object'&&_0x5602e0['element']['name']==_0x5d820b['name']?_0x5602e0['quantity']++:_0x36feae['push']({'type':_0x36a9fb+'Object','element':_0x5d820b,'quantity':0x1}),_0x5bdf30['skip'](_0x403f8b=>!('elementEnd'==_0x403f8b['type']&&_0x403f8b['item']==_0x2fa952));}else{if(this['_schema']['checkChild'](_0x2fa952,'$text')||_0x2fa952['is']('element','softBreak')){const _0x775225=_0x2fa952;if('add'==_0x36a9fb&&'elementStart'==_0x498bf5['type']||'remove'==_0x36a9fb&&'elementEnd'==_0x498bf5['type'])continue;if(_0x5602e0&&-0x1==_0x5602e0['type']['indexOf']('Container')){'text'==_0x5602e0['type']&&(_0x5602e0[_0x36a9fb]+='\x0a');continue;}let _0x1d2acf;if(_0x1d2acf='add'==_0x36a9fb?_0x775225['nextSibling']&&!this['_schema']['isObject'](_0x775225['nextSibling'])?_0x775225['nextSibling']:null:_0x775225['previousSibling']&&!this['_schema']['isObject'](_0x775225['previousSibling'])?_0x775225['previousSibling']:null,_0x775225['isEmpty']||_0x1d2acf&&_0x1d2acf['isEmpty']){const _0x4ee66e=_0x1d2acf&&_0x1d2acf['isEmpty']?_0x1d2acf:_0x775225;_0x5602e0&&_0x5602e0['type']==_0x36a9fb+'EmptyContainer'&&_0x5602e0['element']['name']==_0x4ee66e['name']?_0x5602e0['quantity']++:_0x36feae['push']({'type':_0x36a9fb+'EmptyContainer','element':_0x4ee66e,'quantity':0x1});}else _0x36feae['push']({'type':_0x36a9fb+'Container','element':_0x775225});}}}}}['_resolveDescriptionItems'](_0x32d02f){const _0x46069f=this['_locale'],_0x28bbd6=[],_0x419cbd=[],_0x30b88c=[];for(const _0x3cbd9b of _0x32d02f)switch(_0x3cbd9b['type']){case'text':if(_0x3cbd9b['add']=_0x3cbd9b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cbd9b['remove']=_0x3cbd9b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cbd9b['add']&&''!=_0x3cbd9b['remove']){_0x28bbd6['push']({'type':'replace','content':c(_0x46069f,'REPLACE_TEXT',['\x22'+_0x3cbd9b['remove']+'\x22','\x22'+_0x3cbd9b['add']+'\x22'])});continue;}if(null!=_0x3cbd9b['add']['match'](/^ +$/)){_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Insert:*\x20%0',c(_0x46069f,'ELEMENT_SPACE',_0x3cbd9b['add']['length']))});continue;}if(null!=_0x3cbd9b['remove']['match'](/^ +$/)){_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Remove:*\x20%0',c(_0x46069f,'ELEMENT_SPACE',_0x3cbd9b['remove']['length']))});continue;}if(''!=_0x3cbd9b['add']){_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Insert:*\x20%0','\x22'+_0x3cbd9b['add']+'\x22')});continue;}_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Remove:*\x20%0','\x22'+_0x3cbd9b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Insert:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Remove:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'addContainer':_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Split:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'removeContainer':_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Merge:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'addFormat':_0x419cbd['push'](_0x3cbd9b['key']);continue;case'removeFormat':_0x30b88c['push'](_0x3cbd9b['key']);continue;default:_0x28bbd6['push'](_0x3cbd9b);}if(_0x419cbd['length']){const _0x23e4b6=_0x419cbd['map'](_0xd471c9=>this['_attributeLabels']['has'](_0xd471c9)?this['_attributeLabels']['get'](_0xd471c9):_0xd471c9)['join'](',\x20');_0x28bbd6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x23e4b6)});}if(_0x30b88c['length']){const _0x460df4=_0x30b88c['map'](_0x3ce821=>this['_attributeLabels']['has'](_0x3ce821)?this['_attributeLabels']['get'](_0x3ce821):_0x3ce821)['join'](',\x20');_0x28bbd6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x460df4)});}return _0x28bbd6;}['_handleCustomCallbackDescription'](_0x4781c9){for(const _0x5b1ba5 of this['_customCallbacks']){const _0xb398a5=_0x5b1ba5(_0x4781c9);if(_0xb398a5&&'type'in _0xb398a5)return _0xb398a5;}}['_handleAttributeSuggestionDescription'](_0x525082,_0xac5ec9){const _0x335cd3=_0xac5ec9['data'],_0x42484e=void 0x0===_0x335cd3['newValue']?'removeFormat':'addFormat';_0x525082['push']({'type':_0x42484e,'key':_0x335cd3['key']});}['_handleRenameSuggestionDescription'](_0x54947e,_0x50f4d7){_0x54947e['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50f4d7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3390e0,_0x5d8102,_0x5bd17d){if(this['_addDescriptionItems'](_0x3390e0,_0x5d8102),_0x5bd17d&&_0x5bd17d['getFirstRange']()&&!_0x5d8102['getFirstRange']()['end']['isEqual'](_0x5bd17d['getFirstRange']()['start'])){const _0x23d21e=_0x3390e0[_0x3390e0['length']-0x1],_0xd97438='insertion'==_0x5d8102['type']?'add':'remove';_0x23d21e&&'text'==_0x23d21e['type']&&(_0x23d21e[_0xd97438]+='\x0a');}}}class U extends _0x368c11{['afterInit'](){const _0x4dd570=this['editor'],_0x3e7913=_0x4dd570['plugins']['get']('TrackChangesEditing');_0x4dd570['commands']['get']('showAIAssistant')&&_0x3e7913['enableCommand']('showAIAssistant');}}class V extends _0x368c11{['afterInit'](){const _0x2ad720=this['editor'],_0x5c3db7=_0x2ad720['locale'];if(!_0x2ad720['plugins']['has']('AlignmentEditing'))return;const _0x45f1dc=_0x2ad720['plugins']['get']('TrackChangesEditing');_0x45f1dc['enableDefaultAttributesIntegration']('alignment'),_0x45f1dc['registerBlockAttribute']('alignment'),_0x45f1dc['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5c3db7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f38b0=this['editor'],_0x320a46=_0x1f38b0['locale'];_0x1f38b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ff66=>{if('formatBlock'!=_0x30ff66['type'])return;const {data:_0x5343b7}=_0x30ff66;if(_0x5343b7&&'alignment'==_0x5343b7['commandName']){const _0x12f1dd=_0x5343b7['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x320a46,'*Format:*\x20%0',function(_0xa4889b){switch(_0xa4889b){case'left':return c(_0x320a46,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x320a46,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x320a46,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x320a46,'FORMAT_JUSTIFY_TEXT');}}(_0x12f1dd))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x368c11{['afterInit'](){const _0x44adc7=this['editor'],_0x531b42=_0x44adc7['plugins']['get']('TrackChangesEditing'),_0x12e35d=_0x44adc7['locale'];for(const _0x5dbeaf of Yt){if(!_0x44adc7['plugins']['has'](_0x5dbeaf))continue;const _0x1428f9=_0x5dbeaf['slice'](0x0,-0x7)['toLowerCase'](),_0x109ea6='FORMAT_'+_0x1428f9['toUpperCase']();_0x531b42['enableDefaultAttributesIntegration'](_0x1428f9),_0x531b42['registerInlineAttribute'](_0x1428f9),_0x531b42['descriptionFactory']['registerAttributeLabel'](_0x1428f9,c(_0x12e35d,_0x109ea6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x378383=this['editor'],_0x58b707=_0x378383['locale'],_0x7ba13a=_0x378383['plugins']['get']('TrackChangesEditing');function _0x32fd2b(_0x44be88,_0x469fd6){_0x7ba13a['descriptionFactory']['registerDescriptionCallback'](_0x1d0157=>{if('formatInline'!=_0x1d0157['type'])return;const {data:_0x1a1c3f}=_0x1d0157;return _0x1a1c3f&&_0x1a1c3f['commandName']===_0x44be88?_0x1a1c3f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58b707,'*Format:*\x20%0',_0x469fd6)}:{'type':'format','content':c(_0x58b707,'*Remove\x20format:*\x20%0',_0x469fd6)}:void 0x0;});}_0x32fd2b('bold',c(_0x58b707,'FORMAT_BOLD')),_0x32fd2b('italic',c(_0x58b707,'FORMAT_ITALIC')),_0x32fd2b('underline',c(_0x58b707,'FORMAT_UNDERLINE')),_0x32fd2b('code',c(_0x58b707,'FORMAT_CODE')),_0x32fd2b('strikethrough',c(_0x58b707,'FORMAT_STRIKETHROUGH')),_0x32fd2b('subscript',c(_0x58b707,'FORMAT_SUBSCRIPT')),_0x32fd2b('superscript',c(_0x58b707,'FORMAT_SUPERSCRIPT'));}}class G extends _0x368c11{['afterInit'](){const _0x2466ef=this['editor'],_0x57d468=_0x2466ef['locale'];if(!_0x2466ef['plugins']['has']('BlockQuoteEditing'))return;const _0x4fe740=_0x2466ef['plugins']['get']('TrackChangesEditing'),_0x341b42=this['editor']['commands']['get']('blockQuote');_0x4fe740['enableCommand']('blockQuote',(_0x55d567,_0x11895e={})=>{const _0x542dce=this['editor']['model']['document']['selection'],_0x29ee4e=_0x11895e&&void 0x0!==_0x11895e['forceValue']?_0x11895e['forceValue']:!_0x341b42['value'];let _0x423370=[];if(_0x29ee4e){const _0x3b75c7=Array['from'](_0x542dce['getSelectedBlocks']())['filter'](_0x12c376=>to(_0x12c376)||function(_0x21f150,_0x1150d7){const _0xd21df8=_0x1150d7['checkChild'](_0x21f150['parent'],'blockQuote'),_0x5c3bd9=_0x1150d7['checkChild'](['$root','blockQuote'],_0x21f150);return _0xd21df8&&_0x5c3bd9;}(_0x12c376,this['editor']['model']['schema']));_0x423370=Zt(_0x3b75c7,_0x2466ef['model']);}else{const _0x29dd28=Array['from'](_0x542dce['getSelectedBlocks']())['filter'](_0x82247b=>to(_0x82247b));_0x423370=Zt(_0x29dd28,_0x2466ef['model']);}_0x2466ef['model']['change'](()=>{for(const _0x407392 of _0x423370)_0x4fe740['markBlockFormat'](_0x407392,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29ee4e}]});});}),_0x4fe740['descriptionFactory']['registerDescriptionCallback'](_0x2c0d87=>{const {data:_0x1a56c4}=_0x2c0d87;if(_0x1a56c4&&'blockQuote'==_0x1a56c4['commandName']){const _0x2e1185=c(_0x57d468,'ELEMENT_BLOCK_QUOTE');return _0x1a56c4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x57d468,'*Set\x20format:*\x20%0',_0x2e1185)}:{'type':'format','content':c(_0x57d468,'*Remove\x20format:*\x20%0',_0x2e1185)};}});}}function to(_0x47eaa5){return'blockQuote'==_0x47eaa5['parent']['name'];}class L extends _0x368c11{['afterInit'](){const _0x2cb10f=this['editor'],_0xcfac0a=_0x2cb10f['locale'],_0x2e7495=_0x2cb10f['plugins']['get']('TrackChangesEditing');_0x2cb10f['plugins']['has']('BookmarkEditing')&&(_0x2e7495['enableCommand']('insertBookmark'),_0x2e7495['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e7495['registerBlockAttribute']('bookmarkId'),_0x2e7495['descriptionFactory']['registerDescriptionCallback'](_0x13951f=>{if('insertion'!=_0x13951f['type']&&'deletion'!=_0x13951f['type']&&'attribute'!=_0x13951f['type'])return;const _0x4bd847=_0x13951f['getContainedElement']();if(null==_0x4bd847)return;if(!_0x4bd847['is']('element','bookmark'))return;const _0x45b28b=_0x4bd847['getAttribute']('bookmarkId');if('insertion'==_0x13951f['type'])return{'type':'insertion','content':c(_0xcfac0a,'*Insert:*\x20%0','\x22'+_0x45b28b+'\x22\x20'+c(_0xcfac0a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x13951f['type'])return{'type':'deletion','content':c(_0xcfac0a,'*Remove:*\x20%0','\x22'+_0x45b28b+'\x22\x20'+c(_0xcfac0a,'ELEMENT_BOOKMARK'))};const {data:_0x6bfea}=_0x13951f;if(!_0x6bfea||'bookmarkId'!=_0x6bfea['key'])return;return{'type':'format','content':c(_0xcfac0a,'*Set\x20bookmark:*\x20%0','\x22'+_0x6bfea['newValue']+'\x22')};}));}}class J extends _0x368c11{['afterInit'](){const _0x3cda30=this['editor'];_0x3cda30['plugins']['has']('CaseChange')&&(_0x3cda30['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cda30['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cda30['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x368c11{['afterInit'](){const _0x1d91be=this['editor'];_0x1d91be['commands']['get']('ckbox')&&_0x1d91be['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x368c11{['afterInit'](){const _0xd7e01b=this['editor'];if(!_0xd7e01b['plugins']['has']('CodeBlock'))return;const _0x316910=_0xd7e01b['plugins']['get']('TrackChangesEditing'),_0x9e0b81=_0xd7e01b['locale'],_0x554400=_0xd7e01b['config']['get']('codeBlock')['languages'],_0x18e780=_0xd7e01b['commands']['get']('codeBlock');_0x316910['enableCommand']('indentCodeBlock'),_0x316910['enableCommand']('outdentCodeBlock'),_0x316910['enableCommand']('codeBlock',(_0x15ccd8,_0x4a6009={})=>{const _0x9320dc=_0xd7e01b['model'],_0x576e9c=_0xd7e01b['model']['document']['selection'],_0xd9867c=_0x4a6009&&void 0x0!==_0x4a6009['forceValue']?_0x4a6009['forceValue']:!_0x18e780['value'];let _0x4be31c;_0x4a6009['language']||(_0x4a6009['language']=_0x554400[0x0]['language']),_0x4be31c=_0xd9867c?Array['from'](_0x576e9c['getSelectedBlocks']())['filter'](_0x23346c=>oo(_0x23346c)||function(_0x395466,_0x228d49){if(_0x395466['is']('rootElement')||_0x228d49['isLimit'](_0x395466))return!0x1;return _0x228d49['checkChild'](_0x395466['parent'],'codeBlock');}(_0x23346c,_0x9320dc['schema'])):Array['from'](_0x576e9c['getSelectedBlocks']())['filter'](_0x3bcd92=>oo(_0x3bcd92));const _0x327a45=Zt(_0x4be31c,_0x9320dc);_0x9320dc['change'](()=>{for(const _0xab0443 of _0x327a45)_0x316910['markBlockFormat'](_0xab0443,{'commandName':'codeBlock','commandParams':[{..._0x4a6009,'forceValue':_0xd9867c}],'formatGroupId':'blockName'});});}),(_0x316910['descriptionFactory']['registerElementLabel']('codeBlock',_0x267a6a=>c(_0x9e0b81,'ELEMENT_CODE_BLOCK',_0x267a6a)),_0x316910['descriptionFactory']['registerDescriptionCallback'](_0x45b4df=>{if('formatBlock'!=_0x45b4df['type'])return;const _0x4a438d=_0x9e0b81['t'],{data:_0x12076e}=_0x45b4df;if(!_0x12076e||'codeBlock'!=_0x12076e['commandName'])return;const _0x7c90a3=_0x12076e['commandParams'][0x0]['language'],_0x73ef31=_0x4a438d(_0x554400['find'](_0x58cf53=>_0x58cf53['language']===_0x7c90a3)['label'])['toLowerCase']();return _0x12076e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9e0b81,'*Set\x20format:*\x20%0',c(_0x9e0b81,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x73ef31+')')}:{'type':'format','content':c(_0x9e0b81,'*Remove\x20format:*\x20%0',c(_0x9e0b81,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x3b6efd){return'codeBlock'==_0x3b6efd['name'];}class q extends _0x368c11{['afterInit'](){const _0xe84496=this['editor'];if(!_0xe84496['plugins']['has']('CommentsEditing'))return;_0xe84496['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3fbb08,_0x5f4721,_0x6147d9){const _0x53e264=[];for(const _0x1a2bfe of _0x5f4721['getItems']())_0x1a2bfe['hasAttribute'](_0x3fbb08)&&_0x53e264['push'](_0x6147d9['createRangeOn'](_0x1a2bfe));return _0x53e264;}function De(_0x3f7c8e,_0x3eecb0,{showActiveMarker:_0x316926=!0x0}={}){const _0xe4d1f3=_0x3f7c8e['plugins']['get']('TrackChangesEditing');return(_0x3f391b,_0x318fd7,_0x33af9a)=>{if(!_0x33af9a['consumable']['test'](_0x318fd7['markerRange'],_0x3f391b['name']))return;const _0x326f79=_0x318fd7['markerRange']['getWalker'](),_0x1e2379=_0x318fd7['markerRange']['start'],_0x4e75a5=_0x3f7c8e['model']['schema'];let _0x4b5663=null,_0xce4239=null,_0x3949c2=!0x1,_0x304ac0=!0x1;for(const _0x22c463 of _0x326f79){const _0x2c6c54=_0x22c463['item'];_0x3949c2=_0x3949c2||_0x4e75a5['isContent'](_0x2c6c54);const _0x4eb613=_0x33af9a['mapper']['toViewElement'](_0x2c6c54);if(_0x4eb613&&_0x4eb613['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22c463['type']&&(_0x4e75a5['isBlock'](_0x2c6c54)&&!_0x4e75a5['isLimit'](_0x2c6c54)&&(_0x2c6c54['nextSibling']||_0x1e2379['isAtEnd']?_0x4b5663&&_0x4b5663['parent']==_0x2c6c54||(_0x4b5663=_0x2c6c54,_0x2859ea(_0x22c463['previousPosition']),_0x304ac0=!0x0):_0xce4239=_0xce4239||_0x22c463['previousPosition']));}function _0x2859ea(_0x5416d2){const {authorId:_0x43e25e}=_0xe4d1f3['_splitMarkerName'](_0x318fd7['markerName']),_0x24bc86=_0x33af9a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3eecb0,'data-author-id':_0x43e25e}),_0x7c8d7d=_0x33af9a['mapper']['toViewPosition'](_0x5416d2);_0x316926&&_0xe4d1f3['activeMarkers']['includes'](_0x318fd7['markerName'])&&_0x33af9a['writer']['addClass']('ck-suggestion-marker--active',_0x24bc86),_0x33af9a['writer']['insert'](_0x7c8d7d,_0x24bc86),_0x33af9a['mapper']['bindElementToMarker'](_0x24bc86,_0x318fd7['markerName']);}_0x3949c2||_0x304ac0||!_0xce4239||_0x2859ea(_0xce4239);};}class z extends _0x368c11{static get['requires'](){return[_0x5edd43];}['init'](){const _0x1b6fd3=this['editor'],_0x388785=_0x1b6fd3['plugins']['get']('TrackChangesEditing');_0x388785['enableCommand']('delete');const _0x419c84=_0x1b6fd3['commands']['get']('deleteForward');_0x388785['enableCommand']('deleteForward',(_0x16882b,_0x2e4e74={})=>{const _0xe84486=_0x1b6fd3['model']['createSelection'](_0x1b6fd3['model']['document']['selection']);_0xe84486['isCollapsed']&&_0x1b6fd3['model']['modifySelection'](_0xe84486,{'direction':'forward','unit':_0x2e4e74['unit']});const _0x24b4b1=_0xe84486['getFirstRange'](),_0x4c7492=_0x2b7c87['fromRange'](_0x24b4b1);let _0x152458;_0x16882b(_0x2e4e74),_0x152458='$graveyard'==_0x4c7492['root']['rootName']?_0x1b6fd3['model']['createRange'](_0x24b4b1['start']):_0x1b6fd3['model']['createRange'](_0x4c7492['start'],_0x4c7492['end']),_0x4c7492['detach'](),_0x1b6fd3['model']['enqueueChange'](_0x419c84['buffer']['batch'],_0x340892=>{_0x419c84['buffer']['lock'](),_0x340892['setSelection'](_0x340892['createRange'](_0x152458['end'])),_0x419c84['buffer']['unlock']();});}),_0x1b6fd3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b6fd3,'merge'),{'priority':'high'}),_0x1b6fd3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35cb90,_0x346526,_0x35be5a)=>{_0x35be5a['options']['showSuggestionHighlights']&&De(_0x1b6fd3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35cb90,_0x346526,_0x35be5a);},{'priority':'high'}),_0x1b6fd3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x17aa57,_0x271b85,_0x47b89e)=>{const _0x3043fe=_0x47b89e['mapper']['markerNameToElements'](_0x271b85['markerName']);if(_0x3043fe){for(const _0x599554 of _0x3043fe)_0x599554['is']('uiElement')&&(_0x47b89e['mapper']['unbindElementFromMarkerName'](_0x599554,_0x271b85['markerName']),_0x47b89e['writer']['remove'](_0x599554));}},{'priority':'high'});}}class W extends _0x368c11{['afterInit'](){const _0x3888a6=this['editor'];if(!_0x3888a6['plugins']['has']('ListEditing'))return;const _0x55e04c=_0x3888a6['locale'],_0x282bc2=_0x3888a6['plugins']['get']('TrackChangesEditing'),_0x38bb92=_0x3888a6['plugins']['has']('TodoListEditing'),_0x1986c7=!!_0x3888a6['config']['get']('list.multiBlock');function _0x5c2dc7(_0x2a5778){return{'type':'format','content':''+c(_0x55e04c,'*Set\x20format:*\x20%0',_0x2a5778)};}function _0x134d07(_0x4176d8){return{'type':'format','content':''+c(_0x55e04c,'*Remove\x20format:*\x20%0',_0x4176d8)};}_0x282bc2['enableDefaultAttributesIntegration']('numberedList'),_0x282bc2['enableDefaultAttributesIntegration']('bulletedList'),_0x282bc2['enableDefaultAttributesIntegration']('customNumberedList'),_0x282bc2['enableDefaultAttributesIntegration']('customBulletedList'),_0x282bc2['enableDefaultAttributesIntegration']('indentList'),_0x282bc2['enableDefaultAttributesIntegration']('outdentList'),_0x282bc2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x282bc2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x282bc2['registerBlockAttribute']('listItemId'),_0x282bc2['registerBlockAttribute']('listType'),_0x282bc2['registerBlockAttribute']('listIndent'),_0x1986c7&&(_0x282bc2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x282bc2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x38bb92&&(_0x282bc2['enableDefaultAttributesIntegration']('todoList'),_0x282bc2['enableDefaultAttributesIntegration']('checkTodoList'),_0x282bc2['registerBlockAttribute']('todoListChecked'),_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x58c674=>{const {data:_0x2db663}=_0x58c674;if(_0x2db663&&'todoListChecked'==_0x2db663['key'])return{'type':'format','content':_0x2db663['newValue']?c(_0x55e04c,'*Check\x20item*'):c(_0x55e04c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x338033=>{if(_0x338033['batch']['isUndo'])return!0x1;let _0x38017e=!0x1;const _0x51e86f=_0x282bc2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d9c79=>'todoListChecked'===_0x282bc2['_getAttributeKey'](_0x2d9c79));for(const _0x1938fa of _0x51e86f){'todo'!=_0x1938fa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x282bc2['_findSuggestions'](_0x1938fa['getFirstRange'](),'attribute')['find'](_0x289869=>'listType'===_0x282bc2['_getAttributeKey'](_0x289869['suggestion']))||(_0x338033['removeMarker'](_0x1938fa['getFirstMarker']()),_0x38017e=!0x0));}return _0x38017e;})),_0x282bc2['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x55e04c,'FORMAT_INDENT'));const _0x2a1b22={'type':'format','content':''};_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x1ec87a=>{const {data:_0x3a7181}=_0x1ec87a;if(!_0x3a7181||'listType'!=_0x3a7181['key'])return;let _0x38d72a=_0x1ec87a['head'];for(;_0x38d72a;){if(_0x38d72a['data']&&(('listStyle'==_0x38d72a['data']['key']||'listMarkerStyle'==_0x38d72a['data']['key'])&&(_0x38d72a['data']['newValue']&&'default'!=_0x38d72a['data']['newValue']||'default'!=_0x38d72a['data']['oldValue']&&!_0x3a7181['newValue'])||!_0x1986c7&&_0x38d72a['data']['key']==u))return _0x2a1b22;_0x38d72a=_0x38d72a['next'];}if(null==_0x3a7181['newValue'])switch(_0x3a7181['oldValue']){case'bulleted':return _0x134d07(c(_0x55e04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x134d07(c(_0x55e04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x134d07(c(_0x55e04c,'ELEMENT_TODO_LIST'));}switch(_0x3a7181['newValue']){case'bulleted':return _0x5c2dc7(c(_0x55e04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c2dc7(c(_0x55e04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c2dc7(c(_0x55e04c,'ELEMENT_TODO_LIST'));}}),_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x50e6a7=>{const {data:_0x37e834}=_0x50e6a7;if(_0x37e834&&'listIndent'==_0x37e834['key'])return null==_0x37e834['newValue']||null==_0x37e834['oldValue']&&0x0==_0x37e834['newValue']?_0x2a1b22:void 0x0;}),_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x139298=>{if('attribute'!=_0x139298['type'])return;const {data:_0x37dd6b}=_0x139298;if(!_0x37dd6b||'listItemId'!=_0x37dd6b['key'])return;const _0x369659=Te(_0x139298);return'newValue'==_0x369659?{'type':'format','content':c(_0x55e04c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x369659?{'type':'format','content':c(_0x55e04c,'*Split:*\x20list\x20item')}:_0x2a1b22;}),_0x3888a6['model']['document']['registerPostFixer'](_0x18fb78=>this['listItemIdFixer'](_0x18fb78)),_0x3888a6['model']['document']['registerPostFixer'](_0x3929c=>this['noTrackChangesFixer'](_0x3929c)),_0x3888a6['model']['document']['on']('change:data',(_0x24fce2,_0x51bf0a)=>{if(_0x51bf0a['isUndo']||!_0x51bf0a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x171e7f){if(_0x171e7f['batch']['isUndo']||!_0x171e7f['batch']['isLocal'])return!0x1;let _0x10e0b8=!0x1;const _0x181b8c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe704b0=>_0xe704b0['data']&&'listItemId'==_0xe704b0['data']['key'])['filter'](_0x164659=>_0x164659['data']['newValue']&&_0x164659['data']['oldValue']);for(const _0x1a832 of _0x181b8c)Te(_0x1a832)||(_0x171e7f['removeMarker'](_0x1a832['getFirstMarker']()),_0x10e0b8=!0x0);return _0x10e0b8;}['noTrackChangesFixer'](_0x4d7e27){if(_0x4d7e27['batch']['isUndo']||!_0x4d7e27['batch']['isLocal'])return!0x1;const _0x58f404=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58f404['trackChangesCommand']['value'])return!0x1;let _0x592294=!0x1;const _0x264bf4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53d130=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3b7edd=>'attribute'==_0x3b7edd['type'])['filter'](_0x4026b8=>_0x264bf4['includes'](_0x4026b8['attributeKey']));if(0x0==_0x53d130['length'])return _0x592294;for(const _0x3fa1ff of _0x53d130){const _0x26465b=_0x58f404['_findSuggestions'](_0x3fa1ff['range'],'attribute')['filter'](_0x39fb22=>!_0x39fb22['meta']['isNextTo'])['map'](_0x113c36=>_0x113c36['suggestion'])['filter'](_0x148ba0=>{const _0x27422f=_0x58f404['_getAttributeKey'](_0x148ba0);return _0x264bf4['includes'](_0x27422f);});if(_0x26465b['length']){for(const _0x245dd9 of _0x26465b)_0x4d7e27['removeMarker'](_0x245dd9['getFirstMarker']());_0x592294=!0x0;}}return _0x592294;}['assureChains'](){const _0x263df8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ceaf5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x551dc6;const _0x13ea8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ac5e9=>{if(_0x5ac5e9['data']['oldRange']||!_0x5ac5e9['data']['newRange'])return null;if(!_0x5ac5e9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x26e7f6}=_0x263df8['_splitMarkerName'](_0x5ac5e9['name']);if(!_0x263df8['hasSuggestion'](_0x26e7f6))return null;const _0x18aa26=_0x263df8['getSuggestion'](_0x26e7f6);return _0x5ceaf5['includes'](_0x18aa26['data']['key']);})['map'](_0x293cb0=>{const {id:_0x536da2}=_0x263df8['_splitMarkerName'](_0x293cb0['name']),_0x50b87d=_0x263df8['getSuggestion'](_0x536da2);return _0x551dc6=_0x50b87d['attributes']['groupId'],_0x50b87d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x13ea8f['size'])return;const _0x216c1a=_0x263df8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8ed00b=>'attribute'==_0x8ed00b['type']&&_0x8ed00b['data']&&_0x5ceaf5['includes'](_0x8ed00b['data']['key'])&&_0x8ed00b['attributes']['groupId']!=_0x551dc6)['map'](_0x17f8c4=>({'listItem':_0x17f8c4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x17f8c4['attributes']['groupId']})),_0x3a29e7=new Set();for(const {groupId:_0x35f0bb,listItem:_0x5afbb8}of _0x216c1a)_0x13ea8f['has'](_0x5afbb8)&&_0x3a29e7['add'](_0x35f0bb);for(const _0x229b55 of _0x263df8['getSuggestions']())_0x3a29e7['has'](_0x229b55['attributes']['groupId'])&&_0x229b55['setAttribute']('groupId',_0x551dc6);}['_supportLegacySuggestions'](){const _0x284e0f=this['editor'],_0x2e0d0f=_0x284e0f['locale'],_0x17486d=_0x284e0f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x17486d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51debb,_0xbb81e7){const _0x4d2e1d=[];for(let _0x19a2c5 of _0x51debb)_0x19a2c5['start']['nodeAfter']===_0x19a2c5['end']['parent']&&(_0x19a2c5=_0x284e0f['model']['createRange'](_0x284e0f['model']['createPositionAt'](_0x19a2c5['start']['nodeAfter'],0x0))),_0x4d2e1d['push'](_0x19a2c5);_0x284e0f['model']['change'](_0x339910=>{const _0x393af4=_0x284e0f['model']['document']['selection'],_0x1f63ea=Array['from'](_0x393af4['getRanges']())['map'](_0x37f1ea=>_0x2b7c87['fromRange'](_0x37f1ea));_0x339910['setSelection'](_0x4d2e1d),_0x284e0f['commands']['get'](_0xbb81e7['commandName'])['refresh'](),_0xbb81e7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x284e0f['execute'](_0xbb81e7['commandName'],..._0xbb81e7['commandParams']),_0x339910['setSelection'](_0x1f63ea);for(const _0x2a8580 of _0x1f63ea)_0x2a8580['detach']();});}),_0x17486d['descriptionFactory']['registerElementLabel'](function(_0x2ccc67){const _0x34352b=!_0x284e0f['model']['schema']['isObject'](_0x2ccc67),_0x3069cd=_0x2ccc67['previousSibling'],_0x517705=_0x2ccc67['nextSibling'],_0x95ca3c=_0x2ccc67['getAttribute']('listItemId'),_0x3ad5ef=!_0x3069cd||_0x3069cd['getAttribute']('listItemId')!==_0x95ca3c,_0xb6850c=!_0x517705||_0x517705['getAttribute']('listItemId')!==_0x95ca3c;return _0x34352b&&Boolean(_0x95ca3c)&&_0x3ad5ef&&_0xb6850c;},_0x5ec825=>c(_0x2e0d0f,'ELEMENT_LIST_ITEM',_0x5ec825));}['_registerLegacyDescription'](){const _0x47e573=this['editor'],_0x40d91e=_0x47e573['locale'];function _0x347ff7(_0x2b3141){const _0x5aae9a=_0x47e573['commands']['get']('bulletedList')['value'],_0xd6816c=_0x47e573['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b3141?_0x5aae9a:_0xd6816c;}_0x47e573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x389b5d){if('formatBlock'!=_0x389b5d['type'])return;const {data:_0x5d6076}=_0x389b5d;if(!_0x5d6076)return;let _0x2f2cbe,_0x4585f1,_0x19ca25,_0x245384;switch(_0x5d6076['commandName']){case'bulletedList':_0x19ca25=_0x5d6076['commandParams'][0x0]['forceValue'],_0x245384=_0x347ff7(_0x5d6076['commandName']),_0x2f2cbe=_0x19ca25?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x245384&&_0x47e573['config']['get']('list.multiBlock')||(_0x2f2cbe='*Change\x20to:*\x20%0'),_0x4585f1={'type':'format','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19ca25=_0x5d6076['commandParams'][0x0]['forceValue'],_0x245384=_0x347ff7(_0x5d6076['commandName']),_0x2f2cbe=_0x19ca25?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x245384&&_0x47e573['config']['get']('list.multiBlock')||(_0x2f2cbe='*Change\x20to:*\x20%0'),_0x4585f1={'type':'format','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f2cbe='*Indent:*\x20%0',_0x4585f1={'type':'format','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f2cbe=function(_0x1c5d83){const _0x25f308=_0x1c5d83['getFirstRange']();let _0x2f7cf9=_0x25f308['start']['nodeAfter'];for(;_0x2f7cf9&&_0x25f308['containsItem'](_0x2f7cf9);){if(_0x2f7cf9['getAttribute']('listIndent')>0x0)return!0x1;_0x2f7cf9=_0x2f7cf9['nextSibling'];}return!0x0;}(_0x389b5d)?c(_0x40d91e,'*Format:*\x20remove\x20from\x20%0',c(_0x40d91e,function(_0x24b977){return'ELEMENT_'+_0x24b977['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x389b5d))):c(_0x40d91e,'*Outdent:*\x20%0',c(_0x40d91e,'ELEMENT_LIST_ITEM')),_0x4585f1={'type':'format','content':_0x2f2cbe};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5d6076['multipleBlocks']&&(_0x2f2cbe='*Merge:*\x20%0',_0x4585f1={'type':'deletion','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_LIST_ITEM'))});}return _0x4585f1;});}}function Te(_0x2b41f8){let _0x3fd125=_0x2b41f8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3fd125;){const _0x350c80=_0x3fd125['getAttribute']('listItemId');if(!_0x350c80)return!0x1;if(_0x350c80==_0x2b41f8['data']['newValue'])return'newValue';if(_0x350c80==_0x2b41f8['data']['oldValue'])return'oldValue';_0x3fd125=_0x3fd125['previousSibling'];}return!0x1;}class Se extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6d5d8c=this['editor']['config']['get']('list.properties'),_0x5dc319=this['editor']['plugins']['get']('TrackChangesEditing');_0x6d5d8c['styles']&&(_0x5dc319['enableDefaultAttributesIntegration']('listStyle'),_0x5dc319['registerBlockAttribute']('listStyle')),_0x6d5d8c['reversed']&&(_0x5dc319['enableDefaultAttributesIntegration']('listReversed'),_0x5dc319['registerBlockAttribute']('listReversed')),_0x6d5d8c['startIndex']&&(_0x5dc319['enableDefaultAttributesIntegration']('listStart'),_0x5dc319['registerBlockAttribute']('listStart'));const _0x3f37bf={'type':'format','content':''};_0x5dc319['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1781d9=this['editor']['locale'];_0x5dc319['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x1781d9,'FORMAT_LIST_REVERSED')),_0x5dc319['descriptionFactory']['registerDescriptionCallback'](_0x3ab210=>{const {data:_0x4d85ce}=_0x3ab210;if(_0x4d85ce&&'listReversed'==_0x4d85ce['key'])return null==_0x4d85ce['newValue']||0x0==_0x4d85ce['newValue']&&null==_0x4d85ce['oldValue']?_0x3f37bf:void 0x0;}),_0x5dc319['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x1781d9,'FORMAT_LIST_START')),_0x5dc319['descriptionFactory']['registerDescriptionCallback'](_0x2b439c=>{const {data:_0x515bdc}=_0x2b439c;if(_0x515bdc&&'listStart'==_0x515bdc['key'])return null==_0x515bdc['newValue']||0x1==_0x515bdc['newValue']&&null==_0x515bdc['oldValue']?_0x3f37bf:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x417e99=>{if(_0x417e99['batch']['isUndo'])return!0x1;let _0x904837=!0x1;const _0x4107ee=_0x5dc319['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x364fe9=>{const _0x581043=_0x5dc319['_getAttributeKey'](_0x364fe9);return'listStart'==_0x581043||'listReversed'==_0x581043;});for(const _0x188ce5 of _0x4107ee){const _0x5179b7=_0x188ce5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5179b7||'customNumbered'==_0x5179b7)continue;_0x5dc319['_findSuggestions'](_0x188ce5['getFirstRange'](),'attribute')['find'](_0x2cefc3=>'listType'==_0x5dc319['_getAttributeKey'](_0x2cefc3['suggestion']))||(_0x417e99['removeMarker'](_0x188ce5['getFirstMarker']()),_0x904837=!0x0);}return _0x904837;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x282bea){const _0x293db2=this['editor']['locale'],{data:_0x389482}=_0x282bea,_0x102027={'type':'format','content':''};if(!_0x389482||'listStyle'!=_0x389482['key'])return;if(!_0x389482['oldValue'])return'default'==_0x389482['newValue']?_0x102027:{'type':'format','content':''+c(_0x293db2,'*Set\x20format:*\x20%0',c(_0x293db2,this['_getTranslationKeyForListStyle'](_0x389482['newValue'])))};if(!_0x389482['newValue']){if('default'==_0x389482['oldValue'])return _0x102027;let _0x493ce5=_0x282bea['head'];for(;_0x493ce5;){if(_0x493ce5['data']&&'listType'==_0x493ce5['data']['key']&&_0x493ce5['data']['newValue'])return _0x102027;_0x493ce5=_0x493ce5['next'];}return{'type':'format','content':''+c(_0x293db2,'*Remove\x20format:*\x20%0',c(_0x293db2,this['_getTranslationKeyForListStyle'](_0x389482['oldValue'])))};}if('default'!=_0x389482['newValue'])return{'type':'format','content':''+c(_0x293db2,'*Set\x20format:*\x20%0',c(_0x293db2,this['_getTranslationKeyForListStyle'](_0x389482['newValue'])))};let _0x54e1a6=_0x282bea['head'];for(;_0x54e1a6;){if(_0x54e1a6['data']&&'listType'==_0x54e1a6['data']['key']&&_0x54e1a6['data']['newValue']&&_0x54e1a6['data']['oldValue'])return _0x102027;_0x54e1a6=_0x54e1a6['next'];}return{'type':'format','content':c(_0x293db2,'*Set\x20format:*\x20%0',c(_0x293db2,'ELEMENT_'+_0x282bea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2f8f7f=this['editor'],_0x27254c=_0x2f8f7f['locale'];_0x2f8f7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d5f7f=>{if('formatBlock'!=_0x1d5f7f['type'])return;const {data:_0x533565}=_0x1d5f7f;if(!_0x533565)return;let _0x5413fc,_0x5e2f72;switch(_0x533565['commandName']){case'listStyle':_0x5413fc='*Change\x20to:*\x20%0',_0x5e2f72={'type':'format','content':c(_0x27254c,_0x5413fc,c(_0x27254c,this['_getTranslationKeyForListStyle'](_0x533565['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5413fc=_0x533565['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e2f72={'type':'format','content':c(_0x27254c,_0x5413fc)};break;case'listStart':_0x5413fc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e2f72={'type':'format','content':c(_0x27254c,_0x5413fc,_0x533565['commandParams'][0x0]['startIndex'])};}return _0x5e2f72;});}['_getTranslationKeyForListStyle'](_0x5260bc){return'ELEMENT_'+function(_0x5ac100){if(_e['includes'](_0x5ac100))return'bulleted';if(Re['includes'](_0x5ac100))return'numbered';return null;}(_0x5260bc)['toUpperCase']()+'_LIST_'+_0x5260bc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x368c11{['afterInit'](){const _0x18f346=this['editor'];_0x18f346['commands']['get']('emoji')&&_0x18f346['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x368c11{static get['requires'](){return[_0x56df10];}['init'](){const _0x1e7df6=this['editor'],_0x3359ac=_0x1e7df6['plugins']['get']('TrackChangesEditing'),_0x1f0c34=_0x1e7df6['commands']['get']('enter');_0x3359ac['enableCommand']('enter',()=>{_0x1e7df6['model']['change'](_0x8fda3e=>{const _0x5142d3=_0x1e7df6['model']['document']['selection'],_0x4034e3=_0x5142d3['getFirstPosition'](),_0x511e78=_0x2b7c87['fromRange'](_0x5142d3['getFirstRange']());if(_0x1f0c34['enterBlock'](_0x8fda3e)){const _0x4f7beb=_0x1e7df6['model']['createPositionAt'](_0x4034e3['parent']['nextSibling'],0x0),_0x5ac954=_0x8fda3e['createRange'](_0x4034e3,_0x4f7beb);_0x3359ac['markInsertion'](_0x5ac954);}else _0x8fda3e['setSelection'](_0x8fda3e['createRange'](_0x511e78['end']));_0x511e78['detach'](),_0x1f0c34['fire']('afterExecute',{'writer':_0x8fda3e});});}),_0x1e7df6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1e7df6,'split'),{'priority':'high'}),_0x1e7df6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4532e1,_0x7af853,_0xff01bc)=>{const _0x35bbee=_0xff01bc['mapper']['markerNameToElements'](_0x7af853['markerName']);if(_0x35bbee){for(const _0x3e4a90 of _0x35bbee)_0x3e4a90['hasClass']('ck-suggestion-marker-split')&&(_0xff01bc['mapper']['unbindElementFromMarkerName'](_0x3e4a90,_0x7af853['markerName']),_0xff01bc['writer']['remove'](_0x3e4a90));}},{'priority':'high'}),_0x1e7df6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1fd92c,_0x570fee,_0x23a2b1)=>{_0x23a2b1['options']['showSuggestionHighlights']&&De(_0x1e7df6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1fd92c,_0x570fee,_0x23a2b1);},{'priority':'high'});}}class Z extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1db03b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1db03b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1db03b['enableCommand']('findNext'),_0x1db03b['enableCommand']('findPrevious'),_0x1db03b['enableCommand']('replace'),_0x1db03b['enableCommand']('replaceAll');}['handleFindCommand'](_0x488bc7,_0x1f6e80,_0x1c59ad={}){const _0x8e8968=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x488bc7(_0x52d422=>{let _0x2c78a9=('string'==typeof _0x1f6e80?_0x8e8968['findByTextCallback'](_0x1f6e80,_0x1c59ad):_0x1f6e80)(_0x52d422);Array['isArray'](_0x2c78a9)&&(_0x2c78a9={'results':_0x2c78a9,'searchText':'string'==typeof _0x1f6e80?_0x1f6e80:''});const _0x4200c8=_0x2c78a9['results']['filter'](_0x1717a8=>!0x1===this['_isInDeletionRange'](_0x1717a8,_0x52d422['item']));return{..._0x2c78a9,'results':_0x4200c8};},_0x1c59ad);}['_isInDeletionRange'](_0x56c46d,_0x525db3){const _0x5cbbc1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x525db3,_0x56c46d['start']),this['editor']['model']['createPositionAt'](_0x525db3,_0x56c46d['end']));for(const _0x3181a4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5cbbc1['getIntersection'](_0x3181a4['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x368c11{['afterInit'](){const _0x50f70f=this['editor']['locale'],_0x30479a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x30f991,commandName:_0x4dff22}of eo)this['editor']['plugins']['has'](_0x30f991)&&(_0x30479a['enableDefaultAttributesIntegration'](_0x4dff22),_0x30479a['registerInlineAttribute'](_0x4dff22));_0x30479a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x50f70f,'FORMAT_FONT_SIZE')),_0x30479a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x50f70f,'FORMAT_FONT_FAMILY')),_0x30479a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x50f70f,'FORMAT_FONT_COLOR')),_0x30479a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x50f70f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eee76=this['editor'],_0x477ff9=_0x3eee76['locale'];_0x3eee76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38359c=>{const _0x4bfb61=_0x477ff9['t'];if('formatInline'!=_0x38359c['type'])return;const {data:_0x33cfb9}=_0x38359c;if(null!=_0x33cfb9){if('fontSize'==_0x33cfb9['commandName']){const _0xb56a66=_0x33cfb9['commandParams'][0x0]['value'];if(_0xb56a66){const _0x3152b8=_0x4bfb61(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39807f=>_0x39807f['model']==_0xb56a66)['title'])['toLowerCase']();return{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20size:*\x20%0',_0x3152b8)};}return{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33cfb9['commandName']){const _0x2bf981=_0x33cfb9['commandParams'][0x0]['value'];return _0x2bf981?{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20family:*\x20%0',_0x2bf981)}:{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33cfb9['commandName']){const _0x5385fc=_0x33cfb9['commandParams'][0x0]['value'];if(_0x5385fc){const _0x5c2f8e=_0x511ff4(this['editor']['config']['get']('fontColor.colors'))['find'](_0xbd1a34=>_0xbd1a34['model']==_0x5385fc);let _0x5583f0=_0x5385fc,_0xb2f508='';return _0x5c2f8e&&(_0x5583f0=_0x5c2f8e['label'],_0xb2f508=_0x4bfb61(_0x5583f0)['toLowerCase']()),{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20color:*\x20%0',_0xb2f508)['trim'](),'color':{'value':_0x5385fc,'title':_0xb2f508||_0x5583f0}};}return{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33cfb9['commandName']){const _0x1fbbce=_0x33cfb9['commandParams'][0x0]['value'];if(_0x1fbbce){const _0x3ee03c=_0x511ff4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x26e7df=>_0x26e7df['model']==_0x1fbbce);let _0x38968c=_0x1fbbce,_0x519fb7='';return _0x3ee03c&&(_0x38968c=_0x3ee03c['label'],_0x519fb7=_0x4bfb61(_0x38968c)['toLowerCase']()),{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20background\x20color:*\x20%0',_0x519fb7)['trim'](),'color':{'value':_0x1fbbce,'title':_0x519fb7||_0x38968c}};}return{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x368c11{['afterInit'](){const _0x45fb35=this['editor'],_0x236934=_0x45fb35['plugins']['get']('TrackChangesEditing'),_0x538652=_0x45fb35['commands']['get']('copyFormat'),_0x470f18=_0x45fb35['commands']['get']('pasteFormat');_0x538652&&_0x470f18&&(_0x236934['enableDefaultAttributesIntegration']('pasteFormat'),_0x236934['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14d236=this['editor'],_0x2c17cc=_0x14d236['locale'];_0x14d236['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x230859=>{if('formatBlock'!=_0x230859['type']&&'formatInline'!=_0x230859['type'])return;const {data:_0x413ff7}=_0x230859;if(_0x413ff7&&'pasteFormat'===_0x413ff7['commandName']){const _0x159a08=[],_0x49a220=_0x413ff7['commandParams'][0x0];for(const [_0x280e96,_0x301ecc]of Object['entries'](_0x49a220))_0x159a08['push'](ro(_0x14d236,_0x280e96,_0x301ecc));return _0x159a08['length']?{'type':'format','content':c(_0x2c17cc,'*Set\x20format\x20to:*\x20%0',_0x159a08['join'](',\x20'))}:{'type':'format','content':c(_0x2c17cc,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x578f4d,_0x38f306,_0x210fc5){const _0x17f230=_0x578f4d['locale']['t'],_0x27ac25=_0x38f306['split'](/(?=[A-Z])/)['join']('\x20'),_0x237b32=_0x17f230(_0x27ac25['charAt'](0x0)['toUpperCase']()+_0x27ac25['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x210fc5)return _0x237b32;if('fontColor'===_0x38f306||'fontBackgroundColor'===_0x38f306){const _0x3a46f0=_0x511ff4(_0x578f4d['config']['get']('fontColor.colors'))['find'](_0x43f3f3=>_0x43f3f3['model']==_0x210fc5);return _0x237b32+'\x20('+(_0x3a46f0?_0x17f230(_0x3a46f0['label'])['toLowerCase']():_0x210fc5)+')';}if('fontSize'===_0x38f306&&isNaN(parseFloat(_0x210fc5))){const _0x878b08=_0x578f4d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x578f4d['config']['get']('fontSize.options'))['find'](_0x3ec80c=>_0x3ec80c['model']==_0x210fc5);return _0x237b32+'\x20('+(_0x878b08?_0x17f230(_0x878b08['title'])['toLowerCase']():_0x210fc5)+')';}return _0x237b32+'\x20('+_0x210fc5+')';}class nt extends _0x368c11{['_headingOptions'];['afterInit'](){const _0x58d18c=this['editor'];if(!_0x58d18c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x58d18c['config']['get']('heading.options');const _0x34c88c=_0x58d18c['locale'],_0x1320db=_0x58d18c['plugins']['get']('TrackChangesEditing');_0x1320db['enableDefaultAttributesIntegration']('heading');for(const _0x3647f7 of this['_headingOptions'])'paragraph'!=_0x3647f7['model']&&_0x1320db['descriptionFactory']['registerElementLabel'](_0x3647f7['model'],_0x36b02e=>{const _0x24c901=this['_getHeadingLevel'](_0x3647f7['model']);return null!==_0x24c901?_0x167c91(_0x36b02e,_0x24c901):_0x370260(_0x36b02e,_0x3647f7['title']);});function _0x167c91(_0x3a138b,_0xf6c479){return c(_0x34c88c,'ELEMENT_HEADING',[_0x3a138b,_0xf6c479]);}function _0x370260(_0x4a40b4,_0x3ab56c){return c(_0x34c88c,'ELEMENT_HEADING_CUSTOM',[_0x4a40b4,_0x3ab56c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a69ec=this['editor'],_0x36fd24=_0x2a69ec['locale'];function _0x2499e3(_0x4c80d3,_0x5e25cf){return c(_0x36fd24,'ELEMENT_HEADING_CUSTOM',[_0x4c80d3,_0x5e25cf]);}_0x2a69ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4479a4=>{if('formatBlock'!=_0x4479a4['type'])return;const {data:_0x56708e}=_0x4479a4;if(_0x56708e&&'heading'==_0x56708e['commandName']){const _0xba313f=_0x56708e['commandParams'][0x0]['value'],_0x431ae8=this['_getHeadingLevel'](_0xba313f);if(null!==_0x431ae8)return{'type':'format','content':c(_0x36fd24,'*Change\x20to:*\x20%0',(_0xd2e152=0x1,_0x1539a3=_0x431ae8,c(_0x36fd24,'ELEMENT_HEADING',[_0xd2e152,_0x1539a3])))};const _0xbf90ca=this['_headingOptions']['find'](_0x24d546=>_0x24d546['model']===_0xba313f)['title'];return{'type':'format','content':c(_0x36fd24,'*Change\x20to:*\x20%0',_0x2499e3(0x1,_0xbf90ca))};}var _0xd2e152,_0x1539a3;});}['_getHeadingLevel'](_0xcc4e47){const _0x123fe9=_0xcc4e47['match'](/^heading(\d+)/);if(_0x123fe9)return _0x123fe9[0x1];const _0x218e4d=this['_headingOptions']?.['find'](_0x18ec67=>_0x18ec67['model']==_0xcc4e47);if(_0x218e4d&&_0x218e4d['view']){const _0x9f4156=_0x218e4d['view'],_0x56743c=(_0x9f4156['name']??_0x9f4156)['match'](/^h(\d+)/);if(_0x56743c)return _0x56743c[0x1];}return null;}}class it extends _0x368c11{['afterInit'](){const _0x11bae8=this['editor'];if(!_0x11bae8['plugins']['has']('HighlightEditing'))return;const _0x49d03e=_0x11bae8['plugins']['get']('TrackChangesEditing'),_0x244934=_0x11bae8['locale'];_0x49d03e['enableDefaultAttributesIntegration']('highlight'),_0x49d03e['registerInlineAttribute']('highlight'),_0x49d03e['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x244934,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c40f1=this['editor'],_0x30ac59=_0x4c40f1['locale'];_0x4c40f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb0f7cf=>{if('formatInline'!=_0xb0f7cf['type'])return;const {data:_0x37e78f}=_0xb0f7cf;if(_0x37e78f&&'highlight'==_0x37e78f['commandName']){const _0x3d04e7=_0x30ac59['t'],_0x511a5c=_0x37e78f['commandParams'][0x0]['value'];if(_0x511a5c){const _0x37c28e=_0x4c40f1['config']['get']('highlight.options')['find'](_0x2facef=>_0x2facef['model']==_0x511a5c),_0x5666d9=_0x3d04e7(_0x37c28e['title'])['toLowerCase']();return{'type':'format','content':c(_0x30ac59,'*Set\x20highlight:*\x20%0',_0x5666d9),'color':{'value':_0x37c28e['color'],'title':_0x37c28e['title']}};}return{'type':'format','content':c(_0x30ac59,'*Remove\x20highlight*',c(_0x30ac59,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x368c11{['afterInit'](){const _0x265879=this['editor'];if(!_0x265879['plugins']['has']('HorizontalLineEditing'))return;_0x265879['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3f5959=_0x265879['plugins']['get']('TrackChangesEditing'),_0x36fea4=_0x265879['locale'];_0x3f5959['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5453d0=>c(_0x36fea4,'ELEMENT_HORIZONTAL_LINE',_0x5453d0)),_0x265879['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4342b4,{writer:_0x411dba,options:_0x3caef9})=>{if(!_0x3caef9['showSuggestionHighlights'])return null;const _0x4dba90=_0x411dba['createContainerElement']('div'),_0x391dc8=_0x411dba['createEmptyElement']('hr');return _0x411dba['addClass']('ck-horizontal-line',_0x4dba90),_0x411dba['insert'](_0x411dba['createPositionAt'](_0x4dba90,0x0),_0x391dc8),_0x4dba90;},'converterPriority':'high'});}}class ot extends _0x368c11{['afterInit'](){const _0xb7184=this['editor'];if(!_0xb7184['plugins']['has']('HtmlEmbed'))return;const _0x2c3c68=_0xb7184['plugins']['get']('TrackChangesEditing'),_0x2cb6ce=_0xb7184['locale'];_0x2c3c68['descriptionFactory']['registerElementLabel']('rawHtml',_0x30ca90=>c(_0x2cb6ce,'ELEMENT_HTML_EMBED',_0x30ca90)),_0x2c3c68['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c3c68['registerBlockAttribute']('value'),_0x2c3c68['descriptionFactory']['registerDescriptionCallback'](_0x78055e=>{if('attribute'!=_0x78055e['type'])return;const {data:_0x481943}=_0x78055e;if(_0x481943&&'value'==_0x481943['key']&&_0x78055e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3be021=c(_0x2cb6ce,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2cb6ce,'*Change\x20%0\x20content*',_0x3be021)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22e38f=this['editor'],_0x246470=_0x22e38f['locale'];_0x22e38f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53d847=>{if('formatBlock'!=_0x53d847['type'])return;const {data:_0x4f1c85}=_0x53d847;if(_0x4f1c85&&'htmlEmbed'==_0x4f1c85['commandName']){const _0x307825=c(_0x246470,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x246470,'*Change\x20%0\x20content*',_0x307825)};}});}}class rt extends _0x368c11{['afterInit'](){const _0x243301=this['editor'];if(!_0x243301['plugins']['has']('ImageEditing'))return;const _0x524840=_0x243301['plugins']['get']('TrackChangesEditing'),_0x21af0e=_0x243301['plugins']['get']('ImageUtils'),_0xebc128=_0x243301['locale'];_0x524840['enableCommand']('insertImage'),_0x524840['descriptionFactory']['registerElementLabel']('imageBlock',_0xcdfbbf=>c(_0xebc128,'ELEMENT_IMAGE',_0xcdfbbf)),_0x524840['descriptionFactory']['registerElementLabel']('imageInline',_0x1482c1=>c(_0xebc128,'ELEMENT_INLINE_IMAGE',_0x1482c1)),_0x524840['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xebc128,'ELEMENT_CAPTION')),_0x243301['plugins']['has']('ImageUploadEditing')&&_0x524840['enableCommand']('uploadImage'),_0x243301['plugins']['has']('ImageBlockEditing')&&_0x243301['plugins']['has']('ImageInlineEditing')&&(_0x524840['enableCommand']('imageTypeInline',(_0x5164c5,_0x4f1002)=>{const _0x2e1580=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']);_0x243301['model']['change'](()=>{_0x524840['markBlockFormat'](_0x2e1580,{'commandName':'imageTypeInline','commandParams':[_0x4f1002]},[],'convertBlockImageToInline');});}),_0x524840['enableCommand']('imageTypeBlock',(_0x102319,_0x1a3bbb)=>{_0x243301['model']['change'](_0x4da945=>{let _0x46d2a0=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x4f5bad=_0x4da945['createRangeOn'](_0x46d2a0);const _0x326340=_0x22afac['fromPosition'](_0x4f5bad['start'],'toPrevious'),_0x5a9d4a=_0x22afac['fromPosition'](_0x4f5bad['end'],'toNext');_0x524840['forceDefaultExecution'](()=>_0x102319(_0x1a3bbb)),_0x46d2a0=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x4f5bad=_0x4da945['createRangeOn'](_0x46d2a0);const _0x24d574=_0x4da945['createRange'](_0x326340,_0x5a9d4a);_0x326340['detach'](),_0x5a9d4a['detach'](),_0x524840['markBlockFormat'](_0x46d2a0,{'commandName':'imageTypeInline','commandParams':[_0x1a3bbb]},[],'convertInlineImageToBlock'),_0x24d574['start']['isBefore'](_0x4f5bad['start'])&&_0x524840['markInsertion'](_0x4da945['createRange'](_0x24d574['start'],_0x4f5bad['start']),'convertInlineImageToBlock'),_0x4f5bad['end']['isBefore'](_0x24d574['end'])&&_0x524840['markInsertion'](_0x4da945['createRange'](_0x4f5bad['end'],_0x24d574['end']),'convertInlineImageToBlock');});}),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x524840['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x186480])=>{const _0x14a2eb=_0x524840['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44e856=_0x186480['start'],_0x127e5e=_0x186480['end'];const _0xd6e543=_0x243301['model']['schema']['getNearestSelectionRange'](_0x44e856,'backward'),_0x2f70d7=_0x243301['model']['schema']['getNearestSelectionRange'](_0x127e5e,'forward');_0xd6e543['isCollapsed']&&(_0x44e856=_0xd6e543['start']),_0x2f70d7['isCollapsed']&&(_0x127e5e=_0x2f70d7['end']),_0x14a2eb([_0x243301['model']['createRange'](_0x44e856,_0x127e5e)]);}),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x9c9faf),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x9c9faf)),_0x243301['plugins']['has']('ImageCaptionEditing')&&(_0x524840['enableCommand']('toggleImageCaption',(_0xcde5e8,_0x14930e)=>{const _0x499128=_0x243301['plugins']['get']('ImageCaptionUtils');let _0x59bf4a=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x34b0bd=_0x499128['getCaptionFromImageModelElement'](_0x59bf4a);_0x243301['model']['change'](()=>{if(_0x34b0bd)return void _0x524840['markDeletion'](_0x243301['model']['createRangeOn'](_0x34b0bd));const _0x5e77d1=_0x21af0e['isBlockImage'](_0x59bf4a);_0xcde5e8(_0x14930e),_0x59bf4a=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x34b0bd=_0x499128['getCaptionFromImageModelElement'](_0x59bf4a),_0x524840['markInsertion'](_0x243301['model']['createRangeOn'](_0x34b0bd),_0x5e77d1?null:'imageCaption');});}),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x9c9faf));const _0x15d3d1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3df4b9(_0x49aa2b,_0x3091f6){const _0x3c83ef=_0x15d3d1['findIndex'](({type:_0x3eb615,subType:_0x143272})=>_0x49aa2b['type']==_0x3eb615&&_0x49aa2b['subType']==_0x143272),_0x139963=_0x15d3d1['findIndex'](({type:_0x1afb3f,subType:_0x2ede60})=>_0x3091f6['type']==_0x1afb3f&&_0x3091f6['subType']==_0x2ede60);if(_0x3c83ef<0x0||_0x139963<0x0)return!0x1;const _0x264ef6=_0x49aa2b['getFirstRange'](),_0x3e92ab=_0x3091f6['getFirstRange']();if((0x0==_0x3c83ef||0x1==_0x3c83ef)&&0x2==_0x139963&&_0x264ef6['isIntersecting'](_0x3e92ab))return!0x0;if(0x2==_0x3c83ef&&0x3==_0x139963){const _0x2ea899=_0x524840['_findSuggestions'](_0x264ef6,'insertion')['filter'](({suggestion:_0x14d5da,meta:_0x494652})=>_0x494652['isOwn']&&'convertInlineImageToBlock'==_0x14d5da['subType']);if(_0x2ea899['length']>0x1&&_0x3e92ab['end']['isEqual'](_0x264ef6['start']))return!0x0;if(0x1==_0x2ea899['length']&&(_0x264ef6['start']['isEqual'](_0x3e92ab['end'])||_0x264ef6['end']['isEqual'](_0x3e92ab['start'])))return!0x0;}if(0x3==_0x3c83ef&&0x3==_0x139963&&_0x264ef6['start']['isBefore'](_0x3e92ab['start'])){const _0x4489f5=_0x264ef6['end']['nodeAfter'],_0x623e6d=_0x3e92ab['start']['nodeBefore'];return _0x21af0e['isBlockImage'](_0x4489f5)&&_0x4489f5===_0x623e6d;}return!0x1;}function _0x9c9faf(_0x166927,_0x542c9b){return _0x3df4b9(_0x166927,_0x542c9b)?[_0x166927,_0x542c9b]:_0x3df4b9(_0x542c9b,_0x166927)?[_0x542c9b,_0x166927]:null;}_0x243301['plugins']['has']('ImageResize')&&(_0x524840['enableDefaultAttributesIntegration']('resizeImage'),_0x524840['registerBlockAttribute']('resizedWidth'),_0x524840['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xebc128,'FORMAT_IMAGE_SIZE'))),_0x243301['plugins']['has']('ImageTextAlternativeEditing')&&(_0x524840['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x524840['registerBlockAttribute']('alt')),_0x243301['plugins']['has']('PictureEditing')&&(_0x524840['registerBlockAttribute']('sources'),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x326cea=>{if('attribute'!=_0x326cea['type'])return;const {data:_0x2c2f16}=_0x326cea;return _0x2c2f16&&'sources'==_0x2c2f16['key']?{'type':'format','content':''}:void 0x0;})),_0x243301['plugins']['has']('ImageSizeAttributes')&&(_0x524840['registerBlockAttribute']('width'),_0x524840['registerBlockAttribute']('height'),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x50a9cd=>{if('attribute'!=_0x50a9cd['type'])return;const {data:_0x22bec5}=_0x50a9cd;return!_0x22bec5||'width'!=_0x22bec5['key']&&'height'!=_0x22bec5['key']?void 0x0:{'type':'format','content':''};})),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x386aca=>{if(!!_0x15d3d1['find'](({type:_0x56cafd,subType:_0x10373d})=>_0x386aca['type']==_0x56cafd&&_0x386aca['subType']==_0x10373d))return _0x386aca['previous']?{}:void 0x0;}),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x28a296=>{if('insertion'==_0x28a296['type']||'deletion'==_0x28a296['type']){const _0x19a746=_0x28a296['getContainedElement']();if(_0x19a746&&_0x19a746['is']('element','caption'))return{'type':'insertion'==_0x28a296['type']?'addObject':'removeObject','element':_0x19a746,'quantity':0x1};}}),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x120199=>'formatBlock'==_0x120199['type']&&'convertInlineImageToBlock'==_0x120199['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x120199['type']&&'convertBlockImageToInline'==_0x120199['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x3c4c3f=>{if('attribute'!=_0x3c4c3f['type'])return;const {data:_0x1f8199}=_0x3c4c3f;if(!_0x1f8199||'alt'!=_0x1f8199['key'])return;const _0x2a398b=_0x1f8199['newValue'];return _0x2a398b?{'type':'format','content':c(_0xebc128,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a398b+'\x22')}:{'type':'format','content':c(_0xebc128,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23db93=this['editor'],_0x55d379=_0x23db93['locale'];_0x23db93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c44e1=>{if('formatBlock'!=_0x4c44e1['type']&&'formatInline'!=_0x4c44e1['type'])return;const {data:_0x27cd92}=_0x4c44e1;if(_0x27cd92){if('imageTextAlternative'==_0x27cd92['commandName']){const _0x266c4a=_0x27cd92['commandParams'][0x0]['newValue'];return _0x266c4a?{'type':'format','content':c(_0x55d379,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x266c4a+'\x22')}:{'type':'format','content':c(_0x55d379,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x27cd92['commandName']){const _0x317e3e=_0x27cd92['commandParams'][0x0]['width'];return _0x317e3e?{'type':'format','content':c(_0x55d379,'*Set\x20image\x20width:*\x20%0',_0x317e3e)}:{'type':'format','content':c(_0x55d379,'*Reset\x20image\x20width*')};}}});}}class at extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5e4656=this['editor']['locale'],_0x4fcee1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fcee1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4fcee1['registerBlockAttribute']('src'),_0x4fcee1['descriptionFactory']['registerDescriptionCallback'](_0x38af0b=>{if('attribute'!=_0x38af0b['type'])return;const {data:_0x2fb894}=_0x38af0b;return _0x2fb894&&'src'==_0x2fb894['key']?_0x2fb894['newValue']&&_0x2fb894['oldValue']?{'type':'format','content':c(_0x5e4656,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d1fa5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d1fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d1fa5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d1fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d1fa5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207770=this['editor'],_0x2ac235=_0x207770['locale'];_0x207770['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c7443=>{if('formatBlock'!=_0x5c7443['type']&&'formatInline'!=_0x5c7443['type'])return;const {data:_0x245268}=_0x5c7443;if(!_0x245268||'replaceImageSource'!=_0x245268['commandName'])return;return{'type':'format','content':c(_0x2ac235,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x368c11{['afterInit'](){const _0x9fd7c3=this['editor'];if(!_0x9fd7c3['plugins']['has']('ImageStyleEditing'))return;const _0x2ac0bf=_0x9fd7c3['plugins']['get']('TrackChangesEditing'),_0x5d4b32=_0x9fd7c3['plugins']['get']('ImageUtils'),_0x3c495a={};_0x2ac0bf['enableCommand']('imageStyle',(_0x12e775,_0x32d4b7)=>{const _0x41ea8e=_0x9fd7c3['plugins']['get']('Users')['me'],_0x26d733=_0x9fd7c3['commands']['get']('imageStyle');let _0x46f062=_0x5d4b32['getClosestSelectedImageElement'](_0x9fd7c3['model']['document']['selection']),_0x1719c6=_0x9fd7c3['model']['createRangeOn'](_0x46f062),_0x3e90b3=_0x26d733['value'];if(_0x3e90b3==_0x32d4b7['value'])return;const _0x4263a1={'commandName':'imageStyle','commandParams':[_0x32d4b7],'formatGroupId':_0x2ea4c3()};_0x9fd7c3['model']['change'](()=>{if(_0x2ac0bf['getSuggestions']()['filter'](_0x2f8def=>_0x2f8def['isInContent']&&_0x41ea8e==_0x2f8def['author']&&('formatBlock'==_0x2f8def['type']||'formatInline'==_0x2f8def['type'])&&('imageStylePreApply'==_0x2f8def['subType']||'imageStylePostApply'==_0x2f8def['subType'])&&_0x2f8def['getFirstRange']()['isEqual'](_0x1719c6))['forEach'](_0x45b0e7=>_0x2ac0bf['discardSuggestion'](_0x45b0e7['head'])),_0x46f062=_0x5d4b32['getClosestSelectedImageElement'](_0x9fd7c3['model']['document']['selection']),_0x1719c6=_0x9fd7c3['model']['createRangeOn'](_0x46f062),_0x26d733['refresh'](),_0x9fd7c3['commands']['get']('imageTypeInline')['refresh'](),_0x9fd7c3['commands']['get']('imageTypeBlock')['refresh'](),_0x3e90b3=_0x26d733['value'],_0x3e90b3!=_0x32d4b7['value'])return _0x5d4b32['isInlineImage'](_0x46f062)&&_0x26d733['shouldConvertImageType'](_0x32d4b7['value'],_0x46f062)?(_0x12e775({..._0x32d4b7,'setImageSizes':!0x1}),_0x46f062=_0x5d4b32['getClosestSelectedImageElement'](_0x9fd7c3['model']['document']['selection']),void _0x2ac0bf['markBlockFormat'](_0x46f062,{..._0x4263a1,'commandReversedParams':[{'value':_0x3e90b3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5d4b32['isBlockImage'](_0x46f062)?_0x2ac0bf['markBlockFormat'](_0x46f062,_0x4263a1,[],'imageStylePostApply'):_0x2ac0bf['markInlineFormat'](_0x1719c6,_0x4263a1,'imageStylePostApply'));});});for(const _0x8f4bb5 of _0x9fd7c3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3c495a[_0x8f4bb5['name']]=_0x8f4bb5['title']['toLowerCase']();_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x151902])=>{_0x5d4b32['setImageNaturalSizeAttributes'](_0x151902['getContainedElement']());}),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x503e90,_0x2e50ce)=>{_0x2ac0bf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x503e90,{'commandName':_0x2e50ce['commandName'],'commandParams':_0x2e50ce['commandReversedParams']});}),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x11dedd,_0x16e09f){if(_0x10d6b3(_0x11dedd,_0x16e09f))return[_0x11dedd,_0x16e09f];if(_0x10d6b3(_0x16e09f,_0x11dedd))return[_0x16e09f,_0x11dedd];return null;});const _0x270589=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10d6b3(_0x4f8467,_0x169131){const _0x19757a=_0x270589['findIndex'](({type:_0x1e5c24,subType:_0x53992a})=>_0x4f8467['type']==_0x1e5c24&&_0x4f8467['subType']==_0x53992a),_0x5b6005=_0x270589['findIndex'](({type:_0x5c2498,subType:_0x2c41ab})=>_0x169131['type']==_0x5c2498&&_0x169131['subType']==_0x2c41ab);if(_0x19757a<0x0||_0x5b6005<0x0)return!0x1;const _0x1b5a09=_0x4f8467['getFirstRange'](),_0x2e78b3=_0x169131['getFirstRange']();if((0x0==_0x19757a||0x1==_0x19757a)&&0x2==_0x5b6005&&_0x1b5a09['isIntersecting'](_0x2e78b3))return!0x0;if(0x2==_0x19757a&&0x3==_0x5b6005){const _0x2b6528=_0x2ac0bf['_findSuggestions'](_0x1b5a09,'insertion')['filter'](({suggestion:_0x56dc74,meta:_0x1ce813})=>_0x1ce813['isOwn']&&'convertInlineImageToBlock'==_0x56dc74['subType']);if(_0x2b6528['length']>0x1&&_0x2e78b3['end']['isEqual'](_0x1b5a09['start']))return!0x0;if(0x1==_0x2b6528['length']&&(_0x1b5a09['start']['isEqual'](_0x2e78b3['end'])||_0x1b5a09['end']['isEqual'](_0x2e78b3['start'])))return!0x0;}if(0x3==_0x19757a&&0x3==_0x5b6005&&_0x1b5a09['start']['isBefore'](_0x2e78b3['start'])){const _0x136031=_0x1b5a09['end']['nodeAfter'],_0x34e38c=_0x2e78b3['start']['nodeBefore'];return _0x5d4b32['isBlockImage'](_0x136031)&&_0x136031===_0x34e38c;}return!0x1;}_0x9fd7c3['model']['document']['registerPostFixer'](()=>{let _0x38ba29=!0x1;const _0x5a52cc=Array['from'](_0x9fd7c3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a955e,data:_0x131bff}of _0x5a52cc){const {group:_0xf82e1f,type:_0x3ad45d,subType:_0x22bf59,id:_0x465210}=_0x2ac0bf['_splitMarkerName'](_0x2a955e);if('suggestion'==_0xf82e1f&&_0x2ac0bf['hasSuggestion'](_0x465210)){if('formatBlock'==_0x3ad45d&&('imageStylePreApply'==_0x22bf59||'imageStylePostApply'==_0x22bf59)){const _0x18a35f=_0x2ac0bf['getSuggestion'](_0x465210);if(_0x131bff['newRange']){const _0x49e673=_0x18a35f['getFirstRange']()['getContainedElement']();if(_0x5d4b32['isBlockImage'](_0x49e673))continue;_0x2ac0bf['discardSuggestion'](_0x18a35f),_0x38ba29=!0x0;}}if('insertion'==_0x3ad45d&&'imageCaption'==_0x22bf59&&!_0x131bff['newRange']){const _0x34ec44=_0x2ac0bf['getSuggestion'](_0x465210);_0x34ec44['next']&&_0x34ec44['next']['isInContent']&&(_0x2ac0bf['discardSuggestion'](_0x34ec44['next']),_0x38ba29=!0x0);}}}return _0x38ba29;}),this['_registerLegacyDescription'](_0x3c495a);}['_registerLegacyDescription'](_0x76e706){const _0x21cbf3=this['editor'],_0x17b3f6=_0x21cbf3['locale'];_0x21cbf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4421da=>{if('formatBlock'!=_0x4421da['type']&&'formatInline'!=_0x4421da['type'])return;const {data:_0x5c836c}=_0x4421da;if(!_0x5c836c||'imageStyle'!=_0x5c836c['commandName'])return;const _0x572a44=_0x5c836c['commandParams'][0x0]['value'];return _0x354985('side'===_0x572a44?c(_0x17b3f6,'FORMAT_SIDE_IMAGE'):_0x76e706[_0x572a44]||_0x572a44);function _0x354985(_0x857b81){return{'type':'format','content':c(_0x17b3f6,'*Format:*\x20%0',_0x857b81)};}});}}class ut extends _0x368c11{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4478e8){super(_0x4478e8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x29eba6=this['editor'],_0x1e079f=_0x29eba6['commands']['get']('importWord'),_0x1e3c42=_0x29eba6['commands']['get']('trackChanges');_0x1e079f&&(_0x1e079f['on']('execute',(_0x53eda3,[,_0x68a424])=>{this['_trackChangesValueDuringImport']=_0x1e3c42['value'],_0x68a424['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1e079f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1e079f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e3c42['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x29eba6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x141e8,_0x29a202){const {suggestions:_0xc69f31}=_0x29a202,_0x28f2d1=this['editor']['commands']['get']('trackChanges'),_0x22c6a3=_0x28f2d1['value'];this['_trackChangesValueDuringImport']!==_0x22c6a3&&(_0x28f2d1['execute'](),this['_trackChangesExecuted']=!0x0),_0xc69f31&&_0xc69f31['forEach'](({id:_0x19d673,type:_0x45137c,author:_0x3d24bd,created_at:_0x14eb5d})=>{const _0x3d2679={'id':_0x19d673,'type':_0x45137c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3d24bd,'createdAt':_0x14eb5d?new Date(_0x14eb5d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3d2679);});}}class ft extends _0x368c11{['afterInit'](){const _0x5ef622=this['editor'],_0x4f3ec5=_0x5ef622['plugins']['get']('TrackChangesEditing');if(_0x5ef622['plugins']['has']('IndentEditing')&&(_0x4f3ec5['enableCommand']('indent'),_0x4f3ec5['enableCommand']('outdent')),_0x5ef622['plugins']['has']('IndentBlock')){for(const _0x31cbc9 of['indentBlock','outdentBlock'])_0x4f3ec5['enableDefaultAttributesIntegration'](_0x31cbc9);}const _0x1ebe12=_0x5ef622['locale'];_0x4f3ec5['registerBlockAttribute']('blockIndent'),_0x4f3ec5['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1ebe12,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46fb44=this['editor'],_0x577965=_0x46fb44['locale'],_0x20ea99=_0x46fb44['plugins']['get']('TrackChangesEditing');_0x20ea99['descriptionFactory']['registerDescriptionCallback'](_0x3a6435=>{if('formatBlock'!=_0x3a6435['type'])return;const {data:_0x1a1e32}=_0x3a6435;if(!_0x1a1e32)return;if('indentBlock'!=_0x1a1e32['commandName']&&'outdentBlock'!=_0x1a1e32['commandName'])return;const _0x5805d7=_0x3a6435['getItems']()[0x0],_0x6ef3fb=_0x20ea99['descriptionFactory']['getItemLabel'](_0x5805d7);return'indentBlock'==_0x1a1e32['commandName']?{'type':'format','content':c(_0x577965,'*Indent:*\x20%0',_0x6ef3fb)}:'outdentBlock'==_0x1a1e32['commandName']?{'type':'format','content':c(_0x577965,'*Outdent:*\x20%0',_0x6ef3fb)}:void 0x0;});}}class ht extends _0x368c11{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x368c11{['afterInit'](){const _0x20d836=this['editor'];if(!_0x20d836['plugins']['has']('LinkEditing'))return;const _0x3613c6=_0x20d836['plugins']['get']('TrackChangesEditing'),_0x353914=_0x20d836['commands']['get']('link');_0x3613c6['enableDefaultAttributesIntegration']('link'),_0x3613c6['enableDefaultAttributesIntegration']('unlink'),_0x3613c6['registerInlineAttribute']('linkHref');for(const _0x467ffa of _0x353914['manualDecorators'])_0x3613c6['registerInlineAttribute'](_0x467ffa['id']),_0x3613c6['descriptionFactory']['registerAttributeLabel'](_0x467ffa['id'],'link\x20('+_0x467ffa['label']['toLowerCase']()+')');_0x3613c6['descriptionFactory']['registerDescriptionCallback'](_0x24c0e6=>{if('attribute'!=_0x24c0e6['type'])return;const {data:_0x325c33}=_0x24c0e6;if(!_0x325c33||'linkHref'!=_0x325c33['key'])return;const _0x1f0d12=_0x325c33['newValue'],_0x58196b=_0x20d836['locale'];return{'type':'format','content':null==_0x1f0d12?c(_0x58196b,'*Remove\x20link*'):c(_0x58196b,'*Set\x20link:*\x20%0','\x22'+_0x1f0d12+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34cf67=this['editor'],_0x465446=_0x34cf67['locale'];_0x34cf67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x410e1c=>{if('formatInline'!=_0x410e1c['type'])return;const {data:_0x1a55b0}=_0x410e1c;if(_0x1a55b0){if('link'==_0x1a55b0['commandName']){const _0x38caaf=_0x1a55b0['commandParams'][0x0];return{'type':'format','content':c(_0x465446,'*Set\x20link:*\x20%0','\x22'+_0x38caaf+'\x22')};}return'unlink'==_0x1a55b0['commandName']?{'type':'format','content':c(_0x465446,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x368c11{['afterInit'](){const _0x3c238a=this['editor'],_0x21bdeb=_0x3c238a['locale'];if(!_0x3c238a['plugins']['has']('LegacyListEditing'))return;const _0x396ce4=_0x3c238a['plugins']['get']('TrackChangesEditing'),_0x44e1ea=_0x3c238a['plugins']['has']('LegacyTodoListEditing');function _0xf00133(_0x156e6b){return()=>{const _0x171b03=_0x3c238a['model']['document']['selection'],_0x4af59d=_0x3c238a['commands']['get'](_0x156e6b);if(_0x4af59d['value'])return void _0x3c238a['execute']('paragraph',{});const _0x5acf88=_0x156e6b['slice'](0x0,-0x4),_0x1c37e1=function(_0x5d0f3f,_0x36ac04,_0x31d054){let _0x535c88=Array['from'](_0x5d0f3f)['filter'](_0x10716d=>function(_0x47180a,_0x551cae){return _0x551cae['checkChild'](_0x47180a['parent'],'listItem')&&!_0x551cae['isObject'](_0x47180a);}(_0x10716d,_0x31d054));_0x535c88=_0x535c88['filter'](_0x5b5bbd=>!_0x5b5bbd['is']('element','listItem')||_0x5b5bbd['getAttribute']('listType')!=_0x36ac04);const _0x5f02cc=new Set();for(const _0x2c7d41 of _0x535c88)_0x2c7d41['is']('element','listItem')?_0x5f02cc['add'](Le(_0x2c7d41)):_0x5f02cc['add'](_0x2c7d41);return Array['from'](_0x5f02cc);}(_0x171b03['getSelectedBlocks'](),_0x5acf88,_0x3c238a['model']['schema']);_0x3c238a['model']['change'](()=>{for(const _0x26cbd5 of _0x1c37e1)_0x396ce4['markBlockFormat'](_0x26cbd5,{'commandName':_0x156e6b,'commandParams':[{'forceValue':!_0x4af59d['value']}],'formatGroupId':'blockName'},Ee(_0x26cbd5));});};}function _0x39c334(_0x2030a9){return()=>{const _0x1310fb=function(_0x24f869){let _0x46baae=Array['from'](_0x24f869);const _0x4bdf67=_0x46baae['findIndex'](_0x4e3d98=>'listItem'!=_0x4e3d98['name']);return _0x4bdf67>-0x1&&(_0x46baae=_0x46baae['slice'](0x0,_0x4bdf67)),_0x46baae;}(_0x3c238a['model']['document']['selection']['getSelectedBlocks']()),_0x510853=_0x3c238a['model']['createRange'](_0x3c238a['model']['createPositionAt'](_0x1310fb[0x0],'before'),_0x3c238a['model']['createPositionAt'](_0x1310fb[_0x1310fb['length']-0x1],'end'));_0x3c238a['model']['change'](()=>{_0x396ce4['markBlockFormat'](_0x510853,{'commandName':_0x2030a9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5033ce){const _0x54d1ec=new Set();for(const _0x2f9579 of _0x5033ce){let _0xa207c9=_0x2f9579['nextSibling'];for(;_0xa207c9&&_0xa207c9['getAttribute']('listIndent')>_0x2f9579['getAttribute']('listIndent');)_0x54d1ec['add'](_0xa207c9),_0xa207c9=_0xa207c9['nextSibling'];}return Array['from'](_0x54d1ec);}(_0x1310fb));});};}_0x396ce4['enableCommand']('numberedList',_0xf00133('numberedList')),_0x396ce4['enableCommand']('bulletedList',_0xf00133('bulletedList')),_0x44e1ea&&_0x396ce4['enableCommand']('todoList',_0xf00133('todoList')),_0x396ce4['enableCommand']('indentList',_0x39c334('indentList')),_0x396ce4['enableCommand']('outdentList',_0x39c334('outdentList')),_0x44e1ea&&_0x396ce4['enableCommand']('checkTodoList',()=>{const _0x513e09=_0x3c238a['commands']['get']('checkTodoList'),_0x121108=Array['from'](_0x513e09['_selectedElements']);_0x121108['filter'](_0x33da30=>_0x33da30['getAttribute']('todoListChecked')!=_0x513e09['value']),_0x3c238a['model']['change'](()=>{for(const _0x49c264 of _0x121108)_0x396ce4['markBlockFormat'](_0x49c264,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x513e09['value']}]});});}),_0x396ce4['descriptionFactory']['registerElementLabel']('listItem',_0x30a012=>c(_0x21bdeb,'ELEMENT_LIST_ITEM',_0x30a012)),_0x396ce4['descriptionFactory']['registerDescriptionCallback'](_0x5ad589=>{if('formatBlock'!=_0x5ad589['type']&&'formatInline'!=_0x5ad589['type'])return;const {data:_0xb6f9dd}=_0x5ad589;if(_0xb6f9dd){if('numberedList'==_0xb6f9dd['commandName']||'bulletedList'==_0xb6f9dd['commandName']||'todoList'==_0xb6f9dd['commandName'])switch(_0xb6f9dd['commandName']['replace']('List','')){case'bulleted':return _0x497e90(c(_0x21bdeb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x497e90(c(_0x21bdeb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x497e90(c(_0x21bdeb,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb6f9dd['commandName'])return{'type':'format','content':c(_0x21bdeb,'*Indent:*\x20%0',c(_0x21bdeb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb6f9dd['commandName'])return{'type':'format','content':c(_0x21bdeb,'*Outdent:*\x20%0',c(_0x21bdeb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb6f9dd['commandName'])return _0xb6f9dd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21bdeb,'*Check\x20item*')}:{'type':'format','content':c(_0x21bdeb,'*Uncheck\x20item*')};}function _0x497e90(_0x321be8){return{'type':'format','content':c(_0x21bdeb,'*Change\x20to:*\x20%0',_0x321be8)};}});}}function Le(_0x53060f){const _0x6e9330=_0x53060f['getAttribute']('listIndent');if(0x0==_0x6e9330)return _0x53060f;let _0x140c26=_0x53060f;for(;_0x53060f['previousSibling']&&_0x53060f['previousSibling']['is']('element','listItem');){const _0x2400ac=_0x53060f['previousSibling']['getAttribute']('listIndent');if(_0x2400ac==_0x6e9330)_0x140c26=_0x53060f['previousSibling'];else{if(_0x2400ac<_0x6e9330)break;}_0x53060f=_0x53060f['previousSibling'];}return _0x140c26;}function Ee(_0x32cbe7){const _0x5d6fc2=[];if(_0x32cbe7['is']('element','listItem')&&_0x32cbe7['getAttribute']('listIndent')>0x0){let _0x843ce5=_0x32cbe7['nextSibling'];for(;_0x843ce5&&'listItem'==_0x843ce5['name']&&_0x843ce5['getAttribute']('listIndent')==_0x32cbe7['getAttribute']('listIndent');)_0x5d6fc2['push'](_0x843ce5),_0x843ce5=_0x843ce5['nextSibling'];}return _0x5d6fc2;}class Q extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x574815=this['editor']['config']['get']('list.properties'),_0x20a3a0=this['editor']['plugins']['get']('TrackChangesEditing');_0x574815['styles']&&_0x20a3a0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x574815['reversed']&&_0x20a3a0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x574815['startIndex']&&_0x20a3a0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20a3a0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xaca283,_0x2f0cf2={}){const _0x28f419=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49835b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x28f419['markMultiRangeBlockFormat'](_0x49835b,{'commandName':'listStyle','commandParams':[{'type':_0x2f0cf2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd60f10,_0x3a0988={}){const _0x12f023=this['editor']['plugins']['get']('TrackChangesEditing'),_0x949d96=this['_getSuggestionBlocks'](_0x19b72f=>_0x19b72f['is']('element','listItem')&&'numbered'===_0x19b72f['getAttribute']('listType'));if(_0x949d96['length']<0x1)return;const _0x20176e=_0x949d96['map'](_0x583776=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x583776,'before'),this['editor']['model']['createPositionAt'](_0x583776,0x0)));this['editor']['model']['change'](()=>{_0x12f023['markMultiRangeBlockFormat'](_0x20176e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3a0988['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2fe644,_0x2a9555={}){const _0x249cbb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16629d=this['_getSuggestionBlocks'](_0x558313=>_0x558313['is']('element','listItem')&&'numbered'===_0x558313['getAttribute']('listType'));if(_0x16629d['length']<0x1)return;const _0x11ade0=_0x16629d['map'](_0x5afc55=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5afc55,'before'),this['editor']['model']['createPositionAt'](_0x5afc55,0x0)));this['editor']['model']['change'](()=>{_0x249cbb['markMultiRangeBlockFormat'](_0x11ade0,{'commandName':'listStart','commandParams':[{'startIndex':_0x2a9555['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43932c){if('formatBlock'!=_0x43932c['type']&&'formatInline'!=_0x43932c['type'])return;const _0x1e6727=this['editor']['locale'],{data:_0x39899a}=_0x43932c;if(!_0x39899a)return;let _0x398467,_0x32e075;switch(_0x39899a['commandName']){case'listStyle':_0x398467='*Change\x20to:*\x20%0',_0x32e075={'type':'format','content':c(_0x1e6727,_0x398467,c(_0x1e6727,this['_getTranslationKeyForListStyle'](_0x39899a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x398467=_0x39899a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x32e075={'type':'format','content':c(_0x1e6727,_0x398467)};break;case'listStart':_0x398467='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32e075={'type':'format','content':c(_0x1e6727,_0x398467,_0x39899a['commandParams'][0x0]['startIndex'])};}return _0x32e075;}['_getSuggestionBlocksForListStyle'](){const _0x156119=this['editor']['plugins']['get']('LegacyListUtils');let _0x4d212e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4d212e[0x0]?.['is']('element','listItem')&&_0x4d212e['unshift'](..._0x156119['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4d212e[_0x4d212e['length']-0x1]?.['is']('element','listItem')&&_0x4d212e['push'](..._0x156119['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4d212e=[...new Set(_0x4d212e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4d212e=_0x4d212e['filter'](_0x408bd6=>_0x408bd6['is']('element','listItem'))),_0x4d212e;}['_getSuggestionBlocks'](_0x4c8e9e){const _0x11dcbc=this['editor']['plugins']['get']('LegacyListUtils');let _0x3bc198=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c8e9e)['map'](_0x4bf835=>{const _0x4848c4=this['editor']['model']['createPositionAt'](_0x4bf835,0x0);return[..._0x11dcbc['getSiblingNodes'](_0x4848c4,'backward'),..._0x11dcbc['getSiblingNodes'](_0x4848c4,'forward')];})['flat']();return _0x3bc198=[...new Set(_0x3bc198)],_0x3bc198;}['_getTranslationKeyForListStyle'](_0x5c15e2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5c15e2)||'default')['toUpperCase']()+'_LIST_'+_0x5c15e2['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x368c11{['afterInit'](){const _0x2b844b=this['editor'];if(!_0x2b844b['plugins']['has']('MediaEmbedEditing'))return;const _0x8a4992=_0x2b844b['plugins']['get']('TrackChangesEditing'),_0x47fe28=_0x2b844b['locale'];_0x8a4992['enableCommand']('mediaEmbed'),_0x8a4992['descriptionFactory']['registerElementLabel']('media',_0x4fc68f=>c(_0x47fe28,'ELEMENT_MEDIA',_0x4fc68f)),_0x2b844b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5ee564,{writer:_0x5e6ebf,options:_0x235c62})=>{if(_0x235c62['showSuggestionHighlights'])return _0x5e6ebf['createEmptyElement']('div');},'converterPriority':'high'}),_0x2b844b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x228bd8,_0x46b5c6,_0x3468c1)=>{_0x3468c1['options']['showSuggestionHighlights']&&_0x228bd8['stop']();},{'priority':'high'});}}class pt extends _0x368c11{['afterInit'](){const _0x1f779a=this['editor'];_0x1f779a['plugins']['has']('MentionEditing')&&_0x1f779a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x368c11{['afterInit'](){const _0x306524=this['editor'];if(!_0x306524['plugins']['has']('MergeFieldsEditing'))return;const _0x3f9ff7=_0x306524['plugins']['get']('TrackChangesEditing'),_0x3987eb=_0x306524['locale'];_0x3f9ff7['enableCommand']('insertMergeField'),_0x3f9ff7['enableCommand']('insertMergeFieldBlock'),_0x3f9ff7['enableCommand']('insertMergeFieldImage'),_0x3f9ff7['descriptionFactory']['registerElementLabel']('mergeField',_0x1f547f=>c(_0x3987eb,'ELEMENT_MERGE_FIELD',_0x1f547f)),_0x3f9ff7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x62d93c=>c(_0x3987eb,'ELEMENT_MERGE_FIELD',_0x62d93c)),_0x3f9ff7['descriptionFactory']['registerDescriptionCallback'](_0x2a37ce=>{if('insertion'!=_0x2a37ce['type']&&'deletion'!=_0x2a37ce['type'])return;const _0x202d1d=_0x2a37ce['getContainedElement']();if(null==_0x202d1d)return;const _0x579848=_0x306524['plugins']['get']('MergeFieldsEditing');let _0x34b7f1;switch(_0x579848['getMergeFieldType'](_0x202d1d)){case null:return;case'image':{const _0x25ff38=_0x579848['unwrapAffixes'](_0x202d1d['getAttribute']('src'));_0x34b7f1=_0x579848['getLabel'](_0x25ff38)||_0x25ff38;break;}default:{const _0x3170cc=_0x202d1d['getAttribute']('id');_0x34b7f1=_0x579848['getLabel'](_0x3170cc)||_0x3170cc;break;}}return'insertion'==_0x2a37ce['type']?{'type':'insertion','content':c(_0x3987eb,'*Insert:*\x20%0','\x22'+_0x34b7f1+'\x22\x20'+c(_0x3987eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3987eb,'*Remove:*\x20%0','\x22'+_0x34b7f1+'\x22\x20'+c(_0x3987eb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x368c11{['afterInit'](){const _0x230d49=this['editor'],_0x129d60=_0x230d49['plugins']['get']('TrackChangesEditing');_0x230d49['plugins']['has']('MultiLevelList')&&(_0x129d60['enableDefaultAttributesIntegration']('multiLevelList'),_0x129d60['registerBlockAttribute']('listMarkerStyle'),_0x129d60['descriptionFactory']['registerDescriptionCallback'](_0x3316d8=>this['handleDescriptions'](_0x3316d8)));}['handleDescriptions'](_0x4051e){const _0x240210=this['editor']['locale'],{data:_0x49db60}=_0x4051e,_0x40c882={'type':'format','content':''};if(_0x49db60&&'listMarkerStyle'==_0x49db60['key']){if(!_0x49db60['oldValue'])return{'type':'format','content':c(_0x240210,'*Set\x20format:*\x20%0',c(_0x240210,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49db60['newValue']+')'};if(!_0x49db60['newValue']){let _0x20fd02=_0x4051e['head'];for(;_0x20fd02;){if(_0x20fd02['data']&&'listType'==_0x20fd02['data']['key']&&_0x20fd02['data']['newValue'])return _0x40c882;_0x20fd02=_0x20fd02['next'];}return{'type':'format','content':c(_0x240210,'*Remove\x20format:*\x20%0',c(_0x240210,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49db60['oldValue']+')'};}}}}class bt extends _0x368c11{['afterInit'](){const _0x3ca5d8=this['editor'];if(!_0x3ca5d8['plugins']['has']('PageBreakEditing'))return;_0x3ca5d8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x139fa9=_0x3ca5d8['plugins']['get']('TrackChangesEditing'),_0x49e1d2=_0x3ca5d8['locale'];_0x139fa9['descriptionFactory']['registerElementLabel']('pageBreak',_0x2fe33e=>c(_0x49e1d2,'ELEMENT_PAGE_BREAK',_0x2fe33e));}}class yt extends _0x368c11{['afterInit'](){const _0x270e56=this['editor'];if(!_0x270e56['plugins']['has']('Paragraph'))return;const _0x462c1f=_0x270e56['locale'],_0x4e3e04=_0x270e56['plugins']['get']('TrackChangesEditing');_0x4e3e04['descriptionFactory']['registerElementLabel']('paragraph',_0x26e54f=>c(_0x462c1f,'ELEMENT_PARAGRAPH',_0x26e54f)),_0x4e3e04['enableDefaultAttributesIntegration']('paragraph'),_0x4e3e04['enableCommand']('insertParagraph'),_0x270e56['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x270e56),{'priority':'highest'}),_0x270e56['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x341601,_0x20cefb,_0x3eedb9)=>{_0x3eedb9['options']['showSuggestionHighlights']&&nr(_0x270e56,{'showActiveMarker':!0x1})(_0x341601,_0x20cefb,_0x3eedb9);},{'priority':'highest'});const _0x178e97=_0x4e3e04['descriptionFactory'];_0x178e97['registerDescriptionCallback'](_0x5c3bfd=>{if('insertion'!==_0x5c3bfd['type'])return;const {start:_0x699989,end:_0x53d17d}=_0x5c3bfd['getFirstRange']();if(!_0x699989['isTouching'](_0x53d17d)||!_0x699989['nodeAfter'])return;const _0xb4a8f2=_0x270e56['model']['schema'],_0x41a172=_0x699989['nodeAfter'];return _0xb4a8f2['isBlock'](_0x41a172)&&!_0xb4a8f2['isLimit'](_0x41a172)&&_0xb4a8f2['checkChild'](_0x41a172,'$text')?{'type':'insertion','content':c(_0x462c1f,'*Insert:*\x20%0',_0x178e97['getItemLabel'](_0x41a172,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57fb13=this['editor'],_0x4e482d=_0x57fb13['locale'];_0x57fb13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e02ec=>{if('formatBlock'!=_0x3e02ec['type'])return;const {data:_0x3c721d}=_0x3e02ec;return _0x3c721d&&'paragraph'==_0x3c721d['commandName']?{'type':'format','content':c(_0x4e482d,'*Change\x20to:*\x20%0',c(_0x4e482d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x17d041,{showActiveMarker:_0x5867c7=!0x0}={}){return(_0x5ae999,_0x59cdd8,_0x1bd3ce)=>{const _0xe73585=_0x17d041['plugins']['get']('TrackChangesEditing'),_0x1ae7c2=_0x59cdd8['markerRange']['start'],_0x24d9be=_0x59cdd8['markerRange']['end'],_0x1c68b0=_0x17d041['model']['schema'];if(!_0x1ae7c2['isTouching'](_0x24d9be)||!_0x1ae7c2['nodeAfter'])return;const _0x59533c=_0x1ae7c2['nodeAfter'];if(_0x1c68b0['isBlock'](_0x59533c)&&!_0x1c68b0['isLimit'](_0x59533c)&&_0x1c68b0['checkChild'](_0x59533c,'$text')){if(!_0x1bd3ce['consumable']['consume'](_0x59cdd8['markerRange'],_0x5ae999['name']))return;const {authorId:_0x1b64e4}=_0xe73585['_splitMarkerName'](_0x59cdd8['markerName']),_0x8829bd=_0x1bd3ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1b64e4}),_0xebaf36=_0x1bd3ce['mapper']['toViewPosition'](_0x24d9be);_0x5867c7&&_0xe73585['activeMarkers']['includes'](_0x59cdd8['markerName'])&&_0x1bd3ce['writer']['addClass']('ck-suggestion-marker--active',_0x8829bd),_0x1bd3ce['writer']['insert'](_0xebaf36,_0x8829bd),_0x1bd3ce['mapper']['bindElementToMarker'](_0x8829bd,_0x59cdd8['markerName']);}};}class jt extends _0x368c11{['afterInit'](){const _0x2302c8=this['editor'];_0x2302c8['commands']['get']('replaceSource')&&_0x2302c8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x368c11{['afterInit'](){const _0x4511d1=this['editor'];if(!_0x4511d1['plugins']['has']('RemoveFormatEditing'))return;_0x4511d1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e36e7=this['editor'];_0x4e36e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfd41=>{if('formatBlock'!=_0x1bfd41['type']&&'formatInline'!=_0x1bfd41['type'])return;const {data:_0x50dc1d}=_0x1bfd41;return _0x50dc1d&&'removeFormat'==_0x50dc1d['commandName']?{'type':'format','content':c(_0x4e36e7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x368c11{['afterInit'](){const _0x529f70=this['editor'];if(!_0x529f70['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e9bea=_0x529f70['plugins']['get']('TrackChangesEditing');_0x1e9bea['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e9bea['enableCommand']('goToNextRestrictedEditingException');const _0x23bbb2=_0x529f70['plugins']['get']('RestrictedEditingModeEditing');_0x23bbb2['enableCommand']('trackChanges'),_0x23bbb2['enableCommand']('acceptSuggestion'),_0x23bbb2['enableCommand']('discardSuggestion'),_0x23bbb2['enableCommand']('acceptAllSuggestions'),_0x23bbb2['enableCommand']('discardAllSuggestions'),_0x23bbb2['enableCommand']('acceptSelectedSuggestions'),_0x23bbb2['enableCommand']('discardSelectedSuggestions');}}class It extends _0x368c11{static get['requires'](){return[_0xb8357f];}['init'](){const _0x1eb393=this['editor'],_0xa5a795=_0x1eb393['plugins']['get']('TrackChangesEditing');_0xa5a795['enableCommand']('shiftEnter'),_0x1eb393['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1eb393),{'priority':'high'}),_0x1eb393['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1eb393),{'priority':'high'}),_0x1eb393['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbc448a,_0x78c929,_0x3befbe)=>{_0x3befbe['options']['showSuggestionHighlights']&&je(_0x1eb393,{'showActiveMarker':!0x1})(_0xbc448a,_0x78c929,_0x3befbe);}),_0xa5a795['descriptionFactory']['registerElementLabel']('softBreak',_0x5c3e6f=>c(_0x1eb393['locale'],'ELEMENT_LINE_BREAK',_0x5c3e6f));}}function je(_0xe6f50d,{showActiveMarker:_0x1e50a1=!0x0}={}){return(_0x2fbd73,_0x1b8e8c,_0x5ef941)=>{const _0x1f897e=_0xe6f50d['plugins']['get']('TrackChangesEditing');if(!_0x5ef941['consumable']['test'](_0x1b8e8c['markerRange'],_0x2fbd73['name']))return;const _0x1bea08=_0xe6f50d['model'];for(const _0x4b9777 of _0x1b8e8c['markerRange']['getItems']()){if(!_0x4b9777['is']('element','softBreak'))continue;const _0xc2a221='deletion'==_0x1b8e8c['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e6eec}=_0x1f897e['_splitMarkerName'](_0x1b8e8c['markerName']),_0x22aac3=_0x5ef941['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc2a221,'data-author-id':_0x4e6eec}),_0x3c9017=_0x5ef941['mapper']['toViewPosition'](_0x1bea08['createPositionBefore'](_0x4b9777));_0x1e50a1&&_0x1f897e['activeMarkers']['includes'](_0x1b8e8c['markerName'])&&_0x5ef941['writer']['addClass']('ck-suggestion-marker--active',_0x22aac3),_0x5ef941['writer']['insert'](_0x3c9017,_0x22aac3),_0x5ef941['mapper']['bindElementToMarker'](_0x22aac3,_0x1b8e8c['markerName']);}};}class _t extends _0x368c11{['afterInit'](){const _0x539610=this['editor'],_0x3b41c8=_0x539610['model'],_0x20eab7=_0x539610['locale'];if(!_0x539610['plugins']['has']('StandardEditingModeEditing'))return;const _0x35a8a3=_0x539610['plugins']['get']('TrackChangesEditing'),_0x3f3652='restrictedEditingException',_0x306aed=_0x539610['commands']['get'](_0x3f3652);_0x35a8a3['enableCommand'](_0x3f3652,(_0x3fbd13,_0x412680={})=>{const _0xdab9e=_0x3b41c8['document']['selection'];if(_0xdab9e['isCollapsed'])return void _0x3fbd13(_0x412680);const _0x12d072=void 0x0!==_0x412680['forceValue']?_0x412680['forceValue']:!_0x306aed['value'];_0x3b41c8['change'](()=>{const _0x2ec32d=Array['from'](_0xdab9e['getRanges']());for(const _0x4923d5 of _0x2ec32d){const _0x4e831c=_0x12d072?[_0x4923d5]:io(_0x3f3652,_0x4923d5,_0x3b41c8);for(const _0x253243 of _0x4e831c)_0x35a8a3['markInlineFormat'](_0x253243,{'commandName':_0x3f3652,'commandParams':[{'forceValue':_0x12d072}]});}});}),_0x35a8a3['descriptionFactory']['registerDescriptionCallback'](_0x366c1a=>{if('formatBlock'!=_0x366c1a['type']&&'formatInline'!=_0x366c1a['type'])return;const {data:_0x2fac7d}=_0x366c1a;return _0x2fac7d&&_0x2fac7d['commandName']==_0x3f3652?_0x2fac7d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20eab7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x20eab7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x368c11{['afterInit'](){const _0x1877e1=this['editor'];if(!_0x1877e1['plugins']['has']('Style')||!_0x1877e1['plugins']['has']('DataSchema'))return;const _0x3e41f3=_0x1877e1['plugins']['get']('TrackChangesEditing'),_0x6bf72b=_0x1877e1['locale'],_0x30a950=_0x1877e1['config']['get']('style')||{},_0x14e0c0=_0x1877e1['plugins']['get']('GeneralHtmlSupport'),_0x1f10f9=_0x1877e1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1877e1['plugins']['get']('DataSchema'),_0x30a950['definitions']);_0x3e41f3['enableDefaultAttributesIntegration']('style');const _0x5b6bea=new Set();for(const _0x2b06f9 of _0x1f10f9['block']){const _0x5f1ce2=_0x14e0c0['getGhsAttributeNameForElement'](_0x2b06f9['element']);_0x5b6bea['add'](_0x5f1ce2);}const _0x3f4477=new Set();for(const _0x576105 of _0x1f10f9['inline']){const _0x5007f2=_0x14e0c0['getGhsAttributeNameForElement'](_0x576105['element']);_0x3f4477['add'](_0x5007f2);for(const _0x58349f of _0x576105['ghsAttributes'])_0x3f4477['add'](_0x58349f);}for(const _0x22508c of _0x5b6bea)_0x3e41f3['registerBlockAttribute'](_0x22508c),_0x3e41f3['descriptionFactory']['registerAttributeLabel'](_0x22508c,c(_0x6bf72b,'FORMAT_STYLE'));for(const _0x2e856f of _0x3f4477)_0x3e41f3['registerInlineAttribute'](_0x2e856f),_0x3e41f3['descriptionFactory']['registerAttributeLabel'](_0x2e856f,c(_0x6bf72b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43bfdb=this['editor'],_0x20f696=_0x43bfdb['locale'];_0x43bfdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2679=>{if('formatBlock'!=_0x5d2679['type']&&'formatInline'!=_0x5d2679['type'])return;const {data:_0x5b954b}=_0x5d2679;return _0x5b954b&&'style'===_0x5b954b['commandName']?_0x5b954b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20f696,'*Set\x20format:*\x20%0',_0x5b954b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x20f696,'*Remove\x20format:*\x20%0',_0x5b954b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x368c11{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x19d7e8){super(_0x19d7e8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x415074=this['editor'],_0xd9591b=_0x415074['model']['document']['selection'];if(!_0x415074['plugins']['has']('TableEditing'))return;const _0x4c86cf=_0x415074['locale'],_0x5a3226=_0x415074['plugins']['get']('TrackChangesEditing'),_0x5b5a14=_0x415074['plugins']['get']('TableUtils');_0x5a3226['descriptionFactory']['registerElementLabel']('table',_0x4dc611=>c(_0x4c86cf,'ELEMENT_TABLE',_0x4dc611)),this['_setupColumnsRowsFixing'](),_0x5a3226['enableCommand']('insertTable'),_0x5a3226['enableCommand']('selectTableRow'),_0x5a3226['enableCommand']('selectTableColumn');for(const _0xb937a5 of['insertTableRowAbove','insertTableRowBelow']){const _0x26a217=_0x415074['commands']['get'](_0xb937a5);_0x5a3226['enableCommand'](_0xb937a5,_0x36d5e2=>{_0x415074['model']['change'](_0x1edb2b=>{_0x36d5e2();const _0x4c3483='above'===_0x26a217['order'],_0x60a245=_0x5b5a14['getSelectionAffectedTableCells'](_0xd9591b),_0x200338=_0x5b5a14['getRowIndexes'](_0x60a245),_0x38372e=_0x4c3483?_0x200338['first']-0x1:_0x200338['last']+0x1,_0x3a5d3c=_0x60a245[0x0]['findAncestor']('table'),_0x5da332=_0x5b5a14['createTableWalker'](_0x3a5d3c,{'startRow':_0x38372e,'endRow':_0x38372e}),_0x2ddb85=Array['from'](_0x5da332)['map'](_0x56b4a8=>_0x1edb2b['createRangeOn'](_0x56b4a8['cell']));_0x5a3226['markMultiRangeInsertion'](_0x2ddb85,'tableRow');});});}for(const _0x16ea33 of['insertTableColumnLeft','insertTableColumnRight']){const _0x26c473=_0x415074['commands']['get'](_0x16ea33);_0x5a3226['enableCommand'](_0x16ea33,_0x11fa0d=>{_0x415074['model']['change'](_0x36d43c=>{_0x11fa0d();const _0x3c821c='left'===_0x26c473['order'],_0x522382=_0x5b5a14['getSelectionAffectedTableCells'](_0xd9591b),_0x4a2f06=_0x5b5a14['getColumnIndexes'](_0x522382),_0x1653ea=_0x3c821c?_0x4a2f06['first']-0x1:_0x4a2f06['last']+0x1,_0x18c42f=_0x522382[0x0]['findAncestor']('table'),_0x4d4af6=_0x5b5a14['createTableWalker'](_0x18c42f,{'startRow':0x0,'column':_0x1653ea,'includeAllSlots':!0x1}),_0x35bb6c=Array['from'](_0x4d4af6)['map'](_0x30a6e9=>_0x36d43c['createRangeOn'](_0x30a6e9['cell']));_0x5a3226['markMultiRangeInsertion'](_0x35bb6c,'tableColumn');});});}for(const _0x3e2e95 of['removeTableRow','removeTableColumn']){const _0x50d84b=_0x3e2e95['substr'](0xb),_0x19d87f=_0x50d84b['toLowerCase'](),_0x175205=_0x19d87f['substr'](0x0,0x3)+'span',_0x2fd06b='table'+_0x50d84b,_0x5241ca='min'+_0x50d84b,_0x24c6a5='max'+_0x50d84b;_0x5a3226['enableCommand'](_0x3e2e95,()=>{_0x415074['model']['change'](_0x4f2816=>{const _0x73beef=_0x5b5a14['getSelectionAffectedTableCells'](_0xd9591b),_0x433a60=_0x73beef[0x0]['findAncestor']('table');let _0x22c74c;if('removeTableRow'==_0x3e2e95){const _0x5aa7c9=_0x5b5a14['getRowIndexes'](_0x73beef);_0x22c74c={'startRow':_0x5aa7c9['first'],'endRow':_0x5aa7c9['last'],'includeAllSlots':!0x0};}else{const _0x1483d7=_0x5b5a14['getColumnIndexes'](_0x73beef);_0x22c74c={'startColumn':_0x1483d7['first'],'endColumn':_0x1483d7['last'],'includeAllSlots':!0x0};}const _0x5e124d=_0x5b5a14['createTableWalker'](_0x433a60,_0x22c74c),_0x200cd8=Array['from'](_0x5e124d)['map'](({cell:_0x284847})=>_0x284847),_0x57ec1b=Ne(_0x200cd8['filter'](_0x427f33=>_0x427f33['hasAttribute'](_0x175205))),_0x46cd68=Ne(_0x200cd8['filter'](_0x32a7e4=>!_0x32a7e4['hasAttribute'](_0x175205)))['map'](_0x10d01a=>_0x4f2816['createRangeOn'](_0x10d01a)),_0x283903=_0x5a3226['markMultiRangeDeletion'](_0x46cd68,_0x2fd06b);if(_0x283903&&('tableRow'==_0x283903['subType']||'tableColumn'==_0x283903['subType'])){const _0x53dec3=this['_getSuggestionCoords'](_0x283903);for(const _0x53aae5 of _0x57ec1b){const _0xb04b03=_0x4f2816['createRangeOn'](_0x53aae5),_0x44dd01=_0x5b5a14['getCellLocation'](_0x53aae5),_0x258906=_0x53aae5['getAttribute'](_0x175205)-0x1,_0xa4873f=_0x53dec3[_0x5241ca],_0x38165a=_0x53dec3[_0x24c6a5];_0xa4873f<=_0x44dd01[_0x19d87f]&&_0x44dd01[_0x19d87f]+_0x258906<=_0x38165a&&_0x283903['addRange'](_0xb04b03);}}});});}function _0x236065(_0x317b2a){const _0x217e14=Array['from'](_0xd9591b['getRanges']())['map'](_0x1d75c3=>_0x2b7c87['fromRange'](_0x1d75c3));_0x415074['model']['change'](_0xd60294=>{const _0x40977b=_0xd60294['batch'];_0x317b2a=_0x317b2a['filter'](_0x17483f=>'$graveyard'!=_0x17483f['root']['rootName']),_0xd60294['setSelection'](_0x317b2a),_0x415074['commands']['get']('removeTableRow')['refresh'](),_0x415074['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x415074['model']['enqueueChange'](()=>{_0x415074['model']['enqueueChange'](_0x40977b,_0x6aa4c3=>{const _0x54e854=_0x217e14['filter'](_0x526ffd=>'$graveyard'!=_0x526ffd['root']['rootName']);_0x54e854['length']>0x0&&_0x6aa4c3['setSelection'](_0x54e854);for(const _0x10ea9e of _0x217e14)_0x10ea9e['detach']();});});});}function _0x4815a7(_0x109985){_0x415074['model']['change'](_0x102186=>{const _0x220449=Array['from'](_0xd9591b['getRanges']())['map'](_0x575abf=>_0x2b7c87['fromRange'](_0x575abf)),_0x566b03=[];for(const _0x2c684f of _0x109985)for(const _0x1caa9d of _0x2c684f['getItems']({'shallow':!0x0}))_0x566b03['push'](_0x1caa9d);for(const _0x1e884d of _0x566b03)'$graveyard'!=_0x1e884d['root']['rootName']&&(_0x102186['setSelection'](_0x102186['createPositionAt'](_0x1e884d,0x0)),_0x415074['commands']['get']('removeTableColumn')['refresh'](),_0x415074['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ddd12=_0x220449['filter'](_0x41e794=>'$graveyard'!=_0x41e794['root']['rootName']);_0x2ddd12['length']>0x0&&_0x102186['setSelection'](_0x2ddd12);for(const _0x32f7a4 of _0x220449)_0x32f7a4['detach']();});}function _0x245f8d(_0x544331,_0x322510){return _0x322510['every'](_0x5cd336=>_0x544331['some'](_0x42db88=>_0x42db88['end']['isEqual'](_0x5cd336['start'])||_0x5cd336['end']['isEqual'](_0x42db88['start'])));}function _0x3fdd18(_0x49af59,_0x3aa8bb){return!_0x49af59['some'](_0x252f94=>_0x3aa8bb['some'](_0x3c7519=>_0x252f94['isIntersecting'](_0x3c7519)))&&_0x49af59['some'](_0xaf54e4=>_0x3aa8bb['some'](_0x172b33=>_0xaf54e4['end']['isTouching'](_0x172b33['start'])));}_0x415074['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x316f86,_0x388cc4,_0x47bc3b)=>{if(!_0x47bc3b['options']['showSuggestionHighlights'])return;const _0xe036d6=_0x388cc4['item'];if(!_0xe036d6)return;const _0x70c66f=_0x47bc3b['mapper']['toViewElement'](_0xe036d6);function _0x5e71c8(_0x9920c2){return Array['isArray'](_0x9920c2)?_0x9920c2:[_0x9920c2];}_0x70c66f&&'tableCell'===_0xe036d6['name']&&_0x505b5a(_0x70c66f,_0x47bc3b['writer'],(_0x24a1cd,_0x1b8dfe,_0x71a2d)=>_0x71a2d['addClass'](_0x5e71c8(_0x1b8dfe['classes']),_0x24a1cd),(_0x24f278,_0x178e4d,_0x411142)=>_0x411142['removeClass'](_0x5e71c8(_0x178e4d['classes']),_0x24f278));},{'priority':'highest'}),_0x5a3226['descriptionFactory']['registerDescriptionCallback'](_0x216942=>{if('insertion'!=_0x216942['type']&&'deletion'!=_0x216942['type'])return;const _0x2c081c=_0x216942['getContainedElement']();if(null!=_0x2c081c&&_0x2c081c['is']('element','table')){if('insertion'==_0x216942['type']){const _0x511970=_0x216942['getItems']()['filter'](_0x310b53=>_0x310b53['is']('$textProxy'))['map'](_0x304872=>_0x304872['data']);if(_0x511970['length'])return{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x511970['join']('\x20')+'\x22'))};}if('deletion'==_0x216942['type']){const _0x368e0e=_0x216942['getItems']()['filter'](_0x6d3ae1=>_0x6d3ae1['is']('$textProxy'))['map'](_0x3624e1=>_0x3624e1['data']);if(_0x368e0e['length'])return{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x368e0e['join']('\x20')+'\x22'))};}}}),_0x5a3226['descriptionFactory']['registerDescriptionCallback'](_0x207adf=>{if('tableRow'==_0x207adf['subType']){const _0x2b08b3=_0x207adf['getItems']()['filter'](_0x29f0d1=>_0x29f0d1['is']('$textProxy'))['map'](_0x23204e=>_0x23204e['data']),_0x10925e=this['_getSuggestionCoords'](_0x207adf),_0x41cf97=_0x10925e['maxRow']-_0x10925e['minRow']+0x1;if('insertion'==_0x207adf['type'])return _0x2b08b3['length']?{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41cf97,'\x22'+_0x2b08b3['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW',_0x41cf97))};if('deletion'==_0x207adf['type'])return _0x2b08b3['length']?{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41cf97,'\x22'+_0x2b08b3['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW',_0x41cf97))};}if('tableColumn'==_0x207adf['subType']){const _0x4f121c=_0x207adf['getItems']()['filter'](_0x2d0f2f=>_0x2d0f2f['is']('$textProxy'))['map'](_0x17e9fa=>_0x17e9fa['data']),_0x419bf8=this['_getSuggestionCoords'](_0x207adf),_0x481b14=_0x419bf8['maxColumn']-_0x419bf8['minColumn']+0x1;if('insertion'==_0x207adf['type'])return _0x4f121c['length']?{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x481b14,'\x22'+_0x4f121c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN',_0x481b14))};if('deletion'==_0x207adf['type'])return _0x4f121c['length']?{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x481b14,'\x22'+_0x4f121c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN',_0x481b14))};}}),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x236065),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x236065),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4815a7),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4815a7),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x245f8d),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x245f8d),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3fdd18),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3fdd18);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9bda59=this['editor'],_0x8837ff=_0x9bda59['model']['document']['selection'];return(_0x5d999b,_0x578a77)=>{_0x9bda59['model']['change'](_0x4b35c4=>{const {commandName:_0x4904ef,commandParams:_0x16972f}=_0x578a77;let _0x3238ec=_0x5d999b[0x0]['end']['nodeBefore'];_0x16972f&&_0x16972f[0x0]&&!0x1===_0x16972f[0x0]['forceValue']&&(_0x3238ec=_0x5d999b[0x0]['start']['nodeAfter']);const _0x55b432=_0x4b35c4['createRangeIn'](_0x3238ec);if('$graveyard'==_0x55b432['root']['rootName'])return;const _0x56e005=Array['from'](_0x8837ff['getRanges']())['map'](_0x2ffa02=>_0x2b7c87['fromRange'](_0x2ffa02));_0x4b35c4['setSelection'](_0x55b432),_0x9bda59['commands']['get'](_0x4904ef)['refresh'](),_0x16972f['push']({'forceDefaultExecution':!0x0}),_0x9bda59['execute'](_0x4904ef,..._0x16972f);const _0x56575a=_0x56e005['filter'](_0x56cbca=>'$graveyard'!=_0x56cbca['root']['rootName']);_0x56575a['length']>0x0&&_0x4b35c4['setSelection'](_0x56575a);for(const _0x2088e0 of _0x56e005)_0x2088e0['detach']();});};}['_getCoordsForCells'](_0x531189){const _0x4810c4=this['editor']['plugins']['get']('TableUtils');let _0x3865fd=Number['MAX_SAFE_INTEGER'],_0x5fd838=Number['MIN_SAFE_INTEGER'],_0x3304a1=Number['MAX_SAFE_INTEGER'],_0x5efd20=Number['MIN_SAFE_INTEGER'];for(const _0x4b84ac of _0x531189){if('$graveyard'==_0x4b84ac['root']['rootName'])continue;const {row:_0x24a12d,column:_0x5af651}=_0x4810c4['getCellLocation'](_0x4b84ac),_0x3275a1=_0x4b84ac['hasAttribute']('rowspan')?_0x4b84ac['getAttribute']('rowspan')-0x1:0x0,_0x9b3878=_0x4b84ac['hasAttribute']('colspan')?_0x4b84ac['getAttribute']('colspan')-0x1:0x0;_0x3865fd=_0x24a12d<_0x3865fd?_0x24a12d:_0x3865fd,_0x5fd838=_0x24a12d+_0x3275a1>_0x5fd838?_0x24a12d+_0x3275a1:_0x5fd838,_0x3304a1=_0x5af651<_0x3304a1?_0x5af651:_0x3304a1,_0x5efd20=_0x5af651+_0x9b3878>_0x5efd20?_0x5af651+_0x9b3878:_0x5efd20;}return{'minRow':_0x3865fd,'maxRow':_0x5fd838,'minColumn':_0x3304a1,'maxColumn':_0x5efd20};}['_setupColumnsRowsFixing'](){const _0x2b451a=this['editor'],_0x5d0194=_0x2b451a['plugins']['get']('TrackChangesEditing'),_0x422fed=_0x2b451a['plugins']['get']('TableUtils');_0x2b451a['model']['document']['on']('change:data',()=>{const _0x367f0f=Array['from'](_0x2b451a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35d1a7,data:_0x41b5b8}of _0x367f0f){const {group:_0x791c92,id:_0x3c4dbe,subType:_0x5207c5}=_0x5d0194['_splitMarkerName'](_0x35d1a7);if('suggestion'!=_0x791c92)continue;if(null!=_0x41b5b8['oldRange'])continue;const _0x3dd958=_0x5d0194['getSuggestion'](_0x3c4dbe);this['_tablePostFixingSubtypes']['includes'](_0x5207c5)&&this['_tableSuggestions']['add'](_0x3dd958);}},{'priority':'low'});const _0x1fc95b=(_0x2fef4f,_0x35d63a)=>{let _0x444c0a=!0x1;const _0x3f8fe2=_0x35d63a['createRangeOn'](_0x2fef4f),_0x3c0916=_0x2fef4f['findAncestor']('table'),_0x3d36eb=_0x422fed['getCellLocation'](_0x2fef4f);for(const _0x4eb875 of this['_tableSuggestions']){const _0x5a0bda=_0x4eb875['subType'],_0x591275=_0x5a0bda['startsWith']('tablePaste'),_0x1f6411=_0x5a0bda['substr'](_0x591275?0xa:0x5),_0x39dd3e=_0x1f6411['toLowerCase'](),_0x5e92c4=_0x39dd3e['substr'](0x0,0x3)+'span',_0x488cfa='min'+_0x1f6411,_0x3564a2='max'+_0x1f6411;if(!_0x4eb875['isInContent'])continue;if(_0x3c0916!=_0x4eb875['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4eb875['isIntersectingWithRange'](_0x3f8fe2))continue;const _0x43d41b=_0x2fef4f['hasAttribute'](_0x5e92c4)?_0x2fef4f['getAttribute'](_0x5e92c4)-0x1:0x0,_0x2ccd0a=this['_getSuggestionCoords'](_0x4eb875),_0x43a79c=_0x2ccd0a[_0x488cfa],_0x5f47c2=_0x2ccd0a[_0x3564a2];_0x43a79c<=_0x3d36eb[_0x39dd3e]&&_0x3d36eb[_0x39dd3e]+_0x43d41b<=_0x5f47c2&&(_0x4eb875['addRange'](_0x3f8fe2),_0x444c0a=!0x0);}return _0x444c0a;};_0x2b451a['model']['document']['registerPostFixer'](_0x27d673=>{let _0x2fc8c9=!0x1;for(const _0x56cb78 of _0x2b451a['model']['document']['differ']['getChanges']())if('insert'==_0x56cb78['type']){if('tableRow'==_0x56cb78['name']){for(const _0x1112ec of _0x56cb78['position']['nodeAfter']['getChildren']())_0x2fc8c9=_0x2fc8c9||_0x1fc95b(_0x1112ec,_0x27d673);}else'tableCell'==_0x56cb78['name']&&(_0x2fc8c9=_0x2fc8c9||_0x1fc95b(_0x56cb78['position']['nodeAfter'],_0x27d673));}return _0x2fc8c9;});}['_getSuggestionCoords'](_0x150ca6){return this['_getCoordsForCells'](_0x150ca6['getRanges']()['map'](_0x4cf9df=>_0x4cf9df['start']['nodeAfter']));}}function Ne(_0x686a04){return Array['from'](new Set(_0x686a04)['values']());}class Nt extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ad620=this['editor'],_0x4dffb4=_0x5ad620['model']['document']['selection'],_0x7e848d=_0x5ad620['locale'];if(!_0x5ad620['plugins']['has']('TableEditing'))return;const _0x1c1b2d=_0x5ad620['plugins']['get']('TrackChangesEditing'),_0x536b00=_0x5ad620['plugins']['get']('TableUtils'),_0x2dbb4e=_0x5ad620['plugins']['get'](Ct);_0x2dbb4e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c1b2d['enableCommand']('mergeTableCells',()=>{const _0x4ed85f=_0x536b00['getSelectionAffectedTableCells'](_0x5ad620['model']['document']['selection']);_0x5ad620['model']['change'](()=>{_0x1c1b2d['markMultiRangeBlockFormat'](_0x4ed85f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5ad620['commands']['get']('mergeTableCells')['on']('execute',(_0x26e9c9,_0x5163a2)=>{_0x5ad620['commands']['get']('trackChanges')['value']&&(_0x5163a2['length']>0x0&&_0x5163a2[_0x5163a2['length']-0x1]&&_0x5163a2[_0x5163a2['length']-0x1]['forceDefaultExecution']||_0x1c1b2d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x26e9c9['stop']());},{'priority':'highest'});for(const _0x48c110 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xa2341b=_0x5ad620['commands']['get'](_0x48c110);_0x1c1b2d['enableCommand'](_0x48c110,()=>{const _0x3a35ef=_0x5ad620['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x316089=>_0x316089['is']('element','tableCell')),_0x5756b7=_0xa2341b['value'];_0x5ad620['model']['change'](()=>{_0x1c1b2d['markMultiRangeBlockFormat']([_0x3a35ef,_0x5756b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bfed0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2c615a=_0x5ad620['commands']['get'](_0x5bfed0);_0x1c1b2d['enableCommand'](_0x5bfed0,()=>{const _0x2fb23c=_0x536b00['getSelectionAffectedTableCells'](_0x5ad620['model']['document']['selection'])[0x0],_0x1f8728=_0x2fb23c['findAncestor']('table'),{column:_0x5d4958,row:_0x463fcf}=_0x536b00['getCellLocation'](_0x2fb23c);let _0x9d266d=[];if('horizontally'==_0x2c615a['direction']){const _0x52c57d=_0x536b00['createTableWalker'](_0x1f8728,{'startRow':_0x463fcf,'endRow':_0x463fcf,'includeAllSlots':!0x0});_0x9d266d=Array['from'](_0x52c57d)['map'](_0x40aba3=>_0x40aba3['cell']);}else{const _0x53edfa=_0x536b00['createTableWalker'](_0x1f8728,{'column':_0x5d4958,'includeAllSlots':!0x0});_0x9d266d=Array['from'](_0x53edfa)['map'](_0x554ee4=>_0x554ee4['cell']);}_0x5ad620['model']['change'](_0x542bb1=>{_0x1c1b2d['markBlockFormat'](_0x542bb1['createRangeOn'](_0x2fb23c),{'commandName':_0x5bfed0,'commandParams':[]},_0x9d266d,_0x5bfed0);});});}_0x1c1b2d['descriptionFactory']['registerDescriptionCallback'](_0x1ef36e=>{if('formatBlock'!=_0x1ef36e['type']&&'formatInline'!=_0x1ef36e['type'])return;const {data:_0xbe5478}=_0x1ef36e;return _0xbe5478&&'mergeTableCells'==_0xbe5478['commandName']?{'type':'format','content':c(_0x7e848d,'*Merge\x20cells*')}:void 0x0;}),_0x1c1b2d['descriptionFactory']['registerDescriptionCallback'](_0x2711a3=>{if('formatBlock'!=_0x2711a3['type']&&'formatInline'!=_0x2711a3['type'])return;const {data:_0xd79125}=_0x2711a3;return _0xd79125?'splitTableCellVertically'==_0xd79125['commandName']?{'type':'format','content':c(_0x7e848d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd79125['commandName']?{'type':'format','content':c(_0x7e848d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2bfbcb=_0x2dbb4e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d2d5b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c1b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d2d5b,'accept',_0x2bfbcb);for(const _0x2d81bf of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c1b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d81bf,'accept',_0x2bfbcb);_0x1c1b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x567d44=>{_0x5ad620['model']['change'](_0x433fb5=>{const _0xe3016=Array['from'](_0x4dffb4['getRanges']())['map'](_0x36e136=>_0x2b7c87['fromRange'](_0x36e136));_0x433fb5['setSelection'](_0x567d44),_0x5ad620['commands']['get']('mergeTableCells')['refresh'](),_0x5ad620['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3370d7=_0xe3016['filter'](_0x338298=>'$graveyard'!=_0x338298['root']['rootName']);_0x3370d7['length']>0x0&&_0x433fb5['setSelection'](_0x3370d7);for(const _0x1b3829 of _0xe3016)_0x1b3829['detach']();});});for(const _0x6126b9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x537769=_0x5ad620['commands']['get'](_0x6126b9);_0x537769['on']('set:isEnabled',(_0xa43781,_0x22441f,_0x27977e)=>{if(_0x27977e){const _0x472d87=_0x5ad620['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f1d4c=>_0x3f1d4c['is']('element','tableCell'));this['_areMergableCells'](_0x537769['value'],_0x472d87)||(_0xa43781['return']=!0x1,_0xa43781['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x475a50=this['editor']['commands']['get']('mergeTableCells'),_0x4fe237=this['editor']['plugins']['get']('TableUtils');if(!_0x475a50['isEnabled'])return!0x1;const _0x1e2f2d=_0x4fe237['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44747b of _0x1e2f2d)for(const _0x4a64b5 of _0x1e2f2d)if(_0x44747b!=_0x4a64b5&&!this['_areMergableCells'](_0x44747b,_0x4a64b5))return!0x1;return!0x0;}['_areMergableCells'](_0x21066d,_0x44e58a){const _0x1d7095=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b8e6=this['editor']['model']['createRangeOn'](_0x21066d),_0x4aeb95=this['editor']['model']['createRangeOn'](_0x44e58a),_0x1cbe96=new Set(),_0x50a71c=new Set();for(const _0x4e9988 of _0x1d7095['getSuggestions']())if(('insertion'==_0x4e9988['type']||'deletion'==_0x4e9988['type']||'mergeTableCells'==_0x4e9988['subType'])&&_0x4e9988['isInContent']){for(const _0x3663ee of _0x4e9988['getRanges']())_0x3663ee['containsRange'](_0x34b8e6,!0x0)&&_0x1cbe96['add'](_0x4e9988['type']+':'+_0x4e9988['author']['id']),_0x3663ee['containsRange'](_0x4aeb95,!0x0)&&_0x50a71c['add'](_0x4e9988['type']+':'+_0x4e9988['author']['id']);}if(_0x1cbe96['size']!=_0x50a71c['size'])return!0x1;for(const _0x2f9bcd of _0x1cbe96)if(!_0x50a71c['has'](_0x2f9bcd))return!0x1;return!0x0;}}class Dt extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x51357c=this['editor'];if(!_0x51357c['plugins']['has']('TableEditing'))return;const _0x132072=_0x51357c['locale'],_0x335924=_0x51357c['plugins']['get']('TrackChangesEditing');_0x335924['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x335924['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x335924['registerBlockAttribute']('headingRows'),_0x335924['registerBlockAttribute']('headingColumns'),_0x335924['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x132072,'FORMAT_HEADER_ROW')),_0x335924['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x132072,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xcd375b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44fe12=this['editor']['plugins']['get']('TableUtils'),_0x36f5bd=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x55a083({showActiveMarker:_0x24fb20=!0x0,setDataAttribute:_0x36cbfc=!0x0}={}){return(_0x2cf19f,_0x996aee,_0x10f34c)=>{const {type:_0xfe7e00,id:_0x470549}=_0xcd375b['_splitMarkerName'](_0x996aee['markerName']),_0x229ac4=_0xcd375b['getSuggestion'](_0x470549),_0x35f80c=_0x229ac4['data'];if('formatBlock'!=_0x229ac4['type']||!_0x35f80c||'setTableColumnHeader'!=_0x35f80c['commandName'])return;if(_0x996aee['item'])return void _0x2cf19f['stop']();if(!_0x10f34c['consumable']['consume'](_0x996aee['markerRange'],_0x2cf19f['name']))return;const _0x4326c6=_0x996aee['markerRange']['start']['nodeAfter'],_0x467b10=_0x996aee['markerRange']['end']['nodeBefore'],_0x38ea7d=_0x4326c6['parent']['parent'],{column:_0x464f21}=_0x44fe12['getCellLocation'](_0x4326c6),{column:_0x402c33}=_0x44fe12['getCellLocation'](_0x467b10);for(let _0x4a7fbb=_0x464f21;_0x4a7fbb<=_0x402c33;_0x4a7fbb++){const _0x5141ab=_0x44fe12['createTableWalker'](_0x38ea7d,{'column':_0x4a7fbb,'includeAllSlots':!0x1});for(const _0x4fc9a3 of _0x5141ab){const _0x2c01bf=_0x4fc9a3['cell'],_0x59f839=_0x10f34c['mapper']['toViewElement'](_0x2c01bf);_0x10f34c['writer']['addClass']('ck-suggestion-marker-'+_0xfe7e00,_0x59f839),_0x36cbfc&&_0x10f34c['writer']['setAttribute']('data-suggestion',_0x470549,_0x59f839),_0x10f34c['mapper']['bindElementToMarker'](_0x59f839,_0x996aee['markerName']),_0x24fb20&&(_0xcd375b['activeMarkers']['includes'](_0x996aee['markerName'])?_0x10f34c['writer']['addClass']('ck-suggestion-marker--active',_0x59f839):_0x10f34c['writer']['removeClass']('ck-suggestion-marker--active',_0x59f839));}}};}_0xcd375b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36f5bd),_0xcd375b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36f5bd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x55a083(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c96bd,_0xa853d3,_0x11aac3)=>{_0x11aac3['options']['showSuggestionHighlights']&&_0x55a083({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3c96bd,_0xa853d3,_0x11aac3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2bbeca,_0xc5ae3,_0x13efad)=>{const {type:_0x338ba4,id:_0xb836d1}=_0xcd375b['_splitMarkerName'](_0xc5ae3['markerName']),_0x26e530=_0xcd375b['getSuggestion'](_0xb836d1),_0x2b338f=_0x26e530['data'];if('formatBlock'!=_0x26e530['type']||!_0x2b338f||'setTableColumnHeader'!=_0x2b338f['commandName'])return;const _0x5e0195=_0x13efad['mapper']['markerNameToElements'](_0xc5ae3['markerName']);if(_0x5e0195){for(const _0x2bca82 of _0x5e0195)_0x13efad['writer']['removeClass']('ck-suggestion-marker-'+_0x338ba4,_0x2bca82),_0x13efad['writer']['removeClass']('ck-suggestion-marker--active',_0x2bca82),_0x13efad['writer']['removeAttribute']('data-suggestion',_0x2bca82),_0x13efad['mapper']['unbindElementFromMarkerName'](_0x2bca82,_0xc5ae3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f5c06=this['editor'],_0x275193=_0x5f5c06['locale'];function _0x4b5d97(_0x564df0){return{'type':'format','content':c(_0x275193,'*Format:*\x20%0',_0x564df0)};}_0x5f5c06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x552d57=>{if('formatBlock'!=_0x552d57['type'])return;const {data:_0x194f17}=_0x552d57;if(_0x194f17){if('setTableRowHeader'==_0x194f17['commandName']){const _0xffbe6a=_0x194f17['commandParams'][0x0]['forceValue'];return _0x4b5d97(c(_0x275193,_0xffbe6a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x194f17['commandName']){const _0x42f5ee=_0x194f17['commandParams'][0x0]['forceValue'];return _0x4b5d97(c(_0x275193,_0x42f5ee?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x43cb64=>[_0x43cb64,null]));class Mt extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x170c7c=this['editor'];if(!_0x170c7c['plugins']['has']('TableClipboard'))return;const _0xfd3715=_0x170c7c['plugins']['get']('TrackChangesEditing'),_0x4c6de8=_0x170c7c['plugins']['get']('TableUtils'),_0x59812d=_0x170c7c['plugins']['get'](Ct),_0x20c620=_0x170c7c['plugins']['get']('TableClipboard');_0x59812d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x170c7c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x170c7c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31506b=null;_0x170c7c['model']['on']('insertContent',(_0x242fa1,_0x2aecf4)=>{const [_0x3afa58,_0x21222b]=_0x2aecf4,_0x3b2f2f=_0x2aecf4[_0x2aecf4['length']-0x1];_0x3b2f2f&&_0x3b2f2f['forceDefaultExecution']||_0xfd3715['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x41d75e,_0x330a0e,_0x512cb5,_0x1605c5,_0x13ddf4){if(_0x330a0e&&!_0x330a0e['is']('documentSelection'))return!0x1;const _0x4875aa=_0x13ddf4['getTableIfOnlyTableInContent'](_0x41d75e,_0x512cb5);if(!_0x4875aa||!Ue(_0x4875aa,void 0x0,_0x1605c5))return!0x1;const _0x2be174=_0x1605c5['getSelectionAffectedTableCells'](_0x512cb5['document']['selection']);if(!_0x2be174['length'])return!0x1;const _0x2bcad7=_0x2be174[0x0]['findAncestor']('table'),_0x324e95=_0x1605c5['getRowIndexes'](_0x2be174),_0x2ecf74=_0x1605c5['getColumnIndexes'](_0x2be174),_0x5ae67c={'startRow':_0x324e95['first'],'endRow':_0x324e95['last'],'startColumn':_0x2ecf74['first'],'endColumn':_0x2ecf74['last']};return 0x1==_0x2be174['length']&&(_0x5ae67c['endRow']+=_0x1605c5['getRows'](_0x4875aa)-0x1,_0x5ae67c['endColumn']+=_0x1605c5['getColumns'](_0x4875aa)-0x1),Ue(_0x2bcad7,_0x5ae67c,_0x1605c5);}(_0x3afa58,_0x21222b,_0x170c7c['model'],_0x4c6de8,_0x20c620)&&(_0x242fa1['stop'](),_0x31506b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x170c7c['model']['change'](()=>{_0x170c7c['model']['insertContent'](_0x2aecf4[0x0],_0x2aecf4[0x1],_0x2aecf4[0x2],{'forceDefaultExecution':!0x0});const _0x5bab0c=_0x2ea4c3(),{rowInsertionRanges:_0xb73b7d,columnInsertionRanges:_0x499c7d,insertionRanges:_0x21ed09,deletionRanges:_0x541ba2,cells:_0x5f12f9}=_0x31506b;_0xb73b7d['length']&&_0xfd3715['markMultiRangeInsertion'](_0xb73b7d,'tablePasteRow',{'tablePasteChainId':_0x5bab0c}),_0x499c7d['length']&&_0xfd3715['markMultiRangeInsertion'](_0x499c7d,'tablePasteColumn',{'tablePasteChainId':_0x5bab0c}),_0x21ed09['length']&&(_0xfd3715['markMultiRangeInsertion'](_0x21ed09,'tablePaste',{'tablePasteChainId':_0x5bab0c,'skipNestingCheck':!0x0}),_0x21ed09['forEach'](_0x1f1687=>_0x1f1687['detach']?.())),_0x541ba2['length']&&(_0xfd3715['markMultiRangeDeletion'](_0x541ba2,'tablePaste',{'tablePasteChainId':_0x5bab0c,'skipNestingCheck':!0x0}),_0x541ba2['forEach'](_0x26e476=>_0x26e476['detach']?.()));const _0x454bea=_0xfd3715['markMultiRangeBlockFormat'](_0x5f12f9['map'](({element:_0x142862})=>_0x142862),{'formatGroupId':_0x2ea4c3()},[],'tablePasteCell',{'tablePasteChainId':_0x5bab0c});if(_0x454bea){const _0x59a782=_0x454bea['getMarkers'](),_0x4d13c3=[];for(const {element:_0x12c0ec,attributes:_0x27fd43}of _0x5f12f9){if(!_0x27fd43)continue;const _0x275e3f=_0x170c7c['model']['createRangeOn'](_0x12c0ec),_0x419015=_0x59a782['find'](_0x9571be=>_0x9571be['getRange']()['isEqual'](_0x275e3f));_0x419015&&_0x4d13c3['push']([_0x419015['name'],_0x27fd43]);}_0x4d13c3['length']&&_0x454bea['setAttribute']('markerAttributes',Object['fromEntries'](_0x4d13c3));}_0x31506b=null;}));},{'priority':_0x79d5b2['high']+0xa}),_0x170c7c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x32ffa1,_0x76e91d)=>{const [_0x1f82d5,_0x4d5c58,,_0x43bb41]=_0x76e91d;if(!_0x31506b)return;_0x32ffa1['stop']();const _0x4ca576=_0x1f82d5['cell'],_0x323547=_0x4d5c58,_0x24ca2c=Oe(_0x4ca576),_0x4fa0c3=Oe(_0x323547);_0x32ffa1['return']=_0x4ca576;let _0x286fd6=null,_0x26c880=null;if(_0x4fa0c3||_0x24ca2c){if(_0x24ca2c&&!_0x4fa0c3){_0x43bb41['remove'](_0x4ca576['getChild'](0x0));for(const _0xcb60fb of Array['from'](_0x323547['getChildren']()))_0x43bb41['insert'](_0xcb60fb,_0x4ca576,'end');const _0x241a9d=_0x31506b['rowInsertionIndexes']['includes'](_0x1f82d5['row']),_0x3a0a2d=_0x31506b['columnInsertionIndexes']['includes'](_0x1f82d5['column']);_0x241a9d||_0x3a0a2d||(_0x286fd6=_0x2b7c87['fromRange'](_0x43bb41['createRangeIn'](_0x4ca576)));}else _0x4fa0c3&&!_0x24ca2c&&(_0x26c880=_0x43bb41['createRangeIn'](_0x4ca576));}else{const _0x31803b=_0x43bb41['createElement']('tableCellSuggestion'),_0x6327ab=_0x43bb41['createElement']('tableCellSuggestion');_0x43bb41['wrap'](_0x43bb41['createRangeIn'](_0x4ca576),_0x6327ab),_0x43bb41['insert'](_0x31803b,_0x4ca576,0x0);for(const _0x5aea59 of Array['from'](_0x323547['getChildren']()))_0x43bb41['insert'](_0x5aea59,_0x31803b,'end');_0x286fd6=_0x2b7c87['fromRange'](_0x43bb41['createRangeOn'](_0x31803b)),_0x26c880=_0x2b7c87['fromRange'](_0x43bb41['createRangeOn'](_0x6327ab));}const _0x2c4f02=Array['from'](_0x323547['getAttributes']())['filter'](([_0x2b0668])=>Be['includes'](_0x2b0668));_0x31506b['cells']['push']({'element':_0x4ca576,'attributes':_0x2c4f02['length']?Object['fromEntries'](_0x2c4f02):null}),_0x286fd6&&_0x31506b['insertionRanges']['push'](_0x286fd6),_0x26c880&&_0x31506b['deletionRanges']['push'](_0x26c880);},{'priority':'high'}),_0x4c6de8['on']('insertColumns',(_0x413afe,_0x560eff)=>{const [_0x4f4777,_0xa0b7d9={}]=_0x560eff;if(!_0x31506b)return;const _0x5be27f=_0xa0b7d9['at']||0x0,_0x51dc81=_0xa0b7d9['columns']||0x1;_0x31506b['columnInsertionIndexes']=new Array(_0x51dc81)['fill'](_0x5be27f)['map']((_0x3fc39b,_0x1db4dc)=>_0x3fc39b+_0x1db4dc);for(const {cell:_0x311121}of _0x4c6de8['createTableWalker'](_0x4f4777,{'startColumn':_0x5be27f,'endColumn':_0x5be27f+_0x51dc81-0x1}))_0x31506b['columnInsertionRanges']['push'](_0x170c7c['model']['createRangeOn'](_0x311121));},{'priority':'low'}),_0x4c6de8['on']('insertRows',(_0x1ce10f,_0x58c3a3)=>{const [_0x3240bd,_0x299488={}]=_0x58c3a3;if(!_0x31506b)return;const _0x1723b6=_0x299488['at']||0x0,_0xe189d4=_0x299488['rows']||0x1;_0x31506b['rowInsertionIndexes']=new Array(_0xe189d4)['fill'](_0x1723b6)['map']((_0x314477,_0x9fd45)=>_0x314477+_0x9fd45);for(const {cell:_0x17a6e7}of _0x4c6de8['createTableWalker'](_0x3240bd,{'startRow':_0x1723b6,'endRow':_0x1723b6+_0xe189d4-0x1}))_0x31506b['rowInsertionRanges']['push'](_0x170c7c['model']['createRangeOn'](_0x17a6e7));},{'priority':'low'}),_0xfd3715['descriptionFactory']['registerDescriptionCallback'](_0x3794da=>{if(_0x3794da['subType']&&_0x3794da['subType']['startsWith']('tablePaste'))return _0x3794da['previous']?{}:{'type':'insertion','content':c(_0x170c7c['locale'],'*Replace\x20table\x20cells*')};});const _0x5d1638=()=>!0x1;for(const _0x24da8a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xfd3715['_suggestionFactory']['registerCustomCallback']('insertion',_0x24da8a,'join',_0x5d1638),_0xfd3715['_suggestionFactory']['registerCustomCallback']('deletion',_0x24da8a,'join',_0x5d1638),_0xfd3715['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24da8a,'join',_0x5d1638);_0xfd3715['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d1638),_0xfd3715['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x78674c,_0x48b20f,_0x35dfb5)=>{const _0x4838a0=_0x78674c['map'](_0x1cf5ed=>_0x1cf5ed['getContainedElement']())['filter'](_0x56ebdd=>_0x56ebdd),_0x15fdf0=new Map(_0x4838a0['map'](_0x3edd90=>[_0x3edd90,null]));if(_0x31506b){for(const {element:_0x629de9,attributes:_0x30dd6f}of _0x31506b['cells'])_0x30dd6f&&_0x15fdf0['set'](_0x629de9,_0x30dd6f);}else{if(_0x35dfb5&&_0x35dfb5['markerAttributes'])for(const [_0x3ed781,_0x136cb7]of Object['entries'](_0x35dfb5['markerAttributes'])){const _0x3e57d3=_0x170c7c['model']['markers']['get'](_0x3ed781),_0x2cfa0b=_0x3e57d3?_0x3e57d3['getRange']()['getContainedElement']():null;_0x2cfa0b&&_0x15fdf0['set'](_0x2cfa0b,_0x136cb7);}}_0x170c7c['model']['change'](_0x6b93bb=>{for(const [_0x1047d0,_0x565102]of _0x15fdf0)_0x6b93bb['setAttributes']({...xe,..._0x565102},_0x1047d0);});});const _0x3982b8=(_0x37682d,_0x4fbfe7)=>{_0xfd3715['_suggestionFactory']['registerCustomCallback'](_0x37682d,'tablePaste',_0x4fbfe7,(_0x24de51,_0x4ca0fa,_0x4d3727)=>{_0x170c7c['model']['change'](_0xfafa81=>{const _0x4f94e0=[];for(const _0x2bfedb of _0x24de51){const _0x595601=_0x2bfedb['start']['nodeAfter'];_0x595601['is']('element','tableCellSuggestion')&&_0x4f94e0['push'](_0x595601);}_0xfd3715['_suggestionFactory']['getSuggestionCallback'](_0x37682d,null,_0x4fbfe7)(_0x24de51,_0x4ca0fa,_0x4d3727);for(const _0x144fe4 of _0x4f94e0)'$graveyard'!=_0x144fe4['root']['rootName']&&_0xfafa81['unwrap'](_0x144fe4);});});};_0x3982b8('insertion','accept'),_0x3982b8('insertion','discard'),_0x3982b8('deletion','accept'),_0x3982b8('deletion','discard'),_0xfd3715['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x454841=>{const _0x213f78=_0x454841['map'](_0x3cef0c=>_0x3cef0c['getContainedElement']()),_0x3d4e6d=_0x213f78[0x0]['findAncestor']('table'),{minRow:_0x144b6e,maxRow:_0x41f36d}=_0x59812d['_getCoordsForCells'](_0x213f78);_0x4c6de8['removeRows'](_0x3d4e6d,{'at':_0x144b6e,'rows':_0x41f36d-_0x144b6e+0x1});}),_0xfd3715['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d764d=>{const _0x4b8af3=_0x2d764d['map'](_0x3e7a94=>_0x3e7a94['getContainedElement']()),_0x293468=_0x4b8af3[0x0]['findAncestor']('table'),{minColumn:_0x584670,maxColumn:_0x4a0efc}=_0x59812d['_getCoordsForCells'](_0x4b8af3);_0x4c6de8['removeColumns'](_0x293468,{'at':_0x584670,'columns':_0x4a0efc-_0x584670+0x1});});const _0x33c022=(_0xccda8a,_0x493928)=>{if(!_0x493928['subType']||!_0x493928['subType']['startsWith']('tablePaste'))return;const _0x4f1a30=_0x493928['attributes']['tablePasteChainId'],_0x14ba08=_0xfd3715['getSuggestions']()['filter'](_0x4ff364=>_0x4ff364['isInContent']&&_0x4ff364['attributes']&&_0x4ff364['attributes']['tablePasteChainId']==_0x4f1a30);_0x14ba08['length']&&_0x493928['getAllAdjacentSuggestions']()['length']!=_0x14ba08['length']&&_0x14ba08['reduce']((_0x1b823f,_0x5a3ca6)=>(_0x1b823f['next']=_0x5a3ca6,_0x5a3ca6['previous']=_0x1b823f,_0x5a3ca6));};function _0x36012d(_0x39f31d,_0x1b8949=!0x0){const {id:_0x31fe18,authorId:_0x4be86d}=_0xfd3715['_splitMarkerName'](_0x39f31d['markerName']),_0x47115a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x52bcb7=_0xfd3715['activeMarkers']['includes'](_0x39f31d['markerName']);return _0x52bcb7&&_0x47115a['push']('ck-suggestion-marker--active'),{'classes':_0x47115a,'attributes':{'data-suggestion':_0x31fe18,'data-author-id':_0x4be86d},'priority':_0x52bcb7&&_0x1b8949?0xbc2:0xbb8};}_0xfd3715['on']('suggestionLoaded',_0x33c022,{'priority':'high'}),_0xfd3715['on']('suggestionUnloaded',_0x33c022,{'priority':'high'}),_0x170c7c['model']['document']['registerPostFixer'](()=>{let _0x496862=!0x1;const _0x31f312=Array['from'](_0x170c7c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3412d4,data:_0x18cbe5}of _0x31f312){const {group:_0xfd0c7a,type:_0x550f6b,id:_0x22bfd4}=_0xfd3715['_splitMarkerName'](_0x3412d4);if('suggestion'!=_0xfd0c7a||'deletion'!=_0x550f6b||_0x18cbe5['oldRange'])continue;if(!_0xfd3715['hasSuggestion'](_0x22bfd4))continue;const _0x5f9306=_0xfd3715['getSuggestion'](_0x22bfd4)['getRanges'](),_0x400964=_0x170c7c['plugins']['get']('Users')['me'];for(const _0x43d8bc of _0xfd3715['getSuggestions']()){if(!_0x43d8bc['isInContent']||_0x43d8bc['author']!=_0x400964)continue;if('formatBlock'!=_0x43d8bc['type']||'tablePasteCell'!=_0x43d8bc['subType'])continue;if(_0x43d8bc['getRanges']()['every'](_0x49c69e=>_0x5f9306['some'](_0x555071=>_0x555071['containsRange'](_0x49c69e,!0x0)))){for(const _0x1f5682 of _0x43d8bc['getAllAdjacentSuggestions']())_0x1f5682['isInContent']&&(_0x1f5682['discard'](),_0x496862=!0x0);}}}return _0x496862;}),_0x170c7c['model']['document']['registerPostFixer'](_0x54499b=>{const _0x3718be=_0x170c7c['commands']['get']('redo');if(!_0x3718be||!_0x3718be['_createdBatches']['has'](_0x54499b['batch']))return!0x1;let _0x4c4246=!0x1;const _0x554acb=_0x170c7c['plugins']['get']('Users')['me'],_0x130b30=_0x170c7c['model']['document']['differ']['getChanges'](),_0x238f0b=Array['from'](_0x170c7c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x31ce57,data:_0x193ecb})=>{const {group:_0x29a450,subType:_0x27e724,authorId:_0x3ae91a}=_0xfd3715['_splitMarkerName'](_0x31ce57);return'suggestion'==_0x29a450&&'tablePaste'==_0x27e724&&_0x3ae91a==_0x554acb['id']&&!_0x193ecb['oldRange'];});for(const _0x4e509d of _0x130b30){if('insert'!=_0x4e509d['type']||'tableCellSuggestion'!=_0x4e509d['name']||0x1!=_0x4e509d['length'])continue;const _0x1aa9bf=_0x54499b['createRange'](_0x4e509d['position'],_0x4e509d['position']['getShiftedBy'](0x1));if(!_0x238f0b['find'](({data:_0x1693d8})=>_0x1693d8['newRange']['isEqual'](_0x1aa9bf))){for(const {name:_0x4c6982,data:_0x378990}of _0x238f0b)if(_0x1aa9bf['containsRange'](_0x378990['newRange'])){_0x54499b['updateMarker'](_0x4c6982,{'range':_0x1aa9bf}),_0x4c4246=!0x0;break;}}}return _0x4c4246;}),_0x170c7c['model']['document']['registerPostFixer'](_0x28ef87=>{let _0x2e3457=!0x1;const _0x3abfe7=_0x170c7c['plugins']['get']('Users')['me'],_0x2b426a=_0xfd3715['getSuggestions']()['filter'](_0x137a0a=>_0x137a0a['isInContent']&&_0x137a0a['author']==_0x3abfe7),_0x49f5ae=new Set(),_0x279fe2=new Set();for(const _0x997be6 of _0x2b426a)if('tablePaste'==_0x997be6['subType'])for(const _0x5c708d of _0x997be6['getMarkers']()){const _0x2dd542=_0x5c708d['getRange']()['getContainedElement']();if(_0x2dd542){if(_0x2dd542['is']('element','tableCellSuggestion')&&Oe(_0x2dd542)){_0x997be6['removeMarker'](_0x5c708d['name']),_0x49f5ae['add'](_0x2dd542),_0x2e3457=!0x0;const _0x2b4e8b=_0x2dd542['nextSibling'],_0x35d99e=_0x2dd542['previousSibling'],_0x233f1d=_0x2b4e8b&&_0x2b4e8b['is']('element','tableCellSuggestion'),_0x5b9df1=_0x35d99e&&_0x35d99e['is']('element','tableCellSuggestion');_0x233f1d&&!_0x49f5ae['has'](_0x2b4e8b)&&_0x279fe2['add'](_0x2b4e8b),_0x5b9df1&&!_0x49f5ae['has'](_0x35d99e)&&_0x279fe2['add'](_0x35d99e);}else _0x2dd542['is']('element','paragraph')&&_0x2dd542['isEmpty']&&(_0x997be6['removeMarker'](_0x5c708d['name']),_0x2e3457=!0x0);}}else{if('tablePasteCell'==_0x997be6['subType']){if(!_0x997be6['attributes']||!_0x997be6['attributes']['tablePasteChainId'])continue;const _0x1bb90a=_0x997be6['attributes']['markerAttributes'];if(_0x1bb90a&&Object['keys'](_0x1bb90a)['length'])continue;const _0x2d6518=_0x997be6['attributes']['tablePasteChainId'];let _0x438d38=!0x0,_0x9dd35f=!0x0;for(const _0x30cb2c of _0x2b426a)if(_0x30cb2c['subType']&&_0x30cb2c['subType']['startsWith']('tablePaste')){if(!_0x30cb2c['attributes']['tablePasteChainId']){_0x9dd35f=!0x1;break;}if(_0x30cb2c['id']!=_0x997be6['id']&&_0x30cb2c['attributes']['tablePasteChainId']==_0x2d6518){_0x438d38=!0x1;break;}}_0x9dd35f&&_0x438d38&&(_0x997be6['removeMarkers'](),_0x2e3457=!0x0);}}for(const _0x5bb80f of _0x49f5ae)_0x28ef87['remove'](_0x5bb80f);for(const _0x4334ba of _0x279fe2)_0x28ef87['unwrap'](_0x4334ba);return _0x2e3457;}),_0x170c7c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5186cd=>_0x36012d(_0x5186cd),'converterPriority':'high'}),_0x170c7c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3c562d,_0x404b20)=>_0x404b20['options']['showSuggestionHighlights']?_0x36012d(_0x3c562d,!0x1):null,'converterPriority':'high'});const _0x215ac2=_0x170c7c['editing']['view'];this['listenTo'](_0x215ac2['document'],'clipboardOutput',(_0x47d70a,_0x525b4e)=>{const _0xba4f06=[];for(const _0x57aa63 of _0x215ac2['createRangeIn'](_0x525b4e['content'])['getItems']())_0x57aa63['is']('element','suggestion-td')&&_0xba4f06['push'](_0x57aa63);_0x215ac2['change'](_0xfe97c=>{for(const _0xd72b2a of _0xba4f06)_0xfe97c['move'](_0xfe97c['createRangeIn'](_0xd72b2a),_0xfe97c['createPositionBefore'](_0xd72b2a)),_0xfe97c['remove'](_0xd72b2a);});});}}function Oe(_0xa2d13d){if(_0xa2d13d['isEmpty'])return!0x0;const _0x2b11e0=_0xa2d13d['getChild'](0x0);return _0x2b11e0['is']('element','paragraph')&&_0x2b11e0['isEmpty'];}function Ue(_0x45f82d,_0x16e7cd={},_0x508a3e){for(const {isAnchor:_0x50885f,cellHeight:_0x5698a4,cellWidth:_0x1f6a69}of _0x508a3e['createTableWalker'](_0x45f82d,{'includeAllSlots':!0x0,..._0x16e7cd}))if(!_0x50885f||0x1!=_0x5698a4||0x1!=_0x1f6a69)return!0x1;return!0x0;}class $t extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2ad4ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ad4ce['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2ad4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2ad4ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ad4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2ad4ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2ad4ce['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x395f2e,_0x563176){const _0x52c961=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c1491=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4f3012=_0x563176['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30085f=_0x2c1491['getColumnGroupElement'](_0x4f3012);let _0x379cc3=_0x30085f?_0x2c1491['getTableColumnsWidths'](_0x30085f):null,_0x5cbbc7=_0x4f3012['getAttribute']('tableWidth')||null;const _0x3cd7e6=_0x563176['tableWidth']||_0x5cbbc7,_0xd634e9=_0x563176['columnWidths']||_0x379cc3,_0x56e658=this['editor']['plugins']['get']('Users')['me'];for(const _0xfaaace of _0x52c961['getSuggestions']()){const _0x194b5b=_0xfaaace['getContainedElement']();if('resizeTable'===_0xfaaace['subType']&&_0x194b5b===_0x4f3012){_0xfaaace['author']!==_0x56e658&&_0xfaaace['discard']();const _0x20ce69=_0xfaaace['data']['commandParams'];_0x5cbbc7=_0x20ce69[0x0]['tableWidth'],_0x379cc3=_0x20ce69[0x0]['columnWidths'];break;}}_0x395f2e({'table':_0x4f3012,'tableWidth':_0x3cd7e6,'columnWidths':_0xd634e9}),_0x52c961['markBlockFormat'](_0x4f3012,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5cbbc7,'columnWidths':_0x379cc3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf5c9f7){if('formatBlock'!=_0xf5c9f7['type']&&'formatInline'!=_0xf5c9f7['type'])return;const {data:_0x112992}=_0xf5c9f7;if(_0x112992&&'resizeTable'===_0x112992['formatGroupId']){const _0x3406e6='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3406e6)};}}}class Bt extends _0x368c11{['afterInit'](){const _0x29121a=this['editor'];_0x29121a['plugins']['has']('Template')&&_0x29121a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x368c11{['afterInit'](){const _0x1d1053=this['editor'];if(!_0x1d1053['commands']['get']('insertTableOfContents'))return;_0x1d1053['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x528668=_0x1d1053['plugins']['get']('TrackChangesEditing'),_0x4d3e28=_0x1d1053['locale'];_0x528668['descriptionFactory']['registerElementLabel']('tableOfContents',_0x28960b=>c(_0x4d3e28,'ELEMENT_TABLE_OF_CONTENTS',_0x28960b));}}class Rt extends _0x368c11{['afterInit'](){const _0x15d0ff=this['editor'];if(!_0x15d0ff['plugins']['has']('Title'))return;const _0x35e98d=_0x15d0ff['plugins']['get']('TrackChangesEditing');_0x35e98d['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x15d0ff['locale'],'ELEMENT_TITLE')),_0x15d0ff['model']['document']['registerPostFixer'](_0x3c1ed1=>{let _0x5d7531=!0x1;const _0x380892=Array['from'](_0x15d0ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22eb1c,data:_0xc33a27}of _0x380892){const {group:_0x18af40}=_0x35e98d['_splitMarkerName'](_0x22eb1c);if('suggestion'!==_0x18af40||!_0xc33a27['newRange'])continue;const _0x419c15=_0xc33a27['newRange'],_0x16b120=_0x419c15['end']['nodeBefore'];if(!_0x16b120||!_0x16b120['is']('element','title-content'))continue;if(!_0x419c15['start']['isTouching'](_0x419c15['end']))continue;const _0x3c53e8=_0x15d0ff['model']['schema']['getNearestSelectionRange'](_0x419c15['end'],'forward');if(_0x3c53e8&&_0x3c53e8['isCollapsed']){const _0x46862b=_0x3c1ed1['createRange'](_0x419c15['start'],_0x3c53e8['start']);_0x46862b['isEqual'](_0x419c15)||(_0x3c1ed1['updateMarker'](_0x22eb1c,{'range':_0x46862b}),_0x5d7531=!0x0);}_0x5d7531||(_0x3c1ed1['removeMarker'](_0x22eb1c),_0x5d7531=!0x0);}return _0x5d7531;});}}class xt extends _0x368c11{['afterInit'](){const _0x578be5=this['editor'],_0x5d7374=_0x578be5['plugins']['get']('TrackChangesEditing');_0x578be5['plugins']['has']('Uploadcare')&&(_0x5d7374['enableCommand']('uploadcare'),_0x578be5['plugins']['has']('UploadcareImageEdit')&&(_0x5d7374['enableCommand']('uploadcareImageEdit'),_0x5d7374['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5d7374['registerBlockAttribute']('uploadcareImageId'),_0x5d7374['descriptionFactory']['registerDescriptionCallback'](_0x228753=>{if('attribute'!=_0x228753['type'])return;const {data:_0x1a99b0}=_0x228753;return _0x1a99b0&&'uploadcareImageId'==_0x1a99b0['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x368c11{['afterInit'](){const _0x2727c6=this['editor'],_0x3835ba=_0x2727c6['plugins']['get']('TrackChangesEditing');_0x2727c6['plugins']['has']('UndoEditing')&&(_0x3835ba['enableCommand']('undo'),_0x3835ba['enableCommand']('redo'));}}class Et extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x2c7928=this['editor'];if(!_0x2c7928['plugins']['has']('TableCaptionEditing'))return;_0x2c7928['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x368c11{['tableProperties'];['tableCellProperties'];constructor(_0x3d1ab0){super(_0x3d1ab0),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 _0x325678=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f709f of this['tableProperties'])_0x325678['enableCommand'](_0x3f709f,(_0x3977c2,_0x21737e)=>{const _0x53ebc1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f709f,[_0x53ebc1],this['tableProperties'],'tableProperties',_0x3977c2,_0x21737e);});_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x325678['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x103da8,_0x28c3fa)=>this['handleDiscardAction'](this['tableProperties'],_0x103da8,_0x28c3fa)),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x55fa7a of this['tableCellProperties'])_0x325678['enableCommand'](_0x55fa7a,(_0x19ef88,_0x5a8afc)=>{const _0x324194=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x55fa7a,_0x324194,this['tableCellProperties'],'tableCellProperties',_0x19ef88,_0x5a8afc);});_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x325678['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f48c9,_0x50c167)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f48c9,_0x50c167)),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x325678['descriptionFactory']['registerDescriptionCallback'](_0x205de0=>this['handleSuggestionDescription'](_0x205de0));}['_handlePropertyChange'](_0x4ebc83,_0x1dbec2,_0x1f3a0b,_0x538307,_0x529cf9,_0x1a9eb1){const _0x2a81e9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1a9eb1['batch'],()=>{for(const _0x57c349 of _0x1dbec2){if(this['_getSuggestion'](_0x57c349,_0x538307))_0x529cf9(_0x1a9eb1);else{const _0x5be484={};for(const _0x98c2 of _0x1f3a0b){const _0x5f4abe=_0x57c349['getAttribute'](_0x98c2);void 0x0!==_0x5f4abe&&(_0x5be484[_0x98c2]=_0x5f4abe);}_0x529cf9(_0x1a9eb1),_0x2a81e9['markBlockFormat'](_0x57c349,{'commandParams':[_0x5be484]},[],_0x538307);}}});}['handleDiscardAction'](_0x70476b,_0x1de2cf,_0x500484){const _0x18c0e9=_0x1de2cf[0x0]['start']['nodeAfter'],_0x10b4ca=_0x500484['commandParams'][0x0];this['editor']['model']['change'](_0x2ca1be=>{for(const _0x308251 of _0x70476b)void 0x0!==_0x10b4ca[_0x308251]?_0x2ca1be['setAttribute'](_0x308251,_0x10b4ca[_0x308251],_0x18c0e9):_0x2ca1be['removeAttribute'](_0x308251,_0x18c0e9);});}['handleSuggestionDescription'](_0x4e308d){if(_0x4e308d['data'])switch(_0x4e308d['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'](_0x3daa58,_0x92aef6){const _0x4ff7ec=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x438a2f of _0x4ff7ec['getSuggestions']({'skipNotAttached':!0x0})){const _0x5a3254=_0x438a2f['getContainedElement']();if(_0x438a2f['subType']===_0x92aef6&&_0x5a3254===_0x3daa58)return _0x438a2f;}return null;}}const u='$elementName';class p extends _0x368c11{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x329083,_0x56125d,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,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x283880){super(_0x283880),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x384da4,_0x367c64,_0x571684,_0x33905c)=>{this['_model']['change'](()=>{for(const _0xed5db8 of[..._0x33905c,..._0x571684])this['_model']['markers']['has'](_0xed5db8)&&_0x283880['editing']['reconvertMarker'](_0xed5db8);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x283880['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(),_0x283880['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x283880['config']['get']('trackChanges.trackFormatChanges'),_0x283880['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x283880['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x283880,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x328940=this['editor'],_0x491416=(_0xc4674b,_0x763578)=>{if('attribute'!=_0xc4674b)return'ck-suggestion-marker-'+_0xc4674b;const _0x27bf01=_0x763578['split']('|')[0x0];return this['_isBlockAttribute'](_0x27bf01)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x328940['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x32bc20=>{const {id:_0x108496,authorId:_0x5a1596,type:_0x1ff4ca,subType:_0x29f339}=this['_splitMarkerName'](_0x32bc20['markerName']),_0x2e7db8=['ck-suggestion-marker',_0x491416(_0x1ff4ca,_0x29f339)];let _0x5e539e=0xbb8;return this['activeMarkers']['includes'](_0x32bc20['markerName'])&&(_0x2e7db8['push']('ck-suggestion-marker--active'),_0x5e539e=0xbc2),'deletion'==_0x1ff4ca&&(_0x5e539e+=0x5),{'classes':_0x2e7db8,'attributes':{'data-suggestion':_0x108496,'data-author-id':_0x5a1596},'priority':_0x5e539e};}}),_0x328940['conversion']['for']('dataDowncast')['add'](_0x557794=>{_0x557794['on']('addMarker:suggestion',(_0xc07096,_0x114586,_0x5b7aff)=>{if(!_0x5b7aff['options']['showSuggestionHighlights'])return;const _0x210ac4=_0x114586['item'];if(!_0x210ac4)return;const _0xf7b221=_0x5b7aff['mapper']['toViewElement'](_0x210ac4);_0x328940['model']['schema']['isObject'](_0x210ac4)&&_0xf7b221&&!_0xf7b221['getCustomProperty']('widget')&&_0xf7b221['is']('containerElement')&&_0x3d756d(_0xf7b221,_0x5b7aff['writer']);},{'priority':'high'});}),_0x328940['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x589cfe,_0x55d4ba)=>{if(!_0x55d4ba['options']['showSuggestionHighlights'])return null;const {type:_0x35bf02,subType:_0x46d866}=this['_splitMarkerName'](_0x589cfe['markerName']);return{'classes':['ck-suggestion-marker',_0x491416(_0x35bf02,_0x46d866)],'priority':0xbb8};}});const _0x1a1f57=({showActiveMarkers:_0x39c1af=!0x0,isAttributeSuggestion:_0x42a7ba=!0x1}={})=>(_0x83de82,_0x2362a2,_0x31e3b7)=>{if(!_0x2362a2['item'])return;const {id:_0x20cefe,authorId:_0x5207ad}=this['_splitMarkerName'](_0x2362a2['markerName']);if(_0x42a7ba){const _0x1e5682=this['_suggestions']['get'](_0x20cefe),_0xe6b966=this['_getAttributeKey'](_0x1e5682);if(!this['_isBlockAttribute'](_0xe6b966))return;}if(_0x2362a2['item']['is']('selection'))return void _0x31e3b7['consumable']['consume'](_0x2362a2['item'],_0x83de82['name']);const _0x3778a2=_0x31e3b7['mapper']['toViewElement'](_0x2362a2['item']);if(_0x2362a2['item']['is']('element')&&_0x328940['model']['schema']['isBlock'](_0x2362a2['item'])&&!_0x3778a2['getCustomProperty']('addHighlight')){_0x31e3b7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3778a2),_0x31e3b7['writer']['setAttribute']('data-suggestion',_0x20cefe,_0x3778a2),_0x31e3b7['writer']['setAttribute']('data-author-id',_0x5207ad,_0x3778a2),_0x31e3b7['mapper']['bindElementToMarker'](_0x3778a2,_0x2362a2['markerName']),_0x39c1af&&(this['activeMarkers']['includes'](_0x2362a2['markerName'])?_0x31e3b7['writer']['addClass']('ck-suggestion-marker--active',_0x3778a2):_0x31e3b7['writer']['removeClass']('ck-suggestion-marker--active',_0x3778a2));for(const _0xd22043 of _0x328940['model']['createRangeIn'](_0x2362a2['item'])['getItems']())_0x31e3b7['consumable']['consume'](_0xd22043,_0x83de82['name']);_0x31e3b7['consumable']['consume'](_0x2362a2['item'],_0x83de82['name']);}};_0x328940['conversion']['for']('dataDowncast')['add'](_0x5a4a85=>{_0x5a4a85['on']('addMarker:suggestion:formatBlock',(_0x18a360,_0x3d89dd,_0x5fbe38)=>{_0x5fbe38['options']['showSuggestionHighlights']&&_0x1a1f57({'showActiveMarkers':!0x1})(_0x18a360,_0x3d89dd,_0x5fbe38);},{'priority':'highest'});}),_0x328940['conversion']['for']('dataDowncast')['add'](_0x59c9e2=>{_0x59c9e2['on']('addMarker:suggestion:attribute',(_0x1425da,_0x3756c2,_0x18a6e3)=>{_0x18a6e3['options']['showSuggestionHighlights']&&_0x1a1f57({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1425da,_0x3756c2,_0x18a6e3);},{'priority':'highest'});}),_0x328940['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x58609f,_0x238af9)=>_0x238af9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x58609f['substr'](0xb)}}),_0x328940['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xeba576,{writer:_0xf945be})=>{let _0x269464='suggestion:'+_0xeba576['getAttribute']('suggestion-type')+':'+_0xeba576['getAttribute']('id');return _0xeba576['getAttribute']('marker-count')&&(_0x269464+=':'+_0xeba576['getAttribute']('marker-count')),_0xf945be['createElement']('$marker',{'data-name':_0x269464});}}),_0x328940['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x5b6615=>{_0x5b6615['on']('addMarker:suggestion:formatBlock',_0x1a1f57(),{'priority':'high'});}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x20a095=>{_0x20a095['on']('addMarker:suggestion:attribute',_0x1a1f57({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x45c229=>{_0x45c229['on']('removeMarker:suggestion:formatBlock',(_0x5107b5,_0x4dc822,_0x3d34ac)=>{const _0x3d4a71=_0x3d34ac['mapper']['markerNameToElements'](_0x4dc822['markerName']);if(_0x3d4a71){for(const _0x5526f6 of _0x3d4a71)_0x5526f6['getCustomProperty']('addHighlight')||(_0x3d34ac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5526f6),_0x3d34ac['writer']['removeAttribute']('data-suggestion',_0x5526f6),_0x3d34ac['writer']['removeAttribute']('data-author-id',_0x5526f6),_0x3d34ac['mapper']['unbindElementFromMarkerName'](_0x5526f6,_0x4dc822['markerName']));}},{'priority':'high'});}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x106814=>{_0x106814['on']('removeMarker:suggestion:attribute',(_0x3f5f38,_0x41c372,_0x584885)=>{const _0x4757a2=_0x584885['mapper']['markerNameToElements'](_0x41c372['markerName']);if(!_0x4757a2)return;const {id:_0x2830a5}=this['_splitMarkerName'](_0x41c372['markerName']),_0x26eb84=this['_suggestions']['get'](_0x2830a5),_0x2fb333=this['_getAttributeKey'](_0x26eb84);if(this['_isBlockAttribute'](_0x2fb333)){for(const _0x1018ec of _0x4757a2)_0x1018ec['getCustomProperty']('addHighlight')||(_0x584885['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1018ec),_0x584885['writer']['removeAttribute']('data-suggestion',_0x1018ec),_0x584885['writer']['removeAttribute']('data-author-id',_0x1018ec),_0x584885['mapper']['unbindElementFromMarkerName'](_0x1018ec,_0x41c372['markerName']));}},{'priority':'high'});}),_0x328940['model']['document']['registerPostFixer'](_0x164dc8=>{let _0x435ed4=!0x1;const _0x203de7=Array['from'](_0x328940['model']['document']['differ']['getChangedMarkers']()),_0x4fab9c=new Set();for(const {name:_0x5806bb,data:_0x14a596}of _0x203de7){const {group:_0x4e771a,type:_0x366d10,subType:_0x1031c5,id:_0x2fef70}=this['_splitMarkerName'](_0x5806bb);if('suggestion'!==_0x4e771a)continue;const _0x122288=this['_suggestions']['get'](_0x2fef70);if(null!=_0x14a596['newRange']){'formatInline'==_0x366d10&&(_0x435ed4=_0x435ed4||Lt(_0x14a596['newRange'],_0x5806bb,_0x164dc8,_0x328940['model']['schema']));const _0x225e06='attribute'==_0x366d10&&this['_isBlockAttribute'](_0x1031c5['split']('|')[0x0]);if(_0x14a596['newRange']['isCollapsed']||'$graveyard'==_0x14a596['newRange']['root']['rootName']||'formatBlock'==_0x366d10&&!Kt(_0x14a596['newRange'])||_0x225e06&&!Kt(_0x14a596['newRange'])||'deletion'==_0x366d10&&!(!Gt(_0x2875b8=_0x14a596['newRange'])&&!function(_0x387610){return _0x387610['start']['parent']==_0x387610['end']['nodeBefore']&&_0x387610['start']['isAtEnd'];}(_0x2875b8)))_0x164dc8['removeMarker'](_0x5806bb),_0x435ed4=!0x0;else{if(!_0x122288||!_0x122288['isInContent'])continue;if(_0x14a596['newRange']&&_0x14a596['oldRange']&&_0x14a596['newRange']['isEqual'](_0x14a596['oldRange']))continue;_0x4fab9c['add'](_0x122288);}}}var _0x2875b8;return _0x4fab9c['size']>0x0&&(_0x435ed4=!!this['_joinWithAdjacentSuggestions'](_0x4fab9c)||_0x435ed4),_0x435ed4;}),_0x328940['model']['document']['registerPostFixer'](_0x436fd1=>{let _0x33eae4=!0x1;for(const _0x37b904 of _0x328940['model']['document']['differ']['getChanges']())if('insert'==_0x37b904['type'])for(const _0x1cf8a0 of this['_suggestions']['values']()){if(_0x1cf8a0['isMultiRange']||!_0x1cf8a0['isInContent'])continue;const _0x1c41ff='formatBlock'==_0x1cf8a0['type'],_0x30294b=this['_getAttributeKey'](_0x1cf8a0),_0x5290e9=_0x30294b&&this['_isBlockAttribute'](_0x30294b);if(!_0x1c41ff&&!_0x5290e9)continue;const _0x4ab65a=_0x1cf8a0['getFirstRange']();if(_0x4ab65a['start']['parent']!=_0x4ab65a['end']['parent']&&!_0x4ab65a['end']['isAtEnd']){const _0x136282=_0x328940['model']['createPositionAt'](_0x4ab65a['start']['nodeAfter'],'end'),_0x650359=_0x328940['model']['createRange'](_0x4ab65a['start'],_0x136282);_0x436fd1['updateMarker'](_0x1cf8a0['getFirstMarker'](),{'range':_0x650359}),_0x33eae4=!0x0;}}return _0x33eae4;}),_0x328940['model']['document']['registerPostFixer'](_0xe003cb=>this['_processAttributeChanges'](_0xe003cb)),_0x328940['model']['document']['registerPostFixer'](_0x122381=>!_0x122381['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x122381)),_0x328940['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x328940['model']['document']['on']('change:data',(_0x102fcc,_0x24b4bf)=>{if(!_0x24b4bf['isLocal']||_0x24b4bf['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1db725=_0x328940['model']['document']['differ']['getChanges']();if(0x0==_0x1db725['length'])return;const _0xd408dc=[],_0x5915da=_0x1db725['filter'](_0x44044f=>'attribute'==_0x44044f['type']),_0x3392f2=_0x1db725['filter'](_0x4da978=>'insert'==_0x4da978['type']&&'$text'!=_0x4da978['name']);for(const _0x70f007 of _0x5915da)this['_isRegisteredAttribute'](_0x70f007['attributeKey'])&&_0xd408dc['push']({'key':_0x70f007['attributeKey'],'newValue':_0x70f007['attributeNewValue'],'oldValue':_0x70f007['attributeOldValue'],'range':Ht(_0x70f007['range'],_0x328940['model'])});for(const _0x5e5128 of _0x3392f2){if('rename'!=_0x5e5128['action']&&'refresh'!=_0x5e5128['action'])continue;const _0x451793=qt(_0x5e5128['position']['nodeAfter'],_0x328940['model']),_0x533bfb=_0x5e5128['before'];'rename'==_0x5e5128['action']&&_0xd408dc['push']({'key':u,'newValue':_0x5e5128['name'],'oldValue':_0x533bfb['name'],'range':_0x451793});for(const [_0xb91a83,_0x22d7bd]of _0x533bfb['attributes']){if(!this['_isRegisteredAttribute'](_0xb91a83))continue;const _0x14a5c9=_0x5e5128['attributes']['get'](_0xb91a83);_0x22d7bd!==_0x14a5c9&&_0xd408dc['push']({'key':_0xb91a83,'newValue':_0x14a5c9,'oldValue':_0x22d7bd,'range':_0x451793});}for(const [_0x2a22c0,_0x21224a]of _0x5e5128['attributes'])this['_isRegisteredAttribute'](_0x2a22c0)&&(_0x533bfb['attributes']['has'](_0x2a22c0)||_0xd408dc['push']({'key':_0x2a22c0,'newValue':_0x21224a,'oldValue':null,'range':_0x451793}));}0x0!=_0xd408dc['length']&&_0x328940['model']['enqueueChange'](_0x24b4bf,_0x225cc8=>{const _0x58edaf=_0x2ea4c3();for(const {range:_0x59b6ce,key:_0x8a860e,oldValue:_0x38c424,newValue:_0x351ecf}of _0xd408dc)this['markAttributeChange'](_0x59b6ce,_0x8a860e,_0x38c424,_0x351ecf,{'groupId':_0x58edaf});this['_reduceExistingSuggestions'](_0x225cc8,_0xd408dc);});},{'priority':'lowest'}),_0x328940['model']['markers']['on']('update:suggestion',(_0x138dcb,_0x1c5c72,_0x45bdfa)=>{if(null==_0x45bdfa){const {id:_0x388df4}=this['_splitMarkerName'](_0x1c5c72['name']),_0x9d04c7=this['_suggestions']['get'](_0x388df4);_0x9d04c7&&_0x9d04c7['addMarkerName'](_0x1c5c72['name']);}}),_0x328940['model']['document']['on']('change:data',()=>{const _0x5a8230=Array['from'](_0x328940['model']['document']['differ']['getChangedMarkers']())['filter'](_0x13e1c1=>'suggestion'===this['_splitMarkerName'](_0x13e1c1['name'])['group']);if(0x0===_0x5a8230['length'])return;_0x5a8230['sort']((_0x271328,_0x43df6d)=>{const _0x1455cf=_0x271328['data']['oldRange'],_0x1a580a=_0x43df6d['data']['oldRange'];return null===_0x1455cf&&null===_0x1a580a?0x0:null===_0x1455cf&&null!==_0x1a580a?-0x1:null!==_0x1455cf&&null===_0x1a580a?0x1:_0x1455cf['start']['isBefore'](_0x1a580a['start'])?-0x1:0x1;});const _0x28f757=new Set(),_0x42642f=new Set();for(const {name:_0x49d5e9,data:_0x4d5da0}of _0x5a8230){const {id:_0x348e12}=this['_splitMarkerName'](_0x49d5e9);if(null===_0x4d5da0['oldRange']){const _0x116d06=this['_handleNewSuggestionMarker'](_0x49d5e9);_0x42642f['add'](_0x116d06);}else{const _0x3d99bd=this['_suggestions']['get'](_0x348e12);null!==_0x4d5da0['newRange']||_0x3d99bd['isInContent']?(_0x28f757['add'](_0x3d99bd['head']),_0x42642f['add'](_0x3d99bd)):this['_removeSuggestion'](_0x3d99bd);}}_0x42642f['size']>0x0&&this['_refreshSuggestionsChain'](_0x42642f);for(const _0x3541e4 of _0x28f757)this['fire']('suggestionChanged',_0x3541e4);}),_0x328940['model']['on']('applyOperation',(_0x60385a,_0x273396)=>{const _0x2cadaa=_0x273396[0x0];if(!this['_suggestions']['size'])return;if(!_0x2cadaa['isDocumentOperation'])return;if(_0x2cadaa['batch']['isUndo']||!_0x2cadaa['batch']['isLocal'])return;let _0x23bde4,_0x1a290f;switch(_0x2cadaa['type']){case'insert':_0x23bde4=_0x328940['model']['createPositionAt'](_0x2cadaa['position']),_0x1a290f=_0x23bde4['getShiftedBy'](_0x2cadaa['howMany']);break;case'split':_0x23bde4=_0x328940['model']['createPositionAt'](_0x2cadaa['splitPosition']),_0x1a290f=_0x328940['model']['createPositionAt'](_0x2cadaa['moveTargetPosition']);break;case'move':_0x23bde4=_0x328940['model']['createPositionAt'](_0x2cadaa['targetPosition']),_0x1a290f=_0x23bde4['getShiftedBy'](_0x2cadaa['howMany']);break;default:return;}const _0x5a0525=_0x328940['model']['createRange'](_0x23bde4,_0x1a290f);_0x328940['model']['change'](()=>{for(const {suggestion:_0x1e638c,meta:_0x178879}of this['_findSuggestions'](_0x5a0525)){if(_0x1e638c['isMultiRange'])continue;if('formatInline'==_0x1e638c['type'])continue;const _0x47b795=this['_getAttributeKey'](_0x1e638c);if(_0x47b795&&this['_isBlockAttribute'](_0x47b795)&&'split'!=_0x2cadaa['type'])continue;const _0x54d4d1=_0x1e638c['data']&&_0x1e638c['data']['multipleBlocks'];('formatBlock'!=_0x1e638c['type']||'split'==_0x2cadaa['type']&&!_0x54d4d1)&&(_0x178879['containsRangeInObject']||'insertion'==_0x1e638c['type']&&_0x178879['isOwn']||_0x1e638c['getFirstRange']()['containsRange'](_0x5a0525)&&this['_breakSuggestionMarker'](_0x1e638c,_0x23bde4,_0x1a290f));}});},{'priority':'lowest'}),_0x328940['model']['on']('deleteContent',(_0x1ff2ee,_0x53d0e)=>{const _0x210c45=_0x53d0e[0x0],_0xa4d31e=_0x53d0e[0x1];if(_0xa4d31e&&_0xa4d31e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x210c45['isCollapsed'])return;const _0x412cb0=_0x328940['model']['schema'],{start:_0x52144c,end:_0x1b7670}=_0x210c45['getFirstRange'](),_0x684a3f=_0x52144c['nodeAfter']&&_0x412cb0['isLimit'](_0x52144c['nodeAfter'])?null:_0x412cb0['getNearestSelectionRange'](_0x52144c,'forward'),_0x2e98fb=_0x1b7670['nodeBefore']&&_0x412cb0['isLimit'](_0x1b7670['nodeBefore'])?null:_0x412cb0['getNearestSelectionRange'](_0x1b7670,'backward'),_0x39432d=_0x328940['model']['createRange'](_0x684a3f?_0x684a3f['start']:_0x52144c,_0x2e98fb?_0x2e98fb['end']:_0x1b7670);_0x328940['model']['change'](_0x649136=>{this['markDeletion'](_0x39432d);const _0x363acf=_0x328940['model']['schema']['getNearestSelectionRange'](_0x39432d['start']);_0x210c45['is']('documentSelection')?_0x649136['setSelection'](_0x363acf):_0x210c45['setTo'](_0x363acf);}),_0x1ff2ee['stop']();},{'priority':_0x79d5b2['normal']+0xa}),_0x328940['model']['on']('insertContent',(_0x4af07c,_0x539d7c)=>{const _0x352148=_0x539d7c[_0x539d7c['length']-0x1];_0x352148&&_0x352148['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x328940['model']['change'](()=>{let _0x33cf4b=_0x328940['model']['insertContent'](_0x539d7c[0x0],_0x539d7c[0x1],_0x539d7c[0x2],{'forceDefaultExecution':!0x0});if(!_0x33cf4b)return;_0x4af07c['return']=_0x33cf4b['clone']();const _0x2433ab=_0x33cf4b['end']['nodeBefore'],_0xec26ee=_0x328940['model']['schema'];_0x2433ab&&_0xec26ee['isBlock'](_0x2433ab)&&!_0xec26ee['isObject'](_0x2433ab)&&(_0x33cf4b=_0x328940['model']['createRange'](_0x33cf4b['start'],_0x328940['model']['createPositionAt'](_0x2433ab,'end'))),this['markInsertion'](_0x33cf4b);}),_0x4af07c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1260a5=new O(_0x328940,this['_suggestions']);_0x328940['commands']['add']('acceptSuggestion',_0x1260a5),this['enableCommand']('acceptSuggestion');const _0x3f6213=new R(_0x328940,this['_suggestions']);_0x328940['commands']['add']('discardSuggestion',_0x3f6213),this['enableCommand']('discardSuggestion'),_0x328940['commands']['add']('acceptAllSuggestions',new x(_0x328940,_0x1260a5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x328940['commands']['add']('discardAllSuggestions',new x(_0x328940,_0x3f6213,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x328940['commands']['add']('acceptSelectedSuggestions',new E(_0x328940,_0x1260a5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x328940['commands']['add']('discardSelectedSuggestions',new E(_0x328940,_0x3f6213,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5961c4=_0x328940['plugins']['get']('CommentsRepository');this['listenTo'](_0x5961c4,'addComment',(_0x4b7869,{threadId:_0x5e2bad})=>{const _0x28d03e=this['_suggestions']['get'](_0x5e2bad);_0x28d03e&&_0x28d03e['commentThread']&&0x1===_0x28d03e['commentThread']['length']&&this['_updateSuggestionData'](_0x5e2bad,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5961c4,'removeComment',(_0x1e9423,{threadId:_0x235c40})=>{const _0x5d8fea=this['_suggestions']['get'](_0x235c40);_0x5d8fea&&_0x5d8fea['commentThread']&&!_0x5d8fea['commentThread']['length']&&this['_updateSuggestionData'](_0x235c40,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f902d){const _0x1a0865=_0x56f17e([0x4a,0x46,0x72,0x70,0x61,0x36,0x48,0x56,0x44,0x64,0x66,0x71,0x75,0x67,0x6b,0x33,0x50,0x6f,0x4c,0x49,0x34,0x55,0x78,0x41,0x53,0x68,0x38,0x73,0x4e,0x58,0x42,0x62,0x7a,0x35,0x5a,0x69,0x31,0x74,0x52,0x6e,0x6d,0x39,0x32,0x59,0x47,0x30,0x65,0x4d,0x77,0x63,0x45,0x6c,0x76,0x4b,0x79,0x51,0x57,0x54,0x37,0x43,0x4f,0x6a]),_0x19609d=0x7f592dba,_0x443e6e=0x7f5e4f2a^_0x19609d,_0x16c835=window[_0x56f17e([0x44,0x61,0x74,0x65])][_0x56f17e([0x6e,0x6f,0x77])](),_0x4cbcd1=_0x2f902d[_0x56f17e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b438f=new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c41fc=>{_0x4cbcd1[_0x56f17e([0x6f,0x6e,0x63,0x65])](_0x56f17e([0x72,0x65,0x61,0x64,0x79]),_0x5c41fc);}),_0x1c1661={[_0x56f17e([0x6b,0x74,0x79])]:_0x56f17e([0x45,0x43]),[_0x56f17e([0x75,0x73,0x65])]:_0x56f17e([0x73,0x69,0x67]),[_0x56f17e([0x63,0x72,0x76])]:_0x56f17e([0x50,0x2d,0x32,0x35,0x36]),[_0x56f17e([0x78])]:_0x56f17e([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]),[_0x56f17e([0x79])]:_0x56f17e([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]),[_0x56f17e([0x61,0x6c,0x67])]:_0x56f17e([0x45,0x53,0x32,0x35,0x36])},_0x4ebab9=_0x4cbcd1[_0x56f17e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56f17e([0x67,0x65,0x74])](_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3da704(){let _0x4b7bbf,_0x176cfe=null,_0x3f8d19=null;try{if(_0x4ebab9==_0x56f17e([0x47,0x50,0x4c]))return _0x56f17e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b7bbf=_0x374a79(),!_0x4b7bbf)return _0x56f17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b7bbf[_0x56f17e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f8d19=_0x5a18a8(_0x4b7bbf[_0x56f17e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b7bbf[_0x56f17e([0x6a,0x74,0x69])])),await _0x3f5d31()?_0x24882a()?_0x1b0063()?_0x56f17e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c1d72()?(_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56f17e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x176cfe=_0x3607ea(_0x56f17e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56f17e([0x74,0x72,0x69,0x61,0x6c])&&(_0x176cfe=_0x3607ea(_0x56f17e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c0d87()):_0x56f17e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56f17e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56f17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x233818){return _0x56f17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b0063(){const _0x55baec=[_0x56f17e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56f17e([0x74,0x72,0x69,0x61,0x6c])][_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16c835/0x3e8:0xe10*_0x443e6e;return _0x4b7bbf[_0x56f17e([0x65,0x78,0x70])]<_0x55baec;}function _0x24882a(){const _0x378cb2=_0x4b7bbf[_0x56f17e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x378cb2)return!0x1;if(_0x378cb2[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x2a])))return!0x0;if(_0x378cb2[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x54,0x43])))return!0x0;if(_0x378cb2[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x52,0x54,0x43]))){if(_0x505c7f())return!0x0;if(_0x343047()||_0x215bc4())return!0x0;}return!0x1;}function _0x3c1d72(){const _0x3f16fe=_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f16fe||0x0==_0x3f16fe[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x447924}=new URL(window[_0x56f17e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f16fe[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x447924))return!0x0;const _0x2563fa=_0x447924[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e]));return _0x3f16fe[_0x56f17e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39999f=>_0x39999f[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x2a])))[_0x56f17e([0x6d,0x61,0x70])](_0x5ef074=>_0x5ef074[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e])))[_0x56f17e([0x73,0x6f,0x6d,0x65])](_0x34377a=>_0x2563fa[_0x56f17e([0x65,0x76,0x65,0x72,0x79])]((_0x409003,_0x25275a)=>_0x34377a[_0x25275a]===_0x409003||_0x34377a[_0x25275a]===_0x56f17e([0x2a])));}function _0x5c0d87(){return _0x176cfe&&_0x3f8d19?new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27869e,_0x317a4a)=>{_0x176cfe[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x27869e,_0x317a4a),_0x3f8d19[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x23d757=>{_0x23d757!=_0x56f17e([0x56,0x61,0x6c,0x69,0x64])&&_0x27869e(_0x23d757);},_0x317a4a);}):_0x176cfe||_0x3f8d19||_0x56f17e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a18a8(_0x145e30,_0x1f946d){return new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4174af=>{if(_0x6df6ee())return _0x4174af(_0x56f17e([0x56,0x61,0x6c,0x69,0x64]));_0x3ee683(),_0x4cbcd1[_0x56f17e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56f17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48a9f7=!0x1;const _0x14fca9=_0x2ea4c3();function _0x26b8cc(_0x499e89){return!!_0x499e89&&(typeof _0x499e89===_0x56f17e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x499e89===_0x56f17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x499e89[_0x56f17e([0x74,0x68,0x65,0x6e])]===_0x56f17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x499e89[_0x56f17e([0x63,0x61,0x74,0x63,0x68])]===_0x56f17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x160ec1(_0x4c1efb){_0x28eb30(_0x4c1efb)[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x491a5e=>{if(!_0x491a5e||_0x491a5e[_0x56f17e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56f17e([0x6f,0x6b]))return _0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3abe9c(_0x292969(_0x14fca9+_0x1f946d))!=_0x491a5e[_0x56f17e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56f17e([0x56,0x61,0x6c,0x69,0x64]);})[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x5e385e=>(_0x458929(),_0x5e385e),()=>{const _0x382bf6=_0x54bf7a();return null==_0x382bf6?(_0x458929(),_0x56f17e([0x56,0x61,0x6c,0x69,0x64])):_0x56f17e(_0x16c835-_0x382bf6>(0x5b55a9ba^_0x19609d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x4174af)[_0x56f17e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4174af(_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x340655=0x7f6fc33a^_0x19609d;function _0x458929(){const _0x391406=_0x56f17e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3abe9c(_0x292969(_0x145e30)),_0x511594=_0x18e6c3(_0x3abe9c(window[_0x56f17e([0x4d,0x61,0x74,0x68])][_0x56f17e([0x63,0x65,0x69,0x6c])](_0x16c835/_0x340655)));window[_0x56f17e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56f17e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391406,_0x511594);}function _0x54bf7a(){const _0x1db78e=_0x56f17e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3abe9c(_0x292969(_0x145e30)),_0x564ebd=window[_0x56f17e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56f17e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1db78e);return _0x564ebd?window[_0x56f17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18e6c3(_0x564ebd),0x10)*_0x340655:null;}function _0x28eb30(_0x46e168){return new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f708a,_0x1bcd6a)=>{_0x46e168[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x4f708a,_0x1bcd6a),window[_0x56f17e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bcd6a,0x7f58f97a^_0x19609d);});}}_0x4cbcd1[_0x56f17e([0x6f,0x6e])](_0x56f17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30f297,_0xd2bce0)=>{if(_0xd2bce0[0x0]!=_0x145e30)return _0x4174af(_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd2bce0[0x1]={..._0xd2bce0[0x1],[_0x56f17e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14fca9};},{[_0x56f17e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56f17e([0x68,0x69,0x67,0x68])}),_0x4cbcd1[_0x56f17e([0x6f,0x6e])](_0x56f17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbe12e1=>{_0x26b8cc(_0xbe12e1[_0x56f17e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48a9f7=!0x0,_0x160ec1(_0xbe12e1[_0x56f17e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56f17e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56f17e([0x6c,0x6f,0x77])}),_0x5b438f[_0x56f17e([0x74,0x68,0x65,0x6e])](()=>{_0x48a9f7||_0x4174af(_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6df6ee(){return _0x4cbcd1[_0x56f17e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56f17e([0x76,0x69,0x65,0x77])][_0x56f17e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56f17e([0x61,0x75,0x74,0x6f]);}function _0x3ee683(){_0x4cbcd1[_0x56f17e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56f17e([0x76,0x69,0x65,0x77])][_0x56f17e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56f17e([0x61,0x75,0x74,0x6f]);}}function _0x3607ea(_0x1455e2){const _0x3a706a=[new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a7b25=>setTimeout(_0x2a7b25,0x7f501376^_0x19609d)),_0x5b438f[_0x56f17e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e71f=>{let _0x505f66=0x0;_0x4cbcd1[_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56f17e([0x6f,0x6e])](_0x56f17e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52a08c,_0x393104)=>{_0x393104[0x0][_0x56f17e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x505f66++,_0x505f66==(0x7f592c42^_0x19609d)&&(_0x53e71f(),_0x52a08c[_0x56f17e([0x6f,0x66,0x66])]());});}))];return window[_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56f17e([0x72,0x61,0x63,0x65])](_0x3a706a)[_0x56f17e([0x74,0x68,0x65,0x6e])](()=>_0x1455e2);}async function _0x378be6(){await _0x5b438f,_0x4cbcd1[_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56f17e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x440569,_0x4cbcd1[_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56f17e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x440569,_0x4cbcd1[_0x56f17e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x505c7f(){return _0xf599df(_0x56f17e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1005d7(_0x56f17e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x56f17e([0x73,0x74,0x61,0x74,0x65])]==_0x56f17e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x343047(){return _0xf599df(_0x56f17e([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 _0x215bc4(){return _0xf599df(_0x56f17e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x412995(_0x552e60){const _0x3dbaa6=_0x17f723();_0x4cbcd1[_0x3dbaa6]=_0x56f17e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x552e60,_0x552e60!=_0x56f17e([0x56,0x61,0x6c,0x69,0x64])&&_0x378be6();}function _0x17f723(){const _0xcb5b10=window[_0x56f17e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56f17e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56f17e([0x6e,0x6f,0x77])]())[_0x56f17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56f17e([0x2e]),'');let _0x3b1890=_0x56f17e([0x4a]);for(let _0x1ec01f=0x0;_0x1ec01f<_0xcb5b10[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ec01f+=0x2){let _0xc4acc2=window[_0x56f17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcb5b10[_0x56f17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ec01f,_0x1ec01f+0x2));_0xc4acc2>=_0x1a0865[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc4acc2-=_0x1a0865[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b1890+=_0x1a0865[_0xc4acc2];}return _0x3b1890;}function _0x374a79(){const _0x323e43=_0x4ebab9[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e]));if(0x3!=_0x323e43[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29ff01(_0x323e43[0x1]);function _0x29ff01(_0x373cab){const _0x12a3c0=_0xbf4840(_0x373cab);return _0x12a3c0&&_0x3b450e()?_0x12a3c0:null;function _0x3b450e(){const _0x900005=_0x12a3c0[_0x56f17e([0x6a,0x74,0x69])],_0x154324=window[_0x56f17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x900005[_0x56f17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x900005[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d5d91={..._0x12a3c0,[_0x56f17e([0x6a,0x74,0x69])]:_0x900005[_0x56f17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x900005[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d5d91[_0x56f17e([0x76,0x63])],_0x292969(_0x4d5d91)==_0x154324;}}}async function _0x3f5d31(){let _0x5f3679=!0x0;try{const _0x208adb=_0x4ebab9[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e])),[_0x5c2c7f,_0x5b3a57,_0x111016]=_0x208adb;return _0x5aab8b(_0x5c2c7f),await _0x508d95(_0x5c2c7f,_0x5b3a57,_0x111016),_0x5f3679;}catch(_0x101691){return!0x1;}function _0x5aab8b(_0x39df48){const _0x438cf1=_0xbf4840(_0x39df48);_0x438cf1&&_0x438cf1[_0x56f17e([0x61,0x6c,0x67])]==_0x56f17e([0x45,0x53,0x32,0x35,0x36])||(_0x5f3679=!0x1);}async function _0x508d95(_0x4f138f,_0x4782fb,_0x7980db){const _0x4bc9cf=window[_0x56f17e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56f17e([0x66,0x72,0x6f,0x6d])](_0x5e5b0c(_0x7980db),_0x68cda4=>_0x68cda4[_0x56f17e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e326d=new window[(_0x56f17e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56f17e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f138f+_0x56f17e([0x2e])+_0x4782fb),_0x1d7c5c=window[_0x56f17e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56f17e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d7c5c)return;const _0x38f886=await _0x1d7c5c[_0x56f17e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56f17e([0x6a,0x77,0x6b]),_0x1c1661,{[_0x56f17e([0x6e,0x61,0x6d,0x65])]:_0x56f17e([0x45,0x43,0x44,0x53,0x41]),[_0x56f17e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56f17e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56f17e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d7c5c[_0x56f17e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56f17e([0x6e,0x61,0x6d,0x65])]:_0x56f17e([0x45,0x43,0x44,0x53,0x41]),[_0x56f17e([0x68,0x61,0x73,0x68])]:{[_0x56f17e([0x6e,0x61,0x6d,0x65])]:_0x56f17e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38f886,_0x4bc9cf,_0x3e326d)||(_0x5f3679=!0x1);}}function _0xbf4840(_0xcb0ed2){return _0xcb0ed2[_0x56f17e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56f17e([0x65,0x79]))?JSON[_0x56f17e([0x70,0x61,0x72,0x73,0x65])](_0x5e5b0c(_0xcb0ed2)):null;}function _0x5e5b0c(_0x19939f){return window[_0x56f17e([0x61,0x74,0x6f,0x62])](_0x19939f[_0x56f17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56f17e([0x2b]))[_0x56f17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56f17e([0x2f])));}function _0x292969(_0x2bd224){let _0x7d69e2=0x1505;function _0x19f422(_0x13457e){for(let _0x483b87=0x0;_0x483b87<_0x13457e[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x483b87++){const _0x49009e=_0x13457e[_0x56f17e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x483b87);_0x7d69e2=(_0x7d69e2<<0x5)+_0x7d69e2+_0x49009e,_0x7d69e2&=_0x7d69e2;}}function _0x167217(_0x19afac){Array[_0x56f17e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19afac)?_0x19afac[_0x56f17e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x167217):_0x19afac&&typeof _0x19afac==_0x56f17e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56f17e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19afac)[_0x56f17e([0x73,0x6f,0x72,0x74])]()[_0x56f17e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3041b2,_0x530222])=>{_0x19f422(_0x3041b2),_0x167217(_0x530222);}):_0x19f422(window[_0x56f17e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19afac));}return _0x167217(_0x2bd224),_0x7d69e2>>>0x0;}function _0x3abe9c(_0x10594b){return _0x10594b[_0x56f17e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56f17e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56f17e([0x30]));}function _0x18e6c3(_0x4b678f){return _0x4b678f[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56f17e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56f17e([0x6a,0x6f,0x69,0x6e])]('');}function _0xf599df(_0x232860){return _0x4cbcd1[_0x56f17e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x56f17e([0x68,0x61,0x73])](_0x232860);}function _0x1005d7(_0x52c76d){return _0x4cbcd1[_0x56f17e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x56f17e([0x67,0x65,0x74])](_0x52c76d);}function _0x440569(){}function _0x56f17e(_0xe104c1){return _0xe104c1['map'](_0x44ae85=>String['fromCharCode'](_0x44ae85))['join']('');}_0x412995(await _0x3da704());}(this);}set['adapter'](_0x488193){if(this['_adapter'])throw new _0x921117('track-changes-adapter-already-set',this);this['_adapter']=_0x488193;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d4d2b=!0x1,toJSON:_0x580c6e=!0x1}={}){const _0x5c14bc=[];for(const _0x261863 of this['_suggestions']['values']())_0x3d4d2b&&!_0x261863['isInContent']||_0x5c14bc['push'](_0x261863);return _0x580c6e?_0x5c14bc['map'](_0x531348=>_0x531348['toJSON']()):_0x5c14bc;}['getSuggestion'](_0x2bd6d7){const _0x223e3a=this['_suggestions']['get'](_0x2bd6d7);if(!_0x223e3a)throw new _0x921117('track-changes-suggestion-not-found',this);return _0x223e3a;}['hasSuggestion'](_0x2d0a41){return this['_suggestions']['has'](_0x2d0a41);}['addSuggestionData'](_0x44d616){const {authorId:_0x3164ce,id:_0x45aa17,attributes:_0x4ed7d3}=_0x44d616,[_0x5545eb,_0xd28323]=_0x44d616['type']['split'](':'),_0x941821=this['_suggestions']['get'](_0x45aa17)||this['_createSuggestion'](_0x5545eb,_0xd28323,_0x45aa17,_0x3164ce,_0x4ed7d3);if(this['_addThreadToSuggestion'](_0x941821),this['_checkSuggestionCorrectness'](_0x941821,_0x5545eb,_0xd28323||null,_0x3164ce),_0x941821['createdAt']=_0x44d616['createdAt'],_0x941821['_isDataLoaded']=!0x0,_0x4ed7d3&&_0x4ed7d3['@external']){const _0x4ff9fd=_0x4ed7d3['@external'],_0x12c506=this['_getExternalAuthor'](_0x4ff9fd['authorName']);_0x941821['authoredAt']=_0x4ff9fd['createdAt'],_0x941821['author']=_0x12c506,_0x941821['isExternal']=!0x0;}else _0x941821['authoredAt']=_0x44d616['createdAt'];switch(_0x44d616['data']&&(_0x941821['data']=_0x44d616['data']),_0x44d616['attributes']&&(_0x941821['attributes']=_0x44d616['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x941821['_saved']=!0x0),this['_suggestionState']['get'](_0x941821)){case'notReady':this['_suggestionState']['set'](_0x941821,'dataReady');break;case'markerReady':_0x941821['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x941821])),this['_refreshSuggestionsChain'](new Set([_0x941821])),this['_suggestionState']['set'](_0x941821,'ready'),this['fire']('suggestionLoaded',_0x941821)):this['_suggestionState']['set'](_0x941821,'removed');}return _0x941821;}['acceptSuggestion'](_0x12c553){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x6a38f8 of _0x12c553['getAllAdjacentSuggestions']())_0x6a38f8['accept']();});});}['discardSuggestion'](_0x468331){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43bed3 of _0x468331['getAllAdjacentSuggestions']())_0x43bed3['discard']();});});}['enableCommand'](_0x5624e8,_0x177fc6){const _0x10c6ae=this['editor']['commands']['get'](_0x5624e8);if(!_0x10c6ae)throw new _0x921117('track-changes-command-not-found',this,{'commandName':_0x5624e8});if(this['_enabledCommands']['has'](_0x10c6ae))throw new _0x921117('track-changes-enable-command-twice',this,{'commandName':_0x5624e8});this['_enabledCommands']['add'](_0x10c6ae),_0x177fc6&&_0x10c6ae['on']('execute',(_0x1a67be,_0x12bbaa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x12bbaa['length']>0x0&&_0x12bbaa[_0x12bbaa['length']-0x1]&&_0x12bbaa[_0x12bbaa['length']-0x1]['forceDefaultExecution']?_0x12bbaa['pop']():(_0x1a67be['return']=_0x177fc6((..._0x34f767)=>_0x10c6ae['execute'](..._0x34f767,{'forceDefaultExecution':!0x0}),..._0x12bbaa),_0x1a67be['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20b960){let _0xf54afd,_0x4873be;const _0x1d8fb6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xf54afd=_0x20b960();}catch(_0x2f5033){_0x4873be=_0x2f5033;}return _0x1d8fb6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4873be&&_0x921117['rethrowUnexpectedError'](_0x4873be,this),_0xf54afd;}['markInsertion'](_0x2a6fd4,_0x460b8f=null,_0x53ab29={}){if(_0x2a6fd4['isCollapsed'])return null;const _0x262cee=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x36d285,meta:_0x14cc4b}of this['_findSuggestions'](_0x2a6fd4,'insertion'))if(_0x14cc4b['isOwn']){if(!_0x14cc4b['isNextTo']){if(_0x14cc4b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x36d285,_0x53ab29))continue;return _0x36d285;}if(Qt(_0x36d285,_0x53ab29))return _0x36d285;this['_breakSuggestionMarker'](_0x36d285,_0x2a6fd4['start'],_0x2a6fd4['end']);break;}if(_0x460b8f==_0x36d285['subType']&&Qt(_0x36d285,_0x53ab29)){const _0x35c926=_0x36d285['getFirstRange']();return _0x35c926['start']['isEqual'](_0x2a6fd4['end'])?this['_setSuggestionRange'](_0x36d285,this['_model']['createRange'](_0x2a6fd4['start'],_0x35c926['end'])):this['_setSuggestionRange'](_0x36d285,this['_model']['createRange'](_0x35c926['start'],_0x2a6fd4['end'])),_0x36d285;}}const _0x19270e=_0x2ea4c3(),_0x1baffd=_0x262cee['id'],_0x63b9de=_0x460b8f?'insertion:'+_0x460b8f:'insertion',_0x552023=this['_setSuggestionData']({'id':_0x19270e,'type':_0x63b9de,'createdAt':new Date(),'authorId':_0x1baffd,'attributes':_0x53ab29});return this['_addSuggestionMarker'](_0x63b9de,_0x19270e,_0x1baffd,_0x2a6fd4),_0x552023;}['markMultiRangeInsertion'](_0x410a5b,_0x783245='multi',_0x61f56f={}){const _0x13c0a2=this['editor']['plugins']['get']('Users')['me'],_0x792771=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x783245,'join');for(const _0x5f21c3 of this['getSuggestions']())if(_0x5f21c3['author']['id']==_0x13c0a2['id']&&'insertion'==_0x5f21c3['type']&&_0x5f21c3['subType']==_0x783245&&Qt(_0x5f21c3,_0x61f56f)&&(_0x792771(_0x5f21c3['getRanges'](),_0x410a5b)||_0x792771(_0x410a5b,_0x5f21c3['getRanges']()))){for(const _0x1f7e86 of _0x410a5b)_0x5f21c3['addRange'](_0x1f7e86);return _0x5f21c3;}for(const {suggestion:_0x10980f,meta:_0xbf8a58}of this['_findSuggestions'](_0x410a5b,'insertion')){if(!_0xbf8a58['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xbf8a58['containsRangeInObject'])continue;if(!Qt(_0x10980f,_0x61f56f))continue;let _0x2bd4a2=!0x0;for(const _0xb97736 of _0x10980f['getRanges']())for(const _0x7da770 of _0x410a5b)if(!_0xb97736['containsRange'](_0x7da770)){_0x2bd4a2=!0x1;break;}if(_0x2bd4a2)return _0x10980f;}const _0x334b39=_0x2ea4c3(),_0x1e7051=_0x13c0a2['id'],_0x261e87='insertion:'+_0x783245,_0x38b1f4=this['_setSuggestionData']({'id':_0x334b39,'type':_0x261e87,'createdAt':new Date(),'authorId':_0x1e7051,'attributes':_0x61f56f});for(const _0x1bbff1 of _0x410a5b)this['_addSuggestionMarker'](_0x261e87,_0x334b39,_0x1e7051,_0x1bbff1,o['getMultiRangeId']());return _0x38b1f4;}['markInlineFormat'](_0x157f6f,_0x53fa58,_0x20b8e9=null,_0x272996={}){if(_0x20b8e9=_0x20b8e9||Jt(_0x53fa58),_0x157f6f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x15772b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20b8e9,'accept');return this['forceDefaultExecution'](()=>_0x15772b([_0x157f6f],_0x53fa58,_0x272996)),null;}const _0x18c31e=this['editor']['plugins']['get']('Users')['me'],_0x20a896=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x451780,meta:_0x511e02}of this['_findSuggestions'](_0x157f6f,'insertion'))_0x511e02['isOwn']&&!_0x511e02['isInsideObject']&&_0x20a896['push'](..._0x451780['getRanges']());}const _0x4de700=function(_0x3f7ae9,_0x4025c3){const _0x44abc3=[];for(const _0x12bcf8 of _0x4025c3){const _0x18cad6=_0x3f7ae9['getIntersection'](_0x12bcf8);_0x18cad6&&_0x44abc3['push'](_0x18cad6);}return _0x44abc3;}(_0x157f6f,_0x20a896),_0x4c5f70=function(_0x3f1fe9,_0x2a05bf){const _0x1981f9=[_0x3f1fe9];for(const _0x5da309 of _0x2a05bf){let _0x4ce390=0x0;for(;_0x4ce390<_0x1981f9['length'];){const _0x574136=_0x1981f9[_0x4ce390]['getDifference'](_0x5da309);_0x1981f9['splice'](_0x4ce390,0x1,..._0x574136),_0x4ce390+=_0x574136['length'];}}return _0x1981f9;}(_0x157f6f,_0x20a896);_0x4de700['length']&&this['_model']['change'](()=>{for(const _0x4894f1 of _0x4de700){const _0x2b4943=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20b8e9,'accept');this['forceDefaultExecution'](()=>_0x2b4943([_0x4894f1],_0x53fa58,_0x272996));}});for(const _0xd4e973 of _0x4c5f70){let _0x2a8a5f=null,_0x5b6302=_0xd4e973['start'],_0x44b821=_0xd4e973['end'];for(const {suggestion:_0x4e134d,meta:_0x2a9509}of this['_findSuggestions'](_0xd4e973,'formatInline')){if(!_0x2a9509['isOwn'])continue;if(_0x4e134d['subType']!=_0x20b8e9)continue;if(!Qt(_0x4e134d,_0x272996))continue;const _0x3aab49=_0x4e134d['getFirstRange']();if(_0x3aab49['containsRange'](_0xd4e973,!0x0))return null;_0x5b6302=_0x5b6302['isBefore'](_0x3aab49['start'])?_0x5b6302:_0x3aab49['start'],_0x44b821=_0x44b821['isAfter'](_0x3aab49['end'])?_0x44b821:_0x3aab49['end'],_0x2a8a5f?_0x3aab49['start']['isBefore'](_0x2a8a5f['getFirstRange']()['start'])?(_0x2a8a5f['removeMarkers'](),_0x2a8a5f=_0x4e134d):_0x4e134d['removeMarkers']():_0x2a8a5f=_0x4e134d;}const _0x186062=this['_model']['createRange'](_0x5b6302,_0x44b821);if(_0x2a8a5f)this['_setSuggestionRange'](_0x2a8a5f,_0x186062);else{const _0x578e52=_0x2ea4c3(),_0x209f98=_0x18c31e['id'];this['_setSuggestionData']({'id':_0x578e52,'type':'formatInline:'+_0x20b8e9,'data':_0x53fa58,'createdAt':new Date(),'authorId':_0x209f98,'attributes':_0x272996}),this['_addSuggestionMarker']('formatInline:'+_0x20b8e9,_0x578e52,_0x209f98,_0x186062);}}return null;}['markBlockFormat'](_0xfe4546,_0xe59862,_0x4e0ae5=[],_0x4c71f5=null,_0x4eeeaf={}){_0xe59862['formatGroupId']||(_0xe59862['formatGroupId']=_0xe59862['commandName']),_0xe59862['multipleBlocks']=_0xfe4546['is']('range'),_0x4c71f5=_0x4c71f5||Jt(_0xe59862);const _0x59666d=_0x4e0ae5['map'](_0x1d6a3d=>qt(_0x1d6a3d,this['_model'])),_0x2a3852=_0xfe4546['is']('range')?_0xfe4546:qt(_0xfe4546,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32f9a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c71f5,'accept');return this['forceDefaultExecution'](()=>_0x32f9a8([_0x2a3852],_0xe59862,_0x4eeeaf)),null;}_0x59666d['push'](_0x2a3852);let _0x2cc14f=!0x0;for(const _0xa0a1d of _0x59666d)if(!this['_rangeIsInLocalUserInsertion'](_0xa0a1d)){_0x2cc14f=!0x1;break;}if(_0x2cc14f&&'always'!==this['_trackFormatChanges']){const _0xcad6e8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c71f5,'accept');return this['forceDefaultExecution'](()=>_0xcad6e8([_0x2a3852],_0xe59862,_0x4eeeaf)),null;}let _0x339516=null,_0x45151e=_0x2a3852['start'],_0x53f57=_0x2a3852['end'];for(const {suggestion:_0x2a54a4,meta:_0x174bc6}of this['_findSuggestions'](_0x2a3852,'formatBlock')){if(!_0x174bc6['isOwn'])continue;if(_0x174bc6['isNextTo']||_0x174bc6['containsRangeInObject']||_0x174bc6['isInsideObject'])continue;if(_0x2a54a4['data']['formatGroupId']!=_0xe59862['formatGroupId'])continue;if(!Qt(_0x2a54a4,_0x4eeeaf))continue;const _0x437755=_0x2a54a4['getFirstRange']();if(_0x2a54a4['subType']==_0x4c71f5){if(_0x437755['containsRange'](_0x2a3852,!0x0))return null;_0x45151e=_0x45151e['isBefore'](_0x437755['start'])?_0x45151e:_0x437755['start'],_0x53f57=_0x53f57['isAfter'](_0x437755['end'])?_0x53f57:_0x437755['end'],_0x339516?_0x437755['start']['isBefore'](_0x339516['getFirstRange']()['start'])?(_0x339516['removeMarkers'](),_0x339516=_0x2a54a4):_0x2a54a4['removeMarkers']():_0x339516=_0x2a54a4;}else{const _0x1d4bf2=_0x2a3852['getIntersection'](_0x437755);this['_cutOutSuggestionMarker'](_0x2a54a4,_0x1d4bf2);}}const _0x39f2d6=this['editor']['plugins']['get']('Users')['me'],_0x5471fa=_0x2ea4c3(),_0x276ed3=_0x39f2d6['id'];if(_0x339516)return this['_setSuggestionRange'](_0x339516,this['_model']['createRange'](_0x45151e,_0x53f57)),_0x339516;{const _0x429340=this['_setSuggestionData']({'id':_0x5471fa,'type':'formatBlock:'+_0x4c71f5,'data':_0xe59862,'createdAt':new Date(),'authorId':_0x276ed3,'attributes':_0x4eeeaf});return this['_addSuggestionMarker']('formatBlock:'+_0x4c71f5,_0x5471fa,_0x276ed3,this['_model']['createRange'](_0x45151e,_0x53f57)),_0x429340;}}['markMultiRangeBlockFormat'](_0x1a2887,_0x1b1ab9,_0x5840b7=[],_0x1c7629=null,_0x114bad={}){_0x1b1ab9['formatGroupId']||(_0x1b1ab9['formatGroupId']=_0x1b1ab9['commandName']);const _0x3b0837=_0x1a2887[0x0];_0x1b1ab9['multipleBlocks']=_0x3b0837['is']('range'),_0x1c7629=_0x1c7629||Jt(_0x1b1ab9);const _0x565bcb=_0x5840b7['map'](_0x258dbc=>qt(_0x258dbc,this['_model'])),_0x185943=_0x3b0837['is']('range')?_0x1a2887:_0x1a2887['map'](_0x2a7f1d=>qt(_0x2a7f1d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1e76be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c7629,'accept');return this['forceDefaultExecution'](()=>_0x1e76be(_0x185943,_0x1b1ab9,_0x114bad)),null;}_0x565bcb['push'](..._0x185943);let _0x1cbc62=!0x0;for(const _0x1abb51 of _0x565bcb)if(!this['_rangeIsInLocalUserInsertion'](_0x1abb51)){_0x1cbc62=!0x1;break;}if(_0x1cbc62&&'always'!==this['_trackFormatChanges']){const _0x5e065a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c7629,'accept');return this['forceDefaultExecution'](()=>_0x5e065a(_0x185943,_0x1b1ab9,_0x114bad)),null;}const _0xfef8fa=this['editor']['plugins']['get']('Users')['me'];for(const _0x240fd4 of this['getSuggestions']()){if(_0x240fd4['author']['id']!=_0xfef8fa['id'])continue;if('formatBlock'!=_0x240fd4['type']||_0x240fd4['data']['formatGroupId']!=_0x1b1ab9['formatGroupId'])continue;if(!Qt(_0x240fd4,_0x114bad))continue;const _0x2386cb=_0x240fd4['subType']==_0x1c7629;for(let _0x2a0058=0x0;_0x2a0058<_0x185943['length'];_0x2a0058++){const _0x2d8edf=_0x185943[_0x2a0058];for(const _0x1d163b of _0x240fd4['getMarkers']()){const _0x113487=_0x1d163b['getRange']();if(_0x2d8edf['isEqual'](_0x113487)){_0x2386cb?(_0x185943['splice'](_0x2a0058,0x1),_0x2a0058--):_0x240fd4['removeMarker'](_0x1d163b['name']);break;}}}}if(0x0==_0x185943['length'])return null;const _0x189d69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c7629,'join');for(const _0x54bda4 of this['getSuggestions']())if(_0x54bda4['author']['id']==_0xfef8fa['id']&&'formatBlock'==_0x54bda4['type']&&_0x54bda4['data']['formatGroupId']==_0x1b1ab9['formatGroupId']&&_0x54bda4['subType']==_0x1c7629&&Qt(_0x54bda4,_0x114bad)&&(_0x189d69(_0x54bda4['getRanges'](),_0x185943)||_0x189d69(_0x185943,_0x54bda4['getRanges']()))){for(const _0x4bb9e3 of _0x185943)_0x54bda4['addRange'](_0x4bb9e3);return _0x54bda4;}const _0x91ca65=_0x2ea4c3(),_0x4704fe=_0xfef8fa['id'],_0xe3533b='formatBlock:'+_0x1c7629,_0x4a68a9=this['_setSuggestionData']({'id':_0x91ca65,'type':_0xe3533b,'data':_0x1b1ab9,'createdAt':new Date(),'authorId':_0x4704fe,'attributes':_0x114bad});for(const _0x141d5c of _0x185943)this['_addSuggestionMarker'](_0xe3533b,_0x91ca65,_0x4704fe,_0x141d5c,o['getMultiRangeId']());return _0x4a68a9;}['markDeletion'](_0x14c07a,_0x583a53=null,_0x285e2c={}){if(_0x14c07a['isCollapsed'])return null;const _0x24a454=this['editor']['plugins']['get']('Users')['me'],_0x43c4d2=new _0x2b7c87(_0x14c07a['start'],_0x14c07a['end']);for(const {suggestion:_0x4a589c,meta:_0x55564c}of this['_findSuggestions'](_0x43c4d2,'insertion'))if(_0x55564c['isOwn']&&!_0x55564c['isNextTo']){if(_0x4a589c['isMultiRange']){const _0xe45800=_0x4a589c['getRanges']()['filter'](_0x31929d=>'$graveyard'!=_0x31929d['root']['rootName']);_0xe45800['every'](_0x45f75d=>_0x43c4d2['containsRange'](_0x45f75d,!0x0))&&_0x4a589c['discard']();if(_0xe45800['some'](_0x410dc5=>_0x410dc5['containsRange'](_0x43c4d2,!0x0))){const _0x1bd74b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x583a53,'accept');return this['forceDefaultExecution'](()=>_0x1bd74b([_0x43c4d2],null,_0x285e2c)),null;}}else{const _0x41a1ce=_0x43c4d2['getIntersection'](_0x4a589c['getFirstRange']());null!==_0x41a1ce&&_0x4a589c['_onDiscard']([_0x41a1ce],null,_0x285e2c);}}if(_0x43c4d2['detach'](),_0x43c4d2['isCollapsed']||'$graveyard'==_0x43c4d2['root']['rootName'])return null;let _0x5df64b=null,_0x531018=_0x43c4d2['start'],_0x50a656=_0x43c4d2['end'];const _0x73c2ea=this['_findSuggestions'](_0x43c4d2,'deletion');for(const {suggestion:_0x4dd312,meta:_0x1f182f}of _0x73c2ea){const _0x11b875=this['_model']['createRange'](_0x531018,_0x50a656);if(_0x1f182f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f182f['containsRangeInObject']&&!_0x1f182f['isInsideObject'])){if(_0x4dd312['isMultiRange']){if(!Qt(_0x4dd312,_0x285e2c))continue;let _0xcf4147=!0x0;for(const _0x5f4c40 of _0x4dd312['getRanges']()){if(_0x5f4c40['containsRange'](_0x11b875,!0x0))return _0x4dd312;_0x11b875['containsRange'](_0x5f4c40)||(_0xcf4147=!0x1);}_0xcf4147&&_0x4dd312['discard']();}else{const _0xa4f336=_0x4dd312['getFirstRange']();if(_0xa4f336['containsRange'](_0x11b875,!0x0))return _0x4dd312;if(!Qt(_0x4dd312,_0x285e2c)){_0x11b875['containsRange'](_0xa4f336)?_0x4dd312['removeMarkers']():_0xa4f336['containsPosition'](_0x531018)?_0x531018=_0xa4f336['end']:_0xa4f336['containsPosition'](_0x50a656)&&(_0x50a656=_0xa4f336['start']);continue;}_0x531018=_0x531018['isBefore'](_0xa4f336['start'])?_0x531018:_0xa4f336['start'],_0x50a656=_0x50a656['isAfter'](_0xa4f336['end'])?_0x50a656:_0xa4f336['end'],_0x285e2c=Object['assign']({},_0x4dd312['attributes']),_0x5df64b?_0xa4f336['start']['isBefore'](_0x5df64b['getFirstRange']()['start'])?(_0x5df64b['removeMarkers'](),_0x5df64b=_0x4dd312):_0x4dd312['removeMarkers']():_0x5df64b=_0x4dd312;}}}if(_0x5df64b)return this['_setSuggestionRange'](_0x5df64b,this['_model']['createRange'](_0x531018,_0x50a656)),_0x5df64b;{const _0x327952=_0x2ea4c3(),_0x25f874=this['_model']['createRange'](_0x531018,_0x50a656),_0x46ee49=_0x24a454['id'],_0x37d62a=_0x583a53?'deletion:'+_0x583a53:'deletion',_0x4742c6=this['_setSuggestionData']({'id':_0x327952,'type':_0x37d62a,'createdAt':new Date(),'authorId':_0x46ee49,'attributes':_0x285e2c});return this['_addSuggestionMarker'](_0x37d62a,_0x327952,_0x46ee49,_0x25f874),_0x4742c6;}}['markMultiRangeDeletion'](_0x5c4a6a,_0xc7fd33='multi',_0x55bcff={}){const _0x36e3a1=this['editor']['plugins']['get']('Users')['me'],_0x34e325=_0x5c4a6a['map'](_0x374643=>new _0x2b7c87(_0x374643['start'],_0x374643['end'])),_0x32482d=new Set();for(const {suggestion:_0x210e31,meta:_0x3b5e83}of this['_findSuggestions'](_0x34e325,'insertion'))_0x3b5e83['isOwn']&&!_0x3b5e83['isNextTo']&&_0x32482d['add'](_0x210e31);for(const _0x14a675 of _0x32482d)if(_0x14a675['isMultiRange']){const _0x24637c=_0x14a675['getRanges']();(!_0x14a675['attributes']||!_0x14a675['attributes']['skipNestingCheck'])&&(_0x24637c['every'](_0x4842ab=>_0x34e325['some'](_0x105aa=>_0x105aa['containsRange'](_0x4842ab,!0x0)))&&_0x14a675['discard']());if(_0x34e325['every'](_0x5e651d=>_0x24637c['some'](_0x2bfd2c=>_0x2bfd2c['containsRange'](_0x5e651d,!0x0)))){const _0x3303a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc7fd33,'accept');return this['forceDefaultExecution'](()=>_0x3303a2(_0x5c4a6a,null,_0x55bcff)),null;}}else{const _0x23e474=_0x14a675['getFirstRange']();_0x34e325['some'](_0x2104ef=>_0x2104ef['containsRange'](_0x23e474,!0x0))&&_0x14a675['discard']();if(_0x34e325['every'](_0x591d4a=>_0x23e474['containsRange'](_0x591d4a,!0x0))){const _0xe5a0c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc7fd33,'accept');return this['forceDefaultExecution'](()=>_0xe5a0c2(_0x34e325,null,_0x55bcff)),null;}}const _0x19ed58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc7fd33,'join');let _0x583afb=null;for(const _0x2b792b of this['getSuggestions']())if(_0x2b792b['author']['id']==_0x36e3a1['id']&&_0x2b792b['isInContent']&&'deletion'==_0x2b792b['type']&&_0x2b792b['subType']==_0xc7fd33&&Qt(_0x2b792b,_0x55bcff)&&(_0x19ed58(_0x2b792b['getRanges'](),_0x34e325)||_0x19ed58(_0x34e325,_0x2b792b['getRanges']()))){if(_0x583afb){if(_0x2b792b['commentThread']&&_0x2b792b['commentThread']['length'])continue;for(const _0x33a04d of _0x2b792b['getRanges']())_0x583afb['isIntersectingWithRange'](_0x33a04d)||_0x583afb['addRange'](_0x33a04d);_0x2b792b['removeMarkers']();}else{_0x583afb=_0x2b792b;for(const _0xff9535 of _0x34e325)_0x2b792b['isIntersectingWithRange'](_0xff9535)||_0x2b792b['addRange'](_0xff9535);}}if(_0x583afb)return _0x583afb;_0x32482d['clear']();for(const {suggestion:_0xbc682,meta:_0x6299be}of this['_findSuggestions'](_0x34e325,'deletion'))_0x6299be['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6299be['containsRangeInObject']&&!_0x6299be['isInsideObject'])&&Qt(_0xbc682,_0x55bcff)&&_0x32482d['add'](_0xbc682);for(const _0x40a5c4 of _0x32482d){const _0x7de4ce=_0x40a5c4['getRanges']();if(!_0x55bcff||!_0x55bcff['skipNestingCheck']){if(_0x34e325['every'](_0x1b71ab=>_0x7de4ce['some'](_0x414696=>_0x414696['containsRange'](_0x1b71ab,!0x0))))return _0x40a5c4;}(!_0x40a5c4['attributes']||!_0x40a5c4['attributes']['skipNestingCheck'])&&(_0x7de4ce['every'](_0x4fd8e6=>_0x34e325['some'](_0xb645dd=>_0xb645dd['containsRange'](_0x4fd8e6,!0x0)))&&_0x40a5c4['discard']());}const _0x5a73d4=_0x2ea4c3(),_0x168aca=_0x36e3a1['id'],_0x2ac590='deletion:'+_0xc7fd33,_0x35f417=this['_setSuggestionData']({'id':_0x5a73d4,'type':_0x2ac590,'createdAt':new Date(),'authorId':_0x168aca,'attributes':_0x55bcff});for(const _0x244f15 of _0x34e325)_0x244f15['detach'](),_0x244f15['isCollapsed']||'$graveyard'==_0x244f15['root']['rootName']||this['_addSuggestionMarker'](_0x2ac590,_0x5a73d4,_0x168aca,_0x244f15,o['getMultiRangeId']());return _0x35f417;}['markAttributeChange'](_0xc57cdf,_0x362f8f,_0x37ac81,_0x30fc01,_0x59baa7){if(_0xc57cdf['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2e5ed3=this['editor']['plugins']['get']('Users')['me']['id'],_0x3640dd=Array['from'](this['_suggestions']['values']())['filter'](_0x2f9319=>'attribute'==_0x2f9319['type']&&_0x2f9319['data']['key']==_0x362f8f&&_0x2f9319['isIntersectingWithRange'](_0xc57cdf));if('default'===this['_trackFormatChanges']){const _0x472551=this['_findSuggestions'](_0xc57cdf,'insertion')['filter'](({meta:_0x2584ba})=>_0x2584ba['isOwn']&&!_0x2584ba['isInsideObject']&&!_0x2584ba['isNextTo'])['map'](({suggestion:_0x4c9ba9})=>_0x4c9ba9);_0x3640dd['unshift'](..._0x472551);}const _0x154719=new Map([[_0xc57cdf,_0x37ac81]]);for(const _0x2a3823 of _0x3640dd){const _0x56997c='attribute'==_0x2a3823['type']?_0x2a3823['data']['oldValue']:void 0x0,_0x355069=_0x2a3823['getFirstRange'](),_0x2f7659=Array['from'](_0x154719['keys']())['find'](_0x1b551a=>_0x1b551a['isIntersecting'](_0x355069));if(!_0x2f7659)continue;const _0x208c92=_0x2f7659['getDifference'](_0x355069);this['_isBlockAttribute'](_0x362f8f)&&'insertion'==_0x2a3823['type']&&0x0!=_0x208c92['length']||(_0x154719['delete'](_0x2f7659),_0x208c92['forEach'](_0x5c7e12=>{_0x154719['set'](_0x5c7e12,_0x37ac81);}),'insertion'!=_0x2a3823['type']&&_0x56997c!=_0x30fc01&&_0x154719['set'](_0x2f7659['getIntersection'](_0x355069),_0x56997c));}const _0x2c9212=[];for(const [_0x43dfe9,_0x2e722c]of _0x154719){const _0xeda78a=_0x2ea4c3(),_0x2476f4={'key':_0x362f8f,'oldValue':_0x2e722c,'newValue':_0x30fc01};_0x362f8f['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':_0x362f8f});const _0x43bc60=('attribute:'+(_0x362f8f+'|'+Jt({'newValue':_0x30fc01})))['substring'](0x0,0x3c),_0x302a06=this['_setSuggestionData']({'id':_0xeda78a,'type':_0x43bc60,'data':_0x2476f4,'createdAt':new Date(),'authorId':_0x2e5ed3,'attributes':_0x59baa7});_0x2c9212['push'](_0x302a06),this['_addSuggestionMarker'](_0x43bc60,_0xeda78a,_0x2e5ed3,_0x43dfe9);}return _0x2c9212;}['enableDefaultAttributesIntegration'](_0x576fdd){this['enableCommand'](_0x576fdd,(_0x549630,..._0x471967)=>{this['_recordAttributeChanges'](()=>{_0x549630(..._0x471967);});});}['registerBlockAttribute'](_0x450cba){this['_blockAttributeKeys']['add'](_0x450cba);}['registerInlineAttribute'](_0x142319){this['_inlineAttributeKeys']['add'](_0x142319);}['_getAttributeKey'](_0xd12df){return'attribute'==_0xd12df['type']?_0xd12df['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x37180e,_0x3479f8){const _0x155a51=_0x37180e['getFirstMarker']();this['_model']['change'](_0x5d732d=>{_0x5d732d['updateMarker'](_0x155a51,{'range':_0x3479f8});});}['_addThreadToSuggestion'](_0x4e7d7a){const _0x5e7ed6=_0x4e7d7a['id'],_0x44278c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e7ed6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x44278c,'threadId':_0x5e7ed6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x283908=this['_commentsRepository']['getCommentThread'](_0x5e7ed6);_0x283908['unbind']('isRemovable'),_0x283908['isRemovable']=!0x1,_0x4e7d7a['commentThread']=_0x283908;}['_checkSuggestionCorrectness'](_0x5de7e2,_0x2dca68,_0x5eddb5,_0x21986a){if(_0x5de7e2['type']!=_0x2dca68||_0x5de7e2['subType']!=_0x5eddb5||_0x5de7e2['creator']['id']!=_0x21986a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x921117('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4dab7a,_0x4eb7ea){const _0x30c78e=_0x4dab7a['getFirstRange']();if(_0x4eb7ea['isEqual'](_0x30c78e))_0x4dab7a['removeMarkers']();else{if(_0x30c78e['containsRange'](_0x4eb7ea)){const _0x36ab6f=this['_model']['createPositionAt'](_0x4eb7ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4dab7a,this['_model']['createRange'](_0x30c78e['start'],_0x36ab6f));const _0x24496d=_0x2ea4c3(),_0x43b17b=_0x4dab7a['creator']['id'],_0x22f64c=_0x4dab7a['type']+':'+_0x4dab7a['subType'];this['_setSuggestionData']({'id':_0x24496d,'type':_0x22f64c,'createdAt':new Date(),'authorId':_0x43b17b,'data':_0x4dab7a['data'],'attributes':_0x4dab7a['attributes']});const _0x270a4c=this['_model']['createPositionAt'](_0x4eb7ea['end']['parent'],'after'),_0x29d4b5=this['_model']['createRange'](_0x270a4c,_0x30c78e['end']);this['_addSuggestionMarker'](_0x22f64c,_0x24496d,_0x43b17b,_0x29d4b5);}else{if(_0x30c78e['containsPosition'](_0x4eb7ea['start'])){const _0xad805a=this['_model']['createPositionAt'](_0x4eb7ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4dab7a,this['_model']['createRange'](_0x30c78e['start'],_0xad805a));}else{const _0x2ef0f0=this['_model']['createPositionAt'](_0x4eb7ea['end']['parent'],'after');this['_setSuggestionRange'](_0x4dab7a,this['_model']['createRange'](_0x2ef0f0,_0x30c78e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e5bee){for(const {suggestion:_0x15b2a9,meta:_0x2dd4d0}of this['_findSuggestions'](_0x1e5bee,'insertion')){if(!_0x2dd4d0['isOwn'])continue;const _0x527b1c=_0x15b2a9['getRanges']();for(const _0x100c89 of _0x527b1c)if(!_0x1e5bee['getDifference'](_0x100c89)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x535272){const _0x22bd79=this['editor']['plugins']['get']('Users')['getUser'](_0x535272);if(!_0x22bd79)throw new _0x921117('track-changes-user-not-found',this);return _0x22bd79;}['_getExternalAuthor'](_0x271095){const _0x168a44=this['editor']['plugins']['get']('Users'),_0xeaf5bf=_0x21fcb1('external:'+_0x271095),_0x2b4aa3=_0x168a44['getUser'](_0xeaf5bf);return _0x2b4aa3||_0x168a44['addUser']({'id':_0xeaf5bf,'name':_0x271095});}['_createSuggestion'](_0x4ad2d2,_0x3b6041,_0x1825c1,_0xbd5bf2,_0x512bf3){const _0x3b7c71=this['_getAuthorFromId'](_0xbd5bf2),_0x179a6f=this['_suggestionFactory']['buildSuggestion'](_0x4ad2d2,_0x3b6041,_0x1825c1,_0x3b7c71,_0x512bf3,_0x44d75e=>{this['_updateSuggestionData'](_0x1825c1,{'attributes':_0x44d75e});const _0x1e8b8a=this['getSuggestion'](_0x1825c1);this['_joinWithAdjacentSuggestions'](new Set([_0x1e8b8a])),this['_refreshSuggestionsChain'](new Set([_0x1e8b8a]));});return this['listenTo'](_0x179a6f,'accept',()=>{this['_updateSuggestionData'](_0x1825c1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x179a6f,'discard',()=>{this['_updateSuggestionData'](_0x1825c1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1825c1,_0x179a6f),this['_suggestionState']['set'](_0x179a6f,'notReady'),_0x179a6f;}['_splitMarkerName'](_0x19ade3){const _0x5a276e=_0x19ade3['split'](':');return{'group':_0x5a276e[0x0],'type':_0x5a276e[0x1],'subType':_0x5a276e['length']>=0x5?_0x5a276e[0x2]:null,'id':_0x5a276e['length']<0x5?_0x5a276e[0x2]:_0x5a276e[0x3],'authorId':_0x5a276e['length']<0x5?_0x5a276e[0x3]:_0x5a276e[0x4],'markerCount':0x6==_0x5a276e['length']?_0x5a276e[0x5]:null};}['_breakSuggestionMarker'](_0x1ecf62,_0xcdadff,_0x94582a){const _0x1aab15=_0x1ecf62['getFirstRange'](),_0x35d517=_0x1aab15['start'],_0x2f9f5c=_0x1aab15['end'];this['_setSuggestionRange'](_0x1ecf62,this['_model']['createRange'](_0x35d517,_0xcdadff));const _0x4e0771=_0x2ea4c3(),_0x489860=_0x1ecf62['creator']['id'],_0x1d8444=_0x1ecf62['type']+(_0x1ecf62['subType']?':'+_0x1ecf62['subType']:'');this['_setSuggestionData']({'id':_0x4e0771,'type':_0x1d8444,'createdAt':new Date(),'authorId':_0x489860,'originalSuggestionId':_0x1ecf62['id'],'attributes':_0x1ecf62['attributes'],'data':_0x1ecf62['data']});const _0x2ba829=this['_getAttributeKey'](_0x1ecf62);('formatBlock'==_0x1ecf62['type']||_0x2ba829&&this['_isBlockAttribute'](_0x2ba829))&&(_0x94582a=this['_model']['createPositionBefore'](_0x94582a['parent'])),this['_addSuggestionMarker'](_0x1d8444,_0x4e0771,_0x489860,this['_model']['createRange'](_0x94582a,_0x2f9f5c));}['_findSuggestions'](_0x3b231d,_0x28e89c=null){const _0xb7e82f=[],_0x47f6df=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3b231d)||(_0x3b231d=[_0x3b231d]);for(const _0x29207c of this['getSuggestions']()){if(!_0x29207c['isInContent'])continue;if(_0x28e89c&&_0x29207c['type']!=_0x28e89c)continue;let _0x11742=!0x1;for(const _0x17a879 of _0x29207c['getRanges']()){for(const _0x4611df of _0x3b231d){const _0x39931f=_0x4611df['start']['isEqual'](_0x17a879['end'])||_0x4611df['end']['isEqual'](_0x17a879['start']);if(_0x39931f||_0x4611df['getIntersection'](_0x17a879)){const _0x1ee1dd=_0x4611df['containsRange'](_0x17a879)&&Pt(this['_model']['schema'],_0x17a879['start'],_0x4611df),_0x276371=_0x17a879['containsRange'](_0x4611df)&&Pt(this['_model']['schema'],_0x4611df['start'],_0x17a879);_0xb7e82f['push']({'suggestion':_0x29207c,'meta':{'isOwn':_0x47f6df==_0x29207c['author'],'isNextTo':_0x39931f,'isInsideObject':_0x1ee1dd,'containsRangeInObject':_0x276371}}),_0x11742=!0x0;break;}}if(_0x11742)break;}}return _0xb7e82f;}['_addSuggestionMarker'](_0x16019b,_0x427d95,_0x3d14e0,_0x3045d7,_0x588abf){this['_model']['change'](_0x10f417=>{let _0x22606d='suggestion:'+_0x16019b+':'+_0x427d95+':'+_0x3d14e0;_0x588abf&&(_0x22606d=_0x22606d+':'+_0x588abf),_0x10f417['addMarker'](_0x22606d,{'range':_0x3045d7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18f60e){const _0x2cd3a8=_0x18f60e['previous'],_0x4d62f0=_0x18f60e['next'];_0x18f60e['previous']=null,_0x18f60e['next']=null,null!=_0x2cd3a8&&_0x2cd3a8['next']==_0x18f60e&&(_0x2cd3a8['next']=_0x4d62f0),null!=_0x4d62f0&&_0x4d62f0['previous']==_0x18f60e&&(_0x4d62f0['previous']=_0x2cd3a8),'ready'==this['_suggestionState']['get'](_0x18f60e)&&(this['_suggestionState']['set'](_0x18f60e,'removed'),this['fire']('suggestionUnloaded',_0x18f60e,_0x2cd3a8,_0x4d62f0));}['_setSuggestionData'](_0x571c7c){const _0x3c6f67=_0x571c7c['id'],_0x1941d8=this['addSuggestionData'](_0x571c7c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1ee810=this['editor']['plugins']['get']('PendingActions'),_0xb33563=_0x1941d8['hasComments'],_0x4e77b8=_0x1941d8['subType']?_0x1941d8['type']+':'+_0x1941d8['subType']:_0x1941d8['type'],_0x4b2fb2=this['editor']['locale'],_0x38072c=_0x1ee810['add'](c(_0x4b2fb2,'PENDING_ACTION_SUGGESTION')),_0x193ab7={'id':_0x3c6f67,'type':_0x4e77b8,'hasComments':_0xb33563,'data':_0x571c7c['data']||null,'originalSuggestionId':_0x571c7c['originalSuggestionId']||null,'attributes':_0x1941d8['attributes']};this['_adapter']['addSuggestion'](_0x193ab7)['then'](_0xd7b4b9=>{_0x1941d8['_saved']=!0x0,_0x1ee810['remove'](_0x38072c),_0xd7b4b9&&_0xd7b4b9['createdAt']&&(this['_suggestions']['get'](_0x3c6f67)['createdAt']=_0xd7b4b9['createdAt']);})['catch'](_0x3082e1=>{throw _0x58f0f1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1941d8['discard']();}),_0x1941d8['stopListening'](),this['_suggestions']['delete'](_0x1941d8['id']),this['_suggestionState']['delete'](_0x1941d8),_0x3082e1;});}return _0x1941d8;}['_isBlockAttribute'](_0x9898ed){return this['_blockAttributeKeys']['has'](_0x9898ed);}['_updateSuggestionData'](_0x4ff250,_0x23dc7c){const _0x49e398=this['editor']['plugins']['get']('PendingActions'),_0x21cb02=this['getSuggestion'](_0x4ff250);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x21cb02['_saved']){const _0x318a3a=_0x49e398['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ff250,_0x23dc7c)['then'](()=>{_0x49e398['remove'](_0x318a3a);});}else _0x21cb02['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ff250,_0x23dc7c);});}}['_getSuggestionData'](_0x51ec00){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x921117('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x51ec00);}['_handleNewSuggestionMarker'](_0x2e052f){const {id:_0x46810e,type:_0x9ee1b4,subType:_0x4e05a8,authorId:_0x5584d5}=this['_splitMarkerName'](_0x2e052f),_0x4ff0df=this['_suggestions']['get'](_0x46810e)||this['_createSuggestion'](_0x9ee1b4,_0x4e05a8,_0x46810e,_0x5584d5,{});switch(this['_checkSuggestionCorrectness'](_0x4ff0df,_0x9ee1b4,_0x4e05a8,_0x5584d5),this['_suggestionState']['get'](_0x4ff0df)){case'notReady':this['_getSuggestionData'](_0x46810e)['then'](_0x1aff75=>{let _0x54cf8f=Promise['resolve']();_0x1aff75['hasComments']&&(_0x54cf8f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46810e})),_0x54cf8f['then'](()=>{this['addSuggestionData'](_0x1aff75)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ff0df,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46810e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ff0df,'ready'),this['fire']('suggestionLoaded',_0x4ff0df);break;case'ready':this['fire']('suggestionChanged',_0x4ff0df);}return _0x4ff0df['addMarkerName'](_0x2e052f),_0x4ff0df;}['_refreshSuggestionsChain'](_0x474936){const _0x46a5d7=Array['from'](_0x474936),_0x4f2a77=_0x46a5d7['filter'](_0x1fb00f=>'attribute'==_0x1fb00f['type']);this['_refreshAttributeSuggestionsChain'](_0x4f2a77);const _0x5a9252=_0x46a5d7['filter'](_0x3bac84=>!_0x3bac84['isMultiRange']&&'attribute'!=_0x3bac84['type']),_0x53c0d4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ae899=>!_0x1ae899['isMultiRange']&&'attribute'!=_0x1ae899['type']),_0x123c48=_0x53c0d4['filter'](_0x5dbb38=>!_0x474936['has'](_0x5dbb38)),_0x26042a=new Map(_0x53c0d4['map'](_0x225a0d=>[_0x225a0d,this['_suggestionFactory']['getSuggestionCallback'](_0x225a0d['type'],_0x225a0d['subType'],'chain')])),_0x15e838=new Map(_0x53c0d4['map'](_0xf54805=>[_0xf54805,_0xf54805['getFirstRange']()])),_0x46916b=new Set(),_0x17fc89=new Set();for(let _0x1fd13d=0x0;_0x1fd13d<_0x5a9252['length'];_0x1fd13d++)_0x5268be(_0x5a9252[_0x1fd13d],_0x5a9252,_0x1fd13d+0x1);for(let _0x51d61f=0x0;_0x51d61f<_0x5a9252['length'];_0x51d61f++)_0x5268be(_0x5a9252[_0x51d61f],_0x123c48,0x0);const _0xd3d11a=new Set();for(let _0xeebd00=0x0;_0xeebd00<_0x5a9252['length'];_0xeebd00++){const _0x3c8251=_0x5a9252[_0xeebd00];!_0x17fc89['has'](_0x3c8251)&&_0x3c8251['previous']&&(_0xd3d11a['add'](_0x3c8251['previous']),_0x3c8251['previous']['next']===_0x3c8251&&(_0x3c8251['previous']['next']=null),_0x3c8251['previous']=null),!_0x46916b['has'](_0x3c8251)&&_0x3c8251['next']&&(_0xd3d11a['add'](_0x3c8251['next']),_0x3c8251['next']['previous']===_0x3c8251&&(_0x3c8251['next']['previous']=null),_0x3c8251['next']=null);}function _0x5268be(_0x358943,_0x5f3983,_0x26763d){for(let _0x21fc5f=_0x26763d;_0x21fc5f<_0x5f3983['length'];_0x21fc5f++){const _0x29c193=_0x14a9f8(_0x358943,_0x5f3983[_0x21fc5f]);_0x29c193&&(_0x29c193[0x0]['next']=_0x29c193[0x1],_0x29c193[0x1]['previous']=_0x29c193[0x0],_0x46916b['add'](_0x29c193[0x0]),_0x17fc89['add'](_0x29c193[0x1]));}}function _0x14a9f8(_0x3c64d8,_0x2c3dd0){if(_0x3c64d8['author']['id']!==_0x2c3dd0['author']['id'])return null;const _0x331f30=_0x26042a['get'](_0x3c64d8)(_0x3c64d8,_0x2c3dd0,_0x15e838['get'](_0x3c64d8),_0x15e838['get'](_0x2c3dd0));if(!_0x331f30)return null;return _0x26042a['get'](_0x2c3dd0)(_0x3c64d8,_0x2c3dd0,_0x15e838['get'](_0x3c64d8),_0x15e838['get'](_0x2c3dd0))?_0x331f30[0x1]['commentThread']&&_0x331f30[0x1]['commentThread']['length']?null:_0x331f30:null;}_0xd3d11a['size']&&this['_refreshSuggestionsChain'](_0xd3d11a);}['_refreshAttributeSuggestionsChain'](_0x61f484){if(0x0==_0x61f484['length'])return;const _0x4a1100=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ce41a=>'attribute'==_0x2ce41a['type']&&_0x2ce41a['_isDataLoaded']),_0x18547a=[],_0xdea289=new Map();for(const _0x5a0e6f of _0x4a1100){const _0x1e0e24=_0x21fcb1(_0x5a0e6f['attributes']);_0xdea289['has'](_0x1e0e24)||(_0xdea289['set'](_0x1e0e24,_0x18547a['length']),_0x18547a['push']([]));const _0x1501fc=_0xdea289['get'](_0x1e0e24);_0x18547a[_0x1501fc]['push'](_0x5a0e6f);}!(function(){_0x18547a['sort']((_0x1e9a25,_0x2e501f)=>{const _0x4e6e1c=_0x1e9a25[0x0]['createdAt'],_0xf12407=_0x2e501f[0x0]['createdAt'];return _0x4e6e1c==_0xf12407?_0x1e9a25[0x0]['attributes']['groupId']<_0x2e501f[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e6e1c<_0xf12407?-0x1:0x1;});for(const _0x23a220 of _0x18547a)_0x23a220['sort']((_0x31856f,_0xa6a174)=>_0x31856f['id']<_0xa6a174['id']?-0x1:0x1);}());for(let _0x5d1325=0x0;_0x5d1325<_0x18547a['length'];_0x5d1325++){if(0x0==_0x18547a[_0x5d1325]['length'])continue;const _0x4c30e5=[];for(let _0xe2d1c=_0x5d1325+0x1;_0xe2d1c<_0x18547a['length'];_0xe2d1c++)0x0!=_0x18547a[_0xe2d1c]['length']&&_0x4dad47(_0x18547a[_0x5d1325],_0x18547a[_0xe2d1c])&&_0x4c30e5['push'](_0xe2d1c);for(const _0x141b2c of _0x4c30e5)_0x18547a[_0x5d1325]=_0x18547a[_0x5d1325]['concat'](_0x18547a[_0x141b2c]),_0x18547a[_0x141b2c]=[];}for(const _0x454a44 of _0x18547a)for(let _0x28eb43=0x0;_0x28eb43<_0x454a44['length'];_0x28eb43++){const _0x44ce89=_0x454a44[_0x28eb43+0x1]||null;_0x454a44[_0x28eb43]['next']!==_0x44ce89&&(_0x454a44[_0x28eb43]['next']=_0x44ce89);}for(const _0x489296 of _0x18547a)for(let _0xa89375=0x0;_0xa89375<_0x489296['length'];_0xa89375++){const _0x334547=_0x489296[_0xa89375-0x1]||null;_0x489296[_0xa89375]['previous']!==_0x334547&&(_0x489296[_0xa89375]['previous']=_0x334547);}function _0x4dad47(_0x474e7d,_0x36c8c1){if(_0x474e7d[0x0]['attributes']['groupId']!==_0x36c8c1[0x0]['attributes']['groupId']&&_0x474e7d[0x0]['author']!==_0x36c8c1[0x0]['author'])return!0x1;if(!function(_0x30ee92,_0x4c7eca){if(!_0x30ee92['hasComments']&&!_0x4c7eca['hasComments'])return!0x0;if(_0x30ee92['hasComments']&&_0x4c7eca['hasComments'])return!0x1;if(_0x30ee92['hasComments']&&_0x4c7eca['createdAt']<_0x30ee92['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c7eca['hasComments']&&_0x30ee92['createdAt']<_0x4c7eca['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x474e7d[0x0],_0x36c8c1[0x0]))return!0x1;const _0x4b09a0=Vt(_0x474e7d[0x0]['attributes'],'groupId'),_0x18e5cc=Vt(_0x36c8c1[0x0]['attributes'],'groupId');if(!_0x35d3c5(_0x4b09a0,_0x18e5cc))return!0x1;return!!_0x474e7d['every'](_0x234283=>_0x36c8c1['some'](_0x87cad6=>_0x234283['getFirstRange']()['isEqual'](_0x87cad6['getFirstRange']())))&&_0x36c8c1['every'](_0x932b29=>_0x474e7d['some'](_0x1bf265=>_0x932b29['getFirstRange']()['isEqual'](_0x1bf265['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x317f4c){const _0x53c09a=Array['from'](_0x317f4c),_0x6b810b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3831a9=_0x6b810b['filter'](_0x35d524=>!_0x317f4c['has'](_0x35d524)),_0x26b7e0=new Map(_0x53c09a['map'](_0x552a67=>[_0x552a67,this['_suggestionFactory']['getSuggestionCallback'](_0x552a67['type'],_0x552a67['subType'],'join')])),_0x5e5f3b=new Map(_0x6b810b['map'](_0x31e91d=>[_0x31e91d,_0x31e91d['getRanges']()]));for(let _0x1177e6=0x0;_0x1177e6<_0x53c09a['length'];_0x1177e6++){if(_0x4b4ad7(this,_0x53c09a[_0x1177e6],_0x53c09a,_0x1177e6+0x1))return!0x0;}for(let _0x104eaf=0x0;_0x104eaf<_0x53c09a['length'];_0x104eaf++){if(_0x4b4ad7(this,_0x53c09a[_0x104eaf],_0x3831a9,0x0))return!0x0;}return!0x1;function _0x4b4ad7(_0x2d240d,_0x5d39f7,_0x133807,_0x51bb82){for(let _0x3afd60=_0x51bb82;_0x3afd60<_0x133807['length'];_0x3afd60++){const _0x1220f3=_0x133807[_0x3afd60];if(_0x1220f3['type']!==_0x5d39f7['type']||_0x1220f3['author']['id']!==_0x5d39f7['author']['id']||_0x1220f3['subType']!==_0x5d39f7['subType'])continue;if(!Wt(_0x5d39f7,_0x1220f3))continue;if('attribute'==_0x5d39f7['type']&&_0x5d39f7['data']['oldValue']!=_0x1220f3['data']['oldValue'])continue;if('attribute'==_0x5d39f7['type']&&_0x2d240d['_isBlockAttribute'](_0x5d39f7['data']['key']))continue;if('formatBlock'==_0x5d39f7['type']){const _0x33feb=_0x2d240d['editor']['model'],_0x5d4223=_0x5d39f7['getContainedElement']();if(_0x5d4223&&(_0x33feb['schema']['isObject'](_0x5d4223)||_0x33feb['schema']['isLimit'](_0x5d4223)))continue;}const _0x565795=_0x26b7e0['get'](_0x5d39f7),_0x425286=_0x5e5f3b['get'](_0x5d39f7),_0x5e0eef=_0x5e5f3b['get'](_0x1220f3),_0x412805=_0x5d39f7['commentThread']&&_0x5d39f7['commentThread']['length'],_0x11a2c7=_0x1220f3['commentThread']&&_0x1220f3['commentThread']['length'];if(!_0x412805&&_0x565795(_0x5e0eef,_0x425286))return _0x2d240d['_joinSuggestions'](_0x1220f3,_0x5d39f7),_0x5e5f3b['delete'](_0x5d39f7),!0x0;if(!_0x11a2c7&&_0x565795(_0x425286,_0x5e0eef))return _0x2d240d['_joinSuggestions'](_0x5d39f7,_0x1220f3),_0x5e5f3b['delete'](_0x1220f3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4aba35,_0x412698){if(_0x4aba35['isMultiRange']){for(const _0xb38702 of _0x412698['getRanges']())_0x4aba35['addRange'](_0xb38702);}else{const _0x3342a6=_0x412698['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4aba35,this['_model']['createRange'](_0x4aba35['getFirstRange']()['start'],_0x3342a6));}_0x412698['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1a5c08,_0x25c090,_0xd34c9f){const _0x542f1e=_0x1a5c08['startsWith']('format')||_0x1a5c08['startsWith']('attribute')?'FORMATTING':_0x1a5c08['toUpperCase']();return c(this['editor']['locale'],_0x25c090+'_'+_0x542f1e+'_SUGGESTION_ANNOUNCEMENT',_0xd34c9f);}['_initAriaMarkerChangeAnnouncements'](){const _0x322366=this['editor'];if(!_0x322366['ui'])return;const {ariaLiveAnnouncer:_0x4583f5}=_0x322366['ui'];_0x2b0b75(this['_model'],({left:_0x2b3bf9,entered:_0x1e48ab})=>{for(const _0x553d61 of _0x2b3bf9){const {group:_0x1526cf,type:_0x29d945}=this['_splitMarkerName'](_0x553d61['name']);if('suggestion'===_0x1526cf){_0x4583f5['announce'](this['_getMarkerAnnouncementText'](_0x29d945,'LEAVE'));break;}}for(const _0xa46c71 of _0x1e48ab){const {group:_0x2ab2c9,type:_0x293e9e}=this['_splitMarkerName'](_0xa46c71['name']);if('suggestion'===_0x2ab2c9){_0x4583f5['announce'](this['_getMarkerAnnouncementText'](_0x293e9e,'ENTER',_0x3e2c26(_0x16fc57)));break;}}});}['_processAttributeChanges'](_0x1f6242){if(this['_recordAttributeSuggestions'])return!0x1;const _0x597b4d=this['editor'],_0x41e4c4=_0x597b4d['model']['document']['differ']['getChanges']();if(0x0==_0x41e4c4['length'])return!0x1;const _0x211e5c=[],_0x13e689=_0x41e4c4['filter'](_0x2bc607=>'attribute'==_0x2bc607['type']),_0x428332=_0x41e4c4['filter'](_0x56fb24=>'insert'==_0x56fb24['type']&&'$text'!=_0x56fb24['name']),_0x5eddb1=_0x41e4c4['filter'](_0x3f74f6=>'remove'==_0x3f74f6['type']&&'$text'!=_0x3f74f6['name']);for(const _0x3cd2ce of _0x13e689)_0x211e5c['push']({'key':_0x3cd2ce['attributeKey'],'newValue':_0x3cd2ce['attributeNewValue'],'oldValue':_0x3cd2ce['attributeOldValue'],'range':Ht(_0x3cd2ce['range'],_0x597b4d['model'])});for(const _0x5d5819 of _0x428332){const _0x2b4584=_0x5eddb1['find'](_0x52eda5=>_0x52eda5['position']['isEqual'](_0x5d5819['position']));_0x2b4584&&_0x211e5c['push']({'key':u,'newValue':_0x5d5819['name'],'oldValue':_0x2b4584['name'],'range':_0x597b4d['model']['createRangeOn'](_0x5d5819['position']['nodeAfter'])});}return 0x0!=_0x211e5c['length']&&this['_reduceExistingSuggestions'](_0x1f6242,_0x211e5c);}['_processAttributeSuggestions'](_0x3e2acc){let _0x191e94=!0x1;const _0x1593ff=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c69f9=>_0x4c69f9['data']['newRange']&&_0x4c69f9['name']['startsWith']('suggestion:attribute:'));for(const _0xa86fb8 of _0x1593ff){const {subType:_0x600007,id:_0xcb5b9b}=this['_splitMarkerName'](_0xa86fb8['name']),_0x731584=_0x600007['split']('|')[0x0];for(const _0x23fbed of this['getSuggestions']({'skipNotAttached':!0x0}))_0x23fbed['id']!=_0xcb5b9b&&'attribute'==_0x23fbed['type']&&_0x23fbed['data']&&_0x23fbed['data']['key']==_0x731584&&_0x23fbed['getFirstRange']()['isIntersecting'](_0xa86fb8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x23fbed,_0xa86fb8['data']['newRange'],_0x3e2acc),_0x191e94=!0x0);}return _0x191e94;}['_recordAttributeChanges'](_0x13277c){this['_recordAttributeSuggestions']=!0x0,_0x13277c();}['_isRegisteredAttribute'](_0x2e3f0c){const _0x450380=this['_isBlockAttribute'](_0x2e3f0c),_0x10f85c=this['_inlineAttributeKeys']['has'](_0x2e3f0c);return _0x450380||_0x10f85c;}['_reduceExistingSuggestions'](_0x15708e,_0x2088b7){if(0x0==_0x2088b7['length'])return!0x1;let _0x1b9ccf=!0x1;for(const _0x2ed7d9 of _0x2088b7){const _0x4feb17=this['_findSuggestions'](_0x2ed7d9['range'],'attribute')['filter'](_0x2a91e8=>!_0x2a91e8['meta']['isNextTo'])['map'](_0x1521f2=>_0x1521f2['suggestion']),_0x47661c=_0x21fcb1({'newValue':_0x2ed7d9['newValue']});_0x4feb17['filter'](_0x1cc579=>{const [_0x1c9b99,_0x4f9452]=_0x1cc579['subType']['split']('|');return _0x1c9b99==_0x2ed7d9['key']&&_0x4f9452!=_0x47661c;})['forEach'](_0x160f95=>{this['_reduceSuggestionAttributeRange'](_0x160f95,_0x2ed7d9['range'],_0x15708e),_0x1b9ccf=!0x0;});}return _0x1b9ccf;}['_reduceSuggestionAttributeRange'](_0x9453fd,_0xf4d3e5,_0x146a4b){const _0x5b199b=_0x9453fd['getFirstRange']()['getDifference'](_0xf4d3e5);0x0!==_0x5b199b['length']?0x1!==_0x5b199b['length']?this['_breakSuggestionMarker'](_0x9453fd,_0xf4d3e5['start'],_0xf4d3e5['end']):this['_setSuggestionRange'](_0x9453fd,_0x5b199b[0x0]):_0x146a4b['removeMarker'](_0x9453fd['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x569b68){this['_editor']=_0x569b68,this['_model']=_0x569b68['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4735f7,_0x418ec1,_0x258e51,_0x4c6a2f,_0x85db9b,_0x342ae6){return new o(this['_model'],{'type':_0x4735f7,'subType':_0x418ec1,'id':_0x258e51,'author':_0x4c6a2f,'creator':_0x4c6a2f,'attributes':_0x85db9b,'onAttributesChange':_0x342ae6,'onAccept':(..._0x5e1e3a)=>this['getSuggestionCallback'](_0x4735f7,_0x418ec1,'accept')(..._0x5e1e3a),'onDiscard':(..._0x45a8fb)=>this['getSuggestionCallback'](_0x4735f7,_0x418ec1,'discard')(..._0x45a8fb)});}['registerCustomCallback'](_0x1c4964,_0x1ca5c2,_0x4131ee,_0x112b08){const _0x496eb8=_0x1c4964+':'+_0x1ca5c2+':'+_0x4131ee;this['_customCallbacks']['set'](_0x496eb8,_0x112b08);}['getSuggestionCallback'](_0x4d8abf,_0x18427a,_0x4d602a){const _0x5155e6=_0x4d8abf+':'+_0x18427a+':'+_0x4d602a;return this['_customCallbacks']['get'](_0x5155e6)||this['_defaultCallbacks']['get'](_0x4d8abf+':'+_0x4d602a);}['_registerDefaultCallbacks'](){const _0xd847cf=()=>!0x1,_0x236880=_0xbe718f=>{_0xbe718f['sort']((_0x43034d,_0x524c35)=>_0x43034d['start']['isBefore'](_0x524c35['start'])?0x1:-0x1),this['_model']['change'](_0x26105e=>{for(const _0x2e930e of _0xbe718f){let _0x189a1b;_0x189a1b=_0x2e930e['end']['isAtEnd']&&_0x2e930e['end']['parent']==_0x2e930e['start']['nodeAfter']?_0x26105e['createSelection'](_0x2e930e['start']['nodeAfter'],'on'):_0x26105e['createSelection'](_0x2e930e),this['_model']['deleteContent'](_0x189a1b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xa2b066=(_0x3823b4,_0x1b7769)=>{_0x1b7769&&this['_model']['change'](_0x3b230e=>{const {commandName:_0x562193,commandParams:_0x3f778e=[]}=_0x1b7769,_0x1b7493=_0x3823b4['map'](_0x322217=>(Gt(_0x322217)&&(_0x322217=this['_model']['createRange'](_0x322217['end'])),_0x322217))['filter'](_0x4d7279=>'$graveyard'!==_0x4d7279['root']['rootName']);if(_0x1b7493['length']<0x1)return;const _0x183914=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xea4447=>_0x2b7c87['fromRange'](_0xea4447));_0x3b230e['setSelection'](_0x1b7493);for(const _0x5a5d6c of this['_editor']['commands']['commands']())_0x5a5d6c['refresh']();_0x3f778e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x562193,..._0x3f778e);const _0xa95a6e=_0x183914['filter'](_0xb4942f=>'$graveyard'!=_0xb4942f['root']['rootName']);_0xa95a6e['length']>0x0&&_0x3b230e['setSelection'](_0xa95a6e);for(const _0x4aad80 of _0x183914)_0x4aad80['detach']();});},_0x3b029d=(_0x29d503,_0x529fea)=>0x1==_0x29d503['length']&&0x1==_0x529fea['length']&&_0x29d503[0x0]['end']['isEqual'](_0x529fea[0x0]['start']),_0x153c03=(_0x54c5fb,_0x44ab12,_0x5af8ae,_0x315937)=>zt(_0x54c5fb,_0x44ab12,_0x5af8ae,_0x315937)?[_0x54c5fb,_0x44ab12]:zt(_0x44ab12,_0x54c5fb,_0x315937,_0x5af8ae)?[_0x44ab12,_0x54c5fb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd847cf),this['_defaultCallbacks']['set']('insertion:discard',_0x236880),this['_defaultCallbacks']['set']('insertion:join',_0x3b029d),this['_defaultCallbacks']['set']('insertion:chain',_0x153c03),this['_defaultCallbacks']['set']('deletion:accept',_0x236880),this['_defaultCallbacks']['set']('deletion:discard',_0xd847cf),this['_defaultCallbacks']['set']('deletion:join',_0x3b029d),this['_defaultCallbacks']['set']('deletion:chain',_0x153c03),this['_defaultCallbacks']['set']('formatInline:accept',_0xa2b066),this['_defaultCallbacks']['set']('formatInline:discard',_0xd847cf),this['_defaultCallbacks']['set']('formatInline:join',_0x3b029d),this['_defaultCallbacks']['set']('formatInline:chain',_0xd847cf),this['_defaultCallbacks']['set']('formatBlock:accept',_0xa2b066),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd847cf),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b029d),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd847cf),this['_defaultCallbacks']['set']('attribute:accept',_0xd847cf),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e0db4,_0x52f4c5)=>{if(!_0x52f4c5)return;const _0x40d0f0=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50f546=>{if(_0x52f4c5['key']==u)for(const _0x103163 of _0x2e0db4){const _0x5e1ac7=_0x103163['start']['nodeAfter'],_0x44c0f9=_0x52f4c5['oldValue'];_0x50f546['rename'](_0x5e1ac7,_0x44c0f9);}else{if(_0x40d0f0['_isBlockAttribute'](_0x52f4c5['key'])){for(const _0x1b48d1 of _0x2e0db4)void 0x0!==_0x52f4c5['oldValue']?_0x50f546['setAttribute'](_0x52f4c5['key'],_0x52f4c5['oldValue'],_0x1b48d1['start']['nodeAfter']):_0x50f546['removeAttribute'](_0x52f4c5['key'],_0x1b48d1['start']['nodeAfter']);}else{for(const _0x2a6218 of _0x2e0db4)_0x52f4c5['oldValue']?_0x50f546['setAttribute'](_0x52f4c5['key'],_0x52f4c5['oldValue'],_0x2a6218):_0x50f546['removeAttribute'](_0x52f4c5['key'],_0x2a6218);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3b029d);}}function Pt(_0x55087f,_0x452f29,_0x3ebe79){for(const _0xbd3203 of _0x452f29['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbd3203['root']==_0xbd3203)return!0x1;if(!_0x3ebe79['containsItem'](_0xbd3203))return!0x1;if(_0x55087f['isObject'](_0xbd3203)||_0x55087f['isLimit'](_0xbd3203))return!0x0;}return!0x1;}function Gt(_0xe29e96){return _0xe29e96['end']['parent']==_0xe29e96['start']['nodeAfter']&&_0xe29e96['end']['isAtStart'];}function Lt(_0x29dbfb,_0x5ad36f,_0x119020,_0x45de77){const _0x4ae031=_0x23b2f4=>!_0x23b2f4['item']['is']('$textProxy')&&!_0x45de77['isObject'](_0x23b2f4['item']),_0x44a829=_0x29dbfb['start']['getLastMatchingPosition'](_0x4ae031),_0x246406=_0x29dbfb['end']['getLastMatchingPosition'](_0x4ae031,{'direction':'backward'});return(!_0x29dbfb['start']['isEqual'](_0x44a829)||!_0x29dbfb['end']['isEqual'](_0x246406))&&(_0x44a829['isBefore'](_0x246406)?_0x119020['updateMarker'](_0x5ad36f,{'range':_0x119020['createRange'](_0x44a829,_0x246406)}):_0x119020['removeMarker'](_0x5ad36f),!0x0);}function Jt(_0xfa950){return _0x21fcb1(_0xfa950);}function Kt(_0x1aa491){const _0x1f541c=_0x1aa491['start']['nodeAfter'];return _0x1f541c&&_0x1f541c['is']('element');}function Ht(_0x1a75dc,_0x889c35){return null==_0x1a75dc['end']['nodeBefore']&&_0x1a75dc['end']['parent']==_0x1a75dc['start']['nodeAfter']?qt(_0x1a75dc['start']['nodeAfter'],_0x889c35):_0x1a75dc;}function qt(_0x541d60,_0x5b1248){const _0xb0cf1c=_0x5b1248['schema']['isObject'](_0x541d60)||_0x5b1248['schema']['isSelectable'](_0x541d60);return _0x5b1248['createRange'](_0x5b1248['createPositionAt'](_0x541d60,'before'),_0xb0cf1c?_0x5b1248['createPositionAfter'](_0x541d60):_0x5b1248['createPositionAt'](_0x541d60,'end'));}function zt(_0x297707,_0x36b017,_0x2f4573,_0x27d7fa){return!!Wt(_0x297707,_0x36b017)&&_0x2f4573['end']['isEqual'](_0x27d7fa['start']);}function Wt(_0x579a47,_0x181511){if(!_0x579a47['_isDataLoaded']||!_0x181511['_isDataLoaded'])return!0x1;const _0x497ac3=new Set(Object['keys'](_0x579a47['attributes'])),_0x21ad12=new Set(Object['keys'](_0x181511['attributes']));if(_0x497ac3['delete']('groupId'),_0x21ad12['delete']('groupId'),0x0==_0x497ac3['size']&&0x0==_0x21ad12['size'])return!0x0;if(_0x497ac3['size']!=_0x21ad12['size'])return!0x1;const _0x5909bc={..._0x579a47['attributes']},_0x2b59af={..._0x181511['attributes']};return delete _0x5909bc['groupId'],delete _0x2b59af['groupId'],JSON['stringify'](_0x5909bc)==JSON['stringify'](_0x2b59af);}function Qt(_0x5c5df8,_0x14fdce){const _0xf4cf51=Xt(_0x5c5df8['attributes']),_0x4ff6cc=Xt(_0x14fdce);if(!_0x5c5df8['_isDataLoaded'])return!0x1;for(const _0x2c6db7 of Object['keys'](_0x4ff6cc))if(!_0x35d3c5(_0xf4cf51[_0x2c6db7],_0x4ff6cc[_0x2c6db7]))return!0x1;return!0x0;}function Xt(_0x3a30f6){const _0x4b398d=Object['assign']({},_0x3a30f6);return delete _0x4b398d['skipNestingCheck'],delete _0x4b398d['tablePasteChainId'],_0x4b398d;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x3d99c5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4a3272,_0x7d2b29,_0x2619b7,_0x22193d){super(),this['model']=_0x7d2b29,this['view']=_0x2619b7,this['commentThreadController']=_0x22193d,this['_editor']=_0x4a3272,this['_acceptCommand']=_0x4a3272['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4a3272['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x353efb,_0x4bca06)=>_0x353efb||_0x4bca06),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b5de1=>_0x1b5de1&&this['_editor']['model']['canEditAt'](_0x7d2b29['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x503458=>_0x503458&&this['_editor']['model']['canEditAt'](_0x7d2b29['getRanges']())),this['_pendingAction']=null,_0x2619b7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2619b7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2619b7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2619b7,'change:isDirty',()=>{_0x2619b7['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 _0x149835=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x149835);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2baa4b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x161ac1,_0x2d9196,_0x418d78,_0x5b0eb2){super(_0x161ac1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xc3e34(_0x161ac1,c(_0x161ac1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2d9196['authoredAt']),this['bind']('authoredAt')['to'](_0x2d9196),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',_0x2d9196,'authoredAt',this,'descriptionParts',(_0x102aaf,_0x2dc7cc,_0x31d3a1)=>{const _0xed0e38=_0x31d3a1['map'](_0x46d1d3=>ls(_0x46d1d3['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x102aaf-0x1,_0x2d9196['author']['name'],_0x2dc7cc?_0x5b0eb2['formatDateTime'](_0x2dc7cc):'',new DOMParser()['parseFromString'](_0xed0e38,'text/html')['body']['textContent']]);}),this['focusables']=new _0x20fb58(),this['focusTracker']=new _0x1a4c5d(),this['keystrokes']=new _0x5eb6eb(),this['focusCycler']=new _0x366294({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x61daf3=>_0x61daf3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2d9196,this['_localUser']=_0x418d78,this['_config']=_0x5b0eb2,_0x5b0eb2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5f3251(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5db7ac}=this['_config'];this['commentsListView']=new _0x5db7ac(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',_0x4b5e65=>_0x4b5e65+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1a335b,_0x11eacd)=>_0x1a335b||!!_0x11eacd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x6d54a}=this['_config'],_0x373856=new _0x6d54a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x893ba=_0x373856['commentInputView'];return _0x373856['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x893ba,'value',(_0x4f3c9a,_0x21515d,_0x449f6a)=>!!_0x449f6a||_0x4f3c9a&&!_0x21515d),_0x893ba['on']('submit',(_0x3f2ca3,_0x5a7722)=>{this['fire']('addComment',_0x5a7722),_0x893ba['editor']['setData']('');}),_0x893ba['on']('cancel',()=>this['focus']()),_0x893ba['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x373856;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x21422a,_0x1cf241,_0x39087f,_0x35485a){super(_0x21422a,_0x1cf241,_0x39087f,_0x35485a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3562c2=>_0x3562c2&&_0x3562c2[0x0]?_0x3562c2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x19475b,_0x3cda3e)=>{let _0x1db3c8='';for(const _0x2f6aa8 of _0x19475b)_0x1db3c8+='<p>'+ls(_0x2f6aa8['content'],_0x2f6aa8['color'])+'</p>';return _0x3cda3e?_0x1db3c8:ti(_0x1db3c8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x35485a['SuggestionView'](_0x21422a,_0x1cf241,{'formatDateTime':_0x35485a['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 _0x857240=this['bindTemplate'],_0x5628fb=[this['suggestionView']];return this['commentsListView']&&_0x5628fb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5628fb['push'](this['commentThreadInputView']),_0x5628fb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x857240['if']('isActive','ck-suggestion-wrapper--active'),_0x857240['to']('type',_0x4fc6e0=>'ck-suggestion-'+_0x4fc6e0),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':_0x857240['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5628fb};}['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 _0x2baa4b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e4af5,_0x5895ec,_0x2c1efb){super(_0x2e4af5),this['_model']=_0x5895ec,this['_config']=_0x2c1efb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5895ec),this['acceptButton']=this['_createButton'](c(_0x2e4af5,'Accept\x20suggestion'),_0x48959a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2e4af5,'Discard\x20suggestion'),_0x2a4cef,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4112db(_0x2e4af5,_0x5895ec['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x20fb58([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1a4c5d(),this['keystrokes']=new _0x5eb6eb(),this['focusCycler']=new _0x366294({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x16e4cc=>_0x16e4cc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x328ea5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x328ea5['innerHTML']=this['description'],this['on']('change:description',(_0x4d5215,_0x2aac06,_0x37d989)=>{_0x328ea5['innerHTML']=_0x37d989;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5013f1=this['bindTemplate'],_0x2d9dc3=[{'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':_0x5013f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5013f1['to']('authoredAt',_0xad5d27=>this['_config']['formatDateTime'](_0xad5d27))}]}]},{'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']&&_0x2d9dc3['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':_0x2d9dc3}]};}['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'](_0x5f538f,_0x361ca0,_0xc77ccd,_0x1d43a6,_0xfec734){const _0x1dc707=new _0x4efd78(this['locale']);return _0x1dc707['set']({'label':_0x5f538f,'icon':_0x361ca0,'tooltip':!0x0,'tooltipPosition':_0xfec734}),_0x1dc707['extendTemplate']({'attributes':{'class':_0xc77ccd}}),_0x1dc707['on']('execute',()=>{this['fire'](_0x1d43a6,this['_model']['id']);}),_0x1dc707;}['_setupKeyboardNavigation'](){const _0x37ac26=this['element'];this['keystrokes']['listenTo'](_0x37ac26);for(const _0x260323 of this['focusables'])this['focusTracker']['add'](_0x260323['element']),this['keystrokes']['listenTo'](_0x260323['element']);this['keystrokes']['set']('enter',(_0x499813,_0xb13dfc)=>{_0x37ac26===_0x499813['target']&&(this['focusCycler']['focusFirst'](),_0xb13dfc());}),this['keystrokes']['set']('esc',(_0x13c6a7,_0x50780b)=>{_0x37ac26!==_0x13c6a7['target']&&(this['focus'](),_0x50780b());});}}class d extends _0x368c11{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x329083,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x126d13){super(_0x126d13),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x45acab=this['editor']['config'];_0x45acab['define']('trackChanges.SuggestionThreadView',fe),_0x45acab['define']('trackChanges.SuggestionView',we),_0x45acab['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x45acab['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d10ac,_0x29b17b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44a9fc,_0x238a80]of this['_handleControllerBuffer']){const _0x497b49=this['_suggestionToController']['has'](_0x44a9fc);_0x497b49||_0x238a80?_0x497b49&&_0x238a80&&this['_destroyController'](_0x44a9fc):this['_initializeController'](_0x44a9fc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d10ac,_0x29b17b);}['init'](){const _0x350dfc=this['editor'],_0x558ae9=_0x350dfc['plugins']['get']('TrackChangesEditing'),_0x14be24=_0x350dfc['plugins']['get']('Annotations'),_0x34c79f=_0x350dfc['plugins']['get']('EditorAnnotations'),_0x31c7d5=_0x350dfc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x34c79f['addSourceCollector'](()=>{const _0x19fa1d=[];for(const [_0x277c85,_0x508fd8]of Array['from'](this['_suggestionToController'])){const _0x5b9063=_0x277c85['getAllAdjacentSuggestions'](),_0x30a7ac=[];for(const _0xf60c71 of _0x5b9063){if(!_0xf60c71['isInContent'])continue;if(_0xf60c71['isMultiRange']){_0x30a7ac['push'](..._0xf60c71['getRanges']());continue;}const _0x39d4a0=_0xf60c71['getFirstRange']();if(_0x30a7ac['length']>0x0){const _0x3ffb6f=_0x30a7ac[0x0]['getJoined'](_0x39d4a0);if(_0x3ffb6f){_0x30a7ac[0x0]=_0x3ffb6f;continue;}}_0x30a7ac['push'](_0x39d4a0);}_0x19fa1d['push']([_0x508fd8['view'],_0x30a7ac]);}return _0x19fa1d;}),this['listenTo'](_0x558ae9,'suggestionLoaded',(_0x39aeea,_0xdccbd5)=>{this['listenTo'](_0xdccbd5,'change:previous',(_0x551c9d,_0x2249ff,_0x46449c,_0xde4259)=>{_0xdccbd5['isInContent']&&(null==_0x46449c?(this['_updateController'](_0xde4259['head']),this['_handleSuggestionControllerDelayed'](_0xdccbd5,!0x1)):(this['_updateController'](_0x46449c['head']),null==_0xde4259&&this['_handleSuggestionControllerDelayed'](_0xdccbd5,!0x0)));}),null!==_0xdccbd5['previous']?this['_updateController'](_0xdccbd5['head']):this['_handleSuggestionControllerDelayed'](_0xdccbd5,!0x1);}),this['listenTo'](_0x558ae9,'suggestionUnloaded',(_0x3119e9,_0x427e75,_0x413ce3)=>{this['stopListening'](_0x427e75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x427e75),this['_suggestionToController']['has'](_0x427e75)&&this['_destroyController'](_0x427e75),_0x413ce3&&this['_updateController'](_0x413ce3['head']);}),this['listenTo'](_0x558ae9,'suggestionChanged',(_0x391dc1,_0x49ed0f)=>{this['_updateController'](_0x49ed0f);}),this['listenTo'](_0x14be24,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x31c7d5,'addComment',(_0x493a70,{threadId:_0x381fda,isFromAdapter:_0x4a0e82})=>{if(_0x4a0e82||!_0x558ae9['hasSuggestion'](_0x381fda))return;const _0x4d0023=_0x558ae9['getSuggestion'](_0x381fda);this['_suggestionToController']['get'](_0x4d0023)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25058f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x358cf3;for(const _0x1874f8 in _0x25058f){const _0xc0bb7e=_0x1874f8,_0xfdc385=_0x25058f[_0xc0bb7e];if('trackChangesLicenseKeyValid'==_0xfdc385||'trackChangesLicenseKeyInvalid'==_0xfdc385||'trackChangesLicenseKeyExpired'==_0xfdc385||'trackChangesLicenseKeyDomainLimit'==_0xfdc385||'trackChangesLicenseKeyNotAllowed'==_0xfdc385||'trackChangesLicenseKeyEvaluationLimit'==_0xfdc385||'trackChangesLicenseKeyTrialLimit'==_0xfdc385||'trackChangesLicenseKeyUsageLimit'==_0xfdc385){delete _0x25058f[_0xc0bb7e],_0x358cf3=_0xfdc385,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x358cf3&&_0x25058f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x358cf3&&_0x25058f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x358cf3&&_0x25058f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1aa545=this['editor']['plugins']['get']('Annotations'),_0x2d336e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40e142=Array['from'](_0x1aa545['activeAnnotations'],_0x2942b6=>_0x2942b6['innerView'])['filter'](_0xaf79ce=>this['_viewToController']['has'](_0xaf79ce)),_0x40e6cb=[];for(const _0x378315 of _0x40e142){const _0x1d2c36=this['_viewToController']['get'](_0x378315)['model']['getAllAdjacentSuggestions']();_0x40e6cb['push'](..._0x1d2c36['reduce']((_0x161c3e,_0x22ef32)=>[..._0x161c3e,..._0x22ef32['getMarkerNames']()],[]));}_0x2d336e['activeMarkers']=_0x40e6cb;}['_addUIComponentsToFactory'](){const _0x51ab43=this['editor'],_0x1562e0=_0x51ab43['locale'],_0x368caf=c(_0x1562e0,'Track\x20changes'),_0x10f91d=new _0x233d6f([{'type':'switchbutton','model':new _0x45532b({'withText':!0x0,'isToggleable':!0x0,'label':_0x368caf,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x51ab43['plugins']['has']('TrackChangesPreview')&&_0x10f91d['addMany']([{'type':'separator'},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2b188c of _0x10f91d)if(ke(_0x2b188c)){const _0x270d71=_0x51ab43['commands']['get'](_0x2b188c['model']['commandName']);_0x2b188c['model']['bind']('isOn','isEnabled')['to'](_0x270d71,'value','isEnabled');}_0x51ab43['ui']['componentFactory']['add']('trackChanges',_0x3fac38=>this['_createToolbarButton'](_0x3fac38,_0x10f91d,_0x368caf)),_0x51ab43['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5cd0fa=>this['_createMenuBarMenu'](_0x5cd0fa,_0x10f91d,_0x368caf));}['_createToolbarButton'](_0x5dd251,_0x2267cb,_0x584cd3){const _0xb2c09c=_0x4315a1(_0x5dd251,_0x936d1),_0x108f23=this['editor']['commands']['get']('trackChanges');_0xb2c09c['buttonView']['set']({'tooltip':_0x584cd3,'label':_0x584cd3,'icon':_0x5b2a51}),_0xb2c09c['buttonView']['bind']('isOn')['to'](_0x108f23,'value'),_0xb2c09c['buttonView']['on']('execute',()=>{_0x108f23['execute'](),this['editor']['editing']['view']['focus']();}),_0x4a36cd(_0xb2c09c,_0x2267cb,{'role':'menu'});const _0x1f0711=[];for(const _0x4671a4 of _0x2267cb)ke(_0x4671a4)&&_0x1f0711['push'](this['editor']['commands']['get'](_0x4671a4['model']['commandName']));const _0x1646db=_0xb2c09c['buttonView'];return _0x1646db['actionView']['unbind']('isEnabled'),_0x1646db['arrowView']['unbind']('isEnabled'),_0x1646db['actionView']['bind']('isEnabled')['to'](_0x108f23,'isEnabled'),_0x1646db['arrowView']['bind']('isEnabled')['toMany'](_0x1f0711,'isEnabled',(..._0x17d55a)=>_0x17d55a['some'](_0x51f682=>_0x51f682)),_0xb2c09c['on']('execute',_0x22a5e1=>{this['editor']['execute'](_0x22a5e1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xb2c09c;}['_createMenuBarMenu'](_0x4219ff,_0x38decf,_0x527349){const _0x870a2f=new _0x4e63f9(_0x4219ff),_0x2335a0=this['editor']['commands']['get']('trackChanges');_0x870a2f['buttonView']['set']({'label':_0x527349,'icon':_0x5b2a51});const _0x55e025=new _0x23aa5e(_0x4219ff);for(const _0xe11c13 of _0x38decf){if('separator'==_0xe11c13['type']){_0x55e025['items']['add'](new _0x34a850(_0x4219ff));continue;}const _0x353a7d=new _0x2a8dc1(_0x4219ff,_0x870a2f),_0x49b320=new _0x1b9a32(_0x4219ff),_0x545e9d=_0xe11c13['model'];_0x49b320['bind'](...Object['keys'](_0x545e9d))['to'](_0x545e9d),_0x49b320['delegate']('execute')['to'](_0x870a2f),_0x49b320['on']('execute',()=>{this['editor']['execute'](_0x545e9d['commandName']),this['editor']['editing']['view']['focus']();}),_0x353a7d['children']['add'](_0x49b320),_0x55e025['items']['add'](_0x353a7d);}return _0x870a2f['bind']('isEnabled')['to'](_0x2335a0,'isEnabled'),_0x870a2f['panelView']['children']['add'](_0x55e025),_0x870a2f;}['_initializeController'](_0x18275b){const _0x1d1dbb=this['editor'],_0x18ca0d=_0x1d1dbb['config'],_0x44b4d6=_0x1d1dbb['plugins']['get']('Annotations'),_0xfde516=_0x1d1dbb['plugins']['get']('CommentsRepository'),_0x419a79=_0x1d1dbb['plugins']['get']('EditorAnnotations'),_0x2d628e=_0x1d1dbb['plugins']['get'](_0x329083)['me'],_0x390b57=_0x18ca0d['get']('trackChanges')['SuggestionThreadView'],_0x51c092=_0x18ca0d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2cf3b8,CommentThreadInputView:_0x698e37}=_0x1d1dbb['plugins']['get']('CommentsUI');let _0x40fdfe,_0x57711e,_0x4c7821;this['_annotationViews']['has'](_0x18275b['id'])?(_0x57711e=this['_annotationViews']['get'](_0x18275b['id']),_0x40fdfe=_0x57711e['mainView']):(_0x40fdfe=new _0x390b57(_0x1d1dbb['locale'],_0x18275b,_0x2d628e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x18ca0d['get']('comments.editorConfig'),'licenseKey':_0x18ca0d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x18ca0d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18ca0d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18ca0d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x187b0c(_0x18ca0d['get']('locale')),'CommentView':_0x18ca0d['get']('comments')['CommentView'],'CommentsListView':_0x2cf3b8,'CommentThreadInputView':_0x698e37,'SuggestionView':_0x51c092}),_0x40fdfe['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d1dbb['editing']['view']['focus']();}),_0x40fdfe['suggestionView']['discardButton']['on']('execute',()=>{_0x1d1dbb['editing']['view']['focus']();}),_0x57711e=_0x44b4d6['createAnnotationView'](this['editor']['locale'],_0x40fdfe),_0x57711e['bind']('isDirty')['to'](_0x40fdfe,'isDirty'),_0x57711e['bind']('length')['to'](_0x40fdfe),_0x57711e['bind']('type')['to'](_0x40fdfe,'type',_0xb2659e=>'suggestion-'+_0xb2659e),_0x40fdfe['on']('escape',()=>{_0x4c7821['fire']('escape');}),this['_annotationViews']['set'](_0x18275b['id'],_0x57711e));const _0x447ef1=_0xfde516['createCommentThreadController'](_0x18275b['commentThread'],_0x40fdfe),_0x25e300=new pe(_0x1d1dbb,_0x18275b,_0x40fdfe,_0x447ef1),_0x1f62ba=_0x18275b['getAllAdjacentSuggestions']()['filter'](_0x48a458=>_0x48a458['isInContent']);_0x40fdfe['descriptionParts']=_0x1d1dbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f62ba),this['_suggestionToController']['set'](_0x18275b,_0x25e300),this['_viewToController']['set'](_0x40fdfe,_0x25e300),_0x4c7821=_0x44b4d6['createAnnotation']({'view':_0x57711e,'target':()=>{const _0xce4f1a=[],_0x26c342=_0x18275b['getAllAdjacentSuggestions']()['filter'](_0x1804f2=>_0x1804f2['isInContent']);for(const _0x25dd4e of _0x26c342)_0xce4f1a['push'](..._0x25dd4e['getMarkers']());return _0x9fb501(_0x1d1dbb['editing'],_0xce4f1a);},'type':()=>'suggestion-'+_0x25e300['view']['type']}),_0xfde516['_bindAnnotationToEditors'](_0x40fdfe,_0x4c7821),_0x44b4d6['add'](_0x4c7821),_0x419a79['registerAnnotation'](_0x4c7821);}['_destroyController'](_0x32bc88){const _0x22519d=this['editor']['plugins']['get']('CommentsRepository'),_0x3cf10d=this['editor']['plugins']['get']('Annotations'),_0x3a1d2f=this['_suggestionToController']['get'](_0x32bc88),_0x3ceb37=_0x3a1d2f['view'],_0x140df1=_0x3cf10d['getByInnerView'](_0x3ceb37);_0x22519d['_unbindEditors'](_0x3ceb37),_0x140df1&&_0x3cf10d['remove'](_0x140df1),this['_suggestionToController']['delete'](_0x32bc88),this['_viewToController']['delete'](_0x3ceb37),_0x3a1d2f['destroy']();}['_updateController'](_0x24f78f){if(!_0x24f78f['isInContent']||!this['_suggestionToController']['has'](_0x24f78f))return;const _0x42a97e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33aac3=this['_suggestionToController']['get'](_0x24f78f),_0x4a6972=_0x24f78f['getAllAdjacentSuggestions']();_0x33aac3['view']['descriptionParts']=_0x42a97e['descriptionFactory']['getDescriptions'](_0x4a6972);}['destroy'](){for(const _0x45c3e2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x45c3e2);for(const _0xb7cd5d of this['_annotationViews']['values']())_0xb7cd5d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3e93bd){return'model'in _0x3e93bd;}class k extends _0x368c11{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4504a8){this['editor']['plugins']['get'](p)['adapter']=_0x4504a8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x202cfe){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x202cfe);}['getSuggestions']({skipNotAttached:_0x21bd85=!0x1,toJSON:_0x2e9734=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x21bd85,'toJSON':_0x2e9734});}['getSuggestion'](_0x3ed92c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3ed92c);}}const w=['Pagination'];class T extends _0x368c11{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a2f52=this['editor'];if(_0x2a2f52['config']['define']('trackChangesData.editorCreator',_0x48cf76=>{const _0x5fe0ba=_0x2a2f52['model']['document']['getRootNames']()['reduce']((_0xd01fd4,_0x2456f7)=>(_0xd01fd4[_0x2456f7]='',_0xd01fd4),{});return _0x2a2f52['constructor']['create'](_0x5fe0ba,_0x48cf76);}),'function'!=typeof _0x2a2f52['config']['get']('trackChangesData')['editorCreator'])throw new _0x921117('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x18cfcb){return N(this['editor'],!0x0,_0x18cfcb);}['getDataWithDiscardedSuggestions'](_0xb615cb){return N(this['editor'],!0x1,_0xb615cb);}}class D extends _0x368c11{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a527a){function _0x4591cf(_0x1078fb){return _0x1078fb['map'](_0x1a4614=>String['fromCharCode'](_0x1a4614))['join']('');}super(_0x5a527a),this['result']='end',_0x5a527a[_0x4591cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4591cf([0x76,0x69,0x65,0x77])][_0x4591cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4591cf([0x61,0x75,0x74,0x6f]),_0x5a527a[_0x4591cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4591cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4591cf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4591cf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4591cf([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 Fe(_0x1226a3){return void 0x0!==_0x1226a3['getRootsAttributes'];}async function N(_0x3ed57d,_0x531b2d,_0x578bdf){const _0x293406=_0x5adfcb(_0x3ed57d,w);_0x293406['plugins']['push'](p,D),_0x293406['rootsAttributes']=Fe(_0x3ed57d)?_0x3ed57d['getRootsAttributes']():void 0x0;const _0x3c0082=document['createDocumentFragment'](),_0x20911e=_0x3ed57d['config']['get']('trackChangesData')['editorCreator'],_0x5368f6=await _0x20911e(_0x293406,()=>function(_0x2a2e2e){const _0x2ff742=document['createElement']('div');return _0x2a2e2e['appendChild'](_0x2ff742),_0x2ff742;}(_0x3c0082));!function(_0x335295,_0x43a663){const _0x2eed62=_0x335295['model']['document']['getRootNames']()['reduce']((_0x3762f0,_0x544ad1)=>(_0x3762f0[_0x544ad1]=_0x335295['data']['get']({'rootName':_0x544ad1}),_0x3762f0),{}),_0x2b1160=_0x335295['plugins']['get']('Users')['users']['map'](_0x3fb90c=>({'id':_0x3fb90c['id'],'name':_0x3fb90c['name']})),_0x2be34a=_0x335295['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26144b=_0x335295['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x424586=_0x43a663['plugins']['get']('Users'),_0x99fe40=_0x43a663['plugins']['get']('TrackChangesEditing'),_0x3d40fe=_0x43a663['plugins']['get']('CommentsRepository');for(const _0x4ebc09 of _0x3d40fe['getCommentThreads']())_0x4ebc09['remove']();for(const _0x43f5c8 of _0x2b1160)_0x424586['getUser'](_0x43f5c8['id'])||_0x424586['addUser'](_0x43f5c8);_0x424586['me']||_0x424586['useAnonymousUser']();for(const _0x38c6b1 of _0x26144b)_0x3d40fe['addCommentThread'](_0x38c6b1);for(const _0x39def2 of _0x2be34a)_0x99fe40['addSuggestionData'](_0x39def2);_0x43a663['data']['set'](_0x2eed62);}(_0x3ed57d,_0x5368f6),_0x5368f6['execute'](_0x531b2d?'acceptAllSuggestions':'discardAllSuggestions');const _0xcd5fb2=Fe(_0x5368f6)?_0x5368f6['getFullData'](_0x578bdf):_0x5368f6['data']['get'](_0x578bdf);return await _0x5368f6['destroy'](),_0xcd5fb2;}class Me extends _0x2baa4b{['options'];constructor(_0x1a7ac1,_0x445e6d){super(_0x1a7ac1),this['options']=_0x445e6d,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'](_0x561199,_0x180ff7){if(!this['element'])return;const _0x182a24=[];for(const [_0x567f5e,_0x16acf9]of _0x561199){const _0x512450=document['createElement']('div');_0x512450['setAttribute']('data-ck-root-name',_0x567f5e),_0x512450['className']=_0x16acf9['classes']+'\x20ck-track-changes-preview__root-container',_0x512450['innerHTML']=_0x16acf9['content'],_0x182a24['push'](_0x512450);}_0x180ff7(this['element'],_0x182a24),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x46c601{constructor(_0x56f716){super(_0x56f716),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x92830d=this['editor'],_0x3b6dc1=_0x92830d['locale'],_0x145926=_0x92830d['plugins']['get']('Dialog');let _0x453813;const _0x4bb6f4=function(_0x4c62bf){const _0x2cc911={};if('editables'in _0x4c62bf['ui']['view']){for(const [_0x3c8294,_0x3c95e4]of Object['entries'](_0x4c62bf['ui']['view']['editables']))_0x2cc911[_0x3c8294]=_0x3c95e4['element'];}else _0x2cc911[_0x4c62bf['model']['document']['getRootNames']()[0x0]]=_0x4c62bf['ui']['view']['editable']['element'];return _0x2cc911;}(_0x92830d),_0x5b46af=function(_0x20dcaf){let _0x4cbbd7=0x0;for(const _0x18edef of Object['values'](_0x20dcaf))_0x4cbbd7=Math['max'](_0x4cbbd7,_0x18edef['getBoundingClientRect']()['width']);let _0x88627e=0x0;for(const _0x49e442 of Object['values'](_0x20dcaf))_0x88627e+=_0x49e442['getBoundingClientRect']()['height'];const _0x22d56e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x56e9f3=Math['min'](_0x88627e,_0x22d56e);return{'width':_0x4cbbd7,'height':_0x56e9f3};}(_0x4bb6f4);_0x145926['show']({'id':'finalContentPreview','title':c(_0x3b6dc1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3b6dc1,{'dialogRects':_0x5b46af}),'onHide':()=>{_0x453813['detachFromDom']();},'onShow':()=>{_0x92830d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x48c730=>{const _0x54b48a=this['_standarizeRootsData'](_0x48c730,_0x92830d,_0x4bb6f4);_0x145926['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54b48a,_0x92830d['config']['get']('trackChanges.preview.renderFunction'));}),_0x453813=new _0x287a96(_0x3b6dc1,[_0x145926['view']]),_0x453813['attachToDom'](),_0x453813['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x92830d['once']('destroy',()=>{_0x453813['detachFromDom']();});const _0x4af3df=_0x145926['view']['headerView']['class'];_0x145926['view']['headerView']['class']=_0x4af3df?_0x4af3df+'\x20ck-reset_all':'ck-reset_all',_0x145926['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x145926['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x244edf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x59ac7a=_0x244edf['previewMode'],_0x45178a={};if('$labels'===_0x59ac7a){for(const _0x40c1a1 of _0x244edf['getMergeFieldsIds']())_0x45178a[_0x40c1a1]=_0x244edf['getLabel'](_0x40c1a1)||_0x40c1a1;}else{const _0x1bcbef='$defaultValues'===_0x59ac7a?_0x244edf['getDefaultValues']():_0x244edf['getDataSetValues'](_0x59ac7a,!0x0);for(const _0x937c0 of Object['entries'](_0x1bcbef)){const [_0x300556,_0x55ecce]=_0x937c0;_0x45178a[_0x300556]=null!==_0x55ecce?_0x55ecce:_0x244edf['getLabel'](_0x300556)||_0x300556;}}return{'mergeFieldsData':_0x45178a};}['_standarizeRootsData'](_0x10bd2e,_0x3809e,_0x68c4ea){let _0x2edaa7;if('string'==typeof _0x10bd2e){const _0x2b25c9=_0x3809e['model']['document']['getRootNames']()[0x0];_0x2edaa7={[_0x2b25c9]:_0x10bd2e};}else _0x2edaa7=_0x10bd2e;const _0x59597b=this['_fixMediaEmbeds'](_0x2edaa7,_0x3809e),_0x2b0f8e=function(_0x5b3056,_0xc52f6){for(const [_0x441ca1,_0x2f9a0c]of _0x5b3056)_0x2f9a0c['classes']=_0xc52f6[_0x441ca1]['classList']['value']['replace']('ck-focused','');return _0x5b3056;}(this['_sortRoots'](_0x3809e)['reduce']((_0x148f54,_0x52b6bf)=>(_0x148f54['push']([_0x52b6bf,{'content':_0x59597b[_0x52b6bf],'classes':''}]),_0x148f54),[]),_0x68c4ea);return _0x2b0f8e;}['_fixMediaEmbeds'](_0x5a31ed,_0x18a319){if(!_0x18a319['plugins']['has']('MediaEmbedEditing'))return _0x5a31ed;const _0xf45f45=_0x18a319['plugins']['get']('MediaEmbedEditing');for(const [_0x333686,_0x3fd0d5]of Object['entries'](_0x5a31ed)){const _0x203b9d=document['createElement']('div');_0x203b9d['innerHTML']=_0x3fd0d5,(_0x203b9d['querySelectorAll']('figure.media')['forEach'](_0x420c57=>{const _0x23c074=_0x420c57['querySelector']('oembed');if(_0x23c074){const _0x4ad22a=_0x23c074['getAttribute']('url');if(_0x4ad22a){const _0x38463f=_0xf45f45['registry']['getMediaViewElement'](new _0x2e2cfe(_0x18a319['editing']['view']['document']),_0x4ad22a,{'elementName':'','renderForEditingView':!0x0}),_0x132d25=document['createElement']('div');_0x132d25['classList']['add']('ck-media__wrapper'),_0x38463f['render'](_0x132d25,_0x18a319['editing']['view']['domConverter']),_0x23c074['replaceWith'](_0x132d25);}}}),_0x5a31ed[_0x333686]=_0x203b9d['innerHTML']);}return _0x5a31ed;}['_sortRoots'](_0x41ca57){if(!function(_0x5ef9bf){return void 0x0!==_0x5ef9bf['getRootsAttributes'];}(_0x41ca57))return _0x41ca57['model']['document']['getRootNames']();const _0x2dae39=[],_0x483b6a=new Map();for(const _0x2014f6 of _0x41ca57['model']['document']['getRootNames']()){const _0x198db6=_0x41ca57['editing']['view']['getDomRoot'](_0x2014f6)['getClientRects']()['item'](0x0);_0x2dae39['push'](_0x2014f6),_0x483b6a['set'](_0x2014f6,_0x198db6);}return _0x2dae39['sort']((_0x5e11bd,_0x338888)=>{const _0xffd6f9=_0x483b6a['get'](_0x5e11bd),_0x52518e=_0x483b6a['get'](_0x338888);return _0xffd6f9['y']-_0x52518e['y']||_0xffd6f9['x']-_0x52518e['x'];}),_0x2dae39;}}class te extends _0x368c11{static get['requires'](){return[T,_0x165194];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x397215){super(_0x397215),_0x397215['commands']['add']('previewFinalContent',new re(this['editor'])),_0x397215['config']['define']('trackChanges.preview.renderFunction',(_0x134732,_0x372213)=>{for(const _0x47ad76 of _0x372213)_0x134732['appendChild'](_0x47ad76);});}}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};