@ckeditor/ckeditor5-track-changes 47.0.0-alpha.5 → 47.0.0-alpha.7

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 (232) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  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/ai.d.ts +17 -0
  158. package/src/integrations/ai.js +23 -0
  159. package/src/integrations/aiassistant.js +1 -1
  160. package/src/integrations/aiquickactions.d.ts +17 -0
  161. package/src/integrations/aiquickactions.js +23 -0
  162. package/src/integrations/alignment.js +1 -1
  163. package/src/integrations/basicstyles.js +1 -1
  164. package/src/integrations/blockquote.js +1 -1
  165. package/src/integrations/bookmark.js +1 -1
  166. package/src/integrations/casechange.js +1 -1
  167. package/src/integrations/ckbox.js +1 -1
  168. package/src/integrations/codeblock.js +1 -1
  169. package/src/integrations/comments.js +1 -1
  170. package/src/integrations/deletecommand.js +1 -1
  171. package/src/integrations/emoji.js +1 -1
  172. package/src/integrations/entercommand.js +1 -1
  173. package/src/integrations/findandreplace.js +1 -1
  174. package/src/integrations/font.js +1 -1
  175. package/src/integrations/formatpainter.js +1 -1
  176. package/src/integrations/heading.js +1 -1
  177. package/src/integrations/highlight.js +1 -1
  178. package/src/integrations/horizontalline.js +1 -1
  179. package/src/integrations/htmlembed.js +1 -1
  180. package/src/integrations/image.js +1 -1
  181. package/src/integrations/imagereplace.js +1 -1
  182. package/src/integrations/imagestyle.js +1 -1
  183. package/src/integrations/importword.js +1 -1
  184. package/src/integrations/indent.js +1 -1
  185. package/src/integrations/inputcommand.js +1 -1
  186. package/src/integrations/legacylist.js +1 -1
  187. package/src/integrations/legacylistproperties.js +1 -1
  188. package/src/integrations/lineheight.js +1 -1
  189. package/src/integrations/link.js +1 -1
  190. package/src/integrations/list.js +1 -1
  191. package/src/integrations/listproperties.js +1 -1
  192. package/src/integrations/mediaembed.js +1 -1
  193. package/src/integrations/mention.js +1 -1
  194. package/src/integrations/mergefields.js +1 -1
  195. package/src/integrations/multilevellist.js +1 -1
  196. package/src/integrations/pagebreak.js +1 -1
  197. package/src/integrations/paragraph.js +1 -1
  198. package/src/integrations/removeformat.js +1 -1
  199. package/src/integrations/replacesourcecommand.js +1 -1
  200. package/src/integrations/restrictededitingmode.js +1 -1
  201. package/src/integrations/shiftentercommand.js +1 -1
  202. package/src/integrations/standardeditingmode.js +1 -1
  203. package/src/integrations/style.js +1 -1
  204. package/src/integrations/table.js +1 -1
  205. package/src/integrations/tablecaption.js +1 -1
  206. package/src/integrations/tableclipboard.js +2 -2
  207. package/src/integrations/tablecolumnresize.js +1 -1
  208. package/src/integrations/tableheadings.js +1 -1
  209. package/src/integrations/tablelayout.js +1 -1
  210. package/src/integrations/tablemergesplit.js +1 -1
  211. package/src/integrations/tableofcontents.js +1 -1
  212. package/src/integrations/tableproperties.js +1 -1
  213. package/src/integrations/template.js +1 -1
  214. package/src/integrations/title.js +1 -1
  215. package/src/integrations/undo.js +1 -1
  216. package/src/integrations/uploadcare.js +1 -1
  217. package/src/integrations/utils.js +1 -1
  218. package/src/suggestion.js +2 -2
  219. package/src/suggestiondescriptionfactory.js +1 -1
  220. package/src/trackchanges.js +1 -1
  221. package/src/trackchangesdata.js +1 -1
  222. package/src/trackchangesediting.d.ts +3 -1
  223. package/src/trackchangesediting.js +1 -1
  224. package/src/trackchangespreview.js +1 -1
  225. package/src/trackchangesui.js +1 -1
  226. package/src/ui/suggestioncontroller.js +2 -2
  227. package/src/ui/view/basesuggestionthreadview.js +1 -1
  228. package/src/ui/view/suggestionthreadview.js +1 -1
  229. package/src/ui/view/suggestionview.js +1 -1
  230. package/src/ui/view/trackchangespreviewview.js +1 -1
  231. package/src/utils/common-translations.js +1 -1
  232. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x217abd,Plugin as _0x17585e,PendingActions as _0x25e4bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa784d6,ObservableMixin as _0x4e351e,uid as _0x193fe4,priorities as _0x59cb45,insertToPriorityArray as _0x5adae3,toArray as _0x2649ba,logWarning as _0xea056a,getEnvKeystrokeText as _0x1072a0,FocusTracker as _0x263679,KeystrokeHandler as _0x4d6d0b,Collection as _0x578b80}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x105fcc,IconCancel as _0x930187,IconTrackChanges as _0x41a70f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4076b7,View as _0x4284fe,ViewCollection as _0x372eaa,FocusCycler as _0x2c5d29,UIModel as _0x473d97,createDropdown as _0x3d97f0,SplitButtonView as _0x4b1a96,addListToDropdown as _0x47da06,MenuBarMenuView as _0x63be14,MenuBarMenuListView as _0x2cc1b7,ListSeparatorView as _0x56beb1,MenuBarMenuListItemView as _0x28f3af,MenuBarMenuListItemButtonView as _0x57f200,BodyCollection as _0x324c7f,Dialog as _0x1512a6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xf032e2,DocumentCompare as _0x1dffe4,hashObject as _0x41932e,surroundingMarkersDetector as _0x2eb4e4,FOCUS_ANNOTATION_KEYSTROKE as _0x98cc37,AriaDescriptionView as _0x17467e,setupThreadKeyboardNavigation as _0x16fb77,trimHtml as _0x49a385,UserView as _0x3b5111,LateFocusButtonView as _0x2a721f,getDateTimeFormatter as _0x3b892e,getAllMarkersDomElementsSorted as _0x447ebe,sanitizeEditorConfig as _0xfe236a}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x58f139,ModelLiveRange as _0x5d3e65,ModelLivePosition as _0x133006,ModelPosition as _0x415479,ModelRange as _0x47e404,_DetachOperation as _0x43a80a,ViewDowncastWriter as _0x4043d7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2797a8,toWidget as _0x948813}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x81ee20,set as _0x679b0a,isEqual as _0x46f9af,unset as _0x6061aa,omit as Gt}from'es-toolkit/compat';import{Delete as _0x41e8a7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x27e05d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3c9dea}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x217abd{['_enabledCommands'];constructor(_0x46ce24,_0xccbf0a){super(_0x46ce24),this['_enabledCommands']=_0xccbf0a,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 _0x2b88d1 of this['editor']['commands']['commands']())_0x2b88d1['affectsData']&&!this['_enabledCommands']['has'](_0x2b88d1)&&_0x2b88d1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xa7c27 of this['editor']['commands']['commands']())_0xa7c27['affectsData']&&!this['_enabledCommands']['has'](_0xa7c27)&&_0xa7c27['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x217abd{['_suggestions'];constructor(_0x48bd19,_0x2d9be1){super(_0x48bd19),this['_suggestions']=_0x2d9be1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2ab316){const _0x2084c9=this['_suggestions']['get'](_0x2ab316);if(!_0x2084c9)throw new _0xa784d6('track-changes-accept-suggestion-not-found',this);const _0xce4cb=_0x2084c9['getRanges']();this['editor']['model']['canEditAt'](_0xce4cb)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2084c9);}}class O extends _0x217abd{['_suggestions'];constructor(_0x2ec3e7,_0x715205){super(_0x2ec3e7),this['_suggestions']=_0x715205,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x362de9){const _0x2d3f7a=this['_suggestions']['get'](_0x362de9);if(!_0x2d3f7a)throw new _0xa784d6('track-changes-discard-suggestion-not-found',this);const _0x48170b=_0x2d3f7a['getRanges']();this['editor']['model']['canEditAt'](_0x48170b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d3f7a);}}function ls(_0x4f9b0f,_0x15c1f0){let _0x4a3cb1='';return _0x4a3cb1+=_0x4f9b0f['split']('*')['map']((_0x136b1b,_0x2687ba)=>_0x2687ba%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x136b1b)+'</span>':tn(_0x136b1b))['join'](''),_0x15c1f0&&(_0x4a3cb1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x15c1f0['value']+'\x22\x20title=\x22'+_0x15c1f0['title']+'\x22></span>'),_0x4a3cb1;}function tn(_0xf27a76){const _0x53f183=document['createElement']('span');return _0x53f183['innerText']=_0xf27a76,_0x53f183['innerHTML'];}function ts(_0x3e4d28){return _0x3e4d28['sort']((_0x379c46,_0x57dc6d)=>'attribute'===_0x379c46['type']&&'attribute'!==_0x57dc6d['type']?-0x1:'attribute'!==_0x379c46['type']&&'attribute'===_0x57dc6d['type']?0x1:'deletion'==_0x379c46['type']&&'deletion'!=_0x57dc6d['type']?-0x1:'deletion'!=_0x379c46['type']&&'deletion'==_0x57dc6d['type']?0x1:0x0);}function to(_0x1fd835,_0x77b878){let _0x403d6f,_0x5c9191=0x0;const _0x3db2c0=[],_0x162e05=_0x77b878['schema'];for(;_0x5c9191<_0x1fd835['length'];){const _0x22d3cb=_0x1fd835[_0x5c9191],_0x1b0bc6=_0x1fd835[_0x5c9191+0x1];_0x403d6f||(_0x403d6f=_0x77b878['createPositionBefore'](_0x22d3cb)),nn(_0x77b878,_0x22d3cb,_0x1b0bc6)||(_0x3db2c0['push'](_0x77b878['createRange'](_0x403d6f,_0x162e05['isObject'](_0x22d3cb)?_0x77b878['createPositionAfter'](_0x22d3cb):_0x77b878['createPositionAt'](_0x22d3cb,'end'))),_0x403d6f=null),_0x5c9191++;}return _0x3db2c0;}function nn(_0x1b905f,_0x4de9ac,_0x2832cc){if(!_0x2832cc)return!0x1;const _0x57e7cd=_0x1b905f['createPositionAfter'](_0x4de9ac),_0x54430e=_0x1b905f['createPositionBefore'](_0x2832cc);return _0x57e7cd['isTouching'](_0x54430e);}function rs(_0x1f8701,_0x619e23,_0x27e23){for(;_0x27e23['length'];){const _0x295e8d=_0x27e23['splice'](0x0,0x64);_0x1f8701['change'](()=>{for(const _0x47357a of _0x295e8d)_0x47357a['isInContent']&&_0x619e23['execute'](_0x47357a['id']);});}}class x extends _0x217abd{['_command'];['_suggestions'];constructor(_0x23d2a1,_0x727de8,_0x54d6c8){super(_0x23d2a1),this['_command']=_0x727de8,this['_suggestions']=_0x54d6c8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46b833=Array['from'](this['_suggestions']['values']())['some'](_0x496c8b=>_0x496c8b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46b833;}['execute'](){const _0x30ffc2=ts(Array['from'](this['_suggestions']['values']()));for(const _0xa589d2 of _0x30ffc2){const _0x6a7ace=_0xa589d2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6a7ace))return;}rs(this['editor']['model'],this['_command'],_0x30ffc2);}}class E extends _0x217abd{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x42e03b,_0x33dfd7,_0x26fb3e){super(_0x42e03b),this['_command']=_0x33dfd7,this['_suggestions']=_0x26fb3e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2587f4=this['editor']['model']['document']['selection'],_0x260736=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x14e2d2,_0x16f680){const _0x182bbf=Array['from'](_0x14e2d2['getRanges']()),_0x32e92e=new Set();for(const _0x2e9141 of _0x16f680)if(_0x2e9141['isInContent']){for(const _0x1f929f of _0x182bbf)for(const _0x3476c1 of _0x2e9141['getRanges']())(_0x1f929f['isIntersecting'](_0x3476c1)||_0x14e2d2['isCollapsed']&&!_0x2e9141['isMultiRange']&&_0x2e9141['next']&&_0x3476c1['end']['isTouching'](_0x1f929f['start']))&&_0x32e92e['add'](_0x2e9141);}return _0x32e92e;}(_0x2587f4,_0x260736),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x579eae=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5b304e of _0x579eae){const _0xa3665=_0x5b304e['getRanges']();if(!this['editor']['model']['canEditAt'](_0xa3665))return;}rs(this['editor']['model'],this['_command'],_0x579eae);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x4e351e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2748e5,_0x273388){super(),this['id']=_0x273388['id'],this['type']=_0x273388['type'],this['subType']=_0x273388['subType']||null,this['author']=_0x273388['author'],this['creator']=_0x273388['creator']||_0x273388['author'],this['isExternal']=Boolean(_0x273388['attributes']&&_0x273388['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x273388['originalSuggestionId']||null,this['_model']=_0x2748e5,this['_onAccept']=_0x273388['onAccept'],this['_onDiscard']=_0x273388['onDiscard'],this['_onAttributesChange']=_0x273388['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x273388['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 _0x168b68=this;for(;_0x168b68['previous'];)_0x168b68=_0x168b68['previous'];return _0x168b68;}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'](_0x3fc646){this['_markerNames']['add'](_0x3fc646);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x313648=>this['_model']['markers']['get'](_0x313648))['filter'](_0x448ac5=>_0x448ac5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1811a8=>{for(const _0x264ee0 of this['getMarkers']())_0x1811a8['removeMarker'](_0x264ee0);}),this['_markerNames']['clear']();}['removeMarker'](_0x604223){this['_model']['change'](_0x5ac94b=>{_0x5ac94b['removeMarker'](_0x604223);}),this['_markerNames']['delete'](_0x604223);}['addRange'](_0x3c2d67){const _0x2a2d32='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x2a2d32),this['_model']['change'](_0x5bd579=>{_0x5bd579['addMarker'](_0x2a2d32,{'range':_0x3c2d67,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14a65a){for(const _0x2937df of this['getRanges']())if(_0x2937df['isIntersecting'](_0x14a65a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x13b37a=>_0x13b37a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x227723,_0x3ff8d2)=>[..._0x227723,..._0x3ff8d2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x15ac15=this['getRanges']();if(0x1!=_0x15ac15['length'])return null;const _0x26a7a5=_0x15ac15[0x0],_0x14c486=_0x26a7a5['start']['nodeAfter'],_0x195839=_0x26a7a5['end']['nodeBefore'];return _0x14c486 instanceof _0x58f139?_0x14c486!=_0x195839?null:_0x14c486: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 _0x28c181=[];let _0x2fe676=this['head'];for(;_0x2fe676;)_0x28c181['push'](_0x2fe676),_0x2fe676=_0x2fe676['next'];return _0x28c181;}['setAttribute'](_0x2be985,_0x3888ea){const _0x2ee49f=_0x81ee20(this['attributes']);_0x679b0a(_0x2ee49f,_0x2be985,_0x3888ea),_0x46f9af(_0x2ee49f,this['attributes'])||(this['attributes']=_0x2ee49f,this['_onAttributesChange'](_0x2ee49f));}['removeAttribute'](_0x460371){const _0x3063ff=_0x81ee20(this['attributes']);_0x6061aa(_0x3063ff,_0x460371),_0x46f9af(_0x3063ff,this['attributes'])||(this['attributes']=_0x3063ff,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 _0x193fe4()['substr'](0x1,0x5);}}function o(_0x3ae540,_0x4d5827,_0xf2ffe6){const _0xd01392=_0x3ae540['t'],t=_0x3ae540['t'];switch(_0x4d5827){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',_0xf2ffe6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xf2ffe6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xf2ffe6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xf2ffe6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xf2ffe6);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',_0xf2ffe6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xf2ffe6);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',_0xf2ffe6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xf2ffe6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xf2ffe6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xf2ffe6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xf2ffe6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xf2ffe6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xf2ffe6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xf2ffe6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xf2ffe6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xf2ffe6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xf2ffe6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xf2ffe6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xf2ffe6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xf2ffe6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xf2ffe6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xf2ffe6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xf2ffe6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xf2ffe6);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'},_0xf2ffe6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xf2ffe6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xf2ffe6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xf2ffe6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xf2ffe6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xf2ffe6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xf2ffe6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xf2ffe6);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'},_0xf2ffe6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xf2ffe6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xf2ffe6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xf2ffe6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xf2ffe6);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'},_0xf2ffe6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xf2ffe6);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'},_0xf2ffe6);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0xf2ffe6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xf2ffe6);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'},_0xf2ffe6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xf2ffe6);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'},_0xf2ffe6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xf2ffe6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xf2ffe6);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'},_0xf2ffe6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xf2ffe6);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 _0xd01392({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xf2ffe6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xd01392({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xf2ffe6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xf2ffe6);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'},_0xf2ffe6);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'},_0xf2ffe6);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'},_0xf2ffe6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4d5827;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x562615,_0x44dd62){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x562615,this['_locale']=_0x44dd62;}['getDescriptions'](_0xd1d700){const _0x2f594b=[],_0x477ebf=new Set(),_0x510de4=new Set();for(let _0x4a8960=0x0;_0x4a8960<_0xd1d700['length'];_0x4a8960++){const _0x332adf=_0xd1d700[_0x4a8960];if(!_0x332adf['isInContent'])continue;const _0x4fd79f=this['_handleCustomCallbackDescription'](_0x332adf);if(_0x4fd79f){if(null!=_0x332adf['subType']){if(_0x477ebf['has'](_0x332adf['subType']))continue;_0x477ebf['add'](_0x332adf['subType']);}_0x2f594b['push'](_0x4fd79f);}else{if('attribute'==_0x332adf['type']){const _0x8cb248=_0x332adf['data']['key'];if(_0x510de4['has'](_0x8cb248))continue;_0x510de4['add'](_0x332adf['data']['key']),_0x8cb248==m?this['_handleRenameSuggestionDescription'](_0x2f594b,_0x332adf):this['_handleAttributeSuggestionDescription'](_0x2f594b,_0x332adf);continue;}'insertion'!=_0x332adf['type']&&'deletion'!=_0x332adf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2f594b,_0x332adf,_0xd1d700[_0x4a8960+0x1]);}}return this['_resolveDescriptionItems'](_0x2f594b);}['registerDescriptionCallback'](_0x1af35b){this['_customCallbacks']['push'](_0x1af35b);}['registerElementLabel'](_0x11c471,_0x1d56c3,_0x216596=_0x59cb45['normal']){'function'==typeof _0x11c471?_0x5adae3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x11c471,'label':_0x1d56c3,'priority':_0x216596}):this['_itemLabels']['set'](_0x11c471,_0x1d56c3);}['registerAttributeLabel'](_0x54a5af,_0x4e2ad1){this['_attributeLabels']['set'](_0x54a5af,_0x4e2ad1);}['getItemLabel'](_0x3cd8b3,_0x22546b=0x1){let _0x5a6d14;for(const _0x2874cf of this['_itemLabelsCallbacks'])if(_0x2874cf['matchingCallback'](_0x3cd8b3)){_0x5a6d14=_0x2874cf['label'];break;}return _0x5a6d14||(_0x5a6d14=this['_itemLabels']['get'](_0x3cd8b3['name'])),_0x5a6d14?_0x5a6d14(_0x22546b):0x1!==_0x22546b?_0x22546b+'\x20'+_0x3cd8b3['name']+'s':''+_0x3cd8b3['name'];}['_addDescriptionItems'](_0x1c2b17,_0x253316){const _0x4f52d3=_0x253316['getFirstRange']()['getWalker'](),_0x33acff='insertion'==_0x253316['type']?'add':'remove';for(const _0x21a15c of _0x4f52d3){const _0xfc24d5=_0x21a15c['item'],_0x5421a3=_0x1c2b17[_0x1c2b17['length']-0x1];if(_0xfc24d5['is']('$textProxy'))_0x5421a3&&_0x5421a3['type']['indexOf']('Container')>-0x1&&_0x1c2b17['pop'](),_0x5421a3&&'text'==_0x5421a3['type']?_0x5421a3[_0x33acff]+=_0xfc24d5['data']:_0x1c2b17['push']({'type':'text','add':'add'==_0x33acff?_0xfc24d5['data']:'','remove':'remove'==_0x33acff?_0xfc24d5['data']:''});else{if(this['_schema']['isObject'](_0xfc24d5)){const _0x4e8a2e=_0xfc24d5;if(_0x5421a3&&_0x5421a3['type']['indexOf']('Container')>-0x1&&_0x1c2b17['pop'](),'elementEnd'==_0x21a15c['type'])continue;_0x5421a3&&_0x5421a3['type']==_0x33acff+'Object'&&_0x5421a3['element']['name']==_0x4e8a2e['name']?_0x5421a3['quantity']++:_0x1c2b17['push']({'type':_0x33acff+'Object','element':_0x4e8a2e,'quantity':0x1}),_0x4f52d3['skip'](_0x82218e=>!('elementEnd'==_0x82218e['type']&&_0x82218e['item']==_0xfc24d5));}else{if(this['_schema']['checkChild'](_0xfc24d5,'$text')||_0xfc24d5['is']('element','softBreak')){const _0x1c4410=_0xfc24d5;if('add'==_0x33acff&&'elementStart'==_0x21a15c['type']||'remove'==_0x33acff&&'elementEnd'==_0x21a15c['type'])continue;if(_0x5421a3&&-0x1==_0x5421a3['type']['indexOf']('Container')){'text'==_0x5421a3['type']&&(_0x5421a3[_0x33acff]+='\x0a');continue;}let _0x29b8ca;if(_0x29b8ca='add'==_0x33acff?_0x1c4410['nextSibling']&&!this['_schema']['isObject'](_0x1c4410['nextSibling'])?_0x1c4410['nextSibling']:null:_0x1c4410['previousSibling']&&!this['_schema']['isObject'](_0x1c4410['previousSibling'])?_0x1c4410['previousSibling']:null,_0x1c4410['isEmpty']||_0x29b8ca&&_0x29b8ca['isEmpty']){const _0x283f3e=_0x29b8ca&&_0x29b8ca['isEmpty']?_0x29b8ca:_0x1c4410;_0x5421a3&&_0x5421a3['type']==_0x33acff+'EmptyContainer'&&_0x5421a3['element']['name']==_0x283f3e['name']?_0x5421a3['quantity']++:_0x1c2b17['push']({'type':_0x33acff+'EmptyContainer','element':_0x283f3e,'quantity':0x1});}else _0x1c2b17['push']({'type':_0x33acff+'Container','element':_0x1c4410});}}}}}['_resolveDescriptionItems'](_0x347677){const _0x44cd40=this['_locale'],_0x3bc597=[],_0x3d3ae8=[],_0x2f1c45=[];for(const _0x3afc01 of _0x347677)switch(_0x3afc01['type']){case'text':if(_0x3afc01['add']=_0x3afc01['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3afc01['remove']=_0x3afc01['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3afc01['add']&&''!=_0x3afc01['remove']){_0x3bc597['push']({'type':'replace','content':o(_0x44cd40,'REPLACE_TEXT',['\x22'+_0x3afc01['remove']+'\x22','\x22'+_0x3afc01['add']+'\x22'])});continue;}if(null!=_0x3afc01['add']['match'](/^ +$/)){_0x3bc597['push']({'type':'insertion','content':o(_0x44cd40,'*Insert:*\x20%0',o(_0x44cd40,'ELEMENT_SPACE',_0x3afc01['add']['length']))});continue;}if(null!=_0x3afc01['remove']['match'](/^ +$/)){_0x3bc597['push']({'type':'deletion','content':o(_0x44cd40,'*Remove:*\x20%0',o(_0x44cd40,'ELEMENT_SPACE',_0x3afc01['remove']['length']))});continue;}if(''!=_0x3afc01['add']){_0x3bc597['push']({'type':'insertion','content':o(_0x44cd40,'*Insert:*\x20%0','\x22'+_0x3afc01['add']+'\x22')});continue;}_0x3bc597['push']({'type':'deletion','content':o(_0x44cd40,'*Remove:*\x20%0','\x22'+_0x3afc01['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bc597['push']({'type':'insertion','content':o(_0x44cd40,'*Insert:*\x20%0',this['getItemLabel'](_0x3afc01['element'],_0x3afc01['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bc597['push']({'type':'deletion','content':o(_0x44cd40,'*Remove:*\x20%0',this['getItemLabel'](_0x3afc01['element'],_0x3afc01['quantity']))});continue;case'addContainer':_0x3bc597['push']({'type':'insertion','content':o(_0x44cd40,'*Split:*\x20%0',this['getItemLabel'](_0x3afc01['element'],_0x3afc01['quantity']))});continue;case'removeContainer':_0x3bc597['push']({'type':'deletion','content':o(_0x44cd40,'*Merge:*\x20%0',this['getItemLabel'](_0x3afc01['element'],_0x3afc01['quantity']))});continue;case'addFormat':_0x3d3ae8['push'](_0x3afc01['key']);continue;case'removeFormat':_0x2f1c45['push'](_0x3afc01['key']);continue;default:_0x3bc597['push'](_0x3afc01);}if(_0x3d3ae8['length']){const _0x3e668b=_0x3d3ae8['map'](_0x4b26fb=>this['_attributeLabels']['has'](_0x4b26fb)?this['_attributeLabels']['get'](_0x4b26fb):_0x4b26fb)['join'](',\x20');_0x3bc597['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3e668b)});}if(_0x2f1c45['length']){const _0x9d6dfc=_0x2f1c45['map'](_0x2e65a4=>this['_attributeLabels']['has'](_0x2e65a4)?this['_attributeLabels']['get'](_0x2e65a4):_0x2e65a4)['join'](',\x20');_0x3bc597['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x9d6dfc)});}return _0x3bc597;}['_handleCustomCallbackDescription'](_0x3e9df7){for(const _0x1789c6 of this['_customCallbacks']){const _0x3c5ab2=_0x1789c6(_0x3e9df7);if(_0x3c5ab2&&'type'in _0x3c5ab2)return _0x3c5ab2;}}['_handleAttributeSuggestionDescription'](_0x2d4432,_0x2db121){const _0x1da044=_0x2db121['data'],_0x400550=void 0x0===_0x1da044['newValue']?'removeFormat':'addFormat';_0x2d4432['push']({'type':_0x400550,'key':_0x1da044['key']});}['_handleRenameSuggestionDescription'](_0x32e30a,_0x58e482){_0x32e30a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x58e482['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x663886,_0x554634,_0x5076c0){if(this['_addDescriptionItems'](_0x663886,_0x554634),_0x5076c0&&_0x5076c0['getFirstRange']()&&!_0x554634['getFirstRange']()['end']['isEqual'](_0x5076c0['getFirstRange']()['start'])){const _0x13be08=_0x663886[_0x663886['length']-0x1],_0xe09018='insertion'==_0x554634['type']?'add':'remove';_0x13be08&&'text'==_0x13be08['type']&&(_0x13be08[_0xe09018]+='\x0a');}}}class V extends _0x17585e{['afterInit'](){const _0x1ded8e=this['editor'],_0x39b3b0=_0x1ded8e['plugins']['get']('TrackChangesEditing');_0x1ded8e['commands']['get']('showAIAssistant')&&_0x39b3b0['enableCommand']('showAIAssistant');}}class F extends _0x17585e{['afterInit'](){const _0x3ab940=this['editor'],_0x41b605=_0x3ab940['locale'];if(!_0x3ab940['plugins']['has']('AlignmentEditing'))return;const _0x20b488=_0x3ab940['plugins']['get']('TrackChangesEditing');_0x20b488['enableDefaultAttributesIntegration']('alignment'),_0x20b488['registerBlockAttribute']('alignment'),_0x20b488['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x41b605,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x165571=this['editor'],_0x28fcd9=_0x165571['locale'];_0x165571['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe8a981=>{if('formatBlock'!=_0xe8a981['type'])return;const {data:_0x32a3a0}=_0xe8a981;if(_0x32a3a0&&'alignment'==_0x32a3a0['commandName']){const _0x303621=_0x32a3a0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x28fcd9,'*Format:*\x20%0',function(_0x168a4d){switch(_0x168a4d){case'left':return o(_0x28fcd9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x28fcd9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x28fcd9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x28fcd9,'FORMAT_JUSTIFY_TEXT');}}(_0x303621))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x17585e{['afterInit'](){const _0x1b9d25=this['editor'],_0x2de562=_0x1b9d25['plugins']['get']('TrackChangesEditing'),_0x3d58c3=_0x1b9d25['locale'];for(const _0x5cdb59 of ti){if(!_0x1b9d25['plugins']['has'](_0x5cdb59))continue;const _0x2b9920=_0x5cdb59['slice'](0x0,-0x7)['toLowerCase'](),_0x943cd4='FORMAT_'+_0x2b9920['toUpperCase']();_0x2de562['enableDefaultAttributesIntegration'](_0x2b9920),_0x2de562['registerInlineAttribute'](_0x2b9920),_0x2de562['descriptionFactory']['registerAttributeLabel'](_0x2b9920,o(_0x3d58c3,_0x943cd4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x256d4d=this['editor'],_0x2afc21=_0x256d4d['locale'],_0xc444a=_0x256d4d['plugins']['get']('TrackChangesEditing');function _0x34810b(_0x5e9064,_0x1edc84){_0xc444a['descriptionFactory']['registerDescriptionCallback'](_0x4f7c3d=>{if('formatInline'!=_0x4f7c3d['type'])return;const {data:_0x290c23}=_0x4f7c3d;return _0x290c23&&_0x290c23['commandName']===_0x5e9064?_0x290c23['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2afc21,'*Format:*\x20%0',_0x1edc84)}:{'type':'format','content':o(_0x2afc21,'*Remove\x20format:*\x20%0',_0x1edc84)}:void 0x0;});}_0x34810b('bold',o(_0x2afc21,'FORMAT_BOLD')),_0x34810b('italic',o(_0x2afc21,'FORMAT_ITALIC')),_0x34810b('underline',o(_0x2afc21,'FORMAT_UNDERLINE')),_0x34810b('code',o(_0x2afc21,'FORMAT_CODE')),_0x34810b('strikethrough',o(_0x2afc21,'FORMAT_STRIKETHROUGH')),_0x34810b('subscript',o(_0x2afc21,'FORMAT_SUBSCRIPT')),_0x34810b('superscript',o(_0x2afc21,'FORMAT_SUPERSCRIPT'));}}class L extends _0x17585e{['afterInit'](){const _0x4081f9=this['editor'],_0x255bc3=_0x4081f9['locale'];if(!_0x4081f9['plugins']['has']('BlockQuoteEditing'))return;const _0x3d1b28=_0x4081f9['plugins']['get']('TrackChangesEditing'),_0x36ae6d=this['editor']['commands']['get']('blockQuote');_0x3d1b28['enableCommand']('blockQuote',(_0x14f3da,_0x37cfe0={})=>{const _0x50735d=this['editor']['model']['document']['selection'],_0x5c9112=_0x37cfe0&&void 0x0!==_0x37cfe0['forceValue']?_0x37cfe0['forceValue']:!_0x36ae6d['value'];let _0xc42cbf=[];if(_0x5c9112){const _0x458e52=Array['from'](_0x50735d['getSelectedBlocks']())['filter'](_0x527caa=>oo(_0x527caa)||function(_0x4bbf3a,_0x313d4b){const _0x5b19cd=_0x313d4b['checkChild'](_0x4bbf3a['parent'],'blockQuote'),_0x31b2b3=_0x313d4b['checkChild'](['$root','blockQuote'],_0x4bbf3a);return _0x5b19cd&&_0x31b2b3;}(_0x527caa,this['editor']['model']['schema']));_0xc42cbf=to(_0x458e52,_0x4081f9['model']);}else{const _0x19f0a6=Array['from'](_0x50735d['getSelectedBlocks']())['filter'](_0xf85fbd=>oo(_0xf85fbd));_0xc42cbf=to(_0x19f0a6,_0x4081f9['model']);}_0x4081f9['model']['change'](()=>{for(const _0x949db2 of _0xc42cbf)_0x3d1b28['markBlockFormat'](_0x949db2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c9112}]});});}),_0x3d1b28['descriptionFactory']['registerDescriptionCallback'](_0x314abe=>{const {data:_0x24e448}=_0x314abe;if(_0x24e448&&'blockQuote'==_0x24e448['commandName']){const _0x119092=o(_0x255bc3,'ELEMENT_BLOCK_QUOTE');return _0x24e448['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x255bc3,'*Set\x20format:*\x20%0',_0x119092)}:{'type':'format','content':o(_0x255bc3,'*Remove\x20format:*\x20%0',_0x119092)};}});}}function oo(_0x112d15){return'blockQuote'==_0x112d15['parent']['name'];}class J extends _0x17585e{['afterInit'](){const _0x4e4855=this['editor'],_0xc9fd04=_0x4e4855['locale'],_0x4fb741=_0x4e4855['plugins']['get']('TrackChangesEditing');_0x4e4855['plugins']['has']('BookmarkEditing')&&(_0x4fb741['enableCommand']('insertBookmark'),_0x4fb741['enableDefaultAttributesIntegration']('updateBookmark'),_0x4fb741['registerBlockAttribute']('bookmarkId'),_0x4fb741['descriptionFactory']['registerDescriptionCallback'](_0x1b65e2=>{if('insertion'!=_0x1b65e2['type']&&'deletion'!=_0x1b65e2['type']&&'attribute'!=_0x1b65e2['type'])return;const _0x30a246=_0x1b65e2['getContainedElement']();if(null==_0x30a246)return;if(!_0x30a246['is']('element','bookmark'))return;const _0xee6433=_0x30a246['getAttribute']('bookmarkId');if('insertion'==_0x1b65e2['type'])return{'type':'insertion','content':o(_0xc9fd04,'*Insert:*\x20%0','\x22'+_0xee6433+'\x22\x20'+o(_0xc9fd04,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1b65e2['type'])return{'type':'deletion','content':o(_0xc9fd04,'*Remove:*\x20%0','\x22'+_0xee6433+'\x22\x20'+o(_0xc9fd04,'ELEMENT_BOOKMARK'))};const {data:_0x518544}=_0x1b65e2;if(!_0x518544||'bookmarkId'!=_0x518544['key'])return;return{'type':'format','content':o(_0xc9fd04,'*Set\x20bookmark:*\x20%0','\x22'+_0x518544['newValue']+'\x22')};}));}}class K extends _0x17585e{['afterInit'](){const _0x57d3f8=this['editor'];_0x57d3f8['plugins']['has']('CaseChange')&&(_0x57d3f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57d3f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57d3f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x17585e{['afterInit'](){const _0x238a35=this['editor'];_0x238a35['commands']['get']('ckbox')&&_0x238a35['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x17585e{['afterInit'](){const _0xe97ebf=this['editor'];if(!_0xe97ebf['plugins']['has']('CodeBlock'))return;const _0x562a40=_0xe97ebf['plugins']['get']('TrackChangesEditing'),_0x4b2726=_0xe97ebf['locale'],_0x9ece28=_0xe97ebf['config']['get']('codeBlock')['languages'],_0x2de804=_0xe97ebf['commands']['get']('codeBlock');_0x562a40['enableCommand']('indentCodeBlock'),_0x562a40['enableCommand']('outdentCodeBlock'),_0x562a40['enableCommand']('codeBlock',(_0x2745b9,_0x4c9502={})=>{const _0x33fb13=_0xe97ebf['model'],_0x4ea9da=_0xe97ebf['model']['document']['selection'],_0x53669c=_0x4c9502&&void 0x0!==_0x4c9502['forceValue']?_0x4c9502['forceValue']:!_0x2de804['value'];let _0x5b1acf;_0x4c9502['language']||(_0x4c9502['language']=_0x9ece28[0x0]['language']),_0x5b1acf=_0x53669c?Array['from'](_0x4ea9da['getSelectedBlocks']())['filter'](_0x3c4ba4=>co(_0x3c4ba4)||function(_0x53a68d,_0x5da574){if(_0x53a68d['is']('rootElement')||_0x5da574['isLimit'](_0x53a68d))return!0x1;return _0x5da574['checkChild'](_0x53a68d['parent'],'codeBlock');}(_0x3c4ba4,_0x33fb13['schema'])):Array['from'](_0x4ea9da['getSelectedBlocks']())['filter'](_0x5a6fb2=>co(_0x5a6fb2));const _0x22293a=to(_0x5b1acf,_0x33fb13);_0x33fb13['change'](()=>{for(const _0x22fe02 of _0x22293a)_0x562a40['markBlockFormat'](_0x22fe02,{'commandName':'codeBlock','commandParams':[{..._0x4c9502,'forceValue':_0x53669c}],'formatGroupId':'blockName'});});}),(_0x562a40['descriptionFactory']['registerElementLabel']('codeBlock',_0x103db4=>o(_0x4b2726,'ELEMENT_CODE_BLOCK',_0x103db4)),_0x562a40['descriptionFactory']['registerDescriptionCallback'](_0x478771=>{if('formatBlock'!=_0x478771['type'])return;const _0x465437=_0x4b2726['t'],{data:_0x575d1a}=_0x478771;if(!_0x575d1a||'codeBlock'!=_0x575d1a['commandName'])return;const _0x3cac6b=_0x575d1a['commandParams'][0x0]['language'],_0x502c0c=_0x465437(_0x9ece28['find'](_0x56c331=>_0x56c331['language']===_0x3cac6b)['label'])['toLowerCase']();return _0x575d1a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b2726,'*Set\x20format:*\x20%0',o(_0x4b2726,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x502c0c+')')}:{'type':'format','content':o(_0x4b2726,'*Remove\x20format:*\x20%0',o(_0x4b2726,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3fbec0){return'codeBlock'==_0x3fbec0['name'];}class q extends _0x17585e{['afterInit'](){const _0x27ece0=this['editor'];if(!_0x27ece0['plugins']['has']('CommentsEditing'))return;_0x27ece0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x782707,_0x57d564,_0x23315b){const _0x238cb3=[];for(const _0x79539e of _0x57d564['getItems']())_0x79539e['hasAttribute'](_0x782707)&&_0x238cb3['push'](_0x23315b['createRangeOn'](_0x79539e));return _0x238cb3;}function Ge(_0x2ebeeb,_0x39b42a,{showActiveMarker:_0x5e1a94=!0x0}={}){const _0x2dc2eb=_0x2ebeeb['plugins']['get']('TrackChangesEditing');return(_0x2ffde8,_0x3dba14,_0x19265c)=>{if(!_0x19265c['consumable']['test'](_0x3dba14['markerRange'],_0x2ffde8['name']))return;const _0x59f1ad=_0x3dba14['markerRange']['getWalker'](),_0x8d2026=_0x3dba14['markerRange']['start'],_0x5f0cf1=_0x2ebeeb['model']['schema'];let _0x343c26=null,_0x36ce54=null,_0x8277bb=!0x1,_0x458912=!0x1;for(const _0x347856 of _0x59f1ad){const _0x4ea138=_0x347856['item'];_0x8277bb=_0x8277bb||_0x5f0cf1['isContent'](_0x4ea138);const _0xe95595=_0x19265c['mapper']['toViewElement'](_0x4ea138);if(_0xe95595&&_0xe95595['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x347856['type']&&(_0x5f0cf1['isBlock'](_0x4ea138)&&!_0x5f0cf1['isLimit'](_0x4ea138)&&(_0x4ea138['nextSibling']||_0x8d2026['isAtEnd']?_0x343c26&&_0x343c26['parent']==_0x4ea138||(_0x343c26=_0x4ea138,_0x2bbf1e(_0x347856['previousPosition']),_0x458912=!0x0):_0x36ce54=_0x36ce54||_0x347856['previousPosition']));}function _0x2bbf1e(_0x3729b3){const {id:_0x541c11,authorId:_0x43e6ce}=_0x2dc2eb['_splitMarkerName'](_0x3dba14['markerName']),_0xea3c5b=_0x19265c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39b42a,'data-suggestion':_0x541c11,'data-author-id':_0x43e6ce}),_0x283b37=_0x19265c['mapper']['toViewPosition'](_0x3729b3);_0x5e1a94&&_0x2dc2eb['activeMarkers']['includes'](_0x3dba14['markerName'])&&_0x19265c['writer']['addClass']('ck-suggestion-marker--active',_0xea3c5b),_0x19265c['writer']['insert'](_0x283b37,_0xea3c5b),_0x19265c['mapper']['bindElementToMarker'](_0xea3c5b,_0x3dba14['markerName']);}_0x8277bb||_0x458912||!_0x36ce54||_0x2bbf1e(_0x36ce54);};}class z extends _0x17585e{static get['requires'](){return[_0x41e8a7];}['init'](){const _0x3ba3bd=this['editor'],_0x12f212=_0x3ba3bd['plugins']['get']('TrackChangesEditing');_0x12f212['enableCommand']('delete');const _0x39cae7=_0x3ba3bd['commands']['get']('deleteForward');_0x12f212['enableCommand']('deleteForward',(_0x534ce8,_0x20da78={})=>{const _0x53351d=_0x3ba3bd['model']['createSelection'](_0x3ba3bd['model']['document']['selection']);_0x53351d['isCollapsed']&&_0x3ba3bd['model']['modifySelection'](_0x53351d,{'direction':'forward','unit':_0x20da78['unit']});const _0x24b0a1=_0x53351d['getFirstRange'](),_0x37e4c1=_0x5d3e65['fromRange'](_0x24b0a1);let _0x2c0dc0;_0x534ce8(_0x20da78),_0x2c0dc0='$graveyard'==_0x37e4c1['root']['rootName']?_0x3ba3bd['model']['createRange'](_0x24b0a1['start']):_0x3ba3bd['model']['createRange'](_0x37e4c1['start'],_0x37e4c1['end']),_0x37e4c1['detach'](),_0x3ba3bd['model']['enqueueChange'](_0x39cae7['buffer']['batch'],_0x3208da=>{_0x39cae7['buffer']['lock'](),_0x3208da['setSelection'](_0x3208da['createRange'](_0x2c0dc0['end'])),_0x39cae7['buffer']['unlock']();});}),_0x3ba3bd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x3ba3bd,'merge'),{'priority':'high'}),_0x3ba3bd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2f2fb2,_0x332062,_0x5afea0)=>{_0x5afea0['options']['showSuggestionHighlights']&&Ge(_0x3ba3bd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2f2fb2,_0x332062,_0x5afea0);},{'priority':'high'}),_0x3ba3bd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x31c535,_0x3e0fb8,_0x3cf0ae)=>{const _0x6e717=_0x3cf0ae['mapper']['markerNameToElements'](_0x3e0fb8['markerName']);if(_0x6e717){for(const _0x1e8b67 of _0x6e717)_0x1e8b67['is']('uiElement')&&(_0x3cf0ae['mapper']['unbindElementFromMarkerName'](_0x1e8b67,_0x3e0fb8['markerName']),_0x3cf0ae['writer']['remove'](_0x1e8b67));}},{'priority':'high'});}}class Q extends _0x17585e{['afterInit'](){const _0x493419=this['editor'];if(!_0x493419['plugins']['has']('ListEditing'))return;const _0x1dbc63=_0x493419['locale'],_0x2bacff=_0x493419['plugins']['get']('TrackChangesEditing'),_0x5ac6af=_0x493419['plugins']['has']('TodoListEditing'),_0x1c8f00=!!_0x493419['config']['get']('list.multiBlock');function _0x3c0246(_0x4d99fc){return{'type':'format','content':''+o(_0x1dbc63,'*Set\x20format:*\x20%0',_0x4d99fc)};}function _0x4760ef(_0x5ede83){return{'type':'format','content':''+o(_0x1dbc63,'*Remove\x20format:*\x20%0',_0x5ede83)};}_0x2bacff['enableDefaultAttributesIntegration']('numberedList'),_0x2bacff['enableDefaultAttributesIntegration']('bulletedList'),_0x2bacff['enableDefaultAttributesIntegration']('customNumberedList'),_0x2bacff['enableDefaultAttributesIntegration']('customBulletedList'),_0x2bacff['enableDefaultAttributesIntegration']('indentList'),_0x2bacff['enableDefaultAttributesIntegration']('outdentList'),_0x2bacff['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2bacff['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2bacff['registerBlockAttribute']('listItemId'),_0x2bacff['registerBlockAttribute']('listType'),_0x2bacff['registerBlockAttribute']('listIndent'),_0x1c8f00&&(_0x2bacff['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2bacff['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5ac6af&&(_0x2bacff['enableDefaultAttributesIntegration']('todoList'),_0x2bacff['enableDefaultAttributesIntegration']('checkTodoList'),_0x2bacff['registerBlockAttribute']('todoListChecked'),_0x2bacff['descriptionFactory']['registerDescriptionCallback'](_0x52aa01=>{const {data:_0x82326b}=_0x52aa01;if(_0x82326b&&'todoListChecked'==_0x82326b['key'])return{'type':'format','content':_0x82326b['newValue']?o(_0x1dbc63,'*Check\x20item*'):o(_0x1dbc63,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4b2570=>{if(_0x4b2570['batch']['isUndo'])return!0x1;let _0x2d6329=!0x1;const _0x1e1def=_0x2bacff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x89a699=>'todoListChecked'===_0x2bacff['_getAttributeKey'](_0x89a699));for(const _0x53944b of _0x1e1def){'todo'!=_0x53944b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2bacff['_findSuggestions'](_0x53944b['getFirstRange'](),'attribute')['find'](_0xeb7e77=>'listType'===_0x2bacff['_getAttributeKey'](_0xeb7e77['suggestion']))||(_0x4b2570['removeMarker'](_0x53944b['getFirstMarker']()),_0x2d6329=!0x0));}return _0x2d6329;})),_0x2bacff['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dbc63,'FORMAT_INDENT'));const _0x505239={'type':'format','content':''};_0x2bacff['descriptionFactory']['registerDescriptionCallback'](_0x20414f=>{const {data:_0x13a71d}=_0x20414f;if(!_0x13a71d||'listType'!=_0x13a71d['key'])return;let _0x59e7a2=_0x20414f['head'];for(;_0x59e7a2;){if(_0x59e7a2['data']&&(('listStyle'==_0x59e7a2['data']['key']||'listMarkerStyle'==_0x59e7a2['data']['key'])&&(_0x59e7a2['data']['newValue']&&'default'!=_0x59e7a2['data']['newValue']||'default'!=_0x59e7a2['data']['oldValue']&&!_0x13a71d['newValue'])||!_0x1c8f00&&_0x59e7a2['data']['key']==m))return _0x505239;_0x59e7a2=_0x59e7a2['next'];}if(null==_0x13a71d['newValue'])switch(_0x13a71d['oldValue']){case'bulleted':return _0x4760ef(o(_0x1dbc63,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4760ef(o(_0x1dbc63,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4760ef(o(_0x1dbc63,'ELEMENT_TODO_LIST'));}switch(_0x13a71d['newValue']){case'bulleted':return _0x3c0246(o(_0x1dbc63,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c0246(o(_0x1dbc63,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c0246(o(_0x1dbc63,'ELEMENT_TODO_LIST'));}}),_0x2bacff['descriptionFactory']['registerDescriptionCallback'](_0x2a03c6=>{const {data:_0x4be3be}=_0x2a03c6;if(_0x4be3be&&'listIndent'==_0x4be3be['key'])return null==_0x4be3be['newValue']||null==_0x4be3be['oldValue']&&0x0==_0x4be3be['newValue']?_0x505239:void 0x0;}),_0x2bacff['descriptionFactory']['registerDescriptionCallback'](_0x25297f=>{if('attribute'!=_0x25297f['type'])return;const {data:_0x184aa9}=_0x25297f;if(!_0x184aa9||'listItemId'!=_0x184aa9['key'])return;const _0x5356b9=Be(_0x25297f);return'newValue'==_0x5356b9?{'type':'format','content':o(_0x1dbc63,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5356b9?{'type':'format','content':o(_0x1dbc63,'*Split:*\x20list\x20item')}:_0x505239;}),_0x493419['model']['document']['registerPostFixer'](_0x4bc453=>this['listItemIdFixer'](_0x4bc453)),_0x493419['model']['document']['registerPostFixer'](_0x3e2095=>this['noTrackChangesFixer'](_0x3e2095)),_0x493419['model']['document']['on']('change:data',(_0x30a764,_0x18f72b)=>{if(_0x18f72b['isUndo']||!_0x18f72b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2def61){if(_0x2def61['batch']['isUndo']||!_0x2def61['batch']['isLocal'])return!0x1;let _0xb0989=!0x1;const _0x5cc8b5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x133f18=>_0x133f18['data']&&'listItemId'==_0x133f18['data']['key'])['filter'](_0x30d09b=>_0x30d09b['data']['newValue']&&_0x30d09b['data']['oldValue']);for(const _0x4bc848 of _0x5cc8b5)Be(_0x4bc848)||(_0x2def61['removeMarker'](_0x4bc848['getFirstMarker']()),_0xb0989=!0x0);return _0xb0989;}['noTrackChangesFixer'](_0x4abf96){if(_0x4abf96['batch']['isUndo']||!_0x4abf96['batch']['isLocal'])return!0x1;const _0x24b9d3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24b9d3['trackChangesCommand']['value'])return!0x1;let _0x43001e=!0x1;const _0x3f6a7e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5cce4d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2d8674=>'attribute'==_0x2d8674['type'])['filter'](_0x76e5ac=>_0x3f6a7e['includes'](_0x76e5ac['attributeKey']));if(0x0==_0x5cce4d['length'])return _0x43001e;for(const _0x26bf3b of _0x5cce4d){const _0x754dd3=_0x24b9d3['_findSuggestions'](_0x26bf3b['range'],'attribute')['filter'](_0x971030=>!_0x971030['meta']['isNextTo'])['map'](_0x3ca918=>_0x3ca918['suggestion'])['filter'](_0x15cfd4=>{const _0x129646=_0x24b9d3['_getAttributeKey'](_0x15cfd4);return _0x3f6a7e['includes'](_0x129646);});if(_0x754dd3['length']){for(const _0x5ef2af of _0x754dd3)_0x4abf96['removeMarker'](_0x5ef2af['getFirstMarker']());_0x43001e=!0x0;}}return _0x43001e;}['assureChains'](){const _0x491b70=this['editor']['plugins']['get']('TrackChangesEditing'),_0x252dd0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x419287;const _0x56c447=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x526699=>{if(_0x526699['data']['oldRange']||!_0x526699['data']['newRange'])return null;if(!_0x526699['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x46c4e2}=_0x491b70['_splitMarkerName'](_0x526699['name']);if(!_0x491b70['hasSuggestion'](_0x46c4e2))return null;const _0x1b8035=_0x491b70['getSuggestion'](_0x46c4e2);return _0x252dd0['includes'](_0x1b8035['data']['key']);})['map'](_0x2a86f9=>{const {id:_0x1749f2}=_0x491b70['_splitMarkerName'](_0x2a86f9['name']),_0x4151a0=_0x491b70['getSuggestion'](_0x1749f2);return _0x419287=_0x4151a0['attributes']['groupId'],_0x4151a0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x56c447['size'])return;const _0x52f2c6=_0x491b70['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b0743=>'attribute'==_0x5b0743['type']&&_0x5b0743['data']&&_0x252dd0['includes'](_0x5b0743['data']['key'])&&_0x5b0743['attributes']['groupId']!=_0x419287)['map'](_0x370909=>({'listItem':_0x370909['getFirstRange']()['start']['nodeAfter'],'groupId':_0x370909['attributes']['groupId']})),_0x54ad34=new Set();for(const {groupId:_0x1ecbb4,listItem:_0x21e715}of _0x52f2c6)_0x56c447['has'](_0x21e715)&&_0x54ad34['add'](_0x1ecbb4);for(const _0x5baf14 of _0x491b70['getSuggestions']())_0x54ad34['has'](_0x5baf14['attributes']['groupId'])&&_0x5baf14['setAttribute']('groupId',_0x419287);}['_supportLegacySuggestions'](){const _0x260e18=this['editor'],_0x388489=_0x260e18['locale'],_0x5c5ac8=_0x260e18['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c5ac8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4600b5,_0x317ff7){const _0x1dc99d=[];for(let _0x1ccc43 of _0x4600b5)_0x1ccc43['start']['nodeAfter']===_0x1ccc43['end']['parent']&&(_0x1ccc43=_0x260e18['model']['createRange'](_0x260e18['model']['createPositionAt'](_0x1ccc43['start']['nodeAfter'],0x0))),_0x1dc99d['push'](_0x1ccc43);_0x260e18['model']['change'](_0x1f051a=>{const _0x591f1b=_0x260e18['model']['document']['selection'],_0x358e95=Array['from'](_0x591f1b['getRanges']())['map'](_0x49ba23=>_0x5d3e65['fromRange'](_0x49ba23));_0x1f051a['setSelection'](_0x1dc99d),_0x260e18['commands']['get'](_0x317ff7['commandName'])['refresh'](),_0x317ff7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x260e18['execute'](_0x317ff7['commandName'],..._0x317ff7['commandParams']),_0x1f051a['setSelection'](_0x358e95);for(const _0x2b4e68 of _0x358e95)_0x2b4e68['detach']();});}),_0x5c5ac8['descriptionFactory']['registerElementLabel'](function(_0x16b080){const _0x3da7af=!_0x260e18['model']['schema']['isObject'](_0x16b080),_0x522a9b=_0x16b080['previousSibling'],_0x31e140=_0x16b080['nextSibling'],_0x4b0b2f=_0x16b080['getAttribute']('listItemId'),_0x709501=!_0x522a9b||_0x522a9b['getAttribute']('listItemId')!==_0x4b0b2f,_0x58703c=!_0x31e140||_0x31e140['getAttribute']('listItemId')!==_0x4b0b2f;return _0x3da7af&&Boolean(_0x4b0b2f)&&_0x709501&&_0x58703c;},_0x211ab8=>o(_0x388489,'ELEMENT_LIST_ITEM',_0x211ab8));}['_registerLegacyDescription'](){const _0x282ea3=this['editor'],_0xcba3d1=_0x282ea3['locale'];function _0x16d47c(_0x3a82ee){const _0x529912=_0x282ea3['commands']['get']('bulletedList')['value'],_0xd42cff=_0x282ea3['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a82ee?_0x529912:_0xd42cff;}_0x282ea3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a1f4b){if('formatBlock'!=_0x2a1f4b['type'])return;const {data:_0x482f7b}=_0x2a1f4b;if(!_0x482f7b)return;let _0x45c0b0,_0x68d9c4,_0x576cf8,_0x1f5370;switch(_0x482f7b['commandName']){case'bulletedList':_0x576cf8=_0x482f7b['commandParams'][0x0]['forceValue'],_0x1f5370=_0x16d47c(_0x482f7b['commandName']),_0x45c0b0=_0x576cf8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f5370&&_0x282ea3['config']['get']('list.multiBlock')||(_0x45c0b0='*Change\x20to:*\x20%0'),_0x68d9c4={'type':'format','content':o(_0xcba3d1,_0x45c0b0,o(_0xcba3d1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x576cf8=_0x482f7b['commandParams'][0x0]['forceValue'],_0x1f5370=_0x16d47c(_0x482f7b['commandName']),_0x45c0b0=_0x576cf8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f5370&&_0x282ea3['config']['get']('list.multiBlock')||(_0x45c0b0='*Change\x20to:*\x20%0'),_0x68d9c4={'type':'format','content':o(_0xcba3d1,_0x45c0b0,o(_0xcba3d1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x45c0b0='*Indent:*\x20%0',_0x68d9c4={'type':'format','content':o(_0xcba3d1,_0x45c0b0,o(_0xcba3d1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x45c0b0=function(_0x98b878){const _0x33c9fe=_0x98b878['getFirstRange']();let _0x2c22ab=_0x33c9fe['start']['nodeAfter'];for(;_0x2c22ab&&_0x33c9fe['containsItem'](_0x2c22ab);){if(_0x2c22ab['getAttribute']('listIndent')>0x0)return!0x1;_0x2c22ab=_0x2c22ab['nextSibling'];}return!0x0;}(_0x2a1f4b)?o(_0xcba3d1,'*Format:*\x20remove\x20from\x20%0',o(_0xcba3d1,function(_0x2743d1){return'ELEMENT_'+_0x2743d1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a1f4b))):o(_0xcba3d1,'*Outdent:*\x20%0',o(_0xcba3d1,'ELEMENT_LIST_ITEM')),_0x68d9c4={'type':'format','content':_0x45c0b0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x482f7b['multipleBlocks']&&(_0x45c0b0='*Merge:*\x20%0',_0x68d9c4={'type':'deletion','content':o(_0xcba3d1,_0x45c0b0,o(_0xcba3d1,'ELEMENT_LIST_ITEM'))});}return _0x68d9c4;});}}function Be(_0x530039){let _0x39facd=_0x530039['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x39facd;){const _0x480fa9=_0x39facd['getAttribute']('listItemId');if(!_0x480fa9)return!0x1;if(_0x480fa9==_0x530039['data']['newValue'])return'newValue';if(_0x480fa9==_0x530039['data']['oldValue'])return'oldValue';_0x39facd=_0x39facd['previousSibling'];}return!0x1;}class X extends _0x17585e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x848b70=this['editor']['config']['get']('list.properties'),_0x4309a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x848b70['styles']&&(_0x4309a5['enableDefaultAttributesIntegration']('listStyle'),_0x4309a5['registerBlockAttribute']('listStyle')),_0x848b70['reversed']&&(_0x4309a5['enableDefaultAttributesIntegration']('listReversed'),_0x4309a5['registerBlockAttribute']('listReversed')),_0x848b70['startIndex']&&(_0x4309a5['enableDefaultAttributesIntegration']('listStart'),_0x4309a5['registerBlockAttribute']('listStart'));const _0x4e7c3e={'type':'format','content':''};_0x4309a5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x412ef3=this['editor']['locale'];_0x4309a5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x412ef3,'FORMAT_LIST_REVERSED')),_0x4309a5['descriptionFactory']['registerDescriptionCallback'](_0x13dffa=>{const {data:_0x42573a}=_0x13dffa;if(_0x42573a&&'listReversed'==_0x42573a['key'])return null==_0x42573a['newValue']||0x0==_0x42573a['newValue']&&null==_0x42573a['oldValue']?_0x4e7c3e:void 0x0;}),_0x4309a5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x412ef3,'FORMAT_LIST_START')),_0x4309a5['descriptionFactory']['registerDescriptionCallback'](_0x12d468=>{const {data:_0x4366e4}=_0x12d468;if(_0x4366e4&&'listStart'==_0x4366e4['key'])return null==_0x4366e4['newValue']||0x1==_0x4366e4['newValue']&&null==_0x4366e4['oldValue']?_0x4e7c3e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x11ca51=>{if(_0x11ca51['batch']['isUndo'])return!0x1;let _0x6f4027=!0x1;const _0x1b7dcc=_0x4309a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x198953=>{const _0x5c0215=_0x4309a5['_getAttributeKey'](_0x198953);return'listStart'==_0x5c0215||'listReversed'==_0x5c0215;});for(const _0x1e7bfb of _0x1b7dcc){const _0x5add0a=_0x1e7bfb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5add0a||'customNumbered'==_0x5add0a)continue;_0x4309a5['_findSuggestions'](_0x1e7bfb['getFirstRange'](),'attribute')['find'](_0x2d736c=>'listType'==_0x4309a5['_getAttributeKey'](_0x2d736c['suggestion']))||(_0x11ca51['removeMarker'](_0x1e7bfb['getFirstMarker']()),_0x6f4027=!0x0);}return _0x6f4027;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58848c){const _0x19279b=this['editor']['locale'],{data:_0x262f2e}=_0x58848c,_0x41b43b={'type':'format','content':''};if(!_0x262f2e||'listStyle'!=_0x262f2e['key'])return;if(!_0x262f2e['oldValue'])return'default'==_0x262f2e['newValue']?_0x41b43b:{'type':'format','content':''+o(_0x19279b,'*Set\x20format:*\x20%0',o(_0x19279b,this['_getTranslationKeyForListStyle'](_0x262f2e['newValue'])))};if(!_0x262f2e['newValue']){if('default'==_0x262f2e['oldValue'])return _0x41b43b;let _0x43abc5=_0x58848c['head'];for(;_0x43abc5;){if(_0x43abc5['data']&&'listType'==_0x43abc5['data']['key']&&_0x43abc5['data']['newValue'])return _0x41b43b;_0x43abc5=_0x43abc5['next'];}return{'type':'format','content':''+o(_0x19279b,'*Remove\x20format:*\x20%0',o(_0x19279b,this['_getTranslationKeyForListStyle'](_0x262f2e['oldValue'])))};}if('default'!=_0x262f2e['newValue'])return{'type':'format','content':''+o(_0x19279b,'*Set\x20format:*\x20%0',o(_0x19279b,this['_getTranslationKeyForListStyle'](_0x262f2e['newValue'])))};let _0x58840c=_0x58848c['head'];for(;_0x58840c;){if(_0x58840c['data']&&'listType'==_0x58840c['data']['key']&&_0x58840c['data']['newValue']&&_0x58840c['data']['oldValue'])return _0x41b43b;_0x58840c=_0x58840c['next'];}return{'type':'format','content':o(_0x19279b,'*Set\x20format:*\x20%0',o(_0x19279b,'ELEMENT_'+_0x58848c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d7eab=this['editor'],_0x1ab160=_0x2d7eab['locale'];_0x2d7eab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16534a=>{if('formatBlock'!=_0x16534a['type'])return;const {data:_0x5ce2cb}=_0x16534a;if(!_0x5ce2cb)return;let _0x1ac672,_0x45cf7d;switch(_0x5ce2cb['commandName']){case'listStyle':_0x1ac672='*Change\x20to:*\x20%0',_0x45cf7d={'type':'format','content':o(_0x1ab160,_0x1ac672,o(_0x1ab160,this['_getTranslationKeyForListStyle'](_0x5ce2cb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ac672=_0x5ce2cb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45cf7d={'type':'format','content':o(_0x1ab160,_0x1ac672)};break;case'listStart':_0x1ac672='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45cf7d={'type':'format','content':o(_0x1ab160,_0x1ac672,_0x5ce2cb['commandParams'][0x0]['startIndex'])};}return _0x45cf7d;});}['_getTranslationKeyForListStyle'](_0x27335b){return'ELEMENT_'+function(_0x24a430){if(Re['includes'](_0x24a430))return'bulleted';if(Fe['includes'](_0x24a430))return'numbered';return null;}(_0x27335b)['toUpperCase']()+'_LIST_'+_0x27335b['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x17585e{['afterInit'](){const _0x192d72=this['editor'];_0x192d72['commands']['get']('emoji')&&_0x192d72['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x17585e{static get['requires'](){return[_0x27e05d];}['init'](){const _0x4a46a8=this['editor'],_0x5bfbc5=_0x4a46a8['plugins']['get']('TrackChangesEditing'),_0x4e23cc=_0x4a46a8['commands']['get']('enter');_0x5bfbc5['enableCommand']('enter',()=>{_0x4a46a8['model']['change'](_0x287253=>{const _0x47b289=_0x4a46a8['model']['document']['selection'],_0x63b40c=_0x47b289['getFirstPosition'](),_0x1f8bcd=_0x5d3e65['fromRange'](_0x47b289['getFirstRange']());if(_0x4e23cc['enterBlock'](_0x287253)){const _0x294b5a=_0x4a46a8['model']['createPositionAt'](_0x63b40c['parent']['nextSibling'],0x0),_0xc58fa1=_0x287253['createRange'](_0x63b40c,_0x294b5a);_0x5bfbc5['markInsertion'](_0xc58fa1);}else _0x287253['setSelection'](_0x287253['createRange'](_0x1f8bcd['end']));_0x1f8bcd['detach'](),_0x4e23cc['fire']('afterExecute',{'writer':_0x287253});});}),_0x4a46a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x4a46a8,'split'),{'priority':'high'}),_0x4a46a8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x51f6ba,_0x8c24f0,_0x13495d)=>{const _0x1e2f8a=_0x13495d['mapper']['markerNameToElements'](_0x8c24f0['markerName']);if(_0x1e2f8a){for(const _0x24535f of _0x1e2f8a)_0x24535f['hasClass']('ck-suggestion-marker-split')&&(_0x13495d['mapper']['unbindElementFromMarkerName'](_0x24535f,_0x8c24f0['markerName']),_0x13495d['writer']['remove'](_0x24535f));}},{'priority':'high'}),_0x4a46a8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x185ea5,_0x3af9ca,_0x19766c)=>{_0x19766c['options']['showSuggestionHighlights']&&Ge(_0x4a46a8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x185ea5,_0x3af9ca,_0x19766c);},{'priority':'high'});}}class tt extends _0x17585e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x502c43=this['editor']['plugins']['get']('TrackChangesEditing');_0x502c43['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x502c43['enableCommand']('findNext'),_0x502c43['enableCommand']('findPrevious'),_0x502c43['enableCommand']('replace'),_0x502c43['enableCommand']('replaceAll');}['handleFindCommand'](_0x41058b,_0x2904be,_0x3e3e6d={}){const _0x37ef6f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x41058b(_0x12a6ec=>{let _0x2a6ac3=('string'==typeof _0x2904be?_0x37ef6f['findByTextCallback'](_0x2904be,_0x3e3e6d):_0x2904be)(_0x12a6ec);Array['isArray'](_0x2a6ac3)&&(_0x2a6ac3={'results':_0x2a6ac3,'searchText':'string'==typeof _0x2904be?_0x2904be:''});const _0x38c8f5=_0x2a6ac3['results']['filter'](_0x212727=>!0x1===this['_isInDeletionRange'](_0x212727,_0x12a6ec['item']));return{..._0x2a6ac3,'results':_0x38c8f5};},_0x3e3e6d);}['_isInDeletionRange'](_0x3a6e3a,_0x32dd66){const _0x48fd84=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32dd66,_0x3a6e3a['start']),this['editor']['model']['createPositionAt'](_0x32dd66,_0x3a6e3a['end']));for(const _0x16825b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48fd84['getIntersection'](_0x16825b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x17585e{['afterInit'](){const _0x536f75=this['editor']['locale'],_0x293026=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55b96b,commandName:_0x4049dc}of eo)this['editor']['plugins']['has'](_0x55b96b)&&(_0x293026['enableDefaultAttributesIntegration'](_0x4049dc),_0x293026['registerInlineAttribute'](_0x4049dc));_0x293026['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x536f75,'FORMAT_FONT_SIZE')),_0x293026['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x536f75,'FORMAT_FONT_FAMILY')),_0x293026['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x536f75,'FORMAT_FONT_COLOR')),_0x293026['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x536f75,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb7580c=this['editor'],_0x237898=_0xb7580c['locale'];_0xb7580c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b725=>{const _0x57c9d7=_0x237898['t'];if('formatInline'!=_0x25b725['type'])return;const {data:_0x36a83d}=_0x25b725;if(null!=_0x36a83d){if('fontSize'==_0x36a83d['commandName']){const _0x33961f=_0x36a83d['commandParams'][0x0]['value'];if(_0x33961f){const _0x19ef4c=_0x57c9d7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x55cc2c=>_0x55cc2c['model']==_0x33961f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x237898,'*Set\x20font\x20size:*\x20%0',_0x19ef4c)};}return{'type':'format','content':o(_0x237898,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x36a83d['commandName']){const _0x57178f=_0x36a83d['commandParams'][0x0]['value'];return _0x57178f?{'type':'format','content':o(_0x237898,'*Set\x20font\x20family:*\x20%0',_0x57178f)}:{'type':'format','content':o(_0x237898,'*Reset\x20font\x20family*')};}if('fontColor'==_0x36a83d['commandName']){const _0x296b47=_0x36a83d['commandParams'][0x0]['value'];if(_0x296b47){const _0x2c8c11=_0x4076b7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x524598=>_0x524598['model']==_0x296b47);let _0x369b07=_0x296b47,_0x4bb9c0='';return _0x2c8c11&&(_0x369b07=_0x2c8c11['label'],_0x4bb9c0=_0x57c9d7(_0x369b07)['toLowerCase']()),{'type':'format','content':o(_0x237898,'*Set\x20font\x20color:*\x20%0',_0x4bb9c0)['trim'](),'color':{'value':_0x296b47,'title':_0x4bb9c0||_0x369b07}};}return{'type':'format','content':o(_0x237898,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x36a83d['commandName']){const _0x5087a7=_0x36a83d['commandParams'][0x0]['value'];if(_0x5087a7){const _0x48656f=_0x4076b7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x19b4b4=>_0x19b4b4['model']==_0x5087a7);let _0x5a1273=_0x5087a7,_0x2c6a80='';return _0x48656f&&(_0x5a1273=_0x48656f['label'],_0x2c6a80=_0x57c9d7(_0x5a1273)['toLowerCase']()),{'type':'format','content':o(_0x237898,'*Set\x20font\x20background\x20color:*\x20%0',_0x2c6a80)['trim'](),'color':{'value':_0x5087a7,'title':_0x2c6a80||_0x5a1273}};}return{'type':'format','content':o(_0x237898,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x17585e{['afterInit'](){const _0x5dc5e6=this['editor'],_0x493836=_0x5dc5e6['plugins']['get']('TrackChangesEditing'),_0x2e6bb6=_0x5dc5e6['commands']['get']('copyFormat'),_0x40c601=_0x5dc5e6['commands']['get']('pasteFormat');_0x2e6bb6&&_0x40c601&&(_0x493836['enableDefaultAttributesIntegration']('pasteFormat'),_0x493836['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xa5e3ae=this['editor'],_0x4537ea=_0xa5e3ae['locale'];_0xa5e3ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c1ffb=>{if('formatBlock'!=_0x3c1ffb['type']&&'formatInline'!=_0x3c1ffb['type'])return;const {data:_0x44207f}=_0x3c1ffb;if(_0x44207f&&'pasteFormat'===_0x44207f['commandName']){const _0x4d4b51=[],_0x5cba84=_0x44207f['commandParams'][0x0];for(const [_0x4fc351,_0x36bf46]of Object['entries'](_0x5cba84))_0x4d4b51['push'](ro(_0xa5e3ae,_0x4fc351,_0x36bf46));return _0x4d4b51['length']?{'type':'format','content':o(_0x4537ea,'*Set\x20format\x20to:*\x20%0',_0x4d4b51['join'](',\x20'))}:{'type':'format','content':o(_0x4537ea,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1f85df,_0x37d0e0,_0x3ce8f6){const _0x33fe43=_0x1f85df['locale']['t'],_0x1660b5=_0x37d0e0['split'](/(?=[A-Z])/)['join']('\x20'),_0x399c12=_0x33fe43(_0x1660b5['charAt'](0x0)['toUpperCase']()+_0x1660b5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ce8f6)return _0x399c12;if('fontColor'===_0x37d0e0||'fontBackgroundColor'===_0x37d0e0){const _0x2f6cb3=_0x4076b7(_0x1f85df['config']['get']('fontColor.colors'))['find'](_0x5637a1=>_0x5637a1['model']==_0x3ce8f6);return _0x399c12+'\x20('+(_0x2f6cb3?_0x33fe43(_0x2f6cb3['label'])['toLowerCase']():_0x3ce8f6)+')';}if('fontSize'===_0x37d0e0&&isNaN(parseFloat(_0x3ce8f6))){const _0x1c0b5c=_0x1f85df['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1f85df['config']['get']('fontSize.options'))['find'](_0x3b4ac2=>_0x3b4ac2['model']==_0x3ce8f6);return _0x399c12+'\x20('+(_0x1c0b5c?_0x33fe43(_0x1c0b5c['title'])['toLowerCase']():_0x3ce8f6)+')';}return _0x399c12+'\x20('+_0x3ce8f6+')';}class nt extends _0x17585e{['_headingOptions'];['afterInit'](){const _0xbe99f4=this['editor'];if(!_0xbe99f4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xbe99f4['config']['get']('heading.options');const _0x44d118=_0xbe99f4['locale'],_0x41ed8c=_0xbe99f4['plugins']['get']('TrackChangesEditing');_0x41ed8c['enableDefaultAttributesIntegration']('heading');for(const _0x3c0ef2 of this['_headingOptions'])'paragraph'!=_0x3c0ef2['model']&&_0x41ed8c['descriptionFactory']['registerElementLabel'](_0x3c0ef2['model'],_0x10a6d9=>{const _0x11c27b=this['_getHeadingLevel'](_0x3c0ef2['model']);return null!==_0x11c27b?_0x286cc6(_0x10a6d9,_0x11c27b):_0x2b44cd(_0x10a6d9,_0x3c0ef2['title']);});function _0x286cc6(_0x1f03e8,_0x2885d7){return o(_0x44d118,'ELEMENT_HEADING',[_0x1f03e8,_0x2885d7]);}function _0x2b44cd(_0x4eedb2,_0x196e97){return o(_0x44d118,'ELEMENT_HEADING_CUSTOM',[_0x4eedb2,_0x196e97]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c490c=this['editor'],_0x4f53a3=_0x1c490c['locale'];function _0xa9369f(_0x1126ec,_0xf84ad3){return o(_0x4f53a3,'ELEMENT_HEADING_CUSTOM',[_0x1126ec,_0xf84ad3]);}_0x1c490c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38d7d6=>{if('formatBlock'!=_0x38d7d6['type'])return;const {data:_0x59df7a}=_0x38d7d6;if(_0x59df7a&&'heading'==_0x59df7a['commandName']){const _0x59622e=_0x59df7a['commandParams'][0x0]['value'],_0x4e5862=this['_getHeadingLevel'](_0x59622e);if(null!==_0x4e5862)return{'type':'format','content':o(_0x4f53a3,'*Change\x20to:*\x20%0',(_0x32a62a=0x1,_0x134175=_0x4e5862,o(_0x4f53a3,'ELEMENT_HEADING',[_0x32a62a,_0x134175])))};const _0x336785=this['_headingOptions']['find'](_0x3f6d6e=>_0x3f6d6e['model']===_0x59622e)['title'];return{'type':'format','content':o(_0x4f53a3,'*Change\x20to:*\x20%0',_0xa9369f(0x1,_0x336785))};}var _0x32a62a,_0x134175;});}['_getHeadingLevel'](_0x16e84e){const _0x32676c=_0x16e84e['match'](/^heading(\d+)/);if(_0x32676c)return _0x32676c[0x1];const _0x28da44=this['_headingOptions']?.['find'](_0x1b502c=>_0x1b502c['model']==_0x16e84e);if(_0x28da44&&_0x28da44['view']){const _0x2f862a=_0x28da44['view'],_0x2d3c4f=(_0x2f862a['name']??_0x2f862a)['match'](/^h(\d+)/);if(_0x2d3c4f)return _0x2d3c4f[0x1];}return null;}}class st extends _0x17585e{['afterInit'](){const _0x38ea7b=this['editor'];if(!_0x38ea7b['plugins']['has']('HighlightEditing'))return;const _0x5e88ee=_0x38ea7b['plugins']['get']('TrackChangesEditing'),_0x47821f=_0x38ea7b['locale'];_0x5e88ee['enableDefaultAttributesIntegration']('highlight'),_0x5e88ee['registerInlineAttribute']('highlight'),_0x5e88ee['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x47821f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42b1f1=this['editor'],_0x2a2aa1=_0x42b1f1['locale'];_0x42b1f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460597=>{if('formatInline'!=_0x460597['type'])return;const {data:_0x403e30}=_0x460597;if(_0x403e30&&'highlight'==_0x403e30['commandName']){const _0x1a2d3f=_0x2a2aa1['t'],_0x301583=_0x403e30['commandParams'][0x0]['value'];if(_0x301583){const _0x13d9bf=_0x42b1f1['config']['get']('highlight.options')['find'](_0x35e659=>_0x35e659['model']==_0x301583),_0x41d08b=_0x1a2d3f(_0x13d9bf['title'])['toLowerCase']();return{'type':'format','content':o(_0x2a2aa1,'*Set\x20highlight:*\x20%0',_0x41d08b),'color':{'value':_0x13d9bf['color'],'title':_0x13d9bf['title']}};}return{'type':'format','content':o(_0x2a2aa1,'*Remove\x20highlight*',o(_0x2a2aa1,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x17585e{['afterInit'](){const _0x1ce6e9=this['editor'];if(!_0x1ce6e9['plugins']['has']('HorizontalLineEditing'))return;_0x1ce6e9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1d9313=_0x1ce6e9['plugins']['get']('TrackChangesEditing'),_0x30b0c1=_0x1ce6e9['locale'];_0x1d9313['descriptionFactory']['registerElementLabel']('horizontalLine',_0x47099d=>o(_0x30b0c1,'ELEMENT_HORIZONTAL_LINE',_0x47099d)),_0x1ce6e9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e22cb,{writer:_0x5bd30a,options:_0x50bb05})=>{if(!_0x50bb05['showSuggestionHighlights'])return null;const _0x117ae1=_0x5bd30a['createContainerElement']('div'),_0x16eaf=_0x5bd30a['createEmptyElement']('hr');return _0x5bd30a['addClass']('ck-horizontal-line',_0x117ae1),_0x5bd30a['insert'](_0x5bd30a['createPositionAt'](_0x117ae1,0x0),_0x16eaf),_0x117ae1;},'converterPriority':'high'});}}class rt extends _0x17585e{['afterInit'](){const _0x270ae1=this['editor'];if(!_0x270ae1['plugins']['has']('HtmlEmbed'))return;const _0x2fa521=_0x270ae1['plugins']['get']('TrackChangesEditing'),_0x3c1d00=_0x270ae1['locale'];_0x2fa521['descriptionFactory']['registerElementLabel']('rawHtml',_0x47b40b=>o(_0x3c1d00,'ELEMENT_HTML_EMBED',_0x47b40b)),_0x2fa521['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2fa521['registerBlockAttribute']('value'),_0x2fa521['descriptionFactory']['registerDescriptionCallback'](_0x58ac9a=>{if('attribute'!=_0x58ac9a['type'])return;const {data:_0x564b46}=_0x58ac9a;if(_0x564b46&&'value'==_0x564b46['key']&&_0x58ac9a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x34dd7f=o(_0x3c1d00,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3c1d00,'*Change\x20%0\x20content*',_0x34dd7f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x504bd9=this['editor'],_0x58583b=_0x504bd9['locale'];_0x504bd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14b153=>{if('formatBlock'!=_0x14b153['type'])return;const {data:_0x2bb939}=_0x14b153;if(_0x2bb939&&'htmlEmbed'==_0x2bb939['commandName']){const _0x103c27=o(_0x58583b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x58583b,'*Change\x20%0\x20content*',_0x103c27)};}});}}class at extends _0x17585e{['afterInit'](){const _0x19bf3d=this['editor'];if(!_0x19bf3d['plugins']['has']('ImageEditing'))return;const _0xa6f413=_0x19bf3d['plugins']['get']('TrackChangesEditing'),_0x57ce31=_0x19bf3d['plugins']['get']('ImageUtils'),_0x1272d6=_0x19bf3d['locale'];_0xa6f413['enableCommand']('insertImage'),_0xa6f413['descriptionFactory']['registerElementLabel']('imageBlock',_0x5c0ff9=>o(_0x1272d6,'ELEMENT_IMAGE',_0x5c0ff9)),_0xa6f413['descriptionFactory']['registerElementLabel']('imageInline',_0x1b5027=>o(_0x1272d6,'ELEMENT_INLINE_IMAGE',_0x1b5027)),_0xa6f413['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1272d6,'ELEMENT_CAPTION')),_0x19bf3d['plugins']['has']('ImageUploadEditing')&&_0xa6f413['enableCommand']('uploadImage'),_0x19bf3d['plugins']['has']('ImageBlockEditing')&&_0x19bf3d['plugins']['has']('ImageInlineEditing')&&(_0xa6f413['enableCommand']('imageTypeInline',(_0x29f4e9,_0x98fdde)=>{const _0x23e9b5=_0x57ce31['getClosestSelectedImageElement'](_0x19bf3d['model']['document']['selection']);_0x19bf3d['model']['change'](()=>{_0xa6f413['markBlockFormat'](_0x23e9b5,{'commandName':'imageTypeInline','commandParams':[_0x98fdde]},[],'convertBlockImageToInline');});}),_0xa6f413['enableCommand']('imageTypeBlock',(_0x3ad530,_0x4e4125)=>{_0x19bf3d['model']['change'](_0x206174=>{let _0x495e02=_0x57ce31['getClosestSelectedImageElement'](_0x19bf3d['model']['document']['selection']),_0x3ca7c2=_0x206174['createRangeOn'](_0x495e02);const _0x41f3a2=_0x133006['fromPosition'](_0x3ca7c2['start'],'toPrevious'),_0x2bbdd0=_0x133006['fromPosition'](_0x3ca7c2['end'],'toNext');_0xa6f413['forceDefaultExecution'](()=>_0x3ad530(_0x4e4125)),_0x495e02=_0x57ce31['getClosestSelectedImageElement'](_0x19bf3d['model']['document']['selection']),_0x3ca7c2=_0x206174['createRangeOn'](_0x495e02);const _0x4c3cba=_0x206174['createRange'](_0x41f3a2,_0x2bbdd0);_0x41f3a2['detach'](),_0x2bbdd0['detach'](),_0xa6f413['markBlockFormat'](_0x495e02,{'commandName':'imageTypeInline','commandParams':[_0x4e4125]},[],'convertInlineImageToBlock'),_0x4c3cba['start']['isBefore'](_0x3ca7c2['start'])&&_0xa6f413['markInsertion'](_0x206174['createRange'](_0x4c3cba['start'],_0x3ca7c2['start']),'convertInlineImageToBlock'),_0x3ca7c2['end']['isBefore'](_0x4c3cba['end'])&&_0xa6f413['markInsertion'](_0x206174['createRange'](_0x3ca7c2['end'],_0x4c3cba['end']),'convertInlineImageToBlock');});}),_0xa6f413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xa6f413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xa6f413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xa6f413['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xa6f413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xa6f413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x25c822])=>{const _0x19a89a=_0xa6f413['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x441cb6=_0x25c822['start'],_0x40c407=_0x25c822['end'];const _0xf5af4e=_0x19bf3d['model']['schema']['getNearestSelectionRange'](_0x441cb6,'backward'),_0x11aa68=_0x19bf3d['model']['schema']['getNearestSelectionRange'](_0x40c407,'forward');_0xf5af4e['isCollapsed']&&(_0x441cb6=_0xf5af4e['start']),_0x11aa68['isCollapsed']&&(_0x40c407=_0x11aa68['end']),_0x19a89a([_0x19bf3d['model']['createRange'](_0x441cb6,_0x40c407)]);}),_0xa6f413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3bd1a2),_0xa6f413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3bd1a2)),_0x19bf3d['plugins']['has']('ImageCaptionEditing')&&(_0xa6f413['enableCommand']('toggleImageCaption',(_0x5ece93,_0x1b430b)=>{const _0x407f04=_0x19bf3d['plugins']['get']('ImageCaptionUtils');let _0x866be5=_0x57ce31['getClosestSelectedImageElement'](_0x19bf3d['model']['document']['selection']),_0x16a5a4=_0x407f04['getCaptionFromImageModelElement'](_0x866be5);_0x19bf3d['model']['change'](()=>{if(_0x16a5a4)return void _0xa6f413['markDeletion'](_0x19bf3d['model']['createRangeOn'](_0x16a5a4));const _0x22fb8b=_0x57ce31['isBlockImage'](_0x866be5);_0x5ece93(_0x1b430b),_0x866be5=_0x57ce31['getClosestSelectedImageElement'](_0x19bf3d['model']['document']['selection']),_0x16a5a4=_0x407f04['getCaptionFromImageModelElement'](_0x866be5),_0xa6f413['markInsertion'](_0x19bf3d['model']['createRangeOn'](_0x16a5a4),_0x22fb8b?null:'imageCaption');});}),_0xa6f413['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3bd1a2));const _0x161cd8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x276eea(_0x2db8c0,_0x2b7473){const _0x31d2ac=_0x161cd8['findIndex'](({type:_0x347084,subType:_0x5d02c5})=>_0x2db8c0['type']==_0x347084&&_0x2db8c0['subType']==_0x5d02c5),_0x486e26=_0x161cd8['findIndex'](({type:_0x37e2f3,subType:_0x4a008c})=>_0x2b7473['type']==_0x37e2f3&&_0x2b7473['subType']==_0x4a008c);if(_0x31d2ac<0x0||_0x486e26<0x0)return!0x1;const _0x167430=_0x2db8c0['getFirstRange'](),_0x32c444=_0x2b7473['getFirstRange']();if((0x0==_0x31d2ac||0x1==_0x31d2ac)&&0x2==_0x486e26&&_0x167430['isIntersecting'](_0x32c444))return!0x0;if(0x2==_0x31d2ac&&0x3==_0x486e26){const _0x41c6eb=_0xa6f413['_findSuggestions'](_0x167430,'insertion')['filter'](({suggestion:_0x2294f6,meta:_0x50d5cb})=>_0x50d5cb['isOwn']&&'convertInlineImageToBlock'==_0x2294f6['subType']);if(_0x41c6eb['length']>0x1&&_0x32c444['end']['isEqual'](_0x167430['start']))return!0x0;if(0x1==_0x41c6eb['length']&&(_0x167430['start']['isEqual'](_0x32c444['end'])||_0x167430['end']['isEqual'](_0x32c444['start'])))return!0x0;}if(0x3==_0x31d2ac&&0x3==_0x486e26&&_0x167430['start']['isBefore'](_0x32c444['start'])){const _0x4e8f98=_0x167430['end']['nodeAfter'],_0x2abf0f=_0x32c444['start']['nodeBefore'];return _0x57ce31['isBlockImage'](_0x4e8f98)&&_0x4e8f98===_0x2abf0f;}return!0x1;}function _0x3bd1a2(_0x496e8a,_0x3858ea){return _0x276eea(_0x496e8a,_0x3858ea)?[_0x496e8a,_0x3858ea]:_0x276eea(_0x3858ea,_0x496e8a)?[_0x3858ea,_0x496e8a]:null;}_0x19bf3d['plugins']['has']('ImageResize')&&(_0xa6f413['enableDefaultAttributesIntegration']('resizeImage'),_0xa6f413['registerBlockAttribute']('resizedWidth'),_0xa6f413['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1272d6,'FORMAT_IMAGE_SIZE'))),_0x19bf3d['plugins']['has']('ImageTextAlternativeEditing')&&(_0xa6f413['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xa6f413['registerBlockAttribute']('alt')),_0x19bf3d['plugins']['has']('PictureEditing')&&(_0xa6f413['registerBlockAttribute']('sources'),_0xa6f413['descriptionFactory']['registerDescriptionCallback'](_0x4d5947=>{if('attribute'!=_0x4d5947['type'])return;const {data:_0x3c7825}=_0x4d5947;return _0x3c7825&&'sources'==_0x3c7825['key']?{'type':'format','content':''}:void 0x0;})),_0x19bf3d['plugins']['has']('ImageSizeAttributes')&&(_0xa6f413['registerBlockAttribute']('width'),_0xa6f413['registerBlockAttribute']('height'),_0xa6f413['descriptionFactory']['registerDescriptionCallback'](_0x5dbdb8=>{if('attribute'!=_0x5dbdb8['type'])return;const {data:_0x129cc2}=_0x5dbdb8;return!_0x129cc2||'width'!=_0x129cc2['key']&&'height'!=_0x129cc2['key']?void 0x0:{'type':'format','content':''};})),_0xa6f413['descriptionFactory']['registerDescriptionCallback'](_0xf4200a=>{if(!!_0x161cd8['find'](({type:_0x44cb50,subType:_0x5de516})=>_0xf4200a['type']==_0x44cb50&&_0xf4200a['subType']==_0x5de516))return _0xf4200a['previous']?{}:void 0x0;}),_0xa6f413['descriptionFactory']['registerDescriptionCallback'](_0x2abaa3=>{if('insertion'==_0x2abaa3['type']||'deletion'==_0x2abaa3['type']){const _0x1cf99e=_0x2abaa3['getContainedElement']();if(_0x1cf99e&&_0x1cf99e['is']('element','caption'))return{'type':'insertion'==_0x2abaa3['type']?'addObject':'removeObject','element':_0x1cf99e,'quantity':0x1};}}),_0xa6f413['descriptionFactory']['registerDescriptionCallback'](_0x882bec=>'formatBlock'==_0x882bec['type']&&'convertInlineImageToBlock'==_0x882bec['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x882bec['type']&&'convertBlockImageToInline'==_0x882bec['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xa6f413['descriptionFactory']['registerDescriptionCallback'](_0x4f9232=>{if('attribute'!=_0x4f9232['type'])return;const {data:_0x23be6a}=_0x4f9232;if(!_0x23be6a||'alt'!=_0x23be6a['key'])return;const _0x54f48d=_0x23be6a['newValue'];return _0x54f48d?{'type':'format','content':o(_0x1272d6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54f48d+'\x22')}:{'type':'format','content':o(_0x1272d6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7c33=this['editor'],_0x10d6b5=_0x2d7c33['locale'];_0x2d7c33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x527af1=>{if('formatBlock'!=_0x527af1['type']&&'formatInline'!=_0x527af1['type'])return;const {data:_0xdf44b6}=_0x527af1;if(_0xdf44b6){if('imageTextAlternative'==_0xdf44b6['commandName']){const _0x2d864e=_0xdf44b6['commandParams'][0x0]['newValue'];return _0x2d864e?{'type':'format','content':o(_0x10d6b5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d864e+'\x22')}:{'type':'format','content':o(_0x10d6b5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xdf44b6['commandName']){const _0x1992f4=_0xdf44b6['commandParams'][0x0]['width'];return _0x1992f4?{'type':'format','content':o(_0x10d6b5,'*Set\x20image\x20width:*\x20%0',_0x1992f4)}:{'type':'format','content':o(_0x10d6b5,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x17585e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a8301=this['editor']['locale'],_0x79bb8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x79bb8a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x79bb8a['registerBlockAttribute']('src'),_0x79bb8a['descriptionFactory']['registerDescriptionCallback'](_0x5db737=>{if('attribute'!=_0x5db737['type'])return;const {data:_0xf2ec08}=_0x5db737;return _0xf2ec08&&'src'==_0xf2ec08['key']?_0xf2ec08['newValue']&&_0xf2ec08['oldValue']?{'type':'format','content':o(_0x1a8301,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b7d8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b7d8a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b7d8a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b7d8a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b7d8a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaad99d=this['editor'],_0x11489e=_0xaad99d['locale'];_0xaad99d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a84fd=>{if('formatBlock'!=_0x3a84fd['type']&&'formatInline'!=_0x3a84fd['type'])return;const {data:_0x58cbcb}=_0x3a84fd;if(!_0x58cbcb||'replaceImageSource'!=_0x58cbcb['commandName'])return;return{'type':'format','content':o(_0x11489e,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x17585e{['afterInit'](){const _0x35c3b8=this['editor'];if(!_0x35c3b8['plugins']['has']('ImageStyleEditing'))return;const _0x5cd0a7=_0x35c3b8['plugins']['get']('TrackChangesEditing'),_0x469fa2=_0x35c3b8['plugins']['get']('ImageUtils'),_0x33956b={};_0x5cd0a7['enableCommand']('imageStyle',(_0x58394c,_0x27a33e)=>{const _0x31eefa=_0x35c3b8['plugins']['get']('Users')['me'],_0x3c2ab6=_0x35c3b8['commands']['get']('imageStyle');let _0x1422e6=_0x469fa2['getClosestSelectedImageElement'](_0x35c3b8['model']['document']['selection']),_0x145da0=_0x35c3b8['model']['createRangeOn'](_0x1422e6),_0x187442=_0x3c2ab6['value'];if(_0x187442==_0x27a33e['value'])return;const _0x5a8024={'commandName':'imageStyle','commandParams':[_0x27a33e],'formatGroupId':_0x193fe4()};_0x35c3b8['model']['change'](()=>{if(_0x5cd0a7['getSuggestions']()['filter'](_0x173772=>_0x173772['isInContent']&&_0x31eefa==_0x173772['author']&&('formatBlock'==_0x173772['type']||'formatInline'==_0x173772['type'])&&('imageStylePreApply'==_0x173772['subType']||'imageStylePostApply'==_0x173772['subType'])&&_0x173772['getFirstRange']()['isEqual'](_0x145da0))['forEach'](_0x585af7=>_0x5cd0a7['discardSuggestion'](_0x585af7['head'])),_0x1422e6=_0x469fa2['getClosestSelectedImageElement'](_0x35c3b8['model']['document']['selection']),_0x145da0=_0x35c3b8['model']['createRangeOn'](_0x1422e6),_0x3c2ab6['refresh'](),_0x35c3b8['commands']['get']('imageTypeInline')['refresh'](),_0x35c3b8['commands']['get']('imageTypeBlock')['refresh'](),_0x187442=_0x3c2ab6['value'],_0x187442!=_0x27a33e['value'])return _0x469fa2['isInlineImage'](_0x1422e6)&&_0x3c2ab6['shouldConvertImageType'](_0x27a33e['value'],_0x1422e6)?(_0x58394c({..._0x27a33e,'setImageSizes':!0x1}),_0x1422e6=_0x469fa2['getClosestSelectedImageElement'](_0x35c3b8['model']['document']['selection']),void _0x5cd0a7['markBlockFormat'](_0x1422e6,{..._0x5a8024,'commandReversedParams':[{'value':_0x187442||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x469fa2['isBlockImage'](_0x1422e6)?_0x5cd0a7['markBlockFormat'](_0x1422e6,_0x5a8024,[],'imageStylePostApply'):_0x5cd0a7['markInlineFormat'](_0x145da0,_0x5a8024,'imageStylePostApply'));});});for(const _0x4b863a of _0x35c3b8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x33956b[_0x4b863a['name']]=_0x4b863a['title']['toLowerCase']();_0x5cd0a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5cd0a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5cd0a7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5cd0a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2e998b])=>{_0x469fa2['setImageNaturalSizeAttributes'](_0x2e998b['getContainedElement']());}),_0x5cd0a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x37b202,_0x11c2e7)=>{_0x5cd0a7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x37b202,{'commandName':_0x11c2e7['commandName'],'commandParams':_0x11c2e7['commandReversedParams']});}),_0x5cd0a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5f1126,_0x54fcc3){if(_0x4a4ae4(_0x5f1126,_0x54fcc3))return[_0x5f1126,_0x54fcc3];if(_0x4a4ae4(_0x54fcc3,_0x5f1126))return[_0x54fcc3,_0x5f1126];return null;});const _0x1bc164=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a4ae4(_0x28d6c2,_0x42a662){const _0x2d3e71=_0x1bc164['findIndex'](({type:_0x99dd9c,subType:_0x1632d0})=>_0x28d6c2['type']==_0x99dd9c&&_0x28d6c2['subType']==_0x1632d0),_0x503632=_0x1bc164['findIndex'](({type:_0x3081c7,subType:_0x198eaa})=>_0x42a662['type']==_0x3081c7&&_0x42a662['subType']==_0x198eaa);if(_0x2d3e71<0x0||_0x503632<0x0)return!0x1;const _0x141ec7=_0x28d6c2['getFirstRange'](),_0x31a2e5=_0x42a662['getFirstRange']();if((0x0==_0x2d3e71||0x1==_0x2d3e71)&&0x2==_0x503632&&_0x141ec7['isIntersecting'](_0x31a2e5))return!0x0;if(0x2==_0x2d3e71&&0x3==_0x503632){const _0x1835a3=_0x5cd0a7['_findSuggestions'](_0x141ec7,'insertion')['filter'](({suggestion:_0x4fe9ac,meta:_0x358981})=>_0x358981['isOwn']&&'convertInlineImageToBlock'==_0x4fe9ac['subType']);if(_0x1835a3['length']>0x1&&_0x31a2e5['end']['isEqual'](_0x141ec7['start']))return!0x0;if(0x1==_0x1835a3['length']&&(_0x141ec7['start']['isEqual'](_0x31a2e5['end'])||_0x141ec7['end']['isEqual'](_0x31a2e5['start'])))return!0x0;}if(0x3==_0x2d3e71&&0x3==_0x503632&&_0x141ec7['start']['isBefore'](_0x31a2e5['start'])){const _0x1e16e6=_0x141ec7['end']['nodeAfter'],_0x3dae1d=_0x31a2e5['start']['nodeBefore'];return _0x469fa2['isBlockImage'](_0x1e16e6)&&_0x1e16e6===_0x3dae1d;}return!0x1;}_0x35c3b8['model']['document']['registerPostFixer'](()=>{let _0x1a13aa=!0x1;const _0x21d53b=Array['from'](_0x35c3b8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53bec9,data:_0x17ddf1}of _0x21d53b){const {group:_0x5d4c3e,type:_0x4eceb9,subType:_0x500d3d,id:_0x5c8e9a}=_0x5cd0a7['_splitMarkerName'](_0x53bec9);if('suggestion'==_0x5d4c3e&&_0x5cd0a7['hasSuggestion'](_0x5c8e9a)){if('formatBlock'==_0x4eceb9&&('imageStylePreApply'==_0x500d3d||'imageStylePostApply'==_0x500d3d)){const _0x487949=_0x5cd0a7['getSuggestion'](_0x5c8e9a);if(_0x17ddf1['newRange']){const _0x103a7f=_0x487949['getFirstRange']()['getContainedElement']();if(_0x469fa2['isBlockImage'](_0x103a7f))continue;_0x5cd0a7['discardSuggestion'](_0x487949),_0x1a13aa=!0x0;}}if('insertion'==_0x4eceb9&&'imageCaption'==_0x500d3d&&!_0x17ddf1['newRange']){const _0x596cec=_0x5cd0a7['getSuggestion'](_0x5c8e9a);_0x596cec['next']&&_0x596cec['next']['isInContent']&&(_0x5cd0a7['discardSuggestion'](_0x596cec['next']),_0x1a13aa=!0x0);}}}return _0x1a13aa;}),this['_registerLegacyDescription'](_0x33956b);}['_registerLegacyDescription'](_0x1e1a67){const _0x3a6302=this['editor'],_0x2bf2df=_0x3a6302['locale'];_0x3a6302['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11bff8=>{if('formatBlock'!=_0x11bff8['type']&&'formatInline'!=_0x11bff8['type'])return;const {data:_0x12f79b}=_0x11bff8;if(!_0x12f79b||'imageStyle'!=_0x12f79b['commandName'])return;const _0x30799c=_0x12f79b['commandParams'][0x0]['value'];return _0x28564d('side'===_0x30799c?o(_0x2bf2df,'FORMAT_SIDE_IMAGE'):_0x1e1a67[_0x30799c]||_0x30799c);function _0x28564d(_0x2cd00f){return{'type':'format','content':o(_0x2bf2df,'*Format:*\x20%0',_0x2cd00f)};}});}}class ft extends _0x17585e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3e302c){super(_0x3e302c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2d68ef=this['editor'],_0x4446f3=_0x2d68ef['commands']['get']('importWord'),_0x1466a1=_0x2d68ef['commands']['get']('trackChanges');_0x4446f3&&(_0x4446f3['on']('execute',(_0x26ae6c,[,_0x4a17c5])=>{this['_trackChangesValueDuringImport']=_0x1466a1['value'],_0x4a17c5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4446f3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4446f3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1466a1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2d68ef['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x33c76a,_0x41cee3){const {suggestions:_0x2d0616}=_0x41cee3,_0x295ac7=this['editor']['commands']['get']('trackChanges'),_0x3e2762=_0x295ac7['value'];this['_trackChangesValueDuringImport']!==_0x3e2762&&(_0x295ac7['execute'](),this['_trackChangesExecuted']=!0x0),_0x2d0616&&_0x2d0616['forEach'](({id:_0x269beb,type:_0x516b38,author:_0xbbd1a1,created_at:_0x311249})=>{const _0x126db8={'id':_0x269beb,'type':_0x516b38,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xbbd1a1,'createdAt':_0x311249?new Date(_0x311249):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x126db8);});}}class ht extends _0x17585e{['afterInit'](){const _0x5dc314=this['editor'],_0x3e5bb4=_0x5dc314['plugins']['get']('TrackChangesEditing');if(_0x5dc314['plugins']['has']('IndentEditing')&&(_0x3e5bb4['enableCommand']('indent'),_0x3e5bb4['enableCommand']('outdent')),_0x5dc314['plugins']['has']('IndentBlock')){for(const _0x11933f of['indentBlock','outdentBlock'])_0x3e5bb4['enableDefaultAttributesIntegration'](_0x11933f);}const _0x4e735e=_0x5dc314['locale'];_0x3e5bb4['registerBlockAttribute']('blockIndent'),_0x3e5bb4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4e735e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2433d1=this['editor'],_0x582163=_0x2433d1['locale'],_0x37665a=_0x2433d1['plugins']['get']('TrackChangesEditing');_0x37665a['descriptionFactory']['registerDescriptionCallback'](_0x47cbbf=>{if('formatBlock'!=_0x47cbbf['type'])return;const {data:_0x3d1911}=_0x47cbbf;if(!_0x3d1911)return;if('indentBlock'!=_0x3d1911['commandName']&&'outdentBlock'!=_0x3d1911['commandName'])return;const _0x5a5234=_0x47cbbf['getItems']()[0x0],_0x26df69=_0x37665a['descriptionFactory']['getItemLabel'](_0x5a5234);return'indentBlock'==_0x3d1911['commandName']?{'type':'format','content':o(_0x582163,'*Indent:*\x20%0',_0x26df69)}:'outdentBlock'==_0x3d1911['commandName']?{'type':'format','content':o(_0x582163,'*Outdent:*\x20%0',_0x26df69)}:void 0x0;});}}class gt extends _0x17585e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x17585e{['afterInit'](){const _0x372aa2=this['editor'];if(!_0x372aa2['plugins']['has']('LinkEditing'))return;const _0xdd2f70=_0x372aa2['plugins']['get']('TrackChangesEditing'),_0x145a5c=_0x372aa2['commands']['get']('link');_0xdd2f70['enableDefaultAttributesIntegration']('link'),_0xdd2f70['enableDefaultAttributesIntegration']('unlink'),_0xdd2f70['registerInlineAttribute']('linkHref');for(const _0x2a4729 of _0x145a5c['manualDecorators'])_0xdd2f70['registerInlineAttribute'](_0x2a4729['id']),_0xdd2f70['descriptionFactory']['registerAttributeLabel'](_0x2a4729['id'],'link\x20('+_0x2a4729['label']['toLowerCase']()+')');_0xdd2f70['descriptionFactory']['registerDescriptionCallback'](_0x2eb056=>{if('attribute'!=_0x2eb056['type'])return;const {data:_0x57c9c1}=_0x2eb056;if(!_0x57c9c1||'linkHref'!=_0x57c9c1['key'])return;const _0x1cf9c1=_0x57c9c1['newValue'],_0x9fc713=_0x372aa2['locale'];return{'type':'format','content':null==_0x1cf9c1?o(_0x9fc713,'*Remove\x20link*'):o(_0x9fc713,'*Set\x20link:*\x20%0','\x22'+_0x1cf9c1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x540a37=this['editor'],_0x2e117f=_0x540a37['locale'];_0x540a37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338840=>{if('formatInline'!=_0x338840['type'])return;const {data:_0x2e2a55}=_0x338840;if(_0x2e2a55){if('link'==_0x2e2a55['commandName']){const _0x5a733a=_0x2e2a55['commandParams'][0x0];return{'type':'format','content':o(_0x2e117f,'*Set\x20link:*\x20%0','\x22'+_0x5a733a+'\x22')};}return'unlink'==_0x2e2a55['commandName']?{'type':'format','content':o(_0x2e117f,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x17585e{['afterInit'](){const _0x4cbc56=this['editor'],_0x37d513=_0x4cbc56['locale'];if(!_0x4cbc56['plugins']['has']('LegacyListEditing'))return;const _0x22216d=_0x4cbc56['plugins']['get']('TrackChangesEditing'),_0x84ad0d=_0x4cbc56['plugins']['has']('LegacyTodoListEditing');function _0x1899a3(_0x2494e9){return()=>{const _0x5a90de=_0x4cbc56['model']['document']['selection'],_0x3b2679=_0x4cbc56['commands']['get'](_0x2494e9);if(_0x3b2679['value'])return void _0x4cbc56['execute']('paragraph',{});const _0x2dfa83=_0x2494e9['slice'](0x0,-0x4),_0x586f25=function(_0x463bcd,_0x5b6f6e,_0x32759a){let _0x3f96fd=Array['from'](_0x463bcd)['filter'](_0x4e7256=>function(_0x8e7de5,_0x1c7358){return _0x1c7358['checkChild'](_0x8e7de5['parent'],'listItem')&&!_0x1c7358['isObject'](_0x8e7de5);}(_0x4e7256,_0x32759a));_0x3f96fd=_0x3f96fd['filter'](_0x51d63a=>!_0x51d63a['is']('element','listItem')||_0x51d63a['getAttribute']('listType')!=_0x5b6f6e);const _0x4d5819=new Set();for(const _0x2dc103 of _0x3f96fd)_0x2dc103['is']('element','listItem')?_0x4d5819['add'](Ne(_0x2dc103)):_0x4d5819['add'](_0x2dc103);return Array['from'](_0x4d5819);}(_0x5a90de['getSelectedBlocks'](),_0x2dfa83,_0x4cbc56['model']['schema']);_0x4cbc56['model']['change'](()=>{for(const _0x49754e of _0x586f25)_0x22216d['markBlockFormat'](_0x49754e,{'commandName':_0x2494e9,'commandParams':[{'forceValue':!_0x3b2679['value']}],'formatGroupId':'blockName'},Se(_0x49754e));});};}function _0x1e6091(_0x300c57){return()=>{const _0x2603a8=function(_0x37d471){let _0x23e3bc=Array['from'](_0x37d471);const _0x41b496=_0x23e3bc['findIndex'](_0x4cd74a=>'listItem'!=_0x4cd74a['name']);return _0x41b496>-0x1&&(_0x23e3bc=_0x23e3bc['slice'](0x0,_0x41b496)),_0x23e3bc;}(_0x4cbc56['model']['document']['selection']['getSelectedBlocks']()),_0x46431c=_0x4cbc56['model']['createRange'](_0x4cbc56['model']['createPositionAt'](_0x2603a8[0x0],'before'),_0x4cbc56['model']['createPositionAt'](_0x2603a8[_0x2603a8['length']-0x1],'end'));_0x4cbc56['model']['change'](()=>{_0x22216d['markBlockFormat'](_0x46431c,{'commandName':_0x300c57,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5ed62d){const _0x485c3a=new Set();for(const _0x3de57a of _0x5ed62d){let _0x16059e=_0x3de57a['nextSibling'];for(;_0x16059e&&_0x16059e['getAttribute']('listIndent')>_0x3de57a['getAttribute']('listIndent');)_0x485c3a['add'](_0x16059e),_0x16059e=_0x16059e['nextSibling'];}return Array['from'](_0x485c3a);}(_0x2603a8));});};}_0x22216d['enableCommand']('numberedList',_0x1899a3('numberedList')),_0x22216d['enableCommand']('bulletedList',_0x1899a3('bulletedList')),_0x84ad0d&&_0x22216d['enableCommand']('todoList',_0x1899a3('todoList')),_0x22216d['enableCommand']('indentList',_0x1e6091('indentList')),_0x22216d['enableCommand']('outdentList',_0x1e6091('outdentList')),_0x84ad0d&&_0x22216d['enableCommand']('checkTodoList',()=>{const _0x4245a3=_0x4cbc56['commands']['get']('checkTodoList'),_0x766b4c=Array['from'](_0x4245a3['_selectedElements']);_0x766b4c['filter'](_0x33fd2d=>_0x33fd2d['getAttribute']('todoListChecked')!=_0x4245a3['value']),_0x4cbc56['model']['change'](()=>{for(const _0x355a6e of _0x766b4c)_0x22216d['markBlockFormat'](_0x355a6e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4245a3['value']}]});});}),_0x22216d['descriptionFactory']['registerElementLabel']('listItem',_0x2c915b=>o(_0x37d513,'ELEMENT_LIST_ITEM',_0x2c915b)),_0x22216d['descriptionFactory']['registerDescriptionCallback'](_0x5c42fa=>{if('formatBlock'!=_0x5c42fa['type']&&'formatInline'!=_0x5c42fa['type'])return;const {data:_0x4f3182}=_0x5c42fa;if(_0x4f3182){if('numberedList'==_0x4f3182['commandName']||'bulletedList'==_0x4f3182['commandName']||'todoList'==_0x4f3182['commandName'])switch(_0x4f3182['commandName']['replace']('List','')){case'bulleted':return _0x57d08a(o(_0x37d513,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57d08a(o(_0x37d513,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57d08a(o(_0x37d513,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4f3182['commandName'])return{'type':'format','content':o(_0x37d513,'*Indent:*\x20%0',o(_0x37d513,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4f3182['commandName'])return{'type':'format','content':o(_0x37d513,'*Outdent:*\x20%0',o(_0x37d513,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4f3182['commandName'])return _0x4f3182['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37d513,'*Check\x20item*')}:{'type':'format','content':o(_0x37d513,'*Uncheck\x20item*')};}function _0x57d08a(_0x44446a){return{'type':'format','content':o(_0x37d513,'*Change\x20to:*\x20%0',_0x44446a)};}});}}function Ne(_0x2f2d42){const _0x579dbe=_0x2f2d42['getAttribute']('listIndent');if(0x0==_0x579dbe)return _0x2f2d42;let _0x1cab1a=_0x2f2d42;for(;_0x2f2d42['previousSibling']&&_0x2f2d42['previousSibling']['is']('element','listItem');){const _0x4f1ac6=_0x2f2d42['previousSibling']['getAttribute']('listIndent');if(_0x4f1ac6==_0x579dbe)_0x1cab1a=_0x2f2d42['previousSibling'];else{if(_0x4f1ac6<_0x579dbe)break;}_0x2f2d42=_0x2f2d42['previousSibling'];}return _0x1cab1a;}function Se(_0x51de44){const _0x475d59=[];if(_0x51de44['is']('element','listItem')&&_0x51de44['getAttribute']('listIndent')>0x0){let _0x2c962c=_0x51de44['nextSibling'];for(;_0x2c962c&&'listItem'==_0x2c962c['name']&&_0x2c962c['getAttribute']('listIndent')==_0x51de44['getAttribute']('listIndent');)_0x475d59['push'](_0x2c962c),_0x2c962c=_0x2c962c['nextSibling'];}return _0x475d59;}class mt extends _0x17585e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1efd3e=this['editor']['config']['get']('list.properties'),_0x128cc4=this['editor']['plugins']['get']('TrackChangesEditing');_0x1efd3e['styles']&&_0x128cc4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1efd3e['reversed']&&_0x128cc4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1efd3e['startIndex']&&_0x128cc4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x128cc4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x27f9b6,_0x872544={}){const _0x56cb99=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53d426=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56cb99['markMultiRangeBlockFormat'](_0x53d426,{'commandName':'listStyle','commandParams':[{'type':_0x872544['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x10e5c5,_0x27e478={}){const _0x145698=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e3bae=this['_getSuggestionBlocks'](_0x48d527=>_0x48d527['is']('element','listItem')&&'numbered'===_0x48d527['getAttribute']('listType'));if(_0x4e3bae['length']<0x1)return;const _0x30ddb6=_0x4e3bae['map'](_0x56b305=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x56b305,'before'),this['editor']['model']['createPositionAt'](_0x56b305,0x0)));this['editor']['model']['change'](()=>{_0x145698['markMultiRangeBlockFormat'](_0x30ddb6,{'commandName':'listReversed','commandParams':[{'reversed':_0x27e478['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2395f8,_0x3ad646={}){const _0x4f60eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c5adc=this['_getSuggestionBlocks'](_0x3c34a0=>_0x3c34a0['is']('element','listItem')&&'numbered'===_0x3c34a0['getAttribute']('listType'));if(_0x3c5adc['length']<0x1)return;const _0x15e84d=_0x3c5adc['map'](_0x339528=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x339528,'before'),this['editor']['model']['createPositionAt'](_0x339528,0x0)));this['editor']['model']['change'](()=>{_0x4f60eb['markMultiRangeBlockFormat'](_0x15e84d,{'commandName':'listStart','commandParams':[{'startIndex':_0x3ad646['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29fc0c){if('formatBlock'!=_0x29fc0c['type']&&'formatInline'!=_0x29fc0c['type'])return;const _0x3340b8=this['editor']['locale'],{data:_0x15b27a}=_0x29fc0c;if(!_0x15b27a)return;let _0x29b0b2,_0x2965a0;switch(_0x15b27a['commandName']){case'listStyle':_0x29b0b2='*Change\x20to:*\x20%0',_0x2965a0={'type':'format','content':o(_0x3340b8,_0x29b0b2,o(_0x3340b8,this['_getTranslationKeyForListStyle'](_0x15b27a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29b0b2=_0x15b27a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2965a0={'type':'format','content':o(_0x3340b8,_0x29b0b2)};break;case'listStart':_0x29b0b2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2965a0={'type':'format','content':o(_0x3340b8,_0x29b0b2,_0x15b27a['commandParams'][0x0]['startIndex'])};}return _0x2965a0;}['_getSuggestionBlocksForListStyle'](){const _0x139f4d=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e3973=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4e3973[0x0]?.['is']('element','listItem')&&_0x4e3973['unshift'](..._0x139f4d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4e3973[_0x4e3973['length']-0x1]?.['is']('element','listItem')&&_0x4e3973['push'](..._0x139f4d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4e3973=[...new Set(_0x4e3973)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4e3973=_0x4e3973['filter'](_0x402f60=>_0x402f60['is']('element','listItem'))),_0x4e3973;}['_getSuggestionBlocks'](_0x10c8dd){const _0x417b98=this['editor']['plugins']['get']('LegacyListUtils');let _0x38a874=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x10c8dd)['map'](_0x32cbdd=>{const _0x10b865=this['editor']['model']['createPositionAt'](_0x32cbdd,0x0);return[..._0x417b98['getSiblingNodes'](_0x10b865,'backward'),..._0x417b98['getSiblingNodes'](_0x10b865,'forward')];})['flat']();return _0x38a874=[...new Set(_0x38a874)],_0x38a874;}['_getTranslationKeyForListStyle'](_0x50dcf3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x50dcf3)||'default')['toUpperCase']()+'_LIST_'+_0x50dcf3['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x17585e{['afterInit'](){const _0x1892be=this['editor'];if(!_0x1892be['plugins']['has']('MediaEmbedEditing'))return;const _0x4af5ec=_0x1892be['plugins']['get']('TrackChangesEditing'),_0x5170d9=_0x1892be['locale'];_0x4af5ec['enableCommand']('mediaEmbed'),_0x4af5ec['descriptionFactory']['registerElementLabel']('media',_0x47ca57=>o(_0x5170d9,'ELEMENT_MEDIA',_0x47ca57)),_0x1892be['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x802a1e,{writer:_0x3f5490,options:_0x4515ec})=>{if(_0x4515ec['showSuggestionHighlights'])return _0x3f5490['createEmptyElement']('div');},'converterPriority':'high'}),_0x1892be['data']['downcastDispatcher']['on']('attribute:url:media',(_0x311596,_0x4b63a6,_0x523ee3)=>{_0x523ee3['options']['showSuggestionHighlights']&&_0x311596['stop']();},{'priority':'high'});}}class kt extends _0x17585e{['afterInit'](){const _0x80c127=this['editor'];_0x80c127['plugins']['has']('MentionEditing')&&_0x80c127['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x17585e{['afterInit'](){const _0xd03ff0=this['editor'];if(!_0xd03ff0['plugins']['has']('MergeFieldsEditing'))return;const _0x56d75a=_0xd03ff0['plugins']['get']('TrackChangesEditing'),_0x3ed4b8=_0xd03ff0['locale'];_0x56d75a['enableCommand']('insertMergeField'),_0x56d75a['enableCommand']('insertMergeFieldBlock'),_0x56d75a['enableCommand']('insertMergeFieldImage'),_0x56d75a['descriptionFactory']['registerElementLabel']('mergeField',_0x41d2ed=>o(_0x3ed4b8,'ELEMENT_MERGE_FIELD',_0x41d2ed)),_0x56d75a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x45356c=>o(_0x3ed4b8,'ELEMENT_MERGE_FIELD',_0x45356c)),_0x56d75a['descriptionFactory']['registerDescriptionCallback'](_0x1fb522=>{if('insertion'!=_0x1fb522['type']&&'deletion'!=_0x1fb522['type'])return;const _0xf5c111=_0x1fb522['getContainedElement']();if(null==_0xf5c111)return;const _0x5a23f0=_0xd03ff0['plugins']['get']('MergeFieldsEditing');let _0x32fde2;switch(_0x5a23f0['getMergeFieldType'](_0xf5c111)){case null:return;case'image':{const _0x1f1ab5=_0x5a23f0['unwrapAffixes'](_0xf5c111['getAttribute']('src'));_0x32fde2=_0x5a23f0['getLabel'](_0x1f1ab5)||_0x1f1ab5;break;}default:{const _0x774098=_0xf5c111['getAttribute']('id');_0x32fde2=_0x5a23f0['getLabel'](_0x774098)||_0x774098;break;}}return'insertion'==_0x1fb522['type']?{'type':'insertion','content':o(_0x3ed4b8,'*Insert:*\x20%0','\x22'+_0x32fde2+'\x22\x20'+o(_0x3ed4b8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3ed4b8,'*Remove:*\x20%0','\x22'+_0x32fde2+'\x22\x20'+o(_0x3ed4b8,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x17585e{['afterInit'](){const _0x17561b=this['editor'],_0x54d0b8=_0x17561b['plugins']['get']('TrackChangesEditing');_0x17561b['plugins']['has']('MultiLevelList')&&(_0x54d0b8['enableDefaultAttributesIntegration']('multiLevelList'),_0x54d0b8['registerBlockAttribute']('listMarkerStyle'),_0x54d0b8['descriptionFactory']['registerDescriptionCallback'](_0x43af6a=>this['handleDescriptions'](_0x43af6a)));}['handleDescriptions'](_0x1cf214){const _0x39a974=this['editor']['locale'],{data:_0x5a253c}=_0x1cf214,_0xde1486={'type':'format','content':''};if(_0x5a253c&&'listMarkerStyle'==_0x5a253c['key']){if(!_0x5a253c['oldValue'])return{'type':'format','content':o(_0x39a974,'*Set\x20format:*\x20%0',o(_0x39a974,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a253c['newValue']+')'};if(!_0x5a253c['newValue']){let _0x257c68=_0x1cf214['head'];for(;_0x257c68;){if(_0x257c68['data']&&'listType'==_0x257c68['data']['key']&&_0x257c68['data']['newValue'])return _0xde1486;_0x257c68=_0x257c68['next'];}return{'type':'format','content':o(_0x39a974,'*Remove\x20format:*\x20%0',o(_0x39a974,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a253c['oldValue']+')'};}}}}class yt extends _0x17585e{['afterInit'](){const _0x102195=this['editor'];if(!_0x102195['plugins']['has']('PageBreakEditing'))return;_0x102195['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e7cc3=_0x102195['plugins']['get']('TrackChangesEditing'),_0x9f3341=_0x102195['locale'];_0x1e7cc3['descriptionFactory']['registerElementLabel']('pageBreak',_0x5cc5e2=>o(_0x9f3341,'ELEMENT_PAGE_BREAK',_0x5cc5e2));}}class St extends _0x17585e{['afterInit'](){const _0x2cce87=this['editor'];if(!_0x2cce87['plugins']['has']('Paragraph'))return;const _0x4dc04a=_0x2cce87['locale'],_0x46e0a8=_0x2cce87['plugins']['get']('TrackChangesEditing');_0x46e0a8['descriptionFactory']['registerElementLabel']('paragraph',_0x431d12=>o(_0x4dc04a,'ELEMENT_PARAGRAPH',_0x431d12)),_0x46e0a8['enableDefaultAttributesIntegration']('paragraph'),_0x46e0a8['enableCommand']('insertParagraph'),_0x2cce87['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2cce87),{'priority':'highest'}),_0x2cce87['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4bbb86,_0x32d322,_0x28c566)=>{_0x28c566['options']['showSuggestionHighlights']&&nr(_0x2cce87,{'showActiveMarker':!0x1})(_0x4bbb86,_0x32d322,_0x28c566);},{'priority':'highest'});const _0x47c3ef=_0x46e0a8['descriptionFactory'];_0x47c3ef['registerDescriptionCallback'](_0x4bf847=>{if('insertion'!==_0x4bf847['type'])return;const {start:_0x4d9b7a,end:_0x267bfa}=_0x4bf847['getFirstRange']();if(!_0x4d9b7a['isTouching'](_0x267bfa)||!_0x4d9b7a['nodeAfter'])return;const _0x1d6586=_0x2cce87['model']['schema'],_0x2dac30=_0x4d9b7a['nodeAfter'];return _0x1d6586['isBlock'](_0x2dac30)&&!_0x1d6586['isLimit'](_0x2dac30)&&_0x1d6586['checkChild'](_0x2dac30,'$text')?{'type':'insertion','content':o(_0x4dc04a,'*Insert:*\x20%0',_0x47c3ef['getItemLabel'](_0x2dac30,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa215a8=this['editor'],_0x3340e1=_0xa215a8['locale'];_0xa215a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc0b30f=>{if('formatBlock'!=_0xc0b30f['type'])return;const {data:_0x50c714}=_0xc0b30f;return _0x50c714&&'paragraph'==_0x50c714['commandName']?{'type':'format','content':o(_0x3340e1,'*Change\x20to:*\x20%0',o(_0x3340e1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4a413f,{showActiveMarker:_0x1a67af=!0x0}={}){return(_0x413749,_0x2112e3,_0x46e5fa)=>{const _0x598f62=_0x4a413f['plugins']['get']('TrackChangesEditing'),_0x179ea6=_0x2112e3['markerRange']['start'],_0xe31dc7=_0x2112e3['markerRange']['end'],_0x1cbaea=_0x4a413f['model']['schema'];if(!_0x179ea6['isTouching'](_0xe31dc7)||!_0x179ea6['nodeAfter'])return;const _0x2e594f=_0x179ea6['nodeAfter'];if(_0x1cbaea['isBlock'](_0x2e594f)&&!_0x1cbaea['isLimit'](_0x2e594f)&&_0x1cbaea['checkChild'](_0x2e594f,'$text')){if(!_0x46e5fa['consumable']['consume'](_0x2112e3['markerRange'],_0x413749['name']))return;const {id:_0x55f57a,authorId:_0x405d43}=_0x598f62['_splitMarkerName'](_0x2112e3['markerName']),_0x886c05=_0x46e5fa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x55f57a,'data-author-id':_0x405d43}),_0x373ea6=_0x46e5fa['mapper']['toViewPosition'](_0xe31dc7);_0x1a67af&&_0x598f62['activeMarkers']['includes'](_0x2112e3['markerName'])&&_0x46e5fa['writer']['addClass']('ck-suggestion-marker--active',_0x886c05),_0x46e5fa['writer']['insert'](_0x373ea6,_0x886c05),_0x46e5fa['mapper']['bindElementToMarker'](_0x886c05,_0x2112e3['markerName']);}};}class jt extends _0x17585e{['afterInit'](){const _0x15ab7c=this['editor'];_0x15ab7c['commands']['get']('replaceSource')&&_0x15ab7c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x17585e{['afterInit'](){const _0x1f8e01=this['editor'];if(!_0x1f8e01['plugins']['has']('RemoveFormatEditing'))return;_0x1f8e01['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x400ba0=this['editor'];_0x400ba0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16d2e6=>{if('formatBlock'!=_0x16d2e6['type']&&'formatInline'!=_0x16d2e6['type'])return;const {data:_0x30efc6}=_0x16d2e6;return _0x30efc6&&'removeFormat'==_0x30efc6['commandName']?{'type':'format','content':o(_0x400ba0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x17585e{['afterInit'](){const _0x4a1c90=this['editor'];if(!_0x4a1c90['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x13498a=_0x4a1c90['plugins']['get']('TrackChangesEditing');_0x13498a['enableCommand']('goToPreviousRestrictedEditingException'),_0x13498a['enableCommand']('goToNextRestrictedEditingException');const _0x4794d1=_0x4a1c90['plugins']['get']('RestrictedEditingModeEditing');_0x4794d1['enableCommand']('trackChanges'),_0x4794d1['enableCommand']('acceptSuggestion'),_0x4794d1['enableCommand']('discardSuggestion'),_0x4794d1['enableCommand']('acceptAllSuggestions'),_0x4794d1['enableCommand']('discardAllSuggestions'),_0x4794d1['enableCommand']('acceptSelectedSuggestions'),_0x4794d1['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x17585e{['afterInit'](){const _0x24a7da=this['editor'];if(!_0x24a7da['plugins']['has']('ShiftEnter'))return;const _0x3f2952=_0x24a7da['plugins']['get']('TrackChangesEditing');_0x3f2952['enableCommand']('shiftEnter'),_0x24a7da['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x24a7da),{'priority':'high'}),_0x24a7da['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x24a7da),{'priority':'high'}),_0x24a7da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x28364d,_0x26642f,_0x22f831)=>{_0x22f831['options']['showSuggestionHighlights']&&Ee(_0x24a7da,{'showActiveMarker':!0x1})(_0x28364d,_0x26642f,_0x22f831);}),_0x3f2952['descriptionFactory']['registerElementLabel']('softBreak',_0x4d2c87=>o(_0x24a7da['locale'],'ELEMENT_LINE_BREAK',_0x4d2c87));}}function Ee(_0x980afa,{showActiveMarker:_0xce57a4=!0x0}={}){return(_0x1c7d15,_0x16fd29,_0x465cce)=>{const _0x509020=_0x980afa['plugins']['get']('TrackChangesEditing');if(!_0x465cce['consumable']['test'](_0x16fd29['markerRange'],_0x1c7d15['name']))return;const _0x2d68e1=_0x980afa['model'];for(const _0x308c29 of _0x16fd29['markerRange']['getItems']()){if(!_0x308c29['is']('element','softBreak'))continue;const _0xcf3801='deletion'==_0x16fd29['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1fd527,authorId:_0x3adbea}=_0x509020['_splitMarkerName'](_0x16fd29['markerName']),_0x3e9dac=_0x465cce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcf3801,'data-suggestion':_0x1fd527,'data-author-id':_0x3adbea}),_0x32e3d0=_0x465cce['mapper']['toViewPosition'](_0x2d68e1['createPositionBefore'](_0x308c29));_0xce57a4&&_0x509020['activeMarkers']['includes'](_0x16fd29['markerName'])&&_0x465cce['writer']['addClass']('ck-suggestion-marker--active',_0x3e9dac),_0x465cce['writer']['insert'](_0x32e3d0,_0x3e9dac),_0x465cce['mapper']['bindElementToMarker'](_0x3e9dac,_0x16fd29['markerName']);}};}class vt extends _0x17585e{['afterInit'](){const _0x5eaa02=this['editor'],_0x44bf08=_0x5eaa02['model'],_0x3e350c=_0x5eaa02['locale'];if(!_0x5eaa02['plugins']['has']('StandardEditingModeEditing'))return;const _0x30c652=_0x5eaa02['plugins']['get']('TrackChangesEditing'),_0x342e8b='restrictedEditingException',_0x2c0af8=_0x5eaa02['commands']['get'](_0x342e8b);_0x30c652['enableCommand'](_0x342e8b,(_0x1eb4e0,_0x54c812={})=>{const _0x1ee6d4=_0x44bf08['document']['selection'];if(_0x1ee6d4['isCollapsed'])return void _0x1eb4e0(_0x54c812);const _0x354759=void 0x0!==_0x54c812['forceValue']?_0x54c812['forceValue']:!_0x2c0af8['value'];_0x44bf08['change'](()=>{const _0x5e243b=Array['from'](_0x1ee6d4['getRanges']());for(const _0xe6f8a2 of _0x5e243b){const _0x379086=_0x354759?[_0xe6f8a2]:io(_0x342e8b,_0xe6f8a2,_0x44bf08);for(const _0x1e97cc of _0x379086)_0x30c652['markInlineFormat'](_0x1e97cc,{'commandName':_0x342e8b,'commandParams':[{'forceValue':_0x354759}]});}});}),_0x30c652['descriptionFactory']['registerDescriptionCallback'](_0x14fb88=>{if('formatBlock'!=_0x14fb88['type']&&'formatInline'!=_0x14fb88['type'])return;const {data:_0x385427}=_0x14fb88;return _0x385427&&_0x385427['commandName']==_0x342e8b?_0x385427['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e350c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3e350c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x17585e{['afterInit'](){const _0x829e38=this['editor'];if(!_0x829e38['plugins']['has']('Style')||!_0x829e38['plugins']['has']('DataSchema'))return;const _0x2c9ff6=_0x829e38['plugins']['get']('TrackChangesEditing'),_0x270e2d=_0x829e38['locale'],_0x302657=_0x829e38['config']['get']('style')||{},_0x162a04=_0x829e38['plugins']['get']('GeneralHtmlSupport'),_0x422b97=_0x829e38['plugins']['get']('StyleUtils')['normalizeConfig'](_0x829e38['plugins']['get']('DataSchema'),_0x302657['definitions']);_0x2c9ff6['enableDefaultAttributesIntegration']('style');const _0x5bcd72=new Set();for(const _0x449667 of _0x422b97['block']){const _0x50299e=_0x162a04['getGhsAttributeNameForElement'](_0x449667['element']);_0x5bcd72['add'](_0x50299e);}const _0x122828=new Set();for(const _0x491428 of _0x422b97['inline']){const _0x25e8f0=_0x162a04['getGhsAttributeNameForElement'](_0x491428['element']);_0x122828['add'](_0x25e8f0);for(const _0x1845c7 of _0x491428['ghsAttributes'])_0x122828['add'](_0x1845c7);}for(const _0x162a5e of _0x5bcd72)_0x2c9ff6['registerBlockAttribute'](_0x162a5e),_0x2c9ff6['descriptionFactory']['registerAttributeLabel'](_0x162a5e,o(_0x270e2d,'FORMAT_STYLE'));for(const _0x2af826 of _0x122828)_0x2c9ff6['registerInlineAttribute'](_0x2af826),_0x2c9ff6['descriptionFactory']['registerAttributeLabel'](_0x2af826,o(_0x270e2d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a539f=this['editor'],_0x4ebd71=_0x2a539f['locale'];_0x2a539f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d19ee=>{if('formatBlock'!=_0x2d19ee['type']&&'formatInline'!=_0x2d19ee['type'])return;const {data:_0x345dde}=_0x2d19ee;return _0x345dde&&'style'===_0x345dde['commandName']?_0x345dde['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ebd71,'*Set\x20format:*\x20%0',_0x345dde['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4ebd71,'*Remove\x20format:*\x20%0',_0x345dde['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x17585e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1920e9){super(_0x1920e9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44caa9=this['editor'],_0xe78ffe=_0x44caa9['model']['document']['selection'];if(!_0x44caa9['plugins']['has']('TableEditing'))return;const _0x5b6128=_0x44caa9['locale'],_0x3e261b=_0x44caa9['plugins']['get']('TrackChangesEditing'),_0x1218fe=_0x44caa9['plugins']['get']('TableUtils');_0x3e261b['descriptionFactory']['registerElementLabel']('table',_0x47f444=>o(_0x5b6128,'ELEMENT_TABLE',_0x47f444)),this['_setupColumnsRowsFixing'](),_0x3e261b['enableCommand']('insertTable'),_0x3e261b['enableCommand']('selectTableRow'),_0x3e261b['enableCommand']('selectTableColumn');for(const _0x2aa6c6 of['insertTableRowAbove','insertTableRowBelow']){const _0x130393=_0x44caa9['commands']['get'](_0x2aa6c6);_0x3e261b['enableCommand'](_0x2aa6c6,_0x5929cd=>{_0x44caa9['model']['change'](_0x44f08e=>{_0x5929cd();const _0x454c6a='above'===_0x130393['order'],_0x34e041=_0x1218fe['getSelectionAffectedTableCells'](_0xe78ffe),_0x8f11eb=_0x1218fe['getRowIndexes'](_0x34e041),_0x2c882c=_0x454c6a?_0x8f11eb['first']-0x1:_0x8f11eb['last']+0x1,_0x5a099c=_0x34e041[0x0]['findAncestor']('table'),_0x37eeaf=_0x1218fe['createTableWalker'](_0x5a099c,{'startRow':_0x2c882c,'endRow':_0x2c882c}),_0x15072e=Array['from'](_0x37eeaf)['map'](_0x36baee=>_0x44f08e['createRangeOn'](_0x36baee['cell']));_0x3e261b['markMultiRangeInsertion'](_0x15072e,'tableRow');});});}for(const _0x4abe7f of['insertTableColumnLeft','insertTableColumnRight']){const _0x591913=_0x44caa9['commands']['get'](_0x4abe7f);_0x3e261b['enableCommand'](_0x4abe7f,_0x4c1041=>{_0x44caa9['model']['change'](_0x5c7d10=>{_0x4c1041();const _0x2e266a='left'===_0x591913['order'],_0x16a324=_0x1218fe['getSelectionAffectedTableCells'](_0xe78ffe),_0x519505=_0x1218fe['getColumnIndexes'](_0x16a324),_0x3a3f14=_0x2e266a?_0x519505['first']-0x1:_0x519505['last']+0x1,_0x151337=_0x16a324[0x0]['findAncestor']('table'),_0x2f197f=_0x1218fe['createTableWalker'](_0x151337,{'startRow':0x0,'column':_0x3a3f14,'includeAllSlots':!0x1}),_0xe6148=Array['from'](_0x2f197f)['map'](_0x342fb9=>_0x5c7d10['createRangeOn'](_0x342fb9['cell']));_0x3e261b['markMultiRangeInsertion'](_0xe6148,'tableColumn');});});}for(const _0x2e0a87 of['removeTableRow','removeTableColumn']){const _0x3a7609=_0x2e0a87['substr'](0xb),_0x4bf28b=_0x3a7609['toLowerCase'](),_0x28910d=_0x4bf28b['substr'](0x0,0x3)+'span',_0xae3a8e='table'+_0x3a7609,_0x11eb30='min'+_0x3a7609,_0x4eb103='max'+_0x3a7609;_0x3e261b['enableCommand'](_0x2e0a87,()=>{_0x44caa9['model']['change'](_0x3007d3=>{const _0x3ef640=_0x1218fe['getSelectionAffectedTableCells'](_0xe78ffe),_0x30939c=_0x3ef640[0x0]['findAncestor']('table');let _0x486119;if('removeTableRow'==_0x2e0a87){const _0x11f84e=_0x1218fe['getRowIndexes'](_0x3ef640);_0x486119={'startRow':_0x11f84e['first'],'endRow':_0x11f84e['last'],'includeAllSlots':!0x0};}else{const _0x55bf8b=_0x1218fe['getColumnIndexes'](_0x3ef640);_0x486119={'startColumn':_0x55bf8b['first'],'endColumn':_0x55bf8b['last'],'includeAllSlots':!0x0};}const _0x1a380e=_0x1218fe['createTableWalker'](_0x30939c,_0x486119),_0x238dfa=Array['from'](_0x1a380e)['map'](({cell:_0x153ccd})=>_0x153ccd),_0x35f5f9=We(_0x238dfa['filter'](_0x5590b4=>_0x5590b4['hasAttribute'](_0x28910d))),_0x28b3a9=We(_0x238dfa['filter'](_0x549ea8=>!_0x549ea8['hasAttribute'](_0x28910d)))['map'](_0x1a042e=>_0x3007d3['createRangeOn'](_0x1a042e)),_0x50e6a1=_0x3e261b['markMultiRangeDeletion'](_0x28b3a9,_0xae3a8e);if(_0x50e6a1&&('tableRow'==_0x50e6a1['subType']||'tableColumn'==_0x50e6a1['subType'])){const _0x2a3e9b=this['_getSuggestionCoords'](_0x50e6a1);for(const _0x33050d of _0x35f5f9){const _0x7541e6=_0x3007d3['createRangeOn'](_0x33050d),_0x12f2f4=_0x1218fe['getCellLocation'](_0x33050d),_0x124973=_0x33050d['getAttribute'](_0x28910d)-0x1,_0xc222fa=_0x2a3e9b[_0x11eb30],_0x4e0b7f=_0x2a3e9b[_0x4eb103];_0xc222fa<=_0x12f2f4[_0x4bf28b]&&_0x12f2f4[_0x4bf28b]+_0x124973<=_0x4e0b7f&&_0x50e6a1['addRange'](_0x7541e6);}}});});}function _0x11a096(_0x5ab277){const _0xdf2ac1=Array['from'](_0xe78ffe['getRanges']())['map'](_0x42f5dd=>_0x5d3e65['fromRange'](_0x42f5dd));_0x44caa9['model']['change'](_0x514d24=>{const _0x3be8ec=_0x514d24['batch'];_0x5ab277=_0x5ab277['filter'](_0x2ce502=>'$graveyard'!=_0x2ce502['root']['rootName']),_0x514d24['setSelection'](_0x5ab277),_0x44caa9['commands']['get']('removeTableRow')['refresh'](),_0x44caa9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44caa9['model']['enqueueChange'](()=>{_0x44caa9['model']['enqueueChange'](_0x3be8ec,_0x31b98e=>{const _0x53b728=_0xdf2ac1['filter'](_0x2a4e54=>'$graveyard'!=_0x2a4e54['root']['rootName']);_0x53b728['length']>0x0&&_0x31b98e['setSelection'](_0x53b728);for(const _0x257b2e of _0xdf2ac1)_0x257b2e['detach']();});});});}function _0x1921d6(_0x22e827){_0x44caa9['model']['change'](_0x523812=>{const _0x33896e=Array['from'](_0xe78ffe['getRanges']())['map'](_0x1ad484=>_0x5d3e65['fromRange'](_0x1ad484)),_0x8cfe20=[];for(const _0x3be0ba of _0x22e827)for(const _0x5e9a00 of _0x3be0ba['getItems']({'shallow':!0x0}))_0x8cfe20['push'](_0x5e9a00);for(const _0x547f81 of _0x8cfe20)'$graveyard'!=_0x547f81['root']['rootName']&&(_0x523812['setSelection'](_0x523812['createPositionAt'](_0x547f81,0x0)),_0x44caa9['commands']['get']('removeTableColumn')['refresh'](),_0x44caa9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x237b68=_0x33896e['filter'](_0x2cfacb=>'$graveyard'!=_0x2cfacb['root']['rootName']);_0x237b68['length']>0x0&&_0x523812['setSelection'](_0x237b68);for(const _0x1a6ba4 of _0x33896e)_0x1a6ba4['detach']();});}function _0x9c4141(_0x4a7f9c,_0x2643ad){return _0x2643ad['every'](_0x2f4d76=>_0x4a7f9c['some'](_0x110055=>_0x110055['end']['isEqual'](_0x2f4d76['start'])||_0x2f4d76['end']['isEqual'](_0x110055['start'])));}function _0x426262(_0x2d9878,_0x4c8567){return!_0x2d9878['some'](_0x77f313=>_0x4c8567['some'](_0x4e8f83=>_0x77f313['isIntersecting'](_0x4e8f83)))&&_0x2d9878['some'](_0x32da97=>_0x4c8567['some'](_0x53b938=>_0x32da97['end']['isTouching'](_0x53b938['start'])));}_0x44caa9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x398098,_0x180464,_0x3137c0)=>{if(!_0x3137c0['options']['showSuggestionHighlights'])return;const _0x227960=_0x180464['item'];if(!_0x227960||!_0x227960['is']('element','tableCell'))return;const _0x2f4405=_0x3137c0['mapper']['toViewElement'](_0x227960);if(_0x2f4405){const {id:_0x2c0f4b,authorId:_0x378a75}=_0x3e261b['_splitMarkerName'](_0x180464['markerName']);_0x2797a8(_0x2f4405,_0x3137c0['writer'],(_0xe7c007,_0x3559a3,_0x21e132)=>{_0x21e132['addClass'](_0x2649ba(_0x3559a3['classes']),_0xe7c007),_0x21e132['setAttribute']('data-suggestion-id',_0x2c0f4b,_0xe7c007),_0x21e132['setAttribute']('data-author-id',_0x378a75,_0xe7c007);},(_0x2e6e92,_0x3e33d8,_0x58ea40)=>{_0x58ea40['removeClass'](_0x2649ba(_0x3e33d8['classes']),_0x2e6e92),_0x58ea40['removeAttribute']('data-suggestion-id',_0x2e6e92),_0x58ea40['removeAttribute']('data-author-id',_0x2e6e92);});}},{'priority':'highest'}),_0x3e261b['descriptionFactory']['registerDescriptionCallback'](_0x33beff=>{if('insertion'!=_0x33beff['type']&&'deletion'!=_0x33beff['type'])return;const _0x3d22b1=_0x33beff['getContainedElement']();if(null!=_0x3d22b1&&_0x3d22b1['is']('element','table')){if('insertion'==_0x33beff['type']){const _0x56e81f=_0x33beff['getItems']()['filter'](_0x3666a8=>_0x3666a8['is']('$textProxy'))['map'](_0x9bc019=>_0x9bc019['data']);if(_0x56e81f['length'])return{'type':'insertion','content':o(_0x5b6128,'*Insert:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56e81f['join']('\x20')+'\x22'))};}if('deletion'==_0x33beff['type']){const _0x3aeb93=_0x33beff['getItems']()['filter'](_0x9fd312=>_0x9fd312['is']('$textProxy'))['map'](_0x4beb15=>_0x4beb15['data']);if(_0x3aeb93['length'])return{'type':'deletion','content':o(_0x5b6128,'*Remove:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3aeb93['join']('\x20')+'\x22'))};}}}),_0x3e261b['descriptionFactory']['registerDescriptionCallback'](_0x560a46=>{if('tableRow'==_0x560a46['subType']){const _0x4a8810=_0x560a46['getItems']()['filter'](_0x701b93=>_0x701b93['is']('$textProxy'))['map'](_0x40ff40=>_0x40ff40['data']),_0x6ae326=this['_getSuggestionCoords'](_0x560a46),_0x11d537=_0x6ae326['maxRow']-_0x6ae326['minRow']+0x1;if('insertion'==_0x560a46['type'])return _0x4a8810['length']?{'type':'insertion','content':o(_0x5b6128,'*Insert:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x11d537,'\x22'+_0x4a8810['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b6128,'*Insert:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_ROW',_0x11d537))};if('deletion'==_0x560a46['type'])return _0x4a8810['length']?{'type':'deletion','content':o(_0x5b6128,'*Remove:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x11d537,'\x22'+_0x4a8810['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b6128,'*Remove:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_ROW',_0x11d537))};}if('tableColumn'==_0x560a46['subType']){const _0x53dc93=_0x560a46['getItems']()['filter'](_0x4710a3=>_0x4710a3['is']('$textProxy'))['map'](_0x522b06=>_0x522b06['data']),_0x48ba39=this['_getSuggestionCoords'](_0x560a46),_0x2e9466=_0x48ba39['maxColumn']-_0x48ba39['minColumn']+0x1;if('insertion'==_0x560a46['type'])return _0x53dc93['length']?{'type':'insertion','content':o(_0x5b6128,'*Insert:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e9466,'\x22'+_0x53dc93['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b6128,'*Insert:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_COLUMN',_0x2e9466))};if('deletion'==_0x560a46['type'])return _0x53dc93['length']?{'type':'deletion','content':o(_0x5b6128,'*Remove:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e9466,'\x22'+_0x53dc93['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b6128,'*Remove:*\x20%0',o(_0x5b6128,'ELEMENT_TABLE_COLUMN',_0x2e9466))};}}),_0x3e261b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x11a096),_0x3e261b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x11a096),_0x3e261b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1921d6),_0x3e261b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1921d6),_0x3e261b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x9c4141),_0x3e261b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x9c4141),_0x3e261b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x426262),_0x3e261b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x426262);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3259eb=this['editor'],_0x56314c=_0x3259eb['model']['document']['selection'];return(_0x3d97c4,_0xcb34ac)=>{_0x3259eb['model']['change'](_0x339113=>{const {commandName:_0x292905,commandParams:_0x3ac689}=_0xcb34ac;let _0x5a724d=_0x3d97c4[0x0]['end']['nodeBefore'];_0x3ac689&&_0x3ac689[0x0]&&!0x1===_0x3ac689[0x0]['forceValue']&&(_0x5a724d=_0x3d97c4[0x0]['start']['nodeAfter']);const _0x442f4e=_0x339113['createRangeIn'](_0x5a724d);if('$graveyard'==_0x442f4e['root']['rootName'])return;const _0x2fd259=Array['from'](_0x56314c['getRanges']())['map'](_0x3d0999=>_0x5d3e65['fromRange'](_0x3d0999));_0x339113['setSelection'](_0x442f4e),_0x3259eb['commands']['get'](_0x292905)['refresh'](),_0x3ac689['push']({'forceDefaultExecution':!0x0}),_0x3259eb['execute'](_0x292905,..._0x3ac689);const _0x348ffa=_0x2fd259['filter'](_0x3de620=>'$graveyard'!=_0x3de620['root']['rootName']);_0x348ffa['length']>0x0&&_0x339113['setSelection'](_0x348ffa);for(const _0x2115a4 of _0x2fd259)_0x2115a4['detach']();});};}['_getCoordsForCells'](_0x3d092e){const _0x2950ea=this['editor']['plugins']['get']('TableUtils');let _0x1d6916=Number['MAX_SAFE_INTEGER'],_0x28df36=Number['MIN_SAFE_INTEGER'],_0x5c793f=Number['MAX_SAFE_INTEGER'],_0x33d317=Number['MIN_SAFE_INTEGER'];for(const _0x128354 of _0x3d092e){if('$graveyard'==_0x128354['root']['rootName'])continue;const {row:_0x38da44,column:_0x23cac7}=_0x2950ea['getCellLocation'](_0x128354),_0xd5b88b=_0x128354['hasAttribute']('rowspan')?_0x128354['getAttribute']('rowspan')-0x1:0x0,_0x45ce18=_0x128354['hasAttribute']('colspan')?_0x128354['getAttribute']('colspan')-0x1:0x0;_0x1d6916=_0x38da44<_0x1d6916?_0x38da44:_0x1d6916,_0x28df36=_0x38da44+_0xd5b88b>_0x28df36?_0x38da44+_0xd5b88b:_0x28df36,_0x5c793f=_0x23cac7<_0x5c793f?_0x23cac7:_0x5c793f,_0x33d317=_0x23cac7+_0x45ce18>_0x33d317?_0x23cac7+_0x45ce18:_0x33d317;}return{'minRow':_0x1d6916,'maxRow':_0x28df36,'minColumn':_0x5c793f,'maxColumn':_0x33d317};}['_setupColumnsRowsFixing'](){const _0x3b6f3c=this['editor'],_0x6e063f=_0x3b6f3c['plugins']['get']('TrackChangesEditing'),_0x3b5415=_0x3b6f3c['plugins']['get']('TableUtils');_0x3b6f3c['model']['document']['on']('change:data',()=>{const _0x19858e=Array['from'](_0x3b6f3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35d4ac,data:_0xf8e161}of _0x19858e){const {group:_0x596af4,id:_0x482ff4,subType:_0x1016ad}=_0x6e063f['_splitMarkerName'](_0x35d4ac);if('suggestion'!=_0x596af4)continue;if(null!=_0xf8e161['oldRange'])continue;const _0x5f3b43=_0x6e063f['getSuggestion'](_0x482ff4);this['_tablePostFixingSubtypes']['includes'](_0x1016ad)&&this['_tableSuggestions']['add'](_0x5f3b43);}},{'priority':'low'});const _0x5fa3dd=(_0x356acd,_0x3c4c93)=>{let _0x186398=!0x1;const _0x2b4664=_0x3c4c93['createRangeOn'](_0x356acd),_0x399922=_0x356acd['findAncestor']('table'),_0x46f6e=_0x3b5415['getCellLocation'](_0x356acd);for(const _0x4429a6 of this['_tableSuggestions']){const _0x7973ca=_0x4429a6['subType'],_0x2edc79=_0x7973ca['startsWith']('tablePaste'),_0x3c2b35=_0x7973ca['substr'](_0x2edc79?0xa:0x5),_0x115899=_0x3c2b35['toLowerCase'](),_0x506016=_0x115899['substr'](0x0,0x3)+'span',_0x2ee997='min'+_0x3c2b35,_0x305262='max'+_0x3c2b35;if(!_0x4429a6['isInContent'])continue;if(_0x399922!=_0x4429a6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4429a6['isIntersectingWithRange'](_0x2b4664))continue;const _0x4b7b2a=_0x356acd['hasAttribute'](_0x506016)?_0x356acd['getAttribute'](_0x506016)-0x1:0x0,_0x52a78a=this['_getSuggestionCoords'](_0x4429a6),_0x19dab5=_0x52a78a[_0x2ee997],_0x2a634c=_0x52a78a[_0x305262];_0x19dab5<=_0x46f6e[_0x115899]&&_0x46f6e[_0x115899]+_0x4b7b2a<=_0x2a634c&&(_0x4429a6['addRange'](_0x2b4664),_0x186398=!0x0);}return _0x186398;};_0x3b6f3c['model']['document']['registerPostFixer'](_0x3241c5=>{let _0x5f1a27=!0x1;for(const _0x1600aa of _0x3b6f3c['model']['document']['differ']['getChanges']())if('insert'==_0x1600aa['type']){if('tableRow'==_0x1600aa['name']){for(const _0x20ee72 of _0x1600aa['position']['nodeAfter']['getChildren']())_0x5f1a27=_0x5f1a27||_0x5fa3dd(_0x20ee72,_0x3241c5);}else'tableCell'==_0x1600aa['name']&&(_0x5f1a27=_0x5f1a27||_0x5fa3dd(_0x1600aa['position']['nodeAfter'],_0x3241c5));}return _0x5f1a27;});}['_getSuggestionCoords'](_0x43fe9b){return this['_getCoordsForCells'](_0x43fe9b['getRanges']()['map'](_0x11ee49=>_0x11ee49['start']['nodeAfter']));}}function We(_0x3abc35){return Array['from'](new Set(_0x3abc35)['values']());}class Nt extends _0x17585e{static get['requires'](){return[$t];}['afterInit'](){const _0xb3188f=this['editor'],_0x26e29e=_0xb3188f['model']['document']['selection'],_0x5596af=_0xb3188f['locale'];if(!_0xb3188f['plugins']['has']('TableEditing'))return;const _0x4c0b6f=_0xb3188f['plugins']['get']('TrackChangesEditing'),_0x23fd8a=_0xb3188f['plugins']['get']('TableUtils'),_0x576ba2=_0xb3188f['plugins']['get']($t);_0x576ba2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4c0b6f['enableCommand']('mergeTableCells',()=>{const _0x2cf548=_0x23fd8a['getSelectionAffectedTableCells'](_0xb3188f['model']['document']['selection']);_0xb3188f['model']['change'](()=>{_0x4c0b6f['markMultiRangeBlockFormat'](_0x2cf548,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xb3188f['commands']['get']('mergeTableCells')['on']('execute',(_0x4587e1,_0x400be3)=>{_0xb3188f['commands']['get']('trackChanges')['value']&&(_0x400be3['length']>0x0&&_0x400be3[_0x400be3['length']-0x1]&&_0x400be3[_0x400be3['length']-0x1]['forceDefaultExecution']||_0x4c0b6f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4587e1['stop']());},{'priority':'highest'});for(const _0x15b7d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50ae01=_0xb3188f['commands']['get'](_0x15b7d3);_0x4c0b6f['enableCommand'](_0x15b7d3,()=>{const _0x4b2787=_0xb3188f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x108987=>_0x108987['is']('element','tableCell')),_0x67e4ac=_0x50ae01['value'];_0xb3188f['model']['change'](()=>{_0x4c0b6f['markMultiRangeBlockFormat']([_0x4b2787,_0x67e4ac],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x101974 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x222ce3=_0xb3188f['commands']['get'](_0x101974);_0x4c0b6f['enableCommand'](_0x101974,()=>{const _0x11881c=_0x23fd8a['getSelectionAffectedTableCells'](_0xb3188f['model']['document']['selection'])[0x0],_0x59b8d9=_0x11881c['findAncestor']('table'),{column:_0x3dfc37,row:_0x1ebadf}=_0x23fd8a['getCellLocation'](_0x11881c);let _0x2de904=[];if('horizontally'==_0x222ce3['direction']){const _0x29c1ac=_0x23fd8a['createTableWalker'](_0x59b8d9,{'startRow':_0x1ebadf,'endRow':_0x1ebadf,'includeAllSlots':!0x0});_0x2de904=Array['from'](_0x29c1ac)['map'](_0x347073=>_0x347073['cell']);}else{const _0x40b749=_0x23fd8a['createTableWalker'](_0x59b8d9,{'column':_0x3dfc37,'includeAllSlots':!0x0});_0x2de904=Array['from'](_0x40b749)['map'](_0x43de39=>_0x43de39['cell']);}_0xb3188f['model']['change'](_0x21eb2e=>{_0x4c0b6f['markBlockFormat'](_0x21eb2e['createRangeOn'](_0x11881c),{'commandName':_0x101974,'commandParams':[]},_0x2de904,_0x101974);});});}_0x4c0b6f['descriptionFactory']['registerDescriptionCallback'](_0x17ebe6=>{if('formatBlock'!=_0x17ebe6['type']&&'formatInline'!=_0x17ebe6['type'])return;const {data:_0x4bceef}=_0x17ebe6;return _0x4bceef&&'mergeTableCells'==_0x4bceef['commandName']?{'type':'format','content':o(_0x5596af,'*Merge\x20cells*')}:void 0x0;}),_0x4c0b6f['descriptionFactory']['registerDescriptionCallback'](_0x18ec0f=>{if('formatBlock'!=_0x18ec0f['type']&&'formatInline'!=_0x18ec0f['type'])return;const {data:_0x4d6c2b}=_0x18ec0f;return _0x4d6c2b?'splitTableCellVertically'==_0x4d6c2b['commandName']?{'type':'format','content':o(_0x5596af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d6c2b['commandName']?{'type':'format','content':o(_0x5596af,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x230d01=_0x576ba2['_acceptFormatSuggestionCallbackFactory']();for(const _0x194bee of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4c0b6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x194bee,'accept',_0x230d01);for(const _0x1e2910 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4c0b6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e2910,'accept',_0x230d01);_0x4c0b6f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e00bd=>{_0xb3188f['model']['change'](_0x46834e=>{const _0x2a06b1=Array['from'](_0x26e29e['getRanges']())['map'](_0x122c6b=>_0x5d3e65['fromRange'](_0x122c6b));_0x46834e['setSelection'](_0x2e00bd),_0xb3188f['commands']['get']('mergeTableCells')['refresh'](),_0xb3188f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b0509=_0x2a06b1['filter'](_0x4fc0fe=>'$graveyard'!=_0x4fc0fe['root']['rootName']);_0x3b0509['length']>0x0&&_0x46834e['setSelection'](_0x3b0509);for(const _0x4ac459 of _0x2a06b1)_0x4ac459['detach']();});});for(const _0x28fdd7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2ebb88=_0xb3188f['commands']['get'](_0x28fdd7);_0x2ebb88['on']('set:isEnabled',(_0x2a0d00,_0x158ded,_0x476e3c)=>{if(_0x476e3c){const _0x136fe5=_0xb3188f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15ee20=>_0x15ee20['is']('element','tableCell'));this['_areMergableCells'](_0x2ebb88['value'],_0x136fe5)||(_0x2a0d00['return']=!0x1,_0x2a0d00['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x467fd1=this['editor']['commands']['get']('mergeTableCells'),_0x50e2f8=this['editor']['plugins']['get']('TableUtils');if(!_0x467fd1['isEnabled'])return!0x1;const _0x5492e7=_0x50e2f8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xa8e190 of _0x5492e7)for(const _0x20a1c7 of _0x5492e7)if(_0xa8e190!=_0x20a1c7&&!this['_areMergableCells'](_0xa8e190,_0x20a1c7))return!0x1;return!0x0;}['_areMergableCells'](_0x18b5ba,_0x57e7b1){const _0x423a4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b5d7f=this['editor']['model']['createRangeOn'](_0x18b5ba),_0x3271cf=this['editor']['model']['createRangeOn'](_0x57e7b1),_0x13e9e7=new Set(),_0x3b842c=new Set();for(const _0x52946c of _0x423a4a['getSuggestions']())if(('insertion'==_0x52946c['type']||'deletion'==_0x52946c['type']||'mergeTableCells'==_0x52946c['subType'])&&_0x52946c['isInContent']){for(const _0x54e79e of _0x52946c['getRanges']())_0x54e79e['containsRange'](_0x3b5d7f,!0x0)&&_0x13e9e7['add'](_0x52946c['type']+':'+_0x52946c['author']['id']),_0x54e79e['containsRange'](_0x3271cf,!0x0)&&_0x3b842c['add'](_0x52946c['type']+':'+_0x52946c['author']['id']);}if(_0x13e9e7['size']!=_0x3b842c['size'])return!0x1;for(const _0x42eec4 of _0x13e9e7)if(!_0x3b842c['has'](_0x42eec4))return!0x1;return!0x0;}}class Dt extends _0x17585e{static get['requires'](){return[$t];}['afterInit'](){const _0x2e9799=this['editor'];if(!_0x2e9799['plugins']['has']('TableEditing'))return;const _0x4061d1=_0x2e9799['locale'],_0x1b2375=_0x2e9799['plugins']['get']('TrackChangesEditing');_0x1b2375['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b2375['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b2375['registerBlockAttribute']('headingRows'),_0x1b2375['registerBlockAttribute']('headingColumns'),_0x1b2375['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4061d1,'FORMAT_HEADER_ROW')),_0x1b2375['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4061d1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20bfdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5125fc=this['editor']['plugins']['get']('TableUtils'),_0x20a84c=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x5bb974({showActiveMarker:_0xf543c2=!0x0,setDataAttribute:_0x4e1ade=!0x0}={}){return(_0x103e37,_0x460feb,_0x60aec6)=>{const {type:_0xaf3fce,id:_0x57a75d}=_0x20bfdd['_splitMarkerName'](_0x460feb['markerName']);if(!_0x20bfdd['hasSuggestion'](_0x57a75d))return;const _0x1cdb5c=_0x20bfdd['getSuggestion'](_0x57a75d),_0x6d58be=_0x1cdb5c['data'];if('formatBlock'!=_0x1cdb5c['type']||!_0x6d58be||'setTableColumnHeader'!=_0x6d58be['commandName'])return;if(_0x460feb['item'])return void _0x103e37['stop']();if(!_0x60aec6['consumable']['consume'](_0x460feb['markerRange'],_0x103e37['name']))return;const _0x318204=_0x460feb['markerRange']['start']['nodeAfter'],_0x5d2000=_0x460feb['markerRange']['end']['nodeBefore'],_0x5ec364=_0x318204['parent']['parent'],{column:_0x1eff42}=_0x5125fc['getCellLocation'](_0x318204),{column:_0x1a3d7b}=_0x5125fc['getCellLocation'](_0x5d2000);for(let _0xced17c=_0x1eff42;_0xced17c<=_0x1a3d7b;_0xced17c++){const _0x20916d=_0x5125fc['createTableWalker'](_0x5ec364,{'column':_0xced17c,'includeAllSlots':!0x1});for(const _0x35e5ea of _0x20916d){const _0x477097=_0x35e5ea['cell'],_0x3f2c4e=_0x60aec6['mapper']['toViewElement'](_0x477097);_0x60aec6['writer']['addClass']('ck-suggestion-marker-'+_0xaf3fce,_0x3f2c4e),_0x4e1ade&&_0x60aec6['writer']['setAttribute']('data-suggestion',_0x57a75d,_0x3f2c4e),_0x60aec6['mapper']['bindElementToMarker'](_0x3f2c4e,_0x460feb['markerName']),_0xf543c2&&(_0x20bfdd['activeMarkers']['includes'](_0x460feb['markerName'])?_0x60aec6['writer']['addClass']('ck-suggestion-marker--active',_0x3f2c4e):_0x60aec6['writer']['removeClass']('ck-suggestion-marker--active',_0x3f2c4e));}}};}_0x20bfdd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x20a84c),_0x20bfdd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x20a84c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5bb974(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53ad0a,_0x176b8d,_0x386aed)=>{_0x386aed['options']['showSuggestionHighlights']&&_0x5bb974({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x53ad0a,_0x176b8d,_0x386aed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ee32c,_0x905100,_0x470dc4)=>{const {type:_0x489478,id:_0x1ea511}=_0x20bfdd['_splitMarkerName'](_0x905100['markerName']);if(!_0x20bfdd['hasSuggestion'](_0x1ea511))return;const _0x47d038=_0x20bfdd['getSuggestion'](_0x1ea511),_0x115098=_0x47d038['data'];if('formatBlock'!=_0x47d038['type']||!_0x115098||'setTableColumnHeader'!=_0x115098['commandName'])return;const _0x476192=_0x470dc4['mapper']['markerNameToElements'](_0x905100['markerName']);if(_0x476192){for(const _0x20db2e of _0x476192)_0x470dc4['writer']['removeClass']('ck-suggestion-marker-'+_0x489478,_0x20db2e),_0x470dc4['writer']['removeClass']('ck-suggestion-marker--active',_0x20db2e),_0x470dc4['writer']['removeAttribute']('data-suggestion',_0x20db2e),_0x470dc4['mapper']['unbindElementFromMarkerName'](_0x20db2e,_0x905100['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130b68=this['editor'],_0x1d021f=_0x130b68['locale'];function _0x4d40c7(_0x43f4b5){return{'type':'format','content':o(_0x1d021f,'*Format:*\x20%0',_0x43f4b5)};}_0x130b68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x196cd6=>{if('formatBlock'!=_0x196cd6['type'])return;const {data:_0x37cd2c}=_0x196cd6;if(_0x37cd2c){if('setTableRowHeader'==_0x37cd2c['commandName']){const _0x1c78e0=_0x37cd2c['commandParams'][0x0]['forceValue'];return _0x4d40c7(o(_0x1d021f,_0x1c78e0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x37cd2c['commandName']){const _0x10d4c9=_0x37cd2c['commandParams'][0x0]['forceValue'];return _0x4d40c7(o(_0x1d021f,_0x10d4c9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x17585e{['afterInit'](){const _0x41b28a=this['editor'],_0x1716a9=_0x41b28a['locale'],_0x1c5ce1=_0x41b28a['plugins']['get']('TrackChangesEditing');function _0x295679(_0x53c4ea){return{'type':'format','content':''+o(_0x1716a9,'*Set\x20table\x20type:*\x20%0',_0x53c4ea)};}_0x41b28a['plugins']['has']('TableLayout')&&(_0x1c5ce1['enableCommand']('insertTableLayout'),_0x1c5ce1['enableDefaultAttributesIntegration']('tableType'),_0x1c5ce1['registerBlockAttribute']('tableType'),_0x1c5ce1['descriptionFactory']['registerElementLabel'](_0x4ac140=>_0x4ac140['is']('element','table')&&'layout'===_0x4ac140['getAttribute']('tableType'),_0x3bb1a5=>o(_0x1716a9,'ELEMENT_LAYOUT_TABLE',_0x3bb1a5)),_0x1c5ce1['descriptionFactory']['registerDescriptionCallback'](_0x2f4c1e=>{const {data:_0x14cc6e}=_0x2f4c1e;if(_0x14cc6e&&'tableType'==_0x14cc6e['key'])switch(_0x14cc6e['newValue']){case'layout':return _0x295679(o(_0x1716a9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x295679(o(_0x1716a9,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Oe['map'](_0x44d5a6=>[_0x44d5a6,null]));class Bt extends _0x17585e{static get['requires'](){return[$t];}['afterInit'](){const _0x5b2233=this['editor'];if(!_0x5b2233['plugins']['has']('TableClipboard'))return;const _0x58f9ab=_0x5b2233['plugins']['get']('TrackChangesEditing'),_0x940218=_0x5b2233['plugins']['get']('TableUtils'),_0x130730=_0x5b2233['plugins']['get']($t),_0x34d6bb=_0x5b2233['plugins']['get']('TableClipboard'),_0x4f2084=_0x5b2233['plugins']['get']('TableSelection'),_0x15fb51=_0x5b2233['plugins']['get'](_0x3c9dea);_0x130730['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5b2233['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5b2233['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3229f8=null,_0x38bc8b=!0x1;_0x15fb51['on']('contentInsertion',(_0x45b562,_0x3f66c4)=>{_0x38bc8b='paste'===_0x3f66c4['method'];}),_0x5b2233['model']['on']('insertContent',(_0x35a46f,_0x3464cd)=>{if(!_0x38bc8b&&null===_0x4f2084['getSelectedTableCells']())return;const [_0x358301,_0x434dbc]=_0x3464cd,_0x54d986=_0x3464cd[_0x3464cd['length']-0x1];_0x54d986&&_0x54d986['forceDefaultExecution']||_0x58f9ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x138129,_0x245095,_0x3d26f9,_0x424be9,_0x55531a){if(_0x245095&&!_0x245095['is']('documentSelection'))return!0x1;const _0xaba03a=_0x55531a['getTableIfOnlyTableInContent'](_0x138129,_0x3d26f9);if(!_0xaba03a||!He(_0xaba03a,void 0x0,_0x424be9))return!0x1;const _0x32b0f4=_0x424be9['getSelectionAffectedTableCells'](_0x3d26f9['document']['selection']);if(!_0x32b0f4['length'])return!0x1;const _0xeaee07=_0x32b0f4[0x0]['findAncestor']('table'),_0x3387c0=_0x424be9['getRowIndexes'](_0x32b0f4),_0x2998d5=_0x424be9['getColumnIndexes'](_0x32b0f4),_0x12fce7={'startRow':_0x3387c0['first'],'endRow':_0x3387c0['last'],'startColumn':_0x2998d5['first'],'endColumn':_0x2998d5['last']};return 0x1==_0x32b0f4['length']&&(_0x12fce7['endRow']+=_0x424be9['getRows'](_0xaba03a)-0x1,_0x12fce7['endColumn']+=_0x424be9['getColumns'](_0xaba03a)-0x1),He(_0xeaee07,_0x12fce7,_0x424be9);}(_0x358301,_0x434dbc,_0x5b2233['model'],_0x940218,_0x34d6bb)&&(_0x35a46f['stop'](),_0x3229f8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b2233['model']['change'](()=>{_0x5b2233['model']['insertContent'](_0x3464cd[0x0],_0x3464cd[0x1],_0x3464cd[0x2],{'forceDefaultExecution':!0x0});const _0x58523d=_0x193fe4(),{rowInsertionRanges:_0x3df981,columnInsertionRanges:_0x51d9f5,insertionRanges:_0x59300c,deletionRanges:_0x30b5ef,cells:_0x4e8314}=_0x3229f8;_0x3df981['length']&&_0x58f9ab['markMultiRangeInsertion'](_0x3df981,'tablePasteRow',{'tablePasteChainId':_0x58523d}),_0x51d9f5['length']&&_0x58f9ab['markMultiRangeInsertion'](_0x51d9f5,'tablePasteColumn',{'tablePasteChainId':_0x58523d}),_0x59300c['length']&&(_0x58f9ab['markMultiRangeInsertion'](_0x59300c,'tablePaste',{'tablePasteChainId':_0x58523d,'skipNestingCheck':!0x0}),_0x59300c['forEach'](_0x4c5997=>_0x4c5997['detach']?.())),_0x30b5ef['length']&&(_0x58f9ab['markMultiRangeDeletion'](_0x30b5ef,'tablePaste',{'tablePasteChainId':_0x58523d,'skipNestingCheck':!0x0}),_0x30b5ef['forEach'](_0x36552f=>_0x36552f['detach']?.()));const _0x909a8a=_0x58f9ab['markMultiRangeBlockFormat'](_0x4e8314['map'](({element:_0x3a58ee})=>_0x3a58ee),{'formatGroupId':_0x193fe4()},[],'tablePasteCell',{'tablePasteChainId':_0x58523d});if(_0x909a8a){const _0x3f4ad8=_0x909a8a['getMarkers'](),_0x5cdf86=[];for(const {element:_0x146cb2,attributes:_0x35ef4b}of _0x4e8314){if(!_0x35ef4b)continue;const _0x407901=_0x5b2233['model']['createRangeOn'](_0x146cb2),_0xec26fe=_0x3f4ad8['find'](_0x5b4418=>_0x5b4418['getRange']()['isEqual'](_0x407901));_0xec26fe&&_0x5cdf86['push']([_0xec26fe['name'],_0x35ef4b]);}_0x5cdf86['length']&&_0x909a8a['setAttribute']('markerAttributes',Object['fromEntries'](_0x5cdf86));}_0x3229f8=null;}));},{'priority':_0x59cb45['high']+0xa}),_0x15fb51['on']('contentInsertion',()=>{_0x38bc8b=!0x1;},{'priority':'lowest'}),_0x5b2233['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4997c9,_0x4205a4)=>{const [_0x225289,_0x2afbdd,,_0x2e768c]=_0x4205a4;if(!_0x3229f8)return;_0x4997c9['stop']();const _0x407ee9=_0x225289['cell'],_0x4ca2b6=_0x2afbdd,_0x336d26=De(_0x407ee9),_0x457bda=De(_0x4ca2b6);_0x4997c9['return']=_0x407ee9;let _0x8e26d1=null,_0x23b8d1=null;if(_0x457bda||_0x336d26){if(_0x336d26&&!_0x457bda){_0x2e768c['remove'](_0x407ee9['getChild'](0x0));for(const _0x2a218d of Array['from'](_0x4ca2b6['getChildren']()))_0x2e768c['insert'](_0x2a218d,_0x407ee9,'end');const _0xa00634=_0x3229f8['rowInsertionIndexes']['includes'](_0x225289['row']),_0x1b3a0f=_0x3229f8['columnInsertionIndexes']['includes'](_0x225289['column']);_0xa00634||_0x1b3a0f||(_0x8e26d1=_0x5d3e65['fromRange'](_0x2e768c['createRangeIn'](_0x407ee9)));}else _0x457bda&&!_0x336d26&&(_0x23b8d1=_0x2e768c['createRangeIn'](_0x407ee9));}else{const _0x36c823=_0x2e768c['createElement']('tableCellSuggestion'),_0x954e85=_0x2e768c['createElement']('tableCellSuggestion');_0x2e768c['wrap'](_0x2e768c['createRangeIn'](_0x407ee9),_0x954e85),_0x2e768c['insert'](_0x36c823,_0x407ee9,0x0);for(const _0x26acec of Array['from'](_0x4ca2b6['getChildren']()))_0x2e768c['insert'](_0x26acec,_0x36c823,'end');_0x8e26d1=_0x5d3e65['fromRange'](_0x2e768c['createRangeOn'](_0x36c823)),_0x23b8d1=_0x5d3e65['fromRange'](_0x2e768c['createRangeOn'](_0x954e85));}const _0x22da75=Array['from'](_0x4ca2b6['getAttributes']())['filter'](([_0x427291])=>Oe['includes'](_0x427291));_0x3229f8['cells']['push']({'element':_0x407ee9,'attributes':_0x22da75['length']?Object['fromEntries'](_0x22da75):null}),_0x8e26d1&&_0x3229f8['insertionRanges']['push'](_0x8e26d1),_0x23b8d1&&_0x3229f8['deletionRanges']['push'](_0x23b8d1);},{'priority':'high'}),_0x940218['on']('insertColumns',(_0x22532c,_0x59f623)=>{const [_0x48bd60,_0x2474ab={}]=_0x59f623;if(!_0x3229f8)return;const _0x179fc1=_0x2474ab['at']||0x0,_0x31d754=_0x2474ab['columns']||0x1;_0x3229f8['columnInsertionIndexes']=new Array(_0x31d754)['fill'](_0x179fc1)['map']((_0x49f56b,_0x38da98)=>_0x49f56b+_0x38da98);for(const {cell:_0x851c4f}of _0x940218['createTableWalker'](_0x48bd60,{'startColumn':_0x179fc1,'endColumn':_0x179fc1+_0x31d754-0x1}))_0x3229f8['columnInsertionRanges']['push'](_0x5b2233['model']['createRangeOn'](_0x851c4f));},{'priority':'low'}),_0x940218['on']('insertRows',(_0x56e92e,_0x1f1e62)=>{const [_0x8fa586,_0x43f574={}]=_0x1f1e62;if(!_0x3229f8)return;const _0x19d009=_0x43f574['at']||0x0,_0x38bb80=_0x43f574['rows']||0x1;_0x3229f8['rowInsertionIndexes']=new Array(_0x38bb80)['fill'](_0x19d009)['map']((_0x40dc9c,_0x3a7afd)=>_0x40dc9c+_0x3a7afd);for(const {cell:_0x2b245a}of _0x940218['createTableWalker'](_0x8fa586,{'startRow':_0x19d009,'endRow':_0x19d009+_0x38bb80-0x1}))_0x3229f8['rowInsertionRanges']['push'](_0x5b2233['model']['createRangeOn'](_0x2b245a));},{'priority':'low'}),_0x58f9ab['descriptionFactory']['registerDescriptionCallback'](_0x2b9c13=>{if(_0x2b9c13['subType']&&_0x2b9c13['subType']['startsWith']('tablePaste'))return _0x2b9c13['previous']?{}:{'type':'insertion','content':o(_0x5b2233['locale'],'*Replace\x20table\x20cells*')};});const _0x5b0077=()=>!0x1;for(const _0x1b0a05 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x58f9ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x1b0a05,'join',_0x5b0077),_0x58f9ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x1b0a05,'join',_0x5b0077),_0x58f9ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b0a05,'join',_0x5b0077);_0x58f9ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5b0077),_0x58f9ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x34d82b,_0x4c08d1,_0x4853df)=>{const _0x55abf1=_0x34d82b['map'](_0x118240=>_0x118240['getContainedElement']())['filter'](_0x17c054=>_0x17c054),_0x164a87=new Map(_0x55abf1['map'](_0x365e23=>[_0x365e23,null]));if(_0x3229f8){for(const {element:_0x20ec34,attributes:_0x19f067}of _0x3229f8['cells'])_0x19f067&&_0x164a87['set'](_0x20ec34,_0x19f067);}else{if(_0x4853df&&_0x4853df['markerAttributes'])for(const [_0x4a0af5,_0x177957]of Object['entries'](_0x4853df['markerAttributes'])){const _0x2e5c0f=_0x5b2233['model']['markers']['get'](_0x4a0af5),_0x4bef77=_0x2e5c0f?_0x2e5c0f['getRange']()['getContainedElement']():null;_0x4bef77&&_0x164a87['set'](_0x4bef77,_0x177957);}}_0x5b2233['model']['change'](_0x9b8915=>{for(const [_0x3aa50b,_0x89fd0d]of _0x164a87)_0x9b8915['setAttributes']({...Ue,..._0x89fd0d},_0x3aa50b);});});const _0x54a7fe=(_0x1f9d9e,_0x22f0ce)=>{_0x58f9ab['_suggestionFactory']['registerCustomCallback'](_0x1f9d9e,'tablePaste',_0x22f0ce,(_0x2d4b26,_0x37566a,_0x36dcb7)=>{_0x5b2233['model']['change'](_0x5291b1=>{const _0x34c753=[];for(const _0x5df302 of _0x2d4b26){const _0x3dd358=_0x5df302['start']['nodeAfter'];_0x3dd358['is']('element','tableCellSuggestion')&&_0x34c753['push'](_0x3dd358);}_0x58f9ab['_suggestionFactory']['getSuggestionCallback'](_0x1f9d9e,null,_0x22f0ce)(_0x2d4b26,_0x37566a,_0x36dcb7);for(const _0x1f7a12 of _0x34c753)'$graveyard'!=_0x1f7a12['root']['rootName']&&_0x5291b1['unwrap'](_0x1f7a12);});});};_0x54a7fe('insertion','accept'),_0x54a7fe('insertion','discard'),_0x54a7fe('deletion','accept'),_0x54a7fe('deletion','discard'),_0x58f9ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xc6777c=>{const _0x2eeadc=_0xc6777c['map'](_0x50fff5=>_0x50fff5['getContainedElement']()),_0x3b8d27=_0x2eeadc[0x0]['findAncestor']('table'),{minRow:_0x5aa733,maxRow:_0x215841}=_0x130730['_getCoordsForCells'](_0x2eeadc);_0x940218['removeRows'](_0x3b8d27,{'at':_0x5aa733,'rows':_0x215841-_0x5aa733+0x1});}),_0x58f9ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xfa25c3=>{const _0x4c89d4=_0xfa25c3['map'](_0x3cf52e=>_0x3cf52e['getContainedElement']()),_0x456774=_0x4c89d4[0x0]['findAncestor']('table'),{minColumn:_0x448033,maxColumn:_0x197edd}=_0x130730['_getCoordsForCells'](_0x4c89d4);_0x940218['removeColumns'](_0x456774,{'at':_0x448033,'columns':_0x197edd-_0x448033+0x1});});const _0x15e7c4=(_0x3941fb,_0x4a1b01)=>{if(!_0x4a1b01['subType']||!_0x4a1b01['subType']['startsWith']('tablePaste'))return;const _0x3e8390=_0x4a1b01['attributes']['tablePasteChainId'],_0xc63815=_0x58f9ab['getSuggestions']()['filter'](_0x22b76f=>_0x22b76f['isInContent']&&_0x22b76f['attributes']&&_0x22b76f['attributes']['tablePasteChainId']==_0x3e8390);_0xc63815['length']&&_0x4a1b01['getAllAdjacentSuggestions']()['length']!=_0xc63815['length']&&_0xc63815['reduce']((_0x5daac7,_0x576a52)=>(_0x5daac7['next']=_0x576a52,_0x576a52['previous']=_0x5daac7,_0x576a52));};function _0x3398b8(_0x4ff0ac,_0x1c256e=!0x0){const {id:_0x16776e,authorId:_0x41974c}=_0x58f9ab['_splitMarkerName'](_0x4ff0ac['markerName']),_0x20f08a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5a98d2=_0x58f9ab['activeMarkers']['includes'](_0x4ff0ac['markerName']);return _0x5a98d2&&_0x20f08a['push']('ck-suggestion-marker--active'),{'classes':_0x20f08a,'attributes':{'data-suggestion':_0x16776e,'data-author-id':_0x41974c},'priority':_0x5a98d2&&_0x1c256e?0xbc2:0xbb8};}_0x58f9ab['on']('suggestionLoaded',_0x15e7c4,{'priority':'high'}),_0x58f9ab['on']('suggestionUnloaded',_0x15e7c4,{'priority':'high'}),_0x5b2233['model']['document']['registerPostFixer'](()=>{let _0x3eacf6=!0x1;const _0xb3cd44=Array['from'](_0x5b2233['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a2700,data:_0x53d21c}of _0xb3cd44){const {group:_0x5d4979,type:_0x32b4d8,id:_0x37966e}=_0x58f9ab['_splitMarkerName'](_0x5a2700);if('suggestion'!=_0x5d4979||'deletion'!=_0x32b4d8||_0x53d21c['oldRange'])continue;if(!_0x58f9ab['hasSuggestion'](_0x37966e))continue;const _0x3dc061=_0x58f9ab['getSuggestion'](_0x37966e)['getRanges'](),_0x26ab8a=_0x5b2233['plugins']['get']('Users')['me'];for(const _0x570f97 of _0x58f9ab['getSuggestions']()){if(!_0x570f97['isInContent']||_0x570f97['author']!=_0x26ab8a)continue;if('formatBlock'!=_0x570f97['type']||'tablePasteCell'!=_0x570f97['subType'])continue;if(_0x570f97['getRanges']()['every'](_0x35241c=>_0x3dc061['some'](_0x160a8b=>_0x160a8b['containsRange'](_0x35241c,!0x0)))){for(const _0x6d0755 of _0x570f97['getAllAdjacentSuggestions']())_0x6d0755['isInContent']&&(_0x6d0755['discard'](),_0x3eacf6=!0x0);}}}return _0x3eacf6;}),_0x5b2233['model']['document']['registerPostFixer'](_0x4d8d7a=>{const _0x3918d6=_0x5b2233['commands']['get']('redo');if(!_0x3918d6||!_0x3918d6['_createdBatches']['has'](_0x4d8d7a['batch']))return!0x1;let _0x35d445=!0x1;const _0x9d7a0e=_0x5b2233['plugins']['get']('Users')['me'],_0xbf1731=_0x5b2233['model']['document']['differ']['getChanges'](),_0x5a8c68=Array['from'](_0x5b2233['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2e76e9,data:_0x38d3e7})=>{const {group:_0x4adb7d,subType:_0x1292b2,authorId:_0x109cf7}=_0x58f9ab['_splitMarkerName'](_0x2e76e9);return'suggestion'==_0x4adb7d&&'tablePaste'==_0x1292b2&&_0x109cf7==_0x9d7a0e['id']&&!_0x38d3e7['oldRange'];});for(const _0x169895 of _0xbf1731){if('insert'!=_0x169895['type']||'tableCellSuggestion'!=_0x169895['name']||0x1!=_0x169895['length'])continue;const _0x234d8a=_0x4d8d7a['createRange'](_0x169895['position'],_0x169895['position']['getShiftedBy'](0x1));if(!_0x5a8c68['find'](({data:_0x1e36b7})=>_0x1e36b7['newRange']['isEqual'](_0x234d8a))){for(const {name:_0x535257,data:_0x2edaf7}of _0x5a8c68)if(_0x234d8a['containsRange'](_0x2edaf7['newRange'])){_0x4d8d7a['updateMarker'](_0x535257,{'range':_0x234d8a}),_0x35d445=!0x0;break;}}}return _0x35d445;}),_0x5b2233['model']['document']['registerPostFixer'](_0x5151f0=>{let _0xf4a04d=!0x1;const _0xb5caee=_0x5b2233['plugins']['get']('Users')['me'],_0x3c9c24=_0x58f9ab['getSuggestions']()['filter'](_0x387d62=>_0x387d62['isInContent']&&_0x387d62['author']==_0xb5caee),_0x3d51a7=new Set(),_0x3e690d=new Set();for(const _0x323484 of _0x3c9c24)if('tablePaste'==_0x323484['subType'])for(const _0x4c9380 of _0x323484['getMarkers']()){const _0x3d5ea0=_0x4c9380['getRange']()['getContainedElement']();if(_0x3d5ea0){if(_0x3d5ea0['is']('element','tableCellSuggestion')&&De(_0x3d5ea0)){_0x323484['removeMarker'](_0x4c9380['name']),_0x3d51a7['add'](_0x3d5ea0),_0xf4a04d=!0x0;const _0x22316e=_0x3d5ea0['nextSibling'],_0x19da1c=_0x3d5ea0['previousSibling'],_0x1a7525=_0x22316e&&_0x22316e['is']('element','tableCellSuggestion'),_0x40c959=_0x19da1c&&_0x19da1c['is']('element','tableCellSuggestion');_0x1a7525&&!_0x3d51a7['has'](_0x22316e)&&_0x3e690d['add'](_0x22316e),_0x40c959&&!_0x3d51a7['has'](_0x19da1c)&&_0x3e690d['add'](_0x19da1c);}else _0x3d5ea0['is']('element','paragraph')&&_0x3d5ea0['isEmpty']&&(_0x323484['removeMarker'](_0x4c9380['name']),_0xf4a04d=!0x0);}}else{if('tablePasteCell'==_0x323484['subType']){if(!_0x323484['attributes']||!_0x323484['attributes']['tablePasteChainId'])continue;const _0x54f242=_0x323484['attributes']['markerAttributes'];if(_0x54f242&&Object['keys'](_0x54f242)['length'])continue;const _0x3136ab=_0x323484['attributes']['tablePasteChainId'];let _0x41337b=!0x0,_0x2b66ed=!0x0;for(const _0x3da340 of _0x3c9c24)if(_0x3da340['subType']&&_0x3da340['subType']['startsWith']('tablePaste')){if(!_0x3da340['attributes']['tablePasteChainId']){_0x2b66ed=!0x1;break;}if(_0x3da340['id']!=_0x323484['id']&&_0x3da340['attributes']['tablePasteChainId']==_0x3136ab){_0x41337b=!0x1;break;}}_0x2b66ed&&_0x41337b&&(_0x323484['removeMarkers'](),_0xf4a04d=!0x0);}}for(const _0x23fbca of _0x3d51a7)_0x5151f0['remove'](_0x23fbca);for(const _0x2f6ca1 of _0x3e690d)_0x5151f0['unwrap'](_0x2f6ca1);return _0xf4a04d;}),_0x5b2233['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x128cd6=>_0x3398b8(_0x128cd6),'converterPriority':'high'}),_0x5b2233['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x13c35a,_0x232961)=>_0x232961['options']['showSuggestionHighlights']?_0x3398b8(_0x13c35a,!0x1):null,'converterPriority':'high'});const _0x4048eb=_0x5b2233['editing']['view'];this['listenTo'](_0x4048eb['document'],'clipboardOutput',(_0x1c2acc,_0x1518cb)=>{const _0x54e26a=[];for(const _0x33a83a of _0x4048eb['createRangeIn'](_0x1518cb['content'])['getItems']())_0x33a83a['is']('element','suggestion-td')&&_0x54e26a['push'](_0x33a83a);_0x4048eb['change'](_0x29446e=>{for(const _0x2d37c6 of _0x54e26a)_0x29446e['move'](_0x29446e['createRangeIn'](_0x2d37c6),_0x29446e['createPositionBefore'](_0x2d37c6)),_0x29446e['remove'](_0x2d37c6);});});}}function De(_0x5375c6){if(_0x5375c6['isEmpty'])return!0x0;const _0x5b69ab=_0x5375c6['getChild'](0x0);return _0x5b69ab['is']('element','paragraph')&&_0x5b69ab['isEmpty'];}function He(_0x2518fd,_0x2212e6={},_0x4668e8){for(const {isAnchor:_0x417211,cellHeight:_0x1900f1,cellWidth:_0x4e6fc8}of _0x4668e8['createTableWalker'](_0x2518fd,{'includeAllSlots':!0x0,..._0x2212e6}))if(!_0x417211||0x1!=_0x1900f1||0x1!=_0x4e6fc8)return!0x1;return!0x0;}class Tt extends _0x17585e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x262bba=this['editor']['plugins']['get']('TrackChangesEditing');_0x262bba['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x262bba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x262bba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x262bba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x262bba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x262bba['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xdec6ef,_0x3df112){const _0x17644d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x502dbc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x466c38=_0x3df112['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x444340=_0x502dbc['getColumnGroupElement'](_0x466c38);let _0x31b17a=_0x444340?_0x502dbc['getTableColumnsWidths'](_0x444340):null,_0x4ae091=_0x466c38['getAttribute']('tableWidth')||null;const _0x38681b=_0x3df112['tableWidth']||_0x4ae091,_0x49a1b2=_0x3df112['columnWidths']||_0x31b17a,_0x5d2ea5=this['editor']['plugins']['get']('Users')['me'];for(const _0x95a629 of _0x17644d['getSuggestions']()){const _0xcf80af=_0x95a629['getContainedElement']();if('resizeTable'===_0x95a629['subType']&&_0xcf80af===_0x466c38){_0x95a629['author']!==_0x5d2ea5&&_0x95a629['discard']();const _0x324146=_0x95a629['data']['commandParams'];_0x4ae091=_0x324146[0x0]['tableWidth'],_0x31b17a=_0x324146[0x0]['columnWidths'];break;}}_0xdec6ef({'table':_0x466c38,'tableWidth':_0x38681b,'columnWidths':_0x49a1b2}),_0x17644d['markBlockFormat'](_0x466c38,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ae091,'columnWidths':_0x31b17a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xe80156){if('formatBlock'!=_0xe80156['type']&&'formatInline'!=_0xe80156['type'])return;const {data:_0x22e830}=_0xe80156;if(_0x22e830&&'resizeTable'===_0x22e830['formatGroupId']){const _0x59df14='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x59df14)};}}}class Ot extends _0x17585e{['afterInit'](){const _0x27efda=this['editor'];_0x27efda['plugins']['has']('Template')&&_0x27efda['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x17585e{['afterInit'](){const _0x338dcf=this['editor'];if(!_0x338dcf['commands']['get']('insertTableOfContents'))return;_0x338dcf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5745d0=_0x338dcf['plugins']['get']('TrackChangesEditing'),_0x4c4d02=_0x338dcf['locale'];_0x5745d0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a004d=>o(_0x4c4d02,'ELEMENT_TABLE_OF_CONTENTS',_0x1a004d));}}class Et extends _0x17585e{['afterInit'](){const _0xcbe680=this['editor'];if(!_0xcbe680['plugins']['has']('Title'))return;const _0x5ae5e7=_0xcbe680['plugins']['get']('TrackChangesEditing');_0x5ae5e7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xcbe680['locale'],'ELEMENT_TITLE')),_0xcbe680['model']['document']['registerPostFixer'](_0x532537=>{let _0x88179d=!0x1;const _0x5a4d69=Array['from'](_0xcbe680['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x324ee4,data:_0x4b012f}of _0x5a4d69){const {group:_0x54ee78}=_0x5ae5e7['_splitMarkerName'](_0x324ee4);if('suggestion'!==_0x54ee78||!_0x4b012f['newRange'])continue;const _0x412b07=_0x4b012f['newRange'],_0x562fbd=_0x412b07['end']['nodeBefore'];if(!_0x562fbd||!_0x562fbd['is']('element','title-content'))continue;if(!_0x412b07['start']['isTouching'](_0x412b07['end']))continue;const _0xc63de4=_0xcbe680['model']['schema']['getNearestSelectionRange'](_0x412b07['end'],'forward');if(_0xc63de4&&_0xc63de4['isCollapsed']){const _0x2ed8ae=_0x532537['createRange'](_0x412b07['start'],_0xc63de4['start']);_0x2ed8ae['isEqual'](_0x412b07)||(_0x532537['updateMarker'](_0x324ee4,{'range':_0x2ed8ae}),_0x88179d=!0x0);}_0x88179d||(_0x532537['removeMarker'](_0x324ee4),_0x88179d=!0x0);}return _0x88179d;});}}class Rt extends _0x17585e{['afterInit'](){const _0x3cd312=this['editor'],_0x51bb42=_0x3cd312['plugins']['get']('TrackChangesEditing');_0x3cd312['plugins']['has']('Uploadcare')&&(_0x51bb42['enableCommand']('uploadcare'),_0x3cd312['plugins']['has']('UploadcareImageEdit')&&(_0x51bb42['enableCommand']('uploadcareImageEdit'),_0x51bb42['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x51bb42['registerBlockAttribute']('uploadcareImageId'),_0x51bb42['descriptionFactory']['registerDescriptionCallback'](_0x23fc8f=>{if('attribute'!=_0x23fc8f['type'])return;const {data:_0xe394e9}=_0x23fc8f;return _0xe394e9&&'uploadcareImageId'==_0xe394e9['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x17585e{['afterInit'](){const _0x5e2941=this['editor'],_0x4a4e69=_0x5e2941['plugins']['get']('TrackChangesEditing');_0x5e2941['plugins']['has']('UndoEditing')&&(_0x4a4e69['enableCommand']('undo'),_0x4a4e69['enableCommand']('redo'));}}class Vt extends _0x17585e{static get['requires'](){return[$t];}['afterInit'](){const _0x31ecd8=this['editor'];if(!_0x31ecd8['plugins']['has']('TableCaptionEditing'))return;_0x31ecd8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x17585e{['tableProperties'];['tableCellProperties'];constructor(_0x586bf5){super(_0x586bf5),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 _0x40ca70=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3508c6 of this['tableProperties'])_0x40ca70['enableCommand'](_0x3508c6,(_0x57d1a4,_0x58bae7)=>{const _0x11457a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3508c6,[_0x11457a],this['tableProperties'],'tableProperties',_0x57d1a4,_0x58bae7);});_0x40ca70['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x40ca70['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40ca70['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x16a474,_0x3745d0)=>this['handleDiscardAction'](this['tableProperties'],_0x16a474,_0x3745d0)),_0x40ca70['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x22adcf of this['tableCellProperties'])_0x40ca70['enableCommand'](_0x22adcf,(_0x5a68db,_0x2f0c5e)=>{const _0x1a97ea=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x22adcf,_0x1a97ea,this['tableCellProperties'],'tableCellProperties',_0x5a68db,_0x2f0c5e);});_0x40ca70['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x40ca70['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40ca70['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd231d,_0x3629a9)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd231d,_0x3629a9)),_0x40ca70['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x40ca70['descriptionFactory']['registerDescriptionCallback'](_0x2221c3=>this['handleSuggestionDescription'](_0x2221c3)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x246c57,_0x41d12f,_0x1a78f7,_0xed4390,_0x116bfb,_0x4690de){const _0x3f9d9d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4690de['batch'],()=>{for(const _0x5cd6eb of _0x41d12f){if(this['_getSuggestion'](_0x5cd6eb,_0xed4390))_0x116bfb(_0x4690de);else{const _0x14ad45={};for(const _0x272a92 of _0x1a78f7){const _0x2d9f11=_0x5cd6eb['getAttribute'](_0x272a92);void 0x0!==_0x2d9f11&&(_0x14ad45[_0x272a92]=_0x2d9f11);}_0x116bfb(_0x4690de),_0x3f9d9d['markBlockFormat'](_0x5cd6eb,{'commandParams':[_0x14ad45]},[],_0xed4390);}}});}['handleDiscardAction'](_0x2c2043,_0xcd8baf,_0x790df8){const _0x1d603a=_0xcd8baf[0x0]['start']['nodeAfter'],_0x50e538=_0x790df8['commandParams'][0x0];this['editor']['model']['change'](_0x1a3ee3=>{for(const _0x11a7b6 of _0x2c2043)void 0x0!==_0x50e538[_0x11a7b6]?_0x1a3ee3['setAttribute'](_0x11a7b6,_0x50e538[_0x11a7b6],_0x1d603a):_0x1a3ee3['removeAttribute'](_0x11a7b6,_0x1d603a);});}['handleSuggestionDescription'](_0x3d570e){if(_0x3d570e['data'])switch(_0x3d570e['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2768d3,_0x4523c8){const _0x594ad2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x328aa3 of _0x594ad2['getSuggestions']({'skipNotAttached':!0x0})){const _0x29a871=_0x328aa3['getContainedElement']();if(_0x328aa3['subType']===_0x4523c8&&_0x29a871===_0x2768d3)return _0x328aa3;}return null;}['_registerTablePropertiesAttributes'](){const _0x2fcf6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2b5f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xe65c3c of _0x2e2b5f){const _0x205b5f=_0xe65c3c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2fcf6c['registerBlockAttribute'](_0xe65c3c),_0x2fcf6c['descriptionFactory']['registerAttributeLabel'](_0xe65c3c,o(this['editor']['locale'],'FORMAT_'+_0x205b5f));}}}class Pt extends _0x17585e{['afterInit'](){const _0x5b9e21=this['editor'];if(!_0x5b9e21['plugins']['has']('LineHeight'))return;const _0x120b66=_0x5b9e21['plugins']['get']('TrackChangesEditing'),_0x34066f=_0x5b9e21['locale'];_0x120b66['enableDefaultAttributesIntegration']('lineHeight'),_0x120b66['registerBlockAttribute']('lineHeight'),_0x120b66['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x34066f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x17585e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xf032e2,_0x25e4bb,_0x1dffe4,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x266f1b){super(_0x266f1b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xbb012e,_0x180ee1,_0x5cc171,_0x2be0e9)=>{this['_model']['change'](()=>{for(const _0x3e7f4a of[..._0x2be0e9,..._0x5cc171])this['_model']['markers']['has'](_0x3e7f4a)&&_0x266f1b['editing']['reconvertMarker'](_0x3e7f4a);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x266f1b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x266f1b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x266f1b['config']['get']('trackChanges.trackFormatChanges'),_0x266f1b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x266f1b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x266f1b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2a0d82=this['editor'],_0x3e4e36=(_0x322068,_0x3e4113)=>{if('attribute'!=_0x322068)return'ck-suggestion-marker-'+_0x322068;const _0x411e37=_0x3e4113['split']('|')[0x0];return this['_isBlockAttribute'](_0x411e37)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2a0d82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3246bf=>{const {id:_0x3c737a,authorId:_0x1c19cc,type:_0x22f7db,subType:_0x512dcf}=this['_splitMarkerName'](_0x3246bf['markerName']),_0x4f59f4=['ck-suggestion-marker',_0x3e4e36(_0x22f7db,_0x512dcf)];let _0x50136f=0xbb8;return this['activeMarkers']['includes'](_0x3246bf['markerName'])&&(_0x4f59f4['push']('ck-suggestion-marker--active'),_0x50136f=0xbc2),'deletion'==_0x22f7db&&(_0x50136f+=0x5),{'classes':_0x4f59f4,'attributes':{'data-suggestion':_0x3c737a,'data-author-id':_0x1c19cc},'priority':_0x50136f};}}),_0x2a0d82['conversion']['for']('dataDowncast')['add'](_0x2a5319=>{_0x2a5319['on']('addMarker:suggestion',(_0x10915b,_0x1bd6df,_0x590d0d)=>{if(!_0x590d0d['options']['showSuggestionHighlights'])return;const _0x53582e=_0x1bd6df['item'];if(!_0x53582e)return;const _0x127ae3=_0x590d0d['mapper']['toViewElement'](_0x53582e);_0x2a0d82['model']['schema']['isObject'](_0x53582e)&&_0x127ae3&&!_0x127ae3['getCustomProperty']('widget')&&_0x127ae3['is']('containerElement')&&_0x948813(_0x127ae3,_0x590d0d['writer']);},{'priority':'high'});}),_0x2a0d82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3fa1e4,_0x3710f3)=>{if(!_0x3710f3['options']['showSuggestionHighlights'])return null;const {id:_0x1b6990,authorId:_0x35a04d,type:_0x5a6ce6,subType:_0x82fcd7}=this['_splitMarkerName'](_0x3fa1e4['markerName']);return{'classes':['ck-suggestion-marker',_0x3e4e36(_0x5a6ce6,_0x82fcd7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1b6990,'data-author-id':_0x35a04d}};}});const _0x2f3535=({showActiveMarkers:_0x143e04=!0x0,isAttributeSuggestion:_0x1475c5=!0x1}={})=>(_0x405084,_0x28a4be,_0x575060)=>{if(!_0x28a4be['item'])return;const {id:_0x98b724,authorId:_0x215b85,subType:_0x2eb171}=this['_splitMarkerName'](_0x28a4be['markerName']);if(_0x1475c5){const _0x494625=se(_0x2eb171);if(!this['_isBlockAttribute'](_0x494625))return;}if(_0x28a4be['item']['is']('selection'))return void _0x575060['consumable']['consume'](_0x28a4be['item'],_0x405084['name']);const _0x29731b=_0x575060['mapper']['toViewElement'](_0x28a4be['item']);if(_0x28a4be['item']['is']('element')&&_0x2a0d82['model']['schema']['isBlock'](_0x28a4be['item'])&&!_0x29731b['getCustomProperty']('addHighlight')){_0x575060['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x29731b),_0x575060['writer']['setAttribute']('data-suggestion',_0x98b724,_0x29731b),_0x575060['writer']['setAttribute']('data-author-id',_0x215b85,_0x29731b),_0x575060['mapper']['bindElementToMarker'](_0x29731b,_0x28a4be['markerName']),_0x143e04&&(this['activeMarkers']['includes'](_0x28a4be['markerName'])?_0x575060['writer']['addClass']('ck-suggestion-marker--active',_0x29731b):_0x575060['writer']['removeClass']('ck-suggestion-marker--active',_0x29731b));for(const _0x1840b2 of _0x2a0d82['model']['createRangeIn'](_0x28a4be['item'])['getItems']())_0x575060['consumable']['consume'](_0x1840b2,_0x405084['name']);_0x575060['consumable']['consume'](_0x28a4be['item'],_0x405084['name']);}};_0x2a0d82['conversion']['for']('dataDowncast')['add'](_0x68c902=>{_0x68c902['on']('addMarker:suggestion:formatBlock',(_0x2df495,_0x2ede3b,_0x2c6f8f)=>{_0x2c6f8f['options']['showSuggestionHighlights']&&_0x2f3535({'showActiveMarkers':!0x1})(_0x2df495,_0x2ede3b,_0x2c6f8f);},{'priority':'highest'});}),_0x2a0d82['conversion']['for']('dataDowncast')['add'](_0x5534da=>{_0x5534da['on']('addMarker:suggestion:attribute',(_0x2e0554,_0x2ac854,_0x4949ee)=>{_0x4949ee['options']['showSuggestionHighlights']&&_0x2f3535({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2e0554,_0x2ac854,_0x4949ee);},{'priority':'highest'});}),_0x2a0d82['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b1ae5,_0x5328ea)=>{if(_0x5328ea['options']['showSuggestionHighlights']){const {id:_0x3246bd,authorId:_0x20d715}=this['_splitMarkerName'](_0x2b1ae5);return _0x2b1ae5['includes'](':split')||_0x2b1ae5['includes'](':merge')?{'group':'suggestion','name':_0x2b1ae5['substr'](0xb),'attributes':{'data-suggestion':_0x3246bd,'data-author-id':_0x20d715}}:null;}return{'group':'suggestion','name':_0x2b1ae5['substr'](0xb)};}}),_0x2a0d82['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2bbcac,{writer:_0xb26e5c})=>{let _0x344cdc='suggestion:'+_0x2bbcac['getAttribute']('suggestion-type')+':'+_0x2bbcac['getAttribute']('id');return _0x2bbcac['getAttribute']('marker-count')&&(_0x344cdc+=':'+_0x2bbcac['getAttribute']('marker-count')),_0xb26e5c['createElement']('$marker',{'data-name':_0x344cdc});}}),_0x2a0d82['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2a0d82['conversion']['for']('editingDowncast')['add'](_0x4d9976=>{_0x4d9976['on']('addMarker:suggestion:formatBlock',_0x2f3535(),{'priority':'high'});}),_0x2a0d82['conversion']['for']('editingDowncast')['add'](_0x434caa=>{_0x434caa['on']('addMarker:suggestion:attribute',_0x2f3535({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2a0d82['conversion']['for']('editingDowncast')['add'](_0x5e2419=>{_0x5e2419['on']('removeMarker:suggestion:formatBlock',(_0x195234,_0x29266b,_0x57a80f)=>{const _0xc00118=_0x57a80f['mapper']['markerNameToElements'](_0x29266b['markerName']);if(_0xc00118){for(const _0x5e8182 of _0xc00118)_0x5e8182['getCustomProperty']('addHighlight')||(_0x57a80f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e8182),_0x57a80f['writer']['removeAttribute']('data-suggestion',_0x5e8182),_0x57a80f['writer']['removeAttribute']('data-author-id',_0x5e8182),_0x57a80f['mapper']['unbindElementFromMarkerName'](_0x5e8182,_0x29266b['markerName']));}},{'priority':'high'});}),_0x2a0d82['conversion']['for']('editingDowncast')['add'](_0x29fcf3=>{_0x29fcf3['on']('removeMarker:suggestion:attribute',(_0x17b4ce,_0x1abfae,_0x3017ef)=>{const _0x5825e4=_0x3017ef['mapper']['markerNameToElements'](_0x1abfae['markerName']);if(!_0x5825e4)return;const {subType:_0x40ffad}=this['_splitMarkerName'](_0x1abfae['markerName']),_0x544f57=se(_0x40ffad);if(this['_isBlockAttribute'](_0x544f57)){for(const _0x576724 of _0x5825e4)_0x576724['getCustomProperty']('addHighlight')||(_0x3017ef['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x576724),_0x3017ef['writer']['removeAttribute']('data-suggestion',_0x576724),_0x3017ef['writer']['removeAttribute']('data-author-id',_0x576724),_0x3017ef['mapper']['unbindElementFromMarkerName'](_0x576724,_0x1abfae['markerName']));}},{'priority':'high'});}),_0x2a0d82['model']['document']['registerPostFixer'](_0x399533=>{let _0x192301=!0x1;const _0x592222=Array['from'](_0x2a0d82['model']['document']['differ']['getChangedMarkers']()),_0x1cc4cf=new Set();for(const {name:_0x2e030f,data:_0x5eb175}of _0x592222){const {group:_0x961f27,type:_0x5581c3,subType:_0x3669bc,id:_0xee115f}=this['_splitMarkerName'](_0x2e030f);if('suggestion'!==_0x961f27)continue;const _0x6357d1=_0x3669bc?'suggestion:'+_0x5581c3+':'+_0x3669bc+':'+_0xee115f:'suggestion:'+_0x5581c3+':'+_0xee115f,_0x1d5028=_0x2a0d82['model']['markers']['getMarkersGroup'](_0x6357d1),_0x60b4ac=_0x2a0d82['model']['markers']['get'](_0x2e030f),_0x25dd94=this['_suggestions']['get'](_0xee115f);if(null!=_0x5eb175['newRange']){'formatInline'==_0x5581c3&&(_0x192301=_0x192301||Ht(_0x5eb175['newRange'],_0x2e030f,_0x399533,_0x2a0d82['model']['schema']));const _0x3484dd='attribute'==_0x5581c3&&this['_isBlockAttribute'](_0x3669bc['split']('|')[0x0]),_0x526df1='attribute'==_0x5581c3&&this['_isInlineAttribute'](_0x3669bc['split']('|')[0x0]);if(_0x5eb175['newRange']['isCollapsed']||'$graveyard'==_0x5eb175['newRange']['root']['rootName']||'formatBlock'==_0x5581c3&&!qt(_0x5eb175['newRange'])||_0x3484dd&&!qt(_0x5eb175['newRange'])||_0x526df1&&zt(_0x5eb175['newRange'])||'deletion'==_0x5581c3&&zt(_0x5eb175['newRange'])||_0x60b4ac&&Qt(_0x60b4ac,_0x1d5028))_0x399533['removeMarker'](_0x2e030f),_0x192301=!0x0;else{if(!_0x25dd94||!_0x25dd94['isInContent'])continue;if(_0x5eb175['newRange']&&_0x5eb175['oldRange']&&_0x5eb175['newRange']['isEqual'](_0x5eb175['oldRange']))continue;_0x1cc4cf['add'](_0x25dd94);}}}return _0x1cc4cf['size']>0x0&&(_0x192301=!!this['_joinWithAdjacentSuggestions'](_0x1cc4cf)||_0x192301),_0x192301;}),_0x2a0d82['model']['document']['registerPostFixer'](_0x2e88b1=>{let _0x2af817=!0x1;for(const _0x4f09af of _0x2a0d82['model']['document']['differ']['getChanges']())if('insert'==_0x4f09af['type'])for(const _0x7c80be of this['_suggestions']['values']()){if(_0x7c80be['isMultiRange']||!_0x7c80be['isInContent'])continue;const _0x31d383='formatBlock'==_0x7c80be['type'],_0x5f03f9=this['_getAttributeKey'](_0x7c80be),_0x37a585=_0x5f03f9&&this['_isBlockAttribute'](_0x5f03f9);if(!_0x31d383&&!_0x37a585)continue;const _0x2ba56f=_0x7c80be['getFirstRange']();if(_0x2ba56f['start']['parent']!=_0x2ba56f['end']['parent']&&!_0x2ba56f['end']['isAtEnd']){const _0x400e27=_0x2a0d82['model']['createPositionAt'](_0x2ba56f['start']['nodeAfter'],'end'),_0x392038=_0x2a0d82['model']['createRange'](_0x2ba56f['start'],_0x400e27);_0x2e88b1['updateMarker'](_0x7c80be['getFirstMarker'](),{'range':_0x392038}),_0x2af817=!0x0;}}return _0x2af817;}),_0x2a0d82['model']['document']['registerPostFixer'](_0x2b5bf9=>this['_processAttributeChanges'](_0x2b5bf9)),_0x2a0d82['model']['document']['registerPostFixer'](_0x26f2a5=>!_0x26f2a5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x26f2a5)),_0x2a0d82['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2a0d82['model']['document']['on']('change:data',(_0x1afc7a,_0x35d846)=>{if(!_0x35d846['isLocal']||_0x35d846['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xe19dbd=_0x2a0d82['model']['document']['differ']['getChanges']();if(0x0==_0xe19dbd['length'])return;const _0x5b6592=[],_0xa09feb=_0xe19dbd['filter'](_0x233dc9=>'attribute'==_0x233dc9['type']),_0x5ba098=_0xe19dbd['filter'](_0x2bce61=>'insert'==_0x2bce61['type']&&'$text'!=_0x2bce61['name']);for(const _0x2a53fa of _0xa09feb)this['_isRegisteredAttribute'](_0x2a53fa['attributeKey'])&&_0x5b6592['push']({'key':_0x2a53fa['attributeKey'],'newValue':_0x2a53fa['attributeNewValue'],'oldValue':_0x2a53fa['attributeOldValue'],'range':Yt(_0x2a53fa['range'],_0x2a0d82['model'])});for(const _0x55dd77 of _0x5ba098){if('rename'!=_0x55dd77['action']&&'refresh'!=_0x55dd77['action'])continue;const _0x22c4d7=Zt(_0x55dd77['position']['nodeAfter'],_0x2a0d82['model']),_0x422a4e=_0x55dd77['before'];'rename'==_0x55dd77['action']&&_0x5b6592['push']({'key':m,'newValue':_0x55dd77['name'],'oldValue':_0x422a4e['name'],'range':_0x22c4d7});for(const [_0x2dff63,_0x24ae31]of _0x422a4e['attributes']){if(!this['_isRegisteredAttribute'](_0x2dff63))continue;const _0x111e0c=_0x55dd77['attributes']['get'](_0x2dff63);_0x24ae31!==_0x111e0c&&_0x5b6592['push']({'key':_0x2dff63,'newValue':_0x111e0c,'oldValue':_0x24ae31,'range':_0x22c4d7});}for(const [_0x36fdca,_0xed64b9]of _0x55dd77['attributes'])this['_isRegisteredAttribute'](_0x36fdca)&&(_0x422a4e['attributes']['has'](_0x36fdca)||_0x5b6592['push']({'key':_0x36fdca,'newValue':_0xed64b9,'oldValue':null,'range':_0x22c4d7}));}0x0!=_0x5b6592['length']&&_0x2a0d82['model']['enqueueChange'](_0x35d846,_0x20ea41=>{const _0x5651c5=_0x193fe4();for(const {range:_0x2e632c,key:_0x2339f5,oldValue:_0x3a7936,newValue:_0x56ae67}of _0x5b6592)this['markAttributeChange'](_0x2e632c,_0x2339f5,_0x3a7936,_0x56ae67,{'groupId':_0x5651c5});this['_reduceExistingSuggestions'](_0x20ea41,_0x5b6592);});},{'priority':'lowest'}),_0x2a0d82['model']['markers']['on']('update:suggestion',(_0x24b24e,_0x1d6f79,_0x4ad062)=>{if(null==_0x4ad062){const {id:_0x26a7c3}=this['_splitMarkerName'](_0x1d6f79['name']),_0x3111f7=this['_suggestions']['get'](_0x26a7c3);_0x3111f7&&_0x3111f7['addMarkerName'](_0x1d6f79['name']);}}),_0x2a0d82['model']['document']['on']('change:data',()=>{const _0x173ad9=Array['from'](_0x2a0d82['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2fd24b=>'suggestion'===this['_splitMarkerName'](_0x2fd24b['name'])['group']);if(0x0===_0x173ad9['length'])return;_0x173ad9['sort']((_0x30b04e,_0x392e55)=>{const _0x5f1655=_0x30b04e['data']['oldRange'],_0x27fca8=_0x392e55['data']['oldRange'];return null===_0x5f1655&&null===_0x27fca8?0x0:null===_0x5f1655&&null!==_0x27fca8?-0x1:null!==_0x5f1655&&null===_0x27fca8?0x1:_0x5f1655['start']['isBefore'](_0x27fca8['start'])?-0x1:0x1;});const _0x3288a9=new Set(),_0x39116e=new Set();for(const {name:_0x15cd30,data:_0xa8f4c8}of _0x173ad9){const {id:_0x2a0dde}=this['_splitMarkerName'](_0x15cd30);if(null===_0xa8f4c8['oldRange']){const _0x39c431=this['_handleNewSuggestionMarker'](_0x15cd30);_0x39116e['add'](_0x39c431);}else{const _0x413d20=this['_suggestions']['get'](_0x2a0dde);null!==_0xa8f4c8['newRange']||_0x413d20['isInContent']?(_0x3288a9['add'](_0x413d20['head']),_0x39116e['add'](_0x413d20)):this['_removeSuggestion'](_0x413d20);}}_0x39116e['size']>0x0&&this['_refreshSuggestionsChain'](_0x39116e);for(const _0x3d6c8a of _0x3288a9)this['fire']('suggestionChanged',_0x3d6c8a);}),_0x2a0d82['model']['on']('applyOperation',(_0x169a91,_0x3cf1f5)=>{const _0x25b6ce=_0x3cf1f5[0x0];if(!this['_suggestions']['size'])return;if(!_0x25b6ce['isDocumentOperation'])return;if(_0x25b6ce['batch']['isUndo']||!_0x25b6ce['batch']['isLocal'])return;let _0x2c2e09,_0x41523e;switch(_0x25b6ce['type']){case'insert':_0x2c2e09=_0x2a0d82['model']['createPositionAt'](_0x25b6ce['position']),_0x41523e=_0x2c2e09['getShiftedBy'](_0x25b6ce['howMany']);break;case'split':_0x2c2e09=_0x2a0d82['model']['createPositionAt'](_0x25b6ce['splitPosition']),_0x41523e=_0x2a0d82['model']['createPositionAt'](_0x25b6ce['moveTargetPosition']);break;case'move':_0x2c2e09=_0x2a0d82['model']['createPositionAt'](_0x25b6ce['targetPosition']),_0x41523e=_0x2c2e09['getShiftedBy'](_0x25b6ce['howMany']);break;default:return;}const _0x3c9af9=_0x2a0d82['model']['createRange'](_0x2c2e09,_0x41523e);_0x2a0d82['model']['change'](()=>{for(const {suggestion:_0x33859f,meta:_0x33f0f9}of this['_findSuggestions'](_0x3c9af9)){if(_0x33859f['isMultiRange'])continue;if('formatInline'==_0x33859f['type'])continue;const _0x59f76d=this['_getAttributeKey'](_0x33859f);if(_0x59f76d&&this['_isBlockAttribute'](_0x59f76d)&&'split'!=_0x25b6ce['type'])continue;const _0x3f0a81=_0x33859f['data']&&_0x33859f['data']['multipleBlocks'];('formatBlock'!=_0x33859f['type']||'split'==_0x25b6ce['type']&&!_0x3f0a81)&&(_0x33f0f9['containsRangeInObject']||'insertion'==_0x33859f['type']&&_0x33f0f9['isOwn']||_0x33859f['getFirstRange']()['containsRange'](_0x3c9af9)&&this['_breakSuggestionMarker'](_0x33859f,_0x2c2e09,_0x41523e));}});},{'priority':'lowest'}),_0x2a0d82['model']['on']('deleteContent',(_0x3f60e8,_0x512da7)=>{const _0x1cbf14=_0x512da7[0x0],_0x13ee18=_0x512da7[0x1];if(_0x13ee18&&_0x13ee18['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1cbf14['isCollapsed'])return;const _0x12e93e=_0x2a0d82['model']['schema'],{start:_0x273007,end:_0x1237e9}=_0x1cbf14['getFirstRange'](),_0x28ae7b=_0x273007['nodeAfter']&&_0x12e93e['isLimit'](_0x273007['nodeAfter'])?null:_0x12e93e['getNearestSelectionRange'](_0x273007,'forward'),_0x9d6593=_0x1237e9['nodeBefore']&&_0x12e93e['isLimit'](_0x1237e9['nodeBefore'])?null:_0x12e93e['getNearestSelectionRange'](_0x1237e9,'backward'),_0x5475e4=_0x2a0d82['model']['createRange'](_0x28ae7b?_0x28ae7b['start']:_0x273007,_0x9d6593?_0x9d6593['end']:_0x1237e9);_0x2a0d82['model']['change'](_0x2b7ea1=>{this['markDeletion'](_0x5475e4);const _0x429918=_0x2a0d82['model']['schema']['getNearestSelectionRange'](_0x5475e4['start']);_0x1cbf14['is']('documentSelection')?_0x2b7ea1['setSelection'](_0x429918):_0x1cbf14['setTo'](_0x429918);}),_0x3f60e8['stop']();},{'priority':_0x59cb45['normal']+0xa}),_0x2a0d82['model']['on']('insertContent',(_0x2fab61,_0x287911)=>{const _0xeb85fb=_0x287911[_0x287911['length']-0x1];_0xeb85fb&&_0xeb85fb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2a0d82['model']['change'](()=>{let _0x3afefd=_0x2a0d82['model']['insertContent'](_0x287911[0x0],_0x287911[0x1],_0x287911[0x2],{'forceDefaultExecution':!0x0});if(!_0x3afefd)return;_0x2fab61['return']=_0x3afefd['clone']();const _0x229187=_0x3afefd['end']['nodeBefore'],_0xc93221=_0x2a0d82['model']['schema'];_0x229187&&_0xc93221['isBlock'](_0x229187)&&!_0xc93221['isObject'](_0x229187)&&(_0x3afefd=_0x2a0d82['model']['createRange'](_0x3afefd['start'],_0x2a0d82['model']['createPositionAt'](_0x229187,'end'))),this['markInsertion'](_0x3afefd);}),_0x2fab61['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3959c4=new T(_0x2a0d82,this['_suggestions']);_0x2a0d82['commands']['add']('acceptSuggestion',_0x3959c4),this['enableCommand']('acceptSuggestion');const _0x22f160=new O(_0x2a0d82,this['_suggestions']);_0x2a0d82['commands']['add']('discardSuggestion',_0x22f160),this['enableCommand']('discardSuggestion'),_0x2a0d82['commands']['add']('acceptAllSuggestions',new x(_0x2a0d82,_0x3959c4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2a0d82['commands']['add']('discardAllSuggestions',new x(_0x2a0d82,_0x22f160,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2a0d82['commands']['add']('acceptSelectedSuggestions',new E(_0x2a0d82,_0x3959c4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2a0d82['commands']['add']('discardSelectedSuggestions',new E(_0x2a0d82,_0x22f160,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x14d784=_0x2a0d82['plugins']['get']('CommentsRepository');this['listenTo'](_0x14d784,'addComment',(_0x5e32ce,{threadId:_0x43daed})=>{const _0x2273f5=this['_suggestions']['get'](_0x43daed);_0x2273f5&&_0x2273f5['commentThread']&&0x1===_0x2273f5['commentThread']['length']&&this['_updateSuggestionData'](_0x43daed,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x14d784,'removeComment',(_0x5e6fe9,{threadId:_0x5bc462})=>{const _0x3cb503=this['_suggestions']['get'](_0x5bc462);_0x3cb503&&_0x3cb503['commentThread']&&!_0x3cb503['commentThread']['length']&&this['_updateSuggestionData'](_0x5bc462,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3af877){const _0x194f4e=_0x4d54a2([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0xa07b73=0x6b0f5e6f,_0x440118=0x6b082aaf^_0xa07b73,_0x417ceb=window[_0x4d54a2([0x44,0x61,0x74,0x65])][_0x4d54a2([0x6e,0x6f,0x77])](),_0x3f7614=_0x3af877[_0x4d54a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16b4d8=new window[(_0x4d54a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1396da=>{_0x3f7614[_0x4d54a2([0x6f,0x6e,0x63,0x65])](_0x4d54a2([0x72,0x65,0x61,0x64,0x79]),_0x1396da);}),_0x1e0460={[_0x4d54a2([0x6b,0x74,0x79])]:_0x4d54a2([0x45,0x43]),[_0x4d54a2([0x75,0x73,0x65])]:_0x4d54a2([0x73,0x69,0x67]),[_0x4d54a2([0x63,0x72,0x76])]:_0x4d54a2([0x50,0x2d,0x32,0x35,0x36]),[_0x4d54a2([0x78])]:_0x4d54a2([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]),[_0x4d54a2([0x79])]:_0x4d54a2([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]),[_0x4d54a2([0x61,0x6c,0x67])]:_0x4d54a2([0x45,0x53,0x32,0x35,0x36])},_0x4ff81b=_0x3f7614[_0x4d54a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d54a2([0x67,0x65,0x74])](_0x4d54a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5baaa2(){let _0x4df913,_0x2d3051=null,_0x2d1d97=null;try{if(_0x4ff81b==_0x4d54a2([0x47,0x50,0x4c]))return _0x4d54a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4df913=_0x4a4ab7(),!_0x4df913)return _0x4d54a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4df913[_0x4d54a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d1d97=_0x45e0b8(_0x4df913[_0x4d54a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4df913[_0x4d54a2([0x6a,0x74,0x69])])),await _0x5b250c()?_0x39a77f()?_0x45044()?_0x4d54a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x185e36()?(_0x4df913[_0x4d54a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d54a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d3051=_0x42ca65(_0x4d54a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4df913[_0x4d54a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d54a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d3051=_0x42ca65(_0x4d54a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x309137()):_0x4d54a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d54a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d54a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d54a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45044(){const _0x1c9e9a=[_0x4d54a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d54a2([0x74,0x72,0x69,0x61,0x6c])][_0x4d54a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4df913[_0x4d54a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x417ceb/0x3e8:0xe10*_0x440118;return _0x4df913[_0x4d54a2([0x65,0x78,0x70])]<_0x1c9e9a;}function _0x39a77f(){const _0x114912=_0x4df913[_0x4d54a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x114912)return!0x1;if(_0x114912[_0x4d54a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d54a2([0x2a])))return!0x0;if(_0x114912[_0x4d54a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d54a2([0x54,0x43])))return!0x0;if(_0x114912[_0x4d54a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d54a2([0x52,0x54,0x43]))){if(_0x5095b0())return!0x0;if(_0x4dd2f8()||_0x27058e())return!0x0;}return!0x1;}function _0x185e36(){const _0x368d84=_0x4df913[_0x4d54a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x368d84||0x0==_0x368d84[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x210edb}=new URL(window[_0x4d54a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x368d84[_0x4d54a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210edb))return!0x0;const _0x5d97b4=_0x210edb[_0x4d54a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d54a2([0x2e]));return _0x368d84[_0x4d54a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24fffd=>_0x24fffd[_0x4d54a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d54a2([0x2a])))[_0x4d54a2([0x6d,0x61,0x70])](_0xe00a60=>_0xe00a60[_0x4d54a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d54a2([0x2e])))[_0x4d54a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c353d=>_0x3c353d[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d97b4[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d54a2([0x6d,0x61,0x70])](_0x3d83e7=>Array(_0x5d97b4[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d83e7[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d54a2([0x66,0x69,0x6c,0x6c])](_0x3d83e7[0x0]===_0x4d54a2([0x2a])?_0x4d54a2([0x2a]):'')[_0x4d54a2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d83e7))[_0x4d54a2([0x73,0x6f,0x6d,0x65])](_0x6f9250=>_0x5d97b4[_0x4d54a2([0x65,0x76,0x65,0x72,0x79])]((_0x5b9ddd,_0x33e78b)=>_0x6f9250[_0x33e78b]===_0x5b9ddd||_0x6f9250[_0x33e78b]===_0x4d54a2([0x2a])));}function _0x309137(){return _0x2d3051&&_0x2d1d97?new window[(_0x4d54a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d2b98,_0x5b2440)=>{_0x2d3051[_0x4d54a2([0x74,0x68,0x65,0x6e])](_0x2d2b98,_0x5b2440),_0x2d1d97[_0x4d54a2([0x74,0x68,0x65,0x6e])](_0x243c10=>{_0x243c10!=_0x4d54a2([0x56,0x61,0x6c,0x69,0x64])&&_0x2d2b98(_0x243c10);},_0x5b2440);}):_0x2d3051||_0x2d1d97||_0x4d54a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x45e0b8(_0x2f6be2,_0x19b02e){return new window[(_0x4d54a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fc6c9=>{if(_0x250e05())return _0x2fc6c9(_0x4d54a2([0x56,0x61,0x6c,0x69,0x64]));_0x5d83d9(),_0x3f7614[_0x4d54a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d54a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43e28a=!0x1;const _0x29b071=_0x193fe4();function _0x46d8a7(_0x4a153e){return!!_0x4a153e&&(typeof _0x4a153e===_0x4d54a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a153e===_0x4d54a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a153e[_0x4d54a2([0x74,0x68,0x65,0x6e])]===_0x4d54a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a153e[_0x4d54a2([0x63,0x61,0x74,0x63,0x68])]===_0x4d54a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41b803(_0x5253e1){_0x409922(_0x5253e1)[_0x4d54a2([0x74,0x68,0x65,0x6e])](_0x279f64=>{if(!_0x279f64||_0x279f64[_0x4d54a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d54a2([0x6f,0x6b]))return _0x4d54a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4eeb64(_0x33b2d7(_0x29b071+_0x19b02e))!=_0x279f64[_0x4d54a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d54a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d54a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d54a2([0x74,0x68,0x65,0x6e])](_0x34095b=>(_0x557bd9(),_0x34095b),()=>{const _0x250a4c=_0xf8e0ea();return null==_0x250a4c?(_0x557bd9(),_0x4d54a2([0x56,0x61,0x6c,0x69,0x64])):_0x4d54a2(_0x417ceb-_0x250a4c>(0x4f03da6f^_0xa07b73)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d54a2([0x74,0x68,0x65,0x6e])](_0x2fc6c9)[_0x4d54a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fc6c9(_0x4d54a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3de6de=0x6b39b0ef^_0xa07b73;function _0x557bd9(){const _0x21aab9=_0x4d54a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eeb64(_0x33b2d7(_0x2f6be2)),_0x2e93cb=_0x372d5d(_0x4eeb64(window[_0x4d54a2([0x4d,0x61,0x74,0x68])][_0x4d54a2([0x63,0x65,0x69,0x6c])](_0x417ceb/_0x3de6de)));window[_0x4d54a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d54a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21aab9,_0x2e93cb);}function _0xf8e0ea(){const _0x3f573b=_0x4d54a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eeb64(_0x33b2d7(_0x2f6be2)),_0x5dd38b=window[_0x4d54a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d54a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f573b);return _0x5dd38b?window[_0x4d54a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x372d5d(_0x5dd38b),0x10)*_0x3de6de:null;}function _0x409922(_0x56e9bf){return new window[(_0x4d54a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4505dc,_0x863b80)=>{_0x56e9bf[_0x4d54a2([0x74,0x68,0x65,0x6e])](_0x4505dc,_0x863b80),window[_0x4d54a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x863b80,0x6b0e8aaf^_0xa07b73);});}}_0x3f7614[_0x4d54a2([0x6f,0x6e])](_0x4d54a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46abf8,_0xee4580)=>{if(_0xee4580[0x0]!=_0x2f6be2)return _0x2fc6c9(_0x4d54a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xee4580[0x1]={..._0xee4580[0x1],[_0x4d54a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29b071};},{[_0x4d54a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d54a2([0x68,0x69,0x67,0x68])}),_0x3f7614[_0x4d54a2([0x6f,0x6e])](_0x4d54a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa6acbb=>{_0x46d8a7(_0xa6acbb[_0x4d54a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43e28a=!0x0,_0x41b803(_0xa6acbb[_0x4d54a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d54a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d54a2([0x6c,0x6f,0x77])}),_0x16b4d8[_0x4d54a2([0x74,0x68,0x65,0x6e])](()=>{_0x43e28a||_0x2fc6c9(_0x4d54a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x250e05(){return _0x3f7614[_0x4d54a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d54a2([0x76,0x69,0x65,0x77])][_0x4d54a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d54a2([0x61,0x75,0x74,0x6f]);}function _0x5d83d9(){_0x3f7614[_0x4d54a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d54a2([0x76,0x69,0x65,0x77])][_0x4d54a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d54a2([0x61,0x75,0x74,0x6f]);}}function _0x42ca65(_0x487058){const _0x24a37d=[new window[(_0x4d54a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff90bf=>setTimeout(_0xff90bf,0x6b0660a3^_0xa07b73)),_0x16b4d8[_0x4d54a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d54a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bed55=>{let _0x499611=0x0;_0x3f7614[_0x4d54a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d54a2([0x6f,0x6e])](_0x4d54a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3422ea,_0xe4a121)=>{_0xe4a121[0x0][_0x4d54a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x499611++,_0x499611==(0x6b0f5f97^_0xa07b73)&&(_0x5bed55(),_0x3422ea[_0x4d54a2([0x6f,0x66,0x66])]());});}))];return window[_0x4d54a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d54a2([0x72,0x61,0x63,0x65])](_0x24a37d)[_0x4d54a2([0x74,0x68,0x65,0x6e])](()=>_0x487058);}async function _0x1f1e5b(){await _0x16b4d8,_0x3f7614[_0x4d54a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d54a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x75e258,_0x3f7614[_0x4d54a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d54a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x75e258,_0x3f7614[_0x4d54a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d54a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5095b0(){return _0x252e1e(_0x4d54a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4880d9(_0x4d54a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d54a2([0x73,0x74,0x61,0x74,0x65])]==_0x4d54a2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4dd2f8(){return _0x252e1e(_0x4d54a2([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 _0x27058e(){return _0x252e1e(_0x4d54a2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x552741(_0x1b94b6){const _0x38935e=_0x444508();_0x3f7614[_0x38935e]=_0x4d54a2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b94b6,_0x1b94b6!=_0x4d54a2([0x56,0x61,0x6c,0x69,0x64])&&_0x1f1e5b();}function _0x444508(){const _0x544904=window[_0x4d54a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d54a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d54a2([0x6e,0x6f,0x77])]())[_0x4d54a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d54a2([0x2e]),'');let _0x589753=_0x4d54a2([0x67]);for(let _0x1d1062=0x0;_0x1d1062<_0x544904[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d1062+=0x2){let _0xfab643=window[_0x4d54a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x544904[_0x4d54a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d1062,_0x1d1062+0x2));_0xfab643>=_0x194f4e[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfab643-=_0x194f4e[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x589753+=_0x194f4e[_0xfab643];}return _0x589753;}function _0x4a4ab7(){const _0x27c230=_0x4ff81b[_0x4d54a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d54a2([0x2e]));if(0x3!=_0x27c230[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b4a8f(_0x27c230[0x1]);function _0x5b4a8f(_0x14cd27){const _0x272958=_0x2a4fd3(_0x14cd27);return _0x272958&&_0x2c47de()?_0x272958:null;function _0x2c47de(){const _0x5c3df8=_0x272958[_0x4d54a2([0x6a,0x74,0x69])],_0x4f988c=window[_0x4d54a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c3df8[_0x4d54a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c3df8[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x367169={..._0x272958,[_0x4d54a2([0x6a,0x74,0x69])]:_0x5c3df8[_0x4d54a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c3df8[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x367169[_0x4d54a2([0x76,0x63])],_0x33b2d7(_0x367169)==_0x4f988c;}}}async function _0x5b250c(){let _0x48b35e=!0x0;try{const _0x8efdee=_0x4ff81b[_0x4d54a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d54a2([0x2e])),[_0x34d72b,_0x3603cf,_0x2e89ee]=_0x8efdee;return _0x5b6cfc(_0x34d72b),await _0x187ed4(_0x34d72b,_0x3603cf,_0x2e89ee),_0x48b35e;}catch{return!0x1;}function _0x5b6cfc(_0x429587){const _0x4cb2ca=_0x2a4fd3(_0x429587);_0x4cb2ca&&_0x4cb2ca[_0x4d54a2([0x61,0x6c,0x67])]==_0x4d54a2([0x45,0x53,0x32,0x35,0x36])||(_0x48b35e=!0x1);}async function _0x187ed4(_0x5f439b,_0x5b2bf0,_0x423990){const _0x4513b0=window[_0x4d54a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d54a2([0x66,0x72,0x6f,0x6d])](_0x28f81f(_0x423990),_0x4fbf0b=>_0x4fbf0b[_0x4d54a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cb40f=new window[(_0x4d54a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d54a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5f439b+_0x4d54a2([0x2e])+_0x5b2bf0),_0x6b970b=window[_0x4d54a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d54a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6b970b)return;const _0x407ace=await _0x6b970b[_0x4d54a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d54a2([0x6a,0x77,0x6b]),_0x1e0460,{[_0x4d54a2([0x6e,0x61,0x6d,0x65])]:_0x4d54a2([0x45,0x43,0x44,0x53,0x41]),[_0x4d54a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d54a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d54a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6b970b[_0x4d54a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d54a2([0x6e,0x61,0x6d,0x65])]:_0x4d54a2([0x45,0x43,0x44,0x53,0x41]),[_0x4d54a2([0x68,0x61,0x73,0x68])]:{[_0x4d54a2([0x6e,0x61,0x6d,0x65])]:_0x4d54a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x407ace,_0x4513b0,_0x1cb40f)||(_0x48b35e=!0x1);}}function _0x2a4fd3(_0xca0ff6){return _0xca0ff6[_0x4d54a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d54a2([0x65,0x79]))?JSON[_0x4d54a2([0x70,0x61,0x72,0x73,0x65])](_0x28f81f(_0xca0ff6)):null;}function _0x28f81f(_0x4e643c){return window[_0x4d54a2([0x61,0x74,0x6f,0x62])](_0x4e643c[_0x4d54a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d54a2([0x2b]))[_0x4d54a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d54a2([0x2f])));}function _0x33b2d7(_0xb01b08){let _0x266c92=0x1505;function _0x37a7ea(_0x25f9bb){for(let _0x2540b6=0x0;_0x2540b6<_0x25f9bb[_0x4d54a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2540b6++){const _0x30f35b=_0x25f9bb[_0x4d54a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2540b6);_0x266c92=(_0x266c92<<0x5)+_0x266c92+_0x30f35b,_0x266c92&=_0x266c92;}}function _0x3f8972(_0x382df0){Array[_0x4d54a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x382df0)?_0x382df0[_0x4d54a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f8972):_0x382df0&&typeof _0x382df0==_0x4d54a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d54a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x382df0)[_0x4d54a2([0x73,0x6f,0x72,0x74])]()[_0x4d54a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x303afd,_0x2a495b])=>{_0x37a7ea(_0x303afd),_0x3f8972(_0x2a495b);}):_0x37a7ea(window[_0x4d54a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x382df0));}return _0x3f8972(_0xb01b08),_0x266c92>>>0x0;}function _0x4eeb64(_0x49a894){return _0x49a894[_0x4d54a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d54a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d54a2([0x30]));}function _0x372d5d(_0x17492f){return _0x17492f[_0x4d54a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d54a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d54a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x252e1e(_0x1aac65){return _0x3f7614[_0x4d54a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d54a2([0x68,0x61,0x73])](_0x1aac65);}function _0x4880d9(_0x1452f6){return _0x3f7614[_0x4d54a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d54a2([0x67,0x65,0x74])](_0x1452f6);}function _0x75e258(){}function _0x4d54a2(_0x570aa4){return _0x570aa4['map'](_0x5793b4=>String['fromCharCode'](_0x5793b4))['join']('');}_0x552741(await _0x5baaa2());}(this);}set['adapter'](_0x25947b){if(this['_adapter'])throw new _0xa784d6('track-changes-adapter-already-set',this);this['_adapter']=_0x25947b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x403349=!0x1,toJSON:_0x2fd1e3=!0x1}={}){const _0x34dc0d=[];for(const _0x55483f of this['_suggestions']['values']())_0x403349&&!_0x55483f['isInContent']||_0x34dc0d['push'](_0x55483f);return _0x2fd1e3?_0x34dc0d['map'](_0x4ff661=>_0x4ff661['toJSON']()):_0x34dc0d;}['getSuggestion'](_0xd568e5){const _0x1d77f4=this['_suggestions']['get'](_0xd568e5);if(!_0x1d77f4)throw new _0xa784d6('track-changes-suggestion-not-found',this);return _0x1d77f4;}['hasSuggestion'](_0x1170b3){return this['_suggestions']['has'](_0x1170b3);}['addSuggestionData'](_0x3eaaca){const {authorId:_0x39eb87,id:_0x513cc0,originalSuggestionId:_0x3ca5a5,attributes:_0x2b04a3}=_0x3eaaca,[_0x574c1d,_0x226cba]=_0x3eaaca['type']['split'](':'),_0x12e00b=this['_suggestions']['get'](_0x513cc0)||this['_createSuggestion'](_0x574c1d,_0x226cba,_0x513cc0,_0x39eb87,_0x2b04a3,_0x3ca5a5);if(this['_addThreadToSuggestion'](_0x12e00b),this['_checkSuggestionCorrectness'](_0x12e00b,_0x574c1d,_0x226cba||null,_0x39eb87),_0x12e00b['createdAt']=_0x3eaaca['createdAt'],_0x12e00b['_isDataLoaded']=!0x0,_0x2b04a3&&_0x2b04a3['@external']){const _0x2cceef=_0x2b04a3['@external'],_0x45a86d=this['_getExternalAuthor'](_0x2cceef['authorName']);_0x12e00b['authoredAt']=_0x2cceef['createdAt'],_0x12e00b['author']=_0x45a86d,_0x12e00b['isExternal']=!0x0;}else _0x12e00b['authoredAt']=_0x3eaaca['createdAt'];switch(_0x3eaaca['data']&&(_0x12e00b['data']=_0x3eaaca['data']),_0x3eaaca['attributes']&&(_0x12e00b['attributes']=_0x3eaaca['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x12e00b['_saved']=!0x0),this['_suggestionState']['get'](_0x12e00b)){case'notReady':this['_suggestionState']['set'](_0x12e00b,'dataReady');break;case'markerReady':_0x12e00b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x12e00b])),this['_refreshSuggestionsChain'](new Set([_0x12e00b])),this['_suggestionState']['set'](_0x12e00b,'ready'),this['fire']('suggestionLoaded',_0x12e00b)):this['_suggestionState']['set'](_0x12e00b,'removed');}return _0x12e00b;}['acceptSuggestion'](_0x3b2c0e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x180da7 of _0x3b2c0e['getAllAdjacentSuggestions']())_0x180da7['accept']();});});}['discardSuggestion'](_0x40be33){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52ed73 of _0x40be33['getAllAdjacentSuggestions']())_0x52ed73['discard']();});});}['enableCommand'](_0x476e1c,_0x413efe){const _0x5adee5=this['editor']['commands']['get'](_0x476e1c);if(!_0x5adee5)throw new _0xa784d6('track-changes-command-not-found',this,{'commandName':_0x476e1c});if(this['_enabledCommands']['has'](_0x5adee5))throw new _0xa784d6('track-changes-enable-command-twice',this,{'commandName':_0x476e1c});this['_enabledCommands']['add'](_0x5adee5),_0x413efe&&_0x5adee5['on']('execute',(_0x3e0c15,_0x5d0aa8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5d0aa8['length']>0x0&&_0x5d0aa8[_0x5d0aa8['length']-0x1]&&_0x5d0aa8[_0x5d0aa8['length']-0x1]['forceDefaultExecution']?_0x5d0aa8['pop']():(_0x3e0c15['return']=_0x413efe((..._0x2b03fc)=>_0x5adee5['execute'](..._0x2b03fc,{'forceDefaultExecution':!0x0}),..._0x5d0aa8),_0x3e0c15['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x132b57){let _0x2220a5,_0x410f20;const _0x2c9650=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2220a5=_0x132b57();}catch(_0x55ce53){_0x410f20=_0x55ce53;}return _0x2c9650||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x410f20&&_0xa784d6['rethrowUnexpectedError'](_0x410f20,this),_0x2220a5;}['markInsertion'](_0x17368b,_0x76c3ed=null,_0x46b36f={}){if(_0x17368b['isCollapsed'])return null;const _0x5eec3f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x46b36f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5873be,meta:_0x4e9ebf}of this['_findSuggestions'](_0x17368b,'insertion'))if(_0x4e9ebf['isOwn']){if(!_0x4e9ebf['isNextTo']){if(_0x4e9ebf['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x5873be,_0x46b36f))continue;return _0x5873be;}if(ie(_0x5873be,_0x46b36f))return _0x5873be;this['_breakSuggestionMarker'](_0x5873be,_0x17368b['start'],_0x17368b['end']);break;}if(_0x76c3ed==_0x5873be['subType']&&ie(_0x5873be,_0x46b36f)){const _0x3c3500=_0x5873be['getFirstRange']();return _0x3c3500['start']['isEqual'](_0x17368b['end'])?this['_setSuggestionRange'](_0x5873be,this['_model']['createRange'](_0x17368b['start'],_0x3c3500['end'])):this['_setSuggestionRange'](_0x5873be,this['_model']['createRange'](_0x3c3500['start'],_0x17368b['end'])),_0x5873be;}}const _0x4db2d2=_0x193fe4(),_0x2f9d01=_0x5eec3f['id'],_0x1ff4c7=_0x76c3ed?'insertion:'+_0x76c3ed:'insertion',_0x3ae654=this['_setSuggestionData']({'id':_0x4db2d2,'type':_0x1ff4c7,'createdAt':new Date(),'authorId':_0x2f9d01,'attributes':_0x46b36f});return this['_addSuggestionMarker'](_0x1ff4c7,_0x4db2d2,_0x2f9d01,_0x17368b),_0x3ae654;}['markMultiRangeInsertion'](_0x238094,_0x904a5d='multi',_0x376c60={}){const _0x22b4e1=this['editor']['plugins']['get']('Users')['me'],_0x501716=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x904a5d,'join');this['_trackingSessionId']&&(_0x376c60['trackingSessionId']=this['_trackingSessionId']);for(const _0x30514e of this['getSuggestions']())if(_0x30514e['author']['id']==_0x22b4e1['id']&&'insertion'==_0x30514e['type']&&_0x30514e['subType']==_0x904a5d&&ie(_0x30514e,_0x376c60)&&(_0x501716(_0x30514e['getRanges'](),_0x238094)||_0x501716(_0x238094,_0x30514e['getRanges']()))){for(const _0x2eb9dd of _0x238094)_0x30514e['addRange'](_0x2eb9dd);return _0x30514e;}for(const {suggestion:_0x58d298,meta:_0x1ea630}of this['_findSuggestions'](_0x238094,'insertion')){if(!_0x1ea630['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1ea630['containsRangeInObject'])continue;if(!ie(_0x58d298,_0x376c60))continue;let _0x3eb6ef=!0x0;for(const _0x2eadb6 of _0x58d298['getRanges']())for(const _0x4af84c of _0x238094)if(!_0x2eadb6['containsRange'](_0x4af84c)){_0x3eb6ef=!0x1;break;}if(_0x3eb6ef)return _0x58d298;}const _0x1a8964=_0x193fe4(),_0x1bea84=_0x22b4e1['id'],_0x97742a='insertion:'+_0x904a5d,_0x2c5daf=this['_setSuggestionData']({'id':_0x1a8964,'type':_0x97742a,'createdAt':new Date(),'authorId':_0x1bea84,'attributes':_0x376c60});for(const _0x35406d of _0x238094)this['_addSuggestionMarker'](_0x97742a,_0x1a8964,_0x1bea84,_0x35406d,R['getMultiRangeId']());return _0x2c5daf;}['markInlineFormat'](_0x11b7da,_0x703196,_0x13cb07=null,_0x15def8={}){if(_0x13cb07=_0x13cb07||Wt(_0x703196),_0x11b7da['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x15def8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x147912=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13cb07,'accept');return this['forceDefaultExecution'](()=>_0x147912([_0x11b7da],_0x703196,_0x15def8)),null;}const _0x50c3c4=this['editor']['plugins']['get']('Users')['me'],_0x24b45f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d5b71,meta:_0x188894}of this['_findSuggestions'](_0x11b7da,'insertion'))_0x188894['isOwn']&&!_0x188894['isInsideObject']&&_0x24b45f['push'](..._0x2d5b71['getRanges']());}const _0x92506=function(_0x417cfc,_0x553e7e){const _0x56495f=[];for(const _0x5afffe of _0x553e7e){const _0x2cb88a=_0x417cfc['getIntersection'](_0x5afffe);_0x2cb88a&&_0x56495f['push'](_0x2cb88a);}return _0x56495f;}(_0x11b7da,_0x24b45f),_0x446bf7=function(_0x14e2bb,_0x493277){const _0x1ed70f=[_0x14e2bb];for(const _0x27e654 of _0x493277){let _0x22f6fe=0x0;for(;_0x22f6fe<_0x1ed70f['length'];){const _0x4e6056=_0x1ed70f[_0x22f6fe]['getDifference'](_0x27e654);_0x1ed70f['splice'](_0x22f6fe,0x1,..._0x4e6056),_0x22f6fe+=_0x4e6056['length'];}}return _0x1ed70f;}(_0x11b7da,_0x24b45f);_0x92506['length']&&this['_model']['change'](()=>{for(const _0x26d2b7 of _0x92506){const _0x2ad995=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13cb07,'accept');this['forceDefaultExecution'](()=>_0x2ad995([_0x26d2b7],_0x703196,_0x15def8));}});for(const _0x5cfc46 of _0x446bf7){let _0x487a1a=null,_0x5beac4=_0x5cfc46['start'],_0x638240=_0x5cfc46['end'];for(const {suggestion:_0x303f4f,meta:_0x7855c7}of this['_findSuggestions'](_0x5cfc46,'formatInline')){if(!_0x7855c7['isOwn'])continue;if(_0x303f4f['subType']!=_0x13cb07)continue;if(!ie(_0x303f4f,_0x15def8))continue;const _0x57c04a=_0x303f4f['getFirstRange']();if(_0x57c04a['containsRange'](_0x5cfc46,!0x0))return null;_0x5beac4=_0x5beac4['isBefore'](_0x57c04a['start'])?_0x5beac4:_0x57c04a['start'],_0x638240=_0x638240['isAfter'](_0x57c04a['end'])?_0x638240:_0x57c04a['end'],_0x487a1a?_0x57c04a['start']['isBefore'](_0x487a1a['getFirstRange']()['start'])?(_0x487a1a['removeMarkers'](),_0x487a1a=_0x303f4f):_0x303f4f['removeMarkers']():_0x487a1a=_0x303f4f;}const _0x88cc90=this['_model']['createRange'](_0x5beac4,_0x638240);if(_0x487a1a)this['_setSuggestionRange'](_0x487a1a,_0x88cc90);else{const _0xcaa730=_0x193fe4(),_0x9a72e1=_0x50c3c4['id'];this['_setSuggestionData']({'id':_0xcaa730,'type':'formatInline:'+_0x13cb07,'data':_0x703196,'createdAt':new Date(),'authorId':_0x9a72e1,'attributes':_0x15def8}),this['_addSuggestionMarker']('formatInline:'+_0x13cb07,_0xcaa730,_0x9a72e1,_0x88cc90);}}return null;}['markBlockFormat'](_0x5f240f,_0x537edb,_0x2214c7=[],_0x40dcb7=null,_0x4364ba={}){_0x537edb['formatGroupId']||(_0x537edb['formatGroupId']=_0x537edb['commandName']),_0x537edb['multipleBlocks']=_0x5f240f['is']('range'),_0x40dcb7=_0x40dcb7||Wt(_0x537edb);const _0x41a448=_0x2214c7['map'](_0x54d50e=>Zt(_0x54d50e,this['_model'])),_0x36eee1=_0x5f240f['is']('range')?_0x5f240f:Zt(_0x5f240f,this['_model']);if(this['_trackingSessionId']&&(_0x4364ba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x36c23e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40dcb7,'accept');return this['forceDefaultExecution'](()=>_0x36c23e([_0x36eee1],_0x537edb,_0x4364ba)),null;}_0x41a448['push'](_0x36eee1);let _0x1ece2b=!0x0;for(const _0x3b7d18 of _0x41a448)if(!this['_rangeIsInLocalUserInsertion'](_0x3b7d18)){_0x1ece2b=!0x1;break;}if(_0x1ece2b&&'always'!==this['_trackFormatChanges']){const _0x140fd3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40dcb7,'accept');return this['forceDefaultExecution'](()=>_0x140fd3([_0x36eee1],_0x537edb,_0x4364ba)),null;}let _0x45b952=null,_0x1db081=_0x36eee1['start'],_0x558e80=_0x36eee1['end'];for(const {suggestion:_0x5378d1,meta:_0x282f42}of this['_findSuggestions'](_0x36eee1,'formatBlock')){if(!_0x282f42['isOwn'])continue;if(_0x282f42['isNextTo']||_0x282f42['containsRangeInObject']||_0x282f42['isInsideObject'])continue;if(_0x5378d1['data']['formatGroupId']!=_0x537edb['formatGroupId'])continue;if(!ie(_0x5378d1,_0x4364ba))continue;const _0x42c94e=_0x5378d1['getFirstRange']();if(_0x5378d1['subType']==_0x40dcb7){if(_0x42c94e['containsRange'](_0x36eee1,!0x0))return null;_0x1db081=_0x1db081['isBefore'](_0x42c94e['start'])?_0x1db081:_0x42c94e['start'],_0x558e80=_0x558e80['isAfter'](_0x42c94e['end'])?_0x558e80:_0x42c94e['end'],_0x45b952?_0x42c94e['start']['isBefore'](_0x45b952['getFirstRange']()['start'])?(_0x45b952['removeMarkers'](),_0x45b952=_0x5378d1):_0x5378d1['removeMarkers']():_0x45b952=_0x5378d1;}else{const _0x2c7732=_0x36eee1['getIntersection'](_0x42c94e);this['_cutOutSuggestionMarker'](_0x5378d1,_0x2c7732);}}const _0x5e7377=this['editor']['plugins']['get']('Users')['me'],_0x49e5ec=_0x193fe4(),_0x587f62=_0x5e7377['id'];if(_0x45b952)return this['_setSuggestionRange'](_0x45b952,this['_model']['createRange'](_0x1db081,_0x558e80)),_0x45b952;{const _0x3ef695=this['_setSuggestionData']({'id':_0x49e5ec,'type':'formatBlock:'+_0x40dcb7,'data':_0x537edb,'createdAt':new Date(),'authorId':_0x587f62,'attributes':_0x4364ba});return this['_addSuggestionMarker']('formatBlock:'+_0x40dcb7,_0x49e5ec,_0x587f62,this['_model']['createRange'](_0x1db081,_0x558e80)),_0x3ef695;}}['markMultiRangeBlockFormat'](_0x626679,_0x225e05,_0x55234e=[],_0x45f731=null,_0x3a03ea={}){_0x225e05['formatGroupId']||(_0x225e05['formatGroupId']=_0x225e05['commandName']);const _0x5ab008=_0x626679[0x0];_0x225e05['multipleBlocks']=_0x5ab008['is']('range'),_0x45f731=_0x45f731||Wt(_0x225e05);const _0x1b7f88=_0x55234e['map'](_0x8603b9=>Zt(_0x8603b9,this['_model'])),_0x1452e3=_0x5ab008['is']('range')?_0x626679:_0x626679['map'](_0x5c2dcf=>Zt(_0x5c2dcf,this['_model']));if(this['_trackingSessionId']&&(_0x3a03ea['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1acc92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45f731,'accept');return this['forceDefaultExecution'](()=>_0x1acc92(_0x1452e3,_0x225e05,_0x3a03ea)),null;}_0x1b7f88['push'](..._0x1452e3);let _0x49a18c=!0x0;for(const _0x59529b of _0x1b7f88)if(!this['_rangeIsInLocalUserInsertion'](_0x59529b)){_0x49a18c=!0x1;break;}if(_0x49a18c&&'always'!==this['_trackFormatChanges']){const _0xf5f3ef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45f731,'accept');return this['forceDefaultExecution'](()=>_0xf5f3ef(_0x1452e3,_0x225e05,_0x3a03ea)),null;}const _0x2c8f9f=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e688c of this['getSuggestions']()){const _0xdb65e=_0x4e688c['data'];if(_0x4e688c['author']['id']!=_0x2c8f9f['id'])continue;if('formatBlock'!=_0x4e688c['type']||_0xdb65e['formatGroupId']!=_0x225e05['formatGroupId'])continue;if(!ie(_0x4e688c,_0x3a03ea))continue;const _0x206f65=_0x4e688c['subType']==_0x45f731;for(let _0x42a009=0x0;_0x42a009<_0x1452e3['length'];_0x42a009++){const _0x407260=_0x1452e3[_0x42a009];for(const _0x57cc9d of _0x4e688c['getMarkers']()){const _0x4e3a56=_0x57cc9d['getRange']();if(_0x407260['isEqual'](_0x4e3a56)){_0x206f65?(_0x1452e3['splice'](_0x42a009,0x1),_0x42a009--):_0x4e688c['removeMarker'](_0x57cc9d['name']);break;}}}}if(0x0==_0x1452e3['length'])return null;const _0x434a35=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45f731,'join');for(const _0x3ebb31 of this['getSuggestions']()){const _0xb7683e=_0x3ebb31['data'];if(_0x3ebb31['author']['id']==_0x2c8f9f['id']&&('formatBlock'==_0x3ebb31['type']&&_0xb7683e['formatGroupId']==_0x225e05['formatGroupId']&&_0x3ebb31['subType']==_0x45f731&&ie(_0x3ebb31,_0x3a03ea)&&(_0x434a35(_0x3ebb31['getRanges'](),_0x1452e3)||_0x434a35(_0x1452e3,_0x3ebb31['getRanges']())))){for(const _0x4ad341 of _0x1452e3)_0x3ebb31['addRange'](_0x4ad341);return _0x3ebb31;}}const _0x32455a=_0x193fe4(),_0x5de04d=_0x2c8f9f['id'],_0x299a53='formatBlock:'+_0x45f731,_0x4a63c2=this['_setSuggestionData']({'id':_0x32455a,'type':_0x299a53,'data':_0x225e05,'createdAt':new Date(),'authorId':_0x5de04d,'attributes':_0x3a03ea});for(const _0x1cb0c3 of _0x1452e3)this['_addSuggestionMarker'](_0x299a53,_0x32455a,_0x5de04d,_0x1cb0c3,R['getMultiRangeId']());return _0x4a63c2;}['markDeletion'](_0x5e11d8,_0x2c4cda=null,_0x3c150d={}){if(_0x5e11d8['isCollapsed'])return null;const _0x279bab=this['editor']['plugins']['get']('Users')['me'],_0x16938b=new _0x5d3e65(_0x5e11d8['start'],_0x5e11d8['end']);this['_trackingSessionId']&&(_0x3c150d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3183fe,meta:_0xd3d9bb}of this['_findSuggestions'](_0x16938b,'insertion'))if(_0xd3d9bb['isOwn']&&!_0xd3d9bb['isNextTo']){if(_0x3183fe['isMultiRange']){const _0x264000=_0x3183fe['getRanges']()['filter'](_0x4fb5ea=>'$graveyard'!=_0x4fb5ea['root']['rootName']);_0x264000['every'](_0x487c82=>_0x16938b['containsRange'](_0x487c82,!0x0))&&_0x3183fe['discard']();if(_0x264000['some'](_0x583a10=>_0x583a10['containsRange'](_0x16938b,!0x0))){const _0x157bae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c4cda,'accept');return this['forceDefaultExecution'](()=>_0x157bae([_0x16938b],null,_0x3c150d)),null;}}else{const _0x1994f6=_0x16938b['getIntersection'](_0x3183fe['getFirstRange']());null!==_0x1994f6&&_0x3183fe['_onDiscard']([_0x1994f6],null,_0x3c150d);}}if(_0x16938b['detach'](),_0x16938b['isCollapsed']||'$graveyard'==_0x16938b['root']['rootName'])return null;let _0x47f26d=null,_0x172725=_0x16938b['start'],_0x3b050a=_0x16938b['end'];const _0x129a1e=this['_findSuggestions'](_0x16938b,'deletion');for(const {suggestion:_0x5695c6,meta:_0x20f7a7}of _0x129a1e){const _0x30b118=this['_model']['createRange'](_0x172725,_0x3b050a);if(_0x20f7a7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20f7a7['containsRangeInObject']&&!_0x20f7a7['isInsideObject'])){if(_0x5695c6['isMultiRange']){if(!ie(_0x5695c6,_0x3c150d))continue;let _0x15256d=!0x0;for(const _0x308526 of _0x5695c6['getRanges']()){if(_0x308526['containsRange'](_0x30b118,!0x0))return _0x5695c6;_0x30b118['containsRange'](_0x308526)||(_0x15256d=!0x1);}_0x15256d&&_0x5695c6['discard']();}else{const _0xef22b5=_0x5695c6['getFirstRange']();if(_0xef22b5['containsRange'](_0x30b118,!0x0))return _0x5695c6;if(!ie(_0x5695c6,_0x3c150d)){_0x30b118['containsRange'](_0xef22b5)?_0x5695c6['removeMarkers']():_0xef22b5['containsPosition'](_0x172725)?_0x172725=_0xef22b5['end']:_0xef22b5['containsPosition'](_0x3b050a)&&(_0x3b050a=_0xef22b5['start']);continue;}_0x172725=_0x172725['isBefore'](_0xef22b5['start'])?_0x172725:_0xef22b5['start'],_0x3b050a=_0x3b050a['isAfter'](_0xef22b5['end'])?_0x3b050a:_0xef22b5['end'],_0x3c150d=Object['assign']({},_0x5695c6['attributes']),_0x47f26d?_0xef22b5['start']['isBefore'](_0x47f26d['getFirstRange']()['start'])?(_0x47f26d['removeMarkers'](),_0x47f26d=_0x5695c6):_0x5695c6['removeMarkers']():_0x47f26d=_0x5695c6;}}}if(_0x47f26d)return this['_setSuggestionRange'](_0x47f26d,this['_model']['createRange'](_0x172725,_0x3b050a)),_0x47f26d;{const _0x37df1b=_0x193fe4(),_0x4f964d=this['_model']['createRange'](_0x172725,_0x3b050a),_0x45a0a4=_0x279bab['id'],_0x3efc9e=_0x2c4cda?'deletion:'+_0x2c4cda:'deletion',_0x1cdf6c=this['_setSuggestionData']({'id':_0x37df1b,'type':_0x3efc9e,'createdAt':new Date(),'authorId':_0x45a0a4,'attributes':_0x3c150d});return this['_addSuggestionMarker'](_0x3efc9e,_0x37df1b,_0x45a0a4,_0x4f964d),_0x1cdf6c;}}['markMultiRangeDeletion'](_0x18f237,_0x6e771b='multi',_0x13e3fb={}){const _0x246ce7=this['editor']['plugins']['get']('Users')['me'],_0x523f30=_0x18f237['map'](_0x510dee=>new _0x5d3e65(_0x510dee['start'],_0x510dee['end'])),_0x35748f=new Set();this['_trackingSessionId']&&(_0x13e3fb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x563f29,meta:_0x3e2860}of this['_findSuggestions'](_0x523f30,'insertion'))_0x3e2860['isOwn']&&!_0x3e2860['isNextTo']&&_0x35748f['add'](_0x563f29);for(const _0x407d56 of _0x35748f)if(_0x407d56['isMultiRange']){const _0x33b402=_0x407d56['getRanges']();(!_0x407d56['attributes']||!_0x407d56['attributes']['skipNestingCheck'])&&(_0x33b402['every'](_0x30cc83=>_0x523f30['some'](_0x454b36=>_0x454b36['containsRange'](_0x30cc83,!0x0)))&&_0x407d56['discard']());if(_0x523f30['every'](_0x51cedc=>_0x33b402['some'](_0x506ddf=>_0x506ddf['containsRange'](_0x51cedc,!0x0)))){const _0x24c050=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6e771b,'accept');return this['forceDefaultExecution'](()=>_0x24c050(_0x18f237,null,_0x13e3fb)),null;}}else{const _0x617126=_0x407d56['getFirstRange']();_0x523f30['some'](_0x3f61a7=>_0x3f61a7['containsRange'](_0x617126,!0x0))&&_0x407d56['discard']();if(_0x523f30['every'](_0xe9b33b=>_0x617126['containsRange'](_0xe9b33b,!0x0))){const _0x10722b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6e771b,'accept');return this['forceDefaultExecution'](()=>_0x10722b(_0x523f30,null,_0x13e3fb)),null;}}const _0x2211b0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6e771b,'join');let _0x374ca0=null;for(const _0x39d98f of this['getSuggestions']())if(_0x39d98f['author']['id']==_0x246ce7['id']&&_0x39d98f['isInContent']&&'deletion'==_0x39d98f['type']&&_0x39d98f['subType']==_0x6e771b&&ie(_0x39d98f,_0x13e3fb)&&(_0x2211b0(_0x39d98f['getRanges'](),_0x523f30)||_0x2211b0(_0x523f30,_0x39d98f['getRanges']()))){if(_0x374ca0){if(_0x39d98f['commentThread']&&_0x39d98f['commentThread']['length'])continue;for(const _0x330241 of _0x39d98f['getRanges']())_0x374ca0['isIntersectingWithRange'](_0x330241)||_0x374ca0['addRange'](_0x330241);_0x39d98f['removeMarkers']();}else{_0x374ca0=_0x39d98f;for(const _0x10f682 of _0x523f30)_0x39d98f['isIntersectingWithRange'](_0x10f682)||_0x39d98f['addRange'](_0x10f682);}}if(_0x374ca0)return _0x374ca0;_0x35748f['clear']();for(const {suggestion:_0xd081f3,meta:_0x3a1ec2}of this['_findSuggestions'](_0x523f30,'deletion'))_0x3a1ec2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a1ec2['containsRangeInObject']&&!_0x3a1ec2['isInsideObject'])&&ie(_0xd081f3,_0x13e3fb)&&_0x35748f['add'](_0xd081f3);for(const _0x12b54f of _0x35748f){const _0x3afbb2=_0x12b54f['getRanges']();if(!_0x13e3fb||!_0x13e3fb['skipNestingCheck']){if(_0x523f30['every'](_0xa82dfb=>_0x3afbb2['some'](_0x59210f=>_0x59210f['containsRange'](_0xa82dfb,!0x0))))return _0x12b54f;}(!_0x12b54f['attributes']||!_0x12b54f['attributes']['skipNestingCheck'])&&(_0x3afbb2['every'](_0x503b00=>_0x523f30['some'](_0x393239=>_0x393239['containsRange'](_0x503b00,!0x0)))&&_0x12b54f['discard']());}const _0x5c8c70=_0x193fe4(),_0x32d014=_0x246ce7['id'],_0x3ac30a='deletion:'+_0x6e771b,_0x16ef93=this['_setSuggestionData']({'id':_0x5c8c70,'type':_0x3ac30a,'createdAt':new Date(),'authorId':_0x32d014,'attributes':_0x13e3fb});for(const _0x12f979 of _0x523f30)_0x12f979['detach'](),_0x12f979['isCollapsed']||'$graveyard'==_0x12f979['root']['rootName']||this['_addSuggestionMarker'](_0x3ac30a,_0x5c8c70,_0x32d014,_0x12f979,R['getMultiRangeId']());return _0x16ef93;}['markAttributeChange'](_0x51d84d,_0x507959,_0x5e6a1d,_0x2cbadd,_0x324020){if(_0x51d84d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x518fee=this['editor']['plugins']['get']('Users')['me']['id'],_0x18254e=Array['from'](this['_suggestions']['values']())['filter'](_0x49bce4=>'attribute'==_0x49bce4['type']&&_0x49bce4['data']['key']==_0x507959&&_0x49bce4['isIntersectingWithRange'](_0x51d84d));if(this['_trackingSessionId']&&(_0x324020['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x6ae0b9=this['_findSuggestions'](_0x51d84d,'insertion')['filter'](({meta:_0x23eac2})=>_0x23eac2['isOwn']&&!_0x23eac2['isInsideObject']&&!_0x23eac2['isNextTo'])['map'](({suggestion:_0x3fdec0})=>_0x3fdec0);_0x18254e['unshift'](..._0x6ae0b9);}const _0x185eff=new Map([[_0x51d84d,_0x5e6a1d]]);for(const _0x105782 of _0x18254e){const _0x1dca4c='attribute'==_0x105782['type']?_0x105782['data']['oldValue']:void 0x0,_0x4e1363=_0x105782['getFirstRange'](),_0x40d5f1=Array['from'](_0x185eff['keys']())['find'](_0x5923a7=>_0x5923a7['isIntersecting'](_0x4e1363));if(!_0x40d5f1)continue;const _0x51bf6c=_0x40d5f1['getDifference'](_0x4e1363);this['_isBlockAttribute'](_0x507959)&&'insertion'==_0x105782['type']&&0x0!=_0x51bf6c['length']||(_0x185eff['delete'](_0x40d5f1),_0x51bf6c['forEach'](_0x30ce5c=>{_0x185eff['set'](_0x30ce5c,_0x5e6a1d);}),'insertion'!=_0x105782['type']&&_0x1dca4c!=_0x2cbadd&&_0x185eff['set'](_0x40d5f1['getIntersection'](_0x4e1363),_0x1dca4c));}const _0x88eb9f=[];for(const [_0x2f2b3e,_0x576570]of _0x185eff){const _0xf9d3a7=_0x193fe4(),_0x19ab87={'key':_0x507959,'oldValue':_0x576570,'newValue':_0x2cbadd};_0x507959['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':_0x507959});const _0x2d0217=('attribute:'+(_0x507959+'|'+Wt({'newValue':_0x2cbadd})))['substring'](0x0,0x3c),_0x56e6fb=this['_setSuggestionData']({'id':_0xf9d3a7,'type':_0x2d0217,'data':_0x19ab87,'createdAt':new Date(),'authorId':_0x518fee,'attributes':_0x324020});_0x88eb9f['push'](_0x56e6fb),this['_addSuggestionMarker'](_0x2d0217,_0xf9d3a7,_0x518fee,_0x2f2b3e);}return _0x88eb9f;}['enableDefaultAttributesIntegration'](_0x74d908){this['enableCommand'](_0x74d908,(_0x36a803,..._0x475d5f)=>{this['recordAttributeChanges'](()=>{_0x36a803(..._0x475d5f);});});}['registerBlockAttribute'](_0x239919){this['_blockAttributeKeys']['add'](_0x239919);}['registerInlineAttribute'](_0x380838){this['_inlineAttributeKeys']['add'](_0x380838);}['startTrackingSession'](_0xb83472){return this['_trackingSessionId']=void 0x0!==_0xb83472?_0xb83472:_0x193fe4(),this['_trackingSessionId'];}['_getAttributeKey'](_0x21c619){return'attribute'==_0x21c619['type']?se(_0x21c619['subType']):null;}['_applyOperationsAsSuggestions'](_0x5f3b86){if(0x0==_0x5f3b86['length'])return;const _0x143381=this['editor'],_0x15a6d6=_0x143381['plugins']['get'](_0x1dffe4);let _0x2b25dd=!0x0;for(const _0x138cee in _0x5f3b86[0x0]){const _0x50bef5=_0x5f3b86[0x0][_0x138cee];if((_0x50bef5 instanceof _0x415479||_0x50bef5 instanceof _0x47e404)&&_0x50bef5['root']['is']('documentFragment')){_0x2b25dd=!0x1;break;}}_0x143381['model']['change'](_0x5a3049=>{const _0x2b676d=new Set();for(const _0x1ce72b of _0x5f3b86)if(_0x1ce72b['baseVersion']=_0x2b25dd?_0x143381['model']['document']['version']:null,_0x1ce72b['isDocumentOperation']=_0x2b25dd,_0x15a6d6['isMarkedRemoveOperation'](_0x1ce72b)){const _0xb53cfd=Xt(_0x1ce72b['newRange'],_0x143381['model']);if(_0x2b25dd)this['markDeletion'](_0xb53cfd);else{const _0x195db0='suggestion:deletion:id:authorId:'+_0x193fe4();_0xb53cfd['root']['markers']['set'](_0x195db0,_0xb53cfd);}}else switch(_0x1ce72b['type']){case'rename':{const _0x3a10cd=_0x1ce72b['oldName'],_0x345419=_0x1ce72b['newName'];if(_0x3a10cd==_0x345419)break;_0x5a3049['batch']['addOperation'](_0x1ce72b),_0x143381['model']['applyOperation'](_0x1ce72b);const _0x4d7e72='$elementName',_0x11050d=_0x1ce72b['position'],_0x3eb5ec=_0x143381['model']['createRange'](_0x11050d,_0x143381['model']['createPositionAt'](_0x11050d['nodeAfter'],'end'));if(_0x2b25dd)this['markAttributeChange'](_0x3eb5ec,_0x4d7e72,_0x3a10cd,_0x345419,{'groupId':_0x193fe4()});else{const _0x29cc82='suggestion:attribute:'+_0x4d7e72+':id:authorId:'+_0x193fe4();_0x3eb5ec['root']['markers']['set'](_0x29cc82,_0x3eb5ec);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x21e630=_0x1ce72b['oldValue'],_0x103ff5=_0x1ce72b['newValue'];if(_0x21e630==_0x103ff5)break;_0x5a3049['batch']['addOperation'](_0x1ce72b),_0x143381['model']['applyOperation'](_0x1ce72b);const _0x2da661=_0x1ce72b['key'];if(!this['_isRegisteredAttribute'](_0x2da661))break;const _0x3293cd=Xt(_0x1ce72b['range'],_0x143381['model']);if(_0x2b25dd)this['markAttributeChange'](_0x3293cd,_0x2da661,_0x21e630,_0x103ff5,{'groupId':_0x193fe4()});else{const _0x5c012c='suggestion:attribute:'+_0x2da661+':id:authorId:'+_0x193fe4();_0x3293cd['root']['markers']['set'](_0x5c012c,_0x3293cd);}break;}case'insert':{_0x5a3049['batch']['addOperation'](_0x1ce72b),_0x143381['model']['applyOperation'](_0x1ce72b);const _0x387289=_0x1ce72b['position'],_0x1f916f=_0x1ce72b['howMany'],_0xd920ce=Xt(_0x143381['model']['createRange'](_0x387289,_0x387289['getShiftedBy'](_0x1f916f)),_0x143381['model']);if(_0x2b25dd)this['markInsertion'](_0xd920ce);else{const _0x138738='suggestion:insertion:id:authorId:'+_0x193fe4();_0xd920ce['root']['markers']['set'](_0x138738,_0xd920ce);}break;}case'split':{_0x5a3049['batch']['addOperation'](_0x1ce72b),_0x143381['model']['applyOperation'](_0x1ce72b);const _0x181c21=_0x1ce72b['splitPosition'],_0x1fce90=_0x1ce72b['moveTargetPosition'],_0x3ae3bd=_0x143381['model']['createRange'](_0x181c21,_0x1fce90);if(_0x2b25dd)this['markInsertion'](_0x143381['model']['createRange'](_0x181c21,_0x1fce90));else{const _0x57892e='suggestion:insertion:id:authorId:'+_0x193fe4();_0x3ae3bd['root']['markers']['set'](_0x57892e,_0x3ae3bd);}break;}case'move':if(_0x5a3049['batch']['addOperation'](_0x1ce72b),_0x143381['model']['applyOperation'](_0x1ce72b),!_0x2b25dd){const _0x18d7a9=_0x1ce72b['getMovedRangeStart'](),_0xb482f6=_0x1ce72b['howMany'];for(let _0x454f17=0x0;_0x454f17<_0xb482f6;_0x454f17++){const _0x50feaf=_0x18d7a9['getShiftedBy'](_0x454f17)['nodeAfter'];_0x2b676d['add'](_0x50feaf);}}break;case'remove':if(_0x2b25dd)_0x5a3049['batch']['addOperation'](_0x1ce72b),_0x143381['model']['applyOperation'](_0x1ce72b);else{const _0x149ffc=_0x1ce72b['sourcePosition'],_0x257e6e=_0x1ce72b['howMany'],_0x1fae3f=new _0x43a80a(_0x149ffc,_0x257e6e);_0x5a3049['batch']['addOperation'](_0x1fae3f),_0x143381['model']['applyOperation'](_0x1fae3f);}}for(const _0x1787a5 of _0x2b676d){const _0x555098=_0x143381['model']['createRangeOn'](_0x1787a5),_0x5ac3b6='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x193fe4();_0x555098['root']['markers']['set'](_0x5ac3b6,Xt(_0x555098,_0x143381['model']));}});}['_setSuggestionRange'](_0x290a94,_0x3cb97f){const _0x447e8a=_0x290a94['getFirstMarker']();this['_model']['change'](_0x2c8f58=>{_0x2c8f58['updateMarker'](_0x447e8a,{'range':_0x3cb97f});});}['_addThreadToSuggestion'](_0x449436){const _0x1dd906=_0x449436['id'],_0x1acc28=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1dd906)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1acc28,'threadId':_0x1dd906,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xa8f97c=this['_commentsRepository']['getCommentThread'](_0x1dd906);_0xa8f97c['unbind']('isRemovable'),_0xa8f97c['isRemovable']=!0x1,_0x449436['commentThread']=_0xa8f97c;}['_checkSuggestionCorrectness'](_0x3768df,_0x554c1d,_0x144b89,_0x58bdb0){if(_0x3768df['type']!=_0x554c1d||_0x3768df['subType']!=_0x144b89||_0x3768df['creator']['id']!=_0x58bdb0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa784d6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x345b42,_0x509402){const _0x3bc34e=_0x345b42['getFirstRange']();if(_0x509402['isEqual'](_0x3bc34e))_0x345b42['removeMarkers']();else{if(_0x3bc34e['containsRange'](_0x509402)){const _0x482494=this['_model']['createPositionAt'](_0x509402['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x345b42,this['_model']['createRange'](_0x3bc34e['start'],_0x482494));const _0x190b1b=_0x193fe4(),_0x3d4e35=_0x345b42['creator']['id'],_0x26436f=_0x345b42['type']+':'+_0x345b42['subType'];this['_setSuggestionData']({'id':_0x190b1b,'type':_0x26436f,'createdAt':new Date(),'authorId':_0x3d4e35,'data':_0x345b42['data'],'attributes':_0x345b42['attributes']});const _0x2b0230=this['_model']['createPositionAt'](_0x509402['end']['parent'],'after'),_0x192757=this['_model']['createRange'](_0x2b0230,_0x3bc34e['end']);this['_addSuggestionMarker'](_0x26436f,_0x190b1b,_0x3d4e35,_0x192757);}else{if(_0x3bc34e['containsPosition'](_0x509402['start'])){const _0x4de67a=this['_model']['createPositionAt'](_0x509402['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x345b42,this['_model']['createRange'](_0x3bc34e['start'],_0x4de67a));}else{const _0x2f1fc2=this['_model']['createPositionAt'](_0x509402['end']['parent'],'after');this['_setSuggestionRange'](_0x345b42,this['_model']['createRange'](_0x2f1fc2,_0x3bc34e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x156300){for(const {suggestion:_0x4010c5,meta:_0x487cc3}of this['_findSuggestions'](_0x156300,'insertion')){if(!_0x487cc3['isOwn'])continue;const _0xe83bb=_0x4010c5['getRanges']();for(const _0x57b9a8 of _0xe83bb)if(!_0x156300['getDifference'](_0x57b9a8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x33f5d0){return this['editor']['plugins']['get']('Users')['getUser'](_0x33f5d0);}['_getExternalAuthor'](_0x1d30a7){const _0x4be23d=this['editor']['plugins']['get']('Users'),_0x13087d=_0x41932e('external:'+_0x1d30a7),_0x583df4=_0x4be23d['getUser'](_0x13087d);return _0x583df4||_0x4be23d['addUser']({'id':_0x13087d,'name':_0x1d30a7});}['_createSuggestion'](_0x38a893,_0x38a056,_0x70d116,_0x115a1d,_0x420a4d,_0xb3b07e){const _0x17c871=this['_getAuthorFromId'](_0x115a1d);if(!_0x17c871)throw new _0xa784d6('track-changes-user-not-found',this,{'authorId':_0x115a1d,'suggestionId':_0x70d116});const _0x476a8d=this['_suggestionFactory']['buildSuggestion'](_0x38a893,_0x38a056,_0x70d116,_0x17c871,_0x420a4d,_0x57150d=>{this['_updateSuggestionData'](_0x70d116,{'attributes':_0x57150d});const _0x43e263=this['getSuggestion'](_0x70d116);this['_joinWithAdjacentSuggestions'](new Set([_0x43e263])),this['_refreshSuggestionsChain'](new Set([_0x43e263]));},_0xb3b07e);return this['listenTo'](_0x476a8d,'accept',()=>{this['_updateSuggestionData'](_0x70d116,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x476a8d,'discard',()=>{this['_updateSuggestionData'](_0x70d116,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x70d116,_0x476a8d),this['_suggestionState']['set'](_0x476a8d,'notReady'),_0x476a8d;}['_splitMarkerName'](_0x2db3ab){const _0x344d5e=_0x2db3ab['split'](':');return{'group':_0x344d5e[0x0],'type':_0x344d5e[0x1],'subType':_0x344d5e['length']>=0x5?_0x344d5e[0x2]:null,'id':_0x344d5e['length']<0x5?_0x344d5e[0x2]:_0x344d5e[0x3],'authorId':_0x344d5e['length']<0x5?_0x344d5e[0x3]:_0x344d5e[0x4],'markerCount':0x6==_0x344d5e['length']?_0x344d5e[0x5]:null};}['_breakSuggestionMarker'](_0x43ad39,_0x4ac2b7,_0x384fcb){const _0x11e7f2=_0x43ad39['getFirstRange'](),_0x28f082=_0x11e7f2['start'],_0x59b00e=_0x11e7f2['end'];this['_setSuggestionRange'](_0x43ad39,this['_model']['createRange'](_0x28f082,_0x4ac2b7));const _0x4a1a50=_0x193fe4(),_0x24af7f=_0x43ad39['creator']['id'],_0x29aba1=_0x43ad39['type']+(_0x43ad39['subType']?':'+_0x43ad39['subType']:'');this['_setSuggestionData']({'id':_0x4a1a50,'type':_0x29aba1,'createdAt':new Date(),'authorId':_0x24af7f,'originalSuggestionId':_0x43ad39['_originalSuggestionId']||_0x43ad39['id'],'attributes':_0x43ad39['attributes'],'data':_0x43ad39['data']});const _0x44be02=this['_getAttributeKey'](_0x43ad39);('formatBlock'==_0x43ad39['type']||_0x44be02&&this['_isBlockAttribute'](_0x44be02))&&(_0x384fcb=this['_model']['createPositionBefore'](_0x384fcb['parent'])),this['_addSuggestionMarker'](_0x29aba1,_0x4a1a50,_0x24af7f,this['_model']['createRange'](_0x384fcb,_0x59b00e));}['_findSuggestions'](_0x2f722c,_0x2126a3=null){const _0x65c10f=[],_0x291a30=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f722c)||(_0x2f722c=[_0x2f722c]);for(const _0x4b36cb of this['getSuggestions']()){if(!_0x4b36cb['isInContent'])continue;if(_0x2126a3&&_0x4b36cb['type']!=_0x2126a3)continue;let _0x56ad15=!0x1;for(const _0x4b0a49 of _0x4b36cb['getRanges']()){for(const _0xc59149 of _0x2f722c){const _0xa3a52=_0xc59149['start']['isEqual'](_0x4b0a49['end'])||_0xc59149['end']['isEqual'](_0x4b0a49['start']);if(_0xa3a52||_0xc59149['getIntersection'](_0x4b0a49)){const _0x5a4ad9=_0xc59149['containsRange'](_0x4b0a49)&&Jt(this['_model']['schema'],_0x4b0a49['start'],_0xc59149),_0x13aed3=_0x4b0a49['containsRange'](_0xc59149)&&Jt(this['_model']['schema'],_0xc59149['start'],_0x4b0a49);_0x65c10f['push']({'suggestion':_0x4b36cb,'meta':{'isOwn':_0x291a30==_0x4b36cb['author'],'isNextTo':_0xa3a52,'isInsideObject':_0x5a4ad9,'containsRangeInObject':_0x13aed3}}),_0x56ad15=!0x0;break;}}if(_0x56ad15)break;}}return _0x65c10f;}['_addSuggestionMarker'](_0x50a25b,_0x5abbc7,_0x221654,_0x3e454a,_0x123905){this['_model']['change'](_0x3f1a90=>{let _0x477562='suggestion:'+_0x50a25b+':'+_0x5abbc7+':'+_0x221654;_0x123905&&(_0x477562=_0x477562+':'+_0x123905),_0x3f1a90['addMarker'](_0x477562,{'range':_0x3e454a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2e364e){const _0x561725=_0x2e364e['previous'],_0x45001c=_0x2e364e['next'];_0x2e364e['previous']=null,_0x2e364e['next']=null,null!=_0x561725&&_0x561725['next']==_0x2e364e&&(_0x561725['next']=_0x45001c),null!=_0x45001c&&_0x45001c['previous']==_0x2e364e&&(_0x45001c['previous']=_0x561725),'ready'==this['_suggestionState']['get'](_0x2e364e)&&(this['_suggestionState']['set'](_0x2e364e,'removed'),this['fire']('suggestionUnloaded',_0x2e364e,_0x561725,_0x45001c));}['_setSuggestionData'](_0x5027af){const _0x39bc8b=_0x5027af['id'],_0x191f75=this['addSuggestionData'](_0x5027af);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5c384f=this['editor']['plugins']['get']('PendingActions'),_0x49567d=_0x191f75['hasComments'],_0x4cabba=_0x191f75['subType']?_0x191f75['type']+':'+_0x191f75['subType']:_0x191f75['type'],_0x15da0b=this['editor']['locale'],_0x54cfc0=_0x5c384f['add'](o(_0x15da0b,'PENDING_ACTION_SUGGESTION')),_0x1625ee={'id':_0x39bc8b,'type':_0x4cabba,'hasComments':_0x49567d,'data':_0x5027af['data']||null,'originalSuggestionId':_0x5027af['originalSuggestionId']||null,'attributes':_0x191f75['attributes']};this['_adapter']['addSuggestion'](_0x1625ee)['then'](_0x20fc3a=>{_0x191f75['_saved']=!0x0,_0x5c384f['remove'](_0x54cfc0),_0x20fc3a&&_0x20fc3a['createdAt']&&(this['_suggestions']['get'](_0x39bc8b)['createdAt']=_0x20fc3a['createdAt']);})['catch'](_0x443d56=>{throw _0xea056a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x191f75['discard']();}),_0x191f75['stopListening'](),this['_suggestions']['delete'](_0x191f75['id']),this['_suggestionState']['delete'](_0x191f75),_0x443d56;});}return _0x191f75;}['_isBlockAttribute'](_0x307ac4){return this['_blockAttributeKeys']['has'](_0x307ac4);}['_isInlineAttribute'](_0x22c322){return this['_inlineAttributeKeys']['has'](_0x22c322);}['_updateSuggestionData'](_0x474ed9,_0x8c0c4){const _0x7fee9f=this['editor']['plugins']['get']('PendingActions'),_0x8c0fff=this['getSuggestion'](_0x474ed9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x8c0fff['_saved']){const _0x333617=_0x7fee9f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x474ed9,_0x8c0c4)['then'](()=>{_0x7fee9f['remove'](_0x333617);});}else _0x8c0fff['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x474ed9,_0x8c0c4);});}}['_getSuggestionData'](_0x50fe34){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa784d6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50fe34);}['_handleNewSuggestionMarker'](_0x3d3f5b){const {id:_0x5838f0,type:_0x6f626e,subType:_0x4da647,authorId:_0xdc4829}=this['_splitMarkerName'](_0x3d3f5b),_0x2881d3=this['_suggestions']['get'](_0x5838f0)||this['_createSuggestion'](_0x6f626e,_0x4da647,_0x5838f0,_0xdc4829,{});switch(this['_checkSuggestionCorrectness'](_0x2881d3,_0x6f626e,_0x4da647,_0xdc4829),this['_suggestionState']['get'](_0x2881d3)){case'notReady':this['_getSuggestionData'](_0x5838f0)['then'](_0x12cac7=>{let _0x20dbb6=Promise['resolve']();_0x12cac7['hasComments']&&(_0x20dbb6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5838f0})),_0x20dbb6['then'](()=>{this['addSuggestionData'](_0x12cac7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2881d3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5838f0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2881d3,'ready'),this['fire']('suggestionLoaded',_0x2881d3);break;case'ready':this['fire']('suggestionChanged',_0x2881d3);}return _0x2881d3['addMarkerName'](_0x3d3f5b),_0x2881d3;}['_refreshSuggestionsChain'](_0x28e43c){const _0x480aa8=Array['from'](_0x28e43c),_0x1dbfa6=_0x480aa8['filter'](_0x26d897=>'attribute'==_0x26d897['type']);this['_refreshAttributeSuggestionsChain'](_0x1dbfa6);const _0x1292cd=_0x480aa8['filter'](_0x41bc80=>!_0x41bc80['isMultiRange']&&'attribute'!=_0x41bc80['type']),_0x44d4d4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c523e=>!_0x1c523e['isMultiRange']&&'attribute'!=_0x1c523e['type']),_0x16305e=_0x44d4d4['filter'](_0x3eef3f=>!_0x28e43c['has'](_0x3eef3f)),_0x128f31=new Map(_0x44d4d4['map'](_0x44def9=>[_0x44def9,this['_suggestionFactory']['getSuggestionCallback'](_0x44def9['type'],_0x44def9['subType'],'chain')])),_0x3d6ad2=new Map(_0x44d4d4['map'](_0x56eb03=>[_0x56eb03,_0x56eb03['getFirstRange']()])),_0xa960b3=new Set(),_0x29548e=new Set();for(let _0x149274=0x0;_0x149274<_0x1292cd['length'];_0x149274++)_0x4ed7bf(_0x1292cd[_0x149274],_0x1292cd,_0x149274+0x1);for(let _0x107809=0x0;_0x107809<_0x1292cd['length'];_0x107809++)_0x4ed7bf(_0x1292cd[_0x107809],_0x16305e,0x0);const _0x346558=new Set();for(let _0x36a858=0x0;_0x36a858<_0x1292cd['length'];_0x36a858++){const _0x5d5b5a=_0x1292cd[_0x36a858];!_0x29548e['has'](_0x5d5b5a)&&_0x5d5b5a['previous']&&(_0x346558['add'](_0x5d5b5a['previous']),_0x5d5b5a['previous']['next']===_0x5d5b5a&&(_0x5d5b5a['previous']['next']=null),_0x5d5b5a['previous']=null),!_0xa960b3['has'](_0x5d5b5a)&&_0x5d5b5a['next']&&(_0x346558['add'](_0x5d5b5a['next']),_0x5d5b5a['next']['previous']===_0x5d5b5a&&(_0x5d5b5a['next']['previous']=null),_0x5d5b5a['next']=null);}function _0x4ed7bf(_0x4cd1c1,_0x3b225a,_0x2cb75b){for(let _0x41c7d6=_0x2cb75b;_0x41c7d6<_0x3b225a['length'];_0x41c7d6++){const _0x4343cb=_0x361cce(_0x4cd1c1,_0x3b225a[_0x41c7d6]);_0x4343cb&&(_0x4343cb[0x0]['next']=_0x4343cb[0x1],_0x4343cb[0x1]['previous']=_0x4343cb[0x0],_0xa960b3['add'](_0x4343cb[0x0]),_0x29548e['add'](_0x4343cb[0x1]));}}function _0x361cce(_0xb5b9c1,_0xe6d031){if(_0xb5b9c1['author']['id']!==_0xe6d031['author']['id'])return null;const _0x289ea1=_0x128f31['get'](_0xb5b9c1)(_0xb5b9c1,_0xe6d031,_0x3d6ad2['get'](_0xb5b9c1),_0x3d6ad2['get'](_0xe6d031));if(!_0x289ea1)return null;return _0x128f31['get'](_0xe6d031)(_0xb5b9c1,_0xe6d031,_0x3d6ad2['get'](_0xb5b9c1),_0x3d6ad2['get'](_0xe6d031))?_0x289ea1[0x1]['commentThread']&&_0x289ea1[0x1]['commentThread']['length']?null:_0x289ea1:null;}_0x346558['size']&&this['_refreshSuggestionsChain'](_0x346558);}['_refreshAttributeSuggestionsChain'](_0x40a7c8){if(0x0==_0x40a7c8['length'])return;const _0x45e945=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x287b52=>'attribute'==_0x287b52['type']&&_0x287b52['_isDataLoaded']),_0x5084fb=[],_0x4c5868=new Map();for(const _0x7e4e3 of _0x45e945){const _0xe099dc=_0x41932e(_0x7e4e3['attributes']);_0x4c5868['has'](_0xe099dc)||(_0x4c5868['set'](_0xe099dc,_0x5084fb['length']),_0x5084fb['push']([]));const _0x10a112=_0x4c5868['get'](_0xe099dc);_0x5084fb[_0x10a112]['push'](_0x7e4e3);}!(function(){_0x5084fb['sort']((_0x4ec3ba,_0x5c90a6)=>{const _0x43a4aa=_0x4ec3ba[0x0]['createdAt'],_0x301dce=_0x5c90a6[0x0]['createdAt'];return _0x43a4aa==_0x301dce?_0x4ec3ba[0x0]['attributes']['groupId']<_0x5c90a6[0x0]['attributes']['groupId']?-0x1:0x1:_0x43a4aa<_0x301dce?-0x1:0x1;});for(const _0x429234 of _0x5084fb)_0x429234['sort']((_0xbef39d,_0xcc96aa)=>_0xbef39d['id']<_0xcc96aa['id']?-0x1:0x1);}());for(let _0x57b2b3=0x0;_0x57b2b3<_0x5084fb['length'];_0x57b2b3++){if(0x0==_0x5084fb[_0x57b2b3]['length'])continue;const _0x4455b8=[];for(let _0x38ba1a=_0x57b2b3+0x1;_0x38ba1a<_0x5084fb['length'];_0x38ba1a++)0x0!=_0x5084fb[_0x38ba1a]['length']&&_0x2bd99e(_0x5084fb[_0x57b2b3],_0x5084fb[_0x38ba1a])&&_0x4455b8['push'](_0x38ba1a);for(const _0x185f88 of _0x4455b8)_0x5084fb[_0x57b2b3]=_0x5084fb[_0x57b2b3]['concat'](_0x5084fb[_0x185f88]),_0x5084fb[_0x185f88]=[];}for(const _0x1cda4a of _0x5084fb)for(let _0x838438=0x0;_0x838438<_0x1cda4a['length'];_0x838438++){const _0x266aae=_0x1cda4a[_0x838438+0x1]||null;_0x1cda4a[_0x838438]['next']!==_0x266aae&&(_0x1cda4a[_0x838438]['next']=_0x266aae);}for(const _0x2ddfec of _0x5084fb)for(let _0xa74ef1=0x0;_0xa74ef1<_0x2ddfec['length'];_0xa74ef1++){const _0x5494ce=_0x2ddfec[_0xa74ef1-0x1]||null;_0x2ddfec[_0xa74ef1]['previous']!==_0x5494ce&&(_0x2ddfec[_0xa74ef1]['previous']=_0x5494ce);}function _0x2bd99e(_0x34a5e2,_0x4498f7){if(_0x34a5e2[0x0]['attributes']['groupId']!==_0x4498f7[0x0]['attributes']['groupId']&&_0x34a5e2[0x0]['author']!==_0x4498f7[0x0]['author'])return!0x1;if(!function(_0x4c4063,_0x2e5857){if(!_0x4c4063['hasComments']&&!_0x2e5857['hasComments'])return!0x0;if(_0x4c4063['hasComments']&&_0x2e5857['hasComments'])return!0x1;if(_0x4c4063['hasComments']&&_0x2e5857['createdAt']<_0x4c4063['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2e5857['hasComments']&&_0x4c4063['createdAt']<_0x2e5857['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x34a5e2[0x0],_0x4498f7[0x0]))return!0x1;const _0x5bb83a=Gt(_0x34a5e2[0x0]['attributes'],['groupId','trackingSessionId']),_0x5b5125=Gt(_0x4498f7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x46f9af(_0x5bb83a,_0x5b5125))return!0x1;if(_0x34a5e2[0x0]['attributes']['groupId']==_0x4498f7[0x0]['attributes']['groupId'])return!0x0;if(_0x34a5e2[0x0]['attributes']['trackingSessionId']!==_0x4498f7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x34a5e2['every'](_0x1224e1=>_0x4498f7['some'](_0x5f3ae7=>_0x1224e1['getFirstRange']()['isEqual'](_0x5f3ae7['getFirstRange']())))&&_0x4498f7['every'](_0x540beb=>_0x34a5e2['some'](_0xc9302f=>_0x540beb['getFirstRange']()['isEqual'](_0xc9302f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xca69a0){const _0x35b58f=Array['from'](_0xca69a0),_0x599eb6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x17e465=_0x599eb6['filter'](_0x38b515=>!_0xca69a0['has'](_0x38b515)),_0x34e067=new Map(_0x35b58f['map'](_0x41d080=>[_0x41d080,this['_suggestionFactory']['getSuggestionCallback'](_0x41d080['type'],_0x41d080['subType'],'join')])),_0x2c0295=new Map(_0x599eb6['map'](_0x1e751f=>[_0x1e751f,_0x1e751f['getRanges']()]));for(let _0xd6859f=0x0;_0xd6859f<_0x35b58f['length'];_0xd6859f++){if(_0x1153d3(this,_0x35b58f[_0xd6859f],_0x35b58f,_0xd6859f+0x1))return!0x0;}for(let _0x4f28cb=0x0;_0x4f28cb<_0x35b58f['length'];_0x4f28cb++){if(_0x1153d3(this,_0x35b58f[_0x4f28cb],_0x17e465,0x0))return!0x0;}return!0x1;function _0x1153d3(_0x5e8f81,_0x2dcfe3,_0x5ab3b0,_0xeb8796){for(let _0x3e942b=_0xeb8796;_0x3e942b<_0x5ab3b0['length'];_0x3e942b++){const _0x5ef8b2=_0x5ab3b0[_0x3e942b];if(_0x5ef8b2['type']!==_0x2dcfe3['type']||_0x5ef8b2['author']['id']!==_0x2dcfe3['author']['id']||_0x5ef8b2['subType']!==_0x2dcfe3['subType'])continue;if(!ee(_0x2dcfe3,_0x5ef8b2))continue;if('attribute'==_0x2dcfe3['type']&&_0x2dcfe3['data']['oldValue']!=_0x5ef8b2['data']['oldValue'])continue;if('attribute'==_0x2dcfe3['type']&&_0x5e8f81['_isBlockAttribute'](_0x2dcfe3['data']['key']))continue;if('formatBlock'==_0x2dcfe3['type']){const _0x454339=_0x5e8f81['editor']['model'],_0x3a9340=_0x2dcfe3['getContainedElement']();if(_0x3a9340&&(_0x454339['schema']['isObject'](_0x3a9340)||_0x454339['schema']['isLimit'](_0x3a9340)))continue;}const _0x588dc4=_0x34e067['get'](_0x2dcfe3),_0x2001f0=_0x2c0295['get'](_0x2dcfe3),_0x335701=_0x2c0295['get'](_0x5ef8b2),_0x4c5865=_0x2dcfe3['commentThread']&&_0x2dcfe3['commentThread']['length'],_0x1c765e=_0x5ef8b2['commentThread']&&_0x5ef8b2['commentThread']['length'];if(!_0x4c5865&&_0x588dc4(_0x335701,_0x2001f0))return _0x5e8f81['_joinSuggestions'](_0x5ef8b2,_0x2dcfe3),_0x2c0295['delete'](_0x2dcfe3),!0x0;if(!_0x1c765e&&_0x588dc4(_0x2001f0,_0x335701))return _0x5e8f81['_joinSuggestions'](_0x2dcfe3,_0x5ef8b2),_0x2c0295['delete'](_0x5ef8b2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x19f270,_0x5caf39){if(_0x19f270['isMultiRange']){for(const _0x3645a8 of _0x5caf39['getRanges']())_0x19f270['addRange'](_0x3645a8);}else{const _0x528b51=_0x5caf39['getFirstRange']()['end'];this['_setSuggestionRange'](_0x19f270,this['_model']['createRange'](_0x19f270['getFirstRange']()['start'],_0x528b51));}_0x5caf39['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41d2d6,_0x548641,_0xfd3e67){const _0x3a2d5b=_0x41d2d6['startsWith']('format')||_0x41d2d6['startsWith']('attribute')?'FORMATTING':_0x41d2d6['toUpperCase']();return o(this['editor']['locale'],_0x548641+'_'+_0x3a2d5b+'_SUGGESTION_ANNOUNCEMENT',_0xfd3e67);}['_initAriaMarkerChangeAnnouncements'](){const _0x16785d=this['editor'];if(!_0x16785d['ui'])return;const {ariaLiveAnnouncer:_0x52e231}=_0x16785d['ui'];_0x2eb4e4(this['_model'],({left:_0x5604da,entered:_0x3a741e})=>{for(const _0xd81e6c of _0x5604da){const {group:_0x541ee5,type:_0x4342bc}=this['_splitMarkerName'](_0xd81e6c['name']);if('suggestion'===_0x541ee5){_0x52e231['announce'](this['_getMarkerAnnouncementText'](_0x4342bc,'LEAVE'));break;}}for(const _0x1703bf of _0x3a741e){const {group:_0x1393bb,type:_0x501ee7}=this['_splitMarkerName'](_0x1703bf['name']);if('suggestion'===_0x1393bb){_0x52e231['announce'](this['_getMarkerAnnouncementText'](_0x501ee7,'ENTER',_0x1072a0(_0x98cc37)));break;}}});}['_processAttributeChanges'](_0x331ca5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2037b3=this['editor'],_0x213e17=_0x2037b3['model']['document']['differ']['getChanges']();if(0x0==_0x213e17['length'])return!0x1;const _0x4cceda=[],_0xd45f6=_0x213e17['filter'](_0x2d85fc=>'attribute'==_0x2d85fc['type']),_0x2c16b1=_0x213e17['filter'](_0x1ef72f=>'insert'==_0x1ef72f['type']&&'$text'!=_0x1ef72f['name']),_0x57a80c=_0x213e17['filter'](_0x43fd32=>'remove'==_0x43fd32['type']&&'$text'!=_0x43fd32['name']);for(const _0x1ca964 of _0xd45f6)_0x4cceda['push']({'key':_0x1ca964['attributeKey'],'newValue':_0x1ca964['attributeNewValue'],'oldValue':_0x1ca964['attributeOldValue'],'range':Yt(_0x1ca964['range'],_0x2037b3['model'])});for(const _0x55b9ab of _0x2c16b1){const _0x530b0a=_0x57a80c['find'](_0x275cfe=>_0x275cfe['position']['isEqual'](_0x55b9ab['position']));_0x530b0a&&_0x4cceda['push']({'key':m,'newValue':_0x55b9ab['name'],'oldValue':_0x530b0a['name'],'range':_0x2037b3['model']['createRangeOn'](_0x55b9ab['position']['nodeAfter'])});}return 0x0!=_0x4cceda['length']&&this['_reduceExistingSuggestions'](_0x331ca5,_0x4cceda);}['_processAttributeSuggestions'](_0x71f1cb){let _0x4f8de7=!0x1;const _0x2ef030=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x560d85=>_0x560d85['data']['newRange']&&_0x560d85['name']['startsWith']('suggestion:attribute:'));for(const _0x6bd345 of _0x2ef030){const {subType:_0x52d168,id:_0x4172e8}=this['_splitMarkerName'](_0x6bd345['name']),_0x51c331=_0x52d168['split']('|')[0x0];for(const _0x1a4011 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1a4011['id']!=_0x4172e8&&'attribute'==_0x1a4011['type']&&_0x1a4011['data']&&_0x1a4011['data']['key']==_0x51c331&&_0x1a4011['getFirstRange']()['isIntersecting'](_0x6bd345['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1a4011,_0x6bd345['data']['newRange'],_0x71f1cb),_0x4f8de7=!0x0);}return _0x4f8de7;}['recordAttributeChanges'](_0x1f0e6a){this['_recordAttributeSuggestions']=!0x0,_0x1f0e6a();}['_isRegisteredAttribute'](_0x343349){const _0x448332=this['_isBlockAttribute'](_0x343349),_0x5cb97c=this['_isInlineAttribute'](_0x343349);return _0x448332||_0x5cb97c;}['_reduceExistingSuggestions'](_0x53f36f,_0x61f1ce){if(0x0==_0x61f1ce['length'])return!0x1;let _0x35d854=!0x1;for(const _0x50b77d of _0x61f1ce){const _0x465e1f=this['_findSuggestions'](_0x50b77d['range'],'attribute')['filter'](_0x490047=>!_0x490047['meta']['isNextTo'])['map'](_0x5790d0=>_0x5790d0['suggestion']),_0x6d9261=_0x41932e({'newValue':_0x50b77d['newValue']});_0x465e1f['filter'](_0x2003af=>{const [_0x461b30,_0x4a724e]=_0x2003af['subType']['split']('|');return _0x461b30==_0x50b77d['key']&&_0x4a724e!=_0x6d9261;})['forEach'](_0xf8dcfb=>{this['_reduceSuggestionAttributeRange'](_0xf8dcfb,_0x50b77d['range'],_0x53f36f),_0x35d854=!0x0;});}return _0x35d854;}['_reduceSuggestionAttributeRange'](_0x3bf5b9,_0x166b7f,_0x59b301){const _0x30dc6e=_0x3bf5b9['getFirstRange']()['getDifference'](_0x166b7f);0x0!==_0x30dc6e['length']?0x1!==_0x30dc6e['length']?this['_breakSuggestionMarker'](_0x3bf5b9,_0x166b7f['start'],_0x166b7f['end']):this['_setSuggestionRange'](_0x3bf5b9,_0x30dc6e[0x0]):_0x59b301['removeMarker'](_0x3bf5b9['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x564c19){this['_editor']=_0x564c19,this['_model']=_0x564c19['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x580093,_0xf864fa,_0x529eeb,_0x568931,_0x70eff6,_0x2d7735,_0x1a3991){return new R(this['_model'],{'type':_0x580093,'subType':_0xf864fa,'id':_0x529eeb,'originalSuggestionId':_0x1a3991,'author':_0x568931,'creator':_0x568931,'attributes':_0x70eff6,'onAttributesChange':_0x2d7735,'onAccept':(..._0x3a0d63)=>this['getSuggestionCallback'](_0x580093,_0xf864fa,'accept')(..._0x3a0d63),'onDiscard':(..._0x4c8c35)=>this['getSuggestionCallback'](_0x580093,_0xf864fa,'discard')(..._0x4c8c35)});}['registerCustomCallback'](_0x1ea300,_0x5a2546,_0x499d47,_0x16da99){const _0x5a0f41=_0x1ea300+':'+_0x5a2546+':'+_0x499d47;this['_customCallbacks']['set'](_0x5a0f41,_0x16da99);}['getSuggestionCallback'](_0x2ef54c,_0x318f3c,_0x36d1dc){const _0x320d98=_0x2ef54c+':'+_0x318f3c+':'+_0x36d1dc;return this['_customCallbacks']['get'](_0x320d98)||this['_defaultCallbacks']['get'](_0x2ef54c+':'+_0x36d1dc);}['_registerDefaultCallbacks'](){const _0x266c68=()=>!0x1,_0x2fb683=_0x46b595=>{_0x46b595['sort']((_0x512af5,_0xc8ce3b)=>_0x512af5['start']['isBefore'](_0xc8ce3b['start'])?0x1:-0x1),this['_model']['change'](_0x212adb=>{for(const _0x28fcd0 of _0x46b595){let _0x3bbe3a;_0x3bbe3a=_0x28fcd0['end']['isAtEnd']&&_0x28fcd0['end']['parent']==_0x28fcd0['start']['nodeAfter']?_0x212adb['createSelection'](_0x28fcd0['start']['nodeAfter'],'on'):_0x212adb['createSelection'](_0x28fcd0),this['_model']['deleteContent'](_0x3bbe3a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x65d502=(_0x19d0a0,_0x41f8b8)=>{_0x41f8b8&&this['_model']['change'](_0x24c7be=>{const {commandName:_0x1ad166,commandParams:_0x257385=[]}=_0x41f8b8,_0x137337=_0x19d0a0['map'](_0x15adae=>(Kt(_0x15adae)&&(_0x15adae=this['_model']['createRange'](_0x15adae['end'])),_0x15adae))['filter'](_0x5d2b76=>'$graveyard'!==_0x5d2b76['root']['rootName']);if(_0x137337['length']<0x1)return;const _0x373384=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4bed25=>_0x5d3e65['fromRange'](_0x4bed25));_0x24c7be['setSelection'](_0x137337);for(const _0x1d0b0c of this['_editor']['commands']['commands']())_0x1d0b0c['refresh']();_0x257385['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1ad166,..._0x257385);const _0x2b1de1=_0x373384['filter'](_0x32a49e=>'$graveyard'!=_0x32a49e['root']['rootName']);_0x2b1de1['length']>0x0&&_0x24c7be['setSelection'](_0x2b1de1);for(const _0x5ce5f0 of _0x373384)_0x5ce5f0['detach']();});},_0x5a984b=(_0x479193,_0x9c7330)=>0x1==_0x479193['length']&&0x1==_0x9c7330['length']&&_0x479193[0x0]['end']['isEqual'](_0x9c7330[0x0]['start']),_0x465332=(_0x2653dd,_0x5a90ab,_0x1dac62,_0x22bb91)=>te(_0x2653dd,_0x5a90ab,_0x1dac62,_0x22bb91)?[_0x2653dd,_0x5a90ab]:te(_0x5a90ab,_0x2653dd,_0x22bb91,_0x1dac62)?[_0x5a90ab,_0x2653dd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x266c68),this['_defaultCallbacks']['set']('insertion:discard',_0x2fb683),this['_defaultCallbacks']['set']('insertion:join',_0x5a984b),this['_defaultCallbacks']['set']('insertion:chain',_0x465332),this['_defaultCallbacks']['set']('deletion:accept',_0x2fb683),this['_defaultCallbacks']['set']('deletion:discard',_0x266c68),this['_defaultCallbacks']['set']('deletion:join',_0x5a984b),this['_defaultCallbacks']['set']('deletion:chain',_0x465332),this['_defaultCallbacks']['set']('formatInline:accept',_0x65d502),this['_defaultCallbacks']['set']('formatInline:discard',_0x266c68),this['_defaultCallbacks']['set']('formatInline:join',_0x5a984b),this['_defaultCallbacks']['set']('formatInline:chain',_0x266c68),this['_defaultCallbacks']['set']('formatBlock:accept',_0x65d502),this['_defaultCallbacks']['set']('formatBlock:discard',_0x266c68),this['_defaultCallbacks']['set']('formatBlock:join',_0x5a984b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x266c68),this['_defaultCallbacks']['set']('attribute:accept',_0x266c68),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b5e4c,_0x1a229e)=>{if(!_0x1a229e)return;const _0x4d2a76=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4f18c4=>{if(_0x1a229e['key']==m)for(const _0x60c004 of _0x1b5e4c){const _0x417879=_0x60c004['start']['nodeAfter'],_0x34cc58=_0x1a229e['oldValue'];_0x4f18c4['rename'](_0x417879,_0x34cc58);}else{if(_0x4d2a76['_isBlockAttribute'](_0x1a229e['key'])){for(const _0x55d871 of _0x1b5e4c)void 0x0!==_0x1a229e['oldValue']?_0x4f18c4['setAttribute'](_0x1a229e['key'],_0x1a229e['oldValue'],_0x55d871['start']['nodeAfter']):_0x4f18c4['removeAttribute'](_0x1a229e['key'],_0x55d871['start']['nodeAfter']);}else{for(const _0x464895 of _0x1b5e4c)_0x1a229e['oldValue']?_0x4f18c4['setAttribute'](_0x1a229e['key'],_0x1a229e['oldValue'],_0x464895):_0x4f18c4['removeAttribute'](_0x1a229e['key'],_0x464895);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5a984b);}}function Jt(_0x4a0ec1,_0x598d9d,_0x5a09b9){for(const _0x4506a9 of _0x598d9d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4506a9['root']==_0x4506a9)return!0x1;if(!_0x5a09b9['containsItem'](_0x4506a9))return!0x1;if(_0x4a0ec1['isObject'](_0x4506a9)||_0x4a0ec1['isLimit'](_0x4506a9))return!0x0;}return!0x1;}function Kt(_0x3e360d){return _0x3e360d['end']['parent']==_0x3e360d['start']['nodeAfter']&&_0x3e360d['end']['isAtStart'];}function Ht(_0x2893e8,_0x181653,_0x18db14,_0x196fc8){const _0x4392a1=_0x5ab5ad=>!_0x5ab5ad['item']['is']('$textProxy')&&!_0x196fc8['isObject'](_0x5ab5ad['item']),_0x5e7345=_0x2893e8['start']['getLastMatchingPosition'](_0x4392a1),_0x2be758=_0x2893e8['end']['getLastMatchingPosition'](_0x4392a1,{'direction':'backward'});return(!_0x2893e8['start']['isEqual'](_0x5e7345)||!_0x2893e8['end']['isEqual'](_0x2be758))&&(_0x5e7345['isBefore'](_0x2be758)?_0x18db14['updateMarker'](_0x181653,{'range':_0x18db14['createRange'](_0x5e7345,_0x2be758)}):_0x18db14['removeMarker'](_0x181653),!0x0);}function Wt(_0x4d8e75){return _0x41932e(_0x4d8e75);}function qt(_0x10b64f){const _0xd0a15c=_0x10b64f['start']['nodeAfter'];return _0xd0a15c&&_0xd0a15c['is']('element');}function zt(_0x141f8a){return Kt(_0x141f8a)||function(_0x4aeee0){return _0x4aeee0['start']['parent']==_0x4aeee0['end']['nodeBefore']&&_0x4aeee0['start']['isAtEnd'];}(_0x141f8a);}function Qt(_0x343160,_0x27480f){try{const _0x4afa94=_0x343160['getRange']();for(const _0x1bd974 of _0x27480f)if(_0x343160!==_0x1bd974&&_0x4afa94&&_0x4afa94['isIntersecting'](_0x1bd974['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x33a599,_0xd5cd29){const _0x96da77=_0x33a599['end']['nodeBefore'];if(_0x96da77&&_0x96da77['is']('element')&&_0xd5cd29['schema']['isBlock'](_0x96da77)&&!_0xd5cd29['schema']['isObject'](_0x96da77)){const _0x107188=_0xd5cd29['createPositionAt'](_0x96da77,'end');return _0xd5cd29['createRange'](_0x33a599['start'],_0x107188);}return _0x33a599;}function Yt(_0x2364d7,_0x5dc050){return null==_0x2364d7['end']['nodeBefore']&&_0x2364d7['end']['parent']==_0x2364d7['start']['nodeAfter']?Zt(_0x2364d7['start']['nodeAfter'],_0x5dc050):_0x2364d7;}function Zt(_0x3704bc,_0x30c4dc){const _0xa6436b=_0x30c4dc['schema']['isObject'](_0x3704bc)||_0x30c4dc['schema']['isSelectable'](_0x3704bc);return _0x30c4dc['createRange'](_0x30c4dc['createPositionAt'](_0x3704bc,'before'),_0xa6436b?_0x30c4dc['createPositionAfter'](_0x3704bc):_0x30c4dc['createPositionAt'](_0x3704bc,'end'));}function te(_0x2cb19d,_0x583b33,_0x239d6c,_0x58bf80){return!!ee(_0x2cb19d,_0x583b33)&&_0x239d6c['end']['isEqual'](_0x58bf80['start']);}function ee(_0x237067,_0x483613){if(!_0x237067['_isDataLoaded']||!_0x483613['_isDataLoaded'])return!0x1;const _0x599cca=new Set(Object['keys'](_0x237067['attributes'])),_0x9c91c6=new Set(Object['keys'](_0x483613['attributes']));if(_0x599cca['delete']('groupId'),_0x9c91c6['delete']('groupId'),0x0==_0x599cca['size']&&0x0==_0x9c91c6['size'])return!0x0;if(_0x599cca['size']!=_0x9c91c6['size'])return!0x1;const _0x2c2522={..._0x237067['attributes']},_0x56f65e={..._0x483613['attributes']};return delete _0x2c2522['groupId'],delete _0x56f65e['groupId'],JSON['stringify'](_0x2c2522)==JSON['stringify'](_0x56f65e);}function ie(_0x3991c5,_0x5c992f){const _0x4f7e3b=ne(_0x3991c5['attributes']),_0x4c95d7=ne(_0x5c992f);if(!_0x3991c5['_isDataLoaded'])return!0x1;for(const _0xf561b of Object['keys'](_0x4c95d7))if(!_0x46f9af(_0x4f7e3b[_0xf561b],_0x4c95d7[_0xf561b]))return!0x1;return!0x0;}function ne(_0x4f94db){const _0x213cb9=Object['assign']({},_0x4f94db);return delete _0x213cb9['skipNestingCheck'],delete _0x213cb9['tablePasteChainId'],_0x213cb9;}function se(_0x4ab057){return _0x4ab057['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
- _0x4e351e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x357ee7,_0x1a9c73,_0x32127f,_0x5d58e){super(),this['model']=_0x1a9c73,this['view']=_0x32127f,this['commentThreadController']=_0x5d58e,this['_editor']=_0x357ee7,this['_acceptCommand']=_0x357ee7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x357ee7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x55b1f4,_0x53e0c7)=>_0x55b1f4||_0x53e0c7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x38ccfd=>_0x38ccfd&&this['_editor']['model']['canEditAt'](_0x1a9c73['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x246f82=>_0x246f82&&this['_editor']['model']['canEditAt'](_0x1a9c73['getRanges']())),this['_pendingAction']=null,_0x32127f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x32127f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x32127f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x32127f,'change:isDirty',()=>{_0x32127f['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 _0x18a3f2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x18a3f2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4284fe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2bea0b,_0x3ec136,_0x5c2bc5,_0x439ad0){super(_0x2bea0b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x17467e(_0x2bea0b,o(_0x2bea0b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3ec136['authoredAt']),this['bind']('authoredAt')['to'](_0x3ec136),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',_0x3ec136,'authoredAt',this,'descriptionParts',(_0x3398d9,_0x3672d3,_0x1b9e47)=>{const _0x4f18fe=_0x1b9e47['map'](_0x554e86=>ls(_0x554e86['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3398d9-0x1,_0x3ec136['author']['name'],_0x3672d3?_0x439ad0['formatDateTime'](_0x3672d3):'',new DOMParser()['parseFromString'](_0x4f18fe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x372eaa(),this['focusTracker']=new _0x263679(),this['keystrokes']=new _0x4d6d0b(),this['focusCycler']=new _0x2c5d29({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x545ccb=>_0x545ccb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3ec136,this['_localUser']=_0x5c2bc5,this['_config']=_0x439ad0,_0x439ad0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x16fb77(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x44cec1}=this['_config'];this['commentsListView']=new _0x44cec1(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',_0x280a5b=>_0x280a5b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2c65b0,_0x53749d)=>_0x2c65b0||!!_0x53749d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x21936f}=this['_config'],_0x3b1ac2=new _0x21936f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x44baee=_0x3b1ac2['commentInputView'];return _0x3b1ac2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x44baee,'value',(_0x47575b,_0x4bb211,_0x537c66)=>!!_0x537c66||_0x47575b&&!_0x4bb211),_0x44baee['on']('submit',(_0x333421,_0x956f40)=>{this['fire']('addComment',_0x956f40),_0x44baee['editor']['setData']('');}),_0x44baee['on']('cancel',()=>this['focus']()),_0x44baee['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3b1ac2;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x40d09d,_0x56aaef,_0x212de7,_0x27f25e){super(_0x40d09d,_0x56aaef,_0x212de7,_0x27f25e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4636dd=>_0x4636dd&&_0x4636dd[0x0]?_0x4636dd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x156f74,_0x2c356b)=>{let _0x327f8d='';for(const _0x22656f of _0x156f74)_0x327f8d+='<p>'+ls(_0x22656f['content'],_0x22656f['color'])+'</p>';return _0x2c356b?_0x327f8d:_0x49a385(_0x327f8d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x27f25e['SuggestionView'](_0x40d09d,_0x56aaef,{'formatDateTime':_0x27f25e['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 _0x5cbd57=this['bindTemplate'],_0x40f795=[this['suggestionView']];return this['commentsListView']&&_0x40f795['push'](this['commentsListView']),this['commentThreadInputView']&&_0x40f795['push'](this['commentThreadInputView']),_0x40f795['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5cbd57['if']('isActive','ck-suggestion-wrapper--active'),_0x5cbd57['to']('type',_0x4008bc=>'ck-suggestion-'+_0x4008bc),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':_0x5cbd57['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x40f795};}['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 Le extends _0x4284fe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bbabc,_0x471c81,_0x1dd464){super(_0x4bbabc),this['_model']=_0x471c81,this['_config']=_0x1dd464,this['set']('description',''),this['bind']('authoredAt')['to'](_0x471c81),this['acceptButton']=this['_createButton'](o(_0x4bbabc,'Accept\x20suggestion'),_0x105fcc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bbabc,'Discard\x20suggestion'),_0x930187,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b5111(_0x4bbabc,_0x471c81['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x372eaa([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x263679(),this['keystrokes']=new _0x4d6d0b(),this['focusCycler']=new _0x2c5d29({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x494bb4=>_0x494bb4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x11df45=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x11df45['innerHTML']=this['description'],this['on']('change:description',(_0x2f2c01,_0x4388c5,_0x43d51c)=>{_0x11df45['innerHTML']=_0x43d51c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e0e08=this['bindTemplate'],_0x5103fa=[{'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':_0x1e0e08['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e0e08['to']('authoredAt',_0x4a3208=>this['_config']['formatDateTime'](_0x4a3208))}]}]},{'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']&&_0x5103fa['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':_0x5103fa}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x242743,_0x2128ed,_0x4f4d52,_0x34c8a2,_0x41159e){const _0x12b2a7=new _0x2a721f(this['locale']);return _0x12b2a7['set']({'label':_0x242743,'icon':_0x2128ed,'tooltip':!0x0,'tooltipPosition':_0x41159e}),_0x12b2a7['extendTemplate']({'attributes':{'class':_0x4f4d52}}),_0x12b2a7['on']('execute',()=>{this['fire'](_0x34c8a2,this['_model']['id']);}),_0x12b2a7;}['_setupKeyboardNavigation'](){const _0x4bbb43=this['element'];this['keystrokes']['listenTo'](_0x4bbb43);for(const _0x3257c2 of this['focusables'])this['focusTracker']['add'](_0x3257c2['element']),this['keystrokes']['listenTo'](_0x3257c2['element']);this['keystrokes']['set']('enter',(_0x9b627f,_0x6ed41)=>{_0x4bbb43===_0x9b627f['target']&&(this['focusCycler']['focusFirst'](),_0x6ed41());}),this['keystrokes']['set']('esc',(_0x4ba02a,_0x502219)=>{_0x4bbb43!==_0x4ba02a['target']&&(this['focus'](),_0x502219());});}}class u extends _0x17585e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xf032e2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x363dad){super(_0x363dad),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32df9f=this['editor']['config'];_0x32df9f['define']('trackChanges.SuggestionThreadView',Te),_0x32df9f['define']('trackChanges.SuggestionView',Le),_0x32df9f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32df9f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x57f98c,_0x3e044b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xab5abb,_0x1de550]of this['_handleControllerBuffer']){const _0x2c646b=this['_suggestionToController']['has'](_0xab5abb);_0x2c646b||_0x1de550?_0x2c646b&&_0x1de550&&this['_destroyController'](_0xab5abb):this['_initializeController'](_0xab5abb);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x57f98c,_0x3e044b);}['init'](){const _0x203032=this['editor'],_0xfad20a=_0x203032['plugins']['get']('TrackChangesEditing'),_0x176261=_0x203032['plugins']['get']('Annotations'),_0x291c94=_0x203032['plugins']['get']('EditorAnnotations'),_0x2e137e=_0x203032['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x291c94['addSourceCollector'](()=>{const _0x482e92=[];for(const [_0x5be419,_0x2789e9]of Array['from'](this['_suggestionToController'])){const _0x2a9463=_0x5be419['getAllAdjacentSuggestions'](),_0x14a9ae=[];for(const _0x3deaae of _0x2a9463){if(!_0x3deaae['isInContent'])continue;if(_0x3deaae['isMultiRange']){_0x14a9ae['push'](..._0x3deaae['getRanges']());continue;}const _0x4723d8=_0x3deaae['getFirstRange']();if(_0x14a9ae['length']>0x0){const _0x334539=_0x14a9ae[0x0]['getJoined'](_0x4723d8);if(_0x334539){_0x14a9ae[0x0]=_0x334539;continue;}}_0x14a9ae['push'](_0x4723d8);}_0x482e92['push']([_0x2789e9['view'],_0x14a9ae]);}return _0x482e92;}),this['listenTo'](_0xfad20a,'suggestionLoaded',(_0x412848,_0x2b8f13)=>{this['listenTo'](_0x2b8f13,'change:previous',(_0x5a6dd7,_0x4e238f,_0x46997c,_0x3a8b3f)=>{_0x2b8f13['isInContent']&&(null==_0x46997c?(this['_updateController'](_0x3a8b3f['head']),this['_handleSuggestionControllerDelayed'](_0x2b8f13,!0x1)):(this['_updateController'](_0x46997c['head']),null==_0x3a8b3f&&this['_handleSuggestionControllerDelayed'](_0x2b8f13,!0x0)));}),null!==_0x2b8f13['previous']?this['_updateController'](_0x2b8f13['head']):this['_handleSuggestionControllerDelayed'](_0x2b8f13,!0x1);}),this['listenTo'](_0xfad20a,'suggestionUnloaded',(_0x27396a,_0x13bc8b,_0x444ab7)=>{this['stopListening'](_0x13bc8b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x13bc8b),this['_suggestionToController']['has'](_0x13bc8b)&&this['_destroyController'](_0x13bc8b),_0x444ab7&&this['_updateController'](_0x444ab7['head']);}),this['listenTo'](_0xfad20a,'suggestionChanged',(_0x128110,_0x2c8c8c)=>{this['_updateController'](_0x2c8c8c);}),this['listenTo'](_0x176261,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e137e,'addComment',(_0x2388f0,{threadId:_0x242c67,isFromAdapter:_0x143ed5})=>{if(_0x143ed5||!_0xfad20a['hasSuggestion'](_0x242c67))return;const _0xdc237f=_0xfad20a['getSuggestion'](_0x242c67);this['_suggestionToController']['get'](_0xdc237f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c7733=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ec3c9;for(const _0x567483 in _0x5c7733){const _0x322fc2=_0x567483,_0xec3bef=_0x5c7733[_0x322fc2];if('trackChangesLicenseKeyValid'==_0xec3bef||'trackChangesLicenseKeyInvalid'==_0xec3bef||'trackChangesLicenseKeyExpired'==_0xec3bef||'trackChangesLicenseKeyDomainLimit'==_0xec3bef||'trackChangesLicenseKeyNotAllowed'==_0xec3bef||'trackChangesLicenseKeyEvaluationLimit'==_0xec3bef||'trackChangesLicenseKeyTrialLimit'==_0xec3bef||'trackChangesLicenseKeyUsageLimit'==_0xec3bef){delete _0x5c7733[_0x322fc2],_0x1ec3c9=_0xec3bef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1ec3c9&&_0x5c7733['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1ec3c9&&_0x5c7733['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1ec3c9&&_0x5c7733['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1ec3c9&&_0x5c7733['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1ec3c9&&_0x5c7733['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1ec3c9&&_0x5c7733['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1ec3c9&&_0x5c7733['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x6ec664){const _0x4177f3=this['_suggestionToController']['get'](_0x6ec664);if(!_0x4177f3)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4177f3['view'])||null;}['getSuggestionForAnnotation'](_0x209207){const _0x4a6ff3=this['_viewToController']['get'](_0x209207['innerView']);return _0x4a6ff3?_0x4a6ff3['model']:null;}['_refreshActiveMarkers'](){const _0x7ab97=this['editor']['plugins']['get']('Annotations'),_0x747902=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c640e=Array['from'](_0x7ab97['activeAnnotations'],_0x4ba41e=>_0x4ba41e['innerView'])['filter'](_0x7fc02b=>this['_viewToController']['has'](_0x7fc02b)),_0x33b3b8=[];for(const _0x404a33 of _0x5c640e){const _0x38f166=this['_viewToController']['get'](_0x404a33)['model']['getAllAdjacentSuggestions']();_0x33b3b8['push'](..._0x38f166['reduce']((_0x428625,_0x576cb9)=>[..._0x428625,..._0x576cb9['getMarkerNames']()],[]));}_0x747902['activeMarkers']=_0x33b3b8;}['_addUIComponentsToFactory'](){const _0x116509=this['editor'],_0xaf11cc=_0x116509['locale'],_0x33887a=o(_0xaf11cc,'Track\x20changes'),_0x36421b=new _0x578b80([{'type':'switchbutton','model':new _0x473d97({'withText':!0x0,'isToggleable':!0x0,'label':_0x33887a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x473d97({'withText':!0x0,'label':o(_0xaf11cc,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x473d97({'withText':!0x0,'label':o(_0xaf11cc,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x473d97({'withText':!0x0,'label':o(_0xaf11cc,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x473d97({'withText':!0x0,'label':o(_0xaf11cc,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x116509['plugins']['has']('TrackChangesPreview')&&_0x36421b['addMany']([{'type':'separator'},{'type':'button','model':new _0x473d97({'withText':!0x0,'label':o(_0xaf11cc,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2c736c of _0x36421b)if(ve(_0x2c736c)){const _0x32ba9f=_0x116509['commands']['get'](_0x2c736c['model']['commandName']);_0x2c736c['model']['bind']('isOn','isEnabled')['to'](_0x32ba9f,'value','isEnabled');}_0x116509['ui']['componentFactory']['add']('trackChanges',_0x49a440=>this['_createToolbarButton'](_0x49a440,_0x36421b,_0x33887a)),_0x116509['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d7921=>this['_createMenuBarMenu'](_0x4d7921,_0x36421b,_0x33887a));}['_createToolbarButton'](_0x334558,_0x120f89,_0x205d57){const _0x328119=_0x3d97f0(_0x334558,_0x4b1a96),_0x250206=this['editor']['commands']['get']('trackChanges');_0x328119['buttonView']['set']({'tooltip':_0x205d57,'label':_0x205d57,'icon':_0x41a70f}),_0x328119['buttonView']['bind']('isOn')['to'](_0x250206,'value'),_0x328119['buttonView']['on']('execute',()=>{_0x250206['execute'](),this['editor']['editing']['view']['focus']();}),_0x47da06(_0x328119,_0x120f89,{'role':'menu'});const _0xae4711=[];for(const _0x1f64ae of _0x120f89)ve(_0x1f64ae)&&_0xae4711['push'](this['editor']['commands']['get'](_0x1f64ae['model']['commandName']));const _0x27a4c9=_0x328119['buttonView'];return _0x27a4c9['actionView']['unbind']('isEnabled'),_0x27a4c9['arrowView']['unbind']('isEnabled'),_0x27a4c9['actionView']['bind']('isEnabled')['to'](_0x250206,'isEnabled'),_0x27a4c9['arrowView']['bind']('isEnabled')['toMany'](_0xae4711,'isEnabled',(..._0xa29303)=>_0xa29303['some'](_0x553ae1=>_0x553ae1)),_0x328119['on']('execute',_0x577a8c=>{this['editor']['execute'](_0x577a8c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x328119;}['_createMenuBarMenu'](_0x8d38e4,_0x3d7e95,_0x331a04){const _0x27d61f=new _0x63be14(_0x8d38e4),_0x31fb4a=this['editor']['commands']['get']('trackChanges');_0x27d61f['buttonView']['set']({'label':_0x331a04,'icon':_0x41a70f});const _0x3bcd65=new _0x2cc1b7(_0x8d38e4);for(const _0x40e242 of _0x3d7e95){if('separator'==_0x40e242['type']){_0x3bcd65['items']['add'](new _0x56beb1(_0x8d38e4));continue;}const _0x48bccf=new _0x28f3af(_0x8d38e4,_0x27d61f),_0x5b8d40=new _0x57f200(_0x8d38e4),_0x1d85b2=_0x40e242['model'];_0x5b8d40['bind'](...Object['keys'](_0x1d85b2))['to'](_0x1d85b2),_0x5b8d40['delegate']('execute')['to'](_0x27d61f),_0x5b8d40['on']('execute',()=>{this['editor']['execute'](_0x1d85b2['commandName']),this['editor']['editing']['view']['focus']();}),_0x48bccf['children']['add'](_0x5b8d40),_0x3bcd65['items']['add'](_0x48bccf);}return _0x27d61f['bind']('isEnabled')['to'](_0x31fb4a,'isEnabled'),_0x27d61f['panelView']['children']['add'](_0x3bcd65),_0x27d61f;}['_initializeController'](_0x4a9b31){const _0x3b5cf2=this['editor'],_0x1316ae=_0x3b5cf2['config'],_0x5b0ecc=_0x3b5cf2['plugins']['get']('Annotations'),_0x8e4537=_0x3b5cf2['plugins']['get']('CommentsRepository'),_0x4c3ba6=_0x3b5cf2['plugins']['get']('EditorAnnotations'),_0x3dd0c6=_0x3b5cf2['plugins']['get'](_0xf032e2)['me'],_0x117d41=_0x1316ae['get']('trackChanges')['SuggestionThreadView'],_0x4c98a0=_0x1316ae['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b993c,CommentThreadInputView:_0x51e487}=_0x3b5cf2['plugins']['get']('CommentsUI');let _0x5b1bce,_0x3b9f06,_0x26d533;this['_annotationViews']['has'](_0x4a9b31['id'])?(_0x3b9f06=this['_annotationViews']['get'](_0x4a9b31['id']),_0x5b1bce=_0x3b9f06['mainView']):(_0x5b1bce=new _0x117d41(_0x3b5cf2['locale'],_0x4a9b31,_0x3dd0c6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1316ae['get']('comments.editorConfig'),'licenseKey':_0x1316ae['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1316ae['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1316ae['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1316ae['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3b892e(_0x1316ae['get']('locale'),_0x3b5cf2['locale']),'CommentView':_0x1316ae['get']('comments')['CommentView'],'CommentsListView':_0x1b993c,'CommentThreadInputView':_0x51e487,'SuggestionView':_0x4c98a0}),_0x5b1bce['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b5cf2['editing']['view']['focus']();}),_0x5b1bce['suggestionView']['discardButton']['on']('execute',()=>{_0x3b5cf2['editing']['view']['focus']();}),_0x3b9f06=_0x5b0ecc['createAnnotationView'](this['editor']['locale'],_0x5b1bce),_0x3b9f06['bind']('isDirty')['to'](_0x5b1bce,'isDirty'),_0x3b9f06['bind']('length')['to'](_0x5b1bce),_0x3b9f06['bind']('type')['to'](_0x5b1bce,'type',_0x2dd8d9=>'suggestion-'+_0x2dd8d9),_0x5b1bce['on']('escape',()=>{_0x26d533['fire']('escape');}),this['_annotationViews']['set'](_0x4a9b31['id'],_0x3b9f06));const _0x4c2900=_0x8e4537['createCommentThreadController'](_0x4a9b31['commentThread'],_0x5b1bce),_0x2c34ab=new be(_0x3b5cf2,_0x4a9b31,_0x5b1bce,_0x4c2900),_0x502c9f=_0x4a9b31['getAllAdjacentSuggestions']()['filter'](_0x6e2553=>_0x6e2553['isInContent']);_0x5b1bce['descriptionParts']=_0x3b5cf2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x502c9f),this['_suggestionToController']['set'](_0x4a9b31,_0x2c34ab),this['_viewToController']['set'](_0x5b1bce,_0x2c34ab);const _0x138886=()=>{const _0x9b564e=[],_0x1f5c0f=_0x4a9b31['getAllAdjacentSuggestions']()['filter'](_0x8bc5b0=>_0x8bc5b0['isInContent']);for(const _0x4c0939 of _0x1f5c0f)_0x9b564e['push'](..._0x4c0939['getMarkers']());return _0x447ebe(_0x3b5cf2['editing'],_0x9b564e);};_0x26d533=_0x5b0ecc['createAnnotation']({'view':_0x3b9f06,'target':_0x138886,'type':()=>'suggestion-'+_0x2c34ab['view']['type'],'isVisible':!!_0x138886()}),_0x8e4537['_bindAnnotationToEditors'](_0x5b1bce,_0x26d533),_0x5b0ecc['add'](_0x26d533),_0x4c3ba6['registerAnnotation'](_0x26d533);}['_destroyController'](_0x1d42de){const _0x13bc47=this['editor']['plugins']['get']('CommentsRepository'),_0xe6effd=this['editor']['plugins']['get']('Annotations'),_0x409a9c=this['_suggestionToController']['get'](_0x1d42de),_0x49289c=_0x409a9c['view'],_0x986fb7=_0xe6effd['getByInnerView'](_0x49289c);_0x13bc47['_unbindEditors'](_0x49289c),_0x986fb7&&_0xe6effd['remove'](_0x986fb7),this['_suggestionToController']['delete'](_0x1d42de),this['_viewToController']['delete'](_0x49289c),_0x409a9c['destroy']();}['_updateController'](_0x5e0ab7){if(!_0x5e0ab7['isInContent']||!this['_suggestionToController']['has'](_0x5e0ab7))return;const _0x19ffc9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x394e09=this['_suggestionToController']['get'](_0x5e0ab7),_0x404cc0=_0x5e0ab7['getAllAdjacentSuggestions']();_0x394e09['view']['descriptionParts']=_0x19ffc9['descriptionFactory']['getDescriptions'](_0x404cc0);}['destroy'](){for(const _0x7938c8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x7938c8);for(const _0x278dc4 of this['_annotationViews']['values']())_0x278dc4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x33da36){return'model'in _0x33da36;}class Ve extends _0x17585e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xc19871){this['editor']['plugins']['get'](d)['adapter']=_0xc19871;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1e0e78){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1e0e78);}['getSuggestions']({skipNotAttached:_0x1f35fa=!0x1,toJSON:_0x51edd0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1f35fa,'toJSON':_0x51edd0});}['getSuggestion'](_0x5db27b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5db27b);}}const p=['Pagination'];class ce extends _0x17585e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xf60ca3=this['editor'];if(_0xf60ca3['config']['define']('trackChangesData.editorCreator',_0x4e8466=>{const _0x2502af=_0xf60ca3['model']['document']['getRootNames']()['reduce']((_0x214328,_0x1c0027)=>(_0x214328[_0x1c0027]='',_0x214328),{});return _0xf60ca3['constructor']['create'](_0x2502af,_0x4e8466);}),'function'!=typeof _0xf60ca3['config']['get']('trackChangesData')['editorCreator'])throw new _0xa784d6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x33e5e2){return P(this['editor'],!0x0,_0x33e5e2);}['getDataWithDiscardedSuggestions'](_0x72b6ff){return P(this['editor'],!0x1,_0x72b6ff);}}class ze extends _0x17585e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b99c3){function _0x4b100d(_0x15c776){return _0x15c776['map'](_0x5f5794=>String['fromCharCode'](_0x5f5794))['join']('');}super(_0x4b99c3),this['result']='end',_0x4b99c3[_0x4b100d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b100d([0x76,0x69,0x65,0x77])][_0x4b100d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b100d([0x61,0x75,0x74,0x6f]),_0x4b99c3[_0x4b100d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4b100d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b100d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4b100d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4b100d([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 Ke(_0x55d5e7){return void 0x0!==_0x55d5e7['getRootsAttributes'];}async function P(_0x48947c,_0x26e8b3,_0x2a9ab9){const _0x50bb9c=_0xfe236a(_0x48947c,p);_0x50bb9c['plugins']['push'](d,ze),_0x50bb9c['rootsAttributes']=Ke(_0x48947c)?_0x48947c['getRootsAttributes']():void 0x0;const _0x5cd75e=document['createDocumentFragment'](),_0x222913=_0x48947c['config']['get']('trackChangesData')['editorCreator'],_0x16b7df=await _0x222913(_0x50bb9c,()=>function(_0x5ea8f3){const _0x4b787c=document['createElement']('div');return _0x5ea8f3['appendChild'](_0x4b787c),_0x4b787c;}(_0x5cd75e));!function(_0x342801,_0x50517e){const _0xab5f3c=_0x342801['model']['document']['getRootNames']()['reduce']((_0x3339b7,_0x52686b)=>(_0x3339b7[_0x52686b]=_0x342801['data']['get']({'rootName':_0x52686b}),_0x3339b7),{}),_0x566e64=_0x342801['plugins']['get']('Users')['users']['map'](_0x21aa9a=>({'id':_0x21aa9a['id'],'name':_0x21aa9a['name']})),_0x564dc8=_0x342801['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4bc734=_0x342801['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x35d674=_0x50517e['plugins']['get']('Users'),_0x257a5b=_0x50517e['plugins']['get']('TrackChangesEditing'),_0xa8bf6c=_0x50517e['plugins']['get']('CommentsRepository');for(const _0x272b73 of _0xa8bf6c['getCommentThreads']())_0x272b73['remove']();for(const _0x9ec156 of _0x566e64)_0x35d674['getUser'](_0x9ec156['id'])||_0x35d674['addUser'](_0x9ec156);_0x35d674['me']||_0x35d674['useAnonymousUser']();for(const _0x937548 of _0x4bc734)_0xa8bf6c['addCommentThread'](_0x937548);for(const _0x24b4c2 of _0x564dc8)_0x257a5b['addSuggestionData'](_0x24b4c2);_0x50517e['data']['set'](_0xab5f3c);}(_0x48947c,_0x16b7df),_0x16b7df['execute'](_0x26e8b3?'acceptAllSuggestions':'discardAllSuggestions');const _0x413d86=Ke(_0x16b7df)?_0x16b7df['getFullData'](_0x2a9ab9):_0x16b7df['data']['get'](_0x2a9ab9);return await _0x16b7df['destroy'](),_0x413d86;}class _e extends _0x4284fe{['options'];constructor(_0x537d1d,_0x4760a7){super(_0x537d1d),this['options']=_0x4760a7,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'](_0x4128e3,_0x5df8ac){if(!this['element'])return;const _0x522e33=[];for(const [_0x2467b9,_0x80c24e]of _0x4128e3){const _0x536bf1=document['createElement']('div');_0x536bf1['setAttribute']('data-ck-root-name',_0x2467b9),_0x536bf1['className']=_0x80c24e['classes']+'\x20ck-track-changes-preview__root-container',_0x536bf1['innerHTML']=_0x80c24e['content'],_0x522e33['push'](_0x536bf1);}_0x5df8ac(this['element'],_0x522e33),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x217abd{constructor(_0x4f68a6){super(_0x4f68a6),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5106c8=this['editor'],_0x7846f3=_0x5106c8['locale'],_0x536519=_0x5106c8['plugins']['get']('Dialog');let _0x1cd641;const _0x1a7133=function(_0x40389c){const _0x2ab913={};if('editables'in _0x40389c['ui']['view']){for(const [_0x1c33fd,_0x18605a]of Object['entries'](_0x40389c['ui']['view']['editables']))_0x2ab913[_0x1c33fd]=_0x18605a['element'];}else _0x2ab913[_0x40389c['model']['document']['getRootNames']()[0x0]]=_0x40389c['ui']['view']['editable']['element'];return _0x2ab913;}(_0x5106c8),_0x32d854=function(_0x1449b6){let _0xaf8410=0x0;for(const _0x402c4a of Object['values'](_0x1449b6))_0xaf8410=Math['max'](_0xaf8410,_0x402c4a['getBoundingClientRect']()['width']);let _0x4c0553=0x0;for(const _0x206103 of Object['values'](_0x1449b6))_0x4c0553+=_0x206103['getBoundingClientRect']()['height'];const _0x33fbea=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4ffa08=Math['min'](_0x4c0553,_0x33fbea);return{'width':_0xaf8410,'height':_0x4ffa08};}(_0x1a7133);_0x536519['show']({'id':'finalContentPreview','title':o(_0x7846f3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x7846f3,{'dialogRects':_0x32d854}),'onHide':()=>{_0x1cd641['detachFromDom']();},'onShow':()=>{_0x5106c8['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x49bde7=>{const _0x4fa8b5=this['_standarizeRootsData'](_0x49bde7,_0x5106c8,_0x1a7133);_0x536519['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4fa8b5,_0x5106c8['config']['get']('trackChanges.preview.renderFunction'));}),_0x1cd641=new _0x324c7f(_0x7846f3,[_0x536519['view']]),_0x1cd641['attachToDom'](),_0x1cd641['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5106c8['once']('destroy',()=>{_0x1cd641['detachFromDom']();});const _0x2f5c21=_0x536519['view']['headerView']['class'];_0x536519['view']['headerView']['class']=_0x2f5c21?_0x2f5c21+'\x20ck-reset_all':'ck-reset_all',_0x536519['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x536519['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1aa5c7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x462234=_0x1aa5c7['previewMode'],_0x263199={};if('$labels'===_0x462234){for(const _0x341063 of _0x1aa5c7['getMergeFieldsIds']())_0x263199[_0x341063]=_0x1aa5c7['getLabel'](_0x341063)||_0x341063;}else{const _0x3445c4='$defaultValues'===_0x462234?_0x1aa5c7['getDefaultValues']():_0x1aa5c7['getDataSetValues'](_0x462234,!0x0);for(const _0x8645bf of Object['entries'](_0x3445c4)){const [_0x56bfba,_0x518648]=_0x8645bf;_0x263199[_0x56bfba]=null!==_0x518648?_0x518648:_0x1aa5c7['getLabel'](_0x56bfba)||_0x56bfba;}}return{'mergeFieldsData':_0x263199};}['_standarizeRootsData'](_0x5e20c1,_0x8f57a7,_0x56c036){let _0x2a79b6;if('string'==typeof _0x5e20c1){const _0x23ae5e=_0x8f57a7['model']['document']['getRootNames']()[0x0];_0x2a79b6={[_0x23ae5e]:_0x5e20c1};}else _0x2a79b6=_0x5e20c1;const _0x2b57b0=this['_fixMediaEmbeds'](_0x2a79b6,_0x8f57a7),_0x13c19b=function(_0x345798,_0x15a90f){for(const [_0x186dfa,_0x4fe711]of _0x345798)_0x4fe711['classes']=_0x15a90f[_0x186dfa]['classList']['value']['replace']('ck-focused','');return _0x345798;}(this['_sortRoots'](_0x8f57a7)['reduce']((_0x528bb0,_0x101b20)=>(_0x528bb0['push']([_0x101b20,{'content':_0x2b57b0[_0x101b20],'classes':''}]),_0x528bb0),[]),_0x56c036);return _0x13c19b;}['_fixMediaEmbeds'](_0x5cd9dc,_0x24c414){if(!_0x24c414['plugins']['has']('MediaEmbedEditing'))return _0x5cd9dc;const _0x264ba2=_0x24c414['plugins']['get']('MediaEmbedEditing');for(const [_0x3427ba,_0x310a49]of Object['entries'](_0x5cd9dc)){const _0x174f11=document['createElement']('div');_0x174f11['innerHTML']=_0x310a49,(_0x174f11['querySelectorAll']('figure.media')['forEach'](_0x2f5ced=>{const _0x2639ef=_0x2f5ced['querySelector']('oembed');if(_0x2639ef){const _0xd63d2e=_0x2639ef['getAttribute']('url');if(_0xd63d2e){const _0x241805=_0x264ba2['registry']['getMediaViewElement'](new _0x4043d7(_0x24c414['editing']['view']['document']),_0xd63d2e,{'elementName':'','renderForEditingView':!0x0}),_0x2e91d1=document['createElement']('div');_0x2e91d1['classList']['add']('ck-media__wrapper'),_0x241805['render'](_0x2e91d1,_0x24c414['editing']['view']['domConverter']),_0x2639ef['replaceWith'](_0x2e91d1);}}}),_0x5cd9dc[_0x3427ba]=_0x174f11['innerHTML']);}return _0x5cd9dc;}['_sortRoots'](_0x39267f){if(!function(_0x52d720){return void 0x0!==_0x52d720['getRootsAttributes'];}(_0x39267f))return _0x39267f['model']['document']['getRootNames']();const _0x2be7ee=[],_0x5b605d=new Map();for(const _0x54557a of _0x39267f['model']['document']['getRootNames']()){const _0x1b4b60=_0x39267f['editing']['view']['getDomRoot'](_0x54557a)['getClientRects']()['item'](0x0);_0x2be7ee['push'](_0x54557a),_0x5b605d['set'](_0x54557a,_0x1b4b60);}return _0x2be7ee['sort']((_0x284b26,_0x32abe4)=>{const _0xde888=_0x5b605d['get'](_0x284b26),_0x3a8248=_0x5b605d['get'](_0x32abe4);return _0xde888['y']-_0x3a8248['y']||_0xde888['x']-_0x3a8248['x'];}),_0x2be7ee;}}class Xe extends _0x17585e{static get['requires'](){return[ce,_0x1512a6];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbc95d9){super(_0xbc95d9),_0xbc95d9['commands']['add']('previewFinalContent',new ae(this['editor'])),_0xbc95d9['config']['define']('trackChanges.preview.renderFunction',(_0x43baeb,_0x29bedd)=>{for(const _0x56e3f7 of _0x29bedd)_0x43baeb['appendChild'](_0x56e3f7);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x5e7115,Plugin as _0x4be19b,PendingActions as _0x2d4e96}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3ea0ba,ObservableMixin as _0x50d6bd,uid as _0xf4a34a,priorities as _0x4d4930,insertToPriorityArray as _0x4fdd17,toArray as _0x226d78,logWarning as _0x3339d7,getEnvKeystrokeText as _0xad8b6a,FocusTracker as _0x419095,KeystrokeHandler as _0x170971,Collection as _0xedbb46}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x197cfd,IconCancel as _0x89fdb,IconTrackChanges as _0x58bb43}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2eeb65,View as _0x24bff0,ViewCollection as _0x49a2d4,FocusCycler as _0x365139,UIModel as _0x49c5a0,createDropdown as _0x38b019,SplitButtonView as _0x1e1570,addListToDropdown as _0x559d50,MenuBarMenuView as _0x693e1f,MenuBarMenuListView as _0x1b35db,ListSeparatorView as _0x4394a3,MenuBarMenuListItemView as _0xed488d,MenuBarMenuListItemButtonView as _0x23a81d,BodyCollection as _0x1f6241,Dialog as _0x31669e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5434f7,DocumentCompare as _0x368dd4,hashObject as _0x5626cf,surroundingMarkersDetector as _0x4f626c,FOCUS_ANNOTATION_KEYSTROKE as _0x152ffb,AriaDescriptionView as _0x195dea,setupThreadKeyboardNavigation as _0x405b48,trimHtml as _0x6a430a,UserView as _0x250299,LateFocusButtonView as _0x2bb0ea,getDateTimeFormatter as _0x1b3ca7,getAllMarkersDomElementsSorted as _0xc61320,sanitizeEditorConfig as _0x33e814}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x25f55e,ModelLiveRange as _0x5c6c0b,ModelLivePosition as _0x538ab7,ModelPosition as _0xa98866,ModelRange as _0x2c2e90,_DetachOperation as _0x1aa185,ViewDowncastWriter as _0x147bf7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x36dd47,toWidget as _0x43134f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5cc387,set as _0x5bbf33,isEqual as _0x51e25d,unset as _0x3ad97c,omit as Jt}from'es-toolkit/compat';import{Delete as _0x3548ba,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4fba86}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x556691}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5e7115{['_enabledCommands'];constructor(_0x242fb0,_0x22275f){super(_0x242fb0),this['_enabledCommands']=_0x22275f,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 _0x4e323c of this['editor']['commands']['commands']())_0x4e323c['affectsData']&&!this['_enabledCommands']['has'](_0x4e323c)&&_0x4e323c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b224a of this['editor']['commands']['commands']())_0x4b224a['affectsData']&&!this['_enabledCommands']['has'](_0x4b224a)&&_0x4b224a['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x5e7115{['_suggestions'];constructor(_0x17473b,_0x241b7d){super(_0x17473b),this['_suggestions']=_0x241b7d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38ec5d){const _0x5cf227=this['_suggestions']['get'](_0x38ec5d);if(!_0x5cf227)throw new _0x3ea0ba('track-changes-accept-suggestion-not-found',this);const _0x4de7ed=_0x5cf227['getRanges']();this['editor']['model']['canEditAt'](_0x4de7ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5cf227);}}class O extends _0x5e7115{['_suggestions'];constructor(_0x1622af,_0x14627f){super(_0x1622af),this['_suggestions']=_0x14627f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24886c){const _0x254291=this['_suggestions']['get'](_0x24886c);if(!_0x254291)throw new _0x3ea0ba('track-changes-discard-suggestion-not-found',this);const _0x2d6f2b=_0x254291['getRanges']();this['editor']['model']['canEditAt'](_0x2d6f2b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x254291);}}function ls(_0x2f9a53,_0x502481){let _0x4cc8bb='';return _0x4cc8bb+=_0x2f9a53['split']('*')['map']((_0x49743a,_0x3fe8a1)=>_0x3fe8a1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x49743a)+'</span>':tn(_0x49743a))['join'](''),_0x502481&&(_0x4cc8bb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x502481['value']+'\x22\x20title=\x22'+_0x502481['title']+'\x22></span>'),_0x4cc8bb;}function tn(_0x393716){const _0x15f248=document['createElement']('span');return _0x15f248['innerText']=_0x393716,_0x15f248['innerHTML'];}function ts(_0x5100ba){return _0x5100ba['sort']((_0x1c43f8,_0x2017fb)=>'attribute'===_0x1c43f8['type']&&'attribute'!==_0x2017fb['type']?-0x1:'attribute'!==_0x1c43f8['type']&&'attribute'===_0x2017fb['type']?0x1:'deletion'==_0x1c43f8['type']&&'deletion'!=_0x2017fb['type']?-0x1:'deletion'!=_0x1c43f8['type']&&'deletion'==_0x2017fb['type']?0x1:0x0);}function to(_0xb0372e,_0x25f415){let _0x10588f,_0x110d3b=0x0;const _0x279a14=[],_0x2f917a=_0x25f415['schema'];for(;_0x110d3b<_0xb0372e['length'];){const _0xeee446=_0xb0372e[_0x110d3b],_0xafea1e=_0xb0372e[_0x110d3b+0x1];_0x10588f||(_0x10588f=_0x25f415['createPositionBefore'](_0xeee446)),nn(_0x25f415,_0xeee446,_0xafea1e)||(_0x279a14['push'](_0x25f415['createRange'](_0x10588f,_0x2f917a['isObject'](_0xeee446)?_0x25f415['createPositionAfter'](_0xeee446):_0x25f415['createPositionAt'](_0xeee446,'end'))),_0x10588f=null),_0x110d3b++;}return _0x279a14;}function nn(_0x4c6f3d,_0xfb168b,_0x301495){if(!_0x301495)return!0x1;const _0x5e0e6c=_0x4c6f3d['createPositionAfter'](_0xfb168b),_0x412399=_0x4c6f3d['createPositionBefore'](_0x301495);return _0x5e0e6c['isTouching'](_0x412399);}function rs(_0x1f20f9,_0x45e170,_0x5328a8){for(;_0x5328a8['length'];){const _0x39d5e5=_0x5328a8['splice'](0x0,0x64);_0x1f20f9['change'](()=>{for(const _0x676107 of _0x39d5e5)_0x676107['isInContent']&&_0x45e170['execute'](_0x676107['id']);});}}class x extends _0x5e7115{['_command'];['_suggestions'];constructor(_0x4c394f,_0x53c63f,_0x1869a2){super(_0x4c394f),this['_command']=_0x53c63f,this['_suggestions']=_0x1869a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x23dd11=Array['from'](this['_suggestions']['values']())['some'](_0x40ef94=>_0x40ef94['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x23dd11;}['execute'](){const _0x692725=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2a269f of _0x692725){const _0x38307f=_0x2a269f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x38307f))return;}rs(this['editor']['model'],this['_command'],_0x692725);}}class E extends _0x5e7115{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x56f2a1,_0x42e4a1,_0x588ca2){super(_0x56f2a1),this['_command']=_0x42e4a1,this['_suggestions']=_0x588ca2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5637dc=this['editor']['model']['document']['selection'],_0x23df3f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3da9f6,_0x2ca346){const _0x1e3edd=Array['from'](_0x3da9f6['getRanges']()),_0xaaeae7=new Set();for(const _0x344ea9 of _0x2ca346)if(_0x344ea9['isInContent']){for(const _0xcd694f of _0x1e3edd)for(const _0x453f41 of _0x344ea9['getRanges']())(_0xcd694f['isIntersecting'](_0x453f41)||_0x3da9f6['isCollapsed']&&!_0x344ea9['isMultiRange']&&_0x344ea9['next']&&_0x453f41['end']['isTouching'](_0xcd694f['start']))&&_0xaaeae7['add'](_0x344ea9);}return _0xaaeae7;}(_0x5637dc,_0x23df3f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x232726=ts(Array['from'](this['_selectedSuggestions']));for(const _0x85d42d of _0x232726){const _0xb05ff9=_0x85d42d['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb05ff9))return;}rs(this['editor']['model'],this['_command'],_0x232726);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x50d6bd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x24e8e4,_0x200d1c){super(),this['id']=_0x200d1c['id'],this['type']=_0x200d1c['type'],this['subType']=_0x200d1c['subType']||null,this['author']=_0x200d1c['author'],this['creator']=_0x200d1c['creator']||_0x200d1c['author'],this['isExternal']=Boolean(_0x200d1c['attributes']&&_0x200d1c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x200d1c['originalSuggestionId']||null,this['_model']=_0x24e8e4,this['_onAccept']=_0x200d1c['onAccept'],this['_onDiscard']=_0x200d1c['onDiscard'],this['_onAttributesChange']=_0x200d1c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x200d1c['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 _0xe49cce=this;for(;_0xe49cce['previous'];)_0xe49cce=_0xe49cce['previous'];return _0xe49cce;}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'](_0xa669d1){this['_markerNames']['add'](_0xa669d1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x85c02=>this['_model']['markers']['get'](_0x85c02))['filter'](_0x361f04=>_0x361f04);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x914aa5=>{for(const _0x324964 of this['getMarkers']())_0x914aa5['removeMarker'](_0x324964);}),this['_markerNames']['clear']();}['removeMarker'](_0x8f209c){this['_model']['change'](_0x588f2b=>{_0x588f2b['removeMarker'](_0x8f209c);}),this['_markerNames']['delete'](_0x8f209c);}['addRange'](_0x21c478){const _0x23df01='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x23df01),this['_model']['change'](_0x5af1a7=>{_0x5af1a7['addMarker'](_0x23df01,{'range':_0x21c478,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4a9ea3){for(const _0x1b8d9d of this['getRanges']())if(_0x1b8d9d['isIntersecting'](_0x4a9ea3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1dbd00=>_0x1dbd00['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x31227b,_0x3f2e76)=>[..._0x31227b,..._0x3f2e76['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xb050ab=this['getRanges']();if(0x1!=_0xb050ab['length'])return null;const _0x316385=_0xb050ab[0x0],_0x457f89=_0x316385['start']['nodeAfter'],_0x158215=_0x316385['end']['nodeBefore'];return _0x457f89 instanceof _0x25f55e?_0x457f89!=_0x158215?null:_0x457f89: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 _0x6482ae=[];let _0x311239=this['head'];for(;_0x311239;)_0x6482ae['push'](_0x311239),_0x311239=_0x311239['next'];return _0x6482ae;}['setAttribute'](_0x1dbfb7,_0x2f7cd2){const _0x1b7e00=_0x5cc387(this['attributes']);_0x5bbf33(_0x1b7e00,_0x1dbfb7,_0x2f7cd2),_0x51e25d(_0x1b7e00,this['attributes'])||(this['attributes']=_0x1b7e00,this['_onAttributesChange'](_0x1b7e00));}['removeAttribute'](_0x4b7506){const _0x1392e2=_0x5cc387(this['attributes']);_0x3ad97c(_0x1392e2,_0x4b7506),_0x51e25d(_0x1392e2,this['attributes'])||(this['attributes']=_0x1392e2,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 _0xf4a34a()['substr'](0x1,0x5);}}function o(_0x318f93,_0x3c117f,_0x4b2210){const _0x9e6427=_0x318f93['t'],t=_0x318f93['t'];switch(_0x3c117f){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',_0x4b2210);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b2210);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b2210);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b2210);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b2210);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',_0x4b2210);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b2210);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',_0x4b2210);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b2210);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b2210);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b2210);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b2210);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b2210);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b2210);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b2210);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b2210);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b2210);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b2210);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b2210);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b2210);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b2210);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b2210);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b2210);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b2210);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b2210);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'},_0x4b2210);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b2210);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b2210);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b2210);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b2210);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b2210);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b2210);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b2210);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b2210);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b2210);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b2210);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'},_0x4b2210);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x4b2210);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b2210);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b2210);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 _0x9e6427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b2210);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x9e6427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b2210);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b2210);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'},_0x4b2210);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'},_0x4b2210);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'},_0x4b2210);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3c117f;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4d594f,_0x4b5d23){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4d594f,this['_locale']=_0x4b5d23;}['getDescriptions'](_0x5aedfb){const _0xc90cb7=[],_0x353389=new Set(),_0x1474d1=new Set();for(let _0x528eff=0x0;_0x528eff<_0x5aedfb['length'];_0x528eff++){const _0x12b884=_0x5aedfb[_0x528eff];if(!_0x12b884['isInContent'])continue;const _0x18eaa9=this['_handleCustomCallbackDescription'](_0x12b884);if(_0x18eaa9){if(null!=_0x12b884['subType']){if(_0x353389['has'](_0x12b884['subType']))continue;_0x353389['add'](_0x12b884['subType']);}_0xc90cb7['push'](_0x18eaa9);}else{if('attribute'==_0x12b884['type']){const _0x10172e=_0x12b884['data']['key'];if(_0x1474d1['has'](_0x10172e))continue;_0x1474d1['add'](_0x12b884['data']['key']),_0x10172e==m?this['_handleRenameSuggestionDescription'](_0xc90cb7,_0x12b884):this['_handleAttributeSuggestionDescription'](_0xc90cb7,_0x12b884);continue;}'insertion'!=_0x12b884['type']&&'deletion'!=_0x12b884['type']||this['_handleInsertRemoveSuggestionDescription'](_0xc90cb7,_0x12b884,_0x5aedfb[_0x528eff+0x1]);}}return this['_resolveDescriptionItems'](_0xc90cb7);}['registerDescriptionCallback'](_0x5b071c){this['_customCallbacks']['push'](_0x5b071c);}['registerElementLabel'](_0x3aa464,_0x231c32,_0x8eb9f=_0x4d4930['normal']){'function'==typeof _0x3aa464?_0x4fdd17(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3aa464,'label':_0x231c32,'priority':_0x8eb9f}):this['_itemLabels']['set'](_0x3aa464,_0x231c32);}['registerAttributeLabel'](_0x1846b2,_0x5a5859){this['_attributeLabels']['set'](_0x1846b2,_0x5a5859);}['getItemLabel'](_0xb7cc95,_0x375507=0x1){let _0x158f95;for(const _0x25b274 of this['_itemLabelsCallbacks'])if(_0x25b274['matchingCallback'](_0xb7cc95)){_0x158f95=_0x25b274['label'];break;}return _0x158f95||(_0x158f95=this['_itemLabels']['get'](_0xb7cc95['name'])),_0x158f95?_0x158f95(_0x375507):0x1!==_0x375507?_0x375507+'\x20'+_0xb7cc95['name']+'s':''+_0xb7cc95['name'];}['_addDescriptionItems'](_0x161ebe,_0x550968){const _0x4e9f84=_0x550968['getFirstRange']()['getWalker'](),_0x216160='insertion'==_0x550968['type']?'add':'remove';for(const _0x3da589 of _0x4e9f84){const _0x4924c9=_0x3da589['item'],_0x238df7=_0x161ebe[_0x161ebe['length']-0x1];if(_0x4924c9['is']('$textProxy'))_0x238df7&&_0x238df7['type']['indexOf']('Container')>-0x1&&_0x161ebe['pop'](),_0x238df7&&'text'==_0x238df7['type']?_0x238df7[_0x216160]+=_0x4924c9['data']:_0x161ebe['push']({'type':'text','add':'add'==_0x216160?_0x4924c9['data']:'','remove':'remove'==_0x216160?_0x4924c9['data']:''});else{if(this['_schema']['isObject'](_0x4924c9)){const _0x4ee052=_0x4924c9;if(_0x238df7&&_0x238df7['type']['indexOf']('Container')>-0x1&&_0x161ebe['pop'](),'elementEnd'==_0x3da589['type'])continue;_0x238df7&&_0x238df7['type']==_0x216160+'Object'&&_0x238df7['element']['name']==_0x4ee052['name']?_0x238df7['quantity']++:_0x161ebe['push']({'type':_0x216160+'Object','element':_0x4ee052,'quantity':0x1}),_0x4e9f84['skip'](_0x52713a=>!('elementEnd'==_0x52713a['type']&&_0x52713a['item']==_0x4924c9));}else{if(this['_schema']['checkChild'](_0x4924c9,'$text')||_0x4924c9['is']('element','softBreak')){const _0x4f6710=_0x4924c9;if('add'==_0x216160&&'elementStart'==_0x3da589['type']||'remove'==_0x216160&&'elementEnd'==_0x3da589['type'])continue;if(_0x238df7&&-0x1==_0x238df7['type']['indexOf']('Container')){'text'==_0x238df7['type']&&(_0x238df7[_0x216160]+='\x0a');continue;}let _0x17fe89;if(_0x17fe89='add'==_0x216160?_0x4f6710['nextSibling']&&!this['_schema']['isObject'](_0x4f6710['nextSibling'])?_0x4f6710['nextSibling']:null:_0x4f6710['previousSibling']&&!this['_schema']['isObject'](_0x4f6710['previousSibling'])?_0x4f6710['previousSibling']:null,_0x4f6710['isEmpty']||_0x17fe89&&_0x17fe89['isEmpty']){const _0x1161ed=_0x17fe89&&_0x17fe89['isEmpty']?_0x17fe89:_0x4f6710;_0x238df7&&_0x238df7['type']==_0x216160+'EmptyContainer'&&_0x238df7['element']['name']==_0x1161ed['name']?_0x238df7['quantity']++:_0x161ebe['push']({'type':_0x216160+'EmptyContainer','element':_0x1161ed,'quantity':0x1});}else _0x161ebe['push']({'type':_0x216160+'Container','element':_0x4f6710});}}}}}['_resolveDescriptionItems'](_0x2fbac0){const _0x91b9ac=this['_locale'],_0x473ecf=[],_0x408831=[],_0x1c4c24=[];for(const _0x58f5bd of _0x2fbac0)switch(_0x58f5bd['type']){case'text':if(_0x58f5bd['add']=_0x58f5bd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x58f5bd['remove']=_0x58f5bd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x58f5bd['add']&&''!=_0x58f5bd['remove']){_0x473ecf['push']({'type':'replace','content':o(_0x91b9ac,'REPLACE_TEXT',['\x22'+_0x58f5bd['remove']+'\x22','\x22'+_0x58f5bd['add']+'\x22'])});continue;}if(null!=_0x58f5bd['add']['match'](/^ +$/)){_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Insert:*\x20%0',o(_0x91b9ac,'ELEMENT_SPACE',_0x58f5bd['add']['length']))});continue;}if(null!=_0x58f5bd['remove']['match'](/^ +$/)){_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Remove:*\x20%0',o(_0x91b9ac,'ELEMENT_SPACE',_0x58f5bd['remove']['length']))});continue;}if(''!=_0x58f5bd['add']){_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Insert:*\x20%0','\x22'+_0x58f5bd['add']+'\x22')});continue;}_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Remove:*\x20%0','\x22'+_0x58f5bd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Insert:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Remove:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'addContainer':_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Split:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'removeContainer':_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Merge:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'addFormat':_0x408831['push'](_0x58f5bd['key']);continue;case'removeFormat':_0x1c4c24['push'](_0x58f5bd['key']);continue;default:_0x473ecf['push'](_0x58f5bd);}if(_0x408831['length']){const _0x2f3c05=_0x408831['map'](_0xaa7341=>this['_attributeLabels']['has'](_0xaa7341)?this['_attributeLabels']['get'](_0xaa7341):_0xaa7341)['join'](',\x20');_0x473ecf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2f3c05)});}if(_0x1c4c24['length']){const _0x4aa409=_0x1c4c24['map'](_0x248508=>this['_attributeLabels']['has'](_0x248508)?this['_attributeLabels']['get'](_0x248508):_0x248508)['join'](',\x20');_0x473ecf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4aa409)});}return _0x473ecf;}['_handleCustomCallbackDescription'](_0x23ce79){for(const _0x2e2b9a of this['_customCallbacks']){const _0x21e2c5=_0x2e2b9a(_0x23ce79);if(_0x21e2c5&&'type'in _0x21e2c5)return _0x21e2c5;}}['_handleAttributeSuggestionDescription'](_0x4e0220,_0x122447){const _0x5014cc=_0x122447['data'],_0x1c0023=void 0x0===_0x5014cc['newValue']?'removeFormat':'addFormat';_0x4e0220['push']({'type':_0x1c0023,'key':_0x5014cc['key']});}['_handleRenameSuggestionDescription'](_0x3d5511,_0x42ba48){_0x3d5511['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x42ba48['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x29dcf3,_0x35633e,_0x49890f){if(this['_addDescriptionItems'](_0x29dcf3,_0x35633e),_0x49890f&&_0x49890f['getFirstRange']()&&!_0x35633e['getFirstRange']()['end']['isEqual'](_0x49890f['getFirstRange']()['start'])){const _0x11a4b0=_0x29dcf3[_0x29dcf3['length']-0x1],_0x15f594='insertion'==_0x35633e['type']?'add':'remove';_0x11a4b0&&'text'==_0x11a4b0['type']&&(_0x11a4b0[_0x15f594]+='\x0a');}}}class V extends _0x4be19b{['afterInit'](){const _0x334fc8=this['editor'],_0x2526e8=_0x334fc8['plugins']['get']('TrackChangesEditing');_0x334fc8['commands']['get']('showAIAssistant')&&_0x2526e8['enableCommand']('showAIAssistant');}}class F extends _0x4be19b{['afterInit'](){const _0x50413d=this['editor'],_0x5acf58=_0x50413d['plugins']['get']('TrackChangesEditing');_0x50413d['commands']['get']('toggleAi')&&_0x5acf58['enableCommand']('toggleAi');}}class G extends _0x4be19b{['afterInit'](){const _0x4706fb=this['editor'],_0x59b0ae=_0x4706fb['plugins']['get']('TrackChangesEditing');_0x4706fb['commands']['get']('aiQuickAction')&&_0x59b0ae['enableCommand']('aiQuickAction');}}class L extends _0x4be19b{['afterInit'](){const _0x1f7532=this['editor'],_0x3528bc=_0x1f7532['locale'];if(!_0x1f7532['plugins']['has']('AlignmentEditing'))return;const _0x19abd3=_0x1f7532['plugins']['get']('TrackChangesEditing');_0x19abd3['enableDefaultAttributesIntegration']('alignment'),_0x19abd3['registerBlockAttribute']('alignment'),_0x19abd3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3528bc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2817f2=this['editor'],_0x43844e=_0x2817f2['locale'];_0x2817f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x483405=>{if('formatBlock'!=_0x483405['type'])return;const {data:_0xa63cb7}=_0x483405;if(_0xa63cb7&&'alignment'==_0xa63cb7['commandName']){const _0xaf49d2=_0xa63cb7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x43844e,'*Format:*\x20%0',function(_0xaee255){switch(_0xaee255){case'left':return o(_0x43844e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x43844e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x43844e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x43844e,'FORMAT_JUSTIFY_TEXT');}}(_0xaf49d2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x4be19b{['afterInit'](){const _0x45f865=this['editor'],_0x334d5f=_0x45f865['plugins']['get']('TrackChangesEditing'),_0x5ee9cf=_0x45f865['locale'];for(const _0x15b59c of ti){if(!_0x45f865['plugins']['has'](_0x15b59c))continue;const _0x3ebccb=_0x15b59c['slice'](0x0,-0x7)['toLowerCase'](),_0x5f76a0='FORMAT_'+_0x3ebccb['toUpperCase']();_0x334d5f['enableDefaultAttributesIntegration'](_0x3ebccb),_0x334d5f['registerInlineAttribute'](_0x3ebccb),_0x334d5f['descriptionFactory']['registerAttributeLabel'](_0x3ebccb,o(_0x5ee9cf,_0x5f76a0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597287=this['editor'],_0x333cc4=_0x597287['locale'],_0x5abff2=_0x597287['plugins']['get']('TrackChangesEditing');function _0x1cba67(_0x1d0718,_0x4f56d3){_0x5abff2['descriptionFactory']['registerDescriptionCallback'](_0x5c0ce1=>{if('formatInline'!=_0x5c0ce1['type'])return;const {data:_0x3c1ba8}=_0x5c0ce1;return _0x3c1ba8&&_0x3c1ba8['commandName']===_0x1d0718?_0x3c1ba8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x333cc4,'*Format:*\x20%0',_0x4f56d3)}:{'type':'format','content':o(_0x333cc4,'*Remove\x20format:*\x20%0',_0x4f56d3)}:void 0x0;});}_0x1cba67('bold',o(_0x333cc4,'FORMAT_BOLD')),_0x1cba67('italic',o(_0x333cc4,'FORMAT_ITALIC')),_0x1cba67('underline',o(_0x333cc4,'FORMAT_UNDERLINE')),_0x1cba67('code',o(_0x333cc4,'FORMAT_CODE')),_0x1cba67('strikethrough',o(_0x333cc4,'FORMAT_STRIKETHROUGH')),_0x1cba67('subscript',o(_0x333cc4,'FORMAT_SUBSCRIPT')),_0x1cba67('superscript',o(_0x333cc4,'FORMAT_SUPERSCRIPT'));}}class K extends _0x4be19b{['afterInit'](){const _0x53b9df=this['editor'],_0x2894f0=_0x53b9df['locale'];if(!_0x53b9df['plugins']['has']('BlockQuoteEditing'))return;const _0x7f750c=_0x53b9df['plugins']['get']('TrackChangesEditing'),_0x7a58d5=this['editor']['commands']['get']('blockQuote');_0x7f750c['enableCommand']('blockQuote',(_0x438708,_0x1a98cd={})=>{const _0x5f3da2=this['editor']['model']['document']['selection'],_0x59d7ab=_0x1a98cd&&void 0x0!==_0x1a98cd['forceValue']?_0x1a98cd['forceValue']:!_0x7a58d5['value'];let _0x5c7177=[];if(_0x59d7ab){const _0x747054=Array['from'](_0x5f3da2['getSelectedBlocks']())['filter'](_0x74509a=>oo(_0x74509a)||function(_0x5eec3b,_0x50011c){const _0x37558e=_0x50011c['checkChild'](_0x5eec3b['parent'],'blockQuote'),_0x593961=_0x50011c['checkChild'](['$root','blockQuote'],_0x5eec3b);return _0x37558e&&_0x593961;}(_0x74509a,this['editor']['model']['schema']));_0x5c7177=to(_0x747054,_0x53b9df['model']);}else{const _0x16377e=Array['from'](_0x5f3da2['getSelectedBlocks']())['filter'](_0x59101d=>oo(_0x59101d));_0x5c7177=to(_0x16377e,_0x53b9df['model']);}_0x53b9df['model']['change'](()=>{for(const _0x39aa04 of _0x5c7177)_0x7f750c['markBlockFormat'](_0x39aa04,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x59d7ab}]});});}),_0x7f750c['descriptionFactory']['registerDescriptionCallback'](_0x39bb8d=>{const {data:_0x56f717}=_0x39bb8d;if(_0x56f717&&'blockQuote'==_0x56f717['commandName']){const _0x67c5e4=o(_0x2894f0,'ELEMENT_BLOCK_QUOTE');return _0x56f717['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2894f0,'*Set\x20format:*\x20%0',_0x67c5e4)}:{'type':'format','content':o(_0x2894f0,'*Remove\x20format:*\x20%0',_0x67c5e4)};}});}}function oo(_0x5364a7){return'blockQuote'==_0x5364a7['parent']['name'];}class q extends _0x4be19b{['afterInit'](){const _0x3e939c=this['editor'],_0x3ccecb=_0x3e939c['locale'],_0x353f87=_0x3e939c['plugins']['get']('TrackChangesEditing');_0x3e939c['plugins']['has']('BookmarkEditing')&&(_0x353f87['enableCommand']('insertBookmark'),_0x353f87['enableDefaultAttributesIntegration']('updateBookmark'),_0x353f87['registerBlockAttribute']('bookmarkId'),_0x353f87['descriptionFactory']['registerDescriptionCallback'](_0x259c6c=>{if('insertion'!=_0x259c6c['type']&&'deletion'!=_0x259c6c['type']&&'attribute'!=_0x259c6c['type'])return;const _0x13cc3e=_0x259c6c['getContainedElement']();if(null==_0x13cc3e)return;if(!_0x13cc3e['is']('element','bookmark'))return;const _0x4d8ce2=_0x13cc3e['getAttribute']('bookmarkId');if('insertion'==_0x259c6c['type'])return{'type':'insertion','content':o(_0x3ccecb,'*Insert:*\x20%0','\x22'+_0x4d8ce2+'\x22\x20'+o(_0x3ccecb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x259c6c['type'])return{'type':'deletion','content':o(_0x3ccecb,'*Remove:*\x20%0','\x22'+_0x4d8ce2+'\x22\x20'+o(_0x3ccecb,'ELEMENT_BOOKMARK'))};const {data:_0x4c5119}=_0x259c6c;if(!_0x4c5119||'bookmarkId'!=_0x4c5119['key'])return;return{'type':'format','content':o(_0x3ccecb,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c5119['newValue']+'\x22')};}));}}class H extends _0x4be19b{['afterInit'](){const _0x293f3f=this['editor'];_0x293f3f['plugins']['has']('CaseChange')&&(_0x293f3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x293f3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x293f3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x4be19b{['afterInit'](){const _0x570b75=this['editor'];_0x570b75['commands']['get']('ckbox')&&_0x570b75['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x4be19b{['afterInit'](){const _0x337df7=this['editor'];if(!_0x337df7['plugins']['has']('CodeBlock'))return;const _0x5e02d6=_0x337df7['plugins']['get']('TrackChangesEditing'),_0x4ccd9f=_0x337df7['locale'],_0x178429=_0x337df7['config']['get']('codeBlock')['languages'],_0xd69467=_0x337df7['commands']['get']('codeBlock');_0x5e02d6['enableCommand']('indentCodeBlock'),_0x5e02d6['enableCommand']('outdentCodeBlock'),_0x5e02d6['enableCommand']('codeBlock',(_0x3e6f8f,_0x964ac5={})=>{const _0x55d6ef=_0x337df7['model'],_0x407b9f=_0x337df7['model']['document']['selection'],_0x4de3c3=_0x964ac5&&void 0x0!==_0x964ac5['forceValue']?_0x964ac5['forceValue']:!_0xd69467['value'];let _0x361cbe;_0x964ac5['language']||(_0x964ac5['language']=_0x178429[0x0]['language']),_0x361cbe=_0x4de3c3?Array['from'](_0x407b9f['getSelectedBlocks']())['filter'](_0x3867e8=>co(_0x3867e8)||function(_0x690f79,_0x1e3d19){if(_0x690f79['is']('rootElement')||_0x1e3d19['isLimit'](_0x690f79))return!0x1;return _0x1e3d19['checkChild'](_0x690f79['parent'],'codeBlock');}(_0x3867e8,_0x55d6ef['schema'])):Array['from'](_0x407b9f['getSelectedBlocks']())['filter'](_0x164ba0=>co(_0x164ba0));const _0x10526d=to(_0x361cbe,_0x55d6ef);_0x55d6ef['change'](()=>{for(const _0x1bb74a of _0x10526d)_0x5e02d6['markBlockFormat'](_0x1bb74a,{'commandName':'codeBlock','commandParams':[{..._0x964ac5,'forceValue':_0x4de3c3}],'formatGroupId':'blockName'});});}),(_0x5e02d6['descriptionFactory']['registerElementLabel']('codeBlock',_0x5d4522=>o(_0x4ccd9f,'ELEMENT_CODE_BLOCK',_0x5d4522)),_0x5e02d6['descriptionFactory']['registerDescriptionCallback'](_0x1e36ad=>{if('formatBlock'!=_0x1e36ad['type'])return;const _0x1fc244=_0x4ccd9f['t'],{data:_0x49e9e3}=_0x1e36ad;if(!_0x49e9e3||'codeBlock'!=_0x49e9e3['commandName'])return;const _0x1646d1=_0x49e9e3['commandParams'][0x0]['language'],_0x4d11a3=_0x1fc244(_0x178429['find'](_0x14387b=>_0x14387b['language']===_0x1646d1)['label'])['toLowerCase']();return _0x49e9e3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ccd9f,'*Set\x20format:*\x20%0',o(_0x4ccd9f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4d11a3+')')}:{'type':'format','content':o(_0x4ccd9f,'*Remove\x20format:*\x20%0',o(_0x4ccd9f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5ad3d4){return'codeBlock'==_0x5ad3d4['name'];}class Q extends _0x4be19b{['afterInit'](){const _0x3a8287=this['editor'];if(!_0x3a8287['plugins']['has']('CommentsEditing'))return;_0x3a8287['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x44eb2e,_0x141a53,_0x5b5711){const _0x9765b3=[];for(const _0x3a0d34 of _0x141a53['getItems']())_0x3a0d34['hasAttribute'](_0x44eb2e)&&_0x9765b3['push'](_0x5b5711['createRangeOn'](_0x3a0d34));return _0x9765b3;}function Ve(_0x1c8207,_0x3822d5,{showActiveMarker:_0x218a8c=!0x0}={}){const _0x12fa08=_0x1c8207['plugins']['get']('TrackChangesEditing');return(_0x39fbea,_0x206dd9,_0x3a0d13)=>{if(!_0x3a0d13['consumable']['test'](_0x206dd9['markerRange'],_0x39fbea['name']))return;const _0x2bad07=_0x206dd9['markerRange']['getWalker'](),_0x10333b=_0x206dd9['markerRange']['start'],_0x23bc7c=_0x1c8207['model']['schema'];let _0x170f81=null,_0x297311=null,_0x3df870=!0x1,_0x17fbba=!0x1;for(const _0x1f3cd1 of _0x2bad07){const _0x5b2c76=_0x1f3cd1['item'];_0x3df870=_0x3df870||_0x23bc7c['isContent'](_0x5b2c76);const _0x1a8673=_0x3a0d13['mapper']['toViewElement'](_0x5b2c76);if(_0x1a8673&&_0x1a8673['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f3cd1['type']&&(_0x23bc7c['isBlock'](_0x5b2c76)&&!_0x23bc7c['isLimit'](_0x5b2c76)&&(_0x5b2c76['nextSibling']||_0x10333b['isAtEnd']?_0x170f81&&_0x170f81['parent']==_0x5b2c76||(_0x170f81=_0x5b2c76,_0x21cce4(_0x1f3cd1['previousPosition']),_0x17fbba=!0x0):_0x297311=_0x297311||_0x1f3cd1['previousPosition']));}function _0x21cce4(_0x528b10){const {id:_0x404667,authorId:_0x24de3c}=_0x12fa08['_splitMarkerName'](_0x206dd9['markerName']),_0x48bf6e=_0x3a0d13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3822d5,'data-suggestion':_0x404667,'data-author-id':_0x24de3c}),_0x16976b=_0x3a0d13['mapper']['toViewPosition'](_0x528b10);_0x218a8c&&_0x12fa08['activeMarkers']['includes'](_0x206dd9['markerName'])&&_0x3a0d13['writer']['addClass']('ck-suggestion-marker--active',_0x48bf6e),_0x3a0d13['writer']['insert'](_0x16976b,_0x48bf6e),_0x3a0d13['mapper']['bindElementToMarker'](_0x48bf6e,_0x206dd9['markerName']);}_0x3df870||_0x17fbba||!_0x297311||_0x21cce4(_0x297311);};}class X extends _0x4be19b{static get['requires'](){return[_0x3548ba];}['init'](){const _0x3f791e=this['editor'],_0x14bf7c=_0x3f791e['plugins']['get']('TrackChangesEditing');_0x14bf7c['enableCommand']('delete');const _0x1c4697=_0x3f791e['commands']['get']('deleteForward');_0x14bf7c['enableCommand']('deleteForward',(_0x1ba357,_0x3e1a94={})=>{const _0x2c24d2=_0x3f791e['model']['createSelection'](_0x3f791e['model']['document']['selection']);_0x2c24d2['isCollapsed']&&_0x3f791e['model']['modifySelection'](_0x2c24d2,{'direction':'forward','unit':_0x3e1a94['unit']});const _0x4e46a5=_0x2c24d2['getFirstRange'](),_0x9d8530=_0x5c6c0b['fromRange'](_0x4e46a5);let _0x2c4879;_0x1ba357(_0x3e1a94),_0x2c4879='$graveyard'==_0x9d8530['root']['rootName']?_0x3f791e['model']['createRange'](_0x4e46a5['start']):_0x3f791e['model']['createRange'](_0x9d8530['start'],_0x9d8530['end']),_0x9d8530['detach'](),_0x3f791e['model']['enqueueChange'](_0x1c4697['buffer']['batch'],_0x1937c8=>{_0x1c4697['buffer']['lock'](),_0x1937c8['setSelection'](_0x1937c8['createRange'](_0x2c4879['end'])),_0x1c4697['buffer']['unlock']();});}),_0x3f791e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x3f791e,'merge'),{'priority':'high'}),_0x3f791e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40c126,_0x5ecc0b,_0x1270cb)=>{_0x1270cb['options']['showSuggestionHighlights']&&Ve(_0x3f791e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x40c126,_0x5ecc0b,_0x1270cb);},{'priority':'high'}),_0x3f791e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x14fe0f,_0x4815bb,_0x47f5ee)=>{const _0x41fca2=_0x47f5ee['mapper']['markerNameToElements'](_0x4815bb['markerName']);if(_0x41fca2){for(const _0x137e84 of _0x41fca2)_0x137e84['is']('uiElement')&&(_0x47f5ee['mapper']['unbindElementFromMarkerName'](_0x137e84,_0x4815bb['markerName']),_0x47f5ee['writer']['remove'](_0x137e84));}},{'priority':'high'});}}class Y extends _0x4be19b{['afterInit'](){const _0x568dc2=this['editor'];if(!_0x568dc2['plugins']['has']('ListEditing'))return;const _0x942926=_0x568dc2['locale'],_0x28bbee=_0x568dc2['plugins']['get']('TrackChangesEditing'),_0x2d8fbb=_0x568dc2['plugins']['has']('TodoListEditing'),_0x5c960b=!!_0x568dc2['config']['get']('list.multiBlock');function _0x360617(_0xf5496d){return{'type':'format','content':''+o(_0x942926,'*Set\x20format:*\x20%0',_0xf5496d)};}function _0x1d6dd4(_0x3bb72b){return{'type':'format','content':''+o(_0x942926,'*Remove\x20format:*\x20%0',_0x3bb72b)};}_0x28bbee['enableDefaultAttributesIntegration']('numberedList'),_0x28bbee['enableDefaultAttributesIntegration']('bulletedList'),_0x28bbee['enableDefaultAttributesIntegration']('customNumberedList'),_0x28bbee['enableDefaultAttributesIntegration']('customBulletedList'),_0x28bbee['enableDefaultAttributesIntegration']('indentList'),_0x28bbee['enableDefaultAttributesIntegration']('outdentList'),_0x28bbee['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x28bbee['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x28bbee['registerBlockAttribute']('listItemId'),_0x28bbee['registerBlockAttribute']('listType'),_0x28bbee['registerBlockAttribute']('listIndent'),_0x5c960b&&(_0x28bbee['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x28bbee['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2d8fbb&&(_0x28bbee['enableDefaultAttributesIntegration']('todoList'),_0x28bbee['enableDefaultAttributesIntegration']('checkTodoList'),_0x28bbee['registerBlockAttribute']('todoListChecked'),_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x3b3a93=>{const {data:_0x4f08aa}=_0x3b3a93;if(_0x4f08aa&&'todoListChecked'==_0x4f08aa['key'])return{'type':'format','content':_0x4f08aa['newValue']?o(_0x942926,'*Check\x20item*'):o(_0x942926,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x9a2b43=>{if(_0x9a2b43['batch']['isUndo'])return!0x1;let _0x532a9f=!0x1;const _0x4fe754=_0x28bbee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11b76f=>'todoListChecked'===_0x28bbee['_getAttributeKey'](_0x11b76f));for(const _0x39359a of _0x4fe754){'todo'!=_0x39359a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x28bbee['_findSuggestions'](_0x39359a['getFirstRange'](),'attribute')['find'](_0x4d4c66=>'listType'===_0x28bbee['_getAttributeKey'](_0x4d4c66['suggestion']))||(_0x9a2b43['removeMarker'](_0x39359a['getFirstMarker']()),_0x532a9f=!0x0));}return _0x532a9f;})),_0x28bbee['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x942926,'FORMAT_INDENT'));const _0x3bc8bf={'type':'format','content':''};_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x20637e=>{const {data:_0x279b0a}=_0x20637e;if(!_0x279b0a||'listType'!=_0x279b0a['key'])return;let _0x47786d=_0x20637e['head'];for(;_0x47786d;){if(_0x47786d['data']&&(('listStyle'==_0x47786d['data']['key']||'listMarkerStyle'==_0x47786d['data']['key'])&&(_0x47786d['data']['newValue']&&'default'!=_0x47786d['data']['newValue']||'default'!=_0x47786d['data']['oldValue']&&!_0x279b0a['newValue'])||!_0x5c960b&&_0x47786d['data']['key']==m))return _0x3bc8bf;_0x47786d=_0x47786d['next'];}if(null==_0x279b0a['newValue'])switch(_0x279b0a['oldValue']){case'bulleted':return _0x1d6dd4(o(_0x942926,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6dd4(o(_0x942926,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6dd4(o(_0x942926,'ELEMENT_TODO_LIST'));}switch(_0x279b0a['newValue']){case'bulleted':return _0x360617(o(_0x942926,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x360617(o(_0x942926,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x360617(o(_0x942926,'ELEMENT_TODO_LIST'));}}),_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x13b36c=>{const {data:_0x52959c}=_0x13b36c;if(_0x52959c&&'listIndent'==_0x52959c['key'])return null==_0x52959c['newValue']||null==_0x52959c['oldValue']&&0x0==_0x52959c['newValue']?_0x3bc8bf:void 0x0;}),_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x56dfef=>{if('attribute'!=_0x56dfef['type'])return;const {data:_0x2b99a4}=_0x56dfef;if(!_0x2b99a4||'listItemId'!=_0x2b99a4['key'])return;const _0x325c5d=Be(_0x56dfef);return'newValue'==_0x325c5d?{'type':'format','content':o(_0x942926,'*Merge:*\x20list\x20item')}:'oldValue'==_0x325c5d?{'type':'format','content':o(_0x942926,'*Split:*\x20list\x20item')}:_0x3bc8bf;}),_0x568dc2['model']['document']['registerPostFixer'](_0x16eff1=>this['listItemIdFixer'](_0x16eff1)),_0x568dc2['model']['document']['registerPostFixer'](_0x2dcef0=>this['noTrackChangesFixer'](_0x2dcef0)),_0x568dc2['model']['document']['on']('change:data',(_0x1bf852,_0x3f24d9)=>{if(_0x3f24d9['isUndo']||!_0x3f24d9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2b8d9c){if(_0x2b8d9c['batch']['isUndo']||!_0x2b8d9c['batch']['isLocal'])return!0x1;let _0x4f9470=!0x1;const _0x5b5663=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5915f6=>_0x5915f6['data']&&'listItemId'==_0x5915f6['data']['key'])['filter'](_0x4103ee=>_0x4103ee['data']['newValue']&&_0x4103ee['data']['oldValue']);for(const _0x3367b2 of _0x5b5663)Be(_0x3367b2)||(_0x2b8d9c['removeMarker'](_0x3367b2['getFirstMarker']()),_0x4f9470=!0x0);return _0x4f9470;}['noTrackChangesFixer'](_0x373527){if(_0x373527['batch']['isUndo']||!_0x373527['batch']['isLocal'])return!0x1;const _0x2eacae=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2eacae['trackChangesCommand']['value'])return!0x1;let _0x4b1517=!0x1;const _0x2fb762=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xcc101b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x13f4c8=>'attribute'==_0x13f4c8['type'])['filter'](_0x15ec83=>_0x2fb762['includes'](_0x15ec83['attributeKey']));if(0x0==_0xcc101b['length'])return _0x4b1517;for(const _0x3d6e15 of _0xcc101b){const _0x49968e=_0x2eacae['_findSuggestions'](_0x3d6e15['range'],'attribute')['filter'](_0x5bd2db=>!_0x5bd2db['meta']['isNextTo'])['map'](_0x35699b=>_0x35699b['suggestion'])['filter'](_0x2cb4e2=>{const _0x382ffd=_0x2eacae['_getAttributeKey'](_0x2cb4e2);return _0x2fb762['includes'](_0x382ffd);});if(_0x49968e['length']){for(const _0x5bfac0 of _0x49968e)_0x373527['removeMarker'](_0x5bfac0['getFirstMarker']());_0x4b1517=!0x0;}}return _0x4b1517;}['assureChains'](){const _0x423668=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d2e86=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c5554;const _0x155949=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6e5c09=>{if(_0x6e5c09['data']['oldRange']||!_0x6e5c09['data']['newRange'])return null;if(!_0x6e5c09['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x380834}=_0x423668['_splitMarkerName'](_0x6e5c09['name']);if(!_0x423668['hasSuggestion'](_0x380834))return null;const _0x107189=_0x423668['getSuggestion'](_0x380834);return _0x2d2e86['includes'](_0x107189['data']['key']);})['map'](_0x42e2a8=>{const {id:_0x1b1968}=_0x423668['_splitMarkerName'](_0x42e2a8['name']),_0xdf485c=_0x423668['getSuggestion'](_0x1b1968);return _0x1c5554=_0xdf485c['attributes']['groupId'],_0xdf485c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x155949['size'])return;const _0x4ca7de=_0x423668['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35ea17=>'attribute'==_0x35ea17['type']&&_0x35ea17['data']&&_0x2d2e86['includes'](_0x35ea17['data']['key'])&&_0x35ea17['attributes']['groupId']!=_0x1c5554)['map'](_0x2a0712=>({'listItem':_0x2a0712['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2a0712['attributes']['groupId']})),_0x5c7f0f=new Set();for(const {groupId:_0x1bc47b,listItem:_0x33f128}of _0x4ca7de)_0x155949['has'](_0x33f128)&&_0x5c7f0f['add'](_0x1bc47b);for(const _0x23c6ac of _0x423668['getSuggestions']())_0x5c7f0f['has'](_0x23c6ac['attributes']['groupId'])&&_0x23c6ac['setAttribute']('groupId',_0x1c5554);}['_supportLegacySuggestions'](){const _0x3fa871=this['editor'],_0x2f13d2=_0x3fa871['locale'],_0x151081=_0x3fa871['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x151081['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x150d43,_0x3ed0de){const _0x14fd2d=[];for(let _0x489567 of _0x150d43)_0x489567['start']['nodeAfter']===_0x489567['end']['parent']&&(_0x489567=_0x3fa871['model']['createRange'](_0x3fa871['model']['createPositionAt'](_0x489567['start']['nodeAfter'],0x0))),_0x14fd2d['push'](_0x489567);_0x3fa871['model']['change'](_0xca6f06=>{const _0x440783=_0x3fa871['model']['document']['selection'],_0x4e3b7c=Array['from'](_0x440783['getRanges']())['map'](_0x386a6b=>_0x5c6c0b['fromRange'](_0x386a6b));_0xca6f06['setSelection'](_0x14fd2d),_0x3fa871['commands']['get'](_0x3ed0de['commandName'])['refresh'](),_0x3ed0de['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3fa871['execute'](_0x3ed0de['commandName'],..._0x3ed0de['commandParams']),_0xca6f06['setSelection'](_0x4e3b7c);for(const _0x11bfd2 of _0x4e3b7c)_0x11bfd2['detach']();});}),_0x151081['descriptionFactory']['registerElementLabel'](function(_0x42b137){const _0x1cf3ff=!_0x3fa871['model']['schema']['isObject'](_0x42b137),_0x516f51=_0x42b137['previousSibling'],_0x17bc9d=_0x42b137['nextSibling'],_0x30f9fa=_0x42b137['getAttribute']('listItemId'),_0x5711b4=!_0x516f51||_0x516f51['getAttribute']('listItemId')!==_0x30f9fa,_0x59a40b=!_0x17bc9d||_0x17bc9d['getAttribute']('listItemId')!==_0x30f9fa;return _0x1cf3ff&&Boolean(_0x30f9fa)&&_0x5711b4&&_0x59a40b;},_0x11c72e=>o(_0x2f13d2,'ELEMENT_LIST_ITEM',_0x11c72e));}['_registerLegacyDescription'](){const _0x1dec16=this['editor'],_0x2ee402=_0x1dec16['locale'];function _0xa01c85(_0x56ac06){const _0x280779=_0x1dec16['commands']['get']('bulletedList')['value'],_0x39e050=_0x1dec16['commands']['get']('numberedList')['value'];return'numberedList'===_0x56ac06?_0x280779:_0x39e050;}_0x1dec16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2620c0){if('formatBlock'!=_0x2620c0['type'])return;const {data:_0x80b7fe}=_0x2620c0;if(!_0x80b7fe)return;let _0x5f2b0b,_0x3b7b8d,_0x4c8d7d,_0x59d58b;switch(_0x80b7fe['commandName']){case'bulletedList':_0x4c8d7d=_0x80b7fe['commandParams'][0x0]['forceValue'],_0x59d58b=_0xa01c85(_0x80b7fe['commandName']),_0x5f2b0b=_0x4c8d7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59d58b&&_0x1dec16['config']['get']('list.multiBlock')||(_0x5f2b0b='*Change\x20to:*\x20%0'),_0x3b7b8d={'type':'format','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c8d7d=_0x80b7fe['commandParams'][0x0]['forceValue'],_0x59d58b=_0xa01c85(_0x80b7fe['commandName']),_0x5f2b0b=_0x4c8d7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59d58b&&_0x1dec16['config']['get']('list.multiBlock')||(_0x5f2b0b='*Change\x20to:*\x20%0'),_0x3b7b8d={'type':'format','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5f2b0b='*Indent:*\x20%0',_0x3b7b8d={'type':'format','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5f2b0b=function(_0xb69bce){const _0x54eec0=_0xb69bce['getFirstRange']();let _0x123f18=_0x54eec0['start']['nodeAfter'];for(;_0x123f18&&_0x54eec0['containsItem'](_0x123f18);){if(_0x123f18['getAttribute']('listIndent')>0x0)return!0x1;_0x123f18=_0x123f18['nextSibling'];}return!0x0;}(_0x2620c0)?o(_0x2ee402,'*Format:*\x20remove\x20from\x20%0',o(_0x2ee402,function(_0x3fc57d){return'ELEMENT_'+_0x3fc57d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2620c0))):o(_0x2ee402,'*Outdent:*\x20%0',o(_0x2ee402,'ELEMENT_LIST_ITEM')),_0x3b7b8d={'type':'format','content':_0x5f2b0b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x80b7fe['multipleBlocks']&&(_0x5f2b0b='*Merge:*\x20%0',_0x3b7b8d={'type':'deletion','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_LIST_ITEM'))});}return _0x3b7b8d;});}}function Be(_0x30cd57){let _0x3a7b54=_0x30cd57['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3a7b54;){const _0x470a3b=_0x3a7b54['getAttribute']('listItemId');if(!_0x470a3b)return!0x1;if(_0x470a3b==_0x30cd57['data']['newValue'])return'newValue';if(_0x470a3b==_0x30cd57['data']['oldValue'])return'oldValue';_0x3a7b54=_0x3a7b54['previousSibling'];}return!0x1;}class Z extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2937a7=this['editor']['config']['get']('list.properties'),_0x297423=this['editor']['plugins']['get']('TrackChangesEditing');_0x2937a7['styles']&&(_0x297423['enableDefaultAttributesIntegration']('listStyle'),_0x297423['registerBlockAttribute']('listStyle')),_0x2937a7['reversed']&&(_0x297423['enableDefaultAttributesIntegration']('listReversed'),_0x297423['registerBlockAttribute']('listReversed')),_0x2937a7['startIndex']&&(_0x297423['enableDefaultAttributesIntegration']('listStart'),_0x297423['registerBlockAttribute']('listStart'));const _0x1d95c1={'type':'format','content':''};_0x297423['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x141c99=this['editor']['locale'];_0x297423['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x141c99,'FORMAT_LIST_REVERSED')),_0x297423['descriptionFactory']['registerDescriptionCallback'](_0x5e49fa=>{const {data:_0x47d24d}=_0x5e49fa;if(_0x47d24d&&'listReversed'==_0x47d24d['key'])return null==_0x47d24d['newValue']||0x0==_0x47d24d['newValue']&&null==_0x47d24d['oldValue']?_0x1d95c1:void 0x0;}),_0x297423['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x141c99,'FORMAT_LIST_START')),_0x297423['descriptionFactory']['registerDescriptionCallback'](_0x41a8cc=>{const {data:_0x18a14f}=_0x41a8cc;if(_0x18a14f&&'listStart'==_0x18a14f['key'])return null==_0x18a14f['newValue']||0x1==_0x18a14f['newValue']&&null==_0x18a14f['oldValue']?_0x1d95c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a57c5=>{if(_0x3a57c5['batch']['isUndo'])return!0x1;let _0x3a6fa3=!0x1;const _0x1b66a1=_0x297423['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44e6c=>{const _0x585749=_0x297423['_getAttributeKey'](_0x44e6c);return'listStart'==_0x585749||'listReversed'==_0x585749;});for(const _0x177a89 of _0x1b66a1){const _0x1c7cec=_0x177a89['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1c7cec||'customNumbered'==_0x1c7cec)continue;_0x297423['_findSuggestions'](_0x177a89['getFirstRange'](),'attribute')['find'](_0x521fc4=>'listType'==_0x297423['_getAttributeKey'](_0x521fc4['suggestion']))||(_0x3a57c5['removeMarker'](_0x177a89['getFirstMarker']()),_0x3a6fa3=!0x0);}return _0x3a6fa3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b8ab0){const _0x36ba43=this['editor']['locale'],{data:_0x530a3c}=_0x5b8ab0,_0xf2250f={'type':'format','content':''};if(!_0x530a3c||'listStyle'!=_0x530a3c['key'])return;if(!_0x530a3c['oldValue'])return'default'==_0x530a3c['newValue']?_0xf2250f:{'type':'format','content':''+o(_0x36ba43,'*Set\x20format:*\x20%0',o(_0x36ba43,this['_getTranslationKeyForListStyle'](_0x530a3c['newValue'])))};if(!_0x530a3c['newValue']){if('default'==_0x530a3c['oldValue'])return _0xf2250f;let _0x4a7326=_0x5b8ab0['head'];for(;_0x4a7326;){if(_0x4a7326['data']&&'listType'==_0x4a7326['data']['key']&&_0x4a7326['data']['newValue'])return _0xf2250f;_0x4a7326=_0x4a7326['next'];}return{'type':'format','content':''+o(_0x36ba43,'*Remove\x20format:*\x20%0',o(_0x36ba43,this['_getTranslationKeyForListStyle'](_0x530a3c['oldValue'])))};}if('default'!=_0x530a3c['newValue'])return{'type':'format','content':''+o(_0x36ba43,'*Set\x20format:*\x20%0',o(_0x36ba43,this['_getTranslationKeyForListStyle'](_0x530a3c['newValue'])))};let _0x37ee0c=_0x5b8ab0['head'];for(;_0x37ee0c;){if(_0x37ee0c['data']&&'listType'==_0x37ee0c['data']['key']&&_0x37ee0c['data']['newValue']&&_0x37ee0c['data']['oldValue'])return _0xf2250f;_0x37ee0c=_0x37ee0c['next'];}return{'type':'format','content':o(_0x36ba43,'*Set\x20format:*\x20%0',o(_0x36ba43,'ELEMENT_'+_0x5b8ab0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xbfe3d8=this['editor'],_0x2f8f0d=_0xbfe3d8['locale'];_0xbfe3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467194=>{if('formatBlock'!=_0x467194['type'])return;const {data:_0x403072}=_0x467194;if(!_0x403072)return;let _0x52683d,_0x216549;switch(_0x403072['commandName']){case'listStyle':_0x52683d='*Change\x20to:*\x20%0',_0x216549={'type':'format','content':o(_0x2f8f0d,_0x52683d,o(_0x2f8f0d,this['_getTranslationKeyForListStyle'](_0x403072['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52683d=_0x403072['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x216549={'type':'format','content':o(_0x2f8f0d,_0x52683d)};break;case'listStart':_0x52683d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x216549={'type':'format','content':o(_0x2f8f0d,_0x52683d,_0x403072['commandParams'][0x0]['startIndex'])};}return _0x216549;});}['_getTranslationKeyForListStyle'](_0x26f7c0){return'ELEMENT_'+function(_0xdfb947){if(Re['includes'](_0xdfb947))return'bulleted';if(De['includes'](_0xdfb947))return'numbered';return null;}(_0x26f7c0)['toUpperCase']()+'_LIST_'+_0x26f7c0['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x4be19b{['afterInit'](){const _0x5a47d6=this['editor'];_0x5a47d6['commands']['get']('emoji')&&_0x5a47d6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x4be19b{static get['requires'](){return[_0x4fba86];}['init'](){const _0x5b0b73=this['editor'],_0x53cace=_0x5b0b73['plugins']['get']('TrackChangesEditing'),_0x5d5adb=_0x5b0b73['commands']['get']('enter');_0x53cace['enableCommand']('enter',()=>{_0x5b0b73['model']['change'](_0x14beb4=>{const _0x4dcdea=_0x5b0b73['model']['document']['selection'],_0x439d99=_0x4dcdea['getFirstPosition'](),_0x44a343=_0x5c6c0b['fromRange'](_0x4dcdea['getFirstRange']());if(_0x5d5adb['enterBlock'](_0x14beb4)){const _0x2bcfa1=_0x5b0b73['model']['createPositionAt'](_0x439d99['parent']['nextSibling'],0x0),_0x3c0cdd=_0x14beb4['createRange'](_0x439d99,_0x2bcfa1);_0x53cace['markInsertion'](_0x3c0cdd);}else _0x14beb4['setSelection'](_0x14beb4['createRange'](_0x44a343['end']));_0x44a343['detach'](),_0x5d5adb['fire']('afterExecute',{'writer':_0x14beb4});});}),_0x5b0b73['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x5b0b73,'split'),{'priority':'high'}),_0x5b0b73['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e7182,_0xd23d44,_0x5e19c4)=>{const _0x4146ea=_0x5e19c4['mapper']['markerNameToElements'](_0xd23d44['markerName']);if(_0x4146ea){for(const _0x25bec7 of _0x4146ea)_0x25bec7['hasClass']('ck-suggestion-marker-split')&&(_0x5e19c4['mapper']['unbindElementFromMarkerName'](_0x25bec7,_0xd23d44['markerName']),_0x5e19c4['writer']['remove'](_0x25bec7));}},{'priority':'high'}),_0x5b0b73['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a910c,_0x49b4fe,_0x15d039)=>{_0x15d039['options']['showSuggestionHighlights']&&Ve(_0x5b0b73,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1a910c,_0x49b4fe,_0x15d039);},{'priority':'high'});}}class it extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x251e49=this['editor']['plugins']['get']('TrackChangesEditing');_0x251e49['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x251e49['enableCommand']('findNext'),_0x251e49['enableCommand']('findPrevious'),_0x251e49['enableCommand']('replace'),_0x251e49['enableCommand']('replaceAll');}['handleFindCommand'](_0x1156ad,_0x53dbf5,_0x2f5f01={}){const _0x266cdc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1156ad(_0x4da6f6=>{let _0x189c6f=('string'==typeof _0x53dbf5?_0x266cdc['findByTextCallback'](_0x53dbf5,_0x2f5f01):_0x53dbf5)(_0x4da6f6);Array['isArray'](_0x189c6f)&&(_0x189c6f={'results':_0x189c6f,'searchText':'string'==typeof _0x53dbf5?_0x53dbf5:''});const _0x5e6bea=_0x189c6f['results']['filter'](_0x23b98f=>!0x1===this['_isInDeletionRange'](_0x23b98f,_0x4da6f6['item']));return{..._0x189c6f,'results':_0x5e6bea};},_0x2f5f01);}['_isInDeletionRange'](_0x5f1d0f,_0x8bfa7c){const _0x489748=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8bfa7c,_0x5f1d0f['start']),this['editor']['model']['createPositionAt'](_0x8bfa7c,_0x5f1d0f['end']));for(const _0x262eb2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x489748['getIntersection'](_0x262eb2['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x4be19b{['afterInit'](){const _0xcef7d1=this['editor']['locale'],_0x45a83d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x305272,commandName:_0x5a279b}of eo)this['editor']['plugins']['has'](_0x305272)&&(_0x45a83d['enableDefaultAttributesIntegration'](_0x5a279b),_0x45a83d['registerInlineAttribute'](_0x5a279b));_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xcef7d1,'FORMAT_FONT_SIZE')),_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xcef7d1,'FORMAT_FONT_FAMILY')),_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xcef7d1,'FORMAT_FONT_COLOR')),_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xcef7d1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c9eb3=this['editor'],_0x382cb1=_0x5c9eb3['locale'];_0x5c9eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12839e=>{const _0x4a9fa9=_0x382cb1['t'];if('formatInline'!=_0x12839e['type'])return;const {data:_0x14f37d}=_0x12839e;if(null!=_0x14f37d){if('fontSize'==_0x14f37d['commandName']){const _0x18d9fc=_0x14f37d['commandParams'][0x0]['value'];if(_0x18d9fc){const _0x2d8762=_0x4a9fa9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x267958=>_0x267958['model']==_0x18d9fc)['title'])['toLowerCase']();return{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20size:*\x20%0',_0x2d8762)};}return{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x14f37d['commandName']){const _0x597bf4=_0x14f37d['commandParams'][0x0]['value'];return _0x597bf4?{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20family:*\x20%0',_0x597bf4)}:{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x14f37d['commandName']){const _0x5890e0=_0x14f37d['commandParams'][0x0]['value'];if(_0x5890e0){const _0x4e456c=_0x2eeb65(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4837e3=>_0x4837e3['model']==_0x5890e0);let _0x37e524=_0x5890e0,_0x1fa4a4='';return _0x4e456c&&(_0x37e524=_0x4e456c['label'],_0x1fa4a4=_0x4a9fa9(_0x37e524)['toLowerCase']()),{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20color:*\x20%0',_0x1fa4a4)['trim'](),'color':{'value':_0x5890e0,'title':_0x1fa4a4||_0x37e524}};}return{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x14f37d['commandName']){const _0x59eb3e=_0x14f37d['commandParams'][0x0]['value'];if(_0x59eb3e){const _0x5d6bd2=_0x2eeb65(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3bd79a=>_0x3bd79a['model']==_0x59eb3e);let _0x1b1286=_0x59eb3e,_0xa0951a='';return _0x5d6bd2&&(_0x1b1286=_0x5d6bd2['label'],_0xa0951a=_0x4a9fa9(_0x1b1286)['toLowerCase']()),{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20background\x20color:*\x20%0',_0xa0951a)['trim'](),'color':{'value':_0x59eb3e,'title':_0xa0951a||_0x1b1286}};}return{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x4be19b{['afterInit'](){const _0x671a2d=this['editor'],_0x5a5c64=_0x671a2d['plugins']['get']('TrackChangesEditing'),_0x5efc30=_0x671a2d['commands']['get']('copyFormat'),_0x5e41fc=_0x671a2d['commands']['get']('pasteFormat');_0x5efc30&&_0x5e41fc&&(_0x5a5c64['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a5c64['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d74bd=this['editor'],_0x5813cd=_0x4d74bd['locale'];_0x4d74bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a16fb=>{if('formatBlock'!=_0x1a16fb['type']&&'formatInline'!=_0x1a16fb['type'])return;const {data:_0x210913}=_0x1a16fb;if(_0x210913&&'pasteFormat'===_0x210913['commandName']){const _0x35d12e=[],_0x595b5a=_0x210913['commandParams'][0x0];for(const [_0x244f9c,_0x5a02ba]of Object['entries'](_0x595b5a))_0x35d12e['push'](ro(_0x4d74bd,_0x244f9c,_0x5a02ba));return _0x35d12e['length']?{'type':'format','content':o(_0x5813cd,'*Set\x20format\x20to:*\x20%0',_0x35d12e['join'](',\x20'))}:{'type':'format','content':o(_0x5813cd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1eae09,_0x281397,_0x5e46f1){const _0x4544e1=_0x1eae09['locale']['t'],_0x52672f=_0x281397['split'](/(?=[A-Z])/)['join']('\x20'),_0x3851bb=_0x4544e1(_0x52672f['charAt'](0x0)['toUpperCase']()+_0x52672f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e46f1)return _0x3851bb;if('fontColor'===_0x281397||'fontBackgroundColor'===_0x281397){const _0x141b9c=_0x2eeb65(_0x1eae09['config']['get']('fontColor.colors'))['find'](_0x4e9139=>_0x4e9139['model']==_0x5e46f1);return _0x3851bb+'\x20('+(_0x141b9c?_0x4544e1(_0x141b9c['label'])['toLowerCase']():_0x5e46f1)+')';}if('fontSize'===_0x281397&&isNaN(parseFloat(_0x5e46f1))){const _0x2f19e4=_0x1eae09['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1eae09['config']['get']('fontSize.options'))['find'](_0x4f976b=>_0x4f976b['model']==_0x5e46f1);return _0x3851bb+'\x20('+(_0x2f19e4?_0x4544e1(_0x2f19e4['title'])['toLowerCase']():_0x5e46f1)+')';}return _0x3851bb+'\x20('+_0x5e46f1+')';}class ot extends _0x4be19b{['_headingOptions'];['afterInit'](){const _0x5ae0b3=this['editor'];if(!_0x5ae0b3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5ae0b3['config']['get']('heading.options');const _0x599492=_0x5ae0b3['locale'],_0x3e548a=_0x5ae0b3['plugins']['get']('TrackChangesEditing');_0x3e548a['enableDefaultAttributesIntegration']('heading');for(const _0x5ac12d of this['_headingOptions'])'paragraph'!=_0x5ac12d['model']&&_0x3e548a['descriptionFactory']['registerElementLabel'](_0x5ac12d['model'],_0x39b3db=>{const _0x16b676=this['_getHeadingLevel'](_0x5ac12d['model']);return null!==_0x16b676?_0x381ee0(_0x39b3db,_0x16b676):_0x47d488(_0x39b3db,_0x5ac12d['title']);});function _0x381ee0(_0x309ee4,_0x9b12e1){return o(_0x599492,'ELEMENT_HEADING',[_0x309ee4,_0x9b12e1]);}function _0x47d488(_0x3425d9,_0x5794d7){return o(_0x599492,'ELEMENT_HEADING_CUSTOM',[_0x3425d9,_0x5794d7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3317f3=this['editor'],_0x267538=_0x3317f3['locale'];function _0x3e3d81(_0x1e592b,_0x5b4fae){return o(_0x267538,'ELEMENT_HEADING_CUSTOM',[_0x1e592b,_0x5b4fae]);}_0x3317f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed25c=>{if('formatBlock'!=_0x3ed25c['type'])return;const {data:_0x181603}=_0x3ed25c;if(_0x181603&&'heading'==_0x181603['commandName']){const _0x3bb00c=_0x181603['commandParams'][0x0]['value'],_0x136fc4=this['_getHeadingLevel'](_0x3bb00c);if(null!==_0x136fc4)return{'type':'format','content':o(_0x267538,'*Change\x20to:*\x20%0',(_0x1b38e3=0x1,_0x49d83b=_0x136fc4,o(_0x267538,'ELEMENT_HEADING',[_0x1b38e3,_0x49d83b])))};const _0x58e9c6=this['_headingOptions']['find'](_0x49b795=>_0x49b795['model']===_0x3bb00c)['title'];return{'type':'format','content':o(_0x267538,'*Change\x20to:*\x20%0',_0x3e3d81(0x1,_0x58e9c6))};}var _0x1b38e3,_0x49d83b;});}['_getHeadingLevel'](_0x4dc557){const _0x3ecaf7=_0x4dc557['match'](/^heading(\d+)/);if(_0x3ecaf7)return _0x3ecaf7[0x1];const _0x34ba16=this['_headingOptions']?.['find'](_0x434f28=>_0x434f28['model']==_0x4dc557);if(_0x34ba16&&_0x34ba16['view']){const _0x1f9e29=_0x34ba16['view'],_0x4a9856=(_0x1f9e29['name']??_0x1f9e29)['match'](/^h(\d+)/);if(_0x4a9856)return _0x4a9856[0x1];}return null;}}class rt extends _0x4be19b{['afterInit'](){const _0x984796=this['editor'];if(!_0x984796['plugins']['has']('HighlightEditing'))return;const _0x2e4cce=_0x984796['plugins']['get']('TrackChangesEditing'),_0xb60064=_0x984796['locale'];_0x2e4cce['enableDefaultAttributesIntegration']('highlight'),_0x2e4cce['registerInlineAttribute']('highlight'),_0x2e4cce['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xb60064,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11ba22=this['editor'],_0x150224=_0x11ba22['locale'];_0x11ba22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45a175=>{if('formatInline'!=_0x45a175['type'])return;const {data:_0x4527e8}=_0x45a175;if(_0x4527e8&&'highlight'==_0x4527e8['commandName']){const _0xa20e2=_0x150224['t'],_0x36ef86=_0x4527e8['commandParams'][0x0]['value'];if(_0x36ef86){const _0x3fe9a1=_0x11ba22['config']['get']('highlight.options')['find'](_0x41ea4f=>_0x41ea4f['model']==_0x36ef86),_0x521c76=_0xa20e2(_0x3fe9a1['title'])['toLowerCase']();return{'type':'format','content':o(_0x150224,'*Set\x20highlight:*\x20%0',_0x521c76),'color':{'value':_0x3fe9a1['color'],'title':_0x3fe9a1['title']}};}return{'type':'format','content':o(_0x150224,'*Remove\x20highlight*',o(_0x150224,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x4be19b{['afterInit'](){const _0x4b3b15=this['editor'];if(!_0x4b3b15['plugins']['has']('HorizontalLineEditing'))return;_0x4b3b15['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x30ebf1=_0x4b3b15['plugins']['get']('TrackChangesEditing'),_0xf3fb0c=_0x4b3b15['locale'];_0x30ebf1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1210e3=>o(_0xf3fb0c,'ELEMENT_HORIZONTAL_LINE',_0x1210e3)),_0x4b3b15['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5592bf,{writer:_0x1c5882,options:_0x5894f1})=>{if(!_0x5894f1['showSuggestionHighlights'])return null;const _0x3d5963=_0x1c5882['createContainerElement']('div'),_0x3e79dc=_0x1c5882['createEmptyElement']('hr');return _0x1c5882['addClass']('ck-horizontal-line',_0x3d5963),_0x1c5882['insert'](_0x1c5882['createPositionAt'](_0x3d5963,0x0),_0x3e79dc),_0x3d5963;},'converterPriority':'high'});}}class ct extends _0x4be19b{['afterInit'](){const _0x57e93b=this['editor'];if(!_0x57e93b['plugins']['has']('HtmlEmbed'))return;const _0x27e620=_0x57e93b['plugins']['get']('TrackChangesEditing'),_0x319ef0=_0x57e93b['locale'];_0x27e620['descriptionFactory']['registerElementLabel']('rawHtml',_0xc5c8c5=>o(_0x319ef0,'ELEMENT_HTML_EMBED',_0xc5c8c5)),_0x27e620['enableDefaultAttributesIntegration']('htmlEmbed'),_0x27e620['registerBlockAttribute']('value'),_0x27e620['descriptionFactory']['registerDescriptionCallback'](_0x5e39d3=>{if('attribute'!=_0x5e39d3['type'])return;const {data:_0x5b75bd}=_0x5e39d3;if(_0x5b75bd&&'value'==_0x5b75bd['key']&&_0x5e39d3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8e3f9c=o(_0x319ef0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x319ef0,'*Change\x20%0\x20content*',_0x8e3f9c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107470=this['editor'],_0x34ccca=_0x107470['locale'];_0x107470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5595d8=>{if('formatBlock'!=_0x5595d8['type'])return;const {data:_0x49c9bb}=_0x5595d8;if(_0x49c9bb&&'htmlEmbed'==_0x49c9bb['commandName']){const _0x3c9945=o(_0x34ccca,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x34ccca,'*Change\x20%0\x20content*',_0x3c9945)};}});}}class ut extends _0x4be19b{['afterInit'](){const _0x24ca4b=this['editor'];if(!_0x24ca4b['plugins']['has']('ImageEditing'))return;const _0x56217b=_0x24ca4b['plugins']['get']('TrackChangesEditing'),_0x4629be=_0x24ca4b['plugins']['get']('ImageUtils'),_0x147f51=_0x24ca4b['locale'];_0x56217b['enableCommand']('insertImage'),_0x56217b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1b35b8=>o(_0x147f51,'ELEMENT_IMAGE',_0x1b35b8)),_0x56217b['descriptionFactory']['registerElementLabel']('imageInline',_0x253a1c=>o(_0x147f51,'ELEMENT_INLINE_IMAGE',_0x253a1c)),_0x56217b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x147f51,'ELEMENT_CAPTION')),_0x24ca4b['plugins']['has']('ImageUploadEditing')&&_0x56217b['enableCommand']('uploadImage'),_0x24ca4b['plugins']['has']('ImageBlockEditing')&&_0x24ca4b['plugins']['has']('ImageInlineEditing')&&(_0x56217b['enableCommand']('imageTypeInline',(_0x4299ad,_0x2f8546)=>{const _0x1bbd6f=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']);_0x24ca4b['model']['change'](()=>{_0x56217b['markBlockFormat'](_0x1bbd6f,{'commandName':'imageTypeInline','commandParams':[_0x2f8546]},[],'convertBlockImageToInline');});}),_0x56217b['enableCommand']('imageTypeBlock',(_0x45ec31,_0x2ed14b)=>{_0x24ca4b['model']['change'](_0x56c609=>{let _0x1a64c8=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x2878ff=_0x56c609['createRangeOn'](_0x1a64c8);const _0xc0a542=_0x538ab7['fromPosition'](_0x2878ff['start'],'toPrevious'),_0x4cadb9=_0x538ab7['fromPosition'](_0x2878ff['end'],'toNext');_0x56217b['forceDefaultExecution'](()=>_0x45ec31(_0x2ed14b)),_0x1a64c8=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x2878ff=_0x56c609['createRangeOn'](_0x1a64c8);const _0xa86ade=_0x56c609['createRange'](_0xc0a542,_0x4cadb9);_0xc0a542['detach'](),_0x4cadb9['detach'](),_0x56217b['markBlockFormat'](_0x1a64c8,{'commandName':'imageTypeInline','commandParams':[_0x2ed14b]},[],'convertInlineImageToBlock'),_0xa86ade['start']['isBefore'](_0x2878ff['start'])&&_0x56217b['markInsertion'](_0x56c609['createRange'](_0xa86ade['start'],_0x2878ff['start']),'convertInlineImageToBlock'),_0x2878ff['end']['isBefore'](_0xa86ade['end'])&&_0x56217b['markInsertion'](_0x56c609['createRange'](_0x2878ff['end'],_0xa86ade['end']),'convertInlineImageToBlock');});}),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x56217b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x365d93])=>{const _0x2c5bbc=_0x56217b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd453d3=_0x365d93['start'],_0x3271c0=_0x365d93['end'];const _0x44be98=_0x24ca4b['model']['schema']['getNearestSelectionRange'](_0xd453d3,'backward'),_0x5eb2e2=_0x24ca4b['model']['schema']['getNearestSelectionRange'](_0x3271c0,'forward');_0x44be98['isCollapsed']&&(_0xd453d3=_0x44be98['start']),_0x5eb2e2['isCollapsed']&&(_0x3271c0=_0x5eb2e2['end']),_0x2c5bbc([_0x24ca4b['model']['createRange'](_0xd453d3,_0x3271c0)]);}),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f32b0),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f32b0)),_0x24ca4b['plugins']['has']('ImageCaptionEditing')&&(_0x56217b['enableCommand']('toggleImageCaption',(_0x3b1753,_0x241af0)=>{const _0x50cdd9=_0x24ca4b['plugins']['get']('ImageCaptionUtils');let _0x3117e5=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x52f432=_0x50cdd9['getCaptionFromImageModelElement'](_0x3117e5);_0x24ca4b['model']['change'](()=>{if(_0x52f432)return void _0x56217b['markDeletion'](_0x24ca4b['model']['createRangeOn'](_0x52f432));const _0x3750e1=_0x4629be['isBlockImage'](_0x3117e5);_0x3b1753(_0x241af0),_0x3117e5=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x52f432=_0x50cdd9['getCaptionFromImageModelElement'](_0x3117e5),_0x56217b['markInsertion'](_0x24ca4b['model']['createRangeOn'](_0x52f432),_0x3750e1?null:'imageCaption');});}),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f32b0));const _0x5c3768=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x59e576(_0x179b81,_0x40f8aa){const _0x583b36=_0x5c3768['findIndex'](({type:_0x3a2263,subType:_0x1f32a5})=>_0x179b81['type']==_0x3a2263&&_0x179b81['subType']==_0x1f32a5),_0xd3a0ac=_0x5c3768['findIndex'](({type:_0x31cb7b,subType:_0x3d6a84})=>_0x40f8aa['type']==_0x31cb7b&&_0x40f8aa['subType']==_0x3d6a84);if(_0x583b36<0x0||_0xd3a0ac<0x0)return!0x1;const _0x371d67=_0x179b81['getFirstRange'](),_0x5e41a7=_0x40f8aa['getFirstRange']();if((0x0==_0x583b36||0x1==_0x583b36)&&0x2==_0xd3a0ac&&_0x371d67['isIntersecting'](_0x5e41a7))return!0x0;if(0x2==_0x583b36&&0x3==_0xd3a0ac){const _0x4be0fb=_0x56217b['_findSuggestions'](_0x371d67,'insertion')['filter'](({suggestion:_0x75c8a,meta:_0x84475b})=>_0x84475b['isOwn']&&'convertInlineImageToBlock'==_0x75c8a['subType']);if(_0x4be0fb['length']>0x1&&_0x5e41a7['end']['isEqual'](_0x371d67['start']))return!0x0;if(0x1==_0x4be0fb['length']&&(_0x371d67['start']['isEqual'](_0x5e41a7['end'])||_0x371d67['end']['isEqual'](_0x5e41a7['start'])))return!0x0;}if(0x3==_0x583b36&&0x3==_0xd3a0ac&&_0x371d67['start']['isBefore'](_0x5e41a7['start'])){const _0x1ad519=_0x371d67['end']['nodeAfter'],_0x2c6849=_0x5e41a7['start']['nodeBefore'];return _0x4629be['isBlockImage'](_0x1ad519)&&_0x1ad519===_0x2c6849;}return!0x1;}function _0x4f32b0(_0x410a84,_0x153df8){return _0x59e576(_0x410a84,_0x153df8)?[_0x410a84,_0x153df8]:_0x59e576(_0x153df8,_0x410a84)?[_0x153df8,_0x410a84]:null;}_0x24ca4b['plugins']['has']('ImageResize')&&(_0x56217b['enableDefaultAttributesIntegration']('resizeImage'),_0x56217b['registerBlockAttribute']('resizedWidth'),_0x56217b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x147f51,'FORMAT_IMAGE_SIZE'))),_0x24ca4b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x56217b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x56217b['registerBlockAttribute']('alt')),_0x24ca4b['plugins']['has']('PictureEditing')&&(_0x56217b['registerBlockAttribute']('sources'),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x41a0fe=>{if('attribute'!=_0x41a0fe['type'])return;const {data:_0x162794}=_0x41a0fe;return _0x162794&&'sources'==_0x162794['key']?{'type':'format','content':''}:void 0x0;})),_0x24ca4b['plugins']['has']('ImageSizeAttributes')&&(_0x56217b['registerBlockAttribute']('width'),_0x56217b['registerBlockAttribute']('height'),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x9340e7=>{if('attribute'!=_0x9340e7['type'])return;const {data:_0x97e3f5}=_0x9340e7;return!_0x97e3f5||'width'!=_0x97e3f5['key']&&'height'!=_0x97e3f5['key']?void 0x0:{'type':'format','content':''};})),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x19a413=>{if(!!_0x5c3768['find'](({type:_0x590ff0,subType:_0x54a9b5})=>_0x19a413['type']==_0x590ff0&&_0x19a413['subType']==_0x54a9b5))return _0x19a413['previous']?{}:void 0x0;}),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x4dbe41=>{if('insertion'==_0x4dbe41['type']||'deletion'==_0x4dbe41['type']){const _0x558500=_0x4dbe41['getContainedElement']();if(_0x558500&&_0x558500['is']('element','caption'))return{'type':'insertion'==_0x4dbe41['type']?'addObject':'removeObject','element':_0x558500,'quantity':0x1};}}),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x2a6e89=>'formatBlock'==_0x2a6e89['type']&&'convertInlineImageToBlock'==_0x2a6e89['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2a6e89['type']&&'convertBlockImageToInline'==_0x2a6e89['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x1801b6=>{if('attribute'!=_0x1801b6['type'])return;const {data:_0x5b5735}=_0x1801b6;if(!_0x5b5735||'alt'!=_0x5b5735['key'])return;const _0x5e3322=_0x5b5735['newValue'];return _0x5e3322?{'type':'format','content':o(_0x147f51,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e3322+'\x22')}:{'type':'format','content':o(_0x147f51,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48c980=this['editor'],_0x463468=_0x48c980['locale'];_0x48c980['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f2bbc=>{if('formatBlock'!=_0x3f2bbc['type']&&'formatInline'!=_0x3f2bbc['type'])return;const {data:_0x3b837e}=_0x3f2bbc;if(_0x3b837e){if('imageTextAlternative'==_0x3b837e['commandName']){const _0x11c87a=_0x3b837e['commandParams'][0x0]['newValue'];return _0x11c87a?{'type':'format','content':o(_0x463468,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x11c87a+'\x22')}:{'type':'format','content':o(_0x463468,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b837e['commandName']){const _0x41737d=_0x3b837e['commandParams'][0x0]['width'];return _0x41737d?{'type':'format','content':o(_0x463468,'*Set\x20image\x20width:*\x20%0',_0x41737d)}:{'type':'format','content':o(_0x463468,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2a3ab8=this['editor']['locale'],_0x2c26fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c26fe['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2c26fe['registerBlockAttribute']('src'),_0x2c26fe['descriptionFactory']['registerDescriptionCallback'](_0x4dc20a=>{if('attribute'!=_0x4dc20a['type'])return;const {data:_0x558625}=_0x4dc20a;return _0x558625&&'src'==_0x558625['key']?_0x558625['newValue']&&_0x558625['oldValue']?{'type':'format','content':o(_0x2a3ab8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x158c90=this['editor']['plugins']['get']('TrackChangesEditing');_0x158c90['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x158c90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x158c90['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x158c90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24c4fe=this['editor'],_0xf6cbd2=_0x24c4fe['locale'];_0x24c4fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x127ee5=>{if('formatBlock'!=_0x127ee5['type']&&'formatInline'!=_0x127ee5['type'])return;const {data:_0x3adf0a}=_0x127ee5;if(!_0x3adf0a||'replaceImageSource'!=_0x3adf0a['commandName'])return;return{'type':'format','content':o(_0xf6cbd2,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x4be19b{['afterInit'](){const _0x5ca2c5=this['editor'];if(!_0x5ca2c5['plugins']['has']('ImageStyleEditing'))return;const _0x3988f9=_0x5ca2c5['plugins']['get']('TrackChangesEditing'),_0x103390=_0x5ca2c5['plugins']['get']('ImageUtils'),_0x3e8dc5={};_0x3988f9['enableCommand']('imageStyle',(_0xdfda13,_0x834df3)=>{const _0x2f17ff=_0x5ca2c5['plugins']['get']('Users')['me'],_0x3fce3f=_0x5ca2c5['commands']['get']('imageStyle');let _0xf1f29a=_0x103390['getClosestSelectedImageElement'](_0x5ca2c5['model']['document']['selection']),_0x507302=_0x5ca2c5['model']['createRangeOn'](_0xf1f29a),_0xbaa122=_0x3fce3f['value'];if(_0xbaa122==_0x834df3['value'])return;const _0x30ff17={'commandName':'imageStyle','commandParams':[_0x834df3],'formatGroupId':_0xf4a34a()};_0x5ca2c5['model']['change'](()=>{if(_0x3988f9['getSuggestions']()['filter'](_0x89186f=>_0x89186f['isInContent']&&_0x2f17ff==_0x89186f['author']&&('formatBlock'==_0x89186f['type']||'formatInline'==_0x89186f['type'])&&('imageStylePreApply'==_0x89186f['subType']||'imageStylePostApply'==_0x89186f['subType'])&&_0x89186f['getFirstRange']()['isEqual'](_0x507302))['forEach'](_0x29748f=>_0x3988f9['discardSuggestion'](_0x29748f['head'])),_0xf1f29a=_0x103390['getClosestSelectedImageElement'](_0x5ca2c5['model']['document']['selection']),_0x507302=_0x5ca2c5['model']['createRangeOn'](_0xf1f29a),_0x3fce3f['refresh'](),_0x5ca2c5['commands']['get']('imageTypeInline')['refresh'](),_0x5ca2c5['commands']['get']('imageTypeBlock')['refresh'](),_0xbaa122=_0x3fce3f['value'],_0xbaa122!=_0x834df3['value'])return _0x103390['isInlineImage'](_0xf1f29a)&&_0x3fce3f['shouldConvertImageType'](_0x834df3['value'],_0xf1f29a)?(_0xdfda13({..._0x834df3,'setImageSizes':!0x1}),_0xf1f29a=_0x103390['getClosestSelectedImageElement'](_0x5ca2c5['model']['document']['selection']),void _0x3988f9['markBlockFormat'](_0xf1f29a,{..._0x30ff17,'commandReversedParams':[{'value':_0xbaa122||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x103390['isBlockImage'](_0xf1f29a)?_0x3988f9['markBlockFormat'](_0xf1f29a,_0x30ff17,[],'imageStylePostApply'):_0x3988f9['markInlineFormat'](_0x507302,_0x30ff17,'imageStylePostApply'));});});for(const _0x9394c7 of _0x5ca2c5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3e8dc5[_0x9394c7['name']]=_0x9394c7['title']['toLowerCase']();_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x28607b])=>{_0x103390['setImageNaturalSizeAttributes'](_0x28607b['getContainedElement']());}),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x258433,_0x203c5a)=>{_0x3988f9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x258433,{'commandName':_0x203c5a['commandName'],'commandParams':_0x203c5a['commandReversedParams']});}),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3ef23a,_0x38952c){if(_0x39c80c(_0x3ef23a,_0x38952c))return[_0x3ef23a,_0x38952c];if(_0x39c80c(_0x38952c,_0x3ef23a))return[_0x38952c,_0x3ef23a];return null;});const _0x186191=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39c80c(_0x404738,_0x208922){const _0x318ace=_0x186191['findIndex'](({type:_0x47ed6c,subType:_0x214d49})=>_0x404738['type']==_0x47ed6c&&_0x404738['subType']==_0x214d49),_0x1d5e56=_0x186191['findIndex'](({type:_0x15ca6f,subType:_0x17e14d})=>_0x208922['type']==_0x15ca6f&&_0x208922['subType']==_0x17e14d);if(_0x318ace<0x0||_0x1d5e56<0x0)return!0x1;const _0x46845b=_0x404738['getFirstRange'](),_0x324072=_0x208922['getFirstRange']();if((0x0==_0x318ace||0x1==_0x318ace)&&0x2==_0x1d5e56&&_0x46845b['isIntersecting'](_0x324072))return!0x0;if(0x2==_0x318ace&&0x3==_0x1d5e56){const _0x91b159=_0x3988f9['_findSuggestions'](_0x46845b,'insertion')['filter'](({suggestion:_0x2622ee,meta:_0x6b46bb})=>_0x6b46bb['isOwn']&&'convertInlineImageToBlock'==_0x2622ee['subType']);if(_0x91b159['length']>0x1&&_0x324072['end']['isEqual'](_0x46845b['start']))return!0x0;if(0x1==_0x91b159['length']&&(_0x46845b['start']['isEqual'](_0x324072['end'])||_0x46845b['end']['isEqual'](_0x324072['start'])))return!0x0;}if(0x3==_0x318ace&&0x3==_0x1d5e56&&_0x46845b['start']['isBefore'](_0x324072['start'])){const _0x55d204=_0x46845b['end']['nodeAfter'],_0x425dbd=_0x324072['start']['nodeBefore'];return _0x103390['isBlockImage'](_0x55d204)&&_0x55d204===_0x425dbd;}return!0x1;}_0x5ca2c5['model']['document']['registerPostFixer'](()=>{let _0x355e2e=!0x1;const _0x5d4c07=Array['from'](_0x5ca2c5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d62a7,data:_0x25db84}of _0x5d4c07){const {group:_0x430c11,type:_0x4ae8b1,subType:_0x3e759d,id:_0x4e53f0}=_0x3988f9['_splitMarkerName'](_0x1d62a7);if('suggestion'==_0x430c11&&_0x3988f9['hasSuggestion'](_0x4e53f0)){if('formatBlock'==_0x4ae8b1&&('imageStylePreApply'==_0x3e759d||'imageStylePostApply'==_0x3e759d)){const _0x2a8153=_0x3988f9['getSuggestion'](_0x4e53f0);if(_0x25db84['newRange']){const _0x178b74=_0x2a8153['getFirstRange']()['getContainedElement']();if(_0x103390['isBlockImage'](_0x178b74))continue;_0x3988f9['discardSuggestion'](_0x2a8153),_0x355e2e=!0x0;}}if('insertion'==_0x4ae8b1&&'imageCaption'==_0x3e759d&&!_0x25db84['newRange']){const _0x3f7a7d=_0x3988f9['getSuggestion'](_0x4e53f0);_0x3f7a7d['next']&&_0x3f7a7d['next']['isInContent']&&(_0x3988f9['discardSuggestion'](_0x3f7a7d['next']),_0x355e2e=!0x0);}}}return _0x355e2e;}),this['_registerLegacyDescription'](_0x3e8dc5);}['_registerLegacyDescription'](_0x522210){const _0x1c1181=this['editor'],_0x4f3231=_0x1c1181['locale'];_0x1c1181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497cf0=>{if('formatBlock'!=_0x497cf0['type']&&'formatInline'!=_0x497cf0['type'])return;const {data:_0x352ba1}=_0x497cf0;if(!_0x352ba1||'imageStyle'!=_0x352ba1['commandName'])return;const _0x28e2da=_0x352ba1['commandParams'][0x0]['value'];return _0x57041a('side'===_0x28e2da?o(_0x4f3231,'FORMAT_SIDE_IMAGE'):_0x522210[_0x28e2da]||_0x28e2da);function _0x57041a(_0x373cac){return{'type':'format','content':o(_0x4f3231,'*Format:*\x20%0',_0x373cac)};}});}}class gt extends _0x4be19b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x346c1b){super(_0x346c1b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x37e8e8=this['editor'],_0x410bfb=_0x37e8e8['commands']['get']('importWord'),_0x1ed8eb=_0x37e8e8['commands']['get']('trackChanges');_0x410bfb&&(_0x410bfb['on']('execute',(_0xa73efe,[,_0x354d3b])=>{this['_trackChangesValueDuringImport']=_0x1ed8eb['value'],_0x354d3b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x410bfb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x410bfb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1ed8eb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x37e8e8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x59a8f0,_0x3cfd8b){const {suggestions:_0x291aff}=_0x3cfd8b,_0x2d98ea=this['editor']['commands']['get']('trackChanges'),_0x4ac3dd=_0x2d98ea['value'];this['_trackChangesValueDuringImport']!==_0x4ac3dd&&(_0x2d98ea['execute'](),this['_trackChangesExecuted']=!0x0),_0x291aff&&_0x291aff['forEach'](({id:_0x94d28e,type:_0x51a154,author:_0x5a3d8b,created_at:_0xef9e71})=>{const _0x126c8b={'id':_0x94d28e,'type':_0x51a154,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5a3d8b,'createdAt':_0xef9e71?new Date(_0xef9e71):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x126c8b);});}}class lt extends _0x4be19b{['afterInit'](){const _0xc773b0=this['editor'],_0x2007a0=_0xc773b0['plugins']['get']('TrackChangesEditing');if(_0xc773b0['plugins']['has']('IndentEditing')&&(_0x2007a0['enableCommand']('indent'),_0x2007a0['enableCommand']('outdent')),_0xc773b0['plugins']['has']('IndentBlock')){for(const _0x16f540 of['indentBlock','outdentBlock'])_0x2007a0['enableDefaultAttributesIntegration'](_0x16f540);}const _0x31d6e6=_0xc773b0['locale'];_0x2007a0['registerBlockAttribute']('blockIndent'),_0x2007a0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x31d6e6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf9d3=this['editor'],_0x2551e4=_0x2bf9d3['locale'],_0x48f49d=_0x2bf9d3['plugins']['get']('TrackChangesEditing');_0x48f49d['descriptionFactory']['registerDescriptionCallback'](_0x8b1d4e=>{if('formatBlock'!=_0x8b1d4e['type'])return;const {data:_0x364ef0}=_0x8b1d4e;if(!_0x364ef0)return;if('indentBlock'!=_0x364ef0['commandName']&&'outdentBlock'!=_0x364ef0['commandName'])return;const _0x79d6ae=_0x8b1d4e['getItems']()[0x0],_0x5b00ea=_0x48f49d['descriptionFactory']['getItemLabel'](_0x79d6ae);return'indentBlock'==_0x364ef0['commandName']?{'type':'format','content':o(_0x2551e4,'*Indent:*\x20%0',_0x5b00ea)}:'outdentBlock'==_0x364ef0['commandName']?{'type':'format','content':o(_0x2551e4,'*Outdent:*\x20%0',_0x5b00ea)}:void 0x0;});}}class dt extends _0x4be19b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x4be19b{['afterInit'](){const _0x14bbac=this['editor'];if(!_0x14bbac['plugins']['has']('LinkEditing'))return;const _0x1ca876=_0x14bbac['plugins']['get']('TrackChangesEditing'),_0x4ed688=_0x14bbac['commands']['get']('link');_0x1ca876['enableDefaultAttributesIntegration']('link'),_0x1ca876['enableDefaultAttributesIntegration']('unlink'),_0x1ca876['registerInlineAttribute']('linkHref');for(const _0x200739 of _0x4ed688['manualDecorators'])_0x1ca876['registerInlineAttribute'](_0x200739['id']),_0x1ca876['descriptionFactory']['registerAttributeLabel'](_0x200739['id'],'link\x20('+_0x200739['label']['toLowerCase']()+')');_0x1ca876['descriptionFactory']['registerDescriptionCallback'](_0x32b3f1=>{if('attribute'!=_0x32b3f1['type'])return;const {data:_0x56bd04}=_0x32b3f1;if(!_0x56bd04||'linkHref'!=_0x56bd04['key'])return;const _0x1d0bfb=_0x56bd04['newValue'],_0x30c691=_0x14bbac['locale'];return{'type':'format','content':null==_0x1d0bfb?o(_0x30c691,'*Remove\x20link*'):o(_0x30c691,'*Set\x20link:*\x20%0','\x22'+_0x1d0bfb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x103751=this['editor'],_0x4dd21d=_0x103751['locale'];_0x103751['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x131b13=>{if('formatInline'!=_0x131b13['type'])return;const {data:_0x201645}=_0x131b13;if(_0x201645){if('link'==_0x201645['commandName']){const _0x22629c=_0x201645['commandParams'][0x0];return{'type':'format','content':o(_0x4dd21d,'*Set\x20link:*\x20%0','\x22'+_0x22629c+'\x22')};}return'unlink'==_0x201645['commandName']?{'type':'format','content':o(_0x4dd21d,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x4be19b{['afterInit'](){const _0x87f7f1=this['editor'],_0x591286=_0x87f7f1['locale'];if(!_0x87f7f1['plugins']['has']('LegacyListEditing'))return;const _0x4f2947=_0x87f7f1['plugins']['get']('TrackChangesEditing'),_0x69da89=_0x87f7f1['plugins']['has']('LegacyTodoListEditing');function _0x437cdf(_0x4c00ec){return()=>{const _0x22eb1f=_0x87f7f1['model']['document']['selection'],_0x654f4a=_0x87f7f1['commands']['get'](_0x4c00ec);if(_0x654f4a['value'])return void _0x87f7f1['execute']('paragraph',{});const _0x21812e=_0x4c00ec['slice'](0x0,-0x4),_0x54f414=function(_0xe50f42,_0xd92772,_0x84730f){let _0x513546=Array['from'](_0xe50f42)['filter'](_0x2bcc0b=>function(_0x419acd,_0x38674){return _0x38674['checkChild'](_0x419acd['parent'],'listItem')&&!_0x38674['isObject'](_0x419acd);}(_0x2bcc0b,_0x84730f));_0x513546=_0x513546['filter'](_0x4d6001=>!_0x4d6001['is']('element','listItem')||_0x4d6001['getAttribute']('listType')!=_0xd92772);const _0x291873=new Set();for(const _0x2b9b03 of _0x513546)_0x2b9b03['is']('element','listItem')?_0x291873['add'](Ne(_0x2b9b03)):_0x291873['add'](_0x2b9b03);return Array['from'](_0x291873);}(_0x22eb1f['getSelectedBlocks'](),_0x21812e,_0x87f7f1['model']['schema']);_0x87f7f1['model']['change'](()=>{for(const _0x3cff05 of _0x54f414)_0x4f2947['markBlockFormat'](_0x3cff05,{'commandName':_0x4c00ec,'commandParams':[{'forceValue':!_0x654f4a['value']}],'formatGroupId':'blockName'},Se(_0x3cff05));});};}function _0xc023e2(_0x158f76){return()=>{const _0xd27be1=function(_0x26a047){let _0x50d078=Array['from'](_0x26a047);const _0x3855b9=_0x50d078['findIndex'](_0x278c39=>'listItem'!=_0x278c39['name']);return _0x3855b9>-0x1&&(_0x50d078=_0x50d078['slice'](0x0,_0x3855b9)),_0x50d078;}(_0x87f7f1['model']['document']['selection']['getSelectedBlocks']()),_0x22de89=_0x87f7f1['model']['createRange'](_0x87f7f1['model']['createPositionAt'](_0xd27be1[0x0],'before'),_0x87f7f1['model']['createPositionAt'](_0xd27be1[_0xd27be1['length']-0x1],'end'));_0x87f7f1['model']['change'](()=>{_0x4f2947['markBlockFormat'](_0x22de89,{'commandName':_0x158f76,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5370f4){const _0xccc5bc=new Set();for(const _0x400aeb of _0x5370f4){let _0x59dfd6=_0x400aeb['nextSibling'];for(;_0x59dfd6&&_0x59dfd6['getAttribute']('listIndent')>_0x400aeb['getAttribute']('listIndent');)_0xccc5bc['add'](_0x59dfd6),_0x59dfd6=_0x59dfd6['nextSibling'];}return Array['from'](_0xccc5bc);}(_0xd27be1));});};}_0x4f2947['enableCommand']('numberedList',_0x437cdf('numberedList')),_0x4f2947['enableCommand']('bulletedList',_0x437cdf('bulletedList')),_0x69da89&&_0x4f2947['enableCommand']('todoList',_0x437cdf('todoList')),_0x4f2947['enableCommand']('indentList',_0xc023e2('indentList')),_0x4f2947['enableCommand']('outdentList',_0xc023e2('outdentList')),_0x69da89&&_0x4f2947['enableCommand']('checkTodoList',()=>{const _0x1231fb=_0x87f7f1['commands']['get']('checkTodoList'),_0x20504f=Array['from'](_0x1231fb['_selectedElements']);_0x20504f['filter'](_0x3bafb5=>_0x3bafb5['getAttribute']('todoListChecked')!=_0x1231fb['value']),_0x87f7f1['model']['change'](()=>{for(const _0x533dbf of _0x20504f)_0x4f2947['markBlockFormat'](_0x533dbf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1231fb['value']}]});});}),_0x4f2947['descriptionFactory']['registerElementLabel']('listItem',_0x332d47=>o(_0x591286,'ELEMENT_LIST_ITEM',_0x332d47)),_0x4f2947['descriptionFactory']['registerDescriptionCallback'](_0x23c518=>{if('formatBlock'!=_0x23c518['type']&&'formatInline'!=_0x23c518['type'])return;const {data:_0x50fd2c}=_0x23c518;if(_0x50fd2c){if('numberedList'==_0x50fd2c['commandName']||'bulletedList'==_0x50fd2c['commandName']||'todoList'==_0x50fd2c['commandName'])switch(_0x50fd2c['commandName']['replace']('List','')){case'bulleted':return _0x2c7749(o(_0x591286,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c7749(o(_0x591286,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c7749(o(_0x591286,'ELEMENT_TODO_LIST'));}if('indentList'==_0x50fd2c['commandName'])return{'type':'format','content':o(_0x591286,'*Indent:*\x20%0',o(_0x591286,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x50fd2c['commandName'])return{'type':'format','content':o(_0x591286,'*Outdent:*\x20%0',o(_0x591286,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x50fd2c['commandName'])return _0x50fd2c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x591286,'*Check\x20item*')}:{'type':'format','content':o(_0x591286,'*Uncheck\x20item*')};}function _0x2c7749(_0x3aef79){return{'type':'format','content':o(_0x591286,'*Change\x20to:*\x20%0',_0x3aef79)};}});}}function Ne(_0x49431c){const _0x560d12=_0x49431c['getAttribute']('listIndent');if(0x0==_0x560d12)return _0x49431c;let _0x4f367b=_0x49431c;for(;_0x49431c['previousSibling']&&_0x49431c['previousSibling']['is']('element','listItem');){const _0x1762fc=_0x49431c['previousSibling']['getAttribute']('listIndent');if(_0x1762fc==_0x560d12)_0x4f367b=_0x49431c['previousSibling'];else{if(_0x1762fc<_0x560d12)break;}_0x49431c=_0x49431c['previousSibling'];}return _0x4f367b;}function Se(_0x1152f1){const _0x1f63d1=[];if(_0x1152f1['is']('element','listItem')&&_0x1152f1['getAttribute']('listIndent')>0x0){let _0x4ec086=_0x1152f1['nextSibling'];for(;_0x4ec086&&'listItem'==_0x4ec086['name']&&_0x4ec086['getAttribute']('listIndent')==_0x1152f1['getAttribute']('listIndent');)_0x1f63d1['push'](_0x4ec086),_0x4ec086=_0x4ec086['nextSibling'];}return _0x1f63d1;}class kt extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2950ff=this['editor']['config']['get']('list.properties'),_0x42699c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2950ff['styles']&&_0x42699c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2950ff['reversed']&&_0x42699c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2950ff['startIndex']&&_0x42699c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x42699c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x580051,_0x1ffb91={}){const _0x95d0e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45c7ba=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x95d0e9['markMultiRangeBlockFormat'](_0x45c7ba,{'commandName':'listStyle','commandParams':[{'type':_0x1ffb91['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd580ab,_0x218db8={}){const _0x2f22c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x180cba=this['_getSuggestionBlocks'](_0x844cb5=>_0x844cb5['is']('element','listItem')&&'numbered'===_0x844cb5['getAttribute']('listType'));if(_0x180cba['length']<0x1)return;const _0xec8024=_0x180cba['map'](_0x247143=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x247143,'before'),this['editor']['model']['createPositionAt'](_0x247143,0x0)));this['editor']['model']['change'](()=>{_0x2f22c0['markMultiRangeBlockFormat'](_0xec8024,{'commandName':'listReversed','commandParams':[{'reversed':_0x218db8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5938c5,_0x337f5d={}){const _0x465500=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d4360=this['_getSuggestionBlocks'](_0x319d90=>_0x319d90['is']('element','listItem')&&'numbered'===_0x319d90['getAttribute']('listType'));if(_0x1d4360['length']<0x1)return;const _0x23beac=_0x1d4360['map'](_0x2517f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2517f4,'before'),this['editor']['model']['createPositionAt'](_0x2517f4,0x0)));this['editor']['model']['change'](()=>{_0x465500['markMultiRangeBlockFormat'](_0x23beac,{'commandName':'listStart','commandParams':[{'startIndex':_0x337f5d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3bf9b2){if('formatBlock'!=_0x3bf9b2['type']&&'formatInline'!=_0x3bf9b2['type'])return;const _0xc6a931=this['editor']['locale'],{data:_0x3261dd}=_0x3bf9b2;if(!_0x3261dd)return;let _0x1a510e,_0x4b2fcc;switch(_0x3261dd['commandName']){case'listStyle':_0x1a510e='*Change\x20to:*\x20%0',_0x4b2fcc={'type':'format','content':o(_0xc6a931,_0x1a510e,o(_0xc6a931,this['_getTranslationKeyForListStyle'](_0x3261dd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1a510e=_0x3261dd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b2fcc={'type':'format','content':o(_0xc6a931,_0x1a510e)};break;case'listStart':_0x1a510e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b2fcc={'type':'format','content':o(_0xc6a931,_0x1a510e,_0x3261dd['commandParams'][0x0]['startIndex'])};}return _0x4b2fcc;}['_getSuggestionBlocksForListStyle'](){const _0x4777cf=this['editor']['plugins']['get']('LegacyListUtils');let _0x5515c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5515c[0x0]?.['is']('element','listItem')&&_0x5515c['unshift'](..._0x4777cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5515c[_0x5515c['length']-0x1]?.['is']('element','listItem')&&_0x5515c['push'](..._0x4777cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5515c=[...new Set(_0x5515c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5515c=_0x5515c['filter'](_0x53fbfe=>_0x53fbfe['is']('element','listItem'))),_0x5515c;}['_getSuggestionBlocks'](_0x5274d5){const _0x51a155=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b6f46=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5274d5)['map'](_0x4dc994=>{const _0x2e669d=this['editor']['model']['createPositionAt'](_0x4dc994,0x0);return[..._0x51a155['getSiblingNodes'](_0x2e669d,'backward'),..._0x51a155['getSiblingNodes'](_0x2e669d,'forward')];})['flat']();return _0x4b6f46=[...new Set(_0x4b6f46)],_0x4b6f46;}['_getTranslationKeyForListStyle'](_0x211589){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x211589)||'default')['toUpperCase']()+'_LIST_'+_0x211589['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x4be19b{['afterInit'](){const _0x37af4f=this['editor'];if(!_0x37af4f['plugins']['has']('MediaEmbedEditing'))return;const _0xd7dd7d=_0x37af4f['plugins']['get']('TrackChangesEditing'),_0x1455c6=_0x37af4f['locale'];_0xd7dd7d['enableCommand']('mediaEmbed'),_0xd7dd7d['descriptionFactory']['registerElementLabel']('media',_0x248e76=>o(_0x1455c6,'ELEMENT_MEDIA',_0x248e76)),_0x37af4f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x225844,{writer:_0x4ff429,options:_0x2103dc})=>{if(_0x2103dc['showSuggestionHighlights'])return _0x4ff429['createEmptyElement']('div');},'converterPriority':'high'}),_0x37af4f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3812cc,_0x249044,_0x289459)=>{_0x289459['options']['showSuggestionHighlights']&&_0x3812cc['stop']();},{'priority':'high'});}}class bt extends _0x4be19b{['afterInit'](){const _0x557680=this['editor'];_0x557680['plugins']['has']('MentionEditing')&&_0x557680['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x4be19b{['afterInit'](){const _0x4084d1=this['editor'];if(!_0x4084d1['plugins']['has']('MergeFieldsEditing'))return;const _0x5d3db4=_0x4084d1['plugins']['get']('TrackChangesEditing'),_0x3bf60e=_0x4084d1['locale'];_0x5d3db4['enableCommand']('insertMergeField'),_0x5d3db4['enableCommand']('insertMergeFieldBlock'),_0x5d3db4['enableCommand']('insertMergeFieldImage'),_0x5d3db4['descriptionFactory']['registerElementLabel']('mergeField',_0x4e12f5=>o(_0x3bf60e,'ELEMENT_MERGE_FIELD',_0x4e12f5)),_0x5d3db4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xfd85be=>o(_0x3bf60e,'ELEMENT_MERGE_FIELD',_0xfd85be)),_0x5d3db4['descriptionFactory']['registerDescriptionCallback'](_0x43f052=>{if('insertion'!=_0x43f052['type']&&'deletion'!=_0x43f052['type'])return;const _0x16549c=_0x43f052['getContainedElement']();if(null==_0x16549c)return;const _0x111611=_0x4084d1['plugins']['get']('MergeFieldsEditing');let _0xf86df7;switch(_0x111611['getMergeFieldType'](_0x16549c)){case null:return;case'image':{const _0x57d428=_0x111611['unwrapAffixes'](_0x16549c['getAttribute']('src'));_0xf86df7=_0x111611['getLabel'](_0x57d428)||_0x57d428;break;}default:{const _0x514e99=_0x16549c['getAttribute']('id');_0xf86df7=_0x111611['getLabel'](_0x514e99)||_0x514e99;break;}}return'insertion'==_0x43f052['type']?{'type':'insertion','content':o(_0x3bf60e,'*Insert:*\x20%0','\x22'+_0xf86df7+'\x22\x20'+o(_0x3bf60e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3bf60e,'*Remove:*\x20%0','\x22'+_0xf86df7+'\x22\x20'+o(_0x3bf60e,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4be19b{['afterInit'](){const _0x1ec26e=this['editor'],_0x3208e7=_0x1ec26e['plugins']['get']('TrackChangesEditing');_0x1ec26e['plugins']['has']('MultiLevelList')&&(_0x3208e7['enableDefaultAttributesIntegration']('multiLevelList'),_0x3208e7['registerBlockAttribute']('listMarkerStyle'),_0x3208e7['descriptionFactory']['registerDescriptionCallback'](_0x362605=>this['handleDescriptions'](_0x362605)));}['handleDescriptions'](_0x3be706){const _0x10612a=this['editor']['locale'],{data:_0x36f3f6}=_0x3be706,_0x37a85b={'type':'format','content':''};if(_0x36f3f6&&'listMarkerStyle'==_0x36f3f6['key']){if(!_0x36f3f6['oldValue'])return{'type':'format','content':o(_0x10612a,'*Set\x20format:*\x20%0',o(_0x10612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f3f6['newValue']+')'};if(!_0x36f3f6['newValue']){let _0xe85298=_0x3be706['head'];for(;_0xe85298;){if(_0xe85298['data']&&'listType'==_0xe85298['data']['key']&&_0xe85298['data']['newValue'])return _0x37a85b;_0xe85298=_0xe85298['next'];}return{'type':'format','content':o(_0x10612a,'*Remove\x20format:*\x20%0',o(_0x10612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f3f6['oldValue']+')'};}}}}class St extends _0x4be19b{['afterInit'](){const _0x222dc7=this['editor'];if(!_0x222dc7['plugins']['has']('PageBreakEditing'))return;_0x222dc7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x338be5=_0x222dc7['plugins']['get']('TrackChangesEditing'),_0x312b1f=_0x222dc7['locale'];_0x338be5['descriptionFactory']['registerElementLabel']('pageBreak',_0x58c3fb=>o(_0x312b1f,'ELEMENT_PAGE_BREAK',_0x58c3fb));}}class It extends _0x4be19b{['afterInit'](){const _0x40a8df=this['editor'];if(!_0x40a8df['plugins']['has']('Paragraph'))return;const _0x59b7ff=_0x40a8df['locale'],_0x4a9e63=_0x40a8df['plugins']['get']('TrackChangesEditing');_0x4a9e63['descriptionFactory']['registerElementLabel']('paragraph',_0x16ec58=>o(_0x59b7ff,'ELEMENT_PARAGRAPH',_0x16ec58)),_0x4a9e63['enableDefaultAttributesIntegration']('paragraph'),_0x4a9e63['enableCommand']('insertParagraph'),_0x40a8df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x40a8df),{'priority':'highest'}),_0x40a8df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40b469,_0x351a66,_0x1d0055)=>{_0x1d0055['options']['showSuggestionHighlights']&&nr(_0x40a8df,{'showActiveMarker':!0x1})(_0x40b469,_0x351a66,_0x1d0055);},{'priority':'highest'});const _0x2c4454=_0x4a9e63['descriptionFactory'];_0x2c4454['registerDescriptionCallback'](_0x46a1cd=>{if('insertion'!==_0x46a1cd['type'])return;const {start:_0x556ac6,end:_0x310071}=_0x46a1cd['getFirstRange']();if(!_0x556ac6['isTouching'](_0x310071)||!_0x556ac6['nodeAfter'])return;const _0x56d250=_0x40a8df['model']['schema'],_0x196f73=_0x556ac6['nodeAfter'];return _0x56d250['isBlock'](_0x196f73)&&!_0x56d250['isLimit'](_0x196f73)&&_0x56d250['checkChild'](_0x196f73,'$text')?{'type':'insertion','content':o(_0x59b7ff,'*Insert:*\x20%0',_0x2c4454['getItemLabel'](_0x196f73,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12fdd5=this['editor'],_0x2bf671=_0x12fdd5['locale'];_0x12fdd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56113e=>{if('formatBlock'!=_0x56113e['type'])return;const {data:_0x21ea34}=_0x56113e;return _0x21ea34&&'paragraph'==_0x21ea34['commandName']?{'type':'format','content':o(_0x2bf671,'*Change\x20to:*\x20%0',o(_0x2bf671,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x192e18,{showActiveMarker:_0x4adb1a=!0x0}={}){return(_0x1f135e,_0x18c1b3,_0x3696b6)=>{const _0x147728=_0x192e18['plugins']['get']('TrackChangesEditing'),_0x196edf=_0x18c1b3['markerRange']['start'],_0x722584=_0x18c1b3['markerRange']['end'],_0x4142ad=_0x192e18['model']['schema'];if(!_0x196edf['isTouching'](_0x722584)||!_0x196edf['nodeAfter'])return;const _0x3b5420=_0x196edf['nodeAfter'];if(_0x4142ad['isBlock'](_0x3b5420)&&!_0x4142ad['isLimit'](_0x3b5420)&&_0x4142ad['checkChild'](_0x3b5420,'$text')){if(!_0x3696b6['consumable']['consume'](_0x18c1b3['markerRange'],_0x1f135e['name']))return;const {id:_0x4fc1d3,authorId:_0x418ddb}=_0x147728['_splitMarkerName'](_0x18c1b3['markerName']),_0x3d6921=_0x3696b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4fc1d3,'data-author-id':_0x418ddb}),_0xbb6300=_0x3696b6['mapper']['toViewPosition'](_0x722584);_0x4adb1a&&_0x147728['activeMarkers']['includes'](_0x18c1b3['markerName'])&&_0x3696b6['writer']['addClass']('ck-suggestion-marker--active',_0x3d6921),_0x3696b6['writer']['insert'](_0xbb6300,_0x3d6921),_0x3696b6['mapper']['bindElementToMarker'](_0x3d6921,_0x18c1b3['markerName']);}};}class At extends _0x4be19b{['afterInit'](){const _0x2b94e8=this['editor'];_0x2b94e8['commands']['get']('replaceSource')&&_0x2b94e8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x4be19b{['afterInit'](){const _0x23013b=this['editor'];if(!_0x23013b['plugins']['has']('RemoveFormatEditing'))return;_0x23013b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x483abf=this['editor'];_0x483abf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x416421=>{if('formatBlock'!=_0x416421['type']&&'formatInline'!=_0x416421['type'])return;const {data:_0x474bbc}=_0x416421;return _0x474bbc&&'removeFormat'==_0x474bbc['commandName']?{'type':'format','content':o(_0x483abf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x4be19b{['afterInit'](){const _0x435c31=this['editor'];if(!_0x435c31['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x53d717=_0x435c31['plugins']['get']('TrackChangesEditing');_0x53d717['enableCommand']('goToPreviousRestrictedEditingException'),_0x53d717['enableCommand']('goToNextRestrictedEditingException');const _0x3246bf=_0x435c31['plugins']['get']('RestrictedEditingModeEditing');_0x3246bf['enableCommand']('trackChanges'),_0x3246bf['enableCommand']('acceptSuggestion'),_0x3246bf['enableCommand']('discardSuggestion'),_0x3246bf['enableCommand']('acceptAllSuggestions'),_0x3246bf['enableCommand']('discardAllSuggestions'),_0x3246bf['enableCommand']('acceptSelectedSuggestions'),_0x3246bf['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x4be19b{['afterInit'](){const _0x57e2ca=this['editor'];if(!_0x57e2ca['plugins']['has']('ShiftEnter'))return;const _0x2b7474=_0x57e2ca['plugins']['get']('TrackChangesEditing');_0x2b7474['enableCommand']('shiftEnter'),_0x57e2ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x57e2ca),{'priority':'high'}),_0x57e2ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x57e2ca),{'priority':'high'}),_0x57e2ca['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50fa96,_0x1ca76e,_0x15c61a)=>{_0x15c61a['options']['showSuggestionHighlights']&&qe(_0x57e2ca,{'showActiveMarker':!0x1})(_0x50fa96,_0x1ca76e,_0x15c61a);}),_0x2b7474['descriptionFactory']['registerElementLabel']('softBreak',_0xca7b57=>o(_0x57e2ca['locale'],'ELEMENT_LINE_BREAK',_0xca7b57));}}function qe(_0x4d10b0,{showActiveMarker:_0x4d3673=!0x0}={}){return(_0x1534b7,_0xbf269f,_0x4e8a14)=>{const _0x58c678=_0x4d10b0['plugins']['get']('TrackChangesEditing');if(!_0x4e8a14['consumable']['test'](_0xbf269f['markerRange'],_0x1534b7['name']))return;const _0x45dc5f=_0x4d10b0['model'];for(const _0x5079ab of _0xbf269f['markerRange']['getItems']()){if(!_0x5079ab['is']('element','softBreak'))continue;const _0x339aeb='deletion'==_0xbf269f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xa348ea,authorId:_0x3f10d2}=_0x58c678['_splitMarkerName'](_0xbf269f['markerName']),_0x5da624=_0x4e8a14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x339aeb,'data-suggestion':_0xa348ea,'data-author-id':_0x3f10d2}),_0x573583=_0x4e8a14['mapper']['toViewPosition'](_0x45dc5f['createPositionBefore'](_0x5079ab));_0x4d3673&&_0x58c678['activeMarkers']['includes'](_0xbf269f['markerName'])&&_0x4e8a14['writer']['addClass']('ck-suggestion-marker--active',_0x5da624),_0x4e8a14['writer']['insert'](_0x573583,_0x5da624),_0x4e8a14['mapper']['bindElementToMarker'](_0x5da624,_0xbf269f['markerName']);}};}class $t extends _0x4be19b{['afterInit'](){const _0x1a5237=this['editor'],_0x4d7d77=_0x1a5237['model'],_0x40f563=_0x1a5237['locale'];if(!_0x1a5237['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b7ba4=_0x1a5237['plugins']['get']('TrackChangesEditing'),_0x80eb8e='restrictedEditingException',_0x1d7bd0=_0x1a5237['commands']['get'](_0x80eb8e);_0x4b7ba4['enableCommand'](_0x80eb8e,(_0x1f0726,_0xeba7df={})=>{const _0x4e0348=_0x4d7d77['document']['selection'];if(_0x4e0348['isCollapsed'])return void _0x1f0726(_0xeba7df);const _0x2b1660=void 0x0!==_0xeba7df['forceValue']?_0xeba7df['forceValue']:!_0x1d7bd0['value'];_0x4d7d77['change'](()=>{const _0x951af=Array['from'](_0x4e0348['getRanges']());for(const _0x5b0c41 of _0x951af){const _0x4ef8f3=_0x2b1660?[_0x5b0c41]:io(_0x80eb8e,_0x5b0c41,_0x4d7d77);for(const _0x1fc087 of _0x4ef8f3)_0x4b7ba4['markInlineFormat'](_0x1fc087,{'commandName':_0x80eb8e,'commandParams':[{'forceValue':_0x2b1660}]});}});}),_0x4b7ba4['descriptionFactory']['registerDescriptionCallback'](_0x29b6ad=>{if('formatBlock'!=_0x29b6ad['type']&&'formatInline'!=_0x29b6ad['type'])return;const {data:_0x24b3ba}=_0x29b6ad;return _0x24b3ba&&_0x24b3ba['commandName']==_0x80eb8e?_0x24b3ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40f563,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40f563,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x4be19b{['afterInit'](){const _0x3ab5dd=this['editor'];if(!_0x3ab5dd['plugins']['has']('Style')||!_0x3ab5dd['plugins']['has']('DataSchema'))return;const _0x55f411=_0x3ab5dd['plugins']['get']('TrackChangesEditing'),_0x15b4fb=_0x3ab5dd['locale'],_0x579a03=_0x3ab5dd['config']['get']('style')||{},_0x33dc50=_0x3ab5dd['plugins']['get']('GeneralHtmlSupport'),_0x58d528=_0x3ab5dd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3ab5dd['plugins']['get']('DataSchema'),_0x579a03['definitions']);_0x55f411['enableDefaultAttributesIntegration']('style');const _0x485144=new Set();for(const _0x4c91b6 of _0x58d528['block']){const _0x386307=_0x33dc50['getGhsAttributeNameForElement'](_0x4c91b6['element']);_0x485144['add'](_0x386307);}const _0x3d3719=new Set();for(const _0x199492 of _0x58d528['inline']){const _0x247012=_0x33dc50['getGhsAttributeNameForElement'](_0x199492['element']);_0x3d3719['add'](_0x247012);for(const _0x46037e of _0x199492['ghsAttributes'])_0x3d3719['add'](_0x46037e);}for(const _0x1685a2 of _0x485144)_0x55f411['registerBlockAttribute'](_0x1685a2),_0x55f411['descriptionFactory']['registerAttributeLabel'](_0x1685a2,o(_0x15b4fb,'FORMAT_STYLE'));for(const _0x242a4f of _0x3d3719)_0x55f411['registerInlineAttribute'](_0x242a4f),_0x55f411['descriptionFactory']['registerAttributeLabel'](_0x242a4f,o(_0x15b4fb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46b8c7=this['editor'],_0x116379=_0x46b8c7['locale'];_0x46b8c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbc0cb7=>{if('formatBlock'!=_0xbc0cb7['type']&&'formatInline'!=_0xbc0cb7['type'])return;const {data:_0x1a6ae0}=_0xbc0cb7;return _0x1a6ae0&&'style'===_0x1a6ae0['commandName']?_0x1a6ae0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x116379,'*Set\x20format:*\x20%0',_0x1a6ae0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x116379,'*Remove\x20format:*\x20%0',_0x1a6ae0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x4be19b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4310af){super(_0x4310af),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a6ee6=this['editor'],_0x5c7611=_0x2a6ee6['model']['document']['selection'];if(!_0x2a6ee6['plugins']['has']('TableEditing'))return;const _0x1e01be=_0x2a6ee6['locale'],_0x3c6d64=_0x2a6ee6['plugins']['get']('TrackChangesEditing'),_0x4bd4e9=_0x2a6ee6['plugins']['get']('TableUtils');_0x3c6d64['descriptionFactory']['registerElementLabel']('table',_0x492d6a=>o(_0x1e01be,'ELEMENT_TABLE',_0x492d6a)),this['_setupColumnsRowsFixing'](),_0x3c6d64['enableCommand']('insertTable'),_0x3c6d64['enableCommand']('selectTableRow'),_0x3c6d64['enableCommand']('selectTableColumn');for(const _0x1e7d0a of['insertTableRowAbove','insertTableRowBelow']){const _0x21653a=_0x2a6ee6['commands']['get'](_0x1e7d0a);_0x3c6d64['enableCommand'](_0x1e7d0a,_0x5d0a44=>{_0x2a6ee6['model']['change'](_0x5eb3f5=>{_0x5d0a44();const _0x2c16ec='above'===_0x21653a['order'],_0x22a609=_0x4bd4e9['getSelectionAffectedTableCells'](_0x5c7611),_0x3860ca=_0x4bd4e9['getRowIndexes'](_0x22a609),_0x3be49f=_0x2c16ec?_0x3860ca['first']-0x1:_0x3860ca['last']+0x1,_0x79feb2=_0x22a609[0x0]['findAncestor']('table'),_0x57bfb0=_0x4bd4e9['createTableWalker'](_0x79feb2,{'startRow':_0x3be49f,'endRow':_0x3be49f}),_0x426eaa=Array['from'](_0x57bfb0)['map'](_0x505391=>_0x5eb3f5['createRangeOn'](_0x505391['cell']));_0x3c6d64['markMultiRangeInsertion'](_0x426eaa,'tableRow');});});}for(const _0x1e4bda of['insertTableColumnLeft','insertTableColumnRight']){const _0x51b5bd=_0x2a6ee6['commands']['get'](_0x1e4bda);_0x3c6d64['enableCommand'](_0x1e4bda,_0x239367=>{_0x2a6ee6['model']['change'](_0x1a200b=>{_0x239367();const _0x3b5f96='left'===_0x51b5bd['order'],_0x2f58f0=_0x4bd4e9['getSelectionAffectedTableCells'](_0x5c7611),_0x187644=_0x4bd4e9['getColumnIndexes'](_0x2f58f0),_0x1b4ea2=_0x3b5f96?_0x187644['first']-0x1:_0x187644['last']+0x1,_0x125065=_0x2f58f0[0x0]['findAncestor']('table'),_0x3ee9db=_0x4bd4e9['createTableWalker'](_0x125065,{'startRow':0x0,'column':_0x1b4ea2,'includeAllSlots':!0x1}),_0x1ac3f3=Array['from'](_0x3ee9db)['map'](_0x452b72=>_0x1a200b['createRangeOn'](_0x452b72['cell']));_0x3c6d64['markMultiRangeInsertion'](_0x1ac3f3,'tableColumn');});});}for(const _0x42b078 of['removeTableRow','removeTableColumn']){const _0x527399=_0x42b078['substr'](0xb),_0x253e1a=_0x527399['toLowerCase'](),_0x18721a=_0x253e1a['substr'](0x0,0x3)+'span',_0xa7938d='table'+_0x527399,_0x480be5='min'+_0x527399,_0x2b2de4='max'+_0x527399;_0x3c6d64['enableCommand'](_0x42b078,()=>{_0x2a6ee6['model']['change'](_0x2cd257=>{const _0x28a639=_0x4bd4e9['getSelectionAffectedTableCells'](_0x5c7611),_0x36d225=_0x28a639[0x0]['findAncestor']('table');let _0x23d2c9;if('removeTableRow'==_0x42b078){const _0x16653e=_0x4bd4e9['getRowIndexes'](_0x28a639);_0x23d2c9={'startRow':_0x16653e['first'],'endRow':_0x16653e['last'],'includeAllSlots':!0x0};}else{const _0x58156c=_0x4bd4e9['getColumnIndexes'](_0x28a639);_0x23d2c9={'startColumn':_0x58156c['first'],'endColumn':_0x58156c['last'],'includeAllSlots':!0x0};}const _0x34877e=_0x4bd4e9['createTableWalker'](_0x36d225,_0x23d2c9),_0x178181=Array['from'](_0x34877e)['map'](({cell:_0x5e813d})=>_0x5e813d),_0x4cc766=Oe(_0x178181['filter'](_0x24c973=>_0x24c973['hasAttribute'](_0x18721a))),_0x309860=Oe(_0x178181['filter'](_0x306d99=>!_0x306d99['hasAttribute'](_0x18721a)))['map'](_0x19442c=>_0x2cd257['createRangeOn'](_0x19442c)),_0x27653d=_0x3c6d64['markMultiRangeDeletion'](_0x309860,_0xa7938d);if(_0x27653d&&('tableRow'==_0x27653d['subType']||'tableColumn'==_0x27653d['subType'])){const _0x2ab715=this['_getSuggestionCoords'](_0x27653d);for(const _0x1a2b53 of _0x4cc766){const _0x250ab4=_0x2cd257['createRangeOn'](_0x1a2b53),_0x15eb24=_0x4bd4e9['getCellLocation'](_0x1a2b53),_0x3726d2=_0x1a2b53['getAttribute'](_0x18721a)-0x1,_0x319398=_0x2ab715[_0x480be5],_0x523ca5=_0x2ab715[_0x2b2de4];_0x319398<=_0x15eb24[_0x253e1a]&&_0x15eb24[_0x253e1a]+_0x3726d2<=_0x523ca5&&_0x27653d['addRange'](_0x250ab4);}}});});}function _0x158490(_0x109e0f){const _0x46f2a5=Array['from'](_0x5c7611['getRanges']())['map'](_0x1d79f1=>_0x5c6c0b['fromRange'](_0x1d79f1));_0x2a6ee6['model']['change'](_0x4711a3=>{const _0x503021=_0x4711a3['batch'];_0x109e0f=_0x109e0f['filter'](_0x3cd466=>'$graveyard'!=_0x3cd466['root']['rootName']),_0x4711a3['setSelection'](_0x109e0f),_0x2a6ee6['commands']['get']('removeTableRow')['refresh'](),_0x2a6ee6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a6ee6['model']['enqueueChange'](()=>{_0x2a6ee6['model']['enqueueChange'](_0x503021,_0x2c4e4e=>{const _0x90a41f=_0x46f2a5['filter'](_0x1544d5=>'$graveyard'!=_0x1544d5['root']['rootName']);_0x90a41f['length']>0x0&&_0x2c4e4e['setSelection'](_0x90a41f);for(const _0x1f3255 of _0x46f2a5)_0x1f3255['detach']();});});});}function _0x492791(_0x32cf32){_0x2a6ee6['model']['change'](_0x2affed=>{const _0x50d630=Array['from'](_0x5c7611['getRanges']())['map'](_0x2e9dda=>_0x5c6c0b['fromRange'](_0x2e9dda)),_0x592870=[];for(const _0x5b7ece of _0x32cf32)for(const _0x201da2 of _0x5b7ece['getItems']({'shallow':!0x0}))_0x592870['push'](_0x201da2);for(const _0x1b18be of _0x592870)'$graveyard'!=_0x1b18be['root']['rootName']&&(_0x2affed['setSelection'](_0x2affed['createPositionAt'](_0x1b18be,0x0)),_0x2a6ee6['commands']['get']('removeTableColumn')['refresh'](),_0x2a6ee6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x16d374=_0x50d630['filter'](_0x116a1a=>'$graveyard'!=_0x116a1a['root']['rootName']);_0x16d374['length']>0x0&&_0x2affed['setSelection'](_0x16d374);for(const _0x1a4cbc of _0x50d630)_0x1a4cbc['detach']();});}function _0x2b7151(_0x2e984,_0x498cd0){return _0x498cd0['every'](_0x5ce312=>_0x2e984['some'](_0x550f5e=>_0x550f5e['end']['isEqual'](_0x5ce312['start'])||_0x5ce312['end']['isEqual'](_0x550f5e['start'])));}function _0x26712d(_0xb5324f,_0x555b78){return!_0xb5324f['some'](_0x34f442=>_0x555b78['some'](_0x42ece8=>_0x34f442['isIntersecting'](_0x42ece8)))&&_0xb5324f['some'](_0x2f08f2=>_0x555b78['some'](_0x24c4bd=>_0x2f08f2['end']['isTouching'](_0x24c4bd['start'])));}_0x2a6ee6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27f44a,_0x2aa651,_0x5a0584)=>{if(!_0x5a0584['options']['showSuggestionHighlights'])return;const _0x3e4a37=_0x2aa651['item'];if(!_0x3e4a37||!_0x3e4a37['is']('element','tableCell'))return;const _0x3aecf7=_0x5a0584['mapper']['toViewElement'](_0x3e4a37);if(_0x3aecf7){const {id:_0x2a97ae,authorId:_0x5f34ff}=_0x3c6d64['_splitMarkerName'](_0x2aa651['markerName']);_0x36dd47(_0x3aecf7,_0x5a0584['writer'],(_0x1b26c0,_0x1f4ef4,_0x3b6f44)=>{_0x3b6f44['addClass'](_0x226d78(_0x1f4ef4['classes']),_0x1b26c0),_0x3b6f44['setAttribute']('data-suggestion-id',_0x2a97ae,_0x1b26c0),_0x3b6f44['setAttribute']('data-author-id',_0x5f34ff,_0x1b26c0);},(_0xfd543d,_0x496ffb,_0x510ad8)=>{_0x510ad8['removeClass'](_0x226d78(_0x496ffb['classes']),_0xfd543d),_0x510ad8['removeAttribute']('data-suggestion-id',_0xfd543d),_0x510ad8['removeAttribute']('data-author-id',_0xfd543d);});}},{'priority':'highest'}),_0x3c6d64['descriptionFactory']['registerDescriptionCallback'](_0x16d18c=>{if('insertion'!=_0x16d18c['type']&&'deletion'!=_0x16d18c['type'])return;const _0x3a0fd0=_0x16d18c['getContainedElement']();if(null!=_0x3a0fd0&&_0x3a0fd0['is']('element','table')){if('insertion'==_0x16d18c['type']){const _0x291a5e=_0x16d18c['getItems']()['filter'](_0x6b3b87=>_0x6b3b87['is']('$textProxy'))['map'](_0xf7ab54=>_0xf7ab54['data']);if(_0x291a5e['length'])return{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x291a5e['join']('\x20')+'\x22'))};}if('deletion'==_0x16d18c['type']){const _0x4d44ea=_0x16d18c['getItems']()['filter'](_0xc49195=>_0xc49195['is']('$textProxy'))['map'](_0x25a91e=>_0x25a91e['data']);if(_0x4d44ea['length'])return{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d44ea['join']('\x20')+'\x22'))};}}}),_0x3c6d64['descriptionFactory']['registerDescriptionCallback'](_0x298d02=>{if('tableRow'==_0x298d02['subType']){const _0x41a73b=_0x298d02['getItems']()['filter'](_0x5740fb=>_0x5740fb['is']('$textProxy'))['map'](_0x15992b=>_0x15992b['data']),_0x1db7ec=this['_getSuggestionCoords'](_0x298d02),_0x49a758=_0x1db7ec['maxRow']-_0x1db7ec['minRow']+0x1;if('insertion'==_0x298d02['type'])return _0x41a73b['length']?{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49a758,'\x22'+_0x41a73b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW',_0x49a758))};if('deletion'==_0x298d02['type'])return _0x41a73b['length']?{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49a758,'\x22'+_0x41a73b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW',_0x49a758))};}if('tableColumn'==_0x298d02['subType']){const _0x4e0151=_0x298d02['getItems']()['filter'](_0x22ec86=>_0x22ec86['is']('$textProxy'))['map'](_0x2ad9c2=>_0x2ad9c2['data']),_0x18745b=this['_getSuggestionCoords'](_0x298d02),_0x33193f=_0x18745b['maxColumn']-_0x18745b['minColumn']+0x1;if('insertion'==_0x298d02['type'])return _0x4e0151['length']?{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33193f,'\x22'+_0x4e0151['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN',_0x33193f))};if('deletion'==_0x298d02['type'])return _0x4e0151['length']?{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33193f,'\x22'+_0x4e0151['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN',_0x33193f))};}}),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x158490),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x158490),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x492791),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x492791),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2b7151),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2b7151),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x26712d),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x26712d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5636c0=this['editor'],_0x2d01c9=_0x5636c0['model']['document']['selection'];return(_0x2ff0e9,_0xcf9590)=>{_0x5636c0['model']['change'](_0x3af4da=>{const {commandName:_0x438b16,commandParams:_0x33f64b}=_0xcf9590;let _0x4952da=_0x2ff0e9[0x0]['end']['nodeBefore'];_0x33f64b&&_0x33f64b[0x0]&&!0x1===_0x33f64b[0x0]['forceValue']&&(_0x4952da=_0x2ff0e9[0x0]['start']['nodeAfter']);const _0x1461a6=_0x3af4da['createRangeIn'](_0x4952da);if('$graveyard'==_0x1461a6['root']['rootName'])return;const _0x3c3bd2=Array['from'](_0x2d01c9['getRanges']())['map'](_0x3703d3=>_0x5c6c0b['fromRange'](_0x3703d3));_0x3af4da['setSelection'](_0x1461a6),_0x5636c0['commands']['get'](_0x438b16)['refresh'](),_0x33f64b['push']({'forceDefaultExecution':!0x0}),_0x5636c0['execute'](_0x438b16,..._0x33f64b);const _0x438884=_0x3c3bd2['filter'](_0x2c0b3e=>'$graveyard'!=_0x2c0b3e['root']['rootName']);_0x438884['length']>0x0&&_0x3af4da['setSelection'](_0x438884);for(const _0x29a1a5 of _0x3c3bd2)_0x29a1a5['detach']();});};}['_getCoordsForCells'](_0x1feac1){const _0x2e701e=this['editor']['plugins']['get']('TableUtils');let _0x510620=Number['MAX_SAFE_INTEGER'],_0x4e6b81=Number['MIN_SAFE_INTEGER'],_0x477484=Number['MAX_SAFE_INTEGER'],_0x3c0608=Number['MIN_SAFE_INTEGER'];for(const _0x235152 of _0x1feac1){if('$graveyard'==_0x235152['root']['rootName'])continue;const {row:_0x24c939,column:_0x54ae04}=_0x2e701e['getCellLocation'](_0x235152),_0x5cf7c1=_0x235152['hasAttribute']('rowspan')?_0x235152['getAttribute']('rowspan')-0x1:0x0,_0x10b103=_0x235152['hasAttribute']('colspan')?_0x235152['getAttribute']('colspan')-0x1:0x0;_0x510620=_0x24c939<_0x510620?_0x24c939:_0x510620,_0x4e6b81=_0x24c939+_0x5cf7c1>_0x4e6b81?_0x24c939+_0x5cf7c1:_0x4e6b81,_0x477484=_0x54ae04<_0x477484?_0x54ae04:_0x477484,_0x3c0608=_0x54ae04+_0x10b103>_0x3c0608?_0x54ae04+_0x10b103:_0x3c0608;}return{'minRow':_0x510620,'maxRow':_0x4e6b81,'minColumn':_0x477484,'maxColumn':_0x3c0608};}['_setupColumnsRowsFixing'](){const _0x3716ab=this['editor'],_0x109940=_0x3716ab['plugins']['get']('TrackChangesEditing'),_0x128021=_0x3716ab['plugins']['get']('TableUtils');_0x3716ab['model']['document']['on']('change:data',()=>{const _0x5be50e=Array['from'](_0x3716ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x406428,data:_0x49c7d5}of _0x5be50e){const {group:_0x35a3bb,id:_0x55c383,subType:_0x463cb7}=_0x109940['_splitMarkerName'](_0x406428);if('suggestion'!=_0x35a3bb)continue;if(null!=_0x49c7d5['oldRange'])continue;const _0x164240=_0x109940['getSuggestion'](_0x55c383);this['_tablePostFixingSubtypes']['includes'](_0x463cb7)&&this['_tableSuggestions']['add'](_0x164240);}},{'priority':'low'});const _0x2e83ce=(_0x2bb948,_0x3cecdf)=>{let _0x2e94bc=!0x1;const _0x2317f1=_0x3cecdf['createRangeOn'](_0x2bb948),_0x50e193=_0x2bb948['findAncestor']('table'),_0x64f55f=_0x128021['getCellLocation'](_0x2bb948);for(const _0x354340 of this['_tableSuggestions']){const _0x579328=_0x354340['subType'],_0xc95621=_0x579328['startsWith']('tablePaste'),_0x1002ca=_0x579328['substr'](_0xc95621?0xa:0x5),_0x1f5001=_0x1002ca['toLowerCase'](),_0x51979c=_0x1f5001['substr'](0x0,0x3)+'span',_0x3315c2='min'+_0x1002ca,_0xf645b3='max'+_0x1002ca;if(!_0x354340['isInContent'])continue;if(_0x50e193!=_0x354340['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x354340['isIntersectingWithRange'](_0x2317f1))continue;const _0xa44097=_0x2bb948['hasAttribute'](_0x51979c)?_0x2bb948['getAttribute'](_0x51979c)-0x1:0x0,_0x4eac9a=this['_getSuggestionCoords'](_0x354340),_0x4eab5a=_0x4eac9a[_0x3315c2],_0x4ebf0a=_0x4eac9a[_0xf645b3];_0x4eab5a<=_0x64f55f[_0x1f5001]&&_0x64f55f[_0x1f5001]+_0xa44097<=_0x4ebf0a&&(_0x354340['addRange'](_0x2317f1),_0x2e94bc=!0x0);}return _0x2e94bc;};_0x3716ab['model']['document']['registerPostFixer'](_0x24a98d=>{let _0x2d89ec=!0x1;for(const _0x189cf1 of _0x3716ab['model']['document']['differ']['getChanges']())if('insert'==_0x189cf1['type']){if('tableRow'==_0x189cf1['name']){for(const _0x451f1d of _0x189cf1['position']['nodeAfter']['getChildren']())_0x2d89ec=_0x2d89ec||_0x2e83ce(_0x451f1d,_0x24a98d);}else'tableCell'==_0x189cf1['name']&&(_0x2d89ec=_0x2d89ec||_0x2e83ce(_0x189cf1['position']['nodeAfter'],_0x24a98d));}return _0x2d89ec;});}['_getSuggestionCoords'](_0x5316f7){return this['_getCoordsForCells'](_0x5316f7['getRanges']()['map'](_0x4f11bc=>_0x4f11bc['start']['nodeAfter']));}}function Oe(_0x205f84){return Array['from'](new Set(_0x205f84)['values']());}class Mt extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x391421=this['editor'],_0x4c608c=_0x391421['model']['document']['selection'],_0xfe3a29=_0x391421['locale'];if(!_0x391421['plugins']['has']('TableEditing'))return;const _0x15f0d6=_0x391421['plugins']['get']('TrackChangesEditing'),_0x30f770=_0x391421['plugins']['get']('TableUtils'),_0x45851b=_0x391421['plugins']['get'](Dt);_0x45851b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x15f0d6['enableCommand']('mergeTableCells',()=>{const _0x2f6362=_0x30f770['getSelectionAffectedTableCells'](_0x391421['model']['document']['selection']);_0x391421['model']['change'](()=>{_0x15f0d6['markMultiRangeBlockFormat'](_0x2f6362,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x391421['commands']['get']('mergeTableCells')['on']('execute',(_0x4bd29b,_0x571240)=>{_0x391421['commands']['get']('trackChanges')['value']&&(_0x571240['length']>0x0&&_0x571240[_0x571240['length']-0x1]&&_0x571240[_0x571240['length']-0x1]['forceDefaultExecution']||_0x15f0d6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4bd29b['stop']());},{'priority':'highest'});for(const _0x4ee2e4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x30319c=_0x391421['commands']['get'](_0x4ee2e4);_0x15f0d6['enableCommand'](_0x4ee2e4,()=>{const _0x46dd59=_0x391421['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x206437=>_0x206437['is']('element','tableCell')),_0x148a4a=_0x30319c['value'];_0x391421['model']['change'](()=>{_0x15f0d6['markMultiRangeBlockFormat']([_0x46dd59,_0x148a4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1826e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5dc0bb=_0x391421['commands']['get'](_0x1826e);_0x15f0d6['enableCommand'](_0x1826e,()=>{const _0x53bcb4=_0x30f770['getSelectionAffectedTableCells'](_0x391421['model']['document']['selection'])[0x0],_0x1fc67e=_0x53bcb4['findAncestor']('table'),{column:_0x16cde0,row:_0x6f3c80}=_0x30f770['getCellLocation'](_0x53bcb4);let _0x4d83e3=[];if('horizontally'==_0x5dc0bb['direction']){const _0x3e2258=_0x30f770['createTableWalker'](_0x1fc67e,{'startRow':_0x6f3c80,'endRow':_0x6f3c80,'includeAllSlots':!0x0});_0x4d83e3=Array['from'](_0x3e2258)['map'](_0x39af14=>_0x39af14['cell']);}else{const _0x3a8ca1=_0x30f770['createTableWalker'](_0x1fc67e,{'column':_0x16cde0,'includeAllSlots':!0x0});_0x4d83e3=Array['from'](_0x3a8ca1)['map'](_0x4c31ae=>_0x4c31ae['cell']);}_0x391421['model']['change'](_0x273c73=>{_0x15f0d6['markBlockFormat'](_0x273c73['createRangeOn'](_0x53bcb4),{'commandName':_0x1826e,'commandParams':[]},_0x4d83e3,_0x1826e);});});}_0x15f0d6['descriptionFactory']['registerDescriptionCallback'](_0x84af4e=>{if('formatBlock'!=_0x84af4e['type']&&'formatInline'!=_0x84af4e['type'])return;const {data:_0x2dd8d1}=_0x84af4e;return _0x2dd8d1&&'mergeTableCells'==_0x2dd8d1['commandName']?{'type':'format','content':o(_0xfe3a29,'*Merge\x20cells*')}:void 0x0;}),_0x15f0d6['descriptionFactory']['registerDescriptionCallback'](_0x2254c4=>{if('formatBlock'!=_0x2254c4['type']&&'formatInline'!=_0x2254c4['type'])return;const {data:_0x25e9a6}=_0x2254c4;return _0x25e9a6?'splitTableCellVertically'==_0x25e9a6['commandName']?{'type':'format','content':o(_0xfe3a29,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x25e9a6['commandName']?{'type':'format','content':o(_0xfe3a29,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5cbbdf=_0x45851b['_acceptFormatSuggestionCallbackFactory']();for(const _0x23d0a0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x15f0d6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23d0a0,'accept',_0x5cbbdf);for(const _0x2a5017 of['splitTableCellVertically','splitTableCellHorizontally'])_0x15f0d6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a5017,'accept',_0x5cbbdf);_0x15f0d6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x561861=>{_0x391421['model']['change'](_0x253828=>{const _0x4dac09=Array['from'](_0x4c608c['getRanges']())['map'](_0x137a60=>_0x5c6c0b['fromRange'](_0x137a60));_0x253828['setSelection'](_0x561861),_0x391421['commands']['get']('mergeTableCells')['refresh'](),_0x391421['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28f7c6=_0x4dac09['filter'](_0x1b120f=>'$graveyard'!=_0x1b120f['root']['rootName']);_0x28f7c6['length']>0x0&&_0x253828['setSelection'](_0x28f7c6);for(const _0x45b7fe of _0x4dac09)_0x45b7fe['detach']();});});for(const _0x4040c7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3b8880=_0x391421['commands']['get'](_0x4040c7);_0x3b8880['on']('set:isEnabled',(_0x434b33,_0x1e38b5,_0x1b702b)=>{if(_0x1b702b){const _0x39da2c=_0x391421['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d0c76=>_0x2d0c76['is']('element','tableCell'));this['_areMergableCells'](_0x3b8880['value'],_0x39da2c)||(_0x434b33['return']=!0x1,_0x434b33['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2fd8ac=this['editor']['commands']['get']('mergeTableCells'),_0x2da114=this['editor']['plugins']['get']('TableUtils');if(!_0x2fd8ac['isEnabled'])return!0x1;const _0x54566f=_0x2da114['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3e8317 of _0x54566f)for(const _0x3e701d of _0x54566f)if(_0x3e8317!=_0x3e701d&&!this['_areMergableCells'](_0x3e8317,_0x3e701d))return!0x1;return!0x0;}['_areMergableCells'](_0x1ccae3,_0x26ed6d){const _0x4e029e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4224cb=this['editor']['model']['createRangeOn'](_0x1ccae3),_0x5e8647=this['editor']['model']['createRangeOn'](_0x26ed6d),_0x2eeb70=new Set(),_0x5d6baf=new Set();for(const _0x3ba1c8 of _0x4e029e['getSuggestions']())if(('insertion'==_0x3ba1c8['type']||'deletion'==_0x3ba1c8['type']||'mergeTableCells'==_0x3ba1c8['subType'])&&_0x3ba1c8['isInContent']){for(const _0xd4c170 of _0x3ba1c8['getRanges']())_0xd4c170['containsRange'](_0x4224cb,!0x0)&&_0x2eeb70['add'](_0x3ba1c8['type']+':'+_0x3ba1c8['author']['id']),_0xd4c170['containsRange'](_0x5e8647,!0x0)&&_0x5d6baf['add'](_0x3ba1c8['type']+':'+_0x3ba1c8['author']['id']);}if(_0x2eeb70['size']!=_0x5d6baf['size'])return!0x1;for(const _0x1e690e of _0x2eeb70)if(!_0x5d6baf['has'](_0x1e690e))return!0x1;return!0x0;}}class Bt extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x5afc82=this['editor'];if(!_0x5afc82['plugins']['has']('TableEditing'))return;const _0x252805=_0x5afc82['locale'],_0x27f395=_0x5afc82['plugins']['get']('TrackChangesEditing');_0x27f395['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27f395['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27f395['registerBlockAttribute']('headingRows'),_0x27f395['registerBlockAttribute']('headingColumns'),_0x27f395['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x252805,'FORMAT_HEADER_ROW')),_0x27f395['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x252805,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x539c35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x72dfa=this['editor']['plugins']['get']('TableUtils'),_0x247147=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x31643c({showActiveMarker:_0x392ea5=!0x0,setDataAttribute:_0x3bbdca=!0x0}={}){return(_0x59d308,_0x53cad2,_0xf570d9)=>{const {type:_0x15b7b3,id:_0x22b1ac}=_0x539c35['_splitMarkerName'](_0x53cad2['markerName']);if(!_0x539c35['hasSuggestion'](_0x22b1ac))return;const _0x1b194e=_0x539c35['getSuggestion'](_0x22b1ac),_0x13d885=_0x1b194e['data'];if('formatBlock'!=_0x1b194e['type']||!_0x13d885||'setTableColumnHeader'!=_0x13d885['commandName'])return;if(_0x53cad2['item'])return void _0x59d308['stop']();if(!_0xf570d9['consumable']['consume'](_0x53cad2['markerRange'],_0x59d308['name']))return;const _0x2b80ff=_0x53cad2['markerRange']['start']['nodeAfter'],_0x174afe=_0x53cad2['markerRange']['end']['nodeBefore'],_0x5d0c26=_0x2b80ff['parent']['parent'],{column:_0x232425}=_0x72dfa['getCellLocation'](_0x2b80ff),{column:_0x16b1d0}=_0x72dfa['getCellLocation'](_0x174afe);for(let _0x4b293d=_0x232425;_0x4b293d<=_0x16b1d0;_0x4b293d++){const _0x277aaa=_0x72dfa['createTableWalker'](_0x5d0c26,{'column':_0x4b293d,'includeAllSlots':!0x1});for(const _0x5358f2 of _0x277aaa){const _0xe897db=_0x5358f2['cell'],_0x15079f=_0xf570d9['mapper']['toViewElement'](_0xe897db);_0xf570d9['writer']['addClass']('ck-suggestion-marker-'+_0x15b7b3,_0x15079f),_0x3bbdca&&_0xf570d9['writer']['setAttribute']('data-suggestion',_0x22b1ac,_0x15079f),_0xf570d9['mapper']['bindElementToMarker'](_0x15079f,_0x53cad2['markerName']),_0x392ea5&&(_0x539c35['activeMarkers']['includes'](_0x53cad2['markerName'])?_0xf570d9['writer']['addClass']('ck-suggestion-marker--active',_0x15079f):_0xf570d9['writer']['removeClass']('ck-suggestion-marker--active',_0x15079f));}}};}_0x539c35['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x247147),_0x539c35['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x247147),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x31643c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e39a1,_0x39637a,_0x22b5bd)=>{_0x22b5bd['options']['showSuggestionHighlights']&&_0x31643c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e39a1,_0x39637a,_0x22b5bd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45daa0,_0x7453ae,_0x3da329)=>{const {type:_0x120c2b,id:_0x416878}=_0x539c35['_splitMarkerName'](_0x7453ae['markerName']);if(!_0x539c35['hasSuggestion'](_0x416878))return;const _0xefa86e=_0x539c35['getSuggestion'](_0x416878),_0xa68a31=_0xefa86e['data'];if('formatBlock'!=_0xefa86e['type']||!_0xa68a31||'setTableColumnHeader'!=_0xa68a31['commandName'])return;const _0x45e66a=_0x3da329['mapper']['markerNameToElements'](_0x7453ae['markerName']);if(_0x45e66a){for(const _0x2000c1 of _0x45e66a)_0x3da329['writer']['removeClass']('ck-suggestion-marker-'+_0x120c2b,_0x2000c1),_0x3da329['writer']['removeClass']('ck-suggestion-marker--active',_0x2000c1),_0x3da329['writer']['removeAttribute']('data-suggestion',_0x2000c1),_0x3da329['mapper']['unbindElementFromMarkerName'](_0x2000c1,_0x7453ae['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312721=this['editor'],_0x3fa82f=_0x312721['locale'];function _0xce1f09(_0x384765){return{'type':'format','content':o(_0x3fa82f,'*Format:*\x20%0',_0x384765)};}_0x312721['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fbd1f=>{if('formatBlock'!=_0x1fbd1f['type'])return;const {data:_0xe810be}=_0x1fbd1f;if(_0xe810be){if('setTableRowHeader'==_0xe810be['commandName']){const _0x1b4d1b=_0xe810be['commandParams'][0x0]['forceValue'];return _0xce1f09(o(_0x3fa82f,_0x1b4d1b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe810be['commandName']){const _0x1e71c1=_0xe810be['commandParams'][0x0]['forceValue'];return _0xce1f09(o(_0x3fa82f,_0x1e71c1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x4be19b{['afterInit'](){const _0xd2b0ac=this['editor'],_0x2523f9=_0xd2b0ac['locale'],_0x46e4a7=_0xd2b0ac['plugins']['get']('TrackChangesEditing');function _0x15098f(_0x9faa5){return{'type':'format','content':''+o(_0x2523f9,'*Set\x20table\x20type:*\x20%0',_0x9faa5)};}_0xd2b0ac['plugins']['has']('TableLayout')&&(_0x46e4a7['enableCommand']('insertTableLayout'),_0x46e4a7['enableDefaultAttributesIntegration']('tableType'),_0x46e4a7['registerBlockAttribute']('tableType'),_0x46e4a7['descriptionFactory']['registerElementLabel'](_0xd2bec=>_0xd2bec['is']('element','table')&&'layout'===_0xd2bec['getAttribute']('tableType'),_0x1028b5=>o(_0x2523f9,'ELEMENT_LAYOUT_TABLE',_0x1028b5)),_0x46e4a7['descriptionFactory']['registerDescriptionCallback'](_0x43386f=>{const {data:_0x533324}=_0x43386f;if(_0x533324&&'tableType'==_0x533324['key'])switch(_0x533324['newValue']){case'layout':return _0x15098f(o(_0x2523f9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x15098f(o(_0x2523f9,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ue['map'](_0x134686=>[_0x134686,null]));class Ot extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x3b6133=this['editor'];if(!_0x3b6133['plugins']['has']('TableClipboard'))return;const _0x201c18=_0x3b6133['plugins']['get']('TrackChangesEditing'),_0xba5778=_0x3b6133['plugins']['get']('TableUtils'),_0x59ff9a=_0x3b6133['plugins']['get'](Dt),_0x16c488=_0x3b6133['plugins']['get']('TableClipboard'),_0x549bf7=_0x3b6133['plugins']['get']('TableSelection'),_0x8b4d63=_0x3b6133['plugins']['get'](_0x556691);_0x59ff9a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3b6133['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3b6133['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5fa3a4=null,_0x23f024=!0x1;_0x8b4d63['on']('contentInsertion',(_0x59abae,_0xbc272e)=>{_0x23f024='paste'===_0xbc272e['method'];}),_0x3b6133['model']['on']('insertContent',(_0x33f3ab,_0x405b4e)=>{if(!_0x23f024&&null===_0x549bf7['getSelectedTableCells']())return;const [_0x4a7b5e,_0x4f0f91]=_0x405b4e,_0xb29d62=_0x405b4e[_0x405b4e['length']-0x1];_0xb29d62&&_0xb29d62['forceDefaultExecution']||_0x201c18['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x44cff1,_0x2928c7,_0x491d4b,_0x18e0dc,_0x3fec40){if(_0x2928c7&&!_0x2928c7['is']('documentSelection'))return!0x1;const _0x21edc4=_0x3fec40['getTableIfOnlyTableInContent'](_0x44cff1,_0x491d4b);if(!_0x21edc4||!Ge(_0x21edc4,void 0x0,_0x18e0dc))return!0x1;const _0x2762bf=_0x18e0dc['getSelectionAffectedTableCells'](_0x491d4b['document']['selection']);if(!_0x2762bf['length'])return!0x1;const _0x1044a7=_0x2762bf[0x0]['findAncestor']('table'),_0x258ed8=_0x18e0dc['getRowIndexes'](_0x2762bf),_0x1544c1=_0x18e0dc['getColumnIndexes'](_0x2762bf),_0x400c45={'startRow':_0x258ed8['first'],'endRow':_0x258ed8['last'],'startColumn':_0x1544c1['first'],'endColumn':_0x1544c1['last']};return 0x1==_0x2762bf['length']&&(_0x400c45['endRow']+=_0x18e0dc['getRows'](_0x21edc4)-0x1,_0x400c45['endColumn']+=_0x18e0dc['getColumns'](_0x21edc4)-0x1),Ge(_0x1044a7,_0x400c45,_0x18e0dc);}(_0x4a7b5e,_0x4f0f91,_0x3b6133['model'],_0xba5778,_0x16c488)&&(_0x33f3ab['stop'](),_0x5fa3a4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3b6133['model']['change'](()=>{_0x3b6133['model']['insertContent'](_0x405b4e[0x0],_0x405b4e[0x1],_0x405b4e[0x2],{'forceDefaultExecution':!0x0});const _0x3af58a=_0xf4a34a(),{rowInsertionRanges:_0xb38124,columnInsertionRanges:_0x397b08,insertionRanges:_0x59fe17,deletionRanges:_0x123ddd,cells:_0x4c4ba8}=_0x5fa3a4;_0xb38124['length']&&_0x201c18['markMultiRangeInsertion'](_0xb38124,'tablePasteRow',{'tablePasteChainId':_0x3af58a}),_0x397b08['length']&&_0x201c18['markMultiRangeInsertion'](_0x397b08,'tablePasteColumn',{'tablePasteChainId':_0x3af58a}),_0x59fe17['length']&&(_0x201c18['markMultiRangeInsertion'](_0x59fe17,'tablePaste',{'tablePasteChainId':_0x3af58a,'skipNestingCheck':!0x0}),_0x59fe17['forEach'](_0x229acd=>_0x229acd['detach']?.())),_0x123ddd['length']&&(_0x201c18['markMultiRangeDeletion'](_0x123ddd,'tablePaste',{'tablePasteChainId':_0x3af58a,'skipNestingCheck':!0x0}),_0x123ddd['forEach'](_0x2c3ea0=>_0x2c3ea0['detach']?.()));const _0x44f2e9=_0x201c18['markMultiRangeBlockFormat'](_0x4c4ba8['map'](({element:_0x4fdbc3})=>_0x4fdbc3),{'formatGroupId':_0xf4a34a()},[],'tablePasteCell',{'tablePasteChainId':_0x3af58a});if(_0x44f2e9){const _0x83cafe=_0x44f2e9['getMarkers'](),_0x50fb88=[];for(const {element:_0x2e829d,attributes:_0x28d7c7}of _0x4c4ba8){if(!_0x28d7c7)continue;const _0x14ad01=_0x3b6133['model']['createRangeOn'](_0x2e829d),_0x34d558=_0x83cafe['find'](_0x2077ef=>_0x2077ef['getRange']()['isEqual'](_0x14ad01));_0x34d558&&_0x50fb88['push']([_0x34d558['name'],_0x28d7c7]);}_0x50fb88['length']&&_0x44f2e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x50fb88));}_0x5fa3a4=null;}));},{'priority':_0x4d4930['high']+0xa}),_0x8b4d63['on']('contentInsertion',()=>{_0x23f024=!0x1;},{'priority':'lowest'}),_0x3b6133['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf81b2,_0x1e7bca)=>{const [_0x57b66f,_0x39ee77,,_0x301f61]=_0x1e7bca;if(!_0x5fa3a4)return;_0xf81b2['stop']();const _0x1afde5=_0x57b66f['cell'],_0x29a233=_0x39ee77,_0x1223da=ze(_0x1afde5),_0x31208e=ze(_0x29a233);_0xf81b2['return']=_0x1afde5;let _0x45fe55=null,_0x11a143=null;if(_0x31208e||_0x1223da){if(_0x1223da&&!_0x31208e){_0x301f61['remove'](_0x1afde5['getChild'](0x0));for(const _0x2b8ccc of Array['from'](_0x29a233['getChildren']()))_0x301f61['insert'](_0x2b8ccc,_0x1afde5,'end');const _0x47b682=_0x5fa3a4['rowInsertionIndexes']['includes'](_0x57b66f['row']),_0x2f0b32=_0x5fa3a4['columnInsertionIndexes']['includes'](_0x57b66f['column']);_0x47b682||_0x2f0b32||(_0x45fe55=_0x5c6c0b['fromRange'](_0x301f61['createRangeIn'](_0x1afde5)));}else _0x31208e&&!_0x1223da&&(_0x11a143=_0x301f61['createRangeIn'](_0x1afde5));}else{const _0x2ec97c=_0x301f61['createElement']('tableCellSuggestion'),_0x2692a0=_0x301f61['createElement']('tableCellSuggestion');_0x301f61['wrap'](_0x301f61['createRangeIn'](_0x1afde5),_0x2692a0),_0x301f61['insert'](_0x2ec97c,_0x1afde5,0x0);for(const _0x5091a1 of Array['from'](_0x29a233['getChildren']()))_0x301f61['insert'](_0x5091a1,_0x2ec97c,'end');_0x45fe55=_0x5c6c0b['fromRange'](_0x301f61['createRangeOn'](_0x2ec97c)),_0x11a143=_0x5c6c0b['fromRange'](_0x301f61['createRangeOn'](_0x2692a0));}const _0x417413=Array['from'](_0x29a233['getAttributes']())['filter'](([_0x34bf73])=>Ue['includes'](_0x34bf73));_0x5fa3a4['cells']['push']({'element':_0x1afde5,'attributes':_0x417413['length']?Object['fromEntries'](_0x417413):null}),_0x45fe55&&_0x5fa3a4['insertionRanges']['push'](_0x45fe55),_0x11a143&&_0x5fa3a4['deletionRanges']['push'](_0x11a143);},{'priority':'high'}),_0xba5778['on']('insertColumns',(_0x1b3fd3,_0x57a986)=>{const [_0x107c3b,_0x44aee2={}]=_0x57a986;if(!_0x5fa3a4)return;const _0x2e69da=_0x44aee2['at']||0x0,_0x2e6785=_0x44aee2['columns']||0x1;_0x5fa3a4['columnInsertionIndexes']=new Array(_0x2e6785)['fill'](_0x2e69da)['map']((_0x1deb47,_0x3b67e8)=>_0x1deb47+_0x3b67e8);for(const {cell:_0x398ee9}of _0xba5778['createTableWalker'](_0x107c3b,{'startColumn':_0x2e69da,'endColumn':_0x2e69da+_0x2e6785-0x1}))_0x5fa3a4['columnInsertionRanges']['push'](_0x3b6133['model']['createRangeOn'](_0x398ee9));},{'priority':'low'}),_0xba5778['on']('insertRows',(_0x509264,_0x269104)=>{const [_0xbc8de4,_0x41b671={}]=_0x269104;if(!_0x5fa3a4)return;const _0x2fe6ed=_0x41b671['at']||0x0,_0x14b6a2=_0x41b671['rows']||0x1;_0x5fa3a4['rowInsertionIndexes']=new Array(_0x14b6a2)['fill'](_0x2fe6ed)['map']((_0x14a659,_0x5b7198)=>_0x14a659+_0x5b7198);for(const {cell:_0x1adcb4}of _0xba5778['createTableWalker'](_0xbc8de4,{'startRow':_0x2fe6ed,'endRow':_0x2fe6ed+_0x14b6a2-0x1}))_0x5fa3a4['rowInsertionRanges']['push'](_0x3b6133['model']['createRangeOn'](_0x1adcb4));},{'priority':'low'}),_0x201c18['descriptionFactory']['registerDescriptionCallback'](_0x3bb26e=>{if(_0x3bb26e['subType']&&_0x3bb26e['subType']['startsWith']('tablePaste'))return _0x3bb26e['previous']?{}:{'type':'insertion','content':o(_0x3b6133['locale'],'*Replace\x20table\x20cells*')};});const _0x391305=()=>!0x1;for(const _0x5dbb7b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x201c18['_suggestionFactory']['registerCustomCallback']('insertion',_0x5dbb7b,'join',_0x391305),_0x201c18['_suggestionFactory']['registerCustomCallback']('deletion',_0x5dbb7b,'join',_0x391305),_0x201c18['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dbb7b,'join',_0x391305);_0x201c18['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x391305),_0x201c18['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd18daf,_0x1b73cb,_0x503229)=>{const _0x356fd9=_0xd18daf['map'](_0x5ee097=>_0x5ee097['getContainedElement']())['filter'](_0x38415b=>_0x38415b),_0x41b03f=new Map(_0x356fd9['map'](_0x2bd406=>[_0x2bd406,null]));if(_0x5fa3a4){for(const {element:_0x47f263,attributes:_0x2080e7}of _0x5fa3a4['cells'])_0x2080e7&&_0x41b03f['set'](_0x47f263,_0x2080e7);}else{if(_0x503229&&_0x503229['markerAttributes'])for(const [_0x304be8,_0x740542]of Object['entries'](_0x503229['markerAttributes'])){const _0x2c091f=_0x3b6133['model']['markers']['get'](_0x304be8),_0x5ae50f=_0x2c091f?_0x2c091f['getRange']()['getContainedElement']():null;_0x5ae50f&&_0x41b03f['set'](_0x5ae50f,_0x740542);}}_0x3b6133['model']['change'](_0x35f123=>{for(const [_0x750722,_0x341e8d]of _0x41b03f)_0x35f123['setAttributes']({...He,..._0x341e8d},_0x750722);});});const _0x22ac08=(_0xd47732,_0x1ef330)=>{_0x201c18['_suggestionFactory']['registerCustomCallback'](_0xd47732,'tablePaste',_0x1ef330,(_0x1a1f3b,_0x26e294,_0x351478)=>{_0x3b6133['model']['change'](_0xaf6f0d=>{const _0x5966e5=[];for(const _0x16df5d of _0x1a1f3b){const _0x4a0946=_0x16df5d['start']['nodeAfter'];_0x4a0946['is']('element','tableCellSuggestion')&&_0x5966e5['push'](_0x4a0946);}_0x201c18['_suggestionFactory']['getSuggestionCallback'](_0xd47732,null,_0x1ef330)(_0x1a1f3b,_0x26e294,_0x351478);for(const _0x1e146a of _0x5966e5)'$graveyard'!=_0x1e146a['root']['rootName']&&_0xaf6f0d['unwrap'](_0x1e146a);});});};_0x22ac08('insertion','accept'),_0x22ac08('insertion','discard'),_0x22ac08('deletion','accept'),_0x22ac08('deletion','discard'),_0x201c18['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x51f2e0=>{const _0x1e0e56=_0x51f2e0['map'](_0x400fad=>_0x400fad['getContainedElement']()),_0x3c69a1=_0x1e0e56[0x0]['findAncestor']('table'),{minRow:_0x561819,maxRow:_0x38e538}=_0x59ff9a['_getCoordsForCells'](_0x1e0e56);_0xba5778['removeRows'](_0x3c69a1,{'at':_0x561819,'rows':_0x38e538-_0x561819+0x1});}),_0x201c18['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5ca640=>{const _0x1ff491=_0x5ca640['map'](_0x29cc4b=>_0x29cc4b['getContainedElement']()),_0x1f3a31=_0x1ff491[0x0]['findAncestor']('table'),{minColumn:_0xaa0fff,maxColumn:_0x276b18}=_0x59ff9a['_getCoordsForCells'](_0x1ff491);_0xba5778['removeColumns'](_0x1f3a31,{'at':_0xaa0fff,'columns':_0x276b18-_0xaa0fff+0x1});});const _0x37ff1d=(_0x5c4960,_0x36e0c0)=>{if(!_0x36e0c0['subType']||!_0x36e0c0['subType']['startsWith']('tablePaste'))return;const _0x4c5b6d=_0x36e0c0['attributes']['tablePasteChainId'],_0x38c233=_0x201c18['getSuggestions']()['filter'](_0x1731bf=>_0x1731bf['isInContent']&&_0x1731bf['attributes']&&_0x1731bf['attributes']['tablePasteChainId']==_0x4c5b6d);_0x38c233['length']&&_0x36e0c0['getAllAdjacentSuggestions']()['length']!=_0x38c233['length']&&_0x38c233['reduce']((_0x1c24d9,_0x357c4b)=>(_0x1c24d9['next']=_0x357c4b,_0x357c4b['previous']=_0x1c24d9,_0x357c4b));};function _0x255b68(_0x2529ae,_0x988b70=!0x0){const {id:_0x24ce9e,authorId:_0xc91948}=_0x201c18['_splitMarkerName'](_0x2529ae['markerName']),_0x15ab15=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x255baa=_0x201c18['activeMarkers']['includes'](_0x2529ae['markerName']);return _0x255baa&&_0x15ab15['push']('ck-suggestion-marker--active'),{'classes':_0x15ab15,'attributes':{'data-suggestion':_0x24ce9e,'data-author-id':_0xc91948},'priority':_0x255baa&&_0x988b70?0xbc2:0xbb8};}_0x201c18['on']('suggestionLoaded',_0x37ff1d,{'priority':'high'}),_0x201c18['on']('suggestionUnloaded',_0x37ff1d,{'priority':'high'}),_0x3b6133['model']['document']['registerPostFixer'](()=>{let _0x47af16=!0x1;const _0x34f7df=Array['from'](_0x3b6133['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ede7d,data:_0x2a8acf}of _0x34f7df){const {group:_0x254c97,type:_0xa4d320,id:_0x1c1832}=_0x201c18['_splitMarkerName'](_0x1ede7d);if('suggestion'!=_0x254c97||'deletion'!=_0xa4d320||_0x2a8acf['oldRange'])continue;if(!_0x201c18['hasSuggestion'](_0x1c1832))continue;const _0x5a480a=_0x201c18['getSuggestion'](_0x1c1832)['getRanges'](),_0x4e369e=_0x3b6133['plugins']['get']('Users')['me'];for(const _0x12518d of _0x201c18['getSuggestions']()){if(!_0x12518d['isInContent']||_0x12518d['author']!=_0x4e369e)continue;if('formatBlock'!=_0x12518d['type']||'tablePasteCell'!=_0x12518d['subType'])continue;if(_0x12518d['getRanges']()['every'](_0x320260=>_0x5a480a['some'](_0x1ade24=>_0x1ade24['containsRange'](_0x320260,!0x0)))){for(const _0xd9c1e4 of _0x12518d['getAllAdjacentSuggestions']())_0xd9c1e4['isInContent']&&(_0xd9c1e4['discard'](),_0x47af16=!0x0);}}}return _0x47af16;}),_0x3b6133['model']['document']['registerPostFixer'](_0x2c5ba0=>{const _0x546b3e=_0x3b6133['commands']['get']('redo');if(!_0x546b3e||!_0x546b3e['_createdBatches']['has'](_0x2c5ba0['batch']))return!0x1;let _0x168c71=!0x1;const _0x240026=_0x3b6133['plugins']['get']('Users')['me'],_0x239d0c=_0x3b6133['model']['document']['differ']['getChanges'](),_0x930c36=Array['from'](_0x3b6133['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x41a95d,data:_0x3686ea})=>{const {group:_0xe60d6b,subType:_0x261291,authorId:_0x42b9e5}=_0x201c18['_splitMarkerName'](_0x41a95d);return'suggestion'==_0xe60d6b&&'tablePaste'==_0x261291&&_0x42b9e5==_0x240026['id']&&!_0x3686ea['oldRange'];});for(const _0x222438 of _0x239d0c){if('insert'!=_0x222438['type']||'tableCellSuggestion'!=_0x222438['name']||0x1!=_0x222438['length'])continue;const _0x28074f=_0x2c5ba0['createRange'](_0x222438['position'],_0x222438['position']['getShiftedBy'](0x1));if(!_0x930c36['find'](({data:_0x46e207})=>_0x46e207['newRange']['isEqual'](_0x28074f))){for(const {name:_0x181b88,data:_0x56fac6}of _0x930c36)if(_0x28074f['containsRange'](_0x56fac6['newRange'])){_0x2c5ba0['updateMarker'](_0x181b88,{'range':_0x28074f}),_0x168c71=!0x0;break;}}}return _0x168c71;}),_0x3b6133['model']['document']['registerPostFixer'](_0x3e1360=>{let _0x3c3937=!0x1;const _0x1517ee=_0x3b6133['plugins']['get']('Users')['me'],_0x2e6315=_0x201c18['getSuggestions']()['filter'](_0x14c5ed=>_0x14c5ed['isInContent']&&_0x14c5ed['author']==_0x1517ee),_0x2352c4=new Set(),_0x14421f=new Set();for(const _0x526e97 of _0x2e6315)if('tablePaste'==_0x526e97['subType'])for(const _0x408707 of _0x526e97['getMarkers']()){const _0x3dad4e=_0x408707['getRange']()['getContainedElement']();if(_0x3dad4e){if(_0x3dad4e['is']('element','tableCellSuggestion')&&ze(_0x3dad4e)){_0x526e97['removeMarker'](_0x408707['name']),_0x2352c4['add'](_0x3dad4e),_0x3c3937=!0x0;const _0x38a243=_0x3dad4e['nextSibling'],_0x3136b5=_0x3dad4e['previousSibling'],_0x3edf6c=_0x38a243&&_0x38a243['is']('element','tableCellSuggestion'),_0xf3bf29=_0x3136b5&&_0x3136b5['is']('element','tableCellSuggestion');_0x3edf6c&&!_0x2352c4['has'](_0x38a243)&&_0x14421f['add'](_0x38a243),_0xf3bf29&&!_0x2352c4['has'](_0x3136b5)&&_0x14421f['add'](_0x3136b5);}else _0x3dad4e['is']('element','paragraph')&&_0x3dad4e['isEmpty']&&(_0x526e97['removeMarker'](_0x408707['name']),_0x3c3937=!0x0);}}else{if('tablePasteCell'==_0x526e97['subType']){if(!_0x526e97['attributes']||!_0x526e97['attributes']['tablePasteChainId'])continue;const _0xb339c1=_0x526e97['attributes']['markerAttributes'];if(_0xb339c1&&Object['keys'](_0xb339c1)['length'])continue;const _0x469d6b=_0x526e97['attributes']['tablePasteChainId'];let _0x4d6346=!0x0,_0x2a1e8c=!0x0;for(const _0x11f415 of _0x2e6315)if(_0x11f415['subType']&&_0x11f415['subType']['startsWith']('tablePaste')){if(!_0x11f415['attributes']['tablePasteChainId']){_0x2a1e8c=!0x1;break;}if(_0x11f415['id']!=_0x526e97['id']&&_0x11f415['attributes']['tablePasteChainId']==_0x469d6b){_0x4d6346=!0x1;break;}}_0x2a1e8c&&_0x4d6346&&(_0x526e97['removeMarkers'](),_0x3c3937=!0x0);}}for(const _0x48a9db of _0x2352c4)_0x3e1360['remove'](_0x48a9db);for(const _0x40e234 of _0x14421f)_0x3e1360['unwrap'](_0x40e234);return _0x3c3937;}),_0x3b6133['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1f1938=>_0x255b68(_0x1f1938),'converterPriority':'high'}),_0x3b6133['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59e21e,_0x4fe567)=>_0x4fe567['options']['showSuggestionHighlights']?_0x255b68(_0x59e21e,!0x1):null,'converterPriority':'high'});const _0x311879=_0x3b6133['editing']['view'];this['listenTo'](_0x311879['document'],'clipboardOutput',(_0x346d21,_0x1bf55e)=>{const _0x11de10=[];for(const _0x17de33 of _0x311879['createRangeIn'](_0x1bf55e['content'])['getItems']())_0x17de33['is']('element','suggestion-td')&&_0x11de10['push'](_0x17de33);_0x311879['change'](_0x3e48fd=>{for(const _0xacfc61 of _0x11de10)_0x3e48fd['move'](_0x3e48fd['createRangeIn'](_0xacfc61),_0x3e48fd['createPositionBefore'](_0xacfc61)),_0x3e48fd['remove'](_0xacfc61);});});}}function ze(_0xd4816c){if(_0xd4816c['isEmpty'])return!0x0;const _0x3e1c19=_0xd4816c['getChild'](0x0);return _0x3e1c19['is']('element','paragraph')&&_0x3e1c19['isEmpty'];}function Ge(_0x20d1da,_0x20fc8c={},_0x2208f4){for(const {isAnchor:_0x26e588,cellHeight:_0x370082,cellWidth:_0x8f14bd}of _0x2208f4['createTableWalker'](_0x20d1da,{'includeAllSlots':!0x0,..._0x20fc8c}))if(!_0x26e588||0x1!=_0x370082||0x1!=_0x8f14bd)return!0x1;return!0x0;}class xt extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x590bfc=this['editor']['plugins']['get']('TrackChangesEditing');_0x590bfc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x590bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x590bfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x590bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x590bfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x590bfc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x794d3b,_0x2435c1){const _0x9de015=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ea55=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x126f4a=_0x2435c1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2af691=_0x20ea55['getColumnGroupElement'](_0x126f4a);let _0x17386d=_0x2af691?_0x20ea55['getTableColumnsWidths'](_0x2af691):null,_0x27de4a=_0x126f4a['getAttribute']('tableWidth')||null;const _0x46b107=_0x2435c1['tableWidth']||_0x27de4a,_0x500fa0=_0x2435c1['columnWidths']||_0x17386d,_0x5affc6=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f631b of _0x9de015['getSuggestions']()){const _0x4b8137=_0x1f631b['getContainedElement']();if('resizeTable'===_0x1f631b['subType']&&_0x4b8137===_0x126f4a){_0x1f631b['author']!==_0x5affc6&&_0x1f631b['discard']();const _0x2e3eea=_0x1f631b['data']['commandParams'];_0x27de4a=_0x2e3eea[0x0]['tableWidth'],_0x17386d=_0x2e3eea[0x0]['columnWidths'];break;}}_0x794d3b({'table':_0x126f4a,'tableWidth':_0x46b107,'columnWidths':_0x500fa0}),_0x9de015['markBlockFormat'](_0x126f4a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27de4a,'columnWidths':_0x17386d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5b3043){if('formatBlock'!=_0x5b3043['type']&&'formatInline'!=_0x5b3043['type'])return;const {data:_0x409024}=_0x5b3043;if(_0x409024&&'resizeTable'===_0x409024['formatGroupId']){const _0x58b3ca='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x58b3ca)};}}}class Et extends _0x4be19b{['afterInit'](){const _0x39a359=this['editor'];_0x39a359['plugins']['has']('Template')&&_0x39a359['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x4be19b{['afterInit'](){const _0x4ac712=this['editor'];if(!_0x4ac712['commands']['get']('insertTableOfContents'))return;_0x4ac712['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x15f075=_0x4ac712['plugins']['get']('TrackChangesEditing'),_0x5bb6ec=_0x4ac712['locale'];_0x15f075['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4348ca=>o(_0x5bb6ec,'ELEMENT_TABLE_OF_CONTENTS',_0x4348ca));}}class Ut extends _0x4be19b{['afterInit'](){const _0x4da352=this['editor'];if(!_0x4da352['plugins']['has']('Title'))return;const _0x5638f3=_0x4da352['plugins']['get']('TrackChangesEditing');_0x5638f3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4da352['locale'],'ELEMENT_TITLE')),_0x4da352['model']['document']['registerPostFixer'](_0x397727=>{let _0x29b72f=!0x1;const _0xc77d05=Array['from'](_0x4da352['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ed57c,data:_0xf5e022}of _0xc77d05){const {group:_0x33b027}=_0x5638f3['_splitMarkerName'](_0x2ed57c);if('suggestion'!==_0x33b027||!_0xf5e022['newRange'])continue;const _0x2d53fe=_0xf5e022['newRange'],_0x39e946=_0x2d53fe['end']['nodeBefore'];if(!_0x39e946||!_0x39e946['is']('element','title-content'))continue;if(!_0x2d53fe['start']['isTouching'](_0x2d53fe['end']))continue;const _0x3725ab=_0x4da352['model']['schema']['getNearestSelectionRange'](_0x2d53fe['end'],'forward');if(_0x3725ab&&_0x3725ab['isCollapsed']){const _0x48fd99=_0x397727['createRange'](_0x2d53fe['start'],_0x3725ab['start']);_0x48fd99['isEqual'](_0x2d53fe)||(_0x397727['updateMarker'](_0x2ed57c,{'range':_0x48fd99}),_0x29b72f=!0x0);}_0x29b72f||(_0x397727['removeMarker'](_0x2ed57c),_0x29b72f=!0x0);}return _0x29b72f;});}}class Vt extends _0x4be19b{['afterInit'](){const _0x5d917f=this['editor'],_0x5b66f0=_0x5d917f['plugins']['get']('TrackChangesEditing');_0x5d917f['plugins']['has']('Uploadcare')&&(_0x5b66f0['enableCommand']('uploadcare'),_0x5d917f['plugins']['has']('UploadcareImageEdit')&&(_0x5b66f0['enableCommand']('uploadcareImageEdit'),_0x5b66f0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5b66f0['registerBlockAttribute']('uploadcareImageId'),_0x5b66f0['descriptionFactory']['registerDescriptionCallback'](_0x1454a1=>{if('attribute'!=_0x1454a1['type'])return;const {data:_0x122591}=_0x1454a1;return _0x122591&&'uploadcareImageId'==_0x122591['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x4be19b{['afterInit'](){const _0x2390ad=this['editor'],_0x5ba86a=_0x2390ad['plugins']['get']('TrackChangesEditing');_0x2390ad['plugins']['has']('UndoEditing')&&(_0x5ba86a['enableCommand']('undo'),_0x5ba86a['enableCommand']('redo'));}}class Pt extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x17526c=this['editor'];if(!_0x17526c['plugins']['has']('TableCaptionEditing'))return;_0x17526c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x4be19b{['tableProperties'];['tableCellProperties'];constructor(_0x316f53){super(_0x316f53),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 _0x2556e8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2817f7 of this['tableProperties'])_0x2556e8['enableCommand'](_0x2817f7,(_0x527290,_0x419247)=>{const _0x5d4a13=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2817f7,[_0x5d4a13],this['tableProperties'],'tableProperties',_0x527290,_0x419247);});_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2556e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d93a2,_0x2c6e79)=>this['handleDiscardAction'](this['tableProperties'],_0x1d93a2,_0x2c6e79)),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b0aeb of this['tableCellProperties'])_0x2556e8['enableCommand'](_0x2b0aeb,(_0x47180c,_0x199568)=>{const _0x3f1c8a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b0aeb,_0x3f1c8a,this['tableCellProperties'],'tableCellProperties',_0x47180c,_0x199568);});_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2556e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1f58dd,_0x534cba)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1f58dd,_0x534cba)),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2556e8['descriptionFactory']['registerDescriptionCallback'](_0x3cfafb=>this['handleSuggestionDescription'](_0x3cfafb)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x55a98f,_0x29afdc,_0x51b58d,_0x30c8b1,_0x11df8b,_0x272948){const _0xfdaa48=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x272948['batch'],()=>{for(const _0x2d4a27 of _0x29afdc){if(this['_getSuggestion'](_0x2d4a27,_0x30c8b1))_0x11df8b(_0x272948);else{const _0x8c2ecf={};for(const _0x44976c of _0x51b58d){const _0x39b8ae=_0x2d4a27['getAttribute'](_0x44976c);void 0x0!==_0x39b8ae&&(_0x8c2ecf[_0x44976c]=_0x39b8ae);}_0x11df8b(_0x272948),_0xfdaa48['markBlockFormat'](_0x2d4a27,{'commandParams':[_0x8c2ecf]},[],_0x30c8b1);}}});}['handleDiscardAction'](_0x365b80,_0xc2006d,_0x1c6671){const _0x4be1e9=_0xc2006d[0x0]['start']['nodeAfter'],_0x7db1e2=_0x1c6671['commandParams'][0x0];this['editor']['model']['change'](_0x55cc51=>{for(const _0x582a58 of _0x365b80)void 0x0!==_0x7db1e2[_0x582a58]?_0x55cc51['setAttribute'](_0x582a58,_0x7db1e2[_0x582a58],_0x4be1e9):_0x55cc51['removeAttribute'](_0x582a58,_0x4be1e9);});}['handleSuggestionDescription'](_0x51949d){if(_0x51949d['data'])switch(_0x51949d['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5a778c,_0x39cf14){const _0x2a2766=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x15049c of _0x2a2766['getSuggestions']({'skipNotAttached':!0x0})){const _0x271784=_0x15049c['getContainedElement']();if(_0x15049c['subType']===_0x39cf14&&_0x271784===_0x5a778c)return _0x15049c;}return null;}['_registerTablePropertiesAttributes'](){const _0x2a487a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b08a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x214093 of _0x18b08a){const _0x4d0cd4=_0x214093['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2a487a['registerBlockAttribute'](_0x214093),_0x2a487a['descriptionFactory']['registerAttributeLabel'](_0x214093,o(this['editor']['locale'],'FORMAT_'+_0x4d0cd4));}}}class Lt extends _0x4be19b{['afterInit'](){const _0x4cfbd5=this['editor'];if(!_0x4cfbd5['plugins']['has']('LineHeight'))return;const _0x22e30a=_0x4cfbd5['plugins']['get']('TrackChangesEditing'),_0x13d2d6=_0x4cfbd5['locale'];_0x22e30a['enableDefaultAttributesIntegration']('lineHeight'),_0x22e30a['registerBlockAttribute']('lineHeight'),_0x22e30a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x13d2d6,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4be19b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5434f7,_0x2d4e96,_0x368dd4,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,jt,mt,Y,Lt,Z,wt,bt,yt,St,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x460827){super(_0x460827),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x313c1c,_0x2d76f0,_0x6ca7ae,_0x29df9e)=>{this['_model']['change'](()=>{for(const _0x27c1e6 of[..._0x29df9e,..._0x6ca7ae])this['_model']['markers']['has'](_0x27c1e6)&&_0x460827['editing']['reconvertMarker'](_0x27c1e6);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x460827['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x460827['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x460827['config']['get']('trackChanges.trackFormatChanges'),_0x460827['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x460827['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x460827,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1ce282=this['editor'],_0x40aad3=(_0x24b932,_0x3663e7)=>{if('attribute'!=_0x24b932)return'ck-suggestion-marker-'+_0x24b932;const _0x578c3d=_0x3663e7['split']('|')[0x0];return this['_isBlockAttribute'](_0x578c3d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1ce282['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fc41c=>{const {id:_0x109057,authorId:_0x1fa321,type:_0x1d18d5,subType:_0x10370d}=this['_splitMarkerName'](_0x1fc41c['markerName']),_0x27292e=['ck-suggestion-marker',_0x40aad3(_0x1d18d5,_0x10370d)];let _0x283232=0xbb8;return this['activeMarkers']['includes'](_0x1fc41c['markerName'])&&(_0x27292e['push']('ck-suggestion-marker--active'),_0x283232=0xbc2),'deletion'==_0x1d18d5&&(_0x283232+=0x5),{'classes':_0x27292e,'attributes':{'data-suggestion':_0x109057,'data-author-id':_0x1fa321},'priority':_0x283232};}}),_0x1ce282['conversion']['for']('dataDowncast')['add'](_0x3c9f7b=>{_0x3c9f7b['on']('addMarker:suggestion',(_0x23d198,_0x94e5a4,_0x49f97b)=>{if(!_0x49f97b['options']['showSuggestionHighlights'])return;const _0x265633=_0x94e5a4['item'];if(!_0x265633)return;const _0x4f8fbc=_0x49f97b['mapper']['toViewElement'](_0x265633);_0x1ce282['model']['schema']['isObject'](_0x265633)&&_0x4f8fbc&&!_0x4f8fbc['getCustomProperty']('widget')&&_0x4f8fbc['is']('containerElement')&&_0x43134f(_0x4f8fbc,_0x49f97b['writer']);},{'priority':'high'});}),_0x1ce282['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a4d19,_0x5aa70f)=>{if(!_0x5aa70f['options']['showSuggestionHighlights'])return null;const {id:_0xc86be1,authorId:_0x124362,type:_0x32634c,subType:_0x14972e}=this['_splitMarkerName'](_0x5a4d19['markerName']);return{'classes':['ck-suggestion-marker',_0x40aad3(_0x32634c,_0x14972e)],'priority':0xbb8,'attributes':{'data-suggestion':_0xc86be1,'data-author-id':_0x124362}};}});const _0x3ad1a8=({showActiveMarkers:_0x1ed00f=!0x0,isAttributeSuggestion:_0x14c4d4=!0x1}={})=>(_0x110a17,_0x308d77,_0x3a247d)=>{if(!_0x308d77['item'])return;const {id:_0x25de67,authorId:_0x222f8f,subType:_0x677171}=this['_splitMarkerName'](_0x308d77['markerName']);if(_0x14c4d4){const _0x377034=re(_0x677171);if(!this['_isBlockAttribute'](_0x377034))return;}if(_0x308d77['item']['is']('selection'))return void _0x3a247d['consumable']['consume'](_0x308d77['item'],_0x110a17['name']);const _0x14649f=_0x3a247d['mapper']['toViewElement'](_0x308d77['item']);if(_0x308d77['item']['is']('element')&&_0x1ce282['model']['schema']['isBlock'](_0x308d77['item'])&&!_0x14649f['getCustomProperty']('addHighlight')){_0x3a247d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x14649f),_0x3a247d['writer']['setAttribute']('data-suggestion',_0x25de67,_0x14649f),_0x3a247d['writer']['setAttribute']('data-author-id',_0x222f8f,_0x14649f),_0x3a247d['mapper']['bindElementToMarker'](_0x14649f,_0x308d77['markerName']),_0x1ed00f&&(this['activeMarkers']['includes'](_0x308d77['markerName'])?_0x3a247d['writer']['addClass']('ck-suggestion-marker--active',_0x14649f):_0x3a247d['writer']['removeClass']('ck-suggestion-marker--active',_0x14649f));for(const _0x4bf7fc of _0x1ce282['model']['createRangeIn'](_0x308d77['item'])['getItems']())_0x3a247d['consumable']['consume'](_0x4bf7fc,_0x110a17['name']);_0x3a247d['consumable']['consume'](_0x308d77['item'],_0x110a17['name']);}};_0x1ce282['conversion']['for']('dataDowncast')['add'](_0x423217=>{_0x423217['on']('addMarker:suggestion:formatBlock',(_0x5d0a03,_0x157543,_0x45c94b)=>{_0x45c94b['options']['showSuggestionHighlights']&&_0x3ad1a8({'showActiveMarkers':!0x1})(_0x5d0a03,_0x157543,_0x45c94b);},{'priority':'highest'});}),_0x1ce282['conversion']['for']('dataDowncast')['add'](_0xf36cb1=>{_0xf36cb1['on']('addMarker:suggestion:attribute',(_0x456f8d,_0x22469b,_0x7212a2)=>{_0x7212a2['options']['showSuggestionHighlights']&&_0x3ad1a8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x456f8d,_0x22469b,_0x7212a2);},{'priority':'highest'});}),_0x1ce282['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x30e50b,_0x426312)=>{if(_0x426312['options']['showSuggestionHighlights']){const {id:_0x272a43,authorId:_0x51fe18}=this['_splitMarkerName'](_0x30e50b);return _0x30e50b['includes'](':split')||_0x30e50b['includes'](':merge')?{'group':'suggestion','name':_0x30e50b['substr'](0xb),'attributes':{'data-suggestion':_0x272a43,'data-author-id':_0x51fe18}}:null;}return{'group':'suggestion','name':_0x30e50b['substr'](0xb)};}}),_0x1ce282['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x198f6f,{writer:_0xcf434})=>{let _0x6bf300='suggestion:'+_0x198f6f['getAttribute']('suggestion-type')+':'+_0x198f6f['getAttribute']('id');return _0x198f6f['getAttribute']('marker-count')&&(_0x6bf300+=':'+_0x198f6f['getAttribute']('marker-count')),_0xcf434['createElement']('$marker',{'data-name':_0x6bf300});}}),_0x1ce282['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0xc55344=>{_0xc55344['on']('addMarker:suggestion:formatBlock',_0x3ad1a8(),{'priority':'high'});}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0x265315=>{_0x265315['on']('addMarker:suggestion:attribute',_0x3ad1a8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0x232f64=>{_0x232f64['on']('removeMarker:suggestion:formatBlock',(_0x193031,_0x55a2c5,_0x557dde)=>{const _0x368684=_0x557dde['mapper']['markerNameToElements'](_0x55a2c5['markerName']);if(_0x368684){for(const _0x342fd4 of _0x368684)_0x342fd4['getCustomProperty']('addHighlight')||(_0x557dde['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x342fd4),_0x557dde['writer']['removeAttribute']('data-suggestion',_0x342fd4),_0x557dde['writer']['removeAttribute']('data-author-id',_0x342fd4),_0x557dde['mapper']['unbindElementFromMarkerName'](_0x342fd4,_0x55a2c5['markerName']));}},{'priority':'high'});}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0x2c698e=>{_0x2c698e['on']('removeMarker:suggestion:attribute',(_0x17db97,_0xa68f84,_0x429a01)=>{const _0x172890=_0x429a01['mapper']['markerNameToElements'](_0xa68f84['markerName']);if(!_0x172890)return;const {subType:_0x24bf7e}=this['_splitMarkerName'](_0xa68f84['markerName']),_0xb7362c=re(_0x24bf7e);if(this['_isBlockAttribute'](_0xb7362c)){for(const _0x43c40e of _0x172890)_0x43c40e['getCustomProperty']('addHighlight')||(_0x429a01['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x43c40e),_0x429a01['writer']['removeAttribute']('data-suggestion',_0x43c40e),_0x429a01['writer']['removeAttribute']('data-author-id',_0x43c40e),_0x429a01['mapper']['unbindElementFromMarkerName'](_0x43c40e,_0xa68f84['markerName']));}},{'priority':'high'});}),_0x1ce282['model']['document']['registerPostFixer'](_0x5937f8=>{let _0x92a55=!0x1;const _0x5d807c=Array['from'](_0x1ce282['model']['document']['differ']['getChangedMarkers']()),_0x5a30a7=new Set();for(const {name:_0x2591c9,data:_0x2870aa}of _0x5d807c){const {group:_0x375fd2,type:_0x4ec157,subType:_0xe31ed6,id:_0x3bf254}=this['_splitMarkerName'](_0x2591c9);if('suggestion'!==_0x375fd2)continue;const _0x354c9e=_0xe31ed6?'suggestion:'+_0x4ec157+':'+_0xe31ed6+':'+_0x3bf254:'suggestion:'+_0x4ec157+':'+_0x3bf254,_0x4d1218=_0x1ce282['model']['markers']['getMarkersGroup'](_0x354c9e),_0x164ade=_0x1ce282['model']['markers']['get'](_0x2591c9),_0xbddd32=this['_suggestions']['get'](_0x3bf254);if(null!=_0x2870aa['newRange']){'formatInline'==_0x4ec157&&(_0x92a55=_0x92a55||Wt(_0x2870aa['newRange'],_0x2591c9,_0x5937f8,_0x1ce282['model']['schema']));const _0x5caab7='attribute'==_0x4ec157&&this['_isBlockAttribute'](_0xe31ed6['split']('|')[0x0]),_0x536e16='attribute'==_0x4ec157&&this['_isInlineAttribute'](_0xe31ed6['split']('|')[0x0]);if(_0x2870aa['newRange']['isCollapsed']||'$graveyard'==_0x2870aa['newRange']['root']['rootName']||'formatBlock'==_0x4ec157&&!Qt(_0x2870aa['newRange'])||_0x5caab7&&!Qt(_0x2870aa['newRange'])||_0x536e16&&Xt(_0x2870aa['newRange'])||'deletion'==_0x4ec157&&Xt(_0x2870aa['newRange'])||_0x164ade&&Yt(_0x164ade,_0x4d1218))_0x5937f8['removeMarker'](_0x2591c9),_0x92a55=!0x0;else{if(!_0xbddd32||!_0xbddd32['isInContent'])continue;if(_0x2870aa['newRange']&&_0x2870aa['oldRange']&&_0x2870aa['newRange']['isEqual'](_0x2870aa['oldRange']))continue;_0x5a30a7['add'](_0xbddd32);}}}return _0x5a30a7['size']>0x0&&(_0x92a55=!!this['_joinWithAdjacentSuggestions'](_0x5a30a7)||_0x92a55),_0x92a55;}),_0x1ce282['model']['document']['registerPostFixer'](_0x255367=>{let _0xd6d311=!0x1;for(const _0x8d5b25 of _0x1ce282['model']['document']['differ']['getChanges']())if('insert'==_0x8d5b25['type'])for(const _0x1c9bad of this['_suggestions']['values']()){if(_0x1c9bad['isMultiRange']||!_0x1c9bad['isInContent'])continue;const _0x90602d='formatBlock'==_0x1c9bad['type'],_0x4d2700=this['_getAttributeKey'](_0x1c9bad),_0x48f7c9=_0x4d2700&&this['_isBlockAttribute'](_0x4d2700);if(!_0x90602d&&!_0x48f7c9)continue;const _0x699f87=_0x1c9bad['getFirstRange']();if(_0x699f87['start']['parent']!=_0x699f87['end']['parent']&&!_0x699f87['end']['isAtEnd']){const _0x32fccb=_0x1ce282['model']['createPositionAt'](_0x699f87['start']['nodeAfter'],'end'),_0x518d63=_0x1ce282['model']['createRange'](_0x699f87['start'],_0x32fccb);_0x255367['updateMarker'](_0x1c9bad['getFirstMarker'](),{'range':_0x518d63}),_0xd6d311=!0x0;}}return _0xd6d311;}),_0x1ce282['model']['document']['registerPostFixer'](_0x2f3aa=>this['_processAttributeChanges'](_0x2f3aa)),_0x1ce282['model']['document']['registerPostFixer'](_0x44f20a=>!_0x44f20a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x44f20a)),_0x1ce282['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1ce282['model']['document']['on']('change:data',(_0x24530c,_0x478a4b)=>{if(!_0x478a4b['isLocal']||_0x478a4b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x49d1e5=_0x1ce282['model']['document']['differ']['getChanges']();if(0x0==_0x49d1e5['length'])return;const _0x5e9437=[],_0x34717c=_0x49d1e5['filter'](_0x4bd6c8=>'attribute'==_0x4bd6c8['type']),_0x51a82c=_0x49d1e5['filter'](_0x25363b=>'insert'==_0x25363b['type']&&'$text'!=_0x25363b['name']);for(const _0x1fdc01 of _0x34717c)this['_isRegisteredAttribute'](_0x1fdc01['attributeKey'])&&_0x5e9437['push']({'key':_0x1fdc01['attributeKey'],'newValue':_0x1fdc01['attributeNewValue'],'oldValue':_0x1fdc01['attributeOldValue'],'range':te(_0x1fdc01['range'],_0x1ce282['model'])});for(const _0xfd31fa of _0x51a82c){if('rename'!=_0xfd31fa['action']&&'refresh'!=_0xfd31fa['action'])continue;const _0x3e07c5=ee(_0xfd31fa['position']['nodeAfter'],_0x1ce282['model']),_0x3172db=_0xfd31fa['before'];'rename'==_0xfd31fa['action']&&_0x5e9437['push']({'key':m,'newValue':_0xfd31fa['name'],'oldValue':_0x3172db['name'],'range':_0x3e07c5});for(const [_0x3960ec,_0x1b56f8]of _0x3172db['attributes']){if(!this['_isRegisteredAttribute'](_0x3960ec))continue;const _0x1e002d=_0xfd31fa['attributes']['get'](_0x3960ec);_0x1b56f8!==_0x1e002d&&_0x5e9437['push']({'key':_0x3960ec,'newValue':_0x1e002d,'oldValue':_0x1b56f8,'range':_0x3e07c5});}for(const [_0x4e3f9f,_0x31ed8a]of _0xfd31fa['attributes'])this['_isRegisteredAttribute'](_0x4e3f9f)&&(_0x3172db['attributes']['has'](_0x4e3f9f)||_0x5e9437['push']({'key':_0x4e3f9f,'newValue':_0x31ed8a,'oldValue':null,'range':_0x3e07c5}));}0x0!=_0x5e9437['length']&&_0x1ce282['model']['enqueueChange'](_0x478a4b,_0xf060dd=>{const _0x2cae69=_0xf4a34a();for(const {range:_0x2abfd0,key:_0x502c82,oldValue:_0x50a95e,newValue:_0x183c14}of _0x5e9437)this['markAttributeChange'](_0x2abfd0,_0x502c82,_0x50a95e,_0x183c14,{'groupId':_0x2cae69});this['_reduceExistingSuggestions'](_0xf060dd,_0x5e9437);});},{'priority':'lowest'}),_0x1ce282['model']['markers']['on']('update:suggestion',(_0x34417a,_0xcd8d1c,_0x51a7e6)=>{if(null==_0x51a7e6){const {id:_0xb4afd0}=this['_splitMarkerName'](_0xcd8d1c['name']),_0x31e239=this['_suggestions']['get'](_0xb4afd0);_0x31e239&&_0x31e239['addMarkerName'](_0xcd8d1c['name']);}}),_0x1ce282['model']['document']['on']('change:data',()=>{const _0x3565ba=Array['from'](_0x1ce282['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3150e4=>'suggestion'===this['_splitMarkerName'](_0x3150e4['name'])['group']);if(0x0===_0x3565ba['length'])return;_0x3565ba['sort']((_0x19cbc9,_0x3578af)=>{const _0x2c56c2=_0x19cbc9['data']['oldRange'],_0x4631d1=_0x3578af['data']['oldRange'];return null===_0x2c56c2&&null===_0x4631d1?0x0:null===_0x2c56c2&&null!==_0x4631d1?-0x1:null!==_0x2c56c2&&null===_0x4631d1?0x1:_0x2c56c2['start']['isBefore'](_0x4631d1['start'])?-0x1:0x1;});const _0x14207f=new Set(),_0x2e2ae3=new Set();for(const {name:_0x57a8ce,data:_0x22f3f1}of _0x3565ba){const {id:_0x1ed277}=this['_splitMarkerName'](_0x57a8ce);if(null===_0x22f3f1['oldRange']){const _0x404646=this['_handleNewSuggestionMarker'](_0x57a8ce);_0x2e2ae3['add'](_0x404646);}else{const _0x44003f=this['_suggestions']['get'](_0x1ed277);null!==_0x22f3f1['newRange']||_0x44003f['isInContent']?(_0x14207f['add'](_0x44003f['head']),_0x2e2ae3['add'](_0x44003f)):this['_removeSuggestion'](_0x44003f);}}_0x2e2ae3['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e2ae3);for(const _0x26b45f of _0x14207f)this['fire']('suggestionChanged',_0x26b45f);}),_0x1ce282['model']['on']('applyOperation',(_0x2a1045,_0x21076d)=>{const _0x3364fd=_0x21076d[0x0];if(!this['_suggestions']['size'])return;if(!_0x3364fd['isDocumentOperation'])return;if(_0x3364fd['batch']['isUndo']||!_0x3364fd['batch']['isLocal'])return;let _0x401a7c,_0x3c063e;switch(_0x3364fd['type']){case'insert':_0x401a7c=_0x1ce282['model']['createPositionAt'](_0x3364fd['position']),_0x3c063e=_0x401a7c['getShiftedBy'](_0x3364fd['howMany']);break;case'split':_0x401a7c=_0x1ce282['model']['createPositionAt'](_0x3364fd['splitPosition']),_0x3c063e=_0x1ce282['model']['createPositionAt'](_0x3364fd['moveTargetPosition']);break;case'move':_0x401a7c=_0x1ce282['model']['createPositionAt'](_0x3364fd['targetPosition']),_0x3c063e=_0x401a7c['getShiftedBy'](_0x3364fd['howMany']);break;default:return;}const _0xae4541=_0x1ce282['model']['createRange'](_0x401a7c,_0x3c063e);_0x1ce282['model']['change'](()=>{for(const {suggestion:_0x2b0665,meta:_0x44cc4c}of this['_findSuggestions'](_0xae4541)){if(_0x2b0665['isMultiRange'])continue;if('formatInline'==_0x2b0665['type'])continue;const _0x47ac12=this['_getAttributeKey'](_0x2b0665);if(_0x47ac12&&this['_isBlockAttribute'](_0x47ac12)&&'split'!=_0x3364fd['type'])continue;const _0x27545e=_0x2b0665['data']&&_0x2b0665['data']['multipleBlocks'];('formatBlock'!=_0x2b0665['type']||'split'==_0x3364fd['type']&&!_0x27545e)&&(_0x44cc4c['containsRangeInObject']||'insertion'==_0x2b0665['type']&&_0x44cc4c['isOwn']||_0x2b0665['getFirstRange']()['containsRange'](_0xae4541)&&this['_breakSuggestionMarker'](_0x2b0665,_0x401a7c,_0x3c063e));}});},{'priority':'lowest'}),_0x1ce282['model']['on']('deleteContent',(_0x3ccdfa,_0x2bf105)=>{const _0x275be7=_0x2bf105[0x0],_0x67e9cb=_0x2bf105[0x1];if(_0x67e9cb&&_0x67e9cb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x275be7['isCollapsed'])return;const _0x226e4f=_0x1ce282['model']['schema'],{start:_0x433b56,end:_0x58da8b}=_0x275be7['getFirstRange'](),_0x52752b=_0x433b56['nodeAfter']&&_0x226e4f['isLimit'](_0x433b56['nodeAfter'])?null:_0x226e4f['getNearestSelectionRange'](_0x433b56,'forward'),_0xe2c736=_0x58da8b['nodeBefore']&&_0x226e4f['isLimit'](_0x58da8b['nodeBefore'])?null:_0x226e4f['getNearestSelectionRange'](_0x58da8b,'backward'),_0x2e29f7=_0x1ce282['model']['createRange'](_0x52752b?_0x52752b['start']:_0x433b56,_0xe2c736?_0xe2c736['end']:_0x58da8b);_0x1ce282['model']['change'](_0x3904d2=>{this['markDeletion'](_0x2e29f7);const _0x26dd8c=_0x1ce282['model']['schema']['getNearestSelectionRange'](_0x2e29f7['start']);_0x275be7['is']('documentSelection')?_0x3904d2['setSelection'](_0x26dd8c):_0x275be7['setTo'](_0x26dd8c);}),_0x3ccdfa['stop']();},{'priority':_0x4d4930['normal']+0xa}),_0x1ce282['model']['on']('insertContent',(_0x567982,_0xa4bd68)=>{const _0x372aec=_0xa4bd68[_0xa4bd68['length']-0x1];_0x372aec&&_0x372aec['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1ce282['model']['change'](()=>{let _0x75a7c0=_0x1ce282['model']['insertContent'](_0xa4bd68[0x0],_0xa4bd68[0x1],_0xa4bd68[0x2],{'forceDefaultExecution':!0x0});if(!_0x75a7c0)return;_0x567982['return']=_0x75a7c0['clone']();const _0x5476cb=_0x75a7c0['end']['nodeBefore'],_0x194917=_0x1ce282['model']['schema'];_0x5476cb&&_0x194917['isBlock'](_0x5476cb)&&!_0x194917['isObject'](_0x5476cb)&&(_0x75a7c0=_0x1ce282['model']['createRange'](_0x75a7c0['start'],_0x1ce282['model']['createPositionAt'](_0x5476cb,'end'))),this['markInsertion'](_0x75a7c0);}),_0x567982['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c275f=new T(_0x1ce282,this['_suggestions']);_0x1ce282['commands']['add']('acceptSuggestion',_0x5c275f),this['enableCommand']('acceptSuggestion');const _0x185487=new O(_0x1ce282,this['_suggestions']);_0x1ce282['commands']['add']('discardSuggestion',_0x185487),this['enableCommand']('discardSuggestion'),_0x1ce282['commands']['add']('acceptAllSuggestions',new x(_0x1ce282,_0x5c275f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1ce282['commands']['add']('discardAllSuggestions',new x(_0x1ce282,_0x185487,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1ce282['commands']['add']('acceptSelectedSuggestions',new E(_0x1ce282,_0x5c275f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1ce282['commands']['add']('discardSelectedSuggestions',new E(_0x1ce282,_0x185487,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xaa4782=_0x1ce282['plugins']['get']('CommentsRepository');this['listenTo'](_0xaa4782,'addComment',(_0x3c6e1e,{threadId:_0x2a7b98})=>{const _0x8de570=this['_suggestions']['get'](_0x2a7b98);_0x8de570&&_0x8de570['commentThread']&&0x1===_0x8de570['commentThread']['length']&&this['_updateSuggestionData'](_0x2a7b98,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xaa4782,'removeComment',(_0x40c35f,{threadId:_0x562d25})=>{const _0x23032e=this['_suggestions']['get'](_0x562d25);_0x23032e&&_0x23032e['commentThread']&&!_0x23032e['commentThread']['length']&&this['_updateSuggestionData'](_0x562d25,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1aaac6){const _0x192096=_0x2e88fa([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x26c5e9=0x6b0f5e6f,_0xc419eb=0x6b082ab7^_0x26c5e9,_0x14f132=window[_0x2e88fa([0x44,0x61,0x74,0x65])][_0x2e88fa([0x6e,0x6f,0x77])](),_0x5d03ab=_0x1aaac6[_0x2e88fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x378ad5=new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8108e5=>{_0x5d03ab[_0x2e88fa([0x6f,0x6e,0x63,0x65])](_0x2e88fa([0x72,0x65,0x61,0x64,0x79]),_0x8108e5);}),_0x5aac09={[_0x2e88fa([0x6b,0x74,0x79])]:_0x2e88fa([0x45,0x43]),[_0x2e88fa([0x75,0x73,0x65])]:_0x2e88fa([0x73,0x69,0x67]),[_0x2e88fa([0x63,0x72,0x76])]:_0x2e88fa([0x50,0x2d,0x32,0x35,0x36]),[_0x2e88fa([0x78])]:_0x2e88fa([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]),[_0x2e88fa([0x79])]:_0x2e88fa([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]),[_0x2e88fa([0x61,0x6c,0x67])]:_0x2e88fa([0x45,0x53,0x32,0x35,0x36])},_0x647c51=_0x5d03ab[_0x2e88fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e88fa([0x67,0x65,0x74])](_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2af3f7(){let _0x411230,_0x472e8c=null,_0xfc00f5=null;try{if(_0x647c51==_0x2e88fa([0x47,0x50,0x4c]))return _0x2e88fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x411230=_0x5cc2d1(),!_0x411230)return _0x2e88fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x411230[_0x2e88fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfc00f5=_0x5e9d7d(_0x411230[_0x2e88fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x411230[_0x2e88fa([0x6a,0x74,0x69])])),await _0x5d214d()?_0x4dc08c()?_0x17dfbb()?_0x2e88fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54978a()?(_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e88fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x472e8c=_0x33dc57(_0x2e88fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e88fa([0x74,0x72,0x69,0x61,0x6c])&&(_0x472e8c=_0x33dc57(_0x2e88fa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4156a7()):_0x2e88fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e88fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e88fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e88fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17dfbb(){const _0x377f1f=[_0x2e88fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e88fa([0x74,0x72,0x69,0x61,0x6c])][_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14f132/0x3e8:0xe10*_0xc419eb;return _0x411230[_0x2e88fa([0x65,0x78,0x70])]<_0x377f1f;}function _0x4dc08c(){const _0x3626c6=_0x411230[_0x2e88fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3626c6)return!0x1;if(_0x3626c6[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x2a])))return!0x0;if(_0x3626c6[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x54,0x43])))return!0x0;if(_0x3626c6[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x52,0x54,0x43]))){if(_0x34be5a())return!0x0;if(_0xff1e69()||_0x438853())return!0x0;}return!0x1;}function _0x54978a(){const _0x5aff8b=_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aff8b||0x0==_0x5aff8b[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39bea9}=new URL(window[_0x2e88fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5aff8b[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39bea9))return!0x0;const _0x54c076=_0x39bea9[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e]));return _0x5aff8b[_0x2e88fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a271a=>_0x4a271a[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x2a])))[_0x2e88fa([0x6d,0x61,0x70])](_0x5ab15a=>_0x5ab15a[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e])))[_0x2e88fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x308f95=>_0x308f95[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54c076[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e88fa([0x6d,0x61,0x70])](_0x3a2262=>Array(_0x54c076[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a2262[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e88fa([0x66,0x69,0x6c,0x6c])](_0x3a2262[0x0]===_0x2e88fa([0x2a])?_0x2e88fa([0x2a]):'')[_0x2e88fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a2262))[_0x2e88fa([0x73,0x6f,0x6d,0x65])](_0xd68262=>_0x54c076[_0x2e88fa([0x65,0x76,0x65,0x72,0x79])]((_0x4337ab,_0x2cd8a6)=>_0xd68262[_0x2cd8a6]===_0x4337ab||_0xd68262[_0x2cd8a6]===_0x2e88fa([0x2a])));}function _0x4156a7(){return _0x472e8c&&_0xfc00f5?new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c91fd,_0x3f084d)=>{_0x472e8c[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x3c91fd,_0x3f084d),_0xfc00f5[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x1a77f4=>{_0x1a77f4!=_0x2e88fa([0x56,0x61,0x6c,0x69,0x64])&&_0x3c91fd(_0x1a77f4);},_0x3f084d);}):_0x472e8c||_0xfc00f5||_0x2e88fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e9d7d(_0x2e948c,_0x9b6826){return new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b4bd=>{if(_0x531439())return _0x13b4bd(_0x2e88fa([0x56,0x61,0x6c,0x69,0x64]));_0x1d8d0d(),_0x5d03ab[_0x2e88fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e88fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45f250=!0x1;const _0x15e156=_0xf4a34a();function _0x203fc5(_0x5e4995){return!!_0x5e4995&&(typeof _0x5e4995===_0x2e88fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e4995===_0x2e88fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e4995[_0x2e88fa([0x74,0x68,0x65,0x6e])]===_0x2e88fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e4995[_0x2e88fa([0x63,0x61,0x74,0x63,0x68])]===_0x2e88fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3000a0(_0x3c6b28){_0x109b78(_0x3c6b28)[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x4d6db9=>{if(!_0x4d6db9||_0x4d6db9[_0x2e88fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e88fa([0x6f,0x6b]))return _0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a21cc(_0x2e2bef(_0x15e156+_0x9b6826))!=_0x4d6db9[_0x2e88fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e88fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x2287dc=>(_0x558419(),_0x2287dc),()=>{const _0xa75923=_0x1d5671();return null==_0xa75923?(_0x558419(),_0x2e88fa([0x56,0x61,0x6c,0x69,0x64])):_0x2e88fa(_0x14f132-_0xa75923>(0x4f03da6f^_0x26c5e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x13b4bd)[_0x2e88fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13b4bd(_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x932860=0x6b39b0ef^_0x26c5e9;function _0x558419(){const _0x3f0340=_0x2e88fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a21cc(_0x2e2bef(_0x2e948c)),_0x4f9421=_0x59d8ef(_0x1a21cc(window[_0x2e88fa([0x4d,0x61,0x74,0x68])][_0x2e88fa([0x63,0x65,0x69,0x6c])](_0x14f132/_0x932860)));window[_0x2e88fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e88fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f0340,_0x4f9421);}function _0x1d5671(){const _0x73d7ad=_0x2e88fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a21cc(_0x2e2bef(_0x2e948c)),_0x4fd7fd=window[_0x2e88fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e88fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x73d7ad);return _0x4fd7fd?window[_0x2e88fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59d8ef(_0x4fd7fd),0x10)*_0x932860:null;}function _0x109b78(_0x34b420){return new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3aa5,_0x447bb7)=>{_0x34b420[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x1c3aa5,_0x447bb7),window[_0x2e88fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x447bb7,0x6b0e8aaf^_0x26c5e9);});}}_0x5d03ab[_0x2e88fa([0x6f,0x6e])](_0x2e88fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7986e3,_0x208f90)=>{if(_0x208f90[0x0]!=_0x2e948c)return _0x13b4bd(_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x208f90[0x1]={..._0x208f90[0x1],[_0x2e88fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15e156};},{[_0x2e88fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e88fa([0x68,0x69,0x67,0x68])}),_0x5d03ab[_0x2e88fa([0x6f,0x6e])](_0x2e88fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fcb70=>{_0x203fc5(_0x1fcb70[_0x2e88fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45f250=!0x0,_0x3000a0(_0x1fcb70[_0x2e88fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e88fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e88fa([0x6c,0x6f,0x77])}),_0x378ad5[_0x2e88fa([0x74,0x68,0x65,0x6e])](()=>{_0x45f250||_0x13b4bd(_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x531439(){return _0x5d03ab[_0x2e88fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e88fa([0x76,0x69,0x65,0x77])][_0x2e88fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e88fa([0x61,0x75,0x74,0x6f]);}function _0x1d8d0d(){_0x5d03ab[_0x2e88fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e88fa([0x76,0x69,0x65,0x77])][_0x2e88fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e88fa([0x61,0x75,0x74,0x6f]);}}function _0x33dc57(_0x1cfdf3){const _0x3e5bce=[new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3273b8=>setTimeout(_0x3273b8,0x6b0660a3^_0x26c5e9)),_0x378ad5[_0x2e88fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x644b79=>{let _0x417519=0x0;_0x5d03ab[_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e88fa([0x6f,0x6e])](_0x2e88fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2719c9,_0x3b74db)=>{_0x3b74db[0x0][_0x2e88fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x417519++,_0x417519==(0x6b0f5f97^_0x26c5e9)&&(_0x644b79(),_0x2719c9[_0x2e88fa([0x6f,0x66,0x66])]());});}))];return window[_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e88fa([0x72,0x61,0x63,0x65])](_0x3e5bce)[_0x2e88fa([0x74,0x68,0x65,0x6e])](()=>_0x1cfdf3);}async function _0x334a98(){await _0x378ad5,_0x5d03ab[_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e88fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42c402,_0x5d03ab[_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e88fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42c402,_0x5d03ab[_0x2e88fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34be5a(){return _0xa7d63d(_0x2e88fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2520ba(_0x2e88fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e88fa([0x73,0x74,0x61,0x74,0x65])]==_0x2e88fa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xff1e69(){return _0xa7d63d(_0x2e88fa([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 _0x438853(){return _0xa7d63d(_0x2e88fa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5d661f(_0x15b2e4){const _0x1aa406=_0x6b61fb();_0x5d03ab[_0x1aa406]=_0x2e88fa([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15b2e4,_0x15b2e4!=_0x2e88fa([0x56,0x61,0x6c,0x69,0x64])&&_0x334a98();}function _0x6b61fb(){const _0x200605=window[_0x2e88fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e88fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e88fa([0x6e,0x6f,0x77])]())[_0x2e88fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e88fa([0x2e]),'');let _0x5d9658=_0x2e88fa([0x67]);for(let _0x4b3610=0x0;_0x4b3610<_0x200605[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b3610+=0x2){let _0x39deb6=window[_0x2e88fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x200605[_0x2e88fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b3610,_0x4b3610+0x2));_0x39deb6>=_0x192096[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39deb6-=_0x192096[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9658+=_0x192096[_0x39deb6];}return _0x5d9658;}function _0x5cc2d1(){const _0x5a21ce=_0x647c51[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e]));if(0x3!=_0x5a21ce[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x857caf(_0x5a21ce[0x1]);function _0x857caf(_0x2a54a7){const _0x44be78=_0x105034(_0x2a54a7);return _0x44be78&&_0x569299()?_0x44be78:null;function _0x569299(){const _0x4f84df=_0x44be78[_0x2e88fa([0x6a,0x74,0x69])],_0x1692f8=window[_0x2e88fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f84df[_0x2e88fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f84df[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x251609={..._0x44be78,[_0x2e88fa([0x6a,0x74,0x69])]:_0x4f84df[_0x2e88fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f84df[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x251609[_0x2e88fa([0x76,0x63])],_0x2e2bef(_0x251609)==_0x1692f8;}}}async function _0x5d214d(){let _0x2bf885=!0x0;try{const _0x38e112=_0x647c51[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e])),[_0x403654,_0x2dc163,_0xb7534c]=_0x38e112;return _0x1849f9(_0x403654),await _0x4545dd(_0x403654,_0x2dc163,_0xb7534c),_0x2bf885;}catch{return!0x1;}function _0x1849f9(_0x190100){const _0x29d469=_0x105034(_0x190100);_0x29d469&&_0x29d469[_0x2e88fa([0x61,0x6c,0x67])]==_0x2e88fa([0x45,0x53,0x32,0x35,0x36])||(_0x2bf885=!0x1);}async function _0x4545dd(_0x461b15,_0x224e78,_0x5843ea){const _0x332524=window[_0x2e88fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e88fa([0x66,0x72,0x6f,0x6d])](_0x43ee12(_0x5843ea),_0x5e34ba=>_0x5e34ba[_0x2e88fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f1137=new window[(_0x2e88fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e88fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x461b15+_0x2e88fa([0x2e])+_0x224e78),_0x4ba76e=window[_0x2e88fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e88fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ba76e)return;const _0x59bca6=await _0x4ba76e[_0x2e88fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e88fa([0x6a,0x77,0x6b]),_0x5aac09,{[_0x2e88fa([0x6e,0x61,0x6d,0x65])]:_0x2e88fa([0x45,0x43,0x44,0x53,0x41]),[_0x2e88fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e88fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e88fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ba76e[_0x2e88fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e88fa([0x6e,0x61,0x6d,0x65])]:_0x2e88fa([0x45,0x43,0x44,0x53,0x41]),[_0x2e88fa([0x68,0x61,0x73,0x68])]:{[_0x2e88fa([0x6e,0x61,0x6d,0x65])]:_0x2e88fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59bca6,_0x332524,_0x4f1137)||(_0x2bf885=!0x1);}}function _0x105034(_0x3ed5c6){return _0x3ed5c6[_0x2e88fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e88fa([0x65,0x79]))?JSON[_0x2e88fa([0x70,0x61,0x72,0x73,0x65])](_0x43ee12(_0x3ed5c6)):null;}function _0x43ee12(_0x554d34){return window[_0x2e88fa([0x61,0x74,0x6f,0x62])](_0x554d34[_0x2e88fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e88fa([0x2b]))[_0x2e88fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e88fa([0x2f])));}function _0x2e2bef(_0xba994b){let _0x2370d6=0x1505;function _0x1a5ca9(_0x58e671){for(let _0x2a8e8e=0x0;_0x2a8e8e<_0x58e671[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a8e8e++){const _0x208b4e=_0x58e671[_0x2e88fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a8e8e);_0x2370d6=(_0x2370d6<<0x5)+_0x2370d6+_0x208b4e,_0x2370d6&=_0x2370d6;}}function _0xf03ad7(_0x3bb334){Array[_0x2e88fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3bb334)?_0x3bb334[_0x2e88fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf03ad7):_0x3bb334&&typeof _0x3bb334==_0x2e88fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e88fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3bb334)[_0x2e88fa([0x73,0x6f,0x72,0x74])]()[_0x2e88fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49985f,_0x394bdb])=>{_0x1a5ca9(_0x49985f),_0xf03ad7(_0x394bdb);}):_0x1a5ca9(window[_0x2e88fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3bb334));}return _0xf03ad7(_0xba994b),_0x2370d6>>>0x0;}function _0x1a21cc(_0x4f4c4f){return _0x4f4c4f[_0x2e88fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e88fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e88fa([0x30]));}function _0x59d8ef(_0xd2e426){return _0xd2e426[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e88fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e88fa([0x6a,0x6f,0x69,0x6e])]('');}function _0xa7d63d(_0x2ec387){return _0x5d03ab[_0x2e88fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e88fa([0x68,0x61,0x73])](_0x2ec387);}function _0x2520ba(_0x558836){return _0x5d03ab[_0x2e88fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e88fa([0x67,0x65,0x74])](_0x558836);}function _0x42c402(){}function _0x2e88fa(_0x7accb9){return _0x7accb9['map'](_0xf3eb4a=>String['fromCharCode'](_0xf3eb4a))['join']('');}_0x5d661f(await _0x2af3f7());}(this);}set['adapter'](_0x525359){if(this['_adapter'])throw new _0x3ea0ba('track-changes-adapter-already-set',this);this['_adapter']=_0x525359;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x429959=!0x1,toJSON:_0x448201=!0x1}={}){const _0x36d606=[];for(const _0x57de9b of this['_suggestions']['values']())_0x429959&&!_0x57de9b['isInContent']||_0x36d606['push'](_0x57de9b);return _0x448201?_0x36d606['map'](_0x1e6c53=>_0x1e6c53['toJSON']()):_0x36d606;}['getSuggestion'](_0xac381e){const _0x4c844f=this['_suggestions']['get'](_0xac381e);if(!_0x4c844f)throw new _0x3ea0ba('track-changes-suggestion-not-found',this);return _0x4c844f;}['hasSuggestion'](_0x2e2f70){return this['_suggestions']['has'](_0x2e2f70);}['addSuggestionData'](_0x30a70d){const {authorId:_0x222cd3,id:_0x37f185,originalSuggestionId:_0x138bfe,attributes:_0x3c895e}=_0x30a70d,[_0x477894,_0x331920]=_0x30a70d['type']['split'](':'),_0x33069e=this['_suggestions']['get'](_0x37f185)||this['_createSuggestion'](_0x477894,_0x331920,_0x37f185,_0x222cd3,_0x3c895e,_0x138bfe);if(this['_addThreadToSuggestion'](_0x33069e),this['_checkSuggestionCorrectness'](_0x33069e,_0x477894,_0x331920||null,_0x222cd3),_0x33069e['createdAt']=_0x30a70d['createdAt'],_0x33069e['_isDataLoaded']=!0x0,_0x3c895e&&_0x3c895e['@external']){const _0x287d72=_0x3c895e['@external'],_0x495cb9=this['_getExternalAuthor'](_0x287d72['authorName']);_0x33069e['authoredAt']=_0x287d72['createdAt'],_0x33069e['author']=_0x495cb9,_0x33069e['isExternal']=!0x0;}else _0x33069e['authoredAt']=_0x30a70d['createdAt'];switch(_0x30a70d['data']&&(_0x33069e['data']=_0x30a70d['data']),_0x30a70d['attributes']&&(_0x33069e['attributes']=_0x30a70d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x33069e['_saved']=!0x0),this['_suggestionState']['get'](_0x33069e)){case'notReady':this['_suggestionState']['set'](_0x33069e,'dataReady');break;case'markerReady':_0x33069e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x33069e])),this['_refreshSuggestionsChain'](new Set([_0x33069e])),this['_suggestionState']['set'](_0x33069e,'ready'),this['fire']('suggestionLoaded',_0x33069e)):this['_suggestionState']['set'](_0x33069e,'removed');}return _0x33069e;}['acceptSuggestion'](_0x4cb737){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5bc32e of _0x4cb737['getAllAdjacentSuggestions']())_0x5bc32e['accept']();});});}['discardSuggestion'](_0x58b9e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xfeb0d4 of _0x58b9e1['getAllAdjacentSuggestions']())_0xfeb0d4['discard']();});});}['enableCommand'](_0x22a937,_0x409b76){const _0x24dc6a=this['editor']['commands']['get'](_0x22a937);if(!_0x24dc6a)throw new _0x3ea0ba('track-changes-command-not-found',this,{'commandName':_0x22a937});if(this['_enabledCommands']['has'](_0x24dc6a))throw new _0x3ea0ba('track-changes-enable-command-twice',this,{'commandName':_0x22a937});this['_enabledCommands']['add'](_0x24dc6a),_0x409b76&&_0x24dc6a['on']('execute',(_0x20c6a0,_0x3520a4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3520a4['length']>0x0&&_0x3520a4[_0x3520a4['length']-0x1]&&_0x3520a4[_0x3520a4['length']-0x1]['forceDefaultExecution']?_0x3520a4['pop']():(_0x20c6a0['return']=_0x409b76((..._0x7cf403)=>_0x24dc6a['execute'](..._0x7cf403,{'forceDefaultExecution':!0x0}),..._0x3520a4),_0x20c6a0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x542a90){let _0x1c5f6f,_0x907a75;const _0x4658b1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1c5f6f=_0x542a90();}catch(_0x197ff5){_0x907a75=_0x197ff5;}return _0x4658b1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x907a75&&_0x3ea0ba['rethrowUnexpectedError'](_0x907a75,this),_0x1c5f6f;}['markInsertion'](_0x57178b,_0x33d422=null,_0xcff117={}){if(_0x57178b['isCollapsed'])return null;const _0x4ef7dc=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xcff117['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x37fc79,meta:_0xd05830}of this['_findSuggestions'](_0x57178b,'insertion'))if(_0xd05830['isOwn']){if(!_0xd05830['isNextTo']){if(_0xd05830['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0x37fc79,_0xcff117))continue;return _0x37fc79;}if(se(_0x37fc79,_0xcff117))return _0x37fc79;this['_breakSuggestionMarker'](_0x37fc79,_0x57178b['start'],_0x57178b['end']);break;}if(_0x33d422==_0x37fc79['subType']&&se(_0x37fc79,_0xcff117)){const _0xc298c0=_0x37fc79['getFirstRange']();return _0xc298c0['start']['isEqual'](_0x57178b['end'])?this['_setSuggestionRange'](_0x37fc79,this['_model']['createRange'](_0x57178b['start'],_0xc298c0['end'])):this['_setSuggestionRange'](_0x37fc79,this['_model']['createRange'](_0xc298c0['start'],_0x57178b['end'])),_0x37fc79;}}const _0x4c208c=_0xf4a34a(),_0x5dfaab=_0x4ef7dc['id'],_0x5d6e8f=_0x33d422?'insertion:'+_0x33d422:'insertion',_0x2fe4ae=this['_setSuggestionData']({'id':_0x4c208c,'type':_0x5d6e8f,'createdAt':new Date(),'authorId':_0x5dfaab,'attributes':_0xcff117});return this['_addSuggestionMarker'](_0x5d6e8f,_0x4c208c,_0x5dfaab,_0x57178b),_0x2fe4ae;}['markMultiRangeInsertion'](_0x1fb08e,_0x37e12c='multi',_0x45e07d={}){const _0x469427=this['editor']['plugins']['get']('Users')['me'],_0x79846d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x37e12c,'join');this['_trackingSessionId']&&(_0x45e07d['trackingSessionId']=this['_trackingSessionId']);for(const _0x21d2ff of this['getSuggestions']())if(_0x21d2ff['author']['id']==_0x469427['id']&&'insertion'==_0x21d2ff['type']&&_0x21d2ff['subType']==_0x37e12c&&se(_0x21d2ff,_0x45e07d)&&(_0x79846d(_0x21d2ff['getRanges'](),_0x1fb08e)||_0x79846d(_0x1fb08e,_0x21d2ff['getRanges']()))){for(const _0x295a09 of _0x1fb08e)_0x21d2ff['addRange'](_0x295a09);return _0x21d2ff;}for(const {suggestion:_0x5d8f86,meta:_0x445e00}of this['_findSuggestions'](_0x1fb08e,'insertion')){if(!_0x445e00['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x445e00['containsRangeInObject'])continue;if(!se(_0x5d8f86,_0x45e07d))continue;let _0x2e35e4=!0x0;for(const _0x283f70 of _0x5d8f86['getRanges']())for(const _0x1290af of _0x1fb08e)if(!_0x283f70['containsRange'](_0x1290af)){_0x2e35e4=!0x1;break;}if(_0x2e35e4)return _0x5d8f86;}const _0x5b8952=_0xf4a34a(),_0x26d268=_0x469427['id'],_0x595f60='insertion:'+_0x37e12c,_0x2d7221=this['_setSuggestionData']({'id':_0x5b8952,'type':_0x595f60,'createdAt':new Date(),'authorId':_0x26d268,'attributes':_0x45e07d});for(const _0x35365f of _0x1fb08e)this['_addSuggestionMarker'](_0x595f60,_0x5b8952,_0x26d268,_0x35365f,R['getMultiRangeId']());return _0x2d7221;}['markInlineFormat'](_0x2a1d71,_0x43d335,_0x53d4d0=null,_0x53e031={}){if(_0x53d4d0=_0x53d4d0||zt(_0x43d335),_0x2a1d71['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x53e031['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2be19c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53d4d0,'accept');return this['forceDefaultExecution'](()=>_0x2be19c([_0x2a1d71],_0x43d335,_0x53e031)),null;}const _0x27a6e0=this['editor']['plugins']['get']('Users')['me'],_0xd45e52=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x39e767,meta:_0x4e68ed}of this['_findSuggestions'](_0x2a1d71,'insertion'))_0x4e68ed['isOwn']&&!_0x4e68ed['isInsideObject']&&_0xd45e52['push'](..._0x39e767['getRanges']());}const _0x59a27c=function(_0x2e6b2c,_0x76863){const _0x18ea82=[];for(const _0x56857f of _0x76863){const _0x369314=_0x2e6b2c['getIntersection'](_0x56857f);_0x369314&&_0x18ea82['push'](_0x369314);}return _0x18ea82;}(_0x2a1d71,_0xd45e52),_0x36e2ca=function(_0x4c3afd,_0x227326){const _0x5a849c=[_0x4c3afd];for(const _0x526d82 of _0x227326){let _0x4f9510=0x0;for(;_0x4f9510<_0x5a849c['length'];){const _0x46af62=_0x5a849c[_0x4f9510]['getDifference'](_0x526d82);_0x5a849c['splice'](_0x4f9510,0x1,..._0x46af62),_0x4f9510+=_0x46af62['length'];}}return _0x5a849c;}(_0x2a1d71,_0xd45e52);_0x59a27c['length']&&this['_model']['change'](()=>{for(const _0x3f7cf1 of _0x59a27c){const _0x46890b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53d4d0,'accept');this['forceDefaultExecution'](()=>_0x46890b([_0x3f7cf1],_0x43d335,_0x53e031));}});for(const _0x1182ca of _0x36e2ca){let _0x954ee1=null,_0x136c63=_0x1182ca['start'],_0x1079b4=_0x1182ca['end'];for(const {suggestion:_0x3fb694,meta:_0x1c7170}of this['_findSuggestions'](_0x1182ca,'formatInline')){if(!_0x1c7170['isOwn'])continue;if(_0x3fb694['subType']!=_0x53d4d0)continue;if(!se(_0x3fb694,_0x53e031))continue;const _0x35da29=_0x3fb694['getFirstRange']();if(_0x35da29['containsRange'](_0x1182ca,!0x0))return null;_0x136c63=_0x136c63['isBefore'](_0x35da29['start'])?_0x136c63:_0x35da29['start'],_0x1079b4=_0x1079b4['isAfter'](_0x35da29['end'])?_0x1079b4:_0x35da29['end'],_0x954ee1?_0x35da29['start']['isBefore'](_0x954ee1['getFirstRange']()['start'])?(_0x954ee1['removeMarkers'](),_0x954ee1=_0x3fb694):_0x3fb694['removeMarkers']():_0x954ee1=_0x3fb694;}const _0x206135=this['_model']['createRange'](_0x136c63,_0x1079b4);if(_0x954ee1)this['_setSuggestionRange'](_0x954ee1,_0x206135);else{const _0xd5c6bd=_0xf4a34a(),_0x16f468=_0x27a6e0['id'];this['_setSuggestionData']({'id':_0xd5c6bd,'type':'formatInline:'+_0x53d4d0,'data':_0x43d335,'createdAt':new Date(),'authorId':_0x16f468,'attributes':_0x53e031}),this['_addSuggestionMarker']('formatInline:'+_0x53d4d0,_0xd5c6bd,_0x16f468,_0x206135);}}return null;}['markBlockFormat'](_0x1957cb,_0x3ef2ef,_0x4e17e2=[],_0x4c1895=null,_0x1d3f22={}){_0x3ef2ef['formatGroupId']||(_0x3ef2ef['formatGroupId']=_0x3ef2ef['commandName']),_0x3ef2ef['multipleBlocks']=_0x1957cb['is']('range'),_0x4c1895=_0x4c1895||zt(_0x3ef2ef);const _0x86949c=_0x4e17e2['map'](_0x5e79ea=>ee(_0x5e79ea,this['_model'])),_0x2bb4d6=_0x1957cb['is']('range')?_0x1957cb:ee(_0x1957cb,this['_model']);if(this['_trackingSessionId']&&(_0x1d3f22['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5336e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c1895,'accept');return this['forceDefaultExecution'](()=>_0x5336e9([_0x2bb4d6],_0x3ef2ef,_0x1d3f22)),null;}_0x86949c['push'](_0x2bb4d6);let _0x910b3a=!0x0;for(const _0x51f994 of _0x86949c)if(!this['_rangeIsInLocalUserInsertion'](_0x51f994)){_0x910b3a=!0x1;break;}if(_0x910b3a&&'always'!==this['_trackFormatChanges']){const _0x31010e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c1895,'accept');return this['forceDefaultExecution'](()=>_0x31010e([_0x2bb4d6],_0x3ef2ef,_0x1d3f22)),null;}let _0x5d2523=null,_0x6632b9=_0x2bb4d6['start'],_0x101efb=_0x2bb4d6['end'];for(const {suggestion:_0x485b02,meta:_0x4edd73}of this['_findSuggestions'](_0x2bb4d6,'formatBlock')){if(!_0x4edd73['isOwn'])continue;if(_0x4edd73['isNextTo']||_0x4edd73['containsRangeInObject']||_0x4edd73['isInsideObject'])continue;if(_0x485b02['data']['formatGroupId']!=_0x3ef2ef['formatGroupId'])continue;if(!se(_0x485b02,_0x1d3f22))continue;const _0x24ff44=_0x485b02['getFirstRange']();if(_0x485b02['subType']==_0x4c1895){if(_0x24ff44['containsRange'](_0x2bb4d6,!0x0))return null;_0x6632b9=_0x6632b9['isBefore'](_0x24ff44['start'])?_0x6632b9:_0x24ff44['start'],_0x101efb=_0x101efb['isAfter'](_0x24ff44['end'])?_0x101efb:_0x24ff44['end'],_0x5d2523?_0x24ff44['start']['isBefore'](_0x5d2523['getFirstRange']()['start'])?(_0x5d2523['removeMarkers'](),_0x5d2523=_0x485b02):_0x485b02['removeMarkers']():_0x5d2523=_0x485b02;}else{const _0x210928=_0x2bb4d6['getIntersection'](_0x24ff44);this['_cutOutSuggestionMarker'](_0x485b02,_0x210928);}}const _0x35c6ec=this['editor']['plugins']['get']('Users')['me'],_0x34f6e7=_0xf4a34a(),_0xc8ddec=_0x35c6ec['id'];if(_0x5d2523)return this['_setSuggestionRange'](_0x5d2523,this['_model']['createRange'](_0x6632b9,_0x101efb)),_0x5d2523;{const _0x27a8c4=this['_setSuggestionData']({'id':_0x34f6e7,'type':'formatBlock:'+_0x4c1895,'data':_0x3ef2ef,'createdAt':new Date(),'authorId':_0xc8ddec,'attributes':_0x1d3f22});return this['_addSuggestionMarker']('formatBlock:'+_0x4c1895,_0x34f6e7,_0xc8ddec,this['_model']['createRange'](_0x6632b9,_0x101efb)),_0x27a8c4;}}['markMultiRangeBlockFormat'](_0x8d6f76,_0x64cd4,_0x245453=[],_0x1a827a=null,_0x40ed82={}){_0x64cd4['formatGroupId']||(_0x64cd4['formatGroupId']=_0x64cd4['commandName']);const _0x1f551f=_0x8d6f76[0x0];_0x64cd4['multipleBlocks']=_0x1f551f['is']('range'),_0x1a827a=_0x1a827a||zt(_0x64cd4);const _0x418d0d=_0x245453['map'](_0x143528=>ee(_0x143528,this['_model'])),_0x573838=_0x1f551f['is']('range')?_0x8d6f76:_0x8d6f76['map'](_0x16f43a=>ee(_0x16f43a,this['_model']));if(this['_trackingSessionId']&&(_0x40ed82['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x198f81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a827a,'accept');return this['forceDefaultExecution'](()=>_0x198f81(_0x573838,_0x64cd4,_0x40ed82)),null;}_0x418d0d['push'](..._0x573838);let _0x272b8b=!0x0;for(const _0x3a6a5b of _0x418d0d)if(!this['_rangeIsInLocalUserInsertion'](_0x3a6a5b)){_0x272b8b=!0x1;break;}if(_0x272b8b&&'always'!==this['_trackFormatChanges']){const _0x1ee0f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a827a,'accept');return this['forceDefaultExecution'](()=>_0x1ee0f2(_0x573838,_0x64cd4,_0x40ed82)),null;}const _0x168107=this['editor']['plugins']['get']('Users')['me'];for(const _0x45029e of this['getSuggestions']()){const _0x2ced77=_0x45029e['data'];if(_0x45029e['author']['id']!=_0x168107['id'])continue;if('formatBlock'!=_0x45029e['type']||_0x2ced77['formatGroupId']!=_0x64cd4['formatGroupId'])continue;if(!se(_0x45029e,_0x40ed82))continue;const _0xae2c8d=_0x45029e['subType']==_0x1a827a;for(let _0x5266ba=0x0;_0x5266ba<_0x573838['length'];_0x5266ba++){const _0x4d9ae2=_0x573838[_0x5266ba];for(const _0x5a609a of _0x45029e['getMarkers']()){const _0x4b408a=_0x5a609a['getRange']();if(_0x4d9ae2['isEqual'](_0x4b408a)){_0xae2c8d?(_0x573838['splice'](_0x5266ba,0x1),_0x5266ba--):_0x45029e['removeMarker'](_0x5a609a['name']);break;}}}}if(0x0==_0x573838['length'])return null;const _0x345629=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a827a,'join');for(const _0xfce2f1 of this['getSuggestions']()){const _0x4060c3=_0xfce2f1['data'];if(_0xfce2f1['author']['id']==_0x168107['id']&&('formatBlock'==_0xfce2f1['type']&&_0x4060c3['formatGroupId']==_0x64cd4['formatGroupId']&&_0xfce2f1['subType']==_0x1a827a&&se(_0xfce2f1,_0x40ed82)&&(_0x345629(_0xfce2f1['getRanges'](),_0x573838)||_0x345629(_0x573838,_0xfce2f1['getRanges']())))){for(const _0x517236 of _0x573838)_0xfce2f1['addRange'](_0x517236);return _0xfce2f1;}}const _0x40c4e7=_0xf4a34a(),_0x133913=_0x168107['id'],_0x3757b6='formatBlock:'+_0x1a827a,_0x1d4feb=this['_setSuggestionData']({'id':_0x40c4e7,'type':_0x3757b6,'data':_0x64cd4,'createdAt':new Date(),'authorId':_0x133913,'attributes':_0x40ed82});for(const _0x129aac of _0x573838)this['_addSuggestionMarker'](_0x3757b6,_0x40c4e7,_0x133913,_0x129aac,R['getMultiRangeId']());return _0x1d4feb;}['markDeletion'](_0x4f59b7,_0x522489=null,_0x3f6ff5={}){if(_0x4f59b7['isCollapsed'])return null;const _0x48ad3e=this['editor']['plugins']['get']('Users')['me'],_0x274a95=new _0x5c6c0b(_0x4f59b7['start'],_0x4f59b7['end']);this['_trackingSessionId']&&(_0x3f6ff5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x336152,meta:_0x459865}of this['_findSuggestions'](_0x274a95,'insertion'))if(_0x459865['isOwn']&&!_0x459865['isNextTo']){if(_0x336152['isMultiRange']){const _0x267ec1=_0x336152['getRanges']()['filter'](_0x193504=>'$graveyard'!=_0x193504['root']['rootName']);_0x267ec1['every'](_0x56f093=>_0x274a95['containsRange'](_0x56f093,!0x0))&&_0x336152['discard']();if(_0x267ec1['some'](_0x5d7e69=>_0x5d7e69['containsRange'](_0x274a95,!0x0))){const _0x51cacf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x522489,'accept');return this['forceDefaultExecution'](()=>_0x51cacf([_0x274a95],null,_0x3f6ff5)),null;}}else{const _0x12edd6=_0x274a95['getIntersection'](_0x336152['getFirstRange']());null!==_0x12edd6&&_0x336152['_onDiscard']([_0x12edd6],null,_0x3f6ff5);}}if(_0x274a95['detach'](),_0x274a95['isCollapsed']||'$graveyard'==_0x274a95['root']['rootName'])return null;let _0x264c62=null,_0x5b8076=_0x274a95['start'],_0x3774be=_0x274a95['end'];const _0x530cba=this['_findSuggestions'](_0x274a95,'deletion');for(const {suggestion:_0x210c0d,meta:_0x5d7b63}of _0x530cba){const _0x2e7001=this['_model']['createRange'](_0x5b8076,_0x3774be);if(_0x5d7b63['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5d7b63['containsRangeInObject']&&!_0x5d7b63['isInsideObject'])){if(_0x210c0d['isMultiRange']){if(!se(_0x210c0d,_0x3f6ff5))continue;let _0x53fda8=!0x0;for(const _0x9defd4 of _0x210c0d['getRanges']()){if(_0x9defd4['containsRange'](_0x2e7001,!0x0))return _0x210c0d;_0x2e7001['containsRange'](_0x9defd4)||(_0x53fda8=!0x1);}_0x53fda8&&_0x210c0d['discard']();}else{const _0x47d140=_0x210c0d['getFirstRange']();if(_0x47d140['containsRange'](_0x2e7001,!0x0))return _0x210c0d;if(!se(_0x210c0d,_0x3f6ff5)){_0x2e7001['containsRange'](_0x47d140)?_0x210c0d['removeMarkers']():_0x47d140['containsPosition'](_0x5b8076)?_0x5b8076=_0x47d140['end']:_0x47d140['containsPosition'](_0x3774be)&&(_0x3774be=_0x47d140['start']);continue;}_0x5b8076=_0x5b8076['isBefore'](_0x47d140['start'])?_0x5b8076:_0x47d140['start'],_0x3774be=_0x3774be['isAfter'](_0x47d140['end'])?_0x3774be:_0x47d140['end'],_0x3f6ff5=Object['assign']({},_0x210c0d['attributes']),_0x264c62?_0x47d140['start']['isBefore'](_0x264c62['getFirstRange']()['start'])?(_0x264c62['removeMarkers'](),_0x264c62=_0x210c0d):_0x210c0d['removeMarkers']():_0x264c62=_0x210c0d;}}}if(_0x264c62)return this['_setSuggestionRange'](_0x264c62,this['_model']['createRange'](_0x5b8076,_0x3774be)),_0x264c62;{const _0x18398a=_0xf4a34a(),_0x12433d=this['_model']['createRange'](_0x5b8076,_0x3774be),_0x3dcdbb=_0x48ad3e['id'],_0x3b6643=_0x522489?'deletion:'+_0x522489:'deletion',_0x59feb0=this['_setSuggestionData']({'id':_0x18398a,'type':_0x3b6643,'createdAt':new Date(),'authorId':_0x3dcdbb,'attributes':_0x3f6ff5});return this['_addSuggestionMarker'](_0x3b6643,_0x18398a,_0x3dcdbb,_0x12433d),_0x59feb0;}}['markMultiRangeDeletion'](_0x5da9a8,_0x914484='multi',_0x4e1c15={}){const _0x57c5c9=this['editor']['plugins']['get']('Users')['me'],_0x14e963=_0x5da9a8['map'](_0x50d853=>new _0x5c6c0b(_0x50d853['start'],_0x50d853['end'])),_0x1b79d4=new Set();this['_trackingSessionId']&&(_0x4e1c15['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x317bea,meta:_0x5d5979}of this['_findSuggestions'](_0x14e963,'insertion'))_0x5d5979['isOwn']&&!_0x5d5979['isNextTo']&&_0x1b79d4['add'](_0x317bea);for(const _0x39e24c of _0x1b79d4)if(_0x39e24c['isMultiRange']){const _0x119eae=_0x39e24c['getRanges']();(!_0x39e24c['attributes']||!_0x39e24c['attributes']['skipNestingCheck'])&&(_0x119eae['every'](_0xd12168=>_0x14e963['some'](_0x317ad4=>_0x317ad4['containsRange'](_0xd12168,!0x0)))&&_0x39e24c['discard']());if(_0x14e963['every'](_0x4f4091=>_0x119eae['some'](_0x13747f=>_0x13747f['containsRange'](_0x4f4091,!0x0)))){const _0x5852e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x914484,'accept');return this['forceDefaultExecution'](()=>_0x5852e3(_0x5da9a8,null,_0x4e1c15)),null;}}else{const _0x2e89eb=_0x39e24c['getFirstRange']();_0x14e963['some'](_0x2a75ff=>_0x2a75ff['containsRange'](_0x2e89eb,!0x0))&&_0x39e24c['discard']();if(_0x14e963['every'](_0x2f7886=>_0x2e89eb['containsRange'](_0x2f7886,!0x0))){const _0x31bdce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x914484,'accept');return this['forceDefaultExecution'](()=>_0x31bdce(_0x14e963,null,_0x4e1c15)),null;}}const _0x17e816=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x914484,'join');let _0x622c2=null;for(const _0x1b4bfc of this['getSuggestions']())if(_0x1b4bfc['author']['id']==_0x57c5c9['id']&&_0x1b4bfc['isInContent']&&'deletion'==_0x1b4bfc['type']&&_0x1b4bfc['subType']==_0x914484&&se(_0x1b4bfc,_0x4e1c15)&&(_0x17e816(_0x1b4bfc['getRanges'](),_0x14e963)||_0x17e816(_0x14e963,_0x1b4bfc['getRanges']()))){if(_0x622c2){if(_0x1b4bfc['commentThread']&&_0x1b4bfc['commentThread']['length'])continue;for(const _0x87d601 of _0x1b4bfc['getRanges']())_0x622c2['isIntersectingWithRange'](_0x87d601)||_0x622c2['addRange'](_0x87d601);_0x1b4bfc['removeMarkers']();}else{_0x622c2=_0x1b4bfc;for(const _0x105ed8 of _0x14e963)_0x1b4bfc['isIntersectingWithRange'](_0x105ed8)||_0x1b4bfc['addRange'](_0x105ed8);}}if(_0x622c2)return _0x622c2;_0x1b79d4['clear']();for(const {suggestion:_0x5da094,meta:_0x5503ac}of this['_findSuggestions'](_0x14e963,'deletion'))_0x5503ac['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5503ac['containsRangeInObject']&&!_0x5503ac['isInsideObject'])&&se(_0x5da094,_0x4e1c15)&&_0x1b79d4['add'](_0x5da094);for(const _0x134572 of _0x1b79d4){const _0x1dea9f=_0x134572['getRanges']();if(!_0x4e1c15||!_0x4e1c15['skipNestingCheck']){if(_0x14e963['every'](_0x37a53b=>_0x1dea9f['some'](_0x219518=>_0x219518['containsRange'](_0x37a53b,!0x0))))return _0x134572;}(!_0x134572['attributes']||!_0x134572['attributes']['skipNestingCheck'])&&(_0x1dea9f['every'](_0x53203d=>_0x14e963['some'](_0x3b03ac=>_0x3b03ac['containsRange'](_0x53203d,!0x0)))&&_0x134572['discard']());}const _0x47b629=_0xf4a34a(),_0x5248e2=_0x57c5c9['id'],_0x25d834='deletion:'+_0x914484,_0x379658=this['_setSuggestionData']({'id':_0x47b629,'type':_0x25d834,'createdAt':new Date(),'authorId':_0x5248e2,'attributes':_0x4e1c15});for(const _0x6eb9b0 of _0x14e963)_0x6eb9b0['detach'](),_0x6eb9b0['isCollapsed']||'$graveyard'==_0x6eb9b0['root']['rootName']||this['_addSuggestionMarker'](_0x25d834,_0x47b629,_0x5248e2,_0x6eb9b0,R['getMultiRangeId']());return _0x379658;}['markAttributeChange'](_0x11b425,_0x5605bc,_0x3897fb,_0x3e2f3c,_0xde229c){if(_0x11b425['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd7b58d=this['editor']['plugins']['get']('Users')['me']['id'],_0x2260a1=Array['from'](this['_suggestions']['values']())['filter'](_0x2bcd56=>'attribute'==_0x2bcd56['type']&&_0x2bcd56['data']['key']==_0x5605bc&&_0x2bcd56['isIntersectingWithRange'](_0x11b425));if(this['_trackingSessionId']&&(_0xde229c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3e71fa=this['_findSuggestions'](_0x11b425,'insertion')['filter'](({meta:_0x3c78b6})=>_0x3c78b6['isOwn']&&!_0x3c78b6['isInsideObject']&&!_0x3c78b6['isNextTo'])['map'](({suggestion:_0x41100e})=>_0x41100e);_0x2260a1['unshift'](..._0x3e71fa);}const _0xc97c10=new Map([[_0x11b425,_0x3897fb]]);for(const _0x6887ec of _0x2260a1){const _0x224c14='attribute'==_0x6887ec['type']?_0x6887ec['data']['oldValue']:void 0x0,_0x4d03a3=_0x6887ec['getFirstRange'](),_0x2e4e1a=Array['from'](_0xc97c10['keys']())['find'](_0x33b6a1=>_0x33b6a1['isIntersecting'](_0x4d03a3));if(!_0x2e4e1a)continue;const _0xdc7a44=_0x2e4e1a['getDifference'](_0x4d03a3);this['_isBlockAttribute'](_0x5605bc)&&'insertion'==_0x6887ec['type']&&0x0!=_0xdc7a44['length']||(_0xc97c10['delete'](_0x2e4e1a),_0xdc7a44['forEach'](_0xa5c3ca=>{_0xc97c10['set'](_0xa5c3ca,_0x3897fb);}),'insertion'!=_0x6887ec['type']&&_0x224c14!=_0x3e2f3c&&_0xc97c10['set'](_0x2e4e1a['getIntersection'](_0x4d03a3),_0x224c14));}const _0x1f5ade=[];for(const [_0x4dc931,_0x46bc8e]of _0xc97c10){const _0x50f0af=_0xf4a34a(),_0x53895a={'key':_0x5605bc,'oldValue':_0x46bc8e,'newValue':_0x3e2f3c};_0x5605bc['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':_0x5605bc});const _0x3f0b04=('attribute:'+(_0x5605bc+'|'+zt({'newValue':_0x3e2f3c})))['substring'](0x0,0x3c),_0xc16e6e=this['_setSuggestionData']({'id':_0x50f0af,'type':_0x3f0b04,'data':_0x53895a,'createdAt':new Date(),'authorId':_0xd7b58d,'attributes':_0xde229c});_0x1f5ade['push'](_0xc16e6e),this['_addSuggestionMarker'](_0x3f0b04,_0x50f0af,_0xd7b58d,_0x4dc931);}return _0x1f5ade;}['enableDefaultAttributesIntegration'](_0x3b859a){this['enableCommand'](_0x3b859a,(_0x223bad,..._0x36f2b1)=>{this['recordAttributeChanges'](()=>{_0x223bad(..._0x36f2b1);});});}['registerBlockAttribute'](_0x48bb31){this['_blockAttributeKeys']['add'](_0x48bb31);}['registerInlineAttribute'](_0x2dbb2d){this['_inlineAttributeKeys']['add'](_0x2dbb2d);}['startTrackingSession'](_0x4d6037){return this['_trackingSessionId']=void 0x0!==_0x4d6037?_0x4d6037:_0xf4a34a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x387c58){return'attribute'==_0x387c58['type']?re(_0x387c58['subType']):null;}['_applyOperationsAsSuggestions'](_0x3149f9){if(0x0==_0x3149f9['length'])return;const _0x4d447d=this['editor'],_0x158103=_0x4d447d['plugins']['get'](_0x368dd4);let _0x315336,_0x469a4b=!0x0;for(const _0x1b5bf6 in _0x3149f9[0x0]){const _0x12394b=_0x3149f9[0x0][_0x1b5bf6];if((_0x12394b instanceof _0xa98866||_0x12394b instanceof _0x2c2e90)&&_0x12394b['root']['is']('documentFragment')){_0x469a4b=!0x1,_0x315336=_0x12394b['root'];break;}}_0x4d447d['model']['change'](_0xf36fe7=>{const _0x307a0c=new Set();for(let _0x575705=0x0;_0x575705<_0x3149f9['length'];_0x575705++){const _0x2319f9=_0x3149f9[_0x575705];if(_0x2319f9['baseVersion']=_0x469a4b?_0x4d447d['model']['document']['version']:null,_0x2319f9['isDocumentOperation']=_0x469a4b,_0x158103['isMarkedRemoveOperation'](_0x2319f9)){const _0x4fe33e=Zt(_0x2319f9['newRange'],_0x4d447d['model']);if(_0x469a4b)this['markDeletion'](_0x4fe33e);else{const _0xed6bc4='suggestion:deletion:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0xed6bc4,_0x4fe33e);}}else switch(_0x2319f9['type']){case'rename':{const _0x360f93=_0x2319f9['oldName'],_0x237acf=_0x2319f9['newName'];if(_0x360f93==_0x237acf)break;_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x14dbc1='$elementName',_0x13215c=_0x2319f9['position'],_0x2a3380=_0x4d447d['model']['createRange'](_0x13215c,_0x4d447d['model']['createPositionAt'](_0x13215c['nodeAfter'],'end'));if(_0x469a4b)this['markAttributeChange'](_0x2a3380,_0x14dbc1,_0x360f93,_0x237acf,{'groupId':_0xf4a34a()});else{const _0x30128e='suggestion:attribute:'+_0x14dbc1+':id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x30128e,_0x2a3380);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x13778e=_0x2319f9['oldValue'],_0x4077ea=_0x2319f9['newValue'];if(_0x13778e==_0x4077ea)break;_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x299b0a=_0x2319f9['key'];if(!this['_isRegisteredAttribute'](_0x299b0a))break;const _0x8087e=Zt(_0x2319f9['range'],_0x4d447d['model']);if(_0x469a4b)this['markAttributeChange'](_0x8087e,_0x299b0a,_0x13778e,_0x4077ea,{'groupId':_0xf4a34a()});else{const _0x26932d='suggestion:attribute:'+_0x299b0a+':id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x26932d,_0x8087e);}break;}case'insert':{_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x89ca00=_0x3149f9[_0x575705+0x1]&&'move'==_0x3149f9[_0x575705+0x1]['type'];if(!_0x469a4b&&_0x89ca00&&ae(_0x315336,_0x2319f9),_0x89ca00)break;const _0x41096f=_0x2319f9['position'],_0x3bc465=_0x2319f9['howMany'],_0x1b9d89=Zt(_0x4d447d['model']['createRange'](_0x41096f,_0x41096f['getShiftedBy'](_0x3bc465)),_0x4d447d['model']);if(_0x469a4b)this['markInsertion'](_0x1b9d89);else{const _0xa8ccd6='suggestion:insertion:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0xa8ccd6,_0x1b9d89);}break;}case'split':{_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x158fa1=_0x2319f9['splitPosition'],_0x168a8a=_0x2319f9['moveTargetPosition'],_0x5a81c2=_0x4d447d['model']['createRange'](_0x158fa1,_0x168a8a);if(_0x469a4b)this['markInsertion'](_0x4d447d['model']['createRange'](_0x158fa1,_0x168a8a));else{const _0x57a70a='suggestion:insertion:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x57a70a,_0x5a81c2);}break;}case'move':if(_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9),!_0x469a4b&&_0x3149f9[_0x575705-0x1]&&'insert'==_0x3149f9[_0x575705-0x1]['type']&&ae(_0x315336,_0x2319f9),!_0x469a4b){const _0xbd60e6=_0x2319f9['getMovedRangeStart'](),_0x59091c=_0x2319f9['howMany'];for(let _0x53d286=0x0;_0x53d286<_0x59091c;_0x53d286++){const _0x440121=_0xbd60e6['getShiftedBy'](_0x53d286)['nodeAfter'];_0x307a0c['add'](_0x440121);}}break;case'remove':if(_0x469a4b)_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);else{const _0x485111=_0x2319f9['sourcePosition'],_0x4a57ba=_0x2319f9['howMany'],_0x5960de=new _0x1aa185(_0x485111,_0x4a57ba);_0xf36fe7['batch']['addOperation'](_0x5960de),_0x4d447d['model']['applyOperation'](_0x5960de);}}}for(const _0x1b91ed of _0x307a0c){const _0x395eed=_0x4d447d['model']['createRangeOn'](_0x1b91ed),_0x11a376='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x11a376,Zt(_0x395eed,_0x4d447d['model']));}});}['_setSuggestionRange'](_0x34139e,_0x599e12){const _0x5d820b=_0x34139e['getFirstMarker']();this['_model']['change'](_0x1473b7=>{_0x1473b7['updateMarker'](_0x5d820b,{'range':_0x599e12});});}['_addThreadToSuggestion'](_0x3819db){const _0x424a07=_0x3819db['id'],_0x25911e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x424a07)||this['_commentsRepository']['addCommentThread']({'channelId':_0x25911e,'threadId':_0x424a07,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x564456=this['_commentsRepository']['getCommentThread'](_0x424a07);_0x564456['unbind']('isRemovable'),_0x564456['isRemovable']=!0x1,_0x3819db['commentThread']=_0x564456;}['_checkSuggestionCorrectness'](_0x2a0e03,_0x3072bf,_0x4596ac,_0x392373){if(_0x2a0e03['type']!=_0x3072bf||_0x2a0e03['subType']!=_0x4596ac||_0x2a0e03['creator']['id']!=_0x392373)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ea0ba('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5deb37,_0x248811){const _0x3045a9=_0x5deb37['getFirstRange']();if(_0x248811['isEqual'](_0x3045a9))_0x5deb37['removeMarkers']();else{if(_0x3045a9['containsRange'](_0x248811)){const _0x4fcbba=this['_model']['createPositionAt'](_0x248811['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5deb37,this['_model']['createRange'](_0x3045a9['start'],_0x4fcbba));const _0xed32c3=_0xf4a34a(),_0x38327=_0x5deb37['creator']['id'],_0x51e382=_0x5deb37['type']+':'+_0x5deb37['subType'];this['_setSuggestionData']({'id':_0xed32c3,'type':_0x51e382,'createdAt':new Date(),'authorId':_0x38327,'data':_0x5deb37['data'],'attributes':_0x5deb37['attributes']});const _0x5f2aca=this['_model']['createPositionAt'](_0x248811['end']['parent'],'after'),_0x54b94b=this['_model']['createRange'](_0x5f2aca,_0x3045a9['end']);this['_addSuggestionMarker'](_0x51e382,_0xed32c3,_0x38327,_0x54b94b);}else{if(_0x3045a9['containsPosition'](_0x248811['start'])){const _0x3e7564=this['_model']['createPositionAt'](_0x248811['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5deb37,this['_model']['createRange'](_0x3045a9['start'],_0x3e7564));}else{const _0x1f57b7=this['_model']['createPositionAt'](_0x248811['end']['parent'],'after');this['_setSuggestionRange'](_0x5deb37,this['_model']['createRange'](_0x1f57b7,_0x3045a9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5f5c16){for(const {suggestion:_0x54c2ff,meta:_0x582f51}of this['_findSuggestions'](_0x5f5c16,'insertion')){if(!_0x582f51['isOwn'])continue;const _0x42db44=_0x54c2ff['getRanges']();for(const _0x45a86c of _0x42db44)if(!_0x5f5c16['getDifference'](_0x45a86c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e4ed5){return this['editor']['plugins']['get']('Users')['getUser'](_0x1e4ed5);}['_getExternalAuthor'](_0x28ac3a){const _0x5a32d3=this['editor']['plugins']['get']('Users'),_0x279f5d=_0x5626cf('external:'+_0x28ac3a),_0x53df1e=_0x5a32d3['getUser'](_0x279f5d);return _0x53df1e||_0x5a32d3['addUser']({'id':_0x279f5d,'name':_0x28ac3a});}['_createSuggestion'](_0x49268f,_0xb2509a,_0x17d81b,_0x45dcd1,_0x443340,_0x2c1dd8){const _0xefc212=this['_getAuthorFromId'](_0x45dcd1);if(!_0xefc212)throw new _0x3ea0ba('track-changes-user-not-found',this,{'authorId':_0x45dcd1,'suggestionId':_0x17d81b});const _0x3c18c7=this['_suggestionFactory']['buildSuggestion'](_0x49268f,_0xb2509a,_0x17d81b,_0xefc212,_0x443340,_0x1d850f=>{this['_updateSuggestionData'](_0x17d81b,{'attributes':_0x1d850f});const _0x259d70=this['getSuggestion'](_0x17d81b);this['_joinWithAdjacentSuggestions'](new Set([_0x259d70])),this['_refreshSuggestionsChain'](new Set([_0x259d70]));},_0x2c1dd8);return this['listenTo'](_0x3c18c7,'accept',()=>{this['_updateSuggestionData'](_0x17d81b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c18c7,'discard',()=>{this['_updateSuggestionData'](_0x17d81b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17d81b,_0x3c18c7),this['_suggestionState']['set'](_0x3c18c7,'notReady'),_0x3c18c7;}['_splitMarkerName'](_0x3166ef){const _0x5a58e6=_0x3166ef['split'](':');return{'group':_0x5a58e6[0x0],'type':_0x5a58e6[0x1],'subType':_0x5a58e6['length']>=0x5?_0x5a58e6[0x2]:null,'id':_0x5a58e6['length']<0x5?_0x5a58e6[0x2]:_0x5a58e6[0x3],'authorId':_0x5a58e6['length']<0x5?_0x5a58e6[0x3]:_0x5a58e6[0x4],'markerCount':0x6==_0x5a58e6['length']?_0x5a58e6[0x5]:null};}['_breakSuggestionMarker'](_0x4ed3e2,_0x4837ce,_0x176421){const _0x45f6f5=_0x4ed3e2['getFirstRange'](),_0xb0d87b=_0x45f6f5['start'],_0x24eec9=_0x45f6f5['end'];this['_setSuggestionRange'](_0x4ed3e2,this['_model']['createRange'](_0xb0d87b,_0x4837ce));const _0x382f05=_0xf4a34a(),_0x15985d=_0x4ed3e2['creator']['id'],_0x49622f=_0x4ed3e2['type']+(_0x4ed3e2['subType']?':'+_0x4ed3e2['subType']:'');this['_setSuggestionData']({'id':_0x382f05,'type':_0x49622f,'createdAt':new Date(),'authorId':_0x15985d,'originalSuggestionId':_0x4ed3e2['_originalSuggestionId']||_0x4ed3e2['id'],'attributes':_0x4ed3e2['attributes'],'data':_0x4ed3e2['data']});const _0x43c6e2=this['_getAttributeKey'](_0x4ed3e2);('formatBlock'==_0x4ed3e2['type']||_0x43c6e2&&this['_isBlockAttribute'](_0x43c6e2))&&(_0x176421=this['_model']['createPositionBefore'](_0x176421['parent'])),this['_addSuggestionMarker'](_0x49622f,_0x382f05,_0x15985d,this['_model']['createRange'](_0x176421,_0x24eec9));}['_findSuggestions'](_0x10b712,_0xc1ef48=null){const _0xf269a5=[],_0xf560ab=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x10b712)||(_0x10b712=[_0x10b712]);for(const _0x46bfa6 of this['getSuggestions']()){if(!_0x46bfa6['isInContent'])continue;if(_0xc1ef48&&_0x46bfa6['type']!=_0xc1ef48)continue;let _0x1f25ba=!0x1;for(const _0x4ec65f of _0x46bfa6['getRanges']()){for(const _0x19e460 of _0x10b712){const _0x38510e=_0x19e460['start']['isEqual'](_0x4ec65f['end'])||_0x19e460['end']['isEqual'](_0x4ec65f['start']);if(_0x38510e||_0x19e460['getIntersection'](_0x4ec65f)){const _0x5deaef=_0x19e460['containsRange'](_0x4ec65f)&&qt(this['_model']['schema'],_0x4ec65f['start'],_0x19e460),_0x2e7884=_0x4ec65f['containsRange'](_0x19e460)&&qt(this['_model']['schema'],_0x19e460['start'],_0x4ec65f);_0xf269a5['push']({'suggestion':_0x46bfa6,'meta':{'isOwn':_0xf560ab==_0x46bfa6['author'],'isNextTo':_0x38510e,'isInsideObject':_0x5deaef,'containsRangeInObject':_0x2e7884}}),_0x1f25ba=!0x0;break;}}if(_0x1f25ba)break;}}return _0xf269a5;}['_addSuggestionMarker'](_0x52dec7,_0x2aebd5,_0x5d457d,_0xe905f6,_0x1525de){this['_model']['change'](_0x45bbba=>{let _0x3797d8='suggestion:'+_0x52dec7+':'+_0x2aebd5+':'+_0x5d457d;_0x1525de&&(_0x3797d8=_0x3797d8+':'+_0x1525de),_0x45bbba['addMarker'](_0x3797d8,{'range':_0xe905f6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ac7a2){const _0x3fd695=_0x3ac7a2['previous'],_0x391a06=_0x3ac7a2['next'];_0x3ac7a2['previous']=null,_0x3ac7a2['next']=null,null!=_0x3fd695&&_0x3fd695['next']==_0x3ac7a2&&(_0x3fd695['next']=_0x391a06),null!=_0x391a06&&_0x391a06['previous']==_0x3ac7a2&&(_0x391a06['previous']=_0x3fd695),'ready'==this['_suggestionState']['get'](_0x3ac7a2)&&(this['_suggestionState']['set'](_0x3ac7a2,'removed'),this['fire']('suggestionUnloaded',_0x3ac7a2,_0x3fd695,_0x391a06));}['_setSuggestionData'](_0x225db1){const _0x4541ed=_0x225db1['id'],_0x2830b0=this['addSuggestionData'](_0x225db1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1a8602=this['editor']['plugins']['get']('PendingActions'),_0x3d13d3=_0x2830b0['hasComments'],_0x26b9ea=_0x2830b0['subType']?_0x2830b0['type']+':'+_0x2830b0['subType']:_0x2830b0['type'],_0x1094b1=this['editor']['locale'],_0x4e53b3=_0x1a8602['add'](o(_0x1094b1,'PENDING_ACTION_SUGGESTION')),_0x233106={'id':_0x4541ed,'type':_0x26b9ea,'hasComments':_0x3d13d3,'data':_0x225db1['data']||null,'originalSuggestionId':_0x225db1['originalSuggestionId']||null,'attributes':_0x2830b0['attributes']};this['_adapter']['addSuggestion'](_0x233106)['then'](_0xaee54b=>{_0x2830b0['_saved']=!0x0,_0x1a8602['remove'](_0x4e53b3),_0xaee54b&&_0xaee54b['createdAt']&&(this['_suggestions']['get'](_0x4541ed)['createdAt']=_0xaee54b['createdAt']);})['catch'](_0x466526=>{throw _0x3339d7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2830b0['discard']();}),_0x2830b0['stopListening'](),this['_suggestions']['delete'](_0x2830b0['id']),this['_suggestionState']['delete'](_0x2830b0),_0x466526;});}return _0x2830b0;}['_isBlockAttribute'](_0xc6f3a4){return this['_blockAttributeKeys']['has'](_0xc6f3a4);}['_isInlineAttribute'](_0x54bb91){return this['_inlineAttributeKeys']['has'](_0x54bb91);}['_updateSuggestionData'](_0x46377b,_0x6b4bbf){const _0x4ff756=this['editor']['plugins']['get']('PendingActions'),_0xd8c82c=this['getSuggestion'](_0x46377b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xd8c82c['_saved']){const _0x2f23b0=_0x4ff756['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46377b,_0x6b4bbf)['then'](()=>{_0x4ff756['remove'](_0x2f23b0);});}else _0xd8c82c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46377b,_0x6b4bbf);});}}['_getSuggestionData'](_0x180552){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ea0ba('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x180552);}['_handleNewSuggestionMarker'](_0x12670e){const {id:_0x3922ef,type:_0x10b144,subType:_0x1ddbcc,authorId:_0x58d0ce}=this['_splitMarkerName'](_0x12670e),_0x5d32f9=this['_suggestions']['get'](_0x3922ef)||this['_createSuggestion'](_0x10b144,_0x1ddbcc,_0x3922ef,_0x58d0ce,{});switch(this['_checkSuggestionCorrectness'](_0x5d32f9,_0x10b144,_0x1ddbcc,_0x58d0ce),this['_suggestionState']['get'](_0x5d32f9)){case'notReady':this['_getSuggestionData'](_0x3922ef)['then'](_0x3a40df=>{let _0x4d5c30=Promise['resolve']();_0x3a40df['hasComments']&&(_0x4d5c30=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3922ef})),_0x4d5c30['then'](()=>{this['addSuggestionData'](_0x3a40df)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5d32f9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3922ef,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5d32f9,'ready'),this['fire']('suggestionLoaded',_0x5d32f9);break;case'ready':this['fire']('suggestionChanged',_0x5d32f9);}return _0x5d32f9['addMarkerName'](_0x12670e),_0x5d32f9;}['_refreshSuggestionsChain'](_0x34a2b7){const _0x4bc0ff=Array['from'](_0x34a2b7),_0x47192d=_0x4bc0ff['filter'](_0x4ca64b=>'attribute'==_0x4ca64b['type']);this['_refreshAttributeSuggestionsChain'](_0x47192d);const _0x2c3ac4=_0x4bc0ff['filter'](_0x2ac20f=>!_0x2ac20f['isMultiRange']&&'attribute'!=_0x2ac20f['type']),_0x4bb537=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b6fa6=>!_0x3b6fa6['isMultiRange']&&'attribute'!=_0x3b6fa6['type']),_0x25b8fe=_0x4bb537['filter'](_0xed6a65=>!_0x34a2b7['has'](_0xed6a65)),_0x30ce9f=new Map(_0x4bb537['map'](_0x3473b8=>[_0x3473b8,this['_suggestionFactory']['getSuggestionCallback'](_0x3473b8['type'],_0x3473b8['subType'],'chain')])),_0x266b46=new Map(_0x4bb537['map'](_0x3c5a3d=>[_0x3c5a3d,_0x3c5a3d['getFirstRange']()])),_0x18e932=new Set(),_0x30e6f3=new Set();for(let _0x5cd30b=0x0;_0x5cd30b<_0x2c3ac4['length'];_0x5cd30b++)_0x518862(_0x2c3ac4[_0x5cd30b],_0x2c3ac4,_0x5cd30b+0x1);for(let _0xba2b19=0x0;_0xba2b19<_0x2c3ac4['length'];_0xba2b19++)_0x518862(_0x2c3ac4[_0xba2b19],_0x25b8fe,0x0);const _0x2b13d2=new Set();for(let _0x40ceaa=0x0;_0x40ceaa<_0x2c3ac4['length'];_0x40ceaa++){const _0x62b44=_0x2c3ac4[_0x40ceaa];!_0x30e6f3['has'](_0x62b44)&&_0x62b44['previous']&&(_0x2b13d2['add'](_0x62b44['previous']),_0x62b44['previous']['next']===_0x62b44&&(_0x62b44['previous']['next']=null),_0x62b44['previous']=null),!_0x18e932['has'](_0x62b44)&&_0x62b44['next']&&(_0x2b13d2['add'](_0x62b44['next']),_0x62b44['next']['previous']===_0x62b44&&(_0x62b44['next']['previous']=null),_0x62b44['next']=null);}function _0x518862(_0x502f1c,_0x20a7aa,_0x43fbc5){for(let _0xd52d00=_0x43fbc5;_0xd52d00<_0x20a7aa['length'];_0xd52d00++){const _0x3837f0=_0x26f791(_0x502f1c,_0x20a7aa[_0xd52d00]);_0x3837f0&&(_0x3837f0[0x0]['next']=_0x3837f0[0x1],_0x3837f0[0x1]['previous']=_0x3837f0[0x0],_0x18e932['add'](_0x3837f0[0x0]),_0x30e6f3['add'](_0x3837f0[0x1]));}}function _0x26f791(_0x59ae07,_0x2e16f1){if(_0x59ae07['author']['id']!==_0x2e16f1['author']['id'])return null;const _0xb0d396=_0x30ce9f['get'](_0x59ae07)(_0x59ae07,_0x2e16f1,_0x266b46['get'](_0x59ae07),_0x266b46['get'](_0x2e16f1));if(!_0xb0d396)return null;return _0x30ce9f['get'](_0x2e16f1)(_0x59ae07,_0x2e16f1,_0x266b46['get'](_0x59ae07),_0x266b46['get'](_0x2e16f1))?_0xb0d396[0x1]['commentThread']&&_0xb0d396[0x1]['commentThread']['length']?null:_0xb0d396:null;}_0x2b13d2['size']&&this['_refreshSuggestionsChain'](_0x2b13d2);}['_refreshAttributeSuggestionsChain'](_0x28c78f){if(0x0==_0x28c78f['length'])return;const _0x4a1c86=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8013c7=>'attribute'==_0x8013c7['type']&&_0x8013c7['_isDataLoaded']),_0x401b20=[],_0x1c0040=new Map();for(const _0x496f39 of _0x4a1c86){const _0x44cd7b=_0x5626cf(_0x496f39['attributes']);_0x1c0040['has'](_0x44cd7b)||(_0x1c0040['set'](_0x44cd7b,_0x401b20['length']),_0x401b20['push']([]));const _0x3d361d=_0x1c0040['get'](_0x44cd7b);_0x401b20[_0x3d361d]['push'](_0x496f39);}!(function(){_0x401b20['sort']((_0x5c30b4,_0x28d2a3)=>{const _0x589457=_0x5c30b4[0x0]['createdAt'],_0x3ed035=_0x28d2a3[0x0]['createdAt'];return _0x589457==_0x3ed035?_0x5c30b4[0x0]['attributes']['groupId']<_0x28d2a3[0x0]['attributes']['groupId']?-0x1:0x1:_0x589457<_0x3ed035?-0x1:0x1;});for(const _0x1be431 of _0x401b20)_0x1be431['sort']((_0x5cc488,_0x60d65f)=>_0x5cc488['id']<_0x60d65f['id']?-0x1:0x1);}());for(let _0x1bf0e3=0x0;_0x1bf0e3<_0x401b20['length'];_0x1bf0e3++){if(0x0==_0x401b20[_0x1bf0e3]['length'])continue;const _0x3119cb=[];for(let _0x34b395=_0x1bf0e3+0x1;_0x34b395<_0x401b20['length'];_0x34b395++)0x0!=_0x401b20[_0x34b395]['length']&&_0x49b73e(_0x401b20[_0x1bf0e3],_0x401b20[_0x34b395])&&_0x3119cb['push'](_0x34b395);for(const _0x2c5a33 of _0x3119cb)_0x401b20[_0x1bf0e3]=_0x401b20[_0x1bf0e3]['concat'](_0x401b20[_0x2c5a33]),_0x401b20[_0x2c5a33]=[];}for(const _0x5dfee9 of _0x401b20)for(let _0x411e3a=0x0;_0x411e3a<_0x5dfee9['length'];_0x411e3a++){const _0x57f664=_0x5dfee9[_0x411e3a+0x1]||null;_0x5dfee9[_0x411e3a]['next']!==_0x57f664&&(_0x5dfee9[_0x411e3a]['next']=_0x57f664);}for(const _0x4c0785 of _0x401b20)for(let _0x5e5af6=0x0;_0x5e5af6<_0x4c0785['length'];_0x5e5af6++){const _0x7f65f3=_0x4c0785[_0x5e5af6-0x1]||null;_0x4c0785[_0x5e5af6]['previous']!==_0x7f65f3&&(_0x4c0785[_0x5e5af6]['previous']=_0x7f65f3);}function _0x49b73e(_0x56f4f6,_0x220092){if(_0x56f4f6[0x0]['attributes']['groupId']!==_0x220092[0x0]['attributes']['groupId']&&_0x56f4f6[0x0]['author']!==_0x220092[0x0]['author'])return!0x1;if(!function(_0x1c7550,_0x19b27b){if(!_0x1c7550['hasComments']&&!_0x19b27b['hasComments'])return!0x0;if(_0x1c7550['hasComments']&&_0x19b27b['hasComments'])return!0x1;if(_0x1c7550['hasComments']&&_0x19b27b['createdAt']<_0x1c7550['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x19b27b['hasComments']&&_0x1c7550['createdAt']<_0x19b27b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56f4f6[0x0],_0x220092[0x0]))return!0x1;const _0x10212e=Jt(_0x56f4f6[0x0]['attributes'],['groupId','trackingSessionId']),_0x10a3b4=Jt(_0x220092[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x51e25d(_0x10212e,_0x10a3b4))return!0x1;if(_0x56f4f6[0x0]['attributes']['groupId']==_0x220092[0x0]['attributes']['groupId'])return!0x0;if(_0x56f4f6[0x0]['attributes']['trackingSessionId']!==_0x220092[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x56f4f6['every'](_0xcf2644=>_0x220092['some'](_0x20b5d2=>_0xcf2644['getFirstRange']()['isEqual'](_0x20b5d2['getFirstRange']())))&&_0x220092['every'](_0x1be94e=>_0x56f4f6['some'](_0x1e4571=>_0x1be94e['getFirstRange']()['isEqual'](_0x1e4571['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x70d154){const _0x1c7ff0=Array['from'](_0x70d154),_0x472a15=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2af8a5=_0x472a15['filter'](_0x1677de=>!_0x70d154['has'](_0x1677de)),_0x441f50=new Map(_0x1c7ff0['map'](_0x3e9c1a=>[_0x3e9c1a,this['_suggestionFactory']['getSuggestionCallback'](_0x3e9c1a['type'],_0x3e9c1a['subType'],'join')])),_0x4ecf98=new Map(_0x472a15['map'](_0x699207=>[_0x699207,_0x699207['getRanges']()]));for(let _0x10dc62=0x0;_0x10dc62<_0x1c7ff0['length'];_0x10dc62++){if(_0x58eafe(this,_0x1c7ff0[_0x10dc62],_0x1c7ff0,_0x10dc62+0x1))return!0x0;}for(let _0x3ccfbd=0x0;_0x3ccfbd<_0x1c7ff0['length'];_0x3ccfbd++){if(_0x58eafe(this,_0x1c7ff0[_0x3ccfbd],_0x2af8a5,0x0))return!0x0;}return!0x1;function _0x58eafe(_0x35e5d2,_0x54f995,_0x1354ea,_0x17833f){for(let _0x1eb9aa=_0x17833f;_0x1eb9aa<_0x1354ea['length'];_0x1eb9aa++){const _0x3f4c3e=_0x1354ea[_0x1eb9aa];if(_0x3f4c3e['type']!==_0x54f995['type']||_0x3f4c3e['author']['id']!==_0x54f995['author']['id']||_0x3f4c3e['subType']!==_0x54f995['subType'])continue;if(!ne(_0x54f995,_0x3f4c3e))continue;if('attribute'==_0x54f995['type']&&_0x54f995['data']['oldValue']!=_0x3f4c3e['data']['oldValue'])continue;if('attribute'==_0x54f995['type']&&_0x35e5d2['_isBlockAttribute'](_0x54f995['data']['key']))continue;if('formatBlock'==_0x54f995['type']){const _0x854d97=_0x35e5d2['editor']['model'],_0x114615=_0x54f995['getContainedElement']();if(_0x114615&&(_0x854d97['schema']['isObject'](_0x114615)||_0x854d97['schema']['isLimit'](_0x114615)))continue;}const _0x2f914a=_0x441f50['get'](_0x54f995),_0x597bd0=_0x4ecf98['get'](_0x54f995),_0x327beb=_0x4ecf98['get'](_0x3f4c3e),_0x36a86a=_0x54f995['commentThread']&&_0x54f995['commentThread']['length'],_0xaf380b=_0x3f4c3e['commentThread']&&_0x3f4c3e['commentThread']['length'];if(!_0x36a86a&&_0x2f914a(_0x327beb,_0x597bd0))return _0x35e5d2['_joinSuggestions'](_0x3f4c3e,_0x54f995),_0x4ecf98['delete'](_0x54f995),!0x0;if(!_0xaf380b&&_0x2f914a(_0x597bd0,_0x327beb))return _0x35e5d2['_joinSuggestions'](_0x54f995,_0x3f4c3e),_0x4ecf98['delete'](_0x3f4c3e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x385ed1,_0x18563c){if(_0x385ed1['isMultiRange']){for(const _0x25a176 of _0x18563c['getRanges']())_0x385ed1['addRange'](_0x25a176);}else{const _0x1b0a10=_0x18563c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x385ed1,this['_model']['createRange'](_0x385ed1['getFirstRange']()['start'],_0x1b0a10));}_0x18563c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x186db2,_0xcce2f,_0x1e8fa6){const _0x3c3f66=_0x186db2['startsWith']('format')||_0x186db2['startsWith']('attribute')?'FORMATTING':_0x186db2['toUpperCase']();return o(this['editor']['locale'],_0xcce2f+'_'+_0x3c3f66+'_SUGGESTION_ANNOUNCEMENT',_0x1e8fa6);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f673b=this['editor'];if(!_0x1f673b['ui'])return;const {ariaLiveAnnouncer:_0x3dad40}=_0x1f673b['ui'];_0x4f626c(this['_model'],({left:_0x38faec,entered:_0x569fab})=>{for(const _0x3c3f9e of _0x38faec){const {group:_0x4e1997,type:_0x364e40}=this['_splitMarkerName'](_0x3c3f9e['name']);if('suggestion'===_0x4e1997){_0x3dad40['announce'](this['_getMarkerAnnouncementText'](_0x364e40,'LEAVE'));break;}}for(const _0x554ab7 of _0x569fab){const {group:_0xfa2726,type:_0xcba491}=this['_splitMarkerName'](_0x554ab7['name']);if('suggestion'===_0xfa2726){_0x3dad40['announce'](this['_getMarkerAnnouncementText'](_0xcba491,'ENTER',_0xad8b6a(_0x152ffb)));break;}}});}['_processAttributeChanges'](_0x17abd5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f100e=this['editor'],_0x8a5cab=_0x2f100e['model']['document']['differ']['getChanges']();if(0x0==_0x8a5cab['length'])return!0x1;const _0x55a239=[],_0x269fbb=_0x8a5cab['filter'](_0x36a86f=>'attribute'==_0x36a86f['type']),_0x3e1537=_0x8a5cab['filter'](_0x82635=>'insert'==_0x82635['type']&&'$text'!=_0x82635['name']),_0x4583d5=_0x8a5cab['filter'](_0x3a8720=>'remove'==_0x3a8720['type']&&'$text'!=_0x3a8720['name']);for(const _0x36a4af of _0x269fbb)_0x55a239['push']({'key':_0x36a4af['attributeKey'],'newValue':_0x36a4af['attributeNewValue'],'oldValue':_0x36a4af['attributeOldValue'],'range':te(_0x36a4af['range'],_0x2f100e['model'])});for(const _0x5ad362 of _0x3e1537){const _0x50be26=_0x4583d5['find'](_0x3895d4=>_0x3895d4['position']['isEqual'](_0x5ad362['position']));_0x50be26&&_0x55a239['push']({'key':m,'newValue':_0x5ad362['name'],'oldValue':_0x50be26['name'],'range':_0x2f100e['model']['createRangeOn'](_0x5ad362['position']['nodeAfter'])});}return 0x0!=_0x55a239['length']&&this['_reduceExistingSuggestions'](_0x17abd5,_0x55a239);}['_processAttributeSuggestions'](_0x259c3e){let _0x42998b=!0x1;const _0x416c8f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x18c04c=>_0x18c04c['data']['newRange']&&_0x18c04c['name']['startsWith']('suggestion:attribute:'));for(const _0x47ea3c of _0x416c8f){const {subType:_0x255f92,id:_0x3770ed}=this['_splitMarkerName'](_0x47ea3c['name']),_0x2235f4=_0x255f92['split']('|')[0x0];for(const _0x2c70bd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2c70bd['id']!=_0x3770ed&&'attribute'==_0x2c70bd['type']&&_0x2c70bd['data']&&_0x2c70bd['data']['key']==_0x2235f4&&_0x2c70bd['getFirstRange']()['isIntersecting'](_0x47ea3c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2c70bd,_0x47ea3c['data']['newRange'],_0x259c3e),_0x42998b=!0x0);}return _0x42998b;}['recordAttributeChanges'](_0x73ae91){this['_recordAttributeSuggestions']=!0x0,_0x73ae91();}['_isRegisteredAttribute'](_0x18c3eb){const _0x268b3b=this['_isBlockAttribute'](_0x18c3eb),_0x6775c1=this['_isInlineAttribute'](_0x18c3eb);return _0x268b3b||_0x6775c1;}['_reduceExistingSuggestions'](_0x9aa2d0,_0x18df4f){if(0x0==_0x18df4f['length'])return!0x1;let _0x2f2880=!0x1;for(const _0x217952 of _0x18df4f){const _0x262895=this['_findSuggestions'](_0x217952['range'],'attribute')['filter'](_0x4bd948=>!_0x4bd948['meta']['isNextTo'])['map'](_0x5682da=>_0x5682da['suggestion']),_0x516a07=_0x5626cf({'newValue':_0x217952['newValue']});_0x262895['filter'](_0x45db22=>{const [_0x14e839,_0x1e829f]=_0x45db22['subType']['split']('|');return _0x14e839==_0x217952['key']&&_0x1e829f!=_0x516a07;})['forEach'](_0x2b620e=>{this['_reduceSuggestionAttributeRange'](_0x2b620e,_0x217952['range'],_0x9aa2d0),_0x2f2880=!0x0;});}return _0x2f2880;}['_reduceSuggestionAttributeRange'](_0x253d76,_0x5b078d,_0x69125){const _0x4e1b19=_0x253d76['getFirstRange']()['getDifference'](_0x5b078d);0x0!==_0x4e1b19['length']?0x1!==_0x4e1b19['length']?this['_breakSuggestionMarker'](_0x253d76,_0x5b078d['start'],_0x5b078d['end']):this['_setSuggestionRange'](_0x253d76,_0x4e1b19[0x0]):_0x69125['removeMarker'](_0x253d76['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43e1aa){this['_editor']=_0x43e1aa,this['_model']=_0x43e1aa['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x320ff7,_0x46db74,_0x2fd063,_0x70ab05,_0x2ca0a4,_0x19f9de,_0x41c06e){return new R(this['_model'],{'type':_0x320ff7,'subType':_0x46db74,'id':_0x2fd063,'originalSuggestionId':_0x41c06e,'author':_0x70ab05,'creator':_0x70ab05,'attributes':_0x2ca0a4,'onAttributesChange':_0x19f9de,'onAccept':(..._0x551b29)=>this['getSuggestionCallback'](_0x320ff7,_0x46db74,'accept')(..._0x551b29),'onDiscard':(..._0x2b25c6)=>this['getSuggestionCallback'](_0x320ff7,_0x46db74,'discard')(..._0x2b25c6)});}['registerCustomCallback'](_0x885fa1,_0x534ebf,_0x39b535,_0x5eb37f){const _0x8a563c=_0x885fa1+':'+_0x534ebf+':'+_0x39b535;this['_customCallbacks']['set'](_0x8a563c,_0x5eb37f);}['getSuggestionCallback'](_0x276bdf,_0xee668f,_0x5f3c1c){const _0x138241=_0x276bdf+':'+_0xee668f+':'+_0x5f3c1c;return this['_customCallbacks']['get'](_0x138241)||this['_defaultCallbacks']['get'](_0x276bdf+':'+_0x5f3c1c);}['_registerDefaultCallbacks'](){const _0xf4c5ac=()=>!0x1,_0x2abee3=_0x4e6382=>{_0x4e6382['sort']((_0x5e816c,_0x393036)=>_0x5e816c['start']['isBefore'](_0x393036['start'])?0x1:-0x1),this['_model']['change'](_0x318a1c=>{for(const _0x175008 of _0x4e6382){let _0x43e972;_0x43e972=_0x175008['end']['isAtEnd']&&_0x175008['end']['parent']==_0x175008['start']['nodeAfter']?_0x318a1c['createSelection'](_0x175008['start']['nodeAfter'],'on'):_0x318a1c['createSelection'](_0x175008),this['_model']['deleteContent'](_0x43e972,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x45a68e=(_0x32e9c9,_0x255b1f)=>{_0x255b1f&&this['_model']['change'](_0x32ce38=>{const {commandName:_0x218dff,commandParams:_0xfc4442=[]}=_0x255b1f,_0x5127bb=_0x32e9c9['map'](_0x2c076b=>(Ht(_0x2c076b)&&(_0x2c076b=this['_model']['createRange'](_0x2c076b['end'])),_0x2c076b))['filter'](_0x2f3673=>'$graveyard'!==_0x2f3673['root']['rootName']);if(_0x5127bb['length']<0x1)return;const _0x1e20a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x26e4b6=>_0x5c6c0b['fromRange'](_0x26e4b6));_0x32ce38['setSelection'](_0x5127bb);for(const _0x40c205 of this['_editor']['commands']['commands']())_0x40c205['refresh']();_0xfc4442['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x218dff,..._0xfc4442);const _0x4c041b=_0x1e20a7['filter'](_0x519a7a=>'$graveyard'!=_0x519a7a['root']['rootName']);_0x4c041b['length']>0x0&&_0x32ce38['setSelection'](_0x4c041b);for(const _0x1aae14 of _0x1e20a7)_0x1aae14['detach']();});},_0x4e28db=(_0xe64827,_0x12b4b5)=>0x1==_0xe64827['length']&&0x1==_0x12b4b5['length']&&_0xe64827[0x0]['end']['isEqual'](_0x12b4b5[0x0]['start']),_0x1eae57=(_0x3b88da,_0x4083ff,_0x5d6d4e,_0x426b5)=>ie(_0x3b88da,_0x4083ff,_0x5d6d4e,_0x426b5)?[_0x3b88da,_0x4083ff]:ie(_0x4083ff,_0x3b88da,_0x426b5,_0x5d6d4e)?[_0x4083ff,_0x3b88da]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf4c5ac),this['_defaultCallbacks']['set']('insertion:discard',_0x2abee3),this['_defaultCallbacks']['set']('insertion:join',_0x4e28db),this['_defaultCallbacks']['set']('insertion:chain',_0x1eae57),this['_defaultCallbacks']['set']('deletion:accept',_0x2abee3),this['_defaultCallbacks']['set']('deletion:discard',_0xf4c5ac),this['_defaultCallbacks']['set']('deletion:join',_0x4e28db),this['_defaultCallbacks']['set']('deletion:chain',_0x1eae57),this['_defaultCallbacks']['set']('formatInline:accept',_0x45a68e),this['_defaultCallbacks']['set']('formatInline:discard',_0xf4c5ac),this['_defaultCallbacks']['set']('formatInline:join',_0x4e28db),this['_defaultCallbacks']['set']('formatInline:chain',_0xf4c5ac),this['_defaultCallbacks']['set']('formatBlock:accept',_0x45a68e),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf4c5ac),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e28db),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf4c5ac),this['_defaultCallbacks']['set']('attribute:accept',_0xf4c5ac),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d28c1,_0x34b5ef)=>{if(!_0x34b5ef)return;const _0x1c3077=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x14afe4=>{if(_0x34b5ef['key']==m)for(const _0x96ef42 of _0x2d28c1){const _0x4658e7=_0x96ef42['start']['nodeAfter'],_0x5383c4=_0x34b5ef['oldValue'];_0x14afe4['rename'](_0x4658e7,_0x5383c4);}else{if(_0x1c3077['_isBlockAttribute'](_0x34b5ef['key'])){for(const _0x209605 of _0x2d28c1)void 0x0!==_0x34b5ef['oldValue']?_0x14afe4['setAttribute'](_0x34b5ef['key'],_0x34b5ef['oldValue'],_0x209605['start']['nodeAfter']):_0x14afe4['removeAttribute'](_0x34b5ef['key'],_0x209605['start']['nodeAfter']);}else{for(const _0x394238 of _0x2d28c1)_0x34b5ef['oldValue']?_0x14afe4['setAttribute'](_0x34b5ef['key'],_0x34b5ef['oldValue'],_0x394238):_0x14afe4['removeAttribute'](_0x34b5ef['key'],_0x394238);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e28db);}}function qt(_0x70dc44,_0x13de4c,_0x40ac0b){for(const _0x4d5837 of _0x13de4c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d5837['root']==_0x4d5837)return!0x1;if(!_0x40ac0b['containsItem'](_0x4d5837))return!0x1;if(_0x70dc44['isObject'](_0x4d5837)||_0x70dc44['isLimit'](_0x4d5837))return!0x0;}return!0x1;}function Ht(_0x1b2400){return _0x1b2400['end']['parent']==_0x1b2400['start']['nodeAfter']&&_0x1b2400['end']['isAtStart'];}function Wt(_0x58573e,_0x2aa96e,_0x5318c6,_0x552501){const _0x1a13fc=_0x3814b7=>!_0x3814b7['item']['is']('$textProxy')&&!_0x552501['isObject'](_0x3814b7['item']),_0x3a7bdd=_0x58573e['start']['getLastMatchingPosition'](_0x1a13fc),_0x4dd7bd=_0x58573e['end']['getLastMatchingPosition'](_0x1a13fc,{'direction':'backward'});return(!_0x58573e['start']['isEqual'](_0x3a7bdd)||!_0x58573e['end']['isEqual'](_0x4dd7bd))&&(_0x3a7bdd['isBefore'](_0x4dd7bd)?_0x5318c6['updateMarker'](_0x2aa96e,{'range':_0x5318c6['createRange'](_0x3a7bdd,_0x4dd7bd)}):_0x5318c6['removeMarker'](_0x2aa96e),!0x0);}function zt(_0x4f250c){return _0x5626cf(_0x4f250c);}function Qt(_0xebb487){const _0x3e580b=_0xebb487['start']['nodeAfter'];return _0x3e580b&&_0x3e580b['is']('element');}function Xt(_0xfb2cac){return Ht(_0xfb2cac)||function(_0x57450d){return _0x57450d['start']['parent']==_0x57450d['end']['nodeBefore']&&_0x57450d['start']['isAtEnd'];}(_0xfb2cac);}function Yt(_0x5c52c0,_0x4f8405){try{const _0x2405c3=_0x5c52c0['getRange']();for(const _0x6447ff of _0x4f8405)if(_0x5c52c0!==_0x6447ff&&_0x2405c3&&_0x2405c3['isIntersecting'](_0x6447ff['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1d7ee9,_0x44ad94){const _0x289392=_0x1d7ee9['end']['nodeBefore'];if(_0x289392&&_0x289392['is']('element')&&_0x44ad94['schema']['isBlock'](_0x289392)&&!_0x44ad94['schema']['isObject'](_0x289392)){const _0x37996e=_0x44ad94['createPositionAt'](_0x289392,'end');return _0x44ad94['createRange'](_0x1d7ee9['start'],_0x37996e);}return _0x1d7ee9;}function te(_0x34aab6,_0x1d8344){return null==_0x34aab6['end']['nodeBefore']&&_0x34aab6['end']['parent']==_0x34aab6['start']['nodeAfter']?ee(_0x34aab6['start']['nodeAfter'],_0x1d8344):_0x34aab6;}function ee(_0x246f2f,_0x44f7d0){const _0x4cdb9b=_0x44f7d0['schema']['isObject'](_0x246f2f)||_0x44f7d0['schema']['isSelectable'](_0x246f2f);return _0x44f7d0['createRange'](_0x44f7d0['createPositionAt'](_0x246f2f,'before'),_0x4cdb9b?_0x44f7d0['createPositionAfter'](_0x246f2f):_0x44f7d0['createPositionAt'](_0x246f2f,'end'));}function ie(_0x5889bd,_0x4a01c6,_0xc3de89,_0x4e3364){return!!ne(_0x5889bd,_0x4a01c6)&&_0xc3de89['end']['isEqual'](_0x4e3364['start']);}function ne(_0x5b501b,_0x2f6986){if(!_0x5b501b['_isDataLoaded']||!_0x2f6986['_isDataLoaded'])return!0x1;const _0x3cfe91=new Set(Object['keys'](_0x5b501b['attributes'])),_0x123437=new Set(Object['keys'](_0x2f6986['attributes']));if(_0x3cfe91['delete']('groupId'),_0x123437['delete']('groupId'),0x0==_0x3cfe91['size']&&0x0==_0x123437['size'])return!0x0;if(_0x3cfe91['size']!=_0x123437['size'])return!0x1;const _0x40dd84={..._0x5b501b['attributes']},_0x21ab6c={..._0x2f6986['attributes']};return delete _0x40dd84['groupId'],delete _0x21ab6c['groupId'],JSON['stringify'](_0x40dd84)==JSON['stringify'](_0x21ab6c);}function se(_0x794f6f,_0x1e1813){const _0x18904e=oe(_0x794f6f['attributes']),_0x48f662=oe(_0x1e1813);if(!_0x794f6f['_isDataLoaded'])return!0x1;for(const _0x3e23d5 of Object['keys'](_0x48f662))if(!_0x51e25d(_0x18904e[_0x3e23d5],_0x48f662[_0x3e23d5]))return!0x1;return!0x0;}function oe(_0x42633d){const _0x397353=Object['assign']({},_0x42633d);return delete _0x397353['skipNestingCheck'],delete _0x397353['tablePasteChainId'],_0x397353;}function re(_0x591f36){return _0x591f36['split']('|')[0x0];}function ae(_0x3aceea,_0x51a2da){for(const [_0x60dc29,_0x3f636f]of _0x3aceea['markers']){const _0x2a2e4d=_0x2c2e90['_createFromRanges'](_0x3f636f['getTransformedByOperation'](_0x51a2da));_0x3aceea['markers']['set'](_0x60dc29,_0x2a2e4d);}}class ve extends/* #__PURE__ -- @preserve */
26
+ _0x50d6bd(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xf00e,_0x495b48,_0x2785e7,_0x34612e){super(),this['model']=_0x495b48,this['view']=_0x2785e7,this['commentThreadController']=_0x34612e,this['_editor']=_0xf00e,this['_acceptCommand']=_0xf00e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xf00e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x144cd7,_0x1d2dce)=>_0x144cd7||_0x1d2dce),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d05c4=>_0x4d05c4&&this['_editor']['model']['canEditAt'](_0x495b48['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b4357=>_0x4b4357&&this['_editor']['model']['canEditAt'](_0x495b48['getRanges']())),this['_pendingAction']=null,_0x2785e7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2785e7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2785e7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2785e7,'change:isDirty',()=>{_0x2785e7['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 _0x4f8a98=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4f8a98);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x24bff0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c2f5a,_0x2908fc,_0x4154f3,_0x4baac4){super(_0x3c2f5a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x195dea(_0x3c2f5a,o(_0x3c2f5a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2908fc['authoredAt']),this['bind']('authoredAt')['to'](_0x2908fc),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',_0x2908fc,'authoredAt',this,'descriptionParts',(_0x9bcf0b,_0x5f2510,_0x3b9a0b)=>{const _0x11faa9=_0x3b9a0b['map'](_0x243303=>ls(_0x243303['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9bcf0b-0x1,_0x2908fc['author']['name'],_0x5f2510?_0x4baac4['formatDateTime'](_0x5f2510):'',new DOMParser()['parseFromString'](_0x11faa9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x49a2d4(),this['focusTracker']=new _0x419095(),this['keystrokes']=new _0x170971(),this['focusCycler']=new _0x365139({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x254eb4=>_0x254eb4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2908fc,this['_localUser']=_0x4154f3,this['_config']=_0x4baac4,_0x4baac4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x405b48(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3b9034}=this['_config'];this['commentsListView']=new _0x3b9034(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',_0x47bcfe=>_0x47bcfe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x541e24,_0x4f7b74)=>_0x541e24||!!_0x4f7b74);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x49b46e}=this['_config'],_0x3eec1d=new _0x49b46e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c3984=_0x3eec1d['commentInputView'];return _0x3eec1d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5c3984,'value',(_0xeedd66,_0x16b1d4,_0x3f653d)=>!!_0x3f653d||_0xeedd66&&!_0x16b1d4),_0x5c3984['on']('submit',(_0x1d7313,_0x59d8f7)=>{this['fire']('addComment',_0x59d8f7),_0x5c3984['editor']['setData']('');}),_0x5c3984['on']('cancel',()=>this['focus']()),_0x5c3984['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3eec1d;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4f6916,_0x2f7706,_0x544cf7,_0x572b5d){super(_0x4f6916,_0x2f7706,_0x544cf7,_0x572b5d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38c33c=>_0x38c33c&&_0x38c33c[0x0]?_0x38c33c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b2d6b,_0xa915a4)=>{let _0x293f9f='';for(const _0x5a0ff2 of _0x3b2d6b)_0x293f9f+='<p>'+ls(_0x5a0ff2['content'],_0x5a0ff2['color'])+'</p>';return _0xa915a4?_0x293f9f:_0x6a430a(_0x293f9f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x572b5d['SuggestionView'](_0x4f6916,_0x2f7706,{'formatDateTime':_0x572b5d['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 _0x1b06ce=this['bindTemplate'],_0x53da65=[this['suggestionView']];return this['commentsListView']&&_0x53da65['push'](this['commentsListView']),this['commentThreadInputView']&&_0x53da65['push'](this['commentThreadInputView']),_0x53da65['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1b06ce['if']('isActive','ck-suggestion-wrapper--active'),_0x1b06ce['to']('type',_0x33821c=>'ck-suggestion-'+_0x33821c),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':_0x1b06ce['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x53da65};}['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 Ae extends _0x24bff0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3fc537,_0x598976,_0x5b919d){super(_0x3fc537),this['_model']=_0x598976,this['_config']=_0x5b919d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x598976),this['acceptButton']=this['_createButton'](o(_0x3fc537,'Accept\x20suggestion'),_0x197cfd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3fc537,'Discard\x20suggestion'),_0x89fdb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x250299(_0x3fc537,_0x598976['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x49a2d4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x419095(),this['keystrokes']=new _0x170971(),this['focusCycler']=new _0x365139({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x12b617=>_0x12b617['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e88e2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e88e2['innerHTML']=this['description'],this['on']('change:description',(_0x4e92ff,_0x38d54d,_0x524ac9)=>{_0x4e88e2['innerHTML']=_0x524ac9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c6b7d=this['bindTemplate'],_0x1199c1=[{'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':_0x2c6b7d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c6b7d['to']('authoredAt',_0x119a34=>this['_config']['formatDateTime'](_0x119a34))}]}]},{'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']&&_0x1199c1['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':_0x1199c1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x31e1f0,_0x4f3136,_0x318673,_0xf066c2,_0x202db8){const _0x5acdd4=new _0x2bb0ea(this['locale']);return _0x5acdd4['set']({'label':_0x31e1f0,'icon':_0x4f3136,'tooltip':!0x0,'tooltipPosition':_0x202db8}),_0x5acdd4['extendTemplate']({'attributes':{'class':_0x318673}}),_0x5acdd4['on']('execute',()=>{this['fire'](_0xf066c2,this['_model']['id']);}),_0x5acdd4;}['_setupKeyboardNavigation'](){const _0x1c1d59=this['element'];this['keystrokes']['listenTo'](_0x1c1d59);for(const _0x40d5f7 of this['focusables'])this['focusTracker']['add'](_0x40d5f7['element']),this['keystrokes']['listenTo'](_0x40d5f7['element']);this['keystrokes']['set']('enter',(_0x56167f,_0x1f6c20)=>{_0x1c1d59===_0x56167f['target']&&(this['focusCycler']['focusFirst'](),_0x1f6c20());}),this['keystrokes']['set']('esc',(_0x17f3ff,_0x1543e6)=>{_0x1c1d59!==_0x17f3ff['target']&&(this['focus'](),_0x1543e6());});}}class u extends _0x4be19b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5434f7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11f4fd){super(_0x11f4fd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x389133=this['editor']['config'];_0x389133['define']('trackChanges.SuggestionThreadView',xe),_0x389133['define']('trackChanges.SuggestionView',Ae),_0x389133['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x389133['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe37918,_0x10c99c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24a00f,_0x23913b]of this['_handleControllerBuffer']){const _0xbc521d=this['_suggestionToController']['has'](_0x24a00f);_0xbc521d||_0x23913b?_0xbc521d&&_0x23913b&&this['_destroyController'](_0x24a00f):this['_initializeController'](_0x24a00f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe37918,_0x10c99c);}['init'](){const _0x147f9a=this['editor'],_0x5b5b3a=_0x147f9a['plugins']['get']('TrackChangesEditing'),_0x57194f=_0x147f9a['plugins']['get']('Annotations'),_0x3f0899=_0x147f9a['plugins']['get']('EditorAnnotations'),_0x1ca6a4=_0x147f9a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f0899['addSourceCollector'](()=>{const _0x139d11=[];for(const [_0x29331d,_0x3fd433]of Array['from'](this['_suggestionToController'])){const _0x3119c8=_0x29331d['getAllAdjacentSuggestions'](),_0x517428=[];for(const _0x529167 of _0x3119c8){if(!_0x529167['isInContent'])continue;if(_0x529167['isMultiRange']){_0x517428['push'](..._0x529167['getRanges']());continue;}const _0x1fef83=_0x529167['getFirstRange']();if(_0x517428['length']>0x0){const _0x1ca56b=_0x517428[0x0]['getJoined'](_0x1fef83);if(_0x1ca56b){_0x517428[0x0]=_0x1ca56b;continue;}}_0x517428['push'](_0x1fef83);}_0x139d11['push']([_0x3fd433['view'],_0x517428]);}return _0x139d11;}),this['listenTo'](_0x5b5b3a,'suggestionLoaded',(_0x3a8663,_0x5cf822)=>{this['listenTo'](_0x5cf822,'change:previous',(_0xc889af,_0x239416,_0x29dca1,_0x207444)=>{_0x5cf822['isInContent']&&(null==_0x29dca1?(this['_updateController'](_0x207444['head']),this['_handleSuggestionControllerDelayed'](_0x5cf822,!0x1)):(this['_updateController'](_0x29dca1['head']),null==_0x207444&&this['_handleSuggestionControllerDelayed'](_0x5cf822,!0x0)));}),null!==_0x5cf822['previous']?this['_updateController'](_0x5cf822['head']):this['_handleSuggestionControllerDelayed'](_0x5cf822,!0x1);}),this['listenTo'](_0x5b5b3a,'suggestionUnloaded',(_0x4d5ca8,_0x1f1a84,_0x53c180)=>{this['stopListening'](_0x1f1a84,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f1a84),this['_suggestionToController']['has'](_0x1f1a84)&&this['_destroyController'](_0x1f1a84),_0x53c180&&this['_updateController'](_0x53c180['head']);}),this['listenTo'](_0x5b5b3a,'suggestionChanged',(_0x19a205,_0x19018b)=>{this['_updateController'](_0x19018b);}),this['listenTo'](_0x57194f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1ca6a4,'addComment',(_0x10e2b8,{threadId:_0x50ca75,isFromAdapter:_0x256919})=>{if(_0x256919||!_0x5b5b3a['hasSuggestion'](_0x50ca75))return;const _0x1945d2=_0x5b5b3a['getSuggestion'](_0x50ca75);this['_suggestionToController']['get'](_0x1945d2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6b75a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x338d8d;for(const _0x4bc7b0 in _0x6b75a){const _0x166fc2=_0x4bc7b0,_0x29c83c=_0x6b75a[_0x166fc2];if('trackChangesLicenseKeyValid'==_0x29c83c||'trackChangesLicenseKeyInvalid'==_0x29c83c||'trackChangesLicenseKeyExpired'==_0x29c83c||'trackChangesLicenseKeyDomainLimit'==_0x29c83c||'trackChangesLicenseKeyNotAllowed'==_0x29c83c||'trackChangesLicenseKeyEvaluationLimit'==_0x29c83c||'trackChangesLicenseKeyTrialLimit'==_0x29c83c||'trackChangesLicenseKeyUsageLimit'==_0x29c83c){delete _0x6b75a[_0x166fc2],_0x338d8d=_0x29c83c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x338d8d&&_0x6b75a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x338d8d&&_0x6b75a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x338d8d&&_0x6b75a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x37e279){const _0x3c44c4=this['_suggestionToController']['get'](_0x37e279);if(!_0x3c44c4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3c44c4['view'])||null;}['getSuggestionForAnnotation'](_0x3fc470){const _0x37762f=this['_viewToController']['get'](_0x3fc470['innerView']);return _0x37762f?_0x37762f['model']:null;}['_refreshActiveMarkers'](){const _0x3c5ef9=this['editor']['plugins']['get']('Annotations'),_0xec5b91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x291172=Array['from'](_0x3c5ef9['activeAnnotations'],_0xc0cc7=>_0xc0cc7['innerView'])['filter'](_0x1eb94b=>this['_viewToController']['has'](_0x1eb94b)),_0x4e4fd8=[];for(const _0x2be547 of _0x291172){const _0x456f18=this['_viewToController']['get'](_0x2be547)['model']['getAllAdjacentSuggestions']();_0x4e4fd8['push'](..._0x456f18['reduce']((_0x3ca966,_0x23372e)=>[..._0x3ca966,..._0x23372e['getMarkerNames']()],[]));}_0xec5b91['activeMarkers']=_0x4e4fd8;}['_addUIComponentsToFactory'](){const _0x1bde1f=this['editor'],_0x53ecf0=_0x1bde1f['locale'],_0x4e58d9=o(_0x53ecf0,'Track\x20changes'),_0xf6a5e1=new _0xedbb46([{'type':'switchbutton','model':new _0x49c5a0({'withText':!0x0,'isToggleable':!0x0,'label':_0x4e58d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1bde1f['plugins']['has']('TrackChangesPreview')&&_0xf6a5e1['addMany']([{'type':'separator'},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x276914 of _0xf6a5e1)if(Ee(_0x276914)){const _0x1892ab=_0x1bde1f['commands']['get'](_0x276914['model']['commandName']);_0x276914['model']['bind']('isOn','isEnabled')['to'](_0x1892ab,'value','isEnabled');}_0x1bde1f['ui']['componentFactory']['add']('trackChanges',_0x1cd1cf=>this['_createToolbarButton'](_0x1cd1cf,_0xf6a5e1,_0x4e58d9)),_0x1bde1f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa1b650=>this['_createMenuBarMenu'](_0xa1b650,_0xf6a5e1,_0x4e58d9));}['_createToolbarButton'](_0xe04abc,_0x1e6433,_0xfe4ea1){const _0x2babd9=_0x38b019(_0xe04abc,_0x1e1570),_0x570c9b=this['editor']['commands']['get']('trackChanges');_0x2babd9['buttonView']['set']({'tooltip':_0xfe4ea1,'label':_0xfe4ea1,'icon':_0x58bb43}),_0x2babd9['buttonView']['bind']('isOn')['to'](_0x570c9b,'value'),_0x2babd9['buttonView']['on']('execute',()=>{_0x570c9b['execute'](),this['editor']['editing']['view']['focus']();}),_0x559d50(_0x2babd9,_0x1e6433,{'role':'menu'});const _0xb969c4=[];for(const _0x21d050 of _0x1e6433)Ee(_0x21d050)&&_0xb969c4['push'](this['editor']['commands']['get'](_0x21d050['model']['commandName']));const _0x131c30=_0x2babd9['buttonView'];return _0x131c30['actionView']['unbind']('isEnabled'),_0x131c30['arrowView']['unbind']('isEnabled'),_0x131c30['actionView']['bind']('isEnabled')['to'](_0x570c9b,'isEnabled'),_0x131c30['arrowView']['bind']('isEnabled')['toMany'](_0xb969c4,'isEnabled',(..._0xe4401f)=>_0xe4401f['some'](_0x40c518=>_0x40c518)),_0x2babd9['on']('execute',_0x50688f=>{this['editor']['execute'](_0x50688f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2babd9;}['_createMenuBarMenu'](_0x58cb24,_0x15a30f,_0x530f18){const _0x353638=new _0x693e1f(_0x58cb24),_0x36412c=this['editor']['commands']['get']('trackChanges');_0x353638['buttonView']['set']({'label':_0x530f18,'icon':_0x58bb43});const _0x3747b6=new _0x1b35db(_0x58cb24);for(const _0xd061eb of _0x15a30f){if('separator'==_0xd061eb['type']){_0x3747b6['items']['add'](new _0x4394a3(_0x58cb24));continue;}const _0x3f7f1f=new _0xed488d(_0x58cb24,_0x353638),_0xb553d=new _0x23a81d(_0x58cb24),_0x564b95=_0xd061eb['model'];_0xb553d['bind'](...Object['keys'](_0x564b95))['to'](_0x564b95),_0xb553d['delegate']('execute')['to'](_0x353638),_0xb553d['on']('execute',()=>{this['editor']['execute'](_0x564b95['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f7f1f['children']['add'](_0xb553d),_0x3747b6['items']['add'](_0x3f7f1f);}return _0x353638['bind']('isEnabled')['to'](_0x36412c,'isEnabled'),_0x353638['panelView']['children']['add'](_0x3747b6),_0x353638;}['_initializeController'](_0x3f5141){const _0x686fa4=this['editor'],_0x24f820=_0x686fa4['config'],_0x32c23f=_0x686fa4['plugins']['get']('Annotations'),_0x1852cc=_0x686fa4['plugins']['get']('CommentsRepository'),_0x423765=_0x686fa4['plugins']['get']('EditorAnnotations'),_0x6ee0e1=_0x686fa4['plugins']['get'](_0x5434f7)['me'],_0x5966d7=_0x24f820['get']('trackChanges')['SuggestionThreadView'],_0x5afb1c=_0x24f820['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x36b26c,CommentThreadInputView:_0x579de8}=_0x686fa4['plugins']['get']('CommentsUI');let _0x153896,_0x1ed77a,_0x5cf06a;this['_annotationViews']['has'](_0x3f5141['id'])?(_0x1ed77a=this['_annotationViews']['get'](_0x3f5141['id']),_0x153896=_0x1ed77a['mainView']):(_0x153896=new _0x5966d7(_0x686fa4['locale'],_0x3f5141,_0x6ee0e1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24f820['get']('comments.editorConfig'),'licenseKey':_0x24f820['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24f820['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24f820['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24f820['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b3ca7(_0x24f820['get']('locale'),_0x686fa4['locale']),'CommentView':_0x24f820['get']('comments')['CommentView'],'CommentsListView':_0x36b26c,'CommentThreadInputView':_0x579de8,'SuggestionView':_0x5afb1c}),_0x153896['suggestionView']['acceptButton']['on']('execute',()=>{_0x686fa4['editing']['view']['focus']();}),_0x153896['suggestionView']['discardButton']['on']('execute',()=>{_0x686fa4['editing']['view']['focus']();}),_0x1ed77a=_0x32c23f['createAnnotationView'](this['editor']['locale'],_0x153896),_0x1ed77a['bind']('isDirty')['to'](_0x153896,'isDirty'),_0x1ed77a['bind']('length')['to'](_0x153896),_0x1ed77a['bind']('type')['to'](_0x153896,'type',_0x12fff0=>'suggestion-'+_0x12fff0),_0x153896['on']('escape',()=>{_0x5cf06a['fire']('escape');}),this['_annotationViews']['set'](_0x3f5141['id'],_0x1ed77a));const _0x4d5b38=_0x1852cc['createCommentThreadController'](_0x3f5141['commentThread'],_0x153896),_0x1f3f7a=new ve(_0x686fa4,_0x3f5141,_0x153896,_0x4d5b38),_0x380264=_0x3f5141['getAllAdjacentSuggestions']()['filter'](_0x44e6b5=>_0x44e6b5['isInContent']);_0x153896['descriptionParts']=_0x686fa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x380264),this['_suggestionToController']['set'](_0x3f5141,_0x1f3f7a),this['_viewToController']['set'](_0x153896,_0x1f3f7a);const _0x9a4a63=()=>{const _0x4a1d0f=[],_0x3b96b4=_0x3f5141['getAllAdjacentSuggestions']()['filter'](_0x5341d2=>_0x5341d2['isInContent']);for(const _0x14d743 of _0x3b96b4)_0x4a1d0f['push'](..._0x14d743['getMarkers']());return _0xc61320(_0x686fa4['editing'],_0x4a1d0f);};_0x5cf06a=_0x32c23f['createAnnotation']({'view':_0x1ed77a,'target':_0x9a4a63,'type':()=>'suggestion-'+_0x1f3f7a['view']['type'],'isVisible':!!_0x9a4a63()}),_0x1852cc['_bindAnnotationToEditors'](_0x153896,_0x5cf06a),_0x32c23f['add'](_0x5cf06a),_0x423765['registerAnnotation'](_0x5cf06a);}['_destroyController'](_0x437cc0){const _0x58dc87=this['editor']['plugins']['get']('CommentsRepository'),_0x219e1f=this['editor']['plugins']['get']('Annotations'),_0x67f560=this['_suggestionToController']['get'](_0x437cc0),_0x84a795=_0x67f560['view'],_0x25d840=_0x219e1f['getByInnerView'](_0x84a795);_0x58dc87['_unbindEditors'](_0x84a795),_0x25d840&&_0x219e1f['remove'](_0x25d840),this['_suggestionToController']['delete'](_0x437cc0),this['_viewToController']['delete'](_0x84a795),_0x67f560['destroy']();}['_updateController'](_0x3e44b5){if(!_0x3e44b5['isInContent']||!this['_suggestionToController']['has'](_0x3e44b5))return;const _0x2a6568=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c45d0=this['_suggestionToController']['get'](_0x3e44b5),_0x415170=_0x3e44b5['getAllAdjacentSuggestions']();_0x4c45d0['view']['descriptionParts']=_0x2a6568['descriptionFactory']['getDescriptions'](_0x415170);}['destroy'](){for(const _0x1496d6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1496d6);for(const _0x34b552 of this['_annotationViews']['values']())_0x34b552['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x2a53a6){return'model'in _0x2a53a6;}class Ke extends _0x4be19b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5487be){this['editor']['plugins']['get'](d)['adapter']=_0x5487be;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1884a4){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1884a4);}['getSuggestions']({skipNotAttached:_0x4cdbe2=!0x1,toJSON:_0x5e728a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4cdbe2,'toJSON':_0x5e728a});}['getSuggestion'](_0x4108a1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4108a1);}}const p=['Pagination'];class me extends _0x4be19b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5acb9b=this['editor'];if(_0x5acb9b['config']['define']('trackChangesData.editorCreator',_0x38af06=>{const _0x5e6124=_0x5acb9b['model']['document']['getRootNames']()['reduce']((_0x594a13,_0x362d49)=>(_0x594a13[_0x362d49]='',_0x594a13),{});return _0x5acb9b['constructor']['create'](_0x5e6124,_0x38af06);}),'function'!=typeof _0x5acb9b['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ea0ba('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15b5d6){return P(this['editor'],!0x0,_0x15b5d6);}['getDataWithDiscardedSuggestions'](_0x423e7a){return P(this['editor'],!0x1,_0x423e7a);}}class Xe extends _0x4be19b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52231b){function _0x23357c(_0x16ca26){return _0x16ca26['map'](_0x5d51ee=>String['fromCharCode'](_0x5d51ee))['join']('');}super(_0x52231b),this['result']='end',_0x52231b[_0x23357c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23357c([0x76,0x69,0x65,0x77])][_0x23357c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23357c([0x61,0x75,0x74,0x6f]),_0x52231b[_0x23357c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x23357c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23357c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x23357c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x23357c([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 Ye(_0x573648){return void 0x0!==_0x573648['getRootsAttributes'];}async function P(_0x8070cc,_0x52df8e,_0x3523e5){const _0x11d2db=_0x33e814(_0x8070cc,p);_0x11d2db['plugins']['push'](d,Xe),_0x11d2db['rootsAttributes']=Ye(_0x8070cc)?_0x8070cc['getRootsAttributes']():void 0x0;const _0x56b68d=document['createDocumentFragment'](),_0x4f1c26=_0x8070cc['config']['get']('trackChangesData')['editorCreator'],_0x5d03a3=await _0x4f1c26(_0x11d2db,()=>function(_0x4f4a08){const _0x11cf6c=document['createElement']('div');return _0x4f4a08['appendChild'](_0x11cf6c),_0x11cf6c;}(_0x56b68d));!function(_0x1c84ef,_0x1d9c9f){const _0x8e5420=_0x1c84ef['model']['document']['getRootNames']()['reduce']((_0x57089f,_0x8ed079)=>(_0x57089f[_0x8ed079]=_0x1c84ef['data']['get']({'rootName':_0x8ed079}),_0x57089f),{}),_0x59e783=_0x1c84ef['plugins']['get']('Users')['users']['map'](_0xb60b5=>({'id':_0xb60b5['id'],'name':_0xb60b5['name']})),_0x64f79e=_0x1c84ef['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23e038=_0x1c84ef['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30c38b=_0x1d9c9f['plugins']['get']('Users'),_0x2d17df=_0x1d9c9f['plugins']['get']('TrackChangesEditing'),_0x13e85e=_0x1d9c9f['plugins']['get']('CommentsRepository');for(const _0xba028d of _0x13e85e['getCommentThreads']())_0xba028d['remove']();for(const _0x502bf3 of _0x59e783)_0x30c38b['getUser'](_0x502bf3['id'])||_0x30c38b['addUser'](_0x502bf3);_0x30c38b['me']||_0x30c38b['useAnonymousUser']();for(const _0x40e9ee of _0x23e038)_0x13e85e['addCommentThread'](_0x40e9ee);for(const _0x538cea of _0x64f79e)_0x2d17df['addSuggestionData'](_0x538cea);_0x1d9c9f['data']['set'](_0x8e5420);}(_0x8070cc,_0x5d03a3),_0x5d03a3['execute'](_0x52df8e?'acceptAllSuggestions':'discardAllSuggestions');const _0x3886f8=Ye(_0x5d03a3)?_0x5d03a3['getFullData'](_0x3523e5):_0x5d03a3['data']['get'](_0x3523e5);return await _0x5d03a3['destroy'](),_0x3886f8;}class _e extends _0x24bff0{['options'];constructor(_0x46dca6,_0x1d08ca){super(_0x46dca6),this['options']=_0x1d08ca,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'](_0x59a23d,_0x19cdc6){if(!this['element'])return;const _0x9b060e=[];for(const [_0x32c0e2,_0x28605b]of _0x59a23d){const _0x1daf49=document['createElement']('div');_0x1daf49['setAttribute']('data-ck-root-name',_0x32c0e2),_0x1daf49['className']=_0x28605b['classes']+'\x20ck-track-changes-preview__root-container',_0x1daf49['innerHTML']=_0x28605b['content'],_0x9b060e['push'](_0x1daf49);}_0x19cdc6(this['element'],_0x9b060e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x5e7115{constructor(_0x5c8948){super(_0x5c8948),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5b4bcb=this['editor'],_0xe48a0a=_0x5b4bcb['locale'],_0xf2b30c=_0x5b4bcb['plugins']['get']('Dialog');let _0x5407c8;const _0x20a78a=function(_0x28bf68){const _0x5b7fdf={};if('editables'in _0x28bf68['ui']['view']){for(const [_0x374c73,_0x2e05d1]of Object['entries'](_0x28bf68['ui']['view']['editables']))_0x5b7fdf[_0x374c73]=_0x2e05d1['element'];}else _0x5b7fdf[_0x28bf68['model']['document']['getRootNames']()[0x0]]=_0x28bf68['ui']['view']['editable']['element'];return _0x5b7fdf;}(_0x5b4bcb),_0x2b2e42=function(_0x244702){let _0x51ca0c=0x0;for(const _0xedd25e of Object['values'](_0x244702))_0x51ca0c=Math['max'](_0x51ca0c,_0xedd25e['getBoundingClientRect']()['width']);let _0x38a661=0x0;for(const _0xc38289 of Object['values'](_0x244702))_0x38a661+=_0xc38289['getBoundingClientRect']()['height'];const _0x3e5da0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1c3abe=Math['min'](_0x38a661,_0x3e5da0);return{'width':_0x51ca0c,'height':_0x1c3abe};}(_0x20a78a);_0xf2b30c['show']({'id':'finalContentPreview','title':o(_0xe48a0a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0xe48a0a,{'dialogRects':_0x2b2e42}),'onHide':()=>{_0x5407c8['detachFromDom']();},'onShow':()=>{_0x5b4bcb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3f176c=>{const _0x31bb35=this['_standarizeRootsData'](_0x3f176c,_0x5b4bcb,_0x20a78a);_0xf2b30c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31bb35,_0x5b4bcb['config']['get']('trackChanges.preview.renderFunction'));}),_0x5407c8=new _0x1f6241(_0xe48a0a,[_0xf2b30c['view']]),_0x5407c8['attachToDom'](),_0x5407c8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5b4bcb['once']('destroy',()=>{_0x5407c8['detachFromDom']();});const _0x11c9f7=_0xf2b30c['view']['headerView']['class'];_0xf2b30c['view']['headerView']['class']=_0x11c9f7?_0x11c9f7+'\x20ck-reset_all':'ck-reset_all',_0xf2b30c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xf2b30c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x38b7d6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x46efa9=_0x38b7d6['previewMode'],_0x101afa={};if('$labels'===_0x46efa9){for(const _0x5267de of _0x38b7d6['getMergeFieldsIds']())_0x101afa[_0x5267de]=_0x38b7d6['getLabel'](_0x5267de)||_0x5267de;}else{const _0x14433f='$defaultValues'===_0x46efa9?_0x38b7d6['getDefaultValues']():_0x38b7d6['getDataSetValues'](_0x46efa9,!0x0);for(const _0x490487 of Object['entries'](_0x14433f)){const [_0x371a8a,_0x4b7c5d]=_0x490487;_0x101afa[_0x371a8a]=null!==_0x4b7c5d?_0x4b7c5d:_0x38b7d6['getLabel'](_0x371a8a)||_0x371a8a;}}return{'mergeFieldsData':_0x101afa};}['_standarizeRootsData'](_0x4bb4ca,_0x15089f,_0x2ace1d){let _0x42d649;if('string'==typeof _0x4bb4ca){const _0x2d87b2=_0x15089f['model']['document']['getRootNames']()[0x0];_0x42d649={[_0x2d87b2]:_0x4bb4ca};}else _0x42d649=_0x4bb4ca;const _0x2b02e4=this['_fixMediaEmbeds'](_0x42d649,_0x15089f),_0x411f07=function(_0xd6c98f,_0x49e76c){for(const [_0x2edfac,_0x5dbc5a]of _0xd6c98f)_0x5dbc5a['classes']=_0x49e76c[_0x2edfac]['classList']['value']['replace']('ck-focused','');return _0xd6c98f;}(this['_sortRoots'](_0x15089f)['reduce']((_0x4717ee,_0x143838)=>(_0x4717ee['push']([_0x143838,{'content':_0x2b02e4[_0x143838],'classes':''}]),_0x4717ee),[]),_0x2ace1d);return _0x411f07;}['_fixMediaEmbeds'](_0x25bb7a,_0x204d76){if(!_0x204d76['plugins']['has']('MediaEmbedEditing'))return _0x25bb7a;const _0x4df31a=_0x204d76['plugins']['get']('MediaEmbedEditing');for(const [_0x3879c4,_0x25ed39]of Object['entries'](_0x25bb7a)){const _0x23cf0f=document['createElement']('div');_0x23cf0f['innerHTML']=_0x25ed39,(_0x23cf0f['querySelectorAll']('figure.media')['forEach'](_0x4d5739=>{const _0x279b95=_0x4d5739['querySelector']('oembed');if(_0x279b95){const _0x5e87be=_0x279b95['getAttribute']('url');if(_0x5e87be){const _0x4c0ecd=_0x4df31a['registry']['getMediaViewElement'](new _0x147bf7(_0x204d76['editing']['view']['document']),_0x5e87be,{'elementName':'','renderForEditingView':!0x0}),_0x3383b5=document['createElement']('div');_0x3383b5['classList']['add']('ck-media__wrapper'),_0x4c0ecd['render'](_0x3383b5,_0x204d76['editing']['view']['domConverter']),_0x279b95['replaceWith'](_0x3383b5);}}}),_0x25bb7a[_0x3879c4]=_0x23cf0f['innerHTML']);}return _0x25bb7a;}['_sortRoots'](_0x583de2){if(!function(_0x45ef37){return void 0x0!==_0x45ef37['getRootsAttributes'];}(_0x583de2))return _0x583de2['model']['document']['getRootNames']();const _0xfa43=[],_0x10a8c7=new Map();for(const _0x2f9e01 of _0x583de2['model']['document']['getRootNames']()){const _0x490bb8=_0x583de2['editing']['view']['getDomRoot'](_0x2f9e01)['getClientRects']()['item'](0x0);_0xfa43['push'](_0x2f9e01),_0x10a8c7['set'](_0x2f9e01,_0x490bb8);}return _0xfa43['sort']((_0x40be78,_0xac4f89)=>{const _0x4efd03=_0x10a8c7['get'](_0x40be78),_0x742b9f=_0x10a8c7['get'](_0xac4f89);return _0x4efd03['y']-_0x742b9f['y']||_0x4efd03['x']-_0x742b9f['x'];}),_0xfa43;}}class Qe extends _0x4be19b{static get['requires'](){return[me,_0x31669e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6fce58){super(_0x6fce58),_0x6fce58['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x6fce58['config']['define']('trackChanges.preview.renderFunction',(_0x365c1e,_0x3e2498)=>{for(const _0x176465 of _0x3e2498)_0x365c1e['appendChild'](_0x176465);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};