@ckeditor/ckeditor5-track-changes 45.1.0-alpha.0 → 45.1.0-alpha.2

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 (226) 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/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +1 -1
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. 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 _0x2cff90,Plugin as _0x5c587b,PendingActions as _0xaf915d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x152d77,ObservableMixin as _0x4a96fd,uid as _0x2565c0,priorities as _0x1896ea,insertToPriorityArray as _0x49a35e,toArray as _0x17eaef,logWarning as _0x46eb67,getEnvKeystrokeText as _0x3e0024,FocusTracker as _0x283f73,KeystrokeHandler as _0x274642,Collection as _0x1b1e11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xdde516,IconCancel as _0x2f3378,IconTrackChanges as _0xdf51b8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5dc65d,View as _0x2475f2,ViewCollection as _0x54f94d,FocusCycler as _0x5b8716,ViewModel as _0x2e09f9,createDropdown as _0x508bcb,SplitButtonView as _0x5139dc,addListToDropdown as _0xe1ca2d,MenuBarMenuView as _0xf0a468,MenuBarMenuListView as _0x243af0,ListSeparatorView as _0x3bf768,MenuBarMenuListItemView as _0x9d1ca6,MenuBarMenuListItemButtonView as _0x74500b,BodyCollection as _0x26a838,Dialog as _0xcefc8d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4ad932,hashObject as _0x681558,surroundingMarkersDetector as _0x391ca5,FOCUS_ANNOTATION_KEYSTROKE as _0x2ae37a,AriaDescriptionView as _0x2b609f,setupThreadKeyboardNavigation as _0x5a3c9a,trimHtml as ti,UserView as _0x4fbc1c,LateFocusButtonView as _0x36278a,getDateTimeFormatter as _0x194c34,getAllMarkersDomElementsSorted as _0x36e74e,sanitizeEditorConfig as _0x3b7191}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3032e9,LiveRange as _0x4ce525,LivePosition as _0x8e442d,DowncastWriter as _0x4121d4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x32595d,toWidget as _0x3dc284}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x520eaa,set as _0x17fc1a,isEqual as _0x2bdafa,unset as _0x5704cb,omit as Ft}from'es-toolkit/compat';import{Delete as _0x323d35,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4acdbc}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4a7527}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2cff90{['_enabledCommands'];constructor(_0x43c2e4,_0x40d68b){super(_0x43c2e4),this['_enabledCommands']=_0x40d68b,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 _0x559a38 of this['editor']['commands']['commands']())_0x559a38['affectsData']&&!this['_enabledCommands']['has'](_0x559a38)&&_0x559a38['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x262321 of this['editor']['commands']['commands']())_0x262321['affectsData']&&!this['_enabledCommands']['has'](_0x262321)&&_0x262321['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x2cff90{['_suggestions'];constructor(_0x2325b8,_0x5c302a){super(_0x2325b8),this['_suggestions']=_0x5c302a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x27e512){const _0x16f565=this['_suggestions']['get'](_0x27e512);if(!_0x16f565)throw new _0x152d77('track-changes-accept-suggestion-not-found',this);const _0x5cc717=_0x16f565['getRanges']();this['editor']['model']['canEditAt'](_0x5cc717)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x16f565);}}class O extends _0x2cff90{['_suggestions'];constructor(_0x5c5d85,_0x27f8fd){super(_0x5c5d85),this['_suggestions']=_0x27f8fd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xcdd714){const _0x2a9fb4=this['_suggestions']['get'](_0xcdd714);if(!_0x2a9fb4)throw new _0x152d77('track-changes-discard-suggestion-not-found',this);const _0x113afd=_0x2a9fb4['getRanges']();this['editor']['model']['canEditAt'](_0x113afd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a9fb4);}}function ls(_0x286e3b,_0x1df652){let _0x4e3f4d='';return _0x4e3f4d+=_0x286e3b['split']('*')['map']((_0x29d972,_0x121df2)=>_0x121df2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x29d972)+'</span>':nn(_0x29d972))['join'](''),_0x1df652&&(_0x4e3f4d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1df652['value']+'\x22\x20title=\x22'+_0x1df652['title']+'\x22></span>'),_0x4e3f4d;}function nn(_0x323026){const _0x23a490=document['createElement']('span');return _0x23a490['innerText']=_0x323026,_0x23a490['innerHTML'];}function ts(_0x41b3a7){return _0x41b3a7['sort']((_0x27fa1e,_0x9c4fd5)=>'deletion'==_0x27fa1e['type']&&'deletion'!=_0x9c4fd5['type']?-0x1:'deletion'!=_0x27fa1e['type']&&'deletion'==_0x9c4fd5['type']?0x1:0x0);}function to(_0x11f4ef,_0x1e9d7e){let _0x1dda20,_0x4c414c=0x0;const _0x1c4d18=[],_0x1aa3ce=_0x1e9d7e['schema'];for(;_0x4c414c<_0x11f4ef['length'];){const _0x42f9ed=_0x11f4ef[_0x4c414c],_0x3125a3=_0x11f4ef[_0x4c414c+0x1];_0x1dda20||(_0x1dda20=_0x1e9d7e['createPositionBefore'](_0x42f9ed)),on(_0x1e9d7e,_0x42f9ed,_0x3125a3)||(_0x1c4d18['push'](_0x1e9d7e['createRange'](_0x1dda20,_0x1aa3ce['isObject'](_0x42f9ed)?_0x1e9d7e['createPositionAfter'](_0x42f9ed):_0x1e9d7e['createPositionAt'](_0x42f9ed,'end'))),_0x1dda20=null),_0x4c414c++;}return _0x1c4d18;}function on(_0xe918b,_0x3eb037,_0x5d326f){if(!_0x5d326f)return!0x1;const _0x5bb374=_0xe918b['createPositionAfter'](_0x3eb037),_0x262ea9=_0xe918b['createPositionBefore'](_0x5d326f);return _0x5bb374['isTouching'](_0x262ea9);}function rs(_0xbacc7f,_0x56dc89,_0x22fb10){for(;_0x22fb10['length'];){const _0xabd49f=_0x22fb10['splice'](0x0,0x64);_0xbacc7f['change'](()=>{for(const _0x14db05 of _0xabd49f)_0x14db05['isInContent']&&_0x56dc89['execute'](_0x14db05['id']);});}}class R extends _0x2cff90{['_command'];['_suggestions'];constructor(_0x33cf40,_0x1e6e96,_0x1b8b87){super(_0x33cf40),this['_command']=_0x1e6e96,this['_suggestions']=_0x1b8b87,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x12b588=Array['from'](this['_suggestions']['values']())['some'](_0x23a735=>_0x23a735['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x12b588;}['execute'](){const _0x100410=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3dfb93 of _0x100410){const _0x31f0ce=_0x3dfb93['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31f0ce))return;}rs(this['editor']['model'],this['_command'],_0x100410);}}class E extends _0x2cff90{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x58b553,_0x2805d8,_0x383e0a){super(_0x58b553),this['_command']=_0x2805d8,this['_suggestions']=_0x383e0a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x129ca1=this['editor']['model']['document']['selection'],_0x25a9ca=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5ca95a,_0x34be74){const _0x50a7bf=Array['from'](_0x5ca95a['getRanges']()),_0x21d83f=new Set();for(const _0x4d4a2f of _0x34be74)if(_0x4d4a2f['isInContent']){for(const _0x4c1a41 of _0x50a7bf)for(const _0x28ed36 of _0x4d4a2f['getRanges']())(_0x4c1a41['isIntersecting'](_0x28ed36)||_0x5ca95a['isCollapsed']&&!_0x4d4a2f['isMultiRange']&&_0x4d4a2f['next']&&_0x28ed36['end']['isTouching'](_0x4c1a41['start']))&&_0x21d83f['add'](_0x4d4a2f);}return _0x21d83f;}(_0x129ca1,_0x25a9ca),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x51891d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x18f548 of _0x51891d){const _0x3f23c8=_0x18f548['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f23c8))return;}rs(this['editor']['model'],this['_command'],_0x51891d);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x4a96fd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9e6764,_0x48b457){super(),this['id']=_0x48b457['id'],this['type']=_0x48b457['type'],this['subType']=_0x48b457['subType']||null,this['author']=_0x48b457['author'],this['creator']=_0x48b457['creator']||_0x48b457['author'],this['isExternal']=Boolean(_0x48b457['attributes']&&_0x48b457['attributes']['@external']),this['data']=null,this['_model']=_0x9e6764,this['_onAccept']=_0x48b457['onAccept'],this['_onDiscard']=_0x48b457['onDiscard'],this['_onAttributesChange']=_0x48b457['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x48b457['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 _0x5af794=this;for(;_0x5af794['previous'];)_0x5af794=_0x5af794['previous'];return _0x5af794;}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'](_0x6ccea1){this['_markerNames']['add'](_0x6ccea1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x47fe54=>this['_model']['markers']['get'](_0x47fe54))['filter'](_0x3b9922=>_0x3b9922);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1fb4cd=>{for(const _0x151a19 of this['getMarkers']())_0x1fb4cd['removeMarker'](_0x151a19);}),this['_markerNames']['clear']();}['removeMarker'](_0x576b27){this['_model']['change'](_0x24f324=>{_0x24f324['removeMarker'](_0x576b27);}),this['_markerNames']['delete'](_0x576b27);}['addRange'](_0x35bf69){const _0x3e3905='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3e3905),this['_model']['change'](_0x38bbd0=>{_0x38bbd0['addMarker'](_0x3e3905,{'range':_0x35bf69,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x404e6d){for(const _0x8b2d4e of this['getRanges']())if(_0x8b2d4e['isIntersecting'](_0x404e6d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x212a9c=>_0x212a9c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42c1c7,_0x351914)=>[..._0x42c1c7,..._0x351914['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd022a0=this['getRanges']();if(0x1!=_0xd022a0['length'])return null;const _0x3a6b9b=_0xd022a0[0x0],_0xae67b6=_0x3a6b9b['start']['nodeAfter'],_0x417e69=_0x3a6b9b['end']['nodeBefore'];return _0xae67b6 instanceof _0x3032e9?_0xae67b6!=_0x417e69?null:_0xae67b6: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 _0x355e6a=[];let _0x286383=this['head'];for(;_0x286383;)_0x355e6a['push'](_0x286383),_0x286383=_0x286383['next'];return _0x355e6a;}['setAttribute'](_0xcc4df3,_0x21c046){const _0x9573fa=_0x520eaa(this['attributes']);_0x17fc1a(_0x9573fa,_0xcc4df3,_0x21c046),_0x2bdafa(_0x9573fa,this['attributes'])||(this['attributes']=_0x9573fa,this['_onAttributesChange'](_0x9573fa));}['removeAttribute'](_0x470174){const _0x5a4823=_0x520eaa(this['attributes']);_0x5704cb(_0x5a4823,_0x470174),_0x2bdafa(_0x5a4823,this['attributes'])||(this['attributes']=_0x5a4823,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 _0x2565c0()['substr'](0x1,0x5);}}function c(_0x2776b5,_0x2e261c,_0x2dead5){const _0x530d51=_0x2776b5['t'],t=_0x2776b5['t'];switch(_0x2e261c){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',_0x2dead5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2dead5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2dead5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2dead5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2dead5);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',_0x2dead5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2dead5);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',_0x2dead5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2dead5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2dead5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2dead5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2dead5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2dead5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2dead5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2dead5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2dead5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2dead5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2dead5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2dead5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2dead5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2dead5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2dead5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2dead5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2dead5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2dead5);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'},_0x2dead5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2dead5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2dead5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2dead5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2dead5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2dead5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2dead5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2dead5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2dead5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2dead5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2dead5);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'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2dead5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2dead5);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 _0x530d51({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2dead5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x530d51({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2dead5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2dead5);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'},_0x2dead5);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'},_0x2dead5);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'},_0x2dead5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2e261c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x20b012,_0x169ea9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x20b012,this['_locale']=_0x169ea9;}['getDescriptions'](_0x4a3f4d){const _0x47a707=[],_0x10a8d4=new Set(),_0x5408c2=new Set();for(let _0x36b415=0x0;_0x36b415<_0x4a3f4d['length'];_0x36b415++){const _0x2c9eee=_0x4a3f4d[_0x36b415];if(!_0x2c9eee['isInContent'])continue;const _0x45c549=this['_handleCustomCallbackDescription'](_0x2c9eee);if(_0x45c549){if(null!=_0x2c9eee['subType']){if(_0x10a8d4['has'](_0x2c9eee['subType']))continue;_0x10a8d4['add'](_0x2c9eee['subType']);}_0x47a707['push'](_0x45c549);}else{if('attribute'!=_0x2c9eee['type'])'insertion'!=_0x2c9eee['type']&&'deletion'!=_0x2c9eee['type']||this['_handleInsertRemoveSuggestionDescription'](_0x47a707,_0x2c9eee,_0x4a3f4d[_0x36b415+0x1]);else{const _0x3f1556=_0x2c9eee['data']['key'];if(_0x5408c2['has'](_0x3f1556))continue;_0x5408c2['add'](_0x2c9eee['data']['key']),_0x3f1556==u?this['_handleRenameSuggestionDescription'](_0x47a707,_0x2c9eee):this['_handleAttributeSuggestionDescription'](_0x47a707,_0x2c9eee);}}}return this['_resolveDescriptionItems'](_0x47a707);}['registerDescriptionCallback'](_0x26925a){this['_customCallbacks']['push'](_0x26925a);}['registerElementLabel'](_0x35cd87,_0x38a64f,_0x1267bb=_0x1896ea['normal']){'function'==typeof _0x35cd87?_0x49a35e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x35cd87,'label':_0x38a64f,'priority':_0x1267bb}):this['_itemLabels']['set'](_0x35cd87,_0x38a64f);}['registerAttributeLabel'](_0x579024,_0x4ad51f){this['_attributeLabels']['set'](_0x579024,_0x4ad51f);}['getItemLabel'](_0x9ffe04,_0x154098=0x1){let _0xdba851;for(const _0x4249ff of this['_itemLabelsCallbacks'])if(_0x4249ff['matchingCallback'](_0x9ffe04)){_0xdba851=_0x4249ff['label'];break;}return _0xdba851||(_0xdba851=this['_itemLabels']['get'](_0x9ffe04['name'])),_0xdba851?_0xdba851(_0x154098):0x1!==_0x154098?_0x154098+'\x20'+_0x9ffe04['name']+'s':''+_0x9ffe04['name'];}['_addDescriptionItems'](_0xf4769d,_0x14ffbf){const _0x474a2d=_0x14ffbf['getFirstRange']()['getWalker'](),_0x52bda3='insertion'==_0x14ffbf['type']?'add':'remove';for(const _0x4e0def of _0x474a2d){const _0x24dbc7=_0x4e0def['item'],_0x32fccc=_0xf4769d[_0xf4769d['length']-0x1];if(_0x24dbc7['is']('$textProxy'))_0x32fccc&&_0x32fccc['type']['indexOf']('Container')>-0x1&&_0xf4769d['pop'](),_0x32fccc&&'text'==_0x32fccc['type']?_0x32fccc[_0x52bda3]+=_0x24dbc7['data']:_0xf4769d['push']({'type':'text','add':'add'==_0x52bda3?_0x24dbc7['data']:'','remove':'remove'==_0x52bda3?_0x24dbc7['data']:''});else{if(this['_schema']['isObject'](_0x24dbc7)){const _0x1298d2=_0x24dbc7;if(_0x32fccc&&_0x32fccc['type']['indexOf']('Container')>-0x1&&_0xf4769d['pop'](),'elementEnd'==_0x4e0def['type'])continue;_0x32fccc&&_0x32fccc['type']==_0x52bda3+'Object'&&_0x32fccc['element']['name']==_0x1298d2['name']?_0x32fccc['quantity']++:_0xf4769d['push']({'type':_0x52bda3+'Object','element':_0x1298d2,'quantity':0x1}),_0x474a2d['skip'](_0x23f1d6=>!('elementEnd'==_0x23f1d6['type']&&_0x23f1d6['item']==_0x24dbc7));}else{if(this['_schema']['checkChild'](_0x24dbc7,'$text')||_0x24dbc7['is']('element','softBreak')){const _0x476722=_0x24dbc7;if('add'==_0x52bda3&&'elementStart'==_0x4e0def['type']||'remove'==_0x52bda3&&'elementEnd'==_0x4e0def['type'])continue;if(_0x32fccc&&-0x1==_0x32fccc['type']['indexOf']('Container')){'text'==_0x32fccc['type']&&(_0x32fccc[_0x52bda3]+='\x0a');continue;}let _0x485098;if(_0x485098='add'==_0x52bda3?_0x476722['nextSibling']&&!this['_schema']['isObject'](_0x476722['nextSibling'])?_0x476722['nextSibling']:null:_0x476722['previousSibling']&&!this['_schema']['isObject'](_0x476722['previousSibling'])?_0x476722['previousSibling']:null,_0x476722['isEmpty']||_0x485098&&_0x485098['isEmpty']){const _0x78f5fc=_0x485098&&_0x485098['isEmpty']?_0x485098:_0x476722;_0x32fccc&&_0x32fccc['type']==_0x52bda3+'EmptyContainer'&&_0x32fccc['element']['name']==_0x78f5fc['name']?_0x32fccc['quantity']++:_0xf4769d['push']({'type':_0x52bda3+'EmptyContainer','element':_0x78f5fc,'quantity':0x1});}else _0xf4769d['push']({'type':_0x52bda3+'Container','element':_0x476722});}}}}}['_resolveDescriptionItems'](_0xd0a69e){const _0x1a3550=this['_locale'],_0x2ebf1d=[],_0x3e02fb=[],_0x52ff5c=[];for(const _0x32923c of _0xd0a69e)switch(_0x32923c['type']){case'text':if(_0x32923c['add']=_0x32923c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x32923c['remove']=_0x32923c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x32923c['add']&&''!=_0x32923c['remove']){_0x2ebf1d['push']({'type':'replace','content':c(_0x1a3550,'REPLACE_TEXT',['\x22'+_0x32923c['remove']+'\x22','\x22'+_0x32923c['add']+'\x22'])});continue;}if(null!=_0x32923c['add']['match'](/^ +$/)){_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Insert:*\x20%0',c(_0x1a3550,'ELEMENT_SPACE',_0x32923c['add']['length']))});continue;}if(null!=_0x32923c['remove']['match'](/^ +$/)){_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Remove:*\x20%0',c(_0x1a3550,'ELEMENT_SPACE',_0x32923c['remove']['length']))});continue;}if(''!=_0x32923c['add']){_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Insert:*\x20%0','\x22'+_0x32923c['add']+'\x22')});continue;}_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Remove:*\x20%0','\x22'+_0x32923c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Insert:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Remove:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'addContainer':_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Split:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'removeContainer':_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Merge:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'addFormat':_0x3e02fb['push'](_0x32923c['key']);continue;case'removeFormat':_0x52ff5c['push'](_0x32923c['key']);continue;default:_0x2ebf1d['push'](_0x32923c);}if(_0x3e02fb['length']){const _0x34d495=_0x3e02fb['map'](_0x480b81=>this['_attributeLabels']['has'](_0x480b81)?this['_attributeLabels']['get'](_0x480b81):_0x480b81)['join'](',\x20');_0x2ebf1d['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x34d495)});}if(_0x52ff5c['length']){const _0xae7482=_0x52ff5c['map'](_0x97b881=>this['_attributeLabels']['has'](_0x97b881)?this['_attributeLabels']['get'](_0x97b881):_0x97b881)['join'](',\x20');_0x2ebf1d['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xae7482)});}return _0x2ebf1d;}['_handleCustomCallbackDescription'](_0x3eca18){for(const _0x3e549c of this['_customCallbacks']){const _0x2d4d59=_0x3e549c(_0x3eca18);if(_0x2d4d59&&'type'in _0x2d4d59)return _0x2d4d59;}}['_handleAttributeSuggestionDescription'](_0x257996,_0x217dda){const _0x5232fa=_0x217dda['data'],_0x351f33=void 0x0===_0x5232fa['newValue']?'removeFormat':'addFormat';_0x257996['push']({'type':_0x351f33,'key':_0x5232fa['key']});}['_handleRenameSuggestionDescription'](_0x7758da,_0xf67fbf){_0x7758da['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xf67fbf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x411b05,_0x29230f,_0x1f9fa4){if(this['_addDescriptionItems'](_0x411b05,_0x29230f),_0x1f9fa4&&_0x1f9fa4['getFirstRange']()&&!_0x29230f['getFirstRange']()['end']['isEqual'](_0x1f9fa4['getFirstRange']()['start'])){const _0x435967=_0x411b05[_0x411b05['length']-0x1],_0x4fd1a2='insertion'==_0x29230f['type']?'add':'remove';_0x435967&&'text'==_0x435967['type']&&(_0x435967[_0x4fd1a2]+='\x0a');}}}class U extends _0x5c587b{['afterInit'](){const _0x5f1f9a=this['editor'],_0x3637a5=_0x5f1f9a['plugins']['get']('TrackChangesEditing');_0x5f1f9a['commands']['get']('showAIAssistant')&&_0x3637a5['enableCommand']('showAIAssistant');}}class V extends _0x5c587b{['afterInit'](){const _0x16ece8=this['editor'],_0x4665e5=_0x16ece8['locale'];if(!_0x16ece8['plugins']['has']('AlignmentEditing'))return;const _0x51f2c5=_0x16ece8['plugins']['get']('TrackChangesEditing');_0x51f2c5['enableDefaultAttributesIntegration']('alignment'),_0x51f2c5['registerBlockAttribute']('alignment'),_0x51f2c5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4665e5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5452b0=this['editor'],_0x4eb927=_0x5452b0['locale'];_0x5452b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22f122=>{if('formatBlock'!=_0x22f122['type'])return;const {data:_0x3b3bea}=_0x22f122;if(_0x3b3bea&&'alignment'==_0x3b3bea['commandName']){const _0x4fbf10=_0x3b3bea['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x4eb927,'*Format:*\x20%0',function(_0x12dfb6){switch(_0x12dfb6){case'left':return c(_0x4eb927,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x4eb927,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x4eb927,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x4eb927,'FORMAT_JUSTIFY_TEXT');}}(_0x4fbf10))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5c587b{['afterInit'](){const _0x121dbd=this['editor'],_0x1bb697=_0x121dbd['plugins']['get']('TrackChangesEditing'),_0x4d211a=_0x121dbd['locale'];for(const _0x32f43b of Zt){if(!_0x121dbd['plugins']['has'](_0x32f43b))continue;const _0x3e252f=_0x32f43b['slice'](0x0,-0x7)['toLowerCase'](),_0x3b8243='FORMAT_'+_0x3e252f['toUpperCase']();_0x1bb697['enableDefaultAttributesIntegration'](_0x3e252f),_0x1bb697['registerInlineAttribute'](_0x3e252f),_0x1bb697['descriptionFactory']['registerAttributeLabel'](_0x3e252f,c(_0x4d211a,_0x3b8243));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec87d=this['editor'],_0x205515=_0x2ec87d['locale'],_0x2da106=_0x2ec87d['plugins']['get']('TrackChangesEditing');function _0x3df299(_0x257c32,_0x3bb6e2){_0x2da106['descriptionFactory']['registerDescriptionCallback'](_0xc9bd92=>{if('formatInline'!=_0xc9bd92['type'])return;const {data:_0x4d85ca}=_0xc9bd92;return _0x4d85ca&&_0x4d85ca['commandName']===_0x257c32?_0x4d85ca['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x205515,'*Format:*\x20%0',_0x3bb6e2)}:{'type':'format','content':c(_0x205515,'*Remove\x20format:*\x20%0',_0x3bb6e2)}:void 0x0;});}_0x3df299('bold',c(_0x205515,'FORMAT_BOLD')),_0x3df299('italic',c(_0x205515,'FORMAT_ITALIC')),_0x3df299('underline',c(_0x205515,'FORMAT_UNDERLINE')),_0x3df299('code',c(_0x205515,'FORMAT_CODE')),_0x3df299('strikethrough',c(_0x205515,'FORMAT_STRIKETHROUGH')),_0x3df299('subscript',c(_0x205515,'FORMAT_SUBSCRIPT')),_0x3df299('superscript',c(_0x205515,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5c587b{['afterInit'](){const _0xd94662=this['editor'],_0x751cfb=_0xd94662['locale'];if(!_0xd94662['plugins']['has']('BlockQuoteEditing'))return;const _0x2a8d24=_0xd94662['plugins']['get']('TrackChangesEditing'),_0x137309=this['editor']['commands']['get']('blockQuote');_0x2a8d24['enableCommand']('blockQuote',(_0x43025e,_0x2c9f4f={})=>{const _0xa42f55=this['editor']['model']['document']['selection'],_0x57a833=_0x2c9f4f&&void 0x0!==_0x2c9f4f['forceValue']?_0x2c9f4f['forceValue']:!_0x137309['value'];let _0x4bf169=[];if(_0x57a833){const _0x5a224d=Array['from'](_0xa42f55['getSelectedBlocks']())['filter'](_0x4d8448=>oo(_0x4d8448)||function(_0x41aa0f,_0xcd20bb){const _0x8cd1ab=_0xcd20bb['checkChild'](_0x41aa0f['parent'],'blockQuote'),_0x95dc04=_0xcd20bb['checkChild'](['$root','blockQuote'],_0x41aa0f);return _0x8cd1ab&&_0x95dc04;}(_0x4d8448,this['editor']['model']['schema']));_0x4bf169=to(_0x5a224d,_0xd94662['model']);}else{const _0x51308c=Array['from'](_0xa42f55['getSelectedBlocks']())['filter'](_0x909bed=>oo(_0x909bed));_0x4bf169=to(_0x51308c,_0xd94662['model']);}_0xd94662['model']['change'](()=>{for(const _0x504228 of _0x4bf169)_0x2a8d24['markBlockFormat'](_0x504228,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57a833}]});});}),_0x2a8d24['descriptionFactory']['registerDescriptionCallback'](_0x5c9234=>{const {data:_0x444441}=_0x5c9234;if(_0x444441&&'blockQuote'==_0x444441['commandName']){const _0x580d76=c(_0x751cfb,'ELEMENT_BLOCK_QUOTE');return _0x444441['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x751cfb,'*Set\x20format:*\x20%0',_0x580d76)}:{'type':'format','content':c(_0x751cfb,'*Remove\x20format:*\x20%0',_0x580d76)};}});}}function oo(_0x51b8f7){return'blockQuote'==_0x51b8f7['parent']['name'];}class L extends _0x5c587b{['afterInit'](){const _0x46c707=this['editor'],_0xd2739=_0x46c707['locale'],_0x469aae=_0x46c707['plugins']['get']('TrackChangesEditing');_0x46c707['plugins']['has']('BookmarkEditing')&&(_0x469aae['enableCommand']('insertBookmark'),_0x469aae['enableDefaultAttributesIntegration']('updateBookmark'),_0x469aae['registerBlockAttribute']('bookmarkId'),_0x469aae['descriptionFactory']['registerDescriptionCallback'](_0x2eef99=>{if('insertion'!=_0x2eef99['type']&&'deletion'!=_0x2eef99['type']&&'attribute'!=_0x2eef99['type'])return;const _0x9cc288=_0x2eef99['getContainedElement']();if(null==_0x9cc288)return;if(!_0x9cc288['is']('element','bookmark'))return;const _0x19a1fc=_0x9cc288['getAttribute']('bookmarkId');if('insertion'==_0x2eef99['type'])return{'type':'insertion','content':c(_0xd2739,'*Insert:*\x20%0','\x22'+_0x19a1fc+'\x22\x20'+c(_0xd2739,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2eef99['type'])return{'type':'deletion','content':c(_0xd2739,'*Remove:*\x20%0','\x22'+_0x19a1fc+'\x22\x20'+c(_0xd2739,'ELEMENT_BOOKMARK'))};const {data:_0x28c55b}=_0x2eef99;if(!_0x28c55b||'bookmarkId'!=_0x28c55b['key'])return;return{'type':'format','content':c(_0xd2739,'*Set\x20bookmark:*\x20%0','\x22'+_0x28c55b['newValue']+'\x22')};}));}}class J extends _0x5c587b{['afterInit'](){const _0x115bcc=this['editor'];_0x115bcc['plugins']['has']('CaseChange')&&(_0x115bcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x115bcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x115bcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5c587b{['afterInit'](){const _0x1bc838=this['editor'];_0x1bc838['commands']['get']('ckbox')&&_0x1bc838['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5c587b{['afterInit'](){const _0x7a601a=this['editor'];if(!_0x7a601a['plugins']['has']('CodeBlock'))return;const _0x13b0d1=_0x7a601a['plugins']['get']('TrackChangesEditing'),_0x258b01=_0x7a601a['locale'],_0x138c7c=_0x7a601a['config']['get']('codeBlock')['languages'],_0x22cce9=_0x7a601a['commands']['get']('codeBlock');_0x13b0d1['enableCommand']('indentCodeBlock'),_0x13b0d1['enableCommand']('outdentCodeBlock'),_0x13b0d1['enableCommand']('codeBlock',(_0x18e444,_0x2b05d0={})=>{const _0x86e413=_0x7a601a['model'],_0x49c05f=_0x7a601a['model']['document']['selection'],_0x3624b1=_0x2b05d0&&void 0x0!==_0x2b05d0['forceValue']?_0x2b05d0['forceValue']:!_0x22cce9['value'];let _0x20de3b;_0x2b05d0['language']||(_0x2b05d0['language']=_0x138c7c[0x0]['language']),_0x20de3b=_0x3624b1?Array['from'](_0x49c05f['getSelectedBlocks']())['filter'](_0x35699a=>eo(_0x35699a)||function(_0x50fc44,_0x434212){if(_0x50fc44['is']('rootElement')||_0x434212['isLimit'](_0x50fc44))return!0x1;return _0x434212['checkChild'](_0x50fc44['parent'],'codeBlock');}(_0x35699a,_0x86e413['schema'])):Array['from'](_0x49c05f['getSelectedBlocks']())['filter'](_0x293108=>eo(_0x293108));const _0x34bec5=to(_0x20de3b,_0x86e413);_0x86e413['change'](()=>{for(const _0x52ccbf of _0x34bec5)_0x13b0d1['markBlockFormat'](_0x52ccbf,{'commandName':'codeBlock','commandParams':[{..._0x2b05d0,'forceValue':_0x3624b1}],'formatGroupId':'blockName'});});}),(_0x13b0d1['descriptionFactory']['registerElementLabel']('codeBlock',_0x20a310=>c(_0x258b01,'ELEMENT_CODE_BLOCK',_0x20a310)),_0x13b0d1['descriptionFactory']['registerDescriptionCallback'](_0x44139f=>{if('formatBlock'!=_0x44139f['type'])return;const _0xa41fbe=_0x258b01['t'],{data:_0xe93e8d}=_0x44139f;if(!_0xe93e8d||'codeBlock'!=_0xe93e8d['commandName'])return;const _0x3d36ed=_0xe93e8d['commandParams'][0x0]['language'],_0x5c481e=_0xa41fbe(_0x138c7c['find'](_0x63b6f0=>_0x63b6f0['language']===_0x3d36ed)['label'])['toLowerCase']();return _0xe93e8d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x258b01,'*Set\x20format:*\x20%0',c(_0x258b01,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5c481e+')')}:{'type':'format','content':c(_0x258b01,'*Remove\x20format:*\x20%0',c(_0x258b01,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x45f606){return'codeBlock'==_0x45f606['name'];}class q extends _0x5c587b{['afterInit'](){const _0x1ebb36=this['editor'];if(!_0x1ebb36['plugins']['has']('CommentsEditing'))return;_0x1ebb36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5a4e64,_0x180ddf,_0x53356d){const _0x2c3416=[];for(const _0x509ac4 of _0x180ddf['getItems']())_0x509ac4['hasAttribute'](_0x5a4e64)&&_0x2c3416['push'](_0x53356d['createRangeOn'](_0x509ac4));return _0x2c3416;}function Fe(_0x197db6,_0x1c3a9b,{showActiveMarker:_0x1ec9d1=!0x0}={}){const _0x23607f=_0x197db6['plugins']['get']('TrackChangesEditing');return(_0x3d0fa8,_0x5ed5d3,_0xe30e1d)=>{if(!_0xe30e1d['consumable']['test'](_0x5ed5d3['markerRange'],_0x3d0fa8['name']))return;const _0x1584ee=_0x5ed5d3['markerRange']['getWalker'](),_0x29aa16=_0x5ed5d3['markerRange']['start'],_0x1fa698=_0x197db6['model']['schema'];let _0x23decf=null,_0x47c424=null,_0x1cf579=!0x1,_0x55e048=!0x1;for(const _0x4ace12 of _0x1584ee){const _0x262894=_0x4ace12['item'];_0x1cf579=_0x1cf579||_0x1fa698['isContent'](_0x262894);const _0x55407e=_0xe30e1d['mapper']['toViewElement'](_0x262894);if(_0x55407e&&_0x55407e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ace12['type']&&(_0x1fa698['isBlock'](_0x262894)&&!_0x1fa698['isLimit'](_0x262894)&&(_0x262894['nextSibling']||_0x29aa16['isAtEnd']?_0x23decf&&_0x23decf['parent']==_0x262894||(_0x23decf=_0x262894,_0x497b8c(_0x4ace12['previousPosition']),_0x55e048=!0x0):_0x47c424=_0x47c424||_0x4ace12['previousPosition']));}function _0x497b8c(_0x3b6d06){const {id:_0x4d0416,authorId:_0x21d27f}=_0x23607f['_splitMarkerName'](_0x5ed5d3['markerName']),_0x4e0138=_0xe30e1d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c3a9b,'data-suggestion':_0x4d0416,'data-author-id':_0x21d27f}),_0x48beb9=_0xe30e1d['mapper']['toViewPosition'](_0x3b6d06);_0x1ec9d1&&_0x23607f['activeMarkers']['includes'](_0x5ed5d3['markerName'])&&_0xe30e1d['writer']['addClass']('ck-suggestion-marker--active',_0x4e0138),_0xe30e1d['writer']['insert'](_0x48beb9,_0x4e0138),_0xe30e1d['mapper']['bindElementToMarker'](_0x4e0138,_0x5ed5d3['markerName']);}_0x1cf579||_0x55e048||!_0x47c424||_0x497b8c(_0x47c424);};}class z extends _0x5c587b{static get['requires'](){return[_0x323d35];}['init'](){const _0x5c16cb=this['editor'],_0x4bad68=_0x5c16cb['plugins']['get']('TrackChangesEditing');_0x4bad68['enableCommand']('delete');const _0x980bd9=_0x5c16cb['commands']['get']('deleteForward');_0x4bad68['enableCommand']('deleteForward',(_0x596990,_0x220e0c={})=>{const _0x40905d=_0x5c16cb['model']['createSelection'](_0x5c16cb['model']['document']['selection']);_0x40905d['isCollapsed']&&_0x5c16cb['model']['modifySelection'](_0x40905d,{'direction':'forward','unit':_0x220e0c['unit']});const _0x2a0327=_0x40905d['getFirstRange'](),_0x1ad7a8=_0x4ce525['fromRange'](_0x2a0327);let _0x45955a;_0x596990(_0x220e0c),_0x45955a='$graveyard'==_0x1ad7a8['root']['rootName']?_0x5c16cb['model']['createRange'](_0x2a0327['start']):_0x5c16cb['model']['createRange'](_0x1ad7a8['start'],_0x1ad7a8['end']),_0x1ad7a8['detach'](),_0x5c16cb['model']['enqueueChange'](_0x980bd9['buffer']['batch'],_0xda2f66=>{_0x980bd9['buffer']['lock'](),_0xda2f66['setSelection'](_0xda2f66['createRange'](_0x45955a['end'])),_0x980bd9['buffer']['unlock']();});}),_0x5c16cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5c16cb,'merge'),{'priority':'high'}),_0x5c16cb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38b311,_0x3c7017,_0x3f4e)=>{_0x3f4e['options']['showSuggestionHighlights']&&Fe(_0x5c16cb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38b311,_0x3c7017,_0x3f4e);},{'priority':'high'}),_0x5c16cb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xa931a2,_0x36eac5,_0x3972ef)=>{const _0x2aa418=_0x3972ef['mapper']['markerNameToElements'](_0x36eac5['markerName']);if(_0x2aa418){for(const _0x161d79 of _0x2aa418)_0x161d79['is']('uiElement')&&(_0x3972ef['mapper']['unbindElementFromMarkerName'](_0x161d79,_0x36eac5['markerName']),_0x3972ef['writer']['remove'](_0x161d79));}},{'priority':'high'});}}class W extends _0x5c587b{['afterInit'](){const _0x4065af=this['editor'];if(!_0x4065af['plugins']['has']('ListEditing'))return;const _0x27c73b=_0x4065af['locale'],_0xcb520=_0x4065af['plugins']['get']('TrackChangesEditing'),_0x49d40f=_0x4065af['plugins']['has']('TodoListEditing'),_0x475839=!!_0x4065af['config']['get']('list.multiBlock');function _0x2cffaa(_0x192e93){return{'type':'format','content':''+c(_0x27c73b,'*Set\x20format:*\x20%0',_0x192e93)};}function _0x379bad(_0x3262a5){return{'type':'format','content':''+c(_0x27c73b,'*Remove\x20format:*\x20%0',_0x3262a5)};}_0xcb520['enableDefaultAttributesIntegration']('numberedList'),_0xcb520['enableDefaultAttributesIntegration']('bulletedList'),_0xcb520['enableDefaultAttributesIntegration']('customNumberedList'),_0xcb520['enableDefaultAttributesIntegration']('customBulletedList'),_0xcb520['enableDefaultAttributesIntegration']('indentList'),_0xcb520['enableDefaultAttributesIntegration']('outdentList'),_0xcb520['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xcb520['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xcb520['registerBlockAttribute']('listItemId'),_0xcb520['registerBlockAttribute']('listType'),_0xcb520['registerBlockAttribute']('listIndent'),_0x475839&&(_0xcb520['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xcb520['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x49d40f&&(_0xcb520['enableDefaultAttributesIntegration']('todoList'),_0xcb520['enableDefaultAttributesIntegration']('checkTodoList'),_0xcb520['registerBlockAttribute']('todoListChecked'),_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x1d0c96=>{const {data:_0x2c6bbc}=_0x1d0c96;if(_0x2c6bbc&&'todoListChecked'==_0x2c6bbc['key'])return{'type':'format','content':_0x2c6bbc['newValue']?c(_0x27c73b,'*Check\x20item*'):c(_0x27c73b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36ce3d=>{if(_0x36ce3d['batch']['isUndo'])return!0x1;let _0x127672=!0x1;const _0x294185=_0xcb520['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54f346=>'todoListChecked'===_0xcb520['_getAttributeKey'](_0x54f346));for(const _0x12b171 of _0x294185){'todo'!=_0x12b171['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xcb520['_findSuggestions'](_0x12b171['getFirstRange'](),'attribute')['find'](_0x3c7004=>'listType'===_0xcb520['_getAttributeKey'](_0x3c7004['suggestion']))||(_0x36ce3d['removeMarker'](_0x12b171['getFirstMarker']()),_0x127672=!0x0));}return _0x127672;})),_0xcb520['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x27c73b,'FORMAT_INDENT'));const _0x167353={'type':'format','content':''};_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x463882=>{const {data:_0x2186ea}=_0x463882;if(!_0x2186ea||'listType'!=_0x2186ea['key'])return;let _0x255ffc=_0x463882['head'];for(;_0x255ffc;){if(_0x255ffc['data']&&(('listStyle'==_0x255ffc['data']['key']||'listMarkerStyle'==_0x255ffc['data']['key'])&&(_0x255ffc['data']['newValue']&&'default'!=_0x255ffc['data']['newValue']||'default'!=_0x255ffc['data']['oldValue']&&!_0x2186ea['newValue'])||!_0x475839&&_0x255ffc['data']['key']==u))return _0x167353;_0x255ffc=_0x255ffc['next'];}if(null==_0x2186ea['newValue'])switch(_0x2186ea['oldValue']){case'bulleted':return _0x379bad(c(_0x27c73b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x379bad(c(_0x27c73b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x379bad(c(_0x27c73b,'ELEMENT_TODO_LIST'));}switch(_0x2186ea['newValue']){case'bulleted':return _0x2cffaa(c(_0x27c73b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2cffaa(c(_0x27c73b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2cffaa(c(_0x27c73b,'ELEMENT_TODO_LIST'));}}),_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x40c168=>{const {data:_0x5a5d35}=_0x40c168;if(_0x5a5d35&&'listIndent'==_0x5a5d35['key'])return null==_0x5a5d35['newValue']||null==_0x5a5d35['oldValue']&&0x0==_0x5a5d35['newValue']?_0x167353:void 0x0;}),_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x43a45d=>{if('attribute'!=_0x43a45d['type'])return;const {data:_0x1e10aa}=_0x43a45d;if(!_0x1e10aa||'listItemId'!=_0x1e10aa['key'])return;const _0x3f0265=Te(_0x43a45d);return'newValue'==_0x3f0265?{'type':'format','content':c(_0x27c73b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f0265?{'type':'format','content':c(_0x27c73b,'*Split:*\x20list\x20item')}:_0x167353;}),_0x4065af['model']['document']['registerPostFixer'](_0x111238=>this['listItemIdFixer'](_0x111238)),_0x4065af['model']['document']['registerPostFixer'](_0x11e795=>this['noTrackChangesFixer'](_0x11e795)),_0x4065af['model']['document']['on']('change:data',(_0x5b32e6,_0x520935)=>{if(_0x520935['isUndo']||!_0x520935['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x24416a){if(_0x24416a['batch']['isUndo']||!_0x24416a['batch']['isLocal'])return!0x1;let _0x265dd6=!0x1;const _0x4f55df=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x294be0=>_0x294be0['data']&&'listItemId'==_0x294be0['data']['key'])['filter'](_0x267645=>_0x267645['data']['newValue']&&_0x267645['data']['oldValue']);for(const _0x468204 of _0x4f55df)Te(_0x468204)||(_0x24416a['removeMarker'](_0x468204['getFirstMarker']()),_0x265dd6=!0x0);return _0x265dd6;}['noTrackChangesFixer'](_0x2a1943){if(_0x2a1943['batch']['isUndo']||!_0x2a1943['batch']['isLocal'])return!0x1;const _0x100625=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x100625['trackChangesCommand']['value'])return!0x1;let _0xffc6a2=!0x1;const _0x419462=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x13d297=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x470e12=>'attribute'==_0x470e12['type'])['filter'](_0x972cca=>_0x419462['includes'](_0x972cca['attributeKey']));if(0x0==_0x13d297['length'])return _0xffc6a2;for(const _0x2972e1 of _0x13d297){const _0x1cddf4=_0x100625['_findSuggestions'](_0x2972e1['range'],'attribute')['filter'](_0x4f5fb7=>!_0x4f5fb7['meta']['isNextTo'])['map'](_0x383ebd=>_0x383ebd['suggestion'])['filter'](_0xe8c816=>{const _0x338868=_0x100625['_getAttributeKey'](_0xe8c816);return _0x419462['includes'](_0x338868);});if(_0x1cddf4['length']){for(const _0x305b59 of _0x1cddf4)_0x2a1943['removeMarker'](_0x305b59['getFirstMarker']());_0xffc6a2=!0x0;}}return _0xffc6a2;}['assureChains'](){const _0x33ff11=this['editor']['plugins']['get']('TrackChangesEditing'),_0x466b35=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33effa;const _0x457f2e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4eb018=>{if(_0x4eb018['data']['oldRange']||!_0x4eb018['data']['newRange'])return null;if(!_0x4eb018['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e7994}=_0x33ff11['_splitMarkerName'](_0x4eb018['name']);if(!_0x33ff11['hasSuggestion'](_0x1e7994))return null;const _0x35a180=_0x33ff11['getSuggestion'](_0x1e7994);return _0x466b35['includes'](_0x35a180['data']['key']);})['map'](_0x1e4663=>{const {id:_0x20d5ea}=_0x33ff11['_splitMarkerName'](_0x1e4663['name']),_0x567d09=_0x33ff11['getSuggestion'](_0x20d5ea);return _0x33effa=_0x567d09['attributes']['groupId'],_0x567d09['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x457f2e['size'])return;const _0x3bfde7=_0x33ff11['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bcbf4=>'attribute'==_0x3bcbf4['type']&&_0x3bcbf4['data']&&_0x466b35['includes'](_0x3bcbf4['data']['key'])&&_0x3bcbf4['attributes']['groupId']!=_0x33effa)['map'](_0x4ee8a0=>({'listItem':_0x4ee8a0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ee8a0['attributes']['groupId']})),_0x9a9ace=new Set();for(const {groupId:_0x394fd5,listItem:_0x257092}of _0x3bfde7)_0x457f2e['has'](_0x257092)&&_0x9a9ace['add'](_0x394fd5);for(const _0xf8e31b of _0x33ff11['getSuggestions']())_0x9a9ace['has'](_0xf8e31b['attributes']['groupId'])&&_0xf8e31b['setAttribute']('groupId',_0x33effa);}['_supportLegacySuggestions'](){const _0x23895d=this['editor'],_0x4ffb27=_0x23895d['locale'],_0x45fcb4=_0x23895d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45fcb4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5b8ad9,_0x90519){const _0x543ca6=[];for(let _0x2fb47e of _0x5b8ad9)_0x2fb47e['start']['nodeAfter']===_0x2fb47e['end']['parent']&&(_0x2fb47e=_0x23895d['model']['createRange'](_0x23895d['model']['createPositionAt'](_0x2fb47e['start']['nodeAfter'],0x0))),_0x543ca6['push'](_0x2fb47e);_0x23895d['model']['change'](_0x22fe24=>{const _0x3ad146=_0x23895d['model']['document']['selection'],_0x3deeaf=Array['from'](_0x3ad146['getRanges']())['map'](_0x586c99=>_0x4ce525['fromRange'](_0x586c99));_0x22fe24['setSelection'](_0x543ca6),_0x23895d['commands']['get'](_0x90519['commandName'])['refresh'](),_0x90519['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x23895d['execute'](_0x90519['commandName'],..._0x90519['commandParams']),_0x22fe24['setSelection'](_0x3deeaf);for(const _0xa865d4 of _0x3deeaf)_0xa865d4['detach']();});}),_0x45fcb4['descriptionFactory']['registerElementLabel'](function(_0x4a4d21){const _0x59a433=!_0x23895d['model']['schema']['isObject'](_0x4a4d21),_0x3f3005=_0x4a4d21['previousSibling'],_0x5609fa=_0x4a4d21['nextSibling'],_0x1368da=_0x4a4d21['getAttribute']('listItemId'),_0x4a2254=!_0x3f3005||_0x3f3005['getAttribute']('listItemId')!==_0x1368da,_0x22164c=!_0x5609fa||_0x5609fa['getAttribute']('listItemId')!==_0x1368da;return _0x59a433&&Boolean(_0x1368da)&&_0x4a2254&&_0x22164c;},_0x845099=>c(_0x4ffb27,'ELEMENT_LIST_ITEM',_0x845099));}['_registerLegacyDescription'](){const _0x29475e=this['editor'],_0x450a72=_0x29475e['locale'];function _0x20624f(_0x20cf4a){const _0x300ded=_0x29475e['commands']['get']('bulletedList')['value'],_0x5accbc=_0x29475e['commands']['get']('numberedList')['value'];return'numberedList'===_0x20cf4a?_0x300ded:_0x5accbc;}_0x29475e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x37311c){if('formatBlock'!=_0x37311c['type'])return;const {data:_0x1ebac6}=_0x37311c;if(!_0x1ebac6)return;let _0x39b151,_0x3d306f,_0x3cceb7,_0x191f12;switch(_0x1ebac6['commandName']){case'bulletedList':_0x3cceb7=_0x1ebac6['commandParams'][0x0]['forceValue'],_0x191f12=_0x20624f(_0x1ebac6['commandName']),_0x39b151=_0x3cceb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x191f12&&_0x29475e['config']['get']('list.multiBlock')||(_0x39b151='*Change\x20to:*\x20%0'),_0x3d306f={'type':'format','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3cceb7=_0x1ebac6['commandParams'][0x0]['forceValue'],_0x191f12=_0x20624f(_0x1ebac6['commandName']),_0x39b151=_0x3cceb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x191f12&&_0x29475e['config']['get']('list.multiBlock')||(_0x39b151='*Change\x20to:*\x20%0'),_0x3d306f={'type':'format','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39b151='*Indent:*\x20%0',_0x3d306f={'type':'format','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39b151=function(_0x2a6528){const _0x25b66a=_0x2a6528['getFirstRange']();let _0x576fd9=_0x25b66a['start']['nodeAfter'];for(;_0x576fd9&&_0x25b66a['containsItem'](_0x576fd9);){if(_0x576fd9['getAttribute']('listIndent')>0x0)return!0x1;_0x576fd9=_0x576fd9['nextSibling'];}return!0x0;}(_0x37311c)?c(_0x450a72,'*Format:*\x20remove\x20from\x20%0',c(_0x450a72,function(_0x470849){return'ELEMENT_'+_0x470849['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x37311c))):c(_0x450a72,'*Outdent:*\x20%0',c(_0x450a72,'ELEMENT_LIST_ITEM')),_0x3d306f={'type':'format','content':_0x39b151};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ebac6['multipleBlocks']&&(_0x39b151='*Merge:*\x20%0',_0x3d306f={'type':'deletion','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_LIST_ITEM'))});}return _0x3d306f;});}}function Te(_0x3dff5f){let _0x792a46=_0x3dff5f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x792a46;){const _0x2ce5ca=_0x792a46['getAttribute']('listItemId');if(!_0x2ce5ca)return!0x1;if(_0x2ce5ca==_0x3dff5f['data']['newValue'])return'newValue';if(_0x2ce5ca==_0x3dff5f['data']['oldValue'])return'oldValue';_0x792a46=_0x792a46['previousSibling'];}return!0x1;}class Se extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d7d4d=this['editor']['config']['get']('list.properties'),_0xe69c8c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d7d4d['styles']&&(_0xe69c8c['enableDefaultAttributesIntegration']('listStyle'),_0xe69c8c['registerBlockAttribute']('listStyle')),_0x1d7d4d['reversed']&&(_0xe69c8c['enableDefaultAttributesIntegration']('listReversed'),_0xe69c8c['registerBlockAttribute']('listReversed')),_0x1d7d4d['startIndex']&&(_0xe69c8c['enableDefaultAttributesIntegration']('listStart'),_0xe69c8c['registerBlockAttribute']('listStart'));const _0x4b421a={'type':'format','content':''};_0xe69c8c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53607f=this['editor']['locale'];_0xe69c8c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x53607f,'FORMAT_LIST_REVERSED')),_0xe69c8c['descriptionFactory']['registerDescriptionCallback'](_0x29d660=>{const {data:_0x275939}=_0x29d660;if(_0x275939&&'listReversed'==_0x275939['key'])return null==_0x275939['newValue']||0x0==_0x275939['newValue']&&null==_0x275939['oldValue']?_0x4b421a:void 0x0;}),_0xe69c8c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x53607f,'FORMAT_LIST_START')),_0xe69c8c['descriptionFactory']['registerDescriptionCallback'](_0x15f0cf=>{const {data:_0x3b4e88}=_0x15f0cf;if(_0x3b4e88&&'listStart'==_0x3b4e88['key'])return null==_0x3b4e88['newValue']||0x1==_0x3b4e88['newValue']&&null==_0x3b4e88['oldValue']?_0x4b421a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x27ab20=>{if(_0x27ab20['batch']['isUndo'])return!0x1;let _0x1ae1f1=!0x1;const _0x25cf05=_0xe69c8c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x518ccf=>{const _0x309a0a=_0xe69c8c['_getAttributeKey'](_0x518ccf);return'listStart'==_0x309a0a||'listReversed'==_0x309a0a;});for(const _0x4114fc of _0x25cf05){const _0xafb19=_0x4114fc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xafb19||'customNumbered'==_0xafb19)continue;_0xe69c8c['_findSuggestions'](_0x4114fc['getFirstRange'](),'attribute')['find'](_0x2501c1=>'listType'==_0xe69c8c['_getAttributeKey'](_0x2501c1['suggestion']))||(_0x27ab20['removeMarker'](_0x4114fc['getFirstMarker']()),_0x1ae1f1=!0x0);}return _0x1ae1f1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2cdf24){const _0x593129=this['editor']['locale'],{data:_0x2ea26a}=_0x2cdf24,_0x28af94={'type':'format','content':''};if(!_0x2ea26a||'listStyle'!=_0x2ea26a['key'])return;if(!_0x2ea26a['oldValue'])return'default'==_0x2ea26a['newValue']?_0x28af94:{'type':'format','content':''+c(_0x593129,'*Set\x20format:*\x20%0',c(_0x593129,this['_getTranslationKeyForListStyle'](_0x2ea26a['newValue'])))};if(!_0x2ea26a['newValue']){if('default'==_0x2ea26a['oldValue'])return _0x28af94;let _0x27f1bb=_0x2cdf24['head'];for(;_0x27f1bb;){if(_0x27f1bb['data']&&'listType'==_0x27f1bb['data']['key']&&_0x27f1bb['data']['newValue'])return _0x28af94;_0x27f1bb=_0x27f1bb['next'];}return{'type':'format','content':''+c(_0x593129,'*Remove\x20format:*\x20%0',c(_0x593129,this['_getTranslationKeyForListStyle'](_0x2ea26a['oldValue'])))};}if('default'!=_0x2ea26a['newValue'])return{'type':'format','content':''+c(_0x593129,'*Set\x20format:*\x20%0',c(_0x593129,this['_getTranslationKeyForListStyle'](_0x2ea26a['newValue'])))};let _0x41f853=_0x2cdf24['head'];for(;_0x41f853;){if(_0x41f853['data']&&'listType'==_0x41f853['data']['key']&&_0x41f853['data']['newValue']&&_0x41f853['data']['oldValue'])return _0x28af94;_0x41f853=_0x41f853['next'];}return{'type':'format','content':c(_0x593129,'*Set\x20format:*\x20%0',c(_0x593129,'ELEMENT_'+_0x2cdf24['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xef489f=this['editor'],_0x13e682=_0xef489f['locale'];_0xef489f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb8d1=>{if('formatBlock'!=_0x5cb8d1['type'])return;const {data:_0x902ebd}=_0x5cb8d1;if(!_0x902ebd)return;let _0x3cad4d,_0x10aea2;switch(_0x902ebd['commandName']){case'listStyle':_0x3cad4d='*Change\x20to:*\x20%0',_0x10aea2={'type':'format','content':c(_0x13e682,_0x3cad4d,c(_0x13e682,this['_getTranslationKeyForListStyle'](_0x902ebd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cad4d=_0x902ebd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10aea2={'type':'format','content':c(_0x13e682,_0x3cad4d)};break;case'listStart':_0x3cad4d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10aea2={'type':'format','content':c(_0x13e682,_0x3cad4d,_0x902ebd['commandParams'][0x0]['startIndex'])};}return _0x10aea2;});}['_getTranslationKeyForListStyle'](_0x35a5ad){return'ELEMENT_'+function(_0x5c03e5){if(_e['includes'](_0x5c03e5))return'bulleted';if(Re['includes'](_0x5c03e5))return'numbered';return null;}(_0x35a5ad)['toUpperCase']()+'_LIST_'+_0x35a5ad['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5c587b{['afterInit'](){const _0x6f4aa3=this['editor'];_0x6f4aa3['commands']['get']('emoji')&&_0x6f4aa3['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5c587b{static get['requires'](){return[_0x4acdbc];}['init'](){const _0x3b1101=this['editor'],_0x17eaa9=_0x3b1101['plugins']['get']('TrackChangesEditing'),_0x21424b=_0x3b1101['commands']['get']('enter');_0x17eaa9['enableCommand']('enter',()=>{_0x3b1101['model']['change'](_0x116b88=>{const _0xb87b36=_0x3b1101['model']['document']['selection'],_0x1cb09d=_0xb87b36['getFirstPosition'](),_0x57f9b8=_0x4ce525['fromRange'](_0xb87b36['getFirstRange']());if(_0x21424b['enterBlock'](_0x116b88)){const _0x36ccd3=_0x3b1101['model']['createPositionAt'](_0x1cb09d['parent']['nextSibling'],0x0),_0x5a0b6f=_0x116b88['createRange'](_0x1cb09d,_0x36ccd3);_0x17eaa9['markInsertion'](_0x5a0b6f);}else _0x116b88['setSelection'](_0x116b88['createRange'](_0x57f9b8['end']));_0x57f9b8['detach'](),_0x21424b['fire']('afterExecute',{'writer':_0x116b88});});}),_0x3b1101['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3b1101,'split'),{'priority':'high'}),_0x3b1101['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2369a1,_0xeac5f,_0x30a2bc)=>{const _0xcaeda4=_0x30a2bc['mapper']['markerNameToElements'](_0xeac5f['markerName']);if(_0xcaeda4){for(const _0x130f36 of _0xcaeda4)_0x130f36['hasClass']('ck-suggestion-marker-split')&&(_0x30a2bc['mapper']['unbindElementFromMarkerName'](_0x130f36,_0xeac5f['markerName']),_0x30a2bc['writer']['remove'](_0x130f36));}},{'priority':'high'}),_0x3b1101['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x573c11,_0x34bb90,_0xfddb27)=>{_0xfddb27['options']['showSuggestionHighlights']&&Fe(_0x3b1101,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x573c11,_0x34bb90,_0xfddb27);},{'priority':'high'});}}class Z extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x191ef9=this['editor']['plugins']['get']('TrackChangesEditing');_0x191ef9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x191ef9['enableCommand']('findNext'),_0x191ef9['enableCommand']('findPrevious'),_0x191ef9['enableCommand']('replace'),_0x191ef9['enableCommand']('replaceAll');}['handleFindCommand'](_0x1443ae,_0x40dbdb,_0x39b8af={}){const _0x331bbc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1443ae(_0x45e1fc=>{let _0x4ce16c=('string'==typeof _0x40dbdb?_0x331bbc['findByTextCallback'](_0x40dbdb,_0x39b8af):_0x40dbdb)(_0x45e1fc);Array['isArray'](_0x4ce16c)&&(_0x4ce16c={'results':_0x4ce16c,'searchText':'string'==typeof _0x40dbdb?_0x40dbdb:''});const _0xefcf5f=_0x4ce16c['results']['filter'](_0x9446ff=>!0x1===this['_isInDeletionRange'](_0x9446ff,_0x45e1fc['item']));return{..._0x4ce16c,'results':_0xefcf5f};},_0x39b8af);}['_isInDeletionRange'](_0x33bc8b,_0x5bad31){const _0x35b300=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bad31,_0x33bc8b['start']),this['editor']['model']['createPositionAt'](_0x5bad31,_0x33bc8b['end']));for(const _0x3de857 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35b300['getIntersection'](_0x3de857['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5c587b{['afterInit'](){const _0x1b1175=this['editor']['locale'],_0x4b527b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26b5b4,commandName:_0x34757d}of ro)this['editor']['plugins']['has'](_0x26b5b4)&&(_0x4b527b['enableDefaultAttributesIntegration'](_0x34757d),_0x4b527b['registerInlineAttribute'](_0x34757d));_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1b1175,'FORMAT_FONT_SIZE')),_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1b1175,'FORMAT_FONT_FAMILY')),_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1b1175,'FORMAT_FONT_COLOR')),_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1b1175,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9e3561=this['editor'],_0x231a1d=_0x9e3561['locale'];_0x9e3561['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14417d=>{const _0x4e848f=_0x231a1d['t'];if('formatInline'!=_0x14417d['type'])return;const {data:_0x41f054}=_0x14417d;if(null!=_0x41f054){if('fontSize'==_0x41f054['commandName']){const _0x467844=_0x41f054['commandParams'][0x0]['value'];if(_0x467844){const _0x1f0f86=_0x4e848f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c4a7e=>_0x4c4a7e['model']==_0x467844)['title'])['toLowerCase']();return{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20size:*\x20%0',_0x1f0f86)};}return{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x41f054['commandName']){const _0x31d069=_0x41f054['commandParams'][0x0]['value'];return _0x31d069?{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20family:*\x20%0',_0x31d069)}:{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x41f054['commandName']){const _0x4af2a6=_0x41f054['commandParams'][0x0]['value'];if(_0x4af2a6){const _0x262a24=_0x5dc65d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c8ea8=>_0x5c8ea8['model']==_0x4af2a6);let _0xb9a8b6=_0x4af2a6,_0x17c94e='';return _0x262a24&&(_0xb9a8b6=_0x262a24['label'],_0x17c94e=_0x4e848f(_0xb9a8b6)['toLowerCase']()),{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20color:*\x20%0',_0x17c94e)['trim'](),'color':{'value':_0x4af2a6,'title':_0x17c94e||_0xb9a8b6}};}return{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x41f054['commandName']){const _0x12610c=_0x41f054['commandParams'][0x0]['value'];if(_0x12610c){const _0x226bc3=_0x5dc65d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x293c0a=>_0x293c0a['model']==_0x12610c);let _0x4a4393=_0x12610c,_0x202d3e='';return _0x226bc3&&(_0x4a4393=_0x226bc3['label'],_0x202d3e=_0x4e848f(_0x4a4393)['toLowerCase']()),{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20background\x20color:*\x20%0',_0x202d3e)['trim'](),'color':{'value':_0x12610c,'title':_0x202d3e||_0x4a4393}};}return{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5c587b{['afterInit'](){const _0x47c24e=this['editor'],_0x26fafe=_0x47c24e['plugins']['get']('TrackChangesEditing'),_0xe953d2=_0x47c24e['commands']['get']('copyFormat'),_0x55ffe4=_0x47c24e['commands']['get']('pasteFormat');_0xe953d2&&_0x55ffe4&&(_0x26fafe['enableDefaultAttributesIntegration']('pasteFormat'),_0x26fafe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x107af1=this['editor'],_0x1b45b0=_0x107af1['locale'];_0x107af1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e3851=>{if('formatBlock'!=_0x2e3851['type']&&'formatInline'!=_0x2e3851['type'])return;const {data:_0x5f2a89}=_0x2e3851;if(_0x5f2a89&&'pasteFormat'===_0x5f2a89['commandName']){const _0x1935b7=[],_0x3f35ad=_0x5f2a89['commandParams'][0x0];for(const [_0xd37b6b,_0x58204e]of Object['entries'](_0x3f35ad))_0x1935b7['push'](so(_0x107af1,_0xd37b6b,_0x58204e));return _0x1935b7['length']?{'type':'format','content':c(_0x1b45b0,'*Set\x20format\x20to:*\x20%0',_0x1935b7['join'](',\x20'))}:{'type':'format','content':c(_0x1b45b0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x37c594,_0x4900a9,_0x2fbe90){const _0x4861ff=_0x37c594['locale']['t'],_0x4a05de=_0x4900a9['split'](/(?=[A-Z])/)['join']('\x20'),_0x1101dd=_0x4861ff(_0x4a05de['charAt'](0x0)['toUpperCase']()+_0x4a05de['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2fbe90)return _0x1101dd;if('fontColor'===_0x4900a9||'fontBackgroundColor'===_0x4900a9){const _0x45ae75=_0x5dc65d(_0x37c594['config']['get']('fontColor.colors'))['find'](_0x26908c=>_0x26908c['model']==_0x2fbe90);return _0x1101dd+'\x20('+(_0x45ae75?_0x4861ff(_0x45ae75['label'])['toLowerCase']():_0x2fbe90)+')';}if('fontSize'===_0x4900a9&&isNaN(parseFloat(_0x2fbe90))){const _0x502d3c=_0x37c594['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37c594['config']['get']('fontSize.options'))['find'](_0x72da11=>_0x72da11['model']==_0x2fbe90);return _0x1101dd+'\x20('+(_0x502d3c?_0x4861ff(_0x502d3c['title'])['toLowerCase']():_0x2fbe90)+')';}return _0x1101dd+'\x20('+_0x2fbe90+')';}class et extends _0x5c587b{['_headingOptions'];['afterInit'](){const _0x45e9f4=this['editor'];if(!_0x45e9f4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x45e9f4['config']['get']('heading.options');const _0x3c8404=_0x45e9f4['locale'],_0x1a559e=_0x45e9f4['plugins']['get']('TrackChangesEditing');_0x1a559e['enableDefaultAttributesIntegration']('heading');for(const _0x53d6d7 of this['_headingOptions'])'paragraph'!=_0x53d6d7['model']&&_0x1a559e['descriptionFactory']['registerElementLabel'](_0x53d6d7['model'],_0x820f04=>{const _0x427f52=this['_getHeadingLevel'](_0x53d6d7['model']);return null!==_0x427f52?_0x18475d(_0x820f04,_0x427f52):_0x3d48bd(_0x820f04,_0x53d6d7['title']);});function _0x18475d(_0xfa6806,_0x5eb086){return c(_0x3c8404,'ELEMENT_HEADING',[_0xfa6806,_0x5eb086]);}function _0x3d48bd(_0x1ccf76,_0x487a29){return c(_0x3c8404,'ELEMENT_HEADING_CUSTOM',[_0x1ccf76,_0x487a29]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26a3f5=this['editor'],_0x4c1d19=_0x26a3f5['locale'];function _0x383505(_0x34303a,_0x5201ea){return c(_0x4c1d19,'ELEMENT_HEADING_CUSTOM',[_0x34303a,_0x5201ea]);}_0x26a3f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d662=>{if('formatBlock'!=_0x40d662['type'])return;const {data:_0x22bd1a}=_0x40d662;if(_0x22bd1a&&'heading'==_0x22bd1a['commandName']){const _0x41b706=_0x22bd1a['commandParams'][0x0]['value'],_0x22fc34=this['_getHeadingLevel'](_0x41b706);if(null!==_0x22fc34)return{'type':'format','content':c(_0x4c1d19,'*Change\x20to:*\x20%0',(_0x2f1e9d=0x1,_0x25273a=_0x22fc34,c(_0x4c1d19,'ELEMENT_HEADING',[_0x2f1e9d,_0x25273a])))};const _0x1d2f7d=this['_headingOptions']['find'](_0x4e7cdf=>_0x4e7cdf['model']===_0x41b706)['title'];return{'type':'format','content':c(_0x4c1d19,'*Change\x20to:*\x20%0',_0x383505(0x1,_0x1d2f7d))};}var _0x2f1e9d,_0x25273a;});}['_getHeadingLevel'](_0x1c09c1){const _0x8c9a10=_0x1c09c1['match'](/^heading(\d+)/);if(_0x8c9a10)return _0x8c9a10[0x1];const _0x5ed28b=this['_headingOptions']?.['find'](_0x830614=>_0x830614['model']==_0x1c09c1);if(_0x5ed28b&&_0x5ed28b['view']){const _0x5612cd=_0x5ed28b['view'],_0x28cf60=(_0x5612cd['name']??_0x5612cd)['match'](/^h(\d+)/);if(_0x28cf60)return _0x28cf60[0x1];}return null;}}class nt extends _0x5c587b{['afterInit'](){const _0x387de9=this['editor'];if(!_0x387de9['plugins']['has']('HighlightEditing'))return;const _0x1796c3=_0x387de9['plugins']['get']('TrackChangesEditing'),_0x1715e8=_0x387de9['locale'];_0x1796c3['enableDefaultAttributesIntegration']('highlight'),_0x1796c3['registerInlineAttribute']('highlight'),_0x1796c3['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1715e8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ccab2=this['editor'],_0x3299db=_0x3ccab2['locale'];_0x3ccab2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x228c40=>{if('formatInline'!=_0x228c40['type'])return;const {data:_0x493abb}=_0x228c40;if(_0x493abb&&'highlight'==_0x493abb['commandName']){const _0x162976=_0x3299db['t'],_0x1aa1e0=_0x493abb['commandParams'][0x0]['value'];if(_0x1aa1e0){const _0x18c9a1=_0x3ccab2['config']['get']('highlight.options')['find'](_0x515063=>_0x515063['model']==_0x1aa1e0),_0x235abd=_0x162976(_0x18c9a1['title'])['toLowerCase']();return{'type':'format','content':c(_0x3299db,'*Set\x20highlight:*\x20%0',_0x235abd),'color':{'value':_0x18c9a1['color'],'title':_0x18c9a1['title']}};}return{'type':'format','content':c(_0x3299db,'*Remove\x20highlight*',c(_0x3299db,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c587b{['afterInit'](){const _0x3336c8=this['editor'];if(!_0x3336c8['plugins']['has']('HorizontalLineEditing'))return;_0x3336c8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x409eea=_0x3336c8['plugins']['get']('TrackChangesEditing'),_0x2e4a79=_0x3336c8['locale'];_0x409eea['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd14555=>c(_0x2e4a79,'ELEMENT_HORIZONTAL_LINE',_0xd14555)),_0x3336c8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x6c60d7,{writer:_0x4d6d69,options:_0xed4314})=>{if(!_0xed4314['showSuggestionHighlights'])return null;const _0x26d5f1=_0x4d6d69['createContainerElement']('div'),_0x248d55=_0x4d6d69['createEmptyElement']('hr');return _0x4d6d69['addClass']('ck-horizontal-line',_0x26d5f1),_0x4d6d69['insert'](_0x4d6d69['createPositionAt'](_0x26d5f1,0x0),_0x248d55),_0x26d5f1;},'converterPriority':'high'});}}class ot extends _0x5c587b{['afterInit'](){const _0x42c243=this['editor'];if(!_0x42c243['plugins']['has']('HtmlEmbed'))return;const _0x5a5c4d=_0x42c243['plugins']['get']('TrackChangesEditing'),_0x5896a6=_0x42c243['locale'];_0x5a5c4d['descriptionFactory']['registerElementLabel']('rawHtml',_0xf95b09=>c(_0x5896a6,'ELEMENT_HTML_EMBED',_0xf95b09)),_0x5a5c4d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5a5c4d['registerBlockAttribute']('value'),_0x5a5c4d['descriptionFactory']['registerDescriptionCallback'](_0x3b05bd=>{if('attribute'!=_0x3b05bd['type'])return;const {data:_0x36a214}=_0x3b05bd;if(_0x36a214&&'value'==_0x36a214['key']&&_0x3b05bd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x195cfe=c(_0x5896a6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5896a6,'*Change\x20%0\x20content*',_0x195cfe)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe839e1=this['editor'],_0x4e3fd4=_0xe839e1['locale'];_0xe839e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40965a=>{if('formatBlock'!=_0x40965a['type'])return;const {data:_0x252e5b}=_0x40965a;if(_0x252e5b&&'htmlEmbed'==_0x252e5b['commandName']){const _0x227a58=c(_0x4e3fd4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4e3fd4,'*Change\x20%0\x20content*',_0x227a58)};}});}}class rt extends _0x5c587b{['afterInit'](){const _0x174eb9=this['editor'];if(!_0x174eb9['plugins']['has']('ImageEditing'))return;const _0x33c3b2=_0x174eb9['plugins']['get']('TrackChangesEditing'),_0x5a80cf=_0x174eb9['plugins']['get']('ImageUtils'),_0x41b872=_0x174eb9['locale'];_0x33c3b2['enableCommand']('insertImage'),_0x33c3b2['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c3002=>c(_0x41b872,'ELEMENT_IMAGE',_0x1c3002)),_0x33c3b2['descriptionFactory']['registerElementLabel']('imageInline',_0xabfd6f=>c(_0x41b872,'ELEMENT_INLINE_IMAGE',_0xabfd6f)),_0x33c3b2['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x41b872,'ELEMENT_CAPTION')),_0x174eb9['plugins']['has']('ImageUploadEditing')&&_0x33c3b2['enableCommand']('uploadImage'),_0x174eb9['plugins']['has']('ImageBlockEditing')&&_0x174eb9['plugins']['has']('ImageInlineEditing')&&(_0x33c3b2['enableCommand']('imageTypeInline',(_0x2c44da,_0x4827bf)=>{const _0x188406=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']);_0x174eb9['model']['change'](()=>{_0x33c3b2['markBlockFormat'](_0x188406,{'commandName':'imageTypeInline','commandParams':[_0x4827bf]},[],'convertBlockImageToInline');});}),_0x33c3b2['enableCommand']('imageTypeBlock',(_0x860d9f,_0x5a5f9c)=>{_0x174eb9['model']['change'](_0x1dd8e7=>{let _0x52bf0c=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0xca9263=_0x1dd8e7['createRangeOn'](_0x52bf0c);const _0x141c36=_0x8e442d['fromPosition'](_0xca9263['start'],'toPrevious'),_0x265331=_0x8e442d['fromPosition'](_0xca9263['end'],'toNext');_0x33c3b2['forceDefaultExecution'](()=>_0x860d9f(_0x5a5f9c)),_0x52bf0c=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0xca9263=_0x1dd8e7['createRangeOn'](_0x52bf0c);const _0x26bc9a=_0x1dd8e7['createRange'](_0x141c36,_0x265331);_0x141c36['detach'](),_0x265331['detach'](),_0x33c3b2['markBlockFormat'](_0x52bf0c,{'commandName':'imageTypeInline','commandParams':[_0x5a5f9c]},[],'convertInlineImageToBlock'),_0x26bc9a['start']['isBefore'](_0xca9263['start'])&&_0x33c3b2['markInsertion'](_0x1dd8e7['createRange'](_0x26bc9a['start'],_0xca9263['start']),'convertInlineImageToBlock'),_0xca9263['end']['isBefore'](_0x26bc9a['end'])&&_0x33c3b2['markInsertion'](_0x1dd8e7['createRange'](_0xca9263['end'],_0x26bc9a['end']),'convertInlineImageToBlock');});}),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x33c3b2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ce816])=>{const _0x28f18b=_0x33c3b2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x366a4c=_0x3ce816['start'],_0x364b1c=_0x3ce816['end'];const _0xc14fcf=_0x174eb9['model']['schema']['getNearestSelectionRange'](_0x366a4c,'backward'),_0x192b91=_0x174eb9['model']['schema']['getNearestSelectionRange'](_0x364b1c,'forward');_0xc14fcf['isCollapsed']&&(_0x366a4c=_0xc14fcf['start']),_0x192b91['isCollapsed']&&(_0x364b1c=_0x192b91['end']),_0x28f18b([_0x174eb9['model']['createRange'](_0x366a4c,_0x364b1c)]);}),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3f5887),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3f5887)),_0x174eb9['plugins']['has']('ImageCaptionEditing')&&(_0x33c3b2['enableCommand']('toggleImageCaption',(_0x3e3111,_0x273376)=>{const _0x5c680c=_0x174eb9['plugins']['get']('ImageCaptionUtils');let _0x39d3aa=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0x2f94e1=_0x5c680c['getCaptionFromImageModelElement'](_0x39d3aa);_0x174eb9['model']['change'](()=>{if(_0x2f94e1)return void _0x33c3b2['markDeletion'](_0x174eb9['model']['createRangeOn'](_0x2f94e1));const _0x5c7bad=_0x5a80cf['isBlockImage'](_0x39d3aa);_0x3e3111(_0x273376),_0x39d3aa=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0x2f94e1=_0x5c680c['getCaptionFromImageModelElement'](_0x39d3aa),_0x33c3b2['markInsertion'](_0x174eb9['model']['createRangeOn'](_0x2f94e1),_0x5c7bad?null:'imageCaption');});}),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3f5887));const _0x10c23f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x434542(_0xf5a3a7,_0x403223){const _0x11c841=_0x10c23f['findIndex'](({type:_0x194164,subType:_0x1665ed})=>_0xf5a3a7['type']==_0x194164&&_0xf5a3a7['subType']==_0x1665ed),_0x52279d=_0x10c23f['findIndex'](({type:_0x243bac,subType:_0x41bc94})=>_0x403223['type']==_0x243bac&&_0x403223['subType']==_0x41bc94);if(_0x11c841<0x0||_0x52279d<0x0)return!0x1;const _0x544bfe=_0xf5a3a7['getFirstRange'](),_0x4b1c98=_0x403223['getFirstRange']();if((0x0==_0x11c841||0x1==_0x11c841)&&0x2==_0x52279d&&_0x544bfe['isIntersecting'](_0x4b1c98))return!0x0;if(0x2==_0x11c841&&0x3==_0x52279d){const _0x4bd5a9=_0x33c3b2['_findSuggestions'](_0x544bfe,'insertion')['filter'](({suggestion:_0xed3ad9,meta:_0x211772})=>_0x211772['isOwn']&&'convertInlineImageToBlock'==_0xed3ad9['subType']);if(_0x4bd5a9['length']>0x1&&_0x4b1c98['end']['isEqual'](_0x544bfe['start']))return!0x0;if(0x1==_0x4bd5a9['length']&&(_0x544bfe['start']['isEqual'](_0x4b1c98['end'])||_0x544bfe['end']['isEqual'](_0x4b1c98['start'])))return!0x0;}if(0x3==_0x11c841&&0x3==_0x52279d&&_0x544bfe['start']['isBefore'](_0x4b1c98['start'])){const _0x1f9027=_0x544bfe['end']['nodeAfter'],_0x41fa30=_0x4b1c98['start']['nodeBefore'];return _0x5a80cf['isBlockImage'](_0x1f9027)&&_0x1f9027===_0x41fa30;}return!0x1;}function _0x3f5887(_0x96419e,_0x473118){return _0x434542(_0x96419e,_0x473118)?[_0x96419e,_0x473118]:_0x434542(_0x473118,_0x96419e)?[_0x473118,_0x96419e]:null;}_0x174eb9['plugins']['has']('ImageResize')&&(_0x33c3b2['enableDefaultAttributesIntegration']('resizeImage'),_0x33c3b2['registerBlockAttribute']('resizedWidth'),_0x33c3b2['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x41b872,'FORMAT_IMAGE_SIZE'))),_0x174eb9['plugins']['has']('ImageTextAlternativeEditing')&&(_0x33c3b2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x33c3b2['registerBlockAttribute']('alt')),_0x174eb9['plugins']['has']('PictureEditing')&&(_0x33c3b2['registerBlockAttribute']('sources'),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0xab3f0e=>{if('attribute'!=_0xab3f0e['type'])return;const {data:_0x39c243}=_0xab3f0e;return _0x39c243&&'sources'==_0x39c243['key']?{'type':'format','content':''}:void 0x0;})),_0x174eb9['plugins']['has']('ImageSizeAttributes')&&(_0x33c3b2['registerBlockAttribute']('width'),_0x33c3b2['registerBlockAttribute']('height'),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x2100e5=>{if('attribute'!=_0x2100e5['type'])return;const {data:_0x2b4900}=_0x2100e5;return!_0x2b4900||'width'!=_0x2b4900['key']&&'height'!=_0x2b4900['key']?void 0x0:{'type':'format','content':''};})),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x18c7ba=>{if(!!_0x10c23f['find'](({type:_0x41d6be,subType:_0x37710d})=>_0x18c7ba['type']==_0x41d6be&&_0x18c7ba['subType']==_0x37710d))return _0x18c7ba['previous']?{}:void 0x0;}),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x11b052=>{if('insertion'==_0x11b052['type']||'deletion'==_0x11b052['type']){const _0x4ddbed=_0x11b052['getContainedElement']();if(_0x4ddbed&&_0x4ddbed['is']('element','caption'))return{'type':'insertion'==_0x11b052['type']?'addObject':'removeObject','element':_0x4ddbed,'quantity':0x1};}}),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x70fde8=>'formatBlock'==_0x70fde8['type']&&'convertInlineImageToBlock'==_0x70fde8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x70fde8['type']&&'convertBlockImageToInline'==_0x70fde8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x4c6d1c=>{if('attribute'!=_0x4c6d1c['type'])return;const {data:_0x4db1e0}=_0x4c6d1c;if(!_0x4db1e0||'alt'!=_0x4db1e0['key'])return;const _0x357163=_0x4db1e0['newValue'];return _0x357163?{'type':'format','content':c(_0x41b872,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x357163+'\x22')}:{'type':'format','content':c(_0x41b872,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc59f=this['editor'],_0xecc37e=_0x4bc59f['locale'];_0x4bc59f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460d45=>{if('formatBlock'!=_0x460d45['type']&&'formatInline'!=_0x460d45['type'])return;const {data:_0x26c13d}=_0x460d45;if(_0x26c13d){if('imageTextAlternative'==_0x26c13d['commandName']){const _0x58820d=_0x26c13d['commandParams'][0x0]['newValue'];return _0x58820d?{'type':'format','content':c(_0xecc37e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58820d+'\x22')}:{'type':'format','content':c(_0xecc37e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x26c13d['commandName']){const _0x89cbce=_0x26c13d['commandParams'][0x0]['width'];return _0x89cbce?{'type':'format','content':c(_0xecc37e,'*Set\x20image\x20width:*\x20%0',_0x89cbce)}:{'type':'format','content':c(_0xecc37e,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f0757=this['editor']['locale'],_0x3c0892=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c0892['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c0892['registerBlockAttribute']('src'),_0x3c0892['descriptionFactory']['registerDescriptionCallback'](_0x5f5690=>{if('attribute'!=_0x5f5690['type'])return;const {data:_0x5a9db0}=_0x5f5690;return _0x5a9db0&&'src'==_0x5a9db0['key']?_0x5a9db0['newValue']&&_0x5a9db0['oldValue']?{'type':'format','content':c(_0x3f0757,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x312be0=this['editor']['plugins']['get']('TrackChangesEditing');_0x312be0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x312be0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x312be0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x312be0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325d58=this['editor'],_0x1a201f=_0x325d58['locale'];_0x325d58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b3602=>{if('formatBlock'!=_0x2b3602['type']&&'formatInline'!=_0x2b3602['type'])return;const {data:_0x407eb6}=_0x2b3602;if(!_0x407eb6||'replaceImageSource'!=_0x407eb6['commandName'])return;return{'type':'format','content':c(_0x1a201f,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c587b{['afterInit'](){const _0x542ecb=this['editor'];if(!_0x542ecb['plugins']['has']('ImageStyleEditing'))return;const _0x47e84a=_0x542ecb['plugins']['get']('TrackChangesEditing'),_0x3fdbf4=_0x542ecb['plugins']['get']('ImageUtils'),_0x1f0593={};_0x47e84a['enableCommand']('imageStyle',(_0x53e035,_0x646281)=>{const _0x1ed321=_0x542ecb['plugins']['get']('Users')['me'],_0x1053b5=_0x542ecb['commands']['get']('imageStyle');let _0x40eaf8=_0x3fdbf4['getClosestSelectedImageElement'](_0x542ecb['model']['document']['selection']),_0x2278aa=_0x542ecb['model']['createRangeOn'](_0x40eaf8),_0x1d50f5=_0x1053b5['value'];if(_0x1d50f5==_0x646281['value'])return;const _0x1733c7={'commandName':'imageStyle','commandParams':[_0x646281],'formatGroupId':_0x2565c0()};_0x542ecb['model']['change'](()=>{if(_0x47e84a['getSuggestions']()['filter'](_0xd79a88=>_0xd79a88['isInContent']&&_0x1ed321==_0xd79a88['author']&&('formatBlock'==_0xd79a88['type']||'formatInline'==_0xd79a88['type'])&&('imageStylePreApply'==_0xd79a88['subType']||'imageStylePostApply'==_0xd79a88['subType'])&&_0xd79a88['getFirstRange']()['isEqual'](_0x2278aa))['forEach'](_0x284470=>_0x47e84a['discardSuggestion'](_0x284470['head'])),_0x40eaf8=_0x3fdbf4['getClosestSelectedImageElement'](_0x542ecb['model']['document']['selection']),_0x2278aa=_0x542ecb['model']['createRangeOn'](_0x40eaf8),_0x1053b5['refresh'](),_0x542ecb['commands']['get']('imageTypeInline')['refresh'](),_0x542ecb['commands']['get']('imageTypeBlock')['refresh'](),_0x1d50f5=_0x1053b5['value'],_0x1d50f5!=_0x646281['value'])return _0x3fdbf4['isInlineImage'](_0x40eaf8)&&_0x1053b5['shouldConvertImageType'](_0x646281['value'],_0x40eaf8)?(_0x53e035({..._0x646281,'setImageSizes':!0x1}),_0x40eaf8=_0x3fdbf4['getClosestSelectedImageElement'](_0x542ecb['model']['document']['selection']),void _0x47e84a['markBlockFormat'](_0x40eaf8,{..._0x1733c7,'commandReversedParams':[{'value':_0x1d50f5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3fdbf4['isBlockImage'](_0x40eaf8)?_0x47e84a['markBlockFormat'](_0x40eaf8,_0x1733c7,[],'imageStylePostApply'):_0x47e84a['markInlineFormat'](_0x2278aa,_0x1733c7,'imageStylePostApply'));});});for(const _0x53e828 of _0x542ecb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f0593[_0x53e828['name']]=_0x53e828['title']['toLowerCase']();_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2a2db0])=>{_0x3fdbf4['setImageNaturalSizeAttributes'](_0x2a2db0['getContainedElement']());}),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4b44e3,_0x352c60)=>{_0x47e84a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4b44e3,{'commandName':_0x352c60['commandName'],'commandParams':_0x352c60['commandReversedParams']});}),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5a4dfd,_0x3b30a6){if(_0x5be2a7(_0x5a4dfd,_0x3b30a6))return[_0x5a4dfd,_0x3b30a6];if(_0x5be2a7(_0x3b30a6,_0x5a4dfd))return[_0x3b30a6,_0x5a4dfd];return null;});const _0x475108=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5be2a7(_0x108e90,_0xf71c73){const _0x416adf=_0x475108['findIndex'](({type:_0x50c832,subType:_0x1df714})=>_0x108e90['type']==_0x50c832&&_0x108e90['subType']==_0x1df714),_0x385673=_0x475108['findIndex'](({type:_0x17276a,subType:_0x3c9b01})=>_0xf71c73['type']==_0x17276a&&_0xf71c73['subType']==_0x3c9b01);if(_0x416adf<0x0||_0x385673<0x0)return!0x1;const _0x31f930=_0x108e90['getFirstRange'](),_0x10afb6=_0xf71c73['getFirstRange']();if((0x0==_0x416adf||0x1==_0x416adf)&&0x2==_0x385673&&_0x31f930['isIntersecting'](_0x10afb6))return!0x0;if(0x2==_0x416adf&&0x3==_0x385673){const _0x4fe322=_0x47e84a['_findSuggestions'](_0x31f930,'insertion')['filter'](({suggestion:_0x386f5f,meta:_0x23ed95})=>_0x23ed95['isOwn']&&'convertInlineImageToBlock'==_0x386f5f['subType']);if(_0x4fe322['length']>0x1&&_0x10afb6['end']['isEqual'](_0x31f930['start']))return!0x0;if(0x1==_0x4fe322['length']&&(_0x31f930['start']['isEqual'](_0x10afb6['end'])||_0x31f930['end']['isEqual'](_0x10afb6['start'])))return!0x0;}if(0x3==_0x416adf&&0x3==_0x385673&&_0x31f930['start']['isBefore'](_0x10afb6['start'])){const _0x522d5f=_0x31f930['end']['nodeAfter'],_0x4b7c78=_0x10afb6['start']['nodeBefore'];return _0x3fdbf4['isBlockImage'](_0x522d5f)&&_0x522d5f===_0x4b7c78;}return!0x1;}_0x542ecb['model']['document']['registerPostFixer'](()=>{let _0x34a281=!0x1;const _0x457c6f=Array['from'](_0x542ecb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34a903,data:_0x5d040c}of _0x457c6f){const {group:_0x5554c7,type:_0x4f0d43,subType:_0x10cf0a,id:_0x1d7345}=_0x47e84a['_splitMarkerName'](_0x34a903);if('suggestion'==_0x5554c7&&_0x47e84a['hasSuggestion'](_0x1d7345)){if('formatBlock'==_0x4f0d43&&('imageStylePreApply'==_0x10cf0a||'imageStylePostApply'==_0x10cf0a)){const _0x4e19ad=_0x47e84a['getSuggestion'](_0x1d7345);if(_0x5d040c['newRange']){const _0x5916d1=_0x4e19ad['getFirstRange']()['getContainedElement']();if(_0x3fdbf4['isBlockImage'](_0x5916d1))continue;_0x47e84a['discardSuggestion'](_0x4e19ad),_0x34a281=!0x0;}}if('insertion'==_0x4f0d43&&'imageCaption'==_0x10cf0a&&!_0x5d040c['newRange']){const _0x407f4e=_0x47e84a['getSuggestion'](_0x1d7345);_0x407f4e['next']&&_0x407f4e['next']['isInContent']&&(_0x47e84a['discardSuggestion'](_0x407f4e['next']),_0x34a281=!0x0);}}}return _0x34a281;}),this['_registerLegacyDescription'](_0x1f0593);}['_registerLegacyDescription'](_0x2c1682){const _0x2f9d2b=this['editor'],_0x21f120=_0x2f9d2b['locale'];_0x2f9d2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x449a7f=>{if('formatBlock'!=_0x449a7f['type']&&'formatInline'!=_0x449a7f['type'])return;const {data:_0x2c527d}=_0x449a7f;if(!_0x2c527d||'imageStyle'!=_0x2c527d['commandName'])return;const _0x856e53=_0x2c527d['commandParams'][0x0]['value'];return _0x3da26f('side'===_0x856e53?c(_0x21f120,'FORMAT_SIDE_IMAGE'):_0x2c1682[_0x856e53]||_0x856e53);function _0x3da26f(_0x1f0c14){return{'type':'format','content':c(_0x21f120,'*Format:*\x20%0',_0x1f0c14)};}});}}class ut extends _0x5c587b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3872aa){super(_0x3872aa),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x486e64=this['editor'],_0xd8d522=_0x486e64['commands']['get']('importWord'),_0x3ec571=_0x486e64['commands']['get']('trackChanges');_0xd8d522&&(_0xd8d522['on']('execute',(_0x42c981,[,_0x3e4599])=>{this['_trackChangesValueDuringImport']=_0x3ec571['value'],_0x3e4599['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd8d522,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd8d522,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3ec571['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x486e64['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x32584a,_0x4670cc){const {suggestions:_0x52c5a8}=_0x4670cc,_0x1ca191=this['editor']['commands']['get']('trackChanges'),_0x59d60b=_0x1ca191['value'];this['_trackChangesValueDuringImport']!==_0x59d60b&&(_0x1ca191['execute'](),this['_trackChangesExecuted']=!0x0),_0x52c5a8&&_0x52c5a8['forEach'](({id:_0x181785,type:_0xaed74b,author:_0x349097,created_at:_0x580b68})=>{const _0x402fc3={'id':_0x181785,'type':_0xaed74b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x349097,'createdAt':_0x580b68?new Date(_0x580b68):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x402fc3);});}}class ft extends _0x5c587b{['afterInit'](){const _0x2c37ce=this['editor'],_0xf0d73b=_0x2c37ce['plugins']['get']('TrackChangesEditing');if(_0x2c37ce['plugins']['has']('IndentEditing')&&(_0xf0d73b['enableCommand']('indent'),_0xf0d73b['enableCommand']('outdent')),_0x2c37ce['plugins']['has']('IndentBlock')){for(const _0x51f623 of['indentBlock','outdentBlock'])_0xf0d73b['enableDefaultAttributesIntegration'](_0x51f623);}const _0x55e327=_0x2c37ce['locale'];_0xf0d73b['registerBlockAttribute']('blockIndent'),_0xf0d73b['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x55e327,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cffe2=this['editor'],_0x62e94b=_0x1cffe2['locale'],_0x15be59=_0x1cffe2['plugins']['get']('TrackChangesEditing');_0x15be59['descriptionFactory']['registerDescriptionCallback'](_0x29f9a2=>{if('formatBlock'!=_0x29f9a2['type'])return;const {data:_0x129f45}=_0x29f9a2;if(!_0x129f45)return;if('indentBlock'!=_0x129f45['commandName']&&'outdentBlock'!=_0x129f45['commandName'])return;const _0x29c323=_0x29f9a2['getItems']()[0x0],_0x5e8700=_0x15be59['descriptionFactory']['getItemLabel'](_0x29c323);return'indentBlock'==_0x129f45['commandName']?{'type':'format','content':c(_0x62e94b,'*Indent:*\x20%0',_0x5e8700)}:'outdentBlock'==_0x129f45['commandName']?{'type':'format','content':c(_0x62e94b,'*Outdent:*\x20%0',_0x5e8700)}:void 0x0;});}}class ht extends _0x5c587b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c587b{['afterInit'](){const _0x4b6eba=this['editor'];if(!_0x4b6eba['plugins']['has']('LinkEditing'))return;const _0x26097d=_0x4b6eba['plugins']['get']('TrackChangesEditing'),_0x883371=_0x4b6eba['commands']['get']('link');_0x26097d['enableDefaultAttributesIntegration']('link'),_0x26097d['enableDefaultAttributesIntegration']('unlink'),_0x26097d['registerInlineAttribute']('linkHref');for(const _0x8f5ec4 of _0x883371['manualDecorators'])_0x26097d['registerInlineAttribute'](_0x8f5ec4['id']),_0x26097d['descriptionFactory']['registerAttributeLabel'](_0x8f5ec4['id'],'link\x20('+_0x8f5ec4['label']['toLowerCase']()+')');_0x26097d['descriptionFactory']['registerDescriptionCallback'](_0x22e762=>{if('attribute'!=_0x22e762['type'])return;const {data:_0x1bfd69}=_0x22e762;if(!_0x1bfd69||'linkHref'!=_0x1bfd69['key'])return;const _0x40aa63=_0x1bfd69['newValue'],_0x279328=_0x4b6eba['locale'];return{'type':'format','content':null==_0x40aa63?c(_0x279328,'*Remove\x20link*'):c(_0x279328,'*Set\x20link:*\x20%0','\x22'+_0x40aa63+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b7f52=this['editor'],_0x1024a1=_0x5b7f52['locale'];_0x5b7f52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x141491=>{if('formatInline'!=_0x141491['type'])return;const {data:_0x497af8}=_0x141491;if(_0x497af8){if('link'==_0x497af8['commandName']){const _0x4572ce=_0x497af8['commandParams'][0x0];return{'type':'format','content':c(_0x1024a1,'*Set\x20link:*\x20%0','\x22'+_0x4572ce+'\x22')};}return'unlink'==_0x497af8['commandName']?{'type':'format','content':c(_0x1024a1,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c587b{['afterInit'](){const _0x2905f2=this['editor'],_0x49db68=_0x2905f2['locale'];if(!_0x2905f2['plugins']['has']('LegacyListEditing'))return;const _0x341cbe=_0x2905f2['plugins']['get']('TrackChangesEditing'),_0x438e73=_0x2905f2['plugins']['has']('LegacyTodoListEditing');function _0x4c39ad(_0x462df4){return()=>{const _0x67c337=_0x2905f2['model']['document']['selection'],_0x5eb0c0=_0x2905f2['commands']['get'](_0x462df4);if(_0x5eb0c0['value'])return void _0x2905f2['execute']('paragraph',{});const _0x2c50de=_0x462df4['slice'](0x0,-0x4),_0x4f6a1c=function(_0x35ef52,_0x10d714,_0x57bb45){let _0x167213=Array['from'](_0x35ef52)['filter'](_0x1ff376=>function(_0xc44bf8,_0x325f6e){return _0x325f6e['checkChild'](_0xc44bf8['parent'],'listItem')&&!_0x325f6e['isObject'](_0xc44bf8);}(_0x1ff376,_0x57bb45));_0x167213=_0x167213['filter'](_0x2cbb05=>!_0x2cbb05['is']('element','listItem')||_0x2cbb05['getAttribute']('listType')!=_0x10d714);const _0x2fec94=new Set();for(const _0x3e1124 of _0x167213)_0x3e1124['is']('element','listItem')?_0x2fec94['add'](Le(_0x3e1124)):_0x2fec94['add'](_0x3e1124);return Array['from'](_0x2fec94);}(_0x67c337['getSelectedBlocks'](),_0x2c50de,_0x2905f2['model']['schema']);_0x2905f2['model']['change'](()=>{for(const _0x15dbba of _0x4f6a1c)_0x341cbe['markBlockFormat'](_0x15dbba,{'commandName':_0x462df4,'commandParams':[{'forceValue':!_0x5eb0c0['value']}],'formatGroupId':'blockName'},Ee(_0x15dbba));});};}function _0x35778c(_0x3acb0d){return()=>{const _0x225dfa=function(_0x3b5e8b){let _0x68c48e=Array['from'](_0x3b5e8b);const _0x244c4f=_0x68c48e['findIndex'](_0x520f9e=>'listItem'!=_0x520f9e['name']);return _0x244c4f>-0x1&&(_0x68c48e=_0x68c48e['slice'](0x0,_0x244c4f)),_0x68c48e;}(_0x2905f2['model']['document']['selection']['getSelectedBlocks']()),_0x59cac0=_0x2905f2['model']['createRange'](_0x2905f2['model']['createPositionAt'](_0x225dfa[0x0],'before'),_0x2905f2['model']['createPositionAt'](_0x225dfa[_0x225dfa['length']-0x1],'end'));_0x2905f2['model']['change'](()=>{_0x341cbe['markBlockFormat'](_0x59cac0,{'commandName':_0x3acb0d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2bd93f){const _0x57860d=new Set();for(const _0x255d85 of _0x2bd93f){let _0x5a3ac9=_0x255d85['nextSibling'];for(;_0x5a3ac9&&_0x5a3ac9['getAttribute']('listIndent')>_0x255d85['getAttribute']('listIndent');)_0x57860d['add'](_0x5a3ac9),_0x5a3ac9=_0x5a3ac9['nextSibling'];}return Array['from'](_0x57860d);}(_0x225dfa));});};}_0x341cbe['enableCommand']('numberedList',_0x4c39ad('numberedList')),_0x341cbe['enableCommand']('bulletedList',_0x4c39ad('bulletedList')),_0x438e73&&_0x341cbe['enableCommand']('todoList',_0x4c39ad('todoList')),_0x341cbe['enableCommand']('indentList',_0x35778c('indentList')),_0x341cbe['enableCommand']('outdentList',_0x35778c('outdentList')),_0x438e73&&_0x341cbe['enableCommand']('checkTodoList',()=>{const _0xc0f257=_0x2905f2['commands']['get']('checkTodoList'),_0x22c7be=Array['from'](_0xc0f257['_selectedElements']);_0x22c7be['filter'](_0x44a3a8=>_0x44a3a8['getAttribute']('todoListChecked')!=_0xc0f257['value']),_0x2905f2['model']['change'](()=>{for(const _0x458bd7 of _0x22c7be)_0x341cbe['markBlockFormat'](_0x458bd7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc0f257['value']}]});});}),_0x341cbe['descriptionFactory']['registerElementLabel']('listItem',_0x1e6043=>c(_0x49db68,'ELEMENT_LIST_ITEM',_0x1e6043)),_0x341cbe['descriptionFactory']['registerDescriptionCallback'](_0x33deb6=>{if('formatBlock'!=_0x33deb6['type']&&'formatInline'!=_0x33deb6['type'])return;const {data:_0x201834}=_0x33deb6;if(_0x201834){if('numberedList'==_0x201834['commandName']||'bulletedList'==_0x201834['commandName']||'todoList'==_0x201834['commandName'])switch(_0x201834['commandName']['replace']('List','')){case'bulleted':return _0x1a5662(c(_0x49db68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a5662(c(_0x49db68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a5662(c(_0x49db68,'ELEMENT_TODO_LIST'));}if('indentList'==_0x201834['commandName'])return{'type':'format','content':c(_0x49db68,'*Indent:*\x20%0',c(_0x49db68,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x201834['commandName'])return{'type':'format','content':c(_0x49db68,'*Outdent:*\x20%0',c(_0x49db68,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x201834['commandName'])return _0x201834['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x49db68,'*Check\x20item*')}:{'type':'format','content':c(_0x49db68,'*Uncheck\x20item*')};}function _0x1a5662(_0xdd087e){return{'type':'format','content':c(_0x49db68,'*Change\x20to:*\x20%0',_0xdd087e)};}});}}function Le(_0x167cc2){const _0x432687=_0x167cc2['getAttribute']('listIndent');if(0x0==_0x432687)return _0x167cc2;let _0x22479b=_0x167cc2;for(;_0x167cc2['previousSibling']&&_0x167cc2['previousSibling']['is']('element','listItem');){const _0x4591e8=_0x167cc2['previousSibling']['getAttribute']('listIndent');if(_0x4591e8==_0x432687)_0x22479b=_0x167cc2['previousSibling'];else{if(_0x4591e8<_0x432687)break;}_0x167cc2=_0x167cc2['previousSibling'];}return _0x22479b;}function Ee(_0x46c28a){const _0x2fb98e=[];if(_0x46c28a['is']('element','listItem')&&_0x46c28a['getAttribute']('listIndent')>0x0){let _0x44d036=_0x46c28a['nextSibling'];for(;_0x44d036&&'listItem'==_0x44d036['name']&&_0x44d036['getAttribute']('listIndent')==_0x46c28a['getAttribute']('listIndent');)_0x2fb98e['push'](_0x44d036),_0x44d036=_0x44d036['nextSibling'];}return _0x2fb98e;}class Q extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4c96a1=this['editor']['config']['get']('list.properties'),_0x2391c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c96a1['styles']&&_0x2391c6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4c96a1['reversed']&&_0x2391c6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4c96a1['startIndex']&&_0x2391c6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2391c6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x163708,_0x4e840b={}){const _0x6d7fbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13f636=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6d7fbf['markMultiRangeBlockFormat'](_0x13f636,{'commandName':'listStyle','commandParams':[{'type':_0x4e840b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x16ef9d,_0x25dcd9={}){const _0x5b2b7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33230d=this['_getSuggestionBlocks'](_0xdfa074=>_0xdfa074['is']('element','listItem')&&'numbered'===_0xdfa074['getAttribute']('listType'));if(_0x33230d['length']<0x1)return;const _0x29ab46=_0x33230d['map'](_0x3f0418=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f0418,'before'),this['editor']['model']['createPositionAt'](_0x3f0418,0x0)));this['editor']['model']['change'](()=>{_0x5b2b7c['markMultiRangeBlockFormat'](_0x29ab46,{'commandName':'listReversed','commandParams':[{'reversed':_0x25dcd9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2cc1c6,_0x492522={}){const _0x1dfe24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x393777=this['_getSuggestionBlocks'](_0x2ac700=>_0x2ac700['is']('element','listItem')&&'numbered'===_0x2ac700['getAttribute']('listType'));if(_0x393777['length']<0x1)return;const _0x577a02=_0x393777['map'](_0x566c8e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x566c8e,'before'),this['editor']['model']['createPositionAt'](_0x566c8e,0x0)));this['editor']['model']['change'](()=>{_0x1dfe24['markMultiRangeBlockFormat'](_0x577a02,{'commandName':'listStart','commandParams':[{'startIndex':_0x492522['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a8237){if('formatBlock'!=_0x5a8237['type']&&'formatInline'!=_0x5a8237['type'])return;const _0x2a08b5=this['editor']['locale'],{data:_0x1c1b6d}=_0x5a8237;if(!_0x1c1b6d)return;let _0x1fe4a5,_0x10ef67;switch(_0x1c1b6d['commandName']){case'listStyle':_0x1fe4a5='*Change\x20to:*\x20%0',_0x10ef67={'type':'format','content':c(_0x2a08b5,_0x1fe4a5,c(_0x2a08b5,this['_getTranslationKeyForListStyle'](_0x1c1b6d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1fe4a5=_0x1c1b6d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10ef67={'type':'format','content':c(_0x2a08b5,_0x1fe4a5)};break;case'listStart':_0x1fe4a5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10ef67={'type':'format','content':c(_0x2a08b5,_0x1fe4a5,_0x1c1b6d['commandParams'][0x0]['startIndex'])};}return _0x10ef67;}['_getSuggestionBlocksForListStyle'](){const _0x33e7f6=this['editor']['plugins']['get']('LegacyListUtils');let _0x5515d5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5515d5[0x0]?.['is']('element','listItem')&&_0x5515d5['unshift'](..._0x33e7f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5515d5[_0x5515d5['length']-0x1]?.['is']('element','listItem')&&_0x5515d5['push'](..._0x33e7f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5515d5=[...new Set(_0x5515d5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5515d5=_0x5515d5['filter'](_0x48001c=>_0x48001c['is']('element','listItem'))),_0x5515d5;}['_getSuggestionBlocks'](_0x25eeab){const _0x4fcd2c=this['editor']['plugins']['get']('LegacyListUtils');let _0xcc8e9a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25eeab)['map'](_0x35dd84=>{const _0x34abfe=this['editor']['model']['createPositionAt'](_0x35dd84,0x0);return[..._0x4fcd2c['getSiblingNodes'](_0x34abfe,'backward'),..._0x4fcd2c['getSiblingNodes'](_0x34abfe,'forward')];})['flat']();return _0xcc8e9a=[...new Set(_0xcc8e9a)],_0xcc8e9a;}['_getTranslationKeyForListStyle'](_0x47a018){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47a018)||'default')['toUpperCase']()+'_LIST_'+_0x47a018['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5c587b{['afterInit'](){const _0x58b7db=this['editor'];if(!_0x58b7db['plugins']['has']('MediaEmbedEditing'))return;const _0x3cbdd9=_0x58b7db['plugins']['get']('TrackChangesEditing'),_0x1818f2=_0x58b7db['locale'];_0x3cbdd9['enableCommand']('mediaEmbed'),_0x3cbdd9['descriptionFactory']['registerElementLabel']('media',_0x23b250=>c(_0x1818f2,'ELEMENT_MEDIA',_0x23b250)),_0x58b7db['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3c4a8d,{writer:_0x2e1a36,options:_0x1ad1fa})=>{if(_0x1ad1fa['showSuggestionHighlights'])return _0x2e1a36['createEmptyElement']('div');},'converterPriority':'high'}),_0x58b7db['data']['downcastDispatcher']['on']('attribute:url:media',(_0x368a80,_0x23c8aa,_0x1d94f7)=>{_0x1d94f7['options']['showSuggestionHighlights']&&_0x368a80['stop']();},{'priority':'high'});}}class pt extends _0x5c587b{['afterInit'](){const _0x408100=this['editor'];_0x408100['plugins']['has']('MentionEditing')&&_0x408100['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5c587b{['afterInit'](){const _0x56674f=this['editor'];if(!_0x56674f['plugins']['has']('MergeFieldsEditing'))return;const _0x492467=_0x56674f['plugins']['get']('TrackChangesEditing'),_0x1ad75c=_0x56674f['locale'];_0x492467['enableCommand']('insertMergeField'),_0x492467['enableCommand']('insertMergeFieldBlock'),_0x492467['enableCommand']('insertMergeFieldImage'),_0x492467['descriptionFactory']['registerElementLabel']('mergeField',_0x49bd99=>c(_0x1ad75c,'ELEMENT_MERGE_FIELD',_0x49bd99)),_0x492467['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1abca1=>c(_0x1ad75c,'ELEMENT_MERGE_FIELD',_0x1abca1)),_0x492467['descriptionFactory']['registerDescriptionCallback'](_0x439af4=>{if('insertion'!=_0x439af4['type']&&'deletion'!=_0x439af4['type'])return;const _0x55379e=_0x439af4['getContainedElement']();if(null==_0x55379e)return;const _0x26336e=_0x56674f['plugins']['get']('MergeFieldsEditing');let _0x395152;switch(_0x26336e['getMergeFieldType'](_0x55379e)){case null:return;case'image':{const _0x8bbd9e=_0x26336e['unwrapAffixes'](_0x55379e['getAttribute']('src'));_0x395152=_0x26336e['getLabel'](_0x8bbd9e)||_0x8bbd9e;break;}default:{const _0x503485=_0x55379e['getAttribute']('id');_0x395152=_0x26336e['getLabel'](_0x503485)||_0x503485;break;}}return'insertion'==_0x439af4['type']?{'type':'insertion','content':c(_0x1ad75c,'*Insert:*\x20%0','\x22'+_0x395152+'\x22\x20'+c(_0x1ad75c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1ad75c,'*Remove:*\x20%0','\x22'+_0x395152+'\x22\x20'+c(_0x1ad75c,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5c587b{['afterInit'](){const _0x51dc11=this['editor'],_0x51d8f2=_0x51dc11['plugins']['get']('TrackChangesEditing');_0x51dc11['plugins']['has']('MultiLevelList')&&(_0x51d8f2['enableDefaultAttributesIntegration']('multiLevelList'),_0x51d8f2['registerBlockAttribute']('listMarkerStyle'),_0x51d8f2['descriptionFactory']['registerDescriptionCallback'](_0x23c01d=>this['handleDescriptions'](_0x23c01d)));}['handleDescriptions'](_0x5c1d89){const _0x1da9aa=this['editor']['locale'],{data:_0x375d34}=_0x5c1d89,_0x389a0f={'type':'format','content':''};if(_0x375d34&&'listMarkerStyle'==_0x375d34['key']){if(!_0x375d34['oldValue'])return{'type':'format','content':c(_0x1da9aa,'*Set\x20format:*\x20%0',c(_0x1da9aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x375d34['newValue']+')'};if(!_0x375d34['newValue']){let _0xe8ecea=_0x5c1d89['head'];for(;_0xe8ecea;){if(_0xe8ecea['data']&&'listType'==_0xe8ecea['data']['key']&&_0xe8ecea['data']['newValue'])return _0x389a0f;_0xe8ecea=_0xe8ecea['next'];}return{'type':'format','content':c(_0x1da9aa,'*Remove\x20format:*\x20%0',c(_0x1da9aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x375d34['oldValue']+')'};}}}}class bt extends _0x5c587b{['afterInit'](){const _0x5df5ce=this['editor'];if(!_0x5df5ce['plugins']['has']('PageBreakEditing'))return;_0x5df5ce['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4ca5dd=_0x5df5ce['plugins']['get']('TrackChangesEditing'),_0x5c39f1=_0x5df5ce['locale'];_0x4ca5dd['descriptionFactory']['registerElementLabel']('pageBreak',_0xb7aa33=>c(_0x5c39f1,'ELEMENT_PAGE_BREAK',_0xb7aa33));}}class yt extends _0x5c587b{['afterInit'](){const _0x5abd21=this['editor'];if(!_0x5abd21['plugins']['has']('Paragraph'))return;const _0x44bf3a=_0x5abd21['locale'],_0x5e815d=_0x5abd21['plugins']['get']('TrackChangesEditing');_0x5e815d['descriptionFactory']['registerElementLabel']('paragraph',_0x3fc36b=>c(_0x44bf3a,'ELEMENT_PARAGRAPH',_0x3fc36b)),_0x5e815d['enableDefaultAttributesIntegration']('paragraph'),_0x5e815d['enableCommand']('insertParagraph'),_0x5abd21['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5abd21),{'priority':'highest'}),_0x5abd21['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23bde6,_0x466086,_0x254bf1)=>{_0x254bf1['options']['showSuggestionHighlights']&&nr(_0x5abd21,{'showActiveMarker':!0x1})(_0x23bde6,_0x466086,_0x254bf1);},{'priority':'highest'});const _0x297f48=_0x5e815d['descriptionFactory'];_0x297f48['registerDescriptionCallback'](_0xa8b285=>{if('insertion'!==_0xa8b285['type'])return;const {start:_0x16c757,end:_0xd1c2d}=_0xa8b285['getFirstRange']();if(!_0x16c757['isTouching'](_0xd1c2d)||!_0x16c757['nodeAfter'])return;const _0xb5cb98=_0x5abd21['model']['schema'],_0x225d99=_0x16c757['nodeAfter'];return _0xb5cb98['isBlock'](_0x225d99)&&!_0xb5cb98['isLimit'](_0x225d99)&&_0xb5cb98['checkChild'](_0x225d99,'$text')?{'type':'insertion','content':c(_0x44bf3a,'*Insert:*\x20%0',_0x297f48['getItemLabel'](_0x225d99,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442b6f=this['editor'],_0x25d30e=_0x442b6f['locale'];_0x442b6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x266deb=>{if('formatBlock'!=_0x266deb['type'])return;const {data:_0x2943d6}=_0x266deb;return _0x2943d6&&'paragraph'==_0x2943d6['commandName']?{'type':'format','content':c(_0x25d30e,'*Change\x20to:*\x20%0',c(_0x25d30e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5763e3,{showActiveMarker:_0x30921a=!0x0}={}){return(_0x492940,_0x2e7c52,_0x2c3395)=>{const _0x20f995=_0x5763e3['plugins']['get']('TrackChangesEditing'),_0x43332c=_0x2e7c52['markerRange']['start'],_0x15cd4d=_0x2e7c52['markerRange']['end'],_0x40a257=_0x5763e3['model']['schema'];if(!_0x43332c['isTouching'](_0x15cd4d)||!_0x43332c['nodeAfter'])return;const _0x3d92d1=_0x43332c['nodeAfter'];if(_0x40a257['isBlock'](_0x3d92d1)&&!_0x40a257['isLimit'](_0x3d92d1)&&_0x40a257['checkChild'](_0x3d92d1,'$text')){if(!_0x2c3395['consumable']['consume'](_0x2e7c52['markerRange'],_0x492940['name']))return;const {id:_0x5b3bb1,authorId:_0x4b39ef}=_0x20f995['_splitMarkerName'](_0x2e7c52['markerName']),_0x18621c=_0x2c3395['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5b3bb1,'data-author-id':_0x4b39ef}),_0x586f42=_0x2c3395['mapper']['toViewPosition'](_0x15cd4d);_0x30921a&&_0x20f995['activeMarkers']['includes'](_0x2e7c52['markerName'])&&_0x2c3395['writer']['addClass']('ck-suggestion-marker--active',_0x18621c),_0x2c3395['writer']['insert'](_0x586f42,_0x18621c),_0x2c3395['mapper']['bindElementToMarker'](_0x18621c,_0x2e7c52['markerName']);}};}class jt extends _0x5c587b{['afterInit'](){const _0x5d4004=this['editor'];_0x5d4004['commands']['get']('replaceSource')&&_0x5d4004['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c587b{['afterInit'](){const _0x3f9b0f=this['editor'];if(!_0x3f9b0f['plugins']['has']('RemoveFormatEditing'))return;_0x3f9b0f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcbad=this['editor'];_0x4fcbad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49ca5a=>{if('formatBlock'!=_0x49ca5a['type']&&'formatInline'!=_0x49ca5a['type'])return;const {data:_0x522a9f}=_0x49ca5a;return _0x522a9f&&'removeFormat'==_0x522a9f['commandName']?{'type':'format','content':c(_0x4fcbad['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5c587b{['afterInit'](){const _0x195d17=this['editor'];if(!_0x195d17['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5cdd05=_0x195d17['plugins']['get']('TrackChangesEditing');_0x5cdd05['enableCommand']('goToPreviousRestrictedEditingException'),_0x5cdd05['enableCommand']('goToNextRestrictedEditingException');const _0x4a465c=_0x195d17['plugins']['get']('RestrictedEditingModeEditing');_0x4a465c['enableCommand']('trackChanges'),_0x4a465c['enableCommand']('acceptSuggestion'),_0x4a465c['enableCommand']('discardSuggestion'),_0x4a465c['enableCommand']('acceptAllSuggestions'),_0x4a465c['enableCommand']('discardAllSuggestions'),_0x4a465c['enableCommand']('acceptSelectedSuggestions'),_0x4a465c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5c587b{['afterInit'](){const _0x1c8c49=this['editor'];if(!_0x1c8c49['plugins']['has']('ShiftEnter'))return;const _0x31975a=_0x1c8c49['plugins']['get']('TrackChangesEditing');_0x31975a['enableCommand']('shiftEnter'),_0x1c8c49['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1c8c49),{'priority':'high'}),_0x1c8c49['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1c8c49),{'priority':'high'}),_0x1c8c49['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x112b15,_0x918bdb,_0x2f79ff)=>{_0x2f79ff['options']['showSuggestionHighlights']&&je(_0x1c8c49,{'showActiveMarker':!0x1})(_0x112b15,_0x918bdb,_0x2f79ff);}),_0x31975a['descriptionFactory']['registerElementLabel']('softBreak',_0xf05c50=>c(_0x1c8c49['locale'],'ELEMENT_LINE_BREAK',_0xf05c50));}}function je(_0x454722,{showActiveMarker:_0x3fcd98=!0x0}={}){return(_0x368ba8,_0x3d6b5b,_0x7281ba)=>{const _0x5260cf=_0x454722['plugins']['get']('TrackChangesEditing');if(!_0x7281ba['consumable']['test'](_0x3d6b5b['markerRange'],_0x368ba8['name']))return;const _0x2ce180=_0x454722['model'];for(const _0x2ce448 of _0x3d6b5b['markerRange']['getItems']()){if(!_0x2ce448['is']('element','softBreak'))continue;const _0x4bdf26='deletion'==_0x3d6b5b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4d5a17,authorId:_0x168cab}=_0x5260cf['_splitMarkerName'](_0x3d6b5b['markerName']),_0x5077a7=_0x7281ba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bdf26,'data-suggestion':_0x4d5a17,'data-author-id':_0x168cab}),_0x2b3378=_0x7281ba['mapper']['toViewPosition'](_0x2ce180['createPositionBefore'](_0x2ce448));_0x3fcd98&&_0x5260cf['activeMarkers']['includes'](_0x3d6b5b['markerName'])&&_0x7281ba['writer']['addClass']('ck-suggestion-marker--active',_0x5077a7),_0x7281ba['writer']['insert'](_0x2b3378,_0x5077a7),_0x7281ba['mapper']['bindElementToMarker'](_0x5077a7,_0x3d6b5b['markerName']);}};}class _t extends _0x5c587b{['afterInit'](){const _0x40ee37=this['editor'],_0x30e172=_0x40ee37['model'],_0x32a8e1=_0x40ee37['locale'];if(!_0x40ee37['plugins']['has']('StandardEditingModeEditing'))return;const _0x324f2e=_0x40ee37['plugins']['get']('TrackChangesEditing'),_0x1d355d='restrictedEditingException',_0x392978=_0x40ee37['commands']['get'](_0x1d355d);_0x324f2e['enableCommand'](_0x1d355d,(_0x15b2b6,_0x1efe65={})=>{const _0x52dcb4=_0x30e172['document']['selection'];if(_0x52dcb4['isCollapsed'])return void _0x15b2b6(_0x1efe65);const _0x4faea1=void 0x0!==_0x1efe65['forceValue']?_0x1efe65['forceValue']:!_0x392978['value'];_0x30e172['change'](()=>{const _0x13b393=Array['from'](_0x52dcb4['getRanges']());for(const _0x29f261 of _0x13b393){const _0x48c129=_0x4faea1?[_0x29f261]:io(_0x1d355d,_0x29f261,_0x30e172);for(const _0x1f42ee of _0x48c129)_0x324f2e['markInlineFormat'](_0x1f42ee,{'commandName':_0x1d355d,'commandParams':[{'forceValue':_0x4faea1}]});}});}),_0x324f2e['descriptionFactory']['registerDescriptionCallback'](_0x4d74a0=>{if('formatBlock'!=_0x4d74a0['type']&&'formatInline'!=_0x4d74a0['type'])return;const {data:_0x471863}=_0x4d74a0;return _0x471863&&_0x471863['commandName']==_0x1d355d?_0x471863['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32a8e1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x32a8e1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5c587b{['afterInit'](){const _0xac617c=this['editor'];if(!_0xac617c['plugins']['has']('Style')||!_0xac617c['plugins']['has']('DataSchema'))return;const _0x4a101d=_0xac617c['plugins']['get']('TrackChangesEditing'),_0x511c04=_0xac617c['locale'],_0x5c1b2f=_0xac617c['config']['get']('style')||{},_0x126720=_0xac617c['plugins']['get']('GeneralHtmlSupport'),_0x54b0ec=_0xac617c['plugins']['get']('StyleUtils')['normalizeConfig'](_0xac617c['plugins']['get']('DataSchema'),_0x5c1b2f['definitions']);_0x4a101d['enableDefaultAttributesIntegration']('style');const _0x3f35bf=new Set();for(const _0x4e237d of _0x54b0ec['block']){const _0x46026d=_0x126720['getGhsAttributeNameForElement'](_0x4e237d['element']);_0x3f35bf['add'](_0x46026d);}const _0x32b9cb=new Set();for(const _0x34251c of _0x54b0ec['inline']){const _0xb9deeb=_0x126720['getGhsAttributeNameForElement'](_0x34251c['element']);_0x32b9cb['add'](_0xb9deeb);for(const _0x4aace9 of _0x34251c['ghsAttributes'])_0x32b9cb['add'](_0x4aace9);}for(const _0x38f6c3 of _0x3f35bf)_0x4a101d['registerBlockAttribute'](_0x38f6c3),_0x4a101d['descriptionFactory']['registerAttributeLabel'](_0x38f6c3,c(_0x511c04,'FORMAT_STYLE'));for(const _0x24f439 of _0x32b9cb)_0x4a101d['registerInlineAttribute'](_0x24f439),_0x4a101d['descriptionFactory']['registerAttributeLabel'](_0x24f439,c(_0x511c04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16c45c=this['editor'],_0x5b1469=_0x16c45c['locale'];_0x16c45c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597061=>{if('formatBlock'!=_0x597061['type']&&'formatInline'!=_0x597061['type'])return;const {data:_0x393808}=_0x597061;return _0x393808&&'style'===_0x393808['commandName']?_0x393808['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5b1469,'*Set\x20format:*\x20%0',_0x393808['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5b1469,'*Remove\x20format:*\x20%0',_0x393808['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5c587b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5de369){super(_0x5de369),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x473df0=this['editor'],_0x3a1707=_0x473df0['model']['document']['selection'];if(!_0x473df0['plugins']['has']('TableEditing'))return;const _0x717f3d=_0x473df0['locale'],_0x4c726a=_0x473df0['plugins']['get']('TrackChangesEditing'),_0x55b06d=_0x473df0['plugins']['get']('TableUtils');_0x4c726a['descriptionFactory']['registerElementLabel']('table',_0x42278c=>c(_0x717f3d,'ELEMENT_TABLE',_0x42278c)),this['_setupColumnsRowsFixing'](),_0x4c726a['enableCommand']('insertTable'),_0x4c726a['enableCommand']('selectTableRow'),_0x4c726a['enableCommand']('selectTableColumn');for(const _0x5c2abf of['insertTableRowAbove','insertTableRowBelow']){const _0x52d762=_0x473df0['commands']['get'](_0x5c2abf);_0x4c726a['enableCommand'](_0x5c2abf,_0x1f9e76=>{_0x473df0['model']['change'](_0x48a527=>{_0x1f9e76();const _0x590348='above'===_0x52d762['order'],_0x35941c=_0x55b06d['getSelectionAffectedTableCells'](_0x3a1707),_0x446136=_0x55b06d['getRowIndexes'](_0x35941c),_0x55fe92=_0x590348?_0x446136['first']-0x1:_0x446136['last']+0x1,_0x16a3ac=_0x35941c[0x0]['findAncestor']('table'),_0x473336=_0x55b06d['createTableWalker'](_0x16a3ac,{'startRow':_0x55fe92,'endRow':_0x55fe92}),_0x545e87=Array['from'](_0x473336)['map'](_0x828fd0=>_0x48a527['createRangeOn'](_0x828fd0['cell']));_0x4c726a['markMultiRangeInsertion'](_0x545e87,'tableRow');});});}for(const _0x52c0b4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5cd1a8=_0x473df0['commands']['get'](_0x52c0b4);_0x4c726a['enableCommand'](_0x52c0b4,_0x233669=>{_0x473df0['model']['change'](_0x4795de=>{_0x233669();const _0x328688='left'===_0x5cd1a8['order'],_0x5eb5cd=_0x55b06d['getSelectionAffectedTableCells'](_0x3a1707),_0x8f537a=_0x55b06d['getColumnIndexes'](_0x5eb5cd),_0x4488ea=_0x328688?_0x8f537a['first']-0x1:_0x8f537a['last']+0x1,_0x4b2c55=_0x5eb5cd[0x0]['findAncestor']('table'),_0x12bd6f=_0x55b06d['createTableWalker'](_0x4b2c55,{'startRow':0x0,'column':_0x4488ea,'includeAllSlots':!0x1}),_0x5d8ce6=Array['from'](_0x12bd6f)['map'](_0x2eedb9=>_0x4795de['createRangeOn'](_0x2eedb9['cell']));_0x4c726a['markMultiRangeInsertion'](_0x5d8ce6,'tableColumn');});});}for(const _0x1a5aa8 of['removeTableRow','removeTableColumn']){const _0x16c19d=_0x1a5aa8['substr'](0xb),_0xb007b3=_0x16c19d['toLowerCase'](),_0xd3ac01=_0xb007b3['substr'](0x0,0x3)+'span',_0x215973='table'+_0x16c19d,_0x16a4c2='min'+_0x16c19d,_0x2cc97b='max'+_0x16c19d;_0x4c726a['enableCommand'](_0x1a5aa8,()=>{_0x473df0['model']['change'](_0xe025da=>{const _0x4d2088=_0x55b06d['getSelectionAffectedTableCells'](_0x3a1707),_0x193891=_0x4d2088[0x0]['findAncestor']('table');let _0x3cd70c;if('removeTableRow'==_0x1a5aa8){const _0x44928b=_0x55b06d['getRowIndexes'](_0x4d2088);_0x3cd70c={'startRow':_0x44928b['first'],'endRow':_0x44928b['last'],'includeAllSlots':!0x0};}else{const _0x1fe702=_0x55b06d['getColumnIndexes'](_0x4d2088);_0x3cd70c={'startColumn':_0x1fe702['first'],'endColumn':_0x1fe702['last'],'includeAllSlots':!0x0};}const _0x38f043=_0x55b06d['createTableWalker'](_0x193891,_0x3cd70c),_0x5d9cd0=Array['from'](_0x38f043)['map'](({cell:_0x44c1a1})=>_0x44c1a1),_0x28fb73=xe(_0x5d9cd0['filter'](_0x5cab59=>_0x5cab59['hasAttribute'](_0xd3ac01))),_0x5f4e1e=xe(_0x5d9cd0['filter'](_0x3fc80b=>!_0x3fc80b['hasAttribute'](_0xd3ac01)))['map'](_0x5d95bd=>_0xe025da['createRangeOn'](_0x5d95bd)),_0x459908=_0x4c726a['markMultiRangeDeletion'](_0x5f4e1e,_0x215973);if(_0x459908&&('tableRow'==_0x459908['subType']||'tableColumn'==_0x459908['subType'])){const _0x15d714=this['_getSuggestionCoords'](_0x459908);for(const _0x282248 of _0x28fb73){const _0x13291f=_0xe025da['createRangeOn'](_0x282248),_0x38590e=_0x55b06d['getCellLocation'](_0x282248),_0x2f0a39=_0x282248['getAttribute'](_0xd3ac01)-0x1,_0x5a9c43=_0x15d714[_0x16a4c2],_0x2fce36=_0x15d714[_0x2cc97b];_0x5a9c43<=_0x38590e[_0xb007b3]&&_0x38590e[_0xb007b3]+_0x2f0a39<=_0x2fce36&&_0x459908['addRange'](_0x13291f);}}});});}function _0x2938f1(_0x17fd10){const _0x2ee1b1=Array['from'](_0x3a1707['getRanges']())['map'](_0x173bfd=>_0x4ce525['fromRange'](_0x173bfd));_0x473df0['model']['change'](_0x2f47e0=>{const _0x3cad3f=_0x2f47e0['batch'];_0x17fd10=_0x17fd10['filter'](_0x5df547=>'$graveyard'!=_0x5df547['root']['rootName']),_0x2f47e0['setSelection'](_0x17fd10),_0x473df0['commands']['get']('removeTableRow')['refresh'](),_0x473df0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x473df0['model']['enqueueChange'](()=>{_0x473df0['model']['enqueueChange'](_0x3cad3f,_0x48138d=>{const _0x590b8d=_0x2ee1b1['filter'](_0x49964f=>'$graveyard'!=_0x49964f['root']['rootName']);_0x590b8d['length']>0x0&&_0x48138d['setSelection'](_0x590b8d);for(const _0x22ffb2 of _0x2ee1b1)_0x22ffb2['detach']();});});});}function _0x52d46b(_0x3df9eb){_0x473df0['model']['change'](_0x5c4fe1=>{const _0x354266=Array['from'](_0x3a1707['getRanges']())['map'](_0x22945a=>_0x4ce525['fromRange'](_0x22945a)),_0x7caa3=[];for(const _0xc3a257 of _0x3df9eb)for(const _0x4523d6 of _0xc3a257['getItems']({'shallow':!0x0}))_0x7caa3['push'](_0x4523d6);for(const _0x5d65a7 of _0x7caa3)'$graveyard'!=_0x5d65a7['root']['rootName']&&(_0x5c4fe1['setSelection'](_0x5c4fe1['createPositionAt'](_0x5d65a7,0x0)),_0x473df0['commands']['get']('removeTableColumn')['refresh'](),_0x473df0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fe278=_0x354266['filter'](_0x2b6705=>'$graveyard'!=_0x2b6705['root']['rootName']);_0x3fe278['length']>0x0&&_0x5c4fe1['setSelection'](_0x3fe278);for(const _0x591eb5 of _0x354266)_0x591eb5['detach']();});}function _0x185a94(_0x2cf688,_0x20a41b){return _0x20a41b['every'](_0x3acee7=>_0x2cf688['some'](_0x9a75db=>_0x9a75db['end']['isEqual'](_0x3acee7['start'])||_0x3acee7['end']['isEqual'](_0x9a75db['start'])));}function _0x8a0a2e(_0x5c54e8,_0x10c8b5){return!_0x5c54e8['some'](_0x12978d=>_0x10c8b5['some'](_0x5ba04f=>_0x12978d['isIntersecting'](_0x5ba04f)))&&_0x5c54e8['some'](_0x951263=>_0x10c8b5['some'](_0x48d8c0=>_0x951263['end']['isTouching'](_0x48d8c0['start'])));}_0x473df0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5647e1,_0x2e2ea7,_0x29a125)=>{if(!_0x29a125['options']['showSuggestionHighlights'])return;const _0x5300aa=_0x2e2ea7['item'];if(!_0x5300aa||!_0x5300aa['is']('element','tableCell'))return;const _0x1c10de=_0x29a125['mapper']['toViewElement'](_0x5300aa);if(_0x1c10de){const {id:_0x52adcb,authorId:_0x42423a}=_0x4c726a['_splitMarkerName'](_0x2e2ea7['markerName']);_0x32595d(_0x1c10de,_0x29a125['writer'],(_0x522858,_0x43fb2d,_0x144cde)=>{_0x144cde['addClass'](_0x17eaef(_0x43fb2d['classes']),_0x522858),_0x144cde['setAttribute']('data-suggestion-id',_0x52adcb,_0x522858),_0x144cde['setAttribute']('data-author-id',_0x42423a,_0x522858);},(_0x3ea562,_0x44b29f,_0x54a45d)=>{_0x54a45d['removeClass'](_0x17eaef(_0x44b29f['classes']),_0x3ea562),_0x54a45d['removeAttribute']('data-suggestion-id',_0x3ea562),_0x54a45d['removeAttribute']('data-author-id',_0x3ea562);});}},{'priority':'highest'}),_0x4c726a['descriptionFactory']['registerDescriptionCallback'](_0x4f67d9=>{if('insertion'!=_0x4f67d9['type']&&'deletion'!=_0x4f67d9['type'])return;const _0x50f5f6=_0x4f67d9['getContainedElement']();if(null!=_0x50f5f6&&_0x50f5f6['is']('element','table')){if('insertion'==_0x4f67d9['type']){const _0x1ac25a=_0x4f67d9['getItems']()['filter'](_0x432b3a=>_0x432b3a['is']('$textProxy'))['map'](_0x1e9f34=>_0x1e9f34['data']);if(_0x1ac25a['length'])return{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ac25a['join']('\x20')+'\x22'))};}if('deletion'==_0x4f67d9['type']){const _0x2cf4b9=_0x4f67d9['getItems']()['filter'](_0x3e25e3=>_0x3e25e3['is']('$textProxy'))['map'](_0x33103c=>_0x33103c['data']);if(_0x2cf4b9['length'])return{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2cf4b9['join']('\x20')+'\x22'))};}}}),_0x4c726a['descriptionFactory']['registerDescriptionCallback'](_0x489b30=>{if('tableRow'==_0x489b30['subType']){const _0x3ec6bb=_0x489b30['getItems']()['filter'](_0x41c8fc=>_0x41c8fc['is']('$textProxy'))['map'](_0x118963=>_0x118963['data']),_0x1ab9d4=this['_getSuggestionCoords'](_0x489b30),_0x2bd1c5=_0x1ab9d4['maxRow']-_0x1ab9d4['minRow']+0x1;if('insertion'==_0x489b30['type'])return _0x3ec6bb['length']?{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd1c5,'\x22'+_0x3ec6bb['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW',_0x2bd1c5))};if('deletion'==_0x489b30['type'])return _0x3ec6bb['length']?{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd1c5,'\x22'+_0x3ec6bb['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW',_0x2bd1c5))};}if('tableColumn'==_0x489b30['subType']){const _0x96636a=_0x489b30['getItems']()['filter'](_0x537eec=>_0x537eec['is']('$textProxy'))['map'](_0x56ebba=>_0x56ebba['data']),_0x3210ee=this['_getSuggestionCoords'](_0x489b30),_0x4510af=_0x3210ee['maxColumn']-_0x3210ee['minColumn']+0x1;if('insertion'==_0x489b30['type'])return _0x96636a['length']?{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4510af,'\x22'+_0x96636a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN',_0x4510af))};if('deletion'==_0x489b30['type'])return _0x96636a['length']?{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4510af,'\x22'+_0x96636a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN',_0x4510af))};}}),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2938f1),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2938f1),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x52d46b),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x52d46b),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x185a94),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x185a94),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8a0a2e),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8a0a2e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x10d85e=this['editor'],_0x422630=_0x10d85e['model']['document']['selection'];return(_0x29b1ef,_0x200d09)=>{_0x10d85e['model']['change'](_0xe8a4a2=>{const {commandName:_0x4f418c,commandParams:_0x2a46db}=_0x200d09;let _0x312c41=_0x29b1ef[0x0]['end']['nodeBefore'];_0x2a46db&&_0x2a46db[0x0]&&!0x1===_0x2a46db[0x0]['forceValue']&&(_0x312c41=_0x29b1ef[0x0]['start']['nodeAfter']);const _0x52e64f=_0xe8a4a2['createRangeIn'](_0x312c41);if('$graveyard'==_0x52e64f['root']['rootName'])return;const _0x36318d=Array['from'](_0x422630['getRanges']())['map'](_0x171c40=>_0x4ce525['fromRange'](_0x171c40));_0xe8a4a2['setSelection'](_0x52e64f),_0x10d85e['commands']['get'](_0x4f418c)['refresh'](),_0x2a46db['push']({'forceDefaultExecution':!0x0}),_0x10d85e['execute'](_0x4f418c,..._0x2a46db);const _0x5b38a0=_0x36318d['filter'](_0x42126d=>'$graveyard'!=_0x42126d['root']['rootName']);_0x5b38a0['length']>0x0&&_0xe8a4a2['setSelection'](_0x5b38a0);for(const _0xb57198 of _0x36318d)_0xb57198['detach']();});};}['_getCoordsForCells'](_0x19a4b4){const _0x348e64=this['editor']['plugins']['get']('TableUtils');let _0x3bd6d5=Number['MAX_SAFE_INTEGER'],_0x4e858d=Number['MIN_SAFE_INTEGER'],_0x19240d=Number['MAX_SAFE_INTEGER'],_0x1ec358=Number['MIN_SAFE_INTEGER'];for(const _0x52779c of _0x19a4b4){if('$graveyard'==_0x52779c['root']['rootName'])continue;const {row:_0x3618fd,column:_0xa5e280}=_0x348e64['getCellLocation'](_0x52779c),_0x32bfb5=_0x52779c['hasAttribute']('rowspan')?_0x52779c['getAttribute']('rowspan')-0x1:0x0,_0x5bc6d9=_0x52779c['hasAttribute']('colspan')?_0x52779c['getAttribute']('colspan')-0x1:0x0;_0x3bd6d5=_0x3618fd<_0x3bd6d5?_0x3618fd:_0x3bd6d5,_0x4e858d=_0x3618fd+_0x32bfb5>_0x4e858d?_0x3618fd+_0x32bfb5:_0x4e858d,_0x19240d=_0xa5e280<_0x19240d?_0xa5e280:_0x19240d,_0x1ec358=_0xa5e280+_0x5bc6d9>_0x1ec358?_0xa5e280+_0x5bc6d9:_0x1ec358;}return{'minRow':_0x3bd6d5,'maxRow':_0x4e858d,'minColumn':_0x19240d,'maxColumn':_0x1ec358};}['_setupColumnsRowsFixing'](){const _0x1aece1=this['editor'],_0x418ac7=_0x1aece1['plugins']['get']('TrackChangesEditing'),_0x1bc502=_0x1aece1['plugins']['get']('TableUtils');_0x1aece1['model']['document']['on']('change:data',()=>{const _0x2d55ce=Array['from'](_0x1aece1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ebe1a,data:_0x419150}of _0x2d55ce){const {group:_0x4c75d0,id:_0x350f76,subType:_0x59e458}=_0x418ac7['_splitMarkerName'](_0x3ebe1a);if('suggestion'!=_0x4c75d0)continue;if(null!=_0x419150['oldRange'])continue;const _0x50f3af=_0x418ac7['getSuggestion'](_0x350f76);this['_tablePostFixingSubtypes']['includes'](_0x59e458)&&this['_tableSuggestions']['add'](_0x50f3af);}},{'priority':'low'});const _0xef13fb=(_0x225658,_0x2d85dd)=>{let _0x35cbf9=!0x1;const _0x3b724d=_0x2d85dd['createRangeOn'](_0x225658),_0x4b5939=_0x225658['findAncestor']('table'),_0x786501=_0x1bc502['getCellLocation'](_0x225658);for(const _0x9091f7 of this['_tableSuggestions']){const _0xfa2018=_0x9091f7['subType'],_0x11f83d=_0xfa2018['startsWith']('tablePaste'),_0x40d145=_0xfa2018['substr'](_0x11f83d?0xa:0x5),_0x3765d3=_0x40d145['toLowerCase'](),_0x1daff6=_0x3765d3['substr'](0x0,0x3)+'span',_0x25c3d4='min'+_0x40d145,_0x2572e1='max'+_0x40d145;if(!_0x9091f7['isInContent'])continue;if(_0x4b5939!=_0x9091f7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x9091f7['isIntersectingWithRange'](_0x3b724d))continue;const _0x57329d=_0x225658['hasAttribute'](_0x1daff6)?_0x225658['getAttribute'](_0x1daff6)-0x1:0x0,_0x4cd4a4=this['_getSuggestionCoords'](_0x9091f7),_0x2d15a5=_0x4cd4a4[_0x25c3d4],_0x1492b1=_0x4cd4a4[_0x2572e1];_0x2d15a5<=_0x786501[_0x3765d3]&&_0x786501[_0x3765d3]+_0x57329d<=_0x1492b1&&(_0x9091f7['addRange'](_0x3b724d),_0x35cbf9=!0x0);}return _0x35cbf9;};_0x1aece1['model']['document']['registerPostFixer'](_0x29b944=>{let _0x413744=!0x1;for(const _0x29bdc0 of _0x1aece1['model']['document']['differ']['getChanges']())if('insert'==_0x29bdc0['type']){if('tableRow'==_0x29bdc0['name']){for(const _0xbe1745 of _0x29bdc0['position']['nodeAfter']['getChildren']())_0x413744=_0x413744||_0xef13fb(_0xbe1745,_0x29b944);}else'tableCell'==_0x29bdc0['name']&&(_0x413744=_0x413744||_0xef13fb(_0x29bdc0['position']['nodeAfter'],_0x29b944));}return _0x413744;});}['_getSuggestionCoords'](_0x3379e2){return this['_getCoordsForCells'](_0x3379e2['getRanges']()['map'](_0xcdb6af=>_0xcdb6af['start']['nodeAfter']));}}function xe(_0x192863){return Array['from'](new Set(_0x192863)['values']());}class Nt extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x43476a=this['editor'],_0x13c2ae=_0x43476a['model']['document']['selection'],_0x35b3f3=_0x43476a['locale'];if(!_0x43476a['plugins']['has']('TableEditing'))return;const _0x55ef40=_0x43476a['plugins']['get']('TrackChangesEditing'),_0x436ab2=_0x43476a['plugins']['get']('TableUtils'),_0x17f57e=_0x43476a['plugins']['get'](Ct);_0x17f57e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x55ef40['enableCommand']('mergeTableCells',()=>{const _0x4528e1=_0x436ab2['getSelectionAffectedTableCells'](_0x43476a['model']['document']['selection']);_0x43476a['model']['change'](()=>{_0x55ef40['markMultiRangeBlockFormat'](_0x4528e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x43476a['commands']['get']('mergeTableCells')['on']('execute',(_0x219de7,_0x1529d8)=>{_0x43476a['commands']['get']('trackChanges')['value']&&(_0x1529d8['length']>0x0&&_0x1529d8[_0x1529d8['length']-0x1]&&_0x1529d8[_0x1529d8['length']-0x1]['forceDefaultExecution']||_0x55ef40['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x219de7['stop']());},{'priority':'highest'});for(const _0x3985ce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x317afb=_0x43476a['commands']['get'](_0x3985ce);_0x55ef40['enableCommand'](_0x3985ce,()=>{const _0xe324af=_0x43476a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xdd45d9=>_0xdd45d9['is']('element','tableCell')),_0x1d73fd=_0x317afb['value'];_0x43476a['model']['change'](()=>{_0x55ef40['markMultiRangeBlockFormat']([_0xe324af,_0x1d73fd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x407af6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4ddbcc=_0x43476a['commands']['get'](_0x407af6);_0x55ef40['enableCommand'](_0x407af6,()=>{const _0x4b2409=_0x436ab2['getSelectionAffectedTableCells'](_0x43476a['model']['document']['selection'])[0x0],_0x326889=_0x4b2409['findAncestor']('table'),{column:_0xff5b9,row:_0x41d2ac}=_0x436ab2['getCellLocation'](_0x4b2409);let _0x119cff=[];if('horizontally'==_0x4ddbcc['direction']){const _0x2074fe=_0x436ab2['createTableWalker'](_0x326889,{'startRow':_0x41d2ac,'endRow':_0x41d2ac,'includeAllSlots':!0x0});_0x119cff=Array['from'](_0x2074fe)['map'](_0x5ce80f=>_0x5ce80f['cell']);}else{const _0x1fea87=_0x436ab2['createTableWalker'](_0x326889,{'column':_0xff5b9,'includeAllSlots':!0x0});_0x119cff=Array['from'](_0x1fea87)['map'](_0x3da2b2=>_0x3da2b2['cell']);}_0x43476a['model']['change'](_0x2afc2a=>{_0x55ef40['markBlockFormat'](_0x2afc2a['createRangeOn'](_0x4b2409),{'commandName':_0x407af6,'commandParams':[]},_0x119cff,_0x407af6);});});}_0x55ef40['descriptionFactory']['registerDescriptionCallback'](_0x29909c=>{if('formatBlock'!=_0x29909c['type']&&'formatInline'!=_0x29909c['type'])return;const {data:_0x11ffe5}=_0x29909c;return _0x11ffe5&&'mergeTableCells'==_0x11ffe5['commandName']?{'type':'format','content':c(_0x35b3f3,'*Merge\x20cells*')}:void 0x0;}),_0x55ef40['descriptionFactory']['registerDescriptionCallback'](_0x5e87d6=>{if('formatBlock'!=_0x5e87d6['type']&&'formatInline'!=_0x5e87d6['type'])return;const {data:_0x3a52fd}=_0x5e87d6;return _0x3a52fd?'splitTableCellVertically'==_0x3a52fd['commandName']?{'type':'format','content':c(_0x35b3f3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3a52fd['commandName']?{'type':'format','content':c(_0x35b3f3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x25d222=_0x17f57e['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d9e29 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x55ef40['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d9e29,'accept',_0x25d222);for(const _0x55b7db of['splitTableCellVertically','splitTableCellHorizontally'])_0x55ef40['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55b7db,'accept',_0x25d222);_0x55ef40['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21a569=>{_0x43476a['model']['change'](_0x7e59b6=>{const _0x3198ba=Array['from'](_0x13c2ae['getRanges']())['map'](_0x3fed58=>_0x4ce525['fromRange'](_0x3fed58));_0x7e59b6['setSelection'](_0x21a569),_0x43476a['commands']['get']('mergeTableCells')['refresh'](),_0x43476a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b677b=_0x3198ba['filter'](_0x2f315d=>'$graveyard'!=_0x2f315d['root']['rootName']);_0x3b677b['length']>0x0&&_0x7e59b6['setSelection'](_0x3b677b);for(const _0x1caf00 of _0x3198ba)_0x1caf00['detach']();});});for(const _0x277ca6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x200530=_0x43476a['commands']['get'](_0x277ca6);_0x200530['on']('set:isEnabled',(_0x3056f7,_0x2a160f,_0x4a0942)=>{if(_0x4a0942){const _0x4ff71e=_0x43476a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45af95=>_0x45af95['is']('element','tableCell'));this['_areMergableCells'](_0x200530['value'],_0x4ff71e)||(_0x3056f7['return']=!0x1,_0x3056f7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5e1049=this['editor']['commands']['get']('mergeTableCells'),_0x55b86e=this['editor']['plugins']['get']('TableUtils');if(!_0x5e1049['isEnabled'])return!0x1;const _0x144d69=_0x55b86e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4ee42c of _0x144d69)for(const _0x2d8d9e of _0x144d69)if(_0x4ee42c!=_0x2d8d9e&&!this['_areMergableCells'](_0x4ee42c,_0x2d8d9e))return!0x1;return!0x0;}['_areMergableCells'](_0x3de79d,_0x40d27e){const _0x2b72ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35a692=this['editor']['model']['createRangeOn'](_0x3de79d),_0x183a47=this['editor']['model']['createRangeOn'](_0x40d27e),_0x288502=new Set(),_0x4f0d6c=new Set();for(const _0x51dc81 of _0x2b72ca['getSuggestions']())if(('insertion'==_0x51dc81['type']||'deletion'==_0x51dc81['type']||'mergeTableCells'==_0x51dc81['subType'])&&_0x51dc81['isInContent']){for(const _0x2338d5 of _0x51dc81['getRanges']())_0x2338d5['containsRange'](_0x35a692,!0x0)&&_0x288502['add'](_0x51dc81['type']+':'+_0x51dc81['author']['id']),_0x2338d5['containsRange'](_0x183a47,!0x0)&&_0x4f0d6c['add'](_0x51dc81['type']+':'+_0x51dc81['author']['id']);}if(_0x288502['size']!=_0x4f0d6c['size'])return!0x1;for(const _0x5ace0b of _0x288502)if(!_0x4f0d6c['has'](_0x5ace0b))return!0x1;return!0x0;}}class Dt extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x5945c0=this['editor'];if(!_0x5945c0['plugins']['has']('TableEditing'))return;const _0xac5776=_0x5945c0['locale'],_0xd73feb=_0x5945c0['plugins']['get']('TrackChangesEditing');_0xd73feb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xd73feb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xd73feb['registerBlockAttribute']('headingRows'),_0xd73feb['registerBlockAttribute']('headingColumns'),_0xd73feb['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xac5776,'FORMAT_HEADER_ROW')),_0xd73feb['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xac5776,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x525139=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd90d66=this['editor']['plugins']['get']('TableUtils'),_0x1394a7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5234b0({showActiveMarker:_0x5312da=!0x0,setDataAttribute:_0x1e5a26=!0x0}={}){return(_0x253300,_0x2a6cb8,_0x5975d8)=>{const {type:_0x40ab08,id:_0xb1efa4}=_0x525139['_splitMarkerName'](_0x2a6cb8['markerName']),_0x443bd5=_0x525139['getSuggestion'](_0xb1efa4),_0xce8548=_0x443bd5['data'];if('formatBlock'!=_0x443bd5['type']||!_0xce8548||'setTableColumnHeader'!=_0xce8548['commandName'])return;if(_0x2a6cb8['item'])return void _0x253300['stop']();if(!_0x5975d8['consumable']['consume'](_0x2a6cb8['markerRange'],_0x253300['name']))return;const _0x39ba9e=_0x2a6cb8['markerRange']['start']['nodeAfter'],_0x4f1cda=_0x2a6cb8['markerRange']['end']['nodeBefore'],_0xa4d063=_0x39ba9e['parent']['parent'],{column:_0x55c38f}=_0xd90d66['getCellLocation'](_0x39ba9e),{column:_0x43ba5d}=_0xd90d66['getCellLocation'](_0x4f1cda);for(let _0x18d819=_0x55c38f;_0x18d819<=_0x43ba5d;_0x18d819++){const _0x2bd7d9=_0xd90d66['createTableWalker'](_0xa4d063,{'column':_0x18d819,'includeAllSlots':!0x1});for(const _0x31ee30 of _0x2bd7d9){const _0x4a3546=_0x31ee30['cell'],_0x4afc01=_0x5975d8['mapper']['toViewElement'](_0x4a3546);_0x5975d8['writer']['addClass']('ck-suggestion-marker-'+_0x40ab08,_0x4afc01),_0x1e5a26&&_0x5975d8['writer']['setAttribute']('data-suggestion',_0xb1efa4,_0x4afc01),_0x5975d8['mapper']['bindElementToMarker'](_0x4afc01,_0x2a6cb8['markerName']),_0x5312da&&(_0x525139['activeMarkers']['includes'](_0x2a6cb8['markerName'])?_0x5975d8['writer']['addClass']('ck-suggestion-marker--active',_0x4afc01):_0x5975d8['writer']['removeClass']('ck-suggestion-marker--active',_0x4afc01));}}};}_0x525139['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1394a7),_0x525139['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1394a7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5234b0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x494b23,_0x31f49d,_0x5a6ced)=>{_0x5a6ced['options']['showSuggestionHighlights']&&_0x5234b0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x494b23,_0x31f49d,_0x5a6ced);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a3824,_0x6a5701,_0x1e182f)=>{const {type:_0x5740e2,id:_0x4d14ba}=_0x525139['_splitMarkerName'](_0x6a5701['markerName']),_0x53fd50=_0x525139['getSuggestion'](_0x4d14ba),_0x4e50cd=_0x53fd50['data'];if('formatBlock'!=_0x53fd50['type']||!_0x4e50cd||'setTableColumnHeader'!=_0x4e50cd['commandName'])return;const _0x200d43=_0x1e182f['mapper']['markerNameToElements'](_0x6a5701['markerName']);if(_0x200d43){for(const _0x2c010d of _0x200d43)_0x1e182f['writer']['removeClass']('ck-suggestion-marker-'+_0x5740e2,_0x2c010d),_0x1e182f['writer']['removeClass']('ck-suggestion-marker--active',_0x2c010d),_0x1e182f['writer']['removeAttribute']('data-suggestion',_0x2c010d),_0x1e182f['mapper']['unbindElementFromMarkerName'](_0x2c010d,_0x6a5701['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x253cc0=this['editor'],_0xcaff91=_0x253cc0['locale'];function _0x575690(_0x50a071){return{'type':'format','content':c(_0xcaff91,'*Format:*\x20%0',_0x50a071)};}_0x253cc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x71b754=>{if('formatBlock'!=_0x71b754['type'])return;const {data:_0x3ba066}=_0x71b754;if(_0x3ba066){if('setTableRowHeader'==_0x3ba066['commandName']){const _0x1c3305=_0x3ba066['commandParams'][0x0]['forceValue'];return _0x575690(c(_0xcaff91,_0x1c3305?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3ba066['commandName']){const _0x5df7b0=_0x3ba066['commandParams'][0x0]['forceValue'];return _0x575690(c(_0xcaff91,_0x5df7b0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5c587b{['afterInit'](){const _0x215ed0=this['editor'],_0x3d3a3f=_0x215ed0['locale'],_0x677bcf=_0x215ed0['plugins']['get']('TrackChangesEditing');function _0x5af795(_0x1538c2){return{'type':'format','content':''+c(_0x3d3a3f,'*Set\x20table\x20type:*\x20%0',_0x1538c2)};}_0x215ed0['plugins']['has']('TableLayout')&&(_0x677bcf['enableCommand']('insertTableLayout'),_0x677bcf['enableDefaultAttributesIntegration']('tableType'),_0x677bcf['registerBlockAttribute']('tableType'),_0x677bcf['descriptionFactory']['registerElementLabel'](_0x588614=>_0x588614['is']('element','table')&&'layout'===_0x588614['getAttribute']('tableType'),_0x37a652=>c(_0x3d3a3f,'ELEMENT_LAYOUT_TABLE',_0x37a652)),_0x677bcf['descriptionFactory']['registerDescriptionCallback'](_0x5ad0b2=>{const {data:_0x4158d9}=_0x5ad0b2;if(_0x4158d9&&'tableType'==_0x4158d9['key'])switch(_0x4158d9['newValue']){case'layout':return _0x5af795(c(_0x3d3a3f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5af795(c(_0x3d3a3f,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x354c95=>[_0x354c95,null]));class $t extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x126c7a=this['editor'];if(!_0x126c7a['plugins']['has']('TableClipboard'))return;const _0x178207=_0x126c7a['plugins']['get']('TrackChangesEditing'),_0x44cbd7=_0x126c7a['plugins']['get']('TableUtils'),_0x2374fc=_0x126c7a['plugins']['get'](Ct),_0x5e20d3=_0x126c7a['plugins']['get']('TableClipboard'),_0xf5a088=_0x126c7a['plugins']['get']('TableSelection'),_0x3c8056=_0x126c7a['plugins']['get'](_0x4a7527);_0x2374fc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x126c7a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x126c7a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5446af=null,_0x2ad211=!0x1;_0x3c8056['on']('contentInsertion',(_0x2bec3c,_0x1e2b24)=>{_0x2ad211='paste'===_0x1e2b24['method'];}),_0x126c7a['model']['on']('insertContent',(_0x25161a,_0xca1a60)=>{if(!_0x2ad211&&null===_0xf5a088['getSelectedTableCells']())return;const [_0x5f53ba,_0x47bc5c]=_0xca1a60,_0x511ee1=_0xca1a60[_0xca1a60['length']-0x1];_0x511ee1&&_0x511ee1['forceDefaultExecution']||_0x178207['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3c9d30,_0xf7c3a,_0x26f5aa,_0x3120a1,_0x204e0b){if(_0xf7c3a&&!_0xf7c3a['is']('documentSelection'))return!0x1;const _0x1031f7=_0x204e0b['getTableIfOnlyTableInContent'](_0x3c9d30,_0x26f5aa);if(!_0x1031f7||!He(_0x1031f7,void 0x0,_0x3120a1))return!0x1;const _0x2f2720=_0x3120a1['getSelectionAffectedTableCells'](_0x26f5aa['document']['selection']);if(!_0x2f2720['length'])return!0x1;const _0x339a59=_0x2f2720[0x0]['findAncestor']('table'),_0x3234f4=_0x3120a1['getRowIndexes'](_0x2f2720),_0x25c6f3=_0x3120a1['getColumnIndexes'](_0x2f2720),_0x27cd82={'startRow':_0x3234f4['first'],'endRow':_0x3234f4['last'],'startColumn':_0x25c6f3['first'],'endColumn':_0x25c6f3['last']};return 0x1==_0x2f2720['length']&&(_0x27cd82['endRow']+=_0x3120a1['getRows'](_0x1031f7)-0x1,_0x27cd82['endColumn']+=_0x3120a1['getColumns'](_0x1031f7)-0x1),He(_0x339a59,_0x27cd82,_0x3120a1);}(_0x5f53ba,_0x47bc5c,_0x126c7a['model'],_0x44cbd7,_0x5e20d3)&&(_0x25161a['stop'](),_0x5446af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x126c7a['model']['change'](()=>{_0x126c7a['model']['insertContent'](_0xca1a60[0x0],_0xca1a60[0x1],_0xca1a60[0x2],{'forceDefaultExecution':!0x0});const _0x492330=_0x2565c0(),{rowInsertionRanges:_0x47ddba,columnInsertionRanges:_0x5948e7,insertionRanges:_0x40f9cc,deletionRanges:_0x5afbee,cells:_0x3cdcbb}=_0x5446af;_0x47ddba['length']&&_0x178207['markMultiRangeInsertion'](_0x47ddba,'tablePasteRow',{'tablePasteChainId':_0x492330}),_0x5948e7['length']&&_0x178207['markMultiRangeInsertion'](_0x5948e7,'tablePasteColumn',{'tablePasteChainId':_0x492330}),_0x40f9cc['length']&&(_0x178207['markMultiRangeInsertion'](_0x40f9cc,'tablePaste',{'tablePasteChainId':_0x492330,'skipNestingCheck':!0x0}),_0x40f9cc['forEach'](_0x401996=>_0x401996['detach']?.())),_0x5afbee['length']&&(_0x178207['markMultiRangeDeletion'](_0x5afbee,'tablePaste',{'tablePasteChainId':_0x492330,'skipNestingCheck':!0x0}),_0x5afbee['forEach'](_0x596295=>_0x596295['detach']?.()));const _0x594255=_0x178207['markMultiRangeBlockFormat'](_0x3cdcbb['map'](({element:_0x42cb88})=>_0x42cb88),{'formatGroupId':_0x2565c0()},[],'tablePasteCell',{'tablePasteChainId':_0x492330});if(_0x594255){const _0x5905ef=_0x594255['getMarkers'](),_0x7d1b54=[];for(const {element:_0x5a07e2,attributes:_0x2f2cda}of _0x3cdcbb){if(!_0x2f2cda)continue;const _0x411812=_0x126c7a['model']['createRangeOn'](_0x5a07e2),_0x59a630=_0x5905ef['find'](_0x3228bb=>_0x3228bb['getRange']()['isEqual'](_0x411812));_0x59a630&&_0x7d1b54['push']([_0x59a630['name'],_0x2f2cda]);}_0x7d1b54['length']&&_0x594255['setAttribute']('markerAttributes',Object['fromEntries'](_0x7d1b54));}_0x5446af=null;}));},{'priority':_0x1896ea['high']+0xa}),_0x3c8056['on']('contentInsertion',()=>{_0x2ad211=!0x1;},{'priority':'lowest'}),_0x126c7a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x28a0bc,_0xb990e3)=>{const [_0x1c5d03,_0x521a2b,,_0x13e5c9]=_0xb990e3;if(!_0x5446af)return;_0x28a0bc['stop']();const _0x33b306=_0x1c5d03['cell'],_0x342c7d=_0x521a2b,_0x3d457a=De(_0x33b306),_0x45fa17=De(_0x342c7d);_0x28a0bc['return']=_0x33b306;let _0x4e73c0=null,_0x5b3ff6=null;if(_0x45fa17||_0x3d457a){if(_0x3d457a&&!_0x45fa17){_0x13e5c9['remove'](_0x33b306['getChild'](0x0));for(const _0x454479 of Array['from'](_0x342c7d['getChildren']()))_0x13e5c9['insert'](_0x454479,_0x33b306,'end');const _0x4c3e20=_0x5446af['rowInsertionIndexes']['includes'](_0x1c5d03['row']),_0x9bab4a=_0x5446af['columnInsertionIndexes']['includes'](_0x1c5d03['column']);_0x4c3e20||_0x9bab4a||(_0x4e73c0=_0x4ce525['fromRange'](_0x13e5c9['createRangeIn'](_0x33b306)));}else _0x45fa17&&!_0x3d457a&&(_0x5b3ff6=_0x13e5c9['createRangeIn'](_0x33b306));}else{const _0x2651b6=_0x13e5c9['createElement']('tableCellSuggestion'),_0x1a8b87=_0x13e5c9['createElement']('tableCellSuggestion');_0x13e5c9['wrap'](_0x13e5c9['createRangeIn'](_0x33b306),_0x1a8b87),_0x13e5c9['insert'](_0x2651b6,_0x33b306,0x0);for(const _0x237044 of Array['from'](_0x342c7d['getChildren']()))_0x13e5c9['insert'](_0x237044,_0x2651b6,'end');_0x4e73c0=_0x4ce525['fromRange'](_0x13e5c9['createRangeOn'](_0x2651b6)),_0x5b3ff6=_0x4ce525['fromRange'](_0x13e5c9['createRangeOn'](_0x1a8b87));}const _0x4bebc8=Array['from'](_0x342c7d['getAttributes']())['filter'](([_0x589ac5])=>Oe['includes'](_0x589ac5));_0x5446af['cells']['push']({'element':_0x33b306,'attributes':_0x4bebc8['length']?Object['fromEntries'](_0x4bebc8):null}),_0x4e73c0&&_0x5446af['insertionRanges']['push'](_0x4e73c0),_0x5b3ff6&&_0x5446af['deletionRanges']['push'](_0x5b3ff6);},{'priority':'high'}),_0x44cbd7['on']('insertColumns',(_0x5c64d5,_0x5057e5)=>{const [_0x343638,_0x2efbb0={}]=_0x5057e5;if(!_0x5446af)return;const _0x3ded29=_0x2efbb0['at']||0x0,_0x2529e4=_0x2efbb0['columns']||0x1;_0x5446af['columnInsertionIndexes']=new Array(_0x2529e4)['fill'](_0x3ded29)['map']((_0x259ff7,_0x8f0e39)=>_0x259ff7+_0x8f0e39);for(const {cell:_0x143618}of _0x44cbd7['createTableWalker'](_0x343638,{'startColumn':_0x3ded29,'endColumn':_0x3ded29+_0x2529e4-0x1}))_0x5446af['columnInsertionRanges']['push'](_0x126c7a['model']['createRangeOn'](_0x143618));},{'priority':'low'}),_0x44cbd7['on']('insertRows',(_0x5ebf74,_0x40f52c)=>{const [_0x349a61,_0x12d240={}]=_0x40f52c;if(!_0x5446af)return;const _0x5c5700=_0x12d240['at']||0x0,_0x510e8e=_0x12d240['rows']||0x1;_0x5446af['rowInsertionIndexes']=new Array(_0x510e8e)['fill'](_0x5c5700)['map']((_0x5d7665,_0x2cc009)=>_0x5d7665+_0x2cc009);for(const {cell:_0x36891c}of _0x44cbd7['createTableWalker'](_0x349a61,{'startRow':_0x5c5700,'endRow':_0x5c5700+_0x510e8e-0x1}))_0x5446af['rowInsertionRanges']['push'](_0x126c7a['model']['createRangeOn'](_0x36891c));},{'priority':'low'}),_0x178207['descriptionFactory']['registerDescriptionCallback'](_0x469cf9=>{if(_0x469cf9['subType']&&_0x469cf9['subType']['startsWith']('tablePaste'))return _0x469cf9['previous']?{}:{'type':'insertion','content':c(_0x126c7a['locale'],'*Replace\x20table\x20cells*')};});const _0x207722=()=>!0x1;for(const _0x118cab of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x178207['_suggestionFactory']['registerCustomCallback']('insertion',_0x118cab,'join',_0x207722),_0x178207['_suggestionFactory']['registerCustomCallback']('deletion',_0x118cab,'join',_0x207722),_0x178207['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x118cab,'join',_0x207722);_0x178207['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x207722),_0x178207['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2dd5dc,_0x39c3a4,_0x117ecf)=>{const _0x32bde6=_0x2dd5dc['map'](_0x3f76ff=>_0x3f76ff['getContainedElement']())['filter'](_0x262df6=>_0x262df6),_0x215745=new Map(_0x32bde6['map'](_0x2a8d60=>[_0x2a8d60,null]));if(_0x5446af){for(const {element:_0x5ca87b,attributes:_0x332cc3}of _0x5446af['cells'])_0x332cc3&&_0x215745['set'](_0x5ca87b,_0x332cc3);}else{if(_0x117ecf&&_0x117ecf['markerAttributes'])for(const [_0x4f39b6,_0x5d6c51]of Object['entries'](_0x117ecf['markerAttributes'])){const _0x1c3ec0=_0x126c7a['model']['markers']['get'](_0x4f39b6),_0x16cdbc=_0x1c3ec0?_0x1c3ec0['getRange']()['getContainedElement']():null;_0x16cdbc&&_0x215745['set'](_0x16cdbc,_0x5d6c51);}}_0x126c7a['model']['change'](_0x1010d8=>{for(const [_0x1e9ea3,_0x2cb295]of _0x215745)_0x1010d8['setAttributes']({...Ue,..._0x2cb295},_0x1e9ea3);});});const _0x14b1ac=(_0x4f5d7a,_0x527068)=>{_0x178207['_suggestionFactory']['registerCustomCallback'](_0x4f5d7a,'tablePaste',_0x527068,(_0x404a21,_0x2b2a32,_0x322c8c)=>{_0x126c7a['model']['change'](_0xe65908=>{const _0x4a0eb9=[];for(const _0x22e541 of _0x404a21){const _0x5680b3=_0x22e541['start']['nodeAfter'];_0x5680b3['is']('element','tableCellSuggestion')&&_0x4a0eb9['push'](_0x5680b3);}_0x178207['_suggestionFactory']['getSuggestionCallback'](_0x4f5d7a,null,_0x527068)(_0x404a21,_0x2b2a32,_0x322c8c);for(const _0x5f0743 of _0x4a0eb9)'$graveyard'!=_0x5f0743['root']['rootName']&&_0xe65908['unwrap'](_0x5f0743);});});};_0x14b1ac('insertion','accept'),_0x14b1ac('insertion','discard'),_0x14b1ac('deletion','accept'),_0x14b1ac('deletion','discard'),_0x178207['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5dab89=>{const _0x126308=_0x5dab89['map'](_0x412606=>_0x412606['getContainedElement']()),_0x14a85d=_0x126308[0x0]['findAncestor']('table'),{minRow:_0x5ac3d7,maxRow:_0x376104}=_0x2374fc['_getCoordsForCells'](_0x126308);_0x44cbd7['removeRows'](_0x14a85d,{'at':_0x5ac3d7,'rows':_0x376104-_0x5ac3d7+0x1});}),_0x178207['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55ec54=>{const _0x1a622c=_0x55ec54['map'](_0x1ed1ac=>_0x1ed1ac['getContainedElement']()),_0xf24186=_0x1a622c[0x0]['findAncestor']('table'),{minColumn:_0x53d8a9,maxColumn:_0x16f3df}=_0x2374fc['_getCoordsForCells'](_0x1a622c);_0x44cbd7['removeColumns'](_0xf24186,{'at':_0x53d8a9,'columns':_0x16f3df-_0x53d8a9+0x1});});const _0x17f7a4=(_0x27f909,_0x3caa6f)=>{if(!_0x3caa6f['subType']||!_0x3caa6f['subType']['startsWith']('tablePaste'))return;const _0x143eae=_0x3caa6f['attributes']['tablePasteChainId'],_0x5d7a2c=_0x178207['getSuggestions']()['filter'](_0x803fa9=>_0x803fa9['isInContent']&&_0x803fa9['attributes']&&_0x803fa9['attributes']['tablePasteChainId']==_0x143eae);_0x5d7a2c['length']&&_0x3caa6f['getAllAdjacentSuggestions']()['length']!=_0x5d7a2c['length']&&_0x5d7a2c['reduce']((_0x2a96e9,_0x3ac658)=>(_0x2a96e9['next']=_0x3ac658,_0x3ac658['previous']=_0x2a96e9,_0x3ac658));};function _0x6edef3(_0xa1f237,_0x3a9917=!0x0){const {id:_0x3a679a,authorId:_0x51c2dd}=_0x178207['_splitMarkerName'](_0xa1f237['markerName']),_0x593e34=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5bd774=_0x178207['activeMarkers']['includes'](_0xa1f237['markerName']);return _0x5bd774&&_0x593e34['push']('ck-suggestion-marker--active'),{'classes':_0x593e34,'attributes':{'data-suggestion':_0x3a679a,'data-author-id':_0x51c2dd},'priority':_0x5bd774&&_0x3a9917?0xbc2:0xbb8};}_0x178207['on']('suggestionLoaded',_0x17f7a4,{'priority':'high'}),_0x178207['on']('suggestionUnloaded',_0x17f7a4,{'priority':'high'}),_0x126c7a['model']['document']['registerPostFixer'](()=>{let _0x103193=!0x1;const _0x3de166=Array['from'](_0x126c7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x121cde,data:_0x55d52b}of _0x3de166){const {group:_0x2afb83,type:_0x4909f6,id:_0x1ea2c1}=_0x178207['_splitMarkerName'](_0x121cde);if('suggestion'!=_0x2afb83||'deletion'!=_0x4909f6||_0x55d52b['oldRange'])continue;if(!_0x178207['hasSuggestion'](_0x1ea2c1))continue;const _0x3b5fbb=_0x178207['getSuggestion'](_0x1ea2c1)['getRanges'](),_0x5a2a67=_0x126c7a['plugins']['get']('Users')['me'];for(const _0xa6411b of _0x178207['getSuggestions']()){if(!_0xa6411b['isInContent']||_0xa6411b['author']!=_0x5a2a67)continue;if('formatBlock'!=_0xa6411b['type']||'tablePasteCell'!=_0xa6411b['subType'])continue;if(_0xa6411b['getRanges']()['every'](_0x3afeac=>_0x3b5fbb['some'](_0x59b105=>_0x59b105['containsRange'](_0x3afeac,!0x0)))){for(const _0x56643d of _0xa6411b['getAllAdjacentSuggestions']())_0x56643d['isInContent']&&(_0x56643d['discard'](),_0x103193=!0x0);}}}return _0x103193;}),_0x126c7a['model']['document']['registerPostFixer'](_0x448221=>{const _0x441d4d=_0x126c7a['commands']['get']('redo');if(!_0x441d4d||!_0x441d4d['_createdBatches']['has'](_0x448221['batch']))return!0x1;let _0x4ee22c=!0x1;const _0x55b6f8=_0x126c7a['plugins']['get']('Users')['me'],_0x523cec=_0x126c7a['model']['document']['differ']['getChanges'](),_0xaa6484=Array['from'](_0x126c7a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2cbc7b,data:_0x2bd12c})=>{const {group:_0x364f2d,subType:_0x32e99f,authorId:_0xaf206a}=_0x178207['_splitMarkerName'](_0x2cbc7b);return'suggestion'==_0x364f2d&&'tablePaste'==_0x32e99f&&_0xaf206a==_0x55b6f8['id']&&!_0x2bd12c['oldRange'];});for(const _0x3ac04a of _0x523cec){if('insert'!=_0x3ac04a['type']||'tableCellSuggestion'!=_0x3ac04a['name']||0x1!=_0x3ac04a['length'])continue;const _0x3053a1=_0x448221['createRange'](_0x3ac04a['position'],_0x3ac04a['position']['getShiftedBy'](0x1));if(!_0xaa6484['find'](({data:_0x581841})=>_0x581841['newRange']['isEqual'](_0x3053a1))){for(const {name:_0x21be96,data:_0x100eb0}of _0xaa6484)if(_0x3053a1['containsRange'](_0x100eb0['newRange'])){_0x448221['updateMarker'](_0x21be96,{'range':_0x3053a1}),_0x4ee22c=!0x0;break;}}}return _0x4ee22c;}),_0x126c7a['model']['document']['registerPostFixer'](_0x2c4a39=>{let _0x48aad2=!0x1;const _0x4a892f=_0x126c7a['plugins']['get']('Users')['me'],_0x34b271=_0x178207['getSuggestions']()['filter'](_0x3731bf=>_0x3731bf['isInContent']&&_0x3731bf['author']==_0x4a892f),_0x57916f=new Set(),_0x2a3fc1=new Set();for(const _0x4093d8 of _0x34b271)if('tablePaste'==_0x4093d8['subType'])for(const _0x38c85e of _0x4093d8['getMarkers']()){const _0x494237=_0x38c85e['getRange']()['getContainedElement']();if(_0x494237){if(_0x494237['is']('element','tableCellSuggestion')&&De(_0x494237)){_0x4093d8['removeMarker'](_0x38c85e['name']),_0x57916f['add'](_0x494237),_0x48aad2=!0x0;const _0x5ab6b0=_0x494237['nextSibling'],_0x73990e=_0x494237['previousSibling'],_0x23ee4f=_0x5ab6b0&&_0x5ab6b0['is']('element','tableCellSuggestion'),_0x78296=_0x73990e&&_0x73990e['is']('element','tableCellSuggestion');_0x23ee4f&&!_0x57916f['has'](_0x5ab6b0)&&_0x2a3fc1['add'](_0x5ab6b0),_0x78296&&!_0x57916f['has'](_0x73990e)&&_0x2a3fc1['add'](_0x73990e);}else _0x494237['is']('element','paragraph')&&_0x494237['isEmpty']&&(_0x4093d8['removeMarker'](_0x38c85e['name']),_0x48aad2=!0x0);}}else{if('tablePasteCell'==_0x4093d8['subType']){if(!_0x4093d8['attributes']||!_0x4093d8['attributes']['tablePasteChainId'])continue;const _0xeb3a8f=_0x4093d8['attributes']['markerAttributes'];if(_0xeb3a8f&&Object['keys'](_0xeb3a8f)['length'])continue;const _0x1e372b=_0x4093d8['attributes']['tablePasteChainId'];let _0x490966=!0x0,_0x23bc36=!0x0;for(const _0x3e748a of _0x34b271)if(_0x3e748a['subType']&&_0x3e748a['subType']['startsWith']('tablePaste')){if(!_0x3e748a['attributes']['tablePasteChainId']){_0x23bc36=!0x1;break;}if(_0x3e748a['id']!=_0x4093d8['id']&&_0x3e748a['attributes']['tablePasteChainId']==_0x1e372b){_0x490966=!0x1;break;}}_0x23bc36&&_0x490966&&(_0x4093d8['removeMarkers'](),_0x48aad2=!0x0);}}for(const _0xa352f5 of _0x57916f)_0x2c4a39['remove'](_0xa352f5);for(const _0x217eee of _0x2a3fc1)_0x2c4a39['unwrap'](_0x217eee);return _0x48aad2;}),_0x126c7a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x20129a=>_0x6edef3(_0x20129a),'converterPriority':'high'}),_0x126c7a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x252bd8,_0x25f62d)=>_0x25f62d['options']['showSuggestionHighlights']?_0x6edef3(_0x252bd8,!0x1):null,'converterPriority':'high'});const _0x15b093=_0x126c7a['editing']['view'];this['listenTo'](_0x15b093['document'],'clipboardOutput',(_0xd304d0,_0x3eb8ae)=>{const _0x4c66d1=[];for(const _0x2c9cb1 of _0x15b093['createRangeIn'](_0x3eb8ae['content'])['getItems']())_0x2c9cb1['is']('element','suggestion-td')&&_0x4c66d1['push'](_0x2c9cb1);_0x15b093['change'](_0x8fee18=>{for(const _0x1f3ecd of _0x4c66d1)_0x8fee18['move'](_0x8fee18['createRangeIn'](_0x1f3ecd),_0x8fee18['createPositionBefore'](_0x1f3ecd)),_0x8fee18['remove'](_0x1f3ecd);});});}}function De(_0x2563c3){if(_0x2563c3['isEmpty'])return!0x0;const _0x16a9fd=_0x2563c3['getChild'](0x0);return _0x16a9fd['is']('element','paragraph')&&_0x16a9fd['isEmpty'];}function He(_0x582435,_0x31497d={},_0x534b0a){for(const {isAnchor:_0x11b592,cellHeight:_0x4b96c2,cellWidth:_0x16cda8}of _0x534b0a['createTableWalker'](_0x582435,{'includeAllSlots':!0x0,..._0x31497d}))if(!_0x11b592||0x1!=_0x4b96c2||0x1!=_0x16cda8)return!0x1;return!0x0;}class Bt extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d9889=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d9889['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1d9889['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d9889['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9889['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1d9889['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1d9889['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x50e1de,_0x1275c2){const _0x5c3789=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b935a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x27c056=_0x1275c2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x41056c=_0x5b935a['getColumnGroupElement'](_0x27c056);let _0xc44669=_0x41056c?_0x5b935a['getTableColumnsWidths'](_0x41056c):null,_0x53c2a1=_0x27c056['getAttribute']('tableWidth')||null;const _0x56411c=_0x1275c2['tableWidth']||_0x53c2a1,_0x59e7f8=_0x1275c2['columnWidths']||_0xc44669,_0x569701=this['editor']['plugins']['get']('Users')['me'];for(const _0x3be7d4 of _0x5c3789['getSuggestions']()){const _0x12862e=_0x3be7d4['getContainedElement']();if('resizeTable'===_0x3be7d4['subType']&&_0x12862e===_0x27c056){_0x3be7d4['author']!==_0x569701&&_0x3be7d4['discard']();const _0x4adb4a=_0x3be7d4['data']['commandParams'];_0x53c2a1=_0x4adb4a[0x0]['tableWidth'],_0xc44669=_0x4adb4a[0x0]['columnWidths'];break;}}_0x50e1de({'table':_0x27c056,'tableWidth':_0x56411c,'columnWidths':_0x59e7f8}),_0x5c3789['markBlockFormat'](_0x27c056,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x53c2a1,'columnWidths':_0xc44669}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4306c3){if('formatBlock'!=_0x4306c3['type']&&'formatInline'!=_0x4306c3['type'])return;const {data:_0x1b6a01}=_0x4306c3;if(_0x1b6a01&&'resizeTable'===_0x1b6a01['formatGroupId']){const _0xb59e4c='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0xb59e4c)};}}}class xt extends _0x5c587b{['afterInit'](){const _0x200921=this['editor'];_0x200921['plugins']['has']('Template')&&_0x200921['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5c587b{['afterInit'](){const _0x4f4cff=this['editor'];if(!_0x4f4cff['commands']['get']('insertTableOfContents'))return;_0x4f4cff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x22fac8=_0x4f4cff['plugins']['get']('TrackChangesEditing'),_0x4684ca=_0x4f4cff['locale'];_0x22fac8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x419cb7=>c(_0x4684ca,'ELEMENT_TABLE_OF_CONTENTS',_0x419cb7));}}class Rt extends _0x5c587b{['afterInit'](){const _0x49fdb4=this['editor'];if(!_0x49fdb4['plugins']['has']('Title'))return;const _0x142706=_0x49fdb4['plugins']['get']('TrackChangesEditing');_0x142706['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x49fdb4['locale'],'ELEMENT_TITLE')),_0x49fdb4['model']['document']['registerPostFixer'](_0x13fd99=>{let _0x15a297=!0x1;const _0x17d58a=Array['from'](_0x49fdb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45f2c7,data:_0x36394e}of _0x17d58a){const {group:_0x29af6a}=_0x142706['_splitMarkerName'](_0x45f2c7);if('suggestion'!==_0x29af6a||!_0x36394e['newRange'])continue;const _0x2bed73=_0x36394e['newRange'],_0x2219c9=_0x2bed73['end']['nodeBefore'];if(!_0x2219c9||!_0x2219c9['is']('element','title-content'))continue;if(!_0x2bed73['start']['isTouching'](_0x2bed73['end']))continue;const _0x23d63e=_0x49fdb4['model']['schema']['getNearestSelectionRange'](_0x2bed73['end'],'forward');if(_0x23d63e&&_0x23d63e['isCollapsed']){const _0x210f6e=_0x13fd99['createRange'](_0x2bed73['start'],_0x23d63e['start']);_0x210f6e['isEqual'](_0x2bed73)||(_0x13fd99['updateMarker'](_0x45f2c7,{'range':_0x210f6e}),_0x15a297=!0x0);}_0x15a297||(_0x13fd99['removeMarker'](_0x45f2c7),_0x15a297=!0x0);}return _0x15a297;});}}class Tt extends _0x5c587b{['afterInit'](){const _0x3e22e5=this['editor'],_0x60d967=_0x3e22e5['plugins']['get']('TrackChangesEditing');_0x3e22e5['plugins']['has']('Uploadcare')&&(_0x60d967['enableCommand']('uploadcare'),_0x3e22e5['plugins']['has']('UploadcareImageEdit')&&(_0x60d967['enableCommand']('uploadcareImageEdit'),_0x60d967['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x60d967['registerBlockAttribute']('uploadcareImageId'),_0x60d967['descriptionFactory']['registerDescriptionCallback'](_0x57f0d7=>{if('attribute'!=_0x57f0d7['type'])return;const {data:_0x621438}=_0x57f0d7;return _0x621438&&'uploadcareImageId'==_0x621438['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c587b{['afterInit'](){const _0x50466a=this['editor'],_0x20e774=_0x50466a['plugins']['get']('TrackChangesEditing');_0x50466a['plugins']['has']('UndoEditing')&&(_0x20e774['enableCommand']('undo'),_0x20e774['enableCommand']('redo'));}}class Ut extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x42d3c5=this['editor'];if(!_0x42d3c5['plugins']['has']('TableCaptionEditing'))return;_0x42d3c5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c587b{['tableProperties'];['tableCellProperties'];constructor(_0x270b1e){super(_0x270b1e),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 _0x1a3645=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1302b7 of this['tableProperties'])_0x1a3645['enableCommand'](_0x1302b7,(_0x4f4aed,_0x24e8f2)=>{const _0x34476a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1302b7,[_0x34476a],this['tableProperties'],'tableProperties',_0x4f4aed,_0x24e8f2);});_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1a3645['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x555b4f,_0x9b18a3)=>this['handleDiscardAction'](this['tableProperties'],_0x555b4f,_0x9b18a3)),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30ece0 of this['tableCellProperties'])_0x1a3645['enableCommand'](_0x30ece0,(_0xa47cb4,_0x4153d5)=>{const _0x46e3df=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30ece0,_0x46e3df,this['tableCellProperties'],'tableCellProperties',_0xa47cb4,_0x4153d5);});_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1a3645['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x199465,_0x1dd92e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x199465,_0x1dd92e)),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1a3645['descriptionFactory']['registerDescriptionCallback'](_0x2c4ab9=>this['handleSuggestionDescription'](_0x2c4ab9));}['_handlePropertyChange'](_0x31da77,_0x254c30,_0x49c4da,_0x4fbdd8,_0x142799,_0x133a0a){const _0x4a6988=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x133a0a['batch'],()=>{for(const _0x5e4ff2 of _0x254c30){if(this['_getSuggestion'](_0x5e4ff2,_0x4fbdd8))_0x142799(_0x133a0a);else{const _0x977b1f={};for(const _0x326659 of _0x49c4da){const _0x3f46e3=_0x5e4ff2['getAttribute'](_0x326659);void 0x0!==_0x3f46e3&&(_0x977b1f[_0x326659]=_0x3f46e3);}_0x142799(_0x133a0a),_0x4a6988['markBlockFormat'](_0x5e4ff2,{'commandParams':[_0x977b1f]},[],_0x4fbdd8);}}});}['handleDiscardAction'](_0x2bd37b,_0x458c0a,_0x4e3d37){const _0x5c291f=_0x458c0a[0x0]['start']['nodeAfter'],_0x2e8e4c=_0x4e3d37['commandParams'][0x0];this['editor']['model']['change'](_0x185221=>{for(const _0x31199 of _0x2bd37b)void 0x0!==_0x2e8e4c[_0x31199]?_0x185221['setAttribute'](_0x31199,_0x2e8e4c[_0x31199],_0x5c291f):_0x185221['removeAttribute'](_0x31199,_0x5c291f);});}['handleSuggestionDescription'](_0x5ab184){if(_0x5ab184['data'])switch(_0x5ab184['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'](_0x591e33,_0x16643a){const _0x315c7a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x191bdb of _0x315c7a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4955fb=_0x191bdb['getContainedElement']();if(_0x191bdb['subType']===_0x16643a&&_0x4955fb===_0x591e33)return _0x191bdb;}return null;}}const u='$elementName';class p extends _0x5c587b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4ad932,_0xaf915d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e6557){super(_0x2e6557),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x278485,_0x1b2dbf,_0x12fa92,_0x473ee4)=>{this['_model']['change'](()=>{for(const _0x42c175 of[..._0x473ee4,..._0x12fa92])this['_model']['markers']['has'](_0x42c175)&&_0x2e6557['editing']['reconvertMarker'](_0x42c175);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2e6557['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(),_0x2e6557['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e6557['config']['get']('trackChanges.trackFormatChanges'),_0x2e6557['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e6557['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2e6557,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x22cda2=this['editor'],_0x1adb96=(_0x2b24dd,_0xa1882b)=>{if('attribute'!=_0x2b24dd)return'ck-suggestion-marker-'+_0x2b24dd;const _0x3a8b4b=_0xa1882b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3a8b4b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x22cda2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x471e7d=>{const {id:_0x3df52b,authorId:_0x31d3be,type:_0x5151a4,subType:_0x58eefe}=this['_splitMarkerName'](_0x471e7d['markerName']),_0x293fd8=['ck-suggestion-marker',_0x1adb96(_0x5151a4,_0x58eefe)];let _0x20b56d=0xbb8;return this['activeMarkers']['includes'](_0x471e7d['markerName'])&&(_0x293fd8['push']('ck-suggestion-marker--active'),_0x20b56d=0xbc2),'deletion'==_0x5151a4&&(_0x20b56d+=0x5),{'classes':_0x293fd8,'attributes':{'data-suggestion':_0x3df52b,'data-author-id':_0x31d3be},'priority':_0x20b56d};}}),_0x22cda2['conversion']['for']('dataDowncast')['add'](_0x325ce6=>{_0x325ce6['on']('addMarker:suggestion',(_0x348d1a,_0x11cfd2,_0x25929a)=>{if(!_0x25929a['options']['showSuggestionHighlights'])return;const _0x26773a=_0x11cfd2['item'];if(!_0x26773a)return;const _0x17fbea=_0x25929a['mapper']['toViewElement'](_0x26773a);_0x22cda2['model']['schema']['isObject'](_0x26773a)&&_0x17fbea&&!_0x17fbea['getCustomProperty']('widget')&&_0x17fbea['is']('containerElement')&&_0x3dc284(_0x17fbea,_0x25929a['writer']);},{'priority':'high'});}),_0x22cda2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a8143,_0x5dfbb2)=>{if(!_0x5dfbb2['options']['showSuggestionHighlights'])return null;const {id:_0x560667,authorId:_0x2e63e8,type:_0x483263,subType:_0x119dbc}=this['_splitMarkerName'](_0x2a8143['markerName']);return{'classes':['ck-suggestion-marker',_0x1adb96(_0x483263,_0x119dbc)],'priority':0xbb8,'attributes':{'data-suggestion':_0x560667,'data-author-id':_0x2e63e8}};}});const _0x4b8830=({showActiveMarkers:_0x203051=!0x0,isAttributeSuggestion:_0x1b3387=!0x1}={})=>(_0x47c735,_0x4cc4e0,_0x5dd48c)=>{if(!_0x4cc4e0['item'])return;const {id:_0x26bb3c,authorId:_0x2fc8c1}=this['_splitMarkerName'](_0x4cc4e0['markerName']);if(_0x1b3387){const _0x49e5d7=this['_suggestions']['get'](_0x26bb3c),_0x3f22cc=this['_getAttributeKey'](_0x49e5d7);if(!this['_isBlockAttribute'](_0x3f22cc))return;}if(_0x4cc4e0['item']['is']('selection'))return void _0x5dd48c['consumable']['consume'](_0x4cc4e0['item'],_0x47c735['name']);const _0x4943a6=_0x5dd48c['mapper']['toViewElement'](_0x4cc4e0['item']);if(_0x4cc4e0['item']['is']('element')&&_0x22cda2['model']['schema']['isBlock'](_0x4cc4e0['item'])&&!_0x4943a6['getCustomProperty']('addHighlight')){_0x5dd48c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4943a6),_0x5dd48c['writer']['setAttribute']('data-suggestion',_0x26bb3c,_0x4943a6),_0x5dd48c['writer']['setAttribute']('data-author-id',_0x2fc8c1,_0x4943a6),_0x5dd48c['mapper']['bindElementToMarker'](_0x4943a6,_0x4cc4e0['markerName']),_0x203051&&(this['activeMarkers']['includes'](_0x4cc4e0['markerName'])?_0x5dd48c['writer']['addClass']('ck-suggestion-marker--active',_0x4943a6):_0x5dd48c['writer']['removeClass']('ck-suggestion-marker--active',_0x4943a6));for(const _0x4a6366 of _0x22cda2['model']['createRangeIn'](_0x4cc4e0['item'])['getItems']())_0x5dd48c['consumable']['consume'](_0x4a6366,_0x47c735['name']);_0x5dd48c['consumable']['consume'](_0x4cc4e0['item'],_0x47c735['name']);}};_0x22cda2['conversion']['for']('dataDowncast')['add'](_0x5d129f=>{_0x5d129f['on']('addMarker:suggestion:formatBlock',(_0x361df0,_0x158802,_0x4424f8)=>{_0x4424f8['options']['showSuggestionHighlights']&&_0x4b8830({'showActiveMarkers':!0x1})(_0x361df0,_0x158802,_0x4424f8);},{'priority':'highest'});}),_0x22cda2['conversion']['for']('dataDowncast')['add'](_0x5762e8=>{_0x5762e8['on']('addMarker:suggestion:attribute',(_0x240e7f,_0x308259,_0x2943b3)=>{_0x2943b3['options']['showSuggestionHighlights']&&_0x4b8830({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x240e7f,_0x308259,_0x2943b3);},{'priority':'highest'});}),_0x22cda2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1c79bf,_0x507c38)=>{if(_0x507c38['options']['showSuggestionHighlights']){const {id:_0x552ebb,authorId:_0x23de70}=this['_splitMarkerName'](_0x1c79bf);return _0x1c79bf['includes'](':split')||_0x1c79bf['includes'](':merge')?{'group':'suggestion','name':_0x1c79bf['substr'](0xb),'attributes':{'data-suggestion':_0x552ebb,'data-author-id':_0x23de70}}:null;}return{'group':'suggestion','name':_0x1c79bf['substr'](0xb)};}}),_0x22cda2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13fddf,{writer:_0x219fa3})=>{let _0x47ee66='suggestion:'+_0x13fddf['getAttribute']('suggestion-type')+':'+_0x13fddf['getAttribute']('id');return _0x13fddf['getAttribute']('marker-count')&&(_0x47ee66+=':'+_0x13fddf['getAttribute']('marker-count')),_0x219fa3['createElement']('$marker',{'data-name':_0x47ee66});}}),_0x22cda2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x5d896a=>{_0x5d896a['on']('addMarker:suggestion:formatBlock',_0x4b8830(),{'priority':'high'});}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x21bfde=>{_0x21bfde['on']('addMarker:suggestion:attribute',_0x4b8830({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x971905=>{_0x971905['on']('removeMarker:suggestion:formatBlock',(_0x230cd7,_0x29fd97,_0x392ebc)=>{const _0x3af4ad=_0x392ebc['mapper']['markerNameToElements'](_0x29fd97['markerName']);if(_0x3af4ad){for(const _0x481f1e of _0x3af4ad)_0x481f1e['getCustomProperty']('addHighlight')||(_0x392ebc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x481f1e),_0x392ebc['writer']['removeAttribute']('data-suggestion',_0x481f1e),_0x392ebc['writer']['removeAttribute']('data-author-id',_0x481f1e),_0x392ebc['mapper']['unbindElementFromMarkerName'](_0x481f1e,_0x29fd97['markerName']));}},{'priority':'high'});}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x40cafa=>{_0x40cafa['on']('removeMarker:suggestion:attribute',(_0x429fa2,_0x45e64e,_0x3987d6)=>{const _0xc6a972=_0x3987d6['mapper']['markerNameToElements'](_0x45e64e['markerName']);if(!_0xc6a972)return;const {id:_0x1d9047}=this['_splitMarkerName'](_0x45e64e['markerName']),_0x555e5a=this['_suggestions']['get'](_0x1d9047),_0x593910=this['_getAttributeKey'](_0x555e5a);if(this['_isBlockAttribute'](_0x593910)){for(const _0x5a0c96 of _0xc6a972)_0x5a0c96['getCustomProperty']('addHighlight')||(_0x3987d6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a0c96),_0x3987d6['writer']['removeAttribute']('data-suggestion',_0x5a0c96),_0x3987d6['writer']['removeAttribute']('data-author-id',_0x5a0c96),_0x3987d6['mapper']['unbindElementFromMarkerName'](_0x5a0c96,_0x45e64e['markerName']));}},{'priority':'high'});}),_0x22cda2['model']['document']['registerPostFixer'](_0x5df94e=>{let _0x18f535=!0x1;const _0x589168=Array['from'](_0x22cda2['model']['document']['differ']['getChangedMarkers']()),_0x256392=new Set();for(const {name:_0x349717,data:_0x4dfae7}of _0x589168){const {group:_0x39468c,type:_0x262c9d,subType:_0x5c6e88,id:_0xe9caba}=this['_splitMarkerName'](_0x349717);if('suggestion'!==_0x39468c)continue;const _0x15a1f6=this['_suggestions']['get'](_0xe9caba);if(null!=_0x4dfae7['newRange']){'formatInline'==_0x262c9d&&(_0x18f535=_0x18f535||Jt(_0x4dfae7['newRange'],_0x349717,_0x5df94e,_0x22cda2['model']['schema']));const _0x33d71e='attribute'==_0x262c9d&&this['_isBlockAttribute'](_0x5c6e88['split']('|')[0x0]);if(_0x4dfae7['newRange']['isCollapsed']||'$graveyard'==_0x4dfae7['newRange']['root']['rootName']||'formatBlock'==_0x262c9d&&!Ht(_0x4dfae7['newRange'])||_0x33d71e&&!Ht(_0x4dfae7['newRange'])||'deletion'==_0x262c9d&&!(!Lt(_0x2418de=_0x4dfae7['newRange'])&&!function(_0x44a1bd){return _0x44a1bd['start']['parent']==_0x44a1bd['end']['nodeBefore']&&_0x44a1bd['start']['isAtEnd'];}(_0x2418de)))_0x5df94e['removeMarker'](_0x349717),_0x18f535=!0x0;else{if(!_0x15a1f6||!_0x15a1f6['isInContent'])continue;if(_0x4dfae7['newRange']&&_0x4dfae7['oldRange']&&_0x4dfae7['newRange']['isEqual'](_0x4dfae7['oldRange']))continue;_0x256392['add'](_0x15a1f6);}}}var _0x2418de;return _0x256392['size']>0x0&&(_0x18f535=!!this['_joinWithAdjacentSuggestions'](_0x256392)||_0x18f535),_0x18f535;}),_0x22cda2['model']['document']['registerPostFixer'](_0x252fa3=>{let _0x4be804=!0x1;for(const _0x450d19 of _0x22cda2['model']['document']['differ']['getChanges']())if('insert'==_0x450d19['type'])for(const _0x51b245 of this['_suggestions']['values']()){if(_0x51b245['isMultiRange']||!_0x51b245['isInContent'])continue;const _0x418941='formatBlock'==_0x51b245['type'],_0x1de846=this['_getAttributeKey'](_0x51b245),_0x34d8bc=_0x1de846&&this['_isBlockAttribute'](_0x1de846);if(!_0x418941&&!_0x34d8bc)continue;const _0x2f43ec=_0x51b245['getFirstRange']();if(_0x2f43ec['start']['parent']!=_0x2f43ec['end']['parent']&&!_0x2f43ec['end']['isAtEnd']){const _0x2aacfb=_0x22cda2['model']['createPositionAt'](_0x2f43ec['start']['nodeAfter'],'end'),_0x429b4b=_0x22cda2['model']['createRange'](_0x2f43ec['start'],_0x2aacfb);_0x252fa3['updateMarker'](_0x51b245['getFirstMarker'](),{'range':_0x429b4b}),_0x4be804=!0x0;}}return _0x4be804;}),_0x22cda2['model']['document']['registerPostFixer'](_0x2c73a8=>this['_processAttributeChanges'](_0x2c73a8)),_0x22cda2['model']['document']['registerPostFixer'](_0x45f662=>!_0x45f662['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x45f662)),_0x22cda2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x22cda2['model']['document']['on']('change:data',(_0x259334,_0x5d16f3)=>{if(!_0x5d16f3['isLocal']||_0x5d16f3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x15c8d8=_0x22cda2['model']['document']['differ']['getChanges']();if(0x0==_0x15c8d8['length'])return;const _0xc368bf=[],_0x299d24=_0x15c8d8['filter'](_0x585bc7=>'attribute'==_0x585bc7['type']),_0x4fb040=_0x15c8d8['filter'](_0x16366c=>'insert'==_0x16366c['type']&&'$text'!=_0x16366c['name']);for(const _0x3b85e2 of _0x299d24)this['_isRegisteredAttribute'](_0x3b85e2['attributeKey'])&&_0xc368bf['push']({'key':_0x3b85e2['attributeKey'],'newValue':_0x3b85e2['attributeNewValue'],'oldValue':_0x3b85e2['attributeOldValue'],'range':qt(_0x3b85e2['range'],_0x22cda2['model'])});for(const _0x2ab124 of _0x4fb040){if('rename'!=_0x2ab124['action']&&'refresh'!=_0x2ab124['action'])continue;const _0x2ab0a2=zt(_0x2ab124['position']['nodeAfter'],_0x22cda2['model']),_0x18651c=_0x2ab124['before'];'rename'==_0x2ab124['action']&&_0xc368bf['push']({'key':u,'newValue':_0x2ab124['name'],'oldValue':_0x18651c['name'],'range':_0x2ab0a2});for(const [_0x4906ef,_0x157b09]of _0x18651c['attributes']){if(!this['_isRegisteredAttribute'](_0x4906ef))continue;const _0x4e1ccb=_0x2ab124['attributes']['get'](_0x4906ef);_0x157b09!==_0x4e1ccb&&_0xc368bf['push']({'key':_0x4906ef,'newValue':_0x4e1ccb,'oldValue':_0x157b09,'range':_0x2ab0a2});}for(const [_0x103f28,_0x50adb6]of _0x2ab124['attributes'])this['_isRegisteredAttribute'](_0x103f28)&&(_0x18651c['attributes']['has'](_0x103f28)||_0xc368bf['push']({'key':_0x103f28,'newValue':_0x50adb6,'oldValue':null,'range':_0x2ab0a2}));}0x0!=_0xc368bf['length']&&_0x22cda2['model']['enqueueChange'](_0x5d16f3,_0x1f0408=>{const _0x11039d=_0x2565c0();for(const {range:_0x48fb8f,key:_0x53334b,oldValue:_0x1f9ca1,newValue:_0x133463}of _0xc368bf)this['markAttributeChange'](_0x48fb8f,_0x53334b,_0x1f9ca1,_0x133463,{'groupId':_0x11039d});this['_reduceExistingSuggestions'](_0x1f0408,_0xc368bf);});},{'priority':'lowest'}),_0x22cda2['model']['markers']['on']('update:suggestion',(_0x157c30,_0x570d5e,_0x38e99f)=>{if(null==_0x38e99f){const {id:_0x4cea05}=this['_splitMarkerName'](_0x570d5e['name']),_0x136e47=this['_suggestions']['get'](_0x4cea05);_0x136e47&&_0x136e47['addMarkerName'](_0x570d5e['name']);}}),_0x22cda2['model']['document']['on']('change:data',()=>{const _0xce4627=Array['from'](_0x22cda2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b230d=>'suggestion'===this['_splitMarkerName'](_0x5b230d['name'])['group']);if(0x0===_0xce4627['length'])return;_0xce4627['sort']((_0x1135ee,_0x4eb666)=>{const _0xaf60ef=_0x1135ee['data']['oldRange'],_0x190bc6=_0x4eb666['data']['oldRange'];return null===_0xaf60ef&&null===_0x190bc6?0x0:null===_0xaf60ef&&null!==_0x190bc6?-0x1:null!==_0xaf60ef&&null===_0x190bc6?0x1:_0xaf60ef['start']['isBefore'](_0x190bc6['start'])?-0x1:0x1;});const _0x118af7=new Set(),_0x177a40=new Set();for(const {name:_0x113252,data:_0xad5b}of _0xce4627){const {id:_0x550e3a}=this['_splitMarkerName'](_0x113252);if(null===_0xad5b['oldRange']){const _0x2820d5=this['_handleNewSuggestionMarker'](_0x113252);_0x177a40['add'](_0x2820d5);}else{const _0x5eea8d=this['_suggestions']['get'](_0x550e3a);null!==_0xad5b['newRange']||_0x5eea8d['isInContent']?(_0x118af7['add'](_0x5eea8d['head']),_0x177a40['add'](_0x5eea8d)):this['_removeSuggestion'](_0x5eea8d);}}_0x177a40['size']>0x0&&this['_refreshSuggestionsChain'](_0x177a40);for(const _0xf67c4b of _0x118af7)this['fire']('suggestionChanged',_0xf67c4b);}),_0x22cda2['model']['on']('applyOperation',(_0x2c63cf,_0x3e2cc1)=>{const _0x487992=_0x3e2cc1[0x0];if(!this['_suggestions']['size'])return;if(!_0x487992['isDocumentOperation'])return;if(_0x487992['batch']['isUndo']||!_0x487992['batch']['isLocal'])return;let _0x3eab3c,_0xc6894;switch(_0x487992['type']){case'insert':_0x3eab3c=_0x22cda2['model']['createPositionAt'](_0x487992['position']),_0xc6894=_0x3eab3c['getShiftedBy'](_0x487992['howMany']);break;case'split':_0x3eab3c=_0x22cda2['model']['createPositionAt'](_0x487992['splitPosition']),_0xc6894=_0x22cda2['model']['createPositionAt'](_0x487992['moveTargetPosition']);break;case'move':_0x3eab3c=_0x22cda2['model']['createPositionAt'](_0x487992['targetPosition']),_0xc6894=_0x3eab3c['getShiftedBy'](_0x487992['howMany']);break;default:return;}const _0x53123e=_0x22cda2['model']['createRange'](_0x3eab3c,_0xc6894);_0x22cda2['model']['change'](()=>{for(const {suggestion:_0xfbc658,meta:_0x18ab3d}of this['_findSuggestions'](_0x53123e)){if(_0xfbc658['isMultiRange'])continue;if('formatInline'==_0xfbc658['type'])continue;const _0x5422ba=this['_getAttributeKey'](_0xfbc658);if(_0x5422ba&&this['_isBlockAttribute'](_0x5422ba)&&'split'!=_0x487992['type'])continue;const _0xd600f9=_0xfbc658['data']&&_0xfbc658['data']['multipleBlocks'];('formatBlock'!=_0xfbc658['type']||'split'==_0x487992['type']&&!_0xd600f9)&&(_0x18ab3d['containsRangeInObject']||'insertion'==_0xfbc658['type']&&_0x18ab3d['isOwn']||_0xfbc658['getFirstRange']()['containsRange'](_0x53123e)&&this['_breakSuggestionMarker'](_0xfbc658,_0x3eab3c,_0xc6894));}});},{'priority':'lowest'}),_0x22cda2['model']['on']('deleteContent',(_0x2a136b,_0x1d35c1)=>{const _0x1df4c1=_0x1d35c1[0x0],_0x178528=_0x1d35c1[0x1];if(_0x178528&&_0x178528['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1df4c1['isCollapsed'])return;const _0x159a04=_0x22cda2['model']['schema'],{start:_0x1a9981,end:_0x3949c8}=_0x1df4c1['getFirstRange'](),_0x2929ad=_0x1a9981['nodeAfter']&&_0x159a04['isLimit'](_0x1a9981['nodeAfter'])?null:_0x159a04['getNearestSelectionRange'](_0x1a9981,'forward'),_0x1517ec=_0x3949c8['nodeBefore']&&_0x159a04['isLimit'](_0x3949c8['nodeBefore'])?null:_0x159a04['getNearestSelectionRange'](_0x3949c8,'backward'),_0x363b66=_0x22cda2['model']['createRange'](_0x2929ad?_0x2929ad['start']:_0x1a9981,_0x1517ec?_0x1517ec['end']:_0x3949c8);_0x22cda2['model']['change'](_0x1d635d=>{this['markDeletion'](_0x363b66);const _0x2570ee=_0x22cda2['model']['schema']['getNearestSelectionRange'](_0x363b66['start']);_0x1df4c1['is']('documentSelection')?_0x1d635d['setSelection'](_0x2570ee):_0x1df4c1['setTo'](_0x2570ee);}),_0x2a136b['stop']();},{'priority':_0x1896ea['normal']+0xa}),_0x22cda2['model']['on']('insertContent',(_0x3846c2,_0x5752de)=>{const _0x34d5f1=_0x5752de[_0x5752de['length']-0x1];_0x34d5f1&&_0x34d5f1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x22cda2['model']['change'](()=>{let _0x20d21e=_0x22cda2['model']['insertContent'](_0x5752de[0x0],_0x5752de[0x1],_0x5752de[0x2],{'forceDefaultExecution':!0x0});if(!_0x20d21e)return;_0x3846c2['return']=_0x20d21e['clone']();const _0x40239e=_0x20d21e['end']['nodeBefore'],_0x2fd61a=_0x22cda2['model']['schema'];_0x40239e&&_0x2fd61a['isBlock'](_0x40239e)&&!_0x2fd61a['isObject'](_0x40239e)&&(_0x20d21e=_0x22cda2['model']['createRange'](_0x20d21e['start'],_0x22cda2['model']['createPositionAt'](_0x40239e,'end'))),this['markInsertion'](_0x20d21e);}),_0x3846c2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c9b8d=new x(_0x22cda2,this['_suggestions']);_0x22cda2['commands']['add']('acceptSuggestion',_0x3c9b8d),this['enableCommand']('acceptSuggestion');const _0x2eff40=new O(_0x22cda2,this['_suggestions']);_0x22cda2['commands']['add']('discardSuggestion',_0x2eff40),this['enableCommand']('discardSuggestion'),_0x22cda2['commands']['add']('acceptAllSuggestions',new R(_0x22cda2,_0x3c9b8d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x22cda2['commands']['add']('discardAllSuggestions',new R(_0x22cda2,_0x2eff40,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x22cda2['commands']['add']('acceptSelectedSuggestions',new E(_0x22cda2,_0x3c9b8d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x22cda2['commands']['add']('discardSelectedSuggestions',new E(_0x22cda2,_0x2eff40,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10abc4=_0x22cda2['plugins']['get']('CommentsRepository');this['listenTo'](_0x10abc4,'addComment',(_0x49b719,{threadId:_0x27999c})=>{const _0x4dbc68=this['_suggestions']['get'](_0x27999c);_0x4dbc68&&_0x4dbc68['commentThread']&&0x1===_0x4dbc68['commentThread']['length']&&this['_updateSuggestionData'](_0x27999c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10abc4,'removeComment',(_0x3024b3,{threadId:_0x5428e9})=>{const _0x585ef9=this['_suggestions']['get'](_0x5428e9);_0x585ef9&&_0x585ef9['commentThread']&&!_0x585ef9['commentThread']['length']&&this['_updateSuggestionData'](_0x5428e9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4d7c44){const _0x526a5c=_0x52f7ab([0x70,0x4a,0x4f,0x56,0x4c,0x4d,0x6e,0x4e,0x49,0x6c,0x33,0x54,0x65,0x47,0x52,0x75,0x48,0x76,0x72,0x4b,0x32,0x31,0x39,0x36,0x7a,0x30,0x73,0x6f,0x58,0x66,0x71,0x42,0x59,0x78,0x55,0x45,0x44,0x62,0x35,0x6d,0x68,0x50,0x37,0x64,0x43,0x57,0x38,0x34,0x51,0x67,0x5a,0x53,0x6b,0x79,0x63,0x6a,0x46,0x74,0x69,0x77,0x41,0x61]),_0x2cc1b1=0x1825f21,_0x40f628=0x1853809^_0x2cc1b1,_0x24a1ba=window[_0x52f7ab([0x44,0x61,0x74,0x65])][_0x52f7ab([0x6e,0x6f,0x77])](),_0xe65fc5=_0x4d7c44[_0x52f7ab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a95d0=new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x547af1=>{_0xe65fc5[_0x52f7ab([0x6f,0x6e,0x63,0x65])](_0x52f7ab([0x72,0x65,0x61,0x64,0x79]),_0x547af1);}),_0x41acc0={[_0x52f7ab([0x6b,0x74,0x79])]:_0x52f7ab([0x45,0x43]),[_0x52f7ab([0x75,0x73,0x65])]:_0x52f7ab([0x73,0x69,0x67]),[_0x52f7ab([0x63,0x72,0x76])]:_0x52f7ab([0x50,0x2d,0x32,0x35,0x36]),[_0x52f7ab([0x78])]:_0x52f7ab([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]),[_0x52f7ab([0x79])]:_0x52f7ab([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]),[_0x52f7ab([0x61,0x6c,0x67])]:_0x52f7ab([0x45,0x53,0x32,0x35,0x36])},_0x575ff1=_0xe65fc5[_0x52f7ab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52f7ab([0x67,0x65,0x74])](_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13d78d(){let _0x4c7a5a,_0x2fcb16=null,_0x1b6386=null;try{if(_0x575ff1==_0x52f7ab([0x47,0x50,0x4c]))return _0x52f7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c7a5a=_0x541f76(),!_0x4c7a5a)return _0x52f7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c7a5a[_0x52f7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b6386=_0x5a0440(_0x4c7a5a[_0x52f7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c7a5a[_0x52f7ab([0x6a,0x74,0x69])])),await _0x1dae12()?_0x165db3()?_0x5ed695()?_0x52f7ab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x300a76()?(_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52f7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fcb16=_0x4521a8(_0x52f7ab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52f7ab([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fcb16=_0x4521a8(_0x52f7ab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b7b59()):_0x52f7ab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52f7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52f7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5e970c){return _0x52f7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ed695(){const _0x208e9b=[_0x52f7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52f7ab([0x74,0x72,0x69,0x61,0x6c])][_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x24a1ba/0x3e8:0xe10*_0x40f628;return _0x4c7a5a[_0x52f7ab([0x65,0x78,0x70])]<_0x208e9b;}function _0x165db3(){const _0x16b32f=_0x4c7a5a[_0x52f7ab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16b32f)return!0x1;if(_0x16b32f[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x2a])))return!0x0;if(_0x16b32f[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x54,0x43])))return!0x0;if(_0x16b32f[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x52,0x54,0x43]))){if(_0xc1b6ab())return!0x0;if(_0x58799a()||_0x54f851())return!0x0;}return!0x1;}function _0x300a76(){const _0x510174=_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x510174||0x0==_0x510174[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x522617}=new URL(window[_0x52f7ab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x510174[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522617))return!0x0;const _0x1fed90=_0x522617[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e]));return _0x510174[_0x52f7ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ec22=>_0x38ec22[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x2a])))[_0x52f7ab([0x6d,0x61,0x70])](_0x21e2c4=>_0x21e2c4[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e])))[_0x52f7ab([0x73,0x6f,0x6d,0x65])](_0x183ec5=>_0x1fed90[_0x52f7ab([0x65,0x76,0x65,0x72,0x79])]((_0x4b8bc3,_0x2ebf57)=>_0x183ec5[_0x2ebf57]===_0x4b8bc3||_0x183ec5[_0x2ebf57]===_0x52f7ab([0x2a])));}function _0x1b7b59(){return _0x2fcb16&&_0x1b6386?new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb76b7b,_0x3115b)=>{_0x2fcb16[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0xb76b7b,_0x3115b),_0x1b6386[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x26fb1f=>{_0x26fb1f!=_0x52f7ab([0x56,0x61,0x6c,0x69,0x64])&&_0xb76b7b(_0x26fb1f);},_0x3115b);}):_0x2fcb16||_0x1b6386||_0x52f7ab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a0440(_0x37e708,_0x4d9356){return new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4365d4=>{if(_0x364f68())return _0x4365d4(_0x52f7ab([0x56,0x61,0x6c,0x69,0x64]));_0x4779d4(),_0xe65fc5[_0x52f7ab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52f7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b5b59=!0x1;const _0x149777=_0x2565c0();function _0x315a44(_0x181e7a){return!!_0x181e7a&&(typeof _0x181e7a===_0x52f7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181e7a===_0x52f7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181e7a[_0x52f7ab([0x74,0x68,0x65,0x6e])]===_0x52f7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181e7a[_0x52f7ab([0x63,0x61,0x74,0x63,0x68])]===_0x52f7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c24af(_0x470d81){_0x5f04bb(_0x470d81)[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x32997c=>{if(!_0x32997c||_0x32997c[_0x52f7ab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52f7ab([0x6f,0x6b]))return _0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x287e5f(_0x3062c0(_0x149777+_0x4d9356))!=_0x32997c[_0x52f7ab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52f7ab([0x56,0x61,0x6c,0x69,0x64]);})[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x2c3bc9=>(_0x26e0a0(),_0x2c3bc9),()=>{const _0x169359=_0x39121e();return null==_0x169359?(_0x26e0a0(),_0x52f7ab([0x56,0x61,0x6c,0x69,0x64])):_0x52f7ab(_0x24a1ba-_0x169359>(0x258edb21^_0x2cc1b1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x4365d4)[_0x52f7ab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4365d4(_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b148f=0x1b4b1a1^_0x2cc1b1;function _0x26e0a0(){const _0x4316f3=_0x52f7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x287e5f(_0x3062c0(_0x37e708)),_0x5f4d48=_0x397f65(_0x287e5f(window[_0x52f7ab([0x4d,0x61,0x74,0x68])][_0x52f7ab([0x63,0x65,0x69,0x6c])](_0x24a1ba/_0x2b148f)));window[_0x52f7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52f7ab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4316f3,_0x5f4d48);}function _0x39121e(){const _0x5e4f2f=_0x52f7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x287e5f(_0x3062c0(_0x37e708)),_0x47a796=window[_0x52f7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52f7ab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e4f2f);return _0x47a796?window[_0x52f7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397f65(_0x47a796),0x10)*_0x2b148f:null;}function _0x5f04bb(_0x5b60d9){return new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44f60f,_0xbbf25c)=>{_0x5b60d9[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x44f60f,_0xbbf25c),window[_0x52f7ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbbf25c,0x1838be1^_0x2cc1b1);});}}_0xe65fc5[_0x52f7ab([0x6f,0x6e])](_0x52f7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14c4bd,_0x4afe14)=>{if(_0x4afe14[0x0]!=_0x37e708)return _0x4365d4(_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4afe14[0x1]={..._0x4afe14[0x1],[_0x52f7ab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x149777};},{[_0x52f7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52f7ab([0x68,0x69,0x67,0x68])}),_0xe65fc5[_0x52f7ab([0x6f,0x6e])](_0x52f7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23f164=>{_0x315a44(_0x23f164[_0x52f7ab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b5b59=!0x0,_0x4c24af(_0x23f164[_0x52f7ab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52f7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52f7ab([0x6c,0x6f,0x77])}),_0x3a95d0[_0x52f7ab([0x74,0x68,0x65,0x6e])](()=>{_0x1b5b59||_0x4365d4(_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x364f68(){return _0xe65fc5[_0x52f7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52f7ab([0x76,0x69,0x65,0x77])][_0x52f7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52f7ab([0x61,0x75,0x74,0x6f]);}function _0x4779d4(){_0xe65fc5[_0x52f7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52f7ab([0x76,0x69,0x65,0x77])][_0x52f7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52f7ab([0x61,0x75,0x74,0x6f]);}}function _0x4521a8(_0x44e1b1){const _0x7751ec=[new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3073e6=>setTimeout(_0x3073e6,0x18b61ed^_0x2cc1b1)),_0x3a95d0[_0x52f7ab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224c60=>{let _0x39cd2e=0x0;_0xe65fc5[_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f7ab([0x6f,0x6e])](_0x52f7ab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x55f9c0,_0x406375)=>{_0x406375[0x0][_0x52f7ab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39cd2e++,_0x39cd2e==(0x1825ed9^_0x2cc1b1)&&(_0x224c60(),_0x55f9c0[_0x52f7ab([0x6f,0x66,0x66])]());});}))];return window[_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52f7ab([0x72,0x61,0x63,0x65])](_0x7751ec)[_0x52f7ab([0x74,0x68,0x65,0x6e])](()=>_0x44e1b1);}async function _0x311854(){await _0x3a95d0,_0xe65fc5[_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f7ab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1da356,_0xe65fc5[_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f7ab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1da356,_0xe65fc5[_0x52f7ab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc1b6ab(){return _0x428f7f(_0x52f7ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x57b766(_0x52f7ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52f7ab([0x73,0x74,0x61,0x74,0x65])]==_0x52f7ab([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x58799a(){return _0x428f7f(_0x52f7ab([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 _0x54f851(){return _0x428f7f(_0x52f7ab([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f97a7(_0x23117e){const _0x3f4b04=_0x22917a();_0xe65fc5[_0x3f4b04]=_0x52f7ab([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23117e,_0x23117e!=_0x52f7ab([0x56,0x61,0x6c,0x69,0x64])&&_0x311854();}function _0x22917a(){const _0x10421c=window[_0x52f7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52f7ab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52f7ab([0x6e,0x6f,0x77])]())[_0x52f7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52f7ab([0x2e]),'');let _0x46385f=_0x52f7ab([0x70]);for(let _0x5c540a=0x0;_0x5c540a<_0x10421c[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c540a+=0x2){let _0x52bb8b=window[_0x52f7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10421c[_0x52f7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c540a,_0x5c540a+0x2));_0x52bb8b>=_0x526a5c[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52bb8b-=_0x526a5c[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46385f+=_0x526a5c[_0x52bb8b];}return _0x46385f;}function _0x541f76(){const _0x5cc387=_0x575ff1[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e]));if(0x3!=_0x5cc387[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x301460(_0x5cc387[0x1]);function _0x301460(_0x41151d){const _0x221059=_0x3c5392(_0x41151d);return _0x221059&&_0x1b639d()?_0x221059:null;function _0x1b639d(){const _0x158595=_0x221059[_0x52f7ab([0x6a,0x74,0x69])],_0x51e663=window[_0x52f7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x158595[_0x52f7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158595[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe39168={..._0x221059,[_0x52f7ab([0x6a,0x74,0x69])]:_0x158595[_0x52f7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x158595[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe39168[_0x52f7ab([0x76,0x63])],_0x3062c0(_0xe39168)==_0x51e663;}}}async function _0x1dae12(){let _0x10bd87=!0x0;try{const _0x287057=_0x575ff1[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e])),[_0x1fb46e,_0x28b0b9,_0x2b520b]=_0x287057;return _0x368f55(_0x1fb46e),await _0x216096(_0x1fb46e,_0x28b0b9,_0x2b520b),_0x10bd87;}catch(_0x22d843){return!0x1;}function _0x368f55(_0x99be54){const _0x44836f=_0x3c5392(_0x99be54);_0x44836f&&_0x44836f[_0x52f7ab([0x61,0x6c,0x67])]==_0x52f7ab([0x45,0x53,0x32,0x35,0x36])||(_0x10bd87=!0x1);}async function _0x216096(_0x80389b,_0x445a3d,_0x2abf94){const _0x778bc3=window[_0x52f7ab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52f7ab([0x66,0x72,0x6f,0x6d])](_0x4161e1(_0x2abf94),_0x6f72bc=>_0x6f72bc[_0x52f7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f2bdc=new window[(_0x52f7ab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52f7ab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x80389b+_0x52f7ab([0x2e])+_0x445a3d),_0x3c6690=window[_0x52f7ab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52f7ab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c6690)return;const _0x3ad5d2=await _0x3c6690[_0x52f7ab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52f7ab([0x6a,0x77,0x6b]),_0x41acc0,{[_0x52f7ab([0x6e,0x61,0x6d,0x65])]:_0x52f7ab([0x45,0x43,0x44,0x53,0x41]),[_0x52f7ab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52f7ab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52f7ab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c6690[_0x52f7ab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52f7ab([0x6e,0x61,0x6d,0x65])]:_0x52f7ab([0x45,0x43,0x44,0x53,0x41]),[_0x52f7ab([0x68,0x61,0x73,0x68])]:{[_0x52f7ab([0x6e,0x61,0x6d,0x65])]:_0x52f7ab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ad5d2,_0x778bc3,_0x5f2bdc)||(_0x10bd87=!0x1);}}function _0x3c5392(_0x5f5369){return _0x5f5369[_0x52f7ab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52f7ab([0x65,0x79]))?JSON[_0x52f7ab([0x70,0x61,0x72,0x73,0x65])](_0x4161e1(_0x5f5369)):null;}function _0x4161e1(_0x42b24d){return window[_0x52f7ab([0x61,0x74,0x6f,0x62])](_0x42b24d[_0x52f7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52f7ab([0x2b]))[_0x52f7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52f7ab([0x2f])));}function _0x3062c0(_0x403f34){let _0x18bf2f=0x1505;function _0x26b221(_0x398563){for(let _0xd8ffe2=0x0;_0xd8ffe2<_0x398563[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd8ffe2++){const _0x5aca39=_0x398563[_0x52f7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd8ffe2);_0x18bf2f=(_0x18bf2f<<0x5)+_0x18bf2f+_0x5aca39,_0x18bf2f&=_0x18bf2f;}}function _0x3a8016(_0x34edee){Array[_0x52f7ab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34edee)?_0x34edee[_0x52f7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a8016):_0x34edee&&typeof _0x34edee==_0x52f7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52f7ab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34edee)[_0x52f7ab([0x73,0x6f,0x72,0x74])]()[_0x52f7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ebfd7,_0x117f7d])=>{_0x26b221(_0x3ebfd7),_0x3a8016(_0x117f7d);}):_0x26b221(window[_0x52f7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34edee));}return _0x3a8016(_0x403f34),_0x18bf2f>>>0x0;}function _0x287e5f(_0x59b48b){return _0x59b48b[_0x52f7ab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52f7ab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52f7ab([0x30]));}function _0x397f65(_0x1e3f97){return _0x1e3f97[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52f7ab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52f7ab([0x6a,0x6f,0x69,0x6e])]('');}function _0x428f7f(_0x277655){return _0xe65fc5[_0x52f7ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52f7ab([0x68,0x61,0x73])](_0x277655);}function _0x57b766(_0x9b3416){return _0xe65fc5[_0x52f7ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52f7ab([0x67,0x65,0x74])](_0x9b3416);}function _0x1da356(){}function _0x52f7ab(_0xfc7b0e){return _0xfc7b0e['map'](_0x1ad9eb=>String['fromCharCode'](_0x1ad9eb))['join']('');}_0x1f97a7(await _0x13d78d());}(this);}set['adapter'](_0xcd9efc){if(this['_adapter'])throw new _0x152d77('track-changes-adapter-already-set',this);this['_adapter']=_0xcd9efc;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x501ca7=!0x1,toJSON:_0x122d40=!0x1}={}){const _0x2fa432=[];for(const _0x16a097 of this['_suggestions']['values']())_0x501ca7&&!_0x16a097['isInContent']||_0x2fa432['push'](_0x16a097);return _0x122d40?_0x2fa432['map'](_0x2d6d5c=>_0x2d6d5c['toJSON']()):_0x2fa432;}['getSuggestion'](_0x569a05){const _0xf87ccf=this['_suggestions']['get'](_0x569a05);if(!_0xf87ccf)throw new _0x152d77('track-changes-suggestion-not-found',this);return _0xf87ccf;}['hasSuggestion'](_0x50fbfc){return this['_suggestions']['has'](_0x50fbfc);}['addSuggestionData'](_0x3100ac){const {authorId:_0x49cd32,id:_0x297d75,attributes:_0x3ca1d1}=_0x3100ac,[_0x547de9,_0x1b779b]=_0x3100ac['type']['split'](':'),_0x1a483b=this['_suggestions']['get'](_0x297d75)||this['_createSuggestion'](_0x547de9,_0x1b779b,_0x297d75,_0x49cd32,_0x3ca1d1);if(this['_addThreadToSuggestion'](_0x1a483b),this['_checkSuggestionCorrectness'](_0x1a483b,_0x547de9,_0x1b779b||null,_0x49cd32),_0x1a483b['createdAt']=_0x3100ac['createdAt'],_0x1a483b['_isDataLoaded']=!0x0,_0x3ca1d1&&_0x3ca1d1['@external']){const _0x1a6825=_0x3ca1d1['@external'],_0x5723cf=this['_getExternalAuthor'](_0x1a6825['authorName']);_0x1a483b['authoredAt']=_0x1a6825['createdAt'],_0x1a483b['author']=_0x5723cf,_0x1a483b['isExternal']=!0x0;}else _0x1a483b['authoredAt']=_0x3100ac['createdAt'];switch(_0x3100ac['data']&&(_0x1a483b['data']=_0x3100ac['data']),_0x3100ac['attributes']&&(_0x1a483b['attributes']=_0x3100ac['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1a483b['_saved']=!0x0),this['_suggestionState']['get'](_0x1a483b)){case'notReady':this['_suggestionState']['set'](_0x1a483b,'dataReady');break;case'markerReady':_0x1a483b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1a483b])),this['_refreshSuggestionsChain'](new Set([_0x1a483b])),this['_suggestionState']['set'](_0x1a483b,'ready'),this['fire']('suggestionLoaded',_0x1a483b)):this['_suggestionState']['set'](_0x1a483b,'removed');}return _0x1a483b;}['acceptSuggestion'](_0x32ab9e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5905c7 of _0x32ab9e['getAllAdjacentSuggestions']())_0x5905c7['accept']();});});}['discardSuggestion'](_0x13eeb1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x363bca of _0x13eeb1['getAllAdjacentSuggestions']())_0x363bca['discard']();});});}['enableCommand'](_0x53dc59,_0x5aaf3){const _0x70ff9f=this['editor']['commands']['get'](_0x53dc59);if(!_0x70ff9f)throw new _0x152d77('track-changes-command-not-found',this,{'commandName':_0x53dc59});if(this['_enabledCommands']['has'](_0x70ff9f))throw new _0x152d77('track-changes-enable-command-twice',this,{'commandName':_0x53dc59});this['_enabledCommands']['add'](_0x70ff9f),_0x5aaf3&&_0x70ff9f['on']('execute',(_0x3bfbc8,_0x137c37)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x137c37['length']>0x0&&_0x137c37[_0x137c37['length']-0x1]&&_0x137c37[_0x137c37['length']-0x1]['forceDefaultExecution']?_0x137c37['pop']():(_0x3bfbc8['return']=_0x5aaf3((..._0x58d52d)=>_0x70ff9f['execute'](..._0x58d52d,{'forceDefaultExecution':!0x0}),..._0x137c37),_0x3bfbc8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20c72d){let _0x2044da,_0x54c81c;const _0x2bf330=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2044da=_0x20c72d();}catch(_0x3c93ce){_0x54c81c=_0x3c93ce;}return _0x2bf330||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x54c81c&&_0x152d77['rethrowUnexpectedError'](_0x54c81c,this),_0x2044da;}['markInsertion'](_0x16b77c,_0x493932=null,_0x2097af={}){if(_0x16b77c['isCollapsed'])return null;const _0x30dc46=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2097af['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x21f264,meta:_0x439a7c}of this['_findSuggestions'](_0x16b77c,'insertion'))if(_0x439a7c['isOwn']){if(!_0x439a7c['isNextTo']){if(_0x439a7c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x21f264,_0x2097af))continue;return _0x21f264;}if(Xt(_0x21f264,_0x2097af))return _0x21f264;this['_breakSuggestionMarker'](_0x21f264,_0x16b77c['start'],_0x16b77c['end']);break;}if(_0x493932==_0x21f264['subType']&&Xt(_0x21f264,_0x2097af)){const _0x53938e=_0x21f264['getFirstRange']();return _0x53938e['start']['isEqual'](_0x16b77c['end'])?this['_setSuggestionRange'](_0x21f264,this['_model']['createRange'](_0x16b77c['start'],_0x53938e['end'])):this['_setSuggestionRange'](_0x21f264,this['_model']['createRange'](_0x53938e['start'],_0x16b77c['end'])),_0x21f264;}}const _0x5d3750=_0x2565c0(),_0x542c89=_0x30dc46['id'],_0x52b348=_0x493932?'insertion:'+_0x493932:'insertion',_0x5a5321=this['_setSuggestionData']({'id':_0x5d3750,'type':_0x52b348,'createdAt':new Date(),'authorId':_0x542c89,'attributes':_0x2097af});return this['_addSuggestionMarker'](_0x52b348,_0x5d3750,_0x542c89,_0x16b77c),_0x5a5321;}['markMultiRangeInsertion'](_0x1df187,_0x468993='multi',_0x5ec143={}){const _0x369816=this['editor']['plugins']['get']('Users')['me'],_0x5f4782=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x468993,'join');this['_trackingSessionId']&&(_0x5ec143['trackingSessionId']=this['_trackingSessionId']);for(const _0x16b139 of this['getSuggestions']())if(_0x16b139['author']['id']==_0x369816['id']&&'insertion'==_0x16b139['type']&&_0x16b139['subType']==_0x468993&&Xt(_0x16b139,_0x5ec143)&&(_0x5f4782(_0x16b139['getRanges'](),_0x1df187)||_0x5f4782(_0x1df187,_0x16b139['getRanges']()))){for(const _0x518d25 of _0x1df187)_0x16b139['addRange'](_0x518d25);return _0x16b139;}for(const {suggestion:_0x5d0efb,meta:_0x55f4f5}of this['_findSuggestions'](_0x1df187,'insertion')){if(!_0x55f4f5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x55f4f5['containsRangeInObject'])continue;if(!Xt(_0x5d0efb,_0x5ec143))continue;let _0x439da7=!0x0;for(const _0xdd07fa of _0x5d0efb['getRanges']())for(const _0x5db597 of _0x1df187)if(!_0xdd07fa['containsRange'](_0x5db597)){_0x439da7=!0x1;break;}if(_0x439da7)return _0x5d0efb;}const _0x397f80=_0x2565c0(),_0x2d07e0=_0x369816['id'],_0x1ef4f3='insertion:'+_0x468993,_0x24bc79=this['_setSuggestionData']({'id':_0x397f80,'type':_0x1ef4f3,'createdAt':new Date(),'authorId':_0x2d07e0,'attributes':_0x5ec143});for(const _0x32ab39 of _0x1df187)this['_addSuggestionMarker'](_0x1ef4f3,_0x397f80,_0x2d07e0,_0x32ab39,o['getMultiRangeId']());return _0x24bc79;}['markInlineFormat'](_0x410453,_0x42d7b4,_0x2efcd5=null,_0x5e2fc4={}){if(_0x2efcd5=_0x2efcd5||Kt(_0x42d7b4),_0x410453['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5e2fc4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d7415=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2efcd5,'accept');return this['forceDefaultExecution'](()=>_0x3d7415([_0x410453],_0x42d7b4,_0x5e2fc4)),null;}const _0x36576a=this['editor']['plugins']['get']('Users')['me'],_0x17237a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5dc69a,meta:_0x3cfcd6}of this['_findSuggestions'](_0x410453,'insertion'))_0x3cfcd6['isOwn']&&!_0x3cfcd6['isInsideObject']&&_0x17237a['push'](..._0x5dc69a['getRanges']());}const _0x5e3ee3=function(_0x3def73,_0x3147b8){const _0x3c548e=[];for(const _0x49f599 of _0x3147b8){const _0x308067=_0x3def73['getIntersection'](_0x49f599);_0x308067&&_0x3c548e['push'](_0x308067);}return _0x3c548e;}(_0x410453,_0x17237a),_0x54a3ff=function(_0x2bee8e,_0x357343){const _0x119574=[_0x2bee8e];for(const _0x3ee666 of _0x357343){let _0x3397b0=0x0;for(;_0x3397b0<_0x119574['length'];){const _0x16a559=_0x119574[_0x3397b0]['getDifference'](_0x3ee666);_0x119574['splice'](_0x3397b0,0x1,..._0x16a559),_0x3397b0+=_0x16a559['length'];}}return _0x119574;}(_0x410453,_0x17237a);_0x5e3ee3['length']&&this['_model']['change'](()=>{for(const _0x1f77af of _0x5e3ee3){const _0x125097=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2efcd5,'accept');this['forceDefaultExecution'](()=>_0x125097([_0x1f77af],_0x42d7b4,_0x5e2fc4));}});for(const _0x13de36 of _0x54a3ff){let _0x31f0ed=null,_0x459a95=_0x13de36['start'],_0x5cae27=_0x13de36['end'];for(const {suggestion:_0xcf228e,meta:_0x3241d1}of this['_findSuggestions'](_0x13de36,'formatInline')){if(!_0x3241d1['isOwn'])continue;if(_0xcf228e['subType']!=_0x2efcd5)continue;if(!Xt(_0xcf228e,_0x5e2fc4))continue;const _0x1deb33=_0xcf228e['getFirstRange']();if(_0x1deb33['containsRange'](_0x13de36,!0x0))return null;_0x459a95=_0x459a95['isBefore'](_0x1deb33['start'])?_0x459a95:_0x1deb33['start'],_0x5cae27=_0x5cae27['isAfter'](_0x1deb33['end'])?_0x5cae27:_0x1deb33['end'],_0x31f0ed?_0x1deb33['start']['isBefore'](_0x31f0ed['getFirstRange']()['start'])?(_0x31f0ed['removeMarkers'](),_0x31f0ed=_0xcf228e):_0xcf228e['removeMarkers']():_0x31f0ed=_0xcf228e;}const _0x3dfff5=this['_model']['createRange'](_0x459a95,_0x5cae27);if(_0x31f0ed)this['_setSuggestionRange'](_0x31f0ed,_0x3dfff5);else{const _0x4470f0=_0x2565c0(),_0x3b2523=_0x36576a['id'];this['_setSuggestionData']({'id':_0x4470f0,'type':'formatInline:'+_0x2efcd5,'data':_0x42d7b4,'createdAt':new Date(),'authorId':_0x3b2523,'attributes':_0x5e2fc4}),this['_addSuggestionMarker']('formatInline:'+_0x2efcd5,_0x4470f0,_0x3b2523,_0x3dfff5);}}return null;}['markBlockFormat'](_0xccf8c,_0x2cdd42,_0x22a74e=[],_0x4608d5=null,_0x44b826={}){_0x2cdd42['formatGroupId']||(_0x2cdd42['formatGroupId']=_0x2cdd42['commandName']),_0x2cdd42['multipleBlocks']=_0xccf8c['is']('range'),_0x4608d5=_0x4608d5||Kt(_0x2cdd42);const _0x1774d0=_0x22a74e['map'](_0x501b7d=>zt(_0x501b7d,this['_model'])),_0x1e1592=_0xccf8c['is']('range')?_0xccf8c:zt(_0xccf8c,this['_model']);if(this['_trackingSessionId']&&(_0x44b826['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1fffde=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4608d5,'accept');return this['forceDefaultExecution'](()=>_0x1fffde([_0x1e1592],_0x2cdd42,_0x44b826)),null;}_0x1774d0['push'](_0x1e1592);let _0x43f53c=!0x0;for(const _0xb25201 of _0x1774d0)if(!this['_rangeIsInLocalUserInsertion'](_0xb25201)){_0x43f53c=!0x1;break;}if(_0x43f53c&&'always'!==this['_trackFormatChanges']){const _0x223d36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4608d5,'accept');return this['forceDefaultExecution'](()=>_0x223d36([_0x1e1592],_0x2cdd42,_0x44b826)),null;}let _0x1aeaeb=null,_0x11e492=_0x1e1592['start'],_0x4ca989=_0x1e1592['end'];for(const {suggestion:_0x356a8b,meta:_0x484ace}of this['_findSuggestions'](_0x1e1592,'formatBlock')){if(!_0x484ace['isOwn'])continue;if(_0x484ace['isNextTo']||_0x484ace['containsRangeInObject']||_0x484ace['isInsideObject'])continue;if(_0x356a8b['data']['formatGroupId']!=_0x2cdd42['formatGroupId'])continue;if(!Xt(_0x356a8b,_0x44b826))continue;const _0x37bd04=_0x356a8b['getFirstRange']();if(_0x356a8b['subType']==_0x4608d5){if(_0x37bd04['containsRange'](_0x1e1592,!0x0))return null;_0x11e492=_0x11e492['isBefore'](_0x37bd04['start'])?_0x11e492:_0x37bd04['start'],_0x4ca989=_0x4ca989['isAfter'](_0x37bd04['end'])?_0x4ca989:_0x37bd04['end'],_0x1aeaeb?_0x37bd04['start']['isBefore'](_0x1aeaeb['getFirstRange']()['start'])?(_0x1aeaeb['removeMarkers'](),_0x1aeaeb=_0x356a8b):_0x356a8b['removeMarkers']():_0x1aeaeb=_0x356a8b;}else{const _0xf80f91=_0x1e1592['getIntersection'](_0x37bd04);this['_cutOutSuggestionMarker'](_0x356a8b,_0xf80f91);}}const _0x2b4404=this['editor']['plugins']['get']('Users')['me'],_0xc0b9bf=_0x2565c0(),_0x307a1f=_0x2b4404['id'];if(_0x1aeaeb)return this['_setSuggestionRange'](_0x1aeaeb,this['_model']['createRange'](_0x11e492,_0x4ca989)),_0x1aeaeb;{const _0x5a4c93=this['_setSuggestionData']({'id':_0xc0b9bf,'type':'formatBlock:'+_0x4608d5,'data':_0x2cdd42,'createdAt':new Date(),'authorId':_0x307a1f,'attributes':_0x44b826});return this['_addSuggestionMarker']('formatBlock:'+_0x4608d5,_0xc0b9bf,_0x307a1f,this['_model']['createRange'](_0x11e492,_0x4ca989)),_0x5a4c93;}}['markMultiRangeBlockFormat'](_0xefd4e9,_0x4aa20e,_0x43343f=[],_0x13ce1a=null,_0x3f6827={}){_0x4aa20e['formatGroupId']||(_0x4aa20e['formatGroupId']=_0x4aa20e['commandName']);const _0x2633dd=_0xefd4e9[0x0];_0x4aa20e['multipleBlocks']=_0x2633dd['is']('range'),_0x13ce1a=_0x13ce1a||Kt(_0x4aa20e);const _0x484cd1=_0x43343f['map'](_0x1290fd=>zt(_0x1290fd,this['_model'])),_0x4b5252=_0x2633dd['is']('range')?_0xefd4e9:_0xefd4e9['map'](_0x59d1be=>zt(_0x59d1be,this['_model']));if(this['_trackingSessionId']&&(_0x3f6827['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x244456=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ce1a,'accept');return this['forceDefaultExecution'](()=>_0x244456(_0x4b5252,_0x4aa20e,_0x3f6827)),null;}_0x484cd1['push'](..._0x4b5252);let _0x134850=!0x0;for(const _0x2c3faa of _0x484cd1)if(!this['_rangeIsInLocalUserInsertion'](_0x2c3faa)){_0x134850=!0x1;break;}if(_0x134850&&'always'!==this['_trackFormatChanges']){const _0x2b3d99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ce1a,'accept');return this['forceDefaultExecution'](()=>_0x2b3d99(_0x4b5252,_0x4aa20e,_0x3f6827)),null;}const _0x4b4591=this['editor']['plugins']['get']('Users')['me'];for(const _0x173cda of this['getSuggestions']()){if(_0x173cda['author']['id']!=_0x4b4591['id'])continue;if('formatBlock'!=_0x173cda['type']||_0x173cda['data']['formatGroupId']!=_0x4aa20e['formatGroupId'])continue;if(!Xt(_0x173cda,_0x3f6827))continue;const _0x55dae5=_0x173cda['subType']==_0x13ce1a;for(let _0x4b3371=0x0;_0x4b3371<_0x4b5252['length'];_0x4b3371++){const _0x5ba514=_0x4b5252[_0x4b3371];for(const _0x2aa378 of _0x173cda['getMarkers']()){const _0x3efb27=_0x2aa378['getRange']();if(_0x5ba514['isEqual'](_0x3efb27)){_0x55dae5?(_0x4b5252['splice'](_0x4b3371,0x1),_0x4b3371--):_0x173cda['removeMarker'](_0x2aa378['name']);break;}}}}if(0x0==_0x4b5252['length'])return null;const _0x2a1731=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ce1a,'join');for(const _0x19e9a1 of this['getSuggestions']())if(_0x19e9a1['author']['id']==_0x4b4591['id']&&'formatBlock'==_0x19e9a1['type']&&_0x19e9a1['data']['formatGroupId']==_0x4aa20e['formatGroupId']&&_0x19e9a1['subType']==_0x13ce1a&&Xt(_0x19e9a1,_0x3f6827)&&(_0x2a1731(_0x19e9a1['getRanges'](),_0x4b5252)||_0x2a1731(_0x4b5252,_0x19e9a1['getRanges']()))){for(const _0x1eaea1 of _0x4b5252)_0x19e9a1['addRange'](_0x1eaea1);return _0x19e9a1;}const _0x462d7b=_0x2565c0(),_0x523b15=_0x4b4591['id'],_0xd9b839='formatBlock:'+_0x13ce1a,_0x264e6d=this['_setSuggestionData']({'id':_0x462d7b,'type':_0xd9b839,'data':_0x4aa20e,'createdAt':new Date(),'authorId':_0x523b15,'attributes':_0x3f6827});for(const _0x414ea3 of _0x4b5252)this['_addSuggestionMarker'](_0xd9b839,_0x462d7b,_0x523b15,_0x414ea3,o['getMultiRangeId']());return _0x264e6d;}['markDeletion'](_0x8773c1,_0x4d2dd8=null,_0x70757e={}){if(_0x8773c1['isCollapsed'])return null;const _0x5d8d0f=this['editor']['plugins']['get']('Users')['me'],_0x1c0434=new _0x4ce525(_0x8773c1['start'],_0x8773c1['end']);this['_trackingSessionId']&&(_0x70757e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46f2c8,meta:_0x369284}of this['_findSuggestions'](_0x1c0434,'insertion'))if(_0x369284['isOwn']&&!_0x369284['isNextTo']){if(_0x46f2c8['isMultiRange']){const _0x1281c3=_0x46f2c8['getRanges']()['filter'](_0x5cff00=>'$graveyard'!=_0x5cff00['root']['rootName']);_0x1281c3['every'](_0x4c8ec3=>_0x1c0434['containsRange'](_0x4c8ec3,!0x0))&&_0x46f2c8['discard']();if(_0x1281c3['some'](_0x175bf9=>_0x175bf9['containsRange'](_0x1c0434,!0x0))){const _0x590aa9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2dd8,'accept');return this['forceDefaultExecution'](()=>_0x590aa9([_0x1c0434],null,_0x70757e)),null;}}else{const _0x5d24a2=_0x1c0434['getIntersection'](_0x46f2c8['getFirstRange']());null!==_0x5d24a2&&_0x46f2c8['_onDiscard']([_0x5d24a2],null,_0x70757e);}}if(_0x1c0434['detach'](),_0x1c0434['isCollapsed']||'$graveyard'==_0x1c0434['root']['rootName'])return null;let _0x3178c0=null,_0x4c8736=_0x1c0434['start'],_0x48f76b=_0x1c0434['end'];const _0x4a1ac4=this['_findSuggestions'](_0x1c0434,'deletion');for(const {suggestion:_0x1fa246,meta:_0x135dcf}of _0x4a1ac4){const _0x570f56=this['_model']['createRange'](_0x4c8736,_0x48f76b);if(_0x135dcf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x135dcf['containsRangeInObject']&&!_0x135dcf['isInsideObject'])){if(_0x1fa246['isMultiRange']){if(!Xt(_0x1fa246,_0x70757e))continue;let _0x866d14=!0x0;for(const _0x26f34a of _0x1fa246['getRanges']()){if(_0x26f34a['containsRange'](_0x570f56,!0x0))return _0x1fa246;_0x570f56['containsRange'](_0x26f34a)||(_0x866d14=!0x1);}_0x866d14&&_0x1fa246['discard']();}else{const _0x2367da=_0x1fa246['getFirstRange']();if(_0x2367da['containsRange'](_0x570f56,!0x0))return _0x1fa246;if(!Xt(_0x1fa246,_0x70757e)){_0x570f56['containsRange'](_0x2367da)?_0x1fa246['removeMarkers']():_0x2367da['containsPosition'](_0x4c8736)?_0x4c8736=_0x2367da['end']:_0x2367da['containsPosition'](_0x48f76b)&&(_0x48f76b=_0x2367da['start']);continue;}_0x4c8736=_0x4c8736['isBefore'](_0x2367da['start'])?_0x4c8736:_0x2367da['start'],_0x48f76b=_0x48f76b['isAfter'](_0x2367da['end'])?_0x48f76b:_0x2367da['end'],_0x70757e=Object['assign']({},_0x1fa246['attributes']),_0x3178c0?_0x2367da['start']['isBefore'](_0x3178c0['getFirstRange']()['start'])?(_0x3178c0['removeMarkers'](),_0x3178c0=_0x1fa246):_0x1fa246['removeMarkers']():_0x3178c0=_0x1fa246;}}}if(_0x3178c0)return this['_setSuggestionRange'](_0x3178c0,this['_model']['createRange'](_0x4c8736,_0x48f76b)),_0x3178c0;{const _0x477cd0=_0x2565c0(),_0x2c8685=this['_model']['createRange'](_0x4c8736,_0x48f76b),_0x39238a=_0x5d8d0f['id'],_0x352f4a=_0x4d2dd8?'deletion:'+_0x4d2dd8:'deletion',_0x3d1228=this['_setSuggestionData']({'id':_0x477cd0,'type':_0x352f4a,'createdAt':new Date(),'authorId':_0x39238a,'attributes':_0x70757e});return this['_addSuggestionMarker'](_0x352f4a,_0x477cd0,_0x39238a,_0x2c8685),_0x3d1228;}}['markMultiRangeDeletion'](_0x2b3d43,_0x248cbf='multi',_0x17daaf={}){const _0x49084e=this['editor']['plugins']['get']('Users')['me'],_0x2fac7e=_0x2b3d43['map'](_0x2e2a7a=>new _0x4ce525(_0x2e2a7a['start'],_0x2e2a7a['end'])),_0x29b8ef=new Set();this['_trackingSessionId']&&(_0x17daaf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4bfda5,meta:_0x488bc2}of this['_findSuggestions'](_0x2fac7e,'insertion'))_0x488bc2['isOwn']&&!_0x488bc2['isNextTo']&&_0x29b8ef['add'](_0x4bfda5);for(const _0x1a1266 of _0x29b8ef)if(_0x1a1266['isMultiRange']){const _0x37b69c=_0x1a1266['getRanges']();(!_0x1a1266['attributes']||!_0x1a1266['attributes']['skipNestingCheck'])&&(_0x37b69c['every'](_0x204b08=>_0x2fac7e['some'](_0x5baed1=>_0x5baed1['containsRange'](_0x204b08,!0x0)))&&_0x1a1266['discard']());if(_0x2fac7e['every'](_0x2bf1ec=>_0x37b69c['some'](_0x9d91ca=>_0x9d91ca['containsRange'](_0x2bf1ec,!0x0)))){const _0x2055c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248cbf,'accept');return this['forceDefaultExecution'](()=>_0x2055c4(_0x2b3d43,null,_0x17daaf)),null;}}else{const _0x47a8a5=_0x1a1266['getFirstRange']();_0x2fac7e['some'](_0xaecb02=>_0xaecb02['containsRange'](_0x47a8a5,!0x0))&&_0x1a1266['discard']();if(_0x2fac7e['every'](_0xd0562c=>_0x47a8a5['containsRange'](_0xd0562c,!0x0))){const _0x76fb85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248cbf,'accept');return this['forceDefaultExecution'](()=>_0x76fb85(_0x2fac7e,null,_0x17daaf)),null;}}const _0x217ea4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248cbf,'join');let _0x44346d=null;for(const _0x46d101 of this['getSuggestions']())if(_0x46d101['author']['id']==_0x49084e['id']&&_0x46d101['isInContent']&&'deletion'==_0x46d101['type']&&_0x46d101['subType']==_0x248cbf&&Xt(_0x46d101,_0x17daaf)&&(_0x217ea4(_0x46d101['getRanges'](),_0x2fac7e)||_0x217ea4(_0x2fac7e,_0x46d101['getRanges']()))){if(_0x44346d){if(_0x46d101['commentThread']&&_0x46d101['commentThread']['length'])continue;for(const _0x376633 of _0x46d101['getRanges']())_0x44346d['isIntersectingWithRange'](_0x376633)||_0x44346d['addRange'](_0x376633);_0x46d101['removeMarkers']();}else{_0x44346d=_0x46d101;for(const _0x2033bf of _0x2fac7e)_0x46d101['isIntersectingWithRange'](_0x2033bf)||_0x46d101['addRange'](_0x2033bf);}}if(_0x44346d)return _0x44346d;_0x29b8ef['clear']();for(const {suggestion:_0x3b54b0,meta:_0x40459d}of this['_findSuggestions'](_0x2fac7e,'deletion'))_0x40459d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40459d['containsRangeInObject']&&!_0x40459d['isInsideObject'])&&Xt(_0x3b54b0,_0x17daaf)&&_0x29b8ef['add'](_0x3b54b0);for(const _0x34e980 of _0x29b8ef){const _0x3faab4=_0x34e980['getRanges']();if(!_0x17daaf||!_0x17daaf['skipNestingCheck']){if(_0x2fac7e['every'](_0x52cb6a=>_0x3faab4['some'](_0x4b62dc=>_0x4b62dc['containsRange'](_0x52cb6a,!0x0))))return _0x34e980;}(!_0x34e980['attributes']||!_0x34e980['attributes']['skipNestingCheck'])&&(_0x3faab4['every'](_0x1db555=>_0x2fac7e['some'](_0x385206=>_0x385206['containsRange'](_0x1db555,!0x0)))&&_0x34e980['discard']());}const _0x1e0e1b=_0x2565c0(),_0x358f4b=_0x49084e['id'],_0x22e1cc='deletion:'+_0x248cbf,_0x50fc5f=this['_setSuggestionData']({'id':_0x1e0e1b,'type':_0x22e1cc,'createdAt':new Date(),'authorId':_0x358f4b,'attributes':_0x17daaf});for(const _0x5671a7 of _0x2fac7e)_0x5671a7['detach'](),_0x5671a7['isCollapsed']||'$graveyard'==_0x5671a7['root']['rootName']||this['_addSuggestionMarker'](_0x22e1cc,_0x1e0e1b,_0x358f4b,_0x5671a7,o['getMultiRangeId']());return _0x50fc5f;}['markAttributeChange'](_0xfbb50a,_0x1a5cad,_0x4acc92,_0x17b4af,_0xe971b){if(_0xfbb50a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2e00b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x5a68bb=Array['from'](this['_suggestions']['values']())['filter'](_0x4bb448=>'attribute'==_0x4bb448['type']&&_0x4bb448['data']['key']==_0x1a5cad&&_0x4bb448['isIntersectingWithRange'](_0xfbb50a));if(this['_trackingSessionId']&&(_0xe971b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xe9fd99=this['_findSuggestions'](_0xfbb50a,'insertion')['filter'](({meta:_0x408ca5})=>_0x408ca5['isOwn']&&!_0x408ca5['isInsideObject']&&!_0x408ca5['isNextTo'])['map'](({suggestion:_0x2d1cbe})=>_0x2d1cbe);_0x5a68bb['unshift'](..._0xe9fd99);}const _0xb45bd=new Map([[_0xfbb50a,_0x4acc92]]);for(const _0x5df760 of _0x5a68bb){const _0x463a63='attribute'==_0x5df760['type']?_0x5df760['data']['oldValue']:void 0x0,_0x5b16ff=_0x5df760['getFirstRange'](),_0x450baf=Array['from'](_0xb45bd['keys']())['find'](_0x33c5c4=>_0x33c5c4['isIntersecting'](_0x5b16ff));if(!_0x450baf)continue;const _0x8dcb0=_0x450baf['getDifference'](_0x5b16ff);this['_isBlockAttribute'](_0x1a5cad)&&'insertion'==_0x5df760['type']&&0x0!=_0x8dcb0['length']||(_0xb45bd['delete'](_0x450baf),_0x8dcb0['forEach'](_0x4404ad=>{_0xb45bd['set'](_0x4404ad,_0x4acc92);}),'insertion'!=_0x5df760['type']&&_0x463a63!=_0x17b4af&&_0xb45bd['set'](_0x450baf['getIntersection'](_0x5b16ff),_0x463a63));}const _0x59fe92=[];for(const [_0x2e02fb,_0x15cc74]of _0xb45bd){const _0x46dc1e=_0x2565c0(),_0xd3f813={'key':_0x1a5cad,'oldValue':_0x15cc74,'newValue':_0x17b4af};_0x1a5cad['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':_0x1a5cad});const _0x10398a=('attribute:'+(_0x1a5cad+'|'+Kt({'newValue':_0x17b4af})))['substring'](0x0,0x3c),_0xdad828=this['_setSuggestionData']({'id':_0x46dc1e,'type':_0x10398a,'data':_0xd3f813,'createdAt':new Date(),'authorId':_0x2e00b8,'attributes':_0xe971b});_0x59fe92['push'](_0xdad828),this['_addSuggestionMarker'](_0x10398a,_0x46dc1e,_0x2e00b8,_0x2e02fb);}return _0x59fe92;}['enableDefaultAttributesIntegration'](_0x3ae639){this['enableCommand'](_0x3ae639,(_0xa338b4,..._0x20a06a)=>{this['_recordAttributeChanges'](()=>{_0xa338b4(..._0x20a06a);});});}['registerBlockAttribute'](_0x4d95d4){this['_blockAttributeKeys']['add'](_0x4d95d4);}['registerInlineAttribute'](_0x521a81){this['_inlineAttributeKeys']['add'](_0x521a81);}['startTrackingSession'](_0x45f110){return this['_trackingSessionId']=void 0x0!==_0x45f110?_0x45f110:_0x2565c0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x114d7e){return'attribute'==_0x114d7e['type']?_0x114d7e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3f94b7,_0x1cce4a){const _0x5cb933=_0x3f94b7['getFirstMarker']();this['_model']['change'](_0x3accad=>{_0x3accad['updateMarker'](_0x5cb933,{'range':_0x1cce4a});});}['_addThreadToSuggestion'](_0x2bf629){const _0x5b51ea=_0x2bf629['id'],_0x425825=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5b51ea)||this['_commentsRepository']['addCommentThread']({'channelId':_0x425825,'threadId':_0x5b51ea,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d61b9=this['_commentsRepository']['getCommentThread'](_0x5b51ea);_0x1d61b9['unbind']('isRemovable'),_0x1d61b9['isRemovable']=!0x1,_0x2bf629['commentThread']=_0x1d61b9;}['_checkSuggestionCorrectness'](_0xaea263,_0x4fef2f,_0x879e1b,_0x23e635){if(_0xaea263['type']!=_0x4fef2f||_0xaea263['subType']!=_0x879e1b||_0xaea263['creator']['id']!=_0x23e635)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x152d77('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2b170c,_0x48923a){const _0x5a0780=_0x2b170c['getFirstRange']();if(_0x48923a['isEqual'](_0x5a0780))_0x2b170c['removeMarkers']();else{if(_0x5a0780['containsRange'](_0x48923a)){const _0xe7b962=this['_model']['createPositionAt'](_0x48923a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b170c,this['_model']['createRange'](_0x5a0780['start'],_0xe7b962));const _0x46cd87=_0x2565c0(),_0x15f3f8=_0x2b170c['creator']['id'],_0x33d064=_0x2b170c['type']+':'+_0x2b170c['subType'];this['_setSuggestionData']({'id':_0x46cd87,'type':_0x33d064,'createdAt':new Date(),'authorId':_0x15f3f8,'data':_0x2b170c['data'],'attributes':_0x2b170c['attributes']});const _0x462955=this['_model']['createPositionAt'](_0x48923a['end']['parent'],'after'),_0x1dcdf4=this['_model']['createRange'](_0x462955,_0x5a0780['end']);this['_addSuggestionMarker'](_0x33d064,_0x46cd87,_0x15f3f8,_0x1dcdf4);}else{if(_0x5a0780['containsPosition'](_0x48923a['start'])){const _0x13b039=this['_model']['createPositionAt'](_0x48923a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b170c,this['_model']['createRange'](_0x5a0780['start'],_0x13b039));}else{const _0x24812c=this['_model']['createPositionAt'](_0x48923a['end']['parent'],'after');this['_setSuggestionRange'](_0x2b170c,this['_model']['createRange'](_0x24812c,_0x5a0780['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4a6df4){for(const {suggestion:_0x5e1a95,meta:_0x143df1}of this['_findSuggestions'](_0x4a6df4,'insertion')){if(!_0x143df1['isOwn'])continue;const _0x59b592=_0x5e1a95['getRanges']();for(const _0x43402d of _0x59b592)if(!_0x4a6df4['getDifference'](_0x43402d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e782f){const _0x42b64e=this['editor']['plugins']['get']('Users')['getUser'](_0x2e782f);if(!_0x42b64e)throw new _0x152d77('track-changes-user-not-found',this);return _0x42b64e;}['_getExternalAuthor'](_0x272b2a){const _0x15100c=this['editor']['plugins']['get']('Users'),_0x3849e2=_0x681558('external:'+_0x272b2a),_0x1718db=_0x15100c['getUser'](_0x3849e2);return _0x1718db||_0x15100c['addUser']({'id':_0x3849e2,'name':_0x272b2a});}['_createSuggestion'](_0x398c11,_0x4972a9,_0x33ac79,_0x584e0c,_0x160749){const _0x45f43a=this['_getAuthorFromId'](_0x584e0c),_0x442d58=this['_suggestionFactory']['buildSuggestion'](_0x398c11,_0x4972a9,_0x33ac79,_0x45f43a,_0x160749,_0x5b05b1=>{this['_updateSuggestionData'](_0x33ac79,{'attributes':_0x5b05b1});const _0x339cdc=this['getSuggestion'](_0x33ac79);this['_joinWithAdjacentSuggestions'](new Set([_0x339cdc])),this['_refreshSuggestionsChain'](new Set([_0x339cdc]));});return this['listenTo'](_0x442d58,'accept',()=>{this['_updateSuggestionData'](_0x33ac79,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x442d58,'discard',()=>{this['_updateSuggestionData'](_0x33ac79,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x33ac79,_0x442d58),this['_suggestionState']['set'](_0x442d58,'notReady'),_0x442d58;}['_splitMarkerName'](_0xd3cc56){const _0x2679c4=_0xd3cc56['split'](':');return{'group':_0x2679c4[0x0],'type':_0x2679c4[0x1],'subType':_0x2679c4['length']>=0x5?_0x2679c4[0x2]:null,'id':_0x2679c4['length']<0x5?_0x2679c4[0x2]:_0x2679c4[0x3],'authorId':_0x2679c4['length']<0x5?_0x2679c4[0x3]:_0x2679c4[0x4],'markerCount':0x6==_0x2679c4['length']?_0x2679c4[0x5]:null};}['_breakSuggestionMarker'](_0x42ae5a,_0x531036,_0x599256){const _0x22d17e=_0x42ae5a['getFirstRange'](),_0x160ee0=_0x22d17e['start'],_0x1b6b19=_0x22d17e['end'];this['_setSuggestionRange'](_0x42ae5a,this['_model']['createRange'](_0x160ee0,_0x531036));const _0x18bfa2=_0x2565c0(),_0x53ef16=_0x42ae5a['creator']['id'],_0x431482=_0x42ae5a['type']+(_0x42ae5a['subType']?':'+_0x42ae5a['subType']:'');this['_setSuggestionData']({'id':_0x18bfa2,'type':_0x431482,'createdAt':new Date(),'authorId':_0x53ef16,'originalSuggestionId':_0x42ae5a['id'],'attributes':_0x42ae5a['attributes'],'data':_0x42ae5a['data']});const _0x54c9e7=this['_getAttributeKey'](_0x42ae5a);('formatBlock'==_0x42ae5a['type']||_0x54c9e7&&this['_isBlockAttribute'](_0x54c9e7))&&(_0x599256=this['_model']['createPositionBefore'](_0x599256['parent'])),this['_addSuggestionMarker'](_0x431482,_0x18bfa2,_0x53ef16,this['_model']['createRange'](_0x599256,_0x1b6b19));}['_findSuggestions'](_0xbb9e47,_0x2889d1=null){const _0xbf2634=[],_0x44043f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xbb9e47)||(_0xbb9e47=[_0xbb9e47]);for(const _0x13a9bd of this['getSuggestions']()){if(!_0x13a9bd['isInContent'])continue;if(_0x2889d1&&_0x13a9bd['type']!=_0x2889d1)continue;let _0x46e84f=!0x1;for(const _0x353f90 of _0x13a9bd['getRanges']()){for(const _0x373c84 of _0xbb9e47){const _0x2033fa=_0x373c84['start']['isEqual'](_0x353f90['end'])||_0x373c84['end']['isEqual'](_0x353f90['start']);if(_0x2033fa||_0x373c84['getIntersection'](_0x353f90)){const _0x419171=_0x373c84['containsRange'](_0x353f90)&&Gt(this['_model']['schema'],_0x353f90['start'],_0x373c84),_0x232ee6=_0x353f90['containsRange'](_0x373c84)&&Gt(this['_model']['schema'],_0x373c84['start'],_0x353f90);_0xbf2634['push']({'suggestion':_0x13a9bd,'meta':{'isOwn':_0x44043f==_0x13a9bd['author'],'isNextTo':_0x2033fa,'isInsideObject':_0x419171,'containsRangeInObject':_0x232ee6}}),_0x46e84f=!0x0;break;}}if(_0x46e84f)break;}}return _0xbf2634;}['_addSuggestionMarker'](_0x41f5ed,_0x1670a7,_0x26f5df,_0x53bd8b,_0x4c9477){this['_model']['change'](_0x2acf2c=>{let _0x34559f='suggestion:'+_0x41f5ed+':'+_0x1670a7+':'+_0x26f5df;_0x4c9477&&(_0x34559f=_0x34559f+':'+_0x4c9477),_0x2acf2c['addMarker'](_0x34559f,{'range':_0x53bd8b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a1f37){const _0x487959=_0x1a1f37['previous'],_0x56e9bb=_0x1a1f37['next'];_0x1a1f37['previous']=null,_0x1a1f37['next']=null,null!=_0x487959&&_0x487959['next']==_0x1a1f37&&(_0x487959['next']=_0x56e9bb),null!=_0x56e9bb&&_0x56e9bb['previous']==_0x1a1f37&&(_0x56e9bb['previous']=_0x487959),'ready'==this['_suggestionState']['get'](_0x1a1f37)&&(this['_suggestionState']['set'](_0x1a1f37,'removed'),this['fire']('suggestionUnloaded',_0x1a1f37,_0x487959,_0x56e9bb));}['_setSuggestionData'](_0x3d9524){const _0x29bb40=_0x3d9524['id'],_0x21f61b=this['addSuggestionData'](_0x3d9524);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x21eca5=this['editor']['plugins']['get']('PendingActions'),_0x27e31a=_0x21f61b['hasComments'],_0x25fcaf=_0x21f61b['subType']?_0x21f61b['type']+':'+_0x21f61b['subType']:_0x21f61b['type'],_0x469fb1=this['editor']['locale'],_0x5db975=_0x21eca5['add'](c(_0x469fb1,'PENDING_ACTION_SUGGESTION')),_0x5f0aed={'id':_0x29bb40,'type':_0x25fcaf,'hasComments':_0x27e31a,'data':_0x3d9524['data']||null,'originalSuggestionId':_0x3d9524['originalSuggestionId']||null,'attributes':_0x21f61b['attributes']};this['_adapter']['addSuggestion'](_0x5f0aed)['then'](_0x3e2fdb=>{_0x21f61b['_saved']=!0x0,_0x21eca5['remove'](_0x5db975),_0x3e2fdb&&_0x3e2fdb['createdAt']&&(this['_suggestions']['get'](_0x29bb40)['createdAt']=_0x3e2fdb['createdAt']);})['catch'](_0x5c4b48=>{throw _0x46eb67('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x21f61b['discard']();}),_0x21f61b['stopListening'](),this['_suggestions']['delete'](_0x21f61b['id']),this['_suggestionState']['delete'](_0x21f61b),_0x5c4b48;});}return _0x21f61b;}['_isBlockAttribute'](_0x377b72){return this['_blockAttributeKeys']['has'](_0x377b72);}['_updateSuggestionData'](_0x56794e,_0xb817c2){const _0x3fed7d=this['editor']['plugins']['get']('PendingActions'),_0x5b12e3=this['getSuggestion'](_0x56794e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5b12e3['_saved']){const _0x2eef6a=_0x3fed7d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x56794e,_0xb817c2)['then'](()=>{_0x3fed7d['remove'](_0x2eef6a);});}else _0x5b12e3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x56794e,_0xb817c2);});}}['_getSuggestionData'](_0x4cf2ed){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x152d77('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4cf2ed);}['_handleNewSuggestionMarker'](_0x23354e){const {id:_0x273e79,type:_0x3845e9,subType:_0xfb248f,authorId:_0x5aa0fb}=this['_splitMarkerName'](_0x23354e),_0x23c0d0=this['_suggestions']['get'](_0x273e79)||this['_createSuggestion'](_0x3845e9,_0xfb248f,_0x273e79,_0x5aa0fb,{});switch(this['_checkSuggestionCorrectness'](_0x23c0d0,_0x3845e9,_0xfb248f,_0x5aa0fb),this['_suggestionState']['get'](_0x23c0d0)){case'notReady':this['_getSuggestionData'](_0x273e79)['then'](_0x4d3ccd=>{let _0x14f4a7=Promise['resolve']();_0x4d3ccd['hasComments']&&(_0x14f4a7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x273e79})),_0x14f4a7['then'](()=>{this['addSuggestionData'](_0x4d3ccd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x23c0d0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x273e79,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x23c0d0,'ready'),this['fire']('suggestionLoaded',_0x23c0d0);break;case'ready':this['fire']('suggestionChanged',_0x23c0d0);}return _0x23c0d0['addMarkerName'](_0x23354e),_0x23c0d0;}['_refreshSuggestionsChain'](_0x2070ef){const _0x568e26=Array['from'](_0x2070ef),_0x1de0e6=_0x568e26['filter'](_0x49edbd=>'attribute'==_0x49edbd['type']);this['_refreshAttributeSuggestionsChain'](_0x1de0e6);const _0x3c6705=_0x568e26['filter'](_0x1d7b66=>!_0x1d7b66['isMultiRange']&&'attribute'!=_0x1d7b66['type']),_0x3ff80d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc5c8=>!_0x5dc5c8['isMultiRange']&&'attribute'!=_0x5dc5c8['type']),_0x1040ca=_0x3ff80d['filter'](_0x278ed3=>!_0x2070ef['has'](_0x278ed3)),_0x36964b=new Map(_0x3ff80d['map'](_0x4b429b=>[_0x4b429b,this['_suggestionFactory']['getSuggestionCallback'](_0x4b429b['type'],_0x4b429b['subType'],'chain')])),_0x2334fa=new Map(_0x3ff80d['map'](_0x2d48a6=>[_0x2d48a6,_0x2d48a6['getFirstRange']()])),_0x441ecd=new Set(),_0x5616fe=new Set();for(let _0xbcec9a=0x0;_0xbcec9a<_0x3c6705['length'];_0xbcec9a++)_0x2a490f(_0x3c6705[_0xbcec9a],_0x3c6705,_0xbcec9a+0x1);for(let _0x481cea=0x0;_0x481cea<_0x3c6705['length'];_0x481cea++)_0x2a490f(_0x3c6705[_0x481cea],_0x1040ca,0x0);const _0xdd926d=new Set();for(let _0x520db6=0x0;_0x520db6<_0x3c6705['length'];_0x520db6++){const _0x55d704=_0x3c6705[_0x520db6];!_0x5616fe['has'](_0x55d704)&&_0x55d704['previous']&&(_0xdd926d['add'](_0x55d704['previous']),_0x55d704['previous']['next']===_0x55d704&&(_0x55d704['previous']['next']=null),_0x55d704['previous']=null),!_0x441ecd['has'](_0x55d704)&&_0x55d704['next']&&(_0xdd926d['add'](_0x55d704['next']),_0x55d704['next']['previous']===_0x55d704&&(_0x55d704['next']['previous']=null),_0x55d704['next']=null);}function _0x2a490f(_0x2aaf6d,_0x514e37,_0x343803){for(let _0x17d08b=_0x343803;_0x17d08b<_0x514e37['length'];_0x17d08b++){const _0x169056=_0x1d4d77(_0x2aaf6d,_0x514e37[_0x17d08b]);_0x169056&&(_0x169056[0x0]['next']=_0x169056[0x1],_0x169056[0x1]['previous']=_0x169056[0x0],_0x441ecd['add'](_0x169056[0x0]),_0x5616fe['add'](_0x169056[0x1]));}}function _0x1d4d77(_0x30af43,_0x1661f9){if(_0x30af43['author']['id']!==_0x1661f9['author']['id'])return null;const _0x1e13d3=_0x36964b['get'](_0x30af43)(_0x30af43,_0x1661f9,_0x2334fa['get'](_0x30af43),_0x2334fa['get'](_0x1661f9));if(!_0x1e13d3)return null;return _0x36964b['get'](_0x1661f9)(_0x30af43,_0x1661f9,_0x2334fa['get'](_0x30af43),_0x2334fa['get'](_0x1661f9))?_0x1e13d3[0x1]['commentThread']&&_0x1e13d3[0x1]['commentThread']['length']?null:_0x1e13d3:null;}_0xdd926d['size']&&this['_refreshSuggestionsChain'](_0xdd926d);}['_refreshAttributeSuggestionsChain'](_0x1ade0a){if(0x0==_0x1ade0a['length'])return;const _0x7162d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c3c53=>'attribute'==_0x3c3c53['type']&&_0x3c3c53['_isDataLoaded']),_0x1d9c0a=[],_0x28dd08=new Map();for(const _0x2a7e08 of _0x7162d9){const _0x30edd0=_0x681558(_0x2a7e08['attributes']);_0x28dd08['has'](_0x30edd0)||(_0x28dd08['set'](_0x30edd0,_0x1d9c0a['length']),_0x1d9c0a['push']([]));const _0x23218b=_0x28dd08['get'](_0x30edd0);_0x1d9c0a[_0x23218b]['push'](_0x2a7e08);}!(function(){_0x1d9c0a['sort']((_0x3216f2,_0x1fa322)=>{const _0x4ec28c=_0x3216f2[0x0]['createdAt'],_0x193db9=_0x1fa322[0x0]['createdAt'];return _0x4ec28c==_0x193db9?_0x3216f2[0x0]['attributes']['groupId']<_0x1fa322[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ec28c<_0x193db9?-0x1:0x1;});for(const _0x6cb7c4 of _0x1d9c0a)_0x6cb7c4['sort']((_0x18bc65,_0x175461)=>_0x18bc65['id']<_0x175461['id']?-0x1:0x1);}());for(let _0x4e16f3=0x0;_0x4e16f3<_0x1d9c0a['length'];_0x4e16f3++){if(0x0==_0x1d9c0a[_0x4e16f3]['length'])continue;const _0x5e01ce=[];for(let _0x8988c6=_0x4e16f3+0x1;_0x8988c6<_0x1d9c0a['length'];_0x8988c6++)0x0!=_0x1d9c0a[_0x8988c6]['length']&&_0x5e887e(_0x1d9c0a[_0x4e16f3],_0x1d9c0a[_0x8988c6])&&_0x5e01ce['push'](_0x8988c6);for(const _0x16f942 of _0x5e01ce)_0x1d9c0a[_0x4e16f3]=_0x1d9c0a[_0x4e16f3]['concat'](_0x1d9c0a[_0x16f942]),_0x1d9c0a[_0x16f942]=[];}for(const _0x59760e of _0x1d9c0a)for(let _0x313e4e=0x0;_0x313e4e<_0x59760e['length'];_0x313e4e++){const _0x2c9dc0=_0x59760e[_0x313e4e+0x1]||null;_0x59760e[_0x313e4e]['next']!==_0x2c9dc0&&(_0x59760e[_0x313e4e]['next']=_0x2c9dc0);}for(const _0x19f692 of _0x1d9c0a)for(let _0x5a989b=0x0;_0x5a989b<_0x19f692['length'];_0x5a989b++){const _0x5e5abe=_0x19f692[_0x5a989b-0x1]||null;_0x19f692[_0x5a989b]['previous']!==_0x5e5abe&&(_0x19f692[_0x5a989b]['previous']=_0x5e5abe);}function _0x5e887e(_0x5c0c26,_0x59a3d6){if(_0x5c0c26[0x0]['attributes']['groupId']!==_0x59a3d6[0x0]['attributes']['groupId']&&_0x5c0c26[0x0]['author']!==_0x59a3d6[0x0]['author'])return!0x1;if(!function(_0x24768d,_0x4ee03f){if(!_0x24768d['hasComments']&&!_0x4ee03f['hasComments'])return!0x0;if(_0x24768d['hasComments']&&_0x4ee03f['hasComments'])return!0x1;if(_0x24768d['hasComments']&&_0x4ee03f['createdAt']<_0x24768d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4ee03f['hasComments']&&_0x24768d['createdAt']<_0x4ee03f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5c0c26[0x0],_0x59a3d6[0x0]))return!0x1;const _0x4a17ee=Ft(_0x5c0c26[0x0]['attributes'],['groupId','trackingSessionId']),_0x563c7a=Ft(_0x59a3d6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2bdafa(_0x4a17ee,_0x563c7a))return!0x1;if(_0x5c0c26[0x0]['attributes']['groupId']==_0x59a3d6[0x0]['attributes']['groupId'])return!0x0;if(_0x5c0c26[0x0]['attributes']['trackingSessionId']!==_0x59a3d6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5c0c26['every'](_0x22b280=>_0x59a3d6['some'](_0x177494=>_0x22b280['getFirstRange']()['isEqual'](_0x177494['getFirstRange']())))&&_0x59a3d6['every'](_0x578a65=>_0x5c0c26['some'](_0x136783=>_0x578a65['getFirstRange']()['isEqual'](_0x136783['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1086da){const _0x54ca22=Array['from'](_0x1086da),_0x577adf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x413d8b=_0x577adf['filter'](_0x590a2e=>!_0x1086da['has'](_0x590a2e)),_0x1d6165=new Map(_0x54ca22['map'](_0x41e821=>[_0x41e821,this['_suggestionFactory']['getSuggestionCallback'](_0x41e821['type'],_0x41e821['subType'],'join')])),_0x3ede24=new Map(_0x577adf['map'](_0x365041=>[_0x365041,_0x365041['getRanges']()]));for(let _0x3208a2=0x0;_0x3208a2<_0x54ca22['length'];_0x3208a2++){if(_0x18122d(this,_0x54ca22[_0x3208a2],_0x54ca22,_0x3208a2+0x1))return!0x0;}for(let _0x34eefc=0x0;_0x34eefc<_0x54ca22['length'];_0x34eefc++){if(_0x18122d(this,_0x54ca22[_0x34eefc],_0x413d8b,0x0))return!0x0;}return!0x1;function _0x18122d(_0x5c621d,_0x26e3d5,_0x95345e,_0x4cdc86){for(let _0xd76551=_0x4cdc86;_0xd76551<_0x95345e['length'];_0xd76551++){const _0x30e58c=_0x95345e[_0xd76551];if(_0x30e58c['type']!==_0x26e3d5['type']||_0x30e58c['author']['id']!==_0x26e3d5['author']['id']||_0x30e58c['subType']!==_0x26e3d5['subType'])continue;if(!Qt(_0x26e3d5,_0x30e58c))continue;if('attribute'==_0x26e3d5['type']&&_0x26e3d5['data']['oldValue']!=_0x30e58c['data']['oldValue'])continue;if('attribute'==_0x26e3d5['type']&&_0x5c621d['_isBlockAttribute'](_0x26e3d5['data']['key']))continue;if('formatBlock'==_0x26e3d5['type']){const _0x53397d=_0x5c621d['editor']['model'],_0x53ac36=_0x26e3d5['getContainedElement']();if(_0x53ac36&&(_0x53397d['schema']['isObject'](_0x53ac36)||_0x53397d['schema']['isLimit'](_0x53ac36)))continue;}const _0x46f515=_0x1d6165['get'](_0x26e3d5),_0x55da8c=_0x3ede24['get'](_0x26e3d5),_0x5bb20a=_0x3ede24['get'](_0x30e58c),_0x2a1ca4=_0x26e3d5['commentThread']&&_0x26e3d5['commentThread']['length'],_0x158255=_0x30e58c['commentThread']&&_0x30e58c['commentThread']['length'];if(!_0x2a1ca4&&_0x46f515(_0x5bb20a,_0x55da8c))return _0x5c621d['_joinSuggestions'](_0x30e58c,_0x26e3d5),_0x3ede24['delete'](_0x26e3d5),!0x0;if(!_0x158255&&_0x46f515(_0x55da8c,_0x5bb20a))return _0x5c621d['_joinSuggestions'](_0x26e3d5,_0x30e58c),_0x3ede24['delete'](_0x30e58c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x49c525,_0x50a1ba){if(_0x49c525['isMultiRange']){for(const _0x43ce62 of _0x50a1ba['getRanges']())_0x49c525['addRange'](_0x43ce62);}else{const _0x21c19f=_0x50a1ba['getFirstRange']()['end'];this['_setSuggestionRange'](_0x49c525,this['_model']['createRange'](_0x49c525['getFirstRange']()['start'],_0x21c19f));}_0x50a1ba['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c5400,_0x59c096,_0x164eff){const _0x2b77b9=_0x1c5400['startsWith']('format')||_0x1c5400['startsWith']('attribute')?'FORMATTING':_0x1c5400['toUpperCase']();return c(this['editor']['locale'],_0x59c096+'_'+_0x2b77b9+'_SUGGESTION_ANNOUNCEMENT',_0x164eff);}['_initAriaMarkerChangeAnnouncements'](){const _0x413fe6=this['editor'];if(!_0x413fe6['ui'])return;const {ariaLiveAnnouncer:_0x4fd907}=_0x413fe6['ui'];_0x391ca5(this['_model'],({left:_0x10249b,entered:_0x2ce844})=>{for(const _0x124dbd of _0x10249b){const {group:_0x35de1e,type:_0x19c259}=this['_splitMarkerName'](_0x124dbd['name']);if('suggestion'===_0x35de1e){_0x4fd907['announce'](this['_getMarkerAnnouncementText'](_0x19c259,'LEAVE'));break;}}for(const _0x1d5c7b of _0x2ce844){const {group:_0xf7acb3,type:_0x1af31a}=this['_splitMarkerName'](_0x1d5c7b['name']);if('suggestion'===_0xf7acb3){_0x4fd907['announce'](this['_getMarkerAnnouncementText'](_0x1af31a,'ENTER',_0x3e0024(_0x2ae37a)));break;}}});}['_processAttributeChanges'](_0x191e4a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x188f1c=this['editor'],_0x4fe4ba=_0x188f1c['model']['document']['differ']['getChanges']();if(0x0==_0x4fe4ba['length'])return!0x1;const _0x34f2cb=[],_0x53e342=_0x4fe4ba['filter'](_0x27dcc0=>'attribute'==_0x27dcc0['type']),_0x11c2b8=_0x4fe4ba['filter'](_0x33db3f=>'insert'==_0x33db3f['type']&&'$text'!=_0x33db3f['name']),_0x23fb2e=_0x4fe4ba['filter'](_0x13cdfa=>'remove'==_0x13cdfa['type']&&'$text'!=_0x13cdfa['name']);for(const _0x72b965 of _0x53e342)_0x34f2cb['push']({'key':_0x72b965['attributeKey'],'newValue':_0x72b965['attributeNewValue'],'oldValue':_0x72b965['attributeOldValue'],'range':qt(_0x72b965['range'],_0x188f1c['model'])});for(const _0x27667f of _0x11c2b8){const _0x2c7696=_0x23fb2e['find'](_0x248018=>_0x248018['position']['isEqual'](_0x27667f['position']));_0x2c7696&&_0x34f2cb['push']({'key':u,'newValue':_0x27667f['name'],'oldValue':_0x2c7696['name'],'range':_0x188f1c['model']['createRangeOn'](_0x27667f['position']['nodeAfter'])});}return 0x0!=_0x34f2cb['length']&&this['_reduceExistingSuggestions'](_0x191e4a,_0x34f2cb);}['_processAttributeSuggestions'](_0xf07d7d){let _0x176376=!0x1;const _0x5e5653=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7d2c15=>_0x7d2c15['data']['newRange']&&_0x7d2c15['name']['startsWith']('suggestion:attribute:'));for(const _0x21d037 of _0x5e5653){const {subType:_0x5b82e1,id:_0x242f42}=this['_splitMarkerName'](_0x21d037['name']),_0x574d32=_0x5b82e1['split']('|')[0x0];for(const _0x431ded of this['getSuggestions']({'skipNotAttached':!0x0}))_0x431ded['id']!=_0x242f42&&'attribute'==_0x431ded['type']&&_0x431ded['data']&&_0x431ded['data']['key']==_0x574d32&&_0x431ded['getFirstRange']()['isIntersecting'](_0x21d037['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x431ded,_0x21d037['data']['newRange'],_0xf07d7d),_0x176376=!0x0);}return _0x176376;}['_recordAttributeChanges'](_0x261220){this['_recordAttributeSuggestions']=!0x0,_0x261220();}['_isRegisteredAttribute'](_0x272c2d){const _0x206a51=this['_isBlockAttribute'](_0x272c2d),_0x44687e=this['_inlineAttributeKeys']['has'](_0x272c2d);return _0x206a51||_0x44687e;}['_reduceExistingSuggestions'](_0x1fbeed,_0x403f6b){if(0x0==_0x403f6b['length'])return!0x1;let _0x3fd548=!0x1;for(const _0x5a617f of _0x403f6b){const _0xdea722=this['_findSuggestions'](_0x5a617f['range'],'attribute')['filter'](_0x257c3c=>!_0x257c3c['meta']['isNextTo'])['map'](_0x5b7098=>_0x5b7098['suggestion']),_0x1c64a7=_0x681558({'newValue':_0x5a617f['newValue']});_0xdea722['filter'](_0x465d67=>{const [_0x4f88e5,_0x407f42]=_0x465d67['subType']['split']('|');return _0x4f88e5==_0x5a617f['key']&&_0x407f42!=_0x1c64a7;})['forEach'](_0x348501=>{this['_reduceSuggestionAttributeRange'](_0x348501,_0x5a617f['range'],_0x1fbeed),_0x3fd548=!0x0;});}return _0x3fd548;}['_reduceSuggestionAttributeRange'](_0x1315dd,_0x1cb116,_0x2e2931){const _0x33051a=_0x1315dd['getFirstRange']()['getDifference'](_0x1cb116);0x0!==_0x33051a['length']?0x1!==_0x33051a['length']?this['_breakSuggestionMarker'](_0x1315dd,_0x1cb116['start'],_0x1cb116['end']):this['_setSuggestionRange'](_0x1315dd,_0x33051a[0x0]):_0x2e2931['removeMarker'](_0x1315dd['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1ac9a5){this['_editor']=_0x1ac9a5,this['_model']=_0x1ac9a5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x8d8b98,_0x12a435,_0x500fbd,_0x4df611,_0x3fbb7a,_0x186efc){return new o(this['_model'],{'type':_0x8d8b98,'subType':_0x12a435,'id':_0x500fbd,'author':_0x4df611,'creator':_0x4df611,'attributes':_0x3fbb7a,'onAttributesChange':_0x186efc,'onAccept':(..._0x30e446)=>this['getSuggestionCallback'](_0x8d8b98,_0x12a435,'accept')(..._0x30e446),'onDiscard':(..._0x449994)=>this['getSuggestionCallback'](_0x8d8b98,_0x12a435,'discard')(..._0x449994)});}['registerCustomCallback'](_0x40348a,_0x2bcc84,_0x1726ac,_0xabbccc){const _0x469fdf=_0x40348a+':'+_0x2bcc84+':'+_0x1726ac;this['_customCallbacks']['set'](_0x469fdf,_0xabbccc);}['getSuggestionCallback'](_0x5b994f,_0x1618f3,_0x3ade22){const _0xc1b1e8=_0x5b994f+':'+_0x1618f3+':'+_0x3ade22;return this['_customCallbacks']['get'](_0xc1b1e8)||this['_defaultCallbacks']['get'](_0x5b994f+':'+_0x3ade22);}['_registerDefaultCallbacks'](){const _0x581368=()=>!0x1,_0x1eb2fb=_0x5cd194=>{_0x5cd194['sort']((_0x18333e,_0x5a96d3)=>_0x18333e['start']['isBefore'](_0x5a96d3['start'])?0x1:-0x1),this['_model']['change'](_0x2ad400=>{for(const _0x594d6e of _0x5cd194){let _0x2fa520;_0x2fa520=_0x594d6e['end']['isAtEnd']&&_0x594d6e['end']['parent']==_0x594d6e['start']['nodeAfter']?_0x2ad400['createSelection'](_0x594d6e['start']['nodeAfter'],'on'):_0x2ad400['createSelection'](_0x594d6e),this['_model']['deleteContent'](_0x2fa520,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x32e074=(_0x8f095e,_0x3b68de)=>{_0x3b68de&&this['_model']['change'](_0x40189a=>{const {commandName:_0x51bf3e,commandParams:_0x385ede=[]}=_0x3b68de,_0x1c3e41=_0x8f095e['map'](_0x1f9def=>(Lt(_0x1f9def)&&(_0x1f9def=this['_model']['createRange'](_0x1f9def['end'])),_0x1f9def))['filter'](_0x27c836=>'$graveyard'!==_0x27c836['root']['rootName']);if(_0x1c3e41['length']<0x1)return;const _0x7f454a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ad2e8=>_0x4ce525['fromRange'](_0x5ad2e8));_0x40189a['setSelection'](_0x1c3e41);for(const _0x4f7587 of this['_editor']['commands']['commands']())_0x4f7587['refresh']();_0x385ede['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51bf3e,..._0x385ede);const _0x1e5c6e=_0x7f454a['filter'](_0x2bb7cf=>'$graveyard'!=_0x2bb7cf['root']['rootName']);_0x1e5c6e['length']>0x0&&_0x40189a['setSelection'](_0x1e5c6e);for(const _0x1240d6 of _0x7f454a)_0x1240d6['detach']();});},_0x524cd7=(_0x3504ca,_0x17601d)=>0x1==_0x3504ca['length']&&0x1==_0x17601d['length']&&_0x3504ca[0x0]['end']['isEqual'](_0x17601d[0x0]['start']),_0x3dfd98=(_0x5d9c34,_0x2a4840,_0x23dfa7,_0x44020a)=>Wt(_0x5d9c34,_0x2a4840,_0x23dfa7,_0x44020a)?[_0x5d9c34,_0x2a4840]:Wt(_0x2a4840,_0x5d9c34,_0x44020a,_0x23dfa7)?[_0x2a4840,_0x5d9c34]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x581368),this['_defaultCallbacks']['set']('insertion:discard',_0x1eb2fb),this['_defaultCallbacks']['set']('insertion:join',_0x524cd7),this['_defaultCallbacks']['set']('insertion:chain',_0x3dfd98),this['_defaultCallbacks']['set']('deletion:accept',_0x1eb2fb),this['_defaultCallbacks']['set']('deletion:discard',_0x581368),this['_defaultCallbacks']['set']('deletion:join',_0x524cd7),this['_defaultCallbacks']['set']('deletion:chain',_0x3dfd98),this['_defaultCallbacks']['set']('formatInline:accept',_0x32e074),this['_defaultCallbacks']['set']('formatInline:discard',_0x581368),this['_defaultCallbacks']['set']('formatInline:join',_0x524cd7),this['_defaultCallbacks']['set']('formatInline:chain',_0x581368),this['_defaultCallbacks']['set']('formatBlock:accept',_0x32e074),this['_defaultCallbacks']['set']('formatBlock:discard',_0x581368),this['_defaultCallbacks']['set']('formatBlock:join',_0x524cd7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x581368),this['_defaultCallbacks']['set']('attribute:accept',_0x581368),this['_defaultCallbacks']['set']('attribute:discard',(_0x1aa9e1,_0x4ef0f4)=>{if(!_0x4ef0f4)return;const _0xa74ca3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x122e8c=>{if(_0x4ef0f4['key']==u)for(const _0x4d236f of _0x1aa9e1){const _0x57a0f4=_0x4d236f['start']['nodeAfter'],_0x74b9a3=_0x4ef0f4['oldValue'];_0x122e8c['rename'](_0x57a0f4,_0x74b9a3);}else{if(_0xa74ca3['_isBlockAttribute'](_0x4ef0f4['key'])){for(const _0x236e36 of _0x1aa9e1)void 0x0!==_0x4ef0f4['oldValue']?_0x122e8c['setAttribute'](_0x4ef0f4['key'],_0x4ef0f4['oldValue'],_0x236e36['start']['nodeAfter']):_0x122e8c['removeAttribute'](_0x4ef0f4['key'],_0x236e36['start']['nodeAfter']);}else{for(const _0x598c41 of _0x1aa9e1)_0x4ef0f4['oldValue']?_0x122e8c['setAttribute'](_0x4ef0f4['key'],_0x4ef0f4['oldValue'],_0x598c41):_0x122e8c['removeAttribute'](_0x4ef0f4['key'],_0x598c41);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x524cd7);}}function Gt(_0x2c6c0d,_0x5d5d9f,_0x25db87){for(const _0x2a739c of _0x5d5d9f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2a739c['root']==_0x2a739c)return!0x1;if(!_0x25db87['containsItem'](_0x2a739c))return!0x1;if(_0x2c6c0d['isObject'](_0x2a739c)||_0x2c6c0d['isLimit'](_0x2a739c))return!0x0;}return!0x1;}function Lt(_0x381620){return _0x381620['end']['parent']==_0x381620['start']['nodeAfter']&&_0x381620['end']['isAtStart'];}function Jt(_0x57406b,_0x59462d,_0x313f16,_0x4a4f8f){const _0x5bd6e2=_0x3a787=>!_0x3a787['item']['is']('$textProxy')&&!_0x4a4f8f['isObject'](_0x3a787['item']),_0x16aacf=_0x57406b['start']['getLastMatchingPosition'](_0x5bd6e2),_0x44a78f=_0x57406b['end']['getLastMatchingPosition'](_0x5bd6e2,{'direction':'backward'});return(!_0x57406b['start']['isEqual'](_0x16aacf)||!_0x57406b['end']['isEqual'](_0x44a78f))&&(_0x16aacf['isBefore'](_0x44a78f)?_0x313f16['updateMarker'](_0x59462d,{'range':_0x313f16['createRange'](_0x16aacf,_0x44a78f)}):_0x313f16['removeMarker'](_0x59462d),!0x0);}function Kt(_0x4b4d8d){return _0x681558(_0x4b4d8d);}function Ht(_0x13bbbb){const _0x28adad=_0x13bbbb['start']['nodeAfter'];return _0x28adad&&_0x28adad['is']('element');}function qt(_0x39cf88,_0x220656){return null==_0x39cf88['end']['nodeBefore']&&_0x39cf88['end']['parent']==_0x39cf88['start']['nodeAfter']?zt(_0x39cf88['start']['nodeAfter'],_0x220656):_0x39cf88;}function zt(_0x3aa4ce,_0x265e3f){const _0x2be692=_0x265e3f['schema']['isObject'](_0x3aa4ce)||_0x265e3f['schema']['isSelectable'](_0x3aa4ce);return _0x265e3f['createRange'](_0x265e3f['createPositionAt'](_0x3aa4ce,'before'),_0x2be692?_0x265e3f['createPositionAfter'](_0x3aa4ce):_0x265e3f['createPositionAt'](_0x3aa4ce,'end'));}function Wt(_0x366f0d,_0xf38734,_0x4e5313,_0x3f316c){return!!Qt(_0x366f0d,_0xf38734)&&_0x4e5313['end']['isEqual'](_0x3f316c['start']);}function Qt(_0x419176,_0x545bdd){if(!_0x419176['_isDataLoaded']||!_0x545bdd['_isDataLoaded'])return!0x1;const _0x3f4c06=new Set(Object['keys'](_0x419176['attributes'])),_0x410e42=new Set(Object['keys'](_0x545bdd['attributes']));if(_0x3f4c06['delete']('groupId'),_0x410e42['delete']('groupId'),0x0==_0x3f4c06['size']&&0x0==_0x410e42['size'])return!0x0;if(_0x3f4c06['size']!=_0x410e42['size'])return!0x1;const _0xe9cc85={..._0x419176['attributes']},_0x208f4d={..._0x545bdd['attributes']};return delete _0xe9cc85['groupId'],delete _0x208f4d['groupId'],JSON['stringify'](_0xe9cc85)==JSON['stringify'](_0x208f4d);}function Xt(_0x4c6bbb,_0x313c11){const _0x2a85f3=Yt(_0x4c6bbb['attributes']),_0x5e8d36=Yt(_0x313c11);if(!_0x4c6bbb['_isDataLoaded'])return!0x1;for(const _0x332449 of Object['keys'](_0x5e8d36))if(!_0x2bdafa(_0x2a85f3[_0x332449],_0x5e8d36[_0x332449]))return!0x1;return!0x0;}function Yt(_0x89eb95){const _0x285257=Object['assign']({},_0x89eb95);return delete _0x285257['skipNestingCheck'],delete _0x285257['tablePasteChainId'],_0x285257;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x4a96fd(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x10cc95,_0xe141b4,_0xd40873,_0xced258){super(),this['model']=_0xe141b4,this['view']=_0xd40873,this['commentThreadController']=_0xced258,this['_editor']=_0x10cc95,this['_acceptCommand']=_0x10cc95['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x10cc95['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x59157c,_0x25c221)=>_0x59157c||_0x25c221),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35c9aa=>_0x35c9aa&&this['_editor']['model']['canEditAt'](_0xe141b4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33495f=>_0x33495f&&this['_editor']['model']['canEditAt'](_0xe141b4['getRanges']())),this['_pendingAction']=null,_0xd40873['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xd40873,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xd40873,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xd40873,'change:isDirty',()=>{_0xd40873['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 _0xaaf275=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xaaf275);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2475f2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x122f74,_0x17e781,_0x34f7ac,_0x3fbcfd){super(_0x122f74),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b609f(_0x122f74,c(_0x122f74,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x17e781['authoredAt']),this['bind']('authoredAt')['to'](_0x17e781),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',_0x17e781,'authoredAt',this,'descriptionParts',(_0x5c7002,_0x3e4aaf,_0x1bd103)=>{const _0x5e377f=_0x1bd103['map'](_0x5870ab=>ls(_0x5870ab['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5c7002-0x1,_0x17e781['author']['name'],_0x3e4aaf?_0x3fbcfd['formatDateTime'](_0x3e4aaf):'',new DOMParser()['parseFromString'](_0x5e377f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x54f94d(),this['focusTracker']=new _0x283f73(),this['keystrokes']=new _0x274642(),this['focusCycler']=new _0x5b8716({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ef43b=>_0x2ef43b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x17e781,this['_localUser']=_0x34f7ac,this['_config']=_0x3fbcfd,_0x3fbcfd['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a3c9a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3626ac}=this['_config'];this['commentsListView']=new _0x3626ac(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',_0x558cbf=>_0x558cbf+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bccc4,_0x261b85)=>_0x5bccc4||!!_0x261b85);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1523e5}=this['_config'],_0x2f113a=new _0x1523e5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5e137f=_0x2f113a['commentInputView'];return _0x2f113a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5e137f,'value',(_0x27b968,_0x117f15,_0xd5e1cb)=>!!_0xd5e1cb||_0x27b968&&!_0x117f15),_0x5e137f['on']('submit',(_0x1fd189,_0x110fd9)=>{this['fire']('addComment',_0x110fd9),_0x5e137f['editor']['setData']('');}),_0x5e137f['on']('cancel',()=>this['focus']()),_0x5e137f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f113a;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x15cf53,_0x313dd7,_0x3b38c0,_0xfd8eba){super(_0x15cf53,_0x313dd7,_0x3b38c0,_0xfd8eba),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5232ac=>_0x5232ac&&_0x5232ac[0x0]?_0x5232ac[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1fb9a4,_0x53b708)=>{let _0x134efe='';for(const _0x180d0e of _0x1fb9a4)_0x134efe+='<p>'+ls(_0x180d0e['content'],_0x180d0e['color'])+'</p>';return _0x53b708?_0x134efe:ti(_0x134efe,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xfd8eba['SuggestionView'](_0x15cf53,_0x313dd7,{'formatDateTime':_0xfd8eba['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 _0x57ce0a=this['bindTemplate'],_0x4530a3=[this['suggestionView']];return this['commentsListView']&&_0x4530a3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4530a3['push'](this['commentThreadInputView']),_0x4530a3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x57ce0a['if']('isActive','ck-suggestion-wrapper--active'),_0x57ce0a['to']('type',_0x160303=>'ck-suggestion-'+_0x160303),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':_0x57ce0a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4530a3};}['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 _0x2475f2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x52f2ac,_0xb46d63,_0x16992f){super(_0x52f2ac),this['_model']=_0xb46d63,this['_config']=_0x16992f,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb46d63),this['acceptButton']=this['_createButton'](c(_0x52f2ac,'Accept\x20suggestion'),_0xdde516,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x52f2ac,'Discard\x20suggestion'),_0x2f3378,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4fbc1c(_0x52f2ac,_0xb46d63['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x54f94d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x283f73(),this['keystrokes']=new _0x274642(),this['focusCycler']=new _0x5b8716({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x343dac=>_0x343dac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5dca10=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5dca10['innerHTML']=this['description'],this['on']('change:description',(_0x278e23,_0x4c4b65,_0x2358ef)=>{_0x5dca10['innerHTML']=_0x2358ef;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5692ba=this['bindTemplate'],_0x3ca298=[{'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':_0x5692ba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5692ba['to']('authoredAt',_0x33d238=>this['_config']['formatDateTime'](_0x33d238))}]}]},{'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']&&_0x3ca298['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':_0x3ca298}]};}['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'](_0x3bb6a4,_0x41a76f,_0x4ee66b,_0x5580f2,_0x2ad583){const _0x20db59=new _0x36278a(this['locale']);return _0x20db59['set']({'label':_0x3bb6a4,'icon':_0x41a76f,'tooltip':!0x0,'tooltipPosition':_0x2ad583}),_0x20db59['extendTemplate']({'attributes':{'class':_0x4ee66b}}),_0x20db59['on']('execute',()=>{this['fire'](_0x5580f2,this['_model']['id']);}),_0x20db59;}['_setupKeyboardNavigation'](){const _0x10078c=this['element'];this['keystrokes']['listenTo'](_0x10078c);for(const _0x2ab60f of this['focusables'])this['focusTracker']['add'](_0x2ab60f['element']),this['keystrokes']['listenTo'](_0x2ab60f['element']);this['keystrokes']['set']('enter',(_0x59bfbf,_0x2e64f2)=>{_0x10078c===_0x59bfbf['target']&&(this['focusCycler']['focusFirst'](),_0x2e64f2());}),this['keystrokes']['set']('esc',(_0x16bd8a,_0x4a4ced)=>{_0x10078c!==_0x16bd8a['target']&&(this['focus'](),_0x4a4ced());});}}class d extends _0x5c587b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4ad932,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8295b3){super(_0x8295b3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4b135b=this['editor']['config'];_0x4b135b['define']('trackChanges.SuggestionThreadView',fe),_0x4b135b['define']('trackChanges.SuggestionView',we),_0x4b135b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4b135b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5aeb2d,_0x579865){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x28d4d1,_0x20285b]of this['_handleControllerBuffer']){const _0x268e9b=this['_suggestionToController']['has'](_0x28d4d1);_0x268e9b||_0x20285b?_0x268e9b&&_0x20285b&&this['_destroyController'](_0x28d4d1):this['_initializeController'](_0x28d4d1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5aeb2d,_0x579865);}['init'](){const _0x201885=this['editor'],_0x56782e=_0x201885['plugins']['get']('TrackChangesEditing'),_0x27ebc3=_0x201885['plugins']['get']('Annotations'),_0x158599=_0x201885['plugins']['get']('EditorAnnotations'),_0x12339b=_0x201885['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x158599['addSourceCollector'](()=>{const _0x186610=[];for(const [_0x168197,_0xb5cb29]of Array['from'](this['_suggestionToController'])){const _0x5d18aa=_0x168197['getAllAdjacentSuggestions'](),_0x348c37=[];for(const _0x87504e of _0x5d18aa){if(!_0x87504e['isInContent'])continue;if(_0x87504e['isMultiRange']){_0x348c37['push'](..._0x87504e['getRanges']());continue;}const _0x5320b9=_0x87504e['getFirstRange']();if(_0x348c37['length']>0x0){const _0x1b8960=_0x348c37[0x0]['getJoined'](_0x5320b9);if(_0x1b8960){_0x348c37[0x0]=_0x1b8960;continue;}}_0x348c37['push'](_0x5320b9);}_0x186610['push']([_0xb5cb29['view'],_0x348c37]);}return _0x186610;}),this['listenTo'](_0x56782e,'suggestionLoaded',(_0x1ce626,_0x3e92f9)=>{this['listenTo'](_0x3e92f9,'change:previous',(_0x3d0652,_0x4fe154,_0x578d80,_0x2000ba)=>{_0x3e92f9['isInContent']&&(null==_0x578d80?(this['_updateController'](_0x2000ba['head']),this['_handleSuggestionControllerDelayed'](_0x3e92f9,!0x1)):(this['_updateController'](_0x578d80['head']),null==_0x2000ba&&this['_handleSuggestionControllerDelayed'](_0x3e92f9,!0x0)));}),null!==_0x3e92f9['previous']?this['_updateController'](_0x3e92f9['head']):this['_handleSuggestionControllerDelayed'](_0x3e92f9,!0x1);}),this['listenTo'](_0x56782e,'suggestionUnloaded',(_0x817e21,_0x120fe8,_0x2e87b3)=>{this['stopListening'](_0x120fe8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x120fe8),this['_suggestionToController']['has'](_0x120fe8)&&this['_destroyController'](_0x120fe8),_0x2e87b3&&this['_updateController'](_0x2e87b3['head']);}),this['listenTo'](_0x56782e,'suggestionChanged',(_0x12eaf5,_0x54d61a)=>{this['_updateController'](_0x54d61a);}),this['listenTo'](_0x27ebc3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x12339b,'addComment',(_0x1307ab,{threadId:_0x52a6f3,isFromAdapter:_0x289062})=>{if(_0x289062||!_0x56782e['hasSuggestion'](_0x52a6f3))return;const _0x30c253=_0x56782e['getSuggestion'](_0x52a6f3);this['_suggestionToController']['get'](_0x30c253)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fe764=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x326365;for(const _0x3f7fe1 in _0x4fe764){const _0x8624db=_0x3f7fe1,_0x59dec1=_0x4fe764[_0x8624db];if('trackChangesLicenseKeyValid'==_0x59dec1||'trackChangesLicenseKeyInvalid'==_0x59dec1||'trackChangesLicenseKeyExpired'==_0x59dec1||'trackChangesLicenseKeyDomainLimit'==_0x59dec1||'trackChangesLicenseKeyNotAllowed'==_0x59dec1||'trackChangesLicenseKeyEvaluationLimit'==_0x59dec1||'trackChangesLicenseKeyTrialLimit'==_0x59dec1||'trackChangesLicenseKeyUsageLimit'==_0x59dec1){delete _0x4fe764[_0x8624db],_0x326365=_0x59dec1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x326365&&_0x4fe764['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x326365&&_0x4fe764['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x326365&&_0x4fe764['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x326365&&_0x4fe764['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x326365&&_0x4fe764['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x326365&&_0x4fe764['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x326365&&_0x4fe764['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3ae4e4=this['editor']['plugins']['get']('Annotations'),_0x1adfd5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36ce89=Array['from'](_0x3ae4e4['activeAnnotations'],_0x1d3c48=>_0x1d3c48['innerView'])['filter'](_0x35fdfe=>this['_viewToController']['has'](_0x35fdfe)),_0x53c0d9=[];for(const _0x3f441d of _0x36ce89){const _0x5196fd=this['_viewToController']['get'](_0x3f441d)['model']['getAllAdjacentSuggestions']();_0x53c0d9['push'](..._0x5196fd['reduce']((_0x5857f1,_0x19cca4)=>[..._0x5857f1,..._0x19cca4['getMarkerNames']()],[]));}_0x1adfd5['activeMarkers']=_0x53c0d9;}['_addUIComponentsToFactory'](){const _0x4a66b6=this['editor'],_0x402470=_0x4a66b6['locale'],_0x3e1666=c(_0x402470,'Track\x20changes'),_0x252a35=new _0x1b1e11([{'type':'switchbutton','model':new _0x2e09f9({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e1666,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4a66b6['plugins']['has']('TrackChangesPreview')&&_0x252a35['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x312668 of _0x252a35)if(ke(_0x312668)){const _0x5d6786=_0x4a66b6['commands']['get'](_0x312668['model']['commandName']);_0x312668['model']['bind']('isOn','isEnabled')['to'](_0x5d6786,'value','isEnabled');}_0x4a66b6['ui']['componentFactory']['add']('trackChanges',_0x4851a7=>this['_createToolbarButton'](_0x4851a7,_0x252a35,_0x3e1666)),_0x4a66b6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1a6295=>this['_createMenuBarMenu'](_0x1a6295,_0x252a35,_0x3e1666));}['_createToolbarButton'](_0x1b631d,_0x23305b,_0x3f5d34){const _0x1862ff=_0x508bcb(_0x1b631d,_0x5139dc),_0x13b5b7=this['editor']['commands']['get']('trackChanges');_0x1862ff['buttonView']['set']({'tooltip':_0x3f5d34,'label':_0x3f5d34,'icon':_0xdf51b8}),_0x1862ff['buttonView']['bind']('isOn')['to'](_0x13b5b7,'value'),_0x1862ff['buttonView']['on']('execute',()=>{_0x13b5b7['execute'](),this['editor']['editing']['view']['focus']();}),_0xe1ca2d(_0x1862ff,_0x23305b,{'role':'menu'});const _0x377b76=[];for(const _0x5d55db of _0x23305b)ke(_0x5d55db)&&_0x377b76['push'](this['editor']['commands']['get'](_0x5d55db['model']['commandName']));const _0x18eada=_0x1862ff['buttonView'];return _0x18eada['actionView']['unbind']('isEnabled'),_0x18eada['arrowView']['unbind']('isEnabled'),_0x18eada['actionView']['bind']('isEnabled')['to'](_0x13b5b7,'isEnabled'),_0x18eada['arrowView']['bind']('isEnabled')['toMany'](_0x377b76,'isEnabled',(..._0x4f51dc)=>_0x4f51dc['some'](_0x565c49=>_0x565c49)),_0x1862ff['on']('execute',_0x5ea051=>{this['editor']['execute'](_0x5ea051['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1862ff;}['_createMenuBarMenu'](_0x4381f7,_0x16cf28,_0x1e7da5){const _0x48612f=new _0xf0a468(_0x4381f7),_0x37171c=this['editor']['commands']['get']('trackChanges');_0x48612f['buttonView']['set']({'label':_0x1e7da5,'icon':_0xdf51b8});const _0x367392=new _0x243af0(_0x4381f7);for(const _0x23415b of _0x16cf28){if('separator'==_0x23415b['type']){_0x367392['items']['add'](new _0x3bf768(_0x4381f7));continue;}const _0x3d4f88=new _0x9d1ca6(_0x4381f7,_0x48612f),_0x266323=new _0x74500b(_0x4381f7),_0x5d6f11=_0x23415b['model'];_0x266323['bind'](...Object['keys'](_0x5d6f11))['to'](_0x5d6f11),_0x266323['delegate']('execute')['to'](_0x48612f),_0x266323['on']('execute',()=>{this['editor']['execute'](_0x5d6f11['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d4f88['children']['add'](_0x266323),_0x367392['items']['add'](_0x3d4f88);}return _0x48612f['bind']('isEnabled')['to'](_0x37171c,'isEnabled'),_0x48612f['panelView']['children']['add'](_0x367392),_0x48612f;}['_initializeController'](_0xf8b1fc){const _0x5ff0e0=this['editor'],_0x16f108=_0x5ff0e0['config'],_0x233e6e=_0x5ff0e0['plugins']['get']('Annotations'),_0x54f67a=_0x5ff0e0['plugins']['get']('CommentsRepository'),_0x281aa5=_0x5ff0e0['plugins']['get']('EditorAnnotations'),_0x3c6577=_0x5ff0e0['plugins']['get'](_0x4ad932)['me'],_0x3404d1=_0x16f108['get']('trackChanges')['SuggestionThreadView'],_0x511cee=_0x16f108['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x58b96a,CommentThreadInputView:_0x4f2aa0}=_0x5ff0e0['plugins']['get']('CommentsUI');let _0x4f07d4,_0x3643ba,_0x3d43ab;this['_annotationViews']['has'](_0xf8b1fc['id'])?(_0x3643ba=this['_annotationViews']['get'](_0xf8b1fc['id']),_0x4f07d4=_0x3643ba['mainView']):(_0x4f07d4=new _0x3404d1(_0x5ff0e0['locale'],_0xf8b1fc,_0x3c6577,{'disableComments':this['_disableComments'],'editorConfig':{..._0x16f108['get']('comments.editorConfig'),'licenseKey':_0x16f108['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x16f108['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16f108['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16f108['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x194c34(_0x16f108['get']('locale'),_0x5ff0e0['locale']),'CommentView':_0x16f108['get']('comments')['CommentView'],'CommentsListView':_0x58b96a,'CommentThreadInputView':_0x4f2aa0,'SuggestionView':_0x511cee}),_0x4f07d4['suggestionView']['acceptButton']['on']('execute',()=>{_0x5ff0e0['editing']['view']['focus']();}),_0x4f07d4['suggestionView']['discardButton']['on']('execute',()=>{_0x5ff0e0['editing']['view']['focus']();}),_0x3643ba=_0x233e6e['createAnnotationView'](this['editor']['locale'],_0x4f07d4),_0x3643ba['bind']('isDirty')['to'](_0x4f07d4,'isDirty'),_0x3643ba['bind']('length')['to'](_0x4f07d4),_0x3643ba['bind']('type')['to'](_0x4f07d4,'type',_0x5e4c7=>'suggestion-'+_0x5e4c7),_0x4f07d4['on']('escape',()=>{_0x3d43ab['fire']('escape');}),this['_annotationViews']['set'](_0xf8b1fc['id'],_0x3643ba));const _0x2c1b69=_0x54f67a['createCommentThreadController'](_0xf8b1fc['commentThread'],_0x4f07d4),_0x1be7f9=new pe(_0x5ff0e0,_0xf8b1fc,_0x4f07d4,_0x2c1b69),_0x416f8e=_0xf8b1fc['getAllAdjacentSuggestions']()['filter'](_0x36193a=>_0x36193a['isInContent']);_0x4f07d4['descriptionParts']=_0x5ff0e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x416f8e),this['_suggestionToController']['set'](_0xf8b1fc,_0x1be7f9),this['_viewToController']['set'](_0x4f07d4,_0x1be7f9),_0x3d43ab=_0x233e6e['createAnnotation']({'view':_0x3643ba,'target':()=>{const _0x430a82=[],_0x4ec791=_0xf8b1fc['getAllAdjacentSuggestions']()['filter'](_0x47c0fe=>_0x47c0fe['isInContent']);for(const _0x4ca384 of _0x4ec791)_0x430a82['push'](..._0x4ca384['getMarkers']());return _0x36e74e(_0x5ff0e0['editing'],_0x430a82);},'type':()=>'suggestion-'+_0x1be7f9['view']['type']}),_0x54f67a['_bindAnnotationToEditors'](_0x4f07d4,_0x3d43ab),_0x233e6e['add'](_0x3d43ab),_0x281aa5['registerAnnotation'](_0x3d43ab);}['_destroyController'](_0x1f9540){const _0x2bbc02=this['editor']['plugins']['get']('CommentsRepository'),_0x392a3c=this['editor']['plugins']['get']('Annotations'),_0x43adb0=this['_suggestionToController']['get'](_0x1f9540),_0x5e2b49=_0x43adb0['view'],_0x3fdae2=_0x392a3c['getByInnerView'](_0x5e2b49);_0x2bbc02['_unbindEditors'](_0x5e2b49),_0x3fdae2&&_0x392a3c['remove'](_0x3fdae2),this['_suggestionToController']['delete'](_0x1f9540),this['_viewToController']['delete'](_0x5e2b49),_0x43adb0['destroy']();}['_updateController'](_0x3891be){if(!_0x3891be['isInContent']||!this['_suggestionToController']['has'](_0x3891be))return;const _0x26ce90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa1bd=this['_suggestionToController']['get'](_0x3891be),_0x132433=_0x3891be['getAllAdjacentSuggestions']();_0x1aa1bd['view']['descriptionParts']=_0x26ce90['descriptionFactory']['getDescriptions'](_0x132433);}['destroy'](){for(const _0x1a2afe of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a2afe);for(const _0x34eea2 of this['_annotationViews']['values']())_0x34eea2['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14fc5a){return'model'in _0x14fc5a;}class k extends _0x5c587b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5169f9){this['editor']['plugins']['get'](p)['adapter']=_0x5169f9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5d6121){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5d6121);}['getSuggestions']({skipNotAttached:_0x5b45bc=!0x1,toJSON:_0x1ade71=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5b45bc,'toJSON':_0x1ade71});}['getSuggestion'](_0x55c37d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x55c37d);}}const w=['Pagination'];class T extends _0x5c587b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2059bf=this['editor'];if(_0x2059bf['config']['define']('trackChangesData.editorCreator',_0x2c30f0=>{const _0x42ab28=_0x2059bf['model']['document']['getRootNames']()['reduce']((_0x2ff861,_0x56f92e)=>(_0x2ff861[_0x56f92e]='',_0x2ff861),{});return _0x2059bf['constructor']['create'](_0x42ab28,_0x2c30f0);}),'function'!=typeof _0x2059bf['config']['get']('trackChangesData')['editorCreator'])throw new _0x152d77('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48cd68){return N(this['editor'],!0x0,_0x48cd68);}['getDataWithDiscardedSuggestions'](_0x550154){return N(this['editor'],!0x1,_0x550154);}}class D extends _0x5c587b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x99fcee){function _0x18f71d(_0x1fad47){return _0x1fad47['map'](_0x49e9c1=>String['fromCharCode'](_0x49e9c1))['join']('');}super(_0x99fcee),this['result']='end',_0x99fcee[_0x18f71d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f71d([0x76,0x69,0x65,0x77])][_0x18f71d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18f71d([0x61,0x75,0x74,0x6f]),_0x99fcee[_0x18f71d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x18f71d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18f71d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x18f71d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x18f71d([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x25890c){return void 0x0!==_0x25890c['getRootsAttributes'];}async function N(_0x18f6cb,_0x56d9da,_0x3cba96){const _0x326104=_0x3b7191(_0x18f6cb,w);_0x326104['plugins']['push'](p,D),_0x326104['rootsAttributes']=Ge(_0x18f6cb)?_0x18f6cb['getRootsAttributes']():void 0x0;const _0x51a8ec=document['createDocumentFragment'](),_0x471288=_0x18f6cb['config']['get']('trackChangesData')['editorCreator'],_0x3a6879=await _0x471288(_0x326104,()=>function(_0x1cc38d){const _0x3b20c6=document['createElement']('div');return _0x1cc38d['appendChild'](_0x3b20c6),_0x3b20c6;}(_0x51a8ec));!function(_0x3541a6,_0x4d0390){const _0x4d0580=_0x3541a6['model']['document']['getRootNames']()['reduce']((_0x2751ce,_0xc718e0)=>(_0x2751ce[_0xc718e0]=_0x3541a6['data']['get']({'rootName':_0xc718e0}),_0x2751ce),{}),_0xa4bec=_0x3541a6['plugins']['get']('Users')['users']['map'](_0x573ce4=>({'id':_0x573ce4['id'],'name':_0x573ce4['name']})),_0x4e9bb3=_0x3541a6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eb877=_0x3541a6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a1721=_0x4d0390['plugins']['get']('Users'),_0x568029=_0x4d0390['plugins']['get']('TrackChangesEditing'),_0x2f2d69=_0x4d0390['plugins']['get']('CommentsRepository');for(const _0x1a54be of _0x2f2d69['getCommentThreads']())_0x1a54be['remove']();for(const _0x350590 of _0xa4bec)_0x4a1721['getUser'](_0x350590['id'])||_0x4a1721['addUser'](_0x350590);_0x4a1721['me']||_0x4a1721['useAnonymousUser']();for(const _0x1de63b of _0x3eb877)_0x2f2d69['addCommentThread'](_0x1de63b);for(const _0x2f7524 of _0x4e9bb3)_0x568029['addSuggestionData'](_0x2f7524);_0x4d0390['data']['set'](_0x4d0580);}(_0x18f6cb,_0x3a6879),_0x3a6879['execute'](_0x56d9da?'acceptAllSuggestions':'discardAllSuggestions');const _0x47535b=Ge(_0x3a6879)?_0x3a6879['getFullData'](_0x3cba96):_0x3a6879['data']['get'](_0x3cba96);return await _0x3a6879['destroy'](),_0x47535b;}class Me extends _0x2475f2{['options'];constructor(_0x534c93,_0x322fb2){super(_0x534c93),this['options']=_0x322fb2,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'](_0x2bc375,_0xa5dc6b){if(!this['element'])return;const _0xf960ef=[];for(const [_0x3e22be,_0x35f389]of _0x2bc375){const _0x24c7eb=document['createElement']('div');_0x24c7eb['setAttribute']('data-ck-root-name',_0x3e22be),_0x24c7eb['className']=_0x35f389['classes']+'\x20ck-track-changes-preview__root-container',_0x24c7eb['innerHTML']=_0x35f389['content'],_0xf960ef['push'](_0x24c7eb);}_0xa5dc6b(this['element'],_0xf960ef),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2cff90{constructor(_0x4b8ea6){super(_0x4b8ea6),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x8fd362=this['editor'],_0x4c127b=_0x8fd362['locale'],_0x333f18=_0x8fd362['plugins']['get']('Dialog');let _0x5db47a;const _0x177961=function(_0x98579f){const _0x127b81={};if('editables'in _0x98579f['ui']['view']){for(const [_0x27b08c,_0x5cbfcf]of Object['entries'](_0x98579f['ui']['view']['editables']))_0x127b81[_0x27b08c]=_0x5cbfcf['element'];}else _0x127b81[_0x98579f['model']['document']['getRootNames']()[0x0]]=_0x98579f['ui']['view']['editable']['element'];return _0x127b81;}(_0x8fd362),_0x36e44b=function(_0x1d4273){let _0x152ef0=0x0;for(const _0x17f849 of Object['values'](_0x1d4273))_0x152ef0=Math['max'](_0x152ef0,_0x17f849['getBoundingClientRect']()['width']);let _0x5f1f94=0x0;for(const _0x583dbf of Object['values'](_0x1d4273))_0x5f1f94+=_0x583dbf['getBoundingClientRect']()['height'];const _0x2d31a9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x19967a=Math['min'](_0x5f1f94,_0x2d31a9);return{'width':_0x152ef0,'height':_0x19967a};}(_0x177961);_0x333f18['show']({'id':'finalContentPreview','title':c(_0x4c127b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4c127b,{'dialogRects':_0x36e44b}),'onHide':()=>{_0x5db47a['detachFromDom']();},'onShow':()=>{_0x8fd362['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x213835=>{const _0x218139=this['_standarizeRootsData'](_0x213835,_0x8fd362,_0x177961);_0x333f18['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x218139,_0x8fd362['config']['get']('trackChanges.preview.renderFunction'));}),_0x5db47a=new _0x26a838(_0x4c127b,[_0x333f18['view']]),_0x5db47a['attachToDom'](),_0x5db47a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x8fd362['once']('destroy',()=>{_0x5db47a['detachFromDom']();});const _0x5c371a=_0x333f18['view']['headerView']['class'];_0x333f18['view']['headerView']['class']=_0x5c371a?_0x5c371a+'\x20ck-reset_all':'ck-reset_all',_0x333f18['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x333f18['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x73a1b7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xe03cdc=_0x73a1b7['previewMode'],_0x28e019={};if('$labels'===_0xe03cdc){for(const _0x266b41 of _0x73a1b7['getMergeFieldsIds']())_0x28e019[_0x266b41]=_0x73a1b7['getLabel'](_0x266b41)||_0x266b41;}else{const _0x149587='$defaultValues'===_0xe03cdc?_0x73a1b7['getDefaultValues']():_0x73a1b7['getDataSetValues'](_0xe03cdc,!0x0);for(const _0x259bec of Object['entries'](_0x149587)){const [_0xe61434,_0x5b22d0]=_0x259bec;_0x28e019[_0xe61434]=null!==_0x5b22d0?_0x5b22d0:_0x73a1b7['getLabel'](_0xe61434)||_0xe61434;}}return{'mergeFieldsData':_0x28e019};}['_standarizeRootsData'](_0x4635d7,_0xfe20fc,_0x57cf96){let _0x522725;if('string'==typeof _0x4635d7){const _0x3aca76=_0xfe20fc['model']['document']['getRootNames']()[0x0];_0x522725={[_0x3aca76]:_0x4635d7};}else _0x522725=_0x4635d7;const _0x182ff5=this['_fixMediaEmbeds'](_0x522725,_0xfe20fc),_0x454b3e=function(_0x326956,_0x4c43ab){for(const [_0x48b566,_0x4ab52b]of _0x326956)_0x4ab52b['classes']=_0x4c43ab[_0x48b566]['classList']['value']['replace']('ck-focused','');return _0x326956;}(this['_sortRoots'](_0xfe20fc)['reduce']((_0x4fe158,_0x865ddd)=>(_0x4fe158['push']([_0x865ddd,{'content':_0x182ff5[_0x865ddd],'classes':''}]),_0x4fe158),[]),_0x57cf96);return _0x454b3e;}['_fixMediaEmbeds'](_0x5a588d,_0x516189){if(!_0x516189['plugins']['has']('MediaEmbedEditing'))return _0x5a588d;const _0x3c498b=_0x516189['plugins']['get']('MediaEmbedEditing');for(const [_0xbb639e,_0x219481]of Object['entries'](_0x5a588d)){const _0x17ff52=document['createElement']('div');_0x17ff52['innerHTML']=_0x219481,(_0x17ff52['querySelectorAll']('figure.media')['forEach'](_0x382936=>{const _0x58b353=_0x382936['querySelector']('oembed');if(_0x58b353){const _0x124948=_0x58b353['getAttribute']('url');if(_0x124948){const _0x14eecf=_0x3c498b['registry']['getMediaViewElement'](new _0x4121d4(_0x516189['editing']['view']['document']),_0x124948,{'elementName':'','renderForEditingView':!0x0}),_0x397cbc=document['createElement']('div');_0x397cbc['classList']['add']('ck-media__wrapper'),_0x14eecf['render'](_0x397cbc,_0x516189['editing']['view']['domConverter']),_0x58b353['replaceWith'](_0x397cbc);}}}),_0x5a588d[_0xbb639e]=_0x17ff52['innerHTML']);}return _0x5a588d;}['_sortRoots'](_0x147427){if(!function(_0x2e357f){return void 0x0!==_0x2e357f['getRootsAttributes'];}(_0x147427))return _0x147427['model']['document']['getRootNames']();const _0x3b6e31=[],_0x3a8f4a=new Map();for(const _0x2fb408 of _0x147427['model']['document']['getRootNames']()){const _0x341bcb=_0x147427['editing']['view']['getDomRoot'](_0x2fb408)['getClientRects']()['item'](0x0);_0x3b6e31['push'](_0x2fb408),_0x3a8f4a['set'](_0x2fb408,_0x341bcb);}return _0x3b6e31['sort']((_0x408fd2,_0x228158)=>{const _0x198d27=_0x3a8f4a['get'](_0x408fd2),_0x30758e=_0x3a8f4a['get'](_0x228158);return _0x198d27['y']-_0x30758e['y']||_0x198d27['x']-_0x30758e['x'];}),_0x3b6e31;}}class te extends _0x5c587b{static get['requires'](){return[T,_0xcefc8d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xed70eb){super(_0xed70eb),_0xed70eb['commands']['add']('previewFinalContent',new re(this['editor'])),_0xed70eb['config']['define']('trackChanges.preview.renderFunction',(_0x2f2adb,_0x3da15a)=>{for(const _0x47d701 of _0x3da15a)_0x2f2adb['appendChild'](_0x47d701);});}}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 _0x3929fd,Plugin as _0x3e2428,PendingActions as _0x408eaa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2c0c45,ObservableMixin as _0x311d1a,uid as _0x32b8bc,priorities as _0x1180b2,insertToPriorityArray as _0x530ca3,toArray as _0x9aaf0b,logWarning as _0x5027ec,getEnvKeystrokeText as _0x57f152,FocusTracker as _0x5f0f65,KeystrokeHandler as _0x3c238c,Collection as _0x367e57}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xf2cf96,IconCancel as _0x58b8b2,IconTrackChanges as _0xf43b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3de588,View as _0x5c5cfc,ViewCollection as _0x47c984,FocusCycler as _0x1b92be,ViewModel as _0x597f14,createDropdown as _0x648dfa,SplitButtonView as _0x423aa4,addListToDropdown as _0x4f877f,MenuBarMenuView as _0x25591e,MenuBarMenuListView as _0x13ff27,ListSeparatorView as _0x405e56,MenuBarMenuListItemView as _0x5986e2,MenuBarMenuListItemButtonView as _0x510a60,BodyCollection as _0x5ccbb8,Dialog as _0x37cf6e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3c7e0d,hashObject as _0x1098f6,surroundingMarkersDetector as _0x113694,FOCUS_ANNOTATION_KEYSTROKE as _0x55e069,AriaDescriptionView as _0x23fc2c,setupThreadKeyboardNavigation as _0x1e4d43,trimHtml as ti,UserView as _0x18adfe,LateFocusButtonView as _0x155a22,getDateTimeFormatter as _0x2b3e4a,getAllMarkersDomElementsSorted as _0x371a4a,sanitizeEditorConfig as _0x4ca52d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x58b344,LiveRange as _0x2daf6a,LivePosition as _0x342ae3,DowncastWriter as _0xd41810}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x18e857,toWidget as _0x4a3734}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4e8e33,set as _0x11e46c,isEqual as _0x48064e,unset as _0x32b6c0,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5f586e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3ceda9}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4a16f7}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3929fd{['_enabledCommands'];constructor(_0x5bbf65,_0x345494){super(_0x5bbf65),this['_enabledCommands']=_0x345494,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 _0x19ed90 of this['editor']['commands']['commands']())_0x19ed90['affectsData']&&!this['_enabledCommands']['has'](_0x19ed90)&&_0x19ed90['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1226ef of this['editor']['commands']['commands']())_0x1226ef['affectsData']&&!this['_enabledCommands']['has'](_0x1226ef)&&_0x1226ef['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x3929fd{['_suggestions'];constructor(_0x2900a2,_0xdac067){super(_0x2900a2),this['_suggestions']=_0xdac067,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x50d9df){const _0x1b0c48=this['_suggestions']['get'](_0x50d9df);if(!_0x1b0c48)throw new _0x2c0c45('track-changes-accept-suggestion-not-found',this);const _0x37a979=_0x1b0c48['getRanges']();this['editor']['model']['canEditAt'](_0x37a979)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b0c48);}}class O extends _0x3929fd{['_suggestions'];constructor(_0x5623a3,_0x37cb0a){super(_0x5623a3),this['_suggestions']=_0x37cb0a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x314dec){const _0x1207fb=this['_suggestions']['get'](_0x314dec);if(!_0x1207fb)throw new _0x2c0c45('track-changes-discard-suggestion-not-found',this);const _0x1df5ae=_0x1207fb['getRanges']();this['editor']['model']['canEditAt'](_0x1df5ae)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1207fb);}}function ls(_0x48267a,_0x26c9bc){let _0x4b960e='';return _0x4b960e+=_0x48267a['split']('*')['map']((_0x2502ad,_0x15035b)=>_0x15035b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2502ad)+'</span>':nn(_0x2502ad))['join'](''),_0x26c9bc&&(_0x4b960e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26c9bc['value']+'\x22\x20title=\x22'+_0x26c9bc['title']+'\x22></span>'),_0x4b960e;}function nn(_0x41a686){const _0x5c3cf1=document['createElement']('span');return _0x5c3cf1['innerText']=_0x41a686,_0x5c3cf1['innerHTML'];}function ts(_0x25437b){return _0x25437b['sort']((_0xade168,_0x2cecf0)=>'deletion'==_0xade168['type']&&'deletion'!=_0x2cecf0['type']?-0x1:'deletion'!=_0xade168['type']&&'deletion'==_0x2cecf0['type']?0x1:0x0);}function to(_0x4bf52c,_0x3fedcd){let _0x59c2f0,_0x22c94e=0x0;const _0x421eb2=[],_0x344f10=_0x3fedcd['schema'];for(;_0x22c94e<_0x4bf52c['length'];){const _0x3aaab3=_0x4bf52c[_0x22c94e],_0x4b8868=_0x4bf52c[_0x22c94e+0x1];_0x59c2f0||(_0x59c2f0=_0x3fedcd['createPositionBefore'](_0x3aaab3)),on(_0x3fedcd,_0x3aaab3,_0x4b8868)||(_0x421eb2['push'](_0x3fedcd['createRange'](_0x59c2f0,_0x344f10['isObject'](_0x3aaab3)?_0x3fedcd['createPositionAfter'](_0x3aaab3):_0x3fedcd['createPositionAt'](_0x3aaab3,'end'))),_0x59c2f0=null),_0x22c94e++;}return _0x421eb2;}function on(_0x4bea80,_0x258975,_0x110355){if(!_0x110355)return!0x1;const _0x494c62=_0x4bea80['createPositionAfter'](_0x258975),_0xada921=_0x4bea80['createPositionBefore'](_0x110355);return _0x494c62['isTouching'](_0xada921);}function rs(_0x4e8ab1,_0x44d83c,_0x51a600){for(;_0x51a600['length'];){const _0x47b303=_0x51a600['splice'](0x0,0x64);_0x4e8ab1['change'](()=>{for(const _0x363d49 of _0x47b303)_0x363d49['isInContent']&&_0x44d83c['execute'](_0x363d49['id']);});}}class R extends _0x3929fd{['_command'];['_suggestions'];constructor(_0x3ee177,_0x407ed4,_0x83059a){super(_0x3ee177),this['_command']=_0x407ed4,this['_suggestions']=_0x83059a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5676cc=Array['from'](this['_suggestions']['values']())['some'](_0x9405ad=>_0x9405ad['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5676cc;}['execute'](){const _0x147c2e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2f70d1 of _0x147c2e){const _0x1080be=_0x2f70d1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1080be))return;}rs(this['editor']['model'],this['_command'],_0x147c2e);}}class E extends _0x3929fd{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1d6edc,_0x51261f,_0x387bdd){super(_0x1d6edc),this['_command']=_0x51261f,this['_suggestions']=_0x387bdd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x568af8=this['editor']['model']['document']['selection'],_0xcfe31=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4ca783,_0x21eea3){const _0x406612=Array['from'](_0x4ca783['getRanges']()),_0x3b0099=new Set();for(const _0x1494cc of _0x21eea3)if(_0x1494cc['isInContent']){for(const _0x55b70e of _0x406612)for(const _0x3702eb of _0x1494cc['getRanges']())(_0x55b70e['isIntersecting'](_0x3702eb)||_0x4ca783['isCollapsed']&&!_0x1494cc['isMultiRange']&&_0x1494cc['next']&&_0x3702eb['end']['isTouching'](_0x55b70e['start']))&&_0x3b0099['add'](_0x1494cc);}return _0x3b0099;}(_0x568af8,_0xcfe31),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2542cd=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2e2b2e of _0x2542cd){const _0x4987cf=_0x2e2b2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4987cf))return;}rs(this['editor']['model'],this['_command'],_0x2542cd);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x311d1a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4e0240,_0x3fc569){super(),this['id']=_0x3fc569['id'],this['type']=_0x3fc569['type'],this['subType']=_0x3fc569['subType']||null,this['author']=_0x3fc569['author'],this['creator']=_0x3fc569['creator']||_0x3fc569['author'],this['isExternal']=Boolean(_0x3fc569['attributes']&&_0x3fc569['attributes']['@external']),this['data']=null,this['_model']=_0x4e0240,this['_onAccept']=_0x3fc569['onAccept'],this['_onDiscard']=_0x3fc569['onDiscard'],this['_onAttributesChange']=_0x3fc569['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3fc569['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 _0xb42a50=this;for(;_0xb42a50['previous'];)_0xb42a50=_0xb42a50['previous'];return _0xb42a50;}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'](_0x3f17ed){this['_markerNames']['add'](_0x3f17ed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2cff3f=>this['_model']['markers']['get'](_0x2cff3f))['filter'](_0x19dd9d=>_0x19dd9d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x505b24=>{for(const _0x453e1d of this['getMarkers']())_0x505b24['removeMarker'](_0x453e1d);}),this['_markerNames']['clear']();}['removeMarker'](_0x4832b9){this['_model']['change'](_0x28a000=>{_0x28a000['removeMarker'](_0x4832b9);}),this['_markerNames']['delete'](_0x4832b9);}['addRange'](_0x32e934){const _0x15d7d1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x15d7d1),this['_model']['change'](_0x534575=>{_0x534575['addMarker'](_0x15d7d1,{'range':_0x32e934,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2a80f6){for(const _0x49bad5 of this['getRanges']())if(_0x49bad5['isIntersecting'](_0x2a80f6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2ec2e7=>_0x2ec2e7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a6e6f,_0x576a68)=>[..._0x3a6e6f,..._0x576a68['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1c28bd=this['getRanges']();if(0x1!=_0x1c28bd['length'])return null;const _0x1ef986=_0x1c28bd[0x0],_0x56a42b=_0x1ef986['start']['nodeAfter'],_0x3ef6a0=_0x1ef986['end']['nodeBefore'];return _0x56a42b instanceof _0x58b344?_0x56a42b!=_0x3ef6a0?null:_0x56a42b: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 _0x4cf782=[];let _0x3be9dd=this['head'];for(;_0x3be9dd;)_0x4cf782['push'](_0x3be9dd),_0x3be9dd=_0x3be9dd['next'];return _0x4cf782;}['setAttribute'](_0x1ad52e,_0x21dec1){const _0x257fd9=_0x4e8e33(this['attributes']);_0x11e46c(_0x257fd9,_0x1ad52e,_0x21dec1),_0x48064e(_0x257fd9,this['attributes'])||(this['attributes']=_0x257fd9,this['_onAttributesChange'](_0x257fd9));}['removeAttribute'](_0x87281c){const _0x29ca08=_0x4e8e33(this['attributes']);_0x32b6c0(_0x29ca08,_0x87281c),_0x48064e(_0x29ca08,this['attributes'])||(this['attributes']=_0x29ca08,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 _0x32b8bc()['substr'](0x1,0x5);}}function c(_0x2b47f9,_0x3519ff,_0x3273eb){const _0x33d982=_0x2b47f9['t'],t=_0x2b47f9['t'];switch(_0x3519ff){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',_0x3273eb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3273eb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3273eb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3273eb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3273eb);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',_0x3273eb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3273eb);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',_0x3273eb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3273eb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3273eb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3273eb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3273eb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3273eb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3273eb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3273eb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3273eb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3273eb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3273eb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3273eb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3273eb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3273eb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3273eb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3273eb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3273eb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3273eb);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'},_0x3273eb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3273eb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3273eb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3273eb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3273eb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3273eb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3273eb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3273eb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3273eb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3273eb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3273eb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3273eb);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 _0x33d982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3273eb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33d982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3273eb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3519ff;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ac808,_0x4de412){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ac808,this['_locale']=_0x4de412;}['getDescriptions'](_0x2ae3ba){const _0x1e7e76=[],_0x325cba=new Set(),_0x5c4efe=new Set();for(let _0x188a35=0x0;_0x188a35<_0x2ae3ba['length'];_0x188a35++){const _0x5e2996=_0x2ae3ba[_0x188a35];if(!_0x5e2996['isInContent'])continue;const _0x3ab99a=this['_handleCustomCallbackDescription'](_0x5e2996);if(_0x3ab99a){if(null!=_0x5e2996['subType']){if(_0x325cba['has'](_0x5e2996['subType']))continue;_0x325cba['add'](_0x5e2996['subType']);}_0x1e7e76['push'](_0x3ab99a);}else{if('attribute'!=_0x5e2996['type'])'insertion'!=_0x5e2996['type']&&'deletion'!=_0x5e2996['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1e7e76,_0x5e2996,_0x2ae3ba[_0x188a35+0x1]);else{const _0x205c4d=_0x5e2996['data']['key'];if(_0x5c4efe['has'](_0x205c4d))continue;_0x5c4efe['add'](_0x5e2996['data']['key']),_0x205c4d==u?this['_handleRenameSuggestionDescription'](_0x1e7e76,_0x5e2996):this['_handleAttributeSuggestionDescription'](_0x1e7e76,_0x5e2996);}}}return this['_resolveDescriptionItems'](_0x1e7e76);}['registerDescriptionCallback'](_0x3409c8){this['_customCallbacks']['push'](_0x3409c8);}['registerElementLabel'](_0x2ce795,_0x274048,_0x424fe4=_0x1180b2['normal']){'function'==typeof _0x2ce795?_0x530ca3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ce795,'label':_0x274048,'priority':_0x424fe4}):this['_itemLabels']['set'](_0x2ce795,_0x274048);}['registerAttributeLabel'](_0x4102f3,_0x3ad770){this['_attributeLabels']['set'](_0x4102f3,_0x3ad770);}['getItemLabel'](_0x53194b,_0x45c82d=0x1){let _0x5e04ab;for(const _0x5ae785 of this['_itemLabelsCallbacks'])if(_0x5ae785['matchingCallback'](_0x53194b)){_0x5e04ab=_0x5ae785['label'];break;}return _0x5e04ab||(_0x5e04ab=this['_itemLabels']['get'](_0x53194b['name'])),_0x5e04ab?_0x5e04ab(_0x45c82d):0x1!==_0x45c82d?_0x45c82d+'\x20'+_0x53194b['name']+'s':''+_0x53194b['name'];}['_addDescriptionItems'](_0x5d6fd2,_0x59b652){const _0xf00b3f=_0x59b652['getFirstRange']()['getWalker'](),_0x3218c6='insertion'==_0x59b652['type']?'add':'remove';for(const _0x4f4631 of _0xf00b3f){const _0x43b4b6=_0x4f4631['item'],_0x3534ad=_0x5d6fd2[_0x5d6fd2['length']-0x1];if(_0x43b4b6['is']('$textProxy'))_0x3534ad&&_0x3534ad['type']['indexOf']('Container')>-0x1&&_0x5d6fd2['pop'](),_0x3534ad&&'text'==_0x3534ad['type']?_0x3534ad[_0x3218c6]+=_0x43b4b6['data']:_0x5d6fd2['push']({'type':'text','add':'add'==_0x3218c6?_0x43b4b6['data']:'','remove':'remove'==_0x3218c6?_0x43b4b6['data']:''});else{if(this['_schema']['isObject'](_0x43b4b6)){const _0x171d46=_0x43b4b6;if(_0x3534ad&&_0x3534ad['type']['indexOf']('Container')>-0x1&&_0x5d6fd2['pop'](),'elementEnd'==_0x4f4631['type'])continue;_0x3534ad&&_0x3534ad['type']==_0x3218c6+'Object'&&_0x3534ad['element']['name']==_0x171d46['name']?_0x3534ad['quantity']++:_0x5d6fd2['push']({'type':_0x3218c6+'Object','element':_0x171d46,'quantity':0x1}),_0xf00b3f['skip'](_0x72a79e=>!('elementEnd'==_0x72a79e['type']&&_0x72a79e['item']==_0x43b4b6));}else{if(this['_schema']['checkChild'](_0x43b4b6,'$text')||_0x43b4b6['is']('element','softBreak')){const _0x357505=_0x43b4b6;if('add'==_0x3218c6&&'elementStart'==_0x4f4631['type']||'remove'==_0x3218c6&&'elementEnd'==_0x4f4631['type'])continue;if(_0x3534ad&&-0x1==_0x3534ad['type']['indexOf']('Container')){'text'==_0x3534ad['type']&&(_0x3534ad[_0x3218c6]+='\x0a');continue;}let _0x2c5214;if(_0x2c5214='add'==_0x3218c6?_0x357505['nextSibling']&&!this['_schema']['isObject'](_0x357505['nextSibling'])?_0x357505['nextSibling']:null:_0x357505['previousSibling']&&!this['_schema']['isObject'](_0x357505['previousSibling'])?_0x357505['previousSibling']:null,_0x357505['isEmpty']||_0x2c5214&&_0x2c5214['isEmpty']){const _0xef8833=_0x2c5214&&_0x2c5214['isEmpty']?_0x2c5214:_0x357505;_0x3534ad&&_0x3534ad['type']==_0x3218c6+'EmptyContainer'&&_0x3534ad['element']['name']==_0xef8833['name']?_0x3534ad['quantity']++:_0x5d6fd2['push']({'type':_0x3218c6+'EmptyContainer','element':_0xef8833,'quantity':0x1});}else _0x5d6fd2['push']({'type':_0x3218c6+'Container','element':_0x357505});}}}}}['_resolveDescriptionItems'](_0x53ddb3){const _0x57fecc=this['_locale'],_0x376b15=[],_0x2a98f3=[],_0x4a524f=[];for(const _0xf8b708 of _0x53ddb3)switch(_0xf8b708['type']){case'text':if(_0xf8b708['add']=_0xf8b708['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xf8b708['remove']=_0xf8b708['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xf8b708['add']&&''!=_0xf8b708['remove']){_0x376b15['push']({'type':'replace','content':c(_0x57fecc,'REPLACE_TEXT',['\x22'+_0xf8b708['remove']+'\x22','\x22'+_0xf8b708['add']+'\x22'])});continue;}if(null!=_0xf8b708['add']['match'](/^ +$/)){_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0',c(_0x57fecc,'ELEMENT_SPACE',_0xf8b708['add']['length']))});continue;}if(null!=_0xf8b708['remove']['match'](/^ +$/)){_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0',c(_0x57fecc,'ELEMENT_SPACE',_0xf8b708['remove']['length']))});continue;}if(''!=_0xf8b708['add']){_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0','\x22'+_0xf8b708['add']+'\x22')});continue;}_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0','\x22'+_0xf8b708['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'addContainer':_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Split:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'removeContainer':_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Merge:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'addFormat':_0x2a98f3['push'](_0xf8b708['key']);continue;case'removeFormat':_0x4a524f['push'](_0xf8b708['key']);continue;default:_0x376b15['push'](_0xf8b708);}if(_0x2a98f3['length']){const _0x29c906=_0x2a98f3['map'](_0x14dae3=>this['_attributeLabels']['has'](_0x14dae3)?this['_attributeLabels']['get'](_0x14dae3):_0x14dae3)['join'](',\x20');_0x376b15['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x29c906)});}if(_0x4a524f['length']){const _0x46507e=_0x4a524f['map'](_0x263bd0=>this['_attributeLabels']['has'](_0x263bd0)?this['_attributeLabels']['get'](_0x263bd0):_0x263bd0)['join'](',\x20');_0x376b15['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x46507e)});}return _0x376b15;}['_handleCustomCallbackDescription'](_0x585ae6){for(const _0x32cd0e of this['_customCallbacks']){const _0x4f17f9=_0x32cd0e(_0x585ae6);if(_0x4f17f9&&'type'in _0x4f17f9)return _0x4f17f9;}}['_handleAttributeSuggestionDescription'](_0x16e3a9,_0x3e30e4){const _0x196fb2=_0x3e30e4['data'],_0x104db5=void 0x0===_0x196fb2['newValue']?'removeFormat':'addFormat';_0x16e3a9['push']({'type':_0x104db5,'key':_0x196fb2['key']});}['_handleRenameSuggestionDescription'](_0x23e6b9,_0x5d4775){_0x23e6b9['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d4775['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c85de,_0x4a31c8,_0x57ee7a){if(this['_addDescriptionItems'](_0x2c85de,_0x4a31c8),_0x57ee7a&&_0x57ee7a['getFirstRange']()&&!_0x4a31c8['getFirstRange']()['end']['isEqual'](_0x57ee7a['getFirstRange']()['start'])){const _0x22c52b=_0x2c85de[_0x2c85de['length']-0x1],_0x91a79d='insertion'==_0x4a31c8['type']?'add':'remove';_0x22c52b&&'text'==_0x22c52b['type']&&(_0x22c52b[_0x91a79d]+='\x0a');}}}class U extends _0x3e2428{['afterInit'](){const _0x232b09=this['editor'],_0x13cbcf=_0x232b09['plugins']['get']('TrackChangesEditing');_0x232b09['commands']['get']('showAIAssistant')&&_0x13cbcf['enableCommand']('showAIAssistant');}}class V extends _0x3e2428{['afterInit'](){const _0x264742=this['editor'],_0x2b0bf6=_0x264742['locale'];if(!_0x264742['plugins']['has']('AlignmentEditing'))return;const _0x2b33df=_0x264742['plugins']['get']('TrackChangesEditing');_0x2b33df['enableDefaultAttributesIntegration']('alignment'),_0x2b33df['registerBlockAttribute']('alignment'),_0x2b33df['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2b0bf6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a3de=this['editor'],_0x465ce3=_0x41a3de['locale'];_0x41a3de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5769a5=>{if('formatBlock'!=_0x5769a5['type'])return;const {data:_0xf16875}=_0x5769a5;if(_0xf16875&&'alignment'==_0xf16875['commandName']){const _0x932f33=_0xf16875['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x465ce3,'*Format:*\x20%0',function(_0x7c230d){switch(_0x7c230d){case'left':return c(_0x465ce3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x465ce3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x465ce3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x465ce3,'FORMAT_JUSTIFY_TEXT');}}(_0x932f33))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3e2428{['afterInit'](){const _0x4cc6bc=this['editor'],_0xb4d5b5=_0x4cc6bc['plugins']['get']('TrackChangesEditing'),_0x9244f0=_0x4cc6bc['locale'];for(const _0x1ce84e of Zt){if(!_0x4cc6bc['plugins']['has'](_0x1ce84e))continue;const _0x23ac69=_0x1ce84e['slice'](0x0,-0x7)['toLowerCase'](),_0x3d4550='FORMAT_'+_0x23ac69['toUpperCase']();_0xb4d5b5['enableDefaultAttributesIntegration'](_0x23ac69),_0xb4d5b5['registerInlineAttribute'](_0x23ac69),_0xb4d5b5['descriptionFactory']['registerAttributeLabel'](_0x23ac69,c(_0x9244f0,_0x3d4550));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc1f6=this['editor'],_0x27ec28=_0x4bc1f6['locale'],_0x39aed3=_0x4bc1f6['plugins']['get']('TrackChangesEditing');function _0x37ad44(_0x216e25,_0x8445d4){_0x39aed3['descriptionFactory']['registerDescriptionCallback'](_0x35018d=>{if('formatInline'!=_0x35018d['type'])return;const {data:_0x6371}=_0x35018d;return _0x6371&&_0x6371['commandName']===_0x216e25?_0x6371['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x27ec28,'*Format:*\x20%0',_0x8445d4)}:{'type':'format','content':c(_0x27ec28,'*Remove\x20format:*\x20%0',_0x8445d4)}:void 0x0;});}_0x37ad44('bold',c(_0x27ec28,'FORMAT_BOLD')),_0x37ad44('italic',c(_0x27ec28,'FORMAT_ITALIC')),_0x37ad44('underline',c(_0x27ec28,'FORMAT_UNDERLINE')),_0x37ad44('code',c(_0x27ec28,'FORMAT_CODE')),_0x37ad44('strikethrough',c(_0x27ec28,'FORMAT_STRIKETHROUGH')),_0x37ad44('subscript',c(_0x27ec28,'FORMAT_SUBSCRIPT')),_0x37ad44('superscript',c(_0x27ec28,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3e2428{['afterInit'](){const _0x2ab709=this['editor'],_0x40d1cd=_0x2ab709['locale'];if(!_0x2ab709['plugins']['has']('BlockQuoteEditing'))return;const _0x5419ef=_0x2ab709['plugins']['get']('TrackChangesEditing'),_0x9fb5c2=this['editor']['commands']['get']('blockQuote');_0x5419ef['enableCommand']('blockQuote',(_0x19b64a,_0xfb482e={})=>{const _0xc279c4=this['editor']['model']['document']['selection'],_0xec11c1=_0xfb482e&&void 0x0!==_0xfb482e['forceValue']?_0xfb482e['forceValue']:!_0x9fb5c2['value'];let _0x276766=[];if(_0xec11c1){const _0x568cce=Array['from'](_0xc279c4['getSelectedBlocks']())['filter'](_0x540de=>oo(_0x540de)||function(_0x18f200,_0x360228){const _0x1c5c12=_0x360228['checkChild'](_0x18f200['parent'],'blockQuote'),_0x1ed780=_0x360228['checkChild'](['$root','blockQuote'],_0x18f200);return _0x1c5c12&&_0x1ed780;}(_0x540de,this['editor']['model']['schema']));_0x276766=to(_0x568cce,_0x2ab709['model']);}else{const _0x54b5f7=Array['from'](_0xc279c4['getSelectedBlocks']())['filter'](_0x57bba1=>oo(_0x57bba1));_0x276766=to(_0x54b5f7,_0x2ab709['model']);}_0x2ab709['model']['change'](()=>{for(const _0x262ecb of _0x276766)_0x5419ef['markBlockFormat'](_0x262ecb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xec11c1}]});});}),_0x5419ef['descriptionFactory']['registerDescriptionCallback'](_0x58919f=>{const {data:_0x146b60}=_0x58919f;if(_0x146b60&&'blockQuote'==_0x146b60['commandName']){const _0x224780=c(_0x40d1cd,'ELEMENT_BLOCK_QUOTE');return _0x146b60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x40d1cd,'*Set\x20format:*\x20%0',_0x224780)}:{'type':'format','content':c(_0x40d1cd,'*Remove\x20format:*\x20%0',_0x224780)};}});}}function oo(_0x2049b9){return'blockQuote'==_0x2049b9['parent']['name'];}class L extends _0x3e2428{['afterInit'](){const _0x1638f0=this['editor'],_0x221361=_0x1638f0['locale'],_0x2e077f=_0x1638f0['plugins']['get']('TrackChangesEditing');_0x1638f0['plugins']['has']('BookmarkEditing')&&(_0x2e077f['enableCommand']('insertBookmark'),_0x2e077f['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e077f['registerBlockAttribute']('bookmarkId'),_0x2e077f['descriptionFactory']['registerDescriptionCallback'](_0x4520b4=>{if('insertion'!=_0x4520b4['type']&&'deletion'!=_0x4520b4['type']&&'attribute'!=_0x4520b4['type'])return;const _0x24b998=_0x4520b4['getContainedElement']();if(null==_0x24b998)return;if(!_0x24b998['is']('element','bookmark'))return;const _0x5de2b8=_0x24b998['getAttribute']('bookmarkId');if('insertion'==_0x4520b4['type'])return{'type':'insertion','content':c(_0x221361,'*Insert:*\x20%0','\x22'+_0x5de2b8+'\x22\x20'+c(_0x221361,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4520b4['type'])return{'type':'deletion','content':c(_0x221361,'*Remove:*\x20%0','\x22'+_0x5de2b8+'\x22\x20'+c(_0x221361,'ELEMENT_BOOKMARK'))};const {data:_0x2ef328}=_0x4520b4;if(!_0x2ef328||'bookmarkId'!=_0x2ef328['key'])return;return{'type':'format','content':c(_0x221361,'*Set\x20bookmark:*\x20%0','\x22'+_0x2ef328['newValue']+'\x22')};}));}}class J extends _0x3e2428{['afterInit'](){const _0x5b0331=this['editor'];_0x5b0331['plugins']['has']('CaseChange')&&(_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3e2428{['afterInit'](){const _0x5cdf8e=this['editor'];_0x5cdf8e['commands']['get']('ckbox')&&_0x5cdf8e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3e2428{['afterInit'](){const _0x5f4df0=this['editor'];if(!_0x5f4df0['plugins']['has']('CodeBlock'))return;const _0x1df761=_0x5f4df0['plugins']['get']('TrackChangesEditing'),_0x4b3e65=_0x5f4df0['locale'],_0x486648=_0x5f4df0['config']['get']('codeBlock')['languages'],_0x37d1b7=_0x5f4df0['commands']['get']('codeBlock');_0x1df761['enableCommand']('indentCodeBlock'),_0x1df761['enableCommand']('outdentCodeBlock'),_0x1df761['enableCommand']('codeBlock',(_0x460b37,_0x4f01cb={})=>{const _0x147c99=_0x5f4df0['model'],_0x1aa8aa=_0x5f4df0['model']['document']['selection'],_0x1d0975=_0x4f01cb&&void 0x0!==_0x4f01cb['forceValue']?_0x4f01cb['forceValue']:!_0x37d1b7['value'];let _0x493733;_0x4f01cb['language']||(_0x4f01cb['language']=_0x486648[0x0]['language']),_0x493733=_0x1d0975?Array['from'](_0x1aa8aa['getSelectedBlocks']())['filter'](_0x392422=>eo(_0x392422)||function(_0x1f24b5,_0x3bfa40){if(_0x1f24b5['is']('rootElement')||_0x3bfa40['isLimit'](_0x1f24b5))return!0x1;return _0x3bfa40['checkChild'](_0x1f24b5['parent'],'codeBlock');}(_0x392422,_0x147c99['schema'])):Array['from'](_0x1aa8aa['getSelectedBlocks']())['filter'](_0x116f2d=>eo(_0x116f2d));const _0x4429f4=to(_0x493733,_0x147c99);_0x147c99['change'](()=>{for(const _0xe1285f of _0x4429f4)_0x1df761['markBlockFormat'](_0xe1285f,{'commandName':'codeBlock','commandParams':[{..._0x4f01cb,'forceValue':_0x1d0975}],'formatGroupId':'blockName'});});}),(_0x1df761['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a2b01=>c(_0x4b3e65,'ELEMENT_CODE_BLOCK',_0x2a2b01)),_0x1df761['descriptionFactory']['registerDescriptionCallback'](_0x186f94=>{if('formatBlock'!=_0x186f94['type'])return;const _0x1683a6=_0x4b3e65['t'],{data:_0x4af9fc}=_0x186f94;if(!_0x4af9fc||'codeBlock'!=_0x4af9fc['commandName'])return;const _0x2465ce=_0x4af9fc['commandParams'][0x0]['language'],_0x181b1d=_0x1683a6(_0x486648['find'](_0x5f4bb8=>_0x5f4bb8['language']===_0x2465ce)['label'])['toLowerCase']();return _0x4af9fc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b3e65,'*Set\x20format:*\x20%0',c(_0x4b3e65,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x181b1d+')')}:{'type':'format','content':c(_0x4b3e65,'*Remove\x20format:*\x20%0',c(_0x4b3e65,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3ad882){return'codeBlock'==_0x3ad882['name'];}class q extends _0x3e2428{['afterInit'](){const _0x3ab871=this['editor'];if(!_0x3ab871['plugins']['has']('CommentsEditing'))return;_0x3ab871['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5d9741,_0x46981b,_0x45c8a3){const _0x26130a=[];for(const _0x4a35d5 of _0x46981b['getItems']())_0x4a35d5['hasAttribute'](_0x5d9741)&&_0x26130a['push'](_0x45c8a3['createRangeOn'](_0x4a35d5));return _0x26130a;}function Fe(_0x4159d4,_0x155451,{showActiveMarker:_0x179fd4=!0x0}={}){const _0x578cbe=_0x4159d4['plugins']['get']('TrackChangesEditing');return(_0x14ffa9,_0x1376dd,_0x574617)=>{if(!_0x574617['consumable']['test'](_0x1376dd['markerRange'],_0x14ffa9['name']))return;const _0x1f5b41=_0x1376dd['markerRange']['getWalker'](),_0x2f692b=_0x1376dd['markerRange']['start'],_0x13821d=_0x4159d4['model']['schema'];let _0x5072f5=null,_0x20a2f4=null,_0x476fe5=!0x1,_0x47dc95=!0x1;for(const _0x1f3916 of _0x1f5b41){const _0x8b6250=_0x1f3916['item'];_0x476fe5=_0x476fe5||_0x13821d['isContent'](_0x8b6250);const _0x117710=_0x574617['mapper']['toViewElement'](_0x8b6250);if(_0x117710&&_0x117710['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f3916['type']&&(_0x13821d['isBlock'](_0x8b6250)&&!_0x13821d['isLimit'](_0x8b6250)&&(_0x8b6250['nextSibling']||_0x2f692b['isAtEnd']?_0x5072f5&&_0x5072f5['parent']==_0x8b6250||(_0x5072f5=_0x8b6250,_0x23144d(_0x1f3916['previousPosition']),_0x47dc95=!0x0):_0x20a2f4=_0x20a2f4||_0x1f3916['previousPosition']));}function _0x23144d(_0x273071){const {id:_0x802468,authorId:_0x5a5282}=_0x578cbe['_splitMarkerName'](_0x1376dd['markerName']),_0x4a2a3b=_0x574617['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x155451,'data-suggestion':_0x802468,'data-author-id':_0x5a5282}),_0x129897=_0x574617['mapper']['toViewPosition'](_0x273071);_0x179fd4&&_0x578cbe['activeMarkers']['includes'](_0x1376dd['markerName'])&&_0x574617['writer']['addClass']('ck-suggestion-marker--active',_0x4a2a3b),_0x574617['writer']['insert'](_0x129897,_0x4a2a3b),_0x574617['mapper']['bindElementToMarker'](_0x4a2a3b,_0x1376dd['markerName']);}_0x476fe5||_0x47dc95||!_0x20a2f4||_0x23144d(_0x20a2f4);};}class z extends _0x3e2428{static get['requires'](){return[_0x5f586e];}['init'](){const _0x112dc7=this['editor'],_0x199981=_0x112dc7['plugins']['get']('TrackChangesEditing');_0x199981['enableCommand']('delete');const _0xd93d28=_0x112dc7['commands']['get']('deleteForward');_0x199981['enableCommand']('deleteForward',(_0x4a1311,_0x46ad47={})=>{const _0x10875a=_0x112dc7['model']['createSelection'](_0x112dc7['model']['document']['selection']);_0x10875a['isCollapsed']&&_0x112dc7['model']['modifySelection'](_0x10875a,{'direction':'forward','unit':_0x46ad47['unit']});const _0x33e938=_0x10875a['getFirstRange'](),_0x405765=_0x2daf6a['fromRange'](_0x33e938);let _0x29c1e3;_0x4a1311(_0x46ad47),_0x29c1e3='$graveyard'==_0x405765['root']['rootName']?_0x112dc7['model']['createRange'](_0x33e938['start']):_0x112dc7['model']['createRange'](_0x405765['start'],_0x405765['end']),_0x405765['detach'](),_0x112dc7['model']['enqueueChange'](_0xd93d28['buffer']['batch'],_0x309b9b=>{_0xd93d28['buffer']['lock'](),_0x309b9b['setSelection'](_0x309b9b['createRange'](_0x29c1e3['end'])),_0xd93d28['buffer']['unlock']();});}),_0x112dc7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x112dc7,'merge'),{'priority':'high'}),_0x112dc7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35113c,_0x20a06a,_0x3d2032)=>{_0x3d2032['options']['showSuggestionHighlights']&&Fe(_0x112dc7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35113c,_0x20a06a,_0x3d2032);},{'priority':'high'}),_0x112dc7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x23364d,_0x3c2509,_0x47d77b)=>{const _0x2ed1=_0x47d77b['mapper']['markerNameToElements'](_0x3c2509['markerName']);if(_0x2ed1){for(const _0x1d52a7 of _0x2ed1)_0x1d52a7['is']('uiElement')&&(_0x47d77b['mapper']['unbindElementFromMarkerName'](_0x1d52a7,_0x3c2509['markerName']),_0x47d77b['writer']['remove'](_0x1d52a7));}},{'priority':'high'});}}class W extends _0x3e2428{['afterInit'](){const _0x11220e=this['editor'];if(!_0x11220e['plugins']['has']('ListEditing'))return;const _0x121a8b=_0x11220e['locale'],_0x525c83=_0x11220e['plugins']['get']('TrackChangesEditing'),_0x2e98a9=_0x11220e['plugins']['has']('TodoListEditing'),_0x4fa5f4=!!_0x11220e['config']['get']('list.multiBlock');function _0x31a70a(_0x4aee5b){return{'type':'format','content':''+c(_0x121a8b,'*Set\x20format:*\x20%0',_0x4aee5b)};}function _0x2dc79d(_0x436cff){return{'type':'format','content':''+c(_0x121a8b,'*Remove\x20format:*\x20%0',_0x436cff)};}_0x525c83['enableDefaultAttributesIntegration']('numberedList'),_0x525c83['enableDefaultAttributesIntegration']('bulletedList'),_0x525c83['enableDefaultAttributesIntegration']('customNumberedList'),_0x525c83['enableDefaultAttributesIntegration']('customBulletedList'),_0x525c83['enableDefaultAttributesIntegration']('indentList'),_0x525c83['enableDefaultAttributesIntegration']('outdentList'),_0x525c83['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x525c83['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x525c83['registerBlockAttribute']('listItemId'),_0x525c83['registerBlockAttribute']('listType'),_0x525c83['registerBlockAttribute']('listIndent'),_0x4fa5f4&&(_0x525c83['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x525c83['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e98a9&&(_0x525c83['enableDefaultAttributesIntegration']('todoList'),_0x525c83['enableDefaultAttributesIntegration']('checkTodoList'),_0x525c83['registerBlockAttribute']('todoListChecked'),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x40f9b5=>{const {data:_0x452806}=_0x40f9b5;if(_0x452806&&'todoListChecked'==_0x452806['key'])return{'type':'format','content':_0x452806['newValue']?c(_0x121a8b,'*Check\x20item*'):c(_0x121a8b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e3300=>{if(_0x2e3300['batch']['isUndo'])return!0x1;let _0x1207ec=!0x1;const _0x3fb86a=_0x525c83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x185724=>'todoListChecked'===_0x525c83['_getAttributeKey'](_0x185724));for(const _0x16d977 of _0x3fb86a){'todo'!=_0x16d977['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x525c83['_findSuggestions'](_0x16d977['getFirstRange'](),'attribute')['find'](_0x2678b0=>'listType'===_0x525c83['_getAttributeKey'](_0x2678b0['suggestion']))||(_0x2e3300['removeMarker'](_0x16d977['getFirstMarker']()),_0x1207ec=!0x0));}return _0x1207ec;})),_0x525c83['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x121a8b,'FORMAT_INDENT'));const _0x22cc7d={'type':'format','content':''};_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x5c27e5=>{const {data:_0x688a73}=_0x5c27e5;if(!_0x688a73||'listType'!=_0x688a73['key'])return;let _0x111653=_0x5c27e5['head'];for(;_0x111653;){if(_0x111653['data']&&(('listStyle'==_0x111653['data']['key']||'listMarkerStyle'==_0x111653['data']['key'])&&(_0x111653['data']['newValue']&&'default'!=_0x111653['data']['newValue']||'default'!=_0x111653['data']['oldValue']&&!_0x688a73['newValue'])||!_0x4fa5f4&&_0x111653['data']['key']==u))return _0x22cc7d;_0x111653=_0x111653['next'];}if(null==_0x688a73['newValue'])switch(_0x688a73['oldValue']){case'bulleted':return _0x2dc79d(c(_0x121a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dc79d(c(_0x121a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dc79d(c(_0x121a8b,'ELEMENT_TODO_LIST'));}switch(_0x688a73['newValue']){case'bulleted':return _0x31a70a(c(_0x121a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31a70a(c(_0x121a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31a70a(c(_0x121a8b,'ELEMENT_TODO_LIST'));}}),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x4439c8=>{const {data:_0x13fb09}=_0x4439c8;if(_0x13fb09&&'listIndent'==_0x13fb09['key'])return null==_0x13fb09['newValue']||null==_0x13fb09['oldValue']&&0x0==_0x13fb09['newValue']?_0x22cc7d:void 0x0;}),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x3b5d91=>{if('attribute'!=_0x3b5d91['type'])return;const {data:_0x35e651}=_0x3b5d91;if(!_0x35e651||'listItemId'!=_0x35e651['key'])return;const _0x59a2d2=Te(_0x3b5d91);return'newValue'==_0x59a2d2?{'type':'format','content':c(_0x121a8b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59a2d2?{'type':'format','content':c(_0x121a8b,'*Split:*\x20list\x20item')}:_0x22cc7d;}),_0x11220e['model']['document']['registerPostFixer'](_0x314a91=>this['listItemIdFixer'](_0x314a91)),_0x11220e['model']['document']['registerPostFixer'](_0x9f3f72=>this['noTrackChangesFixer'](_0x9f3f72)),_0x11220e['model']['document']['on']('change:data',(_0x5a94ef,_0xd57e91)=>{if(_0xd57e91['isUndo']||!_0xd57e91['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x330bf2){if(_0x330bf2['batch']['isUndo']||!_0x330bf2['batch']['isLocal'])return!0x1;let _0x398eda=!0x1;const _0x3756d6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52d74c=>_0x52d74c['data']&&'listItemId'==_0x52d74c['data']['key'])['filter'](_0xae75c6=>_0xae75c6['data']['newValue']&&_0xae75c6['data']['oldValue']);for(const _0x45bd85 of _0x3756d6)Te(_0x45bd85)||(_0x330bf2['removeMarker'](_0x45bd85['getFirstMarker']()),_0x398eda=!0x0);return _0x398eda;}['noTrackChangesFixer'](_0x1497fb){if(_0x1497fb['batch']['isUndo']||!_0x1497fb['batch']['isLocal'])return!0x1;const _0x490266=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x490266['trackChangesCommand']['value'])return!0x1;let _0x1cb697=!0x1;const _0x459e99=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x151967=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5acf88=>'attribute'==_0x5acf88['type'])['filter'](_0x337235=>_0x459e99['includes'](_0x337235['attributeKey']));if(0x0==_0x151967['length'])return _0x1cb697;for(const _0x5498ad of _0x151967){const _0x263caf=_0x490266['_findSuggestions'](_0x5498ad['range'],'attribute')['filter'](_0x600748=>!_0x600748['meta']['isNextTo'])['map'](_0x555225=>_0x555225['suggestion'])['filter'](_0x56f220=>{const _0x460fee=_0x490266['_getAttributeKey'](_0x56f220);return _0x459e99['includes'](_0x460fee);});if(_0x263caf['length']){for(const _0x240018 of _0x263caf)_0x1497fb['removeMarker'](_0x240018['getFirstMarker']());_0x1cb697=!0x0;}}return _0x1cb697;}['assureChains'](){const _0x9a10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f9ce1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54949f;const _0x11bbf2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5915d6=>{if(_0x5915d6['data']['oldRange']||!_0x5915d6['data']['newRange'])return null;if(!_0x5915d6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xf5b5b4}=_0x9a10['_splitMarkerName'](_0x5915d6['name']);if(!_0x9a10['hasSuggestion'](_0xf5b5b4))return null;const _0x321a79=_0x9a10['getSuggestion'](_0xf5b5b4);return _0x2f9ce1['includes'](_0x321a79['data']['key']);})['map'](_0x4ba546=>{const {id:_0x190ae7}=_0x9a10['_splitMarkerName'](_0x4ba546['name']),_0x4d876f=_0x9a10['getSuggestion'](_0x190ae7);return _0x54949f=_0x4d876f['attributes']['groupId'],_0x4d876f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11bbf2['size'])return;const _0x39a52e=_0x9a10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3feb18=>'attribute'==_0x3feb18['type']&&_0x3feb18['data']&&_0x2f9ce1['includes'](_0x3feb18['data']['key'])&&_0x3feb18['attributes']['groupId']!=_0x54949f)['map'](_0x510e68=>({'listItem':_0x510e68['getFirstRange']()['start']['nodeAfter'],'groupId':_0x510e68['attributes']['groupId']})),_0x30aa59=new Set();for(const {groupId:_0x21ec88,listItem:_0x1cf909}of _0x39a52e)_0x11bbf2['has'](_0x1cf909)&&_0x30aa59['add'](_0x21ec88);for(const _0x3760a5 of _0x9a10['getSuggestions']())_0x30aa59['has'](_0x3760a5['attributes']['groupId'])&&_0x3760a5['setAttribute']('groupId',_0x54949f);}['_supportLegacySuggestions'](){const _0x4e059f=this['editor'],_0x464e47=_0x4e059f['locale'],_0x348dcd=_0x4e059f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x348dcd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51aa10,_0x1313c0){const _0x4630db=[];for(let _0x16b3a7 of _0x51aa10)_0x16b3a7['start']['nodeAfter']===_0x16b3a7['end']['parent']&&(_0x16b3a7=_0x4e059f['model']['createRange'](_0x4e059f['model']['createPositionAt'](_0x16b3a7['start']['nodeAfter'],0x0))),_0x4630db['push'](_0x16b3a7);_0x4e059f['model']['change'](_0x3443f7=>{const _0x298ad7=_0x4e059f['model']['document']['selection'],_0x10c835=Array['from'](_0x298ad7['getRanges']())['map'](_0x565c95=>_0x2daf6a['fromRange'](_0x565c95));_0x3443f7['setSelection'](_0x4630db),_0x4e059f['commands']['get'](_0x1313c0['commandName'])['refresh'](),_0x1313c0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e059f['execute'](_0x1313c0['commandName'],..._0x1313c0['commandParams']),_0x3443f7['setSelection'](_0x10c835);for(const _0x47440c of _0x10c835)_0x47440c['detach']();});}),_0x348dcd['descriptionFactory']['registerElementLabel'](function(_0x196a48){const _0x4597e0=!_0x4e059f['model']['schema']['isObject'](_0x196a48),_0x230082=_0x196a48['previousSibling'],_0xb39458=_0x196a48['nextSibling'],_0x228d51=_0x196a48['getAttribute']('listItemId'),_0x26419c=!_0x230082||_0x230082['getAttribute']('listItemId')!==_0x228d51,_0x47e1fc=!_0xb39458||_0xb39458['getAttribute']('listItemId')!==_0x228d51;return _0x4597e0&&Boolean(_0x228d51)&&_0x26419c&&_0x47e1fc;},_0x2d615c=>c(_0x464e47,'ELEMENT_LIST_ITEM',_0x2d615c));}['_registerLegacyDescription'](){const _0x1b2591=this['editor'],_0x1817d4=_0x1b2591['locale'];function _0x1fcd15(_0x4e7421){const _0x2b45ee=_0x1b2591['commands']['get']('bulletedList')['value'],_0x4a9dff=_0x1b2591['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e7421?_0x2b45ee:_0x4a9dff;}_0x1b2591['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2e388a){if('formatBlock'!=_0x2e388a['type'])return;const {data:_0x33f1aa}=_0x2e388a;if(!_0x33f1aa)return;let _0x2c3908,_0x1ac9d7,_0x34cd44,_0x1aa54d;switch(_0x33f1aa['commandName']){case'bulletedList':_0x34cd44=_0x33f1aa['commandParams'][0x0]['forceValue'],_0x1aa54d=_0x1fcd15(_0x33f1aa['commandName']),_0x2c3908=_0x34cd44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1aa54d&&_0x1b2591['config']['get']('list.multiBlock')||(_0x2c3908='*Change\x20to:*\x20%0'),_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x34cd44=_0x33f1aa['commandParams'][0x0]['forceValue'],_0x1aa54d=_0x1fcd15(_0x33f1aa['commandName']),_0x2c3908=_0x34cd44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1aa54d&&_0x1b2591['config']['get']('list.multiBlock')||(_0x2c3908='*Change\x20to:*\x20%0'),_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2c3908='*Indent:*\x20%0',_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2c3908=function(_0x5634b1){const _0x54d466=_0x5634b1['getFirstRange']();let _0x24172b=_0x54d466['start']['nodeAfter'];for(;_0x24172b&&_0x54d466['containsItem'](_0x24172b);){if(_0x24172b['getAttribute']('listIndent')>0x0)return!0x1;_0x24172b=_0x24172b['nextSibling'];}return!0x0;}(_0x2e388a)?c(_0x1817d4,'*Format:*\x20remove\x20from\x20%0',c(_0x1817d4,function(_0x40fd8e){return'ELEMENT_'+_0x40fd8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2e388a))):c(_0x1817d4,'*Outdent:*\x20%0',c(_0x1817d4,'ELEMENT_LIST_ITEM')),_0x1ac9d7={'type':'format','content':_0x2c3908};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x33f1aa['multipleBlocks']&&(_0x2c3908='*Merge:*\x20%0',_0x1ac9d7={'type':'deletion','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_LIST_ITEM'))});}return _0x1ac9d7;});}}function Te(_0x264f30){let _0x557af2=_0x264f30['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x557af2;){const _0x414e33=_0x557af2['getAttribute']('listItemId');if(!_0x414e33)return!0x1;if(_0x414e33==_0x264f30['data']['newValue'])return'newValue';if(_0x414e33==_0x264f30['data']['oldValue'])return'oldValue';_0x557af2=_0x557af2['previousSibling'];}return!0x1;}class Se extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c0e1c=this['editor']['config']['get']('list.properties'),_0x587fda=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c0e1c['styles']&&(_0x587fda['enableDefaultAttributesIntegration']('listStyle'),_0x587fda['registerBlockAttribute']('listStyle')),_0x2c0e1c['reversed']&&(_0x587fda['enableDefaultAttributesIntegration']('listReversed'),_0x587fda['registerBlockAttribute']('listReversed')),_0x2c0e1c['startIndex']&&(_0x587fda['enableDefaultAttributesIntegration']('listStart'),_0x587fda['registerBlockAttribute']('listStart'));const _0x250c93={'type':'format','content':''};_0x587fda['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f0e59=this['editor']['locale'];_0x587fda['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3f0e59,'FORMAT_LIST_REVERSED')),_0x587fda['descriptionFactory']['registerDescriptionCallback'](_0x2a7d47=>{const {data:_0x2bbb21}=_0x2a7d47;if(_0x2bbb21&&'listReversed'==_0x2bbb21['key'])return null==_0x2bbb21['newValue']||0x0==_0x2bbb21['newValue']&&null==_0x2bbb21['oldValue']?_0x250c93:void 0x0;}),_0x587fda['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3f0e59,'FORMAT_LIST_START')),_0x587fda['descriptionFactory']['registerDescriptionCallback'](_0x43fee7=>{const {data:_0x3a8350}=_0x43fee7;if(_0x3a8350&&'listStart'==_0x3a8350['key'])return null==_0x3a8350['newValue']||0x1==_0x3a8350['newValue']&&null==_0x3a8350['oldValue']?_0x250c93:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46352e=>{if(_0x46352e['batch']['isUndo'])return!0x1;let _0xc69fcc=!0x1;const _0x5c0dd0=_0x587fda['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ad7b0=>{const _0x2f784f=_0x587fda['_getAttributeKey'](_0x5ad7b0);return'listStart'==_0x2f784f||'listReversed'==_0x2f784f;});for(const _0x54012a of _0x5c0dd0){const _0x56f15f=_0x54012a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56f15f||'customNumbered'==_0x56f15f)continue;_0x587fda['_findSuggestions'](_0x54012a['getFirstRange'](),'attribute')['find'](_0x1da84b=>'listType'==_0x587fda['_getAttributeKey'](_0x1da84b['suggestion']))||(_0x46352e['removeMarker'](_0x54012a['getFirstMarker']()),_0xc69fcc=!0x0);}return _0xc69fcc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42a369){const _0x3c150f=this['editor']['locale'],{data:_0x3e74e0}=_0x42a369,_0x589095={'type':'format','content':''};if(!_0x3e74e0||'listStyle'!=_0x3e74e0['key'])return;if(!_0x3e74e0['oldValue'])return'default'==_0x3e74e0['newValue']?_0x589095:{'type':'format','content':''+c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['newValue'])))};if(!_0x3e74e0['newValue']){if('default'==_0x3e74e0['oldValue'])return _0x589095;let _0x5c187f=_0x42a369['head'];for(;_0x5c187f;){if(_0x5c187f['data']&&'listType'==_0x5c187f['data']['key']&&_0x5c187f['data']['newValue'])return _0x589095;_0x5c187f=_0x5c187f['next'];}return{'type':'format','content':''+c(_0x3c150f,'*Remove\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['oldValue'])))};}if('default'!=_0x3e74e0['newValue'])return{'type':'format','content':''+c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['newValue'])))};let _0xaac368=_0x42a369['head'];for(;_0xaac368;){if(_0xaac368['data']&&'listType'==_0xaac368['data']['key']&&_0xaac368['data']['newValue']&&_0xaac368['data']['oldValue'])return _0x589095;_0xaac368=_0xaac368['next'];}return{'type':'format','content':c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,'ELEMENT_'+_0x42a369['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55b3a5=this['editor'],_0x4e31ac=_0x55b3a5['locale'];_0x55b3a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e36aa=>{if('formatBlock'!=_0x1e36aa['type'])return;const {data:_0x4075e3}=_0x1e36aa;if(!_0x4075e3)return;let _0x53439e,_0x4c0ec1;switch(_0x4075e3['commandName']){case'listStyle':_0x53439e='*Change\x20to:*\x20%0',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e,c(_0x4e31ac,this['_getTranslationKeyForListStyle'](_0x4075e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53439e=_0x4075e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e)};break;case'listStart':_0x53439e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e,_0x4075e3['commandParams'][0x0]['startIndex'])};}return _0x4c0ec1;});}['_getTranslationKeyForListStyle'](_0x5d8c40){return'ELEMENT_'+function(_0x507456){if(_e['includes'](_0x507456))return'bulleted';if(Re['includes'](_0x507456))return'numbered';return null;}(_0x5d8c40)['toUpperCase']()+'_LIST_'+_0x5d8c40['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3e2428{['afterInit'](){const _0xc950ed=this['editor'];_0xc950ed['commands']['get']('emoji')&&_0xc950ed['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3e2428{static get['requires'](){return[_0x3ceda9];}['init'](){const _0x455158=this['editor'],_0x547b4d=_0x455158['plugins']['get']('TrackChangesEditing'),_0x5d4892=_0x455158['commands']['get']('enter');_0x547b4d['enableCommand']('enter',()=>{_0x455158['model']['change'](_0xe8c2ec=>{const _0x3dc118=_0x455158['model']['document']['selection'],_0x296754=_0x3dc118['getFirstPosition'](),_0x1df128=_0x2daf6a['fromRange'](_0x3dc118['getFirstRange']());if(_0x5d4892['enterBlock'](_0xe8c2ec)){const _0x22ffd6=_0x455158['model']['createPositionAt'](_0x296754['parent']['nextSibling'],0x0),_0x1fff5f=_0xe8c2ec['createRange'](_0x296754,_0x22ffd6);_0x547b4d['markInsertion'](_0x1fff5f);}else _0xe8c2ec['setSelection'](_0xe8c2ec['createRange'](_0x1df128['end']));_0x1df128['detach'](),_0x5d4892['fire']('afterExecute',{'writer':_0xe8c2ec});});}),_0x455158['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x455158,'split'),{'priority':'high'}),_0x455158['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x35de17,_0xc42f94,_0x2d88e4)=>{const _0x153a99=_0x2d88e4['mapper']['markerNameToElements'](_0xc42f94['markerName']);if(_0x153a99){for(const _0x13599f of _0x153a99)_0x13599f['hasClass']('ck-suggestion-marker-split')&&(_0x2d88e4['mapper']['unbindElementFromMarkerName'](_0x13599f,_0xc42f94['markerName']),_0x2d88e4['writer']['remove'](_0x13599f));}},{'priority':'high'}),_0x455158['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f0ff0,_0x3d1126,_0x177b88)=>{_0x177b88['options']['showSuggestionHighlights']&&Fe(_0x455158,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5f0ff0,_0x3d1126,_0x177b88);},{'priority':'high'});}}class Z extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1fa489=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fa489['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1fa489['enableCommand']('findNext'),_0x1fa489['enableCommand']('findPrevious'),_0x1fa489['enableCommand']('replace'),_0x1fa489['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ce954,_0x400477,_0x1985ec={}){const _0x4a2364=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ce954(_0x5e22c4=>{let _0xdf6480=('string'==typeof _0x400477?_0x4a2364['findByTextCallback'](_0x400477,_0x1985ec):_0x400477)(_0x5e22c4);Array['isArray'](_0xdf6480)&&(_0xdf6480={'results':_0xdf6480,'searchText':'string'==typeof _0x400477?_0x400477:''});const _0x16520a=_0xdf6480['results']['filter'](_0x2b9f4f=>!0x1===this['_isInDeletionRange'](_0x2b9f4f,_0x5e22c4['item']));return{..._0xdf6480,'results':_0x16520a};},_0x1985ec);}['_isInDeletionRange'](_0xaf5cef,_0x5a39b1){const _0x5f0d50=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a39b1,_0xaf5cef['start']),this['editor']['model']['createPositionAt'](_0x5a39b1,_0xaf5cef['end']));for(const _0x215b33 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5f0d50['getIntersection'](_0x215b33['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3e2428{['afterInit'](){const _0xbffba0=this['editor']['locale'],_0x3aa59b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d33c2,commandName:_0x2b463d}of ro)this['editor']['plugins']['has'](_0x1d33c2)&&(_0x3aa59b['enableDefaultAttributesIntegration'](_0x2b463d),_0x3aa59b['registerInlineAttribute'](_0x2b463d));_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xbffba0,'FORMAT_FONT_SIZE')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xbffba0,'FORMAT_FONT_FAMILY')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xbffba0,'FORMAT_FONT_COLOR')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xbffba0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29bdfa=this['editor'],_0x4dd8=_0x29bdfa['locale'];_0x29bdfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa29949=>{const _0x5de613=_0x4dd8['t'];if('formatInline'!=_0xa29949['type'])return;const {data:_0x3a2bd8}=_0xa29949;if(null!=_0x3a2bd8){if('fontSize'==_0x3a2bd8['commandName']){const _0x45ae12=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x45ae12){const _0x3ed5c6=_0x5de613(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fb941=>_0x2fb941['model']==_0x45ae12)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20size:*\x20%0',_0x3ed5c6)};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3a2bd8['commandName']){const _0x21edd6=_0x3a2bd8['commandParams'][0x0]['value'];return _0x21edd6?{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20family:*\x20%0',_0x21edd6)}:{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3a2bd8['commandName']){const _0x4bed0f=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x4bed0f){const _0x3819f2=_0x3de588(this['editor']['config']['get']('fontColor.colors'))['find'](_0x119a14=>_0x119a14['model']==_0x4bed0f);let _0x284dde=_0x4bed0f,_0x872a54='';return _0x3819f2&&(_0x284dde=_0x3819f2['label'],_0x872a54=_0x5de613(_0x284dde)['toLowerCase']()),{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20color:*\x20%0',_0x872a54)['trim'](),'color':{'value':_0x4bed0f,'title':_0x872a54||_0x284dde}};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3a2bd8['commandName']){const _0x1a8c0d=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x1a8c0d){const _0x226182=_0x3de588(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x166bfd=>_0x166bfd['model']==_0x1a8c0d);let _0x821c1d=_0x1a8c0d,_0x495250='';return _0x226182&&(_0x821c1d=_0x226182['label'],_0x495250=_0x5de613(_0x821c1d)['toLowerCase']()),{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20background\x20color:*\x20%0',_0x495250)['trim'](),'color':{'value':_0x1a8c0d,'title':_0x495250||_0x821c1d}};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3e2428{['afterInit'](){const _0x25b7a8=this['editor'],_0x836944=_0x25b7a8['plugins']['get']('TrackChangesEditing'),_0x19c9ff=_0x25b7a8['commands']['get']('copyFormat'),_0xe3c139=_0x25b7a8['commands']['get']('pasteFormat');_0x19c9ff&&_0xe3c139&&(_0x836944['enableDefaultAttributesIntegration']('pasteFormat'),_0x836944['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x228300=this['editor'],_0x4dfe84=_0x228300['locale'];_0x228300['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e44a5=>{if('formatBlock'!=_0x2e44a5['type']&&'formatInline'!=_0x2e44a5['type'])return;const {data:_0x44922b}=_0x2e44a5;if(_0x44922b&&'pasteFormat'===_0x44922b['commandName']){const _0x3f78c1=[],_0x1de79c=_0x44922b['commandParams'][0x0];for(const [_0x29aea7,_0x4a024f]of Object['entries'](_0x1de79c))_0x3f78c1['push'](so(_0x228300,_0x29aea7,_0x4a024f));return _0x3f78c1['length']?{'type':'format','content':c(_0x4dfe84,'*Set\x20format\x20to:*\x20%0',_0x3f78c1['join'](',\x20'))}:{'type':'format','content':c(_0x4dfe84,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5282dd,_0x395b62,_0x38741f){const _0x586f64=_0x5282dd['locale']['t'],_0x17fbbf=_0x395b62['split'](/(?=[A-Z])/)['join']('\x20'),_0x5f4c2c=_0x586f64(_0x17fbbf['charAt'](0x0)['toUpperCase']()+_0x17fbbf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38741f)return _0x5f4c2c;if('fontColor'===_0x395b62||'fontBackgroundColor'===_0x395b62){const _0x40981c=_0x3de588(_0x5282dd['config']['get']('fontColor.colors'))['find'](_0x44cbfd=>_0x44cbfd['model']==_0x38741f);return _0x5f4c2c+'\x20('+(_0x40981c?_0x586f64(_0x40981c['label'])['toLowerCase']():_0x38741f)+')';}if('fontSize'===_0x395b62&&isNaN(parseFloat(_0x38741f))){const _0x3bf865=_0x5282dd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5282dd['config']['get']('fontSize.options'))['find'](_0x2d2039=>_0x2d2039['model']==_0x38741f);return _0x5f4c2c+'\x20('+(_0x3bf865?_0x586f64(_0x3bf865['title'])['toLowerCase']():_0x38741f)+')';}return _0x5f4c2c+'\x20('+_0x38741f+')';}class et extends _0x3e2428{['_headingOptions'];['afterInit'](){const _0x30cc69=this['editor'];if(!_0x30cc69['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x30cc69['config']['get']('heading.options');const _0x3b0d29=_0x30cc69['locale'],_0x44a759=_0x30cc69['plugins']['get']('TrackChangesEditing');_0x44a759['enableDefaultAttributesIntegration']('heading');for(const _0x5e6d6f of this['_headingOptions'])'paragraph'!=_0x5e6d6f['model']&&_0x44a759['descriptionFactory']['registerElementLabel'](_0x5e6d6f['model'],_0x4e9d41=>{const _0xde345d=this['_getHeadingLevel'](_0x5e6d6f['model']);return null!==_0xde345d?_0x49f819(_0x4e9d41,_0xde345d):_0x400214(_0x4e9d41,_0x5e6d6f['title']);});function _0x49f819(_0x569748,_0x147e4d){return c(_0x3b0d29,'ELEMENT_HEADING',[_0x569748,_0x147e4d]);}function _0x400214(_0x2a0717,_0x9fe10){return c(_0x3b0d29,'ELEMENT_HEADING_CUSTOM',[_0x2a0717,_0x9fe10]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2850de=this['editor'],_0x26f9ea=_0x2850de['locale'];function _0x131b34(_0x57ea17,_0x47f71a){return c(_0x26f9ea,'ELEMENT_HEADING_CUSTOM',[_0x57ea17,_0x47f71a]);}_0x2850de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c1430=>{if('formatBlock'!=_0x2c1430['type'])return;const {data:_0x1433bb}=_0x2c1430;if(_0x1433bb&&'heading'==_0x1433bb['commandName']){const _0x2ddb4b=_0x1433bb['commandParams'][0x0]['value'],_0x37418b=this['_getHeadingLevel'](_0x2ddb4b);if(null!==_0x37418b)return{'type':'format','content':c(_0x26f9ea,'*Change\x20to:*\x20%0',(_0x2d97e0=0x1,_0x2668a3=_0x37418b,c(_0x26f9ea,'ELEMENT_HEADING',[_0x2d97e0,_0x2668a3])))};const _0x35d78d=this['_headingOptions']['find'](_0x536faf=>_0x536faf['model']===_0x2ddb4b)['title'];return{'type':'format','content':c(_0x26f9ea,'*Change\x20to:*\x20%0',_0x131b34(0x1,_0x35d78d))};}var _0x2d97e0,_0x2668a3;});}['_getHeadingLevel'](_0x21ca35){const _0x336194=_0x21ca35['match'](/^heading(\d+)/);if(_0x336194)return _0x336194[0x1];const _0x396485=this['_headingOptions']?.['find'](_0x24c0ec=>_0x24c0ec['model']==_0x21ca35);if(_0x396485&&_0x396485['view']){const _0x403b09=_0x396485['view'],_0x12b749=(_0x403b09['name']??_0x403b09)['match'](/^h(\d+)/);if(_0x12b749)return _0x12b749[0x1];}return null;}}class nt extends _0x3e2428{['afterInit'](){const _0x38d093=this['editor'];if(!_0x38d093['plugins']['has']('HighlightEditing'))return;const _0x4eba3a=_0x38d093['plugins']['get']('TrackChangesEditing'),_0x3adff0=_0x38d093['locale'];_0x4eba3a['enableDefaultAttributesIntegration']('highlight'),_0x4eba3a['registerInlineAttribute']('highlight'),_0x4eba3a['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3adff0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d83b=this['editor'],_0x22f366=_0x43d83b['locale'];_0x43d83b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aa04f=>{if('formatInline'!=_0x2aa04f['type'])return;const {data:_0x471c82}=_0x2aa04f;if(_0x471c82&&'highlight'==_0x471c82['commandName']){const _0x602ca5=_0x22f366['t'],_0x117c30=_0x471c82['commandParams'][0x0]['value'];if(_0x117c30){const _0x3ebe9e=_0x43d83b['config']['get']('highlight.options')['find'](_0x36da5b=>_0x36da5b['model']==_0x117c30),_0x19c0f2=_0x602ca5(_0x3ebe9e['title'])['toLowerCase']();return{'type':'format','content':c(_0x22f366,'*Set\x20highlight:*\x20%0',_0x19c0f2),'color':{'value':_0x3ebe9e['color'],'title':_0x3ebe9e['title']}};}return{'type':'format','content':c(_0x22f366,'*Remove\x20highlight*',c(_0x22f366,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3e2428{['afterInit'](){const _0x14b1d1=this['editor'];if(!_0x14b1d1['plugins']['has']('HorizontalLineEditing'))return;_0x14b1d1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x36df86=_0x14b1d1['plugins']['get']('TrackChangesEditing'),_0x225e51=_0x14b1d1['locale'];_0x36df86['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33eefb=>c(_0x225e51,'ELEMENT_HORIZONTAL_LINE',_0x33eefb)),_0x14b1d1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d5468,{writer:_0x94fb49,options:_0x4b6cf3})=>{if(!_0x4b6cf3['showSuggestionHighlights'])return null;const _0x1dd34c=_0x94fb49['createContainerElement']('div'),_0x5fbd60=_0x94fb49['createEmptyElement']('hr');return _0x94fb49['addClass']('ck-horizontal-line',_0x1dd34c),_0x94fb49['insert'](_0x94fb49['createPositionAt'](_0x1dd34c,0x0),_0x5fbd60),_0x1dd34c;},'converterPriority':'high'});}}class ot extends _0x3e2428{['afterInit'](){const _0x47c2db=this['editor'];if(!_0x47c2db['plugins']['has']('HtmlEmbed'))return;const _0x4892d6=_0x47c2db['plugins']['get']('TrackChangesEditing'),_0x4a9adf=_0x47c2db['locale'];_0x4892d6['descriptionFactory']['registerElementLabel']('rawHtml',_0x26d740=>c(_0x4a9adf,'ELEMENT_HTML_EMBED',_0x26d740)),_0x4892d6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4892d6['registerBlockAttribute']('value'),_0x4892d6['descriptionFactory']['registerDescriptionCallback'](_0x69c0b0=>{if('attribute'!=_0x69c0b0['type'])return;const {data:_0x7ce89f}=_0x69c0b0;if(_0x7ce89f&&'value'==_0x7ce89f['key']&&_0x69c0b0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4eaf14=c(_0x4a9adf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4a9adf,'*Change\x20%0\x20content*',_0x4eaf14)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e8536=this['editor'],_0x7f1a71=_0x3e8536['locale'];_0x3e8536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a900a=>{if('formatBlock'!=_0x5a900a['type'])return;const {data:_0x540072}=_0x5a900a;if(_0x540072&&'htmlEmbed'==_0x540072['commandName']){const _0xf3d332=c(_0x7f1a71,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x7f1a71,'*Change\x20%0\x20content*',_0xf3d332)};}});}}class rt extends _0x3e2428{['afterInit'](){const _0xd6e3a3=this['editor'];if(!_0xd6e3a3['plugins']['has']('ImageEditing'))return;const _0x3edf40=_0xd6e3a3['plugins']['get']('TrackChangesEditing'),_0x3474e3=_0xd6e3a3['plugins']['get']('ImageUtils'),_0x3fc91d=_0xd6e3a3['locale'];_0x3edf40['enableCommand']('insertImage'),_0x3edf40['descriptionFactory']['registerElementLabel']('imageBlock',_0x19dee3=>c(_0x3fc91d,'ELEMENT_IMAGE',_0x19dee3)),_0x3edf40['descriptionFactory']['registerElementLabel']('imageInline',_0x48d7d8=>c(_0x3fc91d,'ELEMENT_INLINE_IMAGE',_0x48d7d8)),_0x3edf40['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3fc91d,'ELEMENT_CAPTION')),_0xd6e3a3['plugins']['has']('ImageUploadEditing')&&_0x3edf40['enableCommand']('uploadImage'),_0xd6e3a3['plugins']['has']('ImageBlockEditing')&&_0xd6e3a3['plugins']['has']('ImageInlineEditing')&&(_0x3edf40['enableCommand']('imageTypeInline',(_0x4174b1,_0x317535)=>{const _0x5688bf=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']);_0xd6e3a3['model']['change'](()=>{_0x3edf40['markBlockFormat'](_0x5688bf,{'commandName':'imageTypeInline','commandParams':[_0x317535]},[],'convertBlockImageToInline');});}),_0x3edf40['enableCommand']('imageTypeBlock',(_0x58ebf2,_0x1bd442)=>{_0xd6e3a3['model']['change'](_0x5500b8=>{let _0x3364af=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x56d643=_0x5500b8['createRangeOn'](_0x3364af);const _0x59c2f3=_0x342ae3['fromPosition'](_0x56d643['start'],'toPrevious'),_0x1516b3=_0x342ae3['fromPosition'](_0x56d643['end'],'toNext');_0x3edf40['forceDefaultExecution'](()=>_0x58ebf2(_0x1bd442)),_0x3364af=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x56d643=_0x5500b8['createRangeOn'](_0x3364af);const _0x4cc4f3=_0x5500b8['createRange'](_0x59c2f3,_0x1516b3);_0x59c2f3['detach'](),_0x1516b3['detach'](),_0x3edf40['markBlockFormat'](_0x3364af,{'commandName':'imageTypeInline','commandParams':[_0x1bd442]},[],'convertInlineImageToBlock'),_0x4cc4f3['start']['isBefore'](_0x56d643['start'])&&_0x3edf40['markInsertion'](_0x5500b8['createRange'](_0x4cc4f3['start'],_0x56d643['start']),'convertInlineImageToBlock'),_0x56d643['end']['isBefore'](_0x4cc4f3['end'])&&_0x3edf40['markInsertion'](_0x5500b8['createRange'](_0x56d643['end'],_0x4cc4f3['end']),'convertInlineImageToBlock');});}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3edf40['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42c64f])=>{const _0x2fd8bf=_0x3edf40['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x286b98=_0x42c64f['start'],_0x47dccc=_0x42c64f['end'];const _0x29a3cc=_0xd6e3a3['model']['schema']['getNearestSelectionRange'](_0x286b98,'backward'),_0x35a3f5=_0xd6e3a3['model']['schema']['getNearestSelectionRange'](_0x47dccc,'forward');_0x29a3cc['isCollapsed']&&(_0x286b98=_0x29a3cc['start']),_0x35a3f5['isCollapsed']&&(_0x47dccc=_0x35a3f5['end']),_0x2fd8bf([_0xd6e3a3['model']['createRange'](_0x286b98,_0x47dccc)]);}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x47d29f),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x47d29f)),_0xd6e3a3['plugins']['has']('ImageCaptionEditing')&&(_0x3edf40['enableCommand']('toggleImageCaption',(_0x17372c,_0x3749a3)=>{const _0x4477f2=_0xd6e3a3['plugins']['get']('ImageCaptionUtils');let _0x1d1534=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x9fc4e5=_0x4477f2['getCaptionFromImageModelElement'](_0x1d1534);_0xd6e3a3['model']['change'](()=>{if(_0x9fc4e5)return void _0x3edf40['markDeletion'](_0xd6e3a3['model']['createRangeOn'](_0x9fc4e5));const _0x52b560=_0x3474e3['isBlockImage'](_0x1d1534);_0x17372c(_0x3749a3),_0x1d1534=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x9fc4e5=_0x4477f2['getCaptionFromImageModelElement'](_0x1d1534),_0x3edf40['markInsertion'](_0xd6e3a3['model']['createRangeOn'](_0x9fc4e5),_0x52b560?null:'imageCaption');});}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x47d29f));const _0x4c66ff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x422f23(_0x98e6d7,_0x5f2074){const _0x185d1a=_0x4c66ff['findIndex'](({type:_0x29317d,subType:_0x397b6d})=>_0x98e6d7['type']==_0x29317d&&_0x98e6d7['subType']==_0x397b6d),_0x46e916=_0x4c66ff['findIndex'](({type:_0x14cf17,subType:_0xcd557e})=>_0x5f2074['type']==_0x14cf17&&_0x5f2074['subType']==_0xcd557e);if(_0x185d1a<0x0||_0x46e916<0x0)return!0x1;const _0x4f1c41=_0x98e6d7['getFirstRange'](),_0x25f700=_0x5f2074['getFirstRange']();if((0x0==_0x185d1a||0x1==_0x185d1a)&&0x2==_0x46e916&&_0x4f1c41['isIntersecting'](_0x25f700))return!0x0;if(0x2==_0x185d1a&&0x3==_0x46e916){const _0xceef3c=_0x3edf40['_findSuggestions'](_0x4f1c41,'insertion')['filter'](({suggestion:_0x201191,meta:_0x27d17c})=>_0x27d17c['isOwn']&&'convertInlineImageToBlock'==_0x201191['subType']);if(_0xceef3c['length']>0x1&&_0x25f700['end']['isEqual'](_0x4f1c41['start']))return!0x0;if(0x1==_0xceef3c['length']&&(_0x4f1c41['start']['isEqual'](_0x25f700['end'])||_0x4f1c41['end']['isEqual'](_0x25f700['start'])))return!0x0;}if(0x3==_0x185d1a&&0x3==_0x46e916&&_0x4f1c41['start']['isBefore'](_0x25f700['start'])){const _0x442420=_0x4f1c41['end']['nodeAfter'],_0x46c522=_0x25f700['start']['nodeBefore'];return _0x3474e3['isBlockImage'](_0x442420)&&_0x442420===_0x46c522;}return!0x1;}function _0x47d29f(_0xe62fb3,_0xf121b3){return _0x422f23(_0xe62fb3,_0xf121b3)?[_0xe62fb3,_0xf121b3]:_0x422f23(_0xf121b3,_0xe62fb3)?[_0xf121b3,_0xe62fb3]:null;}_0xd6e3a3['plugins']['has']('ImageResize')&&(_0x3edf40['enableDefaultAttributesIntegration']('resizeImage'),_0x3edf40['registerBlockAttribute']('resizedWidth'),_0x3edf40['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3fc91d,'FORMAT_IMAGE_SIZE'))),_0xd6e3a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3edf40['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3edf40['registerBlockAttribute']('alt')),_0xd6e3a3['plugins']['has']('PictureEditing')&&(_0x3edf40['registerBlockAttribute']('sources'),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x39e55a=>{if('attribute'!=_0x39e55a['type'])return;const {data:_0x27178e}=_0x39e55a;return _0x27178e&&'sources'==_0x27178e['key']?{'type':'format','content':''}:void 0x0;})),_0xd6e3a3['plugins']['has']('ImageSizeAttributes')&&(_0x3edf40['registerBlockAttribute']('width'),_0x3edf40['registerBlockAttribute']('height'),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x4ab2e2=>{if('attribute'!=_0x4ab2e2['type'])return;const {data:_0x5c8a28}=_0x4ab2e2;return!_0x5c8a28||'width'!=_0x5c8a28['key']&&'height'!=_0x5c8a28['key']?void 0x0:{'type':'format','content':''};})),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x29aa79=>{if(!!_0x4c66ff['find'](({type:_0x43b1da,subType:_0x4e45cf})=>_0x29aa79['type']==_0x43b1da&&_0x29aa79['subType']==_0x4e45cf))return _0x29aa79['previous']?{}:void 0x0;}),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x141262=>{if('insertion'==_0x141262['type']||'deletion'==_0x141262['type']){const _0x3c1647=_0x141262['getContainedElement']();if(_0x3c1647&&_0x3c1647['is']('element','caption'))return{'type':'insertion'==_0x141262['type']?'addObject':'removeObject','element':_0x3c1647,'quantity':0x1};}}),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x2e6543=>'formatBlock'==_0x2e6543['type']&&'convertInlineImageToBlock'==_0x2e6543['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e6543['type']&&'convertBlockImageToInline'==_0x2e6543['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x1afafc=>{if('attribute'!=_0x1afafc['type'])return;const {data:_0x45d584}=_0x1afafc;if(!_0x45d584||'alt'!=_0x45d584['key'])return;const _0x39b246=_0x45d584['newValue'];return _0x39b246?{'type':'format','content':c(_0x3fc91d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39b246+'\x22')}:{'type':'format','content':c(_0x3fc91d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5552fa=this['editor'],_0xf4285b=_0x5552fa['locale'];_0x5552fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56b00d=>{if('formatBlock'!=_0x56b00d['type']&&'formatInline'!=_0x56b00d['type'])return;const {data:_0x322d2a}=_0x56b00d;if(_0x322d2a){if('imageTextAlternative'==_0x322d2a['commandName']){const _0x2c1cf1=_0x322d2a['commandParams'][0x0]['newValue'];return _0x2c1cf1?{'type':'format','content':c(_0xf4285b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c1cf1+'\x22')}:{'type':'format','content':c(_0xf4285b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x322d2a['commandName']){const _0x4f4a98=_0x322d2a['commandParams'][0x0]['width'];return _0x4f4a98?{'type':'format','content':c(_0xf4285b,'*Set\x20image\x20width:*\x20%0',_0x4f4a98)}:{'type':'format','content':c(_0xf4285b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36ec23=this['editor']['locale'],_0x2f6de3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f6de3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f6de3['registerBlockAttribute']('src'),_0x2f6de3['descriptionFactory']['registerDescriptionCallback'](_0x298924=>{if('attribute'!=_0x298924['type'])return;const {data:_0x56aab4}=_0x298924;return _0x56aab4&&'src'==_0x56aab4['key']?_0x56aab4['newValue']&&_0x56aab4['oldValue']?{'type':'format','content':c(_0x36ec23,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ba9f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ba9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ba9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ba9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x138b7e=this['editor'],_0x435aff=_0x138b7e['locale'];_0x138b7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5b1b=>{if('formatBlock'!=_0x5b5b1b['type']&&'formatInline'!=_0x5b5b1b['type'])return;const {data:_0x484e01}=_0x5b5b1b;if(!_0x484e01||'replaceImageSource'!=_0x484e01['commandName'])return;return{'type':'format','content':c(_0x435aff,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3e2428{['afterInit'](){const _0x42a5c8=this['editor'];if(!_0x42a5c8['plugins']['has']('ImageStyleEditing'))return;const _0x482a20=_0x42a5c8['plugins']['get']('TrackChangesEditing'),_0x3e4948=_0x42a5c8['plugins']['get']('ImageUtils'),_0x45ff16={};_0x482a20['enableCommand']('imageStyle',(_0x254d03,_0x2e62ec)=>{const _0xf267d4=_0x42a5c8['plugins']['get']('Users')['me'],_0x152831=_0x42a5c8['commands']['get']('imageStyle');let _0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),_0x388e38=_0x42a5c8['model']['createRangeOn'](_0x51c0b3),_0x1604c0=_0x152831['value'];if(_0x1604c0==_0x2e62ec['value'])return;const _0x37412c={'commandName':'imageStyle','commandParams':[_0x2e62ec],'formatGroupId':_0x32b8bc()};_0x42a5c8['model']['change'](()=>{if(_0x482a20['getSuggestions']()['filter'](_0x3e901b=>_0x3e901b['isInContent']&&_0xf267d4==_0x3e901b['author']&&('formatBlock'==_0x3e901b['type']||'formatInline'==_0x3e901b['type'])&&('imageStylePreApply'==_0x3e901b['subType']||'imageStylePostApply'==_0x3e901b['subType'])&&_0x3e901b['getFirstRange']()['isEqual'](_0x388e38))['forEach'](_0x44d624=>_0x482a20['discardSuggestion'](_0x44d624['head'])),_0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),_0x388e38=_0x42a5c8['model']['createRangeOn'](_0x51c0b3),_0x152831['refresh'](),_0x42a5c8['commands']['get']('imageTypeInline')['refresh'](),_0x42a5c8['commands']['get']('imageTypeBlock')['refresh'](),_0x1604c0=_0x152831['value'],_0x1604c0!=_0x2e62ec['value'])return _0x3e4948['isInlineImage'](_0x51c0b3)&&_0x152831['shouldConvertImageType'](_0x2e62ec['value'],_0x51c0b3)?(_0x254d03({..._0x2e62ec,'setImageSizes':!0x1}),_0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),void _0x482a20['markBlockFormat'](_0x51c0b3,{..._0x37412c,'commandReversedParams':[{'value':_0x1604c0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3e4948['isBlockImage'](_0x51c0b3)?_0x482a20['markBlockFormat'](_0x51c0b3,_0x37412c,[],'imageStylePostApply'):_0x482a20['markInlineFormat'](_0x388e38,_0x37412c,'imageStylePostApply'));});});for(const _0x44394e of _0x42a5c8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45ff16[_0x44394e['name']]=_0x44394e['title']['toLowerCase']();_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x171bb7])=>{_0x3e4948['setImageNaturalSizeAttributes'](_0x171bb7['getContainedElement']());}),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c047a,_0x38b308)=>{_0x482a20['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c047a,{'commandName':_0x38b308['commandName'],'commandParams':_0x38b308['commandReversedParams']});}),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5dbb26,_0xe33c6c){if(_0x5e82be(_0x5dbb26,_0xe33c6c))return[_0x5dbb26,_0xe33c6c];if(_0x5e82be(_0xe33c6c,_0x5dbb26))return[_0xe33c6c,_0x5dbb26];return null;});const _0x32bcfc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e82be(_0x27c000,_0x368fc2){const _0x435ac8=_0x32bcfc['findIndex'](({type:_0x394e6b,subType:_0x376639})=>_0x27c000['type']==_0x394e6b&&_0x27c000['subType']==_0x376639),_0x28fa0f=_0x32bcfc['findIndex'](({type:_0x51abe3,subType:_0x6c3267})=>_0x368fc2['type']==_0x51abe3&&_0x368fc2['subType']==_0x6c3267);if(_0x435ac8<0x0||_0x28fa0f<0x0)return!0x1;const _0x3bd3a6=_0x27c000['getFirstRange'](),_0x4fecd6=_0x368fc2['getFirstRange']();if((0x0==_0x435ac8||0x1==_0x435ac8)&&0x2==_0x28fa0f&&_0x3bd3a6['isIntersecting'](_0x4fecd6))return!0x0;if(0x2==_0x435ac8&&0x3==_0x28fa0f){const _0x57ec4=_0x482a20['_findSuggestions'](_0x3bd3a6,'insertion')['filter'](({suggestion:_0x18f600,meta:_0x4621b5})=>_0x4621b5['isOwn']&&'convertInlineImageToBlock'==_0x18f600['subType']);if(_0x57ec4['length']>0x1&&_0x4fecd6['end']['isEqual'](_0x3bd3a6['start']))return!0x0;if(0x1==_0x57ec4['length']&&(_0x3bd3a6['start']['isEqual'](_0x4fecd6['end'])||_0x3bd3a6['end']['isEqual'](_0x4fecd6['start'])))return!0x0;}if(0x3==_0x435ac8&&0x3==_0x28fa0f&&_0x3bd3a6['start']['isBefore'](_0x4fecd6['start'])){const _0x59d91f=_0x3bd3a6['end']['nodeAfter'],_0x2ff680=_0x4fecd6['start']['nodeBefore'];return _0x3e4948['isBlockImage'](_0x59d91f)&&_0x59d91f===_0x2ff680;}return!0x1;}_0x42a5c8['model']['document']['registerPostFixer'](()=>{let _0x353422=!0x1;const _0x7e0138=Array['from'](_0x42a5c8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf36c72,data:_0x508e54}of _0x7e0138){const {group:_0x3e375b,type:_0x53af50,subType:_0x30bda0,id:_0x1986aa}=_0x482a20['_splitMarkerName'](_0xf36c72);if('suggestion'==_0x3e375b&&_0x482a20['hasSuggestion'](_0x1986aa)){if('formatBlock'==_0x53af50&&('imageStylePreApply'==_0x30bda0||'imageStylePostApply'==_0x30bda0)){const _0x231095=_0x482a20['getSuggestion'](_0x1986aa);if(_0x508e54['newRange']){const _0x599da8=_0x231095['getFirstRange']()['getContainedElement']();if(_0x3e4948['isBlockImage'](_0x599da8))continue;_0x482a20['discardSuggestion'](_0x231095),_0x353422=!0x0;}}if('insertion'==_0x53af50&&'imageCaption'==_0x30bda0&&!_0x508e54['newRange']){const _0x1c6afb=_0x482a20['getSuggestion'](_0x1986aa);_0x1c6afb['next']&&_0x1c6afb['next']['isInContent']&&(_0x482a20['discardSuggestion'](_0x1c6afb['next']),_0x353422=!0x0);}}}return _0x353422;}),this['_registerLegacyDescription'](_0x45ff16);}['_registerLegacyDescription'](_0x33d1c2){const _0x27c60a=this['editor'],_0x11bc13=_0x27c60a['locale'];_0x27c60a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10790a=>{if('formatBlock'!=_0x10790a['type']&&'formatInline'!=_0x10790a['type'])return;const {data:_0x3e599a}=_0x10790a;if(!_0x3e599a||'imageStyle'!=_0x3e599a['commandName'])return;const _0x1c88e8=_0x3e599a['commandParams'][0x0]['value'];return _0x5cc673('side'===_0x1c88e8?c(_0x11bc13,'FORMAT_SIDE_IMAGE'):_0x33d1c2[_0x1c88e8]||_0x1c88e8);function _0x5cc673(_0x4ce9d8){return{'type':'format','content':c(_0x11bc13,'*Format:*\x20%0',_0x4ce9d8)};}});}}class ut extends _0x3e2428{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4104a9){super(_0x4104a9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x8c00be=this['editor'],_0x2f89f3=_0x8c00be['commands']['get']('importWord'),_0x2493d7=_0x8c00be['commands']['get']('trackChanges');_0x2f89f3&&(_0x2f89f3['on']('execute',(_0x41cca4,[,_0x28e3ee])=>{this['_trackChangesValueDuringImport']=_0x2493d7['value'],_0x28e3ee['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2f89f3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2f89f3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2493d7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x8c00be['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46f04d,_0x22d72e){const {suggestions:_0x1384b3}=_0x22d72e,_0x1989b5=this['editor']['commands']['get']('trackChanges'),_0x3cac94=_0x1989b5['value'];this['_trackChangesValueDuringImport']!==_0x3cac94&&(_0x1989b5['execute'](),this['_trackChangesExecuted']=!0x0),_0x1384b3&&_0x1384b3['forEach'](({id:_0x40a816,type:_0x3066d2,author:_0x5305e5,created_at:_0x30b40d})=>{const _0x5380f3={'id':_0x40a816,'type':_0x3066d2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5305e5,'createdAt':_0x30b40d?new Date(_0x30b40d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5380f3);});}}class ft extends _0x3e2428{['afterInit'](){const _0x4e982f=this['editor'],_0x368f18=_0x4e982f['plugins']['get']('TrackChangesEditing');if(_0x4e982f['plugins']['has']('IndentEditing')&&(_0x368f18['enableCommand']('indent'),_0x368f18['enableCommand']('outdent')),_0x4e982f['plugins']['has']('IndentBlock')){for(const _0x5104a0 of['indentBlock','outdentBlock'])_0x368f18['enableDefaultAttributesIntegration'](_0x5104a0);}const _0x15e7d0=_0x4e982f['locale'];_0x368f18['registerBlockAttribute']('blockIndent'),_0x368f18['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x15e7d0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d8ee2=this['editor'],_0x2e86b7=_0x2d8ee2['locale'],_0x4824f5=_0x2d8ee2['plugins']['get']('TrackChangesEditing');_0x4824f5['descriptionFactory']['registerDescriptionCallback'](_0xf32d35=>{if('formatBlock'!=_0xf32d35['type'])return;const {data:_0x915dd0}=_0xf32d35;if(!_0x915dd0)return;if('indentBlock'!=_0x915dd0['commandName']&&'outdentBlock'!=_0x915dd0['commandName'])return;const _0x52fb6e=_0xf32d35['getItems']()[0x0],_0x173758=_0x4824f5['descriptionFactory']['getItemLabel'](_0x52fb6e);return'indentBlock'==_0x915dd0['commandName']?{'type':'format','content':c(_0x2e86b7,'*Indent:*\x20%0',_0x173758)}:'outdentBlock'==_0x915dd0['commandName']?{'type':'format','content':c(_0x2e86b7,'*Outdent:*\x20%0',_0x173758)}:void 0x0;});}}class ht extends _0x3e2428{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3e2428{['afterInit'](){const _0x3498a3=this['editor'];if(!_0x3498a3['plugins']['has']('LinkEditing'))return;const _0x128f0d=_0x3498a3['plugins']['get']('TrackChangesEditing'),_0x2b8c66=_0x3498a3['commands']['get']('link');_0x128f0d['enableDefaultAttributesIntegration']('link'),_0x128f0d['enableDefaultAttributesIntegration']('unlink'),_0x128f0d['registerInlineAttribute']('linkHref');for(const _0x1888dd of _0x2b8c66['manualDecorators'])_0x128f0d['registerInlineAttribute'](_0x1888dd['id']),_0x128f0d['descriptionFactory']['registerAttributeLabel'](_0x1888dd['id'],'link\x20('+_0x1888dd['label']['toLowerCase']()+')');_0x128f0d['descriptionFactory']['registerDescriptionCallback'](_0x3964c6=>{if('attribute'!=_0x3964c6['type'])return;const {data:_0x50cfcc}=_0x3964c6;if(!_0x50cfcc||'linkHref'!=_0x50cfcc['key'])return;const _0x2090d5=_0x50cfcc['newValue'],_0x43cd0d=_0x3498a3['locale'];return{'type':'format','content':null==_0x2090d5?c(_0x43cd0d,'*Remove\x20link*'):c(_0x43cd0d,'*Set\x20link:*\x20%0','\x22'+_0x2090d5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f65b6=this['editor'],_0x2818e6=_0x3f65b6['locale'];_0x3f65b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22caa7=>{if('formatInline'!=_0x22caa7['type'])return;const {data:_0x867420}=_0x22caa7;if(_0x867420){if('link'==_0x867420['commandName']){const _0x2482e1=_0x867420['commandParams'][0x0];return{'type':'format','content':c(_0x2818e6,'*Set\x20link:*\x20%0','\x22'+_0x2482e1+'\x22')};}return'unlink'==_0x867420['commandName']?{'type':'format','content':c(_0x2818e6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3e2428{['afterInit'](){const _0x16264a=this['editor'],_0x2500a5=_0x16264a['locale'];if(!_0x16264a['plugins']['has']('LegacyListEditing'))return;const _0x2dff99=_0x16264a['plugins']['get']('TrackChangesEditing'),_0xa5b666=_0x16264a['plugins']['has']('LegacyTodoListEditing');function _0x15bfc0(_0x4e05c1){return()=>{const _0x5cba08=_0x16264a['model']['document']['selection'],_0x42d316=_0x16264a['commands']['get'](_0x4e05c1);if(_0x42d316['value'])return void _0x16264a['execute']('paragraph',{});const _0x324a42=_0x4e05c1['slice'](0x0,-0x4),_0x26d698=function(_0x4f615c,_0x30621c,_0x20c2ea){let _0x1d2160=Array['from'](_0x4f615c)['filter'](_0x513baf=>function(_0x32c1d8,_0x429025){return _0x429025['checkChild'](_0x32c1d8['parent'],'listItem')&&!_0x429025['isObject'](_0x32c1d8);}(_0x513baf,_0x20c2ea));_0x1d2160=_0x1d2160['filter'](_0x1b066f=>!_0x1b066f['is']('element','listItem')||_0x1b066f['getAttribute']('listType')!=_0x30621c);const _0xc9f070=new Set();for(const _0x49c9e9 of _0x1d2160)_0x49c9e9['is']('element','listItem')?_0xc9f070['add'](Le(_0x49c9e9)):_0xc9f070['add'](_0x49c9e9);return Array['from'](_0xc9f070);}(_0x5cba08['getSelectedBlocks'](),_0x324a42,_0x16264a['model']['schema']);_0x16264a['model']['change'](()=>{for(const _0x20e35a of _0x26d698)_0x2dff99['markBlockFormat'](_0x20e35a,{'commandName':_0x4e05c1,'commandParams':[{'forceValue':!_0x42d316['value']}],'formatGroupId':'blockName'},Ee(_0x20e35a));});};}function _0x4bfda(_0xd595c9){return()=>{const _0x409c10=function(_0xf5d4a8){let _0x194db5=Array['from'](_0xf5d4a8);const _0x40e546=_0x194db5['findIndex'](_0x165887=>'listItem'!=_0x165887['name']);return _0x40e546>-0x1&&(_0x194db5=_0x194db5['slice'](0x0,_0x40e546)),_0x194db5;}(_0x16264a['model']['document']['selection']['getSelectedBlocks']()),_0x39aa8c=_0x16264a['model']['createRange'](_0x16264a['model']['createPositionAt'](_0x409c10[0x0],'before'),_0x16264a['model']['createPositionAt'](_0x409c10[_0x409c10['length']-0x1],'end'));_0x16264a['model']['change'](()=>{_0x2dff99['markBlockFormat'](_0x39aa8c,{'commandName':_0xd595c9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3a6f2b){const _0x40ec99=new Set();for(const _0x266801 of _0x3a6f2b){let _0x130505=_0x266801['nextSibling'];for(;_0x130505&&_0x130505['getAttribute']('listIndent')>_0x266801['getAttribute']('listIndent');)_0x40ec99['add'](_0x130505),_0x130505=_0x130505['nextSibling'];}return Array['from'](_0x40ec99);}(_0x409c10));});};}_0x2dff99['enableCommand']('numberedList',_0x15bfc0('numberedList')),_0x2dff99['enableCommand']('bulletedList',_0x15bfc0('bulletedList')),_0xa5b666&&_0x2dff99['enableCommand']('todoList',_0x15bfc0('todoList')),_0x2dff99['enableCommand']('indentList',_0x4bfda('indentList')),_0x2dff99['enableCommand']('outdentList',_0x4bfda('outdentList')),_0xa5b666&&_0x2dff99['enableCommand']('checkTodoList',()=>{const _0x319e87=_0x16264a['commands']['get']('checkTodoList'),_0x2189b7=Array['from'](_0x319e87['_selectedElements']);_0x2189b7['filter'](_0x3234e6=>_0x3234e6['getAttribute']('todoListChecked')!=_0x319e87['value']),_0x16264a['model']['change'](()=>{for(const _0x2431f9 of _0x2189b7)_0x2dff99['markBlockFormat'](_0x2431f9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x319e87['value']}]});});}),_0x2dff99['descriptionFactory']['registerElementLabel']('listItem',_0x57eeeb=>c(_0x2500a5,'ELEMENT_LIST_ITEM',_0x57eeeb)),_0x2dff99['descriptionFactory']['registerDescriptionCallback'](_0x2f2ed7=>{if('formatBlock'!=_0x2f2ed7['type']&&'formatInline'!=_0x2f2ed7['type'])return;const {data:_0x2b36db}=_0x2f2ed7;if(_0x2b36db){if('numberedList'==_0x2b36db['commandName']||'bulletedList'==_0x2b36db['commandName']||'todoList'==_0x2b36db['commandName'])switch(_0x2b36db['commandName']['replace']('List','')){case'bulleted':return _0x8a60c0(c(_0x2500a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8a60c0(c(_0x2500a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8a60c0(c(_0x2500a5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b36db['commandName'])return{'type':'format','content':c(_0x2500a5,'*Indent:*\x20%0',c(_0x2500a5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b36db['commandName'])return{'type':'format','content':c(_0x2500a5,'*Outdent:*\x20%0',c(_0x2500a5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b36db['commandName'])return _0x2b36db['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2500a5,'*Check\x20item*')}:{'type':'format','content':c(_0x2500a5,'*Uncheck\x20item*')};}function _0x8a60c0(_0x15b46e){return{'type':'format','content':c(_0x2500a5,'*Change\x20to:*\x20%0',_0x15b46e)};}});}}function Le(_0x11623a){const _0x48953b=_0x11623a['getAttribute']('listIndent');if(0x0==_0x48953b)return _0x11623a;let _0x12182d=_0x11623a;for(;_0x11623a['previousSibling']&&_0x11623a['previousSibling']['is']('element','listItem');){const _0x1c79c9=_0x11623a['previousSibling']['getAttribute']('listIndent');if(_0x1c79c9==_0x48953b)_0x12182d=_0x11623a['previousSibling'];else{if(_0x1c79c9<_0x48953b)break;}_0x11623a=_0x11623a['previousSibling'];}return _0x12182d;}function Ee(_0x70970d){const _0xc3a317=[];if(_0x70970d['is']('element','listItem')&&_0x70970d['getAttribute']('listIndent')>0x0){let _0x484d5d=_0x70970d['nextSibling'];for(;_0x484d5d&&'listItem'==_0x484d5d['name']&&_0x484d5d['getAttribute']('listIndent')==_0x70970d['getAttribute']('listIndent');)_0xc3a317['push'](_0x484d5d),_0x484d5d=_0x484d5d['nextSibling'];}return _0xc3a317;}class Q extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x149e5d=this['editor']['config']['get']('list.properties'),_0x28e9d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x149e5d['styles']&&_0x28e9d2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x149e5d['reversed']&&_0x28e9d2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x149e5d['startIndex']&&_0x28e9d2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x28e9d2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3d54ae,_0x2721f5={}){const _0x2ad15d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255cb7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ad15d['markMultiRangeBlockFormat'](_0x255cb7,{'commandName':'listStyle','commandParams':[{'type':_0x2721f5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3644d1,_0x3db445={}){const _0x26a4de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347e93=this['_getSuggestionBlocks'](_0x5398d0=>_0x5398d0['is']('element','listItem')&&'numbered'===_0x5398d0['getAttribute']('listType'));if(_0x347e93['length']<0x1)return;const _0x13ab4c=_0x347e93['map'](_0x46f24e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46f24e,'before'),this['editor']['model']['createPositionAt'](_0x46f24e,0x0)));this['editor']['model']['change'](()=>{_0x26a4de['markMultiRangeBlockFormat'](_0x13ab4c,{'commandName':'listReversed','commandParams':[{'reversed':_0x3db445['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x154e78,_0x2e4180={}){const _0x4891ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368fe9=this['_getSuggestionBlocks'](_0xae8def=>_0xae8def['is']('element','listItem')&&'numbered'===_0xae8def['getAttribute']('listType'));if(_0x368fe9['length']<0x1)return;const _0xcb202e=_0x368fe9['map'](_0xcce6fb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcce6fb,'before'),this['editor']['model']['createPositionAt'](_0xcce6fb,0x0)));this['editor']['model']['change'](()=>{_0x4891ee['markMultiRangeBlockFormat'](_0xcb202e,{'commandName':'listStart','commandParams':[{'startIndex':_0x2e4180['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1516b7){if('formatBlock'!=_0x1516b7['type']&&'formatInline'!=_0x1516b7['type'])return;const _0x4e3606=this['editor']['locale'],{data:_0x52012a}=_0x1516b7;if(!_0x52012a)return;let _0x854184,_0x4e748e;switch(_0x52012a['commandName']){case'listStyle':_0x854184='*Change\x20to:*\x20%0',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184,c(_0x4e3606,this['_getTranslationKeyForListStyle'](_0x52012a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x854184=_0x52012a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184)};break;case'listStart':_0x854184='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184,_0x52012a['commandParams'][0x0]['startIndex'])};}return _0x4e748e;}['_getSuggestionBlocksForListStyle'](){const _0x128a45=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c4695=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c4695[0x0]?.['is']('element','listItem')&&_0x3c4695['unshift'](..._0x128a45['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c4695[_0x3c4695['length']-0x1]?.['is']('element','listItem')&&_0x3c4695['push'](..._0x128a45['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c4695=[...new Set(_0x3c4695)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c4695=_0x3c4695['filter'](_0x2a612d=>_0x2a612d['is']('element','listItem'))),_0x3c4695;}['_getSuggestionBlocks'](_0x5cf5b7){const _0x4cb3b7=this['editor']['plugins']['get']('LegacyListUtils');let _0x281ce3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5cf5b7)['map'](_0x5a9dd4=>{const _0x4b0791=this['editor']['model']['createPositionAt'](_0x5a9dd4,0x0);return[..._0x4cb3b7['getSiblingNodes'](_0x4b0791,'backward'),..._0x4cb3b7['getSiblingNodes'](_0x4b0791,'forward')];})['flat']();return _0x281ce3=[...new Set(_0x281ce3)],_0x281ce3;}['_getTranslationKeyForListStyle'](_0x83b248){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x83b248)||'default')['toUpperCase']()+'_LIST_'+_0x83b248['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3e2428{['afterInit'](){const _0x253f2b=this['editor'];if(!_0x253f2b['plugins']['has']('MediaEmbedEditing'))return;const _0xc68487=_0x253f2b['plugins']['get']('TrackChangesEditing'),_0x192d0b=_0x253f2b['locale'];_0xc68487['enableCommand']('mediaEmbed'),_0xc68487['descriptionFactory']['registerElementLabel']('media',_0x519276=>c(_0x192d0b,'ELEMENT_MEDIA',_0x519276)),_0x253f2b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3de94a,{writer:_0x33a1d5,options:_0x25460d})=>{if(_0x25460d['showSuggestionHighlights'])return _0x33a1d5['createEmptyElement']('div');},'converterPriority':'high'}),_0x253f2b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26b014,_0x125c8c,_0x4f2add)=>{_0x4f2add['options']['showSuggestionHighlights']&&_0x26b014['stop']();},{'priority':'high'});}}class pt extends _0x3e2428{['afterInit'](){const _0x473f16=this['editor'];_0x473f16['plugins']['has']('MentionEditing')&&_0x473f16['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3e2428{['afterInit'](){const _0x31f65a=this['editor'];if(!_0x31f65a['plugins']['has']('MergeFieldsEditing'))return;const _0x16635b=_0x31f65a['plugins']['get']('TrackChangesEditing'),_0x5a5a1f=_0x31f65a['locale'];_0x16635b['enableCommand']('insertMergeField'),_0x16635b['enableCommand']('insertMergeFieldBlock'),_0x16635b['enableCommand']('insertMergeFieldImage'),_0x16635b['descriptionFactory']['registerElementLabel']('mergeField',_0x584691=>c(_0x5a5a1f,'ELEMENT_MERGE_FIELD',_0x584691)),_0x16635b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x57ba7c=>c(_0x5a5a1f,'ELEMENT_MERGE_FIELD',_0x57ba7c)),_0x16635b['descriptionFactory']['registerDescriptionCallback'](_0x48f3a3=>{if('insertion'!=_0x48f3a3['type']&&'deletion'!=_0x48f3a3['type'])return;const _0x16c5c1=_0x48f3a3['getContainedElement']();if(null==_0x16c5c1)return;const _0x40a279=_0x31f65a['plugins']['get']('MergeFieldsEditing');let _0x145331;switch(_0x40a279['getMergeFieldType'](_0x16c5c1)){case null:return;case'image':{const _0x40cb25=_0x40a279['unwrapAffixes'](_0x16c5c1['getAttribute']('src'));_0x145331=_0x40a279['getLabel'](_0x40cb25)||_0x40cb25;break;}default:{const _0x4ae8db=_0x16c5c1['getAttribute']('id');_0x145331=_0x40a279['getLabel'](_0x4ae8db)||_0x4ae8db;break;}}return'insertion'==_0x48f3a3['type']?{'type':'insertion','content':c(_0x5a5a1f,'*Insert:*\x20%0','\x22'+_0x145331+'\x22\x20'+c(_0x5a5a1f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5a5a1f,'*Remove:*\x20%0','\x22'+_0x145331+'\x22\x20'+c(_0x5a5a1f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3e2428{['afterInit'](){const _0x2f8aaa=this['editor'],_0x2cabb3=_0x2f8aaa['plugins']['get']('TrackChangesEditing');_0x2f8aaa['plugins']['has']('MultiLevelList')&&(_0x2cabb3['enableDefaultAttributesIntegration']('multiLevelList'),_0x2cabb3['registerBlockAttribute']('listMarkerStyle'),_0x2cabb3['descriptionFactory']['registerDescriptionCallback'](_0x26d50d=>this['handleDescriptions'](_0x26d50d)));}['handleDescriptions'](_0x22a696){const _0x20427a=this['editor']['locale'],{data:_0x219973}=_0x22a696,_0x45ddbc={'type':'format','content':''};if(_0x219973&&'listMarkerStyle'==_0x219973['key']){if(!_0x219973['oldValue'])return{'type':'format','content':c(_0x20427a,'*Set\x20format:*\x20%0',c(_0x20427a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x219973['newValue']+')'};if(!_0x219973['newValue']){let _0x158ccd=_0x22a696['head'];for(;_0x158ccd;){if(_0x158ccd['data']&&'listType'==_0x158ccd['data']['key']&&_0x158ccd['data']['newValue'])return _0x45ddbc;_0x158ccd=_0x158ccd['next'];}return{'type':'format','content':c(_0x20427a,'*Remove\x20format:*\x20%0',c(_0x20427a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x219973['oldValue']+')'};}}}}class bt extends _0x3e2428{['afterInit'](){const _0x2835fb=this['editor'];if(!_0x2835fb['plugins']['has']('PageBreakEditing'))return;_0x2835fb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x56313b=_0x2835fb['plugins']['get']('TrackChangesEditing'),_0x130488=_0x2835fb['locale'];_0x56313b['descriptionFactory']['registerElementLabel']('pageBreak',_0x23a208=>c(_0x130488,'ELEMENT_PAGE_BREAK',_0x23a208));}}class yt extends _0x3e2428{['afterInit'](){const _0x33302c=this['editor'];if(!_0x33302c['plugins']['has']('Paragraph'))return;const _0x43a8d6=_0x33302c['locale'],_0x10b1e9=_0x33302c['plugins']['get']('TrackChangesEditing');_0x10b1e9['descriptionFactory']['registerElementLabel']('paragraph',_0xf74491=>c(_0x43a8d6,'ELEMENT_PARAGRAPH',_0xf74491)),_0x10b1e9['enableDefaultAttributesIntegration']('paragraph'),_0x10b1e9['enableCommand']('insertParagraph'),_0x33302c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x33302c),{'priority':'highest'}),_0x33302c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45035a,_0x52adac,_0x47ddd8)=>{_0x47ddd8['options']['showSuggestionHighlights']&&nr(_0x33302c,{'showActiveMarker':!0x1})(_0x45035a,_0x52adac,_0x47ddd8);},{'priority':'highest'});const _0x5d43f4=_0x10b1e9['descriptionFactory'];_0x5d43f4['registerDescriptionCallback'](_0x1aac6a=>{if('insertion'!==_0x1aac6a['type'])return;const {start:_0x4d29d8,end:_0x23ebce}=_0x1aac6a['getFirstRange']();if(!_0x4d29d8['isTouching'](_0x23ebce)||!_0x4d29d8['nodeAfter'])return;const _0x18bf4a=_0x33302c['model']['schema'],_0x58467b=_0x4d29d8['nodeAfter'];return _0x18bf4a['isBlock'](_0x58467b)&&!_0x18bf4a['isLimit'](_0x58467b)&&_0x18bf4a['checkChild'](_0x58467b,'$text')?{'type':'insertion','content':c(_0x43a8d6,'*Insert:*\x20%0',_0x5d43f4['getItemLabel'](_0x58467b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x596889=this['editor'],_0x238048=_0x596889['locale'];_0x596889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2551b3=>{if('formatBlock'!=_0x2551b3['type'])return;const {data:_0x59aac4}=_0x2551b3;return _0x59aac4&&'paragraph'==_0x59aac4['commandName']?{'type':'format','content':c(_0x238048,'*Change\x20to:*\x20%0',c(_0x238048,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f8864,{showActiveMarker:_0x16a393=!0x0}={}){return(_0x1645e6,_0x31ba84,_0x21875c)=>{const _0x54542d=_0x2f8864['plugins']['get']('TrackChangesEditing'),_0x44fc99=_0x31ba84['markerRange']['start'],_0x34818f=_0x31ba84['markerRange']['end'],_0x2eb0fc=_0x2f8864['model']['schema'];if(!_0x44fc99['isTouching'](_0x34818f)||!_0x44fc99['nodeAfter'])return;const _0x55da63=_0x44fc99['nodeAfter'];if(_0x2eb0fc['isBlock'](_0x55da63)&&!_0x2eb0fc['isLimit'](_0x55da63)&&_0x2eb0fc['checkChild'](_0x55da63,'$text')){if(!_0x21875c['consumable']['consume'](_0x31ba84['markerRange'],_0x1645e6['name']))return;const {id:_0x4bddc6,authorId:_0x349f60}=_0x54542d['_splitMarkerName'](_0x31ba84['markerName']),_0x562ac0=_0x21875c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4bddc6,'data-author-id':_0x349f60}),_0x2628c1=_0x21875c['mapper']['toViewPosition'](_0x34818f);_0x16a393&&_0x54542d['activeMarkers']['includes'](_0x31ba84['markerName'])&&_0x21875c['writer']['addClass']('ck-suggestion-marker--active',_0x562ac0),_0x21875c['writer']['insert'](_0x2628c1,_0x562ac0),_0x21875c['mapper']['bindElementToMarker'](_0x562ac0,_0x31ba84['markerName']);}};}class jt extends _0x3e2428{['afterInit'](){const _0xc968f2=this['editor'];_0xc968f2['commands']['get']('replaceSource')&&_0xc968f2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3e2428{['afterInit'](){const _0x423b78=this['editor'];if(!_0x423b78['plugins']['has']('RemoveFormatEditing'))return;_0x423b78['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9eca37=this['editor'];_0x9eca37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15dd03=>{if('formatBlock'!=_0x15dd03['type']&&'formatInline'!=_0x15dd03['type'])return;const {data:_0x1e54cc}=_0x15dd03;return _0x1e54cc&&'removeFormat'==_0x1e54cc['commandName']?{'type':'format','content':c(_0x9eca37['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3e2428{['afterInit'](){const _0x565254=this['editor'];if(!_0x565254['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e397a=_0x565254['plugins']['get']('TrackChangesEditing');_0x3e397a['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e397a['enableCommand']('goToNextRestrictedEditingException');const _0x205e9b=_0x565254['plugins']['get']('RestrictedEditingModeEditing');_0x205e9b['enableCommand']('trackChanges'),_0x205e9b['enableCommand']('acceptSuggestion'),_0x205e9b['enableCommand']('discardSuggestion'),_0x205e9b['enableCommand']('acceptAllSuggestions'),_0x205e9b['enableCommand']('discardAllSuggestions'),_0x205e9b['enableCommand']('acceptSelectedSuggestions'),_0x205e9b['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3e2428{['afterInit'](){const _0x33675a=this['editor'];if(!_0x33675a['plugins']['has']('ShiftEnter'))return;const _0x1cfff1=_0x33675a['plugins']['get']('TrackChangesEditing');_0x1cfff1['enableCommand']('shiftEnter'),_0x33675a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x33675a),{'priority':'high'}),_0x33675a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x33675a),{'priority':'high'}),_0x33675a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x166e65,_0x77b6f4,_0x3c213d)=>{_0x3c213d['options']['showSuggestionHighlights']&&je(_0x33675a,{'showActiveMarker':!0x1})(_0x166e65,_0x77b6f4,_0x3c213d);}),_0x1cfff1['descriptionFactory']['registerElementLabel']('softBreak',_0x1795e5=>c(_0x33675a['locale'],'ELEMENT_LINE_BREAK',_0x1795e5));}}function je(_0x2908a2,{showActiveMarker:_0x149a50=!0x0}={}){return(_0x47f063,_0x5b9691,_0x245aef)=>{const _0x40d7fe=_0x2908a2['plugins']['get']('TrackChangesEditing');if(!_0x245aef['consumable']['test'](_0x5b9691['markerRange'],_0x47f063['name']))return;const _0x2024ff=_0x2908a2['model'];for(const _0x1c4b83 of _0x5b9691['markerRange']['getItems']()){if(!_0x1c4b83['is']('element','softBreak'))continue;const _0x2526ec='deletion'==_0x5b9691['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1d6972,authorId:_0x5ce776}=_0x40d7fe['_splitMarkerName'](_0x5b9691['markerName']),_0x5534c0=_0x245aef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2526ec,'data-suggestion':_0x1d6972,'data-author-id':_0x5ce776}),_0x34a567=_0x245aef['mapper']['toViewPosition'](_0x2024ff['createPositionBefore'](_0x1c4b83));_0x149a50&&_0x40d7fe['activeMarkers']['includes'](_0x5b9691['markerName'])&&_0x245aef['writer']['addClass']('ck-suggestion-marker--active',_0x5534c0),_0x245aef['writer']['insert'](_0x34a567,_0x5534c0),_0x245aef['mapper']['bindElementToMarker'](_0x5534c0,_0x5b9691['markerName']);}};}class _t extends _0x3e2428{['afterInit'](){const _0x5003be=this['editor'],_0xf747b3=_0x5003be['model'],_0x1d1f72=_0x5003be['locale'];if(!_0x5003be['plugins']['has']('StandardEditingModeEditing'))return;const _0x290902=_0x5003be['plugins']['get']('TrackChangesEditing'),_0x256669='restrictedEditingException',_0x385419=_0x5003be['commands']['get'](_0x256669);_0x290902['enableCommand'](_0x256669,(_0x2105e4,_0x2b6438={})=>{const _0x209bb2=_0xf747b3['document']['selection'];if(_0x209bb2['isCollapsed'])return void _0x2105e4(_0x2b6438);const _0x36e7b7=void 0x0!==_0x2b6438['forceValue']?_0x2b6438['forceValue']:!_0x385419['value'];_0xf747b3['change'](()=>{const _0x2e1c05=Array['from'](_0x209bb2['getRanges']());for(const _0x1b201a of _0x2e1c05){const _0x4df966=_0x36e7b7?[_0x1b201a]:io(_0x256669,_0x1b201a,_0xf747b3);for(const _0x29bf1c of _0x4df966)_0x290902['markInlineFormat'](_0x29bf1c,{'commandName':_0x256669,'commandParams':[{'forceValue':_0x36e7b7}]});}});}),_0x290902['descriptionFactory']['registerDescriptionCallback'](_0x1db0b0=>{if('formatBlock'!=_0x1db0b0['type']&&'formatInline'!=_0x1db0b0['type'])return;const {data:_0x30b9e9}=_0x1db0b0;return _0x30b9e9&&_0x30b9e9['commandName']==_0x256669?_0x30b9e9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1d1f72,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1d1f72,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3e2428{['afterInit'](){const _0x5b8630=this['editor'];if(!_0x5b8630['plugins']['has']('Style')||!_0x5b8630['plugins']['has']('DataSchema'))return;const _0x4ae259=_0x5b8630['plugins']['get']('TrackChangesEditing'),_0x3a4d91=_0x5b8630['locale'],_0x57cec6=_0x5b8630['config']['get']('style')||{},_0x2b92ef=_0x5b8630['plugins']['get']('GeneralHtmlSupport'),_0x43a0dc=_0x5b8630['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5b8630['plugins']['get']('DataSchema'),_0x57cec6['definitions']);_0x4ae259['enableDefaultAttributesIntegration']('style');const _0x241fb3=new Set();for(const _0x893482 of _0x43a0dc['block']){const _0x13ffbd=_0x2b92ef['getGhsAttributeNameForElement'](_0x893482['element']);_0x241fb3['add'](_0x13ffbd);}const _0x1a7781=new Set();for(const _0x164dc0 of _0x43a0dc['inline']){const _0x162e90=_0x2b92ef['getGhsAttributeNameForElement'](_0x164dc0['element']);_0x1a7781['add'](_0x162e90);for(const _0x32eaf3 of _0x164dc0['ghsAttributes'])_0x1a7781['add'](_0x32eaf3);}for(const _0x336e5d of _0x241fb3)_0x4ae259['registerBlockAttribute'](_0x336e5d),_0x4ae259['descriptionFactory']['registerAttributeLabel'](_0x336e5d,c(_0x3a4d91,'FORMAT_STYLE'));for(const _0x4db9ed of _0x1a7781)_0x4ae259['registerInlineAttribute'](_0x4db9ed),_0x4ae259['descriptionFactory']['registerAttributeLabel'](_0x4db9ed,c(_0x3a4d91,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206216=this['editor'],_0x112578=_0x206216['locale'];_0x206216['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173b73=>{if('formatBlock'!=_0x173b73['type']&&'formatInline'!=_0x173b73['type'])return;const {data:_0x27f7b8}=_0x173b73;return _0x27f7b8&&'style'===_0x27f7b8['commandName']?_0x27f7b8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x112578,'*Set\x20format:*\x20%0',_0x27f7b8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x112578,'*Remove\x20format:*\x20%0',_0x27f7b8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3e2428{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xcc35ed){super(_0xcc35ed),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39ff17=this['editor'],_0x4733cd=_0x39ff17['model']['document']['selection'];if(!_0x39ff17['plugins']['has']('TableEditing'))return;const _0x3165dd=_0x39ff17['locale'],_0x4c82ab=_0x39ff17['plugins']['get']('TrackChangesEditing'),_0x49e7d6=_0x39ff17['plugins']['get']('TableUtils');_0x4c82ab['descriptionFactory']['registerElementLabel']('table',_0x67f2a7=>c(_0x3165dd,'ELEMENT_TABLE',_0x67f2a7)),this['_setupColumnsRowsFixing'](),_0x4c82ab['enableCommand']('insertTable'),_0x4c82ab['enableCommand']('selectTableRow'),_0x4c82ab['enableCommand']('selectTableColumn');for(const _0x245760 of['insertTableRowAbove','insertTableRowBelow']){const _0x5d76d5=_0x39ff17['commands']['get'](_0x245760);_0x4c82ab['enableCommand'](_0x245760,_0x13e01d=>{_0x39ff17['model']['change'](_0x241b53=>{_0x13e01d();const _0xd9ce6a='above'===_0x5d76d5['order'],_0x404fb1=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x115b2b=_0x49e7d6['getRowIndexes'](_0x404fb1),_0x3b21da=_0xd9ce6a?_0x115b2b['first']-0x1:_0x115b2b['last']+0x1,_0xe87e51=_0x404fb1[0x0]['findAncestor']('table'),_0x10bb88=_0x49e7d6['createTableWalker'](_0xe87e51,{'startRow':_0x3b21da,'endRow':_0x3b21da}),_0x61bb7c=Array['from'](_0x10bb88)['map'](_0x489d28=>_0x241b53['createRangeOn'](_0x489d28['cell']));_0x4c82ab['markMultiRangeInsertion'](_0x61bb7c,'tableRow');});});}for(const _0x546500 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ca63d=_0x39ff17['commands']['get'](_0x546500);_0x4c82ab['enableCommand'](_0x546500,_0xfe6f2e=>{_0x39ff17['model']['change'](_0x23f51b=>{_0xfe6f2e();const _0xacd0f1='left'===_0x5ca63d['order'],_0x26006e=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x1ce305=_0x49e7d6['getColumnIndexes'](_0x26006e),_0x1370a7=_0xacd0f1?_0x1ce305['first']-0x1:_0x1ce305['last']+0x1,_0x228cee=_0x26006e[0x0]['findAncestor']('table'),_0x589f15=_0x49e7d6['createTableWalker'](_0x228cee,{'startRow':0x0,'column':_0x1370a7,'includeAllSlots':!0x1}),_0x912a09=Array['from'](_0x589f15)['map'](_0xea4498=>_0x23f51b['createRangeOn'](_0xea4498['cell']));_0x4c82ab['markMultiRangeInsertion'](_0x912a09,'tableColumn');});});}for(const _0x215ebc of['removeTableRow','removeTableColumn']){const _0x31f019=_0x215ebc['substr'](0xb),_0x2b1c11=_0x31f019['toLowerCase'](),_0x22cb97=_0x2b1c11['substr'](0x0,0x3)+'span',_0x45becd='table'+_0x31f019,_0x301a4d='min'+_0x31f019,_0x2c6dc6='max'+_0x31f019;_0x4c82ab['enableCommand'](_0x215ebc,()=>{_0x39ff17['model']['change'](_0x437f64=>{const _0x1f491c=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x14959d=_0x1f491c[0x0]['findAncestor']('table');let _0x1623be;if('removeTableRow'==_0x215ebc){const _0x2e547a=_0x49e7d6['getRowIndexes'](_0x1f491c);_0x1623be={'startRow':_0x2e547a['first'],'endRow':_0x2e547a['last'],'includeAllSlots':!0x0};}else{const _0x502e74=_0x49e7d6['getColumnIndexes'](_0x1f491c);_0x1623be={'startColumn':_0x502e74['first'],'endColumn':_0x502e74['last'],'includeAllSlots':!0x0};}const _0x4934b6=_0x49e7d6['createTableWalker'](_0x14959d,_0x1623be),_0x256f71=Array['from'](_0x4934b6)['map'](({cell:_0x3fce14})=>_0x3fce14),_0x484838=xe(_0x256f71['filter'](_0x5b0856=>_0x5b0856['hasAttribute'](_0x22cb97))),_0x26817b=xe(_0x256f71['filter'](_0x246d3e=>!_0x246d3e['hasAttribute'](_0x22cb97)))['map'](_0x4da916=>_0x437f64['createRangeOn'](_0x4da916)),_0x478fb6=_0x4c82ab['markMultiRangeDeletion'](_0x26817b,_0x45becd);if(_0x478fb6&&('tableRow'==_0x478fb6['subType']||'tableColumn'==_0x478fb6['subType'])){const _0x3be4a2=this['_getSuggestionCoords'](_0x478fb6);for(const _0xc68b23 of _0x484838){const _0x56ecc6=_0x437f64['createRangeOn'](_0xc68b23),_0x392709=_0x49e7d6['getCellLocation'](_0xc68b23),_0x46a063=_0xc68b23['getAttribute'](_0x22cb97)-0x1,_0x51ef17=_0x3be4a2[_0x301a4d],_0x5b3243=_0x3be4a2[_0x2c6dc6];_0x51ef17<=_0x392709[_0x2b1c11]&&_0x392709[_0x2b1c11]+_0x46a063<=_0x5b3243&&_0x478fb6['addRange'](_0x56ecc6);}}});});}function _0x2e1388(_0xb4b2ed){const _0x2ffea2=Array['from'](_0x4733cd['getRanges']())['map'](_0x5e5944=>_0x2daf6a['fromRange'](_0x5e5944));_0x39ff17['model']['change'](_0x1a1fd=>{const _0xef327=_0x1a1fd['batch'];_0xb4b2ed=_0xb4b2ed['filter'](_0x4068d2=>'$graveyard'!=_0x4068d2['root']['rootName']),_0x1a1fd['setSelection'](_0xb4b2ed),_0x39ff17['commands']['get']('removeTableRow')['refresh'](),_0x39ff17['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39ff17['model']['enqueueChange'](()=>{_0x39ff17['model']['enqueueChange'](_0xef327,_0x1595c2=>{const _0x4d70bd=_0x2ffea2['filter'](_0x2e1f54=>'$graveyard'!=_0x2e1f54['root']['rootName']);_0x4d70bd['length']>0x0&&_0x1595c2['setSelection'](_0x4d70bd);for(const _0x41aa4a of _0x2ffea2)_0x41aa4a['detach']();});});});}function _0x49ca50(_0x533f5f){_0x39ff17['model']['change'](_0x4289a1=>{const _0x48385a=Array['from'](_0x4733cd['getRanges']())['map'](_0x20f39b=>_0x2daf6a['fromRange'](_0x20f39b)),_0x176c16=[];for(const _0x224a6d of _0x533f5f)for(const _0x35610b of _0x224a6d['getItems']({'shallow':!0x0}))_0x176c16['push'](_0x35610b);for(const _0xc0dbb2 of _0x176c16)'$graveyard'!=_0xc0dbb2['root']['rootName']&&(_0x4289a1['setSelection'](_0x4289a1['createPositionAt'](_0xc0dbb2,0x0)),_0x39ff17['commands']['get']('removeTableColumn')['refresh'](),_0x39ff17['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48518e=_0x48385a['filter'](_0x484308=>'$graveyard'!=_0x484308['root']['rootName']);_0x48518e['length']>0x0&&_0x4289a1['setSelection'](_0x48518e);for(const _0xe21cca of _0x48385a)_0xe21cca['detach']();});}function _0x309c2a(_0xb9d856,_0x30dacb){return _0x30dacb['every'](_0x1b61c0=>_0xb9d856['some'](_0x2cb242=>_0x2cb242['end']['isEqual'](_0x1b61c0['start'])||_0x1b61c0['end']['isEqual'](_0x2cb242['start'])));}function _0xf67d7e(_0x13a6c7,_0x5030ba){return!_0x13a6c7['some'](_0x507b48=>_0x5030ba['some'](_0x3d3388=>_0x507b48['isIntersecting'](_0x3d3388)))&&_0x13a6c7['some'](_0x5648a4=>_0x5030ba['some'](_0x6921cd=>_0x5648a4['end']['isTouching'](_0x6921cd['start'])));}_0x39ff17['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd9a662,_0x137a0b,_0x599b91)=>{if(!_0x599b91['options']['showSuggestionHighlights'])return;const _0x84c271=_0x137a0b['item'];if(!_0x84c271||!_0x84c271['is']('element','tableCell'))return;const _0x3f8b7c=_0x599b91['mapper']['toViewElement'](_0x84c271);if(_0x3f8b7c){const {id:_0x433fc0,authorId:_0x4d3519}=_0x4c82ab['_splitMarkerName'](_0x137a0b['markerName']);_0x18e857(_0x3f8b7c,_0x599b91['writer'],(_0x3a7177,_0x56601f,_0x436b2d)=>{_0x436b2d['addClass'](_0x9aaf0b(_0x56601f['classes']),_0x3a7177),_0x436b2d['setAttribute']('data-suggestion-id',_0x433fc0,_0x3a7177),_0x436b2d['setAttribute']('data-author-id',_0x4d3519,_0x3a7177);},(_0xabc7cf,_0x2f880c,_0x1bff9c)=>{_0x1bff9c['removeClass'](_0x9aaf0b(_0x2f880c['classes']),_0xabc7cf),_0x1bff9c['removeAttribute']('data-suggestion-id',_0xabc7cf),_0x1bff9c['removeAttribute']('data-author-id',_0xabc7cf);});}},{'priority':'highest'}),_0x4c82ab['descriptionFactory']['registerDescriptionCallback'](_0x3f772b=>{if('insertion'!=_0x3f772b['type']&&'deletion'!=_0x3f772b['type'])return;const _0x5de665=_0x3f772b['getContainedElement']();if(null!=_0x5de665&&_0x5de665['is']('element','table')){if('insertion'==_0x3f772b['type']){const _0x92acba=_0x3f772b['getItems']()['filter'](_0xadf4a2=>_0xadf4a2['is']('$textProxy'))['map'](_0x52bcae=>_0x52bcae['data']);if(_0x92acba['length'])return{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x92acba['join']('\x20')+'\x22'))};}if('deletion'==_0x3f772b['type']){const _0x3559e7=_0x3f772b['getItems']()['filter'](_0x4aa4d0=>_0x4aa4d0['is']('$textProxy'))['map'](_0x4a52f6=>_0x4a52f6['data']);if(_0x3559e7['length'])return{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3559e7['join']('\x20')+'\x22'))};}}}),_0x4c82ab['descriptionFactory']['registerDescriptionCallback'](_0x31c19f=>{if('tableRow'==_0x31c19f['subType']){const _0x14241c=_0x31c19f['getItems']()['filter'](_0x1a1665=>_0x1a1665['is']('$textProxy'))['map'](_0x8846d3=>_0x8846d3['data']),_0x510ad0=this['_getSuggestionCoords'](_0x31c19f),_0x1d3771=_0x510ad0['maxRow']-_0x510ad0['minRow']+0x1;if('insertion'==_0x31c19f['type'])return _0x14241c['length']?{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d3771,'\x22'+_0x14241c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW',_0x1d3771))};if('deletion'==_0x31c19f['type'])return _0x14241c['length']?{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d3771,'\x22'+_0x14241c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW',_0x1d3771))};}if('tableColumn'==_0x31c19f['subType']){const _0x22faa7=_0x31c19f['getItems']()['filter'](_0x47febd=>_0x47febd['is']('$textProxy'))['map'](_0x936e4a=>_0x936e4a['data']),_0x1dbda4=this['_getSuggestionCoords'](_0x31c19f),_0x391e09=_0x1dbda4['maxColumn']-_0x1dbda4['minColumn']+0x1;if('insertion'==_0x31c19f['type'])return _0x22faa7['length']?{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391e09,'\x22'+_0x22faa7['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN',_0x391e09))};if('deletion'==_0x31c19f['type'])return _0x22faa7['length']?{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391e09,'\x22'+_0x22faa7['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN',_0x391e09))};}}),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e1388),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e1388),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x49ca50),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x49ca50),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x309c2a),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x309c2a),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf67d7e),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf67d7e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1bc2f4=this['editor'],_0x4584c7=_0x1bc2f4['model']['document']['selection'];return(_0x31c575,_0x3e04ad)=>{_0x1bc2f4['model']['change'](_0x58b531=>{const {commandName:_0x318c35,commandParams:_0x3672f5}=_0x3e04ad;let _0x20b7d3=_0x31c575[0x0]['end']['nodeBefore'];_0x3672f5&&_0x3672f5[0x0]&&!0x1===_0x3672f5[0x0]['forceValue']&&(_0x20b7d3=_0x31c575[0x0]['start']['nodeAfter']);const _0x2bd0ef=_0x58b531['createRangeIn'](_0x20b7d3);if('$graveyard'==_0x2bd0ef['root']['rootName'])return;const _0x286e29=Array['from'](_0x4584c7['getRanges']())['map'](_0x545043=>_0x2daf6a['fromRange'](_0x545043));_0x58b531['setSelection'](_0x2bd0ef),_0x1bc2f4['commands']['get'](_0x318c35)['refresh'](),_0x3672f5['push']({'forceDefaultExecution':!0x0}),_0x1bc2f4['execute'](_0x318c35,..._0x3672f5);const _0xd331c8=_0x286e29['filter'](_0xc38730=>'$graveyard'!=_0xc38730['root']['rootName']);_0xd331c8['length']>0x0&&_0x58b531['setSelection'](_0xd331c8);for(const _0xe549ea of _0x286e29)_0xe549ea['detach']();});};}['_getCoordsForCells'](_0x2391bd){const _0x1b7676=this['editor']['plugins']['get']('TableUtils');let _0x49fefa=Number['MAX_SAFE_INTEGER'],_0x178926=Number['MIN_SAFE_INTEGER'],_0x145f8a=Number['MAX_SAFE_INTEGER'],_0x589766=Number['MIN_SAFE_INTEGER'];for(const _0x1f0555 of _0x2391bd){if('$graveyard'==_0x1f0555['root']['rootName'])continue;const {row:_0x40a4cd,column:_0x4c0153}=_0x1b7676['getCellLocation'](_0x1f0555),_0x7e9a14=_0x1f0555['hasAttribute']('rowspan')?_0x1f0555['getAttribute']('rowspan')-0x1:0x0,_0x5e3340=_0x1f0555['hasAttribute']('colspan')?_0x1f0555['getAttribute']('colspan')-0x1:0x0;_0x49fefa=_0x40a4cd<_0x49fefa?_0x40a4cd:_0x49fefa,_0x178926=_0x40a4cd+_0x7e9a14>_0x178926?_0x40a4cd+_0x7e9a14:_0x178926,_0x145f8a=_0x4c0153<_0x145f8a?_0x4c0153:_0x145f8a,_0x589766=_0x4c0153+_0x5e3340>_0x589766?_0x4c0153+_0x5e3340:_0x589766;}return{'minRow':_0x49fefa,'maxRow':_0x178926,'minColumn':_0x145f8a,'maxColumn':_0x589766};}['_setupColumnsRowsFixing'](){const _0x460084=this['editor'],_0x5476f5=_0x460084['plugins']['get']('TrackChangesEditing'),_0x96260c=_0x460084['plugins']['get']('TableUtils');_0x460084['model']['document']['on']('change:data',()=>{const _0xe24f07=Array['from'](_0x460084['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3926f7,data:_0x304ec7}of _0xe24f07){const {group:_0x25a942,id:_0x374339,subType:_0x21bdaa}=_0x5476f5['_splitMarkerName'](_0x3926f7);if('suggestion'!=_0x25a942)continue;if(null!=_0x304ec7['oldRange'])continue;const _0x26951c=_0x5476f5['getSuggestion'](_0x374339);this['_tablePostFixingSubtypes']['includes'](_0x21bdaa)&&this['_tableSuggestions']['add'](_0x26951c);}},{'priority':'low'});const _0x3e3e46=(_0x25a335,_0xb8abe0)=>{let _0x5b4f68=!0x1;const _0x38cd57=_0xb8abe0['createRangeOn'](_0x25a335),_0x4a129d=_0x25a335['findAncestor']('table'),_0x2ac14d=_0x96260c['getCellLocation'](_0x25a335);for(const _0x28fce7 of this['_tableSuggestions']){const _0x5f008c=_0x28fce7['subType'],_0x5c7e38=_0x5f008c['startsWith']('tablePaste'),_0x38945e=_0x5f008c['substr'](_0x5c7e38?0xa:0x5),_0x156a5f=_0x38945e['toLowerCase'](),_0x365242=_0x156a5f['substr'](0x0,0x3)+'span',_0x47450e='min'+_0x38945e,_0x47746d='max'+_0x38945e;if(!_0x28fce7['isInContent'])continue;if(_0x4a129d!=_0x28fce7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28fce7['isIntersectingWithRange'](_0x38cd57))continue;const _0x436f76=_0x25a335['hasAttribute'](_0x365242)?_0x25a335['getAttribute'](_0x365242)-0x1:0x0,_0x16dbb3=this['_getSuggestionCoords'](_0x28fce7),_0x4a82d5=_0x16dbb3[_0x47450e],_0x2aed7a=_0x16dbb3[_0x47746d];_0x4a82d5<=_0x2ac14d[_0x156a5f]&&_0x2ac14d[_0x156a5f]+_0x436f76<=_0x2aed7a&&(_0x28fce7['addRange'](_0x38cd57),_0x5b4f68=!0x0);}return _0x5b4f68;};_0x460084['model']['document']['registerPostFixer'](_0x3d49fb=>{let _0x387513=!0x1;for(const _0xcf30b3 of _0x460084['model']['document']['differ']['getChanges']())if('insert'==_0xcf30b3['type']){if('tableRow'==_0xcf30b3['name']){for(const _0x41570c of _0xcf30b3['position']['nodeAfter']['getChildren']())_0x387513=_0x387513||_0x3e3e46(_0x41570c,_0x3d49fb);}else'tableCell'==_0xcf30b3['name']&&(_0x387513=_0x387513||_0x3e3e46(_0xcf30b3['position']['nodeAfter'],_0x3d49fb));}return _0x387513;});}['_getSuggestionCoords'](_0x332c49){return this['_getCoordsForCells'](_0x332c49['getRanges']()['map'](_0x44c684=>_0x44c684['start']['nodeAfter']));}}function xe(_0x47c129){return Array['from'](new Set(_0x47c129)['values']());}class Nt extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0xf32b96=this['editor'],_0x4284a7=_0xf32b96['model']['document']['selection'],_0x11ea71=_0xf32b96['locale'];if(!_0xf32b96['plugins']['has']('TableEditing'))return;const _0x451c61=_0xf32b96['plugins']['get']('TrackChangesEditing'),_0x17c2cf=_0xf32b96['plugins']['get']('TableUtils'),_0x571805=_0xf32b96['plugins']['get'](Ct);_0x571805['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x451c61['enableCommand']('mergeTableCells',()=>{const _0x386aa4=_0x17c2cf['getSelectionAffectedTableCells'](_0xf32b96['model']['document']['selection']);_0xf32b96['model']['change'](()=>{_0x451c61['markMultiRangeBlockFormat'](_0x386aa4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xf32b96['commands']['get']('mergeTableCells')['on']('execute',(_0x1cc883,_0x56632e)=>{_0xf32b96['commands']['get']('trackChanges')['value']&&(_0x56632e['length']>0x0&&_0x56632e[_0x56632e['length']-0x1]&&_0x56632e[_0x56632e['length']-0x1]['forceDefaultExecution']||_0x451c61['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1cc883['stop']());},{'priority':'highest'});for(const _0xec25f0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f3144=_0xf32b96['commands']['get'](_0xec25f0);_0x451c61['enableCommand'](_0xec25f0,()=>{const _0x13d50=_0xf32b96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1cbe8d=>_0x1cbe8d['is']('element','tableCell')),_0x5d4773=_0x4f3144['value'];_0xf32b96['model']['change'](()=>{_0x451c61['markMultiRangeBlockFormat']([_0x13d50,_0x5d4773],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x463085 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5e4f54=_0xf32b96['commands']['get'](_0x463085);_0x451c61['enableCommand'](_0x463085,()=>{const _0x49e2c5=_0x17c2cf['getSelectionAffectedTableCells'](_0xf32b96['model']['document']['selection'])[0x0],_0x1f4c89=_0x49e2c5['findAncestor']('table'),{column:_0x17fe1f,row:_0x58958e}=_0x17c2cf['getCellLocation'](_0x49e2c5);let _0x492d2e=[];if('horizontally'==_0x5e4f54['direction']){const _0x3d1709=_0x17c2cf['createTableWalker'](_0x1f4c89,{'startRow':_0x58958e,'endRow':_0x58958e,'includeAllSlots':!0x0});_0x492d2e=Array['from'](_0x3d1709)['map'](_0x2bb103=>_0x2bb103['cell']);}else{const _0x3dd611=_0x17c2cf['createTableWalker'](_0x1f4c89,{'column':_0x17fe1f,'includeAllSlots':!0x0});_0x492d2e=Array['from'](_0x3dd611)['map'](_0x53f115=>_0x53f115['cell']);}_0xf32b96['model']['change'](_0x3201d2=>{_0x451c61['markBlockFormat'](_0x3201d2['createRangeOn'](_0x49e2c5),{'commandName':_0x463085,'commandParams':[]},_0x492d2e,_0x463085);});});}_0x451c61['descriptionFactory']['registerDescriptionCallback'](_0x4568ba=>{if('formatBlock'!=_0x4568ba['type']&&'formatInline'!=_0x4568ba['type'])return;const {data:_0x362d9a}=_0x4568ba;return _0x362d9a&&'mergeTableCells'==_0x362d9a['commandName']?{'type':'format','content':c(_0x11ea71,'*Merge\x20cells*')}:void 0x0;}),_0x451c61['descriptionFactory']['registerDescriptionCallback'](_0x5d4a7d=>{if('formatBlock'!=_0x5d4a7d['type']&&'formatInline'!=_0x5d4a7d['type'])return;const {data:_0x16290b}=_0x5d4a7d;return _0x16290b?'splitTableCellVertically'==_0x16290b['commandName']?{'type':'format','content':c(_0x11ea71,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x16290b['commandName']?{'type':'format','content':c(_0x11ea71,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5f43d5=_0x571805['_acceptFormatSuggestionCallbackFactory']();for(const _0x232ac1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x232ac1,'accept',_0x5f43d5);for(const _0x4b146b of['splitTableCellVertically','splitTableCellHorizontally'])_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b146b,'accept',_0x5f43d5);_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xdfb969=>{_0xf32b96['model']['change'](_0x32c1fd=>{const _0x2bae54=Array['from'](_0x4284a7['getRanges']())['map'](_0xa906d8=>_0x2daf6a['fromRange'](_0xa906d8));_0x32c1fd['setSelection'](_0xdfb969),_0xf32b96['commands']['get']('mergeTableCells')['refresh'](),_0xf32b96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x95f4f8=_0x2bae54['filter'](_0x4b7f1e=>'$graveyard'!=_0x4b7f1e['root']['rootName']);_0x95f4f8['length']>0x0&&_0x32c1fd['setSelection'](_0x95f4f8);for(const _0x8f9f36 of _0x2bae54)_0x8f9f36['detach']();});});for(const _0x31e0ef of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x549a44=_0xf32b96['commands']['get'](_0x31e0ef);_0x549a44['on']('set:isEnabled',(_0x657461,_0x5a9c8d,_0xf55b92)=>{if(_0xf55b92){const _0x2c8513=_0xf32b96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5aa46d=>_0x5aa46d['is']('element','tableCell'));this['_areMergableCells'](_0x549a44['value'],_0x2c8513)||(_0x657461['return']=!0x1,_0x657461['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x17e381=this['editor']['commands']['get']('mergeTableCells'),_0x351541=this['editor']['plugins']['get']('TableUtils');if(!_0x17e381['isEnabled'])return!0x1;const _0x568bac=_0x351541['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4ce8fd of _0x568bac)for(const _0x49ab31 of _0x568bac)if(_0x4ce8fd!=_0x49ab31&&!this['_areMergableCells'](_0x4ce8fd,_0x49ab31))return!0x1;return!0x0;}['_areMergableCells'](_0x94acd1,_0x135ca9){const _0x5cba86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ac246=this['editor']['model']['createRangeOn'](_0x94acd1),_0x5bb9b9=this['editor']['model']['createRangeOn'](_0x135ca9),_0xd328e5=new Set(),_0x1bfa5c=new Set();for(const _0x9075fa of _0x5cba86['getSuggestions']())if(('insertion'==_0x9075fa['type']||'deletion'==_0x9075fa['type']||'mergeTableCells'==_0x9075fa['subType'])&&_0x9075fa['isInContent']){for(const _0x17ce3d of _0x9075fa['getRanges']())_0x17ce3d['containsRange'](_0x3ac246,!0x0)&&_0xd328e5['add'](_0x9075fa['type']+':'+_0x9075fa['author']['id']),_0x17ce3d['containsRange'](_0x5bb9b9,!0x0)&&_0x1bfa5c['add'](_0x9075fa['type']+':'+_0x9075fa['author']['id']);}if(_0xd328e5['size']!=_0x1bfa5c['size'])return!0x1;for(const _0x4f22d3 of _0xd328e5)if(!_0x1bfa5c['has'](_0x4f22d3))return!0x1;return!0x0;}}class Dt extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x3d52b4=this['editor'];if(!_0x3d52b4['plugins']['has']('TableEditing'))return;const _0x233943=_0x3d52b4['locale'],_0x4276f5=_0x3d52b4['plugins']['get']('TrackChangesEditing');_0x4276f5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4276f5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4276f5['registerBlockAttribute']('headingRows'),_0x4276f5['registerBlockAttribute']('headingColumns'),_0x4276f5['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x233943,'FORMAT_HEADER_ROW')),_0x4276f5['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x233943,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x101874=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f3e3=this['editor']['plugins']['get']('TableUtils'),_0x4a2aaa=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x25417d({showActiveMarker:_0x54d961=!0x0,setDataAttribute:_0x58df10=!0x0}={}){return(_0x2ba39,_0xdb818f,_0x28c468)=>{const {type:_0x347bb,id:_0x19f745}=_0x101874['_splitMarkerName'](_0xdb818f['markerName']),_0x2da1c4=_0x101874['getSuggestion'](_0x19f745),_0x27b2b6=_0x2da1c4['data'];if('formatBlock'!=_0x2da1c4['type']||!_0x27b2b6||'setTableColumnHeader'!=_0x27b2b6['commandName'])return;if(_0xdb818f['item'])return void _0x2ba39['stop']();if(!_0x28c468['consumable']['consume'](_0xdb818f['markerRange'],_0x2ba39['name']))return;const _0x3d200e=_0xdb818f['markerRange']['start']['nodeAfter'],_0x58a4fc=_0xdb818f['markerRange']['end']['nodeBefore'],_0x3e1020=_0x3d200e['parent']['parent'],{column:_0x4f80f9}=_0x54f3e3['getCellLocation'](_0x3d200e),{column:_0x1e8ca9}=_0x54f3e3['getCellLocation'](_0x58a4fc);for(let _0x2f50cd=_0x4f80f9;_0x2f50cd<=_0x1e8ca9;_0x2f50cd++){const _0x955e19=_0x54f3e3['createTableWalker'](_0x3e1020,{'column':_0x2f50cd,'includeAllSlots':!0x1});for(const _0x58d474 of _0x955e19){const _0x294c95=_0x58d474['cell'],_0x76aac4=_0x28c468['mapper']['toViewElement'](_0x294c95);_0x28c468['writer']['addClass']('ck-suggestion-marker-'+_0x347bb,_0x76aac4),_0x58df10&&_0x28c468['writer']['setAttribute']('data-suggestion',_0x19f745,_0x76aac4),_0x28c468['mapper']['bindElementToMarker'](_0x76aac4,_0xdb818f['markerName']),_0x54d961&&(_0x101874['activeMarkers']['includes'](_0xdb818f['markerName'])?_0x28c468['writer']['addClass']('ck-suggestion-marker--active',_0x76aac4):_0x28c468['writer']['removeClass']('ck-suggestion-marker--active',_0x76aac4));}}};}_0x101874['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a2aaa),_0x101874['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a2aaa),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x25417d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2abf32,_0x1b663b,_0x424356)=>{_0x424356['options']['showSuggestionHighlights']&&_0x25417d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2abf32,_0x1b663b,_0x424356);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54483f,_0x5e19d0,_0x5643b8)=>{const {type:_0x4bf023,id:_0x2ca180}=_0x101874['_splitMarkerName'](_0x5e19d0['markerName']),_0x52bed7=_0x101874['getSuggestion'](_0x2ca180),_0x2a4a20=_0x52bed7['data'];if('formatBlock'!=_0x52bed7['type']||!_0x2a4a20||'setTableColumnHeader'!=_0x2a4a20['commandName'])return;const _0x378ce9=_0x5643b8['mapper']['markerNameToElements'](_0x5e19d0['markerName']);if(_0x378ce9){for(const _0x598ac3 of _0x378ce9)_0x5643b8['writer']['removeClass']('ck-suggestion-marker-'+_0x4bf023,_0x598ac3),_0x5643b8['writer']['removeClass']('ck-suggestion-marker--active',_0x598ac3),_0x5643b8['writer']['removeAttribute']('data-suggestion',_0x598ac3),_0x5643b8['mapper']['unbindElementFromMarkerName'](_0x598ac3,_0x5e19d0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf754=this['editor'],_0xe4edce=_0x1bf754['locale'];function _0x3fb5c2(_0x5daf67){return{'type':'format','content':c(_0xe4edce,'*Format:*\x20%0',_0x5daf67)};}_0x1bf754['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409c5b=>{if('formatBlock'!=_0x409c5b['type'])return;const {data:_0x1320f3}=_0x409c5b;if(_0x1320f3){if('setTableRowHeader'==_0x1320f3['commandName']){const _0x36fde5=_0x1320f3['commandParams'][0x0]['forceValue'];return _0x3fb5c2(c(_0xe4edce,_0x36fde5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1320f3['commandName']){const _0x169f5c=_0x1320f3['commandParams'][0x0]['forceValue'];return _0x3fb5c2(c(_0xe4edce,_0x169f5c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3e2428{['afterInit'](){const _0x226e0e=this['editor'],_0x49e886=_0x226e0e['locale'],_0x4393ca=_0x226e0e['plugins']['get']('TrackChangesEditing');function _0xe4d885(_0x2f804e){return{'type':'format','content':''+c(_0x49e886,'*Set\x20table\x20type:*\x20%0',_0x2f804e)};}_0x226e0e['plugins']['has']('TableLayout')&&(_0x4393ca['enableCommand']('insertTableLayout'),_0x4393ca['enableDefaultAttributesIntegration']('tableType'),_0x4393ca['registerBlockAttribute']('tableType'),_0x4393ca['descriptionFactory']['registerElementLabel'](_0x28ab2a=>_0x28ab2a['is']('element','table')&&'layout'===_0x28ab2a['getAttribute']('tableType'),_0x4161ab=>c(_0x49e886,'ELEMENT_LAYOUT_TABLE',_0x4161ab)),_0x4393ca['descriptionFactory']['registerDescriptionCallback'](_0x396402=>{const {data:_0x1b3087}=_0x396402;if(_0x1b3087&&'tableType'==_0x1b3087['key'])switch(_0x1b3087['newValue']){case'layout':return _0xe4d885(c(_0x49e886,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xe4d885(c(_0x49e886,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x153535=>[_0x153535,null]));class $t extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x9aaa82=this['editor'];if(!_0x9aaa82['plugins']['has']('TableClipboard'))return;const _0x27528a=_0x9aaa82['plugins']['get']('TrackChangesEditing'),_0x5bacd0=_0x9aaa82['plugins']['get']('TableUtils'),_0x8de5f2=_0x9aaa82['plugins']['get'](Ct),_0x4533dd=_0x9aaa82['plugins']['get']('TableClipboard'),_0x4f31c8=_0x9aaa82['plugins']['get']('TableSelection'),_0xb6bf39=_0x9aaa82['plugins']['get'](_0x4a16f7);_0x8de5f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9aaa82['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9aaa82['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x489c5e=null,_0x250976=!0x1;_0xb6bf39['on']('contentInsertion',(_0x2d1dc5,_0x46c1db)=>{_0x250976='paste'===_0x46c1db['method'];}),_0x9aaa82['model']['on']('insertContent',(_0x1001a5,_0x2c404b)=>{if(!_0x250976&&null===_0x4f31c8['getSelectedTableCells']())return;const [_0x228aac,_0x183c20]=_0x2c404b,_0x27c0e4=_0x2c404b[_0x2c404b['length']-0x1];_0x27c0e4&&_0x27c0e4['forceDefaultExecution']||_0x27528a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eded8,_0xa720f9,_0x1fdfb1,_0x2b631a,_0x5986e3){if(_0xa720f9&&!_0xa720f9['is']('documentSelection'))return!0x1;const _0x2d6f94=_0x5986e3['getTableIfOnlyTableInContent'](_0x1eded8,_0x1fdfb1);if(!_0x2d6f94||!He(_0x2d6f94,void 0x0,_0x2b631a))return!0x1;const _0x349366=_0x2b631a['getSelectionAffectedTableCells'](_0x1fdfb1['document']['selection']);if(!_0x349366['length'])return!0x1;const _0x1b9e12=_0x349366[0x0]['findAncestor']('table'),_0x2d28ad=_0x2b631a['getRowIndexes'](_0x349366),_0x5ba71d=_0x2b631a['getColumnIndexes'](_0x349366),_0x34266a={'startRow':_0x2d28ad['first'],'endRow':_0x2d28ad['last'],'startColumn':_0x5ba71d['first'],'endColumn':_0x5ba71d['last']};return 0x1==_0x349366['length']&&(_0x34266a['endRow']+=_0x2b631a['getRows'](_0x2d6f94)-0x1,_0x34266a['endColumn']+=_0x2b631a['getColumns'](_0x2d6f94)-0x1),He(_0x1b9e12,_0x34266a,_0x2b631a);}(_0x228aac,_0x183c20,_0x9aaa82['model'],_0x5bacd0,_0x4533dd)&&(_0x1001a5['stop'](),_0x489c5e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9aaa82['model']['change'](()=>{_0x9aaa82['model']['insertContent'](_0x2c404b[0x0],_0x2c404b[0x1],_0x2c404b[0x2],{'forceDefaultExecution':!0x0});const _0x24c628=_0x32b8bc(),{rowInsertionRanges:_0x39913e,columnInsertionRanges:_0xd7ba0b,insertionRanges:_0x73d60e,deletionRanges:_0x214b8e,cells:_0x520b59}=_0x489c5e;_0x39913e['length']&&_0x27528a['markMultiRangeInsertion'](_0x39913e,'tablePasteRow',{'tablePasteChainId':_0x24c628}),_0xd7ba0b['length']&&_0x27528a['markMultiRangeInsertion'](_0xd7ba0b,'tablePasteColumn',{'tablePasteChainId':_0x24c628}),_0x73d60e['length']&&(_0x27528a['markMultiRangeInsertion'](_0x73d60e,'tablePaste',{'tablePasteChainId':_0x24c628,'skipNestingCheck':!0x0}),_0x73d60e['forEach'](_0x9f9269=>_0x9f9269['detach']?.())),_0x214b8e['length']&&(_0x27528a['markMultiRangeDeletion'](_0x214b8e,'tablePaste',{'tablePasteChainId':_0x24c628,'skipNestingCheck':!0x0}),_0x214b8e['forEach'](_0x123a70=>_0x123a70['detach']?.()));const _0x21ba59=_0x27528a['markMultiRangeBlockFormat'](_0x520b59['map'](({element:_0x2424da})=>_0x2424da),{'formatGroupId':_0x32b8bc()},[],'tablePasteCell',{'tablePasteChainId':_0x24c628});if(_0x21ba59){const _0x93f280=_0x21ba59['getMarkers'](),_0x243cc1=[];for(const {element:_0x1fb22a,attributes:_0x539bbb}of _0x520b59){if(!_0x539bbb)continue;const _0x3ec989=_0x9aaa82['model']['createRangeOn'](_0x1fb22a),_0xe09b83=_0x93f280['find'](_0x9737b9=>_0x9737b9['getRange']()['isEqual'](_0x3ec989));_0xe09b83&&_0x243cc1['push']([_0xe09b83['name'],_0x539bbb]);}_0x243cc1['length']&&_0x21ba59['setAttribute']('markerAttributes',Object['fromEntries'](_0x243cc1));}_0x489c5e=null;}));},{'priority':_0x1180b2['high']+0xa}),_0xb6bf39['on']('contentInsertion',()=>{_0x250976=!0x1;},{'priority':'lowest'}),_0x9aaa82['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x41b1c7,_0x315f28)=>{const [_0x46fbd5,_0x36ebc1,,_0x477670]=_0x315f28;if(!_0x489c5e)return;_0x41b1c7['stop']();const _0x298c94=_0x46fbd5['cell'],_0x5a2e54=_0x36ebc1,_0x50ca4a=De(_0x298c94),_0x493eec=De(_0x5a2e54);_0x41b1c7['return']=_0x298c94;let _0x332367=null,_0x1086fc=null;if(_0x493eec||_0x50ca4a){if(_0x50ca4a&&!_0x493eec){_0x477670['remove'](_0x298c94['getChild'](0x0));for(const _0x1600fe of Array['from'](_0x5a2e54['getChildren']()))_0x477670['insert'](_0x1600fe,_0x298c94,'end');const _0x1f0f94=_0x489c5e['rowInsertionIndexes']['includes'](_0x46fbd5['row']),_0x4112af=_0x489c5e['columnInsertionIndexes']['includes'](_0x46fbd5['column']);_0x1f0f94||_0x4112af||(_0x332367=_0x2daf6a['fromRange'](_0x477670['createRangeIn'](_0x298c94)));}else _0x493eec&&!_0x50ca4a&&(_0x1086fc=_0x477670['createRangeIn'](_0x298c94));}else{const _0x472d9c=_0x477670['createElement']('tableCellSuggestion'),_0x396fc7=_0x477670['createElement']('tableCellSuggestion');_0x477670['wrap'](_0x477670['createRangeIn'](_0x298c94),_0x396fc7),_0x477670['insert'](_0x472d9c,_0x298c94,0x0);for(const _0x2f7d3b of Array['from'](_0x5a2e54['getChildren']()))_0x477670['insert'](_0x2f7d3b,_0x472d9c,'end');_0x332367=_0x2daf6a['fromRange'](_0x477670['createRangeOn'](_0x472d9c)),_0x1086fc=_0x2daf6a['fromRange'](_0x477670['createRangeOn'](_0x396fc7));}const _0x4c8d30=Array['from'](_0x5a2e54['getAttributes']())['filter'](([_0x311f77])=>Oe['includes'](_0x311f77));_0x489c5e['cells']['push']({'element':_0x298c94,'attributes':_0x4c8d30['length']?Object['fromEntries'](_0x4c8d30):null}),_0x332367&&_0x489c5e['insertionRanges']['push'](_0x332367),_0x1086fc&&_0x489c5e['deletionRanges']['push'](_0x1086fc);},{'priority':'high'}),_0x5bacd0['on']('insertColumns',(_0x339ea1,_0x4655e2)=>{const [_0x3c9750,_0x5e8fcd={}]=_0x4655e2;if(!_0x489c5e)return;const _0x54fd12=_0x5e8fcd['at']||0x0,_0x10a021=_0x5e8fcd['columns']||0x1;_0x489c5e['columnInsertionIndexes']=new Array(_0x10a021)['fill'](_0x54fd12)['map']((_0x5abe84,_0x82dabf)=>_0x5abe84+_0x82dabf);for(const {cell:_0x549fdd}of _0x5bacd0['createTableWalker'](_0x3c9750,{'startColumn':_0x54fd12,'endColumn':_0x54fd12+_0x10a021-0x1}))_0x489c5e['columnInsertionRanges']['push'](_0x9aaa82['model']['createRangeOn'](_0x549fdd));},{'priority':'low'}),_0x5bacd0['on']('insertRows',(_0x522d36,_0x3bd48f)=>{const [_0x1fbb90,_0x52bb44={}]=_0x3bd48f;if(!_0x489c5e)return;const _0x1b90ca=_0x52bb44['at']||0x0,_0x4af033=_0x52bb44['rows']||0x1;_0x489c5e['rowInsertionIndexes']=new Array(_0x4af033)['fill'](_0x1b90ca)['map']((_0x3f5d3b,_0x4c2213)=>_0x3f5d3b+_0x4c2213);for(const {cell:_0x32dd54}of _0x5bacd0['createTableWalker'](_0x1fbb90,{'startRow':_0x1b90ca,'endRow':_0x1b90ca+_0x4af033-0x1}))_0x489c5e['rowInsertionRanges']['push'](_0x9aaa82['model']['createRangeOn'](_0x32dd54));},{'priority':'low'}),_0x27528a['descriptionFactory']['registerDescriptionCallback'](_0x46af93=>{if(_0x46af93['subType']&&_0x46af93['subType']['startsWith']('tablePaste'))return _0x46af93['previous']?{}:{'type':'insertion','content':c(_0x9aaa82['locale'],'*Replace\x20table\x20cells*')};});const _0x308f46=()=>!0x1;for(const _0x104547 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion',_0x104547,'join',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('deletion',_0x104547,'join',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x104547,'join',_0x308f46);_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3b8eb3,_0x1f0fd0,_0x1bf79f)=>{const _0x19e91d=_0x3b8eb3['map'](_0x476c11=>_0x476c11['getContainedElement']())['filter'](_0x479373=>_0x479373),_0x22fbad=new Map(_0x19e91d['map'](_0xa8466e=>[_0xa8466e,null]));if(_0x489c5e){for(const {element:_0xa0290b,attributes:_0x5675a1}of _0x489c5e['cells'])_0x5675a1&&_0x22fbad['set'](_0xa0290b,_0x5675a1);}else{if(_0x1bf79f&&_0x1bf79f['markerAttributes'])for(const [_0x53d371,_0x57d1bf]of Object['entries'](_0x1bf79f['markerAttributes'])){const _0x52ad76=_0x9aaa82['model']['markers']['get'](_0x53d371),_0x8bbe72=_0x52ad76?_0x52ad76['getRange']()['getContainedElement']():null;_0x8bbe72&&_0x22fbad['set'](_0x8bbe72,_0x57d1bf);}}_0x9aaa82['model']['change'](_0x30316f=>{for(const [_0x2f3192,_0x29eeac]of _0x22fbad)_0x30316f['setAttributes']({...Ue,..._0x29eeac},_0x2f3192);});});const _0x1c03f7=(_0x2451a2,_0x24c171)=>{_0x27528a['_suggestionFactory']['registerCustomCallback'](_0x2451a2,'tablePaste',_0x24c171,(_0x126d29,_0x1708de,_0x56fa69)=>{_0x9aaa82['model']['change'](_0x45a2b8=>{const _0x19f26e=[];for(const _0x331e5f of _0x126d29){const _0x9ac80a=_0x331e5f['start']['nodeAfter'];_0x9ac80a['is']('element','tableCellSuggestion')&&_0x19f26e['push'](_0x9ac80a);}_0x27528a['_suggestionFactory']['getSuggestionCallback'](_0x2451a2,null,_0x24c171)(_0x126d29,_0x1708de,_0x56fa69);for(const _0x287d2a of _0x19f26e)'$graveyard'!=_0x287d2a['root']['rootName']&&_0x45a2b8['unwrap'](_0x287d2a);});});};_0x1c03f7('insertion','accept'),_0x1c03f7('insertion','discard'),_0x1c03f7('deletion','accept'),_0x1c03f7('deletion','discard'),_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33fedd=>{const _0x498a60=_0x33fedd['map'](_0x4f7922=>_0x4f7922['getContainedElement']()),_0x1f584b=_0x498a60[0x0]['findAncestor']('table'),{minRow:_0x312205,maxRow:_0x2b8df6}=_0x8de5f2['_getCoordsForCells'](_0x498a60);_0x5bacd0['removeRows'](_0x1f584b,{'at':_0x312205,'rows':_0x2b8df6-_0x312205+0x1});}),_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52e0a3=>{const _0x51487d=_0x52e0a3['map'](_0x4fafd7=>_0x4fafd7['getContainedElement']()),_0x50ab31=_0x51487d[0x0]['findAncestor']('table'),{minColumn:_0x41191e,maxColumn:_0x26df1b}=_0x8de5f2['_getCoordsForCells'](_0x51487d);_0x5bacd0['removeColumns'](_0x50ab31,{'at':_0x41191e,'columns':_0x26df1b-_0x41191e+0x1});});const _0x388b42=(_0x4e61b1,_0x3ee002)=>{if(!_0x3ee002['subType']||!_0x3ee002['subType']['startsWith']('tablePaste'))return;const _0x3c1bfc=_0x3ee002['attributes']['tablePasteChainId'],_0x18d553=_0x27528a['getSuggestions']()['filter'](_0x26d67f=>_0x26d67f['isInContent']&&_0x26d67f['attributes']&&_0x26d67f['attributes']['tablePasteChainId']==_0x3c1bfc);_0x18d553['length']&&_0x3ee002['getAllAdjacentSuggestions']()['length']!=_0x18d553['length']&&_0x18d553['reduce']((_0x1b1eff,_0x1c3cbb)=>(_0x1b1eff['next']=_0x1c3cbb,_0x1c3cbb['previous']=_0x1b1eff,_0x1c3cbb));};function _0x1aab83(_0x15b590,_0x1b31e2=!0x0){const {id:_0x52b8bf,authorId:_0x1a0b72}=_0x27528a['_splitMarkerName'](_0x15b590['markerName']),_0x1dbb26=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x171271=_0x27528a['activeMarkers']['includes'](_0x15b590['markerName']);return _0x171271&&_0x1dbb26['push']('ck-suggestion-marker--active'),{'classes':_0x1dbb26,'attributes':{'data-suggestion':_0x52b8bf,'data-author-id':_0x1a0b72},'priority':_0x171271&&_0x1b31e2?0xbc2:0xbb8};}_0x27528a['on']('suggestionLoaded',_0x388b42,{'priority':'high'}),_0x27528a['on']('suggestionUnloaded',_0x388b42,{'priority':'high'}),_0x9aaa82['model']['document']['registerPostFixer'](()=>{let _0x3ab31a=!0x1;const _0x1743c2=Array['from'](_0x9aaa82['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10ffe2,data:_0x581f0c}of _0x1743c2){const {group:_0x32646e,type:_0x3df543,id:_0x497ae7}=_0x27528a['_splitMarkerName'](_0x10ffe2);if('suggestion'!=_0x32646e||'deletion'!=_0x3df543||_0x581f0c['oldRange'])continue;if(!_0x27528a['hasSuggestion'](_0x497ae7))continue;const _0x4e0467=_0x27528a['getSuggestion'](_0x497ae7)['getRanges'](),_0x343248=_0x9aaa82['plugins']['get']('Users')['me'];for(const _0xa9a1c3 of _0x27528a['getSuggestions']()){if(!_0xa9a1c3['isInContent']||_0xa9a1c3['author']!=_0x343248)continue;if('formatBlock'!=_0xa9a1c3['type']||'tablePasteCell'!=_0xa9a1c3['subType'])continue;if(_0xa9a1c3['getRanges']()['every'](_0x34e541=>_0x4e0467['some'](_0x408dc6=>_0x408dc6['containsRange'](_0x34e541,!0x0)))){for(const _0x22fb7c of _0xa9a1c3['getAllAdjacentSuggestions']())_0x22fb7c['isInContent']&&(_0x22fb7c['discard'](),_0x3ab31a=!0x0);}}}return _0x3ab31a;}),_0x9aaa82['model']['document']['registerPostFixer'](_0x5e6f67=>{const _0x361f8c=_0x9aaa82['commands']['get']('redo');if(!_0x361f8c||!_0x361f8c['_createdBatches']['has'](_0x5e6f67['batch']))return!0x1;let _0x5a441a=!0x1;const _0x5e4a5f=_0x9aaa82['plugins']['get']('Users')['me'],_0x3e6fd8=_0x9aaa82['model']['document']['differ']['getChanges'](),_0x552d54=Array['from'](_0x9aaa82['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4982a4,data:_0x48f9e7})=>{const {group:_0x294da8,subType:_0x1f8013,authorId:_0x1fbd0f}=_0x27528a['_splitMarkerName'](_0x4982a4);return'suggestion'==_0x294da8&&'tablePaste'==_0x1f8013&&_0x1fbd0f==_0x5e4a5f['id']&&!_0x48f9e7['oldRange'];});for(const _0x2c3a11 of _0x3e6fd8){if('insert'!=_0x2c3a11['type']||'tableCellSuggestion'!=_0x2c3a11['name']||0x1!=_0x2c3a11['length'])continue;const _0x4ef0a4=_0x5e6f67['createRange'](_0x2c3a11['position'],_0x2c3a11['position']['getShiftedBy'](0x1));if(!_0x552d54['find'](({data:_0x15d525})=>_0x15d525['newRange']['isEqual'](_0x4ef0a4))){for(const {name:_0xfdc56d,data:_0x1a3864}of _0x552d54)if(_0x4ef0a4['containsRange'](_0x1a3864['newRange'])){_0x5e6f67['updateMarker'](_0xfdc56d,{'range':_0x4ef0a4}),_0x5a441a=!0x0;break;}}}return _0x5a441a;}),_0x9aaa82['model']['document']['registerPostFixer'](_0x46fa4a=>{let _0x2ef1df=!0x1;const _0x1d9742=_0x9aaa82['plugins']['get']('Users')['me'],_0x208fd2=_0x27528a['getSuggestions']()['filter'](_0x3c1324=>_0x3c1324['isInContent']&&_0x3c1324['author']==_0x1d9742),_0x41eb55=new Set(),_0x1cb64=new Set();for(const _0x4a7dfb of _0x208fd2)if('tablePaste'==_0x4a7dfb['subType'])for(const _0x5e98c0 of _0x4a7dfb['getMarkers']()){const _0xfcc4a8=_0x5e98c0['getRange']()['getContainedElement']();if(_0xfcc4a8){if(_0xfcc4a8['is']('element','tableCellSuggestion')&&De(_0xfcc4a8)){_0x4a7dfb['removeMarker'](_0x5e98c0['name']),_0x41eb55['add'](_0xfcc4a8),_0x2ef1df=!0x0;const _0x1c556f=_0xfcc4a8['nextSibling'],_0x3fea72=_0xfcc4a8['previousSibling'],_0x5c815f=_0x1c556f&&_0x1c556f['is']('element','tableCellSuggestion'),_0x5f0747=_0x3fea72&&_0x3fea72['is']('element','tableCellSuggestion');_0x5c815f&&!_0x41eb55['has'](_0x1c556f)&&_0x1cb64['add'](_0x1c556f),_0x5f0747&&!_0x41eb55['has'](_0x3fea72)&&_0x1cb64['add'](_0x3fea72);}else _0xfcc4a8['is']('element','paragraph')&&_0xfcc4a8['isEmpty']&&(_0x4a7dfb['removeMarker'](_0x5e98c0['name']),_0x2ef1df=!0x0);}}else{if('tablePasteCell'==_0x4a7dfb['subType']){if(!_0x4a7dfb['attributes']||!_0x4a7dfb['attributes']['tablePasteChainId'])continue;const _0x1cdac7=_0x4a7dfb['attributes']['markerAttributes'];if(_0x1cdac7&&Object['keys'](_0x1cdac7)['length'])continue;const _0x5bae43=_0x4a7dfb['attributes']['tablePasteChainId'];let _0xc4ffb=!0x0,_0x10e884=!0x0;for(const _0xb9182b of _0x208fd2)if(_0xb9182b['subType']&&_0xb9182b['subType']['startsWith']('tablePaste')){if(!_0xb9182b['attributes']['tablePasteChainId']){_0x10e884=!0x1;break;}if(_0xb9182b['id']!=_0x4a7dfb['id']&&_0xb9182b['attributes']['tablePasteChainId']==_0x5bae43){_0xc4ffb=!0x1;break;}}_0x10e884&&_0xc4ffb&&(_0x4a7dfb['removeMarkers'](),_0x2ef1df=!0x0);}}for(const _0x30a7ef of _0x41eb55)_0x46fa4a['remove'](_0x30a7ef);for(const _0x16551b of _0x1cb64)_0x46fa4a['unwrap'](_0x16551b);return _0x2ef1df;}),_0x9aaa82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2f5c9f=>_0x1aab83(_0x2f5c9f),'converterPriority':'high'}),_0x9aaa82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b036b,_0x27ae97)=>_0x27ae97['options']['showSuggestionHighlights']?_0x1aab83(_0x2b036b,!0x1):null,'converterPriority':'high'});const _0x244919=_0x9aaa82['editing']['view'];this['listenTo'](_0x244919['document'],'clipboardOutput',(_0xdd109,_0x512efe)=>{const _0x3ac2ee=[];for(const _0x540d5f of _0x244919['createRangeIn'](_0x512efe['content'])['getItems']())_0x540d5f['is']('element','suggestion-td')&&_0x3ac2ee['push'](_0x540d5f);_0x244919['change'](_0x3816f4=>{for(const _0x3b60a2 of _0x3ac2ee)_0x3816f4['move'](_0x3816f4['createRangeIn'](_0x3b60a2),_0x3816f4['createPositionBefore'](_0x3b60a2)),_0x3816f4['remove'](_0x3b60a2);});});}}function De(_0x821c1f){if(_0x821c1f['isEmpty'])return!0x0;const _0x575ab4=_0x821c1f['getChild'](0x0);return _0x575ab4['is']('element','paragraph')&&_0x575ab4['isEmpty'];}function He(_0x457dc9,_0x31ddd8={},_0x43f799){for(const {isAnchor:_0x2d2985,cellHeight:_0x413717,cellWidth:_0x405d1e}of _0x43f799['createTableWalker'](_0x457dc9,{'includeAllSlots':!0x0,..._0x31ddd8}))if(!_0x2d2985||0x1!=_0x413717||0x1!=_0x405d1e)return!0x1;return!0x0;}class Bt extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5797cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5797cd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5797cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5797cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5797cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5797cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5797cd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3cc9f6,_0x1186a6){const _0x51e99f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53bede=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x32027b=_0x1186a6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7151ea=_0x53bede['getColumnGroupElement'](_0x32027b);let _0x4bc9c2=_0x7151ea?_0x53bede['getTableColumnsWidths'](_0x7151ea):null,_0x502c18=_0x32027b['getAttribute']('tableWidth')||null;const _0x276114=_0x1186a6['tableWidth']||_0x502c18,_0x1d68d4=_0x1186a6['columnWidths']||_0x4bc9c2,_0x57bfda=this['editor']['plugins']['get']('Users')['me'];for(const _0x16d8c4 of _0x51e99f['getSuggestions']()){const _0x280bfd=_0x16d8c4['getContainedElement']();if('resizeTable'===_0x16d8c4['subType']&&_0x280bfd===_0x32027b){_0x16d8c4['author']!==_0x57bfda&&_0x16d8c4['discard']();const _0x5b8ce8=_0x16d8c4['data']['commandParams'];_0x502c18=_0x5b8ce8[0x0]['tableWidth'],_0x4bc9c2=_0x5b8ce8[0x0]['columnWidths'];break;}}_0x3cc9f6({'table':_0x32027b,'tableWidth':_0x276114,'columnWidths':_0x1d68d4}),_0x51e99f['markBlockFormat'](_0x32027b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x502c18,'columnWidths':_0x4bc9c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3e5e7e){if('formatBlock'!=_0x3e5e7e['type']&&'formatInline'!=_0x3e5e7e['type'])return;const {data:_0x5e6be7}=_0x3e5e7e;if(_0x5e6be7&&'resizeTable'===_0x5e6be7['formatGroupId']){const _0x5c8aed='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x5c8aed)};}}}class xt extends _0x3e2428{['afterInit'](){const _0x560b36=this['editor'];_0x560b36['plugins']['has']('Template')&&_0x560b36['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3e2428{['afterInit'](){const _0x607131=this['editor'];if(!_0x607131['commands']['get']('insertTableOfContents'))return;_0x607131['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30f1cc=_0x607131['plugins']['get']('TrackChangesEditing'),_0x88aa9a=_0x607131['locale'];_0x30f1cc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53e833=>c(_0x88aa9a,'ELEMENT_TABLE_OF_CONTENTS',_0x53e833));}}class Rt extends _0x3e2428{['afterInit'](){const _0x1d9f5c=this['editor'];if(!_0x1d9f5c['plugins']['has']('Title'))return;const _0x4f6015=_0x1d9f5c['plugins']['get']('TrackChangesEditing');_0x4f6015['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1d9f5c['locale'],'ELEMENT_TITLE')),_0x1d9f5c['model']['document']['registerPostFixer'](_0x45c42b=>{let _0x80c370=!0x1;const _0xc8adf7=Array['from'](_0x1d9f5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28b946,data:_0x175aa9}of _0xc8adf7){const {group:_0x131cd3}=_0x4f6015['_splitMarkerName'](_0x28b946);if('suggestion'!==_0x131cd3||!_0x175aa9['newRange'])continue;const _0x1b65c5=_0x175aa9['newRange'],_0x17734e=_0x1b65c5['end']['nodeBefore'];if(!_0x17734e||!_0x17734e['is']('element','title-content'))continue;if(!_0x1b65c5['start']['isTouching'](_0x1b65c5['end']))continue;const _0x189f5d=_0x1d9f5c['model']['schema']['getNearestSelectionRange'](_0x1b65c5['end'],'forward');if(_0x189f5d&&_0x189f5d['isCollapsed']){const _0x5c0886=_0x45c42b['createRange'](_0x1b65c5['start'],_0x189f5d['start']);_0x5c0886['isEqual'](_0x1b65c5)||(_0x45c42b['updateMarker'](_0x28b946,{'range':_0x5c0886}),_0x80c370=!0x0);}_0x80c370||(_0x45c42b['removeMarker'](_0x28b946),_0x80c370=!0x0);}return _0x80c370;});}}class Tt extends _0x3e2428{['afterInit'](){const _0xa1c884=this['editor'],_0x1acd53=_0xa1c884['plugins']['get']('TrackChangesEditing');_0xa1c884['plugins']['has']('Uploadcare')&&(_0x1acd53['enableCommand']('uploadcare'),_0xa1c884['plugins']['has']('UploadcareImageEdit')&&(_0x1acd53['enableCommand']('uploadcareImageEdit'),_0x1acd53['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1acd53['registerBlockAttribute']('uploadcareImageId'),_0x1acd53['descriptionFactory']['registerDescriptionCallback'](_0x5ee8ff=>{if('attribute'!=_0x5ee8ff['type'])return;const {data:_0x6f51ab}=_0x5ee8ff;return _0x6f51ab&&'uploadcareImageId'==_0x6f51ab['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3e2428{['afterInit'](){const _0xff076=this['editor'],_0x210d18=_0xff076['plugins']['get']('TrackChangesEditing');_0xff076['plugins']['has']('UndoEditing')&&(_0x210d18['enableCommand']('undo'),_0x210d18['enableCommand']('redo'));}}class Ut extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x52b6d8=this['editor'];if(!_0x52b6d8['plugins']['has']('TableCaptionEditing'))return;_0x52b6d8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3e2428{['tableProperties'];['tableCellProperties'];constructor(_0x20cf41){super(_0x20cf41),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 _0x15835b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x26feb5 of this['tableProperties'])_0x15835b['enableCommand'](_0x26feb5,(_0x311b38,_0x408066)=>{const _0x43f2e1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x26feb5,[_0x43f2e1],this['tableProperties'],'tableProperties',_0x311b38,_0x408066);});_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15835b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x14a1a7,_0x154676)=>this['handleDiscardAction'](this['tableProperties'],_0x14a1a7,_0x154676)),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa27cad of this['tableCellProperties'])_0x15835b['enableCommand'](_0xa27cad,(_0x1593ee,_0x41a5bf)=>{const _0x1cd765=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa27cad,_0x1cd765,this['tableCellProperties'],'tableCellProperties',_0x1593ee,_0x41a5bf);});_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15835b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x178ed8,_0x505f01)=>this['handleDiscardAction'](this['tableCellProperties'],_0x178ed8,_0x505f01)),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x15835b['descriptionFactory']['registerDescriptionCallback'](_0x6c14a8=>this['handleSuggestionDescription'](_0x6c14a8));}['_handlePropertyChange'](_0x5bb38f,_0x4f0e38,_0x5c8d20,_0x418d55,_0x4c6818,_0x328e27){const _0x13d003=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x328e27['batch'],()=>{for(const _0x7c86a9 of _0x4f0e38){if(this['_getSuggestion'](_0x7c86a9,_0x418d55))_0x4c6818(_0x328e27);else{const _0x3e5e1a={};for(const _0x3c00e6 of _0x5c8d20){const _0x43b5ff=_0x7c86a9['getAttribute'](_0x3c00e6);void 0x0!==_0x43b5ff&&(_0x3e5e1a[_0x3c00e6]=_0x43b5ff);}_0x4c6818(_0x328e27),_0x13d003['markBlockFormat'](_0x7c86a9,{'commandParams':[_0x3e5e1a]},[],_0x418d55);}}});}['handleDiscardAction'](_0xd5726d,_0x667a2a,_0x1f4d69){const _0x5bac61=_0x667a2a[0x0]['start']['nodeAfter'],_0x2310ac=_0x1f4d69['commandParams'][0x0];this['editor']['model']['change'](_0x3f105b=>{for(const _0x1fce80 of _0xd5726d)void 0x0!==_0x2310ac[_0x1fce80]?_0x3f105b['setAttribute'](_0x1fce80,_0x2310ac[_0x1fce80],_0x5bac61):_0x3f105b['removeAttribute'](_0x1fce80,_0x5bac61);});}['handleSuggestionDescription'](_0x529f23){if(_0x529f23['data'])switch(_0x529f23['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'](_0x3082ed,_0xe6a6ff){const _0x3178f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ec696 of _0x3178f5['getSuggestions']({'skipNotAttached':!0x0})){const _0x56ae50=_0x3ec696['getContainedElement']();if(_0x3ec696['subType']===_0xe6a6ff&&_0x56ae50===_0x3082ed)return _0x3ec696;}return null;}}const u='$elementName';class p extends _0x3e2428{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3c7e0d,_0x408eaa,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fd8d5){super(_0x4fd8d5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x25f6e5,_0x27a247,_0x46ed0b,_0x4df9e4)=>{this['_model']['change'](()=>{for(const _0x4fac5a of[..._0x4df9e4,..._0x46ed0b])this['_model']['markers']['has'](_0x4fac5a)&&_0x4fd8d5['editing']['reconvertMarker'](_0x4fac5a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4fd8d5['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(),_0x4fd8d5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4fd8d5['config']['get']('trackChanges.trackFormatChanges'),_0x4fd8d5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4fd8d5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4fd8d5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23b862=this['editor'],_0x15f5d9=(_0x3c9c82,_0x564682)=>{if('attribute'!=_0x3c9c82)return'ck-suggestion-marker-'+_0x3c9c82;const _0x5bb4b5=_0x564682['split']('|')[0x0];return this['_isBlockAttribute'](_0x5bb4b5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23b862['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4a035b=>{const {id:_0x17207,authorId:_0x377f7b,type:_0x3045bb,subType:_0x57969c}=this['_splitMarkerName'](_0x4a035b['markerName']),_0x3bfa11=['ck-suggestion-marker',_0x15f5d9(_0x3045bb,_0x57969c)];let _0xf65087=0xbb8;return this['activeMarkers']['includes'](_0x4a035b['markerName'])&&(_0x3bfa11['push']('ck-suggestion-marker--active'),_0xf65087=0xbc2),'deletion'==_0x3045bb&&(_0xf65087+=0x5),{'classes':_0x3bfa11,'attributes':{'data-suggestion':_0x17207,'data-author-id':_0x377f7b},'priority':_0xf65087};}}),_0x23b862['conversion']['for']('dataDowncast')['add'](_0x1a1c46=>{_0x1a1c46['on']('addMarker:suggestion',(_0x43d9b9,_0x13f4cb,_0x48111d)=>{if(!_0x48111d['options']['showSuggestionHighlights'])return;const _0x3b6710=_0x13f4cb['item'];if(!_0x3b6710)return;const _0x2dc986=_0x48111d['mapper']['toViewElement'](_0x3b6710);_0x23b862['model']['schema']['isObject'](_0x3b6710)&&_0x2dc986&&!_0x2dc986['getCustomProperty']('widget')&&_0x2dc986['is']('containerElement')&&_0x4a3734(_0x2dc986,_0x48111d['writer']);},{'priority':'high'});}),_0x23b862['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1c8190,_0xadaebb)=>{if(!_0xadaebb['options']['showSuggestionHighlights'])return null;const {id:_0xfa927d,authorId:_0x146267,type:_0x5aba5f,subType:_0x5b6862}=this['_splitMarkerName'](_0x1c8190['markerName']);return{'classes':['ck-suggestion-marker',_0x15f5d9(_0x5aba5f,_0x5b6862)],'priority':0xbb8,'attributes':{'data-suggestion':_0xfa927d,'data-author-id':_0x146267}};}});const _0xdaf641=({showActiveMarkers:_0x4f3daa=!0x0,isAttributeSuggestion:_0x1e2058=!0x1}={})=>(_0x6129e5,_0x188aea,_0x3e7656)=>{if(!_0x188aea['item'])return;const {id:_0x17f375,authorId:_0x2bb83a}=this['_splitMarkerName'](_0x188aea['markerName']);if(_0x1e2058){const _0x2ad415=this['_suggestions']['get'](_0x17f375),_0x8f8a51=this['_getAttributeKey'](_0x2ad415);if(!this['_isBlockAttribute'](_0x8f8a51))return;}if(_0x188aea['item']['is']('selection'))return void _0x3e7656['consumable']['consume'](_0x188aea['item'],_0x6129e5['name']);const _0x176354=_0x3e7656['mapper']['toViewElement'](_0x188aea['item']);if(_0x188aea['item']['is']('element')&&_0x23b862['model']['schema']['isBlock'](_0x188aea['item'])&&!_0x176354['getCustomProperty']('addHighlight')){_0x3e7656['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x176354),_0x3e7656['writer']['setAttribute']('data-suggestion',_0x17f375,_0x176354),_0x3e7656['writer']['setAttribute']('data-author-id',_0x2bb83a,_0x176354),_0x3e7656['mapper']['bindElementToMarker'](_0x176354,_0x188aea['markerName']),_0x4f3daa&&(this['activeMarkers']['includes'](_0x188aea['markerName'])?_0x3e7656['writer']['addClass']('ck-suggestion-marker--active',_0x176354):_0x3e7656['writer']['removeClass']('ck-suggestion-marker--active',_0x176354));for(const _0x1a6de6 of _0x23b862['model']['createRangeIn'](_0x188aea['item'])['getItems']())_0x3e7656['consumable']['consume'](_0x1a6de6,_0x6129e5['name']);_0x3e7656['consumable']['consume'](_0x188aea['item'],_0x6129e5['name']);}};_0x23b862['conversion']['for']('dataDowncast')['add'](_0x48ebaf=>{_0x48ebaf['on']('addMarker:suggestion:formatBlock',(_0x152ea5,_0x4b58e5,_0x1b6352)=>{_0x1b6352['options']['showSuggestionHighlights']&&_0xdaf641({'showActiveMarkers':!0x1})(_0x152ea5,_0x4b58e5,_0x1b6352);},{'priority':'highest'});}),_0x23b862['conversion']['for']('dataDowncast')['add'](_0x46b0eb=>{_0x46b0eb['on']('addMarker:suggestion:attribute',(_0x2b6c5a,_0x3752af,_0x3128a3)=>{_0x3128a3['options']['showSuggestionHighlights']&&_0xdaf641({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b6c5a,_0x3752af,_0x3128a3);},{'priority':'highest'});}),_0x23b862['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x21f4aa,_0x17c890)=>{if(_0x17c890['options']['showSuggestionHighlights']){const {id:_0x34964e,authorId:_0xef308c}=this['_splitMarkerName'](_0x21f4aa);return _0x21f4aa['includes'](':split')||_0x21f4aa['includes'](':merge')?{'group':'suggestion','name':_0x21f4aa['substr'](0xb),'attributes':{'data-suggestion':_0x34964e,'data-author-id':_0xef308c}}:null;}return{'group':'suggestion','name':_0x21f4aa['substr'](0xb)};}}),_0x23b862['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xce94f7,{writer:_0x178b15})=>{let _0x21b86a='suggestion:'+_0xce94f7['getAttribute']('suggestion-type')+':'+_0xce94f7['getAttribute']('id');return _0xce94f7['getAttribute']('marker-count')&&(_0x21b86a+=':'+_0xce94f7['getAttribute']('marker-count')),_0x178b15['createElement']('$marker',{'data-name':_0x21b86a});}}),_0x23b862['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x279453=>{_0x279453['on']('addMarker:suggestion:formatBlock',_0xdaf641(),{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x4dc4e4=>{_0x4dc4e4['on']('addMarker:suggestion:attribute',_0xdaf641({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x34a139=>{_0x34a139['on']('removeMarker:suggestion:formatBlock',(_0x45d00d,_0x8b3b46,_0x2aaa22)=>{const _0x7579=_0x2aaa22['mapper']['markerNameToElements'](_0x8b3b46['markerName']);if(_0x7579){for(const _0x208495 of _0x7579)_0x208495['getCustomProperty']('addHighlight')||(_0x2aaa22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x208495),_0x2aaa22['writer']['removeAttribute']('data-suggestion',_0x208495),_0x2aaa22['writer']['removeAttribute']('data-author-id',_0x208495),_0x2aaa22['mapper']['unbindElementFromMarkerName'](_0x208495,_0x8b3b46['markerName']));}},{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x5f1f23=>{_0x5f1f23['on']('removeMarker:suggestion:attribute',(_0x33600a,_0x206e81,_0xcf27be)=>{const _0x1a4d50=_0xcf27be['mapper']['markerNameToElements'](_0x206e81['markerName']);if(!_0x1a4d50)return;const {id:_0x4f662e}=this['_splitMarkerName'](_0x206e81['markerName']),_0x1ad901=this['_suggestions']['get'](_0x4f662e),_0x350eaf=this['_getAttributeKey'](_0x1ad901);if(this['_isBlockAttribute'](_0x350eaf)){for(const _0x23e002 of _0x1a4d50)_0x23e002['getCustomProperty']('addHighlight')||(_0xcf27be['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23e002),_0xcf27be['writer']['removeAttribute']('data-suggestion',_0x23e002),_0xcf27be['writer']['removeAttribute']('data-author-id',_0x23e002),_0xcf27be['mapper']['unbindElementFromMarkerName'](_0x23e002,_0x206e81['markerName']));}},{'priority':'high'});}),_0x23b862['model']['document']['registerPostFixer'](_0x4dd547=>{let _0x1655bd=!0x1;const _0x237076=Array['from'](_0x23b862['model']['document']['differ']['getChangedMarkers']()),_0x38decd=new Set();for(const {name:_0x43d9da,data:_0x5a8137}of _0x237076){const {group:_0x47c5b1,type:_0x43aa87,subType:_0x306f98,id:_0xda07b1}=this['_splitMarkerName'](_0x43d9da);if('suggestion'!==_0x47c5b1)continue;const _0x12b64c=this['_suggestions']['get'](_0xda07b1);if(null!=_0x5a8137['newRange']){'formatInline'==_0x43aa87&&(_0x1655bd=_0x1655bd||Jt(_0x5a8137['newRange'],_0x43d9da,_0x4dd547,_0x23b862['model']['schema']));const _0xbc0177='attribute'==_0x43aa87&&this['_isBlockAttribute'](_0x306f98['split']('|')[0x0]);if(_0x5a8137['newRange']['isCollapsed']||'$graveyard'==_0x5a8137['newRange']['root']['rootName']||'formatBlock'==_0x43aa87&&!Ht(_0x5a8137['newRange'])||_0xbc0177&&!Ht(_0x5a8137['newRange'])||'deletion'==_0x43aa87&&!(!Lt(_0x915dee=_0x5a8137['newRange'])&&!function(_0x75ee5){return _0x75ee5['start']['parent']==_0x75ee5['end']['nodeBefore']&&_0x75ee5['start']['isAtEnd'];}(_0x915dee)))_0x4dd547['removeMarker'](_0x43d9da),_0x1655bd=!0x0;else{if(!_0x12b64c||!_0x12b64c['isInContent'])continue;if(_0x5a8137['newRange']&&_0x5a8137['oldRange']&&_0x5a8137['newRange']['isEqual'](_0x5a8137['oldRange']))continue;_0x38decd['add'](_0x12b64c);}}}var _0x915dee;return _0x38decd['size']>0x0&&(_0x1655bd=!!this['_joinWithAdjacentSuggestions'](_0x38decd)||_0x1655bd),_0x1655bd;}),_0x23b862['model']['document']['registerPostFixer'](_0x4a2d4c=>{let _0x568d59=!0x1;for(const _0x3befb6 of _0x23b862['model']['document']['differ']['getChanges']())if('insert'==_0x3befb6['type'])for(const _0x2eee82 of this['_suggestions']['values']()){if(_0x2eee82['isMultiRange']||!_0x2eee82['isInContent'])continue;const _0x9685e9='formatBlock'==_0x2eee82['type'],_0x4b2956=this['_getAttributeKey'](_0x2eee82),_0x18a17c=_0x4b2956&&this['_isBlockAttribute'](_0x4b2956);if(!_0x9685e9&&!_0x18a17c)continue;const _0x177c62=_0x2eee82['getFirstRange']();if(_0x177c62['start']['parent']!=_0x177c62['end']['parent']&&!_0x177c62['end']['isAtEnd']){const _0x528f5f=_0x23b862['model']['createPositionAt'](_0x177c62['start']['nodeAfter'],'end'),_0x2d88e8=_0x23b862['model']['createRange'](_0x177c62['start'],_0x528f5f);_0x4a2d4c['updateMarker'](_0x2eee82['getFirstMarker'](),{'range':_0x2d88e8}),_0x568d59=!0x0;}}return _0x568d59;}),_0x23b862['model']['document']['registerPostFixer'](_0xa00a30=>this['_processAttributeChanges'](_0xa00a30)),_0x23b862['model']['document']['registerPostFixer'](_0x14e7b1=>!_0x14e7b1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x14e7b1)),_0x23b862['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23b862['model']['document']['on']('change:data',(_0x390fa6,_0x4fde51)=>{if(!_0x4fde51['isLocal']||_0x4fde51['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d77e5=_0x23b862['model']['document']['differ']['getChanges']();if(0x0==_0x3d77e5['length'])return;const _0x4b9e55=[],_0x41def0=_0x3d77e5['filter'](_0x51ec0d=>'attribute'==_0x51ec0d['type']),_0x2acdc4=_0x3d77e5['filter'](_0x42cc7a=>'insert'==_0x42cc7a['type']&&'$text'!=_0x42cc7a['name']);for(const _0x5dccc2 of _0x41def0)this['_isRegisteredAttribute'](_0x5dccc2['attributeKey'])&&_0x4b9e55['push']({'key':_0x5dccc2['attributeKey'],'newValue':_0x5dccc2['attributeNewValue'],'oldValue':_0x5dccc2['attributeOldValue'],'range':qt(_0x5dccc2['range'],_0x23b862['model'])});for(const _0x6fda45 of _0x2acdc4){if('rename'!=_0x6fda45['action']&&'refresh'!=_0x6fda45['action'])continue;const _0x4b3ea6=zt(_0x6fda45['position']['nodeAfter'],_0x23b862['model']),_0x438625=_0x6fda45['before'];'rename'==_0x6fda45['action']&&_0x4b9e55['push']({'key':u,'newValue':_0x6fda45['name'],'oldValue':_0x438625['name'],'range':_0x4b3ea6});for(const [_0x54e43a,_0x2c59f0]of _0x438625['attributes']){if(!this['_isRegisteredAttribute'](_0x54e43a))continue;const _0x2745ed=_0x6fda45['attributes']['get'](_0x54e43a);_0x2c59f0!==_0x2745ed&&_0x4b9e55['push']({'key':_0x54e43a,'newValue':_0x2745ed,'oldValue':_0x2c59f0,'range':_0x4b3ea6});}for(const [_0x1f1216,_0x48d68d]of _0x6fda45['attributes'])this['_isRegisteredAttribute'](_0x1f1216)&&(_0x438625['attributes']['has'](_0x1f1216)||_0x4b9e55['push']({'key':_0x1f1216,'newValue':_0x48d68d,'oldValue':null,'range':_0x4b3ea6}));}0x0!=_0x4b9e55['length']&&_0x23b862['model']['enqueueChange'](_0x4fde51,_0x55f54d=>{const _0x27a981=_0x32b8bc();for(const {range:_0x581510,key:_0x4aada9,oldValue:_0x2a9b60,newValue:_0x11191b}of _0x4b9e55)this['markAttributeChange'](_0x581510,_0x4aada9,_0x2a9b60,_0x11191b,{'groupId':_0x27a981});this['_reduceExistingSuggestions'](_0x55f54d,_0x4b9e55);});},{'priority':'lowest'}),_0x23b862['model']['markers']['on']('update:suggestion',(_0x2df097,_0x33c30e,_0x4256c2)=>{if(null==_0x4256c2){const {id:_0x366f30}=this['_splitMarkerName'](_0x33c30e['name']),_0x2550d8=this['_suggestions']['get'](_0x366f30);_0x2550d8&&_0x2550d8['addMarkerName'](_0x33c30e['name']);}}),_0x23b862['model']['document']['on']('change:data',()=>{const _0x436df9=Array['from'](_0x23b862['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f9c60=>'suggestion'===this['_splitMarkerName'](_0x4f9c60['name'])['group']);if(0x0===_0x436df9['length'])return;_0x436df9['sort']((_0x16fa0e,_0x13b2b6)=>{const _0x25a8c7=_0x16fa0e['data']['oldRange'],_0x832a21=_0x13b2b6['data']['oldRange'];return null===_0x25a8c7&&null===_0x832a21?0x0:null===_0x25a8c7&&null!==_0x832a21?-0x1:null!==_0x25a8c7&&null===_0x832a21?0x1:_0x25a8c7['start']['isBefore'](_0x832a21['start'])?-0x1:0x1;});const _0x49e65b=new Set(),_0x335719=new Set();for(const {name:_0x433de3,data:_0x2c2103}of _0x436df9){const {id:_0x5a692c}=this['_splitMarkerName'](_0x433de3);if(null===_0x2c2103['oldRange']){const _0x4f8507=this['_handleNewSuggestionMarker'](_0x433de3);_0x335719['add'](_0x4f8507);}else{const _0x4c474d=this['_suggestions']['get'](_0x5a692c);null!==_0x2c2103['newRange']||_0x4c474d['isInContent']?(_0x49e65b['add'](_0x4c474d['head']),_0x335719['add'](_0x4c474d)):this['_removeSuggestion'](_0x4c474d);}}_0x335719['size']>0x0&&this['_refreshSuggestionsChain'](_0x335719);for(const _0x48ab43 of _0x49e65b)this['fire']('suggestionChanged',_0x48ab43);}),_0x23b862['model']['on']('applyOperation',(_0x213d44,_0x12760b)=>{const _0x507509=_0x12760b[0x0];if(!this['_suggestions']['size'])return;if(!_0x507509['isDocumentOperation'])return;if(_0x507509['batch']['isUndo']||!_0x507509['batch']['isLocal'])return;let _0x3fb963,_0x344ec8;switch(_0x507509['type']){case'insert':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['position']),_0x344ec8=_0x3fb963['getShiftedBy'](_0x507509['howMany']);break;case'split':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['splitPosition']),_0x344ec8=_0x23b862['model']['createPositionAt'](_0x507509['moveTargetPosition']);break;case'move':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['targetPosition']),_0x344ec8=_0x3fb963['getShiftedBy'](_0x507509['howMany']);break;default:return;}const _0x13eb54=_0x23b862['model']['createRange'](_0x3fb963,_0x344ec8);_0x23b862['model']['change'](()=>{for(const {suggestion:_0x431204,meta:_0x1e552c}of this['_findSuggestions'](_0x13eb54)){if(_0x431204['isMultiRange'])continue;if('formatInline'==_0x431204['type'])continue;const _0x3ae9d2=this['_getAttributeKey'](_0x431204);if(_0x3ae9d2&&this['_isBlockAttribute'](_0x3ae9d2)&&'split'!=_0x507509['type'])continue;const _0x398086=_0x431204['data']&&_0x431204['data']['multipleBlocks'];('formatBlock'!=_0x431204['type']||'split'==_0x507509['type']&&!_0x398086)&&(_0x1e552c['containsRangeInObject']||'insertion'==_0x431204['type']&&_0x1e552c['isOwn']||_0x431204['getFirstRange']()['containsRange'](_0x13eb54)&&this['_breakSuggestionMarker'](_0x431204,_0x3fb963,_0x344ec8));}});},{'priority':'lowest'}),_0x23b862['model']['on']('deleteContent',(_0x2a74b5,_0x27983c)=>{const _0x3cab6b=_0x27983c[0x0],_0x422672=_0x27983c[0x1];if(_0x422672&&_0x422672['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cab6b['isCollapsed'])return;const _0x18d107=_0x23b862['model']['schema'],{start:_0x23cc6b,end:_0x14d2a0}=_0x3cab6b['getFirstRange'](),_0x374971=_0x23cc6b['nodeAfter']&&_0x18d107['isLimit'](_0x23cc6b['nodeAfter'])?null:_0x18d107['getNearestSelectionRange'](_0x23cc6b,'forward'),_0x53de0c=_0x14d2a0['nodeBefore']&&_0x18d107['isLimit'](_0x14d2a0['nodeBefore'])?null:_0x18d107['getNearestSelectionRange'](_0x14d2a0,'backward'),_0x4a9d94=_0x23b862['model']['createRange'](_0x374971?_0x374971['start']:_0x23cc6b,_0x53de0c?_0x53de0c['end']:_0x14d2a0);_0x23b862['model']['change'](_0x1d37e4=>{this['markDeletion'](_0x4a9d94);const _0x534390=_0x23b862['model']['schema']['getNearestSelectionRange'](_0x4a9d94['start']);_0x3cab6b['is']('documentSelection')?_0x1d37e4['setSelection'](_0x534390):_0x3cab6b['setTo'](_0x534390);}),_0x2a74b5['stop']();},{'priority':_0x1180b2['normal']+0xa}),_0x23b862['model']['on']('insertContent',(_0x3f24fe,_0x12f100)=>{const _0x5e12bd=_0x12f100[_0x12f100['length']-0x1];_0x5e12bd&&_0x5e12bd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23b862['model']['change'](()=>{let _0x105a2d=_0x23b862['model']['insertContent'](_0x12f100[0x0],_0x12f100[0x1],_0x12f100[0x2],{'forceDefaultExecution':!0x0});if(!_0x105a2d)return;_0x3f24fe['return']=_0x105a2d['clone']();const _0x4fa7f4=_0x105a2d['end']['nodeBefore'],_0x340534=_0x23b862['model']['schema'];_0x4fa7f4&&_0x340534['isBlock'](_0x4fa7f4)&&!_0x340534['isObject'](_0x4fa7f4)&&(_0x105a2d=_0x23b862['model']['createRange'](_0x105a2d['start'],_0x23b862['model']['createPositionAt'](_0x4fa7f4,'end'))),this['markInsertion'](_0x105a2d);}),_0x3f24fe['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd6853f=new x(_0x23b862,this['_suggestions']);_0x23b862['commands']['add']('acceptSuggestion',_0xd6853f),this['enableCommand']('acceptSuggestion');const _0x55f64=new O(_0x23b862,this['_suggestions']);_0x23b862['commands']['add']('discardSuggestion',_0x55f64),this['enableCommand']('discardSuggestion'),_0x23b862['commands']['add']('acceptAllSuggestions',new R(_0x23b862,_0xd6853f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23b862['commands']['add']('discardAllSuggestions',new R(_0x23b862,_0x55f64,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23b862['commands']['add']('acceptSelectedSuggestions',new E(_0x23b862,_0xd6853f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23b862['commands']['add']('discardSelectedSuggestions',new E(_0x23b862,_0x55f64,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x59bb31=_0x23b862['plugins']['get']('CommentsRepository');this['listenTo'](_0x59bb31,'addComment',(_0x5c4001,{threadId:_0xf8b9cd})=>{const _0x3bb728=this['_suggestions']['get'](_0xf8b9cd);_0x3bb728&&_0x3bb728['commentThread']&&0x1===_0x3bb728['commentThread']['length']&&this['_updateSuggestionData'](_0xf8b9cd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x59bb31,'removeComment',(_0x2f220b,{threadId:_0x166a00})=>{const _0x3b6efb=this['_suggestions']['get'](_0x166a00);_0x3b6efb&&_0x3b6efb['commentThread']&&!_0x3b6efb['commentThread']['length']&&this['_updateSuggestionData'](_0x166a00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c4432){const _0x502825=_0x1f1b7d([0x46,0x33,0x49,0x7a,0x50,0x53,0x6a,0x55,0x48,0x47,0x31,0x4f,0x70,0x78,0x6c,0x58,0x72,0x6b,0x77,0x62,0x4e,0x76,0x6e,0x79,0x4c,0x59,0x43,0x56,0x4a,0x61,0x32,0x63,0x57,0x67,0x6f,0x64,0x74,0x36,0x71,0x37,0x5a,0x30,0x34,0x4b,0x68,0x41,0x65,0x66,0x44,0x42,0x52,0x45,0x54,0x75,0x38,0x6d,0x51,0x35,0x73,0x39,0x4d,0x69]),_0x5f403a=0x40ce757,_0x563057=0x40b800f^_0x5f403a,_0x189f97=window[_0x1f1b7d([0x44,0x61,0x74,0x65])][_0x1f1b7d([0x6e,0x6f,0x77])](),_0x175296=_0x5c4432[_0x1f1b7d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fbae4=new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45ff3d=>{_0x175296[_0x1f1b7d([0x6f,0x6e,0x63,0x65])](_0x1f1b7d([0x72,0x65,0x61,0x64,0x79]),_0x45ff3d);}),_0x2116e0={[_0x1f1b7d([0x6b,0x74,0x79])]:_0x1f1b7d([0x45,0x43]),[_0x1f1b7d([0x75,0x73,0x65])]:_0x1f1b7d([0x73,0x69,0x67]),[_0x1f1b7d([0x63,0x72,0x76])]:_0x1f1b7d([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1b7d([0x78])]:_0x1f1b7d([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]),[_0x1f1b7d([0x79])]:_0x1f1b7d([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]),[_0x1f1b7d([0x61,0x6c,0x67])]:_0x1f1b7d([0x45,0x53,0x32,0x35,0x36])},_0x316422=_0x175296[_0x1f1b7d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1b7d([0x67,0x65,0x74])](_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x301798(){let _0x29f4e2,_0x549439=null,_0x60615c=null;try{if(_0x316422==_0x1f1b7d([0x47,0x50,0x4c]))return _0x1f1b7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29f4e2=_0x453258(),!_0x29f4e2)return _0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29f4e2[_0x1f1b7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x60615c=_0x417178(_0x29f4e2[_0x1f1b7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29f4e2[_0x1f1b7d([0x6a,0x74,0x69])])),await _0x32b557()?_0x459526()?_0x2c13cd()?_0x1f1b7d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc2666b()?(_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1b7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x549439=_0x4e6e65(_0x1f1b7d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1b7d([0x74,0x72,0x69,0x61,0x6c])&&(_0x549439=_0x4e6e65(_0x1f1b7d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28a461()):_0x1f1b7d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1b7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11be90){return _0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c13cd(){const _0x596460=[_0x1f1b7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1b7d([0x74,0x72,0x69,0x61,0x6c])][_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x189f97/0x3e8:0xe10*_0x563057;return _0x29f4e2[_0x1f1b7d([0x65,0x78,0x70])]<_0x596460;}function _0x459526(){const _0x5c18ce=_0x29f4e2[_0x1f1b7d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5c18ce)return!0x1;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x2a])))return!0x0;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x54,0x43])))return!0x0;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x52,0x54,0x43]))){if(_0xbb927d())return!0x0;if(_0x252673()||_0x19e065())return!0x0;}return!0x1;}function _0xc2666b(){const _0x21ebd1=_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21ebd1||0x0==_0x21ebd1[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa4b96a}=new URL(window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21ebd1[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa4b96a))return!0x0;const _0x41363b=_0xa4b96a[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e]));return _0x21ebd1[_0x1f1b7d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48f493=>_0x48f493[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x2a])))[_0x1f1b7d([0x6d,0x61,0x70])](_0x131c46=>_0x131c46[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e])))[_0x1f1b7d([0x73,0x6f,0x6d,0x65])](_0x12d459=>_0x41363b[_0x1f1b7d([0x65,0x76,0x65,0x72,0x79])]((_0x262a1d,_0x61ae36)=>_0x12d459[_0x61ae36]===_0x262a1d||_0x12d459[_0x61ae36]===_0x1f1b7d([0x2a])));}function _0x28a461(){return _0x549439&&_0x60615c?new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3aef,_0x379a5c)=>{_0x549439[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x2c3aef,_0x379a5c),_0x60615c[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x3c95a9=>{_0x3c95a9!=_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])&&_0x2c3aef(_0x3c95a9);},_0x379a5c);}):_0x549439||_0x60615c||_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x417178(_0x225ff4,_0x56ba16){return new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405630=>{if(_0x492a4f())return _0x405630(_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]));_0x3af37b(),_0x175296[_0x1f1b7d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ddf39=!0x1;const _0x205857=_0x32b8bc();function _0x1dd3d6(_0x21f4e9){return!!_0x21f4e9&&(typeof _0x21f4e9===_0x1f1b7d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21f4e9===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21f4e9[_0x1f1b7d([0x74,0x68,0x65,0x6e])]===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21f4e9[_0x1f1b7d([0x63,0x61,0x74,0x63,0x68])]===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46403c(_0x6b6624){_0x2fe314(_0x6b6624)[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x50ab83=>{if(!_0x50ab83||_0x50ab83[_0x1f1b7d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1b7d([0x6f,0x6b]))return _0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ef5b0(_0xb53759(_0x205857+_0x56ba16))!=_0x50ab83[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0xd55668=>(_0x227160(),_0xd55668),()=>{const _0x294029=_0x4a1a66();return null==_0x294029?(_0x227160(),_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])):_0x1f1b7d(_0x189f97-_0x294029>(0x20006357^_0x5f403a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x405630)[_0x1f1b7d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x499aa8=0x43a09d7^_0x5f403a;function _0x227160(){const _0x5844f7=_0x1f1b7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ef5b0(_0xb53759(_0x225ff4)),_0x33f494=_0x258fe6(_0x4ef5b0(window[_0x1f1b7d([0x4d,0x61,0x74,0x68])][_0x1f1b7d([0x63,0x65,0x69,0x6c])](_0x189f97/_0x499aa8)));window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1b7d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5844f7,_0x33f494);}function _0x4a1a66(){const _0x104cba=_0x1f1b7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ef5b0(_0xb53759(_0x225ff4)),_0x6b291d=window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1b7d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x104cba);return _0x6b291d?window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x258fe6(_0x6b291d),0x10)*_0x499aa8:null;}function _0x2fe314(_0x247351){return new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa0550d,_0x49f476)=>{_0x247351[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0xa0550d,_0x49f476),window[_0x1f1b7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49f476,0x40d3397^_0x5f403a);});}}_0x175296[_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fa754,_0x4dfe29)=>{if(_0x4dfe29[0x0]!=_0x225ff4)return _0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dfe29[0x1]={..._0x4dfe29[0x1],[_0x1f1b7d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x205857};},{[_0x1f1b7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1b7d([0x68,0x69,0x67,0x68])}),_0x175296[_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a2312=>{_0x1dd3d6(_0x2a2312[_0x1f1b7d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ddf39=!0x0,_0x46403c(_0x2a2312[_0x1f1b7d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1b7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1b7d([0x6c,0x6f,0x77])}),_0x3fbae4[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>{_0x4ddf39||_0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x492a4f(){return _0x175296[_0x1f1b7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1b7d([0x76,0x69,0x65,0x77])][_0x1f1b7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1b7d([0x61,0x75,0x74,0x6f]);}function _0x3af37b(){_0x175296[_0x1f1b7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1b7d([0x76,0x69,0x65,0x77])][_0x1f1b7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1b7d([0x61,0x75,0x74,0x6f]);}}function _0x4e6e65(_0x1ea0de){const _0x3951c2=[new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5892ce=>setTimeout(_0x5892ce,0x405d99b^_0x5f403a)),_0x3fbae4[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48be06=>{let _0x43f3d3=0x0;_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x642b49,_0x5c7f92)=>{_0x5c7f92[0x0][_0x1f1b7d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43f3d3++,_0x43f3d3==(0x40ce6af^_0x5f403a)&&(_0x48be06(),_0x642b49[_0x1f1b7d([0x6f,0x66,0x66])]());});}))];return window[_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1b7d([0x72,0x61,0x63,0x65])](_0x3951c2)[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>_0x1ea0de);}async function _0x22a48f(){await _0x3fbae4,_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5eee22,_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5eee22,_0x175296[_0x1f1b7d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbb927d(){return _0x21598f(_0x1f1b7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2de62e(_0x1f1b7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1f1b7d([0x73,0x74,0x61,0x74,0x65])]==_0x1f1b7d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x252673(){return _0x21598f(_0x1f1b7d([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 _0x19e065(){return _0x21598f(_0x1f1b7d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5380d6(_0x3caf87){const _0x5479fc=_0x120c70();_0x175296[_0x5479fc]=_0x1f1b7d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3caf87,_0x3caf87!=_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])&&_0x22a48f();}function _0x120c70(){const _0x4631e4=window[_0x1f1b7d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1b7d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1b7d([0x6e,0x6f,0x77])]())[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1b7d([0x2e]),'');let _0xe71de3=_0x1f1b7d([0x46]);for(let _0x4c1297=0x0;_0x4c1297<_0x4631e4[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1297+=0x2){let _0x31c139=window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4631e4[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c1297,_0x4c1297+0x2));_0x31c139>=_0x502825[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c139-=_0x502825[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe71de3+=_0x502825[_0x31c139];}return _0xe71de3;}function _0x453258(){const _0x51facd=_0x316422[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e]));if(0x3!=_0x51facd[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a724(_0x51facd[0x1]);function _0x16a724(_0x3baed4){const _0x3b0663=_0x3b90fc(_0x3baed4);return _0x3b0663&&_0x450a9d()?_0x3b0663:null;function _0x450a9d(){const _0x29143c=_0x3b0663[_0x1f1b7d([0x6a,0x74,0x69])],_0x313a71=window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29143c[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29143c[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x380b18={..._0x3b0663,[_0x1f1b7d([0x6a,0x74,0x69])]:_0x29143c[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29143c[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x380b18[_0x1f1b7d([0x76,0x63])],_0xb53759(_0x380b18)==_0x313a71;}}}async function _0x32b557(){let _0x347697=!0x0;try{const _0x31d88b=_0x316422[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e])),[_0x4ab965,_0x188c70,_0x77ee6d]=_0x31d88b;return _0x571e1c(_0x4ab965),await _0x26f2b0(_0x4ab965,_0x188c70,_0x77ee6d),_0x347697;}catch(_0x52afcb){return!0x1;}function _0x571e1c(_0x4b219a){const _0x1d6f29=_0x3b90fc(_0x4b219a);_0x1d6f29&&_0x1d6f29[_0x1f1b7d([0x61,0x6c,0x67])]==_0x1f1b7d([0x45,0x53,0x32,0x35,0x36])||(_0x347697=!0x1);}async function _0x26f2b0(_0x158d12,_0xca0cf1,_0x44cdbc){const _0x5141b4=window[_0x1f1b7d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1b7d([0x66,0x72,0x6f,0x6d])](_0x99b752(_0x44cdbc),_0x3df3be=>_0x3df3be[_0x1f1b7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b478=new window[(_0x1f1b7d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1b7d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x158d12+_0x1f1b7d([0x2e])+_0xca0cf1),_0x89c7ba=window[_0x1f1b7d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1b7d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x89c7ba)return;const _0xc07385=await _0x89c7ba[_0x1f1b7d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1b7d([0x6a,0x77,0x6b]),_0x2116e0,{[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x45,0x43,0x44,0x53,0x41]),[_0x1f1b7d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1b7d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x89c7ba[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x45,0x43,0x44,0x53,0x41]),[_0x1f1b7d([0x68,0x61,0x73,0x68])]:{[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc07385,_0x5141b4,_0x47b478)||(_0x347697=!0x1);}}function _0x3b90fc(_0x26d01a){return _0x26d01a[_0x1f1b7d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1b7d([0x65,0x79]))?JSON[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65])](_0x99b752(_0x26d01a)):null;}function _0x99b752(_0x25e657){return window[_0x1f1b7d([0x61,0x74,0x6f,0x62])](_0x25e657[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1b7d([0x2b]))[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1b7d([0x2f])));}function _0xb53759(_0x3e3273){let _0xa40ca2=0x1505;function _0x106d81(_0x4fae86){for(let _0x34e6e4=0x0;_0x34e6e4<_0x4fae86[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34e6e4++){const _0x1b5b3f=_0x4fae86[_0x1f1b7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34e6e4);_0xa40ca2=(_0xa40ca2<<0x5)+_0xa40ca2+_0x1b5b3f,_0xa40ca2&=_0xa40ca2;}}function _0xa77491(_0x2dfe60){Array[_0x1f1b7d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dfe60)?_0x2dfe60[_0x1f1b7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa77491):_0x2dfe60&&typeof _0x2dfe60==_0x1f1b7d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1b7d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dfe60)[_0x1f1b7d([0x73,0x6f,0x72,0x74])]()[_0x1f1b7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3edbf2,_0x4ed89d])=>{_0x106d81(_0x3edbf2),_0xa77491(_0x4ed89d);}):_0x106d81(window[_0x1f1b7d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dfe60));}return _0xa77491(_0x3e3273),_0xa40ca2>>>0x0;}function _0x4ef5b0(_0x219b53){return _0x219b53[_0x1f1b7d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1b7d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1b7d([0x30]));}function _0x258fe6(_0x4651dc){return _0x4651dc[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1b7d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1b7d([0x6a,0x6f,0x69,0x6e])]('');}function _0x21598f(_0x2d019a){return _0x175296[_0x1f1b7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f1b7d([0x68,0x61,0x73])](_0x2d019a);}function _0x2de62e(_0x2a228e){return _0x175296[_0x1f1b7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f1b7d([0x67,0x65,0x74])](_0x2a228e);}function _0x5eee22(){}function _0x1f1b7d(_0x192266){return _0x192266['map'](_0xd7287d=>String['fromCharCode'](_0xd7287d))['join']('');}_0x5380d6(await _0x301798());}(this);}set['adapter'](_0x375548){if(this['_adapter'])throw new _0x2c0c45('track-changes-adapter-already-set',this);this['_adapter']=_0x375548;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b2bdb=!0x1,toJSON:_0x2bfb47=!0x1}={}){const _0x9dad14=[];for(const _0x2368a4 of this['_suggestions']['values']())_0x1b2bdb&&!_0x2368a4['isInContent']||_0x9dad14['push'](_0x2368a4);return _0x2bfb47?_0x9dad14['map'](_0xff5037=>_0xff5037['toJSON']()):_0x9dad14;}['getSuggestion'](_0x55b06b){const _0x59f749=this['_suggestions']['get'](_0x55b06b);if(!_0x59f749)throw new _0x2c0c45('track-changes-suggestion-not-found',this);return _0x59f749;}['hasSuggestion'](_0x8e0a32){return this['_suggestions']['has'](_0x8e0a32);}['addSuggestionData'](_0x262af0){const {authorId:_0x433ffe,id:_0x53fe4c,attributes:_0x348c21}=_0x262af0,[_0x49d191,_0x1b0892]=_0x262af0['type']['split'](':'),_0x50fb86=this['_suggestions']['get'](_0x53fe4c)||this['_createSuggestion'](_0x49d191,_0x1b0892,_0x53fe4c,_0x433ffe,_0x348c21);if(this['_addThreadToSuggestion'](_0x50fb86),this['_checkSuggestionCorrectness'](_0x50fb86,_0x49d191,_0x1b0892||null,_0x433ffe),_0x50fb86['createdAt']=_0x262af0['createdAt'],_0x50fb86['_isDataLoaded']=!0x0,_0x348c21&&_0x348c21['@external']){const _0x27a730=_0x348c21['@external'],_0xbceb58=this['_getExternalAuthor'](_0x27a730['authorName']);_0x50fb86['authoredAt']=_0x27a730['createdAt'],_0x50fb86['author']=_0xbceb58,_0x50fb86['isExternal']=!0x0;}else _0x50fb86['authoredAt']=_0x262af0['createdAt'];switch(_0x262af0['data']&&(_0x50fb86['data']=_0x262af0['data']),_0x262af0['attributes']&&(_0x50fb86['attributes']=_0x262af0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x50fb86['_saved']=!0x0),this['_suggestionState']['get'](_0x50fb86)){case'notReady':this['_suggestionState']['set'](_0x50fb86,'dataReady');break;case'markerReady':_0x50fb86['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x50fb86])),this['_refreshSuggestionsChain'](new Set([_0x50fb86])),this['_suggestionState']['set'](_0x50fb86,'ready'),this['fire']('suggestionLoaded',_0x50fb86)):this['_suggestionState']['set'](_0x50fb86,'removed');}return _0x50fb86;}['acceptSuggestion'](_0x1bbd80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bdcb9 of _0x1bbd80['getAllAdjacentSuggestions']())_0x2bdcb9['accept']();});});}['discardSuggestion'](_0x400f3f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x101577 of _0x400f3f['getAllAdjacentSuggestions']())_0x101577['discard']();});});}['enableCommand'](_0x456ec,_0x3f71ed){const _0x15be84=this['editor']['commands']['get'](_0x456ec);if(!_0x15be84)throw new _0x2c0c45('track-changes-command-not-found',this,{'commandName':_0x456ec});if(this['_enabledCommands']['has'](_0x15be84))throw new _0x2c0c45('track-changes-enable-command-twice',this,{'commandName':_0x456ec});this['_enabledCommands']['add'](_0x15be84),_0x3f71ed&&_0x15be84['on']('execute',(_0x48eb08,_0x1fbeaa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1fbeaa['length']>0x0&&_0x1fbeaa[_0x1fbeaa['length']-0x1]&&_0x1fbeaa[_0x1fbeaa['length']-0x1]['forceDefaultExecution']?_0x1fbeaa['pop']():(_0x48eb08['return']=_0x3f71ed((..._0xd6fb01)=>_0x15be84['execute'](..._0xd6fb01,{'forceDefaultExecution':!0x0}),..._0x1fbeaa),_0x48eb08['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4364a5){let _0x43eb43,_0x446ef0;const _0x2590ea=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43eb43=_0x4364a5();}catch(_0x4e61d6){_0x446ef0=_0x4e61d6;}return _0x2590ea||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x446ef0&&_0x2c0c45['rethrowUnexpectedError'](_0x446ef0,this),_0x43eb43;}['markInsertion'](_0x127d48,_0x55db02=null,_0x247783={}){if(_0x127d48['isCollapsed'])return null;const _0x27a643=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x247783['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5963fc,meta:_0x435983}of this['_findSuggestions'](_0x127d48,'insertion'))if(_0x435983['isOwn']){if(!_0x435983['isNextTo']){if(_0x435983['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5963fc,_0x247783))continue;return _0x5963fc;}if(Xt(_0x5963fc,_0x247783))return _0x5963fc;this['_breakSuggestionMarker'](_0x5963fc,_0x127d48['start'],_0x127d48['end']);break;}if(_0x55db02==_0x5963fc['subType']&&Xt(_0x5963fc,_0x247783)){const _0x1c1c18=_0x5963fc['getFirstRange']();return _0x1c1c18['start']['isEqual'](_0x127d48['end'])?this['_setSuggestionRange'](_0x5963fc,this['_model']['createRange'](_0x127d48['start'],_0x1c1c18['end'])):this['_setSuggestionRange'](_0x5963fc,this['_model']['createRange'](_0x1c1c18['start'],_0x127d48['end'])),_0x5963fc;}}const _0x58fd68=_0x32b8bc(),_0x482da9=_0x27a643['id'],_0x275a84=_0x55db02?'insertion:'+_0x55db02:'insertion',_0x4d849=this['_setSuggestionData']({'id':_0x58fd68,'type':_0x275a84,'createdAt':new Date(),'authorId':_0x482da9,'attributes':_0x247783});return this['_addSuggestionMarker'](_0x275a84,_0x58fd68,_0x482da9,_0x127d48),_0x4d849;}['markMultiRangeInsertion'](_0x4ca222,_0x3be3a0='multi',_0x33be38={}){const _0x55f9f8=this['editor']['plugins']['get']('Users')['me'],_0x10c92f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3be3a0,'join');this['_trackingSessionId']&&(_0x33be38['trackingSessionId']=this['_trackingSessionId']);for(const _0x2c9eb1 of this['getSuggestions']())if(_0x2c9eb1['author']['id']==_0x55f9f8['id']&&'insertion'==_0x2c9eb1['type']&&_0x2c9eb1['subType']==_0x3be3a0&&Xt(_0x2c9eb1,_0x33be38)&&(_0x10c92f(_0x2c9eb1['getRanges'](),_0x4ca222)||_0x10c92f(_0x4ca222,_0x2c9eb1['getRanges']()))){for(const _0x1b2a7a of _0x4ca222)_0x2c9eb1['addRange'](_0x1b2a7a);return _0x2c9eb1;}for(const {suggestion:_0x5d30d9,meta:_0x253ae2}of this['_findSuggestions'](_0x4ca222,'insertion')){if(!_0x253ae2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x253ae2['containsRangeInObject'])continue;if(!Xt(_0x5d30d9,_0x33be38))continue;let _0x97a861=!0x0;for(const _0x3d14c2 of _0x5d30d9['getRanges']())for(const _0x204bfd of _0x4ca222)if(!_0x3d14c2['containsRange'](_0x204bfd)){_0x97a861=!0x1;break;}if(_0x97a861)return _0x5d30d9;}const _0x15bf98=_0x32b8bc(),_0x149cda=_0x55f9f8['id'],_0x3afa32='insertion:'+_0x3be3a0,_0x398d79=this['_setSuggestionData']({'id':_0x15bf98,'type':_0x3afa32,'createdAt':new Date(),'authorId':_0x149cda,'attributes':_0x33be38});for(const _0x2ad330 of _0x4ca222)this['_addSuggestionMarker'](_0x3afa32,_0x15bf98,_0x149cda,_0x2ad330,o['getMultiRangeId']());return _0x398d79;}['markInlineFormat'](_0x5989d2,_0x49f34f,_0x19e391=null,_0x591a07={}){if(_0x19e391=_0x19e391||Kt(_0x49f34f),_0x5989d2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x591a07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37683b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19e391,'accept');return this['forceDefaultExecution'](()=>_0x37683b([_0x5989d2],_0x49f34f,_0x591a07)),null;}const _0x56585c=this['editor']['plugins']['get']('Users')['me'],_0x508e0a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x239939,meta:_0x112b85}of this['_findSuggestions'](_0x5989d2,'insertion'))_0x112b85['isOwn']&&!_0x112b85['isInsideObject']&&_0x508e0a['push'](..._0x239939['getRanges']());}const _0x5adba8=function(_0xf7f200,_0x3501d6){const _0x589ba3=[];for(const _0x114282 of _0x3501d6){const _0x4e7ff3=_0xf7f200['getIntersection'](_0x114282);_0x4e7ff3&&_0x589ba3['push'](_0x4e7ff3);}return _0x589ba3;}(_0x5989d2,_0x508e0a),_0xe7b452=function(_0x369234,_0x1900d4){const _0xc5c40d=[_0x369234];for(const _0x57f2d0 of _0x1900d4){let _0x22d78d=0x0;for(;_0x22d78d<_0xc5c40d['length'];){const _0x468f7f=_0xc5c40d[_0x22d78d]['getDifference'](_0x57f2d0);_0xc5c40d['splice'](_0x22d78d,0x1,..._0x468f7f),_0x22d78d+=_0x468f7f['length'];}}return _0xc5c40d;}(_0x5989d2,_0x508e0a);_0x5adba8['length']&&this['_model']['change'](()=>{for(const _0x14bf13 of _0x5adba8){const _0x1d0578=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19e391,'accept');this['forceDefaultExecution'](()=>_0x1d0578([_0x14bf13],_0x49f34f,_0x591a07));}});for(const _0x399fd7 of _0xe7b452){let _0x26135a=null,_0x2fc07f=_0x399fd7['start'],_0x4bab4f=_0x399fd7['end'];for(const {suggestion:_0x1fb01c,meta:_0x2d382e}of this['_findSuggestions'](_0x399fd7,'formatInline')){if(!_0x2d382e['isOwn'])continue;if(_0x1fb01c['subType']!=_0x19e391)continue;if(!Xt(_0x1fb01c,_0x591a07))continue;const _0x33a831=_0x1fb01c['getFirstRange']();if(_0x33a831['containsRange'](_0x399fd7,!0x0))return null;_0x2fc07f=_0x2fc07f['isBefore'](_0x33a831['start'])?_0x2fc07f:_0x33a831['start'],_0x4bab4f=_0x4bab4f['isAfter'](_0x33a831['end'])?_0x4bab4f:_0x33a831['end'],_0x26135a?_0x33a831['start']['isBefore'](_0x26135a['getFirstRange']()['start'])?(_0x26135a['removeMarkers'](),_0x26135a=_0x1fb01c):_0x1fb01c['removeMarkers']():_0x26135a=_0x1fb01c;}const _0x4bf28f=this['_model']['createRange'](_0x2fc07f,_0x4bab4f);if(_0x26135a)this['_setSuggestionRange'](_0x26135a,_0x4bf28f);else{const _0x42792f=_0x32b8bc(),_0x48e2c3=_0x56585c['id'];this['_setSuggestionData']({'id':_0x42792f,'type':'formatInline:'+_0x19e391,'data':_0x49f34f,'createdAt':new Date(),'authorId':_0x48e2c3,'attributes':_0x591a07}),this['_addSuggestionMarker']('formatInline:'+_0x19e391,_0x42792f,_0x48e2c3,_0x4bf28f);}}return null;}['markBlockFormat'](_0x42d4df,_0x8423db,_0x18da58=[],_0x1a1044=null,_0x4768ac={}){_0x8423db['formatGroupId']||(_0x8423db['formatGroupId']=_0x8423db['commandName']),_0x8423db['multipleBlocks']=_0x42d4df['is']('range'),_0x1a1044=_0x1a1044||Kt(_0x8423db);const _0x444dc1=_0x18da58['map'](_0x1d50c4=>zt(_0x1d50c4,this['_model'])),_0x10efa2=_0x42d4df['is']('range')?_0x42d4df:zt(_0x42d4df,this['_model']);if(this['_trackingSessionId']&&(_0x4768ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c95aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a1044,'accept');return this['forceDefaultExecution'](()=>_0x2c95aa([_0x10efa2],_0x8423db,_0x4768ac)),null;}_0x444dc1['push'](_0x10efa2);let _0x217a73=!0x0;for(const _0xdf908e of _0x444dc1)if(!this['_rangeIsInLocalUserInsertion'](_0xdf908e)){_0x217a73=!0x1;break;}if(_0x217a73&&'always'!==this['_trackFormatChanges']){const _0x31be7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a1044,'accept');return this['forceDefaultExecution'](()=>_0x31be7f([_0x10efa2],_0x8423db,_0x4768ac)),null;}let _0x55f679=null,_0x197931=_0x10efa2['start'],_0x540a73=_0x10efa2['end'];for(const {suggestion:_0x39eace,meta:_0x332ef8}of this['_findSuggestions'](_0x10efa2,'formatBlock')){if(!_0x332ef8['isOwn'])continue;if(_0x332ef8['isNextTo']||_0x332ef8['containsRangeInObject']||_0x332ef8['isInsideObject'])continue;if(_0x39eace['data']['formatGroupId']!=_0x8423db['formatGroupId'])continue;if(!Xt(_0x39eace,_0x4768ac))continue;const _0x16ed4d=_0x39eace['getFirstRange']();if(_0x39eace['subType']==_0x1a1044){if(_0x16ed4d['containsRange'](_0x10efa2,!0x0))return null;_0x197931=_0x197931['isBefore'](_0x16ed4d['start'])?_0x197931:_0x16ed4d['start'],_0x540a73=_0x540a73['isAfter'](_0x16ed4d['end'])?_0x540a73:_0x16ed4d['end'],_0x55f679?_0x16ed4d['start']['isBefore'](_0x55f679['getFirstRange']()['start'])?(_0x55f679['removeMarkers'](),_0x55f679=_0x39eace):_0x39eace['removeMarkers']():_0x55f679=_0x39eace;}else{const _0x195c2c=_0x10efa2['getIntersection'](_0x16ed4d);this['_cutOutSuggestionMarker'](_0x39eace,_0x195c2c);}}const _0x3ff0d1=this['editor']['plugins']['get']('Users')['me'],_0x2f9171=_0x32b8bc(),_0x47d75e=_0x3ff0d1['id'];if(_0x55f679)return this['_setSuggestionRange'](_0x55f679,this['_model']['createRange'](_0x197931,_0x540a73)),_0x55f679;{const _0x20c5e8=this['_setSuggestionData']({'id':_0x2f9171,'type':'formatBlock:'+_0x1a1044,'data':_0x8423db,'createdAt':new Date(),'authorId':_0x47d75e,'attributes':_0x4768ac});return this['_addSuggestionMarker']('formatBlock:'+_0x1a1044,_0x2f9171,_0x47d75e,this['_model']['createRange'](_0x197931,_0x540a73)),_0x20c5e8;}}['markMultiRangeBlockFormat'](_0x212856,_0x2167f6,_0x326e79=[],_0x487587=null,_0x2de843={}){_0x2167f6['formatGroupId']||(_0x2167f6['formatGroupId']=_0x2167f6['commandName']);const _0x39a762=_0x212856[0x0];_0x2167f6['multipleBlocks']=_0x39a762['is']('range'),_0x487587=_0x487587||Kt(_0x2167f6);const _0x1656e8=_0x326e79['map'](_0xb6b67e=>zt(_0xb6b67e,this['_model'])),_0xb16483=_0x39a762['is']('range')?_0x212856:_0x212856['map'](_0x40f64a=>zt(_0x40f64a,this['_model']));if(this['_trackingSessionId']&&(_0x2de843['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x72d8bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'accept');return this['forceDefaultExecution'](()=>_0x72d8bf(_0xb16483,_0x2167f6,_0x2de843)),null;}_0x1656e8['push'](..._0xb16483);let _0x1dacd5=!0x0;for(const _0x233cc4 of _0x1656e8)if(!this['_rangeIsInLocalUserInsertion'](_0x233cc4)){_0x1dacd5=!0x1;break;}if(_0x1dacd5&&'always'!==this['_trackFormatChanges']){const _0x3fec8e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'accept');return this['forceDefaultExecution'](()=>_0x3fec8e(_0xb16483,_0x2167f6,_0x2de843)),null;}const _0x41d765=this['editor']['plugins']['get']('Users')['me'];for(const _0x5015ec of this['getSuggestions']()){if(_0x5015ec['author']['id']!=_0x41d765['id'])continue;if('formatBlock'!=_0x5015ec['type']||_0x5015ec['data']['formatGroupId']!=_0x2167f6['formatGroupId'])continue;if(!Xt(_0x5015ec,_0x2de843))continue;const _0x2639e0=_0x5015ec['subType']==_0x487587;for(let _0x2a0375=0x0;_0x2a0375<_0xb16483['length'];_0x2a0375++){const _0x3fdc78=_0xb16483[_0x2a0375];for(const _0x2aa97b of _0x5015ec['getMarkers']()){const _0x51c3db=_0x2aa97b['getRange']();if(_0x3fdc78['isEqual'](_0x51c3db)){_0x2639e0?(_0xb16483['splice'](_0x2a0375,0x1),_0x2a0375--):_0x5015ec['removeMarker'](_0x2aa97b['name']);break;}}}}if(0x0==_0xb16483['length'])return null;const _0x2998a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'join');for(const _0x23720f of this['getSuggestions']())if(_0x23720f['author']['id']==_0x41d765['id']&&'formatBlock'==_0x23720f['type']&&_0x23720f['data']['formatGroupId']==_0x2167f6['formatGroupId']&&_0x23720f['subType']==_0x487587&&Xt(_0x23720f,_0x2de843)&&(_0x2998a4(_0x23720f['getRanges'](),_0xb16483)||_0x2998a4(_0xb16483,_0x23720f['getRanges']()))){for(const _0x19017e of _0xb16483)_0x23720f['addRange'](_0x19017e);return _0x23720f;}const _0x4a7ac0=_0x32b8bc(),_0x245611=_0x41d765['id'],_0x3f9722='formatBlock:'+_0x487587,_0x1f5ece=this['_setSuggestionData']({'id':_0x4a7ac0,'type':_0x3f9722,'data':_0x2167f6,'createdAt':new Date(),'authorId':_0x245611,'attributes':_0x2de843});for(const _0xaacd0d of _0xb16483)this['_addSuggestionMarker'](_0x3f9722,_0x4a7ac0,_0x245611,_0xaacd0d,o['getMultiRangeId']());return _0x1f5ece;}['markDeletion'](_0xc18315,_0x14638b=null,_0x1fc0d2={}){if(_0xc18315['isCollapsed'])return null;const _0x4915b3=this['editor']['plugins']['get']('Users')['me'],_0xb536e5=new _0x2daf6a(_0xc18315['start'],_0xc18315['end']);this['_trackingSessionId']&&(_0x1fc0d2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xff484e,meta:_0xd8f443}of this['_findSuggestions'](_0xb536e5,'insertion'))if(_0xd8f443['isOwn']&&!_0xd8f443['isNextTo']){if(_0xff484e['isMultiRange']){const _0x810b4=_0xff484e['getRanges']()['filter'](_0x463583=>'$graveyard'!=_0x463583['root']['rootName']);_0x810b4['every'](_0x56b574=>_0xb536e5['containsRange'](_0x56b574,!0x0))&&_0xff484e['discard']();if(_0x810b4['some'](_0xa5e506=>_0xa5e506['containsRange'](_0xb536e5,!0x0))){const _0x1d601d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14638b,'accept');return this['forceDefaultExecution'](()=>_0x1d601d([_0xb536e5],null,_0x1fc0d2)),null;}}else{const _0x1773bc=_0xb536e5['getIntersection'](_0xff484e['getFirstRange']());null!==_0x1773bc&&_0xff484e['_onDiscard']([_0x1773bc],null,_0x1fc0d2);}}if(_0xb536e5['detach'](),_0xb536e5['isCollapsed']||'$graveyard'==_0xb536e5['root']['rootName'])return null;let _0x145147=null,_0x54b4af=_0xb536e5['start'],_0x5abed9=_0xb536e5['end'];const _0x6434b6=this['_findSuggestions'](_0xb536e5,'deletion');for(const {suggestion:_0x3b217f,meta:_0x5aa4b7}of _0x6434b6){const _0x22b141=this['_model']['createRange'](_0x54b4af,_0x5abed9);if(_0x5aa4b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5aa4b7['containsRangeInObject']&&!_0x5aa4b7['isInsideObject'])){if(_0x3b217f['isMultiRange']){if(!Xt(_0x3b217f,_0x1fc0d2))continue;let _0x114a66=!0x0;for(const _0x3ba3df of _0x3b217f['getRanges']()){if(_0x3ba3df['containsRange'](_0x22b141,!0x0))return _0x3b217f;_0x22b141['containsRange'](_0x3ba3df)||(_0x114a66=!0x1);}_0x114a66&&_0x3b217f['discard']();}else{const _0x5c7679=_0x3b217f['getFirstRange']();if(_0x5c7679['containsRange'](_0x22b141,!0x0))return _0x3b217f;if(!Xt(_0x3b217f,_0x1fc0d2)){_0x22b141['containsRange'](_0x5c7679)?_0x3b217f['removeMarkers']():_0x5c7679['containsPosition'](_0x54b4af)?_0x54b4af=_0x5c7679['end']:_0x5c7679['containsPosition'](_0x5abed9)&&(_0x5abed9=_0x5c7679['start']);continue;}_0x54b4af=_0x54b4af['isBefore'](_0x5c7679['start'])?_0x54b4af:_0x5c7679['start'],_0x5abed9=_0x5abed9['isAfter'](_0x5c7679['end'])?_0x5abed9:_0x5c7679['end'],_0x1fc0d2=Object['assign']({},_0x3b217f['attributes']),_0x145147?_0x5c7679['start']['isBefore'](_0x145147['getFirstRange']()['start'])?(_0x145147['removeMarkers'](),_0x145147=_0x3b217f):_0x3b217f['removeMarkers']():_0x145147=_0x3b217f;}}}if(_0x145147)return this['_setSuggestionRange'](_0x145147,this['_model']['createRange'](_0x54b4af,_0x5abed9)),_0x145147;{const _0x4a1a85=_0x32b8bc(),_0xb11fad=this['_model']['createRange'](_0x54b4af,_0x5abed9),_0x1a12f1=_0x4915b3['id'],_0x1894a5=_0x14638b?'deletion:'+_0x14638b:'deletion',_0x571edb=this['_setSuggestionData']({'id':_0x4a1a85,'type':_0x1894a5,'createdAt':new Date(),'authorId':_0x1a12f1,'attributes':_0x1fc0d2});return this['_addSuggestionMarker'](_0x1894a5,_0x4a1a85,_0x1a12f1,_0xb11fad),_0x571edb;}}['markMultiRangeDeletion'](_0x20a902,_0x26065c='multi',_0x4b22c7={}){const _0x190f41=this['editor']['plugins']['get']('Users')['me'],_0x357d83=_0x20a902['map'](_0x72c5=>new _0x2daf6a(_0x72c5['start'],_0x72c5['end'])),_0x39b1a5=new Set();this['_trackingSessionId']&&(_0x4b22c7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3e0b7b,meta:_0x46f845}of this['_findSuggestions'](_0x357d83,'insertion'))_0x46f845['isOwn']&&!_0x46f845['isNextTo']&&_0x39b1a5['add'](_0x3e0b7b);for(const _0x2a9565 of _0x39b1a5)if(_0x2a9565['isMultiRange']){const _0x2f0e40=_0x2a9565['getRanges']();(!_0x2a9565['attributes']||!_0x2a9565['attributes']['skipNestingCheck'])&&(_0x2f0e40['every'](_0x76ffc6=>_0x357d83['some'](_0x4f05c4=>_0x4f05c4['containsRange'](_0x76ffc6,!0x0)))&&_0x2a9565['discard']());if(_0x357d83['every'](_0x5a69c7=>_0x2f0e40['some'](_0x5b7e29=>_0x5b7e29['containsRange'](_0x5a69c7,!0x0)))){const _0x11ed10=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'accept');return this['forceDefaultExecution'](()=>_0x11ed10(_0x20a902,null,_0x4b22c7)),null;}}else{const _0x468376=_0x2a9565['getFirstRange']();_0x357d83['some'](_0x53fcba=>_0x53fcba['containsRange'](_0x468376,!0x0))&&_0x2a9565['discard']();if(_0x357d83['every'](_0x1afebc=>_0x468376['containsRange'](_0x1afebc,!0x0))){const _0x1c8068=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'accept');return this['forceDefaultExecution'](()=>_0x1c8068(_0x357d83,null,_0x4b22c7)),null;}}const _0x1f35c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'join');let _0x4d9dd4=null;for(const _0x22c69d of this['getSuggestions']())if(_0x22c69d['author']['id']==_0x190f41['id']&&_0x22c69d['isInContent']&&'deletion'==_0x22c69d['type']&&_0x22c69d['subType']==_0x26065c&&Xt(_0x22c69d,_0x4b22c7)&&(_0x1f35c3(_0x22c69d['getRanges'](),_0x357d83)||_0x1f35c3(_0x357d83,_0x22c69d['getRanges']()))){if(_0x4d9dd4){if(_0x22c69d['commentThread']&&_0x22c69d['commentThread']['length'])continue;for(const _0x334367 of _0x22c69d['getRanges']())_0x4d9dd4['isIntersectingWithRange'](_0x334367)||_0x4d9dd4['addRange'](_0x334367);_0x22c69d['removeMarkers']();}else{_0x4d9dd4=_0x22c69d;for(const _0x282330 of _0x357d83)_0x22c69d['isIntersectingWithRange'](_0x282330)||_0x22c69d['addRange'](_0x282330);}}if(_0x4d9dd4)return _0x4d9dd4;_0x39b1a5['clear']();for(const {suggestion:_0x2480ed,meta:_0x131ac6}of this['_findSuggestions'](_0x357d83,'deletion'))_0x131ac6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x131ac6['containsRangeInObject']&&!_0x131ac6['isInsideObject'])&&Xt(_0x2480ed,_0x4b22c7)&&_0x39b1a5['add'](_0x2480ed);for(const _0x4b67c2 of _0x39b1a5){const _0x4536ca=_0x4b67c2['getRanges']();if(!_0x4b22c7||!_0x4b22c7['skipNestingCheck']){if(_0x357d83['every'](_0x596025=>_0x4536ca['some'](_0x567885=>_0x567885['containsRange'](_0x596025,!0x0))))return _0x4b67c2;}(!_0x4b67c2['attributes']||!_0x4b67c2['attributes']['skipNestingCheck'])&&(_0x4536ca['every'](_0xd63ad1=>_0x357d83['some'](_0x44e5b7=>_0x44e5b7['containsRange'](_0xd63ad1,!0x0)))&&_0x4b67c2['discard']());}const _0x1d1d1d=_0x32b8bc(),_0x32354e=_0x190f41['id'],_0x2700e1='deletion:'+_0x26065c,_0x475eae=this['_setSuggestionData']({'id':_0x1d1d1d,'type':_0x2700e1,'createdAt':new Date(),'authorId':_0x32354e,'attributes':_0x4b22c7});for(const _0x415289 of _0x357d83)_0x415289['detach'](),_0x415289['isCollapsed']||'$graveyard'==_0x415289['root']['rootName']||this['_addSuggestionMarker'](_0x2700e1,_0x1d1d1d,_0x32354e,_0x415289,o['getMultiRangeId']());return _0x475eae;}['markAttributeChange'](_0x1bdc2a,_0x596dc9,_0x10dcc6,_0xdcffd9,_0x2d1ac8){if(_0x1bdc2a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe94ffb=this['editor']['plugins']['get']('Users')['me']['id'],_0x389132=Array['from'](this['_suggestions']['values']())['filter'](_0x44d27b=>'attribute'==_0x44d27b['type']&&_0x44d27b['data']['key']==_0x596dc9&&_0x44d27b['isIntersectingWithRange'](_0x1bdc2a));if(this['_trackingSessionId']&&(_0x2d1ac8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x573d1c=this['_findSuggestions'](_0x1bdc2a,'insertion')['filter'](({meta:_0x5da79b})=>_0x5da79b['isOwn']&&!_0x5da79b['isInsideObject']&&!_0x5da79b['isNextTo'])['map'](({suggestion:_0x477469})=>_0x477469);_0x389132['unshift'](..._0x573d1c);}const _0x402fac=new Map([[_0x1bdc2a,_0x10dcc6]]);for(const _0x334ff3 of _0x389132){const _0x4a8de5='attribute'==_0x334ff3['type']?_0x334ff3['data']['oldValue']:void 0x0,_0x9e9329=_0x334ff3['getFirstRange'](),_0x52afab=Array['from'](_0x402fac['keys']())['find'](_0x372805=>_0x372805['isIntersecting'](_0x9e9329));if(!_0x52afab)continue;const _0xc74f18=_0x52afab['getDifference'](_0x9e9329);this['_isBlockAttribute'](_0x596dc9)&&'insertion'==_0x334ff3['type']&&0x0!=_0xc74f18['length']||(_0x402fac['delete'](_0x52afab),_0xc74f18['forEach'](_0x4899c7=>{_0x402fac['set'](_0x4899c7,_0x10dcc6);}),'insertion'!=_0x334ff3['type']&&_0x4a8de5!=_0xdcffd9&&_0x402fac['set'](_0x52afab['getIntersection'](_0x9e9329),_0x4a8de5));}const _0x2272a7=[];for(const [_0x582c5d,_0x3737fc]of _0x402fac){const _0x2c3ce0=_0x32b8bc(),_0x336e92={'key':_0x596dc9,'oldValue':_0x3737fc,'newValue':_0xdcffd9};_0x596dc9['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':_0x596dc9});const _0x32df4c=('attribute:'+(_0x596dc9+'|'+Kt({'newValue':_0xdcffd9})))['substring'](0x0,0x3c),_0x390d0e=this['_setSuggestionData']({'id':_0x2c3ce0,'type':_0x32df4c,'data':_0x336e92,'createdAt':new Date(),'authorId':_0xe94ffb,'attributes':_0x2d1ac8});_0x2272a7['push'](_0x390d0e),this['_addSuggestionMarker'](_0x32df4c,_0x2c3ce0,_0xe94ffb,_0x582c5d);}return _0x2272a7;}['enableDefaultAttributesIntegration'](_0x1edb88){this['enableCommand'](_0x1edb88,(_0x55bbb6,..._0x299b63)=>{this['_recordAttributeChanges'](()=>{_0x55bbb6(..._0x299b63);});});}['registerBlockAttribute'](_0x37fc1f){this['_blockAttributeKeys']['add'](_0x37fc1f);}['registerInlineAttribute'](_0x3cc9b2){this['_inlineAttributeKeys']['add'](_0x3cc9b2);}['startTrackingSession'](_0x622ba0){return this['_trackingSessionId']=void 0x0!==_0x622ba0?_0x622ba0:_0x32b8bc(),this['_trackingSessionId'];}['_getAttributeKey'](_0x22915d){return'attribute'==_0x22915d['type']?_0x22915d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3bc321,_0x8a610c){const _0x3cb3a3=_0x3bc321['getFirstMarker']();this['_model']['change'](_0x1dc405=>{_0x1dc405['updateMarker'](_0x3cb3a3,{'range':_0x8a610c});});}['_addThreadToSuggestion'](_0x15c415){const _0x19bd53=_0x15c415['id'],_0x7c9853=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x19bd53)||this['_commentsRepository']['addCommentThread']({'channelId':_0x7c9853,'threadId':_0x19bd53,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c153c=this['_commentsRepository']['getCommentThread'](_0x19bd53);_0x1c153c['unbind']('isRemovable'),_0x1c153c['isRemovable']=!0x1,_0x15c415['commentThread']=_0x1c153c;}['_checkSuggestionCorrectness'](_0xb0b876,_0x233db9,_0x51d772,_0x451e5f){if(_0xb0b876['type']!=_0x233db9||_0xb0b876['subType']!=_0x51d772||_0xb0b876['creator']['id']!=_0x451e5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c0c45('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2beaca,_0x5b7877){const _0x2d01f0=_0x2beaca['getFirstRange']();if(_0x5b7877['isEqual'](_0x2d01f0))_0x2beaca['removeMarkers']();else{if(_0x2d01f0['containsRange'](_0x5b7877)){const _0x38b1a0=this['_model']['createPositionAt'](_0x5b7877['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x2d01f0['start'],_0x38b1a0));const _0x17a240=_0x32b8bc(),_0x4f7269=_0x2beaca['creator']['id'],_0x125703=_0x2beaca['type']+':'+_0x2beaca['subType'];this['_setSuggestionData']({'id':_0x17a240,'type':_0x125703,'createdAt':new Date(),'authorId':_0x4f7269,'data':_0x2beaca['data'],'attributes':_0x2beaca['attributes']});const _0xe799b2=this['_model']['createPositionAt'](_0x5b7877['end']['parent'],'after'),_0x5eb417=this['_model']['createRange'](_0xe799b2,_0x2d01f0['end']);this['_addSuggestionMarker'](_0x125703,_0x17a240,_0x4f7269,_0x5eb417);}else{if(_0x2d01f0['containsPosition'](_0x5b7877['start'])){const _0xbb9d0c=this['_model']['createPositionAt'](_0x5b7877['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x2d01f0['start'],_0xbb9d0c));}else{const _0x135fef=this['_model']['createPositionAt'](_0x5b7877['end']['parent'],'after');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x135fef,_0x2d01f0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4fa919){for(const {suggestion:_0x959890,meta:_0x1b110b}of this['_findSuggestions'](_0x4fa919,'insertion')){if(!_0x1b110b['isOwn'])continue;const _0x47ce34=_0x959890['getRanges']();for(const _0x37f17b of _0x47ce34)if(!_0x4fa919['getDifference'](_0x37f17b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xba43a4){const _0x305776=this['editor']['plugins']['get']('Users')['getUser'](_0xba43a4);if(!_0x305776)throw new _0x2c0c45('track-changes-user-not-found',this);return _0x305776;}['_getExternalAuthor'](_0x241a91){const _0x1ea1ad=this['editor']['plugins']['get']('Users'),_0x1e02fb=_0x1098f6('external:'+_0x241a91),_0x216554=_0x1ea1ad['getUser'](_0x1e02fb);return _0x216554||_0x1ea1ad['addUser']({'id':_0x1e02fb,'name':_0x241a91});}['_createSuggestion'](_0x1409c3,_0x48b71a,_0x49000e,_0x1a66d1,_0x181872){const _0x4fb5e3=this['_getAuthorFromId'](_0x1a66d1),_0x2ab142=this['_suggestionFactory']['buildSuggestion'](_0x1409c3,_0x48b71a,_0x49000e,_0x4fb5e3,_0x181872,_0x1d7d5d=>{this['_updateSuggestionData'](_0x49000e,{'attributes':_0x1d7d5d});const _0x23f55f=this['getSuggestion'](_0x49000e);this['_joinWithAdjacentSuggestions'](new Set([_0x23f55f])),this['_refreshSuggestionsChain'](new Set([_0x23f55f]));});return this['listenTo'](_0x2ab142,'accept',()=>{this['_updateSuggestionData'](_0x49000e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ab142,'discard',()=>{this['_updateSuggestionData'](_0x49000e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x49000e,_0x2ab142),this['_suggestionState']['set'](_0x2ab142,'notReady'),_0x2ab142;}['_splitMarkerName'](_0x574824){const _0x227c82=_0x574824['split'](':');return{'group':_0x227c82[0x0],'type':_0x227c82[0x1],'subType':_0x227c82['length']>=0x5?_0x227c82[0x2]:null,'id':_0x227c82['length']<0x5?_0x227c82[0x2]:_0x227c82[0x3],'authorId':_0x227c82['length']<0x5?_0x227c82[0x3]:_0x227c82[0x4],'markerCount':0x6==_0x227c82['length']?_0x227c82[0x5]:null};}['_breakSuggestionMarker'](_0x55807e,_0x22d498,_0x2a46bb){const _0x4a61c1=_0x55807e['getFirstRange'](),_0x4d2e81=_0x4a61c1['start'],_0x7989c6=_0x4a61c1['end'];this['_setSuggestionRange'](_0x55807e,this['_model']['createRange'](_0x4d2e81,_0x22d498));const _0x3df43f=_0x32b8bc(),_0x4d2e05=_0x55807e['creator']['id'],_0xb22c77=_0x55807e['type']+(_0x55807e['subType']?':'+_0x55807e['subType']:'');this['_setSuggestionData']({'id':_0x3df43f,'type':_0xb22c77,'createdAt':new Date(),'authorId':_0x4d2e05,'originalSuggestionId':_0x55807e['id'],'attributes':_0x55807e['attributes'],'data':_0x55807e['data']});const _0x4a97ad=this['_getAttributeKey'](_0x55807e);('formatBlock'==_0x55807e['type']||_0x4a97ad&&this['_isBlockAttribute'](_0x4a97ad))&&(_0x2a46bb=this['_model']['createPositionBefore'](_0x2a46bb['parent'])),this['_addSuggestionMarker'](_0xb22c77,_0x3df43f,_0x4d2e05,this['_model']['createRange'](_0x2a46bb,_0x7989c6));}['_findSuggestions'](_0x1e9f5f,_0x42faca=null){const _0x3a35a1=[],_0x32d4a2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e9f5f)||(_0x1e9f5f=[_0x1e9f5f]);for(const _0x596e29 of this['getSuggestions']()){if(!_0x596e29['isInContent'])continue;if(_0x42faca&&_0x596e29['type']!=_0x42faca)continue;let _0x30d641=!0x1;for(const _0x24ee56 of _0x596e29['getRanges']()){for(const _0x4ace57 of _0x1e9f5f){const _0x2b0279=_0x4ace57['start']['isEqual'](_0x24ee56['end'])||_0x4ace57['end']['isEqual'](_0x24ee56['start']);if(_0x2b0279||_0x4ace57['getIntersection'](_0x24ee56)){const _0x339336=_0x4ace57['containsRange'](_0x24ee56)&&Gt(this['_model']['schema'],_0x24ee56['start'],_0x4ace57),_0x2e9450=_0x24ee56['containsRange'](_0x4ace57)&&Gt(this['_model']['schema'],_0x4ace57['start'],_0x24ee56);_0x3a35a1['push']({'suggestion':_0x596e29,'meta':{'isOwn':_0x32d4a2==_0x596e29['author'],'isNextTo':_0x2b0279,'isInsideObject':_0x339336,'containsRangeInObject':_0x2e9450}}),_0x30d641=!0x0;break;}}if(_0x30d641)break;}}return _0x3a35a1;}['_addSuggestionMarker'](_0x5c89ea,_0x2400b7,_0x53c995,_0x3784eb,_0x285a42){this['_model']['change'](_0x413503=>{let _0x1bdbdc='suggestion:'+_0x5c89ea+':'+_0x2400b7+':'+_0x53c995;_0x285a42&&(_0x1bdbdc=_0x1bdbdc+':'+_0x285a42),_0x413503['addMarker'](_0x1bdbdc,{'range':_0x3784eb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35397d){const _0x473928=_0x35397d['previous'],_0x140c99=_0x35397d['next'];_0x35397d['previous']=null,_0x35397d['next']=null,null!=_0x473928&&_0x473928['next']==_0x35397d&&(_0x473928['next']=_0x140c99),null!=_0x140c99&&_0x140c99['previous']==_0x35397d&&(_0x140c99['previous']=_0x473928),'ready'==this['_suggestionState']['get'](_0x35397d)&&(this['_suggestionState']['set'](_0x35397d,'removed'),this['fire']('suggestionUnloaded',_0x35397d,_0x473928,_0x140c99));}['_setSuggestionData'](_0x22a100){const _0x3b7cc9=_0x22a100['id'],_0x5ad4f3=this['addSuggestionData'](_0x22a100);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x471ce0=this['editor']['plugins']['get']('PendingActions'),_0x1535b5=_0x5ad4f3['hasComments'],_0x1eda72=_0x5ad4f3['subType']?_0x5ad4f3['type']+':'+_0x5ad4f3['subType']:_0x5ad4f3['type'],_0x1da9b4=this['editor']['locale'],_0x793d24=_0x471ce0['add'](c(_0x1da9b4,'PENDING_ACTION_SUGGESTION')),_0x5025fd={'id':_0x3b7cc9,'type':_0x1eda72,'hasComments':_0x1535b5,'data':_0x22a100['data']||null,'originalSuggestionId':_0x22a100['originalSuggestionId']||null,'attributes':_0x5ad4f3['attributes']};this['_adapter']['addSuggestion'](_0x5025fd)['then'](_0x48033e=>{_0x5ad4f3['_saved']=!0x0,_0x471ce0['remove'](_0x793d24),_0x48033e&&_0x48033e['createdAt']&&(this['_suggestions']['get'](_0x3b7cc9)['createdAt']=_0x48033e['createdAt']);})['catch'](_0x1db02c=>{throw _0x5027ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ad4f3['discard']();}),_0x5ad4f3['stopListening'](),this['_suggestions']['delete'](_0x5ad4f3['id']),this['_suggestionState']['delete'](_0x5ad4f3),_0x1db02c;});}return _0x5ad4f3;}['_isBlockAttribute'](_0x40debe){return this['_blockAttributeKeys']['has'](_0x40debe);}['_updateSuggestionData'](_0x20da92,_0x3d6b11){const _0x278fe6=this['editor']['plugins']['get']('PendingActions'),_0x3aa424=this['getSuggestion'](_0x20da92);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3aa424['_saved']){const _0x4082b5=_0x278fe6['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x20da92,_0x3d6b11)['then'](()=>{_0x278fe6['remove'](_0x4082b5);});}else _0x3aa424['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x20da92,_0x3d6b11);});}}['_getSuggestionData'](_0x10d884){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c0c45('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10d884);}['_handleNewSuggestionMarker'](_0x2858b3){const {id:_0x3e6364,type:_0x49a829,subType:_0x5bc0c1,authorId:_0xc2e22b}=this['_splitMarkerName'](_0x2858b3),_0xf12da=this['_suggestions']['get'](_0x3e6364)||this['_createSuggestion'](_0x49a829,_0x5bc0c1,_0x3e6364,_0xc2e22b,{});switch(this['_checkSuggestionCorrectness'](_0xf12da,_0x49a829,_0x5bc0c1,_0xc2e22b),this['_suggestionState']['get'](_0xf12da)){case'notReady':this['_getSuggestionData'](_0x3e6364)['then'](_0x376d34=>{let _0x55c373=Promise['resolve']();_0x376d34['hasComments']&&(_0x55c373=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e6364})),_0x55c373['then'](()=>{this['addSuggestionData'](_0x376d34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xf12da,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e6364,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xf12da,'ready'),this['fire']('suggestionLoaded',_0xf12da);break;case'ready':this['fire']('suggestionChanged',_0xf12da);}return _0xf12da['addMarkerName'](_0x2858b3),_0xf12da;}['_refreshSuggestionsChain'](_0x3a6d1f){const _0x414ebd=Array['from'](_0x3a6d1f),_0x414ab9=_0x414ebd['filter'](_0x1e8ed7=>'attribute'==_0x1e8ed7['type']);this['_refreshAttributeSuggestionsChain'](_0x414ab9);const _0x1d0d54=_0x414ebd['filter'](_0x406130=>!_0x406130['isMultiRange']&&'attribute'!=_0x406130['type']),_0xe6b7c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7143de=>!_0x7143de['isMultiRange']&&'attribute'!=_0x7143de['type']),_0x46a7de=_0xe6b7c8['filter'](_0x3dcea3=>!_0x3a6d1f['has'](_0x3dcea3)),_0x2a2242=new Map(_0xe6b7c8['map'](_0xcb967a=>[_0xcb967a,this['_suggestionFactory']['getSuggestionCallback'](_0xcb967a['type'],_0xcb967a['subType'],'chain')])),_0x46a3f5=new Map(_0xe6b7c8['map'](_0x237dc5=>[_0x237dc5,_0x237dc5['getFirstRange']()])),_0x41cf06=new Set(),_0x31521e=new Set();for(let _0xf42ccd=0x0;_0xf42ccd<_0x1d0d54['length'];_0xf42ccd++)_0xaf1b58(_0x1d0d54[_0xf42ccd],_0x1d0d54,_0xf42ccd+0x1);for(let _0x573cc0=0x0;_0x573cc0<_0x1d0d54['length'];_0x573cc0++)_0xaf1b58(_0x1d0d54[_0x573cc0],_0x46a7de,0x0);const _0x6aa78c=new Set();for(let _0x54b5de=0x0;_0x54b5de<_0x1d0d54['length'];_0x54b5de++){const _0xb5ff16=_0x1d0d54[_0x54b5de];!_0x31521e['has'](_0xb5ff16)&&_0xb5ff16['previous']&&(_0x6aa78c['add'](_0xb5ff16['previous']),_0xb5ff16['previous']['next']===_0xb5ff16&&(_0xb5ff16['previous']['next']=null),_0xb5ff16['previous']=null),!_0x41cf06['has'](_0xb5ff16)&&_0xb5ff16['next']&&(_0x6aa78c['add'](_0xb5ff16['next']),_0xb5ff16['next']['previous']===_0xb5ff16&&(_0xb5ff16['next']['previous']=null),_0xb5ff16['next']=null);}function _0xaf1b58(_0x10a773,_0x13103c,_0x49ad54){for(let _0xf5779c=_0x49ad54;_0xf5779c<_0x13103c['length'];_0xf5779c++){const _0xf53d5d=_0x459aa9(_0x10a773,_0x13103c[_0xf5779c]);_0xf53d5d&&(_0xf53d5d[0x0]['next']=_0xf53d5d[0x1],_0xf53d5d[0x1]['previous']=_0xf53d5d[0x0],_0x41cf06['add'](_0xf53d5d[0x0]),_0x31521e['add'](_0xf53d5d[0x1]));}}function _0x459aa9(_0x499f33,_0x5018a6){if(_0x499f33['author']['id']!==_0x5018a6['author']['id'])return null;const _0xfddad4=_0x2a2242['get'](_0x499f33)(_0x499f33,_0x5018a6,_0x46a3f5['get'](_0x499f33),_0x46a3f5['get'](_0x5018a6));if(!_0xfddad4)return null;return _0x2a2242['get'](_0x5018a6)(_0x499f33,_0x5018a6,_0x46a3f5['get'](_0x499f33),_0x46a3f5['get'](_0x5018a6))?_0xfddad4[0x1]['commentThread']&&_0xfddad4[0x1]['commentThread']['length']?null:_0xfddad4:null;}_0x6aa78c['size']&&this['_refreshSuggestionsChain'](_0x6aa78c);}['_refreshAttributeSuggestionsChain'](_0x185174){if(0x0==_0x185174['length'])return;const _0x4d6a95=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f62fe=>'attribute'==_0x2f62fe['type']&&_0x2f62fe['_isDataLoaded']),_0x516b51=[],_0x47a7fb=new Map();for(const _0x5500e6 of _0x4d6a95){const _0x2a5fde=_0x1098f6(_0x5500e6['attributes']);_0x47a7fb['has'](_0x2a5fde)||(_0x47a7fb['set'](_0x2a5fde,_0x516b51['length']),_0x516b51['push']([]));const _0x6d49a2=_0x47a7fb['get'](_0x2a5fde);_0x516b51[_0x6d49a2]['push'](_0x5500e6);}!(function(){_0x516b51['sort']((_0x1b89e8,_0x5851bb)=>{const _0x58a6c5=_0x1b89e8[0x0]['createdAt'],_0x2ba1b9=_0x5851bb[0x0]['createdAt'];return _0x58a6c5==_0x2ba1b9?_0x1b89e8[0x0]['attributes']['groupId']<_0x5851bb[0x0]['attributes']['groupId']?-0x1:0x1:_0x58a6c5<_0x2ba1b9?-0x1:0x1;});for(const _0x15eeb8 of _0x516b51)_0x15eeb8['sort']((_0x148247,_0x4adc00)=>_0x148247['id']<_0x4adc00['id']?-0x1:0x1);}());for(let _0x360818=0x0;_0x360818<_0x516b51['length'];_0x360818++){if(0x0==_0x516b51[_0x360818]['length'])continue;const _0x49bd4c=[];for(let _0x42632c=_0x360818+0x1;_0x42632c<_0x516b51['length'];_0x42632c++)0x0!=_0x516b51[_0x42632c]['length']&&_0x1523cd(_0x516b51[_0x360818],_0x516b51[_0x42632c])&&_0x49bd4c['push'](_0x42632c);for(const _0x37ea63 of _0x49bd4c)_0x516b51[_0x360818]=_0x516b51[_0x360818]['concat'](_0x516b51[_0x37ea63]),_0x516b51[_0x37ea63]=[];}for(const _0x5f22a4 of _0x516b51)for(let _0x445a34=0x0;_0x445a34<_0x5f22a4['length'];_0x445a34++){const _0x370109=_0x5f22a4[_0x445a34+0x1]||null;_0x5f22a4[_0x445a34]['next']!==_0x370109&&(_0x5f22a4[_0x445a34]['next']=_0x370109);}for(const _0x2b6079 of _0x516b51)for(let _0x520dd4=0x0;_0x520dd4<_0x2b6079['length'];_0x520dd4++){const _0x3e47a2=_0x2b6079[_0x520dd4-0x1]||null;_0x2b6079[_0x520dd4]['previous']!==_0x3e47a2&&(_0x2b6079[_0x520dd4]['previous']=_0x3e47a2);}function _0x1523cd(_0x1c9600,_0x1cc5b1){if(_0x1c9600[0x0]['attributes']['groupId']!==_0x1cc5b1[0x0]['attributes']['groupId']&&_0x1c9600[0x0]['author']!==_0x1cc5b1[0x0]['author'])return!0x1;if(!function(_0x5dee35,_0x184a36){if(!_0x5dee35['hasComments']&&!_0x184a36['hasComments'])return!0x0;if(_0x5dee35['hasComments']&&_0x184a36['hasComments'])return!0x1;if(_0x5dee35['hasComments']&&_0x184a36['createdAt']<_0x5dee35['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x184a36['hasComments']&&_0x5dee35['createdAt']<_0x184a36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c9600[0x0],_0x1cc5b1[0x0]))return!0x1;const _0x9ed775=Ft(_0x1c9600[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c1655=Ft(_0x1cc5b1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48064e(_0x9ed775,_0x3c1655))return!0x1;if(_0x1c9600[0x0]['attributes']['groupId']==_0x1cc5b1[0x0]['attributes']['groupId'])return!0x0;if(_0x1c9600[0x0]['attributes']['trackingSessionId']!==_0x1cc5b1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1c9600['every'](_0x24d6f2=>_0x1cc5b1['some'](_0x5f0a62=>_0x24d6f2['getFirstRange']()['isEqual'](_0x5f0a62['getFirstRange']())))&&_0x1cc5b1['every'](_0x1889ce=>_0x1c9600['some'](_0x4f4b41=>_0x1889ce['getFirstRange']()['isEqual'](_0x4f4b41['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x520676){const _0xa9d32b=Array['from'](_0x520676),_0x1ab0a7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4251bc=_0x1ab0a7['filter'](_0xd868b0=>!_0x520676['has'](_0xd868b0)),_0x4375be=new Map(_0xa9d32b['map'](_0x19aa51=>[_0x19aa51,this['_suggestionFactory']['getSuggestionCallback'](_0x19aa51['type'],_0x19aa51['subType'],'join')])),_0x256efd=new Map(_0x1ab0a7['map'](_0x4f1c8d=>[_0x4f1c8d,_0x4f1c8d['getRanges']()]));for(let _0x537b2f=0x0;_0x537b2f<_0xa9d32b['length'];_0x537b2f++){if(_0x1ad7d3(this,_0xa9d32b[_0x537b2f],_0xa9d32b,_0x537b2f+0x1))return!0x0;}for(let _0x5b99bb=0x0;_0x5b99bb<_0xa9d32b['length'];_0x5b99bb++){if(_0x1ad7d3(this,_0xa9d32b[_0x5b99bb],_0x4251bc,0x0))return!0x0;}return!0x1;function _0x1ad7d3(_0xfded42,_0x54dc7f,_0x14dc1e,_0x228bd6){for(let _0x240111=_0x228bd6;_0x240111<_0x14dc1e['length'];_0x240111++){const _0x12186c=_0x14dc1e[_0x240111];if(_0x12186c['type']!==_0x54dc7f['type']||_0x12186c['author']['id']!==_0x54dc7f['author']['id']||_0x12186c['subType']!==_0x54dc7f['subType'])continue;if(!Qt(_0x54dc7f,_0x12186c))continue;if('attribute'==_0x54dc7f['type']&&_0x54dc7f['data']['oldValue']!=_0x12186c['data']['oldValue'])continue;if('attribute'==_0x54dc7f['type']&&_0xfded42['_isBlockAttribute'](_0x54dc7f['data']['key']))continue;if('formatBlock'==_0x54dc7f['type']){const _0x2d69c7=_0xfded42['editor']['model'],_0x425807=_0x54dc7f['getContainedElement']();if(_0x425807&&(_0x2d69c7['schema']['isObject'](_0x425807)||_0x2d69c7['schema']['isLimit'](_0x425807)))continue;}const _0x386a2e=_0x4375be['get'](_0x54dc7f),_0x11b5b7=_0x256efd['get'](_0x54dc7f),_0x45bdad=_0x256efd['get'](_0x12186c),_0x536ebc=_0x54dc7f['commentThread']&&_0x54dc7f['commentThread']['length'],_0x2e8126=_0x12186c['commentThread']&&_0x12186c['commentThread']['length'];if(!_0x536ebc&&_0x386a2e(_0x45bdad,_0x11b5b7))return _0xfded42['_joinSuggestions'](_0x12186c,_0x54dc7f),_0x256efd['delete'](_0x54dc7f),!0x0;if(!_0x2e8126&&_0x386a2e(_0x11b5b7,_0x45bdad))return _0xfded42['_joinSuggestions'](_0x54dc7f,_0x12186c),_0x256efd['delete'](_0x12186c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46b459,_0x487d60){if(_0x46b459['isMultiRange']){for(const _0x95c51d of _0x487d60['getRanges']())_0x46b459['addRange'](_0x95c51d);}else{const _0x14dc64=_0x487d60['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46b459,this['_model']['createRange'](_0x46b459['getFirstRange']()['start'],_0x14dc64));}_0x487d60['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c66f0,_0x198a6e,_0x498fe8){const _0x5410b6=_0x5c66f0['startsWith']('format')||_0x5c66f0['startsWith']('attribute')?'FORMATTING':_0x5c66f0['toUpperCase']();return c(this['editor']['locale'],_0x198a6e+'_'+_0x5410b6+'_SUGGESTION_ANNOUNCEMENT',_0x498fe8);}['_initAriaMarkerChangeAnnouncements'](){const _0x3431c0=this['editor'];if(!_0x3431c0['ui'])return;const {ariaLiveAnnouncer:_0x1344b7}=_0x3431c0['ui'];_0x113694(this['_model'],({left:_0x60179d,entered:_0x451262})=>{for(const _0x298296 of _0x60179d){const {group:_0x20213e,type:_0x28909d}=this['_splitMarkerName'](_0x298296['name']);if('suggestion'===_0x20213e){_0x1344b7['announce'](this['_getMarkerAnnouncementText'](_0x28909d,'LEAVE'));break;}}for(const _0x5e8c62 of _0x451262){const {group:_0xe0004d,type:_0x51509a}=this['_splitMarkerName'](_0x5e8c62['name']);if('suggestion'===_0xe0004d){_0x1344b7['announce'](this['_getMarkerAnnouncementText'](_0x51509a,'ENTER',_0x57f152(_0x55e069)));break;}}});}['_processAttributeChanges'](_0x3c1cba){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1fc76c=this['editor'],_0x383897=_0x1fc76c['model']['document']['differ']['getChanges']();if(0x0==_0x383897['length'])return!0x1;const _0x300dc4=[],_0x41c30d=_0x383897['filter'](_0x589159=>'attribute'==_0x589159['type']),_0x5dfad6=_0x383897['filter'](_0x7fef3d=>'insert'==_0x7fef3d['type']&&'$text'!=_0x7fef3d['name']),_0x2c36a0=_0x383897['filter'](_0x540b0f=>'remove'==_0x540b0f['type']&&'$text'!=_0x540b0f['name']);for(const _0x301230 of _0x41c30d)_0x300dc4['push']({'key':_0x301230['attributeKey'],'newValue':_0x301230['attributeNewValue'],'oldValue':_0x301230['attributeOldValue'],'range':qt(_0x301230['range'],_0x1fc76c['model'])});for(const _0x14f96c of _0x5dfad6){const _0x5b1ccd=_0x2c36a0['find'](_0x13e05c=>_0x13e05c['position']['isEqual'](_0x14f96c['position']));_0x5b1ccd&&_0x300dc4['push']({'key':u,'newValue':_0x14f96c['name'],'oldValue':_0x5b1ccd['name'],'range':_0x1fc76c['model']['createRangeOn'](_0x14f96c['position']['nodeAfter'])});}return 0x0!=_0x300dc4['length']&&this['_reduceExistingSuggestions'](_0x3c1cba,_0x300dc4);}['_processAttributeSuggestions'](_0x219c8){let _0xe2b3bc=!0x1;const _0x56165f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1026e4=>_0x1026e4['data']['newRange']&&_0x1026e4['name']['startsWith']('suggestion:attribute:'));for(const _0x318dc0 of _0x56165f){const {subType:_0xb14656,id:_0x30a097}=this['_splitMarkerName'](_0x318dc0['name']),_0x290b10=_0xb14656['split']('|')[0x0];for(const _0x56f36b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x56f36b['id']!=_0x30a097&&'attribute'==_0x56f36b['type']&&_0x56f36b['data']&&_0x56f36b['data']['key']==_0x290b10&&_0x56f36b['getFirstRange']()['isIntersecting'](_0x318dc0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x56f36b,_0x318dc0['data']['newRange'],_0x219c8),_0xe2b3bc=!0x0);}return _0xe2b3bc;}['_recordAttributeChanges'](_0x512044){this['_recordAttributeSuggestions']=!0x0,_0x512044();}['_isRegisteredAttribute'](_0xb42dc4){const _0x41d870=this['_isBlockAttribute'](_0xb42dc4),_0x406cf8=this['_inlineAttributeKeys']['has'](_0xb42dc4);return _0x41d870||_0x406cf8;}['_reduceExistingSuggestions'](_0x4775a0,_0x29cabe){if(0x0==_0x29cabe['length'])return!0x1;let _0x53db84=!0x1;for(const _0x3a1ba3 of _0x29cabe){const _0x4c88e3=this['_findSuggestions'](_0x3a1ba3['range'],'attribute')['filter'](_0x825f34=>!_0x825f34['meta']['isNextTo'])['map'](_0x1d4803=>_0x1d4803['suggestion']),_0x574d8e=_0x1098f6({'newValue':_0x3a1ba3['newValue']});_0x4c88e3['filter'](_0xde966f=>{const [_0x274258,_0x1ac940]=_0xde966f['subType']['split']('|');return _0x274258==_0x3a1ba3['key']&&_0x1ac940!=_0x574d8e;})['forEach'](_0x3051ec=>{this['_reduceSuggestionAttributeRange'](_0x3051ec,_0x3a1ba3['range'],_0x4775a0),_0x53db84=!0x0;});}return _0x53db84;}['_reduceSuggestionAttributeRange'](_0x31e16c,_0x5441a6,_0x4e06ab){const _0x11e77f=_0x31e16c['getFirstRange']()['getDifference'](_0x5441a6);0x0!==_0x11e77f['length']?0x1!==_0x11e77f['length']?this['_breakSuggestionMarker'](_0x31e16c,_0x5441a6['start'],_0x5441a6['end']):this['_setSuggestionRange'](_0x31e16c,_0x11e77f[0x0]):_0x4e06ab['removeMarker'](_0x31e16c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa17fc0){this['_editor']=_0xa17fc0,this['_model']=_0xa17fc0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x228b66,_0x1a5163,_0x4fc6a8,_0x324403,_0x550720,_0xe11a10){return new o(this['_model'],{'type':_0x228b66,'subType':_0x1a5163,'id':_0x4fc6a8,'author':_0x324403,'creator':_0x324403,'attributes':_0x550720,'onAttributesChange':_0xe11a10,'onAccept':(..._0x36d197)=>this['getSuggestionCallback'](_0x228b66,_0x1a5163,'accept')(..._0x36d197),'onDiscard':(..._0x51ae06)=>this['getSuggestionCallback'](_0x228b66,_0x1a5163,'discard')(..._0x51ae06)});}['registerCustomCallback'](_0x4f9530,_0x57eb29,_0x2854be,_0x4951dd){const _0x5a5911=_0x4f9530+':'+_0x57eb29+':'+_0x2854be;this['_customCallbacks']['set'](_0x5a5911,_0x4951dd);}['getSuggestionCallback'](_0x14fa17,_0x173c7e,_0x292ad4){const _0x217ca2=_0x14fa17+':'+_0x173c7e+':'+_0x292ad4;return this['_customCallbacks']['get'](_0x217ca2)||this['_defaultCallbacks']['get'](_0x14fa17+':'+_0x292ad4);}['_registerDefaultCallbacks'](){const _0x53ba4a=()=>!0x1,_0xd65c9d=_0x499e0e=>{_0x499e0e['sort']((_0x5d2f0d,_0x378a34)=>_0x5d2f0d['start']['isBefore'](_0x378a34['start'])?0x1:-0x1),this['_model']['change'](_0x3c2055=>{for(const _0x2e27a0 of _0x499e0e){let _0x365a32;_0x365a32=_0x2e27a0['end']['isAtEnd']&&_0x2e27a0['end']['parent']==_0x2e27a0['start']['nodeAfter']?_0x3c2055['createSelection'](_0x2e27a0['start']['nodeAfter'],'on'):_0x3c2055['createSelection'](_0x2e27a0),this['_model']['deleteContent'](_0x365a32,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x48c8f0=(_0x264d02,_0x1ca2c2)=>{_0x1ca2c2&&this['_model']['change'](_0xf3d89e=>{const {commandName:_0x1a3bcb,commandParams:_0x1ced8c=[]}=_0x1ca2c2,_0xb20289=_0x264d02['map'](_0x156cf0=>(Lt(_0x156cf0)&&(_0x156cf0=this['_model']['createRange'](_0x156cf0['end'])),_0x156cf0))['filter'](_0x5ab039=>'$graveyard'!==_0x5ab039['root']['rootName']);if(_0xb20289['length']<0x1)return;const _0x2a1668=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34fdef=>_0x2daf6a['fromRange'](_0x34fdef));_0xf3d89e['setSelection'](_0xb20289);for(const _0x46615d of this['_editor']['commands']['commands']())_0x46615d['refresh']();_0x1ced8c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a3bcb,..._0x1ced8c);const _0x191dd5=_0x2a1668['filter'](_0x8d2814=>'$graveyard'!=_0x8d2814['root']['rootName']);_0x191dd5['length']>0x0&&_0xf3d89e['setSelection'](_0x191dd5);for(const _0x83509b of _0x2a1668)_0x83509b['detach']();});},_0x1960cc=(_0x540455,_0x171c30)=>0x1==_0x540455['length']&&0x1==_0x171c30['length']&&_0x540455[0x0]['end']['isEqual'](_0x171c30[0x0]['start']),_0x373288=(_0x20a0a6,_0x135c9e,_0x19fc9,_0x5d9a57)=>Wt(_0x20a0a6,_0x135c9e,_0x19fc9,_0x5d9a57)?[_0x20a0a6,_0x135c9e]:Wt(_0x135c9e,_0x20a0a6,_0x5d9a57,_0x19fc9)?[_0x135c9e,_0x20a0a6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x53ba4a),this['_defaultCallbacks']['set']('insertion:discard',_0xd65c9d),this['_defaultCallbacks']['set']('insertion:join',_0x1960cc),this['_defaultCallbacks']['set']('insertion:chain',_0x373288),this['_defaultCallbacks']['set']('deletion:accept',_0xd65c9d),this['_defaultCallbacks']['set']('deletion:discard',_0x53ba4a),this['_defaultCallbacks']['set']('deletion:join',_0x1960cc),this['_defaultCallbacks']['set']('deletion:chain',_0x373288),this['_defaultCallbacks']['set']('formatInline:accept',_0x48c8f0),this['_defaultCallbacks']['set']('formatInline:discard',_0x53ba4a),this['_defaultCallbacks']['set']('formatInline:join',_0x1960cc),this['_defaultCallbacks']['set']('formatInline:chain',_0x53ba4a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x48c8f0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x53ba4a),this['_defaultCallbacks']['set']('formatBlock:join',_0x1960cc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x53ba4a),this['_defaultCallbacks']['set']('attribute:accept',_0x53ba4a),this['_defaultCallbacks']['set']('attribute:discard',(_0x573d09,_0x330b1b)=>{if(!_0x330b1b)return;const _0x4ba994=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3f965d=>{if(_0x330b1b['key']==u)for(const _0x2b5eb4 of _0x573d09){const _0x4be42e=_0x2b5eb4['start']['nodeAfter'],_0x1b9001=_0x330b1b['oldValue'];_0x3f965d['rename'](_0x4be42e,_0x1b9001);}else{if(_0x4ba994['_isBlockAttribute'](_0x330b1b['key'])){for(const _0x142e79 of _0x573d09)void 0x0!==_0x330b1b['oldValue']?_0x3f965d['setAttribute'](_0x330b1b['key'],_0x330b1b['oldValue'],_0x142e79['start']['nodeAfter']):_0x3f965d['removeAttribute'](_0x330b1b['key'],_0x142e79['start']['nodeAfter']);}else{for(const _0x38897c of _0x573d09)_0x330b1b['oldValue']?_0x3f965d['setAttribute'](_0x330b1b['key'],_0x330b1b['oldValue'],_0x38897c):_0x3f965d['removeAttribute'](_0x330b1b['key'],_0x38897c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1960cc);}}function Gt(_0x3a4f51,_0x3d36ed,_0x5dbd5d){for(const _0x256082 of _0x3d36ed['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x256082['root']==_0x256082)return!0x1;if(!_0x5dbd5d['containsItem'](_0x256082))return!0x1;if(_0x3a4f51['isObject'](_0x256082)||_0x3a4f51['isLimit'](_0x256082))return!0x0;}return!0x1;}function Lt(_0x314d17){return _0x314d17['end']['parent']==_0x314d17['start']['nodeAfter']&&_0x314d17['end']['isAtStart'];}function Jt(_0x172dfd,_0x178bba,_0x3ca0e3,_0x428377){const _0x2ae517=_0x538f46=>!_0x538f46['item']['is']('$textProxy')&&!_0x428377['isObject'](_0x538f46['item']),_0x167acb=_0x172dfd['start']['getLastMatchingPosition'](_0x2ae517),_0x1704ed=_0x172dfd['end']['getLastMatchingPosition'](_0x2ae517,{'direction':'backward'});return(!_0x172dfd['start']['isEqual'](_0x167acb)||!_0x172dfd['end']['isEqual'](_0x1704ed))&&(_0x167acb['isBefore'](_0x1704ed)?_0x3ca0e3['updateMarker'](_0x178bba,{'range':_0x3ca0e3['createRange'](_0x167acb,_0x1704ed)}):_0x3ca0e3['removeMarker'](_0x178bba),!0x0);}function Kt(_0x1c1326){return _0x1098f6(_0x1c1326);}function Ht(_0x5bf391){const _0x40e72a=_0x5bf391['start']['nodeAfter'];return _0x40e72a&&_0x40e72a['is']('element');}function qt(_0x266950,_0x4b1909){return null==_0x266950['end']['nodeBefore']&&_0x266950['end']['parent']==_0x266950['start']['nodeAfter']?zt(_0x266950['start']['nodeAfter'],_0x4b1909):_0x266950;}function zt(_0x2f7820,_0x188b88){const _0x2b7b5d=_0x188b88['schema']['isObject'](_0x2f7820)||_0x188b88['schema']['isSelectable'](_0x2f7820);return _0x188b88['createRange'](_0x188b88['createPositionAt'](_0x2f7820,'before'),_0x2b7b5d?_0x188b88['createPositionAfter'](_0x2f7820):_0x188b88['createPositionAt'](_0x2f7820,'end'));}function Wt(_0x3eeff5,_0x1ab592,_0x404c42,_0x7d9511){return!!Qt(_0x3eeff5,_0x1ab592)&&_0x404c42['end']['isEqual'](_0x7d9511['start']);}function Qt(_0x194293,_0x4a2015){if(!_0x194293['_isDataLoaded']||!_0x4a2015['_isDataLoaded'])return!0x1;const _0x43ec49=new Set(Object['keys'](_0x194293['attributes'])),_0x18215c=new Set(Object['keys'](_0x4a2015['attributes']));if(_0x43ec49['delete']('groupId'),_0x18215c['delete']('groupId'),0x0==_0x43ec49['size']&&0x0==_0x18215c['size'])return!0x0;if(_0x43ec49['size']!=_0x18215c['size'])return!0x1;const _0x4479c4={..._0x194293['attributes']},_0x514ba8={..._0x4a2015['attributes']};return delete _0x4479c4['groupId'],delete _0x514ba8['groupId'],JSON['stringify'](_0x4479c4)==JSON['stringify'](_0x514ba8);}function Xt(_0x289475,_0x12c371){const _0x33cf06=Yt(_0x289475['attributes']),_0x17ea84=Yt(_0x12c371);if(!_0x289475['_isDataLoaded'])return!0x1;for(const _0x184cba of Object['keys'](_0x17ea84))if(!_0x48064e(_0x33cf06[_0x184cba],_0x17ea84[_0x184cba]))return!0x1;return!0x0;}function Yt(_0x5310d0){const _0x426bd2=Object['assign']({},_0x5310d0);return delete _0x426bd2['skipNestingCheck'],delete _0x426bd2['tablePasteChainId'],_0x426bd2;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x311d1a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30a3a7,_0x313cbb,_0x59fec9,_0x4902aa){super(),this['model']=_0x313cbb,this['view']=_0x59fec9,this['commentThreadController']=_0x4902aa,this['_editor']=_0x30a3a7,this['_acceptCommand']=_0x30a3a7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30a3a7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1ed936,_0x1cc7b5)=>_0x1ed936||_0x1cc7b5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x10dd49=>_0x10dd49&&this['_editor']['model']['canEditAt'](_0x313cbb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x12e95d=>_0x12e95d&&this['_editor']['model']['canEditAt'](_0x313cbb['getRanges']())),this['_pendingAction']=null,_0x59fec9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59fec9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59fec9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59fec9,'change:isDirty',()=>{_0x59fec9['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 _0xd03b8d=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd03b8d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c5cfc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4e303c,_0x31bee7,_0x2052ab,_0x5a41e7){super(_0x4e303c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x23fc2c(_0x4e303c,c(_0x4e303c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31bee7['authoredAt']),this['bind']('authoredAt')['to'](_0x31bee7),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',_0x31bee7,'authoredAt',this,'descriptionParts',(_0x3e46e5,_0x38346c,_0x5857a6)=>{const _0x22e1cb=_0x5857a6['map'](_0x2a8cb5=>ls(_0x2a8cb5['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3e46e5-0x1,_0x31bee7['author']['name'],_0x38346c?_0x5a41e7['formatDateTime'](_0x38346c):'',new DOMParser()['parseFromString'](_0x22e1cb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47c984(),this['focusTracker']=new _0x5f0f65(),this['keystrokes']=new _0x3c238c(),this['focusCycler']=new _0x1b92be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5e824f=>_0x5e824f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31bee7,this['_localUser']=_0x2052ab,this['_config']=_0x5a41e7,_0x5a41e7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1e4d43(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2e1d79}=this['_config'];this['commentsListView']=new _0x2e1d79(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',_0x43634b=>_0x43634b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x32dcf3,_0x5e6687)=>_0x32dcf3||!!_0x5e6687);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x46e3d7}=this['_config'],_0x949f88=new _0x46e3d7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ead82=_0x949f88['commentInputView'];return _0x949f88['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5ead82,'value',(_0x357271,_0x291ae4,_0x598092)=>!!_0x598092||_0x357271&&!_0x291ae4),_0x5ead82['on']('submit',(_0x3ef3da,_0x1a31f2)=>{this['fire']('addComment',_0x1a31f2),_0x5ead82['editor']['setData']('');}),_0x5ead82['on']('cancel',()=>this['focus']()),_0x5ead82['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x949f88;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x647052,_0x2f617e,_0x4c5013,_0xa2017b){super(_0x647052,_0x2f617e,_0x4c5013,_0xa2017b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d056d=>_0x2d056d&&_0x2d056d[0x0]?_0x2d056d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59e51a,_0x45d557)=>{let _0x1c03b8='';for(const _0xf8b2e5 of _0x59e51a)_0x1c03b8+='<p>'+ls(_0xf8b2e5['content'],_0xf8b2e5['color'])+'</p>';return _0x45d557?_0x1c03b8:ti(_0x1c03b8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa2017b['SuggestionView'](_0x647052,_0x2f617e,{'formatDateTime':_0xa2017b['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 _0x24ff49=this['bindTemplate'],_0x354761=[this['suggestionView']];return this['commentsListView']&&_0x354761['push'](this['commentsListView']),this['commentThreadInputView']&&_0x354761['push'](this['commentThreadInputView']),_0x354761['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x24ff49['if']('isActive','ck-suggestion-wrapper--active'),_0x24ff49['to']('type',_0x48811b=>'ck-suggestion-'+_0x48811b),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':_0x24ff49['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x354761};}['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 _0x5c5cfc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x52bcb9,_0x21d7e4,_0x42c609){super(_0x52bcb9),this['_model']=_0x21d7e4,this['_config']=_0x42c609,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21d7e4),this['acceptButton']=this['_createButton'](c(_0x52bcb9,'Accept\x20suggestion'),_0xf2cf96,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x52bcb9,'Discard\x20suggestion'),_0x58b8b2,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x18adfe(_0x52bcb9,_0x21d7e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47c984([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5f0f65(),this['keystrokes']=new _0x3c238c(),this['focusCycler']=new _0x1b92be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x25b84c=>_0x25b84c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f35d7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f35d7['innerHTML']=this['description'],this['on']('change:description',(_0x1c7460,_0x46f933,_0x365c3a)=>{_0x1f35d7['innerHTML']=_0x365c3a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46bf50=this['bindTemplate'],_0x639f6f=[{'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':_0x46bf50['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46bf50['to']('authoredAt',_0x1949c0=>this['_config']['formatDateTime'](_0x1949c0))}]}]},{'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']&&_0x639f6f['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':_0x639f6f}]};}['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'](_0x1dff6d,_0x49da1e,_0x4f5bd9,_0x44221a,_0x889043){const _0x38d440=new _0x155a22(this['locale']);return _0x38d440['set']({'label':_0x1dff6d,'icon':_0x49da1e,'tooltip':!0x0,'tooltipPosition':_0x889043}),_0x38d440['extendTemplate']({'attributes':{'class':_0x4f5bd9}}),_0x38d440['on']('execute',()=>{this['fire'](_0x44221a,this['_model']['id']);}),_0x38d440;}['_setupKeyboardNavigation'](){const _0x3f27d9=this['element'];this['keystrokes']['listenTo'](_0x3f27d9);for(const _0x8d4e4a of this['focusables'])this['focusTracker']['add'](_0x8d4e4a['element']),this['keystrokes']['listenTo'](_0x8d4e4a['element']);this['keystrokes']['set']('enter',(_0x5c3040,_0x1e4784)=>{_0x3f27d9===_0x5c3040['target']&&(this['focusCycler']['focusFirst'](),_0x1e4784());}),this['keystrokes']['set']('esc',(_0x1a41e2,_0xe3025b)=>{_0x3f27d9!==_0x1a41e2['target']&&(this['focus'](),_0xe3025b());});}}class d extends _0x3e2428{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c7e0d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xae5599){super(_0xae5599),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb89422=this['editor']['config'];_0xb89422['define']('trackChanges.SuggestionThreadView',fe),_0xb89422['define']('trackChanges.SuggestionView',we),_0xb89422['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb89422['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xd0fa78,_0x2ff953){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4238e4,_0xdd59c3]of this['_handleControllerBuffer']){const _0x524dc3=this['_suggestionToController']['has'](_0x4238e4);_0x524dc3||_0xdd59c3?_0x524dc3&&_0xdd59c3&&this['_destroyController'](_0x4238e4):this['_initializeController'](_0x4238e4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xd0fa78,_0x2ff953);}['init'](){const _0x413cac=this['editor'],_0x501994=_0x413cac['plugins']['get']('TrackChangesEditing'),_0x4847fa=_0x413cac['plugins']['get']('Annotations'),_0xafe614=_0x413cac['plugins']['get']('EditorAnnotations'),_0x69b62=_0x413cac['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xafe614['addSourceCollector'](()=>{const _0x166f1d=[];for(const [_0x55396f,_0x38e1cc]of Array['from'](this['_suggestionToController'])){const _0x3586f8=_0x55396f['getAllAdjacentSuggestions'](),_0x2551b4=[];for(const _0x4d8d0e of _0x3586f8){if(!_0x4d8d0e['isInContent'])continue;if(_0x4d8d0e['isMultiRange']){_0x2551b4['push'](..._0x4d8d0e['getRanges']());continue;}const _0x544e0a=_0x4d8d0e['getFirstRange']();if(_0x2551b4['length']>0x0){const _0x5aed5e=_0x2551b4[0x0]['getJoined'](_0x544e0a);if(_0x5aed5e){_0x2551b4[0x0]=_0x5aed5e;continue;}}_0x2551b4['push'](_0x544e0a);}_0x166f1d['push']([_0x38e1cc['view'],_0x2551b4]);}return _0x166f1d;}),this['listenTo'](_0x501994,'suggestionLoaded',(_0x320ee4,_0x28996d)=>{this['listenTo'](_0x28996d,'change:previous',(_0x4d0301,_0x3828e8,_0x300645,_0x450eee)=>{_0x28996d['isInContent']&&(null==_0x300645?(this['_updateController'](_0x450eee['head']),this['_handleSuggestionControllerDelayed'](_0x28996d,!0x1)):(this['_updateController'](_0x300645['head']),null==_0x450eee&&this['_handleSuggestionControllerDelayed'](_0x28996d,!0x0)));}),null!==_0x28996d['previous']?this['_updateController'](_0x28996d['head']):this['_handleSuggestionControllerDelayed'](_0x28996d,!0x1);}),this['listenTo'](_0x501994,'suggestionUnloaded',(_0x1544dc,_0x4cf09b,_0x170b36)=>{this['stopListening'](_0x4cf09b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4cf09b),this['_suggestionToController']['has'](_0x4cf09b)&&this['_destroyController'](_0x4cf09b),_0x170b36&&this['_updateController'](_0x170b36['head']);}),this['listenTo'](_0x501994,'suggestionChanged',(_0x8107b4,_0x3bbb11)=>{this['_updateController'](_0x3bbb11);}),this['listenTo'](_0x4847fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x69b62,'addComment',(_0xadf7e8,{threadId:_0xad2df7,isFromAdapter:_0x3ac85c})=>{if(_0x3ac85c||!_0x501994['hasSuggestion'](_0xad2df7))return;const _0x5d93d2=_0x501994['getSuggestion'](_0xad2df7);this['_suggestionToController']['get'](_0x5d93d2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21d4aa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x560b4e;for(const _0x3516ed in _0x21d4aa){const _0xaf514c=_0x3516ed,_0x256bd9=_0x21d4aa[_0xaf514c];if('trackChangesLicenseKeyValid'==_0x256bd9||'trackChangesLicenseKeyInvalid'==_0x256bd9||'trackChangesLicenseKeyExpired'==_0x256bd9||'trackChangesLicenseKeyDomainLimit'==_0x256bd9||'trackChangesLicenseKeyNotAllowed'==_0x256bd9||'trackChangesLicenseKeyEvaluationLimit'==_0x256bd9||'trackChangesLicenseKeyTrialLimit'==_0x256bd9||'trackChangesLicenseKeyUsageLimit'==_0x256bd9){delete _0x21d4aa[_0xaf514c],_0x560b4e=_0x256bd9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x560b4e&&_0x21d4aa['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x560b4e&&_0x21d4aa['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x560b4e&&_0x21d4aa['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x26f189=this['editor']['plugins']['get']('Annotations'),_0xe57910=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fbb76=Array['from'](_0x26f189['activeAnnotations'],_0x268fda=>_0x268fda['innerView'])['filter'](_0x1aa22d=>this['_viewToController']['has'](_0x1aa22d)),_0xc78e4b=[];for(const _0x3df73c of _0x3fbb76){const _0x91561f=this['_viewToController']['get'](_0x3df73c)['model']['getAllAdjacentSuggestions']();_0xc78e4b['push'](..._0x91561f['reduce']((_0x1eff90,_0x4b27b5)=>[..._0x1eff90,..._0x4b27b5['getMarkerNames']()],[]));}_0xe57910['activeMarkers']=_0xc78e4b;}['_addUIComponentsToFactory'](){const _0x330fc7=this['editor'],_0x392112=_0x330fc7['locale'],_0x1eaa92=c(_0x392112,'Track\x20changes'),_0x2f96ca=new _0x367e57([{'type':'switchbutton','model':new _0x597f14({'withText':!0x0,'isToggleable':!0x0,'label':_0x1eaa92,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x330fc7['plugins']['has']('TrackChangesPreview')&&_0x2f96ca['addMany']([{'type':'separator'},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5d5fe2 of _0x2f96ca)if(ke(_0x5d5fe2)){const _0xd3792c=_0x330fc7['commands']['get'](_0x5d5fe2['model']['commandName']);_0x5d5fe2['model']['bind']('isOn','isEnabled')['to'](_0xd3792c,'value','isEnabled');}_0x330fc7['ui']['componentFactory']['add']('trackChanges',_0x4bc102=>this['_createToolbarButton'](_0x4bc102,_0x2f96ca,_0x1eaa92)),_0x330fc7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28bbad=>this['_createMenuBarMenu'](_0x28bbad,_0x2f96ca,_0x1eaa92));}['_createToolbarButton'](_0x33f9a9,_0x551afc,_0x1101d8){const _0xcc5d6e=_0x648dfa(_0x33f9a9,_0x423aa4),_0x10a48a=this['editor']['commands']['get']('trackChanges');_0xcc5d6e['buttonView']['set']({'tooltip':_0x1101d8,'label':_0x1101d8,'icon':_0xf43b}),_0xcc5d6e['buttonView']['bind']('isOn')['to'](_0x10a48a,'value'),_0xcc5d6e['buttonView']['on']('execute',()=>{_0x10a48a['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f877f(_0xcc5d6e,_0x551afc,{'role':'menu'});const _0x1e17d2=[];for(const _0x206ea0 of _0x551afc)ke(_0x206ea0)&&_0x1e17d2['push'](this['editor']['commands']['get'](_0x206ea0['model']['commandName']));const _0x3e3a32=_0xcc5d6e['buttonView'];return _0x3e3a32['actionView']['unbind']('isEnabled'),_0x3e3a32['arrowView']['unbind']('isEnabled'),_0x3e3a32['actionView']['bind']('isEnabled')['to'](_0x10a48a,'isEnabled'),_0x3e3a32['arrowView']['bind']('isEnabled')['toMany'](_0x1e17d2,'isEnabled',(..._0x1cece5)=>_0x1cece5['some'](_0x1afbc3=>_0x1afbc3)),_0xcc5d6e['on']('execute',_0x1765f1=>{this['editor']['execute'](_0x1765f1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcc5d6e;}['_createMenuBarMenu'](_0x2764cf,_0xf27ded,_0x3e47b7){const _0x39bb9c=new _0x25591e(_0x2764cf),_0x473a5b=this['editor']['commands']['get']('trackChanges');_0x39bb9c['buttonView']['set']({'label':_0x3e47b7,'icon':_0xf43b});const _0x1eabf7=new _0x13ff27(_0x2764cf);for(const _0x49c87f of _0xf27ded){if('separator'==_0x49c87f['type']){_0x1eabf7['items']['add'](new _0x405e56(_0x2764cf));continue;}const _0x4ea31b=new _0x5986e2(_0x2764cf,_0x39bb9c),_0x5637ce=new _0x510a60(_0x2764cf),_0x30ba8b=_0x49c87f['model'];_0x5637ce['bind'](...Object['keys'](_0x30ba8b))['to'](_0x30ba8b),_0x5637ce['delegate']('execute')['to'](_0x39bb9c),_0x5637ce['on']('execute',()=>{this['editor']['execute'](_0x30ba8b['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ea31b['children']['add'](_0x5637ce),_0x1eabf7['items']['add'](_0x4ea31b);}return _0x39bb9c['bind']('isEnabled')['to'](_0x473a5b,'isEnabled'),_0x39bb9c['panelView']['children']['add'](_0x1eabf7),_0x39bb9c;}['_initializeController'](_0x50c2a5){const _0x588786=this['editor'],_0x55079c=_0x588786['config'],_0x34d6f5=_0x588786['plugins']['get']('Annotations'),_0x569f10=_0x588786['plugins']['get']('CommentsRepository'),_0x512803=_0x588786['plugins']['get']('EditorAnnotations'),_0x4f549b=_0x588786['plugins']['get'](_0x3c7e0d)['me'],_0x482e9c=_0x55079c['get']('trackChanges')['SuggestionThreadView'],_0x3a2804=_0x55079c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x171331,CommentThreadInputView:_0x201a7a}=_0x588786['plugins']['get']('CommentsUI');let _0x280f5e,_0xedf6ef,_0x523bad;this['_annotationViews']['has'](_0x50c2a5['id'])?(_0xedf6ef=this['_annotationViews']['get'](_0x50c2a5['id']),_0x280f5e=_0xedf6ef['mainView']):(_0x280f5e=new _0x482e9c(_0x588786['locale'],_0x50c2a5,_0x4f549b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x55079c['get']('comments.editorConfig'),'licenseKey':_0x55079c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x55079c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55079c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55079c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b3e4a(_0x55079c['get']('locale'),_0x588786['locale']),'CommentView':_0x55079c['get']('comments')['CommentView'],'CommentsListView':_0x171331,'CommentThreadInputView':_0x201a7a,'SuggestionView':_0x3a2804}),_0x280f5e['suggestionView']['acceptButton']['on']('execute',()=>{_0x588786['editing']['view']['focus']();}),_0x280f5e['suggestionView']['discardButton']['on']('execute',()=>{_0x588786['editing']['view']['focus']();}),_0xedf6ef=_0x34d6f5['createAnnotationView'](this['editor']['locale'],_0x280f5e),_0xedf6ef['bind']('isDirty')['to'](_0x280f5e,'isDirty'),_0xedf6ef['bind']('length')['to'](_0x280f5e),_0xedf6ef['bind']('type')['to'](_0x280f5e,'type',_0x31552a=>'suggestion-'+_0x31552a),_0x280f5e['on']('escape',()=>{_0x523bad['fire']('escape');}),this['_annotationViews']['set'](_0x50c2a5['id'],_0xedf6ef));const _0x967785=_0x569f10['createCommentThreadController'](_0x50c2a5['commentThread'],_0x280f5e),_0x20fc3d=new pe(_0x588786,_0x50c2a5,_0x280f5e,_0x967785),_0x12103e=_0x50c2a5['getAllAdjacentSuggestions']()['filter'](_0x590b17=>_0x590b17['isInContent']);_0x280f5e['descriptionParts']=_0x588786['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x12103e),this['_suggestionToController']['set'](_0x50c2a5,_0x20fc3d),this['_viewToController']['set'](_0x280f5e,_0x20fc3d),_0x523bad=_0x34d6f5['createAnnotation']({'view':_0xedf6ef,'target':()=>{const _0x545b9a=[],_0x4cf406=_0x50c2a5['getAllAdjacentSuggestions']()['filter'](_0xc64c8b=>_0xc64c8b['isInContent']);for(const _0x5abdc1 of _0x4cf406)_0x545b9a['push'](..._0x5abdc1['getMarkers']());return _0x371a4a(_0x588786['editing'],_0x545b9a);},'type':()=>'suggestion-'+_0x20fc3d['view']['type']}),_0x569f10['_bindAnnotationToEditors'](_0x280f5e,_0x523bad),_0x34d6f5['add'](_0x523bad),_0x512803['registerAnnotation'](_0x523bad);}['_destroyController'](_0x5e8a3d){const _0x856c58=this['editor']['plugins']['get']('CommentsRepository'),_0x22b770=this['editor']['plugins']['get']('Annotations'),_0x3db15f=this['_suggestionToController']['get'](_0x5e8a3d),_0xfb23c2=_0x3db15f['view'],_0x2188ad=_0x22b770['getByInnerView'](_0xfb23c2);_0x856c58['_unbindEditors'](_0xfb23c2),_0x2188ad&&_0x22b770['remove'](_0x2188ad),this['_suggestionToController']['delete'](_0x5e8a3d),this['_viewToController']['delete'](_0xfb23c2),_0x3db15f['destroy']();}['_updateController'](_0x5712d8){if(!_0x5712d8['isInContent']||!this['_suggestionToController']['has'](_0x5712d8))return;const _0x26e44c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2764fb=this['_suggestionToController']['get'](_0x5712d8),_0x368ca7=_0x5712d8['getAllAdjacentSuggestions']();_0x2764fb['view']['descriptionParts']=_0x26e44c['descriptionFactory']['getDescriptions'](_0x368ca7);}['destroy'](){for(const _0x2a34d8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2a34d8);for(const _0x9c9108 of this['_annotationViews']['values']())_0x9c9108['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x153a85){return'model'in _0x153a85;}class k extends _0x3e2428{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x39b524){this['editor']['plugins']['get'](p)['adapter']=_0x39b524;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x56e91f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x56e91f);}['getSuggestions']({skipNotAttached:_0x125669=!0x1,toJSON:_0xec8e5d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x125669,'toJSON':_0xec8e5d});}['getSuggestion'](_0x4c599f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c599f);}}const w=['Pagination'];class T extends _0x3e2428{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x569d62=this['editor'];if(_0x569d62['config']['define']('trackChangesData.editorCreator',_0x1c1945=>{const _0x3ee409=_0x569d62['model']['document']['getRootNames']()['reduce']((_0x277921,_0x36cec3)=>(_0x277921[_0x36cec3]='',_0x277921),{});return _0x569d62['constructor']['create'](_0x3ee409,_0x1c1945);}),'function'!=typeof _0x569d62['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c0c45('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x64503e){return N(this['editor'],!0x0,_0x64503e);}['getDataWithDiscardedSuggestions'](_0x5f4878){return N(this['editor'],!0x1,_0x5f4878);}}class D extends _0x3e2428{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12d9d5){function _0x509318(_0x1e808c){return _0x1e808c['map'](_0x21f020=>String['fromCharCode'](_0x21f020))['join']('');}super(_0x12d9d5),this['result']='end',_0x12d9d5[_0x509318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x509318([0x76,0x69,0x65,0x77])][_0x509318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x509318([0x61,0x75,0x74,0x6f]),_0x12d9d5[_0x509318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x509318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x509318([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x509318([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x509318([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x14c9e5){return void 0x0!==_0x14c9e5['getRootsAttributes'];}async function N(_0x40fc68,_0x5b3e93,_0x2b6882){const _0x44e0ce=_0x4ca52d(_0x40fc68,w);_0x44e0ce['plugins']['push'](p,D),_0x44e0ce['rootsAttributes']=Ge(_0x40fc68)?_0x40fc68['getRootsAttributes']():void 0x0;const _0x3801af=document['createDocumentFragment'](),_0x27c75d=_0x40fc68['config']['get']('trackChangesData')['editorCreator'],_0x4046f5=await _0x27c75d(_0x44e0ce,()=>function(_0x121d07){const _0x48e1ce=document['createElement']('div');return _0x121d07['appendChild'](_0x48e1ce),_0x48e1ce;}(_0x3801af));!function(_0x52209d,_0x2991fd){const _0x15071d=_0x52209d['model']['document']['getRootNames']()['reduce']((_0x18fcb1,_0x3897da)=>(_0x18fcb1[_0x3897da]=_0x52209d['data']['get']({'rootName':_0x3897da}),_0x18fcb1),{}),_0x3ed560=_0x52209d['plugins']['get']('Users')['users']['map'](_0x3867a4=>({'id':_0x3867a4['id'],'name':_0x3867a4['name']})),_0x2766cc=_0x52209d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d0e6a=_0x52209d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x781bc1=_0x2991fd['plugins']['get']('Users'),_0x3bf12b=_0x2991fd['plugins']['get']('TrackChangesEditing'),_0x5ad61e=_0x2991fd['plugins']['get']('CommentsRepository');for(const _0x2ce7fd of _0x5ad61e['getCommentThreads']())_0x2ce7fd['remove']();for(const _0x35c9b6 of _0x3ed560)_0x781bc1['getUser'](_0x35c9b6['id'])||_0x781bc1['addUser'](_0x35c9b6);_0x781bc1['me']||_0x781bc1['useAnonymousUser']();for(const _0x40b6c5 of _0x3d0e6a)_0x5ad61e['addCommentThread'](_0x40b6c5);for(const _0x402b7d of _0x2766cc)_0x3bf12b['addSuggestionData'](_0x402b7d);_0x2991fd['data']['set'](_0x15071d);}(_0x40fc68,_0x4046f5),_0x4046f5['execute'](_0x5b3e93?'acceptAllSuggestions':'discardAllSuggestions');const _0x51451d=Ge(_0x4046f5)?_0x4046f5['getFullData'](_0x2b6882):_0x4046f5['data']['get'](_0x2b6882);return await _0x4046f5['destroy'](),_0x51451d;}class Me extends _0x5c5cfc{['options'];constructor(_0x33e457,_0x4c6477){super(_0x33e457),this['options']=_0x4c6477,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'](_0x55701e,_0x2c4cde){if(!this['element'])return;const _0x2d6263=[];for(const [_0x5c353f,_0x4e764d]of _0x55701e){const _0x3ba6e7=document['createElement']('div');_0x3ba6e7['setAttribute']('data-ck-root-name',_0x5c353f),_0x3ba6e7['className']=_0x4e764d['classes']+'\x20ck-track-changes-preview__root-container',_0x3ba6e7['innerHTML']=_0x4e764d['content'],_0x2d6263['push'](_0x3ba6e7);}_0x2c4cde(this['element'],_0x2d6263),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3929fd{constructor(_0x23440d){super(_0x23440d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b6495=this['editor'],_0x41a5b=_0x2b6495['locale'],_0x51a374=_0x2b6495['plugins']['get']('Dialog');let _0x4caab8;const _0xafa077=function(_0x1b1137){const _0x50a39d={};if('editables'in _0x1b1137['ui']['view']){for(const [_0x945bf9,_0x1b7358]of Object['entries'](_0x1b1137['ui']['view']['editables']))_0x50a39d[_0x945bf9]=_0x1b7358['element'];}else _0x50a39d[_0x1b1137['model']['document']['getRootNames']()[0x0]]=_0x1b1137['ui']['view']['editable']['element'];return _0x50a39d;}(_0x2b6495),_0xde7694=function(_0x5db221){let _0x4e797c=0x0;for(const _0x50b7c7 of Object['values'](_0x5db221))_0x4e797c=Math['max'](_0x4e797c,_0x50b7c7['getBoundingClientRect']()['width']);let _0x2db317=0x0;for(const _0x578f21 of Object['values'](_0x5db221))_0x2db317+=_0x578f21['getBoundingClientRect']()['height'];const _0x57d620=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4ca68d=Math['min'](_0x2db317,_0x57d620);return{'width':_0x4e797c,'height':_0x4ca68d};}(_0xafa077);_0x51a374['show']({'id':'finalContentPreview','title':c(_0x41a5b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x41a5b,{'dialogRects':_0xde7694}),'onHide':()=>{_0x4caab8['detachFromDom']();},'onShow':()=>{_0x2b6495['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x31d076=>{const _0x55fe74=this['_standarizeRootsData'](_0x31d076,_0x2b6495,_0xafa077);_0x51a374['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x55fe74,_0x2b6495['config']['get']('trackChanges.preview.renderFunction'));}),_0x4caab8=new _0x5ccbb8(_0x41a5b,[_0x51a374['view']]),_0x4caab8['attachToDom'](),_0x4caab8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2b6495['once']('destroy',()=>{_0x4caab8['detachFromDom']();});const _0x5a023a=_0x51a374['view']['headerView']['class'];_0x51a374['view']['headerView']['class']=_0x5a023a?_0x5a023a+'\x20ck-reset_all':'ck-reset_all',_0x51a374['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x51a374['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1ce414=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x343439=_0x1ce414['previewMode'],_0x365a0d={};if('$labels'===_0x343439){for(const _0x43459e of _0x1ce414['getMergeFieldsIds']())_0x365a0d[_0x43459e]=_0x1ce414['getLabel'](_0x43459e)||_0x43459e;}else{const _0x5192b9='$defaultValues'===_0x343439?_0x1ce414['getDefaultValues']():_0x1ce414['getDataSetValues'](_0x343439,!0x0);for(const _0x42a737 of Object['entries'](_0x5192b9)){const [_0x2d1cd6,_0x38f3b4]=_0x42a737;_0x365a0d[_0x2d1cd6]=null!==_0x38f3b4?_0x38f3b4:_0x1ce414['getLabel'](_0x2d1cd6)||_0x2d1cd6;}}return{'mergeFieldsData':_0x365a0d};}['_standarizeRootsData'](_0x35cc84,_0x454194,_0x45b5db){let _0x180951;if('string'==typeof _0x35cc84){const _0x347954=_0x454194['model']['document']['getRootNames']()[0x0];_0x180951={[_0x347954]:_0x35cc84};}else _0x180951=_0x35cc84;const _0x3a490a=this['_fixMediaEmbeds'](_0x180951,_0x454194),_0x27d91d=function(_0x1b78a3,_0x5316f7){for(const [_0x4306fe,_0x5061cb]of _0x1b78a3)_0x5061cb['classes']=_0x5316f7[_0x4306fe]['classList']['value']['replace']('ck-focused','');return _0x1b78a3;}(this['_sortRoots'](_0x454194)['reduce']((_0x430c53,_0x222b16)=>(_0x430c53['push']([_0x222b16,{'content':_0x3a490a[_0x222b16],'classes':''}]),_0x430c53),[]),_0x45b5db);return _0x27d91d;}['_fixMediaEmbeds'](_0x34fa2f,_0x3b3f69){if(!_0x3b3f69['plugins']['has']('MediaEmbedEditing'))return _0x34fa2f;const _0x23524e=_0x3b3f69['plugins']['get']('MediaEmbedEditing');for(const [_0xb03de8,_0x3806e8]of Object['entries'](_0x34fa2f)){const _0x5948f2=document['createElement']('div');_0x5948f2['innerHTML']=_0x3806e8,(_0x5948f2['querySelectorAll']('figure.media')['forEach'](_0x9ca5fb=>{const _0x286a79=_0x9ca5fb['querySelector']('oembed');if(_0x286a79){const _0x238fd6=_0x286a79['getAttribute']('url');if(_0x238fd6){const _0x1a3ef0=_0x23524e['registry']['getMediaViewElement'](new _0xd41810(_0x3b3f69['editing']['view']['document']),_0x238fd6,{'elementName':'','renderForEditingView':!0x0}),_0x836e7f=document['createElement']('div');_0x836e7f['classList']['add']('ck-media__wrapper'),_0x1a3ef0['render'](_0x836e7f,_0x3b3f69['editing']['view']['domConverter']),_0x286a79['replaceWith'](_0x836e7f);}}}),_0x34fa2f[_0xb03de8]=_0x5948f2['innerHTML']);}return _0x34fa2f;}['_sortRoots'](_0x513842){if(!function(_0xa55e6d){return void 0x0!==_0xa55e6d['getRootsAttributes'];}(_0x513842))return _0x513842['model']['document']['getRootNames']();const _0x2ea131=[],_0x14660d=new Map();for(const _0x431377 of _0x513842['model']['document']['getRootNames']()){const _0x519884=_0x513842['editing']['view']['getDomRoot'](_0x431377)['getClientRects']()['item'](0x0);_0x2ea131['push'](_0x431377),_0x14660d['set'](_0x431377,_0x519884);}return _0x2ea131['sort']((_0x1b57a2,_0x959287)=>{const _0x2d70fd=_0x14660d['get'](_0x1b57a2),_0x28515d=_0x14660d['get'](_0x959287);return _0x2d70fd['y']-_0x28515d['y']||_0x2d70fd['x']-_0x28515d['x'];}),_0x2ea131;}}class te extends _0x3e2428{static get['requires'](){return[T,_0x37cf6e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb31b48){super(_0xb31b48),_0xb31b48['commands']['add']('previewFinalContent',new re(this['editor'])),_0xb31b48['config']['define']('trackChanges.preview.renderFunction',(_0x2e1979,_0x564b21)=>{for(const _0x493a88 of _0x564b21)_0x2e1979['appendChild'](_0x493a88);});}}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};