@ckeditor/ckeditor5-track-changes 45.0.0-alpha.4 → 45.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +1 -1
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5b0c44,Plugin as _0x55fa68,PendingActions as _0x49601d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50045d,ObservableMixin as _0x36705e,uid as _0x5e3891,priorities as _0x2c6b22,insertToPriorityArray as _0xd6d196,logWarning as _0x2e7b4f,getEnvKeystrokeText as _0x34513e,FocusTracker as _0x791790,KeystrokeHandler as _0x3e2044,Collection as _0x173380}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1baade,IconCancel as _0x4bef77,IconTrackChanges as _0x368711}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x24a279,View as _0x16e147,ViewCollection as _0x505895,FocusCycler as _0x1bab99,ViewModel as _0x2e2fe1,createDropdown as _0xe5a2c0,SplitButtonView as _0x305cf4,addListToDropdown as _0x125b97,MenuBarMenuView as _0x109a0c,MenuBarMenuListView as _0x2e585f,ListSeparatorView as _0x298b31,MenuBarMenuListItemView as _0x3d01b7,MenuBarMenuListItemButtonView as _0x3bad57,BodyCollection as _0x58d2d9,Dialog as _0x16e211}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2aa14c,hashObject as _0x116cc7,surroundingMarkersDetector as _0x3dfa8a,FOCUS_ANNOTATION_KEYSTROKE as _0x16a039,AriaDescriptionView as _0x186e5b,setupThreadKeyboardNavigation as _0x51b150,trimHtml as ti,UserView as _0xdd5bd2,LateFocusButtonView as _0x4604b9,getDateTimeFormatter as _0x8c2a2e,getAllMarkersDomElementsSorted as _0x149208,sanitizeEditorConfig as _0x5b869d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x6e72f7,LiveRange as _0x3932e8,LivePosition as _0x48085b,DowncastWriter as _0x24579b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c936c,toWidget as _0x27b0d2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4df157,set as _0x535920,isEqual as _0x54a863,unset as _0x3ba914,omit as Ft}from'es-toolkit/compat';import{Delete as _0x60e2d4,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x496c38}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3f99e5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5b0c44{['_enabledCommands'];constructor(_0x1882ac,_0x1abde6){super(_0x1882ac),this['_enabledCommands']=_0x1abde6,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 _0x472627 of this['editor']['commands']['commands']())_0x472627['affectsData']&&!this['_enabledCommands']['has'](_0x472627)&&_0x472627['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3cbba6 of this['editor']['commands']['commands']())_0x3cbba6['affectsData']&&!this['_enabledCommands']['has'](_0x3cbba6)&&_0x3cbba6['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5b0c44{['_suggestions'];constructor(_0x2f2264,_0xc94891){super(_0x2f2264),this['_suggestions']=_0xc94891,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e281f){const _0x233e2c=this['_suggestions']['get'](_0x4e281f);if(!_0x233e2c)throw new _0x50045d('track-changes-accept-suggestion-not-found',this);const _0x3bbbb0=_0x233e2c['getRanges']();this['editor']['model']['canEditAt'](_0x3bbbb0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x233e2c);}}class R extends _0x5b0c44{['_suggestions'];constructor(_0x344f8d,_0x524f0e){super(_0x344f8d),this['_suggestions']=_0x524f0e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x495466){const _0x459f43=this['_suggestions']['get'](_0x495466);if(!_0x459f43)throw new _0x50045d('track-changes-discard-suggestion-not-found',this);const _0x30be0c=_0x459f43['getRanges']();this['editor']['model']['canEditAt'](_0x30be0c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x459f43);}}function ls(_0x397af9,_0xef92f7){let _0x140b93='';return _0x140b93+=_0x397af9['split']('*')['map']((_0x8ec5bb,_0x592ef4)=>_0x592ef4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x8ec5bb)+'</span>':nn(_0x8ec5bb))['join'](''),_0xef92f7&&(_0x140b93+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xef92f7['value']+'\x22\x20title=\x22'+_0xef92f7['title']+'\x22></span>'),_0x140b93;}function nn(_0x34a013){const _0x279d44=document['createElement']('span');return _0x279d44['innerText']=_0x34a013,_0x279d44['innerHTML'];}function ts(_0x58a735){return _0x58a735['sort']((_0x40ed3a,_0x5d91f4)=>'deletion'==_0x40ed3a['type']&&'deletion'!=_0x5d91f4['type']?-0x1:'deletion'!=_0x40ed3a['type']&&'deletion'==_0x5d91f4['type']?0x1:0x0);}function to(_0x2b8711,_0x489b3b){let _0xe986f7,_0x57346b=0x0;const _0x3fe465=[],_0x849aba=_0x489b3b['schema'];for(;_0x57346b<_0x2b8711['length'];){const _0x24de64=_0x2b8711[_0x57346b],_0x1275ad=_0x2b8711[_0x57346b+0x1];_0xe986f7||(_0xe986f7=_0x489b3b['createPositionBefore'](_0x24de64)),on(_0x489b3b,_0x24de64,_0x1275ad)||(_0x3fe465['push'](_0x489b3b['createRange'](_0xe986f7,_0x849aba['isObject'](_0x24de64)?_0x489b3b['createPositionAfter'](_0x24de64):_0x489b3b['createPositionAt'](_0x24de64,'end'))),_0xe986f7=null),_0x57346b++;}return _0x3fe465;}function on(_0x2d2d86,_0x1b7cc2,_0x55a5f2){if(!_0x55a5f2)return!0x1;const _0x42f337=_0x2d2d86['createPositionAfter'](_0x1b7cc2),_0x44f164=_0x2d2d86['createPositionBefore'](_0x55a5f2);return _0x42f337['isTouching'](_0x44f164);}function rs(_0x3da71e,_0x507199,_0x362dba){for(;_0x362dba['length'];){const _0x374609=_0x362dba['splice'](0x0,0x64);_0x3da71e['change'](()=>{for(const _0x451f55 of _0x374609)_0x451f55['isInContent']&&_0x507199['execute'](_0x451f55['id']);});}}class x extends _0x5b0c44{['_command'];['_suggestions'];constructor(_0x239de4,_0x3d992b,_0x3ecd4c){super(_0x239de4),this['_command']=_0x3d992b,this['_suggestions']=_0x3ecd4c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x460f1a=Array['from'](this['_suggestions']['values']())['some'](_0xd450d2=>_0xd450d2['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x460f1a;}['execute'](){const _0x257a98=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5a9d22 of _0x257a98){const _0x27b937=_0x5a9d22['getRanges']();if(!this['editor']['model']['canEditAt'](_0x27b937))return;}rs(this['editor']['model'],this['_command'],_0x257a98);}}class E extends _0x5b0c44{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x77e45,_0x2029b9,_0x1aecba){super(_0x77e45),this['_command']=_0x2029b9,this['_suggestions']=_0x1aecba,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x56b0e6=this['editor']['model']['document']['selection'],_0x467437=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1936fa,_0x260a10){const _0x369225=Array['from'](_0x1936fa['getRanges']()),_0xca8bbc=new Set();for(const _0x3a1c42 of _0x260a10)if(_0x3a1c42['isInContent']){for(const _0x8933e of _0x369225)for(const _0x489bc7 of _0x3a1c42['getRanges']())(_0x8933e['isIntersecting'](_0x489bc7)||_0x1936fa['isCollapsed']&&!_0x3a1c42['isMultiRange']&&_0x3a1c42['next']&&_0x489bc7['end']['isTouching'](_0x8933e['start']))&&_0xca8bbc['add'](_0x3a1c42);}return _0xca8bbc;}(_0x56b0e6,_0x467437),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x381d73=ts(Array['from'](this['_selectedSuggestions']));for(const _0x56681e of _0x381d73){const _0x2caa13=_0x56681e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2caa13))return;}rs(this['editor']['model'],this['_command'],_0x381d73);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x36705e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2b7869,_0x5ec738){super(),this['id']=_0x5ec738['id'],this['type']=_0x5ec738['type'],this['subType']=_0x5ec738['subType']||null,this['author']=_0x5ec738['author'],this['creator']=_0x5ec738['creator']||_0x5ec738['author'],this['isExternal']=Boolean(_0x5ec738['attributes']&&_0x5ec738['attributes']['@external']),this['data']=null,this['_model']=_0x2b7869,this['_onAccept']=_0x5ec738['onAccept'],this['_onDiscard']=_0x5ec738['onDiscard'],this['_onAttributesChange']=_0x5ec738['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ec738['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 _0x126a50=this;for(;_0x126a50['previous'];)_0x126a50=_0x126a50['previous'];return _0x126a50;}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'](_0x1e4ed7){this['_markerNames']['add'](_0x1e4ed7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xd67778=>this['_model']['markers']['get'](_0xd67778))['filter'](_0x1e62f1=>_0x1e62f1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e159d=>{for(const _0x195080 of this['getMarkers']())_0x2e159d['removeMarker'](_0x195080);}),this['_markerNames']['clear']();}['removeMarker'](_0x18c163){this['_model']['change'](_0x572899=>{_0x572899['removeMarker'](_0x18c163);}),this['_markerNames']['delete'](_0x18c163);}['addRange'](_0xc5c1aa){const _0xfc2d2c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xfc2d2c),this['_model']['change'](_0x451458=>{_0x451458['addMarker'](_0xfc2d2c,{'range':_0xc5c1aa,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4aad65){for(const _0x5cf457 of this['getRanges']())if(_0x5cf457['isIntersecting'](_0x4aad65))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x184d86=>_0x184d86['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5795d3,_0x568c0b)=>[..._0x5795d3,..._0x568c0b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3ef047=this['getRanges']();if(0x1!=_0x3ef047['length'])return null;const _0x14ce94=_0x3ef047[0x0],_0x80974d=_0x14ce94['start']['nodeAfter'],_0xd7b690=_0x14ce94['end']['nodeBefore'];return _0x80974d instanceof _0x6e72f7?_0x80974d!=_0xd7b690?null:_0x80974d: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 _0x1fe879=[];let _0x47004a=this['head'];for(;_0x47004a;)_0x1fe879['push'](_0x47004a),_0x47004a=_0x47004a['next'];return _0x1fe879;}['setAttribute'](_0x5a5c6a,_0x138c1c){const _0x1fc6a9=_0x4df157(this['attributes']);_0x535920(_0x1fc6a9,_0x5a5c6a,_0x138c1c),_0x54a863(_0x1fc6a9,this['attributes'])||(this['attributes']=_0x1fc6a9,this['_onAttributesChange'](_0x1fc6a9));}['removeAttribute'](_0x4bea39){const _0x20b51f=_0x4df157(this['attributes']);_0x3ba914(_0x20b51f,_0x4bea39),_0x54a863(_0x20b51f,this['attributes'])||(this['attributes']=_0x20b51f,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 _0x5e3891()['substr'](0x1,0x5);}}function c(_0x22327e,_0x35d514,_0x2124a4){const _0x1951b0=_0x22327e['t'],t=_0x22327e['t'];switch(_0x35d514){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',_0x2124a4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2124a4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2124a4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2124a4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2124a4);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',_0x2124a4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2124a4);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',_0x2124a4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2124a4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2124a4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2124a4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2124a4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2124a4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2124a4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2124a4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2124a4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2124a4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2124a4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2124a4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2124a4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2124a4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2124a4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2124a4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2124a4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2124a4);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'},_0x2124a4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2124a4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2124a4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2124a4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2124a4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2124a4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2124a4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2124a4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2124a4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2124a4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2124a4);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'},_0x2124a4);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2124a4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2124a4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2124a4);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 _0x1951b0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2124a4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1951b0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2124a4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2124a4);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'},_0x2124a4);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'},_0x2124a4);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'},_0x2124a4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x35d514;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x32f43e,_0xa1fc6b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x32f43e,this['_locale']=_0xa1fc6b;}['getDescriptions'](_0x2df0c1){const _0x3e07ff=[],_0x1c6354=new Set(),_0x5984d5=new Set();for(let _0xff462f=0x0;_0xff462f<_0x2df0c1['length'];_0xff462f++){const _0x501486=_0x2df0c1[_0xff462f];if(!_0x501486['isInContent'])continue;const _0x34e6cc=this['_handleCustomCallbackDescription'](_0x501486);if(_0x34e6cc){if(null!=_0x501486['subType']){if(_0x1c6354['has'](_0x501486['subType']))continue;_0x1c6354['add'](_0x501486['subType']);}_0x3e07ff['push'](_0x34e6cc);}else{if('attribute'!=_0x501486['type'])'insertion'!=_0x501486['type']&&'deletion'!=_0x501486['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3e07ff,_0x501486,_0x2df0c1[_0xff462f+0x1]);else{const _0x5a0122=_0x501486['data']['key'];if(_0x5984d5['has'](_0x5a0122))continue;_0x5984d5['add'](_0x501486['data']['key']),_0x5a0122==u?this['_handleRenameSuggestionDescription'](_0x3e07ff,_0x501486):this['_handleAttributeSuggestionDescription'](_0x3e07ff,_0x501486);}}}return this['_resolveDescriptionItems'](_0x3e07ff);}['registerDescriptionCallback'](_0x1d976d){this['_customCallbacks']['push'](_0x1d976d);}['registerElementLabel'](_0x46d7cf,_0x5c3481,_0x534baa=_0x2c6b22['normal']){'function'==typeof _0x46d7cf?_0xd6d196(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46d7cf,'label':_0x5c3481,'priority':_0x534baa}):this['_itemLabels']['set'](_0x46d7cf,_0x5c3481);}['registerAttributeLabel'](_0x3513ec,_0x496e99){this['_attributeLabels']['set'](_0x3513ec,_0x496e99);}['getItemLabel'](_0x29e13e,_0x1afd96=0x1){let _0x232eb4;for(const _0x419c4d of this['_itemLabelsCallbacks'])if(_0x419c4d['matchingCallback'](_0x29e13e)){_0x232eb4=_0x419c4d['label'];break;}return _0x232eb4||(_0x232eb4=this['_itemLabels']['get'](_0x29e13e['name'])),_0x232eb4?_0x232eb4(_0x1afd96):0x1!==_0x1afd96?_0x1afd96+'\x20'+_0x29e13e['name']+'s':''+_0x29e13e['name'];}['_addDescriptionItems'](_0x42b697,_0x5cc2ad){const _0x3e9bd2=_0x5cc2ad['getFirstRange']()['getWalker'](),_0x196974='insertion'==_0x5cc2ad['type']?'add':'remove';for(const _0x112e65 of _0x3e9bd2){const _0x2b74d8=_0x112e65['item'],_0x469dae=_0x42b697[_0x42b697['length']-0x1];if(_0x2b74d8['is']('$textProxy'))_0x469dae&&_0x469dae['type']['indexOf']('Container')>-0x1&&_0x42b697['pop'](),_0x469dae&&'text'==_0x469dae['type']?_0x469dae[_0x196974]+=_0x2b74d8['data']:_0x42b697['push']({'type':'text','add':'add'==_0x196974?_0x2b74d8['data']:'','remove':'remove'==_0x196974?_0x2b74d8['data']:''});else{if(this['_schema']['isObject'](_0x2b74d8)){const _0x214fa0=_0x2b74d8;if(_0x469dae&&_0x469dae['type']['indexOf']('Container')>-0x1&&_0x42b697['pop'](),'elementEnd'==_0x112e65['type'])continue;_0x469dae&&_0x469dae['type']==_0x196974+'Object'&&_0x469dae['element']['name']==_0x214fa0['name']?_0x469dae['quantity']++:_0x42b697['push']({'type':_0x196974+'Object','element':_0x214fa0,'quantity':0x1}),_0x3e9bd2['skip'](_0x54569a=>!('elementEnd'==_0x54569a['type']&&_0x54569a['item']==_0x2b74d8));}else{if(this['_schema']['checkChild'](_0x2b74d8,'$text')||_0x2b74d8['is']('element','softBreak')){const _0x51e740=_0x2b74d8;if('add'==_0x196974&&'elementStart'==_0x112e65['type']||'remove'==_0x196974&&'elementEnd'==_0x112e65['type'])continue;if(_0x469dae&&-0x1==_0x469dae['type']['indexOf']('Container')){'text'==_0x469dae['type']&&(_0x469dae[_0x196974]+='\x0a');continue;}let _0x2d6c0a;if(_0x2d6c0a='add'==_0x196974?_0x51e740['nextSibling']&&!this['_schema']['isObject'](_0x51e740['nextSibling'])?_0x51e740['nextSibling']:null:_0x51e740['previousSibling']&&!this['_schema']['isObject'](_0x51e740['previousSibling'])?_0x51e740['previousSibling']:null,_0x51e740['isEmpty']||_0x2d6c0a&&_0x2d6c0a['isEmpty']){const _0xd2d769=_0x2d6c0a&&_0x2d6c0a['isEmpty']?_0x2d6c0a:_0x51e740;_0x469dae&&_0x469dae['type']==_0x196974+'EmptyContainer'&&_0x469dae['element']['name']==_0xd2d769['name']?_0x469dae['quantity']++:_0x42b697['push']({'type':_0x196974+'EmptyContainer','element':_0xd2d769,'quantity':0x1});}else _0x42b697['push']({'type':_0x196974+'Container','element':_0x51e740});}}}}}['_resolveDescriptionItems'](_0x20856d){const _0x10c5de=this['_locale'],_0x20868b=[],_0x254657=[],_0x1459b4=[];for(const _0x4ce76c of _0x20856d)switch(_0x4ce76c['type']){case'text':if(_0x4ce76c['add']=_0x4ce76c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4ce76c['remove']=_0x4ce76c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4ce76c['add']&&''!=_0x4ce76c['remove']){_0x20868b['push']({'type':'replace','content':c(_0x10c5de,'REPLACE_TEXT',['\x22'+_0x4ce76c['remove']+'\x22','\x22'+_0x4ce76c['add']+'\x22'])});continue;}if(null!=_0x4ce76c['add']['match'](/^ +$/)){_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Insert:*\x20%0',c(_0x10c5de,'ELEMENT_SPACE',_0x4ce76c['add']['length']))});continue;}if(null!=_0x4ce76c['remove']['match'](/^ +$/)){_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Remove:*\x20%0',c(_0x10c5de,'ELEMENT_SPACE',_0x4ce76c['remove']['length']))});continue;}if(''!=_0x4ce76c['add']){_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Insert:*\x20%0','\x22'+_0x4ce76c['add']+'\x22')});continue;}_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Remove:*\x20%0','\x22'+_0x4ce76c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Insert:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Remove:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'addContainer':_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Split:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'removeContainer':_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Merge:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'addFormat':_0x254657['push'](_0x4ce76c['key']);continue;case'removeFormat':_0x1459b4['push'](_0x4ce76c['key']);continue;default:_0x20868b['push'](_0x4ce76c);}if(_0x254657['length']){const _0xdff4cb=_0x254657['map'](_0x5411e5=>this['_attributeLabels']['has'](_0x5411e5)?this['_attributeLabels']['get'](_0x5411e5):_0x5411e5)['join'](',\x20');_0x20868b['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xdff4cb)});}if(_0x1459b4['length']){const _0x179146=_0x1459b4['map'](_0x1ab406=>this['_attributeLabels']['has'](_0x1ab406)?this['_attributeLabels']['get'](_0x1ab406):_0x1ab406)['join'](',\x20');_0x20868b['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x179146)});}return _0x20868b;}['_handleCustomCallbackDescription'](_0x2e4709){for(const _0x1e4a3d of this['_customCallbacks']){const _0x3d4b3c=_0x1e4a3d(_0x2e4709);if(_0x3d4b3c&&'type'in _0x3d4b3c)return _0x3d4b3c;}}['_handleAttributeSuggestionDescription'](_0x52faaa,_0x38226d){const _0x1f268e=_0x38226d['data'],_0x328de8=void 0x0===_0x1f268e['newValue']?'removeFormat':'addFormat';_0x52faaa['push']({'type':_0x328de8,'key':_0x1f268e['key']});}['_handleRenameSuggestionDescription'](_0x5027d5,_0x2ec039){_0x5027d5['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2ec039['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1cfc93,_0x590235,_0x1195c1){if(this['_addDescriptionItems'](_0x1cfc93,_0x590235),_0x1195c1&&_0x1195c1['getFirstRange']()&&!_0x590235['getFirstRange']()['end']['isEqual'](_0x1195c1['getFirstRange']()['start'])){const _0x56b5da=_0x1cfc93[_0x1cfc93['length']-0x1],_0x2219dc='insertion'==_0x590235['type']?'add':'remove';_0x56b5da&&'text'==_0x56b5da['type']&&(_0x56b5da[_0x2219dc]+='\x0a');}}}class U extends _0x55fa68{['afterInit'](){const _0x452eb4=this['editor'],_0x4b4905=_0x452eb4['plugins']['get']('TrackChangesEditing');_0x452eb4['commands']['get']('showAIAssistant')&&_0x4b4905['enableCommand']('showAIAssistant');}}class V extends _0x55fa68{['afterInit'](){const _0x27e449=this['editor'],_0xf410ed=_0x27e449['locale'];if(!_0x27e449['plugins']['has']('AlignmentEditing'))return;const _0x27884a=_0x27e449['plugins']['get']('TrackChangesEditing');_0x27884a['enableDefaultAttributesIntegration']('alignment'),_0x27884a['registerBlockAttribute']('alignment'),_0x27884a['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xf410ed,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21d13d=this['editor'],_0x2e3a93=_0x21d13d['locale'];_0x21d13d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cbd9e=>{if('formatBlock'!=_0x5cbd9e['type'])return;const {data:_0xd6d889}=_0x5cbd9e;if(_0xd6d889&&'alignment'==_0xd6d889['commandName']){const _0xf97437=_0xd6d889['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2e3a93,'*Format:*\x20%0',function(_0x3d8918){switch(_0x3d8918){case'left':return c(_0x2e3a93,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2e3a93,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2e3a93,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2e3a93,'FORMAT_JUSTIFY_TEXT');}}(_0xf97437))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x55fa68{['afterInit'](){const _0x513675=this['editor'],_0x2e6efd=_0x513675['plugins']['get']('TrackChangesEditing'),_0xa20c5c=_0x513675['locale'];for(const _0x5f1e4c of Zt){if(!_0x513675['plugins']['has'](_0x5f1e4c))continue;const _0x2b05f5=_0x5f1e4c['slice'](0x0,-0x7)['toLowerCase'](),_0x335361='FORMAT_'+_0x2b05f5['toUpperCase']();_0x2e6efd['enableDefaultAttributesIntegration'](_0x2b05f5),_0x2e6efd['registerInlineAttribute'](_0x2b05f5),_0x2e6efd['descriptionFactory']['registerAttributeLabel'](_0x2b05f5,c(_0xa20c5c,_0x335361));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2318c9=this['editor'],_0x4b9784=_0x2318c9['locale'],_0x3eac1b=_0x2318c9['plugins']['get']('TrackChangesEditing');function _0x10c62c(_0x2b9e70,_0x17773b){_0x3eac1b['descriptionFactory']['registerDescriptionCallback'](_0x393f3e=>{if('formatInline'!=_0x393f3e['type'])return;const {data:_0x50911e}=_0x393f3e;return _0x50911e&&_0x50911e['commandName']===_0x2b9e70?_0x50911e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b9784,'*Format:*\x20%0',_0x17773b)}:{'type':'format','content':c(_0x4b9784,'*Remove\x20format:*\x20%0',_0x17773b)}:void 0x0;});}_0x10c62c('bold',c(_0x4b9784,'FORMAT_BOLD')),_0x10c62c('italic',c(_0x4b9784,'FORMAT_ITALIC')),_0x10c62c('underline',c(_0x4b9784,'FORMAT_UNDERLINE')),_0x10c62c('code',c(_0x4b9784,'FORMAT_CODE')),_0x10c62c('strikethrough',c(_0x4b9784,'FORMAT_STRIKETHROUGH')),_0x10c62c('subscript',c(_0x4b9784,'FORMAT_SUBSCRIPT')),_0x10c62c('superscript',c(_0x4b9784,'FORMAT_SUPERSCRIPT'));}}class G extends _0x55fa68{['afterInit'](){const _0x30a489=this['editor'],_0x64207b=_0x30a489['locale'];if(!_0x30a489['plugins']['has']('BlockQuoteEditing'))return;const _0x3231dd=_0x30a489['plugins']['get']('TrackChangesEditing'),_0x9db1df=this['editor']['commands']['get']('blockQuote');_0x3231dd['enableCommand']('blockQuote',(_0x44fb47,_0x2977f8={})=>{const _0x4df603=this['editor']['model']['document']['selection'],_0x308044=_0x2977f8&&void 0x0!==_0x2977f8['forceValue']?_0x2977f8['forceValue']:!_0x9db1df['value'];let _0x258f49=[];if(_0x308044){const _0x58b68f=Array['from'](_0x4df603['getSelectedBlocks']())['filter'](_0x6730f7=>oo(_0x6730f7)||function(_0x34672e,_0x3b57af){const _0x4b3ad3=_0x3b57af['checkChild'](_0x34672e['parent'],'blockQuote'),_0x4f49d3=_0x3b57af['checkChild'](['$root','blockQuote'],_0x34672e);return _0x4b3ad3&&_0x4f49d3;}(_0x6730f7,this['editor']['model']['schema']));_0x258f49=to(_0x58b68f,_0x30a489['model']);}else{const _0x4303fc=Array['from'](_0x4df603['getSelectedBlocks']())['filter'](_0x4e362b=>oo(_0x4e362b));_0x258f49=to(_0x4303fc,_0x30a489['model']);}_0x30a489['model']['change'](()=>{for(const _0x33b18c of _0x258f49)_0x3231dd['markBlockFormat'](_0x33b18c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x308044}]});});}),_0x3231dd['descriptionFactory']['registerDescriptionCallback'](_0x23ba6c=>{const {data:_0x26a00b}=_0x23ba6c;if(_0x26a00b&&'blockQuote'==_0x26a00b['commandName']){const _0x2cd8ed=c(_0x64207b,'ELEMENT_BLOCK_QUOTE');return _0x26a00b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x64207b,'*Set\x20format:*\x20%0',_0x2cd8ed)}:{'type':'format','content':c(_0x64207b,'*Remove\x20format:*\x20%0',_0x2cd8ed)};}});}}function oo(_0x453852){return'blockQuote'==_0x453852['parent']['name'];}class L extends _0x55fa68{['afterInit'](){const _0x2fca57=this['editor'],_0x44ab2f=_0x2fca57['locale'],_0x4dd101=_0x2fca57['plugins']['get']('TrackChangesEditing');_0x2fca57['plugins']['has']('BookmarkEditing')&&(_0x4dd101['enableCommand']('insertBookmark'),_0x4dd101['enableDefaultAttributesIntegration']('updateBookmark'),_0x4dd101['registerBlockAttribute']('bookmarkId'),_0x4dd101['descriptionFactory']['registerDescriptionCallback'](_0x368a1d=>{if('insertion'!=_0x368a1d['type']&&'deletion'!=_0x368a1d['type']&&'attribute'!=_0x368a1d['type'])return;const _0x106389=_0x368a1d['getContainedElement']();if(null==_0x106389)return;if(!_0x106389['is']('element','bookmark'))return;const _0x926dd9=_0x106389['getAttribute']('bookmarkId');if('insertion'==_0x368a1d['type'])return{'type':'insertion','content':c(_0x44ab2f,'*Insert:*\x20%0','\x22'+_0x926dd9+'\x22\x20'+c(_0x44ab2f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x368a1d['type'])return{'type':'deletion','content':c(_0x44ab2f,'*Remove:*\x20%0','\x22'+_0x926dd9+'\x22\x20'+c(_0x44ab2f,'ELEMENT_BOOKMARK'))};const {data:_0x14eca9}=_0x368a1d;if(!_0x14eca9||'bookmarkId'!=_0x14eca9['key'])return;return{'type':'format','content':c(_0x44ab2f,'*Set\x20bookmark:*\x20%0','\x22'+_0x14eca9['newValue']+'\x22')};}));}}class J extends _0x55fa68{['afterInit'](){const _0x43e286=this['editor'];_0x43e286['plugins']['has']('CaseChange')&&(_0x43e286['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x43e286['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x43e286['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x55fa68{['afterInit'](){const _0x59e9e8=this['editor'];_0x59e9e8['commands']['get']('ckbox')&&_0x59e9e8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x55fa68{['afterInit'](){const _0x5e1835=this['editor'];if(!_0x5e1835['plugins']['has']('CodeBlock'))return;const _0x3b2f7f=_0x5e1835['plugins']['get']('TrackChangesEditing'),_0x2aff95=_0x5e1835['locale'],_0x28ee32=_0x5e1835['config']['get']('codeBlock')['languages'],_0x22c582=_0x5e1835['commands']['get']('codeBlock');_0x3b2f7f['enableCommand']('indentCodeBlock'),_0x3b2f7f['enableCommand']('outdentCodeBlock'),_0x3b2f7f['enableCommand']('codeBlock',(_0x4e53ae,_0xb7d178={})=>{const _0x11141f=_0x5e1835['model'],_0x9761a4=_0x5e1835['model']['document']['selection'],_0x5511ea=_0xb7d178&&void 0x0!==_0xb7d178['forceValue']?_0xb7d178['forceValue']:!_0x22c582['value'];let _0x546c30;_0xb7d178['language']||(_0xb7d178['language']=_0x28ee32[0x0]['language']),_0x546c30=_0x5511ea?Array['from'](_0x9761a4['getSelectedBlocks']())['filter'](_0x2d9958=>eo(_0x2d9958)||function(_0x608abd,_0x242a48){if(_0x608abd['is']('rootElement')||_0x242a48['isLimit'](_0x608abd))return!0x1;return _0x242a48['checkChild'](_0x608abd['parent'],'codeBlock');}(_0x2d9958,_0x11141f['schema'])):Array['from'](_0x9761a4['getSelectedBlocks']())['filter'](_0x492b25=>eo(_0x492b25));const _0x7fcb4a=to(_0x546c30,_0x11141f);_0x11141f['change'](()=>{for(const _0x2fe69e of _0x7fcb4a)_0x3b2f7f['markBlockFormat'](_0x2fe69e,{'commandName':'codeBlock','commandParams':[{..._0xb7d178,'forceValue':_0x5511ea}],'formatGroupId':'blockName'});});}),(_0x3b2f7f['descriptionFactory']['registerElementLabel']('codeBlock',_0x167e7d=>c(_0x2aff95,'ELEMENT_CODE_BLOCK',_0x167e7d)),_0x3b2f7f['descriptionFactory']['registerDescriptionCallback'](_0x4ef8ae=>{if('formatBlock'!=_0x4ef8ae['type'])return;const _0x21ba27=_0x2aff95['t'],{data:_0x61172c}=_0x4ef8ae;if(!_0x61172c||'codeBlock'!=_0x61172c['commandName'])return;const _0xf6497a=_0x61172c['commandParams'][0x0]['language'],_0x1c9801=_0x21ba27(_0x28ee32['find'](_0x1598be=>_0x1598be['language']===_0xf6497a)['label'])['toLowerCase']();return _0x61172c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2aff95,'*Set\x20format:*\x20%0',c(_0x2aff95,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1c9801+')')}:{'type':'format','content':c(_0x2aff95,'*Remove\x20format:*\x20%0',c(_0x2aff95,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b968e){return'codeBlock'==_0x4b968e['name'];}class q extends _0x55fa68{['afterInit'](){const _0x1022ba=this['editor'];if(!_0x1022ba['plugins']['has']('CommentsEditing'))return;_0x1022ba['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x59ae41,_0x4ac431,_0xe67c03){const _0x7eed51=[];for(const _0x257b8f of _0x4ac431['getItems']())_0x257b8f['hasAttribute'](_0x59ae41)&&_0x7eed51['push'](_0xe67c03['createRangeOn'](_0x257b8f));return _0x7eed51;}function Fe(_0x2b2b8d,_0x5786c3,{showActiveMarker:_0x5a93b3=!0x0}={}){const _0x5a4b61=_0x2b2b8d['plugins']['get']('TrackChangesEditing');return(_0x7e33b2,_0x23e427,_0x546361)=>{if(!_0x546361['consumable']['test'](_0x23e427['markerRange'],_0x7e33b2['name']))return;const _0x1e1f3a=_0x23e427['markerRange']['getWalker'](),_0x440f91=_0x23e427['markerRange']['start'],_0xeb67bc=_0x2b2b8d['model']['schema'];let _0x4ea0ea=null,_0x4cecd1=null,_0x3db64f=!0x1,_0xa09b45=!0x1;for(const _0x412191 of _0x1e1f3a){const _0x11f439=_0x412191['item'];_0x3db64f=_0x3db64f||_0xeb67bc['isContent'](_0x11f439);const _0x5cb230=_0x546361['mapper']['toViewElement'](_0x11f439);if(_0x5cb230&&_0x5cb230['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x412191['type']&&(_0xeb67bc['isBlock'](_0x11f439)&&!_0xeb67bc['isLimit'](_0x11f439)&&(_0x11f439['nextSibling']||_0x440f91['isAtEnd']?_0x4ea0ea&&_0x4ea0ea['parent']==_0x11f439||(_0x4ea0ea=_0x11f439,_0x315c6d(_0x412191['previousPosition']),_0xa09b45=!0x0):_0x4cecd1=_0x4cecd1||_0x412191['previousPosition']));}function _0x315c6d(_0x1ecd01){const {authorId:_0x1a4428}=_0x5a4b61['_splitMarkerName'](_0x23e427['markerName']),_0x427d4b=_0x546361['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5786c3,'data-author-id':_0x1a4428}),_0x7928ec=_0x546361['mapper']['toViewPosition'](_0x1ecd01);_0x5a93b3&&_0x5a4b61['activeMarkers']['includes'](_0x23e427['markerName'])&&_0x546361['writer']['addClass']('ck-suggestion-marker--active',_0x427d4b),_0x546361['writer']['insert'](_0x7928ec,_0x427d4b),_0x546361['mapper']['bindElementToMarker'](_0x427d4b,_0x23e427['markerName']);}_0x3db64f||_0xa09b45||!_0x4cecd1||_0x315c6d(_0x4cecd1);};}class z extends _0x55fa68{static get['requires'](){return[_0x60e2d4];}['init'](){const _0x23ae9b=this['editor'],_0x4a2e8a=_0x23ae9b['plugins']['get']('TrackChangesEditing');_0x4a2e8a['enableCommand']('delete');const _0x51c416=_0x23ae9b['commands']['get']('deleteForward');_0x4a2e8a['enableCommand']('deleteForward',(_0x163a10,_0x5799d2={})=>{const _0x2bb7ca=_0x23ae9b['model']['createSelection'](_0x23ae9b['model']['document']['selection']);_0x2bb7ca['isCollapsed']&&_0x23ae9b['model']['modifySelection'](_0x2bb7ca,{'direction':'forward','unit':_0x5799d2['unit']});const _0x1d8299=_0x2bb7ca['getFirstRange'](),_0x452fe1=_0x3932e8['fromRange'](_0x1d8299);let _0x1215df;_0x163a10(_0x5799d2),_0x1215df='$graveyard'==_0x452fe1['root']['rootName']?_0x23ae9b['model']['createRange'](_0x1d8299['start']):_0x23ae9b['model']['createRange'](_0x452fe1['start'],_0x452fe1['end']),_0x452fe1['detach'](),_0x23ae9b['model']['enqueueChange'](_0x51c416['buffer']['batch'],_0x4f1aad=>{_0x51c416['buffer']['lock'](),_0x4f1aad['setSelection'](_0x4f1aad['createRange'](_0x1215df['end'])),_0x51c416['buffer']['unlock']();});}),_0x23ae9b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x23ae9b,'merge'),{'priority':'high'}),_0x23ae9b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x58568d,_0x4cd07a,_0x112631)=>{_0x112631['options']['showSuggestionHighlights']&&Fe(_0x23ae9b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x58568d,_0x4cd07a,_0x112631);},{'priority':'high'}),_0x23ae9b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x251b8c,_0x1f75a3,_0x368125)=>{const _0x11d9bc=_0x368125['mapper']['markerNameToElements'](_0x1f75a3['markerName']);if(_0x11d9bc){for(const _0x29ec52 of _0x11d9bc)_0x29ec52['is']('uiElement')&&(_0x368125['mapper']['unbindElementFromMarkerName'](_0x29ec52,_0x1f75a3['markerName']),_0x368125['writer']['remove'](_0x29ec52));}},{'priority':'high'});}}class W extends _0x55fa68{['afterInit'](){const _0x28c3b7=this['editor'];if(!_0x28c3b7['plugins']['has']('ListEditing'))return;const _0x321829=_0x28c3b7['locale'],_0x59f305=_0x28c3b7['plugins']['get']('TrackChangesEditing'),_0x12f11e=_0x28c3b7['plugins']['has']('TodoListEditing'),_0x538d4e=!!_0x28c3b7['config']['get']('list.multiBlock');function _0x10cfd7(_0x7692d9){return{'type':'format','content':''+c(_0x321829,'*Set\x20format:*\x20%0',_0x7692d9)};}function _0x35b063(_0x2dea6d){return{'type':'format','content':''+c(_0x321829,'*Remove\x20format:*\x20%0',_0x2dea6d)};}_0x59f305['enableDefaultAttributesIntegration']('numberedList'),_0x59f305['enableDefaultAttributesIntegration']('bulletedList'),_0x59f305['enableDefaultAttributesIntegration']('customNumberedList'),_0x59f305['enableDefaultAttributesIntegration']('customBulletedList'),_0x59f305['enableDefaultAttributesIntegration']('indentList'),_0x59f305['enableDefaultAttributesIntegration']('outdentList'),_0x59f305['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x59f305['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x59f305['registerBlockAttribute']('listItemId'),_0x59f305['registerBlockAttribute']('listType'),_0x59f305['registerBlockAttribute']('listIndent'),_0x538d4e&&(_0x59f305['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x59f305['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12f11e&&(_0x59f305['enableDefaultAttributesIntegration']('todoList'),_0x59f305['enableDefaultAttributesIntegration']('checkTodoList'),_0x59f305['registerBlockAttribute']('todoListChecked'),_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x1fcd06=>{const {data:_0x57bb56}=_0x1fcd06;if(_0x57bb56&&'todoListChecked'==_0x57bb56['key'])return{'type':'format','content':_0x57bb56['newValue']?c(_0x321829,'*Check\x20item*'):c(_0x321829,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x23f40a=>{if(_0x23f40a['batch']['isUndo'])return!0x1;let _0x44f983=!0x1;const _0x74511b=_0x59f305['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ba97c=>'todoListChecked'===_0x59f305['_getAttributeKey'](_0x5ba97c));for(const _0x3a0629 of _0x74511b){'todo'!=_0x3a0629['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x59f305['_findSuggestions'](_0x3a0629['getFirstRange'](),'attribute')['find'](_0x3b9921=>'listType'===_0x59f305['_getAttributeKey'](_0x3b9921['suggestion']))||(_0x23f40a['removeMarker'](_0x3a0629['getFirstMarker']()),_0x44f983=!0x0));}return _0x44f983;})),_0x59f305['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x321829,'FORMAT_INDENT'));const _0x2e3dae={'type':'format','content':''};_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x2880c9=>{const {data:_0x1e1454}=_0x2880c9;if(!_0x1e1454||'listType'!=_0x1e1454['key'])return;let _0x402978=_0x2880c9['head'];for(;_0x402978;){if(_0x402978['data']&&(('listStyle'==_0x402978['data']['key']||'listMarkerStyle'==_0x402978['data']['key'])&&(_0x402978['data']['newValue']&&'default'!=_0x402978['data']['newValue']||'default'!=_0x402978['data']['oldValue']&&!_0x1e1454['newValue'])||!_0x538d4e&&_0x402978['data']['key']==u))return _0x2e3dae;_0x402978=_0x402978['next'];}if(null==_0x1e1454['newValue'])switch(_0x1e1454['oldValue']){case'bulleted':return _0x35b063(c(_0x321829,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35b063(c(_0x321829,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35b063(c(_0x321829,'ELEMENT_TODO_LIST'));}switch(_0x1e1454['newValue']){case'bulleted':return _0x10cfd7(c(_0x321829,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10cfd7(c(_0x321829,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10cfd7(c(_0x321829,'ELEMENT_TODO_LIST'));}}),_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x33f49e=>{const {data:_0x14b368}=_0x33f49e;if(_0x14b368&&'listIndent'==_0x14b368['key'])return null==_0x14b368['newValue']||null==_0x14b368['oldValue']&&0x0==_0x14b368['newValue']?_0x2e3dae:void 0x0;}),_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x32ddc0=>{if('attribute'!=_0x32ddc0['type'])return;const {data:_0x266bef}=_0x32ddc0;if(!_0x266bef||'listItemId'!=_0x266bef['key'])return;const _0x4e4f4f=Te(_0x32ddc0);return'newValue'==_0x4e4f4f?{'type':'format','content':c(_0x321829,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4e4f4f?{'type':'format','content':c(_0x321829,'*Split:*\x20list\x20item')}:_0x2e3dae;}),_0x28c3b7['model']['document']['registerPostFixer'](_0x4f6977=>this['listItemIdFixer'](_0x4f6977)),_0x28c3b7['model']['document']['registerPostFixer'](_0x3e1ece=>this['noTrackChangesFixer'](_0x3e1ece)),_0x28c3b7['model']['document']['on']('change:data',(_0x2acf37,_0x201b42)=>{if(_0x201b42['isUndo']||!_0x201b42['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2add9f){if(_0x2add9f['batch']['isUndo']||!_0x2add9f['batch']['isLocal'])return!0x1;let _0x19c753=!0x1;const _0x51afc0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x165ef9=>_0x165ef9['data']&&'listItemId'==_0x165ef9['data']['key'])['filter'](_0x4801ab=>_0x4801ab['data']['newValue']&&_0x4801ab['data']['oldValue']);for(const _0x268209 of _0x51afc0)Te(_0x268209)||(_0x2add9f['removeMarker'](_0x268209['getFirstMarker']()),_0x19c753=!0x0);return _0x19c753;}['noTrackChangesFixer'](_0x51e83f){if(_0x51e83f['batch']['isUndo']||!_0x51e83f['batch']['isLocal'])return!0x1;const _0x319c05=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x319c05['trackChangesCommand']['value'])return!0x1;let _0x3b39c9=!0x1;const _0x33dea7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x480e2d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f3955=>'attribute'==_0x3f3955['type'])['filter'](_0x1a57bf=>_0x33dea7['includes'](_0x1a57bf['attributeKey']));if(0x0==_0x480e2d['length'])return _0x3b39c9;for(const _0x4ba049 of _0x480e2d){const _0x1a2526=_0x319c05['_findSuggestions'](_0x4ba049['range'],'attribute')['filter'](_0x4456ca=>!_0x4456ca['meta']['isNextTo'])['map'](_0x266976=>_0x266976['suggestion'])['filter'](_0x430ce4=>{const _0x3a0132=_0x319c05['_getAttributeKey'](_0x430ce4);return _0x33dea7['includes'](_0x3a0132);});if(_0x1a2526['length']){for(const _0x530170 of _0x1a2526)_0x51e83f['removeMarker'](_0x530170['getFirstMarker']());_0x3b39c9=!0x0;}}return _0x3b39c9;}['assureChains'](){const _0x453af0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa52a7a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x53c6d3;const _0x310018=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x454395=>{if(_0x454395['data']['oldRange']||!_0x454395['data']['newRange'])return null;if(!_0x454395['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xe2c73}=_0x453af0['_splitMarkerName'](_0x454395['name']);if(!_0x453af0['hasSuggestion'](_0xe2c73))return null;const _0x91947d=_0x453af0['getSuggestion'](_0xe2c73);return _0xa52a7a['includes'](_0x91947d['data']['key']);})['map'](_0x44c8e0=>{const {id:_0x4b16d1}=_0x453af0['_splitMarkerName'](_0x44c8e0['name']),_0x1f97f6=_0x453af0['getSuggestion'](_0x4b16d1);return _0x53c6d3=_0x1f97f6['attributes']['groupId'],_0x1f97f6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x310018['size'])return;const _0x1d55ce=_0x453af0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x446214=>'attribute'==_0x446214['type']&&_0x446214['data']&&_0xa52a7a['includes'](_0x446214['data']['key'])&&_0x446214['attributes']['groupId']!=_0x53c6d3)['map'](_0x290cb4=>({'listItem':_0x290cb4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x290cb4['attributes']['groupId']})),_0x262ad4=new Set();for(const {groupId:_0x1bfde0,listItem:_0x2e37a5}of _0x1d55ce)_0x310018['has'](_0x2e37a5)&&_0x262ad4['add'](_0x1bfde0);for(const _0x14d143 of _0x453af0['getSuggestions']())_0x262ad4['has'](_0x14d143['attributes']['groupId'])&&_0x14d143['setAttribute']('groupId',_0x53c6d3);}['_supportLegacySuggestions'](){const _0x59d363=this['editor'],_0xc6deff=_0x59d363['locale'],_0x211170=_0x59d363['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x211170['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x8885ab,_0x53d51a){const _0x24cc15=[];for(let _0x306aea of _0x8885ab)_0x306aea['start']['nodeAfter']===_0x306aea['end']['parent']&&(_0x306aea=_0x59d363['model']['createRange'](_0x59d363['model']['createPositionAt'](_0x306aea['start']['nodeAfter'],0x0))),_0x24cc15['push'](_0x306aea);_0x59d363['model']['change'](_0x567e87=>{const _0x39fed7=_0x59d363['model']['document']['selection'],_0x38c35e=Array['from'](_0x39fed7['getRanges']())['map'](_0x33d2f7=>_0x3932e8['fromRange'](_0x33d2f7));_0x567e87['setSelection'](_0x24cc15),_0x59d363['commands']['get'](_0x53d51a['commandName'])['refresh'](),_0x53d51a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x59d363['execute'](_0x53d51a['commandName'],..._0x53d51a['commandParams']),_0x567e87['setSelection'](_0x38c35e);for(const _0x4640b8 of _0x38c35e)_0x4640b8['detach']();});}),_0x211170['descriptionFactory']['registerElementLabel'](function(_0x302c83){const _0x116bb5=!_0x59d363['model']['schema']['isObject'](_0x302c83),_0x24d1b9=_0x302c83['previousSibling'],_0x32d1b2=_0x302c83['nextSibling'],_0x8187c0=_0x302c83['getAttribute']('listItemId'),_0x1c3be8=!_0x24d1b9||_0x24d1b9['getAttribute']('listItemId')!==_0x8187c0,_0xd1c04a=!_0x32d1b2||_0x32d1b2['getAttribute']('listItemId')!==_0x8187c0;return _0x116bb5&&Boolean(_0x8187c0)&&_0x1c3be8&&_0xd1c04a;},_0x2dc0de=>c(_0xc6deff,'ELEMENT_LIST_ITEM',_0x2dc0de));}['_registerLegacyDescription'](){const _0x588c2d=this['editor'],_0x164ce4=_0x588c2d['locale'];function _0x3eb126(_0x1c8df9){const _0x4e54bc=_0x588c2d['commands']['get']('bulletedList')['value'],_0x5e4996=_0x588c2d['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c8df9?_0x4e54bc:_0x5e4996;}_0x588c2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x36d061){if('formatBlock'!=_0x36d061['type'])return;const {data:_0x2240ac}=_0x36d061;if(!_0x2240ac)return;let _0x37de21,_0x3d04c8,_0x5d4447,_0x47470b;switch(_0x2240ac['commandName']){case'bulletedList':_0x5d4447=_0x2240ac['commandParams'][0x0]['forceValue'],_0x47470b=_0x3eb126(_0x2240ac['commandName']),_0x37de21=_0x5d4447?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x47470b&&_0x588c2d['config']['get']('list.multiBlock')||(_0x37de21='*Change\x20to:*\x20%0'),_0x3d04c8={'type':'format','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d4447=_0x2240ac['commandParams'][0x0]['forceValue'],_0x47470b=_0x3eb126(_0x2240ac['commandName']),_0x37de21=_0x5d4447?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x47470b&&_0x588c2d['config']['get']('list.multiBlock')||(_0x37de21='*Change\x20to:*\x20%0'),_0x3d04c8={'type':'format','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x37de21='*Indent:*\x20%0',_0x3d04c8={'type':'format','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x37de21=function(_0x376473){const _0x4b5ccc=_0x376473['getFirstRange']();let _0x4da68f=_0x4b5ccc['start']['nodeAfter'];for(;_0x4da68f&&_0x4b5ccc['containsItem'](_0x4da68f);){if(_0x4da68f['getAttribute']('listIndent')>0x0)return!0x1;_0x4da68f=_0x4da68f['nextSibling'];}return!0x0;}(_0x36d061)?c(_0x164ce4,'*Format:*\x20remove\x20from\x20%0',c(_0x164ce4,function(_0xc9a625){return'ELEMENT_'+_0xc9a625['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x36d061))):c(_0x164ce4,'*Outdent:*\x20%0',c(_0x164ce4,'ELEMENT_LIST_ITEM')),_0x3d04c8={'type':'format','content':_0x37de21};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2240ac['multipleBlocks']&&(_0x37de21='*Merge:*\x20%0',_0x3d04c8={'type':'deletion','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_LIST_ITEM'))});}return _0x3d04c8;});}}function Te(_0x252701){let _0x3cfb0d=_0x252701['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cfb0d;){const _0xd6bcca=_0x3cfb0d['getAttribute']('listItemId');if(!_0xd6bcca)return!0x1;if(_0xd6bcca==_0x252701['data']['newValue'])return'newValue';if(_0xd6bcca==_0x252701['data']['oldValue'])return'oldValue';_0x3cfb0d=_0x3cfb0d['previousSibling'];}return!0x1;}class Se extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x34e04c=this['editor']['config']['get']('list.properties'),_0x3d752b=this['editor']['plugins']['get']('TrackChangesEditing');_0x34e04c['styles']&&(_0x3d752b['enableDefaultAttributesIntegration']('listStyle'),_0x3d752b['registerBlockAttribute']('listStyle')),_0x34e04c['reversed']&&(_0x3d752b['enableDefaultAttributesIntegration']('listReversed'),_0x3d752b['registerBlockAttribute']('listReversed')),_0x34e04c['startIndex']&&(_0x3d752b['enableDefaultAttributesIntegration']('listStart'),_0x3d752b['registerBlockAttribute']('listStart'));const _0x295944={'type':'format','content':''};_0x3d752b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x455582=this['editor']['locale'];_0x3d752b['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x455582,'FORMAT_LIST_REVERSED')),_0x3d752b['descriptionFactory']['registerDescriptionCallback'](_0x35ca77=>{const {data:_0x3442b1}=_0x35ca77;if(_0x3442b1&&'listReversed'==_0x3442b1['key'])return null==_0x3442b1['newValue']||0x0==_0x3442b1['newValue']&&null==_0x3442b1['oldValue']?_0x295944:void 0x0;}),_0x3d752b['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x455582,'FORMAT_LIST_START')),_0x3d752b['descriptionFactory']['registerDescriptionCallback'](_0x491c77=>{const {data:_0x46086f}=_0x491c77;if(_0x46086f&&'listStart'==_0x46086f['key'])return null==_0x46086f['newValue']||0x1==_0x46086f['newValue']&&null==_0x46086f['oldValue']?_0x295944:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x371f96=>{if(_0x371f96['batch']['isUndo'])return!0x1;let _0x311e2a=!0x1;const _0x5215a5=_0x3d752b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x445aaf=>{const _0x5b0c38=_0x3d752b['_getAttributeKey'](_0x445aaf);return'listStart'==_0x5b0c38||'listReversed'==_0x5b0c38;});for(const _0x46ce96 of _0x5215a5){const _0x8a4acb=_0x46ce96['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8a4acb||'customNumbered'==_0x8a4acb)continue;_0x3d752b['_findSuggestions'](_0x46ce96['getFirstRange'](),'attribute')['find'](_0x370872=>'listType'==_0x3d752b['_getAttributeKey'](_0x370872['suggestion']))||(_0x371f96['removeMarker'](_0x46ce96['getFirstMarker']()),_0x311e2a=!0x0);}return _0x311e2a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x37126a){const _0x3acd6f=this['editor']['locale'],{data:_0x1b60f1}=_0x37126a,_0x321c1c={'type':'format','content':''};if(!_0x1b60f1||'listStyle'!=_0x1b60f1['key'])return;if(!_0x1b60f1['oldValue'])return'default'==_0x1b60f1['newValue']?_0x321c1c:{'type':'format','content':''+c(_0x3acd6f,'*Set\x20format:*\x20%0',c(_0x3acd6f,this['_getTranslationKeyForListStyle'](_0x1b60f1['newValue'])))};if(!_0x1b60f1['newValue']){if('default'==_0x1b60f1['oldValue'])return _0x321c1c;let _0x54d372=_0x37126a['head'];for(;_0x54d372;){if(_0x54d372['data']&&'listType'==_0x54d372['data']['key']&&_0x54d372['data']['newValue'])return _0x321c1c;_0x54d372=_0x54d372['next'];}return{'type':'format','content':''+c(_0x3acd6f,'*Remove\x20format:*\x20%0',c(_0x3acd6f,this['_getTranslationKeyForListStyle'](_0x1b60f1['oldValue'])))};}if('default'!=_0x1b60f1['newValue'])return{'type':'format','content':''+c(_0x3acd6f,'*Set\x20format:*\x20%0',c(_0x3acd6f,this['_getTranslationKeyForListStyle'](_0x1b60f1['newValue'])))};let _0x1d241d=_0x37126a['head'];for(;_0x1d241d;){if(_0x1d241d['data']&&'listType'==_0x1d241d['data']['key']&&_0x1d241d['data']['newValue']&&_0x1d241d['data']['oldValue'])return _0x321c1c;_0x1d241d=_0x1d241d['next'];}return{'type':'format','content':c(_0x3acd6f,'*Set\x20format:*\x20%0',c(_0x3acd6f,'ELEMENT_'+_0x37126a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2bbd0f=this['editor'],_0x335fe3=_0x2bbd0f['locale'];_0x2bbd0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fbd73=>{if('formatBlock'!=_0x1fbd73['type'])return;const {data:_0xce11b8}=_0x1fbd73;if(!_0xce11b8)return;let _0x5086d4,_0xd5482e;switch(_0xce11b8['commandName']){case'listStyle':_0x5086d4='*Change\x20to:*\x20%0',_0xd5482e={'type':'format','content':c(_0x335fe3,_0x5086d4,c(_0x335fe3,this['_getTranslationKeyForListStyle'](_0xce11b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5086d4=_0xce11b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd5482e={'type':'format','content':c(_0x335fe3,_0x5086d4)};break;case'listStart':_0x5086d4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd5482e={'type':'format','content':c(_0x335fe3,_0x5086d4,_0xce11b8['commandParams'][0x0]['startIndex'])};}return _0xd5482e;});}['_getTranslationKeyForListStyle'](_0xa79d5f){return'ELEMENT_'+function(_0x3be98c){if(_e['includes'](_0x3be98c))return'bulleted';if(Re['includes'](_0x3be98c))return'numbered';return null;}(_0xa79d5f)['toUpperCase']()+'_LIST_'+_0xa79d5f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x55fa68{['afterInit'](){const _0x5afea5=this['editor'];_0x5afea5['commands']['get']('emoji')&&_0x5afea5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x55fa68{static get['requires'](){return[_0x496c38];}['init'](){const _0x3afc4f=this['editor'],_0x34711a=_0x3afc4f['plugins']['get']('TrackChangesEditing'),_0xbbcaea=_0x3afc4f['commands']['get']('enter');_0x34711a['enableCommand']('enter',()=>{_0x3afc4f['model']['change'](_0x19b503=>{const _0x323229=_0x3afc4f['model']['document']['selection'],_0x5c8ca1=_0x323229['getFirstPosition'](),_0x55c06c=_0x3932e8['fromRange'](_0x323229['getFirstRange']());if(_0xbbcaea['enterBlock'](_0x19b503)){const _0x47ecd0=_0x3afc4f['model']['createPositionAt'](_0x5c8ca1['parent']['nextSibling'],0x0),_0x240d74=_0x19b503['createRange'](_0x5c8ca1,_0x47ecd0);_0x34711a['markInsertion'](_0x240d74);}else _0x19b503['setSelection'](_0x19b503['createRange'](_0x55c06c['end']));_0x55c06c['detach'](),_0xbbcaea['fire']('afterExecute',{'writer':_0x19b503});});}),_0x3afc4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3afc4f,'split'),{'priority':'high'}),_0x3afc4f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x13bd33,_0x2454c2,_0x2db968)=>{const _0x156808=_0x2db968['mapper']['markerNameToElements'](_0x2454c2['markerName']);if(_0x156808){for(const _0x2cdf25 of _0x156808)_0x2cdf25['hasClass']('ck-suggestion-marker-split')&&(_0x2db968['mapper']['unbindElementFromMarkerName'](_0x2cdf25,_0x2454c2['markerName']),_0x2db968['writer']['remove'](_0x2cdf25));}},{'priority':'high'}),_0x3afc4f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59b9f5,_0x5608b8,_0x52bb26)=>{_0x52bb26['options']['showSuggestionHighlights']&&Fe(_0x3afc4f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x59b9f5,_0x5608b8,_0x52bb26);},{'priority':'high'});}}class Z extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x58e9ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x58e9ed['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x58e9ed['enableCommand']('findNext'),_0x58e9ed['enableCommand']('findPrevious'),_0x58e9ed['enableCommand']('replace'),_0x58e9ed['enableCommand']('replaceAll');}['handleFindCommand'](_0x4d8635,_0x3407d2,_0x3c4cc2={}){const _0x7cf5bb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4d8635(_0x3cc566=>{let _0x3e69ef=('string'==typeof _0x3407d2?_0x7cf5bb['findByTextCallback'](_0x3407d2,_0x3c4cc2):_0x3407d2)(_0x3cc566);Array['isArray'](_0x3e69ef)&&(_0x3e69ef={'results':_0x3e69ef,'searchText':'string'==typeof _0x3407d2?_0x3407d2:''});const _0x5e498b=_0x3e69ef['results']['filter'](_0x4f8715=>!0x1===this['_isInDeletionRange'](_0x4f8715,_0x3cc566['item']));return{..._0x3e69ef,'results':_0x5e498b};},_0x3c4cc2);}['_isInDeletionRange'](_0x2013d0,_0x50e421){const _0x2baf21=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50e421,_0x2013d0['start']),this['editor']['model']['createPositionAt'](_0x50e421,_0x2013d0['end']));for(const _0x5b9543 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2baf21['getIntersection'](_0x5b9543['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x55fa68{['afterInit'](){const _0xf66661=this['editor']['locale'],_0xcf2dc7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1f551b,commandName:_0x5de06f}of ro)this['editor']['plugins']['has'](_0x1f551b)&&(_0xcf2dc7['enableDefaultAttributesIntegration'](_0x5de06f),_0xcf2dc7['registerInlineAttribute'](_0x5de06f));_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xf66661,'FORMAT_FONT_SIZE')),_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xf66661,'FORMAT_FONT_FAMILY')),_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xf66661,'FORMAT_FONT_COLOR')),_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xf66661,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532976=this['editor'],_0x50f266=_0x532976['locale'];_0x532976['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11240=>{const _0x4ce35b=_0x50f266['t'];if('formatInline'!=_0x11240['type'])return;const {data:_0x9c140}=_0x11240;if(null!=_0x9c140){if('fontSize'==_0x9c140['commandName']){const _0x58a121=_0x9c140['commandParams'][0x0]['value'];if(_0x58a121){const _0x44ceff=_0x4ce35b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x141fcf=>_0x141fcf['model']==_0x58a121)['title'])['toLowerCase']();return{'type':'format','content':c(_0x50f266,'*Set\x20font\x20size:*\x20%0',_0x44ceff)};}return{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x9c140['commandName']){const _0x36b064=_0x9c140['commandParams'][0x0]['value'];return _0x36b064?{'type':'format','content':c(_0x50f266,'*Set\x20font\x20family:*\x20%0',_0x36b064)}:{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20family*')};}if('fontColor'==_0x9c140['commandName']){const _0x33d25b=_0x9c140['commandParams'][0x0]['value'];if(_0x33d25b){const _0x34169f=_0x24a279(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14cca7=>_0x14cca7['model']==_0x33d25b);let _0x30cb99=_0x33d25b,_0x4a7779='';return _0x34169f&&(_0x30cb99=_0x34169f['label'],_0x4a7779=_0x4ce35b(_0x30cb99)['toLowerCase']()),{'type':'format','content':c(_0x50f266,'*Set\x20font\x20color:*\x20%0',_0x4a7779)['trim'](),'color':{'value':_0x33d25b,'title':_0x4a7779||_0x30cb99}};}return{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x9c140['commandName']){const _0x4f1b7b=_0x9c140['commandParams'][0x0]['value'];if(_0x4f1b7b){const _0x5d7317=_0x24a279(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x198c72=>_0x198c72['model']==_0x4f1b7b);let _0x5d2883=_0x4f1b7b,_0xd0769f='';return _0x5d7317&&(_0x5d2883=_0x5d7317['label'],_0xd0769f=_0x4ce35b(_0x5d2883)['toLowerCase']()),{'type':'format','content':c(_0x50f266,'*Set\x20font\x20background\x20color:*\x20%0',_0xd0769f)['trim'](),'color':{'value':_0x4f1b7b,'title':_0xd0769f||_0x5d2883}};}return{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x55fa68{['afterInit'](){const _0x1321f1=this['editor'],_0x214992=_0x1321f1['plugins']['get']('TrackChangesEditing'),_0x50e044=_0x1321f1['commands']['get']('copyFormat'),_0x1e5972=_0x1321f1['commands']['get']('pasteFormat');_0x50e044&&_0x1e5972&&(_0x214992['enableDefaultAttributesIntegration']('pasteFormat'),_0x214992['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x283bf8=this['editor'],_0x281cbc=_0x283bf8['locale'];_0x283bf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599607=>{if('formatBlock'!=_0x599607['type']&&'formatInline'!=_0x599607['type'])return;const {data:_0x11c3b4}=_0x599607;if(_0x11c3b4&&'pasteFormat'===_0x11c3b4['commandName']){const _0x1cd2a9=[],_0x39b7a7=_0x11c3b4['commandParams'][0x0];for(const [_0x3564ad,_0x10e3b0]of Object['entries'](_0x39b7a7))_0x1cd2a9['push'](so(_0x283bf8,_0x3564ad,_0x10e3b0));return _0x1cd2a9['length']?{'type':'format','content':c(_0x281cbc,'*Set\x20format\x20to:*\x20%0',_0x1cd2a9['join'](',\x20'))}:{'type':'format','content':c(_0x281cbc,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1c6459,_0x3dc846,_0x2a4ef3){const _0xc9a54e=_0x1c6459['locale']['t'],_0x4a75d6=_0x3dc846['split'](/(?=[A-Z])/)['join']('\x20'),_0x393b44=_0xc9a54e(_0x4a75d6['charAt'](0x0)['toUpperCase']()+_0x4a75d6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2a4ef3)return _0x393b44;if('fontColor'===_0x3dc846||'fontBackgroundColor'===_0x3dc846){const _0x5d06f4=_0x24a279(_0x1c6459['config']['get']('fontColor.colors'))['find'](_0xe77f4=>_0xe77f4['model']==_0x2a4ef3);return _0x393b44+'\x20('+(_0x5d06f4?_0xc9a54e(_0x5d06f4['label'])['toLowerCase']():_0x2a4ef3)+')';}if('fontSize'===_0x3dc846&&isNaN(parseFloat(_0x2a4ef3))){const _0x4d525c=_0x1c6459['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1c6459['config']['get']('fontSize.options'))['find'](_0x2d7f6e=>_0x2d7f6e['model']==_0x2a4ef3);return _0x393b44+'\x20('+(_0x4d525c?_0xc9a54e(_0x4d525c['title'])['toLowerCase']():_0x2a4ef3)+')';}return _0x393b44+'\x20('+_0x2a4ef3+')';}class nt extends _0x55fa68{['_headingOptions'];['afterInit'](){const _0x11e1b4=this['editor'];if(!_0x11e1b4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11e1b4['config']['get']('heading.options');const _0x47db7f=_0x11e1b4['locale'],_0x1b3206=_0x11e1b4['plugins']['get']('TrackChangesEditing');_0x1b3206['enableDefaultAttributesIntegration']('heading');for(const _0x4811be of this['_headingOptions'])'paragraph'!=_0x4811be['model']&&_0x1b3206['descriptionFactory']['registerElementLabel'](_0x4811be['model'],_0x2314b6=>{const _0x1731bc=this['_getHeadingLevel'](_0x4811be['model']);return null!==_0x1731bc?_0x2b8f03(_0x2314b6,_0x1731bc):_0x464b82(_0x2314b6,_0x4811be['title']);});function _0x2b8f03(_0x23f9e8,_0x1b0ef6){return c(_0x47db7f,'ELEMENT_HEADING',[_0x23f9e8,_0x1b0ef6]);}function _0x464b82(_0x30d673,_0x30eef){return c(_0x47db7f,'ELEMENT_HEADING_CUSTOM',[_0x30d673,_0x30eef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54e5b5=this['editor'],_0x1ec383=_0x54e5b5['locale'];function _0x1afee3(_0x16a1e7,_0x13d869){return c(_0x1ec383,'ELEMENT_HEADING_CUSTOM',[_0x16a1e7,_0x13d869]);}_0x54e5b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x556f5e=>{if('formatBlock'!=_0x556f5e['type'])return;const {data:_0x290abe}=_0x556f5e;if(_0x290abe&&'heading'==_0x290abe['commandName']){const _0x282ec9=_0x290abe['commandParams'][0x0]['value'],_0x50f025=this['_getHeadingLevel'](_0x282ec9);if(null!==_0x50f025)return{'type':'format','content':c(_0x1ec383,'*Change\x20to:*\x20%0',(_0xfaa1ed=0x1,_0x580934=_0x50f025,c(_0x1ec383,'ELEMENT_HEADING',[_0xfaa1ed,_0x580934])))};const _0x477b11=this['_headingOptions']['find'](_0x381c33=>_0x381c33['model']===_0x282ec9)['title'];return{'type':'format','content':c(_0x1ec383,'*Change\x20to:*\x20%0',_0x1afee3(0x1,_0x477b11))};}var _0xfaa1ed,_0x580934;});}['_getHeadingLevel'](_0x35d6fb){const _0x1ba550=_0x35d6fb['match'](/^heading(\d+)/);if(_0x1ba550)return _0x1ba550[0x1];const _0x35d197=this['_headingOptions']?.['find'](_0xee7080=>_0xee7080['model']==_0x35d6fb);if(_0x35d197&&_0x35d197['view']){const _0x1368dc=_0x35d197['view'],_0x1c9f97=(_0x1368dc['name']??_0x1368dc)['match'](/^h(\d+)/);if(_0x1c9f97)return _0x1c9f97[0x1];}return null;}}class it extends _0x55fa68{['afterInit'](){const _0x120733=this['editor'];if(!_0x120733['plugins']['has']('HighlightEditing'))return;const _0x4c1988=_0x120733['plugins']['get']('TrackChangesEditing'),_0x5f4e7d=_0x120733['locale'];_0x4c1988['enableDefaultAttributesIntegration']('highlight'),_0x4c1988['registerInlineAttribute']('highlight'),_0x4c1988['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5f4e7d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26dfe8=this['editor'],_0x3a0488=_0x26dfe8['locale'];_0x26dfe8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35fbde=>{if('formatInline'!=_0x35fbde['type'])return;const {data:_0x14c3be}=_0x35fbde;if(_0x14c3be&&'highlight'==_0x14c3be['commandName']){const _0x2c5c73=_0x3a0488['t'],_0x2f46b0=_0x14c3be['commandParams'][0x0]['value'];if(_0x2f46b0){const _0x23b7e6=_0x26dfe8['config']['get']('highlight.options')['find'](_0x28c7af=>_0x28c7af['model']==_0x2f46b0),_0x4acfd2=_0x2c5c73(_0x23b7e6['title'])['toLowerCase']();return{'type':'format','content':c(_0x3a0488,'*Set\x20highlight:*\x20%0',_0x4acfd2),'color':{'value':_0x23b7e6['color'],'title':_0x23b7e6['title']}};}return{'type':'format','content':c(_0x3a0488,'*Remove\x20highlight*',c(_0x3a0488,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x55fa68{['afterInit'](){const _0x12d945=this['editor'];if(!_0x12d945['plugins']['has']('HorizontalLineEditing'))return;_0x12d945['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a65e7=_0x12d945['plugins']['get']('TrackChangesEditing'),_0x3c6b83=_0x12d945['locale'];_0x4a65e7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d14dc=>c(_0x3c6b83,'ELEMENT_HORIZONTAL_LINE',_0x4d14dc)),_0x12d945['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x626e8f,{writer:_0x2a07da,options:_0x1fa04b})=>{if(!_0x1fa04b['showSuggestionHighlights'])return null;const _0x15309c=_0x2a07da['createContainerElement']('div'),_0x5d1543=_0x2a07da['createEmptyElement']('hr');return _0x2a07da['addClass']('ck-horizontal-line',_0x15309c),_0x2a07da['insert'](_0x2a07da['createPositionAt'](_0x15309c,0x0),_0x5d1543),_0x15309c;},'converterPriority':'high'});}}class ot extends _0x55fa68{['afterInit'](){const _0x3b9e4a=this['editor'];if(!_0x3b9e4a['plugins']['has']('HtmlEmbed'))return;const _0x589deb=_0x3b9e4a['plugins']['get']('TrackChangesEditing'),_0x213b9b=_0x3b9e4a['locale'];_0x589deb['descriptionFactory']['registerElementLabel']('rawHtml',_0x5e4188=>c(_0x213b9b,'ELEMENT_HTML_EMBED',_0x5e4188)),_0x589deb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x589deb['registerBlockAttribute']('value'),_0x589deb['descriptionFactory']['registerDescriptionCallback'](_0x56a186=>{if('attribute'!=_0x56a186['type'])return;const {data:_0x157b4c}=_0x56a186;if(_0x157b4c&&'value'==_0x157b4c['key']&&_0x56a186['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3ec516=c(_0x213b9b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x213b9b,'*Change\x20%0\x20content*',_0x3ec516)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35f7b5=this['editor'],_0x3fb281=_0x35f7b5['locale'];_0x35f7b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xafe84d=>{if('formatBlock'!=_0xafe84d['type'])return;const {data:_0x49049f}=_0xafe84d;if(_0x49049f&&'htmlEmbed'==_0x49049f['commandName']){const _0x32a211=c(_0x3fb281,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3fb281,'*Change\x20%0\x20content*',_0x32a211)};}});}}class rt extends _0x55fa68{['afterInit'](){const _0x3e714d=this['editor'];if(!_0x3e714d['plugins']['has']('ImageEditing'))return;const _0x518d09=_0x3e714d['plugins']['get']('TrackChangesEditing'),_0xced9cc=_0x3e714d['plugins']['get']('ImageUtils'),_0x4ece7f=_0x3e714d['locale'];_0x518d09['enableCommand']('insertImage'),_0x518d09['descriptionFactory']['registerElementLabel']('imageBlock',_0x3cd09a=>c(_0x4ece7f,'ELEMENT_IMAGE',_0x3cd09a)),_0x518d09['descriptionFactory']['registerElementLabel']('imageInline',_0x5e592a=>c(_0x4ece7f,'ELEMENT_INLINE_IMAGE',_0x5e592a)),_0x518d09['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4ece7f,'ELEMENT_CAPTION')),_0x3e714d['plugins']['has']('ImageUploadEditing')&&_0x518d09['enableCommand']('uploadImage'),_0x3e714d['plugins']['has']('ImageBlockEditing')&&_0x3e714d['plugins']['has']('ImageInlineEditing')&&(_0x518d09['enableCommand']('imageTypeInline',(_0xb4250a,_0x37f455)=>{const _0x2fb6d7=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']);_0x3e714d['model']['change'](()=>{_0x518d09['markBlockFormat'](_0x2fb6d7,{'commandName':'imageTypeInline','commandParams':[_0x37f455]},[],'convertBlockImageToInline');});}),_0x518d09['enableCommand']('imageTypeBlock',(_0xae5fa7,_0x2da27b)=>{_0x3e714d['model']['change'](_0x57246c=>{let _0x31d10e=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x54db01=_0x57246c['createRangeOn'](_0x31d10e);const _0x347365=_0x48085b['fromPosition'](_0x54db01['start'],'toPrevious'),_0x43d324=_0x48085b['fromPosition'](_0x54db01['end'],'toNext');_0x518d09['forceDefaultExecution'](()=>_0xae5fa7(_0x2da27b)),_0x31d10e=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x54db01=_0x57246c['createRangeOn'](_0x31d10e);const _0x25de5d=_0x57246c['createRange'](_0x347365,_0x43d324);_0x347365['detach'](),_0x43d324['detach'](),_0x518d09['markBlockFormat'](_0x31d10e,{'commandName':'imageTypeInline','commandParams':[_0x2da27b]},[],'convertInlineImageToBlock'),_0x25de5d['start']['isBefore'](_0x54db01['start'])&&_0x518d09['markInsertion'](_0x57246c['createRange'](_0x25de5d['start'],_0x54db01['start']),'convertInlineImageToBlock'),_0x54db01['end']['isBefore'](_0x25de5d['end'])&&_0x518d09['markInsertion'](_0x57246c['createRange'](_0x54db01['end'],_0x25de5d['end']),'convertInlineImageToBlock');});}),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x518d09['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x243d50])=>{const _0x132782=_0x518d09['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x45c3a0=_0x243d50['start'],_0x589b8a=_0x243d50['end'];const _0x5ce633=_0x3e714d['model']['schema']['getNearestSelectionRange'](_0x45c3a0,'backward'),_0x4e2c80=_0x3e714d['model']['schema']['getNearestSelectionRange'](_0x589b8a,'forward');_0x5ce633['isCollapsed']&&(_0x45c3a0=_0x5ce633['start']),_0x4e2c80['isCollapsed']&&(_0x589b8a=_0x4e2c80['end']),_0x132782([_0x3e714d['model']['createRange'](_0x45c3a0,_0x589b8a)]);}),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xcd8df1),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xcd8df1)),_0x3e714d['plugins']['has']('ImageCaptionEditing')&&(_0x518d09['enableCommand']('toggleImageCaption',(_0x4cd9d1,_0x553795)=>{const _0xc9dd0a=_0x3e714d['plugins']['get']('ImageCaptionUtils');let _0x33e737=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x37834f=_0xc9dd0a['getCaptionFromImageModelElement'](_0x33e737);_0x3e714d['model']['change'](()=>{if(_0x37834f)return void _0x518d09['markDeletion'](_0x3e714d['model']['createRangeOn'](_0x37834f));const _0x48af4b=_0xced9cc['isBlockImage'](_0x33e737);_0x4cd9d1(_0x553795),_0x33e737=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x37834f=_0xc9dd0a['getCaptionFromImageModelElement'](_0x33e737),_0x518d09['markInsertion'](_0x3e714d['model']['createRangeOn'](_0x37834f),_0x48af4b?null:'imageCaption');});}),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xcd8df1));const _0x49f704=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49147e(_0x5e50ac,_0x1dc373){const _0x1f00da=_0x49f704['findIndex'](({type:_0x4bc391,subType:_0x5c6db3})=>_0x5e50ac['type']==_0x4bc391&&_0x5e50ac['subType']==_0x5c6db3),_0x2aec47=_0x49f704['findIndex'](({type:_0x4ccce2,subType:_0x1f7932})=>_0x1dc373['type']==_0x4ccce2&&_0x1dc373['subType']==_0x1f7932);if(_0x1f00da<0x0||_0x2aec47<0x0)return!0x1;const _0x46184a=_0x5e50ac['getFirstRange'](),_0x43a14b=_0x1dc373['getFirstRange']();if((0x0==_0x1f00da||0x1==_0x1f00da)&&0x2==_0x2aec47&&_0x46184a['isIntersecting'](_0x43a14b))return!0x0;if(0x2==_0x1f00da&&0x3==_0x2aec47){const _0x433314=_0x518d09['_findSuggestions'](_0x46184a,'insertion')['filter'](({suggestion:_0xd27b9d,meta:_0x864500})=>_0x864500['isOwn']&&'convertInlineImageToBlock'==_0xd27b9d['subType']);if(_0x433314['length']>0x1&&_0x43a14b['end']['isEqual'](_0x46184a['start']))return!0x0;if(0x1==_0x433314['length']&&(_0x46184a['start']['isEqual'](_0x43a14b['end'])||_0x46184a['end']['isEqual'](_0x43a14b['start'])))return!0x0;}if(0x3==_0x1f00da&&0x3==_0x2aec47&&_0x46184a['start']['isBefore'](_0x43a14b['start'])){const _0x2bcef8=_0x46184a['end']['nodeAfter'],_0x249db7=_0x43a14b['start']['nodeBefore'];return _0xced9cc['isBlockImage'](_0x2bcef8)&&_0x2bcef8===_0x249db7;}return!0x1;}function _0xcd8df1(_0x4407c8,_0x29f12e){return _0x49147e(_0x4407c8,_0x29f12e)?[_0x4407c8,_0x29f12e]:_0x49147e(_0x29f12e,_0x4407c8)?[_0x29f12e,_0x4407c8]:null;}_0x3e714d['plugins']['has']('ImageResize')&&(_0x518d09['enableDefaultAttributesIntegration']('resizeImage'),_0x518d09['registerBlockAttribute']('resizedWidth'),_0x518d09['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4ece7f,'FORMAT_IMAGE_SIZE'))),_0x3e714d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x518d09['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x518d09['registerBlockAttribute']('alt')),_0x3e714d['plugins']['has']('PictureEditing')&&(_0x518d09['registerBlockAttribute']('sources'),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x502b4d=>{if('attribute'!=_0x502b4d['type'])return;const {data:_0x57eed5}=_0x502b4d;return _0x57eed5&&'sources'==_0x57eed5['key']?{'type':'format','content':''}:void 0x0;})),_0x3e714d['plugins']['has']('ImageSizeAttributes')&&(_0x518d09['registerBlockAttribute']('width'),_0x518d09['registerBlockAttribute']('height'),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x58e236=>{if('attribute'!=_0x58e236['type'])return;const {data:_0x2b380b}=_0x58e236;return!_0x2b380b||'width'!=_0x2b380b['key']&&'height'!=_0x2b380b['key']?void 0x0:{'type':'format','content':''};})),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x4d40f7=>{if(!!_0x49f704['find'](({type:_0x46ac03,subType:_0x436135})=>_0x4d40f7['type']==_0x46ac03&&_0x4d40f7['subType']==_0x436135))return _0x4d40f7['previous']?{}:void 0x0;}),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x40205d=>{if('insertion'==_0x40205d['type']||'deletion'==_0x40205d['type']){const _0x315ae0=_0x40205d['getContainedElement']();if(_0x315ae0&&_0x315ae0['is']('element','caption'))return{'type':'insertion'==_0x40205d['type']?'addObject':'removeObject','element':_0x315ae0,'quantity':0x1};}}),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x5aa36f=>'formatBlock'==_0x5aa36f['type']&&'convertInlineImageToBlock'==_0x5aa36f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5aa36f['type']&&'convertBlockImageToInline'==_0x5aa36f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x140989=>{if('attribute'!=_0x140989['type'])return;const {data:_0x5b5621}=_0x140989;if(!_0x5b5621||'alt'!=_0x5b5621['key'])return;const _0x2a2a53=_0x5b5621['newValue'];return _0x2a2a53?{'type':'format','content':c(_0x4ece7f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a2a53+'\x22')}:{'type':'format','content':c(_0x4ece7f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4db3=this['editor'],_0x1d499c=_0x3a4db3['locale'];_0x3a4db3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ac4d1=>{if('formatBlock'!=_0x1ac4d1['type']&&'formatInline'!=_0x1ac4d1['type'])return;const {data:_0x100e5f}=_0x1ac4d1;if(_0x100e5f){if('imageTextAlternative'==_0x100e5f['commandName']){const _0x4238c4=_0x100e5f['commandParams'][0x0]['newValue'];return _0x4238c4?{'type':'format','content':c(_0x1d499c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4238c4+'\x22')}:{'type':'format','content':c(_0x1d499c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x100e5f['commandName']){const _0x1b3050=_0x100e5f['commandParams'][0x0]['width'];return _0x1b3050?{'type':'format','content':c(_0x1d499c,'*Set\x20image\x20width:*\x20%0',_0x1b3050)}:{'type':'format','content':c(_0x1d499c,'*Reset\x20image\x20width*')};}}});}}class at extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x228619=this['editor']['locale'],_0x4743a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4743a2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4743a2['registerBlockAttribute']('src'),_0x4743a2['descriptionFactory']['registerDescriptionCallback'](_0x4374f8=>{if('attribute'!=_0x4374f8['type'])return;const {data:_0x5a12e3}=_0x4374f8;return _0x5a12e3&&'src'==_0x5a12e3['key']?_0x5a12e3['newValue']&&_0x5a12e3['oldValue']?{'type':'format','content':c(_0x228619,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b4bd6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b4bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3b4bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b4bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3b4bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4c64=this['editor'],_0x54e346=_0x5f4c64['locale'];_0x5f4c64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x443e6c=>{if('formatBlock'!=_0x443e6c['type']&&'formatInline'!=_0x443e6c['type'])return;const {data:_0x3932d9}=_0x443e6c;if(!_0x3932d9||'replaceImageSource'!=_0x3932d9['commandName'])return;return{'type':'format','content':c(_0x54e346,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x55fa68{['afterInit'](){const _0x5b4eaa=this['editor'];if(!_0x5b4eaa['plugins']['has']('ImageStyleEditing'))return;const _0x24e75a=_0x5b4eaa['plugins']['get']('TrackChangesEditing'),_0x2dd361=_0x5b4eaa['plugins']['get']('ImageUtils'),_0x407fd3={};_0x24e75a['enableCommand']('imageStyle',(_0x483aae,_0x31001d)=>{const _0x48b11b=_0x5b4eaa['plugins']['get']('Users')['me'],_0x4bee5b=_0x5b4eaa['commands']['get']('imageStyle');let _0x2b4adc=_0x2dd361['getClosestSelectedImageElement'](_0x5b4eaa['model']['document']['selection']),_0xe3af2e=_0x5b4eaa['model']['createRangeOn'](_0x2b4adc),_0x33f9bd=_0x4bee5b['value'];if(_0x33f9bd==_0x31001d['value'])return;const _0x330d5a={'commandName':'imageStyle','commandParams':[_0x31001d],'formatGroupId':_0x5e3891()};_0x5b4eaa['model']['change'](()=>{if(_0x24e75a['getSuggestions']()['filter'](_0x5007b7=>_0x5007b7['isInContent']&&_0x48b11b==_0x5007b7['author']&&('formatBlock'==_0x5007b7['type']||'formatInline'==_0x5007b7['type'])&&('imageStylePreApply'==_0x5007b7['subType']||'imageStylePostApply'==_0x5007b7['subType'])&&_0x5007b7['getFirstRange']()['isEqual'](_0xe3af2e))['forEach'](_0x30821c=>_0x24e75a['discardSuggestion'](_0x30821c['head'])),_0x2b4adc=_0x2dd361['getClosestSelectedImageElement'](_0x5b4eaa['model']['document']['selection']),_0xe3af2e=_0x5b4eaa['model']['createRangeOn'](_0x2b4adc),_0x4bee5b['refresh'](),_0x5b4eaa['commands']['get']('imageTypeInline')['refresh'](),_0x5b4eaa['commands']['get']('imageTypeBlock')['refresh'](),_0x33f9bd=_0x4bee5b['value'],_0x33f9bd!=_0x31001d['value'])return _0x2dd361['isInlineImage'](_0x2b4adc)&&_0x4bee5b['shouldConvertImageType'](_0x31001d['value'],_0x2b4adc)?(_0x483aae({..._0x31001d,'setImageSizes':!0x1}),_0x2b4adc=_0x2dd361['getClosestSelectedImageElement'](_0x5b4eaa['model']['document']['selection']),void _0x24e75a['markBlockFormat'](_0x2b4adc,{..._0x330d5a,'commandReversedParams':[{'value':_0x33f9bd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2dd361['isBlockImage'](_0x2b4adc)?_0x24e75a['markBlockFormat'](_0x2b4adc,_0x330d5a,[],'imageStylePostApply'):_0x24e75a['markInlineFormat'](_0xe3af2e,_0x330d5a,'imageStylePostApply'));});});for(const _0x5073ee of _0x5b4eaa['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x407fd3[_0x5073ee['name']]=_0x5073ee['title']['toLowerCase']();_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57c32e])=>{_0x2dd361['setImageNaturalSizeAttributes'](_0x57c32e['getContainedElement']());}),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ae31e,_0x4489b6)=>{_0x24e75a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ae31e,{'commandName':_0x4489b6['commandName'],'commandParams':_0x4489b6['commandReversedParams']});}),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x661483,_0xc9967b){if(_0x4a8e13(_0x661483,_0xc9967b))return[_0x661483,_0xc9967b];if(_0x4a8e13(_0xc9967b,_0x661483))return[_0xc9967b,_0x661483];return null;});const _0x3111f5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a8e13(_0x2d8eb3,_0x50db22){const _0xc4cd5e=_0x3111f5['findIndex'](({type:_0x51d4a7,subType:_0x47d6dd})=>_0x2d8eb3['type']==_0x51d4a7&&_0x2d8eb3['subType']==_0x47d6dd),_0x5d7153=_0x3111f5['findIndex'](({type:_0x5649cd,subType:_0x32afa1})=>_0x50db22['type']==_0x5649cd&&_0x50db22['subType']==_0x32afa1);if(_0xc4cd5e<0x0||_0x5d7153<0x0)return!0x1;const _0x2d6576=_0x2d8eb3['getFirstRange'](),_0x23176=_0x50db22['getFirstRange']();if((0x0==_0xc4cd5e||0x1==_0xc4cd5e)&&0x2==_0x5d7153&&_0x2d6576['isIntersecting'](_0x23176))return!0x0;if(0x2==_0xc4cd5e&&0x3==_0x5d7153){const _0x5f2095=_0x24e75a['_findSuggestions'](_0x2d6576,'insertion')['filter'](({suggestion:_0x5284ff,meta:_0x11a916})=>_0x11a916['isOwn']&&'convertInlineImageToBlock'==_0x5284ff['subType']);if(_0x5f2095['length']>0x1&&_0x23176['end']['isEqual'](_0x2d6576['start']))return!0x0;if(0x1==_0x5f2095['length']&&(_0x2d6576['start']['isEqual'](_0x23176['end'])||_0x2d6576['end']['isEqual'](_0x23176['start'])))return!0x0;}if(0x3==_0xc4cd5e&&0x3==_0x5d7153&&_0x2d6576['start']['isBefore'](_0x23176['start'])){const _0x1c9f3b=_0x2d6576['end']['nodeAfter'],_0x4cb331=_0x23176['start']['nodeBefore'];return _0x2dd361['isBlockImage'](_0x1c9f3b)&&_0x1c9f3b===_0x4cb331;}return!0x1;}_0x5b4eaa['model']['document']['registerPostFixer'](()=>{let _0x31bb69=!0x1;const _0x3f1bfb=Array['from'](_0x5b4eaa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32745e,data:_0x16e9ec}of _0x3f1bfb){const {group:_0x5e0ab6,type:_0x5d1def,subType:_0x35ac72,id:_0x18903f}=_0x24e75a['_splitMarkerName'](_0x32745e);if('suggestion'==_0x5e0ab6&&_0x24e75a['hasSuggestion'](_0x18903f)){if('formatBlock'==_0x5d1def&&('imageStylePreApply'==_0x35ac72||'imageStylePostApply'==_0x35ac72)){const _0x1f21c9=_0x24e75a['getSuggestion'](_0x18903f);if(_0x16e9ec['newRange']){const _0x75e422=_0x1f21c9['getFirstRange']()['getContainedElement']();if(_0x2dd361['isBlockImage'](_0x75e422))continue;_0x24e75a['discardSuggestion'](_0x1f21c9),_0x31bb69=!0x0;}}if('insertion'==_0x5d1def&&'imageCaption'==_0x35ac72&&!_0x16e9ec['newRange']){const _0x362a48=_0x24e75a['getSuggestion'](_0x18903f);_0x362a48['next']&&_0x362a48['next']['isInContent']&&(_0x24e75a['discardSuggestion'](_0x362a48['next']),_0x31bb69=!0x0);}}}return _0x31bb69;}),this['_registerLegacyDescription'](_0x407fd3);}['_registerLegacyDescription'](_0x28dedb){const _0x2480ad=this['editor'],_0x205e40=_0x2480ad['locale'];_0x2480ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593598=>{if('formatBlock'!=_0x593598['type']&&'formatInline'!=_0x593598['type'])return;const {data:_0x4c580e}=_0x593598;if(!_0x4c580e||'imageStyle'!=_0x4c580e['commandName'])return;const _0x5ba2bf=_0x4c580e['commandParams'][0x0]['value'];return _0x3d65c5('side'===_0x5ba2bf?c(_0x205e40,'FORMAT_SIDE_IMAGE'):_0x28dedb[_0x5ba2bf]||_0x5ba2bf);function _0x3d65c5(_0x5a4024){return{'type':'format','content':c(_0x205e40,'*Format:*\x20%0',_0x5a4024)};}});}}class ut extends _0x55fa68{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x544811){super(_0x544811),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x25ad58=this['editor'],_0x23e8eb=_0x25ad58['commands']['get']('importWord'),_0x48e6d1=_0x25ad58['commands']['get']('trackChanges');_0x23e8eb&&(_0x23e8eb['on']('execute',(_0x454e85,[,_0x4fdaf1])=>{this['_trackChangesValueDuringImport']=_0x48e6d1['value'],_0x4fdaf1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x23e8eb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x23e8eb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48e6d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x25ad58['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3f9e09,_0x2ad0cd){const {suggestions:_0x367699}=_0x2ad0cd,_0x1c6453=this['editor']['commands']['get']('trackChanges'),_0x4872c9=_0x1c6453['value'];this['_trackChangesValueDuringImport']!==_0x4872c9&&(_0x1c6453['execute'](),this['_trackChangesExecuted']=!0x0),_0x367699&&_0x367699['forEach'](({id:_0x349932,type:_0x1e6f85,author:_0x4478ca,created_at:_0x3d98fb})=>{const _0x30c3d3={'id':_0x349932,'type':_0x1e6f85,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4478ca,'createdAt':_0x3d98fb?new Date(_0x3d98fb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30c3d3);});}}class ft extends _0x55fa68{['afterInit'](){const _0x5c811f=this['editor'],_0x5eec09=_0x5c811f['plugins']['get']('TrackChangesEditing');if(_0x5c811f['plugins']['has']('IndentEditing')&&(_0x5eec09['enableCommand']('indent'),_0x5eec09['enableCommand']('outdent')),_0x5c811f['plugins']['has']('IndentBlock')){for(const _0x556b4a of['indentBlock','outdentBlock'])_0x5eec09['enableDefaultAttributesIntegration'](_0x556b4a);}const _0x1faa12=_0x5c811f['locale'];_0x5eec09['registerBlockAttribute']('blockIndent'),_0x5eec09['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1faa12,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2acb2a=this['editor'],_0x4fddf9=_0x2acb2a['locale'],_0x2e864a=_0x2acb2a['plugins']['get']('TrackChangesEditing');_0x2e864a['descriptionFactory']['registerDescriptionCallback'](_0x121865=>{if('formatBlock'!=_0x121865['type'])return;const {data:_0x270dc4}=_0x121865;if(!_0x270dc4)return;if('indentBlock'!=_0x270dc4['commandName']&&'outdentBlock'!=_0x270dc4['commandName'])return;const _0xffb51d=_0x121865['getItems']()[0x0],_0x10a331=_0x2e864a['descriptionFactory']['getItemLabel'](_0xffb51d);return'indentBlock'==_0x270dc4['commandName']?{'type':'format','content':c(_0x4fddf9,'*Indent:*\x20%0',_0x10a331)}:'outdentBlock'==_0x270dc4['commandName']?{'type':'format','content':c(_0x4fddf9,'*Outdent:*\x20%0',_0x10a331)}:void 0x0;});}}class ht extends _0x55fa68{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x55fa68{['afterInit'](){const _0x383829=this['editor'];if(!_0x383829['plugins']['has']('LinkEditing'))return;const _0x5d0787=_0x383829['plugins']['get']('TrackChangesEditing'),_0x3f48f4=_0x383829['commands']['get']('link');_0x5d0787['enableDefaultAttributesIntegration']('link'),_0x5d0787['enableDefaultAttributesIntegration']('unlink'),_0x5d0787['registerInlineAttribute']('linkHref');for(const _0x30f70a of _0x3f48f4['manualDecorators'])_0x5d0787['registerInlineAttribute'](_0x30f70a['id']),_0x5d0787['descriptionFactory']['registerAttributeLabel'](_0x30f70a['id'],'link\x20('+_0x30f70a['label']['toLowerCase']()+')');_0x5d0787['descriptionFactory']['registerDescriptionCallback'](_0x49346c=>{if('attribute'!=_0x49346c['type'])return;const {data:_0x6bfbf9}=_0x49346c;if(!_0x6bfbf9||'linkHref'!=_0x6bfbf9['key'])return;const _0x13fca4=_0x6bfbf9['newValue'],_0xcf30f9=_0x383829['locale'];return{'type':'format','content':null==_0x13fca4?c(_0xcf30f9,'*Remove\x20link*'):c(_0xcf30f9,'*Set\x20link:*\x20%0','\x22'+_0x13fca4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26cddc=this['editor'],_0x1ebf4a=_0x26cddc['locale'];_0x26cddc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c752f=>{if('formatInline'!=_0x2c752f['type'])return;const {data:_0x59ecd0}=_0x2c752f;if(_0x59ecd0){if('link'==_0x59ecd0['commandName']){const _0x28e6db=_0x59ecd0['commandParams'][0x0];return{'type':'format','content':c(_0x1ebf4a,'*Set\x20link:*\x20%0','\x22'+_0x28e6db+'\x22')};}return'unlink'==_0x59ecd0['commandName']?{'type':'format','content':c(_0x1ebf4a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x55fa68{['afterInit'](){const _0x215d16=this['editor'],_0x128c11=_0x215d16['locale'];if(!_0x215d16['plugins']['has']('LegacyListEditing'))return;const _0x139825=_0x215d16['plugins']['get']('TrackChangesEditing'),_0x52c007=_0x215d16['plugins']['has']('LegacyTodoListEditing');function _0x9e711(_0x546a76){return()=>{const _0x427a06=_0x215d16['model']['document']['selection'],_0x503db0=_0x215d16['commands']['get'](_0x546a76);if(_0x503db0['value'])return void _0x215d16['execute']('paragraph',{});const _0x2ca820=_0x546a76['slice'](0x0,-0x4),_0x5be98f=function(_0x4fdf00,_0xc29ded,_0x22e094){let _0x128393=Array['from'](_0x4fdf00)['filter'](_0x67f106=>function(_0x1e62cf,_0x354914){return _0x354914['checkChild'](_0x1e62cf['parent'],'listItem')&&!_0x354914['isObject'](_0x1e62cf);}(_0x67f106,_0x22e094));_0x128393=_0x128393['filter'](_0x1526c4=>!_0x1526c4['is']('element','listItem')||_0x1526c4['getAttribute']('listType')!=_0xc29ded);const _0x5869d5=new Set();for(const _0x2b0077 of _0x128393)_0x2b0077['is']('element','listItem')?_0x5869d5['add'](Le(_0x2b0077)):_0x5869d5['add'](_0x2b0077);return Array['from'](_0x5869d5);}(_0x427a06['getSelectedBlocks'](),_0x2ca820,_0x215d16['model']['schema']);_0x215d16['model']['change'](()=>{for(const _0x918dc of _0x5be98f)_0x139825['markBlockFormat'](_0x918dc,{'commandName':_0x546a76,'commandParams':[{'forceValue':!_0x503db0['value']}],'formatGroupId':'blockName'},Ee(_0x918dc));});};}function _0xa5d039(_0x5aaeb7){return()=>{const _0x770910=function(_0x2b5317){let _0x3554df=Array['from'](_0x2b5317);const _0x3ba54e=_0x3554df['findIndex'](_0x52291d=>'listItem'!=_0x52291d['name']);return _0x3ba54e>-0x1&&(_0x3554df=_0x3554df['slice'](0x0,_0x3ba54e)),_0x3554df;}(_0x215d16['model']['document']['selection']['getSelectedBlocks']()),_0x56e656=_0x215d16['model']['createRange'](_0x215d16['model']['createPositionAt'](_0x770910[0x0],'before'),_0x215d16['model']['createPositionAt'](_0x770910[_0x770910['length']-0x1],'end'));_0x215d16['model']['change'](()=>{_0x139825['markBlockFormat'](_0x56e656,{'commandName':_0x5aaeb7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1cf22c){const _0x59a06a=new Set();for(const _0x582143 of _0x1cf22c){let _0x33f48d=_0x582143['nextSibling'];for(;_0x33f48d&&_0x33f48d['getAttribute']('listIndent')>_0x582143['getAttribute']('listIndent');)_0x59a06a['add'](_0x33f48d),_0x33f48d=_0x33f48d['nextSibling'];}return Array['from'](_0x59a06a);}(_0x770910));});};}_0x139825['enableCommand']('numberedList',_0x9e711('numberedList')),_0x139825['enableCommand']('bulletedList',_0x9e711('bulletedList')),_0x52c007&&_0x139825['enableCommand']('todoList',_0x9e711('todoList')),_0x139825['enableCommand']('indentList',_0xa5d039('indentList')),_0x139825['enableCommand']('outdentList',_0xa5d039('outdentList')),_0x52c007&&_0x139825['enableCommand']('checkTodoList',()=>{const _0x2fe043=_0x215d16['commands']['get']('checkTodoList'),_0x13654d=Array['from'](_0x2fe043['_selectedElements']);_0x13654d['filter'](_0x15753a=>_0x15753a['getAttribute']('todoListChecked')!=_0x2fe043['value']),_0x215d16['model']['change'](()=>{for(const _0x38cff2 of _0x13654d)_0x139825['markBlockFormat'](_0x38cff2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2fe043['value']}]});});}),_0x139825['descriptionFactory']['registerElementLabel']('listItem',_0x22ac5c=>c(_0x128c11,'ELEMENT_LIST_ITEM',_0x22ac5c)),_0x139825['descriptionFactory']['registerDescriptionCallback'](_0x242f6d=>{if('formatBlock'!=_0x242f6d['type']&&'formatInline'!=_0x242f6d['type'])return;const {data:_0x425b0d}=_0x242f6d;if(_0x425b0d){if('numberedList'==_0x425b0d['commandName']||'bulletedList'==_0x425b0d['commandName']||'todoList'==_0x425b0d['commandName'])switch(_0x425b0d['commandName']['replace']('List','')){case'bulleted':return _0x5c3eb6(c(_0x128c11,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c3eb6(c(_0x128c11,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c3eb6(c(_0x128c11,'ELEMENT_TODO_LIST'));}if('indentList'==_0x425b0d['commandName'])return{'type':'format','content':c(_0x128c11,'*Indent:*\x20%0',c(_0x128c11,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x425b0d['commandName'])return{'type':'format','content':c(_0x128c11,'*Outdent:*\x20%0',c(_0x128c11,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x425b0d['commandName'])return _0x425b0d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x128c11,'*Check\x20item*')}:{'type':'format','content':c(_0x128c11,'*Uncheck\x20item*')};}function _0x5c3eb6(_0x367830){return{'type':'format','content':c(_0x128c11,'*Change\x20to:*\x20%0',_0x367830)};}});}}function Le(_0x57995f){const _0x45fa80=_0x57995f['getAttribute']('listIndent');if(0x0==_0x45fa80)return _0x57995f;let _0x191eb6=_0x57995f;for(;_0x57995f['previousSibling']&&_0x57995f['previousSibling']['is']('element','listItem');){const _0x570bf1=_0x57995f['previousSibling']['getAttribute']('listIndent');if(_0x570bf1==_0x45fa80)_0x191eb6=_0x57995f['previousSibling'];else{if(_0x570bf1<_0x45fa80)break;}_0x57995f=_0x57995f['previousSibling'];}return _0x191eb6;}function Ee(_0x40cf55){const _0x490d9c=[];if(_0x40cf55['is']('element','listItem')&&_0x40cf55['getAttribute']('listIndent')>0x0){let _0x32eb7a=_0x40cf55['nextSibling'];for(;_0x32eb7a&&'listItem'==_0x32eb7a['name']&&_0x32eb7a['getAttribute']('listIndent')==_0x40cf55['getAttribute']('listIndent');)_0x490d9c['push'](_0x32eb7a),_0x32eb7a=_0x32eb7a['nextSibling'];}return _0x490d9c;}class Q extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb48df9=this['editor']['config']['get']('list.properties'),_0x58175b=this['editor']['plugins']['get']('TrackChangesEditing');_0xb48df9['styles']&&_0x58175b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb48df9['reversed']&&_0x58175b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb48df9['startIndex']&&_0x58175b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x58175b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f6d46,_0x1383ac={}){const _0x142345=this['editor']['plugins']['get']('TrackChangesEditing'),_0x383480=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x142345['markMultiRangeBlockFormat'](_0x383480,{'commandName':'listStyle','commandParams':[{'type':_0x1383ac['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d9824,_0x4ce421={}){const _0x7af558=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c0880=this['_getSuggestionBlocks'](_0x34664e=>_0x34664e['is']('element','listItem')&&'numbered'===_0x34664e['getAttribute']('listType'));if(_0x5c0880['length']<0x1)return;const _0x407d38=_0x5c0880['map'](_0x3d27f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d27f7,'before'),this['editor']['model']['createPositionAt'](_0x3d27f7,0x0)));this['editor']['model']['change'](()=>{_0x7af558['markMultiRangeBlockFormat'](_0x407d38,{'commandName':'listReversed','commandParams':[{'reversed':_0x4ce421['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28a3e1,_0x5d6466={}){const _0x47b773=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574b08=this['_getSuggestionBlocks'](_0x34b8bb=>_0x34b8bb['is']('element','listItem')&&'numbered'===_0x34b8bb['getAttribute']('listType'));if(_0x574b08['length']<0x1)return;const _0x4ed761=_0x574b08['map'](_0x32f6b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32f6b8,'before'),this['editor']['model']['createPositionAt'](_0x32f6b8,0x0)));this['editor']['model']['change'](()=>{_0x47b773['markMultiRangeBlockFormat'](_0x4ed761,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d6466['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d3844){if('formatBlock'!=_0x5d3844['type']&&'formatInline'!=_0x5d3844['type'])return;const _0x27170f=this['editor']['locale'],{data:_0x58381d}=_0x5d3844;if(!_0x58381d)return;let _0x18fe71,_0x11f93d;switch(_0x58381d['commandName']){case'listStyle':_0x18fe71='*Change\x20to:*\x20%0',_0x11f93d={'type':'format','content':c(_0x27170f,_0x18fe71,c(_0x27170f,this['_getTranslationKeyForListStyle'](_0x58381d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18fe71=_0x58381d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11f93d={'type':'format','content':c(_0x27170f,_0x18fe71)};break;case'listStart':_0x18fe71='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11f93d={'type':'format','content':c(_0x27170f,_0x18fe71,_0x58381d['commandParams'][0x0]['startIndex'])};}return _0x11f93d;}['_getSuggestionBlocksForListStyle'](){const _0x49aa4f=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b2eb2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2b2eb2[0x0]?.['is']('element','listItem')&&_0x2b2eb2['unshift'](..._0x49aa4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2b2eb2[_0x2b2eb2['length']-0x1]?.['is']('element','listItem')&&_0x2b2eb2['push'](..._0x49aa4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b2eb2=[...new Set(_0x2b2eb2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2b2eb2=_0x2b2eb2['filter'](_0x3805da=>_0x3805da['is']('element','listItem'))),_0x2b2eb2;}['_getSuggestionBlocks'](_0x22ccfe){const _0x4177e6=this['editor']['plugins']['get']('LegacyListUtils');let _0xabf619=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x22ccfe)['map'](_0x38c8e8=>{const _0x3d7682=this['editor']['model']['createPositionAt'](_0x38c8e8,0x0);return[..._0x4177e6['getSiblingNodes'](_0x3d7682,'backward'),..._0x4177e6['getSiblingNodes'](_0x3d7682,'forward')];})['flat']();return _0xabf619=[...new Set(_0xabf619)],_0xabf619;}['_getTranslationKeyForListStyle'](_0x55ed62){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x55ed62)||'default')['toUpperCase']()+'_LIST_'+_0x55ed62['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x55fa68{['afterInit'](){const _0x217194=this['editor'];if(!_0x217194['plugins']['has']('MediaEmbedEditing'))return;const _0x40df6b=_0x217194['plugins']['get']('TrackChangesEditing'),_0x501531=_0x217194['locale'];_0x40df6b['enableCommand']('mediaEmbed'),_0x40df6b['descriptionFactory']['registerElementLabel']('media',_0x32b9c0=>c(_0x501531,'ELEMENT_MEDIA',_0x32b9c0)),_0x217194['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4248a3,{writer:_0x10aa1a,options:_0x388b34})=>{if(_0x388b34['showSuggestionHighlights'])return _0x10aa1a['createEmptyElement']('div');},'converterPriority':'high'}),_0x217194['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3665ab,_0x26ccae,_0x244f12)=>{_0x244f12['options']['showSuggestionHighlights']&&_0x3665ab['stop']();},{'priority':'high'});}}class pt extends _0x55fa68{['afterInit'](){const _0x5dc1a2=this['editor'];_0x5dc1a2['plugins']['has']('MentionEditing')&&_0x5dc1a2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x55fa68{['afterInit'](){const _0x7222e7=this['editor'];if(!_0x7222e7['plugins']['has']('MergeFieldsEditing'))return;const _0x123709=_0x7222e7['plugins']['get']('TrackChangesEditing'),_0x41c03c=_0x7222e7['locale'];_0x123709['enableCommand']('insertMergeField'),_0x123709['enableCommand']('insertMergeFieldBlock'),_0x123709['enableCommand']('insertMergeFieldImage'),_0x123709['descriptionFactory']['registerElementLabel']('mergeField',_0x720d1b=>c(_0x41c03c,'ELEMENT_MERGE_FIELD',_0x720d1b)),_0x123709['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e7dd2=>c(_0x41c03c,'ELEMENT_MERGE_FIELD',_0x2e7dd2)),_0x123709['descriptionFactory']['registerDescriptionCallback'](_0x2bfc31=>{if('insertion'!=_0x2bfc31['type']&&'deletion'!=_0x2bfc31['type'])return;const _0x1fd031=_0x2bfc31['getContainedElement']();if(null==_0x1fd031)return;const _0x27ae9a=_0x7222e7['plugins']['get']('MergeFieldsEditing');let _0x589a01;switch(_0x27ae9a['getMergeFieldType'](_0x1fd031)){case null:return;case'image':{const _0x54a25e=_0x27ae9a['unwrapAffixes'](_0x1fd031['getAttribute']('src'));_0x589a01=_0x27ae9a['getLabel'](_0x54a25e)||_0x54a25e;break;}default:{const _0x13bbec=_0x1fd031['getAttribute']('id');_0x589a01=_0x27ae9a['getLabel'](_0x13bbec)||_0x13bbec;break;}}return'insertion'==_0x2bfc31['type']?{'type':'insertion','content':c(_0x41c03c,'*Insert:*\x20%0','\x22'+_0x589a01+'\x22\x20'+c(_0x41c03c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x41c03c,'*Remove:*\x20%0','\x22'+_0x589a01+'\x22\x20'+c(_0x41c03c,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x55fa68{['afterInit'](){const _0x267bc7=this['editor'],_0x553f84=_0x267bc7['plugins']['get']('TrackChangesEditing');_0x267bc7['plugins']['has']('MultiLevelList')&&(_0x553f84['enableDefaultAttributesIntegration']('multiLevelList'),_0x553f84['registerBlockAttribute']('listMarkerStyle'),_0x553f84['descriptionFactory']['registerDescriptionCallback'](_0x3f3e24=>this['handleDescriptions'](_0x3f3e24)));}['handleDescriptions'](_0x53edbf){const _0x303265=this['editor']['locale'],{data:_0x5c9b08}=_0x53edbf,_0x1f53d7={'type':'format','content':''};if(_0x5c9b08&&'listMarkerStyle'==_0x5c9b08['key']){if(!_0x5c9b08['oldValue'])return{'type':'format','content':c(_0x303265,'*Set\x20format:*\x20%0',c(_0x303265,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c9b08['newValue']+')'};if(!_0x5c9b08['newValue']){let _0x8ec2e0=_0x53edbf['head'];for(;_0x8ec2e0;){if(_0x8ec2e0['data']&&'listType'==_0x8ec2e0['data']['key']&&_0x8ec2e0['data']['newValue'])return _0x1f53d7;_0x8ec2e0=_0x8ec2e0['next'];}return{'type':'format','content':c(_0x303265,'*Remove\x20format:*\x20%0',c(_0x303265,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c9b08['oldValue']+')'};}}}}class bt extends _0x55fa68{['afterInit'](){const _0x4d7868=this['editor'];if(!_0x4d7868['plugins']['has']('PageBreakEditing'))return;_0x4d7868['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x317661=_0x4d7868['plugins']['get']('TrackChangesEditing'),_0x25c02d=_0x4d7868['locale'];_0x317661['descriptionFactory']['registerElementLabel']('pageBreak',_0x31fb0f=>c(_0x25c02d,'ELEMENT_PAGE_BREAK',_0x31fb0f));}}class yt extends _0x55fa68{['afterInit'](){const _0x3619c1=this['editor'];if(!_0x3619c1['plugins']['has']('Paragraph'))return;const _0x482ddd=_0x3619c1['locale'],_0x4cb7a1=_0x3619c1['plugins']['get']('TrackChangesEditing');_0x4cb7a1['descriptionFactory']['registerElementLabel']('paragraph',_0x563303=>c(_0x482ddd,'ELEMENT_PARAGRAPH',_0x563303)),_0x4cb7a1['enableDefaultAttributesIntegration']('paragraph'),_0x4cb7a1['enableCommand']('insertParagraph'),_0x3619c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3619c1),{'priority':'highest'}),_0x3619c1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5b2c9b,_0xe8873d,_0x43f30d)=>{_0x43f30d['options']['showSuggestionHighlights']&&nr(_0x3619c1,{'showActiveMarker':!0x1})(_0x5b2c9b,_0xe8873d,_0x43f30d);},{'priority':'highest'});const _0x3bb02a=_0x4cb7a1['descriptionFactory'];_0x3bb02a['registerDescriptionCallback'](_0x34a43d=>{if('insertion'!==_0x34a43d['type'])return;const {start:_0x1a323e,end:_0x87c9e4}=_0x34a43d['getFirstRange']();if(!_0x1a323e['isTouching'](_0x87c9e4)||!_0x1a323e['nodeAfter'])return;const _0x3186e8=_0x3619c1['model']['schema'],_0x5308d6=_0x1a323e['nodeAfter'];return _0x3186e8['isBlock'](_0x5308d6)&&!_0x3186e8['isLimit'](_0x5308d6)&&_0x3186e8['checkChild'](_0x5308d6,'$text')?{'type':'insertion','content':c(_0x482ddd,'*Insert:*\x20%0',_0x3bb02a['getItemLabel'](_0x5308d6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f980d=this['editor'],_0x3caa19=_0x2f980d['locale'];_0x2f980d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37cd3c=>{if('formatBlock'!=_0x37cd3c['type'])return;const {data:_0x3f8d01}=_0x37cd3c;return _0x3f8d01&&'paragraph'==_0x3f8d01['commandName']?{'type':'format','content':c(_0x3caa19,'*Change\x20to:*\x20%0',c(_0x3caa19,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x24abdb,{showActiveMarker:_0x425bb2=!0x0}={}){return(_0x2dcfbf,_0x3bfa64,_0x32e7a7)=>{const _0xe5c758=_0x24abdb['plugins']['get']('TrackChangesEditing'),_0x3798df=_0x3bfa64['markerRange']['start'],_0x7c990c=_0x3bfa64['markerRange']['end'],_0x4c7fce=_0x24abdb['model']['schema'];if(!_0x3798df['isTouching'](_0x7c990c)||!_0x3798df['nodeAfter'])return;const _0x10ea46=_0x3798df['nodeAfter'];if(_0x4c7fce['isBlock'](_0x10ea46)&&!_0x4c7fce['isLimit'](_0x10ea46)&&_0x4c7fce['checkChild'](_0x10ea46,'$text')){if(!_0x32e7a7['consumable']['consume'](_0x3bfa64['markerRange'],_0x2dcfbf['name']))return;const {authorId:_0x57a222}=_0xe5c758['_splitMarkerName'](_0x3bfa64['markerName']),_0x67fe54=_0x32e7a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x57a222}),_0x4929e2=_0x32e7a7['mapper']['toViewPosition'](_0x7c990c);_0x425bb2&&_0xe5c758['activeMarkers']['includes'](_0x3bfa64['markerName'])&&_0x32e7a7['writer']['addClass']('ck-suggestion-marker--active',_0x67fe54),_0x32e7a7['writer']['insert'](_0x4929e2,_0x67fe54),_0x32e7a7['mapper']['bindElementToMarker'](_0x67fe54,_0x3bfa64['markerName']);}};}class jt extends _0x55fa68{['afterInit'](){const _0x2791cf=this['editor'];_0x2791cf['commands']['get']('replaceSource')&&_0x2791cf['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x55fa68{['afterInit'](){const _0x3b15d7=this['editor'];if(!_0x3b15d7['plugins']['has']('RemoveFormatEditing'))return;_0x3b15d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13affa=this['editor'];_0x13affa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ef97=>{if('formatBlock'!=_0x17ef97['type']&&'formatInline'!=_0x17ef97['type'])return;const {data:_0x3d7d62}=_0x17ef97;return _0x3d7d62&&'removeFormat'==_0x3d7d62['commandName']?{'type':'format','content':c(_0x13affa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x55fa68{['afterInit'](){const _0x39bfb5=this['editor'];if(!_0x39bfb5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x51cf57=_0x39bfb5['plugins']['get']('TrackChangesEditing');_0x51cf57['enableCommand']('goToPreviousRestrictedEditingException'),_0x51cf57['enableCommand']('goToNextRestrictedEditingException');const _0x2f8bf3=_0x39bfb5['plugins']['get']('RestrictedEditingModeEditing');_0x2f8bf3['enableCommand']('trackChanges'),_0x2f8bf3['enableCommand']('acceptSuggestion'),_0x2f8bf3['enableCommand']('discardSuggestion'),_0x2f8bf3['enableCommand']('acceptAllSuggestions'),_0x2f8bf3['enableCommand']('discardAllSuggestions'),_0x2f8bf3['enableCommand']('acceptSelectedSuggestions'),_0x2f8bf3['enableCommand']('discardSelectedSuggestions');}}class It extends _0x55fa68{['afterInit'](){const _0x26e999=this['editor'];if(!_0x26e999['plugins']['has']('ShiftEnter'))return;const _0x20f77a=_0x26e999['plugins']['get']('TrackChangesEditing');_0x20f77a['enableCommand']('shiftEnter'),_0x26e999['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x26e999),{'priority':'high'}),_0x26e999['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x26e999),{'priority':'high'}),_0x26e999['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x46d8f2,_0x3022be,_0xee6961)=>{_0xee6961['options']['showSuggestionHighlights']&&je(_0x26e999,{'showActiveMarker':!0x1})(_0x46d8f2,_0x3022be,_0xee6961);}),_0x20f77a['descriptionFactory']['registerElementLabel']('softBreak',_0x2481ea=>c(_0x26e999['locale'],'ELEMENT_LINE_BREAK',_0x2481ea));}}function je(_0x20b1f5,{showActiveMarker:_0x26b1d3=!0x0}={}){return(_0x45ceac,_0x1c2865,_0x2be3f5)=>{const _0x50ba61=_0x20b1f5['plugins']['get']('TrackChangesEditing');if(!_0x2be3f5['consumable']['test'](_0x1c2865['markerRange'],_0x45ceac['name']))return;const _0x376783=_0x20b1f5['model'];for(const _0x5d4d27 of _0x1c2865['markerRange']['getItems']()){if(!_0x5d4d27['is']('element','softBreak'))continue;const _0x15a908='deletion'==_0x1c2865['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x873050}=_0x50ba61['_splitMarkerName'](_0x1c2865['markerName']),_0x115b1d=_0x2be3f5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15a908,'data-author-id':_0x873050}),_0x557bb2=_0x2be3f5['mapper']['toViewPosition'](_0x376783['createPositionBefore'](_0x5d4d27));_0x26b1d3&&_0x50ba61['activeMarkers']['includes'](_0x1c2865['markerName'])&&_0x2be3f5['writer']['addClass']('ck-suggestion-marker--active',_0x115b1d),_0x2be3f5['writer']['insert'](_0x557bb2,_0x115b1d),_0x2be3f5['mapper']['bindElementToMarker'](_0x115b1d,_0x1c2865['markerName']);}};}class _t extends _0x55fa68{['afterInit'](){const _0x2c5427=this['editor'],_0x2cc529=_0x2c5427['model'],_0x1ecd5a=_0x2c5427['locale'];if(!_0x2c5427['plugins']['has']('StandardEditingModeEditing'))return;const _0x1712bb=_0x2c5427['plugins']['get']('TrackChangesEditing'),_0x21a34e='restrictedEditingException',_0x1f67b6=_0x2c5427['commands']['get'](_0x21a34e);_0x1712bb['enableCommand'](_0x21a34e,(_0x47ffa4,_0x4ceeb1={})=>{const _0x50de0a=_0x2cc529['document']['selection'];if(_0x50de0a['isCollapsed'])return void _0x47ffa4(_0x4ceeb1);const _0x32c4c9=void 0x0!==_0x4ceeb1['forceValue']?_0x4ceeb1['forceValue']:!_0x1f67b6['value'];_0x2cc529['change'](()=>{const _0x154a21=Array['from'](_0x50de0a['getRanges']());for(const _0x56d480 of _0x154a21){const _0x285e39=_0x32c4c9?[_0x56d480]:io(_0x21a34e,_0x56d480,_0x2cc529);for(const _0x194310 of _0x285e39)_0x1712bb['markInlineFormat'](_0x194310,{'commandName':_0x21a34e,'commandParams':[{'forceValue':_0x32c4c9}]});}});}),_0x1712bb['descriptionFactory']['registerDescriptionCallback'](_0x39b9b0=>{if('formatBlock'!=_0x39b9b0['type']&&'formatInline'!=_0x39b9b0['type'])return;const {data:_0x445998}=_0x39b9b0;return _0x445998&&_0x445998['commandName']==_0x21a34e?_0x445998['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ecd5a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1ecd5a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x55fa68{['afterInit'](){const _0x2d10ed=this['editor'];if(!_0x2d10ed['plugins']['has']('Style')||!_0x2d10ed['plugins']['has']('DataSchema'))return;const _0x5dfeee=_0x2d10ed['plugins']['get']('TrackChangesEditing'),_0x42764d=_0x2d10ed['locale'],_0x11d117=_0x2d10ed['config']['get']('style')||{},_0x440fd2=_0x2d10ed['plugins']['get']('GeneralHtmlSupport'),_0x5b98de=_0x2d10ed['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2d10ed['plugins']['get']('DataSchema'),_0x11d117['definitions']);_0x5dfeee['enableDefaultAttributesIntegration']('style');const _0x121275=new Set();for(const _0x16ef14 of _0x5b98de['block']){const _0x374800=_0x440fd2['getGhsAttributeNameForElement'](_0x16ef14['element']);_0x121275['add'](_0x374800);}const _0x3b0211=new Set();for(const _0x45eed4 of _0x5b98de['inline']){const _0x49acc9=_0x440fd2['getGhsAttributeNameForElement'](_0x45eed4['element']);_0x3b0211['add'](_0x49acc9);for(const _0x1fcc8f of _0x45eed4['ghsAttributes'])_0x3b0211['add'](_0x1fcc8f);}for(const _0x9ed12d of _0x121275)_0x5dfeee['registerBlockAttribute'](_0x9ed12d),_0x5dfeee['descriptionFactory']['registerAttributeLabel'](_0x9ed12d,c(_0x42764d,'FORMAT_STYLE'));for(const _0x4fddb6 of _0x3b0211)_0x5dfeee['registerInlineAttribute'](_0x4fddb6),_0x5dfeee['descriptionFactory']['registerAttributeLabel'](_0x4fddb6,c(_0x42764d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4953e2=this['editor'],_0x59a751=_0x4953e2['locale'];_0x4953e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2219f1=>{if('formatBlock'!=_0x2219f1['type']&&'formatInline'!=_0x2219f1['type'])return;const {data:_0x567d3e}=_0x2219f1;return _0x567d3e&&'style'===_0x567d3e['commandName']?_0x567d3e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59a751,'*Set\x20format:*\x20%0',_0x567d3e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x59a751,'*Remove\x20format:*\x20%0',_0x567d3e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x55fa68{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b8d8a){super(_0x4b8d8a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4c8a01=this['editor'],_0x3bdfc9=_0x4c8a01['model']['document']['selection'];if(!_0x4c8a01['plugins']['has']('TableEditing'))return;const _0x36e9f7=_0x4c8a01['locale'],_0xe21bfa=_0x4c8a01['plugins']['get']('TrackChangesEditing'),_0x336e67=_0x4c8a01['plugins']['get']('TableUtils');_0xe21bfa['descriptionFactory']['registerElementLabel']('table',_0x12370a=>c(_0x36e9f7,'ELEMENT_TABLE',_0x12370a)),this['_setupColumnsRowsFixing'](),_0xe21bfa['enableCommand']('insertTable'),_0xe21bfa['enableCommand']('selectTableRow'),_0xe21bfa['enableCommand']('selectTableColumn');for(const _0xe467e1 of['insertTableRowAbove','insertTableRowBelow']){const _0x5b9808=_0x4c8a01['commands']['get'](_0xe467e1);_0xe21bfa['enableCommand'](_0xe467e1,_0x583f95=>{_0x4c8a01['model']['change'](_0xea4538=>{_0x583f95();const _0x45f46d='above'===_0x5b9808['order'],_0x445e2d=_0x336e67['getSelectionAffectedTableCells'](_0x3bdfc9),_0x439dae=_0x336e67['getRowIndexes'](_0x445e2d),_0x508147=_0x45f46d?_0x439dae['first']-0x1:_0x439dae['last']+0x1,_0x16144a=_0x445e2d[0x0]['findAncestor']('table'),_0x496402=_0x336e67['createTableWalker'](_0x16144a,{'startRow':_0x508147,'endRow':_0x508147}),_0x5f5142=Array['from'](_0x496402)['map'](_0x5e2c33=>_0xea4538['createRangeOn'](_0x5e2c33['cell']));_0xe21bfa['markMultiRangeInsertion'](_0x5f5142,'tableRow');});});}for(const _0x31a5f6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x299e7f=_0x4c8a01['commands']['get'](_0x31a5f6);_0xe21bfa['enableCommand'](_0x31a5f6,_0x2be6de=>{_0x4c8a01['model']['change'](_0x129f0b=>{_0x2be6de();const _0x5006e8='left'===_0x299e7f['order'],_0x421ac2=_0x336e67['getSelectionAffectedTableCells'](_0x3bdfc9),_0x2652cb=_0x336e67['getColumnIndexes'](_0x421ac2),_0x5924b1=_0x5006e8?_0x2652cb['first']-0x1:_0x2652cb['last']+0x1,_0x8eae7b=_0x421ac2[0x0]['findAncestor']('table'),_0x5d0760=_0x336e67['createTableWalker'](_0x8eae7b,{'startRow':0x0,'column':_0x5924b1,'includeAllSlots':!0x1}),_0x5ae071=Array['from'](_0x5d0760)['map'](_0x4969b6=>_0x129f0b['createRangeOn'](_0x4969b6['cell']));_0xe21bfa['markMultiRangeInsertion'](_0x5ae071,'tableColumn');});});}for(const _0x403d71 of['removeTableRow','removeTableColumn']){const _0x53e704=_0x403d71['substr'](0xb),_0x38e384=_0x53e704['toLowerCase'](),_0x450202=_0x38e384['substr'](0x0,0x3)+'span',_0x326299='table'+_0x53e704,_0x1efc1b='min'+_0x53e704,_0x4a47bb='max'+_0x53e704;_0xe21bfa['enableCommand'](_0x403d71,()=>{_0x4c8a01['model']['change'](_0x211651=>{const _0x3678da=_0x336e67['getSelectionAffectedTableCells'](_0x3bdfc9),_0x53dd05=_0x3678da[0x0]['findAncestor']('table');let _0x5a28b2;if('removeTableRow'==_0x403d71){const _0x3cfce6=_0x336e67['getRowIndexes'](_0x3678da);_0x5a28b2={'startRow':_0x3cfce6['first'],'endRow':_0x3cfce6['last'],'includeAllSlots':!0x0};}else{const _0x4936e5=_0x336e67['getColumnIndexes'](_0x3678da);_0x5a28b2={'startColumn':_0x4936e5['first'],'endColumn':_0x4936e5['last'],'includeAllSlots':!0x0};}const _0x1e459d=_0x336e67['createTableWalker'](_0x53dd05,_0x5a28b2),_0x17f81b=Array['from'](_0x1e459d)['map'](({cell:_0xb294ef})=>_0xb294ef),_0x55c71f=Ne(_0x17f81b['filter'](_0x24d9ac=>_0x24d9ac['hasAttribute'](_0x450202))),_0x3b849b=Ne(_0x17f81b['filter'](_0x511adb=>!_0x511adb['hasAttribute'](_0x450202)))['map'](_0x48ebf0=>_0x211651['createRangeOn'](_0x48ebf0)),_0x21e0c1=_0xe21bfa['markMultiRangeDeletion'](_0x3b849b,_0x326299);if(_0x21e0c1&&('tableRow'==_0x21e0c1['subType']||'tableColumn'==_0x21e0c1['subType'])){const _0xb5f0a=this['_getSuggestionCoords'](_0x21e0c1);for(const _0x40645d of _0x55c71f){const _0x4238ff=_0x211651['createRangeOn'](_0x40645d),_0xa3e971=_0x336e67['getCellLocation'](_0x40645d),_0x1c962e=_0x40645d['getAttribute'](_0x450202)-0x1,_0x349dda=_0xb5f0a[_0x1efc1b],_0x25f4fc=_0xb5f0a[_0x4a47bb];_0x349dda<=_0xa3e971[_0x38e384]&&_0xa3e971[_0x38e384]+_0x1c962e<=_0x25f4fc&&_0x21e0c1['addRange'](_0x4238ff);}}});});}function _0x49c419(_0x4756de){const _0x1b7e9a=Array['from'](_0x3bdfc9['getRanges']())['map'](_0x1ffd02=>_0x3932e8['fromRange'](_0x1ffd02));_0x4c8a01['model']['change'](_0x556686=>{const _0x4f6792=_0x556686['batch'];_0x4756de=_0x4756de['filter'](_0x44c76e=>'$graveyard'!=_0x44c76e['root']['rootName']),_0x556686['setSelection'](_0x4756de),_0x4c8a01['commands']['get']('removeTableRow')['refresh'](),_0x4c8a01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4c8a01['model']['enqueueChange'](()=>{_0x4c8a01['model']['enqueueChange'](_0x4f6792,_0xdc3115=>{const _0x99601e=_0x1b7e9a['filter'](_0x54a253=>'$graveyard'!=_0x54a253['root']['rootName']);_0x99601e['length']>0x0&&_0xdc3115['setSelection'](_0x99601e);for(const _0x497de9 of _0x1b7e9a)_0x497de9['detach']();});});});}function _0x5b484a(_0x5850f1){_0x4c8a01['model']['change'](_0x1de14b=>{const _0x509bc2=Array['from'](_0x3bdfc9['getRanges']())['map'](_0x3a6674=>_0x3932e8['fromRange'](_0x3a6674)),_0x1d54d5=[];for(const _0x3f2c59 of _0x5850f1)for(const _0x31e387 of _0x3f2c59['getItems']({'shallow':!0x0}))_0x1d54d5['push'](_0x31e387);for(const _0x2e6a01 of _0x1d54d5)'$graveyard'!=_0x2e6a01['root']['rootName']&&(_0x1de14b['setSelection'](_0x1de14b['createPositionAt'](_0x2e6a01,0x0)),_0x4c8a01['commands']['get']('removeTableColumn')['refresh'](),_0x4c8a01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d771e=_0x509bc2['filter'](_0x190f62=>'$graveyard'!=_0x190f62['root']['rootName']);_0x5d771e['length']>0x0&&_0x1de14b['setSelection'](_0x5d771e);for(const _0x55f4d9 of _0x509bc2)_0x55f4d9['detach']();});}function _0x1ae480(_0x1c9fef,_0x3cd058){return _0x3cd058['every'](_0x49809f=>_0x1c9fef['some'](_0x24f82a=>_0x24f82a['end']['isEqual'](_0x49809f['start'])||_0x49809f['end']['isEqual'](_0x24f82a['start'])));}function _0x4a4965(_0x39a87b,_0x197595){return!_0x39a87b['some'](_0x2356b1=>_0x197595['some'](_0xbf847f=>_0x2356b1['isIntersecting'](_0xbf847f)))&&_0x39a87b['some'](_0x43061b=>_0x197595['some'](_0x3f4df3=>_0x43061b['end']['isTouching'](_0x3f4df3['start'])));}_0x4c8a01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x661226,_0x306d72,_0x149966)=>{if(!_0x149966['options']['showSuggestionHighlights'])return;const _0x4c3261=_0x306d72['item'];if(!_0x4c3261)return;const _0x2e539=_0x149966['mapper']['toViewElement'](_0x4c3261);function _0x185490(_0x42f01e){return Array['isArray'](_0x42f01e)?_0x42f01e:[_0x42f01e];}_0x2e539&&'tableCell'===_0x4c3261['name']&&_0x3c936c(_0x2e539,_0x149966['writer'],(_0xe21d68,_0x2a14eb,_0x20d5ef)=>_0x20d5ef['addClass'](_0x185490(_0x2a14eb['classes']),_0xe21d68),(_0x23c355,_0x22b0e8,_0x4c0429)=>_0x4c0429['removeClass'](_0x185490(_0x22b0e8['classes']),_0x23c355));},{'priority':'highest'}),_0xe21bfa['descriptionFactory']['registerDescriptionCallback'](_0x599b53=>{if('insertion'!=_0x599b53['type']&&'deletion'!=_0x599b53['type'])return;const _0x431d3f=_0x599b53['getContainedElement']();if(null!=_0x431d3f&&_0x431d3f['is']('element','table')){if('insertion'==_0x599b53['type']){const _0x1ab52a=_0x599b53['getItems']()['filter'](_0x206f23=>_0x206f23['is']('$textProxy'))['map'](_0x10a758=>_0x10a758['data']);if(_0x1ab52a['length'])return{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ab52a['join']('\x20')+'\x22'))};}if('deletion'==_0x599b53['type']){const _0x20e070=_0x599b53['getItems']()['filter'](_0x134ab9=>_0x134ab9['is']('$textProxy'))['map'](_0x3f4488=>_0x3f4488['data']);if(_0x20e070['length'])return{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20e070['join']('\x20')+'\x22'))};}}}),_0xe21bfa['descriptionFactory']['registerDescriptionCallback'](_0x104b56=>{if('tableRow'==_0x104b56['subType']){const _0x5d9187=_0x104b56['getItems']()['filter'](_0x2ef421=>_0x2ef421['is']('$textProxy'))['map'](_0x4b132c=>_0x4b132c['data']),_0xad9295=this['_getSuggestionCoords'](_0x104b56),_0x2602b6=_0xad9295['maxRow']-_0xad9295['minRow']+0x1;if('insertion'==_0x104b56['type'])return _0x5d9187['length']?{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2602b6,'\x22'+_0x5d9187['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW',_0x2602b6))};if('deletion'==_0x104b56['type'])return _0x5d9187['length']?{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2602b6,'\x22'+_0x5d9187['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW',_0x2602b6))};}if('tableColumn'==_0x104b56['subType']){const _0x5c960=_0x104b56['getItems']()['filter'](_0x2e0549=>_0x2e0549['is']('$textProxy'))['map'](_0x4dd5ed=>_0x4dd5ed['data']),_0x5ac586=this['_getSuggestionCoords'](_0x104b56),_0x683d=_0x5ac586['maxColumn']-_0x5ac586['minColumn']+0x1;if('insertion'==_0x104b56['type'])return _0x5c960['length']?{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x683d,'\x22'+_0x5c960['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN',_0x683d))};if('deletion'==_0x104b56['type'])return _0x5c960['length']?{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x683d,'\x22'+_0x5c960['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN',_0x683d))};}}),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x49c419),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x49c419),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5b484a),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5b484a),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1ae480),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1ae480),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4a4965),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4a4965);}['_acceptFormatSuggestionCallbackFactory'](){const _0x51559e=this['editor'],_0x26ee40=_0x51559e['model']['document']['selection'];return(_0x52f621,_0x535309)=>{_0x51559e['model']['change'](_0x51d05a=>{const {commandName:_0x2f6f09,commandParams:_0x19d7e9}=_0x535309;let _0x2a0388=_0x52f621[0x0]['end']['nodeBefore'];_0x19d7e9&&_0x19d7e9[0x0]&&!0x1===_0x19d7e9[0x0]['forceValue']&&(_0x2a0388=_0x52f621[0x0]['start']['nodeAfter']);const _0x72b893=_0x51d05a['createRangeIn'](_0x2a0388);if('$graveyard'==_0x72b893['root']['rootName'])return;const _0x576636=Array['from'](_0x26ee40['getRanges']())['map'](_0x4db535=>_0x3932e8['fromRange'](_0x4db535));_0x51d05a['setSelection'](_0x72b893),_0x51559e['commands']['get'](_0x2f6f09)['refresh'](),_0x19d7e9['push']({'forceDefaultExecution':!0x0}),_0x51559e['execute'](_0x2f6f09,..._0x19d7e9);const _0x5895fa=_0x576636['filter'](_0x34b5fe=>'$graveyard'!=_0x34b5fe['root']['rootName']);_0x5895fa['length']>0x0&&_0x51d05a['setSelection'](_0x5895fa);for(const _0x5fec9 of _0x576636)_0x5fec9['detach']();});};}['_getCoordsForCells'](_0x1a218d){const _0x3aea52=this['editor']['plugins']['get']('TableUtils');let _0x27b5eb=Number['MAX_SAFE_INTEGER'],_0x2ed053=Number['MIN_SAFE_INTEGER'],_0x28e56a=Number['MAX_SAFE_INTEGER'],_0x35d02f=Number['MIN_SAFE_INTEGER'];for(const _0x4f35bb of _0x1a218d){if('$graveyard'==_0x4f35bb['root']['rootName'])continue;const {row:_0x1b9e06,column:_0x100fce}=_0x3aea52['getCellLocation'](_0x4f35bb),_0x1e6d6f=_0x4f35bb['hasAttribute']('rowspan')?_0x4f35bb['getAttribute']('rowspan')-0x1:0x0,_0xb55cb5=_0x4f35bb['hasAttribute']('colspan')?_0x4f35bb['getAttribute']('colspan')-0x1:0x0;_0x27b5eb=_0x1b9e06<_0x27b5eb?_0x1b9e06:_0x27b5eb,_0x2ed053=_0x1b9e06+_0x1e6d6f>_0x2ed053?_0x1b9e06+_0x1e6d6f:_0x2ed053,_0x28e56a=_0x100fce<_0x28e56a?_0x100fce:_0x28e56a,_0x35d02f=_0x100fce+_0xb55cb5>_0x35d02f?_0x100fce+_0xb55cb5:_0x35d02f;}return{'minRow':_0x27b5eb,'maxRow':_0x2ed053,'minColumn':_0x28e56a,'maxColumn':_0x35d02f};}['_setupColumnsRowsFixing'](){const _0x5a7ee3=this['editor'],_0x546a1e=_0x5a7ee3['plugins']['get']('TrackChangesEditing'),_0x192670=_0x5a7ee3['plugins']['get']('TableUtils');_0x5a7ee3['model']['document']['on']('change:data',()=>{const _0x17f8e8=Array['from'](_0x5a7ee3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aabb6,data:_0x114ecb}of _0x17f8e8){const {group:_0x602b7b,id:_0x34c25f,subType:_0x3a6d03}=_0x546a1e['_splitMarkerName'](_0x3aabb6);if('suggestion'!=_0x602b7b)continue;if(null!=_0x114ecb['oldRange'])continue;const _0xd48f30=_0x546a1e['getSuggestion'](_0x34c25f);this['_tablePostFixingSubtypes']['includes'](_0x3a6d03)&&this['_tableSuggestions']['add'](_0xd48f30);}},{'priority':'low'});const _0xfd6653=(_0xeeecff,_0xfba966)=>{let _0x597986=!0x1;const _0xaf8a53=_0xfba966['createRangeOn'](_0xeeecff),_0x5b96b6=_0xeeecff['findAncestor']('table'),_0x58244a=_0x192670['getCellLocation'](_0xeeecff);for(const _0x96004f of this['_tableSuggestions']){const _0x429dfb=_0x96004f['subType'],_0x4b5c18=_0x429dfb['startsWith']('tablePaste'),_0x1c83cb=_0x429dfb['substr'](_0x4b5c18?0xa:0x5),_0x51f279=_0x1c83cb['toLowerCase'](),_0x549d37=_0x51f279['substr'](0x0,0x3)+'span',_0x446fb7='min'+_0x1c83cb,_0x35cf65='max'+_0x1c83cb;if(!_0x96004f['isInContent'])continue;if(_0x5b96b6!=_0x96004f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x96004f['isIntersectingWithRange'](_0xaf8a53))continue;const _0x285a7f=_0xeeecff['hasAttribute'](_0x549d37)?_0xeeecff['getAttribute'](_0x549d37)-0x1:0x0,_0x3c239f=this['_getSuggestionCoords'](_0x96004f),_0x534b20=_0x3c239f[_0x446fb7],_0x4f2770=_0x3c239f[_0x35cf65];_0x534b20<=_0x58244a[_0x51f279]&&_0x58244a[_0x51f279]+_0x285a7f<=_0x4f2770&&(_0x96004f['addRange'](_0xaf8a53),_0x597986=!0x0);}return _0x597986;};_0x5a7ee3['model']['document']['registerPostFixer'](_0x26fc9a=>{let _0x233eb0=!0x1;for(const _0x25058b of _0x5a7ee3['model']['document']['differ']['getChanges']())if('insert'==_0x25058b['type']){if('tableRow'==_0x25058b['name']){for(const _0x133194 of _0x25058b['position']['nodeAfter']['getChildren']())_0x233eb0=_0x233eb0||_0xfd6653(_0x133194,_0x26fc9a);}else'tableCell'==_0x25058b['name']&&(_0x233eb0=_0x233eb0||_0xfd6653(_0x25058b['position']['nodeAfter'],_0x26fc9a));}return _0x233eb0;});}['_getSuggestionCoords'](_0x287640){return this['_getCoordsForCells'](_0x287640['getRanges']()['map'](_0x641593=>_0x641593['start']['nodeAfter']));}}function Ne(_0xdb589e){return Array['from'](new Set(_0xdb589e)['values']());}class Nt extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x2b5c0c=this['editor'],_0x4e2076=_0x2b5c0c['model']['document']['selection'],_0x522279=_0x2b5c0c['locale'];if(!_0x2b5c0c['plugins']['has']('TableEditing'))return;const _0x4dbc62=_0x2b5c0c['plugins']['get']('TrackChangesEditing'),_0x1aa165=_0x2b5c0c['plugins']['get']('TableUtils'),_0x3bdf00=_0x2b5c0c['plugins']['get'](Ct);_0x3bdf00['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4dbc62['enableCommand']('mergeTableCells',()=>{const _0x2b949f=_0x1aa165['getSelectionAffectedTableCells'](_0x2b5c0c['model']['document']['selection']);_0x2b5c0c['model']['change'](()=>{_0x4dbc62['markMultiRangeBlockFormat'](_0x2b949f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2b5c0c['commands']['get']('mergeTableCells')['on']('execute',(_0x5cae80,_0xcf82d5)=>{_0x2b5c0c['commands']['get']('trackChanges')['value']&&(_0xcf82d5['length']>0x0&&_0xcf82d5[_0xcf82d5['length']-0x1]&&_0xcf82d5[_0xcf82d5['length']-0x1]['forceDefaultExecution']||_0x4dbc62['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5cae80['stop']());},{'priority':'highest'});for(const _0x45babf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x411221=_0x2b5c0c['commands']['get'](_0x45babf);_0x4dbc62['enableCommand'](_0x45babf,()=>{const _0x436b14=_0x2b5c0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3650db=>_0x3650db['is']('element','tableCell')),_0x366cf5=_0x411221['value'];_0x2b5c0c['model']['change'](()=>{_0x4dbc62['markMultiRangeBlockFormat']([_0x436b14,_0x366cf5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41355d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x35645f=_0x2b5c0c['commands']['get'](_0x41355d);_0x4dbc62['enableCommand'](_0x41355d,()=>{const _0x19eae6=_0x1aa165['getSelectionAffectedTableCells'](_0x2b5c0c['model']['document']['selection'])[0x0],_0x33194a=_0x19eae6['findAncestor']('table'),{column:_0x35ec82,row:_0x34df70}=_0x1aa165['getCellLocation'](_0x19eae6);let _0x4521e2=[];if('horizontally'==_0x35645f['direction']){const _0x314106=_0x1aa165['createTableWalker'](_0x33194a,{'startRow':_0x34df70,'endRow':_0x34df70,'includeAllSlots':!0x0});_0x4521e2=Array['from'](_0x314106)['map'](_0x340615=>_0x340615['cell']);}else{const _0x500aab=_0x1aa165['createTableWalker'](_0x33194a,{'column':_0x35ec82,'includeAllSlots':!0x0});_0x4521e2=Array['from'](_0x500aab)['map'](_0x360b0b=>_0x360b0b['cell']);}_0x2b5c0c['model']['change'](_0x16f3d7=>{_0x4dbc62['markBlockFormat'](_0x16f3d7['createRangeOn'](_0x19eae6),{'commandName':_0x41355d,'commandParams':[]},_0x4521e2,_0x41355d);});});}_0x4dbc62['descriptionFactory']['registerDescriptionCallback'](_0x3c9957=>{if('formatBlock'!=_0x3c9957['type']&&'formatInline'!=_0x3c9957['type'])return;const {data:_0x439378}=_0x3c9957;return _0x439378&&'mergeTableCells'==_0x439378['commandName']?{'type':'format','content':c(_0x522279,'*Merge\x20cells*')}:void 0x0;}),_0x4dbc62['descriptionFactory']['registerDescriptionCallback'](_0x2a15c4=>{if('formatBlock'!=_0x2a15c4['type']&&'formatInline'!=_0x2a15c4['type'])return;const {data:_0x2943f3}=_0x2a15c4;return _0x2943f3?'splitTableCellVertically'==_0x2943f3['commandName']?{'type':'format','content':c(_0x522279,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2943f3['commandName']?{'type':'format','content':c(_0x522279,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x432115=_0x3bdf00['_acceptFormatSuggestionCallbackFactory']();for(const _0x1aaf8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4dbc62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1aaf8a,'accept',_0x432115);for(const _0x30bbf7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4dbc62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30bbf7,'accept',_0x432115);_0x4dbc62['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e3159=>{_0x2b5c0c['model']['change'](_0x21d993=>{const _0x5ab999=Array['from'](_0x4e2076['getRanges']())['map'](_0x22fb2e=>_0x3932e8['fromRange'](_0x22fb2e));_0x21d993['setSelection'](_0x4e3159),_0x2b5c0c['commands']['get']('mergeTableCells')['refresh'](),_0x2b5c0c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x156be1=_0x5ab999['filter'](_0x289676=>'$graveyard'!=_0x289676['root']['rootName']);_0x156be1['length']>0x0&&_0x21d993['setSelection'](_0x156be1);for(const _0x19e19a of _0x5ab999)_0x19e19a['detach']();});});for(const _0x309907 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x536a68=_0x2b5c0c['commands']['get'](_0x309907);_0x536a68['on']('set:isEnabled',(_0x4cbf56,_0x411d8f,_0x2f8f02)=>{if(_0x2f8f02){const _0x412e62=_0x2b5c0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xac8dcd=>_0xac8dcd['is']('element','tableCell'));this['_areMergableCells'](_0x536a68['value'],_0x412e62)||(_0x4cbf56['return']=!0x1,_0x4cbf56['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5271b1=this['editor']['commands']['get']('mergeTableCells'),_0x514352=this['editor']['plugins']['get']('TableUtils');if(!_0x5271b1['isEnabled'])return!0x1;const _0x55f043=_0x514352['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x40a452 of _0x55f043)for(const _0x104997 of _0x55f043)if(_0x40a452!=_0x104997&&!this['_areMergableCells'](_0x40a452,_0x104997))return!0x1;return!0x0;}['_areMergableCells'](_0x2ce940,_0x3e2447){const _0x3f1f29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1552c2=this['editor']['model']['createRangeOn'](_0x2ce940),_0x41f6fc=this['editor']['model']['createRangeOn'](_0x3e2447),_0x6e770c=new Set(),_0x2ccd4c=new Set();for(const _0x4bfb6d of _0x3f1f29['getSuggestions']())if(('insertion'==_0x4bfb6d['type']||'deletion'==_0x4bfb6d['type']||'mergeTableCells'==_0x4bfb6d['subType'])&&_0x4bfb6d['isInContent']){for(const _0x1de60f of _0x4bfb6d['getRanges']())_0x1de60f['containsRange'](_0x1552c2,!0x0)&&_0x6e770c['add'](_0x4bfb6d['type']+':'+_0x4bfb6d['author']['id']),_0x1de60f['containsRange'](_0x41f6fc,!0x0)&&_0x2ccd4c['add'](_0x4bfb6d['type']+':'+_0x4bfb6d['author']['id']);}if(_0x6e770c['size']!=_0x2ccd4c['size'])return!0x1;for(const _0xf7ffb0 of _0x6e770c)if(!_0x2ccd4c['has'](_0xf7ffb0))return!0x1;return!0x0;}}class Dt extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x235645=this['editor'];if(!_0x235645['plugins']['has']('TableEditing'))return;const _0x92e4eb=_0x235645['locale'],_0x57f1c6=_0x235645['plugins']['get']('TrackChangesEditing');_0x57f1c6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x57f1c6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x57f1c6['registerBlockAttribute']('headingRows'),_0x57f1c6['registerBlockAttribute']('headingColumns'),_0x57f1c6['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x92e4eb,'FORMAT_HEADER_ROW')),_0x57f1c6['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x92e4eb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19ad6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52567d=this['editor']['plugins']['get']('TableUtils'),_0x4b3a2a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x21362b({showActiveMarker:_0x192948=!0x0,setDataAttribute:_0x16d639=!0x0}={}){return(_0x4d65cb,_0x1c3a34,_0x3a00de)=>{const {type:_0x2dd228,id:_0x1a52ab}=_0x19ad6c['_splitMarkerName'](_0x1c3a34['markerName']),_0x38cc9c=_0x19ad6c['getSuggestion'](_0x1a52ab),_0x5da4c8=_0x38cc9c['data'];if('formatBlock'!=_0x38cc9c['type']||!_0x5da4c8||'setTableColumnHeader'!=_0x5da4c8['commandName'])return;if(_0x1c3a34['item'])return void _0x4d65cb['stop']();if(!_0x3a00de['consumable']['consume'](_0x1c3a34['markerRange'],_0x4d65cb['name']))return;const _0xb2a742=_0x1c3a34['markerRange']['start']['nodeAfter'],_0x385db7=_0x1c3a34['markerRange']['end']['nodeBefore'],_0x2c0652=_0xb2a742['parent']['parent'],{column:_0x36814c}=_0x52567d['getCellLocation'](_0xb2a742),{column:_0x41f71b}=_0x52567d['getCellLocation'](_0x385db7);for(let _0x57888b=_0x36814c;_0x57888b<=_0x41f71b;_0x57888b++){const _0x1a4bc4=_0x52567d['createTableWalker'](_0x2c0652,{'column':_0x57888b,'includeAllSlots':!0x1});for(const _0x231c08 of _0x1a4bc4){const _0x1b3c2a=_0x231c08['cell'],_0x123fd7=_0x3a00de['mapper']['toViewElement'](_0x1b3c2a);_0x3a00de['writer']['addClass']('ck-suggestion-marker-'+_0x2dd228,_0x123fd7),_0x16d639&&_0x3a00de['writer']['setAttribute']('data-suggestion',_0x1a52ab,_0x123fd7),_0x3a00de['mapper']['bindElementToMarker'](_0x123fd7,_0x1c3a34['markerName']),_0x192948&&(_0x19ad6c['activeMarkers']['includes'](_0x1c3a34['markerName'])?_0x3a00de['writer']['addClass']('ck-suggestion-marker--active',_0x123fd7):_0x3a00de['writer']['removeClass']('ck-suggestion-marker--active',_0x123fd7));}}};}_0x19ad6c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b3a2a),_0x19ad6c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b3a2a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21362b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37e62b,_0xb64ac4,_0x46b579)=>{_0x46b579['options']['showSuggestionHighlights']&&_0x21362b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37e62b,_0xb64ac4,_0x46b579);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x144a95,_0x1ff23e,_0x5b434e)=>{const {type:_0x2e885c,id:_0x285ef8}=_0x19ad6c['_splitMarkerName'](_0x1ff23e['markerName']),_0x3c67ae=_0x19ad6c['getSuggestion'](_0x285ef8),_0x593564=_0x3c67ae['data'];if('formatBlock'!=_0x3c67ae['type']||!_0x593564||'setTableColumnHeader'!=_0x593564['commandName'])return;const _0x31e4de=_0x5b434e['mapper']['markerNameToElements'](_0x1ff23e['markerName']);if(_0x31e4de){for(const _0x2e6306 of _0x31e4de)_0x5b434e['writer']['removeClass']('ck-suggestion-marker-'+_0x2e885c,_0x2e6306),_0x5b434e['writer']['removeClass']('ck-suggestion-marker--active',_0x2e6306),_0x5b434e['writer']['removeAttribute']('data-suggestion',_0x2e6306),_0x5b434e['mapper']['unbindElementFromMarkerName'](_0x2e6306,_0x1ff23e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef196=this['editor'],_0x11d231=_0x2ef196['locale'];function _0x35dc09(_0x44c419){return{'type':'format','content':c(_0x11d231,'*Format:*\x20%0',_0x44c419)};}_0x2ef196['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ed6bf=>{if('formatBlock'!=_0x5ed6bf['type'])return;const {data:_0x4e61b8}=_0x5ed6bf;if(_0x4e61b8){if('setTableRowHeader'==_0x4e61b8['commandName']){const _0x1c3768=_0x4e61b8['commandParams'][0x0]['forceValue'];return _0x35dc09(c(_0x11d231,_0x1c3768?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4e61b8['commandName']){const _0x144a84=_0x4e61b8['commandParams'][0x0]['forceValue'];return _0x35dc09(c(_0x11d231,_0x144a84?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x55fa68{['afterInit'](){const _0x5c5cca=this['editor'],_0x511875=_0x5c5cca['locale'],_0x2221d6=_0x5c5cca['plugins']['get']('TrackChangesEditing');function _0x55b922(_0x2596e3){return{'type':'format','content':''+c(_0x511875,'*Set\x20table\x20type:*\x20%0',_0x2596e3)};}_0x5c5cca['plugins']['has']('TableLayout')&&(_0x2221d6['enableCommand']('insertTableLayout'),_0x2221d6['enableDefaultAttributesIntegration']('tableType'),_0x2221d6['registerBlockAttribute']('tableType'),_0x2221d6['descriptionFactory']['registerElementLabel'](_0x31160f=>_0x31160f['is']('element','table')&&'layout'===_0x31160f['getAttribute']('tableType'),_0x794793=>c(_0x511875,'ELEMENT_LAYOUT_TABLE',_0x794793)),_0x2221d6['descriptionFactory']['registerDescriptionCallback'](_0x5bb2af=>{const {data:_0x3b60a5}=_0x5bb2af;if(_0x3b60a5&&'tableType'==_0x3b60a5['key'])switch(_0x3b60a5['newValue']){case'layout':return _0x55b922(c(_0x511875,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x55b922(c(_0x511875,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0xf88933=>[_0xf88933,null]));class $t extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x4c8f2b=this['editor'];if(!_0x4c8f2b['plugins']['has']('TableClipboard'))return;const _0x5b72fa=_0x4c8f2b['plugins']['get']('TrackChangesEditing'),_0xa3b797=_0x4c8f2b['plugins']['get']('TableUtils'),_0x48fa99=_0x4c8f2b['plugins']['get'](Ct),_0x1e15ba=_0x4c8f2b['plugins']['get']('TableClipboard'),_0x7aa2b3=_0x4c8f2b['plugins']['get']('TableSelection'),_0x248cc5=_0x4c8f2b['plugins']['get'](_0x3f99e5);_0x48fa99['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4c8f2b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4c8f2b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ddc2b=null,_0x4dac62=!0x1;_0x248cc5['on']('contentInsertion',(_0x32fe24,_0x43a8b4)=>{_0x4dac62='paste'===_0x43a8b4['method'];}),_0x4c8f2b['model']['on']('insertContent',(_0x441b0f,_0x12c8f0)=>{if(!_0x4dac62&&null===_0x7aa2b3['getSelectedTableCells']())return;const [_0x12f40d,_0x2ce3b6]=_0x12c8f0,_0x29d7df=_0x12c8f0[_0x12c8f0['length']-0x1];_0x29d7df&&_0x29d7df['forceDefaultExecution']||_0x5b72fa['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x78806d,_0x26cd54,_0x2f6558,_0x2caf1c,_0x4d5481){if(_0x26cd54&&!_0x26cd54['is']('documentSelection'))return!0x1;const _0x2ff09c=_0x4d5481['getTableIfOnlyTableInContent'](_0x78806d,_0x2f6558);if(!_0x2ff09c||!De(_0x2ff09c,void 0x0,_0x2caf1c))return!0x1;const _0x3814b5=_0x2caf1c['getSelectionAffectedTableCells'](_0x2f6558['document']['selection']);if(!_0x3814b5['length'])return!0x1;const _0x515faf=_0x3814b5[0x0]['findAncestor']('table'),_0x5874e3=_0x2caf1c['getRowIndexes'](_0x3814b5),_0xc18b7c=_0x2caf1c['getColumnIndexes'](_0x3814b5),_0x2f62a3={'startRow':_0x5874e3['first'],'endRow':_0x5874e3['last'],'startColumn':_0xc18b7c['first'],'endColumn':_0xc18b7c['last']};return 0x1==_0x3814b5['length']&&(_0x2f62a3['endRow']+=_0x2caf1c['getRows'](_0x2ff09c)-0x1,_0x2f62a3['endColumn']+=_0x2caf1c['getColumns'](_0x2ff09c)-0x1),De(_0x515faf,_0x2f62a3,_0x2caf1c);}(_0x12f40d,_0x2ce3b6,_0x4c8f2b['model'],_0xa3b797,_0x1e15ba)&&(_0x441b0f['stop'](),_0x5ddc2b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4c8f2b['model']['change'](()=>{_0x4c8f2b['model']['insertContent'](_0x12c8f0[0x0],_0x12c8f0[0x1],_0x12c8f0[0x2],{'forceDefaultExecution':!0x0});const _0x2f71ca=_0x5e3891(),{rowInsertionRanges:_0x31cb12,columnInsertionRanges:_0x514fb8,insertionRanges:_0x4211e4,deletionRanges:_0x5539dd,cells:_0x338bb3}=_0x5ddc2b;_0x31cb12['length']&&_0x5b72fa['markMultiRangeInsertion'](_0x31cb12,'tablePasteRow',{'tablePasteChainId':_0x2f71ca}),_0x514fb8['length']&&_0x5b72fa['markMultiRangeInsertion'](_0x514fb8,'tablePasteColumn',{'tablePasteChainId':_0x2f71ca}),_0x4211e4['length']&&(_0x5b72fa['markMultiRangeInsertion'](_0x4211e4,'tablePaste',{'tablePasteChainId':_0x2f71ca,'skipNestingCheck':!0x0}),_0x4211e4['forEach'](_0xdadc47=>_0xdadc47['detach']?.())),_0x5539dd['length']&&(_0x5b72fa['markMultiRangeDeletion'](_0x5539dd,'tablePaste',{'tablePasteChainId':_0x2f71ca,'skipNestingCheck':!0x0}),_0x5539dd['forEach'](_0x21bf6d=>_0x21bf6d['detach']?.()));const _0x4cc25c=_0x5b72fa['markMultiRangeBlockFormat'](_0x338bb3['map'](({element:_0x1d9921})=>_0x1d9921),{'formatGroupId':_0x5e3891()},[],'tablePasteCell',{'tablePasteChainId':_0x2f71ca});if(_0x4cc25c){const _0x5c8510=_0x4cc25c['getMarkers'](),_0x4d11e3=[];for(const {element:_0xe55318,attributes:_0x55e6a5}of _0x338bb3){if(!_0x55e6a5)continue;const _0x5a3555=_0x4c8f2b['model']['createRangeOn'](_0xe55318),_0x4a08b0=_0x5c8510['find'](_0x31cb07=>_0x31cb07['getRange']()['isEqual'](_0x5a3555));_0x4a08b0&&_0x4d11e3['push']([_0x4a08b0['name'],_0x55e6a5]);}_0x4d11e3['length']&&_0x4cc25c['setAttribute']('markerAttributes',Object['fromEntries'](_0x4d11e3));}_0x5ddc2b=null;}));},{'priority':_0x2c6b22['high']+0xa}),_0x248cc5['on']('contentInsertion',()=>{_0x4dac62=!0x1;},{'priority':'lowest'}),_0x4c8f2b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4e7b41,_0x2ba250)=>{const [_0x18551c,_0x21cbb8,,_0x5816cc]=_0x2ba250;if(!_0x5ddc2b)return;_0x4e7b41['stop']();const _0x582582=_0x18551c['cell'],_0x1a849b=_0x21cbb8,_0x3d08ee=Ue(_0x582582),_0x56e547=Ue(_0x1a849b);_0x4e7b41['return']=_0x582582;let _0xf222ba=null,_0x4f2802=null;if(_0x56e547||_0x3d08ee){if(_0x3d08ee&&!_0x56e547){_0x5816cc['remove'](_0x582582['getChild'](0x0));for(const _0x2d918e of Array['from'](_0x1a849b['getChildren']()))_0x5816cc['insert'](_0x2d918e,_0x582582,'end');const _0x13878b=_0x5ddc2b['rowInsertionIndexes']['includes'](_0x18551c['row']),_0x2f1a1e=_0x5ddc2b['columnInsertionIndexes']['includes'](_0x18551c['column']);_0x13878b||_0x2f1a1e||(_0xf222ba=_0x3932e8['fromRange'](_0x5816cc['createRangeIn'](_0x582582)));}else _0x56e547&&!_0x3d08ee&&(_0x4f2802=_0x5816cc['createRangeIn'](_0x582582));}else{const _0x25b12e=_0x5816cc['createElement']('tableCellSuggestion'),_0x2af296=_0x5816cc['createElement']('tableCellSuggestion');_0x5816cc['wrap'](_0x5816cc['createRangeIn'](_0x582582),_0x2af296),_0x5816cc['insert'](_0x25b12e,_0x582582,0x0);for(const _0x4d4d62 of Array['from'](_0x1a849b['getChildren']()))_0x5816cc['insert'](_0x4d4d62,_0x25b12e,'end');_0xf222ba=_0x3932e8['fromRange'](_0x5816cc['createRangeOn'](_0x25b12e)),_0x4f2802=_0x3932e8['fromRange'](_0x5816cc['createRangeOn'](_0x2af296));}const _0x21e700=Array['from'](_0x1a849b['getAttributes']())['filter'](([_0x354799])=>xe['includes'](_0x354799));_0x5ddc2b['cells']['push']({'element':_0x582582,'attributes':_0x21e700['length']?Object['fromEntries'](_0x21e700):null}),_0xf222ba&&_0x5ddc2b['insertionRanges']['push'](_0xf222ba),_0x4f2802&&_0x5ddc2b['deletionRanges']['push'](_0x4f2802);},{'priority':'high'}),_0xa3b797['on']('insertColumns',(_0x51b2b7,_0x197ead)=>{const [_0x55babf,_0x3b092d={}]=_0x197ead;if(!_0x5ddc2b)return;const _0x40af15=_0x3b092d['at']||0x0,_0x35388b=_0x3b092d['columns']||0x1;_0x5ddc2b['columnInsertionIndexes']=new Array(_0x35388b)['fill'](_0x40af15)['map']((_0x39132a,_0x4b1d39)=>_0x39132a+_0x4b1d39);for(const {cell:_0x5d3b85}of _0xa3b797['createTableWalker'](_0x55babf,{'startColumn':_0x40af15,'endColumn':_0x40af15+_0x35388b-0x1}))_0x5ddc2b['columnInsertionRanges']['push'](_0x4c8f2b['model']['createRangeOn'](_0x5d3b85));},{'priority':'low'}),_0xa3b797['on']('insertRows',(_0x2076bf,_0x40db20)=>{const [_0x1271a2,_0x152a5a={}]=_0x40db20;if(!_0x5ddc2b)return;const _0x36777d=_0x152a5a['at']||0x0,_0x3b76bb=_0x152a5a['rows']||0x1;_0x5ddc2b['rowInsertionIndexes']=new Array(_0x3b76bb)['fill'](_0x36777d)['map']((_0x2a6e1f,_0xacf695)=>_0x2a6e1f+_0xacf695);for(const {cell:_0x477f32}of _0xa3b797['createTableWalker'](_0x1271a2,{'startRow':_0x36777d,'endRow':_0x36777d+_0x3b76bb-0x1}))_0x5ddc2b['rowInsertionRanges']['push'](_0x4c8f2b['model']['createRangeOn'](_0x477f32));},{'priority':'low'}),_0x5b72fa['descriptionFactory']['registerDescriptionCallback'](_0x36e2e0=>{if(_0x36e2e0['subType']&&_0x36e2e0['subType']['startsWith']('tablePaste'))return _0x36e2e0['previous']?{}:{'type':'insertion','content':c(_0x4c8f2b['locale'],'*Replace\x20table\x20cells*')};});const _0x4f3686=()=>!0x1;for(const _0x5c082f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b72fa['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c082f,'join',_0x4f3686),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('deletion',_0x5c082f,'join',_0x4f3686),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c082f,'join',_0x4f3686);_0x5b72fa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4f3686),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x93333d,_0x1d942b,_0x4ad1ea)=>{const _0xbcd108=_0x93333d['map'](_0x56f857=>_0x56f857['getContainedElement']())['filter'](_0x58b408=>_0x58b408),_0x38cac9=new Map(_0xbcd108['map'](_0x357e90=>[_0x357e90,null]));if(_0x5ddc2b){for(const {element:_0x50af8f,attributes:_0x3b6aab}of _0x5ddc2b['cells'])_0x3b6aab&&_0x38cac9['set'](_0x50af8f,_0x3b6aab);}else{if(_0x4ad1ea&&_0x4ad1ea['markerAttributes'])for(const [_0x1487e1,_0xfef86f]of Object['entries'](_0x4ad1ea['markerAttributes'])){const _0x49b18c=_0x4c8f2b['model']['markers']['get'](_0x1487e1),_0x427033=_0x49b18c?_0x49b18c['getRange']()['getContainedElement']():null;_0x427033&&_0x38cac9['set'](_0x427033,_0xfef86f);}}_0x4c8f2b['model']['change'](_0x11f085=>{for(const [_0x3ac077,_0xfb9d1]of _0x38cac9)_0x11f085['setAttributes']({...Oe,..._0xfb9d1},_0x3ac077);});});const _0x573fa5=(_0x283200,_0x2d918d)=>{_0x5b72fa['_suggestionFactory']['registerCustomCallback'](_0x283200,'tablePaste',_0x2d918d,(_0x3df791,_0x22893b,_0x510515)=>{_0x4c8f2b['model']['change'](_0xb8d50d=>{const _0xf9d719=[];for(const _0x20ddac of _0x3df791){const _0x1b6424=_0x20ddac['start']['nodeAfter'];_0x1b6424['is']('element','tableCellSuggestion')&&_0xf9d719['push'](_0x1b6424);}_0x5b72fa['_suggestionFactory']['getSuggestionCallback'](_0x283200,null,_0x2d918d)(_0x3df791,_0x22893b,_0x510515);for(const _0x519db4 of _0xf9d719)'$graveyard'!=_0x519db4['root']['rootName']&&_0xb8d50d['unwrap'](_0x519db4);});});};_0x573fa5('insertion','accept'),_0x573fa5('insertion','discard'),_0x573fa5('deletion','accept'),_0x573fa5('deletion','discard'),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x26c83b=>{const _0x4602a1=_0x26c83b['map'](_0x37eb48=>_0x37eb48['getContainedElement']()),_0xac6b4a=_0x4602a1[0x0]['findAncestor']('table'),{minRow:_0x92c241,maxRow:_0x12cf0f}=_0x48fa99['_getCoordsForCells'](_0x4602a1);_0xa3b797['removeRows'](_0xac6b4a,{'at':_0x92c241,'rows':_0x12cf0f-_0x92c241+0x1});}),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1e807d=>{const _0x3dfcfd=_0x1e807d['map'](_0x4390d4=>_0x4390d4['getContainedElement']()),_0x3845f8=_0x3dfcfd[0x0]['findAncestor']('table'),{minColumn:_0x23e6dc,maxColumn:_0x44b460}=_0x48fa99['_getCoordsForCells'](_0x3dfcfd);_0xa3b797['removeColumns'](_0x3845f8,{'at':_0x23e6dc,'columns':_0x44b460-_0x23e6dc+0x1});});const _0x2d505e=(_0x4b3f42,_0x6119b0)=>{if(!_0x6119b0['subType']||!_0x6119b0['subType']['startsWith']('tablePaste'))return;const _0x5e0238=_0x6119b0['attributes']['tablePasteChainId'],_0x49edb3=_0x5b72fa['getSuggestions']()['filter'](_0x272ff6=>_0x272ff6['isInContent']&&_0x272ff6['attributes']&&_0x272ff6['attributes']['tablePasteChainId']==_0x5e0238);_0x49edb3['length']&&_0x6119b0['getAllAdjacentSuggestions']()['length']!=_0x49edb3['length']&&_0x49edb3['reduce']((_0x48c89a,_0x2808fb)=>(_0x48c89a['next']=_0x2808fb,_0x2808fb['previous']=_0x48c89a,_0x2808fb));};function _0x132fa4(_0x48aa90,_0x524ec3=!0x0){const {id:_0x4db9c7,authorId:_0x2c1578}=_0x5b72fa['_splitMarkerName'](_0x48aa90['markerName']),_0x1ad96e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x410e60=_0x5b72fa['activeMarkers']['includes'](_0x48aa90['markerName']);return _0x410e60&&_0x1ad96e['push']('ck-suggestion-marker--active'),{'classes':_0x1ad96e,'attributes':{'data-suggestion':_0x4db9c7,'data-author-id':_0x2c1578},'priority':_0x410e60&&_0x524ec3?0xbc2:0xbb8};}_0x5b72fa['on']('suggestionLoaded',_0x2d505e,{'priority':'high'}),_0x5b72fa['on']('suggestionUnloaded',_0x2d505e,{'priority':'high'}),_0x4c8f2b['model']['document']['registerPostFixer'](()=>{let _0x533b62=!0x1;const _0x5e45e3=Array['from'](_0x4c8f2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36e5d2,data:_0x18bf23}of _0x5e45e3){const {group:_0x1cc663,type:_0x36f592,id:_0x45e5ff}=_0x5b72fa['_splitMarkerName'](_0x36e5d2);if('suggestion'!=_0x1cc663||'deletion'!=_0x36f592||_0x18bf23['oldRange'])continue;if(!_0x5b72fa['hasSuggestion'](_0x45e5ff))continue;const _0x5d8dda=_0x5b72fa['getSuggestion'](_0x45e5ff)['getRanges'](),_0x321a9f=_0x4c8f2b['plugins']['get']('Users')['me'];for(const _0x213f1f of _0x5b72fa['getSuggestions']()){if(!_0x213f1f['isInContent']||_0x213f1f['author']!=_0x321a9f)continue;if('formatBlock'!=_0x213f1f['type']||'tablePasteCell'!=_0x213f1f['subType'])continue;if(_0x213f1f['getRanges']()['every'](_0x258628=>_0x5d8dda['some'](_0x1e62ce=>_0x1e62ce['containsRange'](_0x258628,!0x0)))){for(const _0x3360f9 of _0x213f1f['getAllAdjacentSuggestions']())_0x3360f9['isInContent']&&(_0x3360f9['discard'](),_0x533b62=!0x0);}}}return _0x533b62;}),_0x4c8f2b['model']['document']['registerPostFixer'](_0x24cc01=>{const _0x677c33=_0x4c8f2b['commands']['get']('redo');if(!_0x677c33||!_0x677c33['_createdBatches']['has'](_0x24cc01['batch']))return!0x1;let _0x403694=!0x1;const _0xe1b19b=_0x4c8f2b['plugins']['get']('Users')['me'],_0x3b68fa=_0x4c8f2b['model']['document']['differ']['getChanges'](),_0x477b1a=Array['from'](_0x4c8f2b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1c5317,data:_0x3a76ab})=>{const {group:_0x3e88f2,subType:_0x305dc8,authorId:_0x21e318}=_0x5b72fa['_splitMarkerName'](_0x1c5317);return'suggestion'==_0x3e88f2&&'tablePaste'==_0x305dc8&&_0x21e318==_0xe1b19b['id']&&!_0x3a76ab['oldRange'];});for(const _0x45e940 of _0x3b68fa){if('insert'!=_0x45e940['type']||'tableCellSuggestion'!=_0x45e940['name']||0x1!=_0x45e940['length'])continue;const _0x46c55a=_0x24cc01['createRange'](_0x45e940['position'],_0x45e940['position']['getShiftedBy'](0x1));if(!_0x477b1a['find'](({data:_0x456365})=>_0x456365['newRange']['isEqual'](_0x46c55a))){for(const {name:_0x1b8e94,data:_0x232c0f}of _0x477b1a)if(_0x46c55a['containsRange'](_0x232c0f['newRange'])){_0x24cc01['updateMarker'](_0x1b8e94,{'range':_0x46c55a}),_0x403694=!0x0;break;}}}return _0x403694;}),_0x4c8f2b['model']['document']['registerPostFixer'](_0x4320b7=>{let _0x561a0f=!0x1;const _0x329a74=_0x4c8f2b['plugins']['get']('Users')['me'],_0x4fdc98=_0x5b72fa['getSuggestions']()['filter'](_0x28b1b5=>_0x28b1b5['isInContent']&&_0x28b1b5['author']==_0x329a74),_0x3deb37=new Set(),_0x1b9619=new Set();for(const _0x25f8fc of _0x4fdc98)if('tablePaste'==_0x25f8fc['subType'])for(const _0x4d1bf3 of _0x25f8fc['getMarkers']()){const _0x37cbfd=_0x4d1bf3['getRange']()['getContainedElement']();if(_0x37cbfd){if(_0x37cbfd['is']('element','tableCellSuggestion')&&Ue(_0x37cbfd)){_0x25f8fc['removeMarker'](_0x4d1bf3['name']),_0x3deb37['add'](_0x37cbfd),_0x561a0f=!0x0;const _0x16e856=_0x37cbfd['nextSibling'],_0x1dcac0=_0x37cbfd['previousSibling'],_0x2f6a93=_0x16e856&&_0x16e856['is']('element','tableCellSuggestion'),_0x4fae1b=_0x1dcac0&&_0x1dcac0['is']('element','tableCellSuggestion');_0x2f6a93&&!_0x3deb37['has'](_0x16e856)&&_0x1b9619['add'](_0x16e856),_0x4fae1b&&!_0x3deb37['has'](_0x1dcac0)&&_0x1b9619['add'](_0x1dcac0);}else _0x37cbfd['is']('element','paragraph')&&_0x37cbfd['isEmpty']&&(_0x25f8fc['removeMarker'](_0x4d1bf3['name']),_0x561a0f=!0x0);}}else{if('tablePasteCell'==_0x25f8fc['subType']){if(!_0x25f8fc['attributes']||!_0x25f8fc['attributes']['tablePasteChainId'])continue;const _0x565173=_0x25f8fc['attributes']['markerAttributes'];if(_0x565173&&Object['keys'](_0x565173)['length'])continue;const _0x49fb1a=_0x25f8fc['attributes']['tablePasteChainId'];let _0x114e27=!0x0,_0x58c2ab=!0x0;for(const _0x3e40c9 of _0x4fdc98)if(_0x3e40c9['subType']&&_0x3e40c9['subType']['startsWith']('tablePaste')){if(!_0x3e40c9['attributes']['tablePasteChainId']){_0x58c2ab=!0x1;break;}if(_0x3e40c9['id']!=_0x25f8fc['id']&&_0x3e40c9['attributes']['tablePasteChainId']==_0x49fb1a){_0x114e27=!0x1;break;}}_0x58c2ab&&_0x114e27&&(_0x25f8fc['removeMarkers'](),_0x561a0f=!0x0);}}for(const _0x16cfb9 of _0x3deb37)_0x4320b7['remove'](_0x16cfb9);for(const _0x31d3b0 of _0x1b9619)_0x4320b7['unwrap'](_0x31d3b0);return _0x561a0f;}),_0x4c8f2b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x14a8a1=>_0x132fa4(_0x14a8a1),'converterPriority':'high'}),_0x4c8f2b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x20bb27,_0x2e446b)=>_0x2e446b['options']['showSuggestionHighlights']?_0x132fa4(_0x20bb27,!0x1):null,'converterPriority':'high'});const _0x5971fd=_0x4c8f2b['editing']['view'];this['listenTo'](_0x5971fd['document'],'clipboardOutput',(_0x321fdd,_0x5a5586)=>{const _0x215b6d=[];for(const _0x20a3a9 of _0x5971fd['createRangeIn'](_0x5a5586['content'])['getItems']())_0x20a3a9['is']('element','suggestion-td')&&_0x215b6d['push'](_0x20a3a9);_0x5971fd['change'](_0x4a2d9f=>{for(const _0x6da6ef of _0x215b6d)_0x4a2d9f['move'](_0x4a2d9f['createRangeIn'](_0x6da6ef),_0x4a2d9f['createPositionBefore'](_0x6da6ef)),_0x4a2d9f['remove'](_0x6da6ef);});});}}function Ue(_0x18fe83){if(_0x18fe83['isEmpty'])return!0x0;const _0x2f3969=_0x18fe83['getChild'](0x0);return _0x2f3969['is']('element','paragraph')&&_0x2f3969['isEmpty'];}function De(_0xb188a5,_0x5acc41={},_0x1eb410){for(const {isAnchor:_0x457ff9,cellHeight:_0x3ee7c0,cellWidth:_0x1fec7b}of _0x1eb410['createTableWalker'](_0xb188a5,{'includeAllSlots':!0x0,..._0x5acc41}))if(!_0x457ff9||0x1!=_0x3ee7c0||0x1!=_0x1fec7b)return!0x1;return!0x0;}class Bt extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4cd7c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cd7c1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4cd7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4cd7c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cd7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4cd7c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4cd7c1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e7999,_0x1fca26){const _0xe5735a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf82a35=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4eb01a=_0x1fca26['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4f498c=_0xf82a35['getColumnGroupElement'](_0x4eb01a);let _0x237b2f=_0x4f498c?_0xf82a35['getTableColumnsWidths'](_0x4f498c):null,_0x3ea190=_0x4eb01a['getAttribute']('tableWidth')||null;const _0x504216=_0x1fca26['tableWidth']||_0x3ea190,_0x1239b5=_0x1fca26['columnWidths']||_0x237b2f,_0x2a336a=this['editor']['plugins']['get']('Users')['me'];for(const _0x4837ef of _0xe5735a['getSuggestions']()){const _0x568d1f=_0x4837ef['getContainedElement']();if('resizeTable'===_0x4837ef['subType']&&_0x568d1f===_0x4eb01a){_0x4837ef['author']!==_0x2a336a&&_0x4837ef['discard']();const _0x3652e9=_0x4837ef['data']['commandParams'];_0x3ea190=_0x3652e9[0x0]['tableWidth'],_0x237b2f=_0x3652e9[0x0]['columnWidths'];break;}}_0x4e7999({'table':_0x4eb01a,'tableWidth':_0x504216,'columnWidths':_0x1239b5}),_0xe5735a['markBlockFormat'](_0x4eb01a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ea190,'columnWidths':_0x237b2f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x460092){if('formatBlock'!=_0x460092['type']&&'formatInline'!=_0x460092['type'])return;const {data:_0x1fe120}=_0x460092;if(_0x1fe120&&'resizeTable'===_0x1fe120['formatGroupId']){const _0x4b0dbf='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4b0dbf)};}}}class Ot extends _0x55fa68{['afterInit'](){const _0x4175c4=this['editor'];_0x4175c4['plugins']['has']('Template')&&_0x4175c4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x55fa68{['afterInit'](){const _0x1910fa=this['editor'];if(!_0x1910fa['commands']['get']('insertTableOfContents'))return;_0x1910fa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x330d01=_0x1910fa['plugins']['get']('TrackChangesEditing'),_0x2bd3f7=_0x1910fa['locale'];_0x330d01['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4e4dfd=>c(_0x2bd3f7,'ELEMENT_TABLE_OF_CONTENTS',_0x4e4dfd));}}class xt extends _0x55fa68{['afterInit'](){const _0x367f4d=this['editor'];if(!_0x367f4d['plugins']['has']('Title'))return;const _0x486f2c=_0x367f4d['plugins']['get']('TrackChangesEditing');_0x486f2c['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x367f4d['locale'],'ELEMENT_TITLE')),_0x367f4d['model']['document']['registerPostFixer'](_0x5865ee=>{let _0x3d206f=!0x1;const _0xfc36f1=Array['from'](_0x367f4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c4b99,data:_0x10a4ef}of _0xfc36f1){const {group:_0x2a5a9e}=_0x486f2c['_splitMarkerName'](_0x1c4b99);if('suggestion'!==_0x2a5a9e||!_0x10a4ef['newRange'])continue;const _0x111623=_0x10a4ef['newRange'],_0x610aa4=_0x111623['end']['nodeBefore'];if(!_0x610aa4||!_0x610aa4['is']('element','title-content'))continue;if(!_0x111623['start']['isTouching'](_0x111623['end']))continue;const _0x166f36=_0x367f4d['model']['schema']['getNearestSelectionRange'](_0x111623['end'],'forward');if(_0x166f36&&_0x166f36['isCollapsed']){const _0x18bf08=_0x5865ee['createRange'](_0x111623['start'],_0x166f36['start']);_0x18bf08['isEqual'](_0x111623)||(_0x5865ee['updateMarker'](_0x1c4b99,{'range':_0x18bf08}),_0x3d206f=!0x0);}_0x3d206f||(_0x5865ee['removeMarker'](_0x1c4b99),_0x3d206f=!0x0);}return _0x3d206f;});}}class Tt extends _0x55fa68{['afterInit'](){const _0x23ec34=this['editor'],_0x2b0e0a=_0x23ec34['plugins']['get']('TrackChangesEditing');_0x23ec34['plugins']['has']('Uploadcare')&&(_0x2b0e0a['enableCommand']('uploadcare'),_0x23ec34['plugins']['has']('UploadcareImageEdit')&&(_0x2b0e0a['enableCommand']('uploadcareImageEdit'),_0x2b0e0a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2b0e0a['registerBlockAttribute']('uploadcareImageId'),_0x2b0e0a['descriptionFactory']['registerDescriptionCallback'](_0x596334=>{if('attribute'!=_0x596334['type'])return;const {data:_0x449ad3}=_0x596334;return _0x449ad3&&'uploadcareImageId'==_0x449ad3['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x55fa68{['afterInit'](){const _0x8bbcba=this['editor'],_0x13000f=_0x8bbcba['plugins']['get']('TrackChangesEditing');_0x8bbcba['plugins']['has']('UndoEditing')&&(_0x13000f['enableCommand']('undo'),_0x13000f['enableCommand']('redo'));}}class Ut extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x29a6a1=this['editor'];if(!_0x29a6a1['plugins']['has']('TableCaptionEditing'))return;_0x29a6a1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x55fa68{['tableProperties'];['tableCellProperties'];constructor(_0x5ce83c){super(_0x5ce83c),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 _0x4532b4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4abb51 of this['tableProperties'])_0x4532b4['enableCommand'](_0x4abb51,(_0x4b6dec,_0x21cfda)=>{const _0x44c5b5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4abb51,[_0x44c5b5],this['tableProperties'],'tableProperties',_0x4b6dec,_0x21cfda);});_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4532b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x50b256,_0x4a3e09)=>this['handleDiscardAction'](this['tableProperties'],_0x50b256,_0x4a3e09)),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ebce5 of this['tableCellProperties'])_0x4532b4['enableCommand'](_0x2ebce5,(_0x32a839,_0x16982f)=>{const _0x2f9f14=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ebce5,_0x2f9f14,this['tableCellProperties'],'tableCellProperties',_0x32a839,_0x16982f);});_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4532b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x367f72,_0x57e1ed)=>this['handleDiscardAction'](this['tableCellProperties'],_0x367f72,_0x57e1ed)),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4532b4['descriptionFactory']['registerDescriptionCallback'](_0xae8c05=>this['handleSuggestionDescription'](_0xae8c05));}['_handlePropertyChange'](_0x26059e,_0x42c1be,_0x3dd7e0,_0x23eaf4,_0x306345,_0x20cb72){const _0x5d3ff8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x20cb72['batch'],()=>{for(const _0x29b63b of _0x42c1be){if(this['_getSuggestion'](_0x29b63b,_0x23eaf4))_0x306345(_0x20cb72);else{const _0x121e86={};for(const _0x24f0fc of _0x3dd7e0){const _0x48475c=_0x29b63b['getAttribute'](_0x24f0fc);void 0x0!==_0x48475c&&(_0x121e86[_0x24f0fc]=_0x48475c);}_0x306345(_0x20cb72),_0x5d3ff8['markBlockFormat'](_0x29b63b,{'commandParams':[_0x121e86]},[],_0x23eaf4);}}});}['handleDiscardAction'](_0x414219,_0x318666,_0x3584db){const _0xce954b=_0x318666[0x0]['start']['nodeAfter'],_0x52e19d=_0x3584db['commandParams'][0x0];this['editor']['model']['change'](_0x3a9b8b=>{for(const _0x4cc168 of _0x414219)void 0x0!==_0x52e19d[_0x4cc168]?_0x3a9b8b['setAttribute'](_0x4cc168,_0x52e19d[_0x4cc168],_0xce954b):_0x3a9b8b['removeAttribute'](_0x4cc168,_0xce954b);});}['handleSuggestionDescription'](_0x42d341){if(_0x42d341['data'])switch(_0x42d341['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x33cfa9,_0x5c5191){const _0x1e194a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x28a739 of _0x1e194a['getSuggestions']({'skipNotAttached':!0x0})){const _0x588a00=_0x28a739['getContainedElement']();if(_0x28a739['subType']===_0x5c5191&&_0x588a00===_0x33cfa9)return _0x28a739;}return null;}}const u='$elementName';class p extends _0x55fa68{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2aa14c,_0x49601d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2625a6){super(_0x2625a6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57d0b6,_0x3a929a,_0x2ecc45,_0x4fb0c2)=>{this['_model']['change'](()=>{for(const _0x49e492 of[..._0x4fb0c2,..._0x2ecc45])this['_model']['markers']['has'](_0x49e492)&&_0x2625a6['editing']['reconvertMarker'](_0x49e492);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2625a6['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2625a6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2625a6['config']['get']('trackChanges.trackFormatChanges'),_0x2625a6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2625a6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2625a6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x593300=this['editor'],_0x41259c=(_0xca644d,_0x249f51)=>{if('attribute'!=_0xca644d)return'ck-suggestion-marker-'+_0xca644d;const _0x1d1333=_0x249f51['split']('|')[0x0];return this['_isBlockAttribute'](_0x1d1333)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x593300['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2188c0=>{const {id:_0x16e445,authorId:_0x533b01,type:_0x49f785,subType:_0x5621b1}=this['_splitMarkerName'](_0x2188c0['markerName']),_0x50f98f=['ck-suggestion-marker',_0x41259c(_0x49f785,_0x5621b1)];let _0x32e4ec=0xbb8;return this['activeMarkers']['includes'](_0x2188c0['markerName'])&&(_0x50f98f['push']('ck-suggestion-marker--active'),_0x32e4ec=0xbc2),'deletion'==_0x49f785&&(_0x32e4ec+=0x5),{'classes':_0x50f98f,'attributes':{'data-suggestion':_0x16e445,'data-author-id':_0x533b01},'priority':_0x32e4ec};}}),_0x593300['conversion']['for']('dataDowncast')['add'](_0x393f76=>{_0x393f76['on']('addMarker:suggestion',(_0x5c9f5f,_0x18c8e1,_0xd42bbf)=>{if(!_0xd42bbf['options']['showSuggestionHighlights'])return;const _0x588bca=_0x18c8e1['item'];if(!_0x588bca)return;const _0x189dc=_0xd42bbf['mapper']['toViewElement'](_0x588bca);_0x593300['model']['schema']['isObject'](_0x588bca)&&_0x189dc&&!_0x189dc['getCustomProperty']('widget')&&_0x189dc['is']('containerElement')&&_0x27b0d2(_0x189dc,_0xd42bbf['writer']);},{'priority':'high'});}),_0x593300['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23e5bc,_0x10c8b0)=>{if(!_0x10c8b0['options']['showSuggestionHighlights'])return null;const {type:_0x173a32,subType:_0x978824}=this['_splitMarkerName'](_0x23e5bc['markerName']);return{'classes':['ck-suggestion-marker',_0x41259c(_0x173a32,_0x978824)],'priority':0xbb8};}});const _0x341319=({showActiveMarkers:_0x684364=!0x0,isAttributeSuggestion:_0x593471=!0x1}={})=>(_0x5cd998,_0x2a3b5f,_0x167832)=>{if(!_0x2a3b5f['item'])return;const {id:_0x29c172,authorId:_0x7d6225}=this['_splitMarkerName'](_0x2a3b5f['markerName']);if(_0x593471){const _0x4c4c18=this['_suggestions']['get'](_0x29c172),_0x4afc93=this['_getAttributeKey'](_0x4c4c18);if(!this['_isBlockAttribute'](_0x4afc93))return;}if(_0x2a3b5f['item']['is']('selection'))return void _0x167832['consumable']['consume'](_0x2a3b5f['item'],_0x5cd998['name']);const _0x5be26d=_0x167832['mapper']['toViewElement'](_0x2a3b5f['item']);if(_0x2a3b5f['item']['is']('element')&&_0x593300['model']['schema']['isBlock'](_0x2a3b5f['item'])&&!_0x5be26d['getCustomProperty']('addHighlight')){_0x167832['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5be26d),_0x167832['writer']['setAttribute']('data-suggestion',_0x29c172,_0x5be26d),_0x167832['writer']['setAttribute']('data-author-id',_0x7d6225,_0x5be26d),_0x167832['mapper']['bindElementToMarker'](_0x5be26d,_0x2a3b5f['markerName']),_0x684364&&(this['activeMarkers']['includes'](_0x2a3b5f['markerName'])?_0x167832['writer']['addClass']('ck-suggestion-marker--active',_0x5be26d):_0x167832['writer']['removeClass']('ck-suggestion-marker--active',_0x5be26d));for(const _0x29c20a of _0x593300['model']['createRangeIn'](_0x2a3b5f['item'])['getItems']())_0x167832['consumable']['consume'](_0x29c20a,_0x5cd998['name']);_0x167832['consumable']['consume'](_0x2a3b5f['item'],_0x5cd998['name']);}};_0x593300['conversion']['for']('dataDowncast')['add'](_0x28f6fc=>{_0x28f6fc['on']('addMarker:suggestion:formatBlock',(_0x5a66bd,_0x1201d0,_0x3b9e32)=>{_0x3b9e32['options']['showSuggestionHighlights']&&_0x341319({'showActiveMarkers':!0x1})(_0x5a66bd,_0x1201d0,_0x3b9e32);},{'priority':'highest'});}),_0x593300['conversion']['for']('dataDowncast')['add'](_0x3f4e9a=>{_0x3f4e9a['on']('addMarker:suggestion:attribute',(_0x475d99,_0x336e4b,_0x347265)=>{_0x347265['options']['showSuggestionHighlights']&&_0x341319({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x475d99,_0x336e4b,_0x347265);},{'priority':'highest'});}),_0x593300['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x111bd1,_0x42aa13)=>_0x42aa13['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x111bd1['substr'](0xb)}}),_0x593300['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ea25f,{writer:_0x44f1fe})=>{let _0x402e0b='suggestion:'+_0x2ea25f['getAttribute']('suggestion-type')+':'+_0x2ea25f['getAttribute']('id');return _0x2ea25f['getAttribute']('marker-count')&&(_0x402e0b+=':'+_0x2ea25f['getAttribute']('marker-count')),_0x44f1fe['createElement']('$marker',{'data-name':_0x402e0b});}}),_0x593300['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x3e6f19=>{_0x3e6f19['on']('addMarker:suggestion:formatBlock',_0x341319(),{'priority':'high'});}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x184f7d=>{_0x184f7d['on']('addMarker:suggestion:attribute',_0x341319({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x130a76=>{_0x130a76['on']('removeMarker:suggestion:formatBlock',(_0x1069a4,_0x1bea90,_0x1aafa4)=>{const _0x58ee19=_0x1aafa4['mapper']['markerNameToElements'](_0x1bea90['markerName']);if(_0x58ee19){for(const _0x4b1a23 of _0x58ee19)_0x4b1a23['getCustomProperty']('addHighlight')||(_0x1aafa4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4b1a23),_0x1aafa4['writer']['removeAttribute']('data-suggestion',_0x4b1a23),_0x1aafa4['writer']['removeAttribute']('data-author-id',_0x4b1a23),_0x1aafa4['mapper']['unbindElementFromMarkerName'](_0x4b1a23,_0x1bea90['markerName']));}},{'priority':'high'});}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x9543aa=>{_0x9543aa['on']('removeMarker:suggestion:attribute',(_0x5d97c3,_0x42a558,_0x267023)=>{const _0x5527c4=_0x267023['mapper']['markerNameToElements'](_0x42a558['markerName']);if(!_0x5527c4)return;const {id:_0x1ec5dd}=this['_splitMarkerName'](_0x42a558['markerName']),_0x457d09=this['_suggestions']['get'](_0x1ec5dd),_0x5f526c=this['_getAttributeKey'](_0x457d09);if(this['_isBlockAttribute'](_0x5f526c)){for(const _0x42081e of _0x5527c4)_0x42081e['getCustomProperty']('addHighlight')||(_0x267023['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x42081e),_0x267023['writer']['removeAttribute']('data-suggestion',_0x42081e),_0x267023['writer']['removeAttribute']('data-author-id',_0x42081e),_0x267023['mapper']['unbindElementFromMarkerName'](_0x42081e,_0x42a558['markerName']));}},{'priority':'high'});}),_0x593300['model']['document']['registerPostFixer'](_0xa2ccdd=>{let _0x426c7f=!0x1;const _0x1b5a88=Array['from'](_0x593300['model']['document']['differ']['getChangedMarkers']()),_0x96f374=new Set();for(const {name:_0x1a4336,data:_0x395fc8}of _0x1b5a88){const {group:_0x4d5132,type:_0x2de291,subType:_0x1ad254,id:_0x16322c}=this['_splitMarkerName'](_0x1a4336);if('suggestion'!==_0x4d5132)continue;const _0x391815=this['_suggestions']['get'](_0x16322c);if(null!=_0x395fc8['newRange']){'formatInline'==_0x2de291&&(_0x426c7f=_0x426c7f||Jt(_0x395fc8['newRange'],_0x1a4336,_0xa2ccdd,_0x593300['model']['schema']));const _0x21d3b5='attribute'==_0x2de291&&this['_isBlockAttribute'](_0x1ad254['split']('|')[0x0]);if(_0x395fc8['newRange']['isCollapsed']||'$graveyard'==_0x395fc8['newRange']['root']['rootName']||'formatBlock'==_0x2de291&&!Ht(_0x395fc8['newRange'])||_0x21d3b5&&!Ht(_0x395fc8['newRange'])||'deletion'==_0x2de291&&!(!Lt(_0x314994=_0x395fc8['newRange'])&&!function(_0x361084){return _0x361084['start']['parent']==_0x361084['end']['nodeBefore']&&_0x361084['start']['isAtEnd'];}(_0x314994)))_0xa2ccdd['removeMarker'](_0x1a4336),_0x426c7f=!0x0;else{if(!_0x391815||!_0x391815['isInContent'])continue;if(_0x395fc8['newRange']&&_0x395fc8['oldRange']&&_0x395fc8['newRange']['isEqual'](_0x395fc8['oldRange']))continue;_0x96f374['add'](_0x391815);}}}var _0x314994;return _0x96f374['size']>0x0&&(_0x426c7f=!!this['_joinWithAdjacentSuggestions'](_0x96f374)||_0x426c7f),_0x426c7f;}),_0x593300['model']['document']['registerPostFixer'](_0x5b8272=>{let _0xcce039=!0x1;for(const _0x8a66d6 of _0x593300['model']['document']['differ']['getChanges']())if('insert'==_0x8a66d6['type'])for(const _0x42a13a of this['_suggestions']['values']()){if(_0x42a13a['isMultiRange']||!_0x42a13a['isInContent'])continue;const _0x412d4d='formatBlock'==_0x42a13a['type'],_0x23779e=this['_getAttributeKey'](_0x42a13a),_0x206155=_0x23779e&&this['_isBlockAttribute'](_0x23779e);if(!_0x412d4d&&!_0x206155)continue;const _0x278063=_0x42a13a['getFirstRange']();if(_0x278063['start']['parent']!=_0x278063['end']['parent']&&!_0x278063['end']['isAtEnd']){const _0x2f23cf=_0x593300['model']['createPositionAt'](_0x278063['start']['nodeAfter'],'end'),_0x502431=_0x593300['model']['createRange'](_0x278063['start'],_0x2f23cf);_0x5b8272['updateMarker'](_0x42a13a['getFirstMarker'](),{'range':_0x502431}),_0xcce039=!0x0;}}return _0xcce039;}),_0x593300['model']['document']['registerPostFixer'](_0x444364=>this['_processAttributeChanges'](_0x444364)),_0x593300['model']['document']['registerPostFixer'](_0x4ecef1=>!_0x4ecef1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4ecef1)),_0x593300['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x593300['model']['document']['on']('change:data',(_0x2f9b2f,_0xd55cbd)=>{if(!_0xd55cbd['isLocal']||_0xd55cbd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1cec42=_0x593300['model']['document']['differ']['getChanges']();if(0x0==_0x1cec42['length'])return;const _0x1ee719=[],_0xd7eccf=_0x1cec42['filter'](_0x27060f=>'attribute'==_0x27060f['type']),_0x4a6d80=_0x1cec42['filter'](_0x4a3a6a=>'insert'==_0x4a3a6a['type']&&'$text'!=_0x4a3a6a['name']);for(const _0x443a36 of _0xd7eccf)this['_isRegisteredAttribute'](_0x443a36['attributeKey'])&&_0x1ee719['push']({'key':_0x443a36['attributeKey'],'newValue':_0x443a36['attributeNewValue'],'oldValue':_0x443a36['attributeOldValue'],'range':qt(_0x443a36['range'],_0x593300['model'])});for(const _0x5ed77d of _0x4a6d80){if('rename'!=_0x5ed77d['action']&&'refresh'!=_0x5ed77d['action'])continue;const _0x5b1677=zt(_0x5ed77d['position']['nodeAfter'],_0x593300['model']),_0x2330a8=_0x5ed77d['before'];'rename'==_0x5ed77d['action']&&_0x1ee719['push']({'key':u,'newValue':_0x5ed77d['name'],'oldValue':_0x2330a8['name'],'range':_0x5b1677});for(const [_0xd70b44,_0x136716]of _0x2330a8['attributes']){if(!this['_isRegisteredAttribute'](_0xd70b44))continue;const _0x3d4850=_0x5ed77d['attributes']['get'](_0xd70b44);_0x136716!==_0x3d4850&&_0x1ee719['push']({'key':_0xd70b44,'newValue':_0x3d4850,'oldValue':_0x136716,'range':_0x5b1677});}for(const [_0x3dda69,_0x3ebd47]of _0x5ed77d['attributes'])this['_isRegisteredAttribute'](_0x3dda69)&&(_0x2330a8['attributes']['has'](_0x3dda69)||_0x1ee719['push']({'key':_0x3dda69,'newValue':_0x3ebd47,'oldValue':null,'range':_0x5b1677}));}0x0!=_0x1ee719['length']&&_0x593300['model']['enqueueChange'](_0xd55cbd,_0x46c105=>{const _0x116bdd=_0x5e3891();for(const {range:_0x411fe2,key:_0x2151fd,oldValue:_0x58ff5a,newValue:_0x4421fd}of _0x1ee719)this['markAttributeChange'](_0x411fe2,_0x2151fd,_0x58ff5a,_0x4421fd,{'groupId':_0x116bdd});this['_reduceExistingSuggestions'](_0x46c105,_0x1ee719);});},{'priority':'lowest'}),_0x593300['model']['markers']['on']('update:suggestion',(_0x5a4fe8,_0x25e86d,_0x31c8aa)=>{if(null==_0x31c8aa){const {id:_0x35f331}=this['_splitMarkerName'](_0x25e86d['name']),_0x2193c1=this['_suggestions']['get'](_0x35f331);_0x2193c1&&_0x2193c1['addMarkerName'](_0x25e86d['name']);}}),_0x593300['model']['document']['on']('change:data',()=>{const _0x3764a2=Array['from'](_0x593300['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b037c=>'suggestion'===this['_splitMarkerName'](_0x1b037c['name'])['group']);if(0x0===_0x3764a2['length'])return;_0x3764a2['sort']((_0x4c9d36,_0x1cb4cc)=>{const _0x5b2f9c=_0x4c9d36['data']['oldRange'],_0x23abfe=_0x1cb4cc['data']['oldRange'];return null===_0x5b2f9c&&null===_0x23abfe?0x0:null===_0x5b2f9c&&null!==_0x23abfe?-0x1:null!==_0x5b2f9c&&null===_0x23abfe?0x1:_0x5b2f9c['start']['isBefore'](_0x23abfe['start'])?-0x1:0x1;});const _0xf64ae6=new Set(),_0x39b0fb=new Set();for(const {name:_0x3a3878,data:_0x1520ab}of _0x3764a2){const {id:_0x595656}=this['_splitMarkerName'](_0x3a3878);if(null===_0x1520ab['oldRange']){const _0x32142a=this['_handleNewSuggestionMarker'](_0x3a3878);_0x39b0fb['add'](_0x32142a);}else{const _0x2d2454=this['_suggestions']['get'](_0x595656);null!==_0x1520ab['newRange']||_0x2d2454['isInContent']?(_0xf64ae6['add'](_0x2d2454['head']),_0x39b0fb['add'](_0x2d2454)):this['_removeSuggestion'](_0x2d2454);}}_0x39b0fb['size']>0x0&&this['_refreshSuggestionsChain'](_0x39b0fb);for(const _0x2dd0bd of _0xf64ae6)this['fire']('suggestionChanged',_0x2dd0bd);}),_0x593300['model']['on']('applyOperation',(_0x3a1c6b,_0x222e76)=>{const _0x30178e=_0x222e76[0x0];if(!this['_suggestions']['size'])return;if(!_0x30178e['isDocumentOperation'])return;if(_0x30178e['batch']['isUndo']||!_0x30178e['batch']['isLocal'])return;let _0x46b299,_0x104676;switch(_0x30178e['type']){case'insert':_0x46b299=_0x593300['model']['createPositionAt'](_0x30178e['position']),_0x104676=_0x46b299['getShiftedBy'](_0x30178e['howMany']);break;case'split':_0x46b299=_0x593300['model']['createPositionAt'](_0x30178e['splitPosition']),_0x104676=_0x593300['model']['createPositionAt'](_0x30178e['moveTargetPosition']);break;case'move':_0x46b299=_0x593300['model']['createPositionAt'](_0x30178e['targetPosition']),_0x104676=_0x46b299['getShiftedBy'](_0x30178e['howMany']);break;default:return;}const _0x317d6b=_0x593300['model']['createRange'](_0x46b299,_0x104676);_0x593300['model']['change'](()=>{for(const {suggestion:_0x59e521,meta:_0x7127ed}of this['_findSuggestions'](_0x317d6b)){if(_0x59e521['isMultiRange'])continue;if('formatInline'==_0x59e521['type'])continue;const _0x2636b3=this['_getAttributeKey'](_0x59e521);if(_0x2636b3&&this['_isBlockAttribute'](_0x2636b3)&&'split'!=_0x30178e['type'])continue;const _0x218091=_0x59e521['data']&&_0x59e521['data']['multipleBlocks'];('formatBlock'!=_0x59e521['type']||'split'==_0x30178e['type']&&!_0x218091)&&(_0x7127ed['containsRangeInObject']||'insertion'==_0x59e521['type']&&_0x7127ed['isOwn']||_0x59e521['getFirstRange']()['containsRange'](_0x317d6b)&&this['_breakSuggestionMarker'](_0x59e521,_0x46b299,_0x104676));}});},{'priority':'lowest'}),_0x593300['model']['on']('deleteContent',(_0x2192e1,_0x5420cc)=>{const _0x372df0=_0x5420cc[0x0],_0x47a969=_0x5420cc[0x1];if(_0x47a969&&_0x47a969['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x372df0['isCollapsed'])return;const _0x2d572f=_0x593300['model']['schema'],{start:_0x5bffd2,end:_0x1ffd52}=_0x372df0['getFirstRange'](),_0x591b2e=_0x5bffd2['nodeAfter']&&_0x2d572f['isLimit'](_0x5bffd2['nodeAfter'])?null:_0x2d572f['getNearestSelectionRange'](_0x5bffd2,'forward'),_0x3d761e=_0x1ffd52['nodeBefore']&&_0x2d572f['isLimit'](_0x1ffd52['nodeBefore'])?null:_0x2d572f['getNearestSelectionRange'](_0x1ffd52,'backward'),_0x491766=_0x593300['model']['createRange'](_0x591b2e?_0x591b2e['start']:_0x5bffd2,_0x3d761e?_0x3d761e['end']:_0x1ffd52);_0x593300['model']['change'](_0xff0d57=>{this['markDeletion'](_0x491766);const _0x2de6f7=_0x593300['model']['schema']['getNearestSelectionRange'](_0x491766['start']);_0x372df0['is']('documentSelection')?_0xff0d57['setSelection'](_0x2de6f7):_0x372df0['setTo'](_0x2de6f7);}),_0x2192e1['stop']();},{'priority':_0x2c6b22['normal']+0xa}),_0x593300['model']['on']('insertContent',(_0x31dece,_0x772f0f)=>{const _0x534c66=_0x772f0f[_0x772f0f['length']-0x1];_0x534c66&&_0x534c66['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x593300['model']['change'](()=>{let _0x5a514d=_0x593300['model']['insertContent'](_0x772f0f[0x0],_0x772f0f[0x1],_0x772f0f[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a514d)return;_0x31dece['return']=_0x5a514d['clone']();const _0x412a74=_0x5a514d['end']['nodeBefore'],_0x1963b6=_0x593300['model']['schema'];_0x412a74&&_0x1963b6['isBlock'](_0x412a74)&&!_0x1963b6['isObject'](_0x412a74)&&(_0x5a514d=_0x593300['model']['createRange'](_0x5a514d['start'],_0x593300['model']['createPositionAt'](_0x412a74,'end'))),this['markInsertion'](_0x5a514d);}),_0x31dece['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf14df2=new O(_0x593300,this['_suggestions']);_0x593300['commands']['add']('acceptSuggestion',_0xf14df2),this['enableCommand']('acceptSuggestion');const _0x380bdc=new R(_0x593300,this['_suggestions']);_0x593300['commands']['add']('discardSuggestion',_0x380bdc),this['enableCommand']('discardSuggestion'),_0x593300['commands']['add']('acceptAllSuggestions',new x(_0x593300,_0xf14df2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x593300['commands']['add']('discardAllSuggestions',new x(_0x593300,_0x380bdc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x593300['commands']['add']('acceptSelectedSuggestions',new E(_0x593300,_0xf14df2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x593300['commands']['add']('discardSelectedSuggestions',new E(_0x593300,_0x380bdc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x22c16c=_0x593300['plugins']['get']('CommentsRepository');this['listenTo'](_0x22c16c,'addComment',(_0x1adaca,{threadId:_0xf3f5a0})=>{const _0x188801=this['_suggestions']['get'](_0xf3f5a0);_0x188801&&_0x188801['commentThread']&&0x1===_0x188801['commentThread']['length']&&this['_updateSuggestionData'](_0xf3f5a0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x22c16c,'removeComment',(_0x55e9f4,{threadId:_0xc3d821})=>{const _0x1d58c8=this['_suggestions']['get'](_0xc3d821);_0x1d58c8&&_0x1d58c8['commentThread']&&!_0x1d58c8['commentThread']['length']&&this['_updateSuggestionData'](_0xc3d821,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f94ac){const _0x321138=_0x13db74([0x75,0x43,0x45,0x6e,0x32,0x58,0x35,0x4d,0x33,0x6d,0x6c,0x69,0x48,0x41,0x4b,0x30,0x76,0x6f,0x5a,0x73,0x66,0x42,0x55,0x62,0x70,0x7a,0x54,0x51,0x36,0x72,0x4a,0x4f,0x52,0x68,0x6b,0x6a,0x38,0x57,0x50,0x46,0x78,0x53,0x49,0x39,0x79,0x56,0x67,0x63,0x44,0x47,0x4e,0x74,0x71,0x77,0x65,0x4c,0x34,0x37,0x59,0x61,0x31,0x64]),_0x41b076=0x60dd9c56,_0x2d31db=0x60daffce^_0x41b076,_0x4dd2bc=window[_0x13db74([0x44,0x61,0x74,0x65])][_0x13db74([0x6e,0x6f,0x77])](),_0x4c51f2=_0x2f94ac[_0x13db74([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x318010=new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91c0b3=>{_0x4c51f2[_0x13db74([0x6f,0x6e,0x63,0x65])](_0x13db74([0x72,0x65,0x61,0x64,0x79]),_0x91c0b3);}),_0x19cf66={[_0x13db74([0x6b,0x74,0x79])]:_0x13db74([0x45,0x43]),[_0x13db74([0x75,0x73,0x65])]:_0x13db74([0x73,0x69,0x67]),[_0x13db74([0x63,0x72,0x76])]:_0x13db74([0x50,0x2d,0x32,0x35,0x36]),[_0x13db74([0x78])]:_0x13db74([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]),[_0x13db74([0x79])]:_0x13db74([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]),[_0x13db74([0x61,0x6c,0x67])]:_0x13db74([0x45,0x53,0x32,0x35,0x36])},_0x168def=_0x4c51f2[_0x13db74([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13db74([0x67,0x65,0x74])](_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43747e(){let _0x460b9e,_0x3979e6=null,_0x195a0d=null;try{if(_0x168def==_0x13db74([0x47,0x50,0x4c]))return _0x13db74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x460b9e=_0x155967(),!_0x460b9e)return _0x13db74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x460b9e[_0x13db74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x195a0d=_0x2248c0(_0x460b9e[_0x13db74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x460b9e[_0x13db74([0x6a,0x74,0x69])])),await _0x542cc9()?_0x10ff1e()?_0x3456a2()?_0x13db74([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b3eea()?(_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13db74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3979e6=_0x551503(_0x13db74([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13db74([0x74,0x72,0x69,0x61,0x6c])&&(_0x3979e6=_0x551503(_0x13db74([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d4919()):_0x13db74([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13db74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13db74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1eccda){return _0x13db74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3456a2(){const _0x29201c=[_0x13db74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13db74([0x74,0x72,0x69,0x61,0x6c])][_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4dd2bc/0x3e8:0xe10*_0x2d31db;return _0x460b9e[_0x13db74([0x65,0x78,0x70])]<_0x29201c;}function _0x10ff1e(){const _0x2801e8=_0x460b9e[_0x13db74([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2801e8)return!0x1;if(_0x2801e8[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x2a])))return!0x0;if(_0x2801e8[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x54,0x43])))return!0x0;if(_0x2801e8[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x52,0x54,0x43]))){if(_0x4256e3())return!0x0;if(_0x95e9a5()||_0x4270f2())return!0x0;}return!0x1;}function _0x4b3eea(){const _0x1191a1=_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1191a1||0x0==_0x1191a1[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x259c8a}=new URL(window[_0x13db74([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1191a1[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x259c8a))return!0x0;const _0x47aefd=_0x259c8a[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e]));return _0x1191a1[_0x13db74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19ad31=>_0x19ad31[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x2a])))[_0x13db74([0x6d,0x61,0x70])](_0x26c3a1=>_0x26c3a1[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e])))[_0x13db74([0x73,0x6f,0x6d,0x65])](_0x237bf1=>_0x47aefd[_0x13db74([0x65,0x76,0x65,0x72,0x79])]((_0x374bc0,_0xcc8520)=>_0x237bf1[_0xcc8520]===_0x374bc0||_0x237bf1[_0xcc8520]===_0x13db74([0x2a])));}function _0x1d4919(){return _0x3979e6&&_0x195a0d?new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x113927,_0x417e33)=>{_0x3979e6[_0x13db74([0x74,0x68,0x65,0x6e])](_0x113927,_0x417e33),_0x195a0d[_0x13db74([0x74,0x68,0x65,0x6e])](_0x21ffa0=>{_0x21ffa0!=_0x13db74([0x56,0x61,0x6c,0x69,0x64])&&_0x113927(_0x21ffa0);},_0x417e33);}):_0x3979e6||_0x195a0d||_0x13db74([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2248c0(_0x162135,_0x23aea8){return new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e898c=>{if(_0x2079c2())return _0x5e898c(_0x13db74([0x56,0x61,0x6c,0x69,0x64]));_0x1072fe(),_0x4c51f2[_0x13db74([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13db74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b0963=!0x1;const _0x369ff6=_0x5e3891();function _0x374570(_0x8bff29){return!!_0x8bff29&&(typeof _0x8bff29===_0x13db74([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8bff29===_0x13db74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8bff29[_0x13db74([0x74,0x68,0x65,0x6e])]===_0x13db74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8bff29[_0x13db74([0x63,0x61,0x74,0x63,0x68])]===_0x13db74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x269fb4(_0x16e37c){_0x4a5c5d(_0x16e37c)[_0x13db74([0x74,0x68,0x65,0x6e])](_0x5db311=>{if(!_0x5db311||_0x5db311[_0x13db74([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13db74([0x6f,0x6b]))return _0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18655a(_0x35f7e0(_0x369ff6+_0x23aea8))!=_0x5db311[_0x13db74([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13db74([0x56,0x61,0x6c,0x69,0x64]);})[_0x13db74([0x74,0x68,0x65,0x6e])](_0xd8a815=>(_0xee7af7(),_0xd8a815),()=>{const _0x28d475=_0x26f99f();return null==_0x28d475?(_0xee7af7(),_0x13db74([0x56,0x61,0x6c,0x69,0x64])):_0x13db74(_0x4dd2bc-_0x28d475>(0x44d11856^_0x41b076)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13db74([0x74,0x68,0x65,0x6e])](_0x5e898c)[_0x13db74([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e898c(_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35c5d1=0x60eb72d6^_0x41b076;function _0xee7af7(){const _0x39650e=_0x13db74([0x6c,0x6c,0x63,0x74,0x2d])+_0x18655a(_0x35f7e0(_0x162135)),_0x1c96d5=_0x1cbd17(_0x18655a(window[_0x13db74([0x4d,0x61,0x74,0x68])][_0x13db74([0x63,0x65,0x69,0x6c])](_0x4dd2bc/_0x35c5d1)));window[_0x13db74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13db74([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39650e,_0x1c96d5);}function _0x26f99f(){const _0x504ad8=_0x13db74([0x6c,0x6c,0x63,0x74,0x2d])+_0x18655a(_0x35f7e0(_0x162135)),_0x3b54a5=window[_0x13db74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13db74([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x504ad8);return _0x3b54a5?window[_0x13db74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cbd17(_0x3b54a5),0x10)*_0x35c5d1:null;}function _0x4a5c5d(_0x200c3a){return new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x265193,_0x23451c)=>{_0x200c3a[_0x13db74([0x74,0x68,0x65,0x6e])](_0x265193,_0x23451c),window[_0x13db74([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23451c,0x60dc4896^_0x41b076);});}}_0x4c51f2[_0x13db74([0x6f,0x6e])](_0x13db74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa9935f,_0x4ecf27)=>{if(_0x4ecf27[0x0]!=_0x162135)return _0x5e898c(_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ecf27[0x1]={..._0x4ecf27[0x1],[_0x13db74([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x369ff6};},{[_0x13db74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13db74([0x68,0x69,0x67,0x68])}),_0x4c51f2[_0x13db74([0x6f,0x6e])](_0x13db74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e3c7f=>{_0x374570(_0x1e3c7f[_0x13db74([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b0963=!0x0,_0x269fb4(_0x1e3c7f[_0x13db74([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13db74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13db74([0x6c,0x6f,0x77])}),_0x318010[_0x13db74([0x74,0x68,0x65,0x6e])](()=>{_0x2b0963||_0x5e898c(_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2079c2(){return _0x4c51f2[_0x13db74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13db74([0x76,0x69,0x65,0x77])][_0x13db74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13db74([0x61,0x75,0x74,0x6f]);}function _0x1072fe(){_0x4c51f2[_0x13db74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13db74([0x76,0x69,0x65,0x77])][_0x13db74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13db74([0x61,0x75,0x74,0x6f]);}}function _0x551503(_0x3e9bbd){const _0x1fdc89=[new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e5432=>setTimeout(_0x3e5432,0x60d4a29a^_0x41b076)),_0x318010[_0x13db74([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e5505=>{let _0x116e28=0x0;_0x4c51f2[_0x13db74([0x6d,0x6f,0x64,0x65,0x6c])][_0x13db74([0x6f,0x6e])](_0x13db74([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x539e25,_0x536185)=>{_0x536185[0x0][_0x13db74([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x116e28++,_0x116e28==(0x60dd9dae^_0x41b076)&&(_0x2e5505(),_0x539e25[_0x13db74([0x6f,0x66,0x66])]());});}))];return window[_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13db74([0x72,0x61,0x63,0x65])](_0x1fdc89)[_0x13db74([0x74,0x68,0x65,0x6e])](()=>_0x3e9bbd);}async function _0x159df6(){await _0x318010,_0x4c51f2[_0x13db74([0x6d,0x6f,0x64,0x65,0x6c])][_0x13db74([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfddc19,_0x4c51f2[_0x13db74([0x6d,0x6f,0x64,0x65,0x6c])][_0x13db74([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfddc19,_0x4c51f2[_0x13db74([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13db74([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4256e3(){return _0xe21cc2(_0x13db74([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e1e13(_0x13db74([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x13db74([0x73,0x74,0x61,0x74,0x65])]==_0x13db74([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x95e9a5(){return _0xe21cc2(_0x13db74([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 _0x4270f2(){return _0xe21cc2(_0x13db74([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a44a0(_0x4ef115){const _0x120317=_0x5ac817();_0x4c51f2[_0x120317]=_0x13db74([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ef115,_0x4ef115!=_0x13db74([0x56,0x61,0x6c,0x69,0x64])&&_0x159df6();}function _0x5ac817(){const _0x28e206=window[_0x13db74([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13db74([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13db74([0x6e,0x6f,0x77])]())[_0x13db74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13db74([0x2e]),'');let _0x58322b=_0x13db74([0x75]);for(let _0x17225e=0x0;_0x17225e<_0x28e206[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17225e+=0x2){let _0x577670=window[_0x13db74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28e206[_0x13db74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17225e,_0x17225e+0x2));_0x577670>=_0x321138[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x577670-=_0x321138[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58322b+=_0x321138[_0x577670];}return _0x58322b;}function _0x155967(){const _0x2b763c=_0x168def[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e]));if(0x3!=_0x2b763c[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40a1d9(_0x2b763c[0x1]);function _0x40a1d9(_0x1d18d6){const _0x2d753e=_0x2e4a77(_0x1d18d6);return _0x2d753e&&_0x5cc26f()?_0x2d753e:null;function _0x5cc26f(){const _0x159446=_0x2d753e[_0x13db74([0x6a,0x74,0x69])],_0x2f3847=window[_0x13db74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x159446[_0x13db74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x159446[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e3c5d={..._0x2d753e,[_0x13db74([0x6a,0x74,0x69])]:_0x159446[_0x13db74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x159446[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e3c5d[_0x13db74([0x76,0x63])],_0x35f7e0(_0x1e3c5d)==_0x2f3847;}}}async function _0x542cc9(){let _0x145d46=!0x0;try{const _0xe34fc2=_0x168def[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e])),[_0x41d77b,_0x1157e9,_0x3a6cde]=_0xe34fc2;return _0x2b9d37(_0x41d77b),await _0x52a54b(_0x41d77b,_0x1157e9,_0x3a6cde),_0x145d46;}catch(_0x7b91ab){return!0x1;}function _0x2b9d37(_0x4dfe02){const _0x145963=_0x2e4a77(_0x4dfe02);_0x145963&&_0x145963[_0x13db74([0x61,0x6c,0x67])]==_0x13db74([0x45,0x53,0x32,0x35,0x36])||(_0x145d46=!0x1);}async function _0x52a54b(_0x3dd165,_0x311915,_0x563e5b){const _0x3c83ea=window[_0x13db74([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13db74([0x66,0x72,0x6f,0x6d])](_0x3620fc(_0x563e5b),_0x3374c0=>_0x3374c0[_0x13db74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d7c7f=new window[(_0x13db74([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13db74([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3dd165+_0x13db74([0x2e])+_0x311915),_0x3bdc8d=window[_0x13db74([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13db74([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bdc8d)return;const _0x466343=await _0x3bdc8d[_0x13db74([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13db74([0x6a,0x77,0x6b]),_0x19cf66,{[_0x13db74([0x6e,0x61,0x6d,0x65])]:_0x13db74([0x45,0x43,0x44,0x53,0x41]),[_0x13db74([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13db74([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13db74([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bdc8d[_0x13db74([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13db74([0x6e,0x61,0x6d,0x65])]:_0x13db74([0x45,0x43,0x44,0x53,0x41]),[_0x13db74([0x68,0x61,0x73,0x68])]:{[_0x13db74([0x6e,0x61,0x6d,0x65])]:_0x13db74([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x466343,_0x3c83ea,_0x1d7c7f)||(_0x145d46=!0x1);}}function _0x2e4a77(_0x3d7101){return _0x3d7101[_0x13db74([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13db74([0x65,0x79]))?JSON[_0x13db74([0x70,0x61,0x72,0x73,0x65])](_0x3620fc(_0x3d7101)):null;}function _0x3620fc(_0x317fe3){return window[_0x13db74([0x61,0x74,0x6f,0x62])](_0x317fe3[_0x13db74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13db74([0x2b]))[_0x13db74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13db74([0x2f])));}function _0x35f7e0(_0x20fea4){let _0x524026=0x1505;function _0x342229(_0x193c8a){for(let _0x42c765=0x0;_0x42c765<_0x193c8a[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42c765++){const _0x5bc8d0=_0x193c8a[_0x13db74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42c765);_0x524026=(_0x524026<<0x5)+_0x524026+_0x5bc8d0,_0x524026&=_0x524026;}}function _0x2e2d71(_0x330585){Array[_0x13db74([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x330585)?_0x330585[_0x13db74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e2d71):_0x330585&&typeof _0x330585==_0x13db74([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13db74([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x330585)[_0x13db74([0x73,0x6f,0x72,0x74])]()[_0x13db74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x82ce4f,_0x4f0551])=>{_0x342229(_0x82ce4f),_0x2e2d71(_0x4f0551);}):_0x342229(window[_0x13db74([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x330585));}return _0x2e2d71(_0x20fea4),_0x524026>>>0x0;}function _0x18655a(_0x5b1e92){return _0x5b1e92[_0x13db74([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13db74([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13db74([0x30]));}function _0x1cbd17(_0x311dd7){return _0x311dd7[_0x13db74([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13db74([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13db74([0x6a,0x6f,0x69,0x6e])]('');}function _0xe21cc2(_0x7cca4b){return _0x4c51f2[_0x13db74([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13db74([0x68,0x61,0x73])](_0x7cca4b);}function _0x3e1e13(_0x9d5859){return _0x4c51f2[_0x13db74([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13db74([0x67,0x65,0x74])](_0x9d5859);}function _0xfddc19(){}function _0x13db74(_0x50bbab){return _0x50bbab['map'](_0x3b6f4c=>String['fromCharCode'](_0x3b6f4c))['join']('');}_0x1a44a0(await _0x43747e());}(this);}set['adapter'](_0x107de6){if(this['_adapter'])throw new _0x50045d('track-changes-adapter-already-set',this);this['_adapter']=_0x107de6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4ee885=!0x1,toJSON:_0x55f027=!0x1}={}){const _0x13ce22=[];for(const _0xf2c87f of this['_suggestions']['values']())_0x4ee885&&!_0xf2c87f['isInContent']||_0x13ce22['push'](_0xf2c87f);return _0x55f027?_0x13ce22['map'](_0x200693=>_0x200693['toJSON']()):_0x13ce22;}['getSuggestion'](_0x177d10){const _0x21fea8=this['_suggestions']['get'](_0x177d10);if(!_0x21fea8)throw new _0x50045d('track-changes-suggestion-not-found',this);return _0x21fea8;}['hasSuggestion'](_0x3dd5d6){return this['_suggestions']['has'](_0x3dd5d6);}['addSuggestionData'](_0x860cd5){const {authorId:_0x234e34,id:_0xf8dcde,attributes:_0xbcb4a6}=_0x860cd5,[_0x10037b,_0x19a488]=_0x860cd5['type']['split'](':'),_0x5a9f08=this['_suggestions']['get'](_0xf8dcde)||this['_createSuggestion'](_0x10037b,_0x19a488,_0xf8dcde,_0x234e34,_0xbcb4a6);if(this['_addThreadToSuggestion'](_0x5a9f08),this['_checkSuggestionCorrectness'](_0x5a9f08,_0x10037b,_0x19a488||null,_0x234e34),_0x5a9f08['createdAt']=_0x860cd5['createdAt'],_0x5a9f08['_isDataLoaded']=!0x0,_0xbcb4a6&&_0xbcb4a6['@external']){const _0x51ef73=_0xbcb4a6['@external'],_0x114e38=this['_getExternalAuthor'](_0x51ef73['authorName']);_0x5a9f08['authoredAt']=_0x51ef73['createdAt'],_0x5a9f08['author']=_0x114e38,_0x5a9f08['isExternal']=!0x0;}else _0x5a9f08['authoredAt']=_0x860cd5['createdAt'];switch(_0x860cd5['data']&&(_0x5a9f08['data']=_0x860cd5['data']),_0x860cd5['attributes']&&(_0x5a9f08['attributes']=_0x860cd5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5a9f08['_saved']=!0x0),this['_suggestionState']['get'](_0x5a9f08)){case'notReady':this['_suggestionState']['set'](_0x5a9f08,'dataReady');break;case'markerReady':_0x5a9f08['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5a9f08])),this['_refreshSuggestionsChain'](new Set([_0x5a9f08])),this['_suggestionState']['set'](_0x5a9f08,'ready'),this['fire']('suggestionLoaded',_0x5a9f08)):this['_suggestionState']['set'](_0x5a9f08,'removed');}return _0x5a9f08;}['acceptSuggestion'](_0x3e988a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4ff93c of _0x3e988a['getAllAdjacentSuggestions']())_0x4ff93c['accept']();});});}['discardSuggestion'](_0x4d5d3a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32b1ce of _0x4d5d3a['getAllAdjacentSuggestions']())_0x32b1ce['discard']();});});}['enableCommand'](_0x2a92c8,_0x12d85a){const _0x498b89=this['editor']['commands']['get'](_0x2a92c8);if(!_0x498b89)throw new _0x50045d('track-changes-command-not-found',this,{'commandName':_0x2a92c8});if(this['_enabledCommands']['has'](_0x498b89))throw new _0x50045d('track-changes-enable-command-twice',this,{'commandName':_0x2a92c8});this['_enabledCommands']['add'](_0x498b89),_0x12d85a&&_0x498b89['on']('execute',(_0x2d5141,_0x31a5a8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31a5a8['length']>0x0&&_0x31a5a8[_0x31a5a8['length']-0x1]&&_0x31a5a8[_0x31a5a8['length']-0x1]['forceDefaultExecution']?_0x31a5a8['pop']():(_0x2d5141['return']=_0x12d85a((..._0x56b46f)=>_0x498b89['execute'](..._0x56b46f,{'forceDefaultExecution':!0x0}),..._0x31a5a8),_0x2d5141['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20949b){let _0xb71d00,_0x265188;const _0x3bd3d4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb71d00=_0x20949b();}catch(_0x1ea884){_0x265188=_0x1ea884;}return _0x3bd3d4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x265188&&_0x50045d['rethrowUnexpectedError'](_0x265188,this),_0xb71d00;}['markInsertion'](_0xf32b0,_0x3129a9=null,_0x4dd47a={}){if(_0xf32b0['isCollapsed'])return null;const _0xd6b2ed=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13e3c7,meta:_0x1571fb}of this['_findSuggestions'](_0xf32b0,'insertion'))if(_0x1571fb['isOwn']){if(!_0x1571fb['isNextTo']){if(_0x1571fb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x13e3c7,_0x4dd47a))continue;return _0x13e3c7;}if(Xt(_0x13e3c7,_0x4dd47a))return _0x13e3c7;this['_breakSuggestionMarker'](_0x13e3c7,_0xf32b0['start'],_0xf32b0['end']);break;}if(_0x3129a9==_0x13e3c7['subType']&&Xt(_0x13e3c7,_0x4dd47a)){const _0x569830=_0x13e3c7['getFirstRange']();return _0x569830['start']['isEqual'](_0xf32b0['end'])?this['_setSuggestionRange'](_0x13e3c7,this['_model']['createRange'](_0xf32b0['start'],_0x569830['end'])):this['_setSuggestionRange'](_0x13e3c7,this['_model']['createRange'](_0x569830['start'],_0xf32b0['end'])),_0x13e3c7;}}const _0x36db12=_0x5e3891(),_0x17860a=_0xd6b2ed['id'],_0x5ebf8e=_0x3129a9?'insertion:'+_0x3129a9:'insertion',_0x2001fc=this['_setSuggestionData']({'id':_0x36db12,'type':_0x5ebf8e,'createdAt':new Date(),'authorId':_0x17860a,'attributes':_0x4dd47a});return this['_addSuggestionMarker'](_0x5ebf8e,_0x36db12,_0x17860a,_0xf32b0),_0x2001fc;}['markMultiRangeInsertion'](_0x39f418,_0x2fd6e1='multi',_0x36e64a={}){const _0x1c459f=this['editor']['plugins']['get']('Users')['me'],_0x141baf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fd6e1,'join');for(const _0x340a48 of this['getSuggestions']())if(_0x340a48['author']['id']==_0x1c459f['id']&&'insertion'==_0x340a48['type']&&_0x340a48['subType']==_0x2fd6e1&&Xt(_0x340a48,_0x36e64a)&&(_0x141baf(_0x340a48['getRanges'](),_0x39f418)||_0x141baf(_0x39f418,_0x340a48['getRanges']()))){for(const _0x123757 of _0x39f418)_0x340a48['addRange'](_0x123757);return _0x340a48;}for(const {suggestion:_0x1853f8,meta:_0x322cda}of this['_findSuggestions'](_0x39f418,'insertion')){if(!_0x322cda['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x322cda['containsRangeInObject'])continue;if(!Xt(_0x1853f8,_0x36e64a))continue;let _0x2dbd92=!0x0;for(const _0x1aed03 of _0x1853f8['getRanges']())for(const _0x100ddb of _0x39f418)if(!_0x1aed03['containsRange'](_0x100ddb)){_0x2dbd92=!0x1;break;}if(_0x2dbd92)return _0x1853f8;}const _0x18e8e1=_0x5e3891(),_0x3e6612=_0x1c459f['id'],_0x41738e='insertion:'+_0x2fd6e1,_0x157d94=this['_setSuggestionData']({'id':_0x18e8e1,'type':_0x41738e,'createdAt':new Date(),'authorId':_0x3e6612,'attributes':_0x36e64a});for(const _0x2aa18e of _0x39f418)this['_addSuggestionMarker'](_0x41738e,_0x18e8e1,_0x3e6612,_0x2aa18e,o['getMultiRangeId']());return _0x157d94;}['markInlineFormat'](_0x5b9fbb,_0x2469a6,_0x44c855=null,_0x457ce0={}){if(_0x44c855=_0x44c855||Kt(_0x2469a6),_0x5b9fbb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4dd883=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c855,'accept');return this['forceDefaultExecution'](()=>_0x4dd883([_0x5b9fbb],_0x2469a6,_0x457ce0)),null;}const _0x31b86f=this['editor']['plugins']['get']('Users')['me'],_0x288578=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x246062,meta:_0x1867c7}of this['_findSuggestions'](_0x5b9fbb,'insertion'))_0x1867c7['isOwn']&&!_0x1867c7['isInsideObject']&&_0x288578['push'](..._0x246062['getRanges']());}const _0x539bf6=function(_0xe65a44,_0x45568a){const _0xb40f33=[];for(const _0x3a0bb8 of _0x45568a){const _0x2cb101=_0xe65a44['getIntersection'](_0x3a0bb8);_0x2cb101&&_0xb40f33['push'](_0x2cb101);}return _0xb40f33;}(_0x5b9fbb,_0x288578),_0x214543=function(_0x59b009,_0x4f4402){const _0x28f1a2=[_0x59b009];for(const _0x398c36 of _0x4f4402){let _0xb37ae8=0x0;for(;_0xb37ae8<_0x28f1a2['length'];){const _0x3ed7de=_0x28f1a2[_0xb37ae8]['getDifference'](_0x398c36);_0x28f1a2['splice'](_0xb37ae8,0x1,..._0x3ed7de),_0xb37ae8+=_0x3ed7de['length'];}}return _0x28f1a2;}(_0x5b9fbb,_0x288578);_0x539bf6['length']&&this['_model']['change'](()=>{for(const _0x28843f of _0x539bf6){const _0x403a36=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c855,'accept');this['forceDefaultExecution'](()=>_0x403a36([_0x28843f],_0x2469a6,_0x457ce0));}});for(const _0x1bbb5f of _0x214543){let _0x38a525=null,_0x372c10=_0x1bbb5f['start'],_0x59d89b=_0x1bbb5f['end'];for(const {suggestion:_0x1f8de6,meta:_0x15caa5}of this['_findSuggestions'](_0x1bbb5f,'formatInline')){if(!_0x15caa5['isOwn'])continue;if(_0x1f8de6['subType']!=_0x44c855)continue;if(!Xt(_0x1f8de6,_0x457ce0))continue;const _0x38284d=_0x1f8de6['getFirstRange']();if(_0x38284d['containsRange'](_0x1bbb5f,!0x0))return null;_0x372c10=_0x372c10['isBefore'](_0x38284d['start'])?_0x372c10:_0x38284d['start'],_0x59d89b=_0x59d89b['isAfter'](_0x38284d['end'])?_0x59d89b:_0x38284d['end'],_0x38a525?_0x38284d['start']['isBefore'](_0x38a525['getFirstRange']()['start'])?(_0x38a525['removeMarkers'](),_0x38a525=_0x1f8de6):_0x1f8de6['removeMarkers']():_0x38a525=_0x1f8de6;}const _0x151e12=this['_model']['createRange'](_0x372c10,_0x59d89b);if(_0x38a525)this['_setSuggestionRange'](_0x38a525,_0x151e12);else{const _0x1d8d41=_0x5e3891(),_0x2aa3e2=_0x31b86f['id'];this['_setSuggestionData']({'id':_0x1d8d41,'type':'formatInline:'+_0x44c855,'data':_0x2469a6,'createdAt':new Date(),'authorId':_0x2aa3e2,'attributes':_0x457ce0}),this['_addSuggestionMarker']('formatInline:'+_0x44c855,_0x1d8d41,_0x2aa3e2,_0x151e12);}}return null;}['markBlockFormat'](_0x2d319c,_0x9694cf,_0x570e5d=[],_0x4b288f=null,_0x58f52b={}){_0x9694cf['formatGroupId']||(_0x9694cf['formatGroupId']=_0x9694cf['commandName']),_0x9694cf['multipleBlocks']=_0x2d319c['is']('range'),_0x4b288f=_0x4b288f||Kt(_0x9694cf);const _0x16c8d7=_0x570e5d['map'](_0x23f409=>zt(_0x23f409,this['_model'])),_0x3213e5=_0x2d319c['is']('range')?_0x2d319c:zt(_0x2d319c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x30d4d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b288f,'accept');return this['forceDefaultExecution'](()=>_0x30d4d1([_0x3213e5],_0x9694cf,_0x58f52b)),null;}_0x16c8d7['push'](_0x3213e5);let _0x1a57e9=!0x0;for(const _0x5e2fbe of _0x16c8d7)if(!this['_rangeIsInLocalUserInsertion'](_0x5e2fbe)){_0x1a57e9=!0x1;break;}if(_0x1a57e9&&'always'!==this['_trackFormatChanges']){const _0x412a3d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b288f,'accept');return this['forceDefaultExecution'](()=>_0x412a3d([_0x3213e5],_0x9694cf,_0x58f52b)),null;}let _0x1dacc2=null,_0x39ac90=_0x3213e5['start'],_0x73fb33=_0x3213e5['end'];for(const {suggestion:_0x228d01,meta:_0x1d801c}of this['_findSuggestions'](_0x3213e5,'formatBlock')){if(!_0x1d801c['isOwn'])continue;if(_0x1d801c['isNextTo']||_0x1d801c['containsRangeInObject']||_0x1d801c['isInsideObject'])continue;if(_0x228d01['data']['formatGroupId']!=_0x9694cf['formatGroupId'])continue;if(!Xt(_0x228d01,_0x58f52b))continue;const _0x1a8bd9=_0x228d01['getFirstRange']();if(_0x228d01['subType']==_0x4b288f){if(_0x1a8bd9['containsRange'](_0x3213e5,!0x0))return null;_0x39ac90=_0x39ac90['isBefore'](_0x1a8bd9['start'])?_0x39ac90:_0x1a8bd9['start'],_0x73fb33=_0x73fb33['isAfter'](_0x1a8bd9['end'])?_0x73fb33:_0x1a8bd9['end'],_0x1dacc2?_0x1a8bd9['start']['isBefore'](_0x1dacc2['getFirstRange']()['start'])?(_0x1dacc2['removeMarkers'](),_0x1dacc2=_0x228d01):_0x228d01['removeMarkers']():_0x1dacc2=_0x228d01;}else{const _0x3db09c=_0x3213e5['getIntersection'](_0x1a8bd9);this['_cutOutSuggestionMarker'](_0x228d01,_0x3db09c);}}const _0x4b117f=this['editor']['plugins']['get']('Users')['me'],_0x2f9c34=_0x5e3891(),_0x12733d=_0x4b117f['id'];if(_0x1dacc2)return this['_setSuggestionRange'](_0x1dacc2,this['_model']['createRange'](_0x39ac90,_0x73fb33)),_0x1dacc2;{const _0x5df0d7=this['_setSuggestionData']({'id':_0x2f9c34,'type':'formatBlock:'+_0x4b288f,'data':_0x9694cf,'createdAt':new Date(),'authorId':_0x12733d,'attributes':_0x58f52b});return this['_addSuggestionMarker']('formatBlock:'+_0x4b288f,_0x2f9c34,_0x12733d,this['_model']['createRange'](_0x39ac90,_0x73fb33)),_0x5df0d7;}}['markMultiRangeBlockFormat'](_0x33ddcd,_0x3e0525,_0x44427a=[],_0x355393=null,_0x1a08bf={}){_0x3e0525['formatGroupId']||(_0x3e0525['formatGroupId']=_0x3e0525['commandName']);const _0x4c81f1=_0x33ddcd[0x0];_0x3e0525['multipleBlocks']=_0x4c81f1['is']('range'),_0x355393=_0x355393||Kt(_0x3e0525);const _0x3c4b04=_0x44427a['map'](_0x49a091=>zt(_0x49a091,this['_model'])),_0x5a8715=_0x4c81f1['is']('range')?_0x33ddcd:_0x33ddcd['map'](_0x43f002=>zt(_0x43f002,this['_model']));if('never'===this['_trackFormatChanges']){const _0x13ed4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x355393,'accept');return this['forceDefaultExecution'](()=>_0x13ed4f(_0x5a8715,_0x3e0525,_0x1a08bf)),null;}_0x3c4b04['push'](..._0x5a8715);let _0x42b700=!0x0;for(const _0x396bf1 of _0x3c4b04)if(!this['_rangeIsInLocalUserInsertion'](_0x396bf1)){_0x42b700=!0x1;break;}if(_0x42b700&&'always'!==this['_trackFormatChanges']){const _0x53acab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x355393,'accept');return this['forceDefaultExecution'](()=>_0x53acab(_0x5a8715,_0x3e0525,_0x1a08bf)),null;}const _0xe2b98a=this['editor']['plugins']['get']('Users')['me'];for(const _0x125289 of this['getSuggestions']()){if(_0x125289['author']['id']!=_0xe2b98a['id'])continue;if('formatBlock'!=_0x125289['type']||_0x125289['data']['formatGroupId']!=_0x3e0525['formatGroupId'])continue;if(!Xt(_0x125289,_0x1a08bf))continue;const _0x3d84d8=_0x125289['subType']==_0x355393;for(let _0x238249=0x0;_0x238249<_0x5a8715['length'];_0x238249++){const _0x3011db=_0x5a8715[_0x238249];for(const _0x40a922 of _0x125289['getMarkers']()){const _0x30a5fd=_0x40a922['getRange']();if(_0x3011db['isEqual'](_0x30a5fd)){_0x3d84d8?(_0x5a8715['splice'](_0x238249,0x1),_0x238249--):_0x125289['removeMarker'](_0x40a922['name']);break;}}}}if(0x0==_0x5a8715['length'])return null;const _0x5f1a94=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x355393,'join');for(const _0x240f2e of this['getSuggestions']())if(_0x240f2e['author']['id']==_0xe2b98a['id']&&'formatBlock'==_0x240f2e['type']&&_0x240f2e['data']['formatGroupId']==_0x3e0525['formatGroupId']&&_0x240f2e['subType']==_0x355393&&Xt(_0x240f2e,_0x1a08bf)&&(_0x5f1a94(_0x240f2e['getRanges'](),_0x5a8715)||_0x5f1a94(_0x5a8715,_0x240f2e['getRanges']()))){for(const _0x1ac636 of _0x5a8715)_0x240f2e['addRange'](_0x1ac636);return _0x240f2e;}const _0x4cba02=_0x5e3891(),_0x3a9edf=_0xe2b98a['id'],_0x4b5c55='formatBlock:'+_0x355393,_0x4be576=this['_setSuggestionData']({'id':_0x4cba02,'type':_0x4b5c55,'data':_0x3e0525,'createdAt':new Date(),'authorId':_0x3a9edf,'attributes':_0x1a08bf});for(const _0x5e9cd8 of _0x5a8715)this['_addSuggestionMarker'](_0x4b5c55,_0x4cba02,_0x3a9edf,_0x5e9cd8,o['getMultiRangeId']());return _0x4be576;}['markDeletion'](_0x42f2b0,_0x30f74a=null,_0x28a40f={}){if(_0x42f2b0['isCollapsed'])return null;const _0x10f2f1=this['editor']['plugins']['get']('Users')['me'],_0xa72024=new _0x3932e8(_0x42f2b0['start'],_0x42f2b0['end']);for(const {suggestion:_0x21e739,meta:_0x4c7e3d}of this['_findSuggestions'](_0xa72024,'insertion'))if(_0x4c7e3d['isOwn']&&!_0x4c7e3d['isNextTo']){if(_0x21e739['isMultiRange']){const _0x59be7c=_0x21e739['getRanges']()['filter'](_0x54b057=>'$graveyard'!=_0x54b057['root']['rootName']);_0x59be7c['every'](_0x937a3a=>_0xa72024['containsRange'](_0x937a3a,!0x0))&&_0x21e739['discard']();if(_0x59be7c['some'](_0x319ca1=>_0x319ca1['containsRange'](_0xa72024,!0x0))){const _0x32ba76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30f74a,'accept');return this['forceDefaultExecution'](()=>_0x32ba76([_0xa72024],null,_0x28a40f)),null;}}else{const _0x129d53=_0xa72024['getIntersection'](_0x21e739['getFirstRange']());null!==_0x129d53&&_0x21e739['_onDiscard']([_0x129d53],null,_0x28a40f);}}if(_0xa72024['detach'](),_0xa72024['isCollapsed']||'$graveyard'==_0xa72024['root']['rootName'])return null;let _0x2fe7c7=null,_0x1f39d5=_0xa72024['start'],_0x578fae=_0xa72024['end'];const _0x5a9862=this['_findSuggestions'](_0xa72024,'deletion');for(const {suggestion:_0x4f0db2,meta:_0x1f2600}of _0x5a9862){const _0x3aeac4=this['_model']['createRange'](_0x1f39d5,_0x578fae);if(_0x1f2600['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f2600['containsRangeInObject']&&!_0x1f2600['isInsideObject'])){if(_0x4f0db2['isMultiRange']){if(!Xt(_0x4f0db2,_0x28a40f))continue;let _0x1505f8=!0x0;for(const _0xa5f1af of _0x4f0db2['getRanges']()){if(_0xa5f1af['containsRange'](_0x3aeac4,!0x0))return _0x4f0db2;_0x3aeac4['containsRange'](_0xa5f1af)||(_0x1505f8=!0x1);}_0x1505f8&&_0x4f0db2['discard']();}else{const _0x1262bf=_0x4f0db2['getFirstRange']();if(_0x1262bf['containsRange'](_0x3aeac4,!0x0))return _0x4f0db2;if(!Xt(_0x4f0db2,_0x28a40f)){_0x3aeac4['containsRange'](_0x1262bf)?_0x4f0db2['removeMarkers']():_0x1262bf['containsPosition'](_0x1f39d5)?_0x1f39d5=_0x1262bf['end']:_0x1262bf['containsPosition'](_0x578fae)&&(_0x578fae=_0x1262bf['start']);continue;}_0x1f39d5=_0x1f39d5['isBefore'](_0x1262bf['start'])?_0x1f39d5:_0x1262bf['start'],_0x578fae=_0x578fae['isAfter'](_0x1262bf['end'])?_0x578fae:_0x1262bf['end'],_0x28a40f=Object['assign']({},_0x4f0db2['attributes']),_0x2fe7c7?_0x1262bf['start']['isBefore'](_0x2fe7c7['getFirstRange']()['start'])?(_0x2fe7c7['removeMarkers'](),_0x2fe7c7=_0x4f0db2):_0x4f0db2['removeMarkers']():_0x2fe7c7=_0x4f0db2;}}}if(_0x2fe7c7)return this['_setSuggestionRange'](_0x2fe7c7,this['_model']['createRange'](_0x1f39d5,_0x578fae)),_0x2fe7c7;{const _0x4c1a51=_0x5e3891(),_0xd6e959=this['_model']['createRange'](_0x1f39d5,_0x578fae),_0x20e0ef=_0x10f2f1['id'],_0xd73226=_0x30f74a?'deletion:'+_0x30f74a:'deletion',_0x5e0922=this['_setSuggestionData']({'id':_0x4c1a51,'type':_0xd73226,'createdAt':new Date(),'authorId':_0x20e0ef,'attributes':_0x28a40f});return this['_addSuggestionMarker'](_0xd73226,_0x4c1a51,_0x20e0ef,_0xd6e959),_0x5e0922;}}['markMultiRangeDeletion'](_0x286d7e,_0x4165ce='multi',_0xa3d824={}){const _0x1adf28=this['editor']['plugins']['get']('Users')['me'],_0x5b5e88=_0x286d7e['map'](_0x496863=>new _0x3932e8(_0x496863['start'],_0x496863['end'])),_0xf35b2b=new Set();for(const {suggestion:_0x213000,meta:_0x489078}of this['_findSuggestions'](_0x5b5e88,'insertion'))_0x489078['isOwn']&&!_0x489078['isNextTo']&&_0xf35b2b['add'](_0x213000);for(const _0x275bc0 of _0xf35b2b)if(_0x275bc0['isMultiRange']){const _0x854694=_0x275bc0['getRanges']();(!_0x275bc0['attributes']||!_0x275bc0['attributes']['skipNestingCheck'])&&(_0x854694['every'](_0xc87583=>_0x5b5e88['some'](_0x1f9c19=>_0x1f9c19['containsRange'](_0xc87583,!0x0)))&&_0x275bc0['discard']());if(_0x5b5e88['every'](_0x118d76=>_0x854694['some'](_0x36f02f=>_0x36f02f['containsRange'](_0x118d76,!0x0)))){const _0x5dc729=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4165ce,'accept');return this['forceDefaultExecution'](()=>_0x5dc729(_0x286d7e,null,_0xa3d824)),null;}}else{const _0x215471=_0x275bc0['getFirstRange']();_0x5b5e88['some'](_0x1d6a37=>_0x1d6a37['containsRange'](_0x215471,!0x0))&&_0x275bc0['discard']();if(_0x5b5e88['every'](_0x1f7987=>_0x215471['containsRange'](_0x1f7987,!0x0))){const _0x158a15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4165ce,'accept');return this['forceDefaultExecution'](()=>_0x158a15(_0x5b5e88,null,_0xa3d824)),null;}}const _0x351319=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4165ce,'join');let _0x724d9=null;for(const _0x4b321e of this['getSuggestions']())if(_0x4b321e['author']['id']==_0x1adf28['id']&&_0x4b321e['isInContent']&&'deletion'==_0x4b321e['type']&&_0x4b321e['subType']==_0x4165ce&&Xt(_0x4b321e,_0xa3d824)&&(_0x351319(_0x4b321e['getRanges'](),_0x5b5e88)||_0x351319(_0x5b5e88,_0x4b321e['getRanges']()))){if(_0x724d9){if(_0x4b321e['commentThread']&&_0x4b321e['commentThread']['length'])continue;for(const _0x4605b6 of _0x4b321e['getRanges']())_0x724d9['isIntersectingWithRange'](_0x4605b6)||_0x724d9['addRange'](_0x4605b6);_0x4b321e['removeMarkers']();}else{_0x724d9=_0x4b321e;for(const _0x10314b of _0x5b5e88)_0x4b321e['isIntersectingWithRange'](_0x10314b)||_0x4b321e['addRange'](_0x10314b);}}if(_0x724d9)return _0x724d9;_0xf35b2b['clear']();for(const {suggestion:_0x517a06,meta:_0x119ad6}of this['_findSuggestions'](_0x5b5e88,'deletion'))_0x119ad6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x119ad6['containsRangeInObject']&&!_0x119ad6['isInsideObject'])&&Xt(_0x517a06,_0xa3d824)&&_0xf35b2b['add'](_0x517a06);for(const _0x1eb180 of _0xf35b2b){const _0x1557a3=_0x1eb180['getRanges']();if(!_0xa3d824||!_0xa3d824['skipNestingCheck']){if(_0x5b5e88['every'](_0x127dd8=>_0x1557a3['some'](_0x36a332=>_0x36a332['containsRange'](_0x127dd8,!0x0))))return _0x1eb180;}(!_0x1eb180['attributes']||!_0x1eb180['attributes']['skipNestingCheck'])&&(_0x1557a3['every'](_0x1a9097=>_0x5b5e88['some'](_0x4c220a=>_0x4c220a['containsRange'](_0x1a9097,!0x0)))&&_0x1eb180['discard']());}const _0x11df99=_0x5e3891(),_0x1f1a38=_0x1adf28['id'],_0x412cb7='deletion:'+_0x4165ce,_0x5b10c5=this['_setSuggestionData']({'id':_0x11df99,'type':_0x412cb7,'createdAt':new Date(),'authorId':_0x1f1a38,'attributes':_0xa3d824});for(const _0x3450f8 of _0x5b5e88)_0x3450f8['detach'](),_0x3450f8['isCollapsed']||'$graveyard'==_0x3450f8['root']['rootName']||this['_addSuggestionMarker'](_0x412cb7,_0x11df99,_0x1f1a38,_0x3450f8,o['getMultiRangeId']());return _0x5b10c5;}['markAttributeChange'](_0x5744ec,_0x815de8,_0x36f73a,_0x4a7da1,_0x71e3b8){if(_0x5744ec['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x499113=this['editor']['plugins']['get']('Users')['me']['id'],_0x45bb6f=Array['from'](this['_suggestions']['values']())['filter'](_0x4ebeb5=>'attribute'==_0x4ebeb5['type']&&_0x4ebeb5['data']['key']==_0x815de8&&_0x4ebeb5['isIntersectingWithRange'](_0x5744ec));if('default'===this['_trackFormatChanges']){const _0x49d8d9=this['_findSuggestions'](_0x5744ec,'insertion')['filter'](({meta:_0xa19c21})=>_0xa19c21['isOwn']&&!_0xa19c21['isInsideObject']&&!_0xa19c21['isNextTo'])['map'](({suggestion:_0x530f74})=>_0x530f74);_0x45bb6f['unshift'](..._0x49d8d9);}const _0x166878=new Map([[_0x5744ec,_0x36f73a]]);for(const _0x2c3f55 of _0x45bb6f){const _0x44fb5e='attribute'==_0x2c3f55['type']?_0x2c3f55['data']['oldValue']:void 0x0,_0x320742=_0x2c3f55['getFirstRange'](),_0x470c09=Array['from'](_0x166878['keys']())['find'](_0x497342=>_0x497342['isIntersecting'](_0x320742));if(!_0x470c09)continue;const _0x5245c8=_0x470c09['getDifference'](_0x320742);this['_isBlockAttribute'](_0x815de8)&&'insertion'==_0x2c3f55['type']&&0x0!=_0x5245c8['length']||(_0x166878['delete'](_0x470c09),_0x5245c8['forEach'](_0x173c0d=>{_0x166878['set'](_0x173c0d,_0x36f73a);}),'insertion'!=_0x2c3f55['type']&&_0x44fb5e!=_0x4a7da1&&_0x166878['set'](_0x470c09['getIntersection'](_0x320742),_0x44fb5e));}const _0x540f40=[];for(const [_0x2bf4b4,_0x708016]of _0x166878){const _0x3894e8=_0x5e3891(),_0x855745={'key':_0x815de8,'oldValue':_0x708016,'newValue':_0x4a7da1};_0x815de8['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':_0x815de8});const _0x3499dd=('attribute:'+(_0x815de8+'|'+Kt({'newValue':_0x4a7da1})))['substring'](0x0,0x3c),_0x161f7d=this['_setSuggestionData']({'id':_0x3894e8,'type':_0x3499dd,'data':_0x855745,'createdAt':new Date(),'authorId':_0x499113,'attributes':_0x71e3b8});_0x540f40['push'](_0x161f7d),this['_addSuggestionMarker'](_0x3499dd,_0x3894e8,_0x499113,_0x2bf4b4);}return _0x540f40;}['enableDefaultAttributesIntegration'](_0x21ef8f){this['enableCommand'](_0x21ef8f,(_0x35d77d,..._0x22c6ca)=>{this['_recordAttributeChanges'](()=>{_0x35d77d(..._0x22c6ca);});});}['registerBlockAttribute'](_0x5394b3){this['_blockAttributeKeys']['add'](_0x5394b3);}['registerInlineAttribute'](_0x390d53){this['_inlineAttributeKeys']['add'](_0x390d53);}['_getAttributeKey'](_0x2d65c2){return'attribute'==_0x2d65c2['type']?_0x2d65c2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5a7328,_0x41d5d3){const _0x44dd35=_0x5a7328['getFirstMarker']();this['_model']['change'](_0x3f3295=>{_0x3f3295['updateMarker'](_0x44dd35,{'range':_0x41d5d3});});}['_addThreadToSuggestion'](_0x2aead5){const _0xa4b369=_0x2aead5['id'],_0x49131e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa4b369)||this['_commentsRepository']['addCommentThread']({'channelId':_0x49131e,'threadId':_0xa4b369,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x48328c=this['_commentsRepository']['getCommentThread'](_0xa4b369);_0x48328c['unbind']('isRemovable'),_0x48328c['isRemovable']=!0x1,_0x2aead5['commentThread']=_0x48328c;}['_checkSuggestionCorrectness'](_0x49ef32,_0x5b67cb,_0x588c9d,_0x5d87c7){if(_0x49ef32['type']!=_0x5b67cb||_0x49ef32['subType']!=_0x588c9d||_0x49ef32['creator']['id']!=_0x5d87c7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50045d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x37143b,_0x268b8a){const _0x1ae421=_0x37143b['getFirstRange']();if(_0x268b8a['isEqual'](_0x1ae421))_0x37143b['removeMarkers']();else{if(_0x1ae421['containsRange'](_0x268b8a)){const _0x478148=this['_model']['createPositionAt'](_0x268b8a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37143b,this['_model']['createRange'](_0x1ae421['start'],_0x478148));const _0x3de1d3=_0x5e3891(),_0x3a73d1=_0x37143b['creator']['id'],_0x57731f=_0x37143b['type']+':'+_0x37143b['subType'];this['_setSuggestionData']({'id':_0x3de1d3,'type':_0x57731f,'createdAt':new Date(),'authorId':_0x3a73d1,'data':_0x37143b['data'],'attributes':_0x37143b['attributes']});const _0x31f118=this['_model']['createPositionAt'](_0x268b8a['end']['parent'],'after'),_0x303d35=this['_model']['createRange'](_0x31f118,_0x1ae421['end']);this['_addSuggestionMarker'](_0x57731f,_0x3de1d3,_0x3a73d1,_0x303d35);}else{if(_0x1ae421['containsPosition'](_0x268b8a['start'])){const _0xbc1a01=this['_model']['createPositionAt'](_0x268b8a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37143b,this['_model']['createRange'](_0x1ae421['start'],_0xbc1a01));}else{const _0x2089a4=this['_model']['createPositionAt'](_0x268b8a['end']['parent'],'after');this['_setSuggestionRange'](_0x37143b,this['_model']['createRange'](_0x2089a4,_0x1ae421['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3d5f33){for(const {suggestion:_0x1213ab,meta:_0x624313}of this['_findSuggestions'](_0x3d5f33,'insertion')){if(!_0x624313['isOwn'])continue;const _0x3cd2ed=_0x1213ab['getRanges']();for(const _0x22276b of _0x3cd2ed)if(!_0x3d5f33['getDifference'](_0x22276b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xff6f92){const _0x1c914e=this['editor']['plugins']['get']('Users')['getUser'](_0xff6f92);if(!_0x1c914e)throw new _0x50045d('track-changes-user-not-found',this);return _0x1c914e;}['_getExternalAuthor'](_0x3a3884){const _0x39eea2=this['editor']['plugins']['get']('Users'),_0x5b6d98=_0x116cc7('external:'+_0x3a3884),_0x11fd36=_0x39eea2['getUser'](_0x5b6d98);return _0x11fd36||_0x39eea2['addUser']({'id':_0x5b6d98,'name':_0x3a3884});}['_createSuggestion'](_0x3c1308,_0x47cb52,_0x5b01db,_0x46d077,_0x1f2a85){const _0x3d75e4=this['_getAuthorFromId'](_0x46d077),_0x49e9fa=this['_suggestionFactory']['buildSuggestion'](_0x3c1308,_0x47cb52,_0x5b01db,_0x3d75e4,_0x1f2a85,_0x3a73fc=>{this['_updateSuggestionData'](_0x5b01db,{'attributes':_0x3a73fc});const _0x225d04=this['getSuggestion'](_0x5b01db);this['_joinWithAdjacentSuggestions'](new Set([_0x225d04])),this['_refreshSuggestionsChain'](new Set([_0x225d04]));});return this['listenTo'](_0x49e9fa,'accept',()=>{this['_updateSuggestionData'](_0x5b01db,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x49e9fa,'discard',()=>{this['_updateSuggestionData'](_0x5b01db,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b01db,_0x49e9fa),this['_suggestionState']['set'](_0x49e9fa,'notReady'),_0x49e9fa;}['_splitMarkerName'](_0x1d27ca){const _0x555b3f=_0x1d27ca['split'](':');return{'group':_0x555b3f[0x0],'type':_0x555b3f[0x1],'subType':_0x555b3f['length']>=0x5?_0x555b3f[0x2]:null,'id':_0x555b3f['length']<0x5?_0x555b3f[0x2]:_0x555b3f[0x3],'authorId':_0x555b3f['length']<0x5?_0x555b3f[0x3]:_0x555b3f[0x4],'markerCount':0x6==_0x555b3f['length']?_0x555b3f[0x5]:null};}['_breakSuggestionMarker'](_0x6244a1,_0x2ee968,_0x134009){const _0x3fca61=_0x6244a1['getFirstRange'](),_0xe73ff9=_0x3fca61['start'],_0x3eba29=_0x3fca61['end'];this['_setSuggestionRange'](_0x6244a1,this['_model']['createRange'](_0xe73ff9,_0x2ee968));const _0x34d34b=_0x5e3891(),_0x48ae4c=_0x6244a1['creator']['id'],_0x2a543d=_0x6244a1['type']+(_0x6244a1['subType']?':'+_0x6244a1['subType']:'');this['_setSuggestionData']({'id':_0x34d34b,'type':_0x2a543d,'createdAt':new Date(),'authorId':_0x48ae4c,'originalSuggestionId':_0x6244a1['id'],'attributes':_0x6244a1['attributes'],'data':_0x6244a1['data']});const _0x3fea1f=this['_getAttributeKey'](_0x6244a1);('formatBlock'==_0x6244a1['type']||_0x3fea1f&&this['_isBlockAttribute'](_0x3fea1f))&&(_0x134009=this['_model']['createPositionBefore'](_0x134009['parent'])),this['_addSuggestionMarker'](_0x2a543d,_0x34d34b,_0x48ae4c,this['_model']['createRange'](_0x134009,_0x3eba29));}['_findSuggestions'](_0x4d7255,_0x1fbfae=null){const _0x5a33a6=[],_0xb94494=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4d7255)||(_0x4d7255=[_0x4d7255]);for(const _0x2704e2 of this['getSuggestions']()){if(!_0x2704e2['isInContent'])continue;if(_0x1fbfae&&_0x2704e2['type']!=_0x1fbfae)continue;let _0x1013e4=!0x1;for(const _0x4c0ade of _0x2704e2['getRanges']()){for(const _0xf8e25a of _0x4d7255){const _0x87cee2=_0xf8e25a['start']['isEqual'](_0x4c0ade['end'])||_0xf8e25a['end']['isEqual'](_0x4c0ade['start']);if(_0x87cee2||_0xf8e25a['getIntersection'](_0x4c0ade)){const _0x31b6ab=_0xf8e25a['containsRange'](_0x4c0ade)&&Gt(this['_model']['schema'],_0x4c0ade['start'],_0xf8e25a),_0x99df35=_0x4c0ade['containsRange'](_0xf8e25a)&&Gt(this['_model']['schema'],_0xf8e25a['start'],_0x4c0ade);_0x5a33a6['push']({'suggestion':_0x2704e2,'meta':{'isOwn':_0xb94494==_0x2704e2['author'],'isNextTo':_0x87cee2,'isInsideObject':_0x31b6ab,'containsRangeInObject':_0x99df35}}),_0x1013e4=!0x0;break;}}if(_0x1013e4)break;}}return _0x5a33a6;}['_addSuggestionMarker'](_0x5737d4,_0x5049c2,_0x52c541,_0x15da6a,_0x217e48){this['_model']['change'](_0x3aed85=>{let _0x2f210f='suggestion:'+_0x5737d4+':'+_0x5049c2+':'+_0x52c541;_0x217e48&&(_0x2f210f=_0x2f210f+':'+_0x217e48),_0x3aed85['addMarker'](_0x2f210f,{'range':_0x15da6a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2aebcd){const _0x503d4b=_0x2aebcd['previous'],_0x304598=_0x2aebcd['next'];_0x2aebcd['previous']=null,_0x2aebcd['next']=null,null!=_0x503d4b&&_0x503d4b['next']==_0x2aebcd&&(_0x503d4b['next']=_0x304598),null!=_0x304598&&_0x304598['previous']==_0x2aebcd&&(_0x304598['previous']=_0x503d4b),'ready'==this['_suggestionState']['get'](_0x2aebcd)&&(this['_suggestionState']['set'](_0x2aebcd,'removed'),this['fire']('suggestionUnloaded',_0x2aebcd,_0x503d4b,_0x304598));}['_setSuggestionData'](_0x1f0acd){const _0x1e5009=_0x1f0acd['id'],_0x2b593d=this['addSuggestionData'](_0x1f0acd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x460764=this['editor']['plugins']['get']('PendingActions'),_0x3cf55e=_0x2b593d['hasComments'],_0x445fb8=_0x2b593d['subType']?_0x2b593d['type']+':'+_0x2b593d['subType']:_0x2b593d['type'],_0x57e980=this['editor']['locale'],_0x45815d=_0x460764['add'](c(_0x57e980,'PENDING_ACTION_SUGGESTION')),_0x2c4e9c={'id':_0x1e5009,'type':_0x445fb8,'hasComments':_0x3cf55e,'data':_0x1f0acd['data']||null,'originalSuggestionId':_0x1f0acd['originalSuggestionId']||null,'attributes':_0x2b593d['attributes']};this['_adapter']['addSuggestion'](_0x2c4e9c)['then'](_0x3eddb2=>{_0x2b593d['_saved']=!0x0,_0x460764['remove'](_0x45815d),_0x3eddb2&&_0x3eddb2['createdAt']&&(this['_suggestions']['get'](_0x1e5009)['createdAt']=_0x3eddb2['createdAt']);})['catch'](_0x397a39=>{throw _0x2e7b4f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2b593d['discard']();}),_0x2b593d['stopListening'](),this['_suggestions']['delete'](_0x2b593d['id']),this['_suggestionState']['delete'](_0x2b593d),_0x397a39;});}return _0x2b593d;}['_isBlockAttribute'](_0x590668){return this['_blockAttributeKeys']['has'](_0x590668);}['_updateSuggestionData'](_0x5ec6cf,_0x3a73ae){const _0x247db6=this['editor']['plugins']['get']('PendingActions'),_0xfca62a=this['getSuggestion'](_0x5ec6cf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xfca62a['_saved']){const _0x292e78=_0x247db6['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5ec6cf,_0x3a73ae)['then'](()=>{_0x247db6['remove'](_0x292e78);});}else _0xfca62a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5ec6cf,_0x3a73ae);});}}['_getSuggestionData'](_0x1a4f7e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50045d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1a4f7e);}['_handleNewSuggestionMarker'](_0x36ad4a){const {id:_0x58856d,type:_0xead133,subType:_0xa75f85,authorId:_0x32c6c5}=this['_splitMarkerName'](_0x36ad4a),_0x553607=this['_suggestions']['get'](_0x58856d)||this['_createSuggestion'](_0xead133,_0xa75f85,_0x58856d,_0x32c6c5,{});switch(this['_checkSuggestionCorrectness'](_0x553607,_0xead133,_0xa75f85,_0x32c6c5),this['_suggestionState']['get'](_0x553607)){case'notReady':this['_getSuggestionData'](_0x58856d)['then'](_0x584c00=>{let _0x3b1f74=Promise['resolve']();_0x584c00['hasComments']&&(_0x3b1f74=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x58856d})),_0x3b1f74['then'](()=>{this['addSuggestionData'](_0x584c00)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x553607,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x58856d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x553607,'ready'),this['fire']('suggestionLoaded',_0x553607);break;case'ready':this['fire']('suggestionChanged',_0x553607);}return _0x553607['addMarkerName'](_0x36ad4a),_0x553607;}['_refreshSuggestionsChain'](_0x6e1ec4){const _0x327dad=Array['from'](_0x6e1ec4),_0x28fd29=_0x327dad['filter'](_0x4a4db5=>'attribute'==_0x4a4db5['type']);this['_refreshAttributeSuggestionsChain'](_0x28fd29);const _0x1acdac=_0x327dad['filter'](_0x1af589=>!_0x1af589['isMultiRange']&&'attribute'!=_0x1af589['type']),_0x545146=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2daf26=>!_0x2daf26['isMultiRange']&&'attribute'!=_0x2daf26['type']),_0x2b76d4=_0x545146['filter'](_0x4c7986=>!_0x6e1ec4['has'](_0x4c7986)),_0x12c86f=new Map(_0x545146['map'](_0x2bb448=>[_0x2bb448,this['_suggestionFactory']['getSuggestionCallback'](_0x2bb448['type'],_0x2bb448['subType'],'chain')])),_0x184c33=new Map(_0x545146['map'](_0x13e5ba=>[_0x13e5ba,_0x13e5ba['getFirstRange']()])),_0x3ef898=new Set(),_0x5105a0=new Set();for(let _0x30c0dd=0x0;_0x30c0dd<_0x1acdac['length'];_0x30c0dd++)_0x3b4711(_0x1acdac[_0x30c0dd],_0x1acdac,_0x30c0dd+0x1);for(let _0x5c4ee1=0x0;_0x5c4ee1<_0x1acdac['length'];_0x5c4ee1++)_0x3b4711(_0x1acdac[_0x5c4ee1],_0x2b76d4,0x0);const _0x27bdd5=new Set();for(let _0x1fa0e9=0x0;_0x1fa0e9<_0x1acdac['length'];_0x1fa0e9++){const _0x5d3702=_0x1acdac[_0x1fa0e9];!_0x5105a0['has'](_0x5d3702)&&_0x5d3702['previous']&&(_0x27bdd5['add'](_0x5d3702['previous']),_0x5d3702['previous']['next']===_0x5d3702&&(_0x5d3702['previous']['next']=null),_0x5d3702['previous']=null),!_0x3ef898['has'](_0x5d3702)&&_0x5d3702['next']&&(_0x27bdd5['add'](_0x5d3702['next']),_0x5d3702['next']['previous']===_0x5d3702&&(_0x5d3702['next']['previous']=null),_0x5d3702['next']=null);}function _0x3b4711(_0x1574be,_0xf6cd1f,_0x3fe7d0){for(let _0x49a2a2=_0x3fe7d0;_0x49a2a2<_0xf6cd1f['length'];_0x49a2a2++){const _0x40a869=_0x2885dd(_0x1574be,_0xf6cd1f[_0x49a2a2]);_0x40a869&&(_0x40a869[0x0]['next']=_0x40a869[0x1],_0x40a869[0x1]['previous']=_0x40a869[0x0],_0x3ef898['add'](_0x40a869[0x0]),_0x5105a0['add'](_0x40a869[0x1]));}}function _0x2885dd(_0x5a6c42,_0x898e0e){if(_0x5a6c42['author']['id']!==_0x898e0e['author']['id'])return null;const _0x42df71=_0x12c86f['get'](_0x5a6c42)(_0x5a6c42,_0x898e0e,_0x184c33['get'](_0x5a6c42),_0x184c33['get'](_0x898e0e));if(!_0x42df71)return null;return _0x12c86f['get'](_0x898e0e)(_0x5a6c42,_0x898e0e,_0x184c33['get'](_0x5a6c42),_0x184c33['get'](_0x898e0e))?_0x42df71[0x1]['commentThread']&&_0x42df71[0x1]['commentThread']['length']?null:_0x42df71:null;}_0x27bdd5['size']&&this['_refreshSuggestionsChain'](_0x27bdd5);}['_refreshAttributeSuggestionsChain'](_0x23b934){if(0x0==_0x23b934['length'])return;const _0x21345f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43608f=>'attribute'==_0x43608f['type']&&_0x43608f['_isDataLoaded']),_0x1ff7a2=[],_0x365415=new Map();for(const _0x2d284d of _0x21345f){const _0x169687=_0x116cc7(_0x2d284d['attributes']);_0x365415['has'](_0x169687)||(_0x365415['set'](_0x169687,_0x1ff7a2['length']),_0x1ff7a2['push']([]));const _0x109a6f=_0x365415['get'](_0x169687);_0x1ff7a2[_0x109a6f]['push'](_0x2d284d);}!(function(){_0x1ff7a2['sort']((_0x408323,_0x2b2eb9)=>{const _0x45dd1b=_0x408323[0x0]['createdAt'],_0x2312a1=_0x2b2eb9[0x0]['createdAt'];return _0x45dd1b==_0x2312a1?_0x408323[0x0]['attributes']['groupId']<_0x2b2eb9[0x0]['attributes']['groupId']?-0x1:0x1:_0x45dd1b<_0x2312a1?-0x1:0x1;});for(const _0x420c6a of _0x1ff7a2)_0x420c6a['sort']((_0x5a9e58,_0x24f88a)=>_0x5a9e58['id']<_0x24f88a['id']?-0x1:0x1);}());for(let _0x387acc=0x0;_0x387acc<_0x1ff7a2['length'];_0x387acc++){if(0x0==_0x1ff7a2[_0x387acc]['length'])continue;const _0x2a8075=[];for(let _0x4e3f45=_0x387acc+0x1;_0x4e3f45<_0x1ff7a2['length'];_0x4e3f45++)0x0!=_0x1ff7a2[_0x4e3f45]['length']&&_0x5a8897(_0x1ff7a2[_0x387acc],_0x1ff7a2[_0x4e3f45])&&_0x2a8075['push'](_0x4e3f45);for(const _0x2c7904 of _0x2a8075)_0x1ff7a2[_0x387acc]=_0x1ff7a2[_0x387acc]['concat'](_0x1ff7a2[_0x2c7904]),_0x1ff7a2[_0x2c7904]=[];}for(const _0x62aee4 of _0x1ff7a2)for(let _0x713750=0x0;_0x713750<_0x62aee4['length'];_0x713750++){const _0x27d74d=_0x62aee4[_0x713750+0x1]||null;_0x62aee4[_0x713750]['next']!==_0x27d74d&&(_0x62aee4[_0x713750]['next']=_0x27d74d);}for(const _0x323b77 of _0x1ff7a2)for(let _0x304a46=0x0;_0x304a46<_0x323b77['length'];_0x304a46++){const _0x1b604f=_0x323b77[_0x304a46-0x1]||null;_0x323b77[_0x304a46]['previous']!==_0x1b604f&&(_0x323b77[_0x304a46]['previous']=_0x1b604f);}function _0x5a8897(_0x529205,_0x3175cb){if(_0x529205[0x0]['attributes']['groupId']!==_0x3175cb[0x0]['attributes']['groupId']&&_0x529205[0x0]['author']!==_0x3175cb[0x0]['author'])return!0x1;if(!function(_0x740b87,_0x1587a9){if(!_0x740b87['hasComments']&&!_0x1587a9['hasComments'])return!0x0;if(_0x740b87['hasComments']&&_0x1587a9['hasComments'])return!0x1;if(_0x740b87['hasComments']&&_0x1587a9['createdAt']<_0x740b87['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1587a9['hasComments']&&_0x740b87['createdAt']<_0x1587a9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x529205[0x0],_0x3175cb[0x0]))return!0x1;const _0x35bf8d=Ft(_0x529205[0x0]['attributes'],'groupId'),_0x2bf982=Ft(_0x3175cb[0x0]['attributes'],'groupId');if(!_0x54a863(_0x35bf8d,_0x2bf982))return!0x1;return!!_0x529205['every'](_0x3fe5af=>_0x3175cb['some'](_0x22323b=>_0x3fe5af['getFirstRange']()['isEqual'](_0x22323b['getFirstRange']())))&&_0x3175cb['every'](_0x33406e=>_0x529205['some'](_0x285cf3=>_0x33406e['getFirstRange']()['isEqual'](_0x285cf3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x292b5b){const _0x585e1c=Array['from'](_0x292b5b),_0x3aaa1e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x851a7e=_0x3aaa1e['filter'](_0x15381f=>!_0x292b5b['has'](_0x15381f)),_0xa2f210=new Map(_0x585e1c['map'](_0x1ec67e=>[_0x1ec67e,this['_suggestionFactory']['getSuggestionCallback'](_0x1ec67e['type'],_0x1ec67e['subType'],'join')])),_0x48592f=new Map(_0x3aaa1e['map'](_0x392e4e=>[_0x392e4e,_0x392e4e['getRanges']()]));for(let _0x25681e=0x0;_0x25681e<_0x585e1c['length'];_0x25681e++){if(_0x115f81(this,_0x585e1c[_0x25681e],_0x585e1c,_0x25681e+0x1))return!0x0;}for(let _0x1eeecb=0x0;_0x1eeecb<_0x585e1c['length'];_0x1eeecb++){if(_0x115f81(this,_0x585e1c[_0x1eeecb],_0x851a7e,0x0))return!0x0;}return!0x1;function _0x115f81(_0x185c19,_0x2dad69,_0xea203,_0x1820b5){for(let _0x1824fd=_0x1820b5;_0x1824fd<_0xea203['length'];_0x1824fd++){const _0x31027f=_0xea203[_0x1824fd];if(_0x31027f['type']!==_0x2dad69['type']||_0x31027f['author']['id']!==_0x2dad69['author']['id']||_0x31027f['subType']!==_0x2dad69['subType'])continue;if(!Qt(_0x2dad69,_0x31027f))continue;if('attribute'==_0x2dad69['type']&&_0x2dad69['data']['oldValue']!=_0x31027f['data']['oldValue'])continue;if('attribute'==_0x2dad69['type']&&_0x185c19['_isBlockAttribute'](_0x2dad69['data']['key']))continue;if('formatBlock'==_0x2dad69['type']){const _0x4d905a=_0x185c19['editor']['model'],_0x5957f2=_0x2dad69['getContainedElement']();if(_0x5957f2&&(_0x4d905a['schema']['isObject'](_0x5957f2)||_0x4d905a['schema']['isLimit'](_0x5957f2)))continue;}const _0x1a8722=_0xa2f210['get'](_0x2dad69),_0x1eff0a=_0x48592f['get'](_0x2dad69),_0x2b79e5=_0x48592f['get'](_0x31027f),_0x22a813=_0x2dad69['commentThread']&&_0x2dad69['commentThread']['length'],_0x537b63=_0x31027f['commentThread']&&_0x31027f['commentThread']['length'];if(!_0x22a813&&_0x1a8722(_0x2b79e5,_0x1eff0a))return _0x185c19['_joinSuggestions'](_0x31027f,_0x2dad69),_0x48592f['delete'](_0x2dad69),!0x0;if(!_0x537b63&&_0x1a8722(_0x1eff0a,_0x2b79e5))return _0x185c19['_joinSuggestions'](_0x2dad69,_0x31027f),_0x48592f['delete'](_0x31027f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x10a367,_0x16fb02){if(_0x10a367['isMultiRange']){for(const _0x6b06f7 of _0x16fb02['getRanges']())_0x10a367['addRange'](_0x6b06f7);}else{const _0x371d6c=_0x16fb02['getFirstRange']()['end'];this['_setSuggestionRange'](_0x10a367,this['_model']['createRange'](_0x10a367['getFirstRange']()['start'],_0x371d6c));}_0x16fb02['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1ac5f4,_0x360065,_0x368037){const _0x194f12=_0x1ac5f4['startsWith']('format')||_0x1ac5f4['startsWith']('attribute')?'FORMATTING':_0x1ac5f4['toUpperCase']();return c(this['editor']['locale'],_0x360065+'_'+_0x194f12+'_SUGGESTION_ANNOUNCEMENT',_0x368037);}['_initAriaMarkerChangeAnnouncements'](){const _0x271f6e=this['editor'];if(!_0x271f6e['ui'])return;const {ariaLiveAnnouncer:_0x528579}=_0x271f6e['ui'];_0x3dfa8a(this['_model'],({left:_0x54f444,entered:_0x963eeb})=>{for(const _0x459ebf of _0x54f444){const {group:_0x41ce5c,type:_0xd0ef8c}=this['_splitMarkerName'](_0x459ebf['name']);if('suggestion'===_0x41ce5c){_0x528579['announce'](this['_getMarkerAnnouncementText'](_0xd0ef8c,'LEAVE'));break;}}for(const _0x975d2d of _0x963eeb){const {group:_0x22396f,type:_0x23c0fd}=this['_splitMarkerName'](_0x975d2d['name']);if('suggestion'===_0x22396f){_0x528579['announce'](this['_getMarkerAnnouncementText'](_0x23c0fd,'ENTER',_0x34513e(_0x16a039)));break;}}});}['_processAttributeChanges'](_0xb326ed){if(this['_recordAttributeSuggestions'])return!0x1;const _0x237697=this['editor'],_0x328295=_0x237697['model']['document']['differ']['getChanges']();if(0x0==_0x328295['length'])return!0x1;const _0x370487=[],_0x39a749=_0x328295['filter'](_0x14ff36=>'attribute'==_0x14ff36['type']),_0x262ee3=_0x328295['filter'](_0x52dede=>'insert'==_0x52dede['type']&&'$text'!=_0x52dede['name']),_0x8f5e6a=_0x328295['filter'](_0x2e60b4=>'remove'==_0x2e60b4['type']&&'$text'!=_0x2e60b4['name']);for(const _0x4d899a of _0x39a749)_0x370487['push']({'key':_0x4d899a['attributeKey'],'newValue':_0x4d899a['attributeNewValue'],'oldValue':_0x4d899a['attributeOldValue'],'range':qt(_0x4d899a['range'],_0x237697['model'])});for(const _0x56864e of _0x262ee3){const _0x186446=_0x8f5e6a['find'](_0x53c74c=>_0x53c74c['position']['isEqual'](_0x56864e['position']));_0x186446&&_0x370487['push']({'key':u,'newValue':_0x56864e['name'],'oldValue':_0x186446['name'],'range':_0x237697['model']['createRangeOn'](_0x56864e['position']['nodeAfter'])});}return 0x0!=_0x370487['length']&&this['_reduceExistingSuggestions'](_0xb326ed,_0x370487);}['_processAttributeSuggestions'](_0x22357a){let _0x1e5b94=!0x1;const _0x17af89=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21a1e5=>_0x21a1e5['data']['newRange']&&_0x21a1e5['name']['startsWith']('suggestion:attribute:'));for(const _0xc5fbf7 of _0x17af89){const {subType:_0x1d6240,id:_0x48658d}=this['_splitMarkerName'](_0xc5fbf7['name']),_0xef4f3=_0x1d6240['split']('|')[0x0];for(const _0x1888f5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1888f5['id']!=_0x48658d&&'attribute'==_0x1888f5['type']&&_0x1888f5['data']&&_0x1888f5['data']['key']==_0xef4f3&&_0x1888f5['getFirstRange']()['isIntersecting'](_0xc5fbf7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1888f5,_0xc5fbf7['data']['newRange'],_0x22357a),_0x1e5b94=!0x0);}return _0x1e5b94;}['_recordAttributeChanges'](_0x9ae54b){this['_recordAttributeSuggestions']=!0x0,_0x9ae54b();}['_isRegisteredAttribute'](_0x4cfeb4){const _0x4b07e2=this['_isBlockAttribute'](_0x4cfeb4),_0x11674e=this['_inlineAttributeKeys']['has'](_0x4cfeb4);return _0x4b07e2||_0x11674e;}['_reduceExistingSuggestions'](_0x4debb1,_0x4e5647){if(0x0==_0x4e5647['length'])return!0x1;let _0x993ec3=!0x1;for(const _0x480f75 of _0x4e5647){const _0x2ca0ff=this['_findSuggestions'](_0x480f75['range'],'attribute')['filter'](_0x3594ff=>!_0x3594ff['meta']['isNextTo'])['map'](_0x38584d=>_0x38584d['suggestion']),_0x2f3ba1=_0x116cc7({'newValue':_0x480f75['newValue']});_0x2ca0ff['filter'](_0x4138c3=>{const [_0x44d717,_0x3625af]=_0x4138c3['subType']['split']('|');return _0x44d717==_0x480f75['key']&&_0x3625af!=_0x2f3ba1;})['forEach'](_0x2f9136=>{this['_reduceSuggestionAttributeRange'](_0x2f9136,_0x480f75['range'],_0x4debb1),_0x993ec3=!0x0;});}return _0x993ec3;}['_reduceSuggestionAttributeRange'](_0x39ea7d,_0x3bb5e0,_0x4c7c62){const _0x46bfde=_0x39ea7d['getFirstRange']()['getDifference'](_0x3bb5e0);0x0!==_0x46bfde['length']?0x1!==_0x46bfde['length']?this['_breakSuggestionMarker'](_0x39ea7d,_0x3bb5e0['start'],_0x3bb5e0['end']):this['_setSuggestionRange'](_0x39ea7d,_0x46bfde[0x0]):_0x4c7c62['removeMarker'](_0x39ea7d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1aabd4){this['_editor']=_0x1aabd4,this['_model']=_0x1aabd4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x404d82,_0x4db4b6,_0x217933,_0x2efc1e,_0x210e29,_0x511e56){return new o(this['_model'],{'type':_0x404d82,'subType':_0x4db4b6,'id':_0x217933,'author':_0x2efc1e,'creator':_0x2efc1e,'attributes':_0x210e29,'onAttributesChange':_0x511e56,'onAccept':(..._0x26bbdb)=>this['getSuggestionCallback'](_0x404d82,_0x4db4b6,'accept')(..._0x26bbdb),'onDiscard':(..._0x30c9bb)=>this['getSuggestionCallback'](_0x404d82,_0x4db4b6,'discard')(..._0x30c9bb)});}['registerCustomCallback'](_0x5db4b8,_0x732809,_0x4b46c2,_0x26d5af){const _0x24352f=_0x5db4b8+':'+_0x732809+':'+_0x4b46c2;this['_customCallbacks']['set'](_0x24352f,_0x26d5af);}['getSuggestionCallback'](_0x4bc1f8,_0x5af641,_0x1e4b23){const _0x23bd7e=_0x4bc1f8+':'+_0x5af641+':'+_0x1e4b23;return this['_customCallbacks']['get'](_0x23bd7e)||this['_defaultCallbacks']['get'](_0x4bc1f8+':'+_0x1e4b23);}['_registerDefaultCallbacks'](){const _0x23f7c2=()=>!0x1,_0x31fac7=_0x324813=>{_0x324813['sort']((_0x2c3261,_0x28e358)=>_0x2c3261['start']['isBefore'](_0x28e358['start'])?0x1:-0x1),this['_model']['change'](_0x1a8607=>{for(const _0x41811e of _0x324813){let _0x5c8135;_0x5c8135=_0x41811e['end']['isAtEnd']&&_0x41811e['end']['parent']==_0x41811e['start']['nodeAfter']?_0x1a8607['createSelection'](_0x41811e['start']['nodeAfter'],'on'):_0x1a8607['createSelection'](_0x41811e),this['_model']['deleteContent'](_0x5c8135,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x317878=(_0x596b71,_0xfbf5c4)=>{_0xfbf5c4&&this['_model']['change'](_0x16b693=>{const {commandName:_0x20eb5d,commandParams:_0x4e9689=[]}=_0xfbf5c4,_0x26cf65=_0x596b71['map'](_0x40009c=>(Lt(_0x40009c)&&(_0x40009c=this['_model']['createRange'](_0x40009c['end'])),_0x40009c))['filter'](_0x28a2e6=>'$graveyard'!==_0x28a2e6['root']['rootName']);if(_0x26cf65['length']<0x1)return;const _0x292faa=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5af3dd=>_0x3932e8['fromRange'](_0x5af3dd));_0x16b693['setSelection'](_0x26cf65);for(const _0x37fcf6 of this['_editor']['commands']['commands']())_0x37fcf6['refresh']();_0x4e9689['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x20eb5d,..._0x4e9689);const _0x459dfa=_0x292faa['filter'](_0x148e8a=>'$graveyard'!=_0x148e8a['root']['rootName']);_0x459dfa['length']>0x0&&_0x16b693['setSelection'](_0x459dfa);for(const _0x69f8df of _0x292faa)_0x69f8df['detach']();});},_0x20d10f=(_0x75c331,_0x3ad6c8)=>0x1==_0x75c331['length']&&0x1==_0x3ad6c8['length']&&_0x75c331[0x0]['end']['isEqual'](_0x3ad6c8[0x0]['start']),_0x5e7243=(_0x32434c,_0x524da9,_0x198439,_0x396b96)=>Wt(_0x32434c,_0x524da9,_0x198439,_0x396b96)?[_0x32434c,_0x524da9]:Wt(_0x524da9,_0x32434c,_0x396b96,_0x198439)?[_0x524da9,_0x32434c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x23f7c2),this['_defaultCallbacks']['set']('insertion:discard',_0x31fac7),this['_defaultCallbacks']['set']('insertion:join',_0x20d10f),this['_defaultCallbacks']['set']('insertion:chain',_0x5e7243),this['_defaultCallbacks']['set']('deletion:accept',_0x31fac7),this['_defaultCallbacks']['set']('deletion:discard',_0x23f7c2),this['_defaultCallbacks']['set']('deletion:join',_0x20d10f),this['_defaultCallbacks']['set']('deletion:chain',_0x5e7243),this['_defaultCallbacks']['set']('formatInline:accept',_0x317878),this['_defaultCallbacks']['set']('formatInline:discard',_0x23f7c2),this['_defaultCallbacks']['set']('formatInline:join',_0x20d10f),this['_defaultCallbacks']['set']('formatInline:chain',_0x23f7c2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x317878),this['_defaultCallbacks']['set']('formatBlock:discard',_0x23f7c2),this['_defaultCallbacks']['set']('formatBlock:join',_0x20d10f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x23f7c2),this['_defaultCallbacks']['set']('attribute:accept',_0x23f7c2),this['_defaultCallbacks']['set']('attribute:discard',(_0x5391aa,_0x25f089)=>{if(!_0x25f089)return;const _0x2be5cc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x47496d=>{if(_0x25f089['key']==u)for(const _0x197a5c of _0x5391aa){const _0x56bb70=_0x197a5c['start']['nodeAfter'],_0xa21f6c=_0x25f089['oldValue'];_0x47496d['rename'](_0x56bb70,_0xa21f6c);}else{if(_0x2be5cc['_isBlockAttribute'](_0x25f089['key'])){for(const _0xfafd0e of _0x5391aa)void 0x0!==_0x25f089['oldValue']?_0x47496d['setAttribute'](_0x25f089['key'],_0x25f089['oldValue'],_0xfafd0e['start']['nodeAfter']):_0x47496d['removeAttribute'](_0x25f089['key'],_0xfafd0e['start']['nodeAfter']);}else{for(const _0x4c6979 of _0x5391aa)_0x25f089['oldValue']?_0x47496d['setAttribute'](_0x25f089['key'],_0x25f089['oldValue'],_0x4c6979):_0x47496d['removeAttribute'](_0x25f089['key'],_0x4c6979);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20d10f);}}function Gt(_0x1a36be,_0x4f63a9,_0x22b54e){for(const _0x18144e of _0x4f63a9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x18144e['root']==_0x18144e)return!0x1;if(!_0x22b54e['containsItem'](_0x18144e))return!0x1;if(_0x1a36be['isObject'](_0x18144e)||_0x1a36be['isLimit'](_0x18144e))return!0x0;}return!0x1;}function Lt(_0xea2002){return _0xea2002['end']['parent']==_0xea2002['start']['nodeAfter']&&_0xea2002['end']['isAtStart'];}function Jt(_0x3edfd4,_0x19b9de,_0x1f23c4,_0x507aee){const _0x27bc1e=_0x1354bd=>!_0x1354bd['item']['is']('$textProxy')&&!_0x507aee['isObject'](_0x1354bd['item']),_0x23977f=_0x3edfd4['start']['getLastMatchingPosition'](_0x27bc1e),_0x2d0c8e=_0x3edfd4['end']['getLastMatchingPosition'](_0x27bc1e,{'direction':'backward'});return(!_0x3edfd4['start']['isEqual'](_0x23977f)||!_0x3edfd4['end']['isEqual'](_0x2d0c8e))&&(_0x23977f['isBefore'](_0x2d0c8e)?_0x1f23c4['updateMarker'](_0x19b9de,{'range':_0x1f23c4['createRange'](_0x23977f,_0x2d0c8e)}):_0x1f23c4['removeMarker'](_0x19b9de),!0x0);}function Kt(_0x4839c5){return _0x116cc7(_0x4839c5);}function Ht(_0x9c1995){const _0x1607d5=_0x9c1995['start']['nodeAfter'];return _0x1607d5&&_0x1607d5['is']('element');}function qt(_0x3b8d90,_0x238b14){return null==_0x3b8d90['end']['nodeBefore']&&_0x3b8d90['end']['parent']==_0x3b8d90['start']['nodeAfter']?zt(_0x3b8d90['start']['nodeAfter'],_0x238b14):_0x3b8d90;}function zt(_0x1aa2a0,_0x2a7ce2){const _0x561cd4=_0x2a7ce2['schema']['isObject'](_0x1aa2a0)||_0x2a7ce2['schema']['isSelectable'](_0x1aa2a0);return _0x2a7ce2['createRange'](_0x2a7ce2['createPositionAt'](_0x1aa2a0,'before'),_0x561cd4?_0x2a7ce2['createPositionAfter'](_0x1aa2a0):_0x2a7ce2['createPositionAt'](_0x1aa2a0,'end'));}function Wt(_0x4b6792,_0x5bb585,_0x3fa9de,_0x3c177c){return!!Qt(_0x4b6792,_0x5bb585)&&_0x3fa9de['end']['isEqual'](_0x3c177c['start']);}function Qt(_0x20b205,_0x523e6d){if(!_0x20b205['_isDataLoaded']||!_0x523e6d['_isDataLoaded'])return!0x1;const _0x27a1c8=new Set(Object['keys'](_0x20b205['attributes'])),_0x3574ce=new Set(Object['keys'](_0x523e6d['attributes']));if(_0x27a1c8['delete']('groupId'),_0x3574ce['delete']('groupId'),0x0==_0x27a1c8['size']&&0x0==_0x3574ce['size'])return!0x0;if(_0x27a1c8['size']!=_0x3574ce['size'])return!0x1;const _0x3df6ec={..._0x20b205['attributes']},_0x2d64c3={..._0x523e6d['attributes']};return delete _0x3df6ec['groupId'],delete _0x2d64c3['groupId'],JSON['stringify'](_0x3df6ec)==JSON['stringify'](_0x2d64c3);}function Xt(_0x4bc786,_0x380835){const _0x2d9b2b=Yt(_0x4bc786['attributes']),_0x2acd59=Yt(_0x380835);if(!_0x4bc786['_isDataLoaded'])return!0x1;for(const _0x3a2c99 of Object['keys'](_0x2acd59))if(!_0x54a863(_0x2d9b2b[_0x3a2c99],_0x2acd59[_0x3a2c99]))return!0x1;return!0x0;}function Yt(_0x5337d6){const _0x425ffc=Object['assign']({},_0x5337d6);return delete _0x425ffc['skipNestingCheck'],delete _0x425ffc['tablePasteChainId'],_0x425ffc;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x36705e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ac607,_0x2667a0,_0x22688c,_0x17904d){super(),this['model']=_0x2667a0,this['view']=_0x22688c,this['commentThreadController']=_0x17904d,this['_editor']=_0x5ac607,this['_acceptCommand']=_0x5ac607['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ac607['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4f36c5,_0x576d6b)=>_0x4f36c5||_0x576d6b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x396741=>_0x396741&&this['_editor']['model']['canEditAt'](_0x2667a0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4527a9=>_0x4527a9&&this['_editor']['model']['canEditAt'](_0x2667a0['getRanges']())),this['_pendingAction']=null,_0x22688c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x22688c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x22688c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x22688c,'change:isDirty',()=>{_0x22688c['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 _0x2d7d42=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2d7d42);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x16e147{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4def5b,_0x398ce8,_0x6f6d20,_0x6fc655){super(_0x4def5b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x186e5b(_0x4def5b,c(_0x4def5b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x398ce8['authoredAt']),this['bind']('authoredAt')['to'](_0x398ce8),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',_0x398ce8,'authoredAt',this,'descriptionParts',(_0x2c974e,_0x38fa4b,_0x4f25e8)=>{const _0x29e870=_0x4f25e8['map'](_0x17ba6a=>ls(_0x17ba6a['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c974e-0x1,_0x398ce8['author']['name'],_0x38fa4b?_0x6fc655['formatDateTime'](_0x38fa4b):'',new DOMParser()['parseFromString'](_0x29e870,'text/html')['body']['textContent']]);}),this['focusables']=new _0x505895(),this['focusTracker']=new _0x791790(),this['keystrokes']=new _0x3e2044(),this['focusCycler']=new _0x1bab99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x34771=>_0x34771['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x398ce8,this['_localUser']=_0x6f6d20,this['_config']=_0x6fc655,_0x6fc655['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x51b150(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x310fd2}=this['_config'];this['commentsListView']=new _0x310fd2(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',_0xa6dd33=>_0xa6dd33+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x26a380,_0x498fb6)=>_0x26a380||!!_0x498fb6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d7a1a}=this['_config'],_0x1480ab=new _0x1d7a1a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x9636cb=_0x1480ab['commentInputView'];return _0x1480ab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x9636cb,'value',(_0x3134b1,_0xc35c2e,_0x4c4209)=>!!_0x4c4209||_0x3134b1&&!_0xc35c2e),_0x9636cb['on']('submit',(_0x3473f7,_0x1863de)=>{this['fire']('addComment',_0x1863de),_0x9636cb['editor']['setData']('');}),_0x9636cb['on']('cancel',()=>this['focus']()),_0x9636cb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1480ab;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4f7994,_0x471639,_0x57284b,_0x3e72f7){super(_0x4f7994,_0x471639,_0x57284b,_0x3e72f7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4eb435=>_0x4eb435&&_0x4eb435[0x0]?_0x4eb435[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x460b64,_0x4bf71a)=>{let _0x1c3360='';for(const _0x278630 of _0x460b64)_0x1c3360+='<p>'+ls(_0x278630['content'],_0x278630['color'])+'</p>';return _0x4bf71a?_0x1c3360:ti(_0x1c3360,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e72f7['SuggestionView'](_0x4f7994,_0x471639,{'formatDateTime':_0x3e72f7['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 _0x5bd0a0=this['bindTemplate'],_0x1dc84d=[this['suggestionView']];return this['commentsListView']&&_0x1dc84d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1dc84d['push'](this['commentThreadInputView']),_0x1dc84d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5bd0a0['if']('isActive','ck-suggestion-wrapper--active'),_0x5bd0a0['to']('type',_0x438ddc=>'ck-suggestion-'+_0x438ddc),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':_0x5bd0a0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1dc84d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x16e147{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xab6473,_0x195856,_0x159eb7){super(_0xab6473),this['_model']=_0x195856,this['_config']=_0x159eb7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x195856),this['acceptButton']=this['_createButton'](c(_0xab6473,'Accept\x20suggestion'),_0x1baade,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xab6473,'Discard\x20suggestion'),_0x4bef77,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xdd5bd2(_0xab6473,_0x195856['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x505895([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x791790(),this['keystrokes']=new _0x3e2044(),this['focusCycler']=new _0x1bab99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19cffe=>_0x19cffe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xc53295=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xc53295['innerHTML']=this['description'],this['on']('change:description',(_0x5130bc,_0x2f0b82,_0x2056ce)=>{_0xc53295['innerHTML']=_0x2056ce;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x484dac=this['bindTemplate'],_0x5247a3=[{'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':_0x484dac['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x484dac['to']('authoredAt',_0x4c62be=>this['_config']['formatDateTime'](_0x4c62be))}]}]},{'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']&&_0x5247a3['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':_0x5247a3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xc8ece3,_0x1befa7,_0x3c15ca,_0x580b62,_0x11166e){const _0x4f069a=new _0x4604b9(this['locale']);return _0x4f069a['set']({'label':_0xc8ece3,'icon':_0x1befa7,'tooltip':!0x0,'tooltipPosition':_0x11166e}),_0x4f069a['extendTemplate']({'attributes':{'class':_0x3c15ca}}),_0x4f069a['on']('execute',()=>{this['fire'](_0x580b62,this['_model']['id']);}),_0x4f069a;}['_setupKeyboardNavigation'](){const _0x1df78f=this['element'];this['keystrokes']['listenTo'](_0x1df78f);for(const _0xa39f7c of this['focusables'])this['focusTracker']['add'](_0xa39f7c['element']),this['keystrokes']['listenTo'](_0xa39f7c['element']);this['keystrokes']['set']('enter',(_0x48bcda,_0x3d5350)=>{_0x1df78f===_0x48bcda['target']&&(this['focusCycler']['focusFirst'](),_0x3d5350());}),this['keystrokes']['set']('esc',(_0xd7b691,_0x1ba424)=>{_0x1df78f!==_0xd7b691['target']&&(this['focus'](),_0x1ba424());});}}class d extends _0x55fa68{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2aa14c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37b173){super(_0x37b173),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4e8d5c=this['editor']['config'];_0x4e8d5c['define']('trackChanges.SuggestionThreadView',fe),_0x4e8d5c['define']('trackChanges.SuggestionView',we),_0x4e8d5c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e8d5c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d16b6,_0x3b4600){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x190b42,_0x3419a8]of this['_handleControllerBuffer']){const _0x361ed5=this['_suggestionToController']['has'](_0x190b42);_0x361ed5||_0x3419a8?_0x361ed5&&_0x3419a8&&this['_destroyController'](_0x190b42):this['_initializeController'](_0x190b42);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d16b6,_0x3b4600);}['init'](){const _0x206987=this['editor'],_0x2f2c2b=_0x206987['plugins']['get']('TrackChangesEditing'),_0x166509=_0x206987['plugins']['get']('Annotations'),_0x24f79f=_0x206987['plugins']['get']('EditorAnnotations'),_0x43e14c=_0x206987['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x24f79f['addSourceCollector'](()=>{const _0x23ab0c=[];for(const [_0x4798d9,_0x47b9c8]of Array['from'](this['_suggestionToController'])){const _0x421f11=_0x4798d9['getAllAdjacentSuggestions'](),_0x586e40=[];for(const _0x5c6a93 of _0x421f11){if(!_0x5c6a93['isInContent'])continue;if(_0x5c6a93['isMultiRange']){_0x586e40['push'](..._0x5c6a93['getRanges']());continue;}const _0x27a57b=_0x5c6a93['getFirstRange']();if(_0x586e40['length']>0x0){const _0xfce390=_0x586e40[0x0]['getJoined'](_0x27a57b);if(_0xfce390){_0x586e40[0x0]=_0xfce390;continue;}}_0x586e40['push'](_0x27a57b);}_0x23ab0c['push']([_0x47b9c8['view'],_0x586e40]);}return _0x23ab0c;}),this['listenTo'](_0x2f2c2b,'suggestionLoaded',(_0x5ba42f,_0x808bb6)=>{this['listenTo'](_0x808bb6,'change:previous',(_0xc07618,_0x4917b4,_0x8c0e45,_0x2d256b)=>{_0x808bb6['isInContent']&&(null==_0x8c0e45?(this['_updateController'](_0x2d256b['head']),this['_handleSuggestionControllerDelayed'](_0x808bb6,!0x1)):(this['_updateController'](_0x8c0e45['head']),null==_0x2d256b&&this['_handleSuggestionControllerDelayed'](_0x808bb6,!0x0)));}),null!==_0x808bb6['previous']?this['_updateController'](_0x808bb6['head']):this['_handleSuggestionControllerDelayed'](_0x808bb6,!0x1);}),this['listenTo'](_0x2f2c2b,'suggestionUnloaded',(_0x53ded8,_0x493207,_0x113677)=>{this['stopListening'](_0x493207,'change:previous'),this['_handleControllerBuffer']['delete'](_0x493207),this['_suggestionToController']['has'](_0x493207)&&this['_destroyController'](_0x493207),_0x113677&&this['_updateController'](_0x113677['head']);}),this['listenTo'](_0x2f2c2b,'suggestionChanged',(_0x31b0c4,_0xb29e5b)=>{this['_updateController'](_0xb29e5b);}),this['listenTo'](_0x166509,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43e14c,'addComment',(_0x4af668,{threadId:_0x4ef2a8,isFromAdapter:_0x309984})=>{if(_0x309984||!_0x2f2c2b['hasSuggestion'](_0x4ef2a8))return;const _0x29026a=_0x2f2c2b['getSuggestion'](_0x4ef2a8);this['_suggestionToController']['get'](_0x29026a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf9495d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c93df;for(const _0x2ec0a3 in _0xf9495d){const _0x181660=_0x2ec0a3,_0x403c49=_0xf9495d[_0x181660];if('trackChangesLicenseKeyValid'==_0x403c49||'trackChangesLicenseKeyInvalid'==_0x403c49||'trackChangesLicenseKeyExpired'==_0x403c49||'trackChangesLicenseKeyDomainLimit'==_0x403c49||'trackChangesLicenseKeyNotAllowed'==_0x403c49||'trackChangesLicenseKeyEvaluationLimit'==_0x403c49||'trackChangesLicenseKeyTrialLimit'==_0x403c49||'trackChangesLicenseKeyUsageLimit'==_0x403c49){delete _0xf9495d[_0x181660],_0x1c93df=_0x403c49,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c93df&&_0xf9495d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c93df&&_0xf9495d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c93df&&_0xf9495d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4d923b=this['editor']['plugins']['get']('Annotations'),_0x203c4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56a26c=Array['from'](_0x4d923b['activeAnnotations'],_0x22eb50=>_0x22eb50['innerView'])['filter'](_0x35491e=>this['_viewToController']['has'](_0x35491e)),_0xe327a4=[];for(const _0x25b0c2 of _0x56a26c){const _0x11ea71=this['_viewToController']['get'](_0x25b0c2)['model']['getAllAdjacentSuggestions']();_0xe327a4['push'](..._0x11ea71['reduce']((_0x19c787,_0x3fe857)=>[..._0x19c787,..._0x3fe857['getMarkerNames']()],[]));}_0x203c4b['activeMarkers']=_0xe327a4;}['_addUIComponentsToFactory'](){const _0x35cf73=this['editor'],_0x930da2=_0x35cf73['locale'],_0x1d9c91=c(_0x930da2,'Track\x20changes'),_0x320bdb=new _0x173380([{'type':'switchbutton','model':new _0x2e2fe1({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d9c91,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35cf73['plugins']['has']('TrackChangesPreview')&&_0x320bdb['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25341c of _0x320bdb)if(ke(_0x25341c)){const _0x59f92a=_0x35cf73['commands']['get'](_0x25341c['model']['commandName']);_0x25341c['model']['bind']('isOn','isEnabled')['to'](_0x59f92a,'value','isEnabled');}_0x35cf73['ui']['componentFactory']['add']('trackChanges',_0x371877=>this['_createToolbarButton'](_0x371877,_0x320bdb,_0x1d9c91)),_0x35cf73['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2210f6=>this['_createMenuBarMenu'](_0x2210f6,_0x320bdb,_0x1d9c91));}['_createToolbarButton'](_0x50dc2c,_0x43d474,_0x24d6b4){const _0x3a8129=_0xe5a2c0(_0x50dc2c,_0x305cf4),_0x13e0be=this['editor']['commands']['get']('trackChanges');_0x3a8129['buttonView']['set']({'tooltip':_0x24d6b4,'label':_0x24d6b4,'icon':_0x368711}),_0x3a8129['buttonView']['bind']('isOn')['to'](_0x13e0be,'value'),_0x3a8129['buttonView']['on']('execute',()=>{_0x13e0be['execute'](),this['editor']['editing']['view']['focus']();}),_0x125b97(_0x3a8129,_0x43d474,{'role':'menu'});const _0x33e855=[];for(const _0x55d975 of _0x43d474)ke(_0x55d975)&&_0x33e855['push'](this['editor']['commands']['get'](_0x55d975['model']['commandName']));const _0x2ab67f=_0x3a8129['buttonView'];return _0x2ab67f['actionView']['unbind']('isEnabled'),_0x2ab67f['arrowView']['unbind']('isEnabled'),_0x2ab67f['actionView']['bind']('isEnabled')['to'](_0x13e0be,'isEnabled'),_0x2ab67f['arrowView']['bind']('isEnabled')['toMany'](_0x33e855,'isEnabled',(..._0x55abb9)=>_0x55abb9['some'](_0x1d2d53=>_0x1d2d53)),_0x3a8129['on']('execute',_0x1fa5de=>{this['editor']['execute'](_0x1fa5de['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a8129;}['_createMenuBarMenu'](_0x183db2,_0x26d73a,_0x3f0b81){const _0x440ef6=new _0x109a0c(_0x183db2),_0x418478=this['editor']['commands']['get']('trackChanges');_0x440ef6['buttonView']['set']({'label':_0x3f0b81,'icon':_0x368711});const _0x1ea97c=new _0x2e585f(_0x183db2);for(const _0xfa4c7a of _0x26d73a){if('separator'==_0xfa4c7a['type']){_0x1ea97c['items']['add'](new _0x298b31(_0x183db2));continue;}const _0x29e875=new _0x3d01b7(_0x183db2,_0x440ef6),_0x388155=new _0x3bad57(_0x183db2),_0x14cc46=_0xfa4c7a['model'];_0x388155['bind'](...Object['keys'](_0x14cc46))['to'](_0x14cc46),_0x388155['delegate']('execute')['to'](_0x440ef6),_0x388155['on']('execute',()=>{this['editor']['execute'](_0x14cc46['commandName']),this['editor']['editing']['view']['focus']();}),_0x29e875['children']['add'](_0x388155),_0x1ea97c['items']['add'](_0x29e875);}return _0x440ef6['bind']('isEnabled')['to'](_0x418478,'isEnabled'),_0x440ef6['panelView']['children']['add'](_0x1ea97c),_0x440ef6;}['_initializeController'](_0x5b4e13){const _0x8c8c07=this['editor'],_0x548322=_0x8c8c07['config'],_0x50f4ba=_0x8c8c07['plugins']['get']('Annotations'),_0x5eefca=_0x8c8c07['plugins']['get']('CommentsRepository'),_0x1b1588=_0x8c8c07['plugins']['get']('EditorAnnotations'),_0x4998b2=_0x8c8c07['plugins']['get'](_0x2aa14c)['me'],_0x16b1df=_0x548322['get']('trackChanges')['SuggestionThreadView'],_0x187aad=_0x548322['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a3589,CommentThreadInputView:_0x17f7bc}=_0x8c8c07['plugins']['get']('CommentsUI');let _0x4bc867,_0x1e9ef8,_0x322d75;this['_annotationViews']['has'](_0x5b4e13['id'])?(_0x1e9ef8=this['_annotationViews']['get'](_0x5b4e13['id']),_0x4bc867=_0x1e9ef8['mainView']):(_0x4bc867=new _0x16b1df(_0x8c8c07['locale'],_0x5b4e13,_0x4998b2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x548322['get']('comments.editorConfig'),'licenseKey':_0x548322['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x548322['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x548322['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x548322['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x8c2a2e(_0x548322['get']('locale'),_0x8c8c07['locale']),'CommentView':_0x548322['get']('comments')['CommentView'],'CommentsListView':_0x4a3589,'CommentThreadInputView':_0x17f7bc,'SuggestionView':_0x187aad}),_0x4bc867['suggestionView']['acceptButton']['on']('execute',()=>{_0x8c8c07['editing']['view']['focus']();}),_0x4bc867['suggestionView']['discardButton']['on']('execute',()=>{_0x8c8c07['editing']['view']['focus']();}),_0x1e9ef8=_0x50f4ba['createAnnotationView'](this['editor']['locale'],_0x4bc867),_0x1e9ef8['bind']('isDirty')['to'](_0x4bc867,'isDirty'),_0x1e9ef8['bind']('length')['to'](_0x4bc867),_0x1e9ef8['bind']('type')['to'](_0x4bc867,'type',_0x29e801=>'suggestion-'+_0x29e801),_0x4bc867['on']('escape',()=>{_0x322d75['fire']('escape');}),this['_annotationViews']['set'](_0x5b4e13['id'],_0x1e9ef8));const _0x43d976=_0x5eefca['createCommentThreadController'](_0x5b4e13['commentThread'],_0x4bc867),_0x4a79aa=new pe(_0x8c8c07,_0x5b4e13,_0x4bc867,_0x43d976),_0x19d70b=_0x5b4e13['getAllAdjacentSuggestions']()['filter'](_0x38308b=>_0x38308b['isInContent']);_0x4bc867['descriptionParts']=_0x8c8c07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19d70b),this['_suggestionToController']['set'](_0x5b4e13,_0x4a79aa),this['_viewToController']['set'](_0x4bc867,_0x4a79aa),_0x322d75=_0x50f4ba['createAnnotation']({'view':_0x1e9ef8,'target':()=>{const _0x42f0e0=[],_0x586007=_0x5b4e13['getAllAdjacentSuggestions']()['filter'](_0x124a50=>_0x124a50['isInContent']);for(const _0x56c61e of _0x586007)_0x42f0e0['push'](..._0x56c61e['getMarkers']());return _0x149208(_0x8c8c07['editing'],_0x42f0e0);},'type':()=>'suggestion-'+_0x4a79aa['view']['type']}),_0x5eefca['_bindAnnotationToEditors'](_0x4bc867,_0x322d75),_0x50f4ba['add'](_0x322d75),_0x1b1588['registerAnnotation'](_0x322d75);}['_destroyController'](_0x3bd43b){const _0x1aa90d=this['editor']['plugins']['get']('CommentsRepository'),_0x2edb3e=this['editor']['plugins']['get']('Annotations'),_0x12b755=this['_suggestionToController']['get'](_0x3bd43b),_0x1e5074=_0x12b755['view'],_0x57294b=_0x2edb3e['getByInnerView'](_0x1e5074);_0x1aa90d['_unbindEditors'](_0x1e5074),_0x57294b&&_0x2edb3e['remove'](_0x57294b),this['_suggestionToController']['delete'](_0x3bd43b),this['_viewToController']['delete'](_0x1e5074),_0x12b755['destroy']();}['_updateController'](_0x253e87){if(!_0x253e87['isInContent']||!this['_suggestionToController']['has'](_0x253e87))return;const _0x3aa3e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x536fd3=this['_suggestionToController']['get'](_0x253e87),_0x19a8ab=_0x253e87['getAllAdjacentSuggestions']();_0x536fd3['view']['descriptionParts']=_0x3aa3e4['descriptionFactory']['getDescriptions'](_0x19a8ab);}['destroy'](){for(const _0x43ed62 of this['_suggestionToController']['keys']())this['_destroyController'](_0x43ed62);for(const _0x49582c of this['_annotationViews']['values']())_0x49582c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x536d40){return'model'in _0x536d40;}class k extends _0x55fa68{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3833cc){this['editor']['plugins']['get'](p)['adapter']=_0x3833cc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x94a355){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x94a355);}['getSuggestions']({skipNotAttached:_0x481294=!0x1,toJSON:_0x2aa71d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x481294,'toJSON':_0x2aa71d});}['getSuggestion'](_0x5c3696){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5c3696);}}const w=['Pagination'];class T extends _0x55fa68{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a2471=this['editor'];if(_0x4a2471['config']['define']('trackChangesData.editorCreator',_0x1e7986=>{const _0x39c3b1=_0x4a2471['model']['document']['getRootNames']()['reduce']((_0x295073,_0x2be5a1)=>(_0x295073[_0x2be5a1]='',_0x295073),{});return _0x4a2471['constructor']['create'](_0x39c3b1,_0x1e7986);}),'function'!=typeof _0x4a2471['config']['get']('trackChangesData')['editorCreator'])throw new _0x50045d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1b7106){return N(this['editor'],!0x0,_0x1b7106);}['getDataWithDiscardedSuggestions'](_0x33e0d4){return N(this['editor'],!0x1,_0x33e0d4);}}class D extends _0x55fa68{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a4650){function _0x5deaed(_0x162da9){return _0x162da9['map'](_0x28edfe=>String['fromCharCode'](_0x28edfe))['join']('');}super(_0x2a4650),this['result']='end',_0x2a4650[_0x5deaed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5deaed([0x76,0x69,0x65,0x77])][_0x5deaed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5deaed([0x61,0x75,0x74,0x6f]),_0x2a4650[_0x5deaed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5deaed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5deaed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5deaed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5deaed([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x1f0d1f){return void 0x0!==_0x1f0d1f['getRootsAttributes'];}async function N(_0x3e8e3b,_0x52ac6d,_0x172747){const _0x12720f=_0x5b869d(_0x3e8e3b,w);_0x12720f['plugins']['push'](p,D),_0x12720f['rootsAttributes']=Ge(_0x3e8e3b)?_0x3e8e3b['getRootsAttributes']():void 0x0;const _0x455736=document['createDocumentFragment'](),_0x232315=_0x3e8e3b['config']['get']('trackChangesData')['editorCreator'],_0x314439=await _0x232315(_0x12720f,()=>function(_0x2b6e8a){const _0x555453=document['createElement']('div');return _0x2b6e8a['appendChild'](_0x555453),_0x555453;}(_0x455736));!function(_0xbdd7a4,_0x4b6d9b){const _0x476b13=_0xbdd7a4['model']['document']['getRootNames']()['reduce']((_0x48be47,_0x13e00e)=>(_0x48be47[_0x13e00e]=_0xbdd7a4['data']['get']({'rootName':_0x13e00e}),_0x48be47),{}),_0x13c179=_0xbdd7a4['plugins']['get']('Users')['users']['map'](_0xabfa82=>({'id':_0xabfa82['id'],'name':_0xabfa82['name']})),_0x6e8ffa=_0xbdd7a4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2defdc=_0xbdd7a4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34e17d=_0x4b6d9b['plugins']['get']('Users'),_0x59ec93=_0x4b6d9b['plugins']['get']('TrackChangesEditing'),_0x48b7f0=_0x4b6d9b['plugins']['get']('CommentsRepository');for(const _0x220ee5 of _0x48b7f0['getCommentThreads']())_0x220ee5['remove']();for(const _0x33f45e of _0x13c179)_0x34e17d['getUser'](_0x33f45e['id'])||_0x34e17d['addUser'](_0x33f45e);_0x34e17d['me']||_0x34e17d['useAnonymousUser']();for(const _0xe36442 of _0x2defdc)_0x48b7f0['addCommentThread'](_0xe36442);for(const _0x355cd1 of _0x6e8ffa)_0x59ec93['addSuggestionData'](_0x355cd1);_0x4b6d9b['data']['set'](_0x476b13);}(_0x3e8e3b,_0x314439),_0x314439['execute'](_0x52ac6d?'acceptAllSuggestions':'discardAllSuggestions');const _0x520fc2=Ge(_0x314439)?_0x314439['getFullData'](_0x172747):_0x314439['data']['get'](_0x172747);return await _0x314439['destroy'](),_0x520fc2;}class Me extends _0x16e147{['options'];constructor(_0x1794d5,_0x58a8e6){super(_0x1794d5),this['options']=_0x58a8e6,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'](_0x23d378,_0x55ae0e){if(!this['element'])return;const _0x1666b8=[];for(const [_0x4ef9ca,_0x20b655]of _0x23d378){const _0x17f3df=document['createElement']('div');_0x17f3df['setAttribute']('data-ck-root-name',_0x4ef9ca),_0x17f3df['className']=_0x20b655['classes']+'\x20ck-track-changes-preview__root-container',_0x17f3df['innerHTML']=_0x20b655['content'],_0x1666b8['push'](_0x17f3df);}_0x55ae0e(this['element'],_0x1666b8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5b0c44{constructor(_0x3b5d21){super(_0x3b5d21),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4077ce=this['editor'],_0x549b5d=_0x4077ce['locale'],_0x2296de=_0x4077ce['plugins']['get']('Dialog');let _0x9f5168;const _0x5c0eef=function(_0x5127e0){const _0x21b43c={};if('editables'in _0x5127e0['ui']['view']){for(const [_0x403581,_0x2c7c30]of Object['entries'](_0x5127e0['ui']['view']['editables']))_0x21b43c[_0x403581]=_0x2c7c30['element'];}else _0x21b43c[_0x5127e0['model']['document']['getRootNames']()[0x0]]=_0x5127e0['ui']['view']['editable']['element'];return _0x21b43c;}(_0x4077ce),_0x57fd43=function(_0x379e45){let _0x13cc18=0x0;for(const _0x2ca7c1 of Object['values'](_0x379e45))_0x13cc18=Math['max'](_0x13cc18,_0x2ca7c1['getBoundingClientRect']()['width']);let _0x4f4660=0x0;for(const _0x42a7c2 of Object['values'](_0x379e45))_0x4f4660+=_0x42a7c2['getBoundingClientRect']()['height'];const _0x2d6580=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x259214=Math['min'](_0x4f4660,_0x2d6580);return{'width':_0x13cc18,'height':_0x259214};}(_0x5c0eef);_0x2296de['show']({'id':'finalContentPreview','title':c(_0x549b5d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x549b5d,{'dialogRects':_0x57fd43}),'onHide':()=>{_0x9f5168['detachFromDom']();},'onShow':()=>{_0x4077ce['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1cdb09=>{const _0x9e5642=this['_standarizeRootsData'](_0x1cdb09,_0x4077ce,_0x5c0eef);_0x2296de['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x9e5642,_0x4077ce['config']['get']('trackChanges.preview.renderFunction'));}),_0x9f5168=new _0x58d2d9(_0x549b5d,[_0x2296de['view']]),_0x9f5168['attachToDom'](),_0x9f5168['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4077ce['once']('destroy',()=>{_0x9f5168['detachFromDom']();});const _0x17b1c3=_0x2296de['view']['headerView']['class'];_0x2296de['view']['headerView']['class']=_0x17b1c3?_0x17b1c3+'\x20ck-reset_all':'ck-reset_all',_0x2296de['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2296de['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x534d61=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2419a7=_0x534d61['previewMode'],_0x4d65b5={};if('$labels'===_0x2419a7){for(const _0x124c00 of _0x534d61['getMergeFieldsIds']())_0x4d65b5[_0x124c00]=_0x534d61['getLabel'](_0x124c00)||_0x124c00;}else{const _0x49a598='$defaultValues'===_0x2419a7?_0x534d61['getDefaultValues']():_0x534d61['getDataSetValues'](_0x2419a7,!0x0);for(const _0x29e7cb of Object['entries'](_0x49a598)){const [_0x35d043,_0x35029b]=_0x29e7cb;_0x4d65b5[_0x35d043]=null!==_0x35029b?_0x35029b:_0x534d61['getLabel'](_0x35d043)||_0x35d043;}}return{'mergeFieldsData':_0x4d65b5};}['_standarizeRootsData'](_0x490c2f,_0x14841c,_0x3c8021){let _0x154bdd;if('string'==typeof _0x490c2f){const _0x26b9d6=_0x14841c['model']['document']['getRootNames']()[0x0];_0x154bdd={[_0x26b9d6]:_0x490c2f};}else _0x154bdd=_0x490c2f;const _0x1fcfa0=this['_fixMediaEmbeds'](_0x154bdd,_0x14841c),_0x49670e=function(_0x26ca92,_0x3b66a5){for(const [_0x4c386a,_0xbcd73a]of _0x26ca92)_0xbcd73a['classes']=_0x3b66a5[_0x4c386a]['classList']['value']['replace']('ck-focused','');return _0x26ca92;}(this['_sortRoots'](_0x14841c)['reduce']((_0x50976f,_0x3cf4ed)=>(_0x50976f['push']([_0x3cf4ed,{'content':_0x1fcfa0[_0x3cf4ed],'classes':''}]),_0x50976f),[]),_0x3c8021);return _0x49670e;}['_fixMediaEmbeds'](_0x1722ff,_0x5d4def){if(!_0x5d4def['plugins']['has']('MediaEmbedEditing'))return _0x1722ff;const _0x390039=_0x5d4def['plugins']['get']('MediaEmbedEditing');for(const [_0x3b063a,_0x378473]of Object['entries'](_0x1722ff)){const _0x136af1=document['createElement']('div');_0x136af1['innerHTML']=_0x378473,(_0x136af1['querySelectorAll']('figure.media')['forEach'](_0x143352=>{const _0x1f1649=_0x143352['querySelector']('oembed');if(_0x1f1649){const _0x4dc7fd=_0x1f1649['getAttribute']('url');if(_0x4dc7fd){const _0x280ddb=_0x390039['registry']['getMediaViewElement'](new _0x24579b(_0x5d4def['editing']['view']['document']),_0x4dc7fd,{'elementName':'','renderForEditingView':!0x0}),_0x510a5a=document['createElement']('div');_0x510a5a['classList']['add']('ck-media__wrapper'),_0x280ddb['render'](_0x510a5a,_0x5d4def['editing']['view']['domConverter']),_0x1f1649['replaceWith'](_0x510a5a);}}}),_0x1722ff[_0x3b063a]=_0x136af1['innerHTML']);}return _0x1722ff;}['_sortRoots'](_0x3aba96){if(!function(_0x3a6854){return void 0x0!==_0x3a6854['getRootsAttributes'];}(_0x3aba96))return _0x3aba96['model']['document']['getRootNames']();const _0x47e710=[],_0x269c2f=new Map();for(const _0x346727 of _0x3aba96['model']['document']['getRootNames']()){const _0x25c22b=_0x3aba96['editing']['view']['getDomRoot'](_0x346727)['getClientRects']()['item'](0x0);_0x47e710['push'](_0x346727),_0x269c2f['set'](_0x346727,_0x25c22b);}return _0x47e710['sort']((_0xbb1111,_0x5d0d01)=>{const _0x274b59=_0x269c2f['get'](_0xbb1111),_0x5d7f0a=_0x269c2f['get'](_0x5d0d01);return _0x274b59['y']-_0x5d7f0a['y']||_0x274b59['x']-_0x5d7f0a['x'];}),_0x47e710;}}class te extends _0x55fa68{static get['requires'](){return[T,_0x16e211];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57e6b9){super(_0x57e6b9),_0x57e6b9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x57e6b9['config']['define']('trackChanges.preview.renderFunction',(_0x2a5e28,_0x179f94)=>{for(const _0x425ecf of _0x179f94)_0x2a5e28['appendChild'](_0x425ecf);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x787654,Plugin as _0x2b8ff3,PendingActions as _0x20ee0c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59c5ca,ObservableMixin as _0xa5c451,uid as _0x400c1f,priorities as _0x135e08,insertToPriorityArray as _0x4cd0c9,logWarning as _0xcb85da,getEnvKeystrokeText as _0x3f0ee7,FocusTracker as _0x11c925,KeystrokeHandler as _0x39654c,Collection as _0x172b74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e2255,IconCancel as _0x4abf8b,IconTrackChanges as _0x1298aa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1cc541,View as _0x4fd8ab,ViewCollection as _0xba4523,FocusCycler as _0x14de0a,ViewModel as _0x481447,createDropdown as _0x1460c2,SplitButtonView as _0x56ac4e,addListToDropdown as _0x3bad70,MenuBarMenuView as _0x26c85b,MenuBarMenuListView as _0x2dbc9c,ListSeparatorView as _0x45be5d,MenuBarMenuListItemView as _0x387ac3,MenuBarMenuListItemButtonView as _0x353757,BodyCollection as _0x156097,Dialog as _0x473705}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x26a833,hashObject as _0x294053,surroundingMarkersDetector as _0x2280f7,FOCUS_ANNOTATION_KEYSTROKE as _0x197c55,AriaDescriptionView as _0x16d209,setupThreadKeyboardNavigation as _0x2faa6e,trimHtml as ti,UserView as _0x4db76f,LateFocusButtonView as _0x21660b,getDateTimeFormatter as _0x5a4ba6,getAllMarkersDomElementsSorted as _0x928d14,sanitizeEditorConfig as _0x115059}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x34db47,LiveRange as _0x2346b0,LivePosition as _0x54fce4,DowncastWriter as _0x231e73}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x25aee8,toWidget as _0x3a9147}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x313f26,set as _0x2e39ab,isEqual as _0xd0b6fb,unset as _0x16ceb0,omit as Ft}from'es-toolkit/compat';import{Delete as _0xb3f168,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x11c59c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x24226c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x787654{['_enabledCommands'];constructor(_0x541999,_0x29d1bf){super(_0x541999),this['_enabledCommands']=_0x29d1bf,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 _0x569903 of this['editor']['commands']['commands']())_0x569903['affectsData']&&!this['_enabledCommands']['has'](_0x569903)&&_0x569903['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1bd325 of this['editor']['commands']['commands']())_0x1bd325['affectsData']&&!this['_enabledCommands']['has'](_0x1bd325)&&_0x1bd325['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x787654{['_suggestions'];constructor(_0x12c381,_0x2382ba){super(_0x12c381),this['_suggestions']=_0x2382ba,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x504907){const _0x31b8d6=this['_suggestions']['get'](_0x504907);if(!_0x31b8d6)throw new _0x59c5ca('track-changes-accept-suggestion-not-found',this);const _0x55f26b=_0x31b8d6['getRanges']();this['editor']['model']['canEditAt'](_0x55f26b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x31b8d6);}}class R extends _0x787654{['_suggestions'];constructor(_0xd5d73d,_0x42dadc){super(_0xd5d73d),this['_suggestions']=_0x42dadc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c5d51){const _0x2577de=this['_suggestions']['get'](_0x5c5d51);if(!_0x2577de)throw new _0x59c5ca('track-changes-discard-suggestion-not-found',this);const _0x408ea1=_0x2577de['getRanges']();this['editor']['model']['canEditAt'](_0x408ea1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2577de);}}function ls(_0x235e25,_0x29dde7){let _0xba47d0='';return _0xba47d0+=_0x235e25['split']('*')['map']((_0x1027de,_0x556c43)=>_0x556c43%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1027de)+'</span>':nn(_0x1027de))['join'](''),_0x29dde7&&(_0xba47d0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x29dde7['value']+'\x22\x20title=\x22'+_0x29dde7['title']+'\x22></span>'),_0xba47d0;}function nn(_0x1e229e){const _0x19ba39=document['createElement']('span');return _0x19ba39['innerText']=_0x1e229e,_0x19ba39['innerHTML'];}function ts(_0x33be64){return _0x33be64['sort']((_0x1ee23b,_0x24133f)=>'deletion'==_0x1ee23b['type']&&'deletion'!=_0x24133f['type']?-0x1:'deletion'!=_0x1ee23b['type']&&'deletion'==_0x24133f['type']?0x1:0x0);}function to(_0x562d0d,_0x3f318e){let _0x245167,_0x438ad1=0x0;const _0x43913a=[],_0x59a088=_0x3f318e['schema'];for(;_0x438ad1<_0x562d0d['length'];){const _0x2d7d63=_0x562d0d[_0x438ad1],_0xf76fbb=_0x562d0d[_0x438ad1+0x1];_0x245167||(_0x245167=_0x3f318e['createPositionBefore'](_0x2d7d63)),on(_0x3f318e,_0x2d7d63,_0xf76fbb)||(_0x43913a['push'](_0x3f318e['createRange'](_0x245167,_0x59a088['isObject'](_0x2d7d63)?_0x3f318e['createPositionAfter'](_0x2d7d63):_0x3f318e['createPositionAt'](_0x2d7d63,'end'))),_0x245167=null),_0x438ad1++;}return _0x43913a;}function on(_0x2d9c73,_0x291c05,_0x25f8c0){if(!_0x25f8c0)return!0x1;const _0x470e4c=_0x2d9c73['createPositionAfter'](_0x291c05),_0x28cd33=_0x2d9c73['createPositionBefore'](_0x25f8c0);return _0x470e4c['isTouching'](_0x28cd33);}function rs(_0x325bd5,_0x89c165,_0x417608){for(;_0x417608['length'];){const _0x385989=_0x417608['splice'](0x0,0x64);_0x325bd5['change'](()=>{for(const _0x5e057f of _0x385989)_0x5e057f['isInContent']&&_0x89c165['execute'](_0x5e057f['id']);});}}class x extends _0x787654{['_command'];['_suggestions'];constructor(_0x4e179d,_0x252a84,_0x290916){super(_0x4e179d),this['_command']=_0x252a84,this['_suggestions']=_0x290916,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54619b=Array['from'](this['_suggestions']['values']())['some'](_0xaf91f9=>_0xaf91f9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x54619b;}['execute'](){const _0x1e2cc7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x261f2c of _0x1e2cc7){const _0x4572eb=_0x261f2c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4572eb))return;}rs(this['editor']['model'],this['_command'],_0x1e2cc7);}}class E extends _0x787654{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4323d7,_0x5abbf7,_0x442296){super(_0x4323d7),this['_command']=_0x5abbf7,this['_suggestions']=_0x442296,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52db0a=this['editor']['model']['document']['selection'],_0x425478=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x417386,_0x1c0867){const _0x10d93c=Array['from'](_0x417386['getRanges']()),_0x408f3a=new Set();for(const _0x200343 of _0x1c0867)if(_0x200343['isInContent']){for(const _0x4f9a95 of _0x10d93c)for(const _0xb59c1c of _0x200343['getRanges']())(_0x4f9a95['isIntersecting'](_0xb59c1c)||_0x417386['isCollapsed']&&!_0x200343['isMultiRange']&&_0x200343['next']&&_0xb59c1c['end']['isTouching'](_0x4f9a95['start']))&&_0x408f3a['add'](_0x200343);}return _0x408f3a;}(_0x52db0a,_0x425478),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xcd9995=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4485d6 of _0xcd9995){const _0x118855=_0x4485d6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x118855))return;}rs(this['editor']['model'],this['_command'],_0xcd9995);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0xa5c451(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x12cac6,_0xbb9552){super(),this['id']=_0xbb9552['id'],this['type']=_0xbb9552['type'],this['subType']=_0xbb9552['subType']||null,this['author']=_0xbb9552['author'],this['creator']=_0xbb9552['creator']||_0xbb9552['author'],this['isExternal']=Boolean(_0xbb9552['attributes']&&_0xbb9552['attributes']['@external']),this['data']=null,this['_model']=_0x12cac6,this['_onAccept']=_0xbb9552['onAccept'],this['_onDiscard']=_0xbb9552['onDiscard'],this['_onAttributesChange']=_0xbb9552['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xbb9552['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 _0x2a09cf=this;for(;_0x2a09cf['previous'];)_0x2a09cf=_0x2a09cf['previous'];return _0x2a09cf;}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'](_0x3e470a){this['_markerNames']['add'](_0x3e470a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x165394=>this['_model']['markers']['get'](_0x165394))['filter'](_0x32a667=>_0x32a667);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32d3e6=>{for(const _0x655ecc of this['getMarkers']())_0x32d3e6['removeMarker'](_0x655ecc);}),this['_markerNames']['clear']();}['removeMarker'](_0x459bc3){this['_model']['change'](_0x8295fd=>{_0x8295fd['removeMarker'](_0x459bc3);}),this['_markerNames']['delete'](_0x459bc3);}['addRange'](_0x36884d){const _0x195f76='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x195f76),this['_model']['change'](_0xab03dd=>{_0xab03dd['addMarker'](_0x195f76,{'range':_0x36884d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2f65bf){for(const _0x232c77 of this['getRanges']())if(_0x232c77['isIntersecting'](_0x2f65bf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x297200=>_0x297200['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xaa605d,_0x5b53cb)=>[..._0xaa605d,..._0x5b53cb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ba4d3=this['getRanges']();if(0x1!=_0x2ba4d3['length'])return null;const _0x532871=_0x2ba4d3[0x0],_0xb10ff6=_0x532871['start']['nodeAfter'],_0x94b234=_0x532871['end']['nodeBefore'];return _0xb10ff6 instanceof _0x34db47?_0xb10ff6!=_0x94b234?null:_0xb10ff6: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 _0x291aae=[];let _0x47e424=this['head'];for(;_0x47e424;)_0x291aae['push'](_0x47e424),_0x47e424=_0x47e424['next'];return _0x291aae;}['setAttribute'](_0x127520,_0x214a8a){const _0x7a184=_0x313f26(this['attributes']);_0x2e39ab(_0x7a184,_0x127520,_0x214a8a),_0xd0b6fb(_0x7a184,this['attributes'])||(this['attributes']=_0x7a184,this['_onAttributesChange'](_0x7a184));}['removeAttribute'](_0x18579b){const _0x31b00f=_0x313f26(this['attributes']);_0x16ceb0(_0x31b00f,_0x18579b),_0xd0b6fb(_0x31b00f,this['attributes'])||(this['attributes']=_0x31b00f,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 _0x400c1f()['substr'](0x1,0x5);}}function c(_0x2e0809,_0x52c6b5,_0x1bd9bd){const _0x493c3d=_0x2e0809['t'],t=_0x2e0809['t'];switch(_0x52c6b5){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',_0x1bd9bd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1bd9bd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1bd9bd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1bd9bd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1bd9bd);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',_0x1bd9bd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1bd9bd);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',_0x1bd9bd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1bd9bd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1bd9bd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1bd9bd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1bd9bd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1bd9bd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1bd9bd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1bd9bd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1bd9bd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1bd9bd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1bd9bd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1bd9bd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1bd9bd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1bd9bd);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'},_0x1bd9bd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1bd9bd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1bd9bd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1bd9bd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1bd9bd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1bd9bd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1bd9bd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1bd9bd);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'},_0x1bd9bd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1bd9bd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1bd9bd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1bd9bd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1bd9bd);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'},_0x1bd9bd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1bd9bd);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'},_0x1bd9bd);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1bd9bd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1bd9bd);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'},_0x1bd9bd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1bd9bd);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'},_0x1bd9bd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1bd9bd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1bd9bd);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'},_0x1bd9bd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1bd9bd);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 _0x493c3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1bd9bd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x493c3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1bd9bd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1bd9bd);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'},_0x1bd9bd);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'},_0x1bd9bd);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'},_0x1bd9bd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x52c6b5;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2bcc7d,_0x558af6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2bcc7d,this['_locale']=_0x558af6;}['getDescriptions'](_0x2764f9){const _0x4fb019=[],_0x102fc7=new Set(),_0xc209e8=new Set();for(let _0x57111a=0x0;_0x57111a<_0x2764f9['length'];_0x57111a++){const _0x2df106=_0x2764f9[_0x57111a];if(!_0x2df106['isInContent'])continue;const _0x25c862=this['_handleCustomCallbackDescription'](_0x2df106);if(_0x25c862){if(null!=_0x2df106['subType']){if(_0x102fc7['has'](_0x2df106['subType']))continue;_0x102fc7['add'](_0x2df106['subType']);}_0x4fb019['push'](_0x25c862);}else{if('attribute'!=_0x2df106['type'])'insertion'!=_0x2df106['type']&&'deletion'!=_0x2df106['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4fb019,_0x2df106,_0x2764f9[_0x57111a+0x1]);else{const _0x17746e=_0x2df106['data']['key'];if(_0xc209e8['has'](_0x17746e))continue;_0xc209e8['add'](_0x2df106['data']['key']),_0x17746e==u?this['_handleRenameSuggestionDescription'](_0x4fb019,_0x2df106):this['_handleAttributeSuggestionDescription'](_0x4fb019,_0x2df106);}}}return this['_resolveDescriptionItems'](_0x4fb019);}['registerDescriptionCallback'](_0x399d9b){this['_customCallbacks']['push'](_0x399d9b);}['registerElementLabel'](_0xa7dbc6,_0x1b9b84,_0x3292a4=_0x135e08['normal']){'function'==typeof _0xa7dbc6?_0x4cd0c9(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa7dbc6,'label':_0x1b9b84,'priority':_0x3292a4}):this['_itemLabels']['set'](_0xa7dbc6,_0x1b9b84);}['registerAttributeLabel'](_0x3e5a10,_0x339c66){this['_attributeLabels']['set'](_0x3e5a10,_0x339c66);}['getItemLabel'](_0x17ecb9,_0x4bf0f9=0x1){let _0x18e78f;for(const _0x2ecefe of this['_itemLabelsCallbacks'])if(_0x2ecefe['matchingCallback'](_0x17ecb9)){_0x18e78f=_0x2ecefe['label'];break;}return _0x18e78f||(_0x18e78f=this['_itemLabels']['get'](_0x17ecb9['name'])),_0x18e78f?_0x18e78f(_0x4bf0f9):0x1!==_0x4bf0f9?_0x4bf0f9+'\x20'+_0x17ecb9['name']+'s':''+_0x17ecb9['name'];}['_addDescriptionItems'](_0x4710c8,_0x294496){const _0x2d7719=_0x294496['getFirstRange']()['getWalker'](),_0x57b268='insertion'==_0x294496['type']?'add':'remove';for(const _0x523a34 of _0x2d7719){const _0x19dd0f=_0x523a34['item'],_0x2b11a8=_0x4710c8[_0x4710c8['length']-0x1];if(_0x19dd0f['is']('$textProxy'))_0x2b11a8&&_0x2b11a8['type']['indexOf']('Container')>-0x1&&_0x4710c8['pop'](),_0x2b11a8&&'text'==_0x2b11a8['type']?_0x2b11a8[_0x57b268]+=_0x19dd0f['data']:_0x4710c8['push']({'type':'text','add':'add'==_0x57b268?_0x19dd0f['data']:'','remove':'remove'==_0x57b268?_0x19dd0f['data']:''});else{if(this['_schema']['isObject'](_0x19dd0f)){const _0x2185a6=_0x19dd0f;if(_0x2b11a8&&_0x2b11a8['type']['indexOf']('Container')>-0x1&&_0x4710c8['pop'](),'elementEnd'==_0x523a34['type'])continue;_0x2b11a8&&_0x2b11a8['type']==_0x57b268+'Object'&&_0x2b11a8['element']['name']==_0x2185a6['name']?_0x2b11a8['quantity']++:_0x4710c8['push']({'type':_0x57b268+'Object','element':_0x2185a6,'quantity':0x1}),_0x2d7719['skip'](_0x20d2bb=>!('elementEnd'==_0x20d2bb['type']&&_0x20d2bb['item']==_0x19dd0f));}else{if(this['_schema']['checkChild'](_0x19dd0f,'$text')||_0x19dd0f['is']('element','softBreak')){const _0xcc2a14=_0x19dd0f;if('add'==_0x57b268&&'elementStart'==_0x523a34['type']||'remove'==_0x57b268&&'elementEnd'==_0x523a34['type'])continue;if(_0x2b11a8&&-0x1==_0x2b11a8['type']['indexOf']('Container')){'text'==_0x2b11a8['type']&&(_0x2b11a8[_0x57b268]+='\x0a');continue;}let _0x3591da;if(_0x3591da='add'==_0x57b268?_0xcc2a14['nextSibling']&&!this['_schema']['isObject'](_0xcc2a14['nextSibling'])?_0xcc2a14['nextSibling']:null:_0xcc2a14['previousSibling']&&!this['_schema']['isObject'](_0xcc2a14['previousSibling'])?_0xcc2a14['previousSibling']:null,_0xcc2a14['isEmpty']||_0x3591da&&_0x3591da['isEmpty']){const _0x2f0278=_0x3591da&&_0x3591da['isEmpty']?_0x3591da:_0xcc2a14;_0x2b11a8&&_0x2b11a8['type']==_0x57b268+'EmptyContainer'&&_0x2b11a8['element']['name']==_0x2f0278['name']?_0x2b11a8['quantity']++:_0x4710c8['push']({'type':_0x57b268+'EmptyContainer','element':_0x2f0278,'quantity':0x1});}else _0x4710c8['push']({'type':_0x57b268+'Container','element':_0xcc2a14});}}}}}['_resolveDescriptionItems'](_0xa70615){const _0x19d76c=this['_locale'],_0x34ac36=[],_0x49366b=[],_0xb893e4=[];for(const _0x2daf6c of _0xa70615)switch(_0x2daf6c['type']){case'text':if(_0x2daf6c['add']=_0x2daf6c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2daf6c['remove']=_0x2daf6c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2daf6c['add']&&''!=_0x2daf6c['remove']){_0x34ac36['push']({'type':'replace','content':c(_0x19d76c,'REPLACE_TEXT',['\x22'+_0x2daf6c['remove']+'\x22','\x22'+_0x2daf6c['add']+'\x22'])});continue;}if(null!=_0x2daf6c['add']['match'](/^ +$/)){_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Insert:*\x20%0',c(_0x19d76c,'ELEMENT_SPACE',_0x2daf6c['add']['length']))});continue;}if(null!=_0x2daf6c['remove']['match'](/^ +$/)){_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Remove:*\x20%0',c(_0x19d76c,'ELEMENT_SPACE',_0x2daf6c['remove']['length']))});continue;}if(''!=_0x2daf6c['add']){_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Insert:*\x20%0','\x22'+_0x2daf6c['add']+'\x22')});continue;}_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Remove:*\x20%0','\x22'+_0x2daf6c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Insert:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Remove:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'addContainer':_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Split:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'removeContainer':_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Merge:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'addFormat':_0x49366b['push'](_0x2daf6c['key']);continue;case'removeFormat':_0xb893e4['push'](_0x2daf6c['key']);continue;default:_0x34ac36['push'](_0x2daf6c);}if(_0x49366b['length']){const _0x2acc04=_0x49366b['map'](_0x245cab=>this['_attributeLabels']['has'](_0x245cab)?this['_attributeLabels']['get'](_0x245cab):_0x245cab)['join'](',\x20');_0x34ac36['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2acc04)});}if(_0xb893e4['length']){const _0x529362=_0xb893e4['map'](_0x57d236=>this['_attributeLabels']['has'](_0x57d236)?this['_attributeLabels']['get'](_0x57d236):_0x57d236)['join'](',\x20');_0x34ac36['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x529362)});}return _0x34ac36;}['_handleCustomCallbackDescription'](_0x1e5b01){for(const _0x3f714a of this['_customCallbacks']){const _0x41c9fe=_0x3f714a(_0x1e5b01);if(_0x41c9fe&&'type'in _0x41c9fe)return _0x41c9fe;}}['_handleAttributeSuggestionDescription'](_0x3395e8,_0x314a60){const _0x100fe2=_0x314a60['data'],_0x58c316=void 0x0===_0x100fe2['newValue']?'removeFormat':'addFormat';_0x3395e8['push']({'type':_0x58c316,'key':_0x100fe2['key']});}['_handleRenameSuggestionDescription'](_0x2fcaaa,_0x3b8f4a){_0x2fcaaa['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3b8f4a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x32c2ce,_0x3b481f,_0x21cc25){if(this['_addDescriptionItems'](_0x32c2ce,_0x3b481f),_0x21cc25&&_0x21cc25['getFirstRange']()&&!_0x3b481f['getFirstRange']()['end']['isEqual'](_0x21cc25['getFirstRange']()['start'])){const _0x2a68e5=_0x32c2ce[_0x32c2ce['length']-0x1],_0x519faa='insertion'==_0x3b481f['type']?'add':'remove';_0x2a68e5&&'text'==_0x2a68e5['type']&&(_0x2a68e5[_0x519faa]+='\x0a');}}}class U extends _0x2b8ff3{['afterInit'](){const _0x503fe9=this['editor'],_0x497835=_0x503fe9['plugins']['get']('TrackChangesEditing');_0x503fe9['commands']['get']('showAIAssistant')&&_0x497835['enableCommand']('showAIAssistant');}}class V extends _0x2b8ff3{['afterInit'](){const _0x56d31b=this['editor'],_0x4d7865=_0x56d31b['locale'];if(!_0x56d31b['plugins']['has']('AlignmentEditing'))return;const _0x5e2313=_0x56d31b['plugins']['get']('TrackChangesEditing');_0x5e2313['enableDefaultAttributesIntegration']('alignment'),_0x5e2313['registerBlockAttribute']('alignment'),_0x5e2313['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4d7865,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x428a12=this['editor'],_0x3a0c1d=_0x428a12['locale'];_0x428a12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34cb25=>{if('formatBlock'!=_0x34cb25['type'])return;const {data:_0x4c68ed}=_0x34cb25;if(_0x4c68ed&&'alignment'==_0x4c68ed['commandName']){const _0x3478e9=_0x4c68ed['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3a0c1d,'*Format:*\x20%0',function(_0x3f6512){switch(_0x3f6512){case'left':return c(_0x3a0c1d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3a0c1d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3a0c1d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3a0c1d,'FORMAT_JUSTIFY_TEXT');}}(_0x3478e9))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2b8ff3{['afterInit'](){const _0x5741b9=this['editor'],_0x3c1520=_0x5741b9['plugins']['get']('TrackChangesEditing'),_0x51db55=_0x5741b9['locale'];for(const _0x10f04e of Zt){if(!_0x5741b9['plugins']['has'](_0x10f04e))continue;const _0x449bab=_0x10f04e['slice'](0x0,-0x7)['toLowerCase'](),_0x512c11='FORMAT_'+_0x449bab['toUpperCase']();_0x3c1520['enableDefaultAttributesIntegration'](_0x449bab),_0x3c1520['registerInlineAttribute'](_0x449bab),_0x3c1520['descriptionFactory']['registerAttributeLabel'](_0x449bab,c(_0x51db55,_0x512c11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5de908=this['editor'],_0x5ac4db=_0x5de908['locale'],_0x4196fa=_0x5de908['plugins']['get']('TrackChangesEditing');function _0x2cadbc(_0x522aa1,_0x5e6fdf){_0x4196fa['descriptionFactory']['registerDescriptionCallback'](_0x1f2c2a=>{if('formatInline'!=_0x1f2c2a['type'])return;const {data:_0x2a3030}=_0x1f2c2a;return _0x2a3030&&_0x2a3030['commandName']===_0x522aa1?_0x2a3030['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5ac4db,'*Format:*\x20%0',_0x5e6fdf)}:{'type':'format','content':c(_0x5ac4db,'*Remove\x20format:*\x20%0',_0x5e6fdf)}:void 0x0;});}_0x2cadbc('bold',c(_0x5ac4db,'FORMAT_BOLD')),_0x2cadbc('italic',c(_0x5ac4db,'FORMAT_ITALIC')),_0x2cadbc('underline',c(_0x5ac4db,'FORMAT_UNDERLINE')),_0x2cadbc('code',c(_0x5ac4db,'FORMAT_CODE')),_0x2cadbc('strikethrough',c(_0x5ac4db,'FORMAT_STRIKETHROUGH')),_0x2cadbc('subscript',c(_0x5ac4db,'FORMAT_SUBSCRIPT')),_0x2cadbc('superscript',c(_0x5ac4db,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2b8ff3{['afterInit'](){const _0x1c5c2b=this['editor'],_0x216a46=_0x1c5c2b['locale'];if(!_0x1c5c2b['plugins']['has']('BlockQuoteEditing'))return;const _0x152ba5=_0x1c5c2b['plugins']['get']('TrackChangesEditing'),_0x10af6f=this['editor']['commands']['get']('blockQuote');_0x152ba5['enableCommand']('blockQuote',(_0x265888,_0x30c2fe={})=>{const _0x4eb1ab=this['editor']['model']['document']['selection'],_0x28b1cd=_0x30c2fe&&void 0x0!==_0x30c2fe['forceValue']?_0x30c2fe['forceValue']:!_0x10af6f['value'];let _0x5ae6e6=[];if(_0x28b1cd){const _0x5dc24a=Array['from'](_0x4eb1ab['getSelectedBlocks']())['filter'](_0x43b67c=>oo(_0x43b67c)||function(_0xfdf9d,_0x3939f4){const _0x3696d8=_0x3939f4['checkChild'](_0xfdf9d['parent'],'blockQuote'),_0x1aa552=_0x3939f4['checkChild'](['$root','blockQuote'],_0xfdf9d);return _0x3696d8&&_0x1aa552;}(_0x43b67c,this['editor']['model']['schema']));_0x5ae6e6=to(_0x5dc24a,_0x1c5c2b['model']);}else{const _0x9dfa30=Array['from'](_0x4eb1ab['getSelectedBlocks']())['filter'](_0x21c8cc=>oo(_0x21c8cc));_0x5ae6e6=to(_0x9dfa30,_0x1c5c2b['model']);}_0x1c5c2b['model']['change'](()=>{for(const _0x18af97 of _0x5ae6e6)_0x152ba5['markBlockFormat'](_0x18af97,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x28b1cd}]});});}),_0x152ba5['descriptionFactory']['registerDescriptionCallback'](_0x2ba940=>{const {data:_0x12d085}=_0x2ba940;if(_0x12d085&&'blockQuote'==_0x12d085['commandName']){const _0x21085e=c(_0x216a46,'ELEMENT_BLOCK_QUOTE');return _0x12d085['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x216a46,'*Set\x20format:*\x20%0',_0x21085e)}:{'type':'format','content':c(_0x216a46,'*Remove\x20format:*\x20%0',_0x21085e)};}});}}function oo(_0x1a12df){return'blockQuote'==_0x1a12df['parent']['name'];}class L extends _0x2b8ff3{['afterInit'](){const _0x942de2=this['editor'],_0x571e18=_0x942de2['locale'],_0x76489e=_0x942de2['plugins']['get']('TrackChangesEditing');_0x942de2['plugins']['has']('BookmarkEditing')&&(_0x76489e['enableCommand']('insertBookmark'),_0x76489e['enableDefaultAttributesIntegration']('updateBookmark'),_0x76489e['registerBlockAttribute']('bookmarkId'),_0x76489e['descriptionFactory']['registerDescriptionCallback'](_0x376217=>{if('insertion'!=_0x376217['type']&&'deletion'!=_0x376217['type']&&'attribute'!=_0x376217['type'])return;const _0x3e26f2=_0x376217['getContainedElement']();if(null==_0x3e26f2)return;if(!_0x3e26f2['is']('element','bookmark'))return;const _0x29ac8f=_0x3e26f2['getAttribute']('bookmarkId');if('insertion'==_0x376217['type'])return{'type':'insertion','content':c(_0x571e18,'*Insert:*\x20%0','\x22'+_0x29ac8f+'\x22\x20'+c(_0x571e18,'ELEMENT_BOOKMARK'))};if('deletion'==_0x376217['type'])return{'type':'deletion','content':c(_0x571e18,'*Remove:*\x20%0','\x22'+_0x29ac8f+'\x22\x20'+c(_0x571e18,'ELEMENT_BOOKMARK'))};const {data:_0x4a4836}=_0x376217;if(!_0x4a4836||'bookmarkId'!=_0x4a4836['key'])return;return{'type':'format','content':c(_0x571e18,'*Set\x20bookmark:*\x20%0','\x22'+_0x4a4836['newValue']+'\x22')};}));}}class J extends _0x2b8ff3{['afterInit'](){const _0x51bcbf=this['editor'];_0x51bcbf['plugins']['has']('CaseChange')&&(_0x51bcbf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51bcbf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51bcbf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2b8ff3{['afterInit'](){const _0xa4e198=this['editor'];_0xa4e198['commands']['get']('ckbox')&&_0xa4e198['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2b8ff3{['afterInit'](){const _0x5ee517=this['editor'];if(!_0x5ee517['plugins']['has']('CodeBlock'))return;const _0x588ab4=_0x5ee517['plugins']['get']('TrackChangesEditing'),_0x58d91d=_0x5ee517['locale'],_0x202e1f=_0x5ee517['config']['get']('codeBlock')['languages'],_0x64bc49=_0x5ee517['commands']['get']('codeBlock');_0x588ab4['enableCommand']('indentCodeBlock'),_0x588ab4['enableCommand']('outdentCodeBlock'),_0x588ab4['enableCommand']('codeBlock',(_0x40b4be,_0xcaaec9={})=>{const _0x19c154=_0x5ee517['model'],_0x134609=_0x5ee517['model']['document']['selection'],_0x176bca=_0xcaaec9&&void 0x0!==_0xcaaec9['forceValue']?_0xcaaec9['forceValue']:!_0x64bc49['value'];let _0x4d8152;_0xcaaec9['language']||(_0xcaaec9['language']=_0x202e1f[0x0]['language']),_0x4d8152=_0x176bca?Array['from'](_0x134609['getSelectedBlocks']())['filter'](_0x5c162f=>eo(_0x5c162f)||function(_0x5a6939,_0x3113cf){if(_0x5a6939['is']('rootElement')||_0x3113cf['isLimit'](_0x5a6939))return!0x1;return _0x3113cf['checkChild'](_0x5a6939['parent'],'codeBlock');}(_0x5c162f,_0x19c154['schema'])):Array['from'](_0x134609['getSelectedBlocks']())['filter'](_0x2d6f55=>eo(_0x2d6f55));const _0x30e4c4=to(_0x4d8152,_0x19c154);_0x19c154['change'](()=>{for(const _0xe68d32 of _0x30e4c4)_0x588ab4['markBlockFormat'](_0xe68d32,{'commandName':'codeBlock','commandParams':[{..._0xcaaec9,'forceValue':_0x176bca}],'formatGroupId':'blockName'});});}),(_0x588ab4['descriptionFactory']['registerElementLabel']('codeBlock',_0x1de948=>c(_0x58d91d,'ELEMENT_CODE_BLOCK',_0x1de948)),_0x588ab4['descriptionFactory']['registerDescriptionCallback'](_0x19c31c=>{if('formatBlock'!=_0x19c31c['type'])return;const _0x118d05=_0x58d91d['t'],{data:_0x239460}=_0x19c31c;if(!_0x239460||'codeBlock'!=_0x239460['commandName'])return;const _0x1e8509=_0x239460['commandParams'][0x0]['language'],_0x877996=_0x118d05(_0x202e1f['find'](_0x62f0f7=>_0x62f0f7['language']===_0x1e8509)['label'])['toLowerCase']();return _0x239460['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58d91d,'*Set\x20format:*\x20%0',c(_0x58d91d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x877996+')')}:{'type':'format','content':c(_0x58d91d,'*Remove\x20format:*\x20%0',c(_0x58d91d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3cbc92){return'codeBlock'==_0x3cbc92['name'];}class q extends _0x2b8ff3{['afterInit'](){const _0x1d4a86=this['editor'];if(!_0x1d4a86['plugins']['has']('CommentsEditing'))return;_0x1d4a86['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11fbce,_0x1cf9a9,_0x1b5355){const _0x3e8518=[];for(const _0x42ca1a of _0x1cf9a9['getItems']())_0x42ca1a['hasAttribute'](_0x11fbce)&&_0x3e8518['push'](_0x1b5355['createRangeOn'](_0x42ca1a));return _0x3e8518;}function Fe(_0x22a068,_0x4fbbd6,{showActiveMarker:_0x196811=!0x0}={}){const _0x1b5944=_0x22a068['plugins']['get']('TrackChangesEditing');return(_0x205e88,_0x48acd1,_0x480c19)=>{if(!_0x480c19['consumable']['test'](_0x48acd1['markerRange'],_0x205e88['name']))return;const _0x279fb7=_0x48acd1['markerRange']['getWalker'](),_0x3f177d=_0x48acd1['markerRange']['start'],_0xb55da7=_0x22a068['model']['schema'];let _0x190500=null,_0x446842=null,_0x3b4472=!0x1,_0x511dab=!0x1;for(const _0x267f63 of _0x279fb7){const _0x494ad7=_0x267f63['item'];_0x3b4472=_0x3b4472||_0xb55da7['isContent'](_0x494ad7);const _0x19c5d1=_0x480c19['mapper']['toViewElement'](_0x494ad7);if(_0x19c5d1&&_0x19c5d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x267f63['type']&&(_0xb55da7['isBlock'](_0x494ad7)&&!_0xb55da7['isLimit'](_0x494ad7)&&(_0x494ad7['nextSibling']||_0x3f177d['isAtEnd']?_0x190500&&_0x190500['parent']==_0x494ad7||(_0x190500=_0x494ad7,_0x40dd1e(_0x267f63['previousPosition']),_0x511dab=!0x0):_0x446842=_0x446842||_0x267f63['previousPosition']));}function _0x40dd1e(_0x44be87){const {authorId:_0x34330e}=_0x1b5944['_splitMarkerName'](_0x48acd1['markerName']),_0x4af9ac=_0x480c19['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fbbd6,'data-author-id':_0x34330e}),_0x3adbbb=_0x480c19['mapper']['toViewPosition'](_0x44be87);_0x196811&&_0x1b5944['activeMarkers']['includes'](_0x48acd1['markerName'])&&_0x480c19['writer']['addClass']('ck-suggestion-marker--active',_0x4af9ac),_0x480c19['writer']['insert'](_0x3adbbb,_0x4af9ac),_0x480c19['mapper']['bindElementToMarker'](_0x4af9ac,_0x48acd1['markerName']);}_0x3b4472||_0x511dab||!_0x446842||_0x40dd1e(_0x446842);};}class z extends _0x2b8ff3{static get['requires'](){return[_0xb3f168];}['init'](){const _0x101d7e=this['editor'],_0x15b0c9=_0x101d7e['plugins']['get']('TrackChangesEditing');_0x15b0c9['enableCommand']('delete');const _0x3ae427=_0x101d7e['commands']['get']('deleteForward');_0x15b0c9['enableCommand']('deleteForward',(_0xa2c835,_0x289a26={})=>{const _0x3dd370=_0x101d7e['model']['createSelection'](_0x101d7e['model']['document']['selection']);_0x3dd370['isCollapsed']&&_0x101d7e['model']['modifySelection'](_0x3dd370,{'direction':'forward','unit':_0x289a26['unit']});const _0x55f0bb=_0x3dd370['getFirstRange'](),_0x37c5a4=_0x2346b0['fromRange'](_0x55f0bb);let _0x421518;_0xa2c835(_0x289a26),_0x421518='$graveyard'==_0x37c5a4['root']['rootName']?_0x101d7e['model']['createRange'](_0x55f0bb['start']):_0x101d7e['model']['createRange'](_0x37c5a4['start'],_0x37c5a4['end']),_0x37c5a4['detach'](),_0x101d7e['model']['enqueueChange'](_0x3ae427['buffer']['batch'],_0x1dc1b1=>{_0x3ae427['buffer']['lock'](),_0x1dc1b1['setSelection'](_0x1dc1b1['createRange'](_0x421518['end'])),_0x3ae427['buffer']['unlock']();});}),_0x101d7e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x101d7e,'merge'),{'priority':'high'}),_0x101d7e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xcbec44,_0x1cdc3d,_0x3d22ae)=>{_0x3d22ae['options']['showSuggestionHighlights']&&Fe(_0x101d7e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xcbec44,_0x1cdc3d,_0x3d22ae);},{'priority':'high'}),_0x101d7e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3a8872,_0x4efa5c,_0x4d6656)=>{const _0x1027b1=_0x4d6656['mapper']['markerNameToElements'](_0x4efa5c['markerName']);if(_0x1027b1){for(const _0x13d125 of _0x1027b1)_0x13d125['is']('uiElement')&&(_0x4d6656['mapper']['unbindElementFromMarkerName'](_0x13d125,_0x4efa5c['markerName']),_0x4d6656['writer']['remove'](_0x13d125));}},{'priority':'high'});}}class W extends _0x2b8ff3{['afterInit'](){const _0x468cc8=this['editor'];if(!_0x468cc8['plugins']['has']('ListEditing'))return;const _0x232140=_0x468cc8['locale'],_0x208e83=_0x468cc8['plugins']['get']('TrackChangesEditing'),_0x3e5aa1=_0x468cc8['plugins']['has']('TodoListEditing'),_0x3349bb=!!_0x468cc8['config']['get']('list.multiBlock');function _0x17e8c3(_0x132a13){return{'type':'format','content':''+c(_0x232140,'*Set\x20format:*\x20%0',_0x132a13)};}function _0x4de30a(_0x5aaf2f){return{'type':'format','content':''+c(_0x232140,'*Remove\x20format:*\x20%0',_0x5aaf2f)};}_0x208e83['enableDefaultAttributesIntegration']('numberedList'),_0x208e83['enableDefaultAttributesIntegration']('bulletedList'),_0x208e83['enableDefaultAttributesIntegration']('customNumberedList'),_0x208e83['enableDefaultAttributesIntegration']('customBulletedList'),_0x208e83['enableDefaultAttributesIntegration']('indentList'),_0x208e83['enableDefaultAttributesIntegration']('outdentList'),_0x208e83['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x208e83['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x208e83['registerBlockAttribute']('listItemId'),_0x208e83['registerBlockAttribute']('listType'),_0x208e83['registerBlockAttribute']('listIndent'),_0x3349bb&&(_0x208e83['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x208e83['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3e5aa1&&(_0x208e83['enableDefaultAttributesIntegration']('todoList'),_0x208e83['enableDefaultAttributesIntegration']('checkTodoList'),_0x208e83['registerBlockAttribute']('todoListChecked'),_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x2c4820=>{const {data:_0x4c7ddc}=_0x2c4820;if(_0x4c7ddc&&'todoListChecked'==_0x4c7ddc['key'])return{'type':'format','content':_0x4c7ddc['newValue']?c(_0x232140,'*Check\x20item*'):c(_0x232140,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d3d48=>{if(_0x2d3d48['batch']['isUndo'])return!0x1;let _0x418758=!0x1;const _0x2d4e75=_0x208e83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd0da=>'todoListChecked'===_0x208e83['_getAttributeKey'](_0x1fd0da));for(const _0x29c619 of _0x2d4e75){'todo'!=_0x29c619['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x208e83['_findSuggestions'](_0x29c619['getFirstRange'](),'attribute')['find'](_0x1b98de=>'listType'===_0x208e83['_getAttributeKey'](_0x1b98de['suggestion']))||(_0x2d3d48['removeMarker'](_0x29c619['getFirstMarker']()),_0x418758=!0x0));}return _0x418758;})),_0x208e83['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x232140,'FORMAT_INDENT'));const _0x4462c9={'type':'format','content':''};_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x27c030=>{const {data:_0x4b4fa5}=_0x27c030;if(!_0x4b4fa5||'listType'!=_0x4b4fa5['key'])return;let _0x11e019=_0x27c030['head'];for(;_0x11e019;){if(_0x11e019['data']&&(('listStyle'==_0x11e019['data']['key']||'listMarkerStyle'==_0x11e019['data']['key'])&&(_0x11e019['data']['newValue']&&'default'!=_0x11e019['data']['newValue']||'default'!=_0x11e019['data']['oldValue']&&!_0x4b4fa5['newValue'])||!_0x3349bb&&_0x11e019['data']['key']==u))return _0x4462c9;_0x11e019=_0x11e019['next'];}if(null==_0x4b4fa5['newValue'])switch(_0x4b4fa5['oldValue']){case'bulleted':return _0x4de30a(c(_0x232140,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4de30a(c(_0x232140,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4de30a(c(_0x232140,'ELEMENT_TODO_LIST'));}switch(_0x4b4fa5['newValue']){case'bulleted':return _0x17e8c3(c(_0x232140,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17e8c3(c(_0x232140,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17e8c3(c(_0x232140,'ELEMENT_TODO_LIST'));}}),_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x49bfa7=>{const {data:_0x2832b7}=_0x49bfa7;if(_0x2832b7&&'listIndent'==_0x2832b7['key'])return null==_0x2832b7['newValue']||null==_0x2832b7['oldValue']&&0x0==_0x2832b7['newValue']?_0x4462c9:void 0x0;}),_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x3e254b=>{if('attribute'!=_0x3e254b['type'])return;const {data:_0x5b9a9c}=_0x3e254b;if(!_0x5b9a9c||'listItemId'!=_0x5b9a9c['key'])return;const _0x1ea080=Te(_0x3e254b);return'newValue'==_0x1ea080?{'type':'format','content':c(_0x232140,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ea080?{'type':'format','content':c(_0x232140,'*Split:*\x20list\x20item')}:_0x4462c9;}),_0x468cc8['model']['document']['registerPostFixer'](_0x2949aa=>this['listItemIdFixer'](_0x2949aa)),_0x468cc8['model']['document']['registerPostFixer'](_0x12f86c=>this['noTrackChangesFixer'](_0x12f86c)),_0x468cc8['model']['document']['on']('change:data',(_0x4175c6,_0x3ed9c4)=>{if(_0x3ed9c4['isUndo']||!_0x3ed9c4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e1975){if(_0x2e1975['batch']['isUndo']||!_0x2e1975['batch']['isLocal'])return!0x1;let _0xc7ab79=!0x1;const _0x122895=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ea496=>_0x5ea496['data']&&'listItemId'==_0x5ea496['data']['key'])['filter'](_0x40a94c=>_0x40a94c['data']['newValue']&&_0x40a94c['data']['oldValue']);for(const _0x567c81 of _0x122895)Te(_0x567c81)||(_0x2e1975['removeMarker'](_0x567c81['getFirstMarker']()),_0xc7ab79=!0x0);return _0xc7ab79;}['noTrackChangesFixer'](_0x5ef6d3){if(_0x5ef6d3['batch']['isUndo']||!_0x5ef6d3['batch']['isLocal'])return!0x1;const _0x533014=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x533014['trackChangesCommand']['value'])return!0x1;let _0x291138=!0x1;const _0x254945=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x35395a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x435961=>'attribute'==_0x435961['type'])['filter'](_0xf61393=>_0x254945['includes'](_0xf61393['attributeKey']));if(0x0==_0x35395a['length'])return _0x291138;for(const _0x5a704b of _0x35395a){const _0x4a15e0=_0x533014['_findSuggestions'](_0x5a704b['range'],'attribute')['filter'](_0x114319=>!_0x114319['meta']['isNextTo'])['map'](_0x44a729=>_0x44a729['suggestion'])['filter'](_0x390c9a=>{const _0x160dea=_0x533014['_getAttributeKey'](_0x390c9a);return _0x254945['includes'](_0x160dea);});if(_0x4a15e0['length']){for(const _0x51f748 of _0x4a15e0)_0x5ef6d3['removeMarker'](_0x51f748['getFirstMarker']());_0x291138=!0x0;}}return _0x291138;}['assureChains'](){const _0x16826e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13a000=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x204166;const _0x3af909=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13c1e4=>{if(_0x13c1e4['data']['oldRange']||!_0x13c1e4['data']['newRange'])return null;if(!_0x13c1e4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x17f3d1}=_0x16826e['_splitMarkerName'](_0x13c1e4['name']);if(!_0x16826e['hasSuggestion'](_0x17f3d1))return null;const _0x58ba36=_0x16826e['getSuggestion'](_0x17f3d1);return _0x13a000['includes'](_0x58ba36['data']['key']);})['map'](_0x308d0a=>{const {id:_0x43cda3}=_0x16826e['_splitMarkerName'](_0x308d0a['name']),_0x234856=_0x16826e['getSuggestion'](_0x43cda3);return _0x204166=_0x234856['attributes']['groupId'],_0x234856['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3af909['size'])return;const _0x20f658=_0x16826e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c23f1=>'attribute'==_0x3c23f1['type']&&_0x3c23f1['data']&&_0x13a000['includes'](_0x3c23f1['data']['key'])&&_0x3c23f1['attributes']['groupId']!=_0x204166)['map'](_0x4ea1b0=>({'listItem':_0x4ea1b0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ea1b0['attributes']['groupId']})),_0x44c10b=new Set();for(const {groupId:_0x3e721c,listItem:_0x57667b}of _0x20f658)_0x3af909['has'](_0x57667b)&&_0x44c10b['add'](_0x3e721c);for(const _0x5f0b5f of _0x16826e['getSuggestions']())_0x44c10b['has'](_0x5f0b5f['attributes']['groupId'])&&_0x5f0b5f['setAttribute']('groupId',_0x204166);}['_supportLegacySuggestions'](){const _0x493025=this['editor'],_0xdc312e=_0x493025['locale'],_0x1ef551=_0x493025['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1ef551['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x524a28,_0x3ef27f){const _0x5a846e=[];for(let _0x455805 of _0x524a28)_0x455805['start']['nodeAfter']===_0x455805['end']['parent']&&(_0x455805=_0x493025['model']['createRange'](_0x493025['model']['createPositionAt'](_0x455805['start']['nodeAfter'],0x0))),_0x5a846e['push'](_0x455805);_0x493025['model']['change'](_0x25ca15=>{const _0x49aaf5=_0x493025['model']['document']['selection'],_0x2fd584=Array['from'](_0x49aaf5['getRanges']())['map'](_0x49a580=>_0x2346b0['fromRange'](_0x49a580));_0x25ca15['setSelection'](_0x5a846e),_0x493025['commands']['get'](_0x3ef27f['commandName'])['refresh'](),_0x3ef27f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x493025['execute'](_0x3ef27f['commandName'],..._0x3ef27f['commandParams']),_0x25ca15['setSelection'](_0x2fd584);for(const _0x148720 of _0x2fd584)_0x148720['detach']();});}),_0x1ef551['descriptionFactory']['registerElementLabel'](function(_0x1a78af){const _0x104972=!_0x493025['model']['schema']['isObject'](_0x1a78af),_0x2f8c10=_0x1a78af['previousSibling'],_0x29ada5=_0x1a78af['nextSibling'],_0x5acfa7=_0x1a78af['getAttribute']('listItemId'),_0x4f098d=!_0x2f8c10||_0x2f8c10['getAttribute']('listItemId')!==_0x5acfa7,_0x2170cb=!_0x29ada5||_0x29ada5['getAttribute']('listItemId')!==_0x5acfa7;return _0x104972&&Boolean(_0x5acfa7)&&_0x4f098d&&_0x2170cb;},_0x27bb2=>c(_0xdc312e,'ELEMENT_LIST_ITEM',_0x27bb2));}['_registerLegacyDescription'](){const _0x49c162=this['editor'],_0x3734aa=_0x49c162['locale'];function _0x2c1a8d(_0x1aa172){const _0x3f8f64=_0x49c162['commands']['get']('bulletedList')['value'],_0x5534a6=_0x49c162['commands']['get']('numberedList')['value'];return'numberedList'===_0x1aa172?_0x3f8f64:_0x5534a6;}_0x49c162['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4655db){if('formatBlock'!=_0x4655db['type'])return;const {data:_0x3a5df2}=_0x4655db;if(!_0x3a5df2)return;let _0xeec0d,_0x2013b7,_0x3a4699,_0x41fd51;switch(_0x3a5df2['commandName']){case'bulletedList':_0x3a4699=_0x3a5df2['commandParams'][0x0]['forceValue'],_0x41fd51=_0x2c1a8d(_0x3a5df2['commandName']),_0xeec0d=_0x3a4699?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41fd51&&_0x49c162['config']['get']('list.multiBlock')||(_0xeec0d='*Change\x20to:*\x20%0'),_0x2013b7={'type':'format','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a4699=_0x3a5df2['commandParams'][0x0]['forceValue'],_0x41fd51=_0x2c1a8d(_0x3a5df2['commandName']),_0xeec0d=_0x3a4699?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41fd51&&_0x49c162['config']['get']('list.multiBlock')||(_0xeec0d='*Change\x20to:*\x20%0'),_0x2013b7={'type':'format','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xeec0d='*Indent:*\x20%0',_0x2013b7={'type':'format','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xeec0d=function(_0x3af20f){const _0xe049b1=_0x3af20f['getFirstRange']();let _0x5e1904=_0xe049b1['start']['nodeAfter'];for(;_0x5e1904&&_0xe049b1['containsItem'](_0x5e1904);){if(_0x5e1904['getAttribute']('listIndent')>0x0)return!0x1;_0x5e1904=_0x5e1904['nextSibling'];}return!0x0;}(_0x4655db)?c(_0x3734aa,'*Format:*\x20remove\x20from\x20%0',c(_0x3734aa,function(_0x300a09){return'ELEMENT_'+_0x300a09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4655db))):c(_0x3734aa,'*Outdent:*\x20%0',c(_0x3734aa,'ELEMENT_LIST_ITEM')),_0x2013b7={'type':'format','content':_0xeec0d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3a5df2['multipleBlocks']&&(_0xeec0d='*Merge:*\x20%0',_0x2013b7={'type':'deletion','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_LIST_ITEM'))});}return _0x2013b7;});}}function Te(_0x2e318b){let _0x1393f4=_0x2e318b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1393f4;){const _0x717f53=_0x1393f4['getAttribute']('listItemId');if(!_0x717f53)return!0x1;if(_0x717f53==_0x2e318b['data']['newValue'])return'newValue';if(_0x717f53==_0x2e318b['data']['oldValue'])return'oldValue';_0x1393f4=_0x1393f4['previousSibling'];}return!0x1;}class Se extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c7c89=this['editor']['config']['get']('list.properties'),_0x4950de=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c7c89['styles']&&(_0x4950de['enableDefaultAttributesIntegration']('listStyle'),_0x4950de['registerBlockAttribute']('listStyle')),_0x1c7c89['reversed']&&(_0x4950de['enableDefaultAttributesIntegration']('listReversed'),_0x4950de['registerBlockAttribute']('listReversed')),_0x1c7c89['startIndex']&&(_0x4950de['enableDefaultAttributesIntegration']('listStart'),_0x4950de['registerBlockAttribute']('listStart'));const _0x11247e={'type':'format','content':''};_0x4950de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53f699=this['editor']['locale'];_0x4950de['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x53f699,'FORMAT_LIST_REVERSED')),_0x4950de['descriptionFactory']['registerDescriptionCallback'](_0x27cbd1=>{const {data:_0xb265ca}=_0x27cbd1;if(_0xb265ca&&'listReversed'==_0xb265ca['key'])return null==_0xb265ca['newValue']||0x0==_0xb265ca['newValue']&&null==_0xb265ca['oldValue']?_0x11247e:void 0x0;}),_0x4950de['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x53f699,'FORMAT_LIST_START')),_0x4950de['descriptionFactory']['registerDescriptionCallback'](_0x24627e=>{const {data:_0x4501c7}=_0x24627e;if(_0x4501c7&&'listStart'==_0x4501c7['key'])return null==_0x4501c7['newValue']||0x1==_0x4501c7['newValue']&&null==_0x4501c7['oldValue']?_0x11247e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x19830a=>{if(_0x19830a['batch']['isUndo'])return!0x1;let _0x572661=!0x1;const _0x26fb4d=_0x4950de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5730ef=>{const _0x64d46f=_0x4950de['_getAttributeKey'](_0x5730ef);return'listStart'==_0x64d46f||'listReversed'==_0x64d46f;});for(const _0x182290 of _0x26fb4d){const _0x550237=_0x182290['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x550237||'customNumbered'==_0x550237)continue;_0x4950de['_findSuggestions'](_0x182290['getFirstRange'](),'attribute')['find'](_0x32f7b8=>'listType'==_0x4950de['_getAttributeKey'](_0x32f7b8['suggestion']))||(_0x19830a['removeMarker'](_0x182290['getFirstMarker']()),_0x572661=!0x0);}return _0x572661;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x48a66d){const _0x4d82f2=this['editor']['locale'],{data:_0x4e8a5c}=_0x48a66d,_0x5e95b7={'type':'format','content':''};if(!_0x4e8a5c||'listStyle'!=_0x4e8a5c['key'])return;if(!_0x4e8a5c['oldValue'])return'default'==_0x4e8a5c['newValue']?_0x5e95b7:{'type':'format','content':''+c(_0x4d82f2,'*Set\x20format:*\x20%0',c(_0x4d82f2,this['_getTranslationKeyForListStyle'](_0x4e8a5c['newValue'])))};if(!_0x4e8a5c['newValue']){if('default'==_0x4e8a5c['oldValue'])return _0x5e95b7;let _0x39314d=_0x48a66d['head'];for(;_0x39314d;){if(_0x39314d['data']&&'listType'==_0x39314d['data']['key']&&_0x39314d['data']['newValue'])return _0x5e95b7;_0x39314d=_0x39314d['next'];}return{'type':'format','content':''+c(_0x4d82f2,'*Remove\x20format:*\x20%0',c(_0x4d82f2,this['_getTranslationKeyForListStyle'](_0x4e8a5c['oldValue'])))};}if('default'!=_0x4e8a5c['newValue'])return{'type':'format','content':''+c(_0x4d82f2,'*Set\x20format:*\x20%0',c(_0x4d82f2,this['_getTranslationKeyForListStyle'](_0x4e8a5c['newValue'])))};let _0x46060b=_0x48a66d['head'];for(;_0x46060b;){if(_0x46060b['data']&&'listType'==_0x46060b['data']['key']&&_0x46060b['data']['newValue']&&_0x46060b['data']['oldValue'])return _0x5e95b7;_0x46060b=_0x46060b['next'];}return{'type':'format','content':c(_0x4d82f2,'*Set\x20format:*\x20%0',c(_0x4d82f2,'ELEMENT_'+_0x48a66d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x569878=this['editor'],_0x4e4afd=_0x569878['locale'];_0x569878['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x588f0e=>{if('formatBlock'!=_0x588f0e['type'])return;const {data:_0x1de301}=_0x588f0e;if(!_0x1de301)return;let _0x47a1b5,_0x217133;switch(_0x1de301['commandName']){case'listStyle':_0x47a1b5='*Change\x20to:*\x20%0',_0x217133={'type':'format','content':c(_0x4e4afd,_0x47a1b5,c(_0x4e4afd,this['_getTranslationKeyForListStyle'](_0x1de301['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47a1b5=_0x1de301['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x217133={'type':'format','content':c(_0x4e4afd,_0x47a1b5)};break;case'listStart':_0x47a1b5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x217133={'type':'format','content':c(_0x4e4afd,_0x47a1b5,_0x1de301['commandParams'][0x0]['startIndex'])};}return _0x217133;});}['_getTranslationKeyForListStyle'](_0x5af289){return'ELEMENT_'+function(_0x4b5a57){if(_e['includes'](_0x4b5a57))return'bulleted';if(Re['includes'](_0x4b5a57))return'numbered';return null;}(_0x5af289)['toUpperCase']()+'_LIST_'+_0x5af289['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2b8ff3{['afterInit'](){const _0x4acc2b=this['editor'];_0x4acc2b['commands']['get']('emoji')&&_0x4acc2b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2b8ff3{static get['requires'](){return[_0x11c59c];}['init'](){const _0x598e2c=this['editor'],_0x362da3=_0x598e2c['plugins']['get']('TrackChangesEditing'),_0x1dc105=_0x598e2c['commands']['get']('enter');_0x362da3['enableCommand']('enter',()=>{_0x598e2c['model']['change'](_0x3bef7f=>{const _0x1479d8=_0x598e2c['model']['document']['selection'],_0x242408=_0x1479d8['getFirstPosition'](),_0xb7d626=_0x2346b0['fromRange'](_0x1479d8['getFirstRange']());if(_0x1dc105['enterBlock'](_0x3bef7f)){const _0x975f99=_0x598e2c['model']['createPositionAt'](_0x242408['parent']['nextSibling'],0x0),_0x3e4a46=_0x3bef7f['createRange'](_0x242408,_0x975f99);_0x362da3['markInsertion'](_0x3e4a46);}else _0x3bef7f['setSelection'](_0x3bef7f['createRange'](_0xb7d626['end']));_0xb7d626['detach'](),_0x1dc105['fire']('afterExecute',{'writer':_0x3bef7f});});}),_0x598e2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x598e2c,'split'),{'priority':'high'}),_0x598e2c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x149397,_0xa2e6fa,_0x4ac371)=>{const _0x5b1583=_0x4ac371['mapper']['markerNameToElements'](_0xa2e6fa['markerName']);if(_0x5b1583){for(const _0x425d10 of _0x5b1583)_0x425d10['hasClass']('ck-suggestion-marker-split')&&(_0x4ac371['mapper']['unbindElementFromMarkerName'](_0x425d10,_0xa2e6fa['markerName']),_0x4ac371['writer']['remove'](_0x425d10));}},{'priority':'high'}),_0x598e2c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c90c0,_0x1aa06a,_0x396fe8)=>{_0x396fe8['options']['showSuggestionHighlights']&&Fe(_0x598e2c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3c90c0,_0x1aa06a,_0x396fe8);},{'priority':'high'});}}class Z extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2eb0d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2eb0d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2eb0d4['enableCommand']('findNext'),_0x2eb0d4['enableCommand']('findPrevious'),_0x2eb0d4['enableCommand']('replace'),_0x2eb0d4['enableCommand']('replaceAll');}['handleFindCommand'](_0xc74ec1,_0x2b5fcd,_0x5a901c={}){const _0x21a52a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xc74ec1(_0x18461b=>{let _0x555634=('string'==typeof _0x2b5fcd?_0x21a52a['findByTextCallback'](_0x2b5fcd,_0x5a901c):_0x2b5fcd)(_0x18461b);Array['isArray'](_0x555634)&&(_0x555634={'results':_0x555634,'searchText':'string'==typeof _0x2b5fcd?_0x2b5fcd:''});const _0x288569=_0x555634['results']['filter'](_0x4be881=>!0x1===this['_isInDeletionRange'](_0x4be881,_0x18461b['item']));return{..._0x555634,'results':_0x288569};},_0x5a901c);}['_isInDeletionRange'](_0x72d441,_0x10db5e){const _0x3c9d9b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10db5e,_0x72d441['start']),this['editor']['model']['createPositionAt'](_0x10db5e,_0x72d441['end']));for(const _0x14c605 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3c9d9b['getIntersection'](_0x14c605['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2b8ff3{['afterInit'](){const _0x23bc48=this['editor']['locale'],_0x4d5c8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49734d,commandName:_0x1d49d5}of ro)this['editor']['plugins']['has'](_0x49734d)&&(_0x4d5c8d['enableDefaultAttributesIntegration'](_0x1d49d5),_0x4d5c8d['registerInlineAttribute'](_0x1d49d5));_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x23bc48,'FORMAT_FONT_SIZE')),_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x23bc48,'FORMAT_FONT_FAMILY')),_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x23bc48,'FORMAT_FONT_COLOR')),_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x23bc48,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521133=this['editor'],_0x4b6493=_0x521133['locale'];_0x521133['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbbb97e=>{const _0x523dba=_0x4b6493['t'];if('formatInline'!=_0xbbb97e['type'])return;const {data:_0x32a82b}=_0xbbb97e;if(null!=_0x32a82b){if('fontSize'==_0x32a82b['commandName']){const _0x2eddc8=_0x32a82b['commandParams'][0x0]['value'];if(_0x2eddc8){const _0x322fd7=_0x523dba(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x78fac3=>_0x78fac3['model']==_0x2eddc8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20size:*\x20%0',_0x322fd7)};}return{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32a82b['commandName']){const _0x526637=_0x32a82b['commandParams'][0x0]['value'];return _0x526637?{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20family:*\x20%0',_0x526637)}:{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32a82b['commandName']){const _0x545c22=_0x32a82b['commandParams'][0x0]['value'];if(_0x545c22){const _0x2a3eb3=_0x1cc541(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ac434=>_0x5ac434['model']==_0x545c22);let _0x4bd5d4=_0x545c22,_0x1fd145='';return _0x2a3eb3&&(_0x4bd5d4=_0x2a3eb3['label'],_0x1fd145=_0x523dba(_0x4bd5d4)['toLowerCase']()),{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20color:*\x20%0',_0x1fd145)['trim'](),'color':{'value':_0x545c22,'title':_0x1fd145||_0x4bd5d4}};}return{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32a82b['commandName']){const _0x52166a=_0x32a82b['commandParams'][0x0]['value'];if(_0x52166a){const _0x1c2c3a=_0x1cc541(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x479299=>_0x479299['model']==_0x52166a);let _0x2e1173=_0x52166a,_0x1130bc='';return _0x1c2c3a&&(_0x2e1173=_0x1c2c3a['label'],_0x1130bc=_0x523dba(_0x2e1173)['toLowerCase']()),{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20background\x20color:*\x20%0',_0x1130bc)['trim'](),'color':{'value':_0x52166a,'title':_0x1130bc||_0x2e1173}};}return{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2b8ff3{['afterInit'](){const _0x5c4820=this['editor'],_0x59681f=_0x5c4820['plugins']['get']('TrackChangesEditing'),_0x1f28d8=_0x5c4820['commands']['get']('copyFormat'),_0x243bf0=_0x5c4820['commands']['get']('pasteFormat');_0x1f28d8&&_0x243bf0&&(_0x59681f['enableDefaultAttributesIntegration']('pasteFormat'),_0x59681f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x141304=this['editor'],_0x2f8da7=_0x141304['locale'];_0x141304['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5abf5f=>{if('formatBlock'!=_0x5abf5f['type']&&'formatInline'!=_0x5abf5f['type'])return;const {data:_0x1b52cb}=_0x5abf5f;if(_0x1b52cb&&'pasteFormat'===_0x1b52cb['commandName']){const _0x1ac7a9=[],_0x558ec2=_0x1b52cb['commandParams'][0x0];for(const [_0x36c427,_0x51f5ea]of Object['entries'](_0x558ec2))_0x1ac7a9['push'](so(_0x141304,_0x36c427,_0x51f5ea));return _0x1ac7a9['length']?{'type':'format','content':c(_0x2f8da7,'*Set\x20format\x20to:*\x20%0',_0x1ac7a9['join'](',\x20'))}:{'type':'format','content':c(_0x2f8da7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x9fb440,_0x46c49b,_0x303ad0){const _0x46441f=_0x9fb440['locale']['t'],_0x17e891=_0x46c49b['split'](/(?=[A-Z])/)['join']('\x20'),_0x2dff6f=_0x46441f(_0x17e891['charAt'](0x0)['toUpperCase']()+_0x17e891['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x303ad0)return _0x2dff6f;if('fontColor'===_0x46c49b||'fontBackgroundColor'===_0x46c49b){const _0x3c93a1=_0x1cc541(_0x9fb440['config']['get']('fontColor.colors'))['find'](_0x5a82f9=>_0x5a82f9['model']==_0x303ad0);return _0x2dff6f+'\x20('+(_0x3c93a1?_0x46441f(_0x3c93a1['label'])['toLowerCase']():_0x303ad0)+')';}if('fontSize'===_0x46c49b&&isNaN(parseFloat(_0x303ad0))){const _0x2a2ff1=_0x9fb440['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x9fb440['config']['get']('fontSize.options'))['find'](_0x46b7a4=>_0x46b7a4['model']==_0x303ad0);return _0x2dff6f+'\x20('+(_0x2a2ff1?_0x46441f(_0x2a2ff1['title'])['toLowerCase']():_0x303ad0)+')';}return _0x2dff6f+'\x20('+_0x303ad0+')';}class nt extends _0x2b8ff3{['_headingOptions'];['afterInit'](){const _0xb9ccd7=this['editor'];if(!_0xb9ccd7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb9ccd7['config']['get']('heading.options');const _0x51cdf3=_0xb9ccd7['locale'],_0x25e1d6=_0xb9ccd7['plugins']['get']('TrackChangesEditing');_0x25e1d6['enableDefaultAttributesIntegration']('heading');for(const _0x5e46b4 of this['_headingOptions'])'paragraph'!=_0x5e46b4['model']&&_0x25e1d6['descriptionFactory']['registerElementLabel'](_0x5e46b4['model'],_0x144a5f=>{const _0x5b708a=this['_getHeadingLevel'](_0x5e46b4['model']);return null!==_0x5b708a?_0x502b03(_0x144a5f,_0x5b708a):_0x43950e(_0x144a5f,_0x5e46b4['title']);});function _0x502b03(_0x572ca4,_0x2879a4){return c(_0x51cdf3,'ELEMENT_HEADING',[_0x572ca4,_0x2879a4]);}function _0x43950e(_0x5d0315,_0x292349){return c(_0x51cdf3,'ELEMENT_HEADING_CUSTOM',[_0x5d0315,_0x292349]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca130=this['editor'],_0x29a129=_0x5ca130['locale'];function _0xbef5ea(_0x5b9f3f,_0x24f5a8){return c(_0x29a129,'ELEMENT_HEADING_CUSTOM',[_0x5b9f3f,_0x24f5a8]);}_0x5ca130['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ab389=>{if('formatBlock'!=_0x4ab389['type'])return;const {data:_0x5cb2fa}=_0x4ab389;if(_0x5cb2fa&&'heading'==_0x5cb2fa['commandName']){const _0x2a73b7=_0x5cb2fa['commandParams'][0x0]['value'],_0x4670a8=this['_getHeadingLevel'](_0x2a73b7);if(null!==_0x4670a8)return{'type':'format','content':c(_0x29a129,'*Change\x20to:*\x20%0',(_0x19657d=0x1,_0x3760=_0x4670a8,c(_0x29a129,'ELEMENT_HEADING',[_0x19657d,_0x3760])))};const _0x32d5dc=this['_headingOptions']['find'](_0x2bdb75=>_0x2bdb75['model']===_0x2a73b7)['title'];return{'type':'format','content':c(_0x29a129,'*Change\x20to:*\x20%0',_0xbef5ea(0x1,_0x32d5dc))};}var _0x19657d,_0x3760;});}['_getHeadingLevel'](_0x6f2dd3){const _0x3a2e2c=_0x6f2dd3['match'](/^heading(\d+)/);if(_0x3a2e2c)return _0x3a2e2c[0x1];const _0x44e057=this['_headingOptions']?.['find'](_0x3642c1=>_0x3642c1['model']==_0x6f2dd3);if(_0x44e057&&_0x44e057['view']){const _0x1622cb=_0x44e057['view'],_0x414d91=(_0x1622cb['name']??_0x1622cb)['match'](/^h(\d+)/);if(_0x414d91)return _0x414d91[0x1];}return null;}}class it extends _0x2b8ff3{['afterInit'](){const _0x3d9421=this['editor'];if(!_0x3d9421['plugins']['has']('HighlightEditing'))return;const _0xb50a28=_0x3d9421['plugins']['get']('TrackChangesEditing'),_0x535831=_0x3d9421['locale'];_0xb50a28['enableDefaultAttributesIntegration']('highlight'),_0xb50a28['registerInlineAttribute']('highlight'),_0xb50a28['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x535831,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x133591=this['editor'],_0x262522=_0x133591['locale'];_0x133591['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c3af3=>{if('formatInline'!=_0x4c3af3['type'])return;const {data:_0x5b4670}=_0x4c3af3;if(_0x5b4670&&'highlight'==_0x5b4670['commandName']){const _0xca7795=_0x262522['t'],_0x24b1ea=_0x5b4670['commandParams'][0x0]['value'];if(_0x24b1ea){const _0x395894=_0x133591['config']['get']('highlight.options')['find'](_0x4d7d90=>_0x4d7d90['model']==_0x24b1ea),_0x53052b=_0xca7795(_0x395894['title'])['toLowerCase']();return{'type':'format','content':c(_0x262522,'*Set\x20highlight:*\x20%0',_0x53052b),'color':{'value':_0x395894['color'],'title':_0x395894['title']}};}return{'type':'format','content':c(_0x262522,'*Remove\x20highlight*',c(_0x262522,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2b8ff3{['afterInit'](){const _0x5e4a7f=this['editor'];if(!_0x5e4a7f['plugins']['has']('HorizontalLineEditing'))return;_0x5e4a7f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1be23a=_0x5e4a7f['plugins']['get']('TrackChangesEditing'),_0x365c8f=_0x5e4a7f['locale'];_0x1be23a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x271212=>c(_0x365c8f,'ELEMENT_HORIZONTAL_LINE',_0x271212)),_0x5e4a7f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b9fae,{writer:_0x14c405,options:_0x16a377})=>{if(!_0x16a377['showSuggestionHighlights'])return null;const _0x14c239=_0x14c405['createContainerElement']('div'),_0x3d52df=_0x14c405['createEmptyElement']('hr');return _0x14c405['addClass']('ck-horizontal-line',_0x14c239),_0x14c405['insert'](_0x14c405['createPositionAt'](_0x14c239,0x0),_0x3d52df),_0x14c239;},'converterPriority':'high'});}}class ot extends _0x2b8ff3{['afterInit'](){const _0x3eaa39=this['editor'];if(!_0x3eaa39['plugins']['has']('HtmlEmbed'))return;const _0x30332a=_0x3eaa39['plugins']['get']('TrackChangesEditing'),_0x22b029=_0x3eaa39['locale'];_0x30332a['descriptionFactory']['registerElementLabel']('rawHtml',_0x45b2d7=>c(_0x22b029,'ELEMENT_HTML_EMBED',_0x45b2d7)),_0x30332a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x30332a['registerBlockAttribute']('value'),_0x30332a['descriptionFactory']['registerDescriptionCallback'](_0x732fff=>{if('attribute'!=_0x732fff['type'])return;const {data:_0x9d67ee}=_0x732fff;if(_0x9d67ee&&'value'==_0x9d67ee['key']&&_0x732fff['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xd35ec1=c(_0x22b029,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x22b029,'*Change\x20%0\x20content*',_0xd35ec1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34618c=this['editor'],_0x261cef=_0x34618c['locale'];_0x34618c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b3f5e=>{if('formatBlock'!=_0x1b3f5e['type'])return;const {data:_0x5a7b7b}=_0x1b3f5e;if(_0x5a7b7b&&'htmlEmbed'==_0x5a7b7b['commandName']){const _0x41d723=c(_0x261cef,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x261cef,'*Change\x20%0\x20content*',_0x41d723)};}});}}class rt extends _0x2b8ff3{['afterInit'](){const _0x3cbd9a=this['editor'];if(!_0x3cbd9a['plugins']['has']('ImageEditing'))return;const _0x2c2b49=_0x3cbd9a['plugins']['get']('TrackChangesEditing'),_0x7ffcc0=_0x3cbd9a['plugins']['get']('ImageUtils'),_0x3fccf8=_0x3cbd9a['locale'];_0x2c2b49['enableCommand']('insertImage'),_0x2c2b49['descriptionFactory']['registerElementLabel']('imageBlock',_0x414939=>c(_0x3fccf8,'ELEMENT_IMAGE',_0x414939)),_0x2c2b49['descriptionFactory']['registerElementLabel']('imageInline',_0x5ba07c=>c(_0x3fccf8,'ELEMENT_INLINE_IMAGE',_0x5ba07c)),_0x2c2b49['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3fccf8,'ELEMENT_CAPTION')),_0x3cbd9a['plugins']['has']('ImageUploadEditing')&&_0x2c2b49['enableCommand']('uploadImage'),_0x3cbd9a['plugins']['has']('ImageBlockEditing')&&_0x3cbd9a['plugins']['has']('ImageInlineEditing')&&(_0x2c2b49['enableCommand']('imageTypeInline',(_0x2fbffe,_0x352f9c)=>{const _0x555109=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']);_0x3cbd9a['model']['change'](()=>{_0x2c2b49['markBlockFormat'](_0x555109,{'commandName':'imageTypeInline','commandParams':[_0x352f9c]},[],'convertBlockImageToInline');});}),_0x2c2b49['enableCommand']('imageTypeBlock',(_0x29cf80,_0x1c07ca)=>{_0x3cbd9a['model']['change'](_0x130a9e=>{let _0x156547=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0xfa3ce4=_0x130a9e['createRangeOn'](_0x156547);const _0x3d381e=_0x54fce4['fromPosition'](_0xfa3ce4['start'],'toPrevious'),_0xcd5fb1=_0x54fce4['fromPosition'](_0xfa3ce4['end'],'toNext');_0x2c2b49['forceDefaultExecution'](()=>_0x29cf80(_0x1c07ca)),_0x156547=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0xfa3ce4=_0x130a9e['createRangeOn'](_0x156547);const _0x4ce4fc=_0x130a9e['createRange'](_0x3d381e,_0xcd5fb1);_0x3d381e['detach'](),_0xcd5fb1['detach'](),_0x2c2b49['markBlockFormat'](_0x156547,{'commandName':'imageTypeInline','commandParams':[_0x1c07ca]},[],'convertInlineImageToBlock'),_0x4ce4fc['start']['isBefore'](_0xfa3ce4['start'])&&_0x2c2b49['markInsertion'](_0x130a9e['createRange'](_0x4ce4fc['start'],_0xfa3ce4['start']),'convertInlineImageToBlock'),_0xfa3ce4['end']['isBefore'](_0x4ce4fc['end'])&&_0x2c2b49['markInsertion'](_0x130a9e['createRange'](_0xfa3ce4['end'],_0x4ce4fc['end']),'convertInlineImageToBlock');});}),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2c2b49['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b883e])=>{const _0x3c7fb0=_0x2c2b49['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5ad441=_0x3b883e['start'],_0x37913a=_0x3b883e['end'];const _0x6820dc=_0x3cbd9a['model']['schema']['getNearestSelectionRange'](_0x5ad441,'backward'),_0x24eeeb=_0x3cbd9a['model']['schema']['getNearestSelectionRange'](_0x37913a,'forward');_0x6820dc['isCollapsed']&&(_0x5ad441=_0x6820dc['start']),_0x24eeeb['isCollapsed']&&(_0x37913a=_0x24eeeb['end']),_0x3c7fb0([_0x3cbd9a['model']['createRange'](_0x5ad441,_0x37913a)]);}),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3bfa2d),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3bfa2d)),_0x3cbd9a['plugins']['has']('ImageCaptionEditing')&&(_0x2c2b49['enableCommand']('toggleImageCaption',(_0x1eebee,_0x187685)=>{const _0x33a6b7=_0x3cbd9a['plugins']['get']('ImageCaptionUtils');let _0x520537=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0x3b340a=_0x33a6b7['getCaptionFromImageModelElement'](_0x520537);_0x3cbd9a['model']['change'](()=>{if(_0x3b340a)return void _0x2c2b49['markDeletion'](_0x3cbd9a['model']['createRangeOn'](_0x3b340a));const _0x113095=_0x7ffcc0['isBlockImage'](_0x520537);_0x1eebee(_0x187685),_0x520537=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0x3b340a=_0x33a6b7['getCaptionFromImageModelElement'](_0x520537),_0x2c2b49['markInsertion'](_0x3cbd9a['model']['createRangeOn'](_0x3b340a),_0x113095?null:'imageCaption');});}),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3bfa2d));const _0x21e999=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40a728(_0x5ec0cb,_0x197ff9){const _0x4d881c=_0x21e999['findIndex'](({type:_0xe16b8f,subType:_0x18886f})=>_0x5ec0cb['type']==_0xe16b8f&&_0x5ec0cb['subType']==_0x18886f),_0x48d850=_0x21e999['findIndex'](({type:_0x13c0f6,subType:_0x26f7c1})=>_0x197ff9['type']==_0x13c0f6&&_0x197ff9['subType']==_0x26f7c1);if(_0x4d881c<0x0||_0x48d850<0x0)return!0x1;const _0x5f12a4=_0x5ec0cb['getFirstRange'](),_0x4c3d36=_0x197ff9['getFirstRange']();if((0x0==_0x4d881c||0x1==_0x4d881c)&&0x2==_0x48d850&&_0x5f12a4['isIntersecting'](_0x4c3d36))return!0x0;if(0x2==_0x4d881c&&0x3==_0x48d850){const _0x1e8a6d=_0x2c2b49['_findSuggestions'](_0x5f12a4,'insertion')['filter'](({suggestion:_0x33e80c,meta:_0x5bc8cb})=>_0x5bc8cb['isOwn']&&'convertInlineImageToBlock'==_0x33e80c['subType']);if(_0x1e8a6d['length']>0x1&&_0x4c3d36['end']['isEqual'](_0x5f12a4['start']))return!0x0;if(0x1==_0x1e8a6d['length']&&(_0x5f12a4['start']['isEqual'](_0x4c3d36['end'])||_0x5f12a4['end']['isEqual'](_0x4c3d36['start'])))return!0x0;}if(0x3==_0x4d881c&&0x3==_0x48d850&&_0x5f12a4['start']['isBefore'](_0x4c3d36['start'])){const _0x3595f3=_0x5f12a4['end']['nodeAfter'],_0x3ca584=_0x4c3d36['start']['nodeBefore'];return _0x7ffcc0['isBlockImage'](_0x3595f3)&&_0x3595f3===_0x3ca584;}return!0x1;}function _0x3bfa2d(_0x144d50,_0x590091){return _0x40a728(_0x144d50,_0x590091)?[_0x144d50,_0x590091]:_0x40a728(_0x590091,_0x144d50)?[_0x590091,_0x144d50]:null;}_0x3cbd9a['plugins']['has']('ImageResize')&&(_0x2c2b49['enableDefaultAttributesIntegration']('resizeImage'),_0x2c2b49['registerBlockAttribute']('resizedWidth'),_0x2c2b49['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3fccf8,'FORMAT_IMAGE_SIZE'))),_0x3cbd9a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2c2b49['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c2b49['registerBlockAttribute']('alt')),_0x3cbd9a['plugins']['has']('PictureEditing')&&(_0x2c2b49['registerBlockAttribute']('sources'),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x1d8bba=>{if('attribute'!=_0x1d8bba['type'])return;const {data:_0x3f5dda}=_0x1d8bba;return _0x3f5dda&&'sources'==_0x3f5dda['key']?{'type':'format','content':''}:void 0x0;})),_0x3cbd9a['plugins']['has']('ImageSizeAttributes')&&(_0x2c2b49['registerBlockAttribute']('width'),_0x2c2b49['registerBlockAttribute']('height'),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0xa005d=>{if('attribute'!=_0xa005d['type'])return;const {data:_0x52daea}=_0xa005d;return!_0x52daea||'width'!=_0x52daea['key']&&'height'!=_0x52daea['key']?void 0x0:{'type':'format','content':''};})),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x140d15=>{if(!!_0x21e999['find'](({type:_0x23aed5,subType:_0x5f3b27})=>_0x140d15['type']==_0x23aed5&&_0x140d15['subType']==_0x5f3b27))return _0x140d15['previous']?{}:void 0x0;}),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x314e32=>{if('insertion'==_0x314e32['type']||'deletion'==_0x314e32['type']){const _0xd0cacf=_0x314e32['getContainedElement']();if(_0xd0cacf&&_0xd0cacf['is']('element','caption'))return{'type':'insertion'==_0x314e32['type']?'addObject':'removeObject','element':_0xd0cacf,'quantity':0x1};}}),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x5e582a=>'formatBlock'==_0x5e582a['type']&&'convertInlineImageToBlock'==_0x5e582a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e582a['type']&&'convertBlockImageToInline'==_0x5e582a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x33dce6=>{if('attribute'!=_0x33dce6['type'])return;const {data:_0x19b8a7}=_0x33dce6;if(!_0x19b8a7||'alt'!=_0x19b8a7['key'])return;const _0x3d383d=_0x19b8a7['newValue'];return _0x3d383d?{'type':'format','content':c(_0x3fccf8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d383d+'\x22')}:{'type':'format','content':c(_0x3fccf8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47675f=this['editor'],_0x35baa5=_0x47675f['locale'];_0x47675f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x86470e=>{if('formatBlock'!=_0x86470e['type']&&'formatInline'!=_0x86470e['type'])return;const {data:_0x477398}=_0x86470e;if(_0x477398){if('imageTextAlternative'==_0x477398['commandName']){const _0x35ebeb=_0x477398['commandParams'][0x0]['newValue'];return _0x35ebeb?{'type':'format','content':c(_0x35baa5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35ebeb+'\x22')}:{'type':'format','content':c(_0x35baa5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x477398['commandName']){const _0x1e8efe=_0x477398['commandParams'][0x0]['width'];return _0x1e8efe?{'type':'format','content':c(_0x35baa5,'*Set\x20image\x20width:*\x20%0',_0x1e8efe)}:{'type':'format','content':c(_0x35baa5,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d9980=this['editor']['locale'],_0x46dce7=this['editor']['plugins']['get']('TrackChangesEditing');_0x46dce7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x46dce7['registerBlockAttribute']('src'),_0x46dce7['descriptionFactory']['registerDescriptionCallback'](_0x195daf=>{if('attribute'!=_0x195daf['type'])return;const {data:_0x20b28a}=_0x195daf;return _0x20b28a&&'src'==_0x20b28a['key']?_0x20b28a['newValue']&&_0x20b28a['oldValue']?{'type':'format','content':c(_0x1d9980,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e779b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e779b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3e779b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e779b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3e779b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54289d=this['editor'],_0x155db5=_0x54289d['locale'];_0x54289d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ede36=>{if('formatBlock'!=_0x3ede36['type']&&'formatInline'!=_0x3ede36['type'])return;const {data:_0x39f24b}=_0x3ede36;if(!_0x39f24b||'replaceImageSource'!=_0x39f24b['commandName'])return;return{'type':'format','content':c(_0x155db5,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2b8ff3{['afterInit'](){const _0x529186=this['editor'];if(!_0x529186['plugins']['has']('ImageStyleEditing'))return;const _0x3509b7=_0x529186['plugins']['get']('TrackChangesEditing'),_0x61b9c4=_0x529186['plugins']['get']('ImageUtils'),_0x38208c={};_0x3509b7['enableCommand']('imageStyle',(_0x9cde2c,_0x14d718)=>{const _0x165100=_0x529186['plugins']['get']('Users')['me'],_0x44778e=_0x529186['commands']['get']('imageStyle');let _0x2da56d=_0x61b9c4['getClosestSelectedImageElement'](_0x529186['model']['document']['selection']),_0x527989=_0x529186['model']['createRangeOn'](_0x2da56d),_0x42964b=_0x44778e['value'];if(_0x42964b==_0x14d718['value'])return;const _0x33851c={'commandName':'imageStyle','commandParams':[_0x14d718],'formatGroupId':_0x400c1f()};_0x529186['model']['change'](()=>{if(_0x3509b7['getSuggestions']()['filter'](_0x3e8fa9=>_0x3e8fa9['isInContent']&&_0x165100==_0x3e8fa9['author']&&('formatBlock'==_0x3e8fa9['type']||'formatInline'==_0x3e8fa9['type'])&&('imageStylePreApply'==_0x3e8fa9['subType']||'imageStylePostApply'==_0x3e8fa9['subType'])&&_0x3e8fa9['getFirstRange']()['isEqual'](_0x527989))['forEach'](_0x18ecf5=>_0x3509b7['discardSuggestion'](_0x18ecf5['head'])),_0x2da56d=_0x61b9c4['getClosestSelectedImageElement'](_0x529186['model']['document']['selection']),_0x527989=_0x529186['model']['createRangeOn'](_0x2da56d),_0x44778e['refresh'](),_0x529186['commands']['get']('imageTypeInline')['refresh'](),_0x529186['commands']['get']('imageTypeBlock')['refresh'](),_0x42964b=_0x44778e['value'],_0x42964b!=_0x14d718['value'])return _0x61b9c4['isInlineImage'](_0x2da56d)&&_0x44778e['shouldConvertImageType'](_0x14d718['value'],_0x2da56d)?(_0x9cde2c({..._0x14d718,'setImageSizes':!0x1}),_0x2da56d=_0x61b9c4['getClosestSelectedImageElement'](_0x529186['model']['document']['selection']),void _0x3509b7['markBlockFormat'](_0x2da56d,{..._0x33851c,'commandReversedParams':[{'value':_0x42964b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x61b9c4['isBlockImage'](_0x2da56d)?_0x3509b7['markBlockFormat'](_0x2da56d,_0x33851c,[],'imageStylePostApply'):_0x3509b7['markInlineFormat'](_0x527989,_0x33851c,'imageStylePostApply'));});});for(const _0x1d65b4 of _0x529186['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x38208c[_0x1d65b4['name']]=_0x1d65b4['title']['toLowerCase']();_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x56cc10])=>{_0x61b9c4['setImageNaturalSizeAttributes'](_0x56cc10['getContainedElement']());}),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x29a362,_0x4a7969)=>{_0x3509b7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x29a362,{'commandName':_0x4a7969['commandName'],'commandParams':_0x4a7969['commandReversedParams']});}),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4243f0,_0x41e83f){if(_0x3b2502(_0x4243f0,_0x41e83f))return[_0x4243f0,_0x41e83f];if(_0x3b2502(_0x41e83f,_0x4243f0))return[_0x41e83f,_0x4243f0];return null;});const _0x129387=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3b2502(_0x5e34d4,_0x3e9534){const _0x276dc1=_0x129387['findIndex'](({type:_0x137e95,subType:_0x1be2bf})=>_0x5e34d4['type']==_0x137e95&&_0x5e34d4['subType']==_0x1be2bf),_0x326460=_0x129387['findIndex'](({type:_0x112360,subType:_0x44d7a8})=>_0x3e9534['type']==_0x112360&&_0x3e9534['subType']==_0x44d7a8);if(_0x276dc1<0x0||_0x326460<0x0)return!0x1;const _0x175e4f=_0x5e34d4['getFirstRange'](),_0x56a55c=_0x3e9534['getFirstRange']();if((0x0==_0x276dc1||0x1==_0x276dc1)&&0x2==_0x326460&&_0x175e4f['isIntersecting'](_0x56a55c))return!0x0;if(0x2==_0x276dc1&&0x3==_0x326460){const _0x4636e0=_0x3509b7['_findSuggestions'](_0x175e4f,'insertion')['filter'](({suggestion:_0x19b79c,meta:_0x244369})=>_0x244369['isOwn']&&'convertInlineImageToBlock'==_0x19b79c['subType']);if(_0x4636e0['length']>0x1&&_0x56a55c['end']['isEqual'](_0x175e4f['start']))return!0x0;if(0x1==_0x4636e0['length']&&(_0x175e4f['start']['isEqual'](_0x56a55c['end'])||_0x175e4f['end']['isEqual'](_0x56a55c['start'])))return!0x0;}if(0x3==_0x276dc1&&0x3==_0x326460&&_0x175e4f['start']['isBefore'](_0x56a55c['start'])){const _0x18d11d=_0x175e4f['end']['nodeAfter'],_0x547946=_0x56a55c['start']['nodeBefore'];return _0x61b9c4['isBlockImage'](_0x18d11d)&&_0x18d11d===_0x547946;}return!0x1;}_0x529186['model']['document']['registerPostFixer'](()=>{let _0x3cd109=!0x1;const _0x497262=Array['from'](_0x529186['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x545093,data:_0x44fbd7}of _0x497262){const {group:_0x3247b0,type:_0x50eaf5,subType:_0x1c0eb2,id:_0x3e0515}=_0x3509b7['_splitMarkerName'](_0x545093);if('suggestion'==_0x3247b0&&_0x3509b7['hasSuggestion'](_0x3e0515)){if('formatBlock'==_0x50eaf5&&('imageStylePreApply'==_0x1c0eb2||'imageStylePostApply'==_0x1c0eb2)){const _0x17f71a=_0x3509b7['getSuggestion'](_0x3e0515);if(_0x44fbd7['newRange']){const _0x341608=_0x17f71a['getFirstRange']()['getContainedElement']();if(_0x61b9c4['isBlockImage'](_0x341608))continue;_0x3509b7['discardSuggestion'](_0x17f71a),_0x3cd109=!0x0;}}if('insertion'==_0x50eaf5&&'imageCaption'==_0x1c0eb2&&!_0x44fbd7['newRange']){const _0x2982ef=_0x3509b7['getSuggestion'](_0x3e0515);_0x2982ef['next']&&_0x2982ef['next']['isInContent']&&(_0x3509b7['discardSuggestion'](_0x2982ef['next']),_0x3cd109=!0x0);}}}return _0x3cd109;}),this['_registerLegacyDescription'](_0x38208c);}['_registerLegacyDescription'](_0xd7752d){const _0x16669a=this['editor'],_0xe20e3a=_0x16669a['locale'];_0x16669a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ef376=>{if('formatBlock'!=_0x1ef376['type']&&'formatInline'!=_0x1ef376['type'])return;const {data:_0x2d2f7c}=_0x1ef376;if(!_0x2d2f7c||'imageStyle'!=_0x2d2f7c['commandName'])return;const _0x373d24=_0x2d2f7c['commandParams'][0x0]['value'];return _0x3cedee('side'===_0x373d24?c(_0xe20e3a,'FORMAT_SIDE_IMAGE'):_0xd7752d[_0x373d24]||_0x373d24);function _0x3cedee(_0x3137b8){return{'type':'format','content':c(_0xe20e3a,'*Format:*\x20%0',_0x3137b8)};}});}}class ut extends _0x2b8ff3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x920073){super(_0x920073),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x416f71=this['editor'],_0x574587=_0x416f71['commands']['get']('importWord'),_0x1b9bc2=_0x416f71['commands']['get']('trackChanges');_0x574587&&(_0x574587['on']('execute',(_0x30b4a5,[,_0x373c58])=>{this['_trackChangesValueDuringImport']=_0x1b9bc2['value'],_0x373c58['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x574587,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x574587,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b9bc2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x416f71['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x531db8,_0x5882c9){const {suggestions:_0x1ba1ab}=_0x5882c9,_0x2b2984=this['editor']['commands']['get']('trackChanges'),_0x4fdf55=_0x2b2984['value'];this['_trackChangesValueDuringImport']!==_0x4fdf55&&(_0x2b2984['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ba1ab&&_0x1ba1ab['forEach'](({id:_0x5c3d89,type:_0x57b2be,author:_0x22d78d,created_at:_0x1ba7e4})=>{const _0x202fc0={'id':_0x5c3d89,'type':_0x57b2be,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x22d78d,'createdAt':_0x1ba7e4?new Date(_0x1ba7e4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x202fc0);});}}class ft extends _0x2b8ff3{['afterInit'](){const _0x4a0271=this['editor'],_0x2ab9ec=_0x4a0271['plugins']['get']('TrackChangesEditing');if(_0x4a0271['plugins']['has']('IndentEditing')&&(_0x2ab9ec['enableCommand']('indent'),_0x2ab9ec['enableCommand']('outdent')),_0x4a0271['plugins']['has']('IndentBlock')){for(const _0x578671 of['indentBlock','outdentBlock'])_0x2ab9ec['enableDefaultAttributesIntegration'](_0x578671);}const _0x11386f=_0x4a0271['locale'];_0x2ab9ec['registerBlockAttribute']('blockIndent'),_0x2ab9ec['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x11386f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5375ae=this['editor'],_0x9a4838=_0x5375ae['locale'],_0x501ad9=_0x5375ae['plugins']['get']('TrackChangesEditing');_0x501ad9['descriptionFactory']['registerDescriptionCallback'](_0x2b64bf=>{if('formatBlock'!=_0x2b64bf['type'])return;const {data:_0x5e70d7}=_0x2b64bf;if(!_0x5e70d7)return;if('indentBlock'!=_0x5e70d7['commandName']&&'outdentBlock'!=_0x5e70d7['commandName'])return;const _0x37f95d=_0x2b64bf['getItems']()[0x0],_0x348d7b=_0x501ad9['descriptionFactory']['getItemLabel'](_0x37f95d);return'indentBlock'==_0x5e70d7['commandName']?{'type':'format','content':c(_0x9a4838,'*Indent:*\x20%0',_0x348d7b)}:'outdentBlock'==_0x5e70d7['commandName']?{'type':'format','content':c(_0x9a4838,'*Outdent:*\x20%0',_0x348d7b)}:void 0x0;});}}class ht extends _0x2b8ff3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2b8ff3{['afterInit'](){const _0x23a5db=this['editor'];if(!_0x23a5db['plugins']['has']('LinkEditing'))return;const _0x40143d=_0x23a5db['plugins']['get']('TrackChangesEditing'),_0x1c7cd7=_0x23a5db['commands']['get']('link');_0x40143d['enableDefaultAttributesIntegration']('link'),_0x40143d['enableDefaultAttributesIntegration']('unlink'),_0x40143d['registerInlineAttribute']('linkHref');for(const _0x1238b7 of _0x1c7cd7['manualDecorators'])_0x40143d['registerInlineAttribute'](_0x1238b7['id']),_0x40143d['descriptionFactory']['registerAttributeLabel'](_0x1238b7['id'],'link\x20('+_0x1238b7['label']['toLowerCase']()+')');_0x40143d['descriptionFactory']['registerDescriptionCallback'](_0x587e16=>{if('attribute'!=_0x587e16['type'])return;const {data:_0x2532e6}=_0x587e16;if(!_0x2532e6||'linkHref'!=_0x2532e6['key'])return;const _0x4d8585=_0x2532e6['newValue'],_0xf3addf=_0x23a5db['locale'];return{'type':'format','content':null==_0x4d8585?c(_0xf3addf,'*Remove\x20link*'):c(_0xf3addf,'*Set\x20link:*\x20%0','\x22'+_0x4d8585+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd8dc=this['editor'],_0x5468d2=_0x1cd8dc['locale'];_0x1cd8dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ba9db=>{if('formatInline'!=_0x4ba9db['type'])return;const {data:_0x2f3c8e}=_0x4ba9db;if(_0x2f3c8e){if('link'==_0x2f3c8e['commandName']){const _0x2cc0f5=_0x2f3c8e['commandParams'][0x0];return{'type':'format','content':c(_0x5468d2,'*Set\x20link:*\x20%0','\x22'+_0x2cc0f5+'\x22')};}return'unlink'==_0x2f3c8e['commandName']?{'type':'format','content':c(_0x5468d2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2b8ff3{['afterInit'](){const _0xdf1de=this['editor'],_0x5b6360=_0xdf1de['locale'];if(!_0xdf1de['plugins']['has']('LegacyListEditing'))return;const _0x1f0ef6=_0xdf1de['plugins']['get']('TrackChangesEditing'),_0x52bbd2=_0xdf1de['plugins']['has']('LegacyTodoListEditing');function _0x52d426(_0x8c7026){return()=>{const _0x1f4bf8=_0xdf1de['model']['document']['selection'],_0x5b21e7=_0xdf1de['commands']['get'](_0x8c7026);if(_0x5b21e7['value'])return void _0xdf1de['execute']('paragraph',{});const _0x16ac8c=_0x8c7026['slice'](0x0,-0x4),_0x3acf30=function(_0x46154f,_0x5e7401,_0x1dcafb){let _0x58b44f=Array['from'](_0x46154f)['filter'](_0x7003c4=>function(_0x35fa5e,_0x179984){return _0x179984['checkChild'](_0x35fa5e['parent'],'listItem')&&!_0x179984['isObject'](_0x35fa5e);}(_0x7003c4,_0x1dcafb));_0x58b44f=_0x58b44f['filter'](_0x2dad78=>!_0x2dad78['is']('element','listItem')||_0x2dad78['getAttribute']('listType')!=_0x5e7401);const _0x1e186c=new Set();for(const _0x3cda86 of _0x58b44f)_0x3cda86['is']('element','listItem')?_0x1e186c['add'](Le(_0x3cda86)):_0x1e186c['add'](_0x3cda86);return Array['from'](_0x1e186c);}(_0x1f4bf8['getSelectedBlocks'](),_0x16ac8c,_0xdf1de['model']['schema']);_0xdf1de['model']['change'](()=>{for(const _0x4dd857 of _0x3acf30)_0x1f0ef6['markBlockFormat'](_0x4dd857,{'commandName':_0x8c7026,'commandParams':[{'forceValue':!_0x5b21e7['value']}],'formatGroupId':'blockName'},Ee(_0x4dd857));});};}function _0x4243ac(_0x171f36){return()=>{const _0x1770f0=function(_0x385dec){let _0x2189fc=Array['from'](_0x385dec);const _0x5e221b=_0x2189fc['findIndex'](_0x386ae6=>'listItem'!=_0x386ae6['name']);return _0x5e221b>-0x1&&(_0x2189fc=_0x2189fc['slice'](0x0,_0x5e221b)),_0x2189fc;}(_0xdf1de['model']['document']['selection']['getSelectedBlocks']()),_0x248cba=_0xdf1de['model']['createRange'](_0xdf1de['model']['createPositionAt'](_0x1770f0[0x0],'before'),_0xdf1de['model']['createPositionAt'](_0x1770f0[_0x1770f0['length']-0x1],'end'));_0xdf1de['model']['change'](()=>{_0x1f0ef6['markBlockFormat'](_0x248cba,{'commandName':_0x171f36,'commandParams':[],'formatGroupId':'listIndent'},function(_0x757538){const _0x417fcd=new Set();for(const _0x417995 of _0x757538){let _0x2e4432=_0x417995['nextSibling'];for(;_0x2e4432&&_0x2e4432['getAttribute']('listIndent')>_0x417995['getAttribute']('listIndent');)_0x417fcd['add'](_0x2e4432),_0x2e4432=_0x2e4432['nextSibling'];}return Array['from'](_0x417fcd);}(_0x1770f0));});};}_0x1f0ef6['enableCommand']('numberedList',_0x52d426('numberedList')),_0x1f0ef6['enableCommand']('bulletedList',_0x52d426('bulletedList')),_0x52bbd2&&_0x1f0ef6['enableCommand']('todoList',_0x52d426('todoList')),_0x1f0ef6['enableCommand']('indentList',_0x4243ac('indentList')),_0x1f0ef6['enableCommand']('outdentList',_0x4243ac('outdentList')),_0x52bbd2&&_0x1f0ef6['enableCommand']('checkTodoList',()=>{const _0x181aa4=_0xdf1de['commands']['get']('checkTodoList'),_0x50f5bf=Array['from'](_0x181aa4['_selectedElements']);_0x50f5bf['filter'](_0x5783e6=>_0x5783e6['getAttribute']('todoListChecked')!=_0x181aa4['value']),_0xdf1de['model']['change'](()=>{for(const _0x541b3a of _0x50f5bf)_0x1f0ef6['markBlockFormat'](_0x541b3a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x181aa4['value']}]});});}),_0x1f0ef6['descriptionFactory']['registerElementLabel']('listItem',_0x30e076=>c(_0x5b6360,'ELEMENT_LIST_ITEM',_0x30e076)),_0x1f0ef6['descriptionFactory']['registerDescriptionCallback'](_0x41c25b=>{if('formatBlock'!=_0x41c25b['type']&&'formatInline'!=_0x41c25b['type'])return;const {data:_0x142d84}=_0x41c25b;if(_0x142d84){if('numberedList'==_0x142d84['commandName']||'bulletedList'==_0x142d84['commandName']||'todoList'==_0x142d84['commandName'])switch(_0x142d84['commandName']['replace']('List','')){case'bulleted':return _0x64cd1(c(_0x5b6360,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x64cd1(c(_0x5b6360,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x64cd1(c(_0x5b6360,'ELEMENT_TODO_LIST'));}if('indentList'==_0x142d84['commandName'])return{'type':'format','content':c(_0x5b6360,'*Indent:*\x20%0',c(_0x5b6360,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x142d84['commandName'])return{'type':'format','content':c(_0x5b6360,'*Outdent:*\x20%0',c(_0x5b6360,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x142d84['commandName'])return _0x142d84['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5b6360,'*Check\x20item*')}:{'type':'format','content':c(_0x5b6360,'*Uncheck\x20item*')};}function _0x64cd1(_0x2957a0){return{'type':'format','content':c(_0x5b6360,'*Change\x20to:*\x20%0',_0x2957a0)};}});}}function Le(_0x5bafdc){const _0x44cf1f=_0x5bafdc['getAttribute']('listIndent');if(0x0==_0x44cf1f)return _0x5bafdc;let _0x491183=_0x5bafdc;for(;_0x5bafdc['previousSibling']&&_0x5bafdc['previousSibling']['is']('element','listItem');){const _0x4aee1f=_0x5bafdc['previousSibling']['getAttribute']('listIndent');if(_0x4aee1f==_0x44cf1f)_0x491183=_0x5bafdc['previousSibling'];else{if(_0x4aee1f<_0x44cf1f)break;}_0x5bafdc=_0x5bafdc['previousSibling'];}return _0x491183;}function Ee(_0x55cc38){const _0x2019ce=[];if(_0x55cc38['is']('element','listItem')&&_0x55cc38['getAttribute']('listIndent')>0x0){let _0x4b3dc5=_0x55cc38['nextSibling'];for(;_0x4b3dc5&&'listItem'==_0x4b3dc5['name']&&_0x4b3dc5['getAttribute']('listIndent')==_0x55cc38['getAttribute']('listIndent');)_0x2019ce['push'](_0x4b3dc5),_0x4b3dc5=_0x4b3dc5['nextSibling'];}return _0x2019ce;}class Q extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x84f2ad=this['editor']['config']['get']('list.properties'),_0x55f23b=this['editor']['plugins']['get']('TrackChangesEditing');_0x84f2ad['styles']&&_0x55f23b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x84f2ad['reversed']&&_0x55f23b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x84f2ad['startIndex']&&_0x55f23b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x55f23b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x58d9e6,_0xf0a148={}){const _0x32fb29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c15f6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x32fb29['markMultiRangeBlockFormat'](_0x1c15f6,{'commandName':'listStyle','commandParams':[{'type':_0xf0a148['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5a3910,_0x2f2999={}){const _0x508e22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x138c16=this['_getSuggestionBlocks'](_0x3f808d=>_0x3f808d['is']('element','listItem')&&'numbered'===_0x3f808d['getAttribute']('listType'));if(_0x138c16['length']<0x1)return;const _0x17571b=_0x138c16['map'](_0xeeb77e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xeeb77e,'before'),this['editor']['model']['createPositionAt'](_0xeeb77e,0x0)));this['editor']['model']['change'](()=>{_0x508e22['markMultiRangeBlockFormat'](_0x17571b,{'commandName':'listReversed','commandParams':[{'reversed':_0x2f2999['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xcf6b3e,_0x4c5e7a={}){const _0x198200=this['editor']['plugins']['get']('TrackChangesEditing'),_0x468d88=this['_getSuggestionBlocks'](_0x15fb54=>_0x15fb54['is']('element','listItem')&&'numbered'===_0x15fb54['getAttribute']('listType'));if(_0x468d88['length']<0x1)return;const _0x124dfc=_0x468d88['map'](_0x50bea1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50bea1,'before'),this['editor']['model']['createPositionAt'](_0x50bea1,0x0)));this['editor']['model']['change'](()=>{_0x198200['markMultiRangeBlockFormat'](_0x124dfc,{'commandName':'listStart','commandParams':[{'startIndex':_0x4c5e7a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4ff7d5){if('formatBlock'!=_0x4ff7d5['type']&&'formatInline'!=_0x4ff7d5['type'])return;const _0xff7be9=this['editor']['locale'],{data:_0x3b4126}=_0x4ff7d5;if(!_0x3b4126)return;let _0x4e2ab4,_0x242853;switch(_0x3b4126['commandName']){case'listStyle':_0x4e2ab4='*Change\x20to:*\x20%0',_0x242853={'type':'format','content':c(_0xff7be9,_0x4e2ab4,c(_0xff7be9,this['_getTranslationKeyForListStyle'](_0x3b4126['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e2ab4=_0x3b4126['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x242853={'type':'format','content':c(_0xff7be9,_0x4e2ab4)};break;case'listStart':_0x4e2ab4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x242853={'type':'format','content':c(_0xff7be9,_0x4e2ab4,_0x3b4126['commandParams'][0x0]['startIndex'])};}return _0x242853;}['_getSuggestionBlocksForListStyle'](){const _0x2e0441=this['editor']['plugins']['get']('LegacyListUtils');let _0x2a1380=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2a1380[0x0]?.['is']('element','listItem')&&_0x2a1380['unshift'](..._0x2e0441['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2a1380[_0x2a1380['length']-0x1]?.['is']('element','listItem')&&_0x2a1380['push'](..._0x2e0441['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2a1380=[...new Set(_0x2a1380)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2a1380=_0x2a1380['filter'](_0x26579f=>_0x26579f['is']('element','listItem'))),_0x2a1380;}['_getSuggestionBlocks'](_0x1b4497){const _0x533033=this['editor']['plugins']['get']('LegacyListUtils');let _0x59f351=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b4497)['map'](_0x2268b1=>{const _0x45c125=this['editor']['model']['createPositionAt'](_0x2268b1,0x0);return[..._0x533033['getSiblingNodes'](_0x45c125,'backward'),..._0x533033['getSiblingNodes'](_0x45c125,'forward')];})['flat']();return _0x59f351=[...new Set(_0x59f351)],_0x59f351;}['_getTranslationKeyForListStyle'](_0x12229c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x12229c)||'default')['toUpperCase']()+'_LIST_'+_0x12229c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2b8ff3{['afterInit'](){const _0x2ba7e1=this['editor'];if(!_0x2ba7e1['plugins']['has']('MediaEmbedEditing'))return;const _0x5cc250=_0x2ba7e1['plugins']['get']('TrackChangesEditing'),_0x5822bb=_0x2ba7e1['locale'];_0x5cc250['enableCommand']('mediaEmbed'),_0x5cc250['descriptionFactory']['registerElementLabel']('media',_0x385f54=>c(_0x5822bb,'ELEMENT_MEDIA',_0x385f54)),_0x2ba7e1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3efb19,{writer:_0x1b65d1,options:_0x2dee54})=>{if(_0x2dee54['showSuggestionHighlights'])return _0x1b65d1['createEmptyElement']('div');},'converterPriority':'high'}),_0x2ba7e1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x21b571,_0x4a69ab,_0x2ed310)=>{_0x2ed310['options']['showSuggestionHighlights']&&_0x21b571['stop']();},{'priority':'high'});}}class pt extends _0x2b8ff3{['afterInit'](){const _0x3c5e54=this['editor'];_0x3c5e54['plugins']['has']('MentionEditing')&&_0x3c5e54['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2b8ff3{['afterInit'](){const _0x3a7578=this['editor'];if(!_0x3a7578['plugins']['has']('MergeFieldsEditing'))return;const _0x221baf=_0x3a7578['plugins']['get']('TrackChangesEditing'),_0x47d49b=_0x3a7578['locale'];_0x221baf['enableCommand']('insertMergeField'),_0x221baf['enableCommand']('insertMergeFieldBlock'),_0x221baf['enableCommand']('insertMergeFieldImage'),_0x221baf['descriptionFactory']['registerElementLabel']('mergeField',_0x30bf8d=>c(_0x47d49b,'ELEMENT_MERGE_FIELD',_0x30bf8d)),_0x221baf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2cef0d=>c(_0x47d49b,'ELEMENT_MERGE_FIELD',_0x2cef0d)),_0x221baf['descriptionFactory']['registerDescriptionCallback'](_0x4b0b92=>{if('insertion'!=_0x4b0b92['type']&&'deletion'!=_0x4b0b92['type'])return;const _0x5b596e=_0x4b0b92['getContainedElement']();if(null==_0x5b596e)return;const _0x3df95c=_0x3a7578['plugins']['get']('MergeFieldsEditing');let _0x56a937;switch(_0x3df95c['getMergeFieldType'](_0x5b596e)){case null:return;case'image':{const _0x5b1466=_0x3df95c['unwrapAffixes'](_0x5b596e['getAttribute']('src'));_0x56a937=_0x3df95c['getLabel'](_0x5b1466)||_0x5b1466;break;}default:{const _0x2390bb=_0x5b596e['getAttribute']('id');_0x56a937=_0x3df95c['getLabel'](_0x2390bb)||_0x2390bb;break;}}return'insertion'==_0x4b0b92['type']?{'type':'insertion','content':c(_0x47d49b,'*Insert:*\x20%0','\x22'+_0x56a937+'\x22\x20'+c(_0x47d49b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x47d49b,'*Remove:*\x20%0','\x22'+_0x56a937+'\x22\x20'+c(_0x47d49b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2b8ff3{['afterInit'](){const _0x69c206=this['editor'],_0x3602aa=_0x69c206['plugins']['get']('TrackChangesEditing');_0x69c206['plugins']['has']('MultiLevelList')&&(_0x3602aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x3602aa['registerBlockAttribute']('listMarkerStyle'),_0x3602aa['descriptionFactory']['registerDescriptionCallback'](_0xddb8c2=>this['handleDescriptions'](_0xddb8c2)));}['handleDescriptions'](_0x3fcf2a){const _0x4880f5=this['editor']['locale'],{data:_0x30eb70}=_0x3fcf2a,_0x105f74={'type':'format','content':''};if(_0x30eb70&&'listMarkerStyle'==_0x30eb70['key']){if(!_0x30eb70['oldValue'])return{'type':'format','content':c(_0x4880f5,'*Set\x20format:*\x20%0',c(_0x4880f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30eb70['newValue']+')'};if(!_0x30eb70['newValue']){let _0x3bb336=_0x3fcf2a['head'];for(;_0x3bb336;){if(_0x3bb336['data']&&'listType'==_0x3bb336['data']['key']&&_0x3bb336['data']['newValue'])return _0x105f74;_0x3bb336=_0x3bb336['next'];}return{'type':'format','content':c(_0x4880f5,'*Remove\x20format:*\x20%0',c(_0x4880f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30eb70['oldValue']+')'};}}}}class bt extends _0x2b8ff3{['afterInit'](){const _0x333b23=this['editor'];if(!_0x333b23['plugins']['has']('PageBreakEditing'))return;_0x333b23['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x135920=_0x333b23['plugins']['get']('TrackChangesEditing'),_0x19c47d=_0x333b23['locale'];_0x135920['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c0f7c=>c(_0x19c47d,'ELEMENT_PAGE_BREAK',_0x2c0f7c));}}class yt extends _0x2b8ff3{['afterInit'](){const _0x16b9b5=this['editor'];if(!_0x16b9b5['plugins']['has']('Paragraph'))return;const _0x2550cb=_0x16b9b5['locale'],_0x160eb2=_0x16b9b5['plugins']['get']('TrackChangesEditing');_0x160eb2['descriptionFactory']['registerElementLabel']('paragraph',_0x3896fc=>c(_0x2550cb,'ELEMENT_PARAGRAPH',_0x3896fc)),_0x160eb2['enableDefaultAttributesIntegration']('paragraph'),_0x160eb2['enableCommand']('insertParagraph'),_0x16b9b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16b9b5),{'priority':'highest'}),_0x16b9b5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c4fef,_0x2a5525,_0x494a19)=>{_0x494a19['options']['showSuggestionHighlights']&&nr(_0x16b9b5,{'showActiveMarker':!0x1})(_0x5c4fef,_0x2a5525,_0x494a19);},{'priority':'highest'});const _0x2ee8c6=_0x160eb2['descriptionFactory'];_0x2ee8c6['registerDescriptionCallback'](_0x24af4c=>{if('insertion'!==_0x24af4c['type'])return;const {start:_0x2b08ff,end:_0x241e53}=_0x24af4c['getFirstRange']();if(!_0x2b08ff['isTouching'](_0x241e53)||!_0x2b08ff['nodeAfter'])return;const _0x33fe81=_0x16b9b5['model']['schema'],_0x149940=_0x2b08ff['nodeAfter'];return _0x33fe81['isBlock'](_0x149940)&&!_0x33fe81['isLimit'](_0x149940)&&_0x33fe81['checkChild'](_0x149940,'$text')?{'type':'insertion','content':c(_0x2550cb,'*Insert:*\x20%0',_0x2ee8c6['getItemLabel'](_0x149940,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdee050=this['editor'],_0x3253fb=_0xdee050['locale'];_0xdee050['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6503f=>{if('formatBlock'!=_0xc6503f['type'])return;const {data:_0x137ced}=_0xc6503f;return _0x137ced&&'paragraph'==_0x137ced['commandName']?{'type':'format','content':c(_0x3253fb,'*Change\x20to:*\x20%0',c(_0x3253fb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5ed6b7,{showActiveMarker:_0x571db1=!0x0}={}){return(_0x4a81ea,_0x4943a5,_0x2e0fda)=>{const _0x205eb1=_0x5ed6b7['plugins']['get']('TrackChangesEditing'),_0x616ca8=_0x4943a5['markerRange']['start'],_0x1502c0=_0x4943a5['markerRange']['end'],_0x19cdb6=_0x5ed6b7['model']['schema'];if(!_0x616ca8['isTouching'](_0x1502c0)||!_0x616ca8['nodeAfter'])return;const _0x2a4c95=_0x616ca8['nodeAfter'];if(_0x19cdb6['isBlock'](_0x2a4c95)&&!_0x19cdb6['isLimit'](_0x2a4c95)&&_0x19cdb6['checkChild'](_0x2a4c95,'$text')){if(!_0x2e0fda['consumable']['consume'](_0x4943a5['markerRange'],_0x4a81ea['name']))return;const {authorId:_0x137026}=_0x205eb1['_splitMarkerName'](_0x4943a5['markerName']),_0x4fec56=_0x2e0fda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x137026}),_0x3587f3=_0x2e0fda['mapper']['toViewPosition'](_0x1502c0);_0x571db1&&_0x205eb1['activeMarkers']['includes'](_0x4943a5['markerName'])&&_0x2e0fda['writer']['addClass']('ck-suggestion-marker--active',_0x4fec56),_0x2e0fda['writer']['insert'](_0x3587f3,_0x4fec56),_0x2e0fda['mapper']['bindElementToMarker'](_0x4fec56,_0x4943a5['markerName']);}};}class jt extends _0x2b8ff3{['afterInit'](){const _0x437ffc=this['editor'];_0x437ffc['commands']['get']('replaceSource')&&_0x437ffc['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2b8ff3{['afterInit'](){const _0x437a8b=this['editor'];if(!_0x437a8b['plugins']['has']('RemoveFormatEditing'))return;_0x437a8b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fb589=this['editor'];_0x1fb589['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae458=>{if('formatBlock'!=_0x1ae458['type']&&'formatInline'!=_0x1ae458['type'])return;const {data:_0x4d6279}=_0x1ae458;return _0x4d6279&&'removeFormat'==_0x4d6279['commandName']?{'type':'format','content':c(_0x1fb589['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2b8ff3{['afterInit'](){const _0x49f252=this['editor'];if(!_0x49f252['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x55f82c=_0x49f252['plugins']['get']('TrackChangesEditing');_0x55f82c['enableCommand']('goToPreviousRestrictedEditingException'),_0x55f82c['enableCommand']('goToNextRestrictedEditingException');const _0x2274c1=_0x49f252['plugins']['get']('RestrictedEditingModeEditing');_0x2274c1['enableCommand']('trackChanges'),_0x2274c1['enableCommand']('acceptSuggestion'),_0x2274c1['enableCommand']('discardSuggestion'),_0x2274c1['enableCommand']('acceptAllSuggestions'),_0x2274c1['enableCommand']('discardAllSuggestions'),_0x2274c1['enableCommand']('acceptSelectedSuggestions'),_0x2274c1['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2b8ff3{['afterInit'](){const _0x3bd434=this['editor'];if(!_0x3bd434['plugins']['has']('ShiftEnter'))return;const _0x514bb0=_0x3bd434['plugins']['get']('TrackChangesEditing');_0x514bb0['enableCommand']('shiftEnter'),_0x3bd434['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3bd434),{'priority':'high'}),_0x3bd434['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3bd434),{'priority':'high'}),_0x3bd434['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5460ba,_0x34cf0e,_0x384c77)=>{_0x384c77['options']['showSuggestionHighlights']&&je(_0x3bd434,{'showActiveMarker':!0x1})(_0x5460ba,_0x34cf0e,_0x384c77);}),_0x514bb0['descriptionFactory']['registerElementLabel']('softBreak',_0x435694=>c(_0x3bd434['locale'],'ELEMENT_LINE_BREAK',_0x435694));}}function je(_0x22b6a3,{showActiveMarker:_0x49fa03=!0x0}={}){return(_0x107dfb,_0x5408be,_0x44e2f7)=>{const _0x555f4a=_0x22b6a3['plugins']['get']('TrackChangesEditing');if(!_0x44e2f7['consumable']['test'](_0x5408be['markerRange'],_0x107dfb['name']))return;const _0x22d6fe=_0x22b6a3['model'];for(const _0x28c723 of _0x5408be['markerRange']['getItems']()){if(!_0x28c723['is']('element','softBreak'))continue;const _0xbc1077='deletion'==_0x5408be['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x104bc0}=_0x555f4a['_splitMarkerName'](_0x5408be['markerName']),_0x2e55b3=_0x44e2f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbc1077,'data-author-id':_0x104bc0}),_0x2a4f7b=_0x44e2f7['mapper']['toViewPosition'](_0x22d6fe['createPositionBefore'](_0x28c723));_0x49fa03&&_0x555f4a['activeMarkers']['includes'](_0x5408be['markerName'])&&_0x44e2f7['writer']['addClass']('ck-suggestion-marker--active',_0x2e55b3),_0x44e2f7['writer']['insert'](_0x2a4f7b,_0x2e55b3),_0x44e2f7['mapper']['bindElementToMarker'](_0x2e55b3,_0x5408be['markerName']);}};}class _t extends _0x2b8ff3{['afterInit'](){const _0x504726=this['editor'],_0x33a51a=_0x504726['model'],_0x105562=_0x504726['locale'];if(!_0x504726['plugins']['has']('StandardEditingModeEditing'))return;const _0x21395e=_0x504726['plugins']['get']('TrackChangesEditing'),_0xdcbc='restrictedEditingException',_0xd4b584=_0x504726['commands']['get'](_0xdcbc);_0x21395e['enableCommand'](_0xdcbc,(_0x27be40,_0x1958d9={})=>{const _0x14857b=_0x33a51a['document']['selection'];if(_0x14857b['isCollapsed'])return void _0x27be40(_0x1958d9);const _0x85b2cd=void 0x0!==_0x1958d9['forceValue']?_0x1958d9['forceValue']:!_0xd4b584['value'];_0x33a51a['change'](()=>{const _0x36b257=Array['from'](_0x14857b['getRanges']());for(const _0x51ba24 of _0x36b257){const _0x471a60=_0x85b2cd?[_0x51ba24]:io(_0xdcbc,_0x51ba24,_0x33a51a);for(const _0x1c513b of _0x471a60)_0x21395e['markInlineFormat'](_0x1c513b,{'commandName':_0xdcbc,'commandParams':[{'forceValue':_0x85b2cd}]});}});}),_0x21395e['descriptionFactory']['registerDescriptionCallback'](_0x354702=>{if('formatBlock'!=_0x354702['type']&&'formatInline'!=_0x354702['type'])return;const {data:_0x551c21}=_0x354702;return _0x551c21&&_0x551c21['commandName']==_0xdcbc?_0x551c21['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x105562,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x105562,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2b8ff3{['afterInit'](){const _0x7ed146=this['editor'];if(!_0x7ed146['plugins']['has']('Style')||!_0x7ed146['plugins']['has']('DataSchema'))return;const _0x4a1986=_0x7ed146['plugins']['get']('TrackChangesEditing'),_0x51f6ef=_0x7ed146['locale'],_0x3fcbfb=_0x7ed146['config']['get']('style')||{},_0x2acf7b=_0x7ed146['plugins']['get']('GeneralHtmlSupport'),_0x483db4=_0x7ed146['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7ed146['plugins']['get']('DataSchema'),_0x3fcbfb['definitions']);_0x4a1986['enableDefaultAttributesIntegration']('style');const _0x1f8f3c=new Set();for(const _0x380a38 of _0x483db4['block']){const _0x161842=_0x2acf7b['getGhsAttributeNameForElement'](_0x380a38['element']);_0x1f8f3c['add'](_0x161842);}const _0x368876=new Set();for(const _0xd02cc4 of _0x483db4['inline']){const _0x7b658c=_0x2acf7b['getGhsAttributeNameForElement'](_0xd02cc4['element']);_0x368876['add'](_0x7b658c);for(const _0x235a61 of _0xd02cc4['ghsAttributes'])_0x368876['add'](_0x235a61);}for(const _0x2423fe of _0x1f8f3c)_0x4a1986['registerBlockAttribute'](_0x2423fe),_0x4a1986['descriptionFactory']['registerAttributeLabel'](_0x2423fe,c(_0x51f6ef,'FORMAT_STYLE'));for(const _0x534a9b of _0x368876)_0x4a1986['registerInlineAttribute'](_0x534a9b),_0x4a1986['descriptionFactory']['registerAttributeLabel'](_0x534a9b,c(_0x51f6ef,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d711c=this['editor'],_0x42074f=_0x3d711c['locale'];_0x3d711c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9f1b=>{if('formatBlock'!=_0x1d9f1b['type']&&'formatInline'!=_0x1d9f1b['type'])return;const {data:_0x3153b9}=_0x1d9f1b;return _0x3153b9&&'style'===_0x3153b9['commandName']?_0x3153b9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x42074f,'*Set\x20format:*\x20%0',_0x3153b9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x42074f,'*Remove\x20format:*\x20%0',_0x3153b9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2b8ff3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4bfb99){super(_0x4bfb99),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x107312=this['editor'],_0x33e576=_0x107312['model']['document']['selection'];if(!_0x107312['plugins']['has']('TableEditing'))return;const _0x3bdb29=_0x107312['locale'],_0x1d7706=_0x107312['plugins']['get']('TrackChangesEditing'),_0x5e4041=_0x107312['plugins']['get']('TableUtils');_0x1d7706['descriptionFactory']['registerElementLabel']('table',_0x118a92=>c(_0x3bdb29,'ELEMENT_TABLE',_0x118a92)),this['_setupColumnsRowsFixing'](),_0x1d7706['enableCommand']('insertTable'),_0x1d7706['enableCommand']('selectTableRow'),_0x1d7706['enableCommand']('selectTableColumn');for(const _0x5a5e58 of['insertTableRowAbove','insertTableRowBelow']){const _0x1e40b4=_0x107312['commands']['get'](_0x5a5e58);_0x1d7706['enableCommand'](_0x5a5e58,_0x196530=>{_0x107312['model']['change'](_0x46c36c=>{_0x196530();const _0x21d747='above'===_0x1e40b4['order'],_0x3fc9aa=_0x5e4041['getSelectionAffectedTableCells'](_0x33e576),_0x5cb6b9=_0x5e4041['getRowIndexes'](_0x3fc9aa),_0x5d0eb7=_0x21d747?_0x5cb6b9['first']-0x1:_0x5cb6b9['last']+0x1,_0x2b246b=_0x3fc9aa[0x0]['findAncestor']('table'),_0x687cc8=_0x5e4041['createTableWalker'](_0x2b246b,{'startRow':_0x5d0eb7,'endRow':_0x5d0eb7}),_0x2c3dce=Array['from'](_0x687cc8)['map'](_0x99c937=>_0x46c36c['createRangeOn'](_0x99c937['cell']));_0x1d7706['markMultiRangeInsertion'](_0x2c3dce,'tableRow');});});}for(const _0x23ca9e of['insertTableColumnLeft','insertTableColumnRight']){const _0x3029d5=_0x107312['commands']['get'](_0x23ca9e);_0x1d7706['enableCommand'](_0x23ca9e,_0x13488=>{_0x107312['model']['change'](_0x50cb11=>{_0x13488();const _0x5d43b6='left'===_0x3029d5['order'],_0x306eb4=_0x5e4041['getSelectionAffectedTableCells'](_0x33e576),_0x4859b6=_0x5e4041['getColumnIndexes'](_0x306eb4),_0x590b47=_0x5d43b6?_0x4859b6['first']-0x1:_0x4859b6['last']+0x1,_0x5a3eb1=_0x306eb4[0x0]['findAncestor']('table'),_0x55266e=_0x5e4041['createTableWalker'](_0x5a3eb1,{'startRow':0x0,'column':_0x590b47,'includeAllSlots':!0x1}),_0x2a6820=Array['from'](_0x55266e)['map'](_0x2ba2a6=>_0x50cb11['createRangeOn'](_0x2ba2a6['cell']));_0x1d7706['markMultiRangeInsertion'](_0x2a6820,'tableColumn');});});}for(const _0x230820 of['removeTableRow','removeTableColumn']){const _0x5b60b6=_0x230820['substr'](0xb),_0x2708a8=_0x5b60b6['toLowerCase'](),_0x1191af=_0x2708a8['substr'](0x0,0x3)+'span',_0x35cfdc='table'+_0x5b60b6,_0x48faf8='min'+_0x5b60b6,_0x18335d='max'+_0x5b60b6;_0x1d7706['enableCommand'](_0x230820,()=>{_0x107312['model']['change'](_0x13a693=>{const _0xf63651=_0x5e4041['getSelectionAffectedTableCells'](_0x33e576),_0x210575=_0xf63651[0x0]['findAncestor']('table');let _0x567119;if('removeTableRow'==_0x230820){const _0x3b700c=_0x5e4041['getRowIndexes'](_0xf63651);_0x567119={'startRow':_0x3b700c['first'],'endRow':_0x3b700c['last'],'includeAllSlots':!0x0};}else{const _0x591288=_0x5e4041['getColumnIndexes'](_0xf63651);_0x567119={'startColumn':_0x591288['first'],'endColumn':_0x591288['last'],'includeAllSlots':!0x0};}const _0x55cf41=_0x5e4041['createTableWalker'](_0x210575,_0x567119),_0x5878ed=Array['from'](_0x55cf41)['map'](({cell:_0x46dd9f})=>_0x46dd9f),_0x4e04f4=Ne(_0x5878ed['filter'](_0x222f90=>_0x222f90['hasAttribute'](_0x1191af))),_0x2dac67=Ne(_0x5878ed['filter'](_0x1a87d6=>!_0x1a87d6['hasAttribute'](_0x1191af)))['map'](_0x312fa1=>_0x13a693['createRangeOn'](_0x312fa1)),_0x52d9ed=_0x1d7706['markMultiRangeDeletion'](_0x2dac67,_0x35cfdc);if(_0x52d9ed&&('tableRow'==_0x52d9ed['subType']||'tableColumn'==_0x52d9ed['subType'])){const _0x326c85=this['_getSuggestionCoords'](_0x52d9ed);for(const _0x11e60d of _0x4e04f4){const _0x5f13af=_0x13a693['createRangeOn'](_0x11e60d),_0xf5b25a=_0x5e4041['getCellLocation'](_0x11e60d),_0x184e74=_0x11e60d['getAttribute'](_0x1191af)-0x1,_0x463c4d=_0x326c85[_0x48faf8],_0x42292b=_0x326c85[_0x18335d];_0x463c4d<=_0xf5b25a[_0x2708a8]&&_0xf5b25a[_0x2708a8]+_0x184e74<=_0x42292b&&_0x52d9ed['addRange'](_0x5f13af);}}});});}function _0x4b99ac(_0xea3dd6){const _0x28ed37=Array['from'](_0x33e576['getRanges']())['map'](_0x4d2659=>_0x2346b0['fromRange'](_0x4d2659));_0x107312['model']['change'](_0xf239d8=>{const _0x159df6=_0xf239d8['batch'];_0xea3dd6=_0xea3dd6['filter'](_0x5c7cf6=>'$graveyard'!=_0x5c7cf6['root']['rootName']),_0xf239d8['setSelection'](_0xea3dd6),_0x107312['commands']['get']('removeTableRow')['refresh'](),_0x107312['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x107312['model']['enqueueChange'](()=>{_0x107312['model']['enqueueChange'](_0x159df6,_0x5b5de4=>{const _0x5e692f=_0x28ed37['filter'](_0x1971fa=>'$graveyard'!=_0x1971fa['root']['rootName']);_0x5e692f['length']>0x0&&_0x5b5de4['setSelection'](_0x5e692f);for(const _0x13cf2d of _0x28ed37)_0x13cf2d['detach']();});});});}function _0x21eeaf(_0x5541d8){_0x107312['model']['change'](_0x4f8c37=>{const _0x3d4be6=Array['from'](_0x33e576['getRanges']())['map'](_0x11ae3d=>_0x2346b0['fromRange'](_0x11ae3d)),_0x2b48c8=[];for(const _0x140218 of _0x5541d8)for(const _0x5c8fb9 of _0x140218['getItems']({'shallow':!0x0}))_0x2b48c8['push'](_0x5c8fb9);for(const _0x502fce of _0x2b48c8)'$graveyard'!=_0x502fce['root']['rootName']&&(_0x4f8c37['setSelection'](_0x4f8c37['createPositionAt'](_0x502fce,0x0)),_0x107312['commands']['get']('removeTableColumn')['refresh'](),_0x107312['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1c9375=_0x3d4be6['filter'](_0x5d0d5c=>'$graveyard'!=_0x5d0d5c['root']['rootName']);_0x1c9375['length']>0x0&&_0x4f8c37['setSelection'](_0x1c9375);for(const _0x579830 of _0x3d4be6)_0x579830['detach']();});}function _0xa77b35(_0x53b143,_0x2153e6){return _0x2153e6['every'](_0x36781e=>_0x53b143['some'](_0x1d8181=>_0x1d8181['end']['isEqual'](_0x36781e['start'])||_0x36781e['end']['isEqual'](_0x1d8181['start'])));}function _0xc15ad3(_0x3eedcb,_0x33550d){return!_0x3eedcb['some'](_0x102c86=>_0x33550d['some'](_0x202624=>_0x102c86['isIntersecting'](_0x202624)))&&_0x3eedcb['some'](_0x556d68=>_0x33550d['some'](_0x4e52e0=>_0x556d68['end']['isTouching'](_0x4e52e0['start'])));}_0x107312['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x92ea16,_0x5b967b,_0x2ce46d)=>{if(!_0x2ce46d['options']['showSuggestionHighlights'])return;const _0x99b9b6=_0x5b967b['item'];if(!_0x99b9b6)return;const _0x5c9a3f=_0x2ce46d['mapper']['toViewElement'](_0x99b9b6);function _0x446e97(_0xbd68af){return Array['isArray'](_0xbd68af)?_0xbd68af:[_0xbd68af];}_0x5c9a3f&&'tableCell'===_0x99b9b6['name']&&_0x25aee8(_0x5c9a3f,_0x2ce46d['writer'],(_0x35c033,_0x32b720,_0x35d227)=>_0x35d227['addClass'](_0x446e97(_0x32b720['classes']),_0x35c033),(_0x174d78,_0x20c2f5,_0x5d33be)=>_0x5d33be['removeClass'](_0x446e97(_0x20c2f5['classes']),_0x174d78));},{'priority':'highest'}),_0x1d7706['descriptionFactory']['registerDescriptionCallback'](_0xaa32c=>{if('insertion'!=_0xaa32c['type']&&'deletion'!=_0xaa32c['type'])return;const _0x9a11f4=_0xaa32c['getContainedElement']();if(null!=_0x9a11f4&&_0x9a11f4['is']('element','table')){if('insertion'==_0xaa32c['type']){const _0x1289c3=_0xaa32c['getItems']()['filter'](_0x5e76f7=>_0x5e76f7['is']('$textProxy'))['map'](_0x14636f=>_0x14636f['data']);if(_0x1289c3['length'])return{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1289c3['join']('\x20')+'\x22'))};}if('deletion'==_0xaa32c['type']){const _0x30abd0=_0xaa32c['getItems']()['filter'](_0x4d7b4b=>_0x4d7b4b['is']('$textProxy'))['map'](_0x5c514c=>_0x5c514c['data']);if(_0x30abd0['length'])return{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30abd0['join']('\x20')+'\x22'))};}}}),_0x1d7706['descriptionFactory']['registerDescriptionCallback'](_0x3322ba=>{if('tableRow'==_0x3322ba['subType']){const _0x50d082=_0x3322ba['getItems']()['filter'](_0x10890e=>_0x10890e['is']('$textProxy'))['map'](_0x3ae672=>_0x3ae672['data']),_0x38eb18=this['_getSuggestionCoords'](_0x3322ba),_0x2fae1f=_0x38eb18['maxRow']-_0x38eb18['minRow']+0x1;if('insertion'==_0x3322ba['type'])return _0x50d082['length']?{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fae1f,'\x22'+_0x50d082['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW',_0x2fae1f))};if('deletion'==_0x3322ba['type'])return _0x50d082['length']?{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fae1f,'\x22'+_0x50d082['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW',_0x2fae1f))};}if('tableColumn'==_0x3322ba['subType']){const _0x3e1502=_0x3322ba['getItems']()['filter'](_0x3f3e36=>_0x3f3e36['is']('$textProxy'))['map'](_0x5cc53b=>_0x5cc53b['data']),_0x4dd8e1=this['_getSuggestionCoords'](_0x3322ba),_0x174a39=_0x4dd8e1['maxColumn']-_0x4dd8e1['minColumn']+0x1;if('insertion'==_0x3322ba['type'])return _0x3e1502['length']?{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x174a39,'\x22'+_0x3e1502['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN',_0x174a39))};if('deletion'==_0x3322ba['type'])return _0x3e1502['length']?{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x174a39,'\x22'+_0x3e1502['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN',_0x174a39))};}}),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4b99ac),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4b99ac),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x21eeaf),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x21eeaf),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xa77b35),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xa77b35),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xc15ad3),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xc15ad3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x10bb9c=this['editor'],_0xfa4665=_0x10bb9c['model']['document']['selection'];return(_0x1a60b0,_0x5dcea4)=>{_0x10bb9c['model']['change'](_0x3edc0d=>{const {commandName:_0x43565a,commandParams:_0x3464ba}=_0x5dcea4;let _0x5bb869=_0x1a60b0[0x0]['end']['nodeBefore'];_0x3464ba&&_0x3464ba[0x0]&&!0x1===_0x3464ba[0x0]['forceValue']&&(_0x5bb869=_0x1a60b0[0x0]['start']['nodeAfter']);const _0x4a9fb4=_0x3edc0d['createRangeIn'](_0x5bb869);if('$graveyard'==_0x4a9fb4['root']['rootName'])return;const _0x6f9ba9=Array['from'](_0xfa4665['getRanges']())['map'](_0x36730b=>_0x2346b0['fromRange'](_0x36730b));_0x3edc0d['setSelection'](_0x4a9fb4),_0x10bb9c['commands']['get'](_0x43565a)['refresh'](),_0x3464ba['push']({'forceDefaultExecution':!0x0}),_0x10bb9c['execute'](_0x43565a,..._0x3464ba);const _0x25602e=_0x6f9ba9['filter'](_0x1b3d09=>'$graveyard'!=_0x1b3d09['root']['rootName']);_0x25602e['length']>0x0&&_0x3edc0d['setSelection'](_0x25602e);for(const _0x183205 of _0x6f9ba9)_0x183205['detach']();});};}['_getCoordsForCells'](_0x1c60f4){const _0x2dbaec=this['editor']['plugins']['get']('TableUtils');let _0x181d8e=Number['MAX_SAFE_INTEGER'],_0x1fa2c3=Number['MIN_SAFE_INTEGER'],_0x4d5116=Number['MAX_SAFE_INTEGER'],_0x5f2775=Number['MIN_SAFE_INTEGER'];for(const _0x7a5554 of _0x1c60f4){if('$graveyard'==_0x7a5554['root']['rootName'])continue;const {row:_0x182974,column:_0x1ab786}=_0x2dbaec['getCellLocation'](_0x7a5554),_0x5374a3=_0x7a5554['hasAttribute']('rowspan')?_0x7a5554['getAttribute']('rowspan')-0x1:0x0,_0xb4e925=_0x7a5554['hasAttribute']('colspan')?_0x7a5554['getAttribute']('colspan')-0x1:0x0;_0x181d8e=_0x182974<_0x181d8e?_0x182974:_0x181d8e,_0x1fa2c3=_0x182974+_0x5374a3>_0x1fa2c3?_0x182974+_0x5374a3:_0x1fa2c3,_0x4d5116=_0x1ab786<_0x4d5116?_0x1ab786:_0x4d5116,_0x5f2775=_0x1ab786+_0xb4e925>_0x5f2775?_0x1ab786+_0xb4e925:_0x5f2775;}return{'minRow':_0x181d8e,'maxRow':_0x1fa2c3,'minColumn':_0x4d5116,'maxColumn':_0x5f2775};}['_setupColumnsRowsFixing'](){const _0x5471ad=this['editor'],_0x301722=_0x5471ad['plugins']['get']('TrackChangesEditing'),_0xc27644=_0x5471ad['plugins']['get']('TableUtils');_0x5471ad['model']['document']['on']('change:data',()=>{const _0x144a57=Array['from'](_0x5471ad['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47f985,data:_0x33ed6e}of _0x144a57){const {group:_0x42673d,id:_0x213f67,subType:_0x31ca81}=_0x301722['_splitMarkerName'](_0x47f985);if('suggestion'!=_0x42673d)continue;if(null!=_0x33ed6e['oldRange'])continue;const _0x1fda95=_0x301722['getSuggestion'](_0x213f67);this['_tablePostFixingSubtypes']['includes'](_0x31ca81)&&this['_tableSuggestions']['add'](_0x1fda95);}},{'priority':'low'});const _0x5688da=(_0x25f66c,_0x4e5510)=>{let _0x5252c4=!0x1;const _0x586c96=_0x4e5510['createRangeOn'](_0x25f66c),_0x4d1638=_0x25f66c['findAncestor']('table'),_0x11a094=_0xc27644['getCellLocation'](_0x25f66c);for(const _0x2d2ba0 of this['_tableSuggestions']){const _0x32019d=_0x2d2ba0['subType'],_0x4c1faa=_0x32019d['startsWith']('tablePaste'),_0x3feb10=_0x32019d['substr'](_0x4c1faa?0xa:0x5),_0x372f27=_0x3feb10['toLowerCase'](),_0x499584=_0x372f27['substr'](0x0,0x3)+'span',_0x5362e1='min'+_0x3feb10,_0x3182c3='max'+_0x3feb10;if(!_0x2d2ba0['isInContent'])continue;if(_0x4d1638!=_0x2d2ba0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d2ba0['isIntersectingWithRange'](_0x586c96))continue;const _0x21082b=_0x25f66c['hasAttribute'](_0x499584)?_0x25f66c['getAttribute'](_0x499584)-0x1:0x0,_0x51837a=this['_getSuggestionCoords'](_0x2d2ba0),_0x4d4b79=_0x51837a[_0x5362e1],_0x208be5=_0x51837a[_0x3182c3];_0x4d4b79<=_0x11a094[_0x372f27]&&_0x11a094[_0x372f27]+_0x21082b<=_0x208be5&&(_0x2d2ba0['addRange'](_0x586c96),_0x5252c4=!0x0);}return _0x5252c4;};_0x5471ad['model']['document']['registerPostFixer'](_0x57476a=>{let _0x10d734=!0x1;for(const _0x3e59ce of _0x5471ad['model']['document']['differ']['getChanges']())if('insert'==_0x3e59ce['type']){if('tableRow'==_0x3e59ce['name']){for(const _0xe0b241 of _0x3e59ce['position']['nodeAfter']['getChildren']())_0x10d734=_0x10d734||_0x5688da(_0xe0b241,_0x57476a);}else'tableCell'==_0x3e59ce['name']&&(_0x10d734=_0x10d734||_0x5688da(_0x3e59ce['position']['nodeAfter'],_0x57476a));}return _0x10d734;});}['_getSuggestionCoords'](_0x497cb5){return this['_getCoordsForCells'](_0x497cb5['getRanges']()['map'](_0xd9c875=>_0xd9c875['start']['nodeAfter']));}}function Ne(_0x5b6023){return Array['from'](new Set(_0x5b6023)['values']());}class Nt extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x56cb28=this['editor'],_0x33905d=_0x56cb28['model']['document']['selection'],_0x2787dc=_0x56cb28['locale'];if(!_0x56cb28['plugins']['has']('TableEditing'))return;const _0x327019=_0x56cb28['plugins']['get']('TrackChangesEditing'),_0x550e15=_0x56cb28['plugins']['get']('TableUtils'),_0x14c1ea=_0x56cb28['plugins']['get'](Ct);_0x14c1ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x327019['enableCommand']('mergeTableCells',()=>{const _0x10a516=_0x550e15['getSelectionAffectedTableCells'](_0x56cb28['model']['document']['selection']);_0x56cb28['model']['change'](()=>{_0x327019['markMultiRangeBlockFormat'](_0x10a516,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56cb28['commands']['get']('mergeTableCells')['on']('execute',(_0x566e84,_0xbd11e)=>{_0x56cb28['commands']['get']('trackChanges')['value']&&(_0xbd11e['length']>0x0&&_0xbd11e[_0xbd11e['length']-0x1]&&_0xbd11e[_0xbd11e['length']-0x1]['forceDefaultExecution']||_0x327019['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x566e84['stop']());},{'priority':'highest'});for(const _0x2f9f0f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x56e609=_0x56cb28['commands']['get'](_0x2f9f0f);_0x327019['enableCommand'](_0x2f9f0f,()=>{const _0x58b087=_0x56cb28['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd5f183=>_0xd5f183['is']('element','tableCell')),_0x4bcf9f=_0x56e609['value'];_0x56cb28['model']['change'](()=>{_0x327019['markMultiRangeBlockFormat']([_0x58b087,_0x4bcf9f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41792d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2dbc13=_0x56cb28['commands']['get'](_0x41792d);_0x327019['enableCommand'](_0x41792d,()=>{const _0x314688=_0x550e15['getSelectionAffectedTableCells'](_0x56cb28['model']['document']['selection'])[0x0],_0x353013=_0x314688['findAncestor']('table'),{column:_0x58b5a8,row:_0x10f2ed}=_0x550e15['getCellLocation'](_0x314688);let _0x1e84fc=[];if('horizontally'==_0x2dbc13['direction']){const _0x4aed70=_0x550e15['createTableWalker'](_0x353013,{'startRow':_0x10f2ed,'endRow':_0x10f2ed,'includeAllSlots':!0x0});_0x1e84fc=Array['from'](_0x4aed70)['map'](_0x572308=>_0x572308['cell']);}else{const _0x4e3452=_0x550e15['createTableWalker'](_0x353013,{'column':_0x58b5a8,'includeAllSlots':!0x0});_0x1e84fc=Array['from'](_0x4e3452)['map'](_0xb472b=>_0xb472b['cell']);}_0x56cb28['model']['change'](_0x4163b7=>{_0x327019['markBlockFormat'](_0x4163b7['createRangeOn'](_0x314688),{'commandName':_0x41792d,'commandParams':[]},_0x1e84fc,_0x41792d);});});}_0x327019['descriptionFactory']['registerDescriptionCallback'](_0x32474f=>{if('formatBlock'!=_0x32474f['type']&&'formatInline'!=_0x32474f['type'])return;const {data:_0x22c694}=_0x32474f;return _0x22c694&&'mergeTableCells'==_0x22c694['commandName']?{'type':'format','content':c(_0x2787dc,'*Merge\x20cells*')}:void 0x0;}),_0x327019['descriptionFactory']['registerDescriptionCallback'](_0x5dc61c=>{if('formatBlock'!=_0x5dc61c['type']&&'formatInline'!=_0x5dc61c['type'])return;const {data:_0x2469e8}=_0x5dc61c;return _0x2469e8?'splitTableCellVertically'==_0x2469e8['commandName']?{'type':'format','content':c(_0x2787dc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2469e8['commandName']?{'type':'format','content':c(_0x2787dc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4004fa=_0x14c1ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x496b9e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x327019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x496b9e,'accept',_0x4004fa);for(const _0xd39114 of['splitTableCellVertically','splitTableCellHorizontally'])_0x327019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd39114,'accept',_0x4004fa);_0x327019['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x185b7c=>{_0x56cb28['model']['change'](_0x320a46=>{const _0x242a5a=Array['from'](_0x33905d['getRanges']())['map'](_0x371331=>_0x2346b0['fromRange'](_0x371331));_0x320a46['setSelection'](_0x185b7c),_0x56cb28['commands']['get']('mergeTableCells')['refresh'](),_0x56cb28['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2e8948=_0x242a5a['filter'](_0xb98901=>'$graveyard'!=_0xb98901['root']['rootName']);_0x2e8948['length']>0x0&&_0x320a46['setSelection'](_0x2e8948);for(const _0x210df4 of _0x242a5a)_0x210df4['detach']();});});for(const _0xeba154 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x47e401=_0x56cb28['commands']['get'](_0xeba154);_0x47e401['on']('set:isEnabled',(_0x1d3be0,_0x57a084,_0x5d7ce6)=>{if(_0x5d7ce6){const _0x2477f0=_0x56cb28['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29461c=>_0x29461c['is']('element','tableCell'));this['_areMergableCells'](_0x47e401['value'],_0x2477f0)||(_0x1d3be0['return']=!0x1,_0x1d3be0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x415b66=this['editor']['commands']['get']('mergeTableCells'),_0x4a0834=this['editor']['plugins']['get']('TableUtils');if(!_0x415b66['isEnabled'])return!0x1;const _0x7a6a4=_0x4a0834['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x400ff2 of _0x7a6a4)for(const _0x1617b9 of _0x7a6a4)if(_0x400ff2!=_0x1617b9&&!this['_areMergableCells'](_0x400ff2,_0x1617b9))return!0x1;return!0x0;}['_areMergableCells'](_0x5d8f2d,_0x12aba7){const _0x221796=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58ee93=this['editor']['model']['createRangeOn'](_0x5d8f2d),_0x2f6c7a=this['editor']['model']['createRangeOn'](_0x12aba7),_0x4cf443=new Set(),_0x5c7a37=new Set();for(const _0x11b023 of _0x221796['getSuggestions']())if(('insertion'==_0x11b023['type']||'deletion'==_0x11b023['type']||'mergeTableCells'==_0x11b023['subType'])&&_0x11b023['isInContent']){for(const _0x32d416 of _0x11b023['getRanges']())_0x32d416['containsRange'](_0x58ee93,!0x0)&&_0x4cf443['add'](_0x11b023['type']+':'+_0x11b023['author']['id']),_0x32d416['containsRange'](_0x2f6c7a,!0x0)&&_0x5c7a37['add'](_0x11b023['type']+':'+_0x11b023['author']['id']);}if(_0x4cf443['size']!=_0x5c7a37['size'])return!0x1;for(const _0x4d97e9 of _0x4cf443)if(!_0x5c7a37['has'](_0x4d97e9))return!0x1;return!0x0;}}class Dt extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ea11e=this['editor'];if(!_0x5ea11e['plugins']['has']('TableEditing'))return;const _0x4b35ac=_0x5ea11e['locale'],_0x5909b5=_0x5ea11e['plugins']['get']('TrackChangesEditing');_0x5909b5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5909b5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5909b5['registerBlockAttribute']('headingRows'),_0x5909b5['registerBlockAttribute']('headingColumns'),_0x5909b5['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4b35ac,'FORMAT_HEADER_ROW')),_0x5909b5['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4b35ac,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19a940=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2708dd=this['editor']['plugins']['get']('TableUtils'),_0x409642=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1f2f02({showActiveMarker:_0x5373e1=!0x0,setDataAttribute:_0x2e6f20=!0x0}={}){return(_0x792f81,_0x194e5d,_0x36cb50)=>{const {type:_0x10d3ad,id:_0x3aea8a}=_0x19a940['_splitMarkerName'](_0x194e5d['markerName']),_0x3c21b9=_0x19a940['getSuggestion'](_0x3aea8a),_0x4bd47d=_0x3c21b9['data'];if('formatBlock'!=_0x3c21b9['type']||!_0x4bd47d||'setTableColumnHeader'!=_0x4bd47d['commandName'])return;if(_0x194e5d['item'])return void _0x792f81['stop']();if(!_0x36cb50['consumable']['consume'](_0x194e5d['markerRange'],_0x792f81['name']))return;const _0x2c8953=_0x194e5d['markerRange']['start']['nodeAfter'],_0x194ad2=_0x194e5d['markerRange']['end']['nodeBefore'],_0xcd1981=_0x2c8953['parent']['parent'],{column:_0x37d445}=_0x2708dd['getCellLocation'](_0x2c8953),{column:_0x2eb83a}=_0x2708dd['getCellLocation'](_0x194ad2);for(let _0x40e4b4=_0x37d445;_0x40e4b4<=_0x2eb83a;_0x40e4b4++){const _0x3d2822=_0x2708dd['createTableWalker'](_0xcd1981,{'column':_0x40e4b4,'includeAllSlots':!0x1});for(const _0x2ef721 of _0x3d2822){const _0x2b72e8=_0x2ef721['cell'],_0x320bac=_0x36cb50['mapper']['toViewElement'](_0x2b72e8);_0x36cb50['writer']['addClass']('ck-suggestion-marker-'+_0x10d3ad,_0x320bac),_0x2e6f20&&_0x36cb50['writer']['setAttribute']('data-suggestion',_0x3aea8a,_0x320bac),_0x36cb50['mapper']['bindElementToMarker'](_0x320bac,_0x194e5d['markerName']),_0x5373e1&&(_0x19a940['activeMarkers']['includes'](_0x194e5d['markerName'])?_0x36cb50['writer']['addClass']('ck-suggestion-marker--active',_0x320bac):_0x36cb50['writer']['removeClass']('ck-suggestion-marker--active',_0x320bac));}}};}_0x19a940['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x409642),_0x19a940['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x409642),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1f2f02(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35c3d2,_0x2981f1,_0x11e8db)=>{_0x11e8db['options']['showSuggestionHighlights']&&_0x1f2f02({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x35c3d2,_0x2981f1,_0x11e8db);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x352866,_0x2e5f3d,_0x354c1e)=>{const {type:_0x43397e,id:_0x40aa97}=_0x19a940['_splitMarkerName'](_0x2e5f3d['markerName']),_0x537b04=_0x19a940['getSuggestion'](_0x40aa97),_0x69a370=_0x537b04['data'];if('formatBlock'!=_0x537b04['type']||!_0x69a370||'setTableColumnHeader'!=_0x69a370['commandName'])return;const _0x47a3c5=_0x354c1e['mapper']['markerNameToElements'](_0x2e5f3d['markerName']);if(_0x47a3c5){for(const _0xc09019 of _0x47a3c5)_0x354c1e['writer']['removeClass']('ck-suggestion-marker-'+_0x43397e,_0xc09019),_0x354c1e['writer']['removeClass']('ck-suggestion-marker--active',_0xc09019),_0x354c1e['writer']['removeAttribute']('data-suggestion',_0xc09019),_0x354c1e['mapper']['unbindElementFromMarkerName'](_0xc09019,_0x2e5f3d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcddf48=this['editor'],_0x557680=_0xcddf48['locale'];function _0x4fe04e(_0x3d1356){return{'type':'format','content':c(_0x557680,'*Format:*\x20%0',_0x3d1356)};}_0xcddf48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e401a=>{if('formatBlock'!=_0x5e401a['type'])return;const {data:_0x45c1f0}=_0x5e401a;if(_0x45c1f0){if('setTableRowHeader'==_0x45c1f0['commandName']){const _0x4bd28a=_0x45c1f0['commandParams'][0x0]['forceValue'];return _0x4fe04e(c(_0x557680,_0x4bd28a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x45c1f0['commandName']){const _0x17d5fc=_0x45c1f0['commandParams'][0x0]['forceValue'];return _0x4fe04e(c(_0x557680,_0x17d5fc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x2b8ff3{['afterInit'](){const _0xbffcac=this['editor'],_0x3c0abc=_0xbffcac['locale'],_0x5a0f61=_0xbffcac['plugins']['get']('TrackChangesEditing');function _0x5f0f21(_0x1550e5){return{'type':'format','content':''+c(_0x3c0abc,'*Set\x20table\x20type:*\x20%0',_0x1550e5)};}_0xbffcac['plugins']['has']('TableLayout')&&(_0x5a0f61['enableCommand']('insertTableLayout'),_0x5a0f61['enableDefaultAttributesIntegration']('tableType'),_0x5a0f61['registerBlockAttribute']('tableType'),_0x5a0f61['descriptionFactory']['registerElementLabel'](_0x516aa9=>_0x516aa9['is']('element','table')&&'layout'===_0x516aa9['getAttribute']('tableType'),_0xbf6302=>c(_0x3c0abc,'ELEMENT_LAYOUT_TABLE',_0xbf6302)),_0x5a0f61['descriptionFactory']['registerDescriptionCallback'](_0x57a8ca=>{const {data:_0x3ab741}=_0x57a8ca;if(_0x3ab741&&'tableType'==_0x3ab741['key'])switch(_0x3ab741['newValue']){case'layout':return _0x5f0f21(c(_0x3c0abc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5f0f21(c(_0x3c0abc,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x596e4c=>[_0x596e4c,null]));class $t extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x18d1b5=this['editor'];if(!_0x18d1b5['plugins']['has']('TableClipboard'))return;const _0x58729a=_0x18d1b5['plugins']['get']('TrackChangesEditing'),_0x2fda8d=_0x18d1b5['plugins']['get']('TableUtils'),_0xc942cf=_0x18d1b5['plugins']['get'](Ct),_0x259819=_0x18d1b5['plugins']['get']('TableClipboard'),_0x1d5952=_0x18d1b5['plugins']['get']('TableSelection'),_0x1c3482=_0x18d1b5['plugins']['get'](_0x24226c);_0xc942cf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x18d1b5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x18d1b5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2acf33=null,_0x42df9e=!0x1;_0x1c3482['on']('contentInsertion',(_0x3d419b,_0x40830d)=>{_0x42df9e='paste'===_0x40830d['method'];}),_0x18d1b5['model']['on']('insertContent',(_0x23c3d7,_0x281b7f)=>{if(!_0x42df9e&&null===_0x1d5952['getSelectedTableCells']())return;const [_0x39631c,_0x420260]=_0x281b7f,_0x32a7cd=_0x281b7f[_0x281b7f['length']-0x1];_0x32a7cd&&_0x32a7cd['forceDefaultExecution']||_0x58729a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1ee6fc,_0x56f92d,_0x1560a4,_0x1c153b,_0x455af6){if(_0x56f92d&&!_0x56f92d['is']('documentSelection'))return!0x1;const _0x5bcd42=_0x455af6['getTableIfOnlyTableInContent'](_0x1ee6fc,_0x1560a4);if(!_0x5bcd42||!De(_0x5bcd42,void 0x0,_0x1c153b))return!0x1;const _0xcedd31=_0x1c153b['getSelectionAffectedTableCells'](_0x1560a4['document']['selection']);if(!_0xcedd31['length'])return!0x1;const _0xcd358d=_0xcedd31[0x0]['findAncestor']('table'),_0x40bca6=_0x1c153b['getRowIndexes'](_0xcedd31),_0x75a41=_0x1c153b['getColumnIndexes'](_0xcedd31),_0x4191a0={'startRow':_0x40bca6['first'],'endRow':_0x40bca6['last'],'startColumn':_0x75a41['first'],'endColumn':_0x75a41['last']};return 0x1==_0xcedd31['length']&&(_0x4191a0['endRow']+=_0x1c153b['getRows'](_0x5bcd42)-0x1,_0x4191a0['endColumn']+=_0x1c153b['getColumns'](_0x5bcd42)-0x1),De(_0xcd358d,_0x4191a0,_0x1c153b);}(_0x39631c,_0x420260,_0x18d1b5['model'],_0x2fda8d,_0x259819)&&(_0x23c3d7['stop'](),_0x2acf33={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x18d1b5['model']['change'](()=>{_0x18d1b5['model']['insertContent'](_0x281b7f[0x0],_0x281b7f[0x1],_0x281b7f[0x2],{'forceDefaultExecution':!0x0});const _0x2ad008=_0x400c1f(),{rowInsertionRanges:_0xb9f421,columnInsertionRanges:_0x21caed,insertionRanges:_0x10e4b8,deletionRanges:_0x3e3721,cells:_0x53e286}=_0x2acf33;_0xb9f421['length']&&_0x58729a['markMultiRangeInsertion'](_0xb9f421,'tablePasteRow',{'tablePasteChainId':_0x2ad008}),_0x21caed['length']&&_0x58729a['markMultiRangeInsertion'](_0x21caed,'tablePasteColumn',{'tablePasteChainId':_0x2ad008}),_0x10e4b8['length']&&(_0x58729a['markMultiRangeInsertion'](_0x10e4b8,'tablePaste',{'tablePasteChainId':_0x2ad008,'skipNestingCheck':!0x0}),_0x10e4b8['forEach'](_0x36e83a=>_0x36e83a['detach']?.())),_0x3e3721['length']&&(_0x58729a['markMultiRangeDeletion'](_0x3e3721,'tablePaste',{'tablePasteChainId':_0x2ad008,'skipNestingCheck':!0x0}),_0x3e3721['forEach'](_0x1b2d3d=>_0x1b2d3d['detach']?.()));const _0x163cb4=_0x58729a['markMultiRangeBlockFormat'](_0x53e286['map'](({element:_0x39bd36})=>_0x39bd36),{'formatGroupId':_0x400c1f()},[],'tablePasteCell',{'tablePasteChainId':_0x2ad008});if(_0x163cb4){const _0x56006c=_0x163cb4['getMarkers'](),_0xd3cc05=[];for(const {element:_0x3dd870,attributes:_0x3d49dc}of _0x53e286){if(!_0x3d49dc)continue;const _0x22456f=_0x18d1b5['model']['createRangeOn'](_0x3dd870),_0x3d97fd=_0x56006c['find'](_0x542fb0=>_0x542fb0['getRange']()['isEqual'](_0x22456f));_0x3d97fd&&_0xd3cc05['push']([_0x3d97fd['name'],_0x3d49dc]);}_0xd3cc05['length']&&_0x163cb4['setAttribute']('markerAttributes',Object['fromEntries'](_0xd3cc05));}_0x2acf33=null;}));},{'priority':_0x135e08['high']+0xa}),_0x1c3482['on']('contentInsertion',()=>{_0x42df9e=!0x1;},{'priority':'lowest'}),_0x18d1b5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x523e18,_0x261395)=>{const [_0x31e2a9,_0x3c15f8,,_0x3e4491]=_0x261395;if(!_0x2acf33)return;_0x523e18['stop']();const _0x27f8e5=_0x31e2a9['cell'],_0x2c081e=_0x3c15f8,_0x465b28=Ue(_0x27f8e5),_0x3ee082=Ue(_0x2c081e);_0x523e18['return']=_0x27f8e5;let _0x49f1ea=null,_0x14e892=null;if(_0x3ee082||_0x465b28){if(_0x465b28&&!_0x3ee082){_0x3e4491['remove'](_0x27f8e5['getChild'](0x0));for(const _0x1b7ec2 of Array['from'](_0x2c081e['getChildren']()))_0x3e4491['insert'](_0x1b7ec2,_0x27f8e5,'end');const _0x443281=_0x2acf33['rowInsertionIndexes']['includes'](_0x31e2a9['row']),_0xfbde86=_0x2acf33['columnInsertionIndexes']['includes'](_0x31e2a9['column']);_0x443281||_0xfbde86||(_0x49f1ea=_0x2346b0['fromRange'](_0x3e4491['createRangeIn'](_0x27f8e5)));}else _0x3ee082&&!_0x465b28&&(_0x14e892=_0x3e4491['createRangeIn'](_0x27f8e5));}else{const _0x7cc3cf=_0x3e4491['createElement']('tableCellSuggestion'),_0x3671f2=_0x3e4491['createElement']('tableCellSuggestion');_0x3e4491['wrap'](_0x3e4491['createRangeIn'](_0x27f8e5),_0x3671f2),_0x3e4491['insert'](_0x7cc3cf,_0x27f8e5,0x0);for(const _0x5d81e1 of Array['from'](_0x2c081e['getChildren']()))_0x3e4491['insert'](_0x5d81e1,_0x7cc3cf,'end');_0x49f1ea=_0x2346b0['fromRange'](_0x3e4491['createRangeOn'](_0x7cc3cf)),_0x14e892=_0x2346b0['fromRange'](_0x3e4491['createRangeOn'](_0x3671f2));}const _0x2ddd28=Array['from'](_0x2c081e['getAttributes']())['filter'](([_0x1caff2])=>xe['includes'](_0x1caff2));_0x2acf33['cells']['push']({'element':_0x27f8e5,'attributes':_0x2ddd28['length']?Object['fromEntries'](_0x2ddd28):null}),_0x49f1ea&&_0x2acf33['insertionRanges']['push'](_0x49f1ea),_0x14e892&&_0x2acf33['deletionRanges']['push'](_0x14e892);},{'priority':'high'}),_0x2fda8d['on']('insertColumns',(_0x655a10,_0x2089c6)=>{const [_0x5b5693,_0x4e3da1={}]=_0x2089c6;if(!_0x2acf33)return;const _0x14d97b=_0x4e3da1['at']||0x0,_0x3b9899=_0x4e3da1['columns']||0x1;_0x2acf33['columnInsertionIndexes']=new Array(_0x3b9899)['fill'](_0x14d97b)['map']((_0x4c15b7,_0x2a3ff7)=>_0x4c15b7+_0x2a3ff7);for(const {cell:_0xf541fa}of _0x2fda8d['createTableWalker'](_0x5b5693,{'startColumn':_0x14d97b,'endColumn':_0x14d97b+_0x3b9899-0x1}))_0x2acf33['columnInsertionRanges']['push'](_0x18d1b5['model']['createRangeOn'](_0xf541fa));},{'priority':'low'}),_0x2fda8d['on']('insertRows',(_0x4485ef,_0x2227a2)=>{const [_0x5f28ab,_0x20ed25={}]=_0x2227a2;if(!_0x2acf33)return;const _0x1eb783=_0x20ed25['at']||0x0,_0x19cf31=_0x20ed25['rows']||0x1;_0x2acf33['rowInsertionIndexes']=new Array(_0x19cf31)['fill'](_0x1eb783)['map']((_0x30dce0,_0x119139)=>_0x30dce0+_0x119139);for(const {cell:_0x3c9ea6}of _0x2fda8d['createTableWalker'](_0x5f28ab,{'startRow':_0x1eb783,'endRow':_0x1eb783+_0x19cf31-0x1}))_0x2acf33['rowInsertionRanges']['push'](_0x18d1b5['model']['createRangeOn'](_0x3c9ea6));},{'priority':'low'}),_0x58729a['descriptionFactory']['registerDescriptionCallback'](_0x3e12fe=>{if(_0x3e12fe['subType']&&_0x3e12fe['subType']['startsWith']('tablePaste'))return _0x3e12fe['previous']?{}:{'type':'insertion','content':c(_0x18d1b5['locale'],'*Replace\x20table\x20cells*')};});const _0x124eeb=()=>!0x1;for(const _0x168b4e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x58729a['_suggestionFactory']['registerCustomCallback']('insertion',_0x168b4e,'join',_0x124eeb),_0x58729a['_suggestionFactory']['registerCustomCallback']('deletion',_0x168b4e,'join',_0x124eeb),_0x58729a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x168b4e,'join',_0x124eeb);_0x58729a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x124eeb),_0x58729a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a7d63,_0x59dfad,_0x45cf8a)=>{const _0x507c5b=_0x4a7d63['map'](_0x255b58=>_0x255b58['getContainedElement']())['filter'](_0x490c2e=>_0x490c2e),_0x13a640=new Map(_0x507c5b['map'](_0x4fcdb1=>[_0x4fcdb1,null]));if(_0x2acf33){for(const {element:_0x3b9528,attributes:_0x1a7e04}of _0x2acf33['cells'])_0x1a7e04&&_0x13a640['set'](_0x3b9528,_0x1a7e04);}else{if(_0x45cf8a&&_0x45cf8a['markerAttributes'])for(const [_0x2fcdf5,_0x2da93a]of Object['entries'](_0x45cf8a['markerAttributes'])){const _0x5b5105=_0x18d1b5['model']['markers']['get'](_0x2fcdf5),_0x2ca179=_0x5b5105?_0x5b5105['getRange']()['getContainedElement']():null;_0x2ca179&&_0x13a640['set'](_0x2ca179,_0x2da93a);}}_0x18d1b5['model']['change'](_0x9b3a62=>{for(const [_0x4eb4ab,_0xb6ab61]of _0x13a640)_0x9b3a62['setAttributes']({...Oe,..._0xb6ab61},_0x4eb4ab);});});const _0x32274e=(_0x20e9e3,_0x21b205)=>{_0x58729a['_suggestionFactory']['registerCustomCallback'](_0x20e9e3,'tablePaste',_0x21b205,(_0x547b0e,_0x102cc2,_0x43c6c1)=>{_0x18d1b5['model']['change'](_0x3f8727=>{const _0x255e4d=[];for(const _0x142eb7 of _0x547b0e){const _0x4d147e=_0x142eb7['start']['nodeAfter'];_0x4d147e['is']('element','tableCellSuggestion')&&_0x255e4d['push'](_0x4d147e);}_0x58729a['_suggestionFactory']['getSuggestionCallback'](_0x20e9e3,null,_0x21b205)(_0x547b0e,_0x102cc2,_0x43c6c1);for(const _0x25b88f of _0x255e4d)'$graveyard'!=_0x25b88f['root']['rootName']&&_0x3f8727['unwrap'](_0x25b88f);});});};_0x32274e('insertion','accept'),_0x32274e('insertion','discard'),_0x32274e('deletion','accept'),_0x32274e('deletion','discard'),_0x58729a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ab3a5=>{const _0x40a472=_0x1ab3a5['map'](_0x4ac0c7=>_0x4ac0c7['getContainedElement']()),_0x37f77b=_0x40a472[0x0]['findAncestor']('table'),{minRow:_0x91f3d5,maxRow:_0x2fa26e}=_0xc942cf['_getCoordsForCells'](_0x40a472);_0x2fda8d['removeRows'](_0x37f77b,{'at':_0x91f3d5,'rows':_0x2fa26e-_0x91f3d5+0x1});}),_0x58729a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14a4c8=>{const _0x440645=_0x14a4c8['map'](_0x41bee5=>_0x41bee5['getContainedElement']()),_0x1e6ae7=_0x440645[0x0]['findAncestor']('table'),{minColumn:_0x5228ca,maxColumn:_0x28df9c}=_0xc942cf['_getCoordsForCells'](_0x440645);_0x2fda8d['removeColumns'](_0x1e6ae7,{'at':_0x5228ca,'columns':_0x28df9c-_0x5228ca+0x1});});const _0x5824bf=(_0x4bba40,_0x57b2a0)=>{if(!_0x57b2a0['subType']||!_0x57b2a0['subType']['startsWith']('tablePaste'))return;const _0x4e0a3c=_0x57b2a0['attributes']['tablePasteChainId'],_0x35683f=_0x58729a['getSuggestions']()['filter'](_0x2185fc=>_0x2185fc['isInContent']&&_0x2185fc['attributes']&&_0x2185fc['attributes']['tablePasteChainId']==_0x4e0a3c);_0x35683f['length']&&_0x57b2a0['getAllAdjacentSuggestions']()['length']!=_0x35683f['length']&&_0x35683f['reduce']((_0x1b8196,_0x41e4ed)=>(_0x1b8196['next']=_0x41e4ed,_0x41e4ed['previous']=_0x1b8196,_0x41e4ed));};function _0x85c966(_0x200212,_0x404913=!0x0){const {id:_0x18ee25,authorId:_0x15bf3e}=_0x58729a['_splitMarkerName'](_0x200212['markerName']),_0x1002ed=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x52a8b5=_0x58729a['activeMarkers']['includes'](_0x200212['markerName']);return _0x52a8b5&&_0x1002ed['push']('ck-suggestion-marker--active'),{'classes':_0x1002ed,'attributes':{'data-suggestion':_0x18ee25,'data-author-id':_0x15bf3e},'priority':_0x52a8b5&&_0x404913?0xbc2:0xbb8};}_0x58729a['on']('suggestionLoaded',_0x5824bf,{'priority':'high'}),_0x58729a['on']('suggestionUnloaded',_0x5824bf,{'priority':'high'}),_0x18d1b5['model']['document']['registerPostFixer'](()=>{let _0x10fb71=!0x1;const _0x10c189=Array['from'](_0x18d1b5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53f005,data:_0x4f9c4a}of _0x10c189){const {group:_0x3e0ced,type:_0x1a11b2,id:_0x5a121c}=_0x58729a['_splitMarkerName'](_0x53f005);if('suggestion'!=_0x3e0ced||'deletion'!=_0x1a11b2||_0x4f9c4a['oldRange'])continue;if(!_0x58729a['hasSuggestion'](_0x5a121c))continue;const _0x341d8e=_0x58729a['getSuggestion'](_0x5a121c)['getRanges'](),_0x268359=_0x18d1b5['plugins']['get']('Users')['me'];for(const _0x14b8f0 of _0x58729a['getSuggestions']()){if(!_0x14b8f0['isInContent']||_0x14b8f0['author']!=_0x268359)continue;if('formatBlock'!=_0x14b8f0['type']||'tablePasteCell'!=_0x14b8f0['subType'])continue;if(_0x14b8f0['getRanges']()['every'](_0x292379=>_0x341d8e['some'](_0x2e0a0c=>_0x2e0a0c['containsRange'](_0x292379,!0x0)))){for(const _0x2ec07a of _0x14b8f0['getAllAdjacentSuggestions']())_0x2ec07a['isInContent']&&(_0x2ec07a['discard'](),_0x10fb71=!0x0);}}}return _0x10fb71;}),_0x18d1b5['model']['document']['registerPostFixer'](_0x17ceda=>{const _0x22e192=_0x18d1b5['commands']['get']('redo');if(!_0x22e192||!_0x22e192['_createdBatches']['has'](_0x17ceda['batch']))return!0x1;let _0x3deea1=!0x1;const _0x868462=_0x18d1b5['plugins']['get']('Users')['me'],_0x1a8517=_0x18d1b5['model']['document']['differ']['getChanges'](),_0x187dd6=Array['from'](_0x18d1b5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x18c596,data:_0x563f3d})=>{const {group:_0x4e06f3,subType:_0x4f828c,authorId:_0x87f145}=_0x58729a['_splitMarkerName'](_0x18c596);return'suggestion'==_0x4e06f3&&'tablePaste'==_0x4f828c&&_0x87f145==_0x868462['id']&&!_0x563f3d['oldRange'];});for(const _0x2702d1 of _0x1a8517){if('insert'!=_0x2702d1['type']||'tableCellSuggestion'!=_0x2702d1['name']||0x1!=_0x2702d1['length'])continue;const _0x12dd47=_0x17ceda['createRange'](_0x2702d1['position'],_0x2702d1['position']['getShiftedBy'](0x1));if(!_0x187dd6['find'](({data:_0xdf0884})=>_0xdf0884['newRange']['isEqual'](_0x12dd47))){for(const {name:_0x3d8fcc,data:_0x2dfbec}of _0x187dd6)if(_0x12dd47['containsRange'](_0x2dfbec['newRange'])){_0x17ceda['updateMarker'](_0x3d8fcc,{'range':_0x12dd47}),_0x3deea1=!0x0;break;}}}return _0x3deea1;}),_0x18d1b5['model']['document']['registerPostFixer'](_0x57cbaf=>{let _0x198af3=!0x1;const _0x52aadd=_0x18d1b5['plugins']['get']('Users')['me'],_0x4cd180=_0x58729a['getSuggestions']()['filter'](_0x3c50ab=>_0x3c50ab['isInContent']&&_0x3c50ab['author']==_0x52aadd),_0x11a16a=new Set(),_0x4bc46b=new Set();for(const _0x18efa9 of _0x4cd180)if('tablePaste'==_0x18efa9['subType'])for(const _0xe71ea6 of _0x18efa9['getMarkers']()){const _0x249119=_0xe71ea6['getRange']()['getContainedElement']();if(_0x249119){if(_0x249119['is']('element','tableCellSuggestion')&&Ue(_0x249119)){_0x18efa9['removeMarker'](_0xe71ea6['name']),_0x11a16a['add'](_0x249119),_0x198af3=!0x0;const _0x45dbe2=_0x249119['nextSibling'],_0x461e06=_0x249119['previousSibling'],_0x1a4ba2=_0x45dbe2&&_0x45dbe2['is']('element','tableCellSuggestion'),_0x5145f6=_0x461e06&&_0x461e06['is']('element','tableCellSuggestion');_0x1a4ba2&&!_0x11a16a['has'](_0x45dbe2)&&_0x4bc46b['add'](_0x45dbe2),_0x5145f6&&!_0x11a16a['has'](_0x461e06)&&_0x4bc46b['add'](_0x461e06);}else _0x249119['is']('element','paragraph')&&_0x249119['isEmpty']&&(_0x18efa9['removeMarker'](_0xe71ea6['name']),_0x198af3=!0x0);}}else{if('tablePasteCell'==_0x18efa9['subType']){if(!_0x18efa9['attributes']||!_0x18efa9['attributes']['tablePasteChainId'])continue;const _0xe30506=_0x18efa9['attributes']['markerAttributes'];if(_0xe30506&&Object['keys'](_0xe30506)['length'])continue;const _0x24e289=_0x18efa9['attributes']['tablePasteChainId'];let _0x32d68c=!0x0,_0x532121=!0x0;for(const _0x285560 of _0x4cd180)if(_0x285560['subType']&&_0x285560['subType']['startsWith']('tablePaste')){if(!_0x285560['attributes']['tablePasteChainId']){_0x532121=!0x1;break;}if(_0x285560['id']!=_0x18efa9['id']&&_0x285560['attributes']['tablePasteChainId']==_0x24e289){_0x32d68c=!0x1;break;}}_0x532121&&_0x32d68c&&(_0x18efa9['removeMarkers'](),_0x198af3=!0x0);}}for(const _0x3bc710 of _0x11a16a)_0x57cbaf['remove'](_0x3bc710);for(const _0x258140 of _0x4bc46b)_0x57cbaf['unwrap'](_0x258140);return _0x198af3;}),_0x18d1b5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x56ebd1=>_0x85c966(_0x56ebd1),'converterPriority':'high'}),_0x18d1b5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4551e9,_0xfa24cc)=>_0xfa24cc['options']['showSuggestionHighlights']?_0x85c966(_0x4551e9,!0x1):null,'converterPriority':'high'});const _0x51a79e=_0x18d1b5['editing']['view'];this['listenTo'](_0x51a79e['document'],'clipboardOutput',(_0x2aa474,_0xfabc7f)=>{const _0x3b8c27=[];for(const _0x449e74 of _0x51a79e['createRangeIn'](_0xfabc7f['content'])['getItems']())_0x449e74['is']('element','suggestion-td')&&_0x3b8c27['push'](_0x449e74);_0x51a79e['change'](_0x48d6fa=>{for(const _0x258643 of _0x3b8c27)_0x48d6fa['move'](_0x48d6fa['createRangeIn'](_0x258643),_0x48d6fa['createPositionBefore'](_0x258643)),_0x48d6fa['remove'](_0x258643);});});}}function Ue(_0x2996be){if(_0x2996be['isEmpty'])return!0x0;const _0x383f2a=_0x2996be['getChild'](0x0);return _0x383f2a['is']('element','paragraph')&&_0x383f2a['isEmpty'];}function De(_0x4c38ce,_0x14dcd={},_0x568428){for(const {isAnchor:_0x4069d7,cellHeight:_0x5e9617,cellWidth:_0x294192}of _0x568428['createTableWalker'](_0x4c38ce,{'includeAllSlots':!0x0,..._0x14dcd}))if(!_0x4069d7||0x1!=_0x5e9617||0x1!=_0x294192)return!0x1;return!0x0;}class Bt extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xe1bf8=this['editor']['plugins']['get']('TrackChangesEditing');_0xe1bf8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xe1bf8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xe1bf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe1bf8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xe1bf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xe1bf8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x78be96,_0x4166c4){const _0x3c4157=this['editor']['plugins']['get']('TrackChangesEditing'),_0x563a37=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x583786=_0x4166c4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x23b0ca=_0x563a37['getColumnGroupElement'](_0x583786);let _0x35c4b7=_0x23b0ca?_0x563a37['getTableColumnsWidths'](_0x23b0ca):null,_0x38a75f=_0x583786['getAttribute']('tableWidth')||null;const _0x3ed407=_0x4166c4['tableWidth']||_0x38a75f,_0x34832d=_0x4166c4['columnWidths']||_0x35c4b7,_0x8d7f84=this['editor']['plugins']['get']('Users')['me'];for(const _0x1859d0 of _0x3c4157['getSuggestions']()){const _0x561618=_0x1859d0['getContainedElement']();if('resizeTable'===_0x1859d0['subType']&&_0x561618===_0x583786){_0x1859d0['author']!==_0x8d7f84&&_0x1859d0['discard']();const _0x2653ed=_0x1859d0['data']['commandParams'];_0x38a75f=_0x2653ed[0x0]['tableWidth'],_0x35c4b7=_0x2653ed[0x0]['columnWidths'];break;}}_0x78be96({'table':_0x583786,'tableWidth':_0x3ed407,'columnWidths':_0x34832d}),_0x3c4157['markBlockFormat'](_0x583786,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x38a75f,'columnWidths':_0x35c4b7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x23bd71){if('formatBlock'!=_0x23bd71['type']&&'formatInline'!=_0x23bd71['type'])return;const {data:_0x1dcde3}=_0x23bd71;if(_0x1dcde3&&'resizeTable'===_0x1dcde3['formatGroupId']){const _0x38dc90='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x38dc90)};}}}class Ot extends _0x2b8ff3{['afterInit'](){const _0x56d9de=this['editor'];_0x56d9de['plugins']['has']('Template')&&_0x56d9de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x2b8ff3{['afterInit'](){const _0x11e4d9=this['editor'];if(!_0x11e4d9['commands']['get']('insertTableOfContents'))return;_0x11e4d9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x338225=_0x11e4d9['plugins']['get']('TrackChangesEditing'),_0x33294d=_0x11e4d9['locale'];_0x338225['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3e16a3=>c(_0x33294d,'ELEMENT_TABLE_OF_CONTENTS',_0x3e16a3));}}class xt extends _0x2b8ff3{['afterInit'](){const _0x4ae745=this['editor'];if(!_0x4ae745['plugins']['has']('Title'))return;const _0x13c0b0=_0x4ae745['plugins']['get']('TrackChangesEditing');_0x13c0b0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4ae745['locale'],'ELEMENT_TITLE')),_0x4ae745['model']['document']['registerPostFixer'](_0x4ae739=>{let _0x5342d9=!0x1;const _0x3da1d4=Array['from'](_0x4ae745['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a816e,data:_0x4776b4}of _0x3da1d4){const {group:_0x548402}=_0x13c0b0['_splitMarkerName'](_0x4a816e);if('suggestion'!==_0x548402||!_0x4776b4['newRange'])continue;const _0x1f3ec6=_0x4776b4['newRange'],_0x46bfb4=_0x1f3ec6['end']['nodeBefore'];if(!_0x46bfb4||!_0x46bfb4['is']('element','title-content'))continue;if(!_0x1f3ec6['start']['isTouching'](_0x1f3ec6['end']))continue;const _0x4221a2=_0x4ae745['model']['schema']['getNearestSelectionRange'](_0x1f3ec6['end'],'forward');if(_0x4221a2&&_0x4221a2['isCollapsed']){const _0x5947e3=_0x4ae739['createRange'](_0x1f3ec6['start'],_0x4221a2['start']);_0x5947e3['isEqual'](_0x1f3ec6)||(_0x4ae739['updateMarker'](_0x4a816e,{'range':_0x5947e3}),_0x5342d9=!0x0);}_0x5342d9||(_0x4ae739['removeMarker'](_0x4a816e),_0x5342d9=!0x0);}return _0x5342d9;});}}class Tt extends _0x2b8ff3{['afterInit'](){const _0x27f104=this['editor'],_0x94b0b5=_0x27f104['plugins']['get']('TrackChangesEditing');_0x27f104['plugins']['has']('Uploadcare')&&(_0x94b0b5['enableCommand']('uploadcare'),_0x27f104['plugins']['has']('UploadcareImageEdit')&&(_0x94b0b5['enableCommand']('uploadcareImageEdit'),_0x94b0b5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x94b0b5['registerBlockAttribute']('uploadcareImageId'),_0x94b0b5['descriptionFactory']['registerDescriptionCallback'](_0x414c9b=>{if('attribute'!=_0x414c9b['type'])return;const {data:_0x164b72}=_0x414c9b;return _0x164b72&&'uploadcareImageId'==_0x164b72['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2b8ff3{['afterInit'](){const _0x10f72e=this['editor'],_0x24ef63=_0x10f72e['plugins']['get']('TrackChangesEditing');_0x10f72e['plugins']['has']('UndoEditing')&&(_0x24ef63['enableCommand']('undo'),_0x24ef63['enableCommand']('redo'));}}class Ut extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ba1fe=this['editor'];if(!_0x5ba1fe['plugins']['has']('TableCaptionEditing'))return;_0x5ba1fe['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2b8ff3{['tableProperties'];['tableCellProperties'];constructor(_0x348892){super(_0x348892),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 _0x5c637b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x47af6f of this['tableProperties'])_0x5c637b['enableCommand'](_0x47af6f,(_0x4a9d02,_0x4408a7)=>{const _0x419a0e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x47af6f,[_0x419a0e],this['tableProperties'],'tableProperties',_0x4a9d02,_0x4408a7);});_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c637b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2891a2,_0x3160e0)=>this['handleDiscardAction'](this['tableProperties'],_0x2891a2,_0x3160e0)),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5bfed0 of this['tableCellProperties'])_0x5c637b['enableCommand'](_0x5bfed0,(_0x538f88,_0x1abd80)=>{const _0x28023c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5bfed0,_0x28023c,this['tableCellProperties'],'tableCellProperties',_0x538f88,_0x1abd80);});_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c637b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5ed04d,_0x5ca990)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5ed04d,_0x5ca990)),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c637b['descriptionFactory']['registerDescriptionCallback'](_0x25d474=>this['handleSuggestionDescription'](_0x25d474));}['_handlePropertyChange'](_0x3b6efd,_0x4bb550,_0x3e1fa1,_0x5124d3,_0xf7e32f,_0x2f9276){const _0x42c65e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f9276['batch'],()=>{for(const _0xc75842 of _0x4bb550){if(this['_getSuggestion'](_0xc75842,_0x5124d3))_0xf7e32f(_0x2f9276);else{const _0x573ed5={};for(const _0x1bfbdc of _0x3e1fa1){const _0x69d59=_0xc75842['getAttribute'](_0x1bfbdc);void 0x0!==_0x69d59&&(_0x573ed5[_0x1bfbdc]=_0x69d59);}_0xf7e32f(_0x2f9276),_0x42c65e['markBlockFormat'](_0xc75842,{'commandParams':[_0x573ed5]},[],_0x5124d3);}}});}['handleDiscardAction'](_0x2aae64,_0x6f2928,_0x37de64){const _0x2a9cfb=_0x6f2928[0x0]['start']['nodeAfter'],_0x175cfc=_0x37de64['commandParams'][0x0];this['editor']['model']['change'](_0x4b8a5a=>{for(const _0x5c1c2a of _0x2aae64)void 0x0!==_0x175cfc[_0x5c1c2a]?_0x4b8a5a['setAttribute'](_0x5c1c2a,_0x175cfc[_0x5c1c2a],_0x2a9cfb):_0x4b8a5a['removeAttribute'](_0x5c1c2a,_0x2a9cfb);});}['handleSuggestionDescription'](_0x584712){if(_0x584712['data'])switch(_0x584712['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x58167d,_0x7c646d){const _0x44c90e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x380466 of _0x44c90e['getSuggestions']({'skipNotAttached':!0x0})){const _0x2298db=_0x380466['getContainedElement']();if(_0x380466['subType']===_0x7c646d&&_0x2298db===_0x58167d)return _0x380466;}return null;}}const u='$elementName';class p extends _0x2b8ff3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x26a833,_0x20ee0c,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x378f6d){super(_0x378f6d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x21953b,_0x29ddfb,_0x35a522,_0x4c48e2)=>{this['_model']['change'](()=>{for(const _0x547c34 of[..._0x4c48e2,..._0x35a522])this['_model']['markers']['has'](_0x547c34)&&_0x378f6d['editing']['reconvertMarker'](_0x547c34);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x378f6d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x378f6d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x378f6d['config']['get']('trackChanges.trackFormatChanges'),_0x378f6d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x378f6d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x378f6d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x238bc0=this['editor'],_0x3f7d38=(_0x27dc8b,_0x18a79a)=>{if('attribute'!=_0x27dc8b)return'ck-suggestion-marker-'+_0x27dc8b;const _0x421029=_0x18a79a['split']('|')[0x0];return this['_isBlockAttribute'](_0x421029)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x238bc0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x38e23f=>{const {id:_0x12d030,authorId:_0xebd6ee,type:_0x5d36c3,subType:_0x3f467b}=this['_splitMarkerName'](_0x38e23f['markerName']),_0x218fc2=['ck-suggestion-marker',_0x3f7d38(_0x5d36c3,_0x3f467b)];let _0x27de12=0xbb8;return this['activeMarkers']['includes'](_0x38e23f['markerName'])&&(_0x218fc2['push']('ck-suggestion-marker--active'),_0x27de12=0xbc2),'deletion'==_0x5d36c3&&(_0x27de12+=0x5),{'classes':_0x218fc2,'attributes':{'data-suggestion':_0x12d030,'data-author-id':_0xebd6ee},'priority':_0x27de12};}}),_0x238bc0['conversion']['for']('dataDowncast')['add'](_0xfb643f=>{_0xfb643f['on']('addMarker:suggestion',(_0x6a8c4e,_0x52644f,_0x54b139)=>{if(!_0x54b139['options']['showSuggestionHighlights'])return;const _0x38a12f=_0x52644f['item'];if(!_0x38a12f)return;const _0x1362c0=_0x54b139['mapper']['toViewElement'](_0x38a12f);_0x238bc0['model']['schema']['isObject'](_0x38a12f)&&_0x1362c0&&!_0x1362c0['getCustomProperty']('widget')&&_0x1362c0['is']('containerElement')&&_0x3a9147(_0x1362c0,_0x54b139['writer']);},{'priority':'high'});}),_0x238bc0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x233872,_0x313860)=>{if(!_0x313860['options']['showSuggestionHighlights'])return null;const {type:_0x21d570,subType:_0xe41be8}=this['_splitMarkerName'](_0x233872['markerName']);return{'classes':['ck-suggestion-marker',_0x3f7d38(_0x21d570,_0xe41be8)],'priority':0xbb8};}});const _0x49bc56=({showActiveMarkers:_0x360a67=!0x0,isAttributeSuggestion:_0x1c1592=!0x1}={})=>(_0x487c69,_0x1dca95,_0x42929e)=>{if(!_0x1dca95['item'])return;const {id:_0x5279c6,authorId:_0x4d3f52}=this['_splitMarkerName'](_0x1dca95['markerName']);if(_0x1c1592){const _0x56874a=this['_suggestions']['get'](_0x5279c6),_0x12ee38=this['_getAttributeKey'](_0x56874a);if(!this['_isBlockAttribute'](_0x12ee38))return;}if(_0x1dca95['item']['is']('selection'))return void _0x42929e['consumable']['consume'](_0x1dca95['item'],_0x487c69['name']);const _0x85aef=_0x42929e['mapper']['toViewElement'](_0x1dca95['item']);if(_0x1dca95['item']['is']('element')&&_0x238bc0['model']['schema']['isBlock'](_0x1dca95['item'])&&!_0x85aef['getCustomProperty']('addHighlight')){_0x42929e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x85aef),_0x42929e['writer']['setAttribute']('data-suggestion',_0x5279c6,_0x85aef),_0x42929e['writer']['setAttribute']('data-author-id',_0x4d3f52,_0x85aef),_0x42929e['mapper']['bindElementToMarker'](_0x85aef,_0x1dca95['markerName']),_0x360a67&&(this['activeMarkers']['includes'](_0x1dca95['markerName'])?_0x42929e['writer']['addClass']('ck-suggestion-marker--active',_0x85aef):_0x42929e['writer']['removeClass']('ck-suggestion-marker--active',_0x85aef));for(const _0x448795 of _0x238bc0['model']['createRangeIn'](_0x1dca95['item'])['getItems']())_0x42929e['consumable']['consume'](_0x448795,_0x487c69['name']);_0x42929e['consumable']['consume'](_0x1dca95['item'],_0x487c69['name']);}};_0x238bc0['conversion']['for']('dataDowncast')['add'](_0x412d85=>{_0x412d85['on']('addMarker:suggestion:formatBlock',(_0x2a630c,_0x4a15b5,_0xf3def1)=>{_0xf3def1['options']['showSuggestionHighlights']&&_0x49bc56({'showActiveMarkers':!0x1})(_0x2a630c,_0x4a15b5,_0xf3def1);},{'priority':'highest'});}),_0x238bc0['conversion']['for']('dataDowncast')['add'](_0x4ac6e1=>{_0x4ac6e1['on']('addMarker:suggestion:attribute',(_0x5ee152,_0x495569,_0x3aee5e)=>{_0x3aee5e['options']['showSuggestionHighlights']&&_0x49bc56({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5ee152,_0x495569,_0x3aee5e);},{'priority':'highest'});}),_0x238bc0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3a51d3,_0x5388ad)=>_0x5388ad['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3a51d3['substr'](0xb)}}),_0x238bc0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x160f6e,{writer:_0x580bf6})=>{let _0x34b1b3='suggestion:'+_0x160f6e['getAttribute']('suggestion-type')+':'+_0x160f6e['getAttribute']('id');return _0x160f6e['getAttribute']('marker-count')&&(_0x34b1b3+=':'+_0x160f6e['getAttribute']('marker-count')),_0x580bf6['createElement']('$marker',{'data-name':_0x34b1b3});}}),_0x238bc0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x30a985=>{_0x30a985['on']('addMarker:suggestion:formatBlock',_0x49bc56(),{'priority':'high'});}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x5e9d0f=>{_0x5e9d0f['on']('addMarker:suggestion:attribute',_0x49bc56({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x4cdaae=>{_0x4cdaae['on']('removeMarker:suggestion:formatBlock',(_0x20c39c,_0x6006c4,_0x22d024)=>{const _0x2c8187=_0x22d024['mapper']['markerNameToElements'](_0x6006c4['markerName']);if(_0x2c8187){for(const _0x319858 of _0x2c8187)_0x319858['getCustomProperty']('addHighlight')||(_0x22d024['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x319858),_0x22d024['writer']['removeAttribute']('data-suggestion',_0x319858),_0x22d024['writer']['removeAttribute']('data-author-id',_0x319858),_0x22d024['mapper']['unbindElementFromMarkerName'](_0x319858,_0x6006c4['markerName']));}},{'priority':'high'});}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x51b9c=>{_0x51b9c['on']('removeMarker:suggestion:attribute',(_0x25c98c,_0x5da9a1,_0x2fff15)=>{const _0x4ac9bb=_0x2fff15['mapper']['markerNameToElements'](_0x5da9a1['markerName']);if(!_0x4ac9bb)return;const {id:_0x11a1d5}=this['_splitMarkerName'](_0x5da9a1['markerName']),_0x58abb2=this['_suggestions']['get'](_0x11a1d5),_0x43e1d8=this['_getAttributeKey'](_0x58abb2);if(this['_isBlockAttribute'](_0x43e1d8)){for(const _0x450b8b of _0x4ac9bb)_0x450b8b['getCustomProperty']('addHighlight')||(_0x2fff15['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x450b8b),_0x2fff15['writer']['removeAttribute']('data-suggestion',_0x450b8b),_0x2fff15['writer']['removeAttribute']('data-author-id',_0x450b8b),_0x2fff15['mapper']['unbindElementFromMarkerName'](_0x450b8b,_0x5da9a1['markerName']));}},{'priority':'high'});}),_0x238bc0['model']['document']['registerPostFixer'](_0x79eeb5=>{let _0x3b55b8=!0x1;const _0x3b1687=Array['from'](_0x238bc0['model']['document']['differ']['getChangedMarkers']()),_0x40b3a0=new Set();for(const {name:_0x1ba9b2,data:_0x529cdf}of _0x3b1687){const {group:_0x5653de,type:_0x4d4ba6,subType:_0x320c17,id:_0x5cf7a4}=this['_splitMarkerName'](_0x1ba9b2);if('suggestion'!==_0x5653de)continue;const _0x3cf9ed=this['_suggestions']['get'](_0x5cf7a4);if(null!=_0x529cdf['newRange']){'formatInline'==_0x4d4ba6&&(_0x3b55b8=_0x3b55b8||Jt(_0x529cdf['newRange'],_0x1ba9b2,_0x79eeb5,_0x238bc0['model']['schema']));const _0x7fdc9='attribute'==_0x4d4ba6&&this['_isBlockAttribute'](_0x320c17['split']('|')[0x0]);if(_0x529cdf['newRange']['isCollapsed']||'$graveyard'==_0x529cdf['newRange']['root']['rootName']||'formatBlock'==_0x4d4ba6&&!Ht(_0x529cdf['newRange'])||_0x7fdc9&&!Ht(_0x529cdf['newRange'])||'deletion'==_0x4d4ba6&&!(!Lt(_0x2a8d0d=_0x529cdf['newRange'])&&!function(_0x41727e){return _0x41727e['start']['parent']==_0x41727e['end']['nodeBefore']&&_0x41727e['start']['isAtEnd'];}(_0x2a8d0d)))_0x79eeb5['removeMarker'](_0x1ba9b2),_0x3b55b8=!0x0;else{if(!_0x3cf9ed||!_0x3cf9ed['isInContent'])continue;if(_0x529cdf['newRange']&&_0x529cdf['oldRange']&&_0x529cdf['newRange']['isEqual'](_0x529cdf['oldRange']))continue;_0x40b3a0['add'](_0x3cf9ed);}}}var _0x2a8d0d;return _0x40b3a0['size']>0x0&&(_0x3b55b8=!!this['_joinWithAdjacentSuggestions'](_0x40b3a0)||_0x3b55b8),_0x3b55b8;}),_0x238bc0['model']['document']['registerPostFixer'](_0x13a616=>{let _0x2f52e5=!0x1;for(const _0x3546db of _0x238bc0['model']['document']['differ']['getChanges']())if('insert'==_0x3546db['type'])for(const _0xb4ffda of this['_suggestions']['values']()){if(_0xb4ffda['isMultiRange']||!_0xb4ffda['isInContent'])continue;const _0x11f16e='formatBlock'==_0xb4ffda['type'],_0x451731=this['_getAttributeKey'](_0xb4ffda),_0x2d09f9=_0x451731&&this['_isBlockAttribute'](_0x451731);if(!_0x11f16e&&!_0x2d09f9)continue;const _0x4f659a=_0xb4ffda['getFirstRange']();if(_0x4f659a['start']['parent']!=_0x4f659a['end']['parent']&&!_0x4f659a['end']['isAtEnd']){const _0x12d4c4=_0x238bc0['model']['createPositionAt'](_0x4f659a['start']['nodeAfter'],'end'),_0x48fff1=_0x238bc0['model']['createRange'](_0x4f659a['start'],_0x12d4c4);_0x13a616['updateMarker'](_0xb4ffda['getFirstMarker'](),{'range':_0x48fff1}),_0x2f52e5=!0x0;}}return _0x2f52e5;}),_0x238bc0['model']['document']['registerPostFixer'](_0x1bf1a1=>this['_processAttributeChanges'](_0x1bf1a1)),_0x238bc0['model']['document']['registerPostFixer'](_0x20db02=>!_0x20db02['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x20db02)),_0x238bc0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x238bc0['model']['document']['on']('change:data',(_0x43afa7,_0x3d5ef2)=>{if(!_0x3d5ef2['isLocal']||_0x3d5ef2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4c1be8=_0x238bc0['model']['document']['differ']['getChanges']();if(0x0==_0x4c1be8['length'])return;const _0x6a21ed=[],_0x286dff=_0x4c1be8['filter'](_0x616b0c=>'attribute'==_0x616b0c['type']),_0x3921e7=_0x4c1be8['filter'](_0x3027d6=>'insert'==_0x3027d6['type']&&'$text'!=_0x3027d6['name']);for(const _0x37356f of _0x286dff)this['_isRegisteredAttribute'](_0x37356f['attributeKey'])&&_0x6a21ed['push']({'key':_0x37356f['attributeKey'],'newValue':_0x37356f['attributeNewValue'],'oldValue':_0x37356f['attributeOldValue'],'range':qt(_0x37356f['range'],_0x238bc0['model'])});for(const _0x5d2aa2 of _0x3921e7){if('rename'!=_0x5d2aa2['action']&&'refresh'!=_0x5d2aa2['action'])continue;const _0x2e7627=zt(_0x5d2aa2['position']['nodeAfter'],_0x238bc0['model']),_0x544c80=_0x5d2aa2['before'];'rename'==_0x5d2aa2['action']&&_0x6a21ed['push']({'key':u,'newValue':_0x5d2aa2['name'],'oldValue':_0x544c80['name'],'range':_0x2e7627});for(const [_0x16ea1b,_0x5cb541]of _0x544c80['attributes']){if(!this['_isRegisteredAttribute'](_0x16ea1b))continue;const _0x1242c2=_0x5d2aa2['attributes']['get'](_0x16ea1b);_0x5cb541!==_0x1242c2&&_0x6a21ed['push']({'key':_0x16ea1b,'newValue':_0x1242c2,'oldValue':_0x5cb541,'range':_0x2e7627});}for(const [_0x44ebaa,_0xb4a63]of _0x5d2aa2['attributes'])this['_isRegisteredAttribute'](_0x44ebaa)&&(_0x544c80['attributes']['has'](_0x44ebaa)||_0x6a21ed['push']({'key':_0x44ebaa,'newValue':_0xb4a63,'oldValue':null,'range':_0x2e7627}));}0x0!=_0x6a21ed['length']&&_0x238bc0['model']['enqueueChange'](_0x3d5ef2,_0x3d2e27=>{const _0x4f5f2a=_0x400c1f();for(const {range:_0x34a46c,key:_0x3ce2b7,oldValue:_0x4bea51,newValue:_0x481898}of _0x6a21ed)this['markAttributeChange'](_0x34a46c,_0x3ce2b7,_0x4bea51,_0x481898,{'groupId':_0x4f5f2a});this['_reduceExistingSuggestions'](_0x3d2e27,_0x6a21ed);});},{'priority':'lowest'}),_0x238bc0['model']['markers']['on']('update:suggestion',(_0x14db10,_0x2485db,_0x614c18)=>{if(null==_0x614c18){const {id:_0x79b4d1}=this['_splitMarkerName'](_0x2485db['name']),_0x3fe38e=this['_suggestions']['get'](_0x79b4d1);_0x3fe38e&&_0x3fe38e['addMarkerName'](_0x2485db['name']);}}),_0x238bc0['model']['document']['on']('change:data',()=>{const _0x476782=Array['from'](_0x238bc0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2fa5d4=>'suggestion'===this['_splitMarkerName'](_0x2fa5d4['name'])['group']);if(0x0===_0x476782['length'])return;_0x476782['sort']((_0x4d02a3,_0x6a8abc)=>{const _0x56541a=_0x4d02a3['data']['oldRange'],_0x1d0a1f=_0x6a8abc['data']['oldRange'];return null===_0x56541a&&null===_0x1d0a1f?0x0:null===_0x56541a&&null!==_0x1d0a1f?-0x1:null!==_0x56541a&&null===_0x1d0a1f?0x1:_0x56541a['start']['isBefore'](_0x1d0a1f['start'])?-0x1:0x1;});const _0x219c4f=new Set(),_0x3cc881=new Set();for(const {name:_0x376da5,data:_0x555dbb}of _0x476782){const {id:_0x13dc6e}=this['_splitMarkerName'](_0x376da5);if(null===_0x555dbb['oldRange']){const _0x1f9ec1=this['_handleNewSuggestionMarker'](_0x376da5);_0x3cc881['add'](_0x1f9ec1);}else{const _0x26b9e5=this['_suggestions']['get'](_0x13dc6e);null!==_0x555dbb['newRange']||_0x26b9e5['isInContent']?(_0x219c4f['add'](_0x26b9e5['head']),_0x3cc881['add'](_0x26b9e5)):this['_removeSuggestion'](_0x26b9e5);}}_0x3cc881['size']>0x0&&this['_refreshSuggestionsChain'](_0x3cc881);for(const _0xb4a50e of _0x219c4f)this['fire']('suggestionChanged',_0xb4a50e);}),_0x238bc0['model']['on']('applyOperation',(_0x5580bf,_0x3fdd8f)=>{const _0x5efc71=_0x3fdd8f[0x0];if(!this['_suggestions']['size'])return;if(!_0x5efc71['isDocumentOperation'])return;if(_0x5efc71['batch']['isUndo']||!_0x5efc71['batch']['isLocal'])return;let _0x33506d,_0xa6fcee;switch(_0x5efc71['type']){case'insert':_0x33506d=_0x238bc0['model']['createPositionAt'](_0x5efc71['position']),_0xa6fcee=_0x33506d['getShiftedBy'](_0x5efc71['howMany']);break;case'split':_0x33506d=_0x238bc0['model']['createPositionAt'](_0x5efc71['splitPosition']),_0xa6fcee=_0x238bc0['model']['createPositionAt'](_0x5efc71['moveTargetPosition']);break;case'move':_0x33506d=_0x238bc0['model']['createPositionAt'](_0x5efc71['targetPosition']),_0xa6fcee=_0x33506d['getShiftedBy'](_0x5efc71['howMany']);break;default:return;}const _0xbeef4=_0x238bc0['model']['createRange'](_0x33506d,_0xa6fcee);_0x238bc0['model']['change'](()=>{for(const {suggestion:_0x270328,meta:_0x5441f7}of this['_findSuggestions'](_0xbeef4)){if(_0x270328['isMultiRange'])continue;if('formatInline'==_0x270328['type'])continue;const _0x4ae499=this['_getAttributeKey'](_0x270328);if(_0x4ae499&&this['_isBlockAttribute'](_0x4ae499)&&'split'!=_0x5efc71['type'])continue;const _0x4bdbc3=_0x270328['data']&&_0x270328['data']['multipleBlocks'];('formatBlock'!=_0x270328['type']||'split'==_0x5efc71['type']&&!_0x4bdbc3)&&(_0x5441f7['containsRangeInObject']||'insertion'==_0x270328['type']&&_0x5441f7['isOwn']||_0x270328['getFirstRange']()['containsRange'](_0xbeef4)&&this['_breakSuggestionMarker'](_0x270328,_0x33506d,_0xa6fcee));}});},{'priority':'lowest'}),_0x238bc0['model']['on']('deleteContent',(_0x3872f7,_0x1a3a85)=>{const _0x536f6f=_0x1a3a85[0x0],_0x341d61=_0x1a3a85[0x1];if(_0x341d61&&_0x341d61['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x536f6f['isCollapsed'])return;const _0x448c7d=_0x238bc0['model']['schema'],{start:_0x1b762b,end:_0x281833}=_0x536f6f['getFirstRange'](),_0x41779b=_0x1b762b['nodeAfter']&&_0x448c7d['isLimit'](_0x1b762b['nodeAfter'])?null:_0x448c7d['getNearestSelectionRange'](_0x1b762b,'forward'),_0x15683f=_0x281833['nodeBefore']&&_0x448c7d['isLimit'](_0x281833['nodeBefore'])?null:_0x448c7d['getNearestSelectionRange'](_0x281833,'backward'),_0xf40b9c=_0x238bc0['model']['createRange'](_0x41779b?_0x41779b['start']:_0x1b762b,_0x15683f?_0x15683f['end']:_0x281833);_0x238bc0['model']['change'](_0x54c0e5=>{this['markDeletion'](_0xf40b9c);const _0x1098f2=_0x238bc0['model']['schema']['getNearestSelectionRange'](_0xf40b9c['start']);_0x536f6f['is']('documentSelection')?_0x54c0e5['setSelection'](_0x1098f2):_0x536f6f['setTo'](_0x1098f2);}),_0x3872f7['stop']();},{'priority':_0x135e08['normal']+0xa}),_0x238bc0['model']['on']('insertContent',(_0x2eafb1,_0x49d3f1)=>{const _0x5d636b=_0x49d3f1[_0x49d3f1['length']-0x1];_0x5d636b&&_0x5d636b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x238bc0['model']['change'](()=>{let _0x3f32f7=_0x238bc0['model']['insertContent'](_0x49d3f1[0x0],_0x49d3f1[0x1],_0x49d3f1[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f32f7)return;_0x2eafb1['return']=_0x3f32f7['clone']();const _0x3264c6=_0x3f32f7['end']['nodeBefore'],_0xb7bc4a=_0x238bc0['model']['schema'];_0x3264c6&&_0xb7bc4a['isBlock'](_0x3264c6)&&!_0xb7bc4a['isObject'](_0x3264c6)&&(_0x3f32f7=_0x238bc0['model']['createRange'](_0x3f32f7['start'],_0x238bc0['model']['createPositionAt'](_0x3264c6,'end'))),this['markInsertion'](_0x3f32f7);}),_0x2eafb1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x581a43=new O(_0x238bc0,this['_suggestions']);_0x238bc0['commands']['add']('acceptSuggestion',_0x581a43),this['enableCommand']('acceptSuggestion');const _0xe80f65=new R(_0x238bc0,this['_suggestions']);_0x238bc0['commands']['add']('discardSuggestion',_0xe80f65),this['enableCommand']('discardSuggestion'),_0x238bc0['commands']['add']('acceptAllSuggestions',new x(_0x238bc0,_0x581a43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x238bc0['commands']['add']('discardAllSuggestions',new x(_0x238bc0,_0xe80f65,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x238bc0['commands']['add']('acceptSelectedSuggestions',new E(_0x238bc0,_0x581a43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x238bc0['commands']['add']('discardSelectedSuggestions',new E(_0x238bc0,_0xe80f65,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x22c311=_0x238bc0['plugins']['get']('CommentsRepository');this['listenTo'](_0x22c311,'addComment',(_0x1acfd2,{threadId:_0x6ab9ed})=>{const _0x21d848=this['_suggestions']['get'](_0x6ab9ed);_0x21d848&&_0x21d848['commentThread']&&0x1===_0x21d848['commentThread']['length']&&this['_updateSuggestionData'](_0x6ab9ed,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x22c311,'removeComment',(_0x3adc52,{threadId:_0x14157d})=>{const _0x535661=this['_suggestions']['get'](_0x14157d);_0x535661&&_0x535661['commentThread']&&!_0x535661['commentThread']['length']&&this['_updateSuggestionData'](_0x14157d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a3b0e){const _0x4ee42a=_0xf1e62f([0x48,0x65,0x6b,0x46,0x77,0x59,0x71,0x55,0x57,0x72,0x5a,0x33,0x36,0x30,0x76,0x56,0x42,0x73,0x4f,0x4a,0x58,0x34,0x50,0x44,0x4c,0x51,0x6c,0x75,0x69,0x54,0x62,0x38,0x6e,0x4b,0x45,0x52,0x47,0x6a,0x64,0x70,0x78,0x74,0x37,0x6d,0x63,0x49,0x68,0x31,0x4e,0x53,0x41,0x79,0x66,0x4d,0x32,0x35,0x67,0x7a,0x43,0x39,0x6f,0x61]),_0x4ff9f5=0x28f7e34a,_0x40e4a9=0x28f08082^_0x4ff9f5,_0x540f09=window[_0xf1e62f([0x44,0x61,0x74,0x65])][_0xf1e62f([0x6e,0x6f,0x77])](),_0x24b5b6=_0x3a3b0e[_0xf1e62f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb1a665=new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412ece=>{_0x24b5b6[_0xf1e62f([0x6f,0x6e,0x63,0x65])](_0xf1e62f([0x72,0x65,0x61,0x64,0x79]),_0x412ece);}),_0x53469b={[_0xf1e62f([0x6b,0x74,0x79])]:_0xf1e62f([0x45,0x43]),[_0xf1e62f([0x75,0x73,0x65])]:_0xf1e62f([0x73,0x69,0x67]),[_0xf1e62f([0x63,0x72,0x76])]:_0xf1e62f([0x50,0x2d,0x32,0x35,0x36]),[_0xf1e62f([0x78])]:_0xf1e62f([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]),[_0xf1e62f([0x79])]:_0xf1e62f([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]),[_0xf1e62f([0x61,0x6c,0x67])]:_0xf1e62f([0x45,0x53,0x32,0x35,0x36])},_0x595a31=_0x24b5b6[_0xf1e62f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf1e62f([0x67,0x65,0x74])](_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x60b4f(){let _0x320f2d,_0xbdcd4e=null,_0x4cba0c=null;try{if(_0x595a31==_0xf1e62f([0x47,0x50,0x4c]))return _0xf1e62f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x320f2d=_0xe06f90(),!_0x320f2d)return _0xf1e62f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x320f2d[_0xf1e62f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cba0c=_0x1de574(_0x320f2d[_0xf1e62f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x320f2d[_0xf1e62f([0x6a,0x74,0x69])])),await _0x31a0e4()?_0x3f8575()?_0x1e2266()?_0xf1e62f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40b5cd()?(_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf1e62f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbdcd4e=_0x3a19a5(_0xf1e62f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf1e62f([0x74,0x72,0x69,0x61,0x6c])&&(_0xbdcd4e=_0x3a19a5(_0xf1e62f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x432980()):_0xf1e62f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf1e62f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf1e62f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x15858f){return _0xf1e62f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e2266(){const _0x554fb2=[_0xf1e62f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf1e62f([0x74,0x72,0x69,0x61,0x6c])][_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x540f09/0x3e8:0xe10*_0x40e4a9;return _0x320f2d[_0xf1e62f([0x65,0x78,0x70])]<_0x554fb2;}function _0x3f8575(){const _0xb756ce=_0x320f2d[_0xf1e62f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xb756ce)return!0x1;if(_0xb756ce[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x2a])))return!0x0;if(_0xb756ce[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x54,0x43])))return!0x0;if(_0xb756ce[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x52,0x54,0x43]))){if(_0x5271a5())return!0x0;if(_0x5416bf()||_0xc35586())return!0x0;}return!0x1;}function _0x40b5cd(){const _0x1c9811=_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c9811||0x0==_0x1c9811[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc55a72}=new URL(window[_0xf1e62f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c9811[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc55a72))return!0x0;const _0x4c9ee2=_0xc55a72[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e]));return _0x1c9811[_0xf1e62f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46847b=>_0x46847b[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x2a])))[_0xf1e62f([0x6d,0x61,0x70])](_0x284abc=>_0x284abc[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e])))[_0xf1e62f([0x73,0x6f,0x6d,0x65])](_0x30a379=>_0x4c9ee2[_0xf1e62f([0x65,0x76,0x65,0x72,0x79])]((_0x126e2b,_0x5baf27)=>_0x30a379[_0x5baf27]===_0x126e2b||_0x30a379[_0x5baf27]===_0xf1e62f([0x2a])));}function _0x432980(){return _0xbdcd4e&&_0x4cba0c?new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d0fdd,_0x1069e6)=>{_0xbdcd4e[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x3d0fdd,_0x1069e6),_0x4cba0c[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x3d6130=>{_0x3d6130!=_0xf1e62f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d0fdd(_0x3d6130);},_0x1069e6);}):_0xbdcd4e||_0x4cba0c||_0xf1e62f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1de574(_0x2245ce,_0x29e07a){return new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f341=>{if(_0x4f87fb())return _0x24f341(_0xf1e62f([0x56,0x61,0x6c,0x69,0x64]));_0xfc6fb6(),_0x24b5b6[_0xf1e62f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf1e62f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d1f3f=!0x1;const _0x59979d=_0x400c1f();function _0x50d639(_0x2467a3){return!!_0x2467a3&&(typeof _0x2467a3===_0xf1e62f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2467a3===_0xf1e62f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2467a3[_0xf1e62f([0x74,0x68,0x65,0x6e])]===_0xf1e62f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2467a3[_0xf1e62f([0x63,0x61,0x74,0x63,0x68])]===_0xf1e62f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bce86(_0x1e0789){_0x16642e(_0x1e0789)[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x3a37d1=>{if(!_0x3a37d1||_0x3a37d1[_0xf1e62f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf1e62f([0x6f,0x6b]))return _0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e96cc(_0x42d8e1(_0x59979d+_0x29e07a))!=_0x3a37d1[_0xf1e62f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf1e62f([0x56,0x61,0x6c,0x69,0x64]);})[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x13287b=>(_0x197dd6(),_0x13287b),()=>{const _0x26ee4d=_0x3f73aa();return null==_0x26ee4d?(_0x197dd6(),_0xf1e62f([0x56,0x61,0x6c,0x69,0x64])):_0xf1e62f(_0x540f09-_0x26ee4d>(0xcfb674a^_0x4ff9f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x24f341)[_0xf1e62f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24f341(_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a866c=0x28c10dca^_0x4ff9f5;function _0x197dd6(){const _0x2448b5=_0xf1e62f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e96cc(_0x42d8e1(_0x2245ce)),_0x3429ef=_0xe4ccdc(_0x3e96cc(window[_0xf1e62f([0x4d,0x61,0x74,0x68])][_0xf1e62f([0x63,0x65,0x69,0x6c])](_0x540f09/_0x4a866c)));window[_0xf1e62f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf1e62f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2448b5,_0x3429ef);}function _0x3f73aa(){const _0x2b3496=_0xf1e62f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e96cc(_0x42d8e1(_0x2245ce)),_0x278ae4=window[_0xf1e62f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf1e62f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b3496);return _0x278ae4?window[_0xf1e62f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe4ccdc(_0x278ae4),0x10)*_0x4a866c:null;}function _0x16642e(_0x528dc2){return new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5da071,_0x2393ef)=>{_0x528dc2[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x5da071,_0x2393ef),window[_0xf1e62f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2393ef,0x28f6378a^_0x4ff9f5);});}}_0x24b5b6[_0xf1e62f([0x6f,0x6e])](_0xf1e62f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x187af8,_0x292520)=>{if(_0x292520[0x0]!=_0x2245ce)return _0x24f341(_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x292520[0x1]={..._0x292520[0x1],[_0xf1e62f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59979d};},{[_0xf1e62f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf1e62f([0x68,0x69,0x67,0x68])}),_0x24b5b6[_0xf1e62f([0x6f,0x6e])](_0xf1e62f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33835e=>{_0x50d639(_0x33835e[_0xf1e62f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d1f3f=!0x0,_0x4bce86(_0x33835e[_0xf1e62f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf1e62f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf1e62f([0x6c,0x6f,0x77])}),_0xb1a665[_0xf1e62f([0x74,0x68,0x65,0x6e])](()=>{_0x3d1f3f||_0x24f341(_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f87fb(){return _0x24b5b6[_0xf1e62f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf1e62f([0x76,0x69,0x65,0x77])][_0xf1e62f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf1e62f([0x61,0x75,0x74,0x6f]);}function _0xfc6fb6(){_0x24b5b6[_0xf1e62f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf1e62f([0x76,0x69,0x65,0x77])][_0xf1e62f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf1e62f([0x61,0x75,0x74,0x6f]);}}function _0x3a19a5(_0x5081fd){const _0x27bedf=[new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ed12=>setTimeout(_0x52ed12,0x28fedd86^_0x4ff9f5)),_0xb1a665[_0xf1e62f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e67d=>{let _0xceb7b0=0x0;_0x24b5b6[_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c])][_0xf1e62f([0x6f,0x6e])](_0xf1e62f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a77db,_0x1cc489)=>{_0x1cc489[0x0][_0xf1e62f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xceb7b0++,_0xceb7b0==(0x28f7e2b2^_0x4ff9f5)&&(_0x57e67d(),_0x2a77db[_0xf1e62f([0x6f,0x66,0x66])]());});}))];return window[_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf1e62f([0x72,0x61,0x63,0x65])](_0x27bedf)[_0xf1e62f([0x74,0x68,0x65,0x6e])](()=>_0x5081fd);}async function _0x4bb64e(){await _0xb1a665,_0x24b5b6[_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c])][_0xf1e62f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ddeec,_0x24b5b6[_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c])][_0xf1e62f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ddeec,_0x24b5b6[_0xf1e62f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5271a5(){return _0x381cf1(_0xf1e62f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x340e60(_0xf1e62f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf1e62f([0x73,0x74,0x61,0x74,0x65])]==_0xf1e62f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5416bf(){return _0x381cf1(_0xf1e62f([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 _0xc35586(){return _0x381cf1(_0xf1e62f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x394a(_0xdf68c0){const _0x195b37=_0x46f5b7();_0x24b5b6[_0x195b37]=_0xf1e62f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdf68c0,_0xdf68c0!=_0xf1e62f([0x56,0x61,0x6c,0x69,0x64])&&_0x4bb64e();}function _0x46f5b7(){const _0x5a7b6d=window[_0xf1e62f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf1e62f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf1e62f([0x6e,0x6f,0x77])]())[_0xf1e62f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf1e62f([0x2e]),'');let _0x5ac22b=_0xf1e62f([0x48]);for(let _0x2659bf=0x0;_0x2659bf<_0x5a7b6d[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2659bf+=0x2){let _0x1e75e1=window[_0xf1e62f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a7b6d[_0xf1e62f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2659bf,_0x2659bf+0x2));_0x1e75e1>=_0x4ee42a[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e75e1-=_0x4ee42a[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ac22b+=_0x4ee42a[_0x1e75e1];}return _0x5ac22b;}function _0xe06f90(){const _0x22dbce=_0x595a31[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e]));if(0x3!=_0x22dbce[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45bab5(_0x22dbce[0x1]);function _0x45bab5(_0x275df9){const _0x5261d4=_0x104fd3(_0x275df9);return _0x5261d4&&_0x366bd2()?_0x5261d4:null;function _0x366bd2(){const _0x2c2692=_0x5261d4[_0xf1e62f([0x6a,0x74,0x69])],_0x158018=window[_0xf1e62f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c2692[_0xf1e62f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c2692[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc46ac0={..._0x5261d4,[_0xf1e62f([0x6a,0x74,0x69])]:_0x2c2692[_0xf1e62f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c2692[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc46ac0[_0xf1e62f([0x76,0x63])],_0x42d8e1(_0xc46ac0)==_0x158018;}}}async function _0x31a0e4(){let _0x52eafb=!0x0;try{const _0x42d3e9=_0x595a31[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e])),[_0x3b8a7c,_0x5acd48,_0x2ea930]=_0x42d3e9;return _0x48ca30(_0x3b8a7c),await _0x3a8dc3(_0x3b8a7c,_0x5acd48,_0x2ea930),_0x52eafb;}catch(_0x598f49){return!0x1;}function _0x48ca30(_0x34b589){const _0x46a490=_0x104fd3(_0x34b589);_0x46a490&&_0x46a490[_0xf1e62f([0x61,0x6c,0x67])]==_0xf1e62f([0x45,0x53,0x32,0x35,0x36])||(_0x52eafb=!0x1);}async function _0x3a8dc3(_0x31baa2,_0x3370d6,_0x233688){const _0x26f78b=window[_0xf1e62f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf1e62f([0x66,0x72,0x6f,0x6d])](_0x3a0b7a(_0x233688),_0x31a662=>_0x31a662[_0xf1e62f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35d487=new window[(_0xf1e62f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf1e62f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31baa2+_0xf1e62f([0x2e])+_0x3370d6),_0x13e2ea=window[_0xf1e62f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf1e62f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13e2ea)return;const _0x305878=await _0x13e2ea[_0xf1e62f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf1e62f([0x6a,0x77,0x6b]),_0x53469b,{[_0xf1e62f([0x6e,0x61,0x6d,0x65])]:_0xf1e62f([0x45,0x43,0x44,0x53,0x41]),[_0xf1e62f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf1e62f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf1e62f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13e2ea[_0xf1e62f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf1e62f([0x6e,0x61,0x6d,0x65])]:_0xf1e62f([0x45,0x43,0x44,0x53,0x41]),[_0xf1e62f([0x68,0x61,0x73,0x68])]:{[_0xf1e62f([0x6e,0x61,0x6d,0x65])]:_0xf1e62f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x305878,_0x26f78b,_0x35d487)||(_0x52eafb=!0x1);}}function _0x104fd3(_0x2572b4){return _0x2572b4[_0xf1e62f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf1e62f([0x65,0x79]))?JSON[_0xf1e62f([0x70,0x61,0x72,0x73,0x65])](_0x3a0b7a(_0x2572b4)):null;}function _0x3a0b7a(_0x218b7e){return window[_0xf1e62f([0x61,0x74,0x6f,0x62])](_0x218b7e[_0xf1e62f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf1e62f([0x2b]))[_0xf1e62f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf1e62f([0x2f])));}function _0x42d8e1(_0x84ebc){let _0x55ac3f=0x1505;function _0x271090(_0x540ed6){for(let _0x43400d=0x0;_0x43400d<_0x540ed6[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43400d++){const _0x137fc0=_0x540ed6[_0xf1e62f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43400d);_0x55ac3f=(_0x55ac3f<<0x5)+_0x55ac3f+_0x137fc0,_0x55ac3f&=_0x55ac3f;}}function _0x5c3602(_0x5d69fb){Array[_0xf1e62f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d69fb)?_0x5d69fb[_0xf1e62f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3602):_0x5d69fb&&typeof _0x5d69fb==_0xf1e62f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf1e62f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d69fb)[_0xf1e62f([0x73,0x6f,0x72,0x74])]()[_0xf1e62f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x569fe6,_0x29aac3])=>{_0x271090(_0x569fe6),_0x5c3602(_0x29aac3);}):_0x271090(window[_0xf1e62f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d69fb));}return _0x5c3602(_0x84ebc),_0x55ac3f>>>0x0;}function _0x3e96cc(_0x364a23){return _0x364a23[_0xf1e62f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf1e62f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf1e62f([0x30]));}function _0xe4ccdc(_0x24fb84){return _0x24fb84[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf1e62f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf1e62f([0x6a,0x6f,0x69,0x6e])]('');}function _0x381cf1(_0x86ae67){return _0x24b5b6[_0xf1e62f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf1e62f([0x68,0x61,0x73])](_0x86ae67);}function _0x340e60(_0x1aec12){return _0x24b5b6[_0xf1e62f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf1e62f([0x67,0x65,0x74])](_0x1aec12);}function _0x4ddeec(){}function _0xf1e62f(_0x2e3cec){return _0x2e3cec['map'](_0x3b8b97=>String['fromCharCode'](_0x3b8b97))['join']('');}_0x394a(await _0x60b4f());}(this);}set['adapter'](_0x38989c){if(this['_adapter'])throw new _0x59c5ca('track-changes-adapter-already-set',this);this['_adapter']=_0x38989c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5566a7=!0x1,toJSON:_0x1e5154=!0x1}={}){const _0x36c3e2=[];for(const _0x1a8672 of this['_suggestions']['values']())_0x5566a7&&!_0x1a8672['isInContent']||_0x36c3e2['push'](_0x1a8672);return _0x1e5154?_0x36c3e2['map'](_0x1796dd=>_0x1796dd['toJSON']()):_0x36c3e2;}['getSuggestion'](_0x585b82){const _0xc34566=this['_suggestions']['get'](_0x585b82);if(!_0xc34566)throw new _0x59c5ca('track-changes-suggestion-not-found',this);return _0xc34566;}['hasSuggestion'](_0x10c507){return this['_suggestions']['has'](_0x10c507);}['addSuggestionData'](_0x38d6c7){const {authorId:_0x3a7471,id:_0x17fd7a,attributes:_0x112026}=_0x38d6c7,[_0x36bb99,_0x54816a]=_0x38d6c7['type']['split'](':'),_0x3f714e=this['_suggestions']['get'](_0x17fd7a)||this['_createSuggestion'](_0x36bb99,_0x54816a,_0x17fd7a,_0x3a7471,_0x112026);if(this['_addThreadToSuggestion'](_0x3f714e),this['_checkSuggestionCorrectness'](_0x3f714e,_0x36bb99,_0x54816a||null,_0x3a7471),_0x3f714e['createdAt']=_0x38d6c7['createdAt'],_0x3f714e['_isDataLoaded']=!0x0,_0x112026&&_0x112026['@external']){const _0x1758dc=_0x112026['@external'],_0x7c7331=this['_getExternalAuthor'](_0x1758dc['authorName']);_0x3f714e['authoredAt']=_0x1758dc['createdAt'],_0x3f714e['author']=_0x7c7331,_0x3f714e['isExternal']=!0x0;}else _0x3f714e['authoredAt']=_0x38d6c7['createdAt'];switch(_0x38d6c7['data']&&(_0x3f714e['data']=_0x38d6c7['data']),_0x38d6c7['attributes']&&(_0x3f714e['attributes']=_0x38d6c7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f714e['_saved']=!0x0),this['_suggestionState']['get'](_0x3f714e)){case'notReady':this['_suggestionState']['set'](_0x3f714e,'dataReady');break;case'markerReady':_0x3f714e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f714e])),this['_refreshSuggestionsChain'](new Set([_0x3f714e])),this['_suggestionState']['set'](_0x3f714e,'ready'),this['fire']('suggestionLoaded',_0x3f714e)):this['_suggestionState']['set'](_0x3f714e,'removed');}return _0x3f714e;}['acceptSuggestion'](_0xfb3650){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f5c34 of _0xfb3650['getAllAdjacentSuggestions']())_0x4f5c34['accept']();});});}['discardSuggestion'](_0x4e132e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c770b of _0x4e132e['getAllAdjacentSuggestions']())_0x2c770b['discard']();});});}['enableCommand'](_0x434b79,_0x33785e){const _0x342d48=this['editor']['commands']['get'](_0x434b79);if(!_0x342d48)throw new _0x59c5ca('track-changes-command-not-found',this,{'commandName':_0x434b79});if(this['_enabledCommands']['has'](_0x342d48))throw new _0x59c5ca('track-changes-enable-command-twice',this,{'commandName':_0x434b79});this['_enabledCommands']['add'](_0x342d48),_0x33785e&&_0x342d48['on']('execute',(_0x2647ef,_0x208c4a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x208c4a['length']>0x0&&_0x208c4a[_0x208c4a['length']-0x1]&&_0x208c4a[_0x208c4a['length']-0x1]['forceDefaultExecution']?_0x208c4a['pop']():(_0x2647ef['return']=_0x33785e((..._0x55eb8f)=>_0x342d48['execute'](..._0x55eb8f,{'forceDefaultExecution':!0x0}),..._0x208c4a),_0x2647ef['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x409918){let _0x94384f,_0x514a5f;const _0x5ca4fc=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x94384f=_0x409918();}catch(_0xb4586){_0x514a5f=_0xb4586;}return _0x5ca4fc||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x514a5f&&_0x59c5ca['rethrowUnexpectedError'](_0x514a5f,this),_0x94384f;}['markInsertion'](_0xe64176,_0x24d0fd=null,_0x43fba1={}){if(_0xe64176['isCollapsed'])return null;const _0x20ad65=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xe8cef1,meta:_0x3a2fe1}of this['_findSuggestions'](_0xe64176,'insertion'))if(_0x3a2fe1['isOwn']){if(!_0x3a2fe1['isNextTo']){if(_0x3a2fe1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xe8cef1,_0x43fba1))continue;return _0xe8cef1;}if(Xt(_0xe8cef1,_0x43fba1))return _0xe8cef1;this['_breakSuggestionMarker'](_0xe8cef1,_0xe64176['start'],_0xe64176['end']);break;}if(_0x24d0fd==_0xe8cef1['subType']&&Xt(_0xe8cef1,_0x43fba1)){const _0x26a280=_0xe8cef1['getFirstRange']();return _0x26a280['start']['isEqual'](_0xe64176['end'])?this['_setSuggestionRange'](_0xe8cef1,this['_model']['createRange'](_0xe64176['start'],_0x26a280['end'])):this['_setSuggestionRange'](_0xe8cef1,this['_model']['createRange'](_0x26a280['start'],_0xe64176['end'])),_0xe8cef1;}}const _0x2cb924=_0x400c1f(),_0x357762=_0x20ad65['id'],_0x177216=_0x24d0fd?'insertion:'+_0x24d0fd:'insertion',_0x7b1ad9=this['_setSuggestionData']({'id':_0x2cb924,'type':_0x177216,'createdAt':new Date(),'authorId':_0x357762,'attributes':_0x43fba1});return this['_addSuggestionMarker'](_0x177216,_0x2cb924,_0x357762,_0xe64176),_0x7b1ad9;}['markMultiRangeInsertion'](_0x341e0c,_0x413410='multi',_0x23b14a={}){const _0x251978=this['editor']['plugins']['get']('Users')['me'],_0x262e67=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x413410,'join');for(const _0x25119a of this['getSuggestions']())if(_0x25119a['author']['id']==_0x251978['id']&&'insertion'==_0x25119a['type']&&_0x25119a['subType']==_0x413410&&Xt(_0x25119a,_0x23b14a)&&(_0x262e67(_0x25119a['getRanges'](),_0x341e0c)||_0x262e67(_0x341e0c,_0x25119a['getRanges']()))){for(const _0x334803 of _0x341e0c)_0x25119a['addRange'](_0x334803);return _0x25119a;}for(const {suggestion:_0xc2a7b,meta:_0x2e80a9}of this['_findSuggestions'](_0x341e0c,'insertion')){if(!_0x2e80a9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e80a9['containsRangeInObject'])continue;if(!Xt(_0xc2a7b,_0x23b14a))continue;let _0x19bb83=!0x0;for(const _0x43b321 of _0xc2a7b['getRanges']())for(const _0x11d6fe of _0x341e0c)if(!_0x43b321['containsRange'](_0x11d6fe)){_0x19bb83=!0x1;break;}if(_0x19bb83)return _0xc2a7b;}const _0x3b9bf4=_0x400c1f(),_0x25dfbf=_0x251978['id'],_0x39a8af='insertion:'+_0x413410,_0x164031=this['_setSuggestionData']({'id':_0x3b9bf4,'type':_0x39a8af,'createdAt':new Date(),'authorId':_0x25dfbf,'attributes':_0x23b14a});for(const _0x277659 of _0x341e0c)this['_addSuggestionMarker'](_0x39a8af,_0x3b9bf4,_0x25dfbf,_0x277659,o['getMultiRangeId']());return _0x164031;}['markInlineFormat'](_0x4dc522,_0x1f032d,_0x5a649a=null,_0x468eab={}){if(_0x5a649a=_0x5a649a||Kt(_0x1f032d),_0x4dc522['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x25b33e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a649a,'accept');return this['forceDefaultExecution'](()=>_0x25b33e([_0x4dc522],_0x1f032d,_0x468eab)),null;}const _0x1ddb2d=this['editor']['plugins']['get']('Users')['me'],_0x120f67=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x21580a,meta:_0x2f0395}of this['_findSuggestions'](_0x4dc522,'insertion'))_0x2f0395['isOwn']&&!_0x2f0395['isInsideObject']&&_0x120f67['push'](..._0x21580a['getRanges']());}const _0x3dadb4=function(_0x15ed5b,_0x5c585b){const _0xd00369=[];for(const _0x28e16f of _0x5c585b){const _0x5246b5=_0x15ed5b['getIntersection'](_0x28e16f);_0x5246b5&&_0xd00369['push'](_0x5246b5);}return _0xd00369;}(_0x4dc522,_0x120f67),_0x16c600=function(_0x183b0b,_0x1f5159){const _0x1ed1c1=[_0x183b0b];for(const _0x49ca2f of _0x1f5159){let _0x3ac8a5=0x0;for(;_0x3ac8a5<_0x1ed1c1['length'];){const _0x5eac44=_0x1ed1c1[_0x3ac8a5]['getDifference'](_0x49ca2f);_0x1ed1c1['splice'](_0x3ac8a5,0x1,..._0x5eac44),_0x3ac8a5+=_0x5eac44['length'];}}return _0x1ed1c1;}(_0x4dc522,_0x120f67);_0x3dadb4['length']&&this['_model']['change'](()=>{for(const _0x1659c1 of _0x3dadb4){const _0x5503d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a649a,'accept');this['forceDefaultExecution'](()=>_0x5503d8([_0x1659c1],_0x1f032d,_0x468eab));}});for(const _0x582dc9 of _0x16c600){let _0x121062=null,_0x4ed8c8=_0x582dc9['start'],_0x574d3a=_0x582dc9['end'];for(const {suggestion:_0x38ece9,meta:_0x201644}of this['_findSuggestions'](_0x582dc9,'formatInline')){if(!_0x201644['isOwn'])continue;if(_0x38ece9['subType']!=_0x5a649a)continue;if(!Xt(_0x38ece9,_0x468eab))continue;const _0x53945a=_0x38ece9['getFirstRange']();if(_0x53945a['containsRange'](_0x582dc9,!0x0))return null;_0x4ed8c8=_0x4ed8c8['isBefore'](_0x53945a['start'])?_0x4ed8c8:_0x53945a['start'],_0x574d3a=_0x574d3a['isAfter'](_0x53945a['end'])?_0x574d3a:_0x53945a['end'],_0x121062?_0x53945a['start']['isBefore'](_0x121062['getFirstRange']()['start'])?(_0x121062['removeMarkers'](),_0x121062=_0x38ece9):_0x38ece9['removeMarkers']():_0x121062=_0x38ece9;}const _0x261371=this['_model']['createRange'](_0x4ed8c8,_0x574d3a);if(_0x121062)this['_setSuggestionRange'](_0x121062,_0x261371);else{const _0x1617c7=_0x400c1f(),_0x594e1f=_0x1ddb2d['id'];this['_setSuggestionData']({'id':_0x1617c7,'type':'formatInline:'+_0x5a649a,'data':_0x1f032d,'createdAt':new Date(),'authorId':_0x594e1f,'attributes':_0x468eab}),this['_addSuggestionMarker']('formatInline:'+_0x5a649a,_0x1617c7,_0x594e1f,_0x261371);}}return null;}['markBlockFormat'](_0x4de523,_0x4318f0,_0xa92181=[],_0x44ca55=null,_0x18dcfe={}){_0x4318f0['formatGroupId']||(_0x4318f0['formatGroupId']=_0x4318f0['commandName']),_0x4318f0['multipleBlocks']=_0x4de523['is']('range'),_0x44ca55=_0x44ca55||Kt(_0x4318f0);const _0x32ffe0=_0xa92181['map'](_0x2b8a9b=>zt(_0x2b8a9b,this['_model'])),_0x113373=_0x4de523['is']('range')?_0x4de523:zt(_0x4de523,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1137da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44ca55,'accept');return this['forceDefaultExecution'](()=>_0x1137da([_0x113373],_0x4318f0,_0x18dcfe)),null;}_0x32ffe0['push'](_0x113373);let _0x5de486=!0x0;for(const _0x1791f0 of _0x32ffe0)if(!this['_rangeIsInLocalUserInsertion'](_0x1791f0)){_0x5de486=!0x1;break;}if(_0x5de486&&'always'!==this['_trackFormatChanges']){const _0x4f6981=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44ca55,'accept');return this['forceDefaultExecution'](()=>_0x4f6981([_0x113373],_0x4318f0,_0x18dcfe)),null;}let _0x2a8b39=null,_0x27354d=_0x113373['start'],_0x5e7a64=_0x113373['end'];for(const {suggestion:_0x38400e,meta:_0x15824b}of this['_findSuggestions'](_0x113373,'formatBlock')){if(!_0x15824b['isOwn'])continue;if(_0x15824b['isNextTo']||_0x15824b['containsRangeInObject']||_0x15824b['isInsideObject'])continue;if(_0x38400e['data']['formatGroupId']!=_0x4318f0['formatGroupId'])continue;if(!Xt(_0x38400e,_0x18dcfe))continue;const _0x32f659=_0x38400e['getFirstRange']();if(_0x38400e['subType']==_0x44ca55){if(_0x32f659['containsRange'](_0x113373,!0x0))return null;_0x27354d=_0x27354d['isBefore'](_0x32f659['start'])?_0x27354d:_0x32f659['start'],_0x5e7a64=_0x5e7a64['isAfter'](_0x32f659['end'])?_0x5e7a64:_0x32f659['end'],_0x2a8b39?_0x32f659['start']['isBefore'](_0x2a8b39['getFirstRange']()['start'])?(_0x2a8b39['removeMarkers'](),_0x2a8b39=_0x38400e):_0x38400e['removeMarkers']():_0x2a8b39=_0x38400e;}else{const _0x6f63c6=_0x113373['getIntersection'](_0x32f659);this['_cutOutSuggestionMarker'](_0x38400e,_0x6f63c6);}}const _0x33a23a=this['editor']['plugins']['get']('Users')['me'],_0x2b059e=_0x400c1f(),_0x4ef6f6=_0x33a23a['id'];if(_0x2a8b39)return this['_setSuggestionRange'](_0x2a8b39,this['_model']['createRange'](_0x27354d,_0x5e7a64)),_0x2a8b39;{const _0x4ea115=this['_setSuggestionData']({'id':_0x2b059e,'type':'formatBlock:'+_0x44ca55,'data':_0x4318f0,'createdAt':new Date(),'authorId':_0x4ef6f6,'attributes':_0x18dcfe});return this['_addSuggestionMarker']('formatBlock:'+_0x44ca55,_0x2b059e,_0x4ef6f6,this['_model']['createRange'](_0x27354d,_0x5e7a64)),_0x4ea115;}}['markMultiRangeBlockFormat'](_0xb68c36,_0x2563a0,_0x452f77=[],_0x26dac0=null,_0x172256={}){_0x2563a0['formatGroupId']||(_0x2563a0['formatGroupId']=_0x2563a0['commandName']);const _0x304a30=_0xb68c36[0x0];_0x2563a0['multipleBlocks']=_0x304a30['is']('range'),_0x26dac0=_0x26dac0||Kt(_0x2563a0);const _0x6f1a0=_0x452f77['map'](_0x4d66a7=>zt(_0x4d66a7,this['_model'])),_0x3a2707=_0x304a30['is']('range')?_0xb68c36:_0xb68c36['map'](_0x3323d1=>zt(_0x3323d1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4576ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26dac0,'accept');return this['forceDefaultExecution'](()=>_0x4576ca(_0x3a2707,_0x2563a0,_0x172256)),null;}_0x6f1a0['push'](..._0x3a2707);let _0x249d56=!0x0;for(const _0xe687d6 of _0x6f1a0)if(!this['_rangeIsInLocalUserInsertion'](_0xe687d6)){_0x249d56=!0x1;break;}if(_0x249d56&&'always'!==this['_trackFormatChanges']){const _0x4e790f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26dac0,'accept');return this['forceDefaultExecution'](()=>_0x4e790f(_0x3a2707,_0x2563a0,_0x172256)),null;}const _0x2baf1d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f21fd of this['getSuggestions']()){if(_0x2f21fd['author']['id']!=_0x2baf1d['id'])continue;if('formatBlock'!=_0x2f21fd['type']||_0x2f21fd['data']['formatGroupId']!=_0x2563a0['formatGroupId'])continue;if(!Xt(_0x2f21fd,_0x172256))continue;const _0x7ff995=_0x2f21fd['subType']==_0x26dac0;for(let _0x497600=0x0;_0x497600<_0x3a2707['length'];_0x497600++){const _0x4ecad5=_0x3a2707[_0x497600];for(const _0x279034 of _0x2f21fd['getMarkers']()){const _0xa0fb4b=_0x279034['getRange']();if(_0x4ecad5['isEqual'](_0xa0fb4b)){_0x7ff995?(_0x3a2707['splice'](_0x497600,0x1),_0x497600--):_0x2f21fd['removeMarker'](_0x279034['name']);break;}}}}if(0x0==_0x3a2707['length'])return null;const _0x331d81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26dac0,'join');for(const _0x4f4e66 of this['getSuggestions']())if(_0x4f4e66['author']['id']==_0x2baf1d['id']&&'formatBlock'==_0x4f4e66['type']&&_0x4f4e66['data']['formatGroupId']==_0x2563a0['formatGroupId']&&_0x4f4e66['subType']==_0x26dac0&&Xt(_0x4f4e66,_0x172256)&&(_0x331d81(_0x4f4e66['getRanges'](),_0x3a2707)||_0x331d81(_0x3a2707,_0x4f4e66['getRanges']()))){for(const _0xbbb88e of _0x3a2707)_0x4f4e66['addRange'](_0xbbb88e);return _0x4f4e66;}const _0x66918c=_0x400c1f(),_0xc2c5bc=_0x2baf1d['id'],_0x56b72d='formatBlock:'+_0x26dac0,_0xba1009=this['_setSuggestionData']({'id':_0x66918c,'type':_0x56b72d,'data':_0x2563a0,'createdAt':new Date(),'authorId':_0xc2c5bc,'attributes':_0x172256});for(const _0xdfc20d of _0x3a2707)this['_addSuggestionMarker'](_0x56b72d,_0x66918c,_0xc2c5bc,_0xdfc20d,o['getMultiRangeId']());return _0xba1009;}['markDeletion'](_0x4ec403,_0x17e0c6=null,_0x1fa682={}){if(_0x4ec403['isCollapsed'])return null;const _0x59f45c=this['editor']['plugins']['get']('Users')['me'],_0x3efa5f=new _0x2346b0(_0x4ec403['start'],_0x4ec403['end']);for(const {suggestion:_0x10e7c5,meta:_0x2f4a5a}of this['_findSuggestions'](_0x3efa5f,'insertion'))if(_0x2f4a5a['isOwn']&&!_0x2f4a5a['isNextTo']){if(_0x10e7c5['isMultiRange']){const _0x14eaa3=_0x10e7c5['getRanges']()['filter'](_0x36321d=>'$graveyard'!=_0x36321d['root']['rootName']);_0x14eaa3['every'](_0x1031f6=>_0x3efa5f['containsRange'](_0x1031f6,!0x0))&&_0x10e7c5['discard']();if(_0x14eaa3['some'](_0x2449a3=>_0x2449a3['containsRange'](_0x3efa5f,!0x0))){const _0x3d98b9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17e0c6,'accept');return this['forceDefaultExecution'](()=>_0x3d98b9([_0x3efa5f],null,_0x1fa682)),null;}}else{const _0x4dd0e1=_0x3efa5f['getIntersection'](_0x10e7c5['getFirstRange']());null!==_0x4dd0e1&&_0x10e7c5['_onDiscard']([_0x4dd0e1],null,_0x1fa682);}}if(_0x3efa5f['detach'](),_0x3efa5f['isCollapsed']||'$graveyard'==_0x3efa5f['root']['rootName'])return null;let _0x21ca13=null,_0x595f0b=_0x3efa5f['start'],_0x3601f8=_0x3efa5f['end'];const _0x5a3029=this['_findSuggestions'](_0x3efa5f,'deletion');for(const {suggestion:_0x528b40,meta:_0x1b07e3}of _0x5a3029){const _0x3a0c57=this['_model']['createRange'](_0x595f0b,_0x3601f8);if(_0x1b07e3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b07e3['containsRangeInObject']&&!_0x1b07e3['isInsideObject'])){if(_0x528b40['isMultiRange']){if(!Xt(_0x528b40,_0x1fa682))continue;let _0x24df14=!0x0;for(const _0x48b575 of _0x528b40['getRanges']()){if(_0x48b575['containsRange'](_0x3a0c57,!0x0))return _0x528b40;_0x3a0c57['containsRange'](_0x48b575)||(_0x24df14=!0x1);}_0x24df14&&_0x528b40['discard']();}else{const _0x33adc2=_0x528b40['getFirstRange']();if(_0x33adc2['containsRange'](_0x3a0c57,!0x0))return _0x528b40;if(!Xt(_0x528b40,_0x1fa682)){_0x3a0c57['containsRange'](_0x33adc2)?_0x528b40['removeMarkers']():_0x33adc2['containsPosition'](_0x595f0b)?_0x595f0b=_0x33adc2['end']:_0x33adc2['containsPosition'](_0x3601f8)&&(_0x3601f8=_0x33adc2['start']);continue;}_0x595f0b=_0x595f0b['isBefore'](_0x33adc2['start'])?_0x595f0b:_0x33adc2['start'],_0x3601f8=_0x3601f8['isAfter'](_0x33adc2['end'])?_0x3601f8:_0x33adc2['end'],_0x1fa682=Object['assign']({},_0x528b40['attributes']),_0x21ca13?_0x33adc2['start']['isBefore'](_0x21ca13['getFirstRange']()['start'])?(_0x21ca13['removeMarkers'](),_0x21ca13=_0x528b40):_0x528b40['removeMarkers']():_0x21ca13=_0x528b40;}}}if(_0x21ca13)return this['_setSuggestionRange'](_0x21ca13,this['_model']['createRange'](_0x595f0b,_0x3601f8)),_0x21ca13;{const _0x5ae8f7=_0x400c1f(),_0x3abfde=this['_model']['createRange'](_0x595f0b,_0x3601f8),_0x4d667b=_0x59f45c['id'],_0x5ebab3=_0x17e0c6?'deletion:'+_0x17e0c6:'deletion',_0x257c7a=this['_setSuggestionData']({'id':_0x5ae8f7,'type':_0x5ebab3,'createdAt':new Date(),'authorId':_0x4d667b,'attributes':_0x1fa682});return this['_addSuggestionMarker'](_0x5ebab3,_0x5ae8f7,_0x4d667b,_0x3abfde),_0x257c7a;}}['markMultiRangeDeletion'](_0x381765,_0x41bdca='multi',_0x4dd190={}){const _0x5bc8de=this['editor']['plugins']['get']('Users')['me'],_0x2dd779=_0x381765['map'](_0x443dda=>new _0x2346b0(_0x443dda['start'],_0x443dda['end'])),_0x5537e6=new Set();for(const {suggestion:_0x1090f4,meta:_0x4482ae}of this['_findSuggestions'](_0x2dd779,'insertion'))_0x4482ae['isOwn']&&!_0x4482ae['isNextTo']&&_0x5537e6['add'](_0x1090f4);for(const _0x1a95ac of _0x5537e6)if(_0x1a95ac['isMultiRange']){const _0x58e4e6=_0x1a95ac['getRanges']();(!_0x1a95ac['attributes']||!_0x1a95ac['attributes']['skipNestingCheck'])&&(_0x58e4e6['every'](_0xf09155=>_0x2dd779['some'](_0x48547c=>_0x48547c['containsRange'](_0xf09155,!0x0)))&&_0x1a95ac['discard']());if(_0x2dd779['every'](_0x3240b0=>_0x58e4e6['some'](_0xf3aae0=>_0xf3aae0['containsRange'](_0x3240b0,!0x0)))){const _0x142de2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41bdca,'accept');return this['forceDefaultExecution'](()=>_0x142de2(_0x381765,null,_0x4dd190)),null;}}else{const _0x56d0c0=_0x1a95ac['getFirstRange']();_0x2dd779['some'](_0x1cc815=>_0x1cc815['containsRange'](_0x56d0c0,!0x0))&&_0x1a95ac['discard']();if(_0x2dd779['every'](_0x4d44b6=>_0x56d0c0['containsRange'](_0x4d44b6,!0x0))){const _0x5e08f7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41bdca,'accept');return this['forceDefaultExecution'](()=>_0x5e08f7(_0x2dd779,null,_0x4dd190)),null;}}const _0x5e840c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41bdca,'join');let _0x200dd2=null;for(const _0x37ef05 of this['getSuggestions']())if(_0x37ef05['author']['id']==_0x5bc8de['id']&&_0x37ef05['isInContent']&&'deletion'==_0x37ef05['type']&&_0x37ef05['subType']==_0x41bdca&&Xt(_0x37ef05,_0x4dd190)&&(_0x5e840c(_0x37ef05['getRanges'](),_0x2dd779)||_0x5e840c(_0x2dd779,_0x37ef05['getRanges']()))){if(_0x200dd2){if(_0x37ef05['commentThread']&&_0x37ef05['commentThread']['length'])continue;for(const _0x5b8d3c of _0x37ef05['getRanges']())_0x200dd2['isIntersectingWithRange'](_0x5b8d3c)||_0x200dd2['addRange'](_0x5b8d3c);_0x37ef05['removeMarkers']();}else{_0x200dd2=_0x37ef05;for(const _0x1e651c of _0x2dd779)_0x37ef05['isIntersectingWithRange'](_0x1e651c)||_0x37ef05['addRange'](_0x1e651c);}}if(_0x200dd2)return _0x200dd2;_0x5537e6['clear']();for(const {suggestion:_0x37c965,meta:_0x5ef185}of this['_findSuggestions'](_0x2dd779,'deletion'))_0x5ef185['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ef185['containsRangeInObject']&&!_0x5ef185['isInsideObject'])&&Xt(_0x37c965,_0x4dd190)&&_0x5537e6['add'](_0x37c965);for(const _0x37caf7 of _0x5537e6){const _0x1d1083=_0x37caf7['getRanges']();if(!_0x4dd190||!_0x4dd190['skipNestingCheck']){if(_0x2dd779['every'](_0x31ae78=>_0x1d1083['some'](_0xfb4c13=>_0xfb4c13['containsRange'](_0x31ae78,!0x0))))return _0x37caf7;}(!_0x37caf7['attributes']||!_0x37caf7['attributes']['skipNestingCheck'])&&(_0x1d1083['every'](_0x5bc600=>_0x2dd779['some'](_0x3d0e77=>_0x3d0e77['containsRange'](_0x5bc600,!0x0)))&&_0x37caf7['discard']());}const _0x5f3ce2=_0x400c1f(),_0x4148fc=_0x5bc8de['id'],_0x38e4ff='deletion:'+_0x41bdca,_0x1ff885=this['_setSuggestionData']({'id':_0x5f3ce2,'type':_0x38e4ff,'createdAt':new Date(),'authorId':_0x4148fc,'attributes':_0x4dd190});for(const _0x233608 of _0x2dd779)_0x233608['detach'](),_0x233608['isCollapsed']||'$graveyard'==_0x233608['root']['rootName']||this['_addSuggestionMarker'](_0x38e4ff,_0x5f3ce2,_0x4148fc,_0x233608,o['getMultiRangeId']());return _0x1ff885;}['markAttributeChange'](_0x4e1964,_0x1f0ff5,_0x3a2130,_0x4454d2,_0xd7e96a){if(_0x4e1964['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cfe89=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c5f71=Array['from'](this['_suggestions']['values']())['filter'](_0x5a49a2=>'attribute'==_0x5a49a2['type']&&_0x5a49a2['data']['key']==_0x1f0ff5&&_0x5a49a2['isIntersectingWithRange'](_0x4e1964));if('default'===this['_trackFormatChanges']){const _0x183160=this['_findSuggestions'](_0x4e1964,'insertion')['filter'](({meta:_0x27f4b4})=>_0x27f4b4['isOwn']&&!_0x27f4b4['isInsideObject']&&!_0x27f4b4['isNextTo'])['map'](({suggestion:_0x4cae27})=>_0x4cae27);_0x3c5f71['unshift'](..._0x183160);}const _0x2a56e5=new Map([[_0x4e1964,_0x3a2130]]);for(const _0x39988a of _0x3c5f71){const _0x260a2c='attribute'==_0x39988a['type']?_0x39988a['data']['oldValue']:void 0x0,_0x291715=_0x39988a['getFirstRange'](),_0x13192c=Array['from'](_0x2a56e5['keys']())['find'](_0x5ccf91=>_0x5ccf91['isIntersecting'](_0x291715));if(!_0x13192c)continue;const _0x33b850=_0x13192c['getDifference'](_0x291715);this['_isBlockAttribute'](_0x1f0ff5)&&'insertion'==_0x39988a['type']&&0x0!=_0x33b850['length']||(_0x2a56e5['delete'](_0x13192c),_0x33b850['forEach'](_0x3b5f65=>{_0x2a56e5['set'](_0x3b5f65,_0x3a2130);}),'insertion'!=_0x39988a['type']&&_0x260a2c!=_0x4454d2&&_0x2a56e5['set'](_0x13192c['getIntersection'](_0x291715),_0x260a2c));}const _0x151cb2=[];for(const [_0x1ce26d,_0x534062]of _0x2a56e5){const _0x51a8d0=_0x400c1f(),_0x15caf8={'key':_0x1f0ff5,'oldValue':_0x534062,'newValue':_0x4454d2};_0x1f0ff5['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':_0x1f0ff5});const _0x216f8a=('attribute:'+(_0x1f0ff5+'|'+Kt({'newValue':_0x4454d2})))['substring'](0x0,0x3c),_0x5a2cbe=this['_setSuggestionData']({'id':_0x51a8d0,'type':_0x216f8a,'data':_0x15caf8,'createdAt':new Date(),'authorId':_0x2cfe89,'attributes':_0xd7e96a});_0x151cb2['push'](_0x5a2cbe),this['_addSuggestionMarker'](_0x216f8a,_0x51a8d0,_0x2cfe89,_0x1ce26d);}return _0x151cb2;}['enableDefaultAttributesIntegration'](_0x1ad7cc){this['enableCommand'](_0x1ad7cc,(_0x5be081,..._0x5e672d)=>{this['_recordAttributeChanges'](()=>{_0x5be081(..._0x5e672d);});});}['registerBlockAttribute'](_0x396fbd){this['_blockAttributeKeys']['add'](_0x396fbd);}['registerInlineAttribute'](_0x1319cd){this['_inlineAttributeKeys']['add'](_0x1319cd);}['_getAttributeKey'](_0x1c42e8){return'attribute'==_0x1c42e8['type']?_0x1c42e8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x123f39,_0x58da3c){const _0x54f81f=_0x123f39['getFirstMarker']();this['_model']['change'](_0x24525c=>{_0x24525c['updateMarker'](_0x54f81f,{'range':_0x58da3c});});}['_addThreadToSuggestion'](_0x2d9df9){const _0x583a96=_0x2d9df9['id'],_0x5bceb5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x583a96)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bceb5,'threadId':_0x583a96,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x399d1c=this['_commentsRepository']['getCommentThread'](_0x583a96);_0x399d1c['unbind']('isRemovable'),_0x399d1c['isRemovable']=!0x1,_0x2d9df9['commentThread']=_0x399d1c;}['_checkSuggestionCorrectness'](_0x1c704b,_0x4b14ea,_0x46d1de,_0x1ec5cb){if(_0x1c704b['type']!=_0x4b14ea||_0x1c704b['subType']!=_0x46d1de||_0x1c704b['creator']['id']!=_0x1ec5cb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59c5ca('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x138c25,_0x3a009f){const _0x4f7751=_0x138c25['getFirstRange']();if(_0x3a009f['isEqual'](_0x4f7751))_0x138c25['removeMarkers']();else{if(_0x4f7751['containsRange'](_0x3a009f)){const _0x3faab7=this['_model']['createPositionAt'](_0x3a009f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x138c25,this['_model']['createRange'](_0x4f7751['start'],_0x3faab7));const _0x399450=_0x400c1f(),_0x2cc9f9=_0x138c25['creator']['id'],_0x34267c=_0x138c25['type']+':'+_0x138c25['subType'];this['_setSuggestionData']({'id':_0x399450,'type':_0x34267c,'createdAt':new Date(),'authorId':_0x2cc9f9,'data':_0x138c25['data'],'attributes':_0x138c25['attributes']});const _0x11bb13=this['_model']['createPositionAt'](_0x3a009f['end']['parent'],'after'),_0x24a73c=this['_model']['createRange'](_0x11bb13,_0x4f7751['end']);this['_addSuggestionMarker'](_0x34267c,_0x399450,_0x2cc9f9,_0x24a73c);}else{if(_0x4f7751['containsPosition'](_0x3a009f['start'])){const _0x590bd8=this['_model']['createPositionAt'](_0x3a009f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x138c25,this['_model']['createRange'](_0x4f7751['start'],_0x590bd8));}else{const _0x9962c=this['_model']['createPositionAt'](_0x3a009f['end']['parent'],'after');this['_setSuggestionRange'](_0x138c25,this['_model']['createRange'](_0x9962c,_0x4f7751['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x702ff){for(const {suggestion:_0x5022f0,meta:_0x305d6d}of this['_findSuggestions'](_0x702ff,'insertion')){if(!_0x305d6d['isOwn'])continue;const _0x12baa0=_0x5022f0['getRanges']();for(const _0x58f519 of _0x12baa0)if(!_0x702ff['getDifference'](_0x58f519)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x556df6){const _0x31dbe9=this['editor']['plugins']['get']('Users')['getUser'](_0x556df6);if(!_0x31dbe9)throw new _0x59c5ca('track-changes-user-not-found',this);return _0x31dbe9;}['_getExternalAuthor'](_0x1eaa50){const _0x19c567=this['editor']['plugins']['get']('Users'),_0x457973=_0x294053('external:'+_0x1eaa50),_0x464d38=_0x19c567['getUser'](_0x457973);return _0x464d38||_0x19c567['addUser']({'id':_0x457973,'name':_0x1eaa50});}['_createSuggestion'](_0x13b1d4,_0x311f63,_0x10bc67,_0x4e0ac2,_0x3f5d2c){const _0x54cb74=this['_getAuthorFromId'](_0x4e0ac2),_0x23381f=this['_suggestionFactory']['buildSuggestion'](_0x13b1d4,_0x311f63,_0x10bc67,_0x54cb74,_0x3f5d2c,_0x4a6ee2=>{this['_updateSuggestionData'](_0x10bc67,{'attributes':_0x4a6ee2});const _0x3194c2=this['getSuggestion'](_0x10bc67);this['_joinWithAdjacentSuggestions'](new Set([_0x3194c2])),this['_refreshSuggestionsChain'](new Set([_0x3194c2]));});return this['listenTo'](_0x23381f,'accept',()=>{this['_updateSuggestionData'](_0x10bc67,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x23381f,'discard',()=>{this['_updateSuggestionData'](_0x10bc67,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x10bc67,_0x23381f),this['_suggestionState']['set'](_0x23381f,'notReady'),_0x23381f;}['_splitMarkerName'](_0x250d50){const _0x2dec04=_0x250d50['split'](':');return{'group':_0x2dec04[0x0],'type':_0x2dec04[0x1],'subType':_0x2dec04['length']>=0x5?_0x2dec04[0x2]:null,'id':_0x2dec04['length']<0x5?_0x2dec04[0x2]:_0x2dec04[0x3],'authorId':_0x2dec04['length']<0x5?_0x2dec04[0x3]:_0x2dec04[0x4],'markerCount':0x6==_0x2dec04['length']?_0x2dec04[0x5]:null};}['_breakSuggestionMarker'](_0x178d1b,_0x4a440f,_0x1dcd1c){const _0x58ecff=_0x178d1b['getFirstRange'](),_0x33809e=_0x58ecff['start'],_0xed9929=_0x58ecff['end'];this['_setSuggestionRange'](_0x178d1b,this['_model']['createRange'](_0x33809e,_0x4a440f));const _0x28bd33=_0x400c1f(),_0x439488=_0x178d1b['creator']['id'],_0x4cf2a3=_0x178d1b['type']+(_0x178d1b['subType']?':'+_0x178d1b['subType']:'');this['_setSuggestionData']({'id':_0x28bd33,'type':_0x4cf2a3,'createdAt':new Date(),'authorId':_0x439488,'originalSuggestionId':_0x178d1b['id'],'attributes':_0x178d1b['attributes'],'data':_0x178d1b['data']});const _0x3ce346=this['_getAttributeKey'](_0x178d1b);('formatBlock'==_0x178d1b['type']||_0x3ce346&&this['_isBlockAttribute'](_0x3ce346))&&(_0x1dcd1c=this['_model']['createPositionBefore'](_0x1dcd1c['parent'])),this['_addSuggestionMarker'](_0x4cf2a3,_0x28bd33,_0x439488,this['_model']['createRange'](_0x1dcd1c,_0xed9929));}['_findSuggestions'](_0x39ffdd,_0xd9f2c3=null){const _0x48a4f9=[],_0x479c4d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x39ffdd)||(_0x39ffdd=[_0x39ffdd]);for(const _0x502709 of this['getSuggestions']()){if(!_0x502709['isInContent'])continue;if(_0xd9f2c3&&_0x502709['type']!=_0xd9f2c3)continue;let _0x2be305=!0x1;for(const _0x539a74 of _0x502709['getRanges']()){for(const _0x1d9edb of _0x39ffdd){const _0x1fff10=_0x1d9edb['start']['isEqual'](_0x539a74['end'])||_0x1d9edb['end']['isEqual'](_0x539a74['start']);if(_0x1fff10||_0x1d9edb['getIntersection'](_0x539a74)){const _0x48d988=_0x1d9edb['containsRange'](_0x539a74)&&Gt(this['_model']['schema'],_0x539a74['start'],_0x1d9edb),_0x393adb=_0x539a74['containsRange'](_0x1d9edb)&&Gt(this['_model']['schema'],_0x1d9edb['start'],_0x539a74);_0x48a4f9['push']({'suggestion':_0x502709,'meta':{'isOwn':_0x479c4d==_0x502709['author'],'isNextTo':_0x1fff10,'isInsideObject':_0x48d988,'containsRangeInObject':_0x393adb}}),_0x2be305=!0x0;break;}}if(_0x2be305)break;}}return _0x48a4f9;}['_addSuggestionMarker'](_0x440f1e,_0x16f513,_0x454ca4,_0x3e13ff,_0x494e28){this['_model']['change'](_0x3034f8=>{let _0x20d4ed='suggestion:'+_0x440f1e+':'+_0x16f513+':'+_0x454ca4;_0x494e28&&(_0x20d4ed=_0x20d4ed+':'+_0x494e28),_0x3034f8['addMarker'](_0x20d4ed,{'range':_0x3e13ff,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x470244){const _0x24cb67=_0x470244['previous'],_0x5b407a=_0x470244['next'];_0x470244['previous']=null,_0x470244['next']=null,null!=_0x24cb67&&_0x24cb67['next']==_0x470244&&(_0x24cb67['next']=_0x5b407a),null!=_0x5b407a&&_0x5b407a['previous']==_0x470244&&(_0x5b407a['previous']=_0x24cb67),'ready'==this['_suggestionState']['get'](_0x470244)&&(this['_suggestionState']['set'](_0x470244,'removed'),this['fire']('suggestionUnloaded',_0x470244,_0x24cb67,_0x5b407a));}['_setSuggestionData'](_0xc99df2){const _0x1393d3=_0xc99df2['id'],_0x106aae=this['addSuggestionData'](_0xc99df2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x41d964=this['editor']['plugins']['get']('PendingActions'),_0x40c789=_0x106aae['hasComments'],_0x4cd9e1=_0x106aae['subType']?_0x106aae['type']+':'+_0x106aae['subType']:_0x106aae['type'],_0x38bd56=this['editor']['locale'],_0x467412=_0x41d964['add'](c(_0x38bd56,'PENDING_ACTION_SUGGESTION')),_0x5cb390={'id':_0x1393d3,'type':_0x4cd9e1,'hasComments':_0x40c789,'data':_0xc99df2['data']||null,'originalSuggestionId':_0xc99df2['originalSuggestionId']||null,'attributes':_0x106aae['attributes']};this['_adapter']['addSuggestion'](_0x5cb390)['then'](_0x8a23ca=>{_0x106aae['_saved']=!0x0,_0x41d964['remove'](_0x467412),_0x8a23ca&&_0x8a23ca['createdAt']&&(this['_suggestions']['get'](_0x1393d3)['createdAt']=_0x8a23ca['createdAt']);})['catch'](_0x3b9bad=>{throw _0xcb85da('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x106aae['discard']();}),_0x106aae['stopListening'](),this['_suggestions']['delete'](_0x106aae['id']),this['_suggestionState']['delete'](_0x106aae),_0x3b9bad;});}return _0x106aae;}['_isBlockAttribute'](_0x14fa77){return this['_blockAttributeKeys']['has'](_0x14fa77);}['_updateSuggestionData'](_0x4af92e,_0x1866bb){const _0xd3e1fd=this['editor']['plugins']['get']('PendingActions'),_0x1d0465=this['getSuggestion'](_0x4af92e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d0465['_saved']){const _0x506c81=_0xd3e1fd['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4af92e,_0x1866bb)['then'](()=>{_0xd3e1fd['remove'](_0x506c81);});}else _0x1d0465['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4af92e,_0x1866bb);});}}['_getSuggestionData'](_0x22704d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59c5ca('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22704d);}['_handleNewSuggestionMarker'](_0x3ab53f){const {id:_0x8ce18f,type:_0x41555f,subType:_0x168580,authorId:_0x10d54b}=this['_splitMarkerName'](_0x3ab53f),_0x178318=this['_suggestions']['get'](_0x8ce18f)||this['_createSuggestion'](_0x41555f,_0x168580,_0x8ce18f,_0x10d54b,{});switch(this['_checkSuggestionCorrectness'](_0x178318,_0x41555f,_0x168580,_0x10d54b),this['_suggestionState']['get'](_0x178318)){case'notReady':this['_getSuggestionData'](_0x8ce18f)['then'](_0x3131b1=>{let _0x59a83b=Promise['resolve']();_0x3131b1['hasComments']&&(_0x59a83b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x8ce18f})),_0x59a83b['then'](()=>{this['addSuggestionData'](_0x3131b1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x178318,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x8ce18f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x178318,'ready'),this['fire']('suggestionLoaded',_0x178318);break;case'ready':this['fire']('suggestionChanged',_0x178318);}return _0x178318['addMarkerName'](_0x3ab53f),_0x178318;}['_refreshSuggestionsChain'](_0x18abec){const _0x2c35e8=Array['from'](_0x18abec),_0x506838=_0x2c35e8['filter'](_0x5995eb=>'attribute'==_0x5995eb['type']);this['_refreshAttributeSuggestionsChain'](_0x506838);const _0x3455ac=_0x2c35e8['filter'](_0x48bd39=>!_0x48bd39['isMultiRange']&&'attribute'!=_0x48bd39['type']),_0x2f7222=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e5de1=>!_0x2e5de1['isMultiRange']&&'attribute'!=_0x2e5de1['type']),_0x52d41b=_0x2f7222['filter'](_0x4184d3=>!_0x18abec['has'](_0x4184d3)),_0x123047=new Map(_0x2f7222['map'](_0x446673=>[_0x446673,this['_suggestionFactory']['getSuggestionCallback'](_0x446673['type'],_0x446673['subType'],'chain')])),_0x3c3027=new Map(_0x2f7222['map'](_0x2a11ef=>[_0x2a11ef,_0x2a11ef['getFirstRange']()])),_0x3c429e=new Set(),_0x474c45=new Set();for(let _0x25031e=0x0;_0x25031e<_0x3455ac['length'];_0x25031e++)_0x12516f(_0x3455ac[_0x25031e],_0x3455ac,_0x25031e+0x1);for(let _0x37b39a=0x0;_0x37b39a<_0x3455ac['length'];_0x37b39a++)_0x12516f(_0x3455ac[_0x37b39a],_0x52d41b,0x0);const _0x459fd1=new Set();for(let _0x4b3303=0x0;_0x4b3303<_0x3455ac['length'];_0x4b3303++){const _0x1dcc28=_0x3455ac[_0x4b3303];!_0x474c45['has'](_0x1dcc28)&&_0x1dcc28['previous']&&(_0x459fd1['add'](_0x1dcc28['previous']),_0x1dcc28['previous']['next']===_0x1dcc28&&(_0x1dcc28['previous']['next']=null),_0x1dcc28['previous']=null),!_0x3c429e['has'](_0x1dcc28)&&_0x1dcc28['next']&&(_0x459fd1['add'](_0x1dcc28['next']),_0x1dcc28['next']['previous']===_0x1dcc28&&(_0x1dcc28['next']['previous']=null),_0x1dcc28['next']=null);}function _0x12516f(_0x228096,_0x1cc11e,_0x2442c5){for(let _0x55736e=_0x2442c5;_0x55736e<_0x1cc11e['length'];_0x55736e++){const _0x1e3112=_0x274224(_0x228096,_0x1cc11e[_0x55736e]);_0x1e3112&&(_0x1e3112[0x0]['next']=_0x1e3112[0x1],_0x1e3112[0x1]['previous']=_0x1e3112[0x0],_0x3c429e['add'](_0x1e3112[0x0]),_0x474c45['add'](_0x1e3112[0x1]));}}function _0x274224(_0xea2a55,_0x312191){if(_0xea2a55['author']['id']!==_0x312191['author']['id'])return null;const _0x35d841=_0x123047['get'](_0xea2a55)(_0xea2a55,_0x312191,_0x3c3027['get'](_0xea2a55),_0x3c3027['get'](_0x312191));if(!_0x35d841)return null;return _0x123047['get'](_0x312191)(_0xea2a55,_0x312191,_0x3c3027['get'](_0xea2a55),_0x3c3027['get'](_0x312191))?_0x35d841[0x1]['commentThread']&&_0x35d841[0x1]['commentThread']['length']?null:_0x35d841:null;}_0x459fd1['size']&&this['_refreshSuggestionsChain'](_0x459fd1);}['_refreshAttributeSuggestionsChain'](_0x2ea8ba){if(0x0==_0x2ea8ba['length'])return;const _0x2c5eda=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d3dd4=>'attribute'==_0x3d3dd4['type']&&_0x3d3dd4['_isDataLoaded']),_0xbe18c1=[],_0x42b43d=new Map();for(const _0xbf31e7 of _0x2c5eda){const _0x2df0e7=_0x294053(_0xbf31e7['attributes']);_0x42b43d['has'](_0x2df0e7)||(_0x42b43d['set'](_0x2df0e7,_0xbe18c1['length']),_0xbe18c1['push']([]));const _0x5c1a84=_0x42b43d['get'](_0x2df0e7);_0xbe18c1[_0x5c1a84]['push'](_0xbf31e7);}!(function(){_0xbe18c1['sort']((_0x2b0a59,_0x7ae5d8)=>{const _0x5ab78f=_0x2b0a59[0x0]['createdAt'],_0x2efa6c=_0x7ae5d8[0x0]['createdAt'];return _0x5ab78f==_0x2efa6c?_0x2b0a59[0x0]['attributes']['groupId']<_0x7ae5d8[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ab78f<_0x2efa6c?-0x1:0x1;});for(const _0x3733a2 of _0xbe18c1)_0x3733a2['sort']((_0x147d6f,_0x289681)=>_0x147d6f['id']<_0x289681['id']?-0x1:0x1);}());for(let _0x3464b9=0x0;_0x3464b9<_0xbe18c1['length'];_0x3464b9++){if(0x0==_0xbe18c1[_0x3464b9]['length'])continue;const _0x171ad0=[];for(let _0x49df50=_0x3464b9+0x1;_0x49df50<_0xbe18c1['length'];_0x49df50++)0x0!=_0xbe18c1[_0x49df50]['length']&&_0x2edb53(_0xbe18c1[_0x3464b9],_0xbe18c1[_0x49df50])&&_0x171ad0['push'](_0x49df50);for(const _0x1abd96 of _0x171ad0)_0xbe18c1[_0x3464b9]=_0xbe18c1[_0x3464b9]['concat'](_0xbe18c1[_0x1abd96]),_0xbe18c1[_0x1abd96]=[];}for(const _0x527193 of _0xbe18c1)for(let _0x169063=0x0;_0x169063<_0x527193['length'];_0x169063++){const _0x12fc67=_0x527193[_0x169063+0x1]||null;_0x527193[_0x169063]['next']!==_0x12fc67&&(_0x527193[_0x169063]['next']=_0x12fc67);}for(const _0xef6177 of _0xbe18c1)for(let _0x21e186=0x0;_0x21e186<_0xef6177['length'];_0x21e186++){const _0x192abd=_0xef6177[_0x21e186-0x1]||null;_0xef6177[_0x21e186]['previous']!==_0x192abd&&(_0xef6177[_0x21e186]['previous']=_0x192abd);}function _0x2edb53(_0x5b08b3,_0x32c2a0){if(_0x5b08b3[0x0]['attributes']['groupId']!==_0x32c2a0[0x0]['attributes']['groupId']&&_0x5b08b3[0x0]['author']!==_0x32c2a0[0x0]['author'])return!0x1;if(!function(_0x79ab01,_0x2c0e88){if(!_0x79ab01['hasComments']&&!_0x2c0e88['hasComments'])return!0x0;if(_0x79ab01['hasComments']&&_0x2c0e88['hasComments'])return!0x1;if(_0x79ab01['hasComments']&&_0x2c0e88['createdAt']<_0x79ab01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c0e88['hasComments']&&_0x79ab01['createdAt']<_0x2c0e88['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b08b3[0x0],_0x32c2a0[0x0]))return!0x1;const _0x201b83=Ft(_0x5b08b3[0x0]['attributes'],'groupId'),_0x1fcc82=Ft(_0x32c2a0[0x0]['attributes'],'groupId');if(!_0xd0b6fb(_0x201b83,_0x1fcc82))return!0x1;return!!_0x5b08b3['every'](_0x4749e6=>_0x32c2a0['some'](_0x39d236=>_0x4749e6['getFirstRange']()['isEqual'](_0x39d236['getFirstRange']())))&&_0x32c2a0['every'](_0x881fb7=>_0x5b08b3['some'](_0xd632f3=>_0x881fb7['getFirstRange']()['isEqual'](_0xd632f3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x20c5d5){const _0x1e574f=Array['from'](_0x20c5d5),_0xbe2f00=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2a78cd=_0xbe2f00['filter'](_0x393399=>!_0x20c5d5['has'](_0x393399)),_0x2f4036=new Map(_0x1e574f['map'](_0x1e58a8=>[_0x1e58a8,this['_suggestionFactory']['getSuggestionCallback'](_0x1e58a8['type'],_0x1e58a8['subType'],'join')])),_0x5d6743=new Map(_0xbe2f00['map'](_0x232ded=>[_0x232ded,_0x232ded['getRanges']()]));for(let _0x1ef5a3=0x0;_0x1ef5a3<_0x1e574f['length'];_0x1ef5a3++){if(_0x53419d(this,_0x1e574f[_0x1ef5a3],_0x1e574f,_0x1ef5a3+0x1))return!0x0;}for(let _0x75823a=0x0;_0x75823a<_0x1e574f['length'];_0x75823a++){if(_0x53419d(this,_0x1e574f[_0x75823a],_0x2a78cd,0x0))return!0x0;}return!0x1;function _0x53419d(_0x4d0595,_0x16206f,_0x5815b2,_0x33d4fe){for(let _0x45d1fe=_0x33d4fe;_0x45d1fe<_0x5815b2['length'];_0x45d1fe++){const _0x1bfd65=_0x5815b2[_0x45d1fe];if(_0x1bfd65['type']!==_0x16206f['type']||_0x1bfd65['author']['id']!==_0x16206f['author']['id']||_0x1bfd65['subType']!==_0x16206f['subType'])continue;if(!Qt(_0x16206f,_0x1bfd65))continue;if('attribute'==_0x16206f['type']&&_0x16206f['data']['oldValue']!=_0x1bfd65['data']['oldValue'])continue;if('attribute'==_0x16206f['type']&&_0x4d0595['_isBlockAttribute'](_0x16206f['data']['key']))continue;if('formatBlock'==_0x16206f['type']){const _0x1c1d67=_0x4d0595['editor']['model'],_0x35c5b4=_0x16206f['getContainedElement']();if(_0x35c5b4&&(_0x1c1d67['schema']['isObject'](_0x35c5b4)||_0x1c1d67['schema']['isLimit'](_0x35c5b4)))continue;}const _0x487147=_0x2f4036['get'](_0x16206f),_0x2226c9=_0x5d6743['get'](_0x16206f),_0x1ba868=_0x5d6743['get'](_0x1bfd65),_0x21cf95=_0x16206f['commentThread']&&_0x16206f['commentThread']['length'],_0x494d28=_0x1bfd65['commentThread']&&_0x1bfd65['commentThread']['length'];if(!_0x21cf95&&_0x487147(_0x1ba868,_0x2226c9))return _0x4d0595['_joinSuggestions'](_0x1bfd65,_0x16206f),_0x5d6743['delete'](_0x16206f),!0x0;if(!_0x494d28&&_0x487147(_0x2226c9,_0x1ba868))return _0x4d0595['_joinSuggestions'](_0x16206f,_0x1bfd65),_0x5d6743['delete'](_0x1bfd65),!0x0;}return!0x1;}}['_joinSuggestions'](_0x98660b,_0x2bf4a5){if(_0x98660b['isMultiRange']){for(const _0x25cadc of _0x2bf4a5['getRanges']())_0x98660b['addRange'](_0x25cadc);}else{const _0x59ede8=_0x2bf4a5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x98660b,this['_model']['createRange'](_0x98660b['getFirstRange']()['start'],_0x59ede8));}_0x2bf4a5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x19cab6,_0x402d55,_0x15f908){const _0x2e857b=_0x19cab6['startsWith']('format')||_0x19cab6['startsWith']('attribute')?'FORMATTING':_0x19cab6['toUpperCase']();return c(this['editor']['locale'],_0x402d55+'_'+_0x2e857b+'_SUGGESTION_ANNOUNCEMENT',_0x15f908);}['_initAriaMarkerChangeAnnouncements'](){const _0x317586=this['editor'];if(!_0x317586['ui'])return;const {ariaLiveAnnouncer:_0x418064}=_0x317586['ui'];_0x2280f7(this['_model'],({left:_0x150601,entered:_0x16d9da})=>{for(const _0x3497ce of _0x150601){const {group:_0x299702,type:_0x148edf}=this['_splitMarkerName'](_0x3497ce['name']);if('suggestion'===_0x299702){_0x418064['announce'](this['_getMarkerAnnouncementText'](_0x148edf,'LEAVE'));break;}}for(const _0x1b09b7 of _0x16d9da){const {group:_0x4585a6,type:_0x472234}=this['_splitMarkerName'](_0x1b09b7['name']);if('suggestion'===_0x4585a6){_0x418064['announce'](this['_getMarkerAnnouncementText'](_0x472234,'ENTER',_0x3f0ee7(_0x197c55)));break;}}});}['_processAttributeChanges'](_0xeb1689){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4660c9=this['editor'],_0x3a05ad=_0x4660c9['model']['document']['differ']['getChanges']();if(0x0==_0x3a05ad['length'])return!0x1;const _0xd1a1b4=[],_0x28c7da=_0x3a05ad['filter'](_0x549aff=>'attribute'==_0x549aff['type']),_0x37a095=_0x3a05ad['filter'](_0x57d53f=>'insert'==_0x57d53f['type']&&'$text'!=_0x57d53f['name']),_0xdb1c5a=_0x3a05ad['filter'](_0x54138b=>'remove'==_0x54138b['type']&&'$text'!=_0x54138b['name']);for(const _0x5e47a6 of _0x28c7da)_0xd1a1b4['push']({'key':_0x5e47a6['attributeKey'],'newValue':_0x5e47a6['attributeNewValue'],'oldValue':_0x5e47a6['attributeOldValue'],'range':qt(_0x5e47a6['range'],_0x4660c9['model'])});for(const _0xf14036 of _0x37a095){const _0x553366=_0xdb1c5a['find'](_0x5ee103=>_0x5ee103['position']['isEqual'](_0xf14036['position']));_0x553366&&_0xd1a1b4['push']({'key':u,'newValue':_0xf14036['name'],'oldValue':_0x553366['name'],'range':_0x4660c9['model']['createRangeOn'](_0xf14036['position']['nodeAfter'])});}return 0x0!=_0xd1a1b4['length']&&this['_reduceExistingSuggestions'](_0xeb1689,_0xd1a1b4);}['_processAttributeSuggestions'](_0x1b3ce0){let _0x232a51=!0x1;const _0x5e7da8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f2a6f=>_0x1f2a6f['data']['newRange']&&_0x1f2a6f['name']['startsWith']('suggestion:attribute:'));for(const _0xae531e of _0x5e7da8){const {subType:_0x66df77,id:_0x5b7a79}=this['_splitMarkerName'](_0xae531e['name']),_0x1390af=_0x66df77['split']('|')[0x0];for(const _0x2f75e2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f75e2['id']!=_0x5b7a79&&'attribute'==_0x2f75e2['type']&&_0x2f75e2['data']&&_0x2f75e2['data']['key']==_0x1390af&&_0x2f75e2['getFirstRange']()['isIntersecting'](_0xae531e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f75e2,_0xae531e['data']['newRange'],_0x1b3ce0),_0x232a51=!0x0);}return _0x232a51;}['_recordAttributeChanges'](_0x5af370){this['_recordAttributeSuggestions']=!0x0,_0x5af370();}['_isRegisteredAttribute'](_0xd1303c){const _0x3b5944=this['_isBlockAttribute'](_0xd1303c),_0x32cd58=this['_inlineAttributeKeys']['has'](_0xd1303c);return _0x3b5944||_0x32cd58;}['_reduceExistingSuggestions'](_0x5b4938,_0x28d111){if(0x0==_0x28d111['length'])return!0x1;let _0x268412=!0x1;for(const _0x45e43c of _0x28d111){const _0x4a28f9=this['_findSuggestions'](_0x45e43c['range'],'attribute')['filter'](_0x24b546=>!_0x24b546['meta']['isNextTo'])['map'](_0x157f62=>_0x157f62['suggestion']),_0x403a2c=_0x294053({'newValue':_0x45e43c['newValue']});_0x4a28f9['filter'](_0x4e9c7a=>{const [_0x4f986a,_0x566846]=_0x4e9c7a['subType']['split']('|');return _0x4f986a==_0x45e43c['key']&&_0x566846!=_0x403a2c;})['forEach'](_0x12a6e6=>{this['_reduceSuggestionAttributeRange'](_0x12a6e6,_0x45e43c['range'],_0x5b4938),_0x268412=!0x0;});}return _0x268412;}['_reduceSuggestionAttributeRange'](_0x6142eb,_0x4ed3f5,_0x3cd9aa){const _0x3f0a31=_0x6142eb['getFirstRange']()['getDifference'](_0x4ed3f5);0x0!==_0x3f0a31['length']?0x1!==_0x3f0a31['length']?this['_breakSuggestionMarker'](_0x6142eb,_0x4ed3f5['start'],_0x4ed3f5['end']):this['_setSuggestionRange'](_0x6142eb,_0x3f0a31[0x0]):_0x3cd9aa['removeMarker'](_0x6142eb['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x300141){this['_editor']=_0x300141,this['_model']=_0x300141['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4507a4,_0x3431c0,_0x22a8a1,_0x1ad1a8,_0x551470,_0x2a1041){return new o(this['_model'],{'type':_0x4507a4,'subType':_0x3431c0,'id':_0x22a8a1,'author':_0x1ad1a8,'creator':_0x1ad1a8,'attributes':_0x551470,'onAttributesChange':_0x2a1041,'onAccept':(..._0x323ccf)=>this['getSuggestionCallback'](_0x4507a4,_0x3431c0,'accept')(..._0x323ccf),'onDiscard':(..._0x120366)=>this['getSuggestionCallback'](_0x4507a4,_0x3431c0,'discard')(..._0x120366)});}['registerCustomCallback'](_0x48410b,_0x3850b1,_0x58970b,_0x5cad7f){const _0x5e2063=_0x48410b+':'+_0x3850b1+':'+_0x58970b;this['_customCallbacks']['set'](_0x5e2063,_0x5cad7f);}['getSuggestionCallback'](_0x19b84b,_0x69b5d8,_0x2275f2){const _0x20feac=_0x19b84b+':'+_0x69b5d8+':'+_0x2275f2;return this['_customCallbacks']['get'](_0x20feac)||this['_defaultCallbacks']['get'](_0x19b84b+':'+_0x2275f2);}['_registerDefaultCallbacks'](){const _0x2c11a6=()=>!0x1,_0xf61f13=_0xa2c10d=>{_0xa2c10d['sort']((_0x2d48fa,_0x15790d)=>_0x2d48fa['start']['isBefore'](_0x15790d['start'])?0x1:-0x1),this['_model']['change'](_0x59ce4a=>{for(const _0x1bb7a0 of _0xa2c10d){let _0x222314;_0x222314=_0x1bb7a0['end']['isAtEnd']&&_0x1bb7a0['end']['parent']==_0x1bb7a0['start']['nodeAfter']?_0x59ce4a['createSelection'](_0x1bb7a0['start']['nodeAfter'],'on'):_0x59ce4a['createSelection'](_0x1bb7a0),this['_model']['deleteContent'](_0x222314,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x44b7d1=(_0x145d05,_0x3157c3)=>{_0x3157c3&&this['_model']['change'](_0x52309c=>{const {commandName:_0x410b31,commandParams:_0x103c92=[]}=_0x3157c3,_0x9de85b=_0x145d05['map'](_0x4d9363=>(Lt(_0x4d9363)&&(_0x4d9363=this['_model']['createRange'](_0x4d9363['end'])),_0x4d9363))['filter'](_0x43f389=>'$graveyard'!==_0x43f389['root']['rootName']);if(_0x9de85b['length']<0x1)return;const _0x15a710=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x54e896=>_0x2346b0['fromRange'](_0x54e896));_0x52309c['setSelection'](_0x9de85b);for(const _0x4aca9c of this['_editor']['commands']['commands']())_0x4aca9c['refresh']();_0x103c92['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x410b31,..._0x103c92);const _0x151a49=_0x15a710['filter'](_0x6f73b2=>'$graveyard'!=_0x6f73b2['root']['rootName']);_0x151a49['length']>0x0&&_0x52309c['setSelection'](_0x151a49);for(const _0x30a299 of _0x15a710)_0x30a299['detach']();});},_0x44eced=(_0x2e328a,_0x20f5f7)=>0x1==_0x2e328a['length']&&0x1==_0x20f5f7['length']&&_0x2e328a[0x0]['end']['isEqual'](_0x20f5f7[0x0]['start']),_0x1a1fd0=(_0x30b1f9,_0x12fbef,_0x183a9e,_0x217b3a)=>Wt(_0x30b1f9,_0x12fbef,_0x183a9e,_0x217b3a)?[_0x30b1f9,_0x12fbef]:Wt(_0x12fbef,_0x30b1f9,_0x217b3a,_0x183a9e)?[_0x12fbef,_0x30b1f9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c11a6),this['_defaultCallbacks']['set']('insertion:discard',_0xf61f13),this['_defaultCallbacks']['set']('insertion:join',_0x44eced),this['_defaultCallbacks']['set']('insertion:chain',_0x1a1fd0),this['_defaultCallbacks']['set']('deletion:accept',_0xf61f13),this['_defaultCallbacks']['set']('deletion:discard',_0x2c11a6),this['_defaultCallbacks']['set']('deletion:join',_0x44eced),this['_defaultCallbacks']['set']('deletion:chain',_0x1a1fd0),this['_defaultCallbacks']['set']('formatInline:accept',_0x44b7d1),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c11a6),this['_defaultCallbacks']['set']('formatInline:join',_0x44eced),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c11a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x44b7d1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c11a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x44eced),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c11a6),this['_defaultCallbacks']['set']('attribute:accept',_0x2c11a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x93d38d,_0x42d8d5)=>{if(!_0x42d8d5)return;const _0x5d97a2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5036b4=>{if(_0x42d8d5['key']==u)for(const _0x42a0b0 of _0x93d38d){const _0x2f1d0a=_0x42a0b0['start']['nodeAfter'],_0x3362d0=_0x42d8d5['oldValue'];_0x5036b4['rename'](_0x2f1d0a,_0x3362d0);}else{if(_0x5d97a2['_isBlockAttribute'](_0x42d8d5['key'])){for(const _0x22946e of _0x93d38d)void 0x0!==_0x42d8d5['oldValue']?_0x5036b4['setAttribute'](_0x42d8d5['key'],_0x42d8d5['oldValue'],_0x22946e['start']['nodeAfter']):_0x5036b4['removeAttribute'](_0x42d8d5['key'],_0x22946e['start']['nodeAfter']);}else{for(const _0x2806da of _0x93d38d)_0x42d8d5['oldValue']?_0x5036b4['setAttribute'](_0x42d8d5['key'],_0x42d8d5['oldValue'],_0x2806da):_0x5036b4['removeAttribute'](_0x42d8d5['key'],_0x2806da);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44eced);}}function Gt(_0x397aa8,_0x55806b,_0x245465){for(const _0x5e2b7b of _0x55806b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e2b7b['root']==_0x5e2b7b)return!0x1;if(!_0x245465['containsItem'](_0x5e2b7b))return!0x1;if(_0x397aa8['isObject'](_0x5e2b7b)||_0x397aa8['isLimit'](_0x5e2b7b))return!0x0;}return!0x1;}function Lt(_0x5cf6e8){return _0x5cf6e8['end']['parent']==_0x5cf6e8['start']['nodeAfter']&&_0x5cf6e8['end']['isAtStart'];}function Jt(_0x218dd2,_0xa008d5,_0x30afd2,_0x2a81f7){const _0x3e9d53=_0x55cf02=>!_0x55cf02['item']['is']('$textProxy')&&!_0x2a81f7['isObject'](_0x55cf02['item']),_0x80a937=_0x218dd2['start']['getLastMatchingPosition'](_0x3e9d53),_0x5aff12=_0x218dd2['end']['getLastMatchingPosition'](_0x3e9d53,{'direction':'backward'});return(!_0x218dd2['start']['isEqual'](_0x80a937)||!_0x218dd2['end']['isEqual'](_0x5aff12))&&(_0x80a937['isBefore'](_0x5aff12)?_0x30afd2['updateMarker'](_0xa008d5,{'range':_0x30afd2['createRange'](_0x80a937,_0x5aff12)}):_0x30afd2['removeMarker'](_0xa008d5),!0x0);}function Kt(_0x3662fb){return _0x294053(_0x3662fb);}function Ht(_0x4cb200){const _0x11da20=_0x4cb200['start']['nodeAfter'];return _0x11da20&&_0x11da20['is']('element');}function qt(_0x273958,_0x4c3e14){return null==_0x273958['end']['nodeBefore']&&_0x273958['end']['parent']==_0x273958['start']['nodeAfter']?zt(_0x273958['start']['nodeAfter'],_0x4c3e14):_0x273958;}function zt(_0x49da7d,_0x13a203){const _0x43235b=_0x13a203['schema']['isObject'](_0x49da7d)||_0x13a203['schema']['isSelectable'](_0x49da7d);return _0x13a203['createRange'](_0x13a203['createPositionAt'](_0x49da7d,'before'),_0x43235b?_0x13a203['createPositionAfter'](_0x49da7d):_0x13a203['createPositionAt'](_0x49da7d,'end'));}function Wt(_0x2a4e40,_0x3629f2,_0x25fec9,_0x14afed){return!!Qt(_0x2a4e40,_0x3629f2)&&_0x25fec9['end']['isEqual'](_0x14afed['start']);}function Qt(_0x209729,_0x3e5c31){if(!_0x209729['_isDataLoaded']||!_0x3e5c31['_isDataLoaded'])return!0x1;const _0x243211=new Set(Object['keys'](_0x209729['attributes'])),_0x2627c9=new Set(Object['keys'](_0x3e5c31['attributes']));if(_0x243211['delete']('groupId'),_0x2627c9['delete']('groupId'),0x0==_0x243211['size']&&0x0==_0x2627c9['size'])return!0x0;if(_0x243211['size']!=_0x2627c9['size'])return!0x1;const _0x29e175={..._0x209729['attributes']},_0x59eafb={..._0x3e5c31['attributes']};return delete _0x29e175['groupId'],delete _0x59eafb['groupId'],JSON['stringify'](_0x29e175)==JSON['stringify'](_0x59eafb);}function Xt(_0x38f0cd,_0x4eb131){const _0x3ac7e9=Yt(_0x38f0cd['attributes']),_0x3a1c04=Yt(_0x4eb131);if(!_0x38f0cd['_isDataLoaded'])return!0x1;for(const _0x50e65d of Object['keys'](_0x3a1c04))if(!_0xd0b6fb(_0x3ac7e9[_0x50e65d],_0x3a1c04[_0x50e65d]))return!0x1;return!0x0;}function Yt(_0x3472b8){const _0x5ce2fe=Object['assign']({},_0x3472b8);return delete _0x5ce2fe['skipNestingCheck'],delete _0x5ce2fe['tablePasteChainId'],_0x5ce2fe;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0xa5c451(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2504d1,_0x5d8b49,_0x10de17,_0x4a275b){super(),this['model']=_0x5d8b49,this['view']=_0x10de17,this['commentThreadController']=_0x4a275b,this['_editor']=_0x2504d1,this['_acceptCommand']=_0x2504d1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2504d1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x58fbb5,_0x304c7f)=>_0x58fbb5||_0x304c7f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x24f743=>_0x24f743&&this['_editor']['model']['canEditAt'](_0x5d8b49['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41c7ac=>_0x41c7ac&&this['_editor']['model']['canEditAt'](_0x5d8b49['getRanges']())),this['_pendingAction']=null,_0x10de17['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x10de17,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x10de17,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x10de17,'change:isDirty',()=>{_0x10de17['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 _0x5e5527=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5e5527);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4fd8ab{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xd2e804,_0x4908ac,_0x2d603a,_0x3cd404){super(_0xd2e804),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x16d209(_0xd2e804,c(_0xd2e804,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4908ac['authoredAt']),this['bind']('authoredAt')['to'](_0x4908ac),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',_0x4908ac,'authoredAt',this,'descriptionParts',(_0x174218,_0x51d616,_0x48326d)=>{const _0x53d409=_0x48326d['map'](_0x534e77=>ls(_0x534e77['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x174218-0x1,_0x4908ac['author']['name'],_0x51d616?_0x3cd404['formatDateTime'](_0x51d616):'',new DOMParser()['parseFromString'](_0x53d409,'text/html')['body']['textContent']]);}),this['focusables']=new _0xba4523(),this['focusTracker']=new _0x11c925(),this['keystrokes']=new _0x39654c(),this['focusCycler']=new _0x14de0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x36d71d=>_0x36d71d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4908ac,this['_localUser']=_0x2d603a,this['_config']=_0x3cd404,_0x3cd404['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2faa6e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e2725}=this['_config'];this['commentsListView']=new _0x1e2725(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',_0x204105=>_0x204105+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x116082,_0x5608c4)=>_0x116082||!!_0x5608c4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x21e053}=this['_config'],_0x5aae31=new _0x21e053(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32ae66=_0x5aae31['commentInputView'];return _0x5aae31['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32ae66,'value',(_0x10deef,_0x2d9b43,_0x5eb99b)=>!!_0x5eb99b||_0x10deef&&!_0x2d9b43),_0x32ae66['on']('submit',(_0x15bf76,_0x279906)=>{this['fire']('addComment',_0x279906),_0x32ae66['editor']['setData']('');}),_0x32ae66['on']('cancel',()=>this['focus']()),_0x32ae66['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5aae31;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x361abc,_0x186c36,_0xe8570a,_0x584eac){super(_0x361abc,_0x186c36,_0xe8570a,_0x584eac),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3c886d=>_0x3c886d&&_0x3c886d[0x0]?_0x3c886d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20e58b,_0x1eb341)=>{let _0x305832='';for(const _0x5cc30a of _0x20e58b)_0x305832+='<p>'+ls(_0x5cc30a['content'],_0x5cc30a['color'])+'</p>';return _0x1eb341?_0x305832:ti(_0x305832,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x584eac['SuggestionView'](_0x361abc,_0x186c36,{'formatDateTime':_0x584eac['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 _0x3f650b=this['bindTemplate'],_0x1e8494=[this['suggestionView']];return this['commentsListView']&&_0x1e8494['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1e8494['push'](this['commentThreadInputView']),_0x1e8494['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3f650b['if']('isActive','ck-suggestion-wrapper--active'),_0x3f650b['to']('type',_0x9a0bd8=>'ck-suggestion-'+_0x9a0bd8),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':_0x3f650b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1e8494};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4fd8ab{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4b120f,_0x33f90c,_0x5da042){super(_0x4b120f),this['_model']=_0x33f90c,this['_config']=_0x5da042,this['set']('description',''),this['bind']('authoredAt')['to'](_0x33f90c),this['acceptButton']=this['_createButton'](c(_0x4b120f,'Accept\x20suggestion'),_0x2e2255,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4b120f,'Discard\x20suggestion'),_0x4abf8b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4db76f(_0x4b120f,_0x33f90c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xba4523([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x11c925(),this['keystrokes']=new _0x39654c(),this['focusCycler']=new _0x14de0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e71ff=>_0x2e71ff['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4128df=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4128df['innerHTML']=this['description'],this['on']('change:description',(_0x2ede9f,_0x477d88,_0x467de2)=>{_0x4128df['innerHTML']=_0x467de2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5d3bb8=this['bindTemplate'],_0x450d9c=[{'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':_0x5d3bb8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5d3bb8['to']('authoredAt',_0x5c6ff9=>this['_config']['formatDateTime'](_0x5c6ff9))}]}]},{'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']&&_0x450d9c['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':_0x450d9c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1650bf,_0x11d046,_0x1b1986,_0x25af5d,_0x30e8df){const _0x378e3c=new _0x21660b(this['locale']);return _0x378e3c['set']({'label':_0x1650bf,'icon':_0x11d046,'tooltip':!0x0,'tooltipPosition':_0x30e8df}),_0x378e3c['extendTemplate']({'attributes':{'class':_0x1b1986}}),_0x378e3c['on']('execute',()=>{this['fire'](_0x25af5d,this['_model']['id']);}),_0x378e3c;}['_setupKeyboardNavigation'](){const _0x27278c=this['element'];this['keystrokes']['listenTo'](_0x27278c);for(const _0x3c6781 of this['focusables'])this['focusTracker']['add'](_0x3c6781['element']),this['keystrokes']['listenTo'](_0x3c6781['element']);this['keystrokes']['set']('enter',(_0xcc37a4,_0x458ee3)=>{_0x27278c===_0xcc37a4['target']&&(this['focusCycler']['focusFirst'](),_0x458ee3());}),this['keystrokes']['set']('esc',(_0x2d0a25,_0x3d0482)=>{_0x27278c!==_0x2d0a25['target']&&(this['focus'](),_0x3d0482());});}}class d extends _0x2b8ff3{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x26a833,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38c879){super(_0x38c879),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2394dc=this['editor']['config'];_0x2394dc['define']('trackChanges.SuggestionThreadView',fe),_0x2394dc['define']('trackChanges.SuggestionView',we),_0x2394dc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2394dc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a7040,_0x11292f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a1ecd,_0x1c4c0a]of this['_handleControllerBuffer']){const _0x168b04=this['_suggestionToController']['has'](_0x1a1ecd);_0x168b04||_0x1c4c0a?_0x168b04&&_0x1c4c0a&&this['_destroyController'](_0x1a1ecd):this['_initializeController'](_0x1a1ecd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a7040,_0x11292f);}['init'](){const _0x5e1767=this['editor'],_0x1c9ff9=_0x5e1767['plugins']['get']('TrackChangesEditing'),_0xb92ea=_0x5e1767['plugins']['get']('Annotations'),_0x3d5a97=_0x5e1767['plugins']['get']('EditorAnnotations'),_0x438c31=_0x5e1767['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3d5a97['addSourceCollector'](()=>{const _0x14d3d4=[];for(const [_0x18ae39,_0x3e8a79]of Array['from'](this['_suggestionToController'])){const _0x287d4d=_0x18ae39['getAllAdjacentSuggestions'](),_0x3cc814=[];for(const _0x194d40 of _0x287d4d){if(!_0x194d40['isInContent'])continue;if(_0x194d40['isMultiRange']){_0x3cc814['push'](..._0x194d40['getRanges']());continue;}const _0x5eb3f3=_0x194d40['getFirstRange']();if(_0x3cc814['length']>0x0){const _0xdd258e=_0x3cc814[0x0]['getJoined'](_0x5eb3f3);if(_0xdd258e){_0x3cc814[0x0]=_0xdd258e;continue;}}_0x3cc814['push'](_0x5eb3f3);}_0x14d3d4['push']([_0x3e8a79['view'],_0x3cc814]);}return _0x14d3d4;}),this['listenTo'](_0x1c9ff9,'suggestionLoaded',(_0x46a108,_0x37dcb7)=>{this['listenTo'](_0x37dcb7,'change:previous',(_0x14d254,_0x41e429,_0x313437,_0x355c3d)=>{_0x37dcb7['isInContent']&&(null==_0x313437?(this['_updateController'](_0x355c3d['head']),this['_handleSuggestionControllerDelayed'](_0x37dcb7,!0x1)):(this['_updateController'](_0x313437['head']),null==_0x355c3d&&this['_handleSuggestionControllerDelayed'](_0x37dcb7,!0x0)));}),null!==_0x37dcb7['previous']?this['_updateController'](_0x37dcb7['head']):this['_handleSuggestionControllerDelayed'](_0x37dcb7,!0x1);}),this['listenTo'](_0x1c9ff9,'suggestionUnloaded',(_0x1dc559,_0xf28079,_0x4c3e3a)=>{this['stopListening'](_0xf28079,'change:previous'),this['_handleControllerBuffer']['delete'](_0xf28079),this['_suggestionToController']['has'](_0xf28079)&&this['_destroyController'](_0xf28079),_0x4c3e3a&&this['_updateController'](_0x4c3e3a['head']);}),this['listenTo'](_0x1c9ff9,'suggestionChanged',(_0x4d7f35,_0x1388ae)=>{this['_updateController'](_0x1388ae);}),this['listenTo'](_0xb92ea,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x438c31,'addComment',(_0x12e5d3,{threadId:_0x1c360c,isFromAdapter:_0x534a41})=>{if(_0x534a41||!_0x1c9ff9['hasSuggestion'](_0x1c360c))return;const _0x19339d=_0x1c9ff9['getSuggestion'](_0x1c360c);this['_suggestionToController']['get'](_0x19339d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b86b1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4baf7a;for(const _0xc139f6 in _0x3b86b1){const _0x36696c=_0xc139f6,_0x4fd666=_0x3b86b1[_0x36696c];if('trackChangesLicenseKeyValid'==_0x4fd666||'trackChangesLicenseKeyInvalid'==_0x4fd666||'trackChangesLicenseKeyExpired'==_0x4fd666||'trackChangesLicenseKeyDomainLimit'==_0x4fd666||'trackChangesLicenseKeyNotAllowed'==_0x4fd666||'trackChangesLicenseKeyEvaluationLimit'==_0x4fd666||'trackChangesLicenseKeyTrialLimit'==_0x4fd666||'trackChangesLicenseKeyUsageLimit'==_0x4fd666){delete _0x3b86b1[_0x36696c],_0x4baf7a=_0x4fd666,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x50cad7=this['editor']['plugins']['get']('Annotations'),_0x3632d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x316055=Array['from'](_0x50cad7['activeAnnotations'],_0x2245aa=>_0x2245aa['innerView'])['filter'](_0x544786=>this['_viewToController']['has'](_0x544786)),_0xbe2bd1=[];for(const _0xb8d1cd of _0x316055){const _0x4b3b33=this['_viewToController']['get'](_0xb8d1cd)['model']['getAllAdjacentSuggestions']();_0xbe2bd1['push'](..._0x4b3b33['reduce']((_0x36fc0d,_0x47931e)=>[..._0x36fc0d,..._0x47931e['getMarkerNames']()],[]));}_0x3632d8['activeMarkers']=_0xbe2bd1;}['_addUIComponentsToFactory'](){const _0x217e44=this['editor'],_0x527c5d=_0x217e44['locale'],_0x501669=c(_0x527c5d,'Track\x20changes'),_0x201f4d=new _0x172b74([{'type':'switchbutton','model':new _0x481447({'withText':!0x0,'isToggleable':!0x0,'label':_0x501669,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x217e44['plugins']['has']('TrackChangesPreview')&&_0x201f4d['addMany']([{'type':'separator'},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5226eb of _0x201f4d)if(ke(_0x5226eb)){const _0x3a3cca=_0x217e44['commands']['get'](_0x5226eb['model']['commandName']);_0x5226eb['model']['bind']('isOn','isEnabled')['to'](_0x3a3cca,'value','isEnabled');}_0x217e44['ui']['componentFactory']['add']('trackChanges',_0x19096e=>this['_createToolbarButton'](_0x19096e,_0x201f4d,_0x501669)),_0x217e44['ui']['componentFactory']['add']('menuBar:trackChanges',_0x499f39=>this['_createMenuBarMenu'](_0x499f39,_0x201f4d,_0x501669));}['_createToolbarButton'](_0x3bf6e5,_0x1bf970,_0x47b577){const _0x44f6fa=_0x1460c2(_0x3bf6e5,_0x56ac4e),_0x55de1b=this['editor']['commands']['get']('trackChanges');_0x44f6fa['buttonView']['set']({'tooltip':_0x47b577,'label':_0x47b577,'icon':_0x1298aa}),_0x44f6fa['buttonView']['bind']('isOn')['to'](_0x55de1b,'value'),_0x44f6fa['buttonView']['on']('execute',()=>{_0x55de1b['execute'](),this['editor']['editing']['view']['focus']();}),_0x3bad70(_0x44f6fa,_0x1bf970,{'role':'menu'});const _0x22ee9f=[];for(const _0x350c42 of _0x1bf970)ke(_0x350c42)&&_0x22ee9f['push'](this['editor']['commands']['get'](_0x350c42['model']['commandName']));const _0x2f2281=_0x44f6fa['buttonView'];return _0x2f2281['actionView']['unbind']('isEnabled'),_0x2f2281['arrowView']['unbind']('isEnabled'),_0x2f2281['actionView']['bind']('isEnabled')['to'](_0x55de1b,'isEnabled'),_0x2f2281['arrowView']['bind']('isEnabled')['toMany'](_0x22ee9f,'isEnabled',(..._0x1698d3)=>_0x1698d3['some'](_0x1e18a8=>_0x1e18a8)),_0x44f6fa['on']('execute',_0x33522a=>{this['editor']['execute'](_0x33522a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x44f6fa;}['_createMenuBarMenu'](_0x5e989a,_0x17d0c2,_0x26419a){const _0x5d2de0=new _0x26c85b(_0x5e989a),_0x13b88c=this['editor']['commands']['get']('trackChanges');_0x5d2de0['buttonView']['set']({'label':_0x26419a,'icon':_0x1298aa});const _0x258c41=new _0x2dbc9c(_0x5e989a);for(const _0x4a8bca of _0x17d0c2){if('separator'==_0x4a8bca['type']){_0x258c41['items']['add'](new _0x45be5d(_0x5e989a));continue;}const _0x1af7bc=new _0x387ac3(_0x5e989a,_0x5d2de0),_0x164a3f=new _0x353757(_0x5e989a),_0x2e756d=_0x4a8bca['model'];_0x164a3f['bind'](...Object['keys'](_0x2e756d))['to'](_0x2e756d),_0x164a3f['delegate']('execute')['to'](_0x5d2de0),_0x164a3f['on']('execute',()=>{this['editor']['execute'](_0x2e756d['commandName']),this['editor']['editing']['view']['focus']();}),_0x1af7bc['children']['add'](_0x164a3f),_0x258c41['items']['add'](_0x1af7bc);}return _0x5d2de0['bind']('isEnabled')['to'](_0x13b88c,'isEnabled'),_0x5d2de0['panelView']['children']['add'](_0x258c41),_0x5d2de0;}['_initializeController'](_0x15ae27){const _0x27fb20=this['editor'],_0x52fc68=_0x27fb20['config'],_0xf8d4c5=_0x27fb20['plugins']['get']('Annotations'),_0x8fde30=_0x27fb20['plugins']['get']('CommentsRepository'),_0xd7d683=_0x27fb20['plugins']['get']('EditorAnnotations'),_0x4e2deb=_0x27fb20['plugins']['get'](_0x26a833)['me'],_0x29aa8d=_0x52fc68['get']('trackChanges')['SuggestionThreadView'],_0x5d86a0=_0x52fc68['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x30deb2,CommentThreadInputView:_0x11f0b5}=_0x27fb20['plugins']['get']('CommentsUI');let _0x5c5f54,_0xbd651,_0x3b214c;this['_annotationViews']['has'](_0x15ae27['id'])?(_0xbd651=this['_annotationViews']['get'](_0x15ae27['id']),_0x5c5f54=_0xbd651['mainView']):(_0x5c5f54=new _0x29aa8d(_0x27fb20['locale'],_0x15ae27,_0x4e2deb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52fc68['get']('comments.editorConfig'),'licenseKey':_0x52fc68['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52fc68['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52fc68['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52fc68['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a4ba6(_0x52fc68['get']('locale'),_0x27fb20['locale']),'CommentView':_0x52fc68['get']('comments')['CommentView'],'CommentsListView':_0x30deb2,'CommentThreadInputView':_0x11f0b5,'SuggestionView':_0x5d86a0}),_0x5c5f54['suggestionView']['acceptButton']['on']('execute',()=>{_0x27fb20['editing']['view']['focus']();}),_0x5c5f54['suggestionView']['discardButton']['on']('execute',()=>{_0x27fb20['editing']['view']['focus']();}),_0xbd651=_0xf8d4c5['createAnnotationView'](this['editor']['locale'],_0x5c5f54),_0xbd651['bind']('isDirty')['to'](_0x5c5f54,'isDirty'),_0xbd651['bind']('length')['to'](_0x5c5f54),_0xbd651['bind']('type')['to'](_0x5c5f54,'type',_0x2f03e4=>'suggestion-'+_0x2f03e4),_0x5c5f54['on']('escape',()=>{_0x3b214c['fire']('escape');}),this['_annotationViews']['set'](_0x15ae27['id'],_0xbd651));const _0xccdfe5=_0x8fde30['createCommentThreadController'](_0x15ae27['commentThread'],_0x5c5f54),_0x1fddf8=new pe(_0x27fb20,_0x15ae27,_0x5c5f54,_0xccdfe5),_0x1a90be=_0x15ae27['getAllAdjacentSuggestions']()['filter'](_0x155b44=>_0x155b44['isInContent']);_0x5c5f54['descriptionParts']=_0x27fb20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a90be),this['_suggestionToController']['set'](_0x15ae27,_0x1fddf8),this['_viewToController']['set'](_0x5c5f54,_0x1fddf8),_0x3b214c=_0xf8d4c5['createAnnotation']({'view':_0xbd651,'target':()=>{const _0x36b5be=[],_0x4ad136=_0x15ae27['getAllAdjacentSuggestions']()['filter'](_0x3f83b1=>_0x3f83b1['isInContent']);for(const _0x4208df of _0x4ad136)_0x36b5be['push'](..._0x4208df['getMarkers']());return _0x928d14(_0x27fb20['editing'],_0x36b5be);},'type':()=>'suggestion-'+_0x1fddf8['view']['type']}),_0x8fde30['_bindAnnotationToEditors'](_0x5c5f54,_0x3b214c),_0xf8d4c5['add'](_0x3b214c),_0xd7d683['registerAnnotation'](_0x3b214c);}['_destroyController'](_0x204683){const _0x45cc8d=this['editor']['plugins']['get']('CommentsRepository'),_0x197e83=this['editor']['plugins']['get']('Annotations'),_0xaec6f5=this['_suggestionToController']['get'](_0x204683),_0x47ea28=_0xaec6f5['view'],_0x29abb9=_0x197e83['getByInnerView'](_0x47ea28);_0x45cc8d['_unbindEditors'](_0x47ea28),_0x29abb9&&_0x197e83['remove'](_0x29abb9),this['_suggestionToController']['delete'](_0x204683),this['_viewToController']['delete'](_0x47ea28),_0xaec6f5['destroy']();}['_updateController'](_0x406171){if(!_0x406171['isInContent']||!this['_suggestionToController']['has'](_0x406171))return;const _0x4f19f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d8918=this['_suggestionToController']['get'](_0x406171),_0x384584=_0x406171['getAllAdjacentSuggestions']();_0x4d8918['view']['descriptionParts']=_0x4f19f3['descriptionFactory']['getDescriptions'](_0x384584);}['destroy'](){for(const _0x18393f of this['_suggestionToController']['keys']())this['_destroyController'](_0x18393f);for(const _0x13fc97 of this['_annotationViews']['values']())_0x13fc97['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x169cff){return'model'in _0x169cff;}class k extends _0x2b8ff3{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4be24b){this['editor']['plugins']['get'](p)['adapter']=_0x4be24b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xda7104){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xda7104);}['getSuggestions']({skipNotAttached:_0x63b082=!0x1,toJSON:_0x4b231a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x63b082,'toJSON':_0x4b231a});}['getSuggestion'](_0x27585c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x27585c);}}const w=['Pagination'];class T extends _0x2b8ff3{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x25361a=this['editor'];if(_0x25361a['config']['define']('trackChangesData.editorCreator',_0x3a8c00=>{const _0x2af53f=_0x25361a['model']['document']['getRootNames']()['reduce']((_0x540f92,_0x4d9e94)=>(_0x540f92[_0x4d9e94]='',_0x540f92),{});return _0x25361a['constructor']['create'](_0x2af53f,_0x3a8c00);}),'function'!=typeof _0x25361a['config']['get']('trackChangesData')['editorCreator'])throw new _0x59c5ca('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x369140){return N(this['editor'],!0x0,_0x369140);}['getDataWithDiscardedSuggestions'](_0x23b64d){return N(this['editor'],!0x1,_0x23b64d);}}class D extends _0x2b8ff3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4be18f){function _0x3dc440(_0xbdc95b){return _0xbdc95b['map'](_0x12df64=>String['fromCharCode'](_0x12df64))['join']('');}super(_0x4be18f),this['result']='end',_0x4be18f[_0x3dc440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dc440([0x76,0x69,0x65,0x77])][_0x3dc440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dc440([0x61,0x75,0x74,0x6f]),_0x4be18f[_0x3dc440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3dc440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dc440([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3dc440([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3dc440([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x11e05d){return void 0x0!==_0x11e05d['getRootsAttributes'];}async function N(_0x6e62d8,_0x1a0ac2,_0x1a0be4){const _0xe0e8ee=_0x115059(_0x6e62d8,w);_0xe0e8ee['plugins']['push'](p,D),_0xe0e8ee['rootsAttributes']=Ge(_0x6e62d8)?_0x6e62d8['getRootsAttributes']():void 0x0;const _0x2a75f9=document['createDocumentFragment'](),_0x55c817=_0x6e62d8['config']['get']('trackChangesData')['editorCreator'],_0x11d84e=await _0x55c817(_0xe0e8ee,()=>function(_0x260ca2){const _0x2685e2=document['createElement']('div');return _0x260ca2['appendChild'](_0x2685e2),_0x2685e2;}(_0x2a75f9));!function(_0x16b977,_0x2a1531){const _0x319dd1=_0x16b977['model']['document']['getRootNames']()['reduce']((_0xcf2d2e,_0x12a183)=>(_0xcf2d2e[_0x12a183]=_0x16b977['data']['get']({'rootName':_0x12a183}),_0xcf2d2e),{}),_0x53ba75=_0x16b977['plugins']['get']('Users')['users']['map'](_0x1d9d58=>({'id':_0x1d9d58['id'],'name':_0x1d9d58['name']})),_0x5e3ef4=_0x16b977['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15e0b8=_0x16b977['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5d8a74=_0x2a1531['plugins']['get']('Users'),_0x41e46e=_0x2a1531['plugins']['get']('TrackChangesEditing'),_0x27f8d4=_0x2a1531['plugins']['get']('CommentsRepository');for(const _0xf475a5 of _0x27f8d4['getCommentThreads']())_0xf475a5['remove']();for(const _0x1d2c86 of _0x53ba75)_0x5d8a74['getUser'](_0x1d2c86['id'])||_0x5d8a74['addUser'](_0x1d2c86);_0x5d8a74['me']||_0x5d8a74['useAnonymousUser']();for(const _0x5147cf of _0x15e0b8)_0x27f8d4['addCommentThread'](_0x5147cf);for(const _0x496e4d of _0x5e3ef4)_0x41e46e['addSuggestionData'](_0x496e4d);_0x2a1531['data']['set'](_0x319dd1);}(_0x6e62d8,_0x11d84e),_0x11d84e['execute'](_0x1a0ac2?'acceptAllSuggestions':'discardAllSuggestions');const _0x185e35=Ge(_0x11d84e)?_0x11d84e['getFullData'](_0x1a0be4):_0x11d84e['data']['get'](_0x1a0be4);return await _0x11d84e['destroy'](),_0x185e35;}class Me extends _0x4fd8ab{['options'];constructor(_0xd723ee,_0x5f50a6){super(_0xd723ee),this['options']=_0x5f50a6,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'](_0x31ba79,_0x533c27){if(!this['element'])return;const _0x2bd8ab=[];for(const [_0x2c7b40,_0x166512]of _0x31ba79){const _0xb64fcd=document['createElement']('div');_0xb64fcd['setAttribute']('data-ck-root-name',_0x2c7b40),_0xb64fcd['className']=_0x166512['classes']+'\x20ck-track-changes-preview__root-container',_0xb64fcd['innerHTML']=_0x166512['content'],_0x2bd8ab['push'](_0xb64fcd);}_0x533c27(this['element'],_0x2bd8ab),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x787654{constructor(_0x40f03f){super(_0x40f03f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3335bb=this['editor'],_0x35916e=_0x3335bb['locale'],_0x36dfe1=_0x3335bb['plugins']['get']('Dialog');let _0x430803;const _0x1c3aef=function(_0x3701de){const _0x34d19c={};if('editables'in _0x3701de['ui']['view']){for(const [_0xe319b4,_0x2d59dd]of Object['entries'](_0x3701de['ui']['view']['editables']))_0x34d19c[_0xe319b4]=_0x2d59dd['element'];}else _0x34d19c[_0x3701de['model']['document']['getRootNames']()[0x0]]=_0x3701de['ui']['view']['editable']['element'];return _0x34d19c;}(_0x3335bb),_0xb0958=function(_0x4c3af1){let _0x307bc9=0x0;for(const _0x4d452c of Object['values'](_0x4c3af1))_0x307bc9=Math['max'](_0x307bc9,_0x4d452c['getBoundingClientRect']()['width']);let _0x27b556=0x0;for(const _0x54305a of Object['values'](_0x4c3af1))_0x27b556+=_0x54305a['getBoundingClientRect']()['height'];const _0x2ddd93=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3f6db7=Math['min'](_0x27b556,_0x2ddd93);return{'width':_0x307bc9,'height':_0x3f6db7};}(_0x1c3aef);_0x36dfe1['show']({'id':'finalContentPreview','title':c(_0x35916e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x35916e,{'dialogRects':_0xb0958}),'onHide':()=>{_0x430803['detachFromDom']();},'onShow':()=>{_0x3335bb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x43316c=>{const _0x5666c4=this['_standarizeRootsData'](_0x43316c,_0x3335bb,_0x1c3aef);_0x36dfe1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5666c4,_0x3335bb['config']['get']('trackChanges.preview.renderFunction'));}),_0x430803=new _0x156097(_0x35916e,[_0x36dfe1['view']]),_0x430803['attachToDom'](),_0x430803['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3335bb['once']('destroy',()=>{_0x430803['detachFromDom']();});const _0x3f485a=_0x36dfe1['view']['headerView']['class'];_0x36dfe1['view']['headerView']['class']=_0x3f485a?_0x3f485a+'\x20ck-reset_all':'ck-reset_all',_0x36dfe1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x36dfe1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x45a034=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x35b243=_0x45a034['previewMode'],_0x1ff62e={};if('$labels'===_0x35b243){for(const _0x2b056b of _0x45a034['getMergeFieldsIds']())_0x1ff62e[_0x2b056b]=_0x45a034['getLabel'](_0x2b056b)||_0x2b056b;}else{const _0x2a22e8='$defaultValues'===_0x35b243?_0x45a034['getDefaultValues']():_0x45a034['getDataSetValues'](_0x35b243,!0x0);for(const _0x21055f of Object['entries'](_0x2a22e8)){const [_0x29b6c8,_0x42bb49]=_0x21055f;_0x1ff62e[_0x29b6c8]=null!==_0x42bb49?_0x42bb49:_0x45a034['getLabel'](_0x29b6c8)||_0x29b6c8;}}return{'mergeFieldsData':_0x1ff62e};}['_standarizeRootsData'](_0x5b3a03,_0x19e779,_0xf8ab61){let _0xfcd833;if('string'==typeof _0x5b3a03){const _0x404232=_0x19e779['model']['document']['getRootNames']()[0x0];_0xfcd833={[_0x404232]:_0x5b3a03};}else _0xfcd833=_0x5b3a03;const _0x27968c=this['_fixMediaEmbeds'](_0xfcd833,_0x19e779),_0x479f59=function(_0x11e0a7,_0x4cb859){for(const [_0x96ebe9,_0x453883]of _0x11e0a7)_0x453883['classes']=_0x4cb859[_0x96ebe9]['classList']['value']['replace']('ck-focused','');return _0x11e0a7;}(this['_sortRoots'](_0x19e779)['reduce']((_0x394f51,_0x20434d)=>(_0x394f51['push']([_0x20434d,{'content':_0x27968c[_0x20434d],'classes':''}]),_0x394f51),[]),_0xf8ab61);return _0x479f59;}['_fixMediaEmbeds'](_0x403135,_0x3f2917){if(!_0x3f2917['plugins']['has']('MediaEmbedEditing'))return _0x403135;const _0x2125c4=_0x3f2917['plugins']['get']('MediaEmbedEditing');for(const [_0x1a6b56,_0x52e141]of Object['entries'](_0x403135)){const _0x486934=document['createElement']('div');_0x486934['innerHTML']=_0x52e141,(_0x486934['querySelectorAll']('figure.media')['forEach'](_0x20543c=>{const _0x3ea2e1=_0x20543c['querySelector']('oembed');if(_0x3ea2e1){const _0x1491c1=_0x3ea2e1['getAttribute']('url');if(_0x1491c1){const _0x5a313d=_0x2125c4['registry']['getMediaViewElement'](new _0x231e73(_0x3f2917['editing']['view']['document']),_0x1491c1,{'elementName':'','renderForEditingView':!0x0}),_0x2e26ff=document['createElement']('div');_0x2e26ff['classList']['add']('ck-media__wrapper'),_0x5a313d['render'](_0x2e26ff,_0x3f2917['editing']['view']['domConverter']),_0x3ea2e1['replaceWith'](_0x2e26ff);}}}),_0x403135[_0x1a6b56]=_0x486934['innerHTML']);}return _0x403135;}['_sortRoots'](_0x2a98e3){if(!function(_0x16a6a6){return void 0x0!==_0x16a6a6['getRootsAttributes'];}(_0x2a98e3))return _0x2a98e3['model']['document']['getRootNames']();const _0x9bf9a7=[],_0x67b7ff=new Map();for(const _0x49db78 of _0x2a98e3['model']['document']['getRootNames']()){const _0x3cbecf=_0x2a98e3['editing']['view']['getDomRoot'](_0x49db78)['getClientRects']()['item'](0x0);_0x9bf9a7['push'](_0x49db78),_0x67b7ff['set'](_0x49db78,_0x3cbecf);}return _0x9bf9a7['sort']((_0x26758e,_0x5eb58c)=>{const _0x339f0c=_0x67b7ff['get'](_0x26758e),_0x1c4b61=_0x67b7ff['get'](_0x5eb58c);return _0x339f0c['y']-_0x1c4b61['y']||_0x339f0c['x']-_0x1c4b61['x'];}),_0x9bf9a7;}}class te extends _0x2b8ff3{static get['requires'](){return[T,_0x473705];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10c116){super(_0x10c116),_0x10c116['commands']['add']('previewFinalContent',new re(this['editor'])),_0x10c116['config']['define']('trackChanges.preview.renderFunction',(_0x59c9ac,_0x45543a)=>{for(const _0x530d4a of _0x45543a)_0x59c9ac['appendChild'](_0x530d4a);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};