@ckeditor/ckeditor5-track-changes 43.3.0-alpha.1 → 43.3.0-alpha.3

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 (216) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +10 -10
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/trackchangescommand.js +1 -1
  153. package/src/index.js +1 -1
  154. package/src/integrations/aiassistant.js +1 -1
  155. package/src/integrations/alignment.js +1 -1
  156. package/src/integrations/basicstyles.js +1 -1
  157. package/src/integrations/blockquote.js +1 -1
  158. package/src/integrations/casechange.js +1 -1
  159. package/src/integrations/ckbox.js +1 -1
  160. package/src/integrations/codeblock.js +1 -1
  161. package/src/integrations/comments.js +1 -1
  162. package/src/integrations/deletecommand.js +1 -1
  163. package/src/integrations/entercommand.js +1 -1
  164. package/src/integrations/findandreplace.js +1 -1
  165. package/src/integrations/font.js +1 -1
  166. package/src/integrations/formatpainter.js +1 -1
  167. package/src/integrations/heading.js +1 -1
  168. package/src/integrations/highlight.js +1 -1
  169. package/src/integrations/horizontalline.js +1 -1
  170. package/src/integrations/htmlembed.js +1 -1
  171. package/src/integrations/image.js +1 -1
  172. package/src/integrations/imagereplace.js +1 -1
  173. package/src/integrations/imagestyle.js +1 -1
  174. package/src/integrations/importword.js +1 -1
  175. package/src/integrations/indent.js +1 -1
  176. package/src/integrations/inputcommand.js +1 -1
  177. package/src/integrations/legacylist.js +1 -1
  178. package/src/integrations/legacylistproperties.js +1 -1
  179. package/src/integrations/link.js +1 -1
  180. package/src/integrations/list.js +1 -1
  181. package/src/integrations/listproperties.js +1 -1
  182. package/src/integrations/mediaembed.js +1 -1
  183. package/src/integrations/mention.js +1 -1
  184. package/src/integrations/mergefields.js +1 -1
  185. package/src/integrations/multilevellist.js +1 -1
  186. package/src/integrations/pagebreak.js +1 -1
  187. package/src/integrations/paragraph.js +1 -1
  188. package/src/integrations/removeformat.js +1 -1
  189. package/src/integrations/restrictededitingmode.js +1 -1
  190. package/src/integrations/shiftentercommand.js +1 -1
  191. package/src/integrations/standardeditingmode.js +1 -1
  192. package/src/integrations/style.js +1 -1
  193. package/src/integrations/table.js +1 -1
  194. package/src/integrations/tablecaption.js +1 -1
  195. package/src/integrations/tableclipboard.js +1 -1
  196. package/src/integrations/tablecolumnresize.js +1 -1
  197. package/src/integrations/tableheadings.js +1 -1
  198. package/src/integrations/tablemergesplit.js +1 -1
  199. package/src/integrations/tableofcontents.js +1 -1
  200. package/src/integrations/tableproperties.js +1 -1
  201. package/src/integrations/template.js +1 -1
  202. package/src/integrations/title.js +1 -1
  203. package/src/integrations/undo.js +1 -1
  204. package/src/integrations/utils.js +1 -1
  205. package/src/suggestion.js +2 -2
  206. package/src/suggestiondescriptionfactory.js +1 -1
  207. package/src/trackchanges.js +1 -1
  208. package/src/trackchangesdata.js +1 -1
  209. package/src/trackchangesediting.js +1 -1
  210. package/src/trackchangesui.js +1 -1
  211. package/src/ui/suggestioncontroller.js +2 -2
  212. package/src/ui/view/basesuggestionthreadview.js +1 -1
  213. package/src/ui/view/suggestionthreadview.js +1 -1
  214. package/src/ui/view/suggestionview.js +1 -1
  215. package/src/utils/common-translations.js +1 -1
  216. 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 ts,Plugin as _0x16a2ad,PendingActions as _0x57b538,icons as _0x129e38}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2f735b,ObservableMixin as _0x4f9031,uid as _0x31d1bc,insertToPriorityArray as _0x972427,priorities as _0x3a7800,logWarning as _0x1e894b,getEnvKeystrokeText as _0x3a49cf,FocusTracker as _0x328256,KeystrokeHandler as _0x3f0bfa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1dc0d1,View as _0x5c48ce,ViewCollection as _0x11e3bc,FocusCycler as _0x594f2e,ViewModel as _0x1596b5,createDropdown as Qt,SplitButtonView as _0x646426,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c4ce3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5680c5,hashObject as _0x115a16,surroundingMarkersDetector as _0x31b647,FOCUS_ANNOTATION_KEYSTROKE as _0x2cdcf8,AriaDescriptionView as _0x1e2267,setupThreadKeyboardNavigation as _0x3cb939,trimHtml as _0x189d33,UserView as _0x25caa3,LateFocusButtonView as _0x388278,getDateTimeFormatter as _0x1661b2,getAllMarkersDomElementsSorted as _0x39b097,sanitizeEditorConfig as _0x1c6eb1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x367a8a,LiveRange as _0x1eeee4,LivePosition as _0x10cc9c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2d4906,toWidget as _0x1dfbcb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x45a778,set as _0x54e2f9,isEqual as _0x10d9b1,unset as _0x24aeb4,omit as Rt}from'lodash-es';import{Delete as _0x292bc5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1e43b9,ShiftEnter as _0x3bdf00}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x195baa,_0x493867){super(_0x195baa),this['_enabledCommands']=_0x493867,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 _0xbb5279 of this['editor']['commands']['commands']())_0xbb5279['affectsData']&&!this['_enabledCommands']['has'](_0xbb5279)&&_0xbb5279['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5414b6 of this['editor']['commands']['commands']())_0x5414b6['affectsData']&&!this['_enabledCommands']['has'](_0x5414b6)&&_0x5414b6['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x914731,_0x18d0a9){super(_0x914731),this['_suggestions']=_0x18d0a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bfce3){const _0xd02ee3=this['_suggestions']['get'](_0x3bfce3);if(!_0xd02ee3)throw new _0x2f735b('track-changes-accept-suggestion-not-found',this);const _0x33d252=_0xd02ee3['getRanges']();this['editor']['model']['canEditAt'](_0x33d252)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd02ee3);}}class O extends ts{['_suggestions'];constructor(_0x5dd319,_0x55fc34){super(_0x5dd319),this['_suggestions']=_0x55fc34,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x459bb8){const _0x4703dd=this['_suggestions']['get'](_0x459bb8);if(!_0x4703dd)throw new _0x2f735b('track-changes-discard-suggestion-not-found',this);const _0x3e456e=_0x4703dd['getRanges']();this['editor']['model']['canEditAt'](_0x3e456e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4703dd);}}function ls(_0x52ae60,_0x407e77){let _0xfc4b7b='';return _0xfc4b7b+=_0x52ae60['split']('*')['map']((_0xe54749,_0x3a97f6)=>_0x3a97f6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xe54749)+'</span>':nn(_0xe54749))['join'](''),_0x407e77&&(_0xfc4b7b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x407e77['value']+'\x22\x20title=\x22'+_0x407e77['title']+'\x22></span>'),_0xfc4b7b;}function nn(_0x10041e){const _0xcd4608=document['createElement']('span');return _0xcd4608['innerText']=_0x10041e,_0xcd4608['innerHTML'];}function ss(_0x2e64d5){return _0x2e64d5['sort']((_0x2cb833,_0x1e2e7a)=>'deletion'==_0x2cb833['type']&&'deletion'!=_0x1e2e7a['type']?-0x1:'deletion'!=_0x2cb833['type']&&'deletion'==_0x1e2e7a['type']?0x1:0x0);}function to(_0x37f122,_0x29783c){let _0x152657,_0x605cf1=0x0;const _0x467042=[],_0x245de0=_0x29783c['schema'];for(;_0x605cf1<_0x37f122['length'];){const _0x540e96=_0x37f122[_0x605cf1],_0x3feb04=_0x37f122[_0x605cf1+0x1];_0x152657||(_0x152657=_0x29783c['createPositionBefore'](_0x540e96)),on(_0x29783c,_0x540e96,_0x3feb04)||(_0x467042['push'](_0x29783c['createRange'](_0x152657,_0x245de0['isObject'](_0x540e96)?_0x29783c['createPositionAfter'](_0x540e96):_0x29783c['createPositionAt'](_0x540e96,'end'))),_0x152657=null),_0x605cf1++;}return _0x467042;}function on(_0x2fb83d,_0x4216c2,_0x3515f3){if(!_0x3515f3)return!0x1;const _0x4845a6=_0x2fb83d['createPositionAfter'](_0x4216c2),_0x593ab8=_0x2fb83d['createPositionBefore'](_0x3515f3);return _0x4845a6['isTouching'](_0x593ab8);}function rs(_0x5fda51,_0x1f704d,_0x4c6b25){for(;_0x4c6b25['length'];){const _0x5627b1=_0x4c6b25['splice'](0x0,0x64);_0x5fda51['change'](()=>{for(const _0x353754 of _0x5627b1)_0x353754['isInContent']&&_0x1f704d['execute'](_0x353754['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x1a82ca,_0x23321e,_0x1f8031){super(_0x1a82ca),this['_command']=_0x23321e,this['_suggestions']=_0x1f8031,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f6459=Array['from'](this['_suggestions']['values']())['some'](_0x462f07=>_0x462f07['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1f6459;}['execute'](){const _0x5af000=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1485bc of _0x5af000){const _0x60a2f3=_0x1485bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x60a2f3))return;}rs(this['editor']['model'],this['_command'],_0x5af000);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x389f58,_0x4701de,_0x2cb87b){super(_0x389f58),this['_command']=_0x4701de,this['_suggestions']=_0x2cb87b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x443964=this['editor']['model']['document']['selection'],_0x449c40=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x8e56d3,_0x580e04){const _0x4a658d=Array['from'](_0x8e56d3['getRanges']()),_0x250da0=new Set();for(const _0x1736ec of _0x580e04)if(_0x1736ec['isInContent']){for(const _0x245705 of _0x4a658d)for(const _0x121fcb of _0x1736ec['getRanges']())(_0x245705['isIntersecting'](_0x121fcb)||_0x8e56d3['isCollapsed']&&!_0x1736ec['isMultiRange']&&_0x1736ec['next']&&_0x121fcb['end']['isTouching'](_0x245705['start']))&&_0x250da0['add'](_0x1736ec);}return _0x250da0;}(_0x443964,_0x449c40),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xece6b7=ss(Array['from'](this['_selectedSuggestions']));for(const _0xa93f31 of _0xece6b7){const _0x1296e8=_0xa93f31['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1296e8))return;}rs(this['editor']['model'],this['_command'],_0xece6b7);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x4f9031(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x140448,_0x29e9d5){super(),this['id']=_0x29e9d5['id'],this['type']=_0x29e9d5['type'],this['subType']=_0x29e9d5['subType']||null,this['author']=_0x29e9d5['author'],this['creator']=_0x29e9d5['creator']||_0x29e9d5['author'],this['isExternal']=Boolean(_0x29e9d5['attributes']&&_0x29e9d5['attributes']['@external']),this['data']=null,this['_model']=_0x140448,this['_onAccept']=_0x29e9d5['onAccept'],this['_onDiscard']=_0x29e9d5['onDiscard'],this['_onAttributesChange']=_0x29e9d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e9d5['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 _0x4f27ee=this;for(;_0x4f27ee['previous'];)_0x4f27ee=_0x4f27ee['previous'];return _0x4f27ee;}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'](_0x53e8cd){this['_markerNames']['add'](_0x53e8cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x42add3=>this['_model']['markers']['get'](_0x42add3))['filter'](_0x4fac7b=>_0x4fac7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29d642=>{for(const _0x2ff0bc of this['getMarkers']())_0x29d642['removeMarker'](_0x2ff0bc);}),this['_markerNames']['clear']();}['removeMarker'](_0x29dc32){this['_model']['change'](_0x2f0f90=>{_0x2f0f90['removeMarker'](_0x29dc32);}),this['_markerNames']['delete'](_0x29dc32);}['addRange'](_0x4822c4){const _0x51429b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x51429b),this['_model']['change'](_0x41d51e=>{_0x41d51e['addMarker'](_0x51429b,{'range':_0x4822c4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x8669f2){for(const _0x579013 of this['getRanges']())if(_0x579013['isIntersecting'](_0x8669f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x582f56=>_0x582f56['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x195262,_0x4df04f)=>[..._0x195262,..._0x4df04f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x42c171=this['getRanges']();if(0x1!=_0x42c171['length'])return null;const _0x18ed40=_0x42c171[0x0],_0x9b9941=_0x18ed40['start']['nodeAfter'],_0x2e4109=_0x18ed40['end']['nodeBefore'];return _0x9b9941 instanceof _0x367a8a?_0x9b9941!=_0x2e4109?null:_0x9b9941: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 _0xe01a0c=[];let _0x11e55c=this['head'];for(;_0x11e55c;)_0xe01a0c['push'](_0x11e55c),_0x11e55c=_0x11e55c['next'];return _0xe01a0c;}['setAttribute'](_0x1157dc,_0x3c4536){const _0x248620=_0x45a778(this['attributes']);_0x54e2f9(_0x248620,_0x1157dc,_0x3c4536),_0x10d9b1(_0x248620,this['attributes'])||(this['attributes']=_0x248620,this['_onAttributesChange'](_0x248620));}['removeAttribute'](_0x4ea4ef){const _0x197ed4=_0x45a778(this['attributes']);_0x24aeb4(_0x197ed4,_0x4ea4ef),_0x10d9b1(_0x197ed4,this['attributes'])||(this['attributes']=_0x197ed4,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 _0x31d1bc()['substr'](0x1,0x5);}}function o(_0x3a643a,_0x48c03c,_0x564575){const _0x501a8d=_0x3a643a['t'],t=_0x3a643a['t'];switch(_0x48c03c){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'*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',_0x564575);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x564575);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x564575);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x564575);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x564575);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',_0x564575);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x564575);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x564575);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x564575);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x564575);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x564575);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x564575);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x564575);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x564575);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x564575);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x564575);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x564575);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x564575);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x564575);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x564575);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x564575);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x564575);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x564575);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'},_0x564575);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x564575);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x564575);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x564575);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x564575);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x564575);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'},_0x564575);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x564575);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x564575);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x564575);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x564575);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'},_0x564575);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x564575);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'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x564575);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x564575);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'},_0x564575);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 _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x564575);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x564575);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x564575);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'},_0x564575);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'},_0x564575);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'},_0x564575);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48c03c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d7259,_0x4fbf39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d7259,this['_locale']=_0x4fbf39;}['getDescriptions'](_0x4b60a9){const _0x3ebd3f=[],_0x499342=new Set(),_0x40c875=new Set();for(let _0x561a43=0x0;_0x561a43<_0x4b60a9['length'];_0x561a43++){const _0x448cdc=_0x4b60a9[_0x561a43];if(!_0x448cdc['isInContent'])continue;const _0x376893=this['_handleCustomCallbackDescription'](_0x448cdc);if(_0x376893){if(null!=_0x448cdc['subType']){if(_0x499342['has'](_0x448cdc['subType']))continue;_0x499342['add'](_0x448cdc['subType']);}_0x3ebd3f['push'](_0x376893);}else{if('attribute'!=_0x448cdc['type'])'insertion'!=_0x448cdc['type']&&'deletion'!=_0x448cdc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ebd3f,_0x448cdc,_0x4b60a9[_0x561a43+0x1]);else{const _0x178f5e=_0x448cdc['data']['key'];if(_0x40c875['has'](_0x178f5e))continue;_0x40c875['add'](_0x448cdc['data']['key']),_0x178f5e==m?this['_handleRenameSuggestionDescription'](_0x3ebd3f,_0x448cdc):this['_handleAttributeSuggestionDescription'](_0x3ebd3f,_0x448cdc);}}}return this['_resolveDescriptionItems'](_0x3ebd3f);}['registerDescriptionCallback'](_0x34c67a){this['_customCallbacks']['push'](_0x34c67a);}['registerElementLabel'](_0x49a99c,_0x882ed3,_0x52e8c0=_0x3a7800['normal']){'function'==typeof _0x49a99c?_0x972427(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49a99c,'label':_0x882ed3,'priority':_0x52e8c0}):this['_itemLabels']['set'](_0x49a99c,_0x882ed3);}['registerAttributeLabel'](_0x5d5eee,_0x16e205){this['_attributeLabels']['set'](_0x5d5eee,_0x16e205);}['getItemLabel'](_0x16d4ac,_0x5f3cd4=0x1){let _0x1327fe;for(const _0xa198c0 of this['_itemLabelsCallbacks'])if(_0xa198c0['matchingCallback'](_0x16d4ac)){_0x1327fe=_0xa198c0['label'];break;}return _0x1327fe||(_0x1327fe=this['_itemLabels']['get'](_0x16d4ac['name'])),_0x1327fe?_0x1327fe(_0x5f3cd4):0x1!==_0x5f3cd4?_0x5f3cd4+'\x20'+_0x16d4ac['name']+'s':''+_0x16d4ac['name'];}['_addDescriptionItems'](_0x150606,_0x2894bc){const _0x250851=_0x2894bc['getFirstRange']()['getWalker'](),_0x48f0a0='insertion'==_0x2894bc['type']?'add':'remove';for(const _0x525bdb of _0x250851){const _0x222f37=_0x525bdb['item'],_0x32c832=_0x150606[_0x150606['length']-0x1];if(_0x222f37['is']('$textProxy'))_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),_0x32c832&&'text'==_0x32c832['type']?_0x32c832[_0x48f0a0]+=_0x222f37['data']:_0x150606['push']({'type':'text','add':'add'==_0x48f0a0?_0x222f37['data']:'','remove':'remove'==_0x48f0a0?_0x222f37['data']:''});else{if(this['_schema']['isObject'](_0x222f37)){const _0x30c6b0=_0x222f37;if(_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),'elementEnd'==_0x525bdb['type'])continue;_0x32c832&&_0x32c832['type']==_0x48f0a0+'Object'&&_0x32c832['element']['name']==_0x30c6b0['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'Object','element':_0x30c6b0,'quantity':0x1}),_0x250851['skip'](_0x308a96=>!('elementEnd'==_0x308a96['type']&&_0x308a96['item']==_0x222f37));}else{if(this['_schema']['checkChild'](_0x222f37,'$text')||_0x222f37['is']('element','softBreak')){const _0xe57d1=_0x222f37;if('add'==_0x48f0a0&&'elementStart'==_0x525bdb['type']||'remove'==_0x48f0a0&&'elementEnd'==_0x525bdb['type'])continue;if(_0x32c832&&-0x1==_0x32c832['type']['indexOf']('Container')){'text'==_0x32c832['type']&&(_0x32c832[_0x48f0a0]+='\x0a');continue;}let _0x3f945c;if(_0x3f945c='add'==_0x48f0a0?_0xe57d1['nextSibling']&&!this['_schema']['isObject'](_0xe57d1['nextSibling'])?_0xe57d1['nextSibling']:null:_0xe57d1['previousSibling']&&!this['_schema']['isObject'](_0xe57d1['previousSibling'])?_0xe57d1['previousSibling']:null,_0xe57d1['isEmpty']||_0x3f945c&&_0x3f945c['isEmpty']){const _0x3ae0a6=_0x3f945c&&_0x3f945c['isEmpty']?_0x3f945c:_0xe57d1;_0x32c832&&_0x32c832['type']==_0x48f0a0+'EmptyContainer'&&_0x32c832['element']['name']==_0x3ae0a6['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'EmptyContainer','element':_0x3ae0a6,'quantity':0x1});}else _0x150606['push']({'type':_0x48f0a0+'Container','element':_0xe57d1});}}}}}['_resolveDescriptionItems'](_0x31bf15){const _0x3f748a=this['_locale'],_0x450dff=[],_0x166dde=[],_0x241ecb=[];for(const _0x31e445 of _0x31bf15)switch(_0x31e445['type']){case'text':if(_0x31e445['add']=_0x31e445['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x31e445['remove']=_0x31e445['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x31e445['add']&&''!=_0x31e445['remove']){_0x450dff['push']({'type':'replace','content':o(_0x3f748a,'REPLACE_TEXT',['\x22'+_0x31e445['remove']+'\x22','\x22'+_0x31e445['add']+'\x22'])});continue;}if(null!=_0x31e445['add']['match'](/^ +$/)){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['add']['length']))});continue;}if(null!=_0x31e445['remove']['match'](/^ +$/)){_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['remove']['length']))});continue;}if(''!=_0x31e445['add']){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0','\x22'+_0x31e445['add']+'\x22')});continue;}_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0','\x22'+_0x31e445['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addContainer':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Split:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeContainer':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Merge:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addFormat':_0x166dde['push'](_0x31e445['key']);continue;case'removeFormat':_0x241ecb['push'](_0x31e445['key']);continue;default:_0x450dff['push'](_0x31e445);}if(_0x166dde['length']){const _0x22f88d=_0x166dde['map'](_0xa717eb=>this['_attributeLabels']['has'](_0xa717eb)?this['_attributeLabels']['get'](_0xa717eb):_0xa717eb)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22f88d)});}if(_0x241ecb['length']){const _0x599e11=_0x241ecb['map'](_0x186a12=>this['_attributeLabels']['has'](_0x186a12)?this['_attributeLabels']['get'](_0x186a12):_0x186a12)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x599e11)});}return _0x450dff;}['_handleCustomCallbackDescription'](_0xe378ee){for(const _0x129c5d of this['_customCallbacks']){const _0xb8c34f=_0x129c5d(_0xe378ee);if(_0xb8c34f&&'type'in _0xb8c34f)return _0xb8c34f;}}['_handleAttributeSuggestionDescription'](_0x2c324c,_0x520c99){const _0x554a2b=_0x520c99['data'],_0x66956e=void 0x0===_0x554a2b['newValue']?'removeFormat':'addFormat';_0x2c324c['push']({'type':_0x66956e,'key':_0x554a2b['key']});}['_handleRenameSuggestionDescription'](_0x474738,_0x3a5b90){_0x474738['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a5b90['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xea921,_0x4fcea7,_0x430fad){if(this['_addDescriptionItems'](_0xea921,_0x4fcea7),_0x430fad&&_0x430fad['getFirstRange']()&&!_0x4fcea7['getFirstRange']()['end']['isEqual'](_0x430fad['getFirstRange']()['start'])){const _0x1ac367=_0xea921[_0xea921['length']-0x1],_0x480b3f='insertion'==_0x4fcea7['type']?'add':'remove';_0x1ac367&&'text'==_0x1ac367['type']&&(_0x1ac367[_0x480b3f]+='\x0a');}}}class V extends _0x16a2ad{['afterInit'](){const _0x3c404e=this['editor'],_0x49c022=_0x3c404e['plugins']['get']('TrackChangesEditing');_0x3c404e['commands']['get']('showAIAssistant')&&_0x49c022['enableCommand']('showAIAssistant');}}class U extends _0x16a2ad{['afterInit'](){const _0x580d82=this['editor'],_0x46d6b8=_0x580d82['locale'];if(!_0x580d82['plugins']['has']('AlignmentEditing'))return;const _0x1e10d3=_0x580d82['plugins']['get']('TrackChangesEditing');_0x1e10d3['enableDefaultAttributesIntegration']('alignment'),_0x1e10d3['registerBlockAttribute']('alignment'),_0x1e10d3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46d6b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34865e=this['editor'],_0x4250dc=_0x34865e['locale'];_0x34865e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3966a3=>{if('formatBlock'!=_0x3966a3['type'])return;const {data:_0x2192c5}=_0x3966a3;if(_0x2192c5&&'alignment'==_0x2192c5['commandName']){const _0x2a57b9=_0x2192c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4250dc,'*Format:*\x20%0',function(_0x56e6b6){switch(_0x56e6b6){case'left':return o(_0x4250dc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4250dc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4250dc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4250dc,'FORMAT_JUSTIFY_TEXT');}}(_0x2a57b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x16a2ad{['afterInit'](){const _0x13134=this['editor'],_0x484795=_0x13134['plugins']['get']('TrackChangesEditing'),_0xfbbc0e=_0x13134['locale'];for(const _0x2bfe14 of ti){if(!_0x13134['plugins']['has'](_0x2bfe14))continue;const _0x576569=_0x2bfe14['slice'](0x0,-0x7)['toLowerCase'](),_0x47244b='FORMAT_'+_0x576569['toUpperCase']();_0x484795['enableDefaultAttributesIntegration'](_0x576569),_0x484795['registerInlineAttribute'](_0x576569),_0x484795['descriptionFactory']['registerAttributeLabel'](_0x576569,o(_0xfbbc0e,_0x47244b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1380b6=this['editor'],_0x74974b=_0x1380b6['locale'],_0x2a813c=_0x1380b6['plugins']['get']('TrackChangesEditing');function _0x3cf2bd(_0x89b9d9,_0x2c2b51){_0x2a813c['descriptionFactory']['registerDescriptionCallback'](_0x26ab13=>{if('formatInline'!=_0x26ab13['type'])return;const {data:_0x161094}=_0x26ab13;return _0x161094&&_0x161094['commandName']===_0x89b9d9?_0x161094['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x74974b,'*Format:*\x20%0',_0x2c2b51)}:{'type':'format','content':o(_0x74974b,'*Remove\x20format:*\x20%0',_0x2c2b51)}:void 0x0;});}_0x3cf2bd('bold',o(_0x74974b,'FORMAT_BOLD')),_0x3cf2bd('italic',o(_0x74974b,'FORMAT_ITALIC')),_0x3cf2bd('underline',o(_0x74974b,'FORMAT_UNDERLINE')),_0x3cf2bd('code',o(_0x74974b,'FORMAT_CODE')),_0x3cf2bd('strikethrough',o(_0x74974b,'FORMAT_STRIKETHROUGH')),_0x3cf2bd('subscript',o(_0x74974b,'FORMAT_SUBSCRIPT')),_0x3cf2bd('superscript',o(_0x74974b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x16a2ad{['afterInit'](){const _0x231134=this['editor'],_0x5d8cfd=_0x231134['locale'];if(!_0x231134['plugins']['has']('BlockQuoteEditing'))return;const _0x1c1982=_0x231134['plugins']['get']('TrackChangesEditing'),_0x1d81c1=this['editor']['commands']['get']('blockQuote');_0x1c1982['enableCommand']('blockQuote',(_0x199b51,_0x325c73={})=>{const _0x503061=this['editor']['model']['document']['selection'],_0x5b6171=_0x325c73&&void 0x0!==_0x325c73['forceValue']?_0x325c73['forceValue']:!_0x1d81c1['value'];let _0x2db3f9=[];if(_0x5b6171){const _0xc1d935=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x31b8cd=>oo(_0x31b8cd)||function(_0x3e7840,_0x4b3a8a){const _0x1fb688=_0x4b3a8a['checkChild'](_0x3e7840['parent'],'blockQuote'),_0x4f529b=_0x4b3a8a['checkChild'](['$root','blockQuote'],_0x3e7840);return _0x1fb688&&_0x4f529b;}(_0x31b8cd,this['editor']['model']['schema']));_0x2db3f9=to(_0xc1d935,_0x231134['model']);}else{const _0x1c1c8d=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x342793=>oo(_0x342793));_0x2db3f9=to(_0x1c1c8d,_0x231134['model']);}_0x231134['model']['change'](()=>{for(const _0x24dd38 of _0x2db3f9)_0x1c1982['markBlockFormat'](_0x24dd38,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b6171}]});});}),_0x1c1982['descriptionFactory']['registerDescriptionCallback'](_0x3df2fb=>{const {data:_0x200d4d}=_0x3df2fb;if(_0x200d4d&&'blockQuote'==_0x200d4d['commandName']){const _0x8a6990=o(_0x5d8cfd,'ELEMENT_BLOCK_QUOTE');return _0x200d4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d8cfd,'*Set\x20format:*\x20%0',_0x8a6990)}:{'type':'format','content':o(_0x5d8cfd,'*Remove\x20format:*\x20%0',_0x8a6990)};}});}}function oo(_0x25cf25){return'blockQuote'==_0x25cf25['parent']['name'];}class L extends _0x16a2ad{['afterInit'](){const _0x506377=this['editor'];_0x506377['plugins']['has']('CaseChange')&&(_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x16a2ad{['afterInit'](){const _0x319277=this['editor'];_0x319277['commands']['get']('ckbox')&&_0x319277['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x16a2ad{['afterInit'](){const _0x252f67=this['editor'];if(!_0x252f67['plugins']['has']('CodeBlock'))return;const _0x222280=_0x252f67['plugins']['get']('TrackChangesEditing'),_0x4355aa=_0x252f67['locale'],_0xe2d650=_0x252f67['config']['get']('codeBlock')['languages'],_0x88d22=_0x252f67['commands']['get']('codeBlock');_0x222280['enableCommand']('indentCodeBlock'),_0x222280['enableCommand']('outdentCodeBlock'),_0x222280['enableCommand']('codeBlock',(_0x36ca9f,_0x2e41e3={})=>{const _0x30f604=_0x252f67['model'],_0x2b4c63=_0x252f67['model']['document']['selection'],_0xf4b5db=_0x2e41e3&&void 0x0!==_0x2e41e3['forceValue']?_0x2e41e3['forceValue']:!_0x88d22['value'];let _0x6fc561;_0x2e41e3['language']||(_0x2e41e3['language']=_0xe2d650[0x0]['language']),_0x6fc561=_0xf4b5db?Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x7064c7=>eo(_0x7064c7)||function(_0x26df80,_0x292c83){if(_0x26df80['is']('rootElement')||_0x292c83['isLimit'](_0x26df80))return!0x1;return _0x292c83['checkChild'](_0x26df80['parent'],'codeBlock');}(_0x7064c7,_0x30f604['schema'])):Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x23b7d2=>eo(_0x23b7d2));const _0x453e1c=to(_0x6fc561,_0x30f604);_0x30f604['change'](()=>{for(const _0x5f559c of _0x453e1c)_0x222280['markBlockFormat'](_0x5f559c,{'commandName':'codeBlock','commandParams':[{..._0x2e41e3,'forceValue':_0xf4b5db}],'formatGroupId':'blockName'});});}),(_0x222280['descriptionFactory']['registerElementLabel']('codeBlock',_0x141a4d=>o(_0x4355aa,'ELEMENT_CODE_BLOCK',_0x141a4d)),_0x222280['descriptionFactory']['registerDescriptionCallback'](_0x23a11e=>{if('formatBlock'!=_0x23a11e['type'])return;const _0x462f1b=_0x4355aa['t'],{data:_0x36f696}=_0x23a11e;if(!_0x36f696||'codeBlock'!=_0x36f696['commandName'])return;const _0x145141=_0x36f696['commandParams'][0x0]['language'],_0x1655d0=_0x462f1b(_0xe2d650['find'](_0x3d0f78=>_0x3d0f78['language']===_0x145141)['label'])['toLowerCase']();return _0x36f696['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4355aa,'*Set\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1655d0+')')}:{'type':'format','content':o(_0x4355aa,'*Remove\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x12a62d){return'codeBlock'==_0x12a62d['name'];}class q extends _0x16a2ad{['afterInit'](){const _0x39746e=this['editor'];if(!_0x39746e['plugins']['has']('CommentsEditing'))return;_0x39746e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xb9923,_0x5527be,_0x1e3fae){const _0x36f868=[];for(const _0x49cae1 of _0x5527be['getItems']())_0x49cae1['hasAttribute'](_0xb9923)&&_0x36f868['push'](_0x1e3fae['createRangeOn'](_0x49cae1));return _0x36f868;}function _e(_0x273c82,_0x271a41,{showActiveMarker:_0x10e538=!0x0}={}){const _0x42c443=_0x273c82['plugins']['get']('TrackChangesEditing');return(_0x132e72,_0x39b99c,_0x4889de)=>{if(!_0x4889de['consumable']['test'](_0x39b99c['markerRange'],_0x132e72['name']))return;const _0x66559e=_0x39b99c['markerRange']['getWalker'](),_0x55a4e1=_0x39b99c['markerRange']['start'],_0x42e783=_0x273c82['model']['schema'];let _0x443d6e=null,_0x29278c=null,_0x2b5d17=!0x1,_0x1f8ddd=!0x1;for(const _0x2884e3 of _0x66559e){const _0x180afd=_0x2884e3['item'];_0x2b5d17=_0x2b5d17||_0x42e783['isContent'](_0x180afd);const _0x578a35=_0x4889de['mapper']['toViewElement'](_0x180afd);if(_0x578a35&&_0x578a35['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2884e3['type']&&(_0x42e783['isBlock'](_0x180afd)&&!_0x42e783['isLimit'](_0x180afd)&&(_0x180afd['nextSibling']||_0x55a4e1['isAtEnd']?_0x443d6e&&_0x443d6e['parent']==_0x180afd||(_0x443d6e=_0x180afd,_0x2a53ae(_0x2884e3['previousPosition']),_0x1f8ddd=!0x0):_0x29278c=_0x29278c||_0x2884e3['previousPosition']));}function _0x2a53ae(_0xb26f9c){const {authorId:_0x557dfc}=_0x42c443['_splitMarkerName'](_0x39b99c['markerName']),_0x30ddbc=_0x4889de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x271a41,'data-author-id':_0x557dfc}),_0x4c7e97=_0x4889de['mapper']['toViewPosition'](_0xb26f9c);_0x10e538&&_0x42c443['activeMarkers']['includes'](_0x39b99c['markerName'])&&_0x4889de['writer']['addClass']('ck-suggestion-marker--active',_0x30ddbc),_0x4889de['writer']['insert'](_0x4c7e97,_0x30ddbc),_0x4889de['mapper']['bindElementToMarker'](_0x30ddbc,_0x39b99c['markerName']);}_0x2b5d17||_0x1f8ddd||!_0x29278c||_0x2a53ae(_0x29278c);};}class z extends _0x16a2ad{static get['requires'](){return[_0x292bc5];}['init'](){const _0x543ad5=this['editor'],_0xd09f9f=_0x543ad5['plugins']['get']('TrackChangesEditing');_0xd09f9f['enableCommand']('delete');const _0x1ebb3c=_0x543ad5['commands']['get']('deleteForward');_0xd09f9f['enableCommand']('deleteForward',(_0x492618,_0x246d01={})=>{const _0x2875ad=_0x543ad5['model']['createSelection'](_0x543ad5['model']['document']['selection']);_0x2875ad['isCollapsed']&&_0x543ad5['model']['modifySelection'](_0x2875ad,{'direction':'forward','unit':_0x246d01['unit']});const _0x402beb=_0x2875ad['getFirstRange'](),_0xc6ffe=_0x1eeee4['fromRange'](_0x402beb);let _0x595259;_0x492618(_0x246d01),_0x595259='$graveyard'==_0xc6ffe['root']['rootName']?_0x543ad5['model']['createRange'](_0x402beb['start']):_0x543ad5['model']['createRange'](_0xc6ffe['start'],_0xc6ffe['end']),_0xc6ffe['detach'](),_0x543ad5['model']['enqueueChange'](_0x1ebb3c['buffer']['batch'],_0x472477=>{_0x1ebb3c['buffer']['lock'](),_0x472477['setSelection'](_0x472477['createRange'](_0x595259['end'])),_0x1ebb3c['buffer']['unlock']();});}),_0x543ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x543ad5,'merge'),{'priority':'high'}),_0x543ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2612fa,_0x431273,_0x540cde)=>{_0x540cde['options']['showSuggestionHighlights']&&_e(_0x543ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2612fa,_0x431273,_0x540cde);},{'priority':'high'}),_0x543ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f2ed6,_0x1e27a3,_0xdb928b)=>{const _0x2772ec=_0xdb928b['mapper']['markerNameToElements'](_0x1e27a3['markerName']);if(_0x2772ec){for(const _0x254c5b of _0x2772ec)_0x254c5b['is']('uiElement')&&(_0xdb928b['mapper']['unbindElementFromMarkerName'](_0x254c5b,_0x1e27a3['markerName']),_0xdb928b['writer']['remove'](_0x254c5b));}},{'priority':'high'});}}class K extends _0x16a2ad{['afterInit'](){const _0x2a531d=this['editor'];if(!_0x2a531d['plugins']['has']('ListEditing'))return;const _0x52c04c=_0x2a531d['locale'],_0x3697b8=_0x2a531d['plugins']['get']('TrackChangesEditing'),_0x2a854b=_0x2a531d['plugins']['has']('TodoListEditing'),_0xeb0773=!!_0x2a531d['config']['get']('list.multiBlock');function _0x207074(_0x30c078){return{'type':'format','content':''+o(_0x52c04c,'*Set\x20format:*\x20%0',_0x30c078)};}function _0x39252b(_0x4af901){return{'type':'format','content':''+o(_0x52c04c,'*Remove\x20format:*\x20%0',_0x4af901)};}_0x3697b8['enableDefaultAttributesIntegration']('numberedList'),_0x3697b8['enableDefaultAttributesIntegration']('bulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('customNumberedList'),_0x3697b8['enableDefaultAttributesIntegration']('customBulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('indentList'),_0x3697b8['enableDefaultAttributesIntegration']('outdentList'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3697b8['registerBlockAttribute']('listItemId'),_0x3697b8['registerBlockAttribute']('listType'),_0x3697b8['registerBlockAttribute']('listIndent'),_0xeb0773&&(_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a854b&&(_0x3697b8['enableDefaultAttributesIntegration']('todoList'),_0x3697b8['enableDefaultAttributesIntegration']('checkTodoList'),_0x3697b8['registerBlockAttribute']('todoListChecked'),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x4e125e=>{const {data:_0x16790c}=_0x4e125e;if(_0x16790c&&'todoListChecked'==_0x16790c['key'])return{'type':'format','content':_0x16790c['newValue']?o(_0x52c04c,'*Check\x20item*'):o(_0x52c04c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ad49f=>{if(_0x2ad49f['batch']['isUndo'])return!0x1;let _0x36b7f5=!0x1;const _0xae856=_0x3697b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b4e06=>'todoListChecked'===_0x3697b8['_getAttributeKey'](_0x2b4e06));for(const _0xee6ad5 of _0xae856){'todo'!=_0xee6ad5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3697b8['_findSuggestions'](_0xee6ad5['getFirstRange'](),'attribute')['find'](_0x59147f=>'listType'===_0x3697b8['_getAttributeKey'](_0x59147f['suggestion']))||(_0x2ad49f['removeMarker'](_0xee6ad5['getFirstMarker']()),_0x36b7f5=!0x0));}return _0x36b7f5;})),_0x3697b8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52c04c,'FORMAT_INDENT'));const _0x5d890e={'type':'format','content':''};_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x365c47=>{const {data:_0x3c3c69}=_0x365c47;if(!_0x3c3c69||'listType'!=_0x3c3c69['key'])return;let _0x3c37c4=_0x365c47['head'];for(;_0x3c37c4;){if(_0x3c37c4['data']&&(('listStyle'==_0x3c37c4['data']['key']||'listMarkerStyle'==_0x3c37c4['data']['key'])&&(_0x3c37c4['data']['newValue']&&'default'!=_0x3c37c4['data']['newValue']||'default'!=_0x3c37c4['data']['oldValue']&&!_0x3c3c69['newValue'])||!_0xeb0773&&_0x3c37c4['data']['key']==m))return _0x5d890e;_0x3c37c4=_0x3c37c4['next'];}if(null==_0x3c3c69['newValue'])switch(_0x3c3c69['oldValue']){case'bulleted':return _0x39252b(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39252b(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39252b(o(_0x52c04c,'ELEMENT_TODO_LIST'));}switch(_0x3c3c69['newValue']){case'bulleted':return _0x207074(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x207074(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x207074(o(_0x52c04c,'ELEMENT_TODO_LIST'));}}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x461c9e=>{const {data:_0x4ec145}=_0x461c9e;if(_0x4ec145&&'listIndent'==_0x4ec145['key'])return null==_0x4ec145['newValue']||null==_0x4ec145['oldValue']&&0x0==_0x4ec145['newValue']?_0x5d890e:void 0x0;}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x2923a=>{if('attribute'!=_0x2923a['type'])return;const {data:_0x5cb0d3}=_0x2923a;if(!_0x5cb0d3||'listItemId'!=_0x5cb0d3['key'])return;const _0x3d9c97=Ee(_0x2923a);return'newValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Split:*\x20list\x20item')}:_0x5d890e;}),_0x2a531d['model']['document']['registerPostFixer'](_0x89298b=>this['listItemIdFixer'](_0x89298b)),_0x2a531d['model']['document']['registerPostFixer'](_0x356fdb=>this['noTrackChangesFixer'](_0x356fdb)),_0x2a531d['model']['document']['on']('change:data',(_0x2dd647,_0x1f7412)=>{if(_0x1f7412['isUndo']||!_0x1f7412['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xdb2648){if(_0xdb2648['batch']['isUndo']||!_0xdb2648['batch']['isLocal'])return!0x1;let _0x162ca2=!0x1;const _0xd98ca3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eda89=>_0x1eda89['data']&&'listItemId'==_0x1eda89['data']['key'])['filter'](_0x1e4416=>_0x1e4416['data']['newValue']&&_0x1e4416['data']['oldValue']);for(const _0x4d68dd of _0xd98ca3)Ee(_0x4d68dd)||(_0xdb2648['removeMarker'](_0x4d68dd['getFirstMarker']()),_0x162ca2=!0x0);return _0x162ca2;}['noTrackChangesFixer'](_0x40473c){if(_0x40473c['batch']['isUndo']||!_0x40473c['batch']['isLocal'])return!0x1;const _0x5c4284=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5c4284['trackChangesCommand']['value'])return!0x1;let _0x20f2eb=!0x1;const _0x2fed19=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x341fec=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xe504ea=>'attribute'==_0xe504ea['type'])['filter'](_0x5eeeda=>_0x2fed19['includes'](_0x5eeeda['attributeKey']));if(0x0==_0x341fec['length'])return _0x20f2eb;for(const _0x337d5f of _0x341fec){const _0x520f7e=_0x5c4284['_findSuggestions'](_0x337d5f['range'],'attribute')['filter'](_0x1f1c07=>!_0x1f1c07['meta']['isNextTo'])['map'](_0x28d276=>_0x28d276['suggestion'])['filter'](_0x5906d0=>{const _0x1fa236=_0x5c4284['_getAttributeKey'](_0x5906d0);return _0x2fed19['includes'](_0x1fa236);});if(_0x520f7e['length']){for(const _0x1488b6 of _0x520f7e)_0x40473c['removeMarker'](_0x1488b6['getFirstMarker']());_0x20f2eb=!0x0;}}return _0x20f2eb;}['assureChains'](){const _0x743c78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d281b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x169e66;const _0x3601f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x497e5c=>{if(_0x497e5c['data']['oldRange']||!_0x497e5c['data']['newRange'])return null;if(!_0x497e5c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f9455}=_0x743c78['_splitMarkerName'](_0x497e5c['name']);if(!_0x743c78['hasSuggestion'](_0x4f9455))return null;const _0x31295d=_0x743c78['getSuggestion'](_0x4f9455);return _0x4d281b['includes'](_0x31295d['data']['key']);})['map'](_0x467f56=>{const {id:_0x222436}=_0x743c78['_splitMarkerName'](_0x467f56['name']),_0x479d53=_0x743c78['getSuggestion'](_0x222436);return _0x169e66=_0x479d53['attributes']['groupId'],_0x479d53['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3601f3['size'])return;const _0x59dcfc=_0x743c78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x418b3a=>'attribute'==_0x418b3a['type']&&_0x418b3a['data']&&_0x4d281b['includes'](_0x418b3a['data']['key'])&&_0x418b3a['attributes']['groupId']!=_0x169e66)['map'](_0x401632=>({'listItem':_0x401632['getFirstRange']()['start']['nodeAfter'],'groupId':_0x401632['attributes']['groupId']})),_0x42d24b=new Set();for(const {groupId:_0x120293,listItem:_0x109bb2}of _0x59dcfc)_0x3601f3['has'](_0x109bb2)&&_0x42d24b['add'](_0x120293);for(const _0x11595c of _0x743c78['getSuggestions']())_0x42d24b['has'](_0x11595c['attributes']['groupId'])&&_0x11595c['setAttribute']('groupId',_0x169e66);}['_supportLegacySuggestions'](){const _0x4cb801=this['editor'],_0x5575e6=_0x4cb801['locale'],_0x2daa21=_0x4cb801['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2daa21['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x532c68,_0x1b5a03){const _0x557dc7=[];for(let _0x311f7b of _0x532c68)_0x311f7b['start']['nodeAfter']===_0x311f7b['end']['parent']&&(_0x311f7b=_0x4cb801['model']['createRange'](_0x4cb801['model']['createPositionAt'](_0x311f7b['start']['nodeAfter'],0x0))),_0x557dc7['push'](_0x311f7b);_0x4cb801['model']['change'](_0x5a5c19=>{const _0x335d3d=_0x4cb801['model']['document']['selection'],_0x54478f=Array['from'](_0x335d3d['getRanges']())['map'](_0x54c24e=>_0x1eeee4['fromRange'](_0x54c24e));_0x5a5c19['setSelection'](_0x557dc7),_0x4cb801['commands']['get'](_0x1b5a03['commandName'])['refresh'](),_0x1b5a03['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4cb801['execute'](_0x1b5a03['commandName'],..._0x1b5a03['commandParams']),_0x5a5c19['setSelection'](_0x54478f);for(const _0x4127c9 of _0x54478f)_0x4127c9['detach']();});}),_0x2daa21['descriptionFactory']['registerElementLabel'](function(_0x3d6222){const _0x2c6df3=!_0x4cb801['model']['schema']['isObject'](_0x3d6222),_0x5eb61d=_0x3d6222['previousSibling'],_0x2b8308=_0x3d6222['nextSibling'],_0x2b7983=_0x3d6222['getAttribute']('listItemId'),_0x27cb55=!_0x5eb61d||_0x5eb61d['getAttribute']('listItemId')!==_0x2b7983,_0x480adc=!_0x2b8308||_0x2b8308['getAttribute']('listItemId')!==_0x2b7983;return _0x2c6df3&&Boolean(_0x2b7983)&&_0x27cb55&&_0x480adc;},_0x2f934e=>o(_0x5575e6,'ELEMENT_LIST_ITEM',_0x2f934e));}['_registerLegacyDescription'](){const _0x2f3ce9=this['editor'],_0x5db3d5=_0x2f3ce9['locale'];function _0x13609d(_0x6c9a8b){const _0x2b50d1=_0x2f3ce9['commands']['get']('bulletedList')['value'],_0x5b20aa=_0x2f3ce9['commands']['get']('numberedList')['value'];return'numberedList'===_0x6c9a8b?_0x2b50d1:_0x5b20aa;}_0x2f3ce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x17ceb7){if('formatBlock'!=_0x17ceb7['type'])return;const {data:_0x2ef00a}=_0x17ceb7;if(!_0x2ef00a)return;let _0x44b8df,_0x4e79e3,_0x29f72d,_0x136f6a;switch(_0x2ef00a['commandName']){case'bulletedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x44b8df='*Indent:*\x20%0',_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x44b8df=function(_0x3006d9){const _0x350b9b=_0x3006d9['getFirstRange']();let _0x16a73f=_0x350b9b['start']['nodeAfter'];for(;_0x16a73f&&_0x350b9b['containsItem'](_0x16a73f);){if(_0x16a73f['getAttribute']('listIndent')>0x0)return!0x1;_0x16a73f=_0x16a73f['nextSibling'];}return!0x0;}(_0x17ceb7)?o(_0x5db3d5,'*Format:*\x20remove\x20from\x20%0',o(_0x5db3d5,function(_0x36e85f){return'ELEMENT_'+_0x36e85f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x17ceb7))):o(_0x5db3d5,'*Outdent:*\x20%0',o(_0x5db3d5,'ELEMENT_LIST_ITEM')),_0x4e79e3={'type':'format','content':_0x44b8df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ef00a['multipleBlocks']&&(_0x44b8df='*Merge:*\x20%0',_0x4e79e3={'type':'deletion','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))});}return _0x4e79e3;});}}function Ee(_0x490f76){let _0x3261bc=_0x490f76['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3261bc;){const _0x203342=_0x3261bc['getAttribute']('listItemId');if(!_0x203342)return!0x1;if(_0x203342==_0x490f76['data']['newValue'])return'newValue';if(_0x203342==_0x490f76['data']['oldValue'])return'oldValue';_0x3261bc=_0x3261bc['previousSibling'];}return!0x1;}class pe extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e1b2f=this['editor']['config']['get']('list.properties'),_0x72597d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1b2f['styles']&&(_0x72597d['enableDefaultAttributesIntegration']('listStyle'),_0x72597d['registerBlockAttribute']('listStyle')),_0x4e1b2f['reversed']&&(_0x72597d['enableDefaultAttributesIntegration']('listReversed'),_0x72597d['registerBlockAttribute']('listReversed')),_0x4e1b2f['startIndex']&&(_0x72597d['enableDefaultAttributesIntegration']('listStart'),_0x72597d['registerBlockAttribute']('listStart'));const _0x51e11b={'type':'format','content':''};_0x72597d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43bf7c=this['editor']['locale'];_0x72597d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43bf7c,'FORMAT_LIST_REVERSED')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x415c98=>{const {data:_0x5f0250}=_0x415c98;if(_0x5f0250&&'listReversed'==_0x5f0250['key'])return null==_0x5f0250['newValue']||0x0==_0x5f0250['newValue']&&null==_0x5f0250['oldValue']?_0x51e11b:void 0x0;}),_0x72597d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43bf7c,'FORMAT_LIST_START')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x1b99f9=>{const {data:_0x4b7d2a}=_0x1b99f9;if(_0x4b7d2a&&'listStart'==_0x4b7d2a['key'])return null==_0x4b7d2a['newValue']||0x1==_0x4b7d2a['newValue']&&null==_0x4b7d2a['oldValue']?_0x51e11b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4acb1c=>{if(_0x4acb1c['batch']['isUndo'])return!0x1;let _0x2c06ca=!0x1;const _0x43f287=_0x72597d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c2ddf=>{const _0x3b8138=_0x72597d['_getAttributeKey'](_0x2c2ddf);return'listStart'==_0x3b8138||'listReversed'==_0x3b8138;});for(const _0x27d4a3 of _0x43f287){const _0x11110b=_0x27d4a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x11110b||'customNumbered'==_0x11110b)continue;_0x72597d['_findSuggestions'](_0x27d4a3['getFirstRange'](),'attribute')['find'](_0xcb96a5=>'listType'==_0x72597d['_getAttributeKey'](_0xcb96a5['suggestion']))||(_0x4acb1c['removeMarker'](_0x27d4a3['getFirstMarker']()),_0x2c06ca=!0x0);}return _0x2c06ca;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42c306){const _0x51432d=this['editor']['locale'],{data:_0x33aa05}=_0x42c306,_0xdf3cf5={'type':'format','content':''};if(!_0x33aa05||'listStyle'!=_0x33aa05['key'])return;if(!_0x33aa05['oldValue'])return'default'==_0x33aa05['newValue']?_0xdf3cf5:{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};if(!_0x33aa05['newValue']){if('default'==_0x33aa05['oldValue'])return _0xdf3cf5;let _0x3db120=_0x42c306['head'];for(;_0x3db120;){if(_0x3db120['data']&&'listType'==_0x3db120['data']['key']&&_0x3db120['data']['newValue'])return _0xdf3cf5;_0x3db120=_0x3db120['next'];}return{'type':'format','content':''+o(_0x51432d,'*Remove\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['oldValue'])))};}if('default'!=_0x33aa05['newValue'])return{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};let _0x4ce259=_0x42c306['head'];for(;_0x4ce259;){if(_0x4ce259['data']&&'listType'==_0x4ce259['data']['key']&&_0x4ce259['data']['newValue']&&_0x4ce259['data']['oldValue'])return _0xdf3cf5;_0x4ce259=_0x4ce259['next'];}return{'type':'format','content':o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,'ELEMENT_'+_0x42c306['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e3b1c=this['editor'],_0x1e858e=_0x5e3b1c['locale'];_0x5e3b1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcf9d66=>{if('formatBlock'!=_0xcf9d66['type'])return;const {data:_0x2b66a8}=_0xcf9d66;if(!_0x2b66a8)return;let _0x8ff632,_0x269ddc;switch(_0x2b66a8['commandName']){case'listStyle':_0x8ff632='*Change\x20to:*\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,o(_0x1e858e,this['_getTranslationKeyForListStyle'](_0x2b66a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8ff632=_0x2b66a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632)};break;case'listStart':_0x8ff632='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,_0x2b66a8['commandParams'][0x0]['startIndex'])};}return _0x269ddc;});}['_getTranslationKeyForListStyle'](_0x1a683a){return'ELEMENT_'+function(_0x120f5d){if(ye['includes'](_0x120f5d))return'bulleted';if(Se['includes'](_0x120f5d))return'numbered';return null;}(_0x1a683a)['toUpperCase']()+'_LIST_'+_0x1a683a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x16a2ad{static get['requires'](){return[_0x1e43b9];}['init'](){const _0x5abc20=this['editor'],_0x4f8897=_0x5abc20['plugins']['get']('TrackChangesEditing'),_0x8edb1d=_0x5abc20['commands']['get']('enter');_0x4f8897['enableCommand']('enter',()=>{_0x5abc20['model']['change'](_0x5abdec=>{const _0x347ee4=_0x5abc20['model']['document']['selection'],_0xd51df7=_0x347ee4['getFirstPosition'](),_0x58ce09=_0x1eeee4['fromRange'](_0x347ee4['getFirstRange']());if(_0x8edb1d['enterBlock'](_0x5abdec)){const _0x45f4da=_0x5abc20['model']['createPositionAt'](_0xd51df7['parent']['nextSibling'],0x0),_0x5854b0=_0x5abdec['createRange'](_0xd51df7,_0x45f4da);_0x4f8897['markInsertion'](_0x5854b0);}else _0x5abdec['setSelection'](_0x5abdec['createRange'](_0x58ce09['end']));_0x58ce09['detach'](),_0x8edb1d['fire']('afterExecute',{'writer':_0x5abdec});});}),_0x5abc20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5abc20,'split'),{'priority':'high'}),_0x5abc20['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c2485,_0x3f9b52,_0x56d9d1)=>{const _0x1e88c1=_0x56d9d1['mapper']['markerNameToElements'](_0x3f9b52['markerName']);if(_0x1e88c1){for(const _0x4d9554 of _0x1e88c1)_0x4d9554['hasClass']('ck-suggestion-marker-split')&&(_0x56d9d1['mapper']['unbindElementFromMarkerName'](_0x4d9554,_0x3f9b52['markerName']),_0x56d9d1['writer']['remove'](_0x4d9554));}},{'priority':'high'}),_0x5abc20['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25546d,_0x253e03,_0x1fa7be)=>{_0x1fa7be['options']['showSuggestionHighlights']&&_e(_0x5abc20,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25546d,_0x253e03,_0x1fa7be);},{'priority':'high'});}}class X extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x55a244=this['editor']['plugins']['get']('TrackChangesEditing');_0x55a244['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x55a244['enableCommand']('findNext'),_0x55a244['enableCommand']('findPrevious'),_0x55a244['enableCommand']('replace'),_0x55a244['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c568a,_0x8ee1f,_0x4fb420={}){const _0x5d6e8f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c568a(_0x4aea57=>{let _0x3535d9=('string'==typeof _0x8ee1f?_0x5d6e8f['findByTextCallback'](_0x8ee1f,_0x4fb420):_0x8ee1f)(_0x4aea57);Array['isArray'](_0x3535d9)&&(_0x3535d9={'results':_0x3535d9,'searchText':'string'==typeof _0x8ee1f?_0x8ee1f:''});const _0x30fe45=_0x3535d9['results']['filter'](_0x14277d=>!0x1===this['_isInDeletionRange'](_0x14277d,_0x4aea57['item']));return{..._0x3535d9,'results':_0x30fe45};},_0x4fb420);}['_isInDeletionRange'](_0x48a3fd,_0x447549){const _0x3b72a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['start']),this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['end']));for(const _0x5a52b1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b72a0['getIntersection'](_0x5a52b1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x16a2ad{['afterInit'](){const _0x2b7fa8=this['editor']['locale'],_0x1e0974=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ed0c2,commandName:_0x43be71}of ro)this['editor']['plugins']['has'](_0x1ed0c2)&&(_0x1e0974['enableDefaultAttributesIntegration'](_0x43be71),_0x1e0974['registerInlineAttribute'](_0x43be71));_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2b7fa8,'FORMAT_FONT_SIZE')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2b7fa8,'FORMAT_FONT_FAMILY')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2b7fa8,'FORMAT_FONT_COLOR')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2b7fa8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x353109=this['editor'],_0x5461ad=_0x353109['locale'];_0x353109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4173d0=>{const _0x4b6780=_0x5461ad['t'];if('formatInline'!=_0x4173d0['type'])return;const {data:_0x51c2c9}=_0x4173d0;if(null!=_0x51c2c9){if('fontSize'==_0x51c2c9['commandName']){const _0x2be9d1=_0x51c2c9['commandParams'][0x0]['value'];if(_0x2be9d1){const _0x4eb93e=_0x4b6780(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x172a4d=>_0x172a4d['model']==_0x2be9d1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20size:*\x20%0',_0x4eb93e)};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x51c2c9['commandName']){const _0x2ba441=_0x51c2c9['commandParams'][0x0]['value'];return _0x2ba441?{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20family:*\x20%0',_0x2ba441)}:{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x51c2c9['commandName']){const _0x1b5237=_0x51c2c9['commandParams'][0x0]['value'];if(_0x1b5237){const _0x28fd42=_0x1dc0d1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5296d1=>_0x5296d1['model']==_0x1b5237);let _0x4bbaa7=_0x1b5237,_0x46858b='';return _0x28fd42&&(_0x4bbaa7=_0x28fd42['label'],_0x46858b=_0x4b6780(_0x4bbaa7)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20color:*\x20%0',_0x46858b)['trim'](),'color':{'value':_0x1b5237,'title':_0x46858b||_0x4bbaa7}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x51c2c9['commandName']){const _0x3f33c0=_0x51c2c9['commandParams'][0x0]['value'];if(_0x3f33c0){const _0x1deaeb=_0x1dc0d1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44d7f9=>_0x44d7f9['model']==_0x3f33c0);let _0x4c6b17=_0x3f33c0,_0x472739='';return _0x1deaeb&&(_0x4c6b17=_0x1deaeb['label'],_0x472739=_0x4b6780(_0x4c6b17)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x472739)['trim'](),'color':{'value':_0x3f33c0,'title':_0x472739||_0x4c6b17}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x16a2ad{['afterInit'](){const _0x4edb34=this['editor'],_0x30ee5f=_0x4edb34['plugins']['get']('TrackChangesEditing'),_0xe91cb1=_0x4edb34['commands']['get']('copyFormat'),_0x487ae5=_0x4edb34['commands']['get']('pasteFormat');_0xe91cb1&&_0x487ae5&&(_0x30ee5f['enableDefaultAttributesIntegration']('pasteFormat'),_0x30ee5f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18adcc=this['editor'],_0x5b1a98=_0x18adcc['locale'];_0x18adcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d75d=>{if('formatBlock'!=_0x51d75d['type']&&'formatInline'!=_0x51d75d['type'])return;const {data:_0xee4560}=_0x51d75d;if(_0xee4560&&'pasteFormat'===_0xee4560['commandName']){const _0x5613da=[],_0x3eb284=_0xee4560['commandParams'][0x0];for(const [_0x357f4d,_0x3cc20c]of Object['entries'](_0x3eb284))_0x5613da['push'](so(_0x18adcc,_0x357f4d,_0x3cc20c));return _0x5613da['length']?{'type':'format','content':o(_0x5b1a98,'*Set\x20format\x20to:*\x20%0',_0x5613da['join'](',\x20'))}:{'type':'format','content':o(_0x5b1a98,'*Remove\x20all\x20formatting*')};}});}}function so(_0x32f051,_0x5f5909,_0xe09c0f){const _0x3e0b17=_0x32f051['locale']['t'],_0x3b92c7=_0x5f5909['split'](/(?=[A-Z])/)['join']('\x20'),_0x3ddefd=_0x3e0b17(_0x3b92c7['charAt'](0x0)['toUpperCase']()+_0x3b92c7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe09c0f)return _0x3ddefd;if('fontColor'===_0x5f5909||'fontBackgroundColor'===_0x5f5909){const _0x1d3797=_0x1dc0d1(_0x32f051['config']['get']('fontColor.colors'))['find'](_0xe8a471=>_0xe8a471['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1d3797?_0x3e0b17(_0x1d3797['label'])['toLowerCase']():_0xe09c0f)+')';}if('fontSize'===_0x5f5909&&isNaN(parseFloat(_0xe09c0f))){const _0x1f33c2=_0x32f051['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x32f051['config']['get']('fontSize.options'))['find'](_0x291447=>_0x291447['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1f33c2?_0x3e0b17(_0x1f33c2['title'])['toLowerCase']():_0xe09c0f)+')';}return _0x3ddefd+'\x20('+_0xe09c0f+')';}class tt extends _0x16a2ad{['_headingOptions'];['afterInit'](){const _0x1fdded=this['editor'];if(!_0x1fdded['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1fdded['config']['get']('heading.options');const _0x3a5ec6=_0x1fdded['locale'],_0x1a8e8c=_0x1fdded['plugins']['get']('TrackChangesEditing');_0x1a8e8c['enableDefaultAttributesIntegration']('heading');for(const _0x3e083d of this['_headingOptions'])'paragraph'!=_0x3e083d['model']&&_0x1a8e8c['descriptionFactory']['registerElementLabel'](_0x3e083d['model'],_0x53656a=>{const _0x2bd038=this['_getHeadingLevel'](_0x3e083d['model']);return null!==_0x2bd038?_0x1112b7(_0x53656a,_0x2bd038):_0x4d8199(_0x53656a,_0x3e083d['title']);});function _0x1112b7(_0x114948,_0x2027e9){return o(_0x3a5ec6,'ELEMENT_HEADING',[_0x114948,_0x2027e9]);}function _0x4d8199(_0x44776d,_0x186719){return o(_0x3a5ec6,'ELEMENT_HEADING_CUSTOM',[_0x44776d,_0x186719]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50d6d8=this['editor'],_0x4b9564=_0x50d6d8['locale'];function _0x3a118b(_0x1e1dab,_0x1f223b){return o(_0x4b9564,'ELEMENT_HEADING_CUSTOM',[_0x1e1dab,_0x1f223b]);}_0x50d6d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3d4a=>{if('formatBlock'!=_0x3f3d4a['type'])return;const {data:_0xf531d8}=_0x3f3d4a;if(_0xf531d8&&'heading'==_0xf531d8['commandName']){const _0x48160e=_0xf531d8['commandParams'][0x0]['value'],_0x98cff5=this['_getHeadingLevel'](_0x48160e);if(null!==_0x98cff5)return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',(_0x21f734=0x1,_0x2f92e6=_0x98cff5,o(_0x4b9564,'ELEMENT_HEADING',[_0x21f734,_0x2f92e6])))};const _0x5c568a=this['_headingOptions']['find'](_0xf0b1c0=>_0xf0b1c0['model']===_0x48160e)['title'];return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',_0x3a118b(0x1,_0x5c568a))};}var _0x21f734,_0x2f92e6;});}['_getHeadingLevel'](_0x41e361){const _0x5ed710=_0x41e361['match'](/^heading(\d+)/);if(_0x5ed710)return _0x5ed710[0x1];const _0x2e38d7=this['_headingOptions']?.['find'](_0x595a00=>_0x595a00['model']==_0x41e361);if(_0x2e38d7&&_0x2e38d7['view']){const _0x17690e=_0x2e38d7['view'],_0x32755b=(_0x17690e['name']??_0x17690e)['match'](/^h(\d+)/);if(_0x32755b)return _0x32755b[0x1];}return null;}}class et extends _0x16a2ad{['afterInit'](){const _0x4ec50e=this['editor'];if(!_0x4ec50e['plugins']['has']('HighlightEditing'))return;const _0x33a78d=_0x4ec50e['plugins']['get']('TrackChangesEditing'),_0x2314d5=_0x4ec50e['locale'];_0x33a78d['enableDefaultAttributesIntegration']('highlight'),_0x33a78d['registerInlineAttribute']('highlight'),_0x33a78d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2314d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8077=this['editor'],_0x5b44a3=_0x4b8077['locale'];_0x4b8077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x596292=>{if('formatInline'!=_0x596292['type'])return;const {data:_0x4be782}=_0x596292;if(_0x4be782&&'highlight'==_0x4be782['commandName']){const _0x253ffd=_0x5b44a3['t'],_0x2472e2=_0x4be782['commandParams'][0x0]['value'];if(_0x2472e2){const _0x2629fd=_0x4b8077['config']['get']('highlight.options')['find'](_0x3ca4c6=>_0x3ca4c6['model']==_0x2472e2),_0x2257bb=_0x253ffd(_0x2629fd['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b44a3,'*Set\x20highlight:*\x20%0',_0x2257bb),'color':{'value':_0x2629fd['color'],'title':_0x2629fd['title']}};}return{'type':'format','content':o(_0x5b44a3,'*Remove\x20highlight*',o(_0x5b44a3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x16a2ad{['afterInit'](){const _0x5c6abb=this['editor'];if(!_0x5c6abb['plugins']['has']('HorizontalLineEditing'))return;_0x5c6abb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xde68bd=_0x5c6abb['plugins']['get']('TrackChangesEditing'),_0x120685=_0x5c6abb['locale'];_0xde68bd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4f2d45=>o(_0x120685,'ELEMENT_HORIZONTAL_LINE',_0x4f2d45)),_0x5c6abb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x541b99,{writer:_0x42a7b2,options:_0x3b07bd})=>{if(!_0x3b07bd['showSuggestionHighlights'])return null;const _0x1f4c8c=_0x42a7b2['createContainerElement']('div'),_0x166328=_0x42a7b2['createEmptyElement']('hr');return _0x42a7b2['addClass']('ck-horizontal-line',_0x1f4c8c),_0x42a7b2['insert'](_0x42a7b2['createPositionAt'](_0x1f4c8c,0x0),_0x166328),_0x1f4c8c;},'converterPriority':'high'});}}class st extends _0x16a2ad{['afterInit'](){const _0x4faa9c=this['editor'];if(!_0x4faa9c['plugins']['has']('HtmlEmbed'))return;const _0x180aee=_0x4faa9c['plugins']['get']('TrackChangesEditing'),_0x238e17=_0x4faa9c['locale'];_0x180aee['descriptionFactory']['registerElementLabel']('rawHtml',_0x294bbc=>o(_0x238e17,'ELEMENT_HTML_EMBED',_0x294bbc)),_0x180aee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x180aee['registerBlockAttribute']('value'),_0x180aee['descriptionFactory']['registerDescriptionCallback'](_0x3c1490=>{if('attribute'!=_0x3c1490['type'])return;const {data:_0x5785b9}=_0x3c1490;if(_0x5785b9&&'value'==_0x5785b9['key']&&_0x3c1490['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b1ccb=o(_0x238e17,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x238e17,'*Change\x20%0\x20content*',_0x2b1ccb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0093=this['editor'],_0x4cc50b=_0x3e0093['locale'];_0x3e0093['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2af5=>{if('formatBlock'!=_0xd2af5['type'])return;const {data:_0x46d2cf}=_0xd2af5;if(_0x46d2cf&&'htmlEmbed'==_0x46d2cf['commandName']){const _0x3dcb9b=o(_0x4cc50b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cc50b,'*Change\x20%0\x20content*',_0x3dcb9b)};}});}}class nt extends _0x16a2ad{['afterInit'](){const _0x1d37b7=this['editor'];if(!_0x1d37b7['plugins']['has']('ImageEditing'))return;const _0x11b19f=_0x1d37b7['plugins']['get']('TrackChangesEditing'),_0x54c197=_0x1d37b7['plugins']['get']('ImageUtils'),_0x2b96fc=_0x1d37b7['locale'];_0x11b19f['enableCommand']('insertImage'),_0x11b19f['descriptionFactory']['registerElementLabel']('imageBlock',_0x3fd046=>o(_0x2b96fc,'ELEMENT_IMAGE',_0x3fd046)),_0x11b19f['descriptionFactory']['registerElementLabel']('imageInline',_0x36f2b5=>o(_0x2b96fc,'ELEMENT_INLINE_IMAGE',_0x36f2b5)),_0x11b19f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2b96fc,'ELEMENT_CAPTION')),_0x1d37b7['plugins']['has']('ImageUploadEditing')&&_0x11b19f['enableCommand']('uploadImage'),_0x1d37b7['plugins']['has']('ImageBlockEditing')&&_0x1d37b7['plugins']['has']('ImageInlineEditing')&&(_0x11b19f['enableCommand']('imageTypeInline',(_0x33adcb,_0xcd588c)=>{const _0x43ca56=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']);_0x1d37b7['model']['change'](()=>{_0x11b19f['markBlockFormat'](_0x43ca56,{'commandName':'imageTypeInline','commandParams':[_0xcd588c]},[],'convertBlockImageToInline');});}),_0x11b19f['enableCommand']('imageTypeBlock',(_0x369c8e,_0x57fb6c)=>{_0x1d37b7['model']['change'](_0x563151=>{let _0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x434a7d=_0x10cc9c['fromPosition'](_0x58d60c['start'],'toPrevious'),_0x8e543f=_0x10cc9c['fromPosition'](_0x58d60c['end'],'toNext');_0x11b19f['forceDefaultExecution'](()=>_0x369c8e(_0x57fb6c)),_0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x34eae9=_0x563151['createRange'](_0x434a7d,_0x8e543f);_0x434a7d['detach'](),_0x8e543f['detach'](),_0x11b19f['markBlockFormat'](_0x1e9c44,{'commandName':'imageTypeInline','commandParams':[_0x57fb6c]},[],'convertInlineImageToBlock'),_0x34eae9['start']['isBefore'](_0x58d60c['start'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x34eae9['start'],_0x58d60c['start']),'convertInlineImageToBlock'),_0x58d60c['end']['isBefore'](_0x34eae9['end'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x58d60c['end'],_0x34eae9['end']),'convertInlineImageToBlock');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11b19f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46e348])=>{const _0x4d4708=_0x11b19f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d87d6=_0x46e348['start'],_0x56d38d=_0x46e348['end'];const _0xc9b6df=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x3d87d6,'backward'),_0xa7c55b=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x56d38d,'forward');_0xc9b6df['isCollapsed']&&(_0x3d87d6=_0xc9b6df['start']),_0xa7c55b['isCollapsed']&&(_0x56d38d=_0xa7c55b['end']),_0x4d4708([_0x1d37b7['model']['createRange'](_0x3d87d6,_0x56d38d)]);}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x39a112),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x39a112)),_0x1d37b7['plugins']['has']('ImageCaptionEditing')&&(_0x11b19f['enableCommand']('toggleImageCaption',(_0x133a8e,_0x4fae0a)=>{const _0x54fc7d=_0x1d37b7['plugins']['get']('ImageCaptionUtils');let _0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a);_0x1d37b7['model']['change'](()=>{if(_0x45418e)return void _0x11b19f['markDeletion'](_0x1d37b7['model']['createRangeOn'](_0x45418e));const _0x58d12f=_0x54c197['isBlockImage'](_0x190b1a);_0x133a8e(_0x4fae0a),_0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a),_0x11b19f['markInsertion'](_0x1d37b7['model']['createRangeOn'](_0x45418e),_0x58d12f?null:'imageCaption');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x39a112));const _0x479d5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ecca3(_0x524203,_0x43497b){const _0x55f889=_0x479d5d['findIndex'](({type:_0x34756f,subType:_0x8ef564})=>_0x524203['type']==_0x34756f&&_0x524203['subType']==_0x8ef564),_0x29af3d=_0x479d5d['findIndex'](({type:_0x25c3a7,subType:_0x4ca356})=>_0x43497b['type']==_0x25c3a7&&_0x43497b['subType']==_0x4ca356);if(_0x55f889<0x0||_0x29af3d<0x0)return!0x1;const _0x32c052=_0x524203['getFirstRange'](),_0x50928e=_0x43497b['getFirstRange']();if((0x0==_0x55f889||0x1==_0x55f889)&&0x2==_0x29af3d&&_0x32c052['isIntersecting'](_0x50928e))return!0x0;if(0x2==_0x55f889&&0x3==_0x29af3d){const _0x5b4eb4=_0x11b19f['_findSuggestions'](_0x32c052,'insertion')['filter'](({suggestion:_0x19c499,meta:_0x8aa3db})=>_0x8aa3db['isOwn']&&'convertInlineImageToBlock'==_0x19c499['subType']);if(_0x5b4eb4['length']>0x1&&_0x50928e['end']['isEqual'](_0x32c052['start']))return!0x0;if(0x1==_0x5b4eb4['length']&&(_0x32c052['start']['isEqual'](_0x50928e['end'])||_0x32c052['end']['isEqual'](_0x50928e['start'])))return!0x0;}if(0x3==_0x55f889&&0x3==_0x29af3d&&_0x32c052['start']['isBefore'](_0x50928e['start'])){const _0x124ca8=_0x32c052['end']['nodeAfter'],_0xe6a82a=_0x50928e['start']['nodeBefore'];return _0x54c197['isBlockImage'](_0x124ca8)&&_0x124ca8===_0xe6a82a;}return!0x1;}function _0x39a112(_0x2d6949,_0x14cd9c){return _0x1ecca3(_0x2d6949,_0x14cd9c)?[_0x2d6949,_0x14cd9c]:_0x1ecca3(_0x14cd9c,_0x2d6949)?[_0x14cd9c,_0x2d6949]:null;}_0x1d37b7['plugins']['has']('ImageResize')&&(_0x11b19f['enableDefaultAttributesIntegration']('resizeImage'),_0x11b19f['registerBlockAttribute']('resizedWidth'),_0x11b19f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2b96fc,'FORMAT_IMAGE_SIZE'))),_0x1d37b7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11b19f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11b19f['registerBlockAttribute']('alt')),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x2250a9=>{if(!!_0x479d5d['find'](({type:_0x2581fd,subType:_0x42f994})=>_0x2250a9['type']==_0x2581fd&&_0x2250a9['subType']==_0x42f994))return _0x2250a9['previous']?{}:void 0x0;}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x4439d5=>{if('insertion'==_0x4439d5['type']||'deletion'==_0x4439d5['type']){const _0x173ff5=_0x4439d5['getContainedElement']();if(_0x173ff5&&_0x173ff5['is']('element','caption'))return{'type':'insertion'==_0x4439d5['type']?'addObject':'removeObject','element':_0x173ff5,'quantity':0x1};}}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x5364e7=>'formatBlock'==_0x5364e7['type']&&'convertInlineImageToBlock'==_0x5364e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5364e7['type']&&'convertBlockImageToInline'==_0x5364e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x30426d=>{if('attribute'!=_0x30426d['type'])return;const {data:_0x1da8b5}=_0x30426d;if(!_0x1da8b5||'alt'!=_0x1da8b5['key'])return;const _0x2d5698=_0x1da8b5['newValue'];return _0x2d5698?{'type':'format','content':o(_0x2b96fc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d5698+'\x22')}:{'type':'format','content':o(_0x2b96fc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x447c2d=this['editor'],_0x4042f6=_0x447c2d['locale'];_0x447c2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432f10=>{if('formatBlock'!=_0x432f10['type']&&'formatInline'!=_0x432f10['type'])return;const {data:_0x166ad8}=_0x432f10;if(_0x166ad8){if('imageTextAlternative'==_0x166ad8['commandName']){const _0xcba5d7=_0x166ad8['commandParams'][0x0]['newValue'];return _0xcba5d7?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcba5d7+'\x22')}:{'type':'format','content':o(_0x4042f6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x166ad8['commandName']){const _0x3743a5=_0x166ad8['commandParams'][0x0]['width'];return _0x3743a5?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20width:*\x20%0',_0x3743a5)}:{'type':'format','content':o(_0x4042f6,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x23621b=this['editor']['locale'],_0x3c6fa9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6fa9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c6fa9['registerBlockAttribute']('src'),_0x3c6fa9['descriptionFactory']['registerDescriptionCallback'](_0x44f64c=>{if('attribute'!=_0x44f64c['type'])return;const {data:_0x10ace0}=_0x44f64c;return _0x10ace0&&'src'==_0x10ace0['key']?_0x10ace0['newValue']&&_0x10ace0['oldValue']?{'type':'format','content':o(_0x23621b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31cbc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10da4a=this['editor'],_0x54f33c=_0x10da4a['locale'];_0x10da4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b849=>{if('formatBlock'!=_0x34b849['type']&&'formatInline'!=_0x34b849['type'])return;const {data:_0x456eef}=_0x34b849;if(!_0x456eef||'replaceImageSource'!=_0x456eef['commandName'])return;return{'type':'format','content':o(_0x54f33c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x16a2ad{['afterInit'](){const _0x511d18=this['editor'];if(!_0x511d18['plugins']['has']('ImageStyleEditing'))return;const _0x289caf=_0x511d18['plugins']['get']('TrackChangesEditing'),_0x597397=_0x511d18['plugins']['get']('ImageUtils'),_0x456e8b={};_0x289caf['enableCommand']('imageStyle',(_0x1b2ac5,_0x1ce4e0)=>{const _0x4e6e77=_0x511d18['plugins']['get']('Users')['me'],_0x5b60be=_0x511d18['commands']['get']('imageStyle');let _0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x427cb5=_0x5b60be['value'];if(_0x427cb5==_0x1ce4e0['value'])return;const _0x4865de={'commandName':'imageStyle','commandParams':[_0x1ce4e0],'formatGroupId':_0x31d1bc()};_0x511d18['model']['change'](()=>{if(_0x289caf['getSuggestions']()['filter'](_0x27aebf=>_0x27aebf['isInContent']&&_0x4e6e77==_0x27aebf['author']&&('formatBlock'==_0x27aebf['type']||'formatInline'==_0x27aebf['type'])&&('imageStylePreApply'==_0x27aebf['subType']||'imageStylePostApply'==_0x27aebf['subType'])&&_0x27aebf['getFirstRange']()['isEqual'](_0x2c276d))['forEach'](_0x5e1f53=>_0x289caf['discardSuggestion'](_0x5e1f53['head'])),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x5b60be['refresh'](),_0x511d18['commands']['get']('imageTypeInline')['refresh'](),_0x511d18['commands']['get']('imageTypeBlock')['refresh'](),_0x427cb5=_0x5b60be['value'],_0x427cb5!=_0x1ce4e0['value'])return _0x597397['isInlineImage'](_0x5ceb79)&&_0x5b60be['shouldConvertImageType'](_0x1ce4e0['value'],_0x5ceb79)?(_0x1b2ac5({..._0x1ce4e0,'setImageSizes':!0x1}),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),void _0x289caf['markBlockFormat'](_0x5ceb79,{..._0x4865de,'commandReversedParams':[{'value':_0x427cb5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x597397['isBlockImage'](_0x5ceb79)?_0x289caf['markBlockFormat'](_0x5ceb79,_0x4865de,[],'imageStylePostApply'):_0x289caf['markInlineFormat'](_0x2c276d,_0x4865de,'imageStylePostApply'));});});for(const _0x4462b8 of _0x511d18['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x456e8b[_0x4462b8['name']]=_0x4462b8['title']['toLowerCase']();_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x221213])=>{_0x597397['setImageNaturalSizeAttributes'](_0x221213['getContainedElement']());}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa7434d,_0x1821e3)=>{_0x289caf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa7434d,{'commandName':_0x1821e3['commandName'],'commandParams':_0x1821e3['commandReversedParams']});}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d03e4,_0x144cce){if(_0x1ee099(_0x2d03e4,_0x144cce))return[_0x2d03e4,_0x144cce];if(_0x1ee099(_0x144cce,_0x2d03e4))return[_0x144cce,_0x2d03e4];return null;});const _0x3c7da0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ee099(_0x41ada0,_0x103621){const _0x435d73=_0x3c7da0['findIndex'](({type:_0x18752b,subType:_0x57fdb3})=>_0x41ada0['type']==_0x18752b&&_0x41ada0['subType']==_0x57fdb3),_0x557666=_0x3c7da0['findIndex'](({type:_0x1a88b2,subType:_0x4fbcec})=>_0x103621['type']==_0x1a88b2&&_0x103621['subType']==_0x4fbcec);if(_0x435d73<0x0||_0x557666<0x0)return!0x1;const _0x25e8ca=_0x41ada0['getFirstRange'](),_0xbc9d2b=_0x103621['getFirstRange']();if((0x0==_0x435d73||0x1==_0x435d73)&&0x2==_0x557666&&_0x25e8ca['isIntersecting'](_0xbc9d2b))return!0x0;if(0x2==_0x435d73&&0x3==_0x557666){const _0x50074c=_0x289caf['_findSuggestions'](_0x25e8ca,'insertion')['filter'](({suggestion:_0x36683f,meta:_0x2439c5})=>_0x2439c5['isOwn']&&'convertInlineImageToBlock'==_0x36683f['subType']);if(_0x50074c['length']>0x1&&_0xbc9d2b['end']['isEqual'](_0x25e8ca['start']))return!0x0;if(0x1==_0x50074c['length']&&(_0x25e8ca['start']['isEqual'](_0xbc9d2b['end'])||_0x25e8ca['end']['isEqual'](_0xbc9d2b['start'])))return!0x0;}if(0x3==_0x435d73&&0x3==_0x557666&&_0x25e8ca['start']['isBefore'](_0xbc9d2b['start'])){const _0x684923=_0x25e8ca['end']['nodeAfter'],_0x63c7b9=_0xbc9d2b['start']['nodeBefore'];return _0x597397['isBlockImage'](_0x684923)&&_0x684923===_0x63c7b9;}return!0x1;}_0x511d18['model']['document']['registerPostFixer'](()=>{let _0x44d23c=!0x1;const _0x1bc03a=Array['from'](_0x511d18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x499e08,data:_0xbf613d}of _0x1bc03a){const {group:_0x3a7ef2,type:_0x3fb111,subType:_0x5068b2,id:_0x5017ae}=_0x289caf['_splitMarkerName'](_0x499e08);if('suggestion'==_0x3a7ef2&&_0x289caf['hasSuggestion'](_0x5017ae)){if('formatBlock'==_0x3fb111&&('imageStylePreApply'==_0x5068b2||'imageStylePostApply'==_0x5068b2)){const _0x489745=_0x289caf['getSuggestion'](_0x5017ae);if(_0xbf613d['newRange']){const _0xd83fbd=_0x489745['getFirstRange']()['getContainedElement']();if(_0x597397['isBlockImage'](_0xd83fbd))continue;_0x289caf['discardSuggestion'](_0x489745),_0x44d23c=!0x0;}}if('insertion'==_0x3fb111&&'imageCaption'==_0x5068b2&&!_0xbf613d['newRange']){const _0x4d221b=_0x289caf['getSuggestion'](_0x5017ae);_0x4d221b['next']&&_0x4d221b['next']['isInContent']&&(_0x289caf['discardSuggestion'](_0x4d221b['next']),_0x44d23c=!0x0);}}}return _0x44d23c;}),this['_registerLegacyDescription'](_0x456e8b);}['_registerLegacyDescription'](_0x520f97){const _0x3562e0=this['editor'],_0x30d7b0=_0x3562e0['locale'];_0x3562e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8e28=>{if('formatBlock'!=_0x2c8e28['type']&&'formatInline'!=_0x2c8e28['type'])return;const {data:_0x39b308}=_0x2c8e28;if(!_0x39b308||'imageStyle'!=_0x39b308['commandName'])return;const _0x362ddc=_0x39b308['commandParams'][0x0]['value'];return _0x4c9041('side'===_0x362ddc?o(_0x30d7b0,'FORMAT_SIDE_IMAGE'):_0x520f97[_0x362ddc]||_0x362ddc);function _0x4c9041(_0x34f6ce){return{'type':'format','content':o(_0x30d7b0,'*Format:*\x20%0',_0x34f6ce)};}});}}class at extends _0x16a2ad{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1405b8){super(_0x1405b8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x315be0=this['editor'],_0x32a908=_0x315be0['commands']['get']('importWord'),_0x2c2476=_0x315be0['commands']['get']('trackChanges');_0x32a908&&(_0x32a908['on']('execute',(_0x29638b,[,_0x4b1d71])=>{this['_trackChangesValueDuringImport']=_0x2c2476['value'],_0x4b1d71['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32a908,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32a908,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c2476['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x315be0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x212f21,_0x7898aa){const {suggestions:_0xd54fc8}=_0x7898aa,_0x3bf4be=this['editor']['commands']['get']('trackChanges'),_0x36629e=_0x3bf4be['value'];this['_trackChangesValueDuringImport']!==_0x36629e&&(_0x3bf4be['execute'](),this['_trackChangesExecuted']=!0x0),_0xd54fc8&&_0xd54fc8['forEach'](({id:_0x12b59e,type:_0x54207b,author:_0x46ab48,created_at:_0x53f5ed})=>{const _0x5b3424={'id':_0x12b59e,'type':_0x54207b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46ab48,'createdAt':_0x53f5ed?new Date(_0x53f5ed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b3424);});}}class ct extends _0x16a2ad{['afterInit'](){const _0x347bfd=this['editor'],_0x15ac16=_0x347bfd['plugins']['get']('TrackChangesEditing');if(_0x347bfd['plugins']['has']('IndentEditing')&&(_0x15ac16['enableCommand']('indent'),_0x15ac16['enableCommand']('outdent')),_0x347bfd['plugins']['has']('IndentBlock')){for(const _0x2c26ba of['indentBlock','outdentBlock'])_0x15ac16['enableDefaultAttributesIntegration'](_0x2c26ba);}const _0x118f0d=_0x347bfd['locale'];_0x15ac16['registerBlockAttribute']('blockIndent'),_0x15ac16['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x118f0d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f75c=this['editor'],_0x5b838c=_0x57f75c['locale'],_0x5d074c=_0x57f75c['plugins']['get']('TrackChangesEditing');_0x5d074c['descriptionFactory']['registerDescriptionCallback'](_0x52cc43=>{if('formatBlock'!=_0x52cc43['type'])return;const {data:_0x30b396}=_0x52cc43;if(!_0x30b396)return;if('indentBlock'!=_0x30b396['commandName']&&'outdentBlock'!=_0x30b396['commandName'])return;const _0x2e9e85=_0x52cc43['getItems']()[0x0],_0x1e2629=_0x5d074c['descriptionFactory']['getItemLabel'](_0x2e9e85);return'indentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Indent:*\x20%0',_0x1e2629)}:'outdentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Outdent:*\x20%0',_0x1e2629)}:void 0x0;});}}class ut extends _0x16a2ad{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x16a2ad{['afterInit'](){const _0x2f60f3=this['editor'];if(!_0x2f60f3['plugins']['has']('LinkEditing'))return;const _0x2fe860=_0x2f60f3['plugins']['get']('TrackChangesEditing'),_0x525a9b=_0x2f60f3['commands']['get']('link');_0x2fe860['enableDefaultAttributesIntegration']('link'),_0x2fe860['enableDefaultAttributesIntegration']('unlink'),_0x2fe860['registerInlineAttribute']('linkHref');for(const _0x25ec2a of _0x525a9b['manualDecorators'])_0x2fe860['registerInlineAttribute'](_0x25ec2a['id']),_0x2fe860['descriptionFactory']['registerAttributeLabel'](_0x25ec2a['id'],'link\x20('+_0x25ec2a['label']['toLowerCase']()+')');_0x2fe860['descriptionFactory']['registerDescriptionCallback'](_0x221f9c=>{if('attribute'!=_0x221f9c['type'])return;const {data:_0x5efef4}=_0x221f9c;if(!_0x5efef4||'linkHref'!=_0x5efef4['key'])return;const _0x52f6fc=_0x5efef4['newValue'],_0x503842=_0x2f60f3['locale'];return{'type':'format','content':null==_0x52f6fc?o(_0x503842,'*Remove\x20link*'):o(_0x503842,'*Set\x20link:*\x20%0','\x22'+_0x52f6fc+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d6d50=this['editor'],_0x68596a=_0x3d6d50['locale'];_0x3d6d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47af01=>{if('formatInline'!=_0x47af01['type'])return;const {data:_0x121f62}=_0x47af01;if(_0x121f62){if('link'==_0x121f62['commandName']){const _0x1f827c=_0x121f62['commandParams'][0x0];return{'type':'format','content':o(_0x68596a,'*Set\x20link:*\x20%0','\x22'+_0x1f827c+'\x22')};}return'unlink'==_0x121f62['commandName']?{'type':'format','content':o(_0x68596a,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x16a2ad{['afterInit'](){const _0x31911e=this['editor'],_0x5834d2=_0x31911e['locale'];if(!_0x31911e['plugins']['has']('LegacyListEditing'))return;const _0x13f63c=_0x31911e['plugins']['get']('TrackChangesEditing'),_0x57f1a3=_0x31911e['plugins']['has']('LegacyTodoListEditing');function _0x45e8ed(_0x5c243e){return()=>{const _0x3420a5=_0x31911e['model']['document']['selection'],_0x2eb20b=_0x31911e['commands']['get'](_0x5c243e);if(_0x2eb20b['value'])return void _0x31911e['execute']('paragraph',{});const _0x25b1b5=_0x5c243e['slice'](0x0,-0x4),_0x51ac23=function(_0x2f7148,_0x4acc7c,_0x4a3835){let _0x288677=Array['from'](_0x2f7148)['filter'](_0x5eb67b=>function(_0x352dcb,_0x5b51aa){return _0x5b51aa['checkChild'](_0x352dcb['parent'],'listItem')&&!_0x5b51aa['isObject'](_0x352dcb);}(_0x5eb67b,_0x4a3835));_0x288677=_0x288677['filter'](_0x219dad=>!_0x219dad['is']('element','listItem')||_0x219dad['getAttribute']('listType')!=_0x4acc7c);const _0x2b6f34=new Set();for(const _0x5248e7 of _0x288677)_0x5248e7['is']('element','listItem')?_0x2b6f34['add'](fe(_0x5248e7)):_0x2b6f34['add'](_0x5248e7);return Array['from'](_0x2b6f34);}(_0x3420a5['getSelectedBlocks'](),_0x25b1b5,_0x31911e['model']['schema']);_0x31911e['model']['change'](()=>{for(const _0x5596d5 of _0x51ac23)_0x13f63c['markBlockFormat'](_0x5596d5,{'commandName':_0x5c243e,'commandParams':[{'forceValue':!_0x2eb20b['value']}],'formatGroupId':'blockName'},ue(_0x5596d5));});};}function _0x5eac82(_0x2c2b1d){return()=>{const _0x5843f2=function(_0x8e72f1){let _0x4b776c=Array['from'](_0x8e72f1);const _0x1925ae=_0x4b776c['findIndex'](_0x3793a2=>'listItem'!=_0x3793a2['name']);return _0x1925ae>-0x1&&(_0x4b776c=_0x4b776c['slice'](0x0,_0x1925ae)),_0x4b776c;}(_0x31911e['model']['document']['selection']['getSelectedBlocks']()),_0x2fceb6=_0x31911e['model']['createRange'](_0x31911e['model']['createPositionAt'](_0x5843f2[0x0],'before'),_0x31911e['model']['createPositionAt'](_0x5843f2[_0x5843f2['length']-0x1],'end'));_0x31911e['model']['change'](()=>{_0x13f63c['markBlockFormat'](_0x2fceb6,{'commandName':_0x2c2b1d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x588b1f){const _0x72958c=new Set();for(const _0x2fe062 of _0x588b1f){let _0x4250c5=_0x2fe062['nextSibling'];for(;_0x4250c5&&_0x4250c5['getAttribute']('listIndent')>_0x2fe062['getAttribute']('listIndent');)_0x72958c['add'](_0x4250c5),_0x4250c5=_0x4250c5['nextSibling'];}return Array['from'](_0x72958c);}(_0x5843f2));});};}_0x13f63c['enableCommand']('numberedList',_0x45e8ed('numberedList')),_0x13f63c['enableCommand']('bulletedList',_0x45e8ed('bulletedList')),_0x57f1a3&&_0x13f63c['enableCommand']('todoList',_0x45e8ed('todoList')),_0x13f63c['enableCommand']('indentList',_0x5eac82('indentList')),_0x13f63c['enableCommand']('outdentList',_0x5eac82('outdentList')),_0x57f1a3&&_0x13f63c['enableCommand']('checkTodoList',()=>{const _0x19c98b=_0x31911e['commands']['get']('checkTodoList'),_0x588819=Array['from'](_0x19c98b['_selectedElements']);_0x588819['filter'](_0x8ec86=>_0x8ec86['getAttribute']('todoListChecked')!=_0x19c98b['value']),_0x31911e['model']['change'](()=>{for(const _0x15ddef of _0x588819)_0x13f63c['markBlockFormat'](_0x15ddef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19c98b['value']}]});});}),_0x13f63c['descriptionFactory']['registerElementLabel']('listItem',_0x2a00f5=>o(_0x5834d2,'ELEMENT_LIST_ITEM',_0x2a00f5)),_0x13f63c['descriptionFactory']['registerDescriptionCallback'](_0x325adf=>{if('formatBlock'!=_0x325adf['type']&&'formatInline'!=_0x325adf['type'])return;const {data:_0x158538}=_0x325adf;if(_0x158538){if('numberedList'==_0x158538['commandName']||'bulletedList'==_0x158538['commandName']||'todoList'==_0x158538['commandName'])switch(_0x158538['commandName']['replace']('List','')){case'bulleted':return _0x49853d(o(_0x5834d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49853d(o(_0x5834d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49853d(o(_0x5834d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Indent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Outdent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x158538['commandName'])return _0x158538['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5834d2,'*Check\x20item*')}:{'type':'format','content':o(_0x5834d2,'*Uncheck\x20item*')};}function _0x49853d(_0x2b833e){return{'type':'format','content':o(_0x5834d2,'*Change\x20to:*\x20%0',_0x2b833e)};}});}}function fe(_0x44fecd){const _0xb09392=_0x44fecd['getAttribute']('listIndent');if(0x0==_0xb09392)return _0x44fecd;let _0x577ba0=_0x44fecd;for(;_0x44fecd['previousSibling']&&_0x44fecd['previousSibling']['is']('element','listItem');){const _0x44aaa5=_0x44fecd['previousSibling']['getAttribute']('listIndent');if(_0x44aaa5==_0xb09392)_0x577ba0=_0x44fecd['previousSibling'];else{if(_0x44aaa5<_0xb09392)break;}_0x44fecd=_0x44fecd['previousSibling'];}return _0x577ba0;}function ue(_0x2eaef8){const _0x193cfd=[];if(_0x2eaef8['is']('element','listItem')&&_0x2eaef8['getAttribute']('listIndent')>0x0){let _0x33b322=_0x2eaef8['nextSibling'];for(;_0x33b322&&'listItem'==_0x33b322['name']&&_0x33b322['getAttribute']('listIndent')==_0x2eaef8['getAttribute']('listIndent');)_0x193cfd['push'](_0x33b322),_0x33b322=_0x33b322['nextSibling'];}return _0x193cfd;}class W extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x403206=this['editor']['config']['get']('list.properties'),_0x507a92=this['editor']['plugins']['get']('TrackChangesEditing');_0x403206['styles']&&_0x507a92['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x403206['reversed']&&_0x507a92['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x403206['startIndex']&&_0x507a92['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x507a92['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b08b4,_0x3d3707={}){const _0x47a226=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e44a1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47a226['markMultiRangeBlockFormat'](_0x2e44a1,{'commandName':'listStyle','commandParams':[{'type':_0x3d3707['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x31ede1,_0x30a363={}){const _0x4f021b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44bbea=this['_getSuggestionBlocks'](_0x976aa0=>_0x976aa0['is']('element','listItem')&&'numbered'===_0x976aa0['getAttribute']('listType'));if(_0x44bbea['length']<0x1)return;const _0x955b23=_0x44bbea['map'](_0x113cf6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x113cf6,'before'),this['editor']['model']['createPositionAt'](_0x113cf6,0x0)));this['editor']['model']['change'](()=>{_0x4f021b['markMultiRangeBlockFormat'](_0x955b23,{'commandName':'listReversed','commandParams':[{'reversed':_0x30a363['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37a996,_0x13988a={}){const _0x1d53ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5209=this['_getSuggestionBlocks'](_0x2a606c=>_0x2a606c['is']('element','listItem')&&'numbered'===_0x2a606c['getAttribute']('listType'));if(_0x2c5209['length']<0x1)return;const _0x1d465b=_0x2c5209['map'](_0xf609a9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf609a9,'before'),this['editor']['model']['createPositionAt'](_0xf609a9,0x0)));this['editor']['model']['change'](()=>{_0x1d53ad['markMultiRangeBlockFormat'](_0x1d465b,{'commandName':'listStart','commandParams':[{'startIndex':_0x13988a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2d4b81){if('formatBlock'!=_0x2d4b81['type']&&'formatInline'!=_0x2d4b81['type'])return;const _0x38bd28=this['editor']['locale'],{data:_0x28e397}=_0x2d4b81;if(!_0x28e397)return;let _0x2031e7,_0x2a08a0;switch(_0x28e397['commandName']){case'listStyle':_0x2031e7='*Change\x20to:*\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,o(_0x38bd28,this['_getTranslationKeyForListStyle'](_0x28e397['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2031e7=_0x28e397['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7)};break;case'listStart':_0x2031e7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,_0x28e397['commandParams'][0x0]['startIndex'])};}return _0x2a08a0;}['_getSuggestionBlocksForListStyle'](){const _0x56fc6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x7e9ddb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x7e9ddb[0x0]?.['is']('element','listItem')&&_0x7e9ddb['unshift'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x7e9ddb[_0x7e9ddb['length']-0x1]?.['is']('element','listItem')&&_0x7e9ddb['push'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x7e9ddb=[...new Set(_0x7e9ddb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x7e9ddb=_0x7e9ddb['filter'](_0x44502b=>_0x44502b['is']('element','listItem'))),_0x7e9ddb;}['_getSuggestionBlocks'](_0x1958f6){const _0x46e3eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e4f2d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1958f6)['map'](_0x285078=>{const _0x17b716=this['editor']['model']['createPositionAt'](_0x285078,0x0);return[..._0x46e3eb['getSiblingNodes'](_0x17b716,'backward'),..._0x46e3eb['getSiblingNodes'](_0x17b716,'forward')];})['flat']();return _0x5e4f2d=[...new Set(_0x5e4f2d)],_0x5e4f2d;}['_getTranslationKeyForListStyle'](_0x47e726){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47e726)||'default')['toUpperCase']()+'_LIST_'+_0x47e726['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x16a2ad{['afterInit'](){const _0x5d5e6d=this['editor'];if(!_0x5d5e6d['plugins']['has']('MediaEmbedEditing'))return;const _0x2281a4=_0x5d5e6d['plugins']['get']('TrackChangesEditing'),_0xef94df=_0x5d5e6d['locale'];_0x2281a4['enableCommand']('mediaEmbed'),_0x2281a4['descriptionFactory']['registerElementLabel']('media',_0x3ae1f9=>o(_0xef94df,'ELEMENT_MEDIA',_0x3ae1f9)),_0x5d5e6d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x575d50,{writer:_0x49f015,options:_0x2dbd47})=>{if(_0x2dbd47['showSuggestionHighlights'])return _0x49f015['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d5e6d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ea00f,_0x24a460,_0x5eee1e)=>{_0x5eee1e['options']['showSuggestionHighlights']&&_0x1ea00f['stop']();},{'priority':'high'});}}class mt extends _0x16a2ad{['afterInit'](){const _0x34d7f5=this['editor'];_0x34d7f5['plugins']['has']('MentionEditing')&&_0x34d7f5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x16a2ad{['afterInit'](){const _0x122545=this['editor'];if(!_0x122545['plugins']['has']('MergeFieldsEditing'))return;_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2d70ef=_0x122545['plugins']['get']('TrackChangesEditing'),_0x54cdaf=_0x122545['locale'];_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeField',_0x444cbc=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x444cbc)),_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x55ef42=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x55ef42)),_0x2d70ef['descriptionFactory']['registerDescriptionCallback'](_0xbdd563=>{if('insertion'!=_0xbdd563['type']&&'deletion'!=_0xbdd563['type'])return;const _0x3d84fb=_0xbdd563['getContainedElement']();if(null==_0x3d84fb)return;if(!_0x3d84fb['is']('element','mergeField')&&!_0x3d84fb['is']('element','mergeFieldBlock'))return;const _0x19ae73=_0x122545['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3d84fb['getAttribute']('id'));return'insertion'==_0xbdd563['type']?{'type':'insertion','content':o(_0x54cdaf,'*Insert:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x54cdaf,'*Remove:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x16a2ad{['afterInit'](){const _0xa66258=this['editor'],_0x54173a=_0xa66258['plugins']['get']('TrackChangesEditing');_0xa66258['plugins']['has']('MultiLevelList')&&(_0x54173a['enableDefaultAttributesIntegration']('multiLevelList'),_0x54173a['registerBlockAttribute']('listMarkerStyle'),_0x54173a['descriptionFactory']['registerDescriptionCallback'](_0x42d9e2=>this['handleDescriptions'](_0x42d9e2)));}['handleDescriptions'](_0x16a34e){const _0x118daa=this['editor']['locale'],{data:_0x314cd2}=_0x16a34e,_0x311ed1={'type':'format','content':''};if(_0x314cd2&&'listMarkerStyle'==_0x314cd2['key']){if(!_0x314cd2['oldValue'])return{'type':'format','content':o(_0x118daa,'*Set\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['newValue']+')'};if(!_0x314cd2['newValue']){let _0xc7de0a=_0x16a34e['head'];for(;_0xc7de0a;){if(_0xc7de0a['data']&&'listType'==_0xc7de0a['data']['key']&&_0xc7de0a['data']['newValue'])return _0x311ed1;_0xc7de0a=_0xc7de0a['next'];}return{'type':'format','content':o(_0x118daa,'*Remove\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['oldValue']+')'};}}}}class kt extends _0x16a2ad{['afterInit'](){const _0x2e1ef9=this['editor'];if(!_0x2e1ef9['plugins']['has']('PageBreakEditing'))return;_0x2e1ef9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x147c91=_0x2e1ef9['plugins']['get']('TrackChangesEditing'),_0x6d413b=_0x2e1ef9['locale'];_0x147c91['descriptionFactory']['registerElementLabel']('pageBreak',_0x454e53=>o(_0x6d413b,'ELEMENT_PAGE_BREAK',_0x454e53));}}class bt extends _0x16a2ad{['afterInit'](){const _0xcb8ca0=this['editor'];if(!_0xcb8ca0['plugins']['has']('Paragraph'))return;const _0x49a106=_0xcb8ca0['locale'],_0x5497fd=_0xcb8ca0['plugins']['get']('TrackChangesEditing');_0x5497fd['descriptionFactory']['registerElementLabel']('paragraph',_0x302694=>o(_0x49a106,'ELEMENT_PARAGRAPH',_0x302694)),_0x5497fd['enableDefaultAttributesIntegration']('paragraph'),_0x5497fd['enableCommand']('insertParagraph'),_0xcb8ca0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xcb8ca0),{'priority':'highest'}),_0xcb8ca0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e359a,_0x153cad,_0x216c0e)=>{_0x216c0e['options']['showSuggestionHighlights']&&nr(_0xcb8ca0,{'showActiveMarker':!0x1})(_0x4e359a,_0x153cad,_0x216c0e);},{'priority':'highest'});const _0x1a7e65=_0x5497fd['descriptionFactory'];_0x1a7e65['registerDescriptionCallback'](_0x2322dc=>{if('insertion'!==_0x2322dc['type'])return;const {start:_0x10bfec,end:_0x2e0ed0}=_0x2322dc['getFirstRange']();if(!_0x10bfec['isTouching'](_0x2e0ed0)||!_0x10bfec['nodeAfter'])return;const _0x30faaa=_0xcb8ca0['model']['schema'],_0x2a2176=_0x10bfec['nodeAfter'];return _0x30faaa['isBlock'](_0x2a2176)&&!_0x30faaa['isLimit'](_0x2a2176)&&_0x30faaa['checkChild'](_0x2a2176,'$text')?{'type':'insertion','content':o(_0x49a106,'*Insert:*\x20%0',_0x1a7e65['getItemLabel'](_0x2a2176,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42a4c9=this['editor'],_0x3362c9=_0x42a4c9['locale'];_0x42a4c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df486=>{if('formatBlock'!=_0x5df486['type'])return;const {data:_0x2a2f50}=_0x5df486;return _0x2a2f50&&'paragraph'==_0x2a2f50['commandName']?{'type':'format','content':o(_0x3362c9,'*Change\x20to:*\x20%0',o(_0x3362c9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x386f76,{showActiveMarker:_0x52cf42=!0x0}={}){return(_0x27ad06,_0x250326,_0x1c581f)=>{const _0x2865a9=_0x386f76['plugins']['get']('TrackChangesEditing'),_0x3bbe24=_0x250326['markerRange']['start'],_0x354d97=_0x250326['markerRange']['end'],_0x192e4a=_0x386f76['model']['schema'];if(!_0x3bbe24['isTouching'](_0x354d97)||!_0x3bbe24['nodeAfter'])return;const _0x4b30f9=_0x3bbe24['nodeAfter'];if(_0x192e4a['isBlock'](_0x4b30f9)&&!_0x192e4a['isLimit'](_0x4b30f9)&&_0x192e4a['checkChild'](_0x4b30f9,'$text')){if(!_0x1c581f['consumable']['consume'](_0x250326['markerRange'],_0x27ad06['name']))return;const {authorId:_0x764827}=_0x2865a9['_splitMarkerName'](_0x250326['markerName']),_0x408eb4=_0x1c581f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x764827}),_0x3eb108=_0x1c581f['mapper']['toViewPosition'](_0x354d97);_0x52cf42&&_0x2865a9['activeMarkers']['includes'](_0x250326['markerName'])&&_0x1c581f['writer']['addClass']('ck-suggestion-marker--active',_0x408eb4),_0x1c581f['writer']['insert'](_0x3eb108,_0x408eb4),_0x1c581f['mapper']['bindElementToMarker'](_0x408eb4,_0x250326['markerName']);}};}class wt extends _0x16a2ad{['afterInit'](){const _0x46b383=this['editor'];if(!_0x46b383['plugins']['has']('RemoveFormatEditing'))return;_0x46b383['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0860=this['editor'];_0x4d0860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43425e=>{if('formatBlock'!=_0x43425e['type']&&'formatInline'!=_0x43425e['type'])return;const {data:_0x35c1e2}=_0x43425e;return _0x35c1e2&&'removeFormat'==_0x35c1e2['commandName']?{'type':'format','content':o(_0x4d0860['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x16a2ad{['afterInit'](){const _0x3126bb=this['editor'];if(!_0x3126bb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4397e6=_0x3126bb['plugins']['get']('TrackChangesEditing');_0x4397e6['enableCommand']('goToPreviousRestrictedEditingException'),_0x4397e6['enableCommand']('goToNextRestrictedEditingException');const _0x26ef28=_0x3126bb['plugins']['get']('RestrictedEditingModeEditing');_0x26ef28['enableCommand']('trackChanges'),_0x26ef28['enableCommand']('acceptSuggestion'),_0x26ef28['enableCommand']('discardSuggestion'),_0x26ef28['enableCommand']('acceptAllSuggestions'),_0x26ef28['enableCommand']('discardAllSuggestions'),_0x26ef28['enableCommand']('acceptSelectedSuggestions'),_0x26ef28['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x16a2ad{static get['requires'](){return[_0x3bdf00];}['init'](){const _0x190535=this['editor'],_0x55f8d6=_0x190535['plugins']['get']('TrackChangesEditing');_0x55f8d6['enableCommand']('shiftEnter'),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x190535),{'priority':'high'}),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x190535),{'priority':'high'}),_0x190535['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22f352,_0x5effca,_0x4de0aa)=>{_0x4de0aa['options']['showSuggestionHighlights']&&ge(_0x190535,{'showActiveMarker':!0x1})(_0x22f352,_0x5effca,_0x4de0aa);}),_0x55f8d6['descriptionFactory']['registerElementLabel']('softBreak',_0x4e476a=>o(_0x190535['locale'],'ELEMENT_LINE_BREAK',_0x4e476a));}}function ge(_0xc40bf2,{showActiveMarker:_0x4ea7ec=!0x0}={}){return(_0x329006,_0x4c13b1,_0x32750a)=>{const _0x5280ad=_0xc40bf2['plugins']['get']('TrackChangesEditing');if(!_0x32750a['consumable']['test'](_0x4c13b1['markerRange'],_0x329006['name']))return;const _0x340923=_0xc40bf2['model'];for(const _0x2ffa9e of _0x4c13b1['markerRange']['getItems']()){if(!_0x2ffa9e['is']('element','softBreak'))continue;const _0x4dbfac='deletion'==_0x4c13b1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x580350}=_0x5280ad['_splitMarkerName'](_0x4c13b1['markerName']),_0x3d10ff=_0x32750a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4dbfac,'data-author-id':_0x580350}),_0x5ada6c=_0x32750a['mapper']['toViewPosition'](_0x340923['createPositionBefore'](_0x2ffa9e));_0x4ea7ec&&_0x5280ad['activeMarkers']['includes'](_0x4c13b1['markerName'])&&_0x32750a['writer']['addClass']('ck-suggestion-marker--active',_0x3d10ff),_0x32750a['writer']['insert'](_0x5ada6c,_0x3d10ff),_0x32750a['mapper']['bindElementToMarker'](_0x3d10ff,_0x4c13b1['markerName']);}};}class St extends _0x16a2ad{['afterInit'](){const _0x1640a3=this['editor'],_0x4028dc=_0x1640a3['model'],_0x326bc5=_0x1640a3['locale'];if(!_0x1640a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x5b4ca9=_0x1640a3['plugins']['get']('TrackChangesEditing'),_0x18c793='restrictedEditingException',_0x5b2daf=_0x1640a3['commands']['get'](_0x18c793);_0x5b4ca9['enableCommand'](_0x18c793,(_0x280e28,_0x5d0aba={})=>{const _0xc2de4a=_0x4028dc['document']['selection'];if(_0xc2de4a['isCollapsed'])return void _0x280e28(_0x5d0aba);const _0x38088b=void 0x0!==_0x5d0aba['forceValue']?_0x5d0aba['forceValue']:!_0x5b2daf['value'];_0x4028dc['change'](()=>{const _0x4b04c2=Array['from'](_0xc2de4a['getRanges']());for(const _0x384a72 of _0x4b04c2){const _0x1f3e50=_0x38088b?[_0x384a72]:io(_0x18c793,_0x384a72,_0x4028dc);for(const _0x4fa827 of _0x1f3e50)_0x5b4ca9['markInlineFormat'](_0x4fa827,{'commandName':_0x18c793,'commandParams':[{'forceValue':_0x38088b}]});}});}),_0x5b4ca9['descriptionFactory']['registerDescriptionCallback'](_0xe38330=>{if('formatBlock'!=_0xe38330['type']&&'formatInline'!=_0xe38330['type'])return;const {data:_0xf46020}=_0xe38330;return _0xf46020&&_0xf46020['commandName']==_0x18c793?_0xf46020['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x16a2ad{['afterInit'](){const _0xc45c6a=this['editor'];if(!_0xc45c6a['plugins']['has']('Style')||!_0xc45c6a['plugins']['has']('DataSchema'))return;const _0x274f64=_0xc45c6a['plugins']['get']('TrackChangesEditing'),_0x3bdbc2=_0xc45c6a['locale'],_0x2a63ad=_0xc45c6a['config']['get']('style')||{},_0x4add59=_0xc45c6a['plugins']['get']('GeneralHtmlSupport'),_0x3ad2cb=_0xc45c6a['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc45c6a['plugins']['get']('DataSchema'),_0x2a63ad['definitions']);_0x274f64['enableDefaultAttributesIntegration']('style');const _0x503036=new Set();for(const _0x3d831c of _0x3ad2cb['block']){const _0x22182e=_0x4add59['getGhsAttributeNameForElement'](_0x3d831c['element']);_0x503036['add'](_0x22182e);}const _0x396bfe=new Set();for(const _0x5877e9 of _0x3ad2cb['inline']){const _0x34fd8e=_0x4add59['getGhsAttributeNameForElement'](_0x5877e9['element']);_0x396bfe['add'](_0x34fd8e);for(const _0x11fa40 of _0x5877e9['ghsAttributes'])_0x396bfe['add'](_0x11fa40);}for(const _0x232f6e of _0x503036)_0x274f64['registerBlockAttribute'](_0x232f6e),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x232f6e,o(_0x3bdbc2,'FORMAT_STYLE'));for(const _0x3409e9 of _0x396bfe)_0x274f64['registerInlineAttribute'](_0x3409e9),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x3409e9,o(_0x3bdbc2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55a6ab=this['editor'],_0x20e509=_0x55a6ab['locale'];_0x55a6ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c5988=>{if('formatBlock'!=_0x5c5988['type']&&'formatInline'!=_0x5c5988['type'])return;const {data:_0xb44c6d}=_0x5c5988;return _0xb44c6d&&'style'===_0xb44c6d['commandName']?_0xb44c6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e509,'*Set\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20e509,'*Remove\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x16a2ad{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2ec689){super(_0x2ec689),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x451c67=this['editor'],_0x8627f=_0x451c67['model']['document']['selection'];if(!_0x451c67['plugins']['has']('TableEditing'))return;const _0x1e6ef2=_0x451c67['locale'],_0x7421a1=_0x451c67['plugins']['get']('TrackChangesEditing'),_0x23db14=_0x451c67['plugins']['get']('TableUtils');_0x7421a1['descriptionFactory']['registerElementLabel']('table',_0x44efe8=>o(_0x1e6ef2,'ELEMENT_TABLE',_0x44efe8)),this['_setupColumnsRowsFixing'](),_0x7421a1['enableCommand']('insertTable'),_0x7421a1['enableCommand']('selectTableRow'),_0x7421a1['enableCommand']('selectTableColumn');for(const _0x54ca80 of['insertTableRowAbove','insertTableRowBelow']){const _0x1a0db7=_0x451c67['commands']['get'](_0x54ca80);_0x7421a1['enableCommand'](_0x54ca80,_0x1527d4=>{_0x451c67['model']['change'](_0x340960=>{_0x1527d4();const _0xb7aae7='above'===_0x1a0db7['order'],_0x58d17d=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0x17142f=_0x23db14['getRowIndexes'](_0x58d17d),_0x4cef31=_0xb7aae7?_0x17142f['first']-0x1:_0x17142f['last']+0x1,_0x370d52=_0x58d17d[0x0]['findAncestor']('table'),_0x576a6d=_0x23db14['createTableWalker'](_0x370d52,{'startRow':_0x4cef31,'endRow':_0x4cef31}),_0x19ebeb=Array['from'](_0x576a6d)['map'](_0x160fbc=>_0x340960['createRangeOn'](_0x160fbc['cell']));_0x7421a1['markMultiRangeInsertion'](_0x19ebeb,'tableRow');});});}for(const _0x11b7a8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x124867=_0x451c67['commands']['get'](_0x11b7a8);_0x7421a1['enableCommand'](_0x11b7a8,_0x331a98=>{_0x451c67['model']['change'](_0x453bd6=>{_0x331a98();const _0x2c2aed='left'===_0x124867['order'],_0x1b130b=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xe5bfe2=_0x23db14['getColumnIndexes'](_0x1b130b),_0x2e2e98=_0x2c2aed?_0xe5bfe2['first']-0x1:_0xe5bfe2['last']+0x1,_0x4edbf0=_0x1b130b[0x0]['findAncestor']('table'),_0x18bc61=_0x23db14['createTableWalker'](_0x4edbf0,{'startRow':0x0,'column':_0x2e2e98,'includeAllSlots':!0x1}),_0x5cf5d6=Array['from'](_0x18bc61)['map'](_0x5d9a3b=>_0x453bd6['createRangeOn'](_0x5d9a3b['cell']));_0x7421a1['markMultiRangeInsertion'](_0x5cf5d6,'tableColumn');});});}for(const _0x58cf19 of['removeTableRow','removeTableColumn']){const _0x497572=_0x58cf19['substr'](0xb),_0xe60f63=_0x497572['toLowerCase'](),_0xb98c2c=_0xe60f63['substr'](0x0,0x3)+'span',_0x12143e='table'+_0x497572,_0x2cd0df='min'+_0x497572,_0x55e2a5='max'+_0x497572;_0x7421a1['enableCommand'](_0x58cf19,()=>{_0x451c67['model']['change'](_0x24574b=>{const _0x5de8cb=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xd1e093=_0x5de8cb[0x0]['findAncestor']('table');let _0x4c9124;if('removeTableRow'==_0x58cf19){const _0x2d7489=_0x23db14['getRowIndexes'](_0x5de8cb);_0x4c9124={'startRow':_0x2d7489['first'],'endRow':_0x2d7489['last'],'includeAllSlots':!0x0};}else{const _0xcea990=_0x23db14['getColumnIndexes'](_0x5de8cb);_0x4c9124={'startColumn':_0xcea990['first'],'endColumn':_0xcea990['last'],'includeAllSlots':!0x0};}const _0xa8091e=_0x23db14['createTableWalker'](_0xd1e093,_0x4c9124),_0x561cb7=Array['from'](_0xa8091e)['map'](({cell:_0x178fab})=>_0x178fab),_0xffd878=be(_0x561cb7['filter'](_0x25c887=>_0x25c887['hasAttribute'](_0xb98c2c))),_0x3c741e=be(_0x561cb7['filter'](_0x331d84=>!_0x331d84['hasAttribute'](_0xb98c2c)))['map'](_0x4232bc=>_0x24574b['createRangeOn'](_0x4232bc)),_0x1a5ec4=_0x7421a1['markMultiRangeDeletion'](_0x3c741e,_0x12143e);if(_0x1a5ec4&&('tableRow'==_0x1a5ec4['subType']||'tableColumn'==_0x1a5ec4['subType'])){const _0x4c4343=this['_getSuggestionCoords'](_0x1a5ec4);for(const _0x2a17b2 of _0xffd878){const _0x2dffc9=_0x24574b['createRangeOn'](_0x2a17b2),_0x5ca5ef=_0x23db14['getCellLocation'](_0x2a17b2),_0x4ef0bf=_0x2a17b2['getAttribute'](_0xb98c2c)-0x1,_0x26447c=_0x4c4343[_0x2cd0df],_0x35f38f=_0x4c4343[_0x55e2a5];_0x26447c<=_0x5ca5ef[_0xe60f63]&&_0x5ca5ef[_0xe60f63]+_0x4ef0bf<=_0x35f38f&&_0x1a5ec4['addRange'](_0x2dffc9);}}});});}function _0x17994c(_0x29449d){const _0x3069c3=Array['from'](_0x8627f['getRanges']())['map'](_0x315416=>_0x1eeee4['fromRange'](_0x315416));_0x451c67['model']['change'](_0x30a853=>{const _0x47d62e=_0x30a853['batch'];_0x29449d=_0x29449d['filter'](_0x57707b=>'$graveyard'!=_0x57707b['root']['rootName']),_0x30a853['setSelection'](_0x29449d),_0x451c67['commands']['get']('removeTableRow')['refresh'](),_0x451c67['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x451c67['model']['enqueueChange'](()=>{_0x451c67['model']['enqueueChange'](_0x47d62e,_0x19cb15=>{const _0x1d1b98=_0x3069c3['filter'](_0x228ffb=>'$graveyard'!=_0x228ffb['root']['rootName']);_0x1d1b98['length']>0x0&&_0x19cb15['setSelection'](_0x1d1b98);for(const _0x17f1ba of _0x3069c3)_0x17f1ba['detach']();});});});}function _0x3d60a5(_0x220885){_0x451c67['model']['change'](_0x155ef2=>{const _0x2c693c=Array['from'](_0x8627f['getRanges']())['map'](_0x45c992=>_0x1eeee4['fromRange'](_0x45c992)),_0x61e152=[];for(const _0x1a4bf3 of _0x220885)for(const _0x2c5a39 of _0x1a4bf3['getItems']({'shallow':!0x0}))_0x61e152['push'](_0x2c5a39);for(const _0x3fbd1c of _0x61e152)'$graveyard'!=_0x3fbd1c['root']['rootName']&&(_0x155ef2['setSelection'](_0x155ef2['createPositionAt'](_0x3fbd1c,0x0)),_0x451c67['commands']['get']('removeTableColumn')['refresh'](),_0x451c67['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42bd75=_0x2c693c['filter'](_0x4b34cc=>'$graveyard'!=_0x4b34cc['root']['rootName']);_0x42bd75['length']>0x0&&_0x155ef2['setSelection'](_0x42bd75);for(const _0x1719e7 of _0x2c693c)_0x1719e7['detach']();});}function _0x37fc7a(_0x4d3335,_0x4cd307){return _0x4cd307['every'](_0x5ba02a=>_0x4d3335['some'](_0x14238d=>_0x14238d['end']['isEqual'](_0x5ba02a['start'])||_0x5ba02a['end']['isEqual'](_0x14238d['start'])));}function _0x5f5676(_0xf77252,_0x4ae753){return!_0xf77252['some'](_0x4ae92f=>_0x4ae753['some'](_0x4d9970=>_0x4ae92f['isIntersecting'](_0x4d9970)))&&_0xf77252['some'](_0x59d969=>_0x4ae753['some'](_0x41f6e1=>_0x59d969['end']['isTouching'](_0x41f6e1['start'])));}_0x451c67['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x172338,_0x233ee9,_0x52f475)=>{if(!_0x52f475['options']['showSuggestionHighlights'])return;const _0x2ea4a6=_0x233ee9['item'];if(!_0x2ea4a6)return;const _0x2178c9=_0x52f475['mapper']['toViewElement'](_0x2ea4a6);function _0x3d619c(_0x2544fa){return Array['isArray'](_0x2544fa)?_0x2544fa:[_0x2544fa];}_0x2178c9&&'tableCell'===_0x2ea4a6['name']&&_0x2d4906(_0x2178c9,_0x52f475['writer'],(_0x48c946,_0x197dbd,_0x1c0878)=>_0x1c0878['addClass'](_0x3d619c(_0x197dbd['classes']),_0x48c946),(_0x114fd4,_0x545103,_0x1a6f9c)=>_0x1a6f9c['removeClass'](_0x3d619c(_0x545103['classes']),_0x114fd4));},{'priority':'highest'}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x552ec2=>{if('insertion'!=_0x552ec2['type']&&'deletion'!=_0x552ec2['type'])return;const _0x567cbe=_0x552ec2['getContainedElement']();if(null!=_0x567cbe&&_0x567cbe['is']('element','table')){if('insertion'==_0x552ec2['type']){const _0x1e31b0=_0x552ec2['getItems']()['filter'](_0x390bfa=>_0x390bfa['is']('$textProxy'))['map'](_0x1e3c03=>_0x1e3c03['data']);if(_0x1e31b0['length'])return{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e31b0['join']('\x20')+'\x22'))};}if('deletion'==_0x552ec2['type']){const _0x185afc=_0x552ec2['getItems']()['filter'](_0x101a10=>_0x101a10['is']('$textProxy'))['map'](_0x520d9c=>_0x520d9c['data']);if(_0x185afc['length'])return{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x185afc['join']('\x20')+'\x22'))};}}}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x5103ee=>{if('tableRow'==_0x5103ee['subType']){const _0x43be9d=_0x5103ee['getItems']()['filter'](_0x52d203=>_0x52d203['is']('$textProxy'))['map'](_0x446282=>_0x446282['data']),_0x972492=this['_getSuggestionCoords'](_0x5103ee),_0x471c07=_0x972492['maxRow']-_0x972492['minRow']+0x1;if('insertion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};if('deletion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};}if('tableColumn'==_0x5103ee['subType']){const _0x6fff98=_0x5103ee['getItems']()['filter'](_0x493122=>_0x493122['is']('$textProxy'))['map'](_0x2c1be4=>_0x2c1be4['data']),_0x5c618a=this['_getSuggestionCoords'](_0x5103ee),_0x367218=_0x5c618a['maxColumn']-_0x5c618a['minColumn']+0x1;if('insertion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};if('deletion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};}}),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f5676),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f5676);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2168d7=this['editor'],_0x3ae119=_0x2168d7['model']['document']['selection'];return(_0xe995bf,_0x24aa31)=>{_0x2168d7['model']['change'](_0x56d36f=>{const {commandName:_0x5212d0,commandParams:_0x5db319}=_0x24aa31;let _0x22902a=_0xe995bf[0x0]['end']['nodeBefore'];_0x5db319&&_0x5db319[0x0]&&!0x1===_0x5db319[0x0]['forceValue']&&(_0x22902a=_0xe995bf[0x0]['start']['nodeAfter']);const _0x41ce86=_0x56d36f['createRangeIn'](_0x22902a);if('$graveyard'==_0x41ce86['root']['rootName'])return;const _0x1e58aa=Array['from'](_0x3ae119['getRanges']())['map'](_0x42d7ac=>_0x1eeee4['fromRange'](_0x42d7ac));_0x56d36f['setSelection'](_0x41ce86),_0x2168d7['commands']['get'](_0x5212d0)['refresh'](),_0x5db319['push']({'forceDefaultExecution':!0x0}),_0x2168d7['execute'](_0x5212d0,..._0x5db319);const _0x3feb96=_0x1e58aa['filter'](_0x46c5b5=>'$graveyard'!=_0x46c5b5['root']['rootName']);_0x3feb96['length']>0x0&&_0x56d36f['setSelection'](_0x3feb96);for(const _0x3c8642 of _0x1e58aa)_0x3c8642['detach']();});};}['_getCoordsForCells'](_0x1cf57f){const _0x1a09ca=this['editor']['plugins']['get']('TableUtils');let _0x495543=Number['MAX_SAFE_INTEGER'],_0x5c9c55=Number['MIN_SAFE_INTEGER'],_0x3ca27f=Number['MAX_SAFE_INTEGER'],_0x22665b=Number['MIN_SAFE_INTEGER'];for(const _0x13c8fd of _0x1cf57f){if('$graveyard'==_0x13c8fd['root']['rootName'])continue;const {row:_0x5bc172,column:_0x179e0f}=_0x1a09ca['getCellLocation'](_0x13c8fd),_0x6aabe=_0x13c8fd['hasAttribute']('rowspan')?_0x13c8fd['getAttribute']('rowspan')-0x1:0x0,_0x189062=_0x13c8fd['hasAttribute']('colspan')?_0x13c8fd['getAttribute']('colspan')-0x1:0x0;_0x495543=_0x5bc172<_0x495543?_0x5bc172:_0x495543,_0x5c9c55=_0x5bc172+_0x6aabe>_0x5c9c55?_0x5bc172+_0x6aabe:_0x5c9c55,_0x3ca27f=_0x179e0f<_0x3ca27f?_0x179e0f:_0x3ca27f,_0x22665b=_0x179e0f+_0x189062>_0x22665b?_0x179e0f+_0x189062:_0x22665b;}return{'minRow':_0x495543,'maxRow':_0x5c9c55,'minColumn':_0x3ca27f,'maxColumn':_0x22665b};}['_setupColumnsRowsFixing'](){const _0x108318=this['editor'],_0x5a2464=_0x108318['plugins']['get']('TrackChangesEditing'),_0x3a9772=_0x108318['plugins']['get']('TableUtils');_0x108318['model']['document']['on']('change:data',()=>{const _0x366b8d=Array['from'](_0x108318['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bfeeb,data:_0x3c6ca4}of _0x366b8d){const {group:_0x207604,id:_0x3b3528,subType:_0x53068e}=_0x5a2464['_splitMarkerName'](_0x2bfeeb);if('suggestion'!=_0x207604)continue;if(null!=_0x3c6ca4['oldRange'])continue;const _0x26d036=_0x5a2464['getSuggestion'](_0x3b3528);this['_tablePostFixingSubtypes']['includes'](_0x53068e)&&this['_tableSuggestions']['add'](_0x26d036);}},{'priority':'low'});const _0x2f029d=(_0x1565bd,_0x38ec46)=>{let _0x50e48c=!0x1;const _0x22d9db=_0x38ec46['createRangeOn'](_0x1565bd),_0x3f45d6=_0x1565bd['findAncestor']('table'),_0x379be=_0x3a9772['getCellLocation'](_0x1565bd);for(const _0x19dd07 of this['_tableSuggestions']){const _0x2cef55=_0x19dd07['subType'],_0x4a9e1d=_0x2cef55['startsWith']('tablePaste'),_0x22bf39=_0x2cef55['substr'](_0x4a9e1d?0xa:0x5),_0xd74921=_0x22bf39['toLowerCase'](),_0x40932d=_0xd74921['substr'](0x0,0x3)+'span',_0x5e896f='min'+_0x22bf39,_0xbd1480='max'+_0x22bf39;if(!_0x19dd07['isInContent'])continue;if(_0x3f45d6!=_0x19dd07['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x19dd07['isIntersectingWithRange'](_0x22d9db))continue;const _0x238c3f=_0x1565bd['hasAttribute'](_0x40932d)?_0x1565bd['getAttribute'](_0x40932d)-0x1:0x0,_0x2a9c4d=this['_getSuggestionCoords'](_0x19dd07),_0x3d3eb7=_0x2a9c4d[_0x5e896f],_0x3bdb6d=_0x2a9c4d[_0xbd1480];_0x3d3eb7<=_0x379be[_0xd74921]&&_0x379be[_0xd74921]+_0x238c3f<=_0x3bdb6d&&(_0x19dd07['addRange'](_0x22d9db),_0x50e48c=!0x0);}return _0x50e48c;};_0x108318['model']['document']['registerPostFixer'](_0x1d4400=>{let _0x5c5ad5=!0x1;for(const _0x26b137 of _0x108318['model']['document']['differ']['getChanges']())if('insert'==_0x26b137['type']){if('tableRow'==_0x26b137['name']){for(const _0x1974a8 of _0x26b137['position']['nodeAfter']['getChildren']())_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x1974a8,_0x1d4400);}else'tableCell'==_0x26b137['name']&&(_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x26b137['position']['nodeAfter'],_0x1d4400));}return _0x5c5ad5;});}['_getSuggestionCoords'](_0x4d2e07){return this['_getCoordsForCells'](_0x4d2e07['getRanges']()['map'](_0x3c44f0=>_0x3c44f0['start']['nodeAfter']));}}function be(_0x1327bb){return Array['from'](new Set(_0x1327bb)['values']());}class vt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x5bff96=this['editor'],_0x59c459=_0x5bff96['model']['document']['selection'],_0x47e8a0=_0x5bff96['locale'];if(!_0x5bff96['plugins']['has']('TableEditing'))return;const _0x282a95=_0x5bff96['plugins']['get']('TrackChangesEditing'),_0x37a265=_0x5bff96['plugins']['get']('TableUtils'),_0x4e4697=_0x5bff96['plugins']['get'](It);_0x4e4697['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x282a95['enableCommand']('mergeTableCells',()=>{const _0xe335af=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection']);_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat'](_0xe335af,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5bff96['commands']['get']('mergeTableCells')['on']('execute',(_0x2f1d2c,_0xe5b16b)=>{_0x5bff96['commands']['get']('trackChanges')['value']&&(_0xe5b16b['length']>0x0&&_0xe5b16b[_0xe5b16b['length']-0x1]&&_0xe5b16b[_0xe5b16b['length']-0x1]['forceDefaultExecution']||_0x282a95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f1d2c['stop']());},{'priority':'highest'});for(const _0x139518 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4bb0a3=_0x5bff96['commands']['get'](_0x139518);_0x282a95['enableCommand'](_0x139518,()=>{const _0x3da3c7=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8ed2d=>_0x8ed2d['is']('element','tableCell')),_0x5707b0=_0x4bb0a3['value'];_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat']([_0x3da3c7,_0x5707b0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d34a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x254ed2=_0x5bff96['commands']['get'](_0x4d34a8);_0x282a95['enableCommand'](_0x4d34a8,()=>{const _0x36de33=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection'])[0x0],_0xc77cf7=_0x36de33['findAncestor']('table'),{column:_0x496cef,row:_0x2d2470}=_0x37a265['getCellLocation'](_0x36de33);let _0x2b4042=[];if('horizontally'==_0x254ed2['direction']){const _0x464620=_0x37a265['createTableWalker'](_0xc77cf7,{'startRow':_0x2d2470,'endRow':_0x2d2470,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x464620)['map'](_0x7e5028=>_0x7e5028['cell']);}else{const _0x31e5ab=_0x37a265['createTableWalker'](_0xc77cf7,{'column':_0x496cef,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x31e5ab)['map'](_0x3a28a6=>_0x3a28a6['cell']);}_0x5bff96['model']['change'](_0x71d847=>{_0x282a95['markBlockFormat'](_0x71d847['createRangeOn'](_0x36de33),{'commandName':_0x4d34a8,'commandParams':[]},_0x2b4042,_0x4d34a8);});});}_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x5ea3eb=>{if('formatBlock'!=_0x5ea3eb['type']&&'formatInline'!=_0x5ea3eb['type'])return;const {data:_0x454d2f}=_0x5ea3eb;return _0x454d2f&&'mergeTableCells'==_0x454d2f['commandName']?{'type':'format','content':o(_0x47e8a0,'*Merge\x20cells*')}:void 0x0;}),_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x301db7=>{if('formatBlock'!=_0x301db7['type']&&'formatInline'!=_0x301db7['type'])return;const {data:_0x14d925}=_0x301db7;return _0x14d925?'splitTableCellVertically'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ca692=_0x4e4697['_acceptFormatSuggestionCallbackFactory']();for(const _0x3adfe7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3adfe7,'accept',_0x3ca692);for(const _0x21cdf7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21cdf7,'accept',_0x3ca692);_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21f20d=>{_0x5bff96['model']['change'](_0x4db9d7=>{const _0x5422e2=Array['from'](_0x59c459['getRanges']())['map'](_0x5476f9=>_0x1eeee4['fromRange'](_0x5476f9));_0x4db9d7['setSelection'](_0x21f20d),_0x5bff96['commands']['get']('mergeTableCells')['refresh'](),_0x5bff96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e92f6=_0x5422e2['filter'](_0x2b1be6=>'$graveyard'!=_0x2b1be6['root']['rootName']);_0x4e92f6['length']>0x0&&_0x4db9d7['setSelection'](_0x4e92f6);for(const _0x192327 of _0x5422e2)_0x192327['detach']();});});for(const _0x477915 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ce58a=_0x5bff96['commands']['get'](_0x477915);_0x4ce58a['on']('set:isEnabled',(_0x3be318,_0x2dbb6e,_0x53cb74)=>{if(_0x53cb74){const _0x413948=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x387025=>_0x387025['is']('element','tableCell'));this['_areMergableCells'](_0x4ce58a['value'],_0x413948)||(_0x3be318['return']=!0x1,_0x3be318['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x505a93=this['editor']['commands']['get']('mergeTableCells'),_0xa26e8=this['editor']['plugins']['get']('TableUtils');if(!_0x505a93['isEnabled'])return!0x1;const _0x4ce69c=_0xa26e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x696d9 of _0x4ce69c)for(const _0x141712 of _0x4ce69c)if(_0x696d9!=_0x141712&&!this['_areMergableCells'](_0x696d9,_0x141712))return!0x1;return!0x0;}['_areMergableCells'](_0x1da1ee,_0x1785d7){const _0x36beb4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ea713=this['editor']['model']['createRangeOn'](_0x1da1ee),_0x5b3a76=this['editor']['model']['createRangeOn'](_0x1785d7),_0x585c43=new Set(),_0x311656=new Set();for(const _0x2af95c of _0x36beb4['getSuggestions']())if(('insertion'==_0x2af95c['type']||'deletion'==_0x2af95c['type']||'mergeTableCells'==_0x2af95c['subType'])&&_0x2af95c['isInContent']){for(const _0x2612ee of _0x2af95c['getRanges']())_0x2612ee['containsRange'](_0x4ea713,!0x0)&&_0x585c43['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']),_0x2612ee['containsRange'](_0x5b3a76,!0x0)&&_0x311656['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']);}if(_0x585c43['size']!=_0x311656['size'])return!0x1;for(const _0x43fc7a of _0x585c43)if(!_0x311656['has'](_0x43fc7a))return!0x1;return!0x0;}}class Ct extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x416fac=this['editor'];if(!_0x416fac['plugins']['has']('TableEditing'))return;const _0x372d6d=_0x416fac['locale'],_0x80e7b7=_0x416fac['plugins']['get']('TrackChangesEditing');_0x80e7b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x80e7b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x80e7b7['registerBlockAttribute']('headingRows'),_0x80e7b7['registerBlockAttribute']('headingColumns'),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x372d6d,'FORMAT_HEADER_ROW')),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x372d6d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35b2dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e6cd2=this['editor']['plugins']['get']('TableUtils'),_0x15d239=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x459af1({showActiveMarker:_0x499279=!0x0,setDataAttribute:_0x52c55c=!0x0}={}){return(_0x55283,_0x31433c,_0x3119d2)=>{const {type:_0x5bd329,id:_0x529a3c}=_0x35b2dc['_splitMarkerName'](_0x31433c['markerName']),_0x40688f=_0x35b2dc['getSuggestion'](_0x529a3c),_0x5f3b05=_0x40688f['data'];if('formatBlock'!=_0x40688f['type']||!_0x5f3b05||'setTableColumnHeader'!=_0x5f3b05['commandName'])return;if(_0x31433c['item'])return void _0x55283['stop']();if(!_0x3119d2['consumable']['consume'](_0x31433c['markerRange'],_0x55283['name']))return;const _0x3b4dae=_0x31433c['markerRange']['start']['nodeAfter'],_0x4c853c=_0x31433c['markerRange']['end']['nodeBefore'],_0x1e300f=_0x3b4dae['parent']['parent'],{column:_0x50eed7}=_0x3e6cd2['getCellLocation'](_0x3b4dae),{column:_0x15b55c}=_0x3e6cd2['getCellLocation'](_0x4c853c);for(let _0xa6552c=_0x50eed7;_0xa6552c<=_0x15b55c;_0xa6552c++){const _0x2c6eb5=_0x3e6cd2['createTableWalker'](_0x1e300f,{'column':_0xa6552c,'includeAllSlots':!0x1});for(const _0x3daec9 of _0x2c6eb5){const _0x5517e3=_0x3daec9['cell'],_0x652a5b=_0x3119d2['mapper']['toViewElement'](_0x5517e3);_0x3119d2['writer']['addClass']('ck-suggestion-marker-'+_0x5bd329,_0x652a5b),_0x52c55c&&_0x3119d2['writer']['setAttribute']('data-suggestion',_0x529a3c,_0x652a5b),_0x3119d2['mapper']['bindElementToMarker'](_0x652a5b,_0x31433c['markerName']),_0x499279&&(_0x35b2dc['activeMarkers']['includes'](_0x31433c['markerName'])?_0x3119d2['writer']['addClass']('ck-suggestion-marker--active',_0x652a5b):_0x3119d2['writer']['removeClass']('ck-suggestion-marker--active',_0x652a5b));}}};}_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15d239),_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15d239),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x459af1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58a094,_0x20a761,_0x3277b8)=>{_0x3277b8['options']['showSuggestionHighlights']&&_0x459af1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58a094,_0x20a761,_0x3277b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3776b3,_0x3965e5,_0xc1b946)=>{const {type:_0x4fa1df,id:_0x5b1c0a}=_0x35b2dc['_splitMarkerName'](_0x3965e5['markerName']),_0x588b27=_0x35b2dc['getSuggestion'](_0x5b1c0a),_0x595ebc=_0x588b27['data'];if('formatBlock'!=_0x588b27['type']||!_0x595ebc||'setTableColumnHeader'!=_0x595ebc['commandName'])return;const _0x33e688=_0xc1b946['mapper']['markerNameToElements'](_0x3965e5['markerName']);if(_0x33e688){for(const _0x3321bd of _0x33e688)_0xc1b946['writer']['removeClass']('ck-suggestion-marker-'+_0x4fa1df,_0x3321bd),_0xc1b946['writer']['removeClass']('ck-suggestion-marker--active',_0x3321bd),_0xc1b946['writer']['removeAttribute']('data-suggestion',_0x3321bd),_0xc1b946['mapper']['unbindElementFromMarkerName'](_0x3321bd,_0x3965e5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289a67=this['editor'],_0x10e088=_0x289a67['locale'];function _0x29ab9b(_0x4a92aa){return{'type':'format','content':o(_0x10e088,'*Format:*\x20%0',_0x4a92aa)};}_0x289a67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a103d=>{if('formatBlock'!=_0x4a103d['type'])return;const {data:_0x32d719}=_0x4a103d;if(_0x32d719){if('setTableRowHeader'==_0x32d719['commandName']){const _0x3470fe=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x3470fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32d719['commandName']){const _0x293756=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x293756?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x42e5d5=>[_0x42e5d5,null]));class _t extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0xecd6ca=this['editor'];if(!_0xecd6ca['plugins']['has']('TableClipboard'))return;const _0x4eae74=_0xecd6ca['plugins']['get']('TrackChangesEditing'),_0x10e791=_0xecd6ca['plugins']['get']('TableUtils'),_0x80031a=_0xecd6ca['plugins']['get'](It),_0x2c51a5=_0xecd6ca['plugins']['get']('TableClipboard');_0x80031a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xecd6ca['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xecd6ca['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xd11a0=null;_0xecd6ca['model']['on']('insertContent',(_0x35f1f0,_0x5e2b30)=>{const [_0x42a0fb,_0x2f7f88]=_0x5e2b30,_0x53f3d9=_0x5e2b30[_0x5e2b30['length']-0x1];_0x53f3d9&&_0x53f3d9['forceDefaultExecution']||_0x4eae74['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14ef17,_0x5e6168,_0x446239,_0x327947,_0x2da079){if(_0x5e6168&&!_0x5e6168['is']('documentSelection'))return!0x1;const _0x332da7=_0x2da079['getTableIfOnlyTableInContent'](_0x14ef17,_0x446239);if(!_0x332da7||!Re(_0x332da7,void 0x0,_0x327947))return!0x1;const _0x376f5d=_0x327947['getSelectionAffectedTableCells'](_0x446239['document']['selection']);if(!_0x376f5d['length'])return!0x1;const _0x5c3ef3=_0x376f5d[0x0]['findAncestor']('table'),_0x550f3d=_0x327947['getRowIndexes'](_0x376f5d),_0x55a16c=_0x327947['getColumnIndexes'](_0x376f5d),_0x3d3e54={'startRow':_0x550f3d['first'],'endRow':_0x550f3d['last'],'startColumn':_0x55a16c['first'],'endColumn':_0x55a16c['last']};return 0x1==_0x376f5d['length']&&(_0x3d3e54['endRow']+=_0x327947['getRows'](_0x332da7)-0x1,_0x3d3e54['endColumn']+=_0x327947['getColumns'](_0x332da7)-0x1),Re(_0x5c3ef3,_0x3d3e54,_0x327947);}(_0x42a0fb,_0x2f7f88,_0xecd6ca['model'],_0x10e791,_0x2c51a5)&&(_0x35f1f0['stop'](),_0xd11a0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xecd6ca['model']['change'](()=>{_0xecd6ca['model']['insertContent'](_0x5e2b30[0x0],_0x5e2b30[0x1],_0x5e2b30[0x2],{'forceDefaultExecution':!0x0});const _0x2c3dd1=_0x31d1bc(),{rowInsertionRanges:_0x5ebd02,columnInsertionRanges:_0x712b8a,insertionRanges:_0x3bb202,deletionRanges:_0x53e62b,cells:_0x1e07ee}=_0xd11a0;_0x5ebd02['length']&&_0x4eae74['markMultiRangeInsertion'](_0x5ebd02,'tablePasteRow',{'tablePasteChainId':_0x2c3dd1}),_0x712b8a['length']&&_0x4eae74['markMultiRangeInsertion'](_0x712b8a,'tablePasteColumn',{'tablePasteChainId':_0x2c3dd1}),_0x3bb202['length']&&(_0x4eae74['markMultiRangeInsertion'](_0x3bb202,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x3bb202['forEach'](_0x216335=>_0x216335['detach']?.())),_0x53e62b['length']&&(_0x4eae74['markMultiRangeDeletion'](_0x53e62b,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x53e62b['forEach'](_0x3057d1=>_0x3057d1['detach']?.()));const _0xa25d66=_0x4eae74['markMultiRangeBlockFormat'](_0x1e07ee['map'](({element:_0x314f30})=>_0x314f30),{'formatGroupId':_0x31d1bc()},[],'tablePasteCell',{'tablePasteChainId':_0x2c3dd1});if(_0xa25d66){const _0x48d8e7=_0xa25d66['getMarkers'](),_0x196f0d=[];for(const {element:_0x5189cb,attributes:_0x2a25c1}of _0x1e07ee){if(!_0x2a25c1)continue;const _0x4096e6=_0xecd6ca['model']['createRangeOn'](_0x5189cb),_0x3c1f09=_0x48d8e7['find'](_0x4193a3=>_0x4193a3['getRange']()['isEqual'](_0x4096e6));_0x3c1f09&&_0x196f0d['push']([_0x3c1f09['name'],_0x2a25c1]);}_0x196f0d['length']&&_0xa25d66['setAttribute']('markerAttributes',Object['fromEntries'](_0x196f0d));}_0xd11a0=null;}));},{'priority':_0x3a7800['high']+0xa}),_0xecd6ca['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c5097,_0x53879b)=>{const [_0x2f8bf5,_0xd39981,,_0x4cfc1f]=_0x53879b;if(!_0xd11a0)return;_0x4c5097['stop']();const _0x4c2833=_0x2f8bf5['cell'],_0x2c61f7=_0xd39981,_0x3a9e20=ke(_0x4c2833),_0x645d78=ke(_0x2c61f7);_0x4c5097['return']=_0x4c2833;let _0x2f0397=null,_0x337fae=null;if(_0x645d78||_0x3a9e20){if(_0x3a9e20&&!_0x645d78){_0x4cfc1f['remove'](_0x4c2833['getChild'](0x0));for(const _0x33669c of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x33669c,_0x4c2833,'end');const _0x293fcd=_0xd11a0['rowInsertionIndexes']['includes'](_0x2f8bf5['row']),_0xb47819=_0xd11a0['columnInsertionIndexes']['includes'](_0x2f8bf5['column']);_0x293fcd||_0xb47819||(_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeIn'](_0x4c2833)));}else _0x645d78&&!_0x3a9e20&&(_0x337fae=_0x4cfc1f['createRangeIn'](_0x4c2833));}else{const _0x4dc9c2=_0x4cfc1f['createElement']('tableCellSuggestion'),_0x111c93=_0x4cfc1f['createElement']('tableCellSuggestion');_0x4cfc1f['wrap'](_0x4cfc1f['createRangeIn'](_0x4c2833),_0x111c93),_0x4cfc1f['insert'](_0x4dc9c2,_0x4c2833,0x0);for(const _0x1d2fef of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x1d2fef,_0x4dc9c2,'end');_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x4dc9c2)),_0x337fae=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x111c93));}const _0x508397=Array['from'](_0x2c61f7['getAttributes']())['filter'](([_0x5d4589])=>Pe['includes'](_0x5d4589));_0xd11a0['cells']['push']({'element':_0x4c2833,'attributes':_0x508397['length']?Object['fromEntries'](_0x508397):null}),_0x2f0397&&_0xd11a0['insertionRanges']['push'](_0x2f0397),_0x337fae&&_0xd11a0['deletionRanges']['push'](_0x337fae);},{'priority':'high'}),_0x10e791['on']('insertColumns',(_0x4a3827,_0x331e48)=>{const [_0x42e7b9,_0x53acb2={}]=_0x331e48;if(!_0xd11a0)return;const _0xbe1b49=_0x53acb2['at']||0x0,_0x2e33b5=_0x53acb2['columns']||0x1;_0xd11a0['columnInsertionIndexes']=new Array(_0x2e33b5)['fill'](_0xbe1b49)['map']((_0x26d9a8,_0x50e943)=>_0x26d9a8+_0x50e943);for(const {cell:_0x1dca57}of _0x10e791['createTableWalker'](_0x42e7b9,{'startColumn':_0xbe1b49,'endColumn':_0xbe1b49+_0x2e33b5-0x1}))_0xd11a0['columnInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x1dca57));},{'priority':'low'}),_0x10e791['on']('insertRows',(_0xfe6e2d,_0x3ac944)=>{const [_0x5040c9,_0x1f99a9={}]=_0x3ac944;if(!_0xd11a0)return;const _0x14ff6d=_0x1f99a9['at']||0x0,_0x246d09=_0x1f99a9['rows']||0x1;_0xd11a0['rowInsertionIndexes']=new Array(_0x246d09)['fill'](_0x14ff6d)['map']((_0x9f8d0,_0xc1bceb)=>_0x9f8d0+_0xc1bceb);for(const {cell:_0x153be7}of _0x10e791['createTableWalker'](_0x5040c9,{'startRow':_0x14ff6d,'endRow':_0x14ff6d+_0x246d09-0x1}))_0xd11a0['rowInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x153be7));},{'priority':'low'}),_0x4eae74['descriptionFactory']['registerDescriptionCallback'](_0x45a792=>{if(_0x45a792['subType']&&_0x45a792['subType']['startsWith']('tablePaste'))return _0x45a792['previous']?{}:{'type':'insertion','content':o(_0xecd6ca['locale'],'*Replace\x20table\x20cells*')};});const _0x6c4c9=()=>!0x1;for(const _0x263e14 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('deletion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x263e14,'join',_0x6c4c9);_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4b5c5a,_0x4cf7bd,_0x4a07fc)=>{const _0x2f7e6f=_0x4b5c5a['map'](_0x5d5085=>_0x5d5085['getContainedElement']())['filter'](_0x37a577=>_0x37a577),_0x354c92=new Map(_0x2f7e6f['map'](_0x4648ab=>[_0x4648ab,null]));if(_0xd11a0){for(const {element:_0x2965b2,attributes:_0x4f19c1}of _0xd11a0['cells'])_0x4f19c1&&_0x354c92['set'](_0x2965b2,_0x4f19c1);}else{if(_0x4a07fc&&_0x4a07fc['markerAttributes'])for(const [_0xa8c85f,_0x480d6e]of Object['entries'](_0x4a07fc['markerAttributes'])){const _0x5985ac=_0xecd6ca['model']['markers']['get'](_0xa8c85f),_0x5d61ef=_0x5985ac?_0x5985ac['getRange']()['getContainedElement']():null;_0x5d61ef&&_0x354c92['set'](_0x5d61ef,_0x480d6e);}}_0xecd6ca['model']['change'](_0x395aab=>{for(const [_0x2690fd,_0x3e6f43]of _0x354c92)_0x395aab['setAttributes']({...we,..._0x3e6f43},_0x2690fd);});});const _0x46ef7a=(_0x2f56c7,_0x233c88)=>{_0x4eae74['_suggestionFactory']['registerCustomCallback'](_0x2f56c7,'tablePaste',_0x233c88,(_0x2a3520,_0x955132,_0x6f471c)=>{_0xecd6ca['model']['change'](_0x18ee49=>{const _0x21e2ef=[];for(const _0x392bf3 of _0x2a3520){const _0x53004b=_0x392bf3['start']['nodeAfter'];_0x53004b['is']('element','tableCellSuggestion')&&_0x21e2ef['push'](_0x53004b);}_0x4eae74['_suggestionFactory']['getSuggestionCallback'](_0x2f56c7,null,_0x233c88)(_0x2a3520,_0x955132,_0x6f471c);for(const _0x1b3c1f of _0x21e2ef)'$graveyard'!=_0x1b3c1f['root']['rootName']&&_0x18ee49['unwrap'](_0x1b3c1f);});});};_0x46ef7a('insertion','accept'),_0x46ef7a('insertion','discard'),_0x46ef7a('deletion','accept'),_0x46ef7a('deletion','discard'),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37cba4=>{const _0x57af80=_0x37cba4['map'](_0x252c21=>_0x252c21['getContainedElement']()),_0x1ee771=_0x57af80[0x0]['findAncestor']('table'),{minRow:_0x430276,maxRow:_0x232208}=_0x80031a['_getCoordsForCells'](_0x57af80);_0x10e791['removeRows'](_0x1ee771,{'at':_0x430276,'rows':_0x232208-_0x430276+0x1});}),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8aa277=>{const _0x5f5a73=_0x8aa277['map'](_0x5f2196=>_0x5f2196['getContainedElement']()),_0xd8ee99=_0x5f5a73[0x0]['findAncestor']('table'),{minColumn:_0x55f948,maxColumn:_0x19bbf1}=_0x80031a['_getCoordsForCells'](_0x5f5a73);_0x10e791['removeColumns'](_0xd8ee99,{'at':_0x55f948,'columns':_0x19bbf1-_0x55f948+0x1});});const _0x2ecd7d=(_0x9db23b,_0x39e5c6)=>{if(!_0x39e5c6['subType']||!_0x39e5c6['subType']['startsWith']('tablePaste'))return;const _0x339464=_0x39e5c6['attributes']['tablePasteChainId'],_0x29a3f9=_0x4eae74['getSuggestions']()['filter'](_0x24eee3=>_0x24eee3['isInContent']&&_0x24eee3['attributes']&&_0x24eee3['attributes']['tablePasteChainId']==_0x339464);_0x29a3f9['length']&&_0x39e5c6['getAllAdjacentSuggestions']()['length']!=_0x29a3f9['length']&&_0x29a3f9['reduce']((_0x3d959f,_0x2399d0)=>(_0x3d959f['next']=_0x2399d0,_0x2399d0['previous']=_0x3d959f,_0x2399d0));};function _0x3c8d0f(_0x5b7064,_0x39ff60=!0x0){const {id:_0x5e20ea,authorId:_0x22335d}=_0x4eae74['_splitMarkerName'](_0x5b7064['markerName']),_0x1dc15f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe0e9c2=_0x4eae74['activeMarkers']['includes'](_0x5b7064['markerName']);return _0xe0e9c2&&_0x1dc15f['push']('ck-suggestion-marker--active'),{'classes':_0x1dc15f,'attributes':{'data-suggestion':_0x5e20ea,'data-author-id':_0x22335d},'priority':_0xe0e9c2&&_0x39ff60?0xbc2:0xbb8};}_0x4eae74['on']('suggestionLoaded',_0x2ecd7d,{'priority':'high'}),_0x4eae74['on']('suggestionUnloaded',_0x2ecd7d,{'priority':'high'}),_0xecd6ca['model']['document']['registerPostFixer'](()=>{let _0x3e3a5e=!0x1;const _0x154965=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a5670,data:_0x155d06}of _0x154965){const {group:_0x4c9e5e,type:_0x2138c4,id:_0x36b6d6}=_0x4eae74['_splitMarkerName'](_0x1a5670);if('suggestion'!=_0x4c9e5e||'deletion'!=_0x2138c4||_0x155d06['oldRange'])continue;if(!_0x4eae74['hasSuggestion'](_0x36b6d6))continue;const _0x351685=_0x4eae74['getSuggestion'](_0x36b6d6)['getRanges'](),_0x4b7d94=_0xecd6ca['plugins']['get']('Users')['me'];for(const _0x26eecd of _0x4eae74['getSuggestions']()){if(!_0x26eecd['isInContent']||_0x26eecd['author']!=_0x4b7d94)continue;if('formatBlock'!=_0x26eecd['type']||'tablePasteCell'!=_0x26eecd['subType'])continue;if(_0x26eecd['getRanges']()['every'](_0x2492b1=>_0x351685['some'](_0x361267=>_0x361267['containsRange'](_0x2492b1,!0x0)))){for(const _0x37da4f of _0x26eecd['getAllAdjacentSuggestions']())_0x37da4f['isInContent']&&(_0x37da4f['discard'](),_0x3e3a5e=!0x0);}}}return _0x3e3a5e;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x51ff3e=>{const _0x1d597f=_0xecd6ca['commands']['get']('redo');if(!_0x1d597f||!_0x1d597f['_createdBatches']['has'](_0x51ff3e['batch']))return!0x1;let _0x1f18a3=!0x1;const _0x554712=_0xecd6ca['plugins']['get']('Users')['me'],_0x52b2d1=_0xecd6ca['model']['document']['differ']['getChanges'](),_0x487355=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xa414e5,data:_0x56b1f7})=>{const {group:_0x582948,subType:_0x1db1b1,authorId:_0x2f8e9}=_0x4eae74['_splitMarkerName'](_0xa414e5);return'suggestion'==_0x582948&&'tablePaste'==_0x1db1b1&&_0x2f8e9==_0x554712['id']&&!_0x56b1f7['oldRange'];});for(const _0x17dfc3 of _0x52b2d1){if('insert'!=_0x17dfc3['type']||'tableCellSuggestion'!=_0x17dfc3['name']||0x1!=_0x17dfc3['length'])continue;const _0xf6b0c6=_0x51ff3e['createRange'](_0x17dfc3['position'],_0x17dfc3['position']['getShiftedBy'](0x1));if(!_0x487355['find'](({data:_0x19915a})=>_0x19915a['newRange']['isEqual'](_0xf6b0c6))){for(const {name:_0x584760,data:_0x19fc97}of _0x487355)if(_0xf6b0c6['containsRange'](_0x19fc97['newRange'])){_0x51ff3e['updateMarker'](_0x584760,{'range':_0xf6b0c6}),_0x1f18a3=!0x0;break;}}}return _0x1f18a3;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x2798da=>{let _0x462293=!0x1;const _0x1214ec=_0xecd6ca['plugins']['get']('Users')['me'],_0x194bc6=_0x4eae74['getSuggestions']()['filter'](_0x2a83cc=>_0x2a83cc['isInContent']&&_0x2a83cc['author']==_0x1214ec),_0x3af201=new Set(),_0x22b255=new Set();for(const _0x1ce888 of _0x194bc6)if('tablePaste'==_0x1ce888['subType'])for(const _0x12cd1b of _0x1ce888['getMarkers']()){const _0x1599a1=_0x12cd1b['getRange']()['getContainedElement']();if(_0x1599a1){if(_0x1599a1['is']('element','tableCellSuggestion')&&ke(_0x1599a1)){_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x3af201['add'](_0x1599a1),_0x462293=!0x0;const _0xabda9e=_0x1599a1['nextSibling'],_0x2a370f=_0x1599a1['previousSibling'],_0x413615=_0xabda9e&&_0xabda9e['is']('element','tableCellSuggestion'),_0x3d1095=_0x2a370f&&_0x2a370f['is']('element','tableCellSuggestion');_0x413615&&!_0x3af201['has'](_0xabda9e)&&_0x22b255['add'](_0xabda9e),_0x3d1095&&!_0x3af201['has'](_0x2a370f)&&_0x22b255['add'](_0x2a370f);}else _0x1599a1['is']('element','paragraph')&&_0x1599a1['isEmpty']&&(_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x462293=!0x0);}}else{if('tablePasteCell'==_0x1ce888['subType']){if(!_0x1ce888['attributes']||!_0x1ce888['attributes']['tablePasteChainId'])continue;const _0x582491=_0x1ce888['attributes']['markerAttributes'];if(_0x582491&&Object['keys'](_0x582491)['length'])continue;const _0x55d0e4=_0x1ce888['attributes']['tablePasteChainId'];let _0x3824bf=!0x0,_0x3ebf7e=!0x0;for(const _0x78b63e of _0x194bc6)if(_0x78b63e['subType']&&_0x78b63e['subType']['startsWith']('tablePaste')){if(!_0x78b63e['attributes']['tablePasteChainId']){_0x3ebf7e=!0x1;break;}if(_0x78b63e['id']!=_0x1ce888['id']&&_0x78b63e['attributes']['tablePasteChainId']==_0x55d0e4){_0x3824bf=!0x1;break;}}_0x3ebf7e&&_0x3824bf&&(_0x1ce888['removeMarkers'](),_0x462293=!0x0);}}for(const _0x1b80dc of _0x3af201)_0x2798da['remove'](_0x1b80dc);for(const _0xa44caa of _0x22b255)_0x2798da['unwrap'](_0xa44caa);return _0x462293;}),_0xecd6ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2ffb84=>_0x3c8d0f(_0x2ffb84),'converterPriority':'high'}),_0xecd6ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x342c85,_0x2f11c9)=>_0x2f11c9['options']['showSuggestionHighlights']?_0x3c8d0f(_0x342c85,!0x1):null,'converterPriority':'high'});const _0x358d26=_0xecd6ca['editing']['view'];this['listenTo'](_0x358d26['document'],'clipboardOutput',(_0x48ecc4,_0x2c4312)=>{const _0x8649bb=[];for(const _0x2674e7 of _0x358d26['createRangeIn'](_0x2c4312['content'])['getItems']())_0x2674e7['is']('element','suggestion-td')&&_0x8649bb['push'](_0x2674e7);_0x358d26['change'](_0x2b0871=>{for(const _0x996702 of _0x8649bb)_0x2b0871['move'](_0x2b0871['createRangeIn'](_0x996702),_0x2b0871['createPositionBefore'](_0x996702)),_0x2b0871['remove'](_0x996702);});});}}function ke(_0x29f047){if(_0x29f047['isEmpty'])return!0x0;const _0x2a2f18=_0x29f047['getChild'](0x0);return _0x2a2f18['is']('element','paragraph')&&_0x2a2f18['isEmpty'];}function Re(_0x4b31aa,_0x1bbae8={},_0x227fe9){for(const {isAnchor:_0x4c6aaf,cellHeight:_0x41e6ac,cellWidth:_0x45b809}of _0x227fe9['createTableWalker'](_0x4b31aa,{'includeAllSlots':!0x0,..._0x1bbae8}))if(!_0x4c6aaf||0x1!=_0x41e6ac||0x1!=_0x45b809)return!0x1;return!0x0;}class Nt extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1cf54e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cf54e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1cf54e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x444dd4,_0x451af7){const _0x2a4068=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27bc1a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x138c0f=_0x451af7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9f392b=_0x27bc1a['getColumnGroupElement'](_0x138c0f);let _0x1ebe2d=_0x9f392b?_0x27bc1a['getTableColumnsWidths'](_0x9f392b):null,_0x434ebf=_0x138c0f['getAttribute']('tableWidth')||null;const _0xa17716=_0x451af7['tableWidth']||_0x434ebf,_0x3a5b35=_0x451af7['columnWidths']||_0x1ebe2d,_0x290107=this['editor']['plugins']['get']('Users')['me'];for(const _0x45f9a6 of _0x2a4068['getSuggestions']()){const _0x568289=_0x45f9a6['getContainedElement']();if('resizeTable'===_0x45f9a6['subType']&&_0x568289===_0x138c0f){_0x45f9a6['author']!==_0x290107&&_0x45f9a6['discard']();const _0x5b129a=_0x45f9a6['data']['commandParams'];_0x434ebf=_0x5b129a[0x0]['tableWidth'],_0x1ebe2d=_0x5b129a[0x0]['columnWidths'];break;}}_0x444dd4({'table':_0x138c0f,'tableWidth':_0xa17716,'columnWidths':_0x3a5b35}),_0x2a4068['markBlockFormat'](_0x138c0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x434ebf,'columnWidths':_0x1ebe2d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x32a18a){if('formatBlock'!=_0x32a18a['type']&&'formatInline'!=_0x32a18a['type'])return;const {data:_0x2dafdc}=_0x32a18a;if(_0x2dafdc&&'resizeTable'===_0x2dafdc['formatGroupId']){const _0x268fe1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x268fe1)};}}}class Dt extends _0x16a2ad{['afterInit'](){const _0x38779b=this['editor'];_0x38779b['plugins']['has']('Template')&&_0x38779b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x16a2ad{['afterInit'](){const _0x1c8fa9=this['editor'];if(!_0x1c8fa9['commands']['get']('insertTableOfContents'))return;_0x1c8fa9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5856a5=_0x1c8fa9['plugins']['get']('TrackChangesEditing'),_0x5463e6=_0x1c8fa9['locale'];_0x5856a5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3060ed=>o(_0x5463e6,'ELEMENT_TABLE_OF_CONTENTS',_0x3060ed));}}class $t extends _0x16a2ad{['afterInit'](){const _0x53103d=this['editor'];if(!_0x53103d['plugins']['has']('Title'))return;const _0x4b7ac5=_0x53103d['plugins']['get']('TrackChangesEditing');_0x4b7ac5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53103d['locale'],'ELEMENT_TITLE')),_0x53103d['model']['document']['registerPostFixer'](_0x2ccc87=>{let _0x3bbb22=!0x1;const _0x7f53c0=Array['from'](_0x53103d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d44b,data:_0x1d990a}of _0x7f53c0){const {group:_0x350714}=_0x4b7ac5['_splitMarkerName'](_0x39d44b);if('suggestion'!==_0x350714||!_0x1d990a['newRange'])continue;const _0x1eb46e=_0x1d990a['newRange'],_0xb2a84b=_0x1eb46e['end']['nodeBefore'];if(!_0xb2a84b||!_0xb2a84b['is']('element','title-content'))continue;if(!_0x1eb46e['start']['isTouching'](_0x1eb46e['end']))continue;const _0x2a9662=_0x53103d['model']['schema']['getNearestSelectionRange'](_0x1eb46e['end'],'forward');if(_0x2a9662&&_0x2a9662['isCollapsed']){const _0x128625=_0x2ccc87['createRange'](_0x1eb46e['start'],_0x2a9662['start']);_0x128625['isEqual'](_0x1eb46e)||(_0x2ccc87['updateMarker'](_0x39d44b,{'range':_0x128625}),_0x3bbb22=!0x0);}_0x3bbb22||(_0x2ccc87['removeMarker'](_0x39d44b),_0x3bbb22=!0x0);}return _0x3bbb22;});}}class Bt extends _0x16a2ad{['afterInit'](){const _0x3c5506=this['editor'],_0x2ba949=_0x3c5506['plugins']['get']('TrackChangesEditing');_0x3c5506['plugins']['has']('UndoEditing')&&(_0x2ba949['enableCommand']('undo'),_0x2ba949['enableCommand']('redo'));}}class xt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x4fee00=this['editor'];if(!_0x4fee00['plugins']['has']('TableCaptionEditing'))return;_0x4fee00['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x16a2ad{['tableProperties'];['tableCellProperties'];constructor(_0x1d87b1){super(_0x1d87b1),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 _0x28b2e9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x443f3b of this['tableProperties'])_0x28b2e9['enableCommand'](_0x443f3b,(_0x3762bf,_0x8bec59)=>{const _0x408b5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x443f3b,[_0x408b5a],this['tableProperties'],'tableProperties',_0x3762bf,_0x8bec59);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26273a,_0x54b8e5)=>this['handleDiscardAction'](this['tableProperties'],_0x26273a,_0x54b8e5)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b8a15 of this['tableCellProperties'])_0x28b2e9['enableCommand'](_0x4b8a15,(_0x145cb1,_0x13f92b)=>{const _0x14507f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b8a15,_0x14507f,this['tableCellProperties'],'tableCellProperties',_0x145cb1,_0x13f92b);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x427d4e,_0x3f49a0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x427d4e,_0x3f49a0)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x28b2e9['descriptionFactory']['registerDescriptionCallback'](_0x5ab412=>this['handleSuggestionDescription'](_0x5ab412));}['_handlePropertyChange'](_0x1223c2,_0x599812,_0x209f8d,_0x613e28,_0xe1ce6f,_0x424cb2){const _0x5c88b9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x424cb2['batch'],()=>{for(const _0x235af8 of _0x599812){if(this['_getSuggestion'](_0x235af8,_0x613e28))_0xe1ce6f(_0x424cb2);else{const _0x3c2919={};for(const _0x430525 of _0x209f8d){const _0x32e679=_0x235af8['getAttribute'](_0x430525);void 0x0!==_0x32e679&&(_0x3c2919[_0x430525]=_0x32e679);}_0xe1ce6f(_0x424cb2),_0x5c88b9['markBlockFormat'](_0x235af8,{'commandParams':[_0x3c2919]},[],_0x613e28);}}});}['handleDiscardAction'](_0x3cf29e,_0xfa6a29,_0x408911){const _0x257a89=_0xfa6a29[0x0]['start']['nodeAfter'],_0x55494d=_0x408911['commandParams'][0x0];this['editor']['model']['change'](_0x33e183=>{for(const _0x4d8a79 of _0x3cf29e)void 0x0!==_0x55494d[_0x4d8a79]?_0x33e183['setAttribute'](_0x4d8a79,_0x55494d[_0x4d8a79],_0x257a89):_0x33e183['removeAttribute'](_0x4d8a79,_0x257a89);});}['handleSuggestionDescription'](_0x6058f4){if(_0x6058f4['data'])switch(_0x6058f4['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5938fb,_0x4ebd37){const _0x1227d4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d5b41 of _0x1227d4['getSuggestions']({'skipNotAttached':!0x0})){const _0x55514f=_0x3d5b41['getContainedElement']();if(_0x3d5b41['subType']===_0x4ebd37&&_0x55514f===_0x5938fb)return _0x3d5b41;}return null;}}const m='$elementName';class p extends _0x16a2ad{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5680c5,_0x57b538,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d897c){function _0x311db0(_0x4e56c2){return _0x4e56c2['map'](_0x20ab6f=>String['fromCharCode'](_0x20ab6f))['join']('');}super(_0x1d897c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x856554,_0x2e1e75,_0x1bf750,_0x311222)=>{this['_model']['change'](()=>{for(const _0x379a2d of[..._0x311222,..._0x1bf750])this['_model']['markers']['has'](_0x379a2d)&&_0x1d897c['editing']['reconvertMarker'](_0x379a2d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1d897c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1d897c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d897c['config']['get']('trackChanges.trackFormatChanges'),_0x1d897c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d897c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d897c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x311db0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x311db0([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x30]);}['init'](){const _0x3332ae=this['editor'],_0x59f621=(_0x23aefe,_0x34c5e6)=>{if('attribute'!=_0x23aefe)return'ck-suggestion-marker-'+_0x23aefe;const _0x520915=_0x34c5e6['split']('|')[0x0];return this['_isBlockAttribute'](_0x520915)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3332ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ff78a=>{const {id:_0x163081,authorId:_0x28a8f8,type:_0x28e0c1,subType:_0xae49a}=this['_splitMarkerName'](_0x3ff78a['markerName']),_0x244905=['ck-suggestion-marker',_0x59f621(_0x28e0c1,_0xae49a)];let _0x2e1df5=0xbb8;return this['activeMarkers']['includes'](_0x3ff78a['markerName'])&&(_0x244905['push']('ck-suggestion-marker--active'),_0x2e1df5=0xbc2),'deletion'==_0x28e0c1&&(_0x2e1df5+=0x5),{'classes':_0x244905,'attributes':{'data-suggestion':_0x163081,'data-author-id':_0x28a8f8},'priority':_0x2e1df5};}}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x123b9a=>{_0x123b9a['on']('addMarker:suggestion',(_0x694b5b,_0x5f5382,_0x5aa099)=>{if(!_0x5aa099['options']['showSuggestionHighlights'])return;const _0x51ecb6=_0x5f5382['item'];if(!_0x51ecb6)return;const _0x184fa1=_0x5aa099['mapper']['toViewElement'](_0x51ecb6);_0x3332ae['model']['schema']['isObject'](_0x51ecb6)&&_0x184fa1&&!_0x184fa1['getCustomProperty']('widget')&&_0x184fa1['is']('containerElement')&&_0x1dfbcb(_0x184fa1,_0x5aa099['writer']);},{'priority':'high'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x14ab44,_0xf1f3a6)=>{if(!_0xf1f3a6['options']['showSuggestionHighlights'])return null;const {type:_0x15083d,subType:_0x55de5c}=this['_splitMarkerName'](_0x14ab44['markerName']);return{'classes':['ck-suggestion-marker',_0x59f621(_0x15083d,_0x55de5c)],'priority':0xbb8};}});const _0x42c029=({showActiveMarkers:_0x78291=!0x0,isAttributeSuggestion:_0x49a1ae=!0x1}={})=>(_0x5639ec,_0x1c35ac,_0x1a3cb3)=>{if(!_0x1c35ac['item'])return;const {id:_0x21dbf4,authorId:_0x53c6be}=this['_splitMarkerName'](_0x1c35ac['markerName']);if(_0x49a1ae){const _0x170ed8=this['_suggestions']['get'](_0x21dbf4),_0x20d71f=this['_getAttributeKey'](_0x170ed8);if(!this['_isBlockAttribute'](_0x20d71f))return;}if(_0x1c35ac['item']['is']('selection'))return void _0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);const _0x22ae91=_0x1a3cb3['mapper']['toViewElement'](_0x1c35ac['item']);if(_0x1c35ac['item']['is']('element')&&_0x3332ae['model']['schema']['isBlock'](_0x1c35ac['item'])&&!_0x22ae91['getCustomProperty']('addHighlight')){_0x1a3cb3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-suggestion',_0x21dbf4,_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-author-id',_0x53c6be,_0x22ae91),_0x1a3cb3['mapper']['bindElementToMarker'](_0x22ae91,_0x1c35ac['markerName']),_0x78291&&(this['activeMarkers']['includes'](_0x1c35ac['markerName'])?_0x1a3cb3['writer']['addClass']('ck-suggestion-marker--active',_0x22ae91):_0x1a3cb3['writer']['removeClass']('ck-suggestion-marker--active',_0x22ae91));for(const _0x5f0435 of _0x3332ae['model']['createRangeIn'](_0x1c35ac['item'])['getItems']())_0x1a3cb3['consumable']['consume'](_0x5f0435,_0x5639ec['name']);_0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);}};_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x469ce8=>{_0x469ce8['on']('addMarker:suggestion:formatBlock',(_0x4634ca,_0x351681,_0x19c2c2)=>{_0x19c2c2['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1})(_0x4634ca,_0x351681,_0x19c2c2);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x2c762f=>{_0x2c762f['on']('addMarker:suggestion:attribute',(_0x38fa76,_0x1ee8f9,_0x5a3354)=>{_0x5a3354['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38fa76,_0x1ee8f9,_0x5a3354);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214b44,_0x160cc4)=>_0x160cc4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214b44['substr'](0xb)}}),_0x3332ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x204293,{writer:_0x2ed46d})=>{let _0x352418='suggestion:'+_0x204293['getAttribute']('suggestion-type')+':'+_0x204293['getAttribute']('id');return _0x204293['getAttribute']('marker-count')&&(_0x352418+=':'+_0x204293['getAttribute']('marker-count')),_0x2ed46d['createElement']('$marker',{'data-name':_0x352418});}}),_0x3332ae['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x20d85d=>{_0x20d85d['on']('addMarker:suggestion:formatBlock',_0x42c029(),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x5f435b=>{_0x5f435b['on']('addMarker:suggestion:attribute',_0x42c029({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x168f14=>{_0x168f14['on']('removeMarker:suggestion:formatBlock',(_0x23ed0d,_0x45a7b4,_0x175113)=>{const _0x19e6e5=_0x175113['mapper']['markerNameToElements'](_0x45a7b4['markerName']);if(_0x19e6e5){for(const _0x55d163 of _0x19e6e5)_0x55d163['getCustomProperty']('addHighlight')||(_0x175113['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x55d163),_0x175113['writer']['removeAttribute']('data-suggestion',_0x55d163),_0x175113['writer']['removeAttribute']('data-author-id',_0x55d163),_0x175113['mapper']['unbindElementFromMarkerName'](_0x55d163,_0x45a7b4['markerName']));}},{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x3b7ede=>{_0x3b7ede['on']('removeMarker:suggestion:attribute',(_0x19a5c5,_0x4b521c,_0x567610)=>{const _0x54a502=_0x567610['mapper']['markerNameToElements'](_0x4b521c['markerName']);if(!_0x54a502)return;const {id:_0x4164c6}=this['_splitMarkerName'](_0x4b521c['markerName']),_0x3959c8=this['_suggestions']['get'](_0x4164c6),_0x572c1f=this['_getAttributeKey'](_0x3959c8);if(this['_isBlockAttribute'](_0x572c1f)){for(const _0x37a0b9 of _0x54a502)_0x37a0b9['getCustomProperty']('addHighlight')||(_0x567610['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37a0b9),_0x567610['writer']['removeAttribute']('data-suggestion',_0x37a0b9),_0x567610['writer']['removeAttribute']('data-author-id',_0x37a0b9),_0x567610['mapper']['unbindElementFromMarkerName'](_0x37a0b9,_0x4b521c['markerName']));}},{'priority':'high'});}),_0x3332ae['model']['document']['registerPostFixer'](_0x456745=>{let _0x3bae6f=!0x1;const _0x334bfd=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']()),_0x32670d=new Set();for(const {name:_0x2d6ea4,data:_0x4f219d}of _0x334bfd){const {group:_0x32f57c,type:_0x5a934d,subType:_0x3de4b3,id:_0x38da2b}=this['_splitMarkerName'](_0x2d6ea4);if('suggestion'!==_0x32f57c)continue;const _0x1d24ff=this['_suggestions']['get'](_0x38da2b);if(null!=_0x4f219d['newRange']){'formatInline'==_0x5a934d&&(_0x3bae6f=_0x3bae6f||Ut(_0x4f219d['newRange'],_0x2d6ea4,_0x456745,_0x3332ae['model']['schema']));const _0x3081eb='attribute'==_0x5a934d&&this['_isBlockAttribute'](_0x3de4b3['split']('|')[0x0]);if(_0x4f219d['newRange']['isCollapsed']||'$graveyard'==_0x4f219d['newRange']['root']['rootName']||'formatBlock'==_0x5a934d&&!Gt(_0x4f219d['newRange'])||_0x3081eb&&!Gt(_0x4f219d['newRange'])||'deletion'==_0x5a934d&&!(!Vt(_0x1f66a5=_0x4f219d['newRange'])&&!function(_0x57c0f9){return _0x57c0f9['start']['parent']==_0x57c0f9['end']['nodeBefore']&&_0x57c0f9['start']['isAtEnd'];}(_0x1f66a5)))_0x456745['removeMarker'](_0x2d6ea4),_0x3bae6f=!0x0;else{if(!_0x1d24ff||!_0x1d24ff['isInContent'])continue;if(_0x4f219d['newRange']&&_0x4f219d['oldRange']&&_0x4f219d['newRange']['isEqual'](_0x4f219d['oldRange']))continue;_0x32670d['add'](_0x1d24ff);}}}var _0x1f66a5;return _0x32670d['size']>0x0&&(_0x3bae6f=!!this['_joinWithAdjacentSuggestions'](_0x32670d)||_0x3bae6f),_0x3bae6f;}),_0x3332ae['model']['document']['registerPostFixer'](_0x2aaf32=>{let _0x42bcb9=!0x1;for(const _0x139033 of _0x3332ae['model']['document']['differ']['getChanges']())if('insert'==_0x139033['type'])for(const _0x3d94f4 of this['_suggestions']['values']()){if(_0x3d94f4['isMultiRange']||!_0x3d94f4['isInContent'])continue;const _0x78a7d1='formatBlock'==_0x3d94f4['type'],_0x47c4c1=this['_getAttributeKey'](_0x3d94f4),_0x3f8839=_0x47c4c1&&this['_isBlockAttribute'](_0x47c4c1);if(!_0x78a7d1&&!_0x3f8839)continue;const _0x18152a=_0x3d94f4['getFirstRange']();if(_0x18152a['start']['parent']!=_0x18152a['end']['parent']&&!_0x18152a['end']['isAtEnd']){const _0x143df8=_0x3332ae['model']['createPositionAt'](_0x18152a['start']['nodeAfter'],'end'),_0x3e2292=_0x3332ae['model']['createRange'](_0x18152a['start'],_0x143df8);_0x2aaf32['updateMarker'](_0x3d94f4['getFirstMarker'](),{'range':_0x3e2292}),_0x42bcb9=!0x0;}}return _0x42bcb9;}),_0x3332ae['model']['document']['registerPostFixer'](_0x50672e=>this['_processAttributeChanges'](_0x50672e)),_0x3332ae['model']['document']['registerPostFixer'](_0x53a56c=>!_0x53a56c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53a56c)),_0x3332ae['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3332ae['model']['document']['on']('change:data',(_0x286401,_0x129f5d)=>{if(!_0x129f5d['isLocal']||_0x129f5d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3a9428=_0x3332ae['model']['document']['differ']['getChanges']();if(0x0==_0x3a9428['length'])return;const _0x2fbcd0=[],_0x425146=_0x3a9428['filter'](_0x37315f=>'attribute'==_0x37315f['type']),_0x49115c=_0x3a9428['filter'](_0x86bed6=>'insert'==_0x86bed6['type']&&'$text'!=_0x86bed6['name']);for(const _0xaed322 of _0x425146)this['_isRegisteredAttribute'](_0xaed322['attributeKey'])&&_0x2fbcd0['push']({'key':_0xaed322['attributeKey'],'newValue':_0xaed322['attributeNewValue'],'oldValue':_0xaed322['attributeOldValue'],'range':Ft(_0xaed322['range'],_0x3332ae['model'])});for(const _0x22d472 of _0x49115c){if('rename'!=_0x22d472['action']&&'refresh'!=_0x22d472['action'])continue;const _0x59429a=Lt(_0x22d472['position']['nodeAfter'],_0x3332ae['model']),_0x36651e=_0x22d472['before'];'rename'==_0x22d472['action']&&_0x2fbcd0['push']({'key':m,'newValue':_0x22d472['name'],'oldValue':_0x36651e['name'],'range':_0x59429a});for(const [_0x47f146,_0x425377]of _0x36651e['attributes']){if(!this['_isRegisteredAttribute'](_0x47f146))continue;const _0x5acc1c=_0x22d472['attributes']['get'](_0x47f146);_0x425377!==_0x5acc1c&&_0x2fbcd0['push']({'key':_0x47f146,'newValue':_0x5acc1c,'oldValue':_0x425377,'range':_0x59429a});}for(const [_0x302999,_0x5d98ab]of _0x22d472['attributes'])this['_isRegisteredAttribute'](_0x302999)&&(_0x36651e['attributes']['has'](_0x302999)||_0x2fbcd0['push']({'key':_0x302999,'newValue':_0x5d98ab,'oldValue':null,'range':_0x59429a}));}0x0!=_0x2fbcd0['length']&&_0x3332ae['model']['enqueueChange'](_0x129f5d,_0x25aa39=>{const _0x29a462=_0x31d1bc();for(const {range:_0x6ba546,key:_0x322f6a,oldValue:_0x4245cb,newValue:_0x22a48b}of _0x2fbcd0)this['markAttributeChange'](_0x6ba546,_0x322f6a,_0x4245cb,_0x22a48b,{'groupId':_0x29a462});this['_reduceExistingSuggestions'](_0x25aa39,_0x2fbcd0);});},{'priority':'lowest'}),_0x3332ae['model']['markers']['on']('update:suggestion',(_0x432fc2,_0x3cfd40,_0x3c9edf)=>{if(null==_0x3c9edf){const {id:_0x43c7ef}=this['_splitMarkerName'](_0x3cfd40['name']),_0x541cd3=this['_suggestions']['get'](_0x43c7ef);_0x541cd3&&_0x541cd3['addMarkerName'](_0x3cfd40['name']);}}),_0x3332ae['model']['document']['on']('change:data',()=>{const _0x329206=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31f751=>'suggestion'===this['_splitMarkerName'](_0x31f751['name'])['group']);if(0x0===_0x329206['length'])return;_0x329206['sort']((_0x27f059,_0x3bee1d)=>{const _0x4d80aa=_0x27f059['data']['oldRange'],_0x1c878f=_0x3bee1d['data']['oldRange'];return null===_0x4d80aa&&null===_0x1c878f?0x0:null===_0x4d80aa&&null!==_0x1c878f?-0x1:null!==_0x4d80aa&&null===_0x1c878f?0x1:_0x4d80aa['start']['isBefore'](_0x1c878f['start'])?-0x1:0x1;});const _0x3ce501=new Set(),_0x2c2563=new Set();for(const {name:_0x494cad,data:_0x22c87d}of _0x329206){const {id:_0x47dd91}=this['_splitMarkerName'](_0x494cad);if(null===_0x22c87d['oldRange']){const _0x50fbd7=this['_handleNewSuggestionMarker'](_0x494cad);_0x2c2563['add'](_0x50fbd7);}else{const _0xb69be1=this['_suggestions']['get'](_0x47dd91);null!==_0x22c87d['newRange']||_0xb69be1['isInContent']?(_0x3ce501['add'](_0xb69be1['head']),_0x2c2563['add'](_0xb69be1)):this['_removeSuggestion'](_0xb69be1);}}_0x2c2563['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c2563);for(const _0x4c3648 of _0x3ce501)this['fire']('suggestionChanged',_0x4c3648);}),_0x3332ae['model']['on']('applyOperation',(_0xe4ab68,_0x1cb530)=>{const _0x58959d=_0x1cb530[0x0];if(!this['_suggestions']['size'])return;if(!_0x58959d['isDocumentOperation'])return;if(_0x58959d['batch']['isUndo']||!_0x58959d['batch']['isLocal'])return;let _0x41b883,_0x9816d6;switch(_0x58959d['type']){case'insert':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['position']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;case'split':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['splitPosition']),_0x9816d6=_0x3332ae['model']['createPositionAt'](_0x58959d['moveTargetPosition']);break;case'move':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['targetPosition']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;default:return;}const _0x2572d7=_0x3332ae['model']['createRange'](_0x41b883,_0x9816d6);_0x3332ae['model']['change'](()=>{for(const {suggestion:_0x555dd0,meta:_0x516c1c}of this['_findSuggestions'](_0x2572d7)){if(_0x555dd0['isMultiRange'])continue;if('formatInline'==_0x555dd0['type'])continue;const _0xc3365e=this['_getAttributeKey'](_0x555dd0);if(_0xc3365e&&this['_isBlockAttribute'](_0xc3365e)&&'split'!=_0x58959d['type'])continue;const _0x26ce18=_0x555dd0['data']&&_0x555dd0['data']['multipleBlocks'];('formatBlock'!=_0x555dd0['type']||'split'==_0x58959d['type']&&!_0x26ce18)&&(_0x516c1c['containsRangeInObject']||'insertion'==_0x555dd0['type']&&_0x516c1c['isOwn']||_0x555dd0['getFirstRange']()['containsRange'](_0x2572d7)&&this['_breakSuggestionMarker'](_0x555dd0,_0x41b883,_0x9816d6));}});},{'priority':'lowest'}),_0x3332ae['model']['on']('deleteContent',(_0x542637,_0x249bc6)=>{const _0x33d465=_0x249bc6[0x0],_0x32e37b=_0x249bc6[0x1];if(_0x32e37b&&_0x32e37b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33d465['isCollapsed'])return;const _0x58ec7a=_0x3332ae['model']['schema'],{start:_0x3d4318,end:_0x3c197d}=_0x33d465['getFirstRange'](),_0x3849fd=_0x3d4318['nodeAfter']&&_0x58ec7a['isLimit'](_0x3d4318['nodeAfter'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3d4318,'forward'),_0x497165=_0x3c197d['nodeBefore']&&_0x58ec7a['isLimit'](_0x3c197d['nodeBefore'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3c197d,'backward'),_0x3a3c72=_0x3332ae['model']['createRange'](_0x3849fd?_0x3849fd['start']:_0x3d4318,_0x497165?_0x497165['end']:_0x3c197d);_0x3332ae['model']['change'](_0x2431de=>{this['markDeletion'](_0x3a3c72);const _0x4f48ec=_0x3332ae['model']['schema']['getNearestSelectionRange'](_0x3a3c72['start']);_0x33d465['is']('documentSelection')?_0x2431de['setSelection'](_0x4f48ec):_0x33d465['setTo'](_0x4f48ec);}),_0x542637['stop']();},{'priority':_0x3a7800['normal']+0xa}),_0x3332ae['model']['on']('insertContent',(_0x38f694,_0x48da9b)=>{const _0x34e028=_0x48da9b[_0x48da9b['length']-0x1];_0x34e028&&_0x34e028['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3332ae['model']['change'](()=>{let _0x584ae2=_0x3332ae['model']['insertContent'](_0x48da9b[0x0],_0x48da9b[0x1],_0x48da9b[0x2],{'forceDefaultExecution':!0x0});if(!_0x584ae2)return;_0x38f694['return']=_0x584ae2['clone']();const _0x1e2365=_0x584ae2['end']['nodeBefore'],_0x5789f0=_0x3332ae['model']['schema'];_0x1e2365&&_0x5789f0['isBlock'](_0x1e2365)&&!_0x5789f0['isObject'](_0x1e2365)&&(_0x584ae2=_0x3332ae['model']['createRange'](_0x584ae2['start'],_0x3332ae['model']['createPositionAt'](_0x1e2365,'end'))),this['markInsertion'](_0x584ae2);}),_0x38f694['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x199b83=new x(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('acceptSuggestion',_0x199b83),this['enableCommand']('acceptSuggestion');const _0x4e23b2=new O(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('discardSuggestion',_0x4e23b2),this['enableCommand']('discardSuggestion'),_0x3332ae['commands']['add']('acceptAllSuggestions',new R(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3332ae['commands']['add']('discardAllSuggestions',new R(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3332ae['commands']['add']('acceptSelectedSuggestions',new E(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3332ae['commands']['add']('discardSelectedSuggestions',new E(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xb4f1eb=_0x3332ae['plugins']['get']('CommentsRepository');this['listenTo'](_0xb4f1eb,'addComment',(_0x23a961,{threadId:_0x557f48})=>{const _0x5c75dd=this['_suggestions']['get'](_0x557f48);_0x5c75dd&&_0x5c75dd['commentThread']&&0x1===_0x5c75dd['commentThread']['length']&&this['_updateSuggestionData'](_0x557f48,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xb4f1eb,'removeComment',(_0x2b5210,{threadId:_0x308150})=>{const _0x3fe383=this['_suggestions']['get'](_0x308150);_0x3fe383&&_0x3fe383['commentThread']&&!_0x3fe383['commentThread']['length']&&this['_updateSuggestionData'](_0x308150,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5dec36){if(this['_adapter'])throw new _0x2f735b('track-changes-adapter-already-set',this);this['_adapter']=_0x5dec36;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x263083=!0x1,toJSON:_0x284855=!0x1}={}){const _0x742040=[];for(const _0x27dbea of this['_suggestions']['values']())_0x263083&&!_0x27dbea['isInContent']||_0x742040['push'](_0x27dbea);return _0x284855?_0x742040['map'](_0x1f8c1d=>_0x1f8c1d['toJSON']()):_0x742040;}['getSuggestion'](_0x2d2e7a){const _0xa0f3f4=this['_suggestions']['get'](_0x2d2e7a);if(!_0xa0f3f4)throw new _0x2f735b('track-changes-suggestion-not-found',this);return _0xa0f3f4;}['hasSuggestion'](_0x6fbd1f){return this['_suggestions']['has'](_0x6fbd1f);}['addSuggestionData'](_0x1dca27){const {authorId:_0x394cb5,id:_0x11518b,attributes:_0x2c1065}=_0x1dca27,[_0x4ce7b1,_0x5b57da]=_0x1dca27['type']['split'](':'),_0x188806=this['_suggestions']['get'](_0x11518b)||this['_createSuggestion'](_0x4ce7b1,_0x5b57da,_0x11518b,_0x394cb5,_0x2c1065);if(this['_addThreadToSuggestion'](_0x188806),this['_checkSuggestionCorrectness'](_0x188806,_0x4ce7b1,_0x5b57da||null,_0x394cb5),_0x188806['createdAt']=_0x1dca27['createdAt'],_0x188806['_isDataLoaded']=!0x0,_0x2c1065&&_0x2c1065['@external']){const _0x918b0a=_0x2c1065['@external'],_0x4b0351=this['_getExternalAuthor'](_0x918b0a['authorName']);_0x188806['authoredAt']=_0x918b0a['createdAt'],_0x188806['author']=_0x4b0351,_0x188806['isExternal']=!0x0;}else _0x188806['authoredAt']=_0x1dca27['createdAt'];switch(_0x1dca27['data']&&(_0x188806['data']=_0x1dca27['data']),_0x1dca27['attributes']&&(_0x188806['attributes']=_0x1dca27['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x188806['_saved']=!0x0),this['_suggestionState']['get'](_0x188806)){case'notReady':this['_suggestionState']['set'](_0x188806,'dataReady');break;case'markerReady':_0x188806['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x188806])),this['_refreshSuggestionsChain'](new Set([_0x188806])),this['_suggestionState']['set'](_0x188806,'ready'),this['fire']('suggestionLoaded',_0x188806)):this['_suggestionState']['set'](_0x188806,'removed');}return _0x188806;}['acceptSuggestion'](_0x145b7e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46d27e of _0x145b7e['getAllAdjacentSuggestions']())_0x46d27e['accept']();});});}['discardSuggestion'](_0x4ce958){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2acb3d of _0x4ce958['getAllAdjacentSuggestions']())_0x2acb3d['discard']();});});}['enableCommand'](_0x2e1df9,_0x4a2240){const _0x13bbd3=this['editor']['commands']['get'](_0x2e1df9);if(!_0x13bbd3)throw new _0x2f735b('track-changes-command-not-found',this,{'commandName':_0x2e1df9});if(this['_enabledCommands']['has'](_0x13bbd3))throw new _0x2f735b('track-changes-enable-command-twice',this,{'commandName':_0x2e1df9});this['_enabledCommands']['add'](_0x13bbd3),_0x4a2240&&_0x13bbd3['on']('execute',(_0x5a0861,_0x19b1e9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19b1e9['length']>0x0&&_0x19b1e9[_0x19b1e9['length']-0x1]&&_0x19b1e9[_0x19b1e9['length']-0x1]['forceDefaultExecution']?_0x19b1e9['pop']():(_0x5a0861['return']=_0x4a2240((..._0x11b696)=>_0x13bbd3['execute'](..._0x11b696,{'forceDefaultExecution':!0x0}),..._0x19b1e9),_0x5a0861['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5202b8){let _0x3e372f,_0x56a145;const _0x2d9a73=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e372f=_0x5202b8();}catch(_0x6dfd90){_0x56a145=_0x6dfd90;}return _0x2d9a73||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x56a145&&_0x2f735b['rethrowUnexpectedError'](_0x56a145,this),_0x3e372f;}['markInsertion'](_0xac9b40,_0x6ca3e6=null,_0x4dd0b6={}){if(_0xac9b40['isCollapsed'])return null;const _0xd418af=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4b8be4,meta:_0x2ece7a}of this['_findSuggestions'](_0xac9b40,'insertion'))if(_0x2ece7a['isOwn']){if(!_0x2ece7a['isNextTo']){if(_0x2ece7a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4b8be4,_0x4dd0b6))continue;return _0x4b8be4;}if(qt(_0x4b8be4,_0x4dd0b6))return _0x4b8be4;this['_breakSuggestionMarker'](_0x4b8be4,_0xac9b40['start'],_0xac9b40['end']);break;}if(_0x6ca3e6==_0x4b8be4['subType']&&qt(_0x4b8be4,_0x4dd0b6)){const _0xb8f90e=_0x4b8be4['getFirstRange']();return _0xb8f90e['start']['isEqual'](_0xac9b40['end'])?this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xac9b40['start'],_0xb8f90e['end'])):this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xb8f90e['start'],_0xac9b40['end'])),_0x4b8be4;}}const _0x3d1b35=_0x31d1bc(),_0x5b21af=_0xd418af['id'],_0x275e65=_0x6ca3e6?'insertion:'+_0x6ca3e6:'insertion',_0x1a13d3=this['_setSuggestionData']({'id':_0x3d1b35,'type':_0x275e65,'createdAt':new Date(),'authorId':_0x5b21af,'attributes':_0x4dd0b6});return this['_addSuggestionMarker'](_0x275e65,_0x3d1b35,_0x5b21af,_0xac9b40),_0x1a13d3;}['markMultiRangeInsertion'](_0x1d1059,_0xa32680='multi',_0x50d599={}){const _0x529c17=this['editor']['plugins']['get']('Users')['me'],_0x336c36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xa32680,'join');for(const _0x40dfda of this['getSuggestions']())if(_0x40dfda['author']['id']==_0x529c17['id']&&'insertion'==_0x40dfda['type']&&_0x40dfda['subType']==_0xa32680&&qt(_0x40dfda,_0x50d599)&&(_0x336c36(_0x40dfda['getRanges'](),_0x1d1059)||_0x336c36(_0x1d1059,_0x40dfda['getRanges']()))){for(const _0x20bdf of _0x1d1059)_0x40dfda['addRange'](_0x20bdf);return _0x40dfda;}for(const {suggestion:_0x100d24,meta:_0xa923bb}of this['_findSuggestions'](_0x1d1059,'insertion')){if(!_0xa923bb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa923bb['containsRangeInObject'])continue;if(!qt(_0x100d24,_0x50d599))continue;let _0x4336e8=!0x0;for(const _0xefdf64 of _0x100d24['getRanges']())for(const _0x406beb of _0x1d1059)if(!_0xefdf64['containsRange'](_0x406beb)){_0x4336e8=!0x1;break;}if(_0x4336e8)return _0x100d24;}const _0x13f186=_0x31d1bc(),_0x57b8bf=_0x529c17['id'],_0xb41011='insertion:'+_0xa32680,_0x4313f1=this['_setSuggestionData']({'id':_0x13f186,'type':_0xb41011,'createdAt':new Date(),'authorId':_0x57b8bf,'attributes':_0x50d599});for(const _0x4cb3c5 of _0x1d1059)this['_addSuggestionMarker'](_0xb41011,_0x13f186,_0x57b8bf,_0x4cb3c5,u['getMultiRangeId']());return _0x4313f1;}['markInlineFormat'](_0x3a3965,_0x86d1b7,_0x44cad4=null,_0xd20eb9={}){if(_0x44cad4=_0x44cad4||Pt(_0x86d1b7),_0x3a3965['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xf0a5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');return this['forceDefaultExecution'](()=>_0xf0a5c([_0x3a3965],_0x86d1b7,_0xd20eb9)),null;}const _0x3603b8=this['editor']['plugins']['get']('Users')['me'],_0x38a03e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f6173,meta:_0x172be8}of this['_findSuggestions'](_0x3a3965,'insertion'))_0x172be8['isOwn']&&!_0x172be8['isInsideObject']&&_0x38a03e['push'](..._0x3f6173['getRanges']());}const _0x5dc2c6=function(_0x4a2e6c,_0x3c43df){const _0x1dd9dd=[];for(const _0x64c80b of _0x3c43df){const _0xf62806=_0x4a2e6c['getIntersection'](_0x64c80b);_0xf62806&&_0x1dd9dd['push'](_0xf62806);}return _0x1dd9dd;}(_0x3a3965,_0x38a03e),_0x273da0=function(_0x2d9c5a,_0x5af88d){const _0x6017e5=[_0x2d9c5a];for(const _0x21b761 of _0x5af88d){let _0x54ebb2=0x0;for(;_0x54ebb2<_0x6017e5['length'];){const _0x22093b=_0x6017e5[_0x54ebb2]['getDifference'](_0x21b761);_0x6017e5['splice'](_0x54ebb2,0x1,..._0x22093b),_0x54ebb2+=_0x22093b['length'];}}return _0x6017e5;}(_0x3a3965,_0x38a03e);_0x5dc2c6['length']&&this['_model']['change'](()=>{for(const _0x211286 of _0x5dc2c6){const _0x2b37d3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');this['forceDefaultExecution'](()=>_0x2b37d3([_0x211286],_0x86d1b7,_0xd20eb9));}});for(const _0x38428d of _0x273da0){let _0x50cc21=null,_0x10e9a8=_0x38428d['start'],_0x338b11=_0x38428d['end'];for(const {suggestion:_0x1143f6,meta:_0x1a3a6f}of this['_findSuggestions'](_0x38428d,'formatInline')){if(!_0x1a3a6f['isOwn'])continue;if(_0x1143f6['subType']!=_0x44cad4)continue;if(!qt(_0x1143f6,_0xd20eb9))continue;const _0x2edc28=_0x1143f6['getFirstRange']();if(_0x2edc28['containsRange'](_0x38428d,!0x0))return null;_0x10e9a8=_0x10e9a8['isBefore'](_0x2edc28['start'])?_0x10e9a8:_0x2edc28['start'],_0x338b11=_0x338b11['isAfter'](_0x2edc28['end'])?_0x338b11:_0x2edc28['end'],_0x50cc21?_0x2edc28['start']['isBefore'](_0x50cc21['getFirstRange']()['start'])?(_0x50cc21['removeMarkers'](),_0x50cc21=_0x1143f6):_0x1143f6['removeMarkers']():_0x50cc21=_0x1143f6;}const _0x2c5884=this['_model']['createRange'](_0x10e9a8,_0x338b11);if(_0x50cc21)this['_setSuggestionRange'](_0x50cc21,_0x2c5884);else{const _0x5f7326=_0x31d1bc(),_0x163dad=_0x3603b8['id'];this['_setSuggestionData']({'id':_0x5f7326,'type':'formatInline:'+_0x44cad4,'data':_0x86d1b7,'createdAt':new Date(),'authorId':_0x163dad,'attributes':_0xd20eb9}),this['_addSuggestionMarker']('formatInline:'+_0x44cad4,_0x5f7326,_0x163dad,_0x2c5884);}}return null;}['markBlockFormat'](_0x45b4df,_0xb5c856,_0x25bdb7=[],_0x80e741=null,_0x16a69f={}){_0xb5c856['formatGroupId']||(_0xb5c856['formatGroupId']=_0xb5c856['commandName']),_0xb5c856['multipleBlocks']=_0x45b4df['is']('range'),_0x80e741=_0x80e741||Pt(_0xb5c856);const _0x490fe9=_0x25bdb7['map'](_0x415fdf=>Lt(_0x415fdf,this['_model'])),_0x2f3cdd=_0x45b4df['is']('range')?_0x45b4df:Lt(_0x45b4df,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dd0aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x4dd0aa([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}_0x490fe9['push'](_0x2f3cdd);let _0x4e68b4=!0x0;for(const _0x18ee1b of _0x490fe9)if(!this['_rangeIsInLocalUserInsertion'](_0x18ee1b)){_0x4e68b4=!0x1;break;}if(_0x4e68b4&&'always'!==this['_trackFormatChanges']){const _0x1a4d10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x1a4d10([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}let _0x19c74c=null,_0x271ea9=_0x2f3cdd['start'],_0x6447bb=_0x2f3cdd['end'];for(const {suggestion:_0x1a8426,meta:_0x32caf8}of this['_findSuggestions'](_0x2f3cdd,'formatBlock')){if(!_0x32caf8['isOwn'])continue;if(_0x32caf8['isNextTo']||_0x32caf8['containsRangeInObject']||_0x32caf8['isInsideObject'])continue;if(_0x1a8426['data']['formatGroupId']!=_0xb5c856['formatGroupId'])continue;if(!qt(_0x1a8426,_0x16a69f))continue;const _0x5a768f=_0x1a8426['getFirstRange']();if(_0x1a8426['subType']==_0x80e741){if(_0x5a768f['containsRange'](_0x2f3cdd,!0x0))return null;_0x271ea9=_0x271ea9['isBefore'](_0x5a768f['start'])?_0x271ea9:_0x5a768f['start'],_0x6447bb=_0x6447bb['isAfter'](_0x5a768f['end'])?_0x6447bb:_0x5a768f['end'],_0x19c74c?_0x5a768f['start']['isBefore'](_0x19c74c['getFirstRange']()['start'])?(_0x19c74c['removeMarkers'](),_0x19c74c=_0x1a8426):_0x1a8426['removeMarkers']():_0x19c74c=_0x1a8426;}else{const _0x3aaf9a=_0x2f3cdd['getIntersection'](_0x5a768f);this['_cutOutSuggestionMarker'](_0x1a8426,_0x3aaf9a);}}const _0x5e18d4=this['editor']['plugins']['get']('Users')['me'],_0x30acc5=_0x31d1bc(),_0x57399b=_0x5e18d4['id'];if(_0x19c74c)return this['_setSuggestionRange'](_0x19c74c,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x19c74c;{const _0x5505eb=this['_setSuggestionData']({'id':_0x30acc5,'type':'formatBlock:'+_0x80e741,'data':_0xb5c856,'createdAt':new Date(),'authorId':_0x57399b,'attributes':_0x16a69f});return this['_addSuggestionMarker']('formatBlock:'+_0x80e741,_0x30acc5,_0x57399b,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x5505eb;}}['markMultiRangeBlockFormat'](_0x3a6fc5,_0x4b10cc,_0x5cfc34=[],_0x3408a0=null,_0x4ffb9a={}){_0x4b10cc['formatGroupId']||(_0x4b10cc['formatGroupId']=_0x4b10cc['commandName']);const _0x7322a0=_0x3a6fc5[0x0];_0x4b10cc['multipleBlocks']=_0x7322a0['is']('range'),_0x3408a0=_0x3408a0||Pt(_0x4b10cc);const _0x9d076d=_0x5cfc34['map'](_0x16f2da=>Lt(_0x16f2da,this['_model'])),_0x152c27=_0x7322a0['is']('range')?_0x3a6fc5:_0x3a6fc5['map'](_0x28c1cc=>Lt(_0x28c1cc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x48dcf6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0x48dcf6(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}_0x9d076d['push'](..._0x152c27);let _0x2c308b=!0x0;for(const _0x406028 of _0x9d076d)if(!this['_rangeIsInLocalUserInsertion'](_0x406028)){_0x2c308b=!0x1;break;}if(_0x2c308b&&'always'!==this['_trackFormatChanges']){const _0xac4280=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0xac4280(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}const _0x26e584=this['editor']['plugins']['get']('Users')['me'];for(const _0x554488 of this['getSuggestions']()){if(_0x554488['author']['id']!=_0x26e584['id'])continue;if('formatBlock'!=_0x554488['type']||_0x554488['data']['formatGroupId']!=_0x4b10cc['formatGroupId'])continue;if(!qt(_0x554488,_0x4ffb9a))continue;const _0x11d3ca=_0x554488['subType']==_0x3408a0;for(let _0xa4abac=0x0;_0xa4abac<_0x152c27['length'];_0xa4abac++){const _0x2d094c=_0x152c27[_0xa4abac];for(const _0x4cb651 of _0x554488['getMarkers']()){const _0x6fe6d0=_0x4cb651['getRange']();if(_0x2d094c['isEqual'](_0x6fe6d0)){_0x11d3ca?(_0x152c27['splice'](_0xa4abac,0x1),_0xa4abac--):_0x554488['removeMarker'](_0x4cb651['name']);break;}}}}if(0x0==_0x152c27['length'])return null;const _0x18bd42=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'join');for(const _0x4e23a2 of this['getSuggestions']())if(_0x4e23a2['author']['id']==_0x26e584['id']&&'formatBlock'==_0x4e23a2['type']&&_0x4e23a2['data']['formatGroupId']==_0x4b10cc['formatGroupId']&&_0x4e23a2['subType']==_0x3408a0&&qt(_0x4e23a2,_0x4ffb9a)&&(_0x18bd42(_0x4e23a2['getRanges'](),_0x152c27)||_0x18bd42(_0x152c27,_0x4e23a2['getRanges']()))){for(const _0x53a32d of _0x152c27)_0x4e23a2['addRange'](_0x53a32d);return _0x4e23a2;}const _0x210e3a=_0x31d1bc(),_0x56cc2c=_0x26e584['id'],_0x2a026b='formatBlock:'+_0x3408a0,_0xf92b07=this['_setSuggestionData']({'id':_0x210e3a,'type':_0x2a026b,'data':_0x4b10cc,'createdAt':new Date(),'authorId':_0x56cc2c,'attributes':_0x4ffb9a});for(const _0x362ccd of _0x152c27)this['_addSuggestionMarker'](_0x2a026b,_0x210e3a,_0x56cc2c,_0x362ccd,u['getMultiRangeId']());return _0xf92b07;}['markDeletion'](_0x24f5ee,_0x1a0019=null,_0x2266ed={}){if(_0x24f5ee['isCollapsed'])return null;const _0x1f83f9=this['editor']['plugins']['get']('Users')['me'],_0x13abe3=new _0x1eeee4(_0x24f5ee['start'],_0x24f5ee['end']);for(const {suggestion:_0x4b76d9,meta:_0x5f5848}of this['_findSuggestions'](_0x13abe3,'insertion'))if(_0x5f5848['isOwn']&&!_0x5f5848['isNextTo']){if(_0x4b76d9['isMultiRange']){const _0x377a28=_0x4b76d9['getRanges']()['filter'](_0x52ee57=>'$graveyard'!=_0x52ee57['root']['rootName']);_0x377a28['every'](_0x1ee4f4=>_0x13abe3['containsRange'](_0x1ee4f4,!0x0))&&_0x4b76d9['discard']();if(_0x377a28['some'](_0x5ba360=>_0x5ba360['containsRange'](_0x13abe3,!0x0))){const _0x4fbff3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a0019,'accept');return this['forceDefaultExecution'](()=>_0x4fbff3([_0x13abe3],null,_0x2266ed)),null;}}else{const _0xf402b9=_0x13abe3['getIntersection'](_0x4b76d9['getFirstRange']());null!==_0xf402b9&&_0x4b76d9['_onDiscard']([_0xf402b9],null,_0x2266ed);}}if(_0x13abe3['detach'](),_0x13abe3['isCollapsed']||'$graveyard'==_0x13abe3['root']['rootName'])return null;let _0x50949c=null,_0x173a16=_0x13abe3['start'],_0x30aabe=_0x13abe3['end'];const _0x5254ed=this['_findSuggestions'](_0x13abe3,'deletion');for(const {suggestion:_0x1b5850,meta:_0x3f867c}of _0x5254ed){const _0x12efeb=this['_model']['createRange'](_0x173a16,_0x30aabe);if(_0x3f867c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f867c['containsRangeInObject']&&!_0x3f867c['isInsideObject'])){if(_0x1b5850['isMultiRange']){if(!qt(_0x1b5850,_0x2266ed))continue;let _0x1b721a=!0x0;for(const _0x1bf415 of _0x1b5850['getRanges']()){if(_0x1bf415['containsRange'](_0x12efeb,!0x0))return _0x1b5850;_0x12efeb['containsRange'](_0x1bf415)||(_0x1b721a=!0x1);}_0x1b721a&&_0x1b5850['discard']();}else{const _0x47a480=_0x1b5850['getFirstRange']();if(_0x47a480['containsRange'](_0x12efeb,!0x0))return _0x1b5850;if(!qt(_0x1b5850,_0x2266ed)){_0x12efeb['containsRange'](_0x47a480)?_0x1b5850['removeMarkers']():_0x47a480['containsPosition'](_0x173a16)?_0x173a16=_0x47a480['end']:_0x47a480['containsPosition'](_0x30aabe)&&(_0x30aabe=_0x47a480['start']);continue;}_0x173a16=_0x173a16['isBefore'](_0x47a480['start'])?_0x173a16:_0x47a480['start'],_0x30aabe=_0x30aabe['isAfter'](_0x47a480['end'])?_0x30aabe:_0x47a480['end'],_0x2266ed=Object['assign']({},_0x1b5850['attributes']),_0x50949c?_0x47a480['start']['isBefore'](_0x50949c['getFirstRange']()['start'])?(_0x50949c['removeMarkers'](),_0x50949c=_0x1b5850):_0x1b5850['removeMarkers']():_0x50949c=_0x1b5850;}}}if(_0x50949c)return this['_setSuggestionRange'](_0x50949c,this['_model']['createRange'](_0x173a16,_0x30aabe)),_0x50949c;{const _0x4bdef2=_0x31d1bc(),_0x30ddd7=this['_model']['createRange'](_0x173a16,_0x30aabe),_0x2b0076=_0x1f83f9['id'],_0x1daf36=_0x1a0019?'deletion:'+_0x1a0019:'deletion',_0xef01a8=this['_setSuggestionData']({'id':_0x4bdef2,'type':_0x1daf36,'createdAt':new Date(),'authorId':_0x2b0076,'attributes':_0x2266ed});return this['_addSuggestionMarker'](_0x1daf36,_0x4bdef2,_0x2b0076,_0x30ddd7),_0xef01a8;}}['markMultiRangeDeletion'](_0x502c08,_0x2484cc='multi',_0x37cd8b={}){const _0x1518d4=this['editor']['plugins']['get']('Users')['me'],_0x277d2f=_0x502c08['map'](_0x8a66a2=>new _0x1eeee4(_0x8a66a2['start'],_0x8a66a2['end'])),_0x4e7942=new Set();for(const {suggestion:_0xb60d40,meta:_0x3e8aeb}of this['_findSuggestions'](_0x277d2f,'insertion'))_0x3e8aeb['isOwn']&&!_0x3e8aeb['isNextTo']&&_0x4e7942['add'](_0xb60d40);for(const _0x2b573b of _0x4e7942)if(_0x2b573b['isMultiRange']){const _0x5a9bac=_0x2b573b['getRanges']();(!_0x2b573b['attributes']||!_0x2b573b['attributes']['skipNestingCheck'])&&(_0x5a9bac['every'](_0x3d27f0=>_0x277d2f['some'](_0xe324bb=>_0xe324bb['containsRange'](_0x3d27f0,!0x0)))&&_0x2b573b['discard']());if(_0x277d2f['every'](_0x258b0d=>_0x5a9bac['some'](_0x59726a=>_0x59726a['containsRange'](_0x258b0d,!0x0)))){const _0x44635e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x44635e(_0x502c08,null,_0x37cd8b)),null;}}else{const _0x128429=_0x2b573b['getFirstRange']();_0x277d2f['some'](_0x34e8fe=>_0x34e8fe['containsRange'](_0x128429,!0x0))&&_0x2b573b['discard']();if(_0x277d2f['every'](_0x247cb9=>_0x128429['containsRange'](_0x247cb9,!0x0))){const _0x2ed7ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x2ed7ba(_0x277d2f,null,_0x37cd8b)),null;}}const _0x225ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'join');let _0x4bfad0=null;for(const _0x3ecc2d of this['getSuggestions']())if(_0x3ecc2d['author']['id']==_0x1518d4['id']&&_0x3ecc2d['isInContent']&&'deletion'==_0x3ecc2d['type']&&_0x3ecc2d['subType']==_0x2484cc&&qt(_0x3ecc2d,_0x37cd8b)&&(_0x225ffb(_0x3ecc2d['getRanges'](),_0x277d2f)||_0x225ffb(_0x277d2f,_0x3ecc2d['getRanges']()))){if(_0x4bfad0){if(_0x3ecc2d['commentThread']&&_0x3ecc2d['commentThread']['length'])continue;for(const _0x11cd91 of _0x3ecc2d['getRanges']())_0x4bfad0['isIntersectingWithRange'](_0x11cd91)||_0x4bfad0['addRange'](_0x11cd91);_0x3ecc2d['removeMarkers']();}else{_0x4bfad0=_0x3ecc2d;for(const _0x3afdbb of _0x277d2f)_0x3ecc2d['isIntersectingWithRange'](_0x3afdbb)||_0x3ecc2d['addRange'](_0x3afdbb);}}if(_0x4bfad0)return _0x4bfad0;_0x4e7942['clear']();for(const {suggestion:_0x5e14f6,meta:_0x57e430}of this['_findSuggestions'](_0x277d2f,'deletion'))_0x57e430['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57e430['containsRangeInObject']&&!_0x57e430['isInsideObject'])&&qt(_0x5e14f6,_0x37cd8b)&&_0x4e7942['add'](_0x5e14f6);for(const _0x52798d of _0x4e7942){const _0x5b72af=_0x52798d['getRanges']();if(!_0x37cd8b||!_0x37cd8b['skipNestingCheck']){if(_0x277d2f['every'](_0x261958=>_0x5b72af['some'](_0x2417d4=>_0x2417d4['containsRange'](_0x261958,!0x0))))return _0x52798d;}(!_0x52798d['attributes']||!_0x52798d['attributes']['skipNestingCheck'])&&(_0x5b72af['every'](_0x5bfe81=>_0x277d2f['some'](_0x391895=>_0x391895['containsRange'](_0x5bfe81,!0x0)))&&_0x52798d['discard']());}const _0x5acff9=_0x31d1bc(),_0x3e5683=_0x1518d4['id'],_0x3f89c2='deletion:'+_0x2484cc,_0x117309=this['_setSuggestionData']({'id':_0x5acff9,'type':_0x3f89c2,'createdAt':new Date(),'authorId':_0x3e5683,'attributes':_0x37cd8b});for(const _0x42489b of _0x277d2f)_0x42489b['detach'](),_0x42489b['isCollapsed']||'$graveyard'==_0x42489b['root']['rootName']||this['_addSuggestionMarker'](_0x3f89c2,_0x5acff9,_0x3e5683,_0x42489b,u['getMultiRangeId']());return _0x117309;}['markAttributeChange'](_0x32c21c,_0x350c64,_0x271dc3,_0x2f931d,_0x3cd2ad){if(_0x32c21c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd378b1=this['editor']['plugins']['get']('Users')['me']['id'],_0x3498eb=Array['from'](this['_suggestions']['values']())['filter'](_0x239fad=>'attribute'==_0x239fad['type']&&_0x239fad['data']['key']==_0x350c64&&_0x239fad['isIntersectingWithRange'](_0x32c21c));if('default'===this['_trackFormatChanges']){const _0x2ada4d=this['_findSuggestions'](_0x32c21c,'insertion')['filter'](({meta:_0x248606})=>_0x248606['isOwn']&&!_0x248606['isInsideObject']&&!_0x248606['isNextTo'])['map'](({suggestion:_0x14e69a})=>_0x14e69a);_0x3498eb['unshift'](..._0x2ada4d);}const _0xe3edd9=new Map([[_0x32c21c,_0x271dc3]]);for(const _0x4ba0ce of _0x3498eb){const _0x56bc57='attribute'==_0x4ba0ce['type']?_0x4ba0ce['data']['oldValue']:void 0x0,_0x3dd742=_0x4ba0ce['getFirstRange'](),_0x3d6d86=Array['from'](_0xe3edd9['keys']())['find'](_0x450972=>_0x450972['isIntersecting'](_0x3dd742));if(!_0x3d6d86)continue;const _0x456ec2=_0x3d6d86['getDifference'](_0x3dd742);this['_isBlockAttribute'](_0x350c64)&&'insertion'==_0x4ba0ce['type']&&0x0!=_0x456ec2['length']||(_0xe3edd9['delete'](_0x3d6d86),_0x456ec2['forEach'](_0x2e3750=>{_0xe3edd9['set'](_0x2e3750,_0x271dc3);}),'insertion'!=_0x4ba0ce['type']&&_0x56bc57!=_0x2f931d&&_0xe3edd9['set'](_0x3d6d86['getIntersection'](_0x3dd742),_0x56bc57));}const _0x195e30=[];for(const [_0xf4911e,_0x545114]of _0xe3edd9){const _0x29e7bc=_0x31d1bc(),_0x3c2217={'key':_0x350c64,'oldValue':_0x545114,'newValue':_0x2f931d};_0x350c64['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':_0x350c64});const _0x1f0560=('attribute:'+(_0x350c64+'|'+Pt({'newValue':_0x2f931d})))['substring'](0x0,0x3c),_0x4e30af=this['_setSuggestionData']({'id':_0x29e7bc,'type':_0x1f0560,'data':_0x3c2217,'createdAt':new Date(),'authorId':_0xd378b1,'attributes':_0x3cd2ad});_0x195e30['push'](_0x4e30af),this['_addSuggestionMarker'](_0x1f0560,_0x29e7bc,_0xd378b1,_0xf4911e);}return _0x195e30;}['enableDefaultAttributesIntegration'](_0x167810){this['enableCommand'](_0x167810,(_0x5d05bf,..._0x1193fc)=>{this['_recordAttributeChanges'](()=>{_0x5d05bf(..._0x1193fc);});});}['registerBlockAttribute'](_0x5516ca){this['_blockAttributeKeys']['add'](_0x5516ca);}['registerInlineAttribute'](_0x25bef2){this['_inlineAttributeKeys']['add'](_0x25bef2);}['_getAttributeKey'](_0x20d5a8){return'attribute'==_0x20d5a8['type']?_0x20d5a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d46c2,_0xc7116a){const _0x1ac15a=_0x5d46c2['getFirstMarker']();this['_model']['change'](_0x1ea5d5=>{_0x1ea5d5['updateMarker'](_0x1ac15a,{'range':_0xc7116a});});}['_addThreadToSuggestion'](_0x36ac16){const _0x140df6=_0x36ac16['id'],_0x17a6d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x140df6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17a6d6,'threadId':_0x140df6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x123cf9=this['_commentsRepository']['getCommentThread'](_0x140df6);_0x123cf9['unbind']('isRemovable'),_0x123cf9['isRemovable']=!0x1,_0x36ac16['commentThread']=_0x123cf9;}['_checkSuggestionCorrectness'](_0x2ff4e9,_0x5c2a5d,_0x2d0d8b,_0x230611){if(_0x2ff4e9['type']!=_0x5c2a5d||_0x2ff4e9['subType']!=_0x2d0d8b||_0x2ff4e9['creator']['id']!=_0x230611)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f735b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x463335,_0x1a3c99){const _0x3d1e96=_0x463335['getFirstRange']();if(_0x1a3c99['isEqual'](_0x3d1e96))_0x463335['removeMarkers']();else{if(_0x3d1e96['containsRange'](_0x1a3c99)){const _0x2ab778=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x2ab778));const _0x57231c=_0x31d1bc(),_0x2e1055=_0x463335['creator']['id'],_0x384c65=_0x463335['type']+':'+_0x463335['subType'];this['_setSuggestionData']({'id':_0x57231c,'type':_0x384c65,'createdAt':new Date(),'authorId':_0x2e1055,'data':_0x463335['data'],'attributes':_0x463335['attributes']});const _0x259c0c=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after'),_0x46ad9d=this['_model']['createRange'](_0x259c0c,_0x3d1e96['end']);this['_addSuggestionMarker'](_0x384c65,_0x57231c,_0x2e1055,_0x46ad9d);}else{if(_0x3d1e96['containsPosition'](_0x1a3c99['start'])){const _0x26d3db=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x26d3db));}else{const _0x2e12cd=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x2e12cd,_0x3d1e96['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2fe1ad){for(const {suggestion:_0x1d45b5,meta:_0x1e2bdd}of this['_findSuggestions'](_0x2fe1ad,'insertion')){if(!_0x1e2bdd['isOwn'])continue;const _0xc2496d=_0x1d45b5['getRanges']();for(const _0x5bbee9 of _0xc2496d)if(!_0x2fe1ad['getDifference'](_0x5bbee9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xf32c60){const _0x4dacdd=this['editor']['plugins']['get']('Users')['getUser'](_0xf32c60);if(!_0x4dacdd)throw new _0x2f735b('track-changes-user-not-found',this);return _0x4dacdd;}['_getExternalAuthor'](_0x552ed3){const _0x3c942d=this['editor']['plugins']['get']('Users'),_0x2523d4=_0x115a16('external:'+_0x552ed3),_0xe74f3e=_0x3c942d['getUser'](_0x2523d4);return _0xe74f3e||_0x3c942d['addUser']({'id':_0x2523d4,'name':_0x552ed3});}['_createSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0x18d568,_0x1c9bdf){const _0xc3ff18=this['_getAuthorFromId'](_0x18d568),_0x210013=this['_suggestionFactory']['buildSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0xc3ff18,_0x1c9bdf,_0x21e02f=>{this['_updateSuggestionData'](_0xaae70d,{'attributes':_0x21e02f});const _0xdd9ec2=this['getSuggestion'](_0xaae70d);this['_joinWithAdjacentSuggestions'](new Set([_0xdd9ec2])),this['_refreshSuggestionsChain'](new Set([_0xdd9ec2]));});return this['listenTo'](_0x210013,'accept',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x210013,'discard',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xaae70d,_0x210013),this['_suggestionState']['set'](_0x210013,'notReady'),_0x210013;}['_splitMarkerName'](_0x3aa8cb){const _0x13f105=_0x3aa8cb['split'](':');return{'group':_0x13f105[0x0],'type':_0x13f105[0x1],'subType':_0x13f105['length']>=0x5?_0x13f105[0x2]:null,'id':_0x13f105['length']<0x5?_0x13f105[0x2]:_0x13f105[0x3],'authorId':_0x13f105['length']<0x5?_0x13f105[0x3]:_0x13f105[0x4],'markerCount':0x6==_0x13f105['length']?_0x13f105[0x5]:null};}['_breakSuggestionMarker'](_0x49f27a,_0x5a87dc,_0x132780){const _0x1e6551=_0x49f27a['getFirstRange'](),_0x1d8409=_0x1e6551['start'],_0x599148=_0x1e6551['end'];this['_setSuggestionRange'](_0x49f27a,this['_model']['createRange'](_0x1d8409,_0x5a87dc));const _0x47604d=_0x31d1bc(),_0x486b6e=_0x49f27a['creator']['id'],_0x5be9ff=_0x49f27a['type']+(_0x49f27a['subType']?':'+_0x49f27a['subType']:'');this['_setSuggestionData']({'id':_0x47604d,'type':_0x5be9ff,'createdAt':new Date(),'authorId':_0x486b6e,'originalSuggestionId':_0x49f27a['id'],'attributes':_0x49f27a['attributes'],'data':_0x49f27a['data']});const _0x3c2f21=this['_getAttributeKey'](_0x49f27a);('formatBlock'==_0x49f27a['type']||_0x3c2f21&&this['_isBlockAttribute'](_0x3c2f21))&&(_0x132780=this['_model']['createPositionBefore'](_0x132780['parent'])),this['_addSuggestionMarker'](_0x5be9ff,_0x47604d,_0x486b6e,this['_model']['createRange'](_0x132780,_0x599148));}['_findSuggestions'](_0x21a470,_0x211696=null){const _0x1acf48=[],_0x2f44ca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21a470)||(_0x21a470=[_0x21a470]);for(const _0x118de8 of this['getSuggestions']()){if(!_0x118de8['isInContent'])continue;if(_0x211696&&_0x118de8['type']!=_0x211696)continue;let _0x5c04be=!0x1;for(const _0xc17bd6 of _0x118de8['getRanges']()){for(const _0x534f6b of _0x21a470){const _0x255485=_0x534f6b['start']['isEqual'](_0xc17bd6['end'])||_0x534f6b['end']['isEqual'](_0xc17bd6['start']);if(_0x255485||_0x534f6b['getIntersection'](_0xc17bd6)){const _0x4721a7=_0x534f6b['containsRange'](_0xc17bd6)&&Et(this['_model']['schema'],_0xc17bd6['start'],_0x534f6b),_0x2bd719=_0xc17bd6['containsRange'](_0x534f6b)&&Et(this['_model']['schema'],_0x534f6b['start'],_0xc17bd6);_0x1acf48['push']({'suggestion':_0x118de8,'meta':{'isOwn':_0x2f44ca==_0x118de8['author'],'isNextTo':_0x255485,'isInsideObject':_0x4721a7,'containsRangeInObject':_0x2bd719}}),_0x5c04be=!0x0;break;}}if(_0x5c04be)break;}}return _0x1acf48;}['_addSuggestionMarker'](_0x4ad5b4,_0x2304e3,_0x5a08a6,_0x1ec24a,_0x3e2236){this['_model']['change'](_0x4e1411=>{let _0x5de8f7='suggestion:'+_0x4ad5b4+':'+_0x2304e3+':'+_0x5a08a6;_0x3e2236&&(_0x5de8f7=_0x5de8f7+':'+_0x3e2236),_0x4e1411['addMarker'](_0x5de8f7,{'range':_0x1ec24a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c0592){const _0x18772f=_0x4c0592['previous'],_0x9847a6=_0x4c0592['next'];_0x4c0592['previous']=null,_0x4c0592['next']=null,null!=_0x18772f&&_0x18772f['next']==_0x4c0592&&(_0x18772f['next']=_0x9847a6),null!=_0x9847a6&&_0x9847a6['previous']==_0x4c0592&&(_0x9847a6['previous']=_0x18772f),'ready'==this['_suggestionState']['get'](_0x4c0592)&&(this['_suggestionState']['set'](_0x4c0592,'removed'),this['fire']('suggestionUnloaded',_0x4c0592,_0x18772f,_0x9847a6));}['_setSuggestionData'](_0x129e35){const _0x2fe200=_0x129e35['id'],_0x58d039=this['addSuggestionData'](_0x129e35);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48ecac=this['editor']['plugins']['get']('PendingActions'),_0x2ba415=_0x58d039['hasComments'],_0x35d937=_0x58d039['subType']?_0x58d039['type']+':'+_0x58d039['subType']:_0x58d039['type'],_0x2bfbdb=this['editor']['locale'],_0x1a0c90=_0x48ecac['add'](o(_0x2bfbdb,'PENDING_ACTION_SUGGESTION')),_0x586e17={'id':_0x2fe200,'type':_0x35d937,'hasComments':_0x2ba415,'data':_0x129e35['data']||null,'originalSuggestionId':_0x129e35['originalSuggestionId']||null,'attributes':_0x58d039['attributes']};this['_adapter']['addSuggestion'](_0x586e17)['then'](_0x3606ec=>{_0x58d039['_saved']=!0x0,_0x48ecac['remove'](_0x1a0c90),_0x3606ec&&_0x3606ec['createdAt']&&(this['_suggestions']['get'](_0x2fe200)['createdAt']=_0x3606ec['createdAt']);})['catch'](_0x4d4a4e=>{throw _0x1e894b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58d039['discard']();}),_0x58d039['stopListening'](),this['_suggestions']['delete'](_0x58d039['id']),this['_suggestionState']['delete'](_0x58d039),_0x4d4a4e;});}return _0x58d039;}['_isBlockAttribute'](_0x94488d){return this['_blockAttributeKeys']['has'](_0x94488d);}['_updateSuggestionData'](_0x4a0738,_0x5a85eb){const _0x53fde2=this['editor']['plugins']['get']('PendingActions'),_0x4104b2=this['getSuggestion'](_0x4a0738);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4104b2['_saved']){const _0x4b8138=_0x53fde2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4a0738,_0x5a85eb)['then'](()=>{_0x53fde2['remove'](_0x4b8138);});}else _0x4104b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4a0738,_0x5a85eb);});}}['_getSuggestionData'](_0x304dca){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f735b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x304dca);}['_handleNewSuggestionMarker'](_0x33b3a0){const {id:_0x3c23c8,type:_0x1b9811,subType:_0x13c817,authorId:_0x59f7e4}=this['_splitMarkerName'](_0x33b3a0),_0x2180cd=this['_suggestions']['get'](_0x3c23c8)||this['_createSuggestion'](_0x1b9811,_0x13c817,_0x3c23c8,_0x59f7e4,{});switch(this['_checkSuggestionCorrectness'](_0x2180cd,_0x1b9811,_0x13c817,_0x59f7e4),this['_suggestionState']['get'](_0x2180cd)){case'notReady':this['_getSuggestionData'](_0x3c23c8)['then'](_0x2cbe6a=>{let _0x5bb4d6=Promise['resolve']();_0x2cbe6a['hasComments']&&(_0x5bb4d6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c23c8})),_0x5bb4d6['then'](()=>{this['addSuggestionData'](_0x2cbe6a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2180cd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c23c8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2180cd,'ready'),this['fire']('suggestionLoaded',_0x2180cd);break;case'ready':this['fire']('suggestionChanged',_0x2180cd);}return _0x2180cd['addMarkerName'](_0x33b3a0),_0x2180cd;}['_refreshSuggestionsChain'](_0x518bde){const _0xb6687f=Array['from'](_0x518bde),_0x4d1924=_0xb6687f['filter'](_0x18d708=>'attribute'==_0x18d708['type']);this['_refreshAttributeSuggestionsChain'](_0x4d1924);const _0x19cd71=_0xb6687f['filter'](_0x24f9ef=>!_0x24f9ef['isMultiRange']&&'attribute'!=_0x24f9ef['type']),_0x80018a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26c9a2=>!_0x26c9a2['isMultiRange']&&'attribute'!=_0x26c9a2['type']),_0x3d33e4=_0x80018a['filter'](_0x3ce53b=>!_0x518bde['has'](_0x3ce53b)),_0x4de77c=new Map(_0x80018a['map'](_0x1be6d2=>[_0x1be6d2,this['_suggestionFactory']['getSuggestionCallback'](_0x1be6d2['type'],_0x1be6d2['subType'],'chain')])),_0x47fecd=new Map(_0x80018a['map'](_0x21cbab=>[_0x21cbab,_0x21cbab['getFirstRange']()])),_0x4e2db0=new Set(),_0x3738a4=new Set();for(let _0x34e187=0x0;_0x34e187<_0x19cd71['length'];_0x34e187++)_0x521248(_0x19cd71[_0x34e187],_0x19cd71,_0x34e187+0x1);for(let _0x55659d=0x0;_0x55659d<_0x19cd71['length'];_0x55659d++)_0x521248(_0x19cd71[_0x55659d],_0x3d33e4,0x0);const _0xf53c3d=new Set();for(let _0x1623b3=0x0;_0x1623b3<_0x19cd71['length'];_0x1623b3++){const _0x3d04ad=_0x19cd71[_0x1623b3];!_0x3738a4['has'](_0x3d04ad)&&_0x3d04ad['previous']&&(_0xf53c3d['add'](_0x3d04ad['previous']),_0x3d04ad['previous']['next']===_0x3d04ad&&(_0x3d04ad['previous']['next']=null),_0x3d04ad['previous']=null),!_0x4e2db0['has'](_0x3d04ad)&&_0x3d04ad['next']&&(_0xf53c3d['add'](_0x3d04ad['next']),_0x3d04ad['next']['previous']===_0x3d04ad&&(_0x3d04ad['next']['previous']=null),_0x3d04ad['next']=null);}function _0x521248(_0x51f155,_0x4f776b,_0x186e34){for(let _0x55bb52=_0x186e34;_0x55bb52<_0x4f776b['length'];_0x55bb52++){const _0x35a574=_0xab978a(_0x51f155,_0x4f776b[_0x55bb52]);_0x35a574&&(_0x35a574[0x0]['next']=_0x35a574[0x1],_0x35a574[0x1]['previous']=_0x35a574[0x0],_0x4e2db0['add'](_0x35a574[0x0]),_0x3738a4['add'](_0x35a574[0x1]));}}function _0xab978a(_0x5ddd08,_0x165840){if(_0x5ddd08['author']['id']!==_0x165840['author']['id'])return null;const _0x5d80c7=_0x4de77c['get'](_0x5ddd08)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840));if(!_0x5d80c7)return null;return _0x4de77c['get'](_0x165840)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840))?_0x5d80c7[0x1]['commentThread']&&_0x5d80c7[0x1]['commentThread']['length']?null:_0x5d80c7:null;}_0xf53c3d['size']&&this['_refreshSuggestionsChain'](_0xf53c3d);}['_refreshAttributeSuggestionsChain'](_0x27fe9b){if(0x0==_0x27fe9b['length'])return;const _0x6f69b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5855ce=>'attribute'==_0x5855ce['type']&&_0x5855ce['_isDataLoaded']),_0x234a51=[],_0x1fe615=new Map();for(const _0x126632 of _0x6f69b8){const _0xd31696=_0x115a16(_0x126632['attributes']);_0x1fe615['has'](_0xd31696)||(_0x1fe615['set'](_0xd31696,_0x234a51['length']),_0x234a51['push']([]));const _0x3c41ad=_0x1fe615['get'](_0xd31696);_0x234a51[_0x3c41ad]['push'](_0x126632);}!(function(){_0x234a51['sort']((_0x14285f,_0xe72cc0)=>{const _0x51b856=_0x14285f[0x0]['createdAt'],_0x26ef0c=_0xe72cc0[0x0]['createdAt'];return _0x51b856==_0x26ef0c?_0x14285f[0x0]['attributes']['groupId']<_0xe72cc0[0x0]['attributes']['groupId']?-0x1:0x1:_0x51b856<_0x26ef0c?-0x1:0x1;});for(const _0x1c6e36 of _0x234a51)_0x1c6e36['sort']((_0x1bf53c,_0x4b2222)=>_0x1bf53c['id']<_0x4b2222['id']?-0x1:0x1);}());for(let _0x58306d=0x0;_0x58306d<_0x234a51['length'];_0x58306d++){if(0x0==_0x234a51[_0x58306d]['length'])continue;const _0x5022a9=[];for(let _0x4337ac=_0x58306d+0x1;_0x4337ac<_0x234a51['length'];_0x4337ac++)0x0!=_0x234a51[_0x4337ac]['length']&&_0x2c73e1(_0x234a51[_0x58306d],_0x234a51[_0x4337ac])&&_0x5022a9['push'](_0x4337ac);for(const _0x685ca2 of _0x5022a9)_0x234a51[_0x58306d]=_0x234a51[_0x58306d]['concat'](_0x234a51[_0x685ca2]),_0x234a51[_0x685ca2]=[];}for(const _0x1dca6d of _0x234a51)for(let _0x582dd5=0x0;_0x582dd5<_0x1dca6d['length'];_0x582dd5++){const _0x4d4dea=_0x1dca6d[_0x582dd5+0x1]||null;_0x1dca6d[_0x582dd5]['next']!==_0x4d4dea&&(_0x1dca6d[_0x582dd5]['next']=_0x4d4dea);}for(const _0x313d92 of _0x234a51)for(let _0x5c646f=0x0;_0x5c646f<_0x313d92['length'];_0x5c646f++){const _0x51b660=_0x313d92[_0x5c646f-0x1]||null;_0x313d92[_0x5c646f]['previous']!==_0x51b660&&(_0x313d92[_0x5c646f]['previous']=_0x51b660);}function _0x2c73e1(_0x5066a9,_0x21ef52){if(_0x5066a9[0x0]['attributes']['groupId']!==_0x21ef52[0x0]['attributes']['groupId']&&_0x5066a9[0x0]['author']!==_0x21ef52[0x0]['author'])return!0x1;if(!function(_0x598643,_0x2c777a){if(!_0x598643['hasComments']&&!_0x2c777a['hasComments'])return!0x0;if(_0x598643['hasComments']&&_0x2c777a['hasComments'])return!0x1;if(_0x598643['hasComments']&&_0x2c777a['createdAt']<_0x598643['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c777a['hasComments']&&_0x598643['createdAt']<_0x2c777a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5066a9[0x0],_0x21ef52[0x0]))return!0x1;const _0x306510=Rt(_0x5066a9[0x0]['attributes'],'groupId'),_0xe2b00b=Rt(_0x21ef52[0x0]['attributes'],'groupId');if(!_0x10d9b1(_0x306510,_0xe2b00b))return!0x1;return!!_0x5066a9['every'](_0x57f7a6=>_0x21ef52['some'](_0x5818f6=>_0x57f7a6['getFirstRange']()['isEqual'](_0x5818f6['getFirstRange']())))&&_0x21ef52['every'](_0x3119a7=>_0x5066a9['some'](_0x5ab076=>_0x3119a7['getFirstRange']()['isEqual'](_0x5ab076['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x283fca){const _0x2cfad5=Array['from'](_0x283fca),_0x32d1da=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b84c0=_0x32d1da['filter'](_0x44ffcf=>!_0x283fca['has'](_0x44ffcf)),_0x17be39=new Map(_0x2cfad5['map'](_0x2bcec9=>[_0x2bcec9,this['_suggestionFactory']['getSuggestionCallback'](_0x2bcec9['type'],_0x2bcec9['subType'],'join')])),_0x5ef1a7=new Map(_0x32d1da['map'](_0x5b5ce3=>[_0x5b5ce3,_0x5b5ce3['getRanges']()]));for(let _0x3624de=0x0;_0x3624de<_0x2cfad5['length'];_0x3624de++){if(_0x1c51b(this,_0x2cfad5[_0x3624de],_0x2cfad5,_0x3624de+0x1))return!0x0;}for(let _0x581632=0x0;_0x581632<_0x2cfad5['length'];_0x581632++){if(_0x1c51b(this,_0x2cfad5[_0x581632],_0x1b84c0,0x0))return!0x0;}return!0x1;function _0x1c51b(_0x384f08,_0x4d56d8,_0x53962a,_0x57561f){for(let _0x30f007=_0x57561f;_0x30f007<_0x53962a['length'];_0x30f007++){const _0x11270d=_0x53962a[_0x30f007];if(_0x11270d['type']!==_0x4d56d8['type']||_0x11270d['author']['id']!==_0x4d56d8['author']['id']||_0x11270d['subType']!==_0x4d56d8['subType'])continue;if(!Jt(_0x4d56d8,_0x11270d))continue;if('attribute'==_0x4d56d8['type']&&_0x4d56d8['data']['oldValue']!=_0x11270d['data']['oldValue'])continue;if('attribute'==_0x4d56d8['type']&&_0x384f08['_isBlockAttribute'](_0x4d56d8['data']['key']))continue;if('formatBlock'==_0x4d56d8['type']){const _0x5461a1=_0x384f08['editor']['model'],_0x459e60=_0x4d56d8['getContainedElement']();if(_0x459e60&&(_0x5461a1['schema']['isObject'](_0x459e60)||_0x5461a1['schema']['isLimit'](_0x459e60)))continue;}const _0x54d8f2=_0x17be39['get'](_0x4d56d8),_0x5df007=_0x5ef1a7['get'](_0x4d56d8),_0x54c1f6=_0x5ef1a7['get'](_0x11270d),_0x509ea0=_0x4d56d8['commentThread']&&_0x4d56d8['commentThread']['length'],_0x3241fa=_0x11270d['commentThread']&&_0x11270d['commentThread']['length'];if(!_0x509ea0&&_0x54d8f2(_0x54c1f6,_0x5df007))return _0x384f08['_joinSuggestions'](_0x11270d,_0x4d56d8),_0x5ef1a7['delete'](_0x4d56d8),!0x0;if(!_0x3241fa&&_0x54d8f2(_0x5df007,_0x54c1f6))return _0x384f08['_joinSuggestions'](_0x4d56d8,_0x11270d),_0x5ef1a7['delete'](_0x11270d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x52c3b4,_0x16db1d){if(_0x52c3b4['isMultiRange']){for(const _0xa0d98c of _0x16db1d['getRanges']())_0x52c3b4['addRange'](_0xa0d98c);}else{const _0x17acec=_0x16db1d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x52c3b4,this['_model']['createRange'](_0x52c3b4['getFirstRange']()['start'],_0x17acec));}_0x16db1d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2cd3c0,_0x326e54,_0x219846){const _0x279cdb=_0x2cd3c0['startsWith']('format')||_0x2cd3c0['startsWith']('attribute')?'FORMATTING':_0x2cd3c0['toUpperCase']();return o(this['editor']['locale'],_0x326e54+'_'+_0x279cdb+'_SUGGESTION_ANNOUNCEMENT',_0x219846);}['_initAriaMarkerChangeAnnouncements'](){const _0x3726aa=this['editor'];if(!_0x3726aa['ui'])return;const {ariaLiveAnnouncer:_0x39d527}=_0x3726aa['ui'];_0x31b647(this['_model'],({left:_0x5a090c,entered:_0x4aff72})=>{for(const _0x35f214 of _0x5a090c){const {group:_0x201467,type:_0x1a7ce1}=this['_splitMarkerName'](_0x35f214['name']);if('suggestion'===_0x201467){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x1a7ce1,'LEAVE'));break;}}for(const _0x567d11 of _0x4aff72){const {group:_0xb4e9b0,type:_0x5258e3}=this['_splitMarkerName'](_0x567d11['name']);if('suggestion'===_0xb4e9b0){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x5258e3,'ENTER',_0x3a49cf(_0x2cdcf8)));break;}}});}['_processAttributeChanges'](_0x4d03df){if(this['_recordAttributeSuggestions'])return!0x1;const _0x145db3=this['editor'],_0x55e2b3=_0x145db3['model']['document']['differ']['getChanges']();if(0x0==_0x55e2b3['length'])return!0x1;const _0x402fda=[],_0x1d3497=_0x55e2b3['filter'](_0x1fa47f=>'attribute'==_0x1fa47f['type']),_0x383689=_0x55e2b3['filter'](_0x354dc4=>'insert'==_0x354dc4['type']&&'$text'!=_0x354dc4['name']),_0x3bc74d=_0x55e2b3['filter'](_0x4fbaec=>'remove'==_0x4fbaec['type']&&'$text'!=_0x4fbaec['name']);for(const _0x1ad83a of _0x1d3497)_0x402fda['push']({'key':_0x1ad83a['attributeKey'],'newValue':_0x1ad83a['attributeNewValue'],'oldValue':_0x1ad83a['attributeOldValue'],'range':Ft(_0x1ad83a['range'],_0x145db3['model'])});for(const _0x2135af of _0x383689){const _0x17c306=_0x3bc74d['find'](_0x343b69=>_0x343b69['position']['isEqual'](_0x2135af['position']));_0x17c306&&_0x402fda['push']({'key':m,'newValue':_0x2135af['name'],'oldValue':_0x17c306['name'],'range':_0x145db3['model']['createRangeOn'](_0x2135af['position']['nodeAfter'])});}return 0x0!=_0x402fda['length']&&this['_reduceExistingSuggestions'](_0x4d03df,_0x402fda);}['_processAttributeSuggestions'](_0x196e39){let _0xf85936=!0x1;const _0x4bc796=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a2330=>_0x2a2330['data']['newRange']&&_0x2a2330['name']['startsWith']('suggestion:attribute:'));for(const _0x13b50b of _0x4bc796){const {subType:_0x270b23,id:_0x8a73a7}=this['_splitMarkerName'](_0x13b50b['name']),_0x41978d=_0x270b23['split']('|')[0x0];for(const _0x40670d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x40670d['id']!=_0x8a73a7&&'attribute'==_0x40670d['type']&&_0x40670d['data']&&_0x40670d['data']['key']==_0x41978d&&_0x40670d['getFirstRange']()['isIntersecting'](_0x13b50b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x40670d,_0x13b50b['data']['newRange'],_0x196e39),_0xf85936=!0x0);}return _0xf85936;}['_recordAttributeChanges'](_0x3e7b39){this['_recordAttributeSuggestions']=!0x0,_0x3e7b39();}['_isRegisteredAttribute'](_0x58671e){const _0x48318d=this['_isBlockAttribute'](_0x58671e),_0xa35f1d=this['_inlineAttributeKeys']['has'](_0x58671e);return _0x48318d||_0xa35f1d;}['_reduceExistingSuggestions'](_0x16b8b5,_0x18ad44){if(0x0==_0x18ad44['length'])return!0x1;let _0x5d89e7=!0x1;for(const _0x277a66 of _0x18ad44){const _0x1369d8=this['_findSuggestions'](_0x277a66['range'],'attribute')['filter'](_0x3ea100=>!_0x3ea100['meta']['isNextTo'])['map'](_0x4ab620=>_0x4ab620['suggestion']),_0x10f5a7=_0x115a16({'newValue':_0x277a66['newValue']});_0x1369d8['filter'](_0x422b87=>{const [_0x5265ef,_0x50c3e3]=_0x422b87['subType']['split']('|');return _0x5265ef==_0x277a66['key']&&_0x50c3e3!=_0x10f5a7;})['forEach'](_0x8cbbf=>{this['_reduceSuggestionAttributeRange'](_0x8cbbf,_0x277a66['range'],_0x16b8b5),_0x5d89e7=!0x0;});}return _0x5d89e7;}['_reduceSuggestionAttributeRange'](_0x3aa8d5,_0x1899a9,_0x131358){const _0x293507=_0x3aa8d5['getFirstRange']()['getDifference'](_0x1899a9);0x0!==_0x293507['length']?0x1!==_0x293507['length']?this['_breakSuggestionMarker'](_0x3aa8d5,_0x1899a9['start'],_0x1899a9['end']):this['_setSuggestionRange'](_0x3aa8d5,_0x293507[0x0]):_0x131358['removeMarker'](_0x3aa8d5['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27eac1){this['_editor']=_0x27eac1,this['_model']=_0x27eac1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5815c4,_0xe2be85,_0x4c8b1b,_0x20f171,_0x3b28ee,_0x3fdff9){return new u(this['_model'],{'type':_0x5815c4,'subType':_0xe2be85,'id':_0x4c8b1b,'author':_0x20f171,'creator':_0x20f171,'attributes':_0x3b28ee,'onAttributesChange':_0x3fdff9,'onAccept':(..._0x5a9fdb)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'accept')(..._0x5a9fdb),'onDiscard':(..._0x1db212)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'discard')(..._0x1db212)});}['registerCustomCallback'](_0x3db6f7,_0x95d219,_0x3b118b,_0x2af30b){const _0x4a507a=_0x3db6f7+':'+_0x95d219+':'+_0x3b118b;this['_customCallbacks']['set'](_0x4a507a,_0x2af30b);}['getSuggestionCallback'](_0x2eb015,_0x328ee0,_0x23508d){const _0xf37a45=_0x2eb015+':'+_0x328ee0+':'+_0x23508d;return this['_customCallbacks']['get'](_0xf37a45)||this['_defaultCallbacks']['get'](_0x2eb015+':'+_0x23508d);}['_registerDefaultCallbacks'](){const _0x3d0373=()=>!0x1,_0x4ccbb1=_0x3e315c=>{_0x3e315c['sort']((_0x3ce410,_0x5daf06)=>_0x3ce410['start']['isBefore'](_0x5daf06['start'])?0x1:-0x1),this['_model']['change'](_0x26b933=>{for(const _0x3207f7 of _0x3e315c){let _0xdc1b72;_0xdc1b72=_0x3207f7['end']['isAtEnd']&&_0x3207f7['end']['parent']==_0x3207f7['start']['nodeAfter']?_0x26b933['createSelection'](_0x3207f7['start']['nodeAfter'],'on'):_0x26b933['createSelection'](_0x3207f7),this['_model']['deleteContent'](_0xdc1b72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x578739=(_0x3263b2,_0x4629f8)=>{_0x4629f8&&this['_model']['change'](_0x134d8d=>{const {commandName:_0x28ef5c,commandParams:_0x214112=[]}=_0x4629f8,_0x519863=_0x3263b2['map'](_0x29e6a2=>(Vt(_0x29e6a2)&&(_0x29e6a2=this['_model']['createRange'](_0x29e6a2['end'])),_0x29e6a2))['filter'](_0x276520=>'$graveyard'!==_0x276520['root']['rootName']);if(_0x519863['length']<0x1)return;const _0x44013f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x527217=>_0x1eeee4['fromRange'](_0x527217));_0x134d8d['setSelection'](_0x519863);for(const _0x539004 of this['_editor']['commands']['commands']())_0x539004['refresh']();_0x214112['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28ef5c,..._0x214112);const _0x37e6e3=_0x44013f['filter'](_0x5077cd=>'$graveyard'!=_0x5077cd['root']['rootName']);_0x37e6e3['length']>0x0&&_0x134d8d['setSelection'](_0x37e6e3);for(const _0xf65362 of _0x44013f)_0xf65362['detach']();});},_0x1d4bb6=(_0xcfe454,_0x2495d2)=>0x1==_0xcfe454['length']&&0x1==_0x2495d2['length']&&_0xcfe454[0x0]['end']['isEqual'](_0x2495d2[0x0]['start']),_0x3ced21=(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a)=>Ht(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a,this['_model'])?[_0x44d637,_0x43a655]:Ht(_0x43a655,_0x44d637,_0x23ba6a,_0x5a0f61,this['_model'])?[_0x43a655,_0x44d637]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3d0373),this['_defaultCallbacks']['set']('insertion:discard',_0x4ccbb1),this['_defaultCallbacks']['set']('insertion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('insertion:chain',_0x3ced21),this['_defaultCallbacks']['set']('deletion:accept',_0x4ccbb1),this['_defaultCallbacks']['set']('deletion:discard',_0x3d0373),this['_defaultCallbacks']['set']('deletion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('deletion:chain',_0x3ced21),this['_defaultCallbacks']['set']('formatInline:accept',_0x578739),this['_defaultCallbacks']['set']('formatInline:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatInline:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatInline:chain',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:accept',_0x578739),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3d0373),this['_defaultCallbacks']['set']('attribute:accept',_0x3d0373),this['_defaultCallbacks']['set']('attribute:discard',(_0x138fee,_0xb61517)=>{if(!_0xb61517)return;const _0x14128f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c9029=>{if(_0xb61517['key']==m)for(const _0x4746ac of _0x138fee){const _0x3ed69e=_0x4746ac['start']['nodeAfter'],_0x2d05e5=_0xb61517['oldValue'];_0x2c9029['rename'](_0x3ed69e,_0x2d05e5);}else{if(_0x14128f['_isBlockAttribute'](_0xb61517['key'])){for(const _0x43bd6a of _0x138fee)void 0x0!==_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x43bd6a['start']['nodeAfter']):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x43bd6a['start']['nodeAfter']);}else{for(const _0x161e1c of _0x138fee)_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x161e1c):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x161e1c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d4bb6);}}function Et(_0x4c988c,_0xcd5190,_0x248b82){for(const _0x3fef16 of _0xcd5190['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3fef16['root']==_0x3fef16)return!0x1;if(!_0x248b82['containsItem'](_0x3fef16))return!0x1;if(_0x4c988c['isObject'](_0x3fef16)||_0x4c988c['isLimit'](_0x3fef16))return!0x0;}return!0x1;}function Vt(_0x1961ed){return _0x1961ed['end']['parent']==_0x1961ed['start']['nodeAfter']&&_0x1961ed['end']['isAtStart'];}function Ut(_0x5c8e98,_0x11ff07,_0x45f137,_0x4b8648){const _0xee42ef=_0x340d03=>!_0x340d03['item']['is']('$textProxy')&&!_0x4b8648['isObject'](_0x340d03['item']),_0x40709e=_0x5c8e98['start']['getLastMatchingPosition'](_0xee42ef),_0x227d3b=_0x5c8e98['end']['getLastMatchingPosition'](_0xee42ef,{'direction':'backward'});return(!_0x5c8e98['start']['isEqual'](_0x40709e)||!_0x5c8e98['end']['isEqual'](_0x227d3b))&&(_0x40709e['isBefore'](_0x227d3b)?_0x45f137['updateMarker'](_0x11ff07,{'range':_0x45f137['createRange'](_0x40709e,_0x227d3b)}):_0x45f137['removeMarker'](_0x11ff07),!0x0);}function Pt(_0x2920b4){return _0x115a16(_0x2920b4);}function Gt(_0x28cc7e){const _0x5abd0d=_0x28cc7e['start']['nodeAfter'];return _0x5abd0d&&_0x5abd0d['is']('element');}function Ft(_0x3f0d1c,_0x2876e1){return null==_0x3f0d1c['end']['nodeBefore']&&_0x3f0d1c['end']['parent']==_0x3f0d1c['start']['nodeAfter']?Lt(_0x3f0d1c['start']['nodeAfter'],_0x2876e1):_0x3f0d1c;}function Lt(_0x25fea0,_0x198a83){const _0x52cdb2=_0x198a83['schema']['isObject'](_0x25fea0)||_0x198a83['schema']['isSelectable'](_0x25fea0);return _0x198a83['createRange'](_0x198a83['createPositionAt'](_0x25fea0,'before'),_0x52cdb2?_0x198a83['createPositionAfter'](_0x25fea0):_0x198a83['createPositionAt'](_0x25fea0,'end'));}function Ht(_0x4a7864,_0x4e0e96,_0x2167fd,_0xca527c,_0x236f5e){if(_0x4a7864['next'])return!0x1;if(!Jt(_0x4a7864,_0x4e0e96))return!0x1;if(_0x2167fd['end']['isEqual'](_0xca527c['start']))return!0x0;if(_0x4a7864['type']!=_0x4e0e96['type'])return!0x1;if(!_0x2167fd['end']['isTouching'](_0xca527c['start']))return!0x1;const _0x2f0c22=_0x236f5e['createRange'](_0x2167fd['end'],_0xca527c['start'])['getWalker']();for(const _0x423ad7 of _0x2f0c22)if(['elementStart','elementEnd']['includes'](_0x423ad7['type'])&&_0x236f5e['schema']['isLimit'](_0x423ad7['item']))return!0x1;return!0x0;}function Jt(_0x55de90,_0x1e7e09){if(!_0x55de90['_isDataLoaded']||!_0x1e7e09['_isDataLoaded'])return!0x1;const _0x36fcca=new Set(Object['keys'](_0x55de90['attributes'])),_0x7dcbf5=new Set(Object['keys'](_0x1e7e09['attributes']));if(_0x36fcca['delete']('groupId'),_0x7dcbf5['delete']('groupId'),0x0==_0x36fcca['size']&&0x0==_0x7dcbf5['size'])return!0x0;if(_0x36fcca['size']!=_0x7dcbf5['size'])return!0x1;const _0x555401={..._0x55de90['attributes']},_0x330205={..._0x1e7e09['attributes']};return delete _0x555401['groupId'],delete _0x330205['groupId'],JSON['stringify'](_0x555401)==JSON['stringify'](_0x330205);}function qt(_0x22b5a7,_0x1af863){const _0x5a331e=zt(_0x22b5a7['attributes']),_0x23157f=zt(_0x1af863);if(!_0x22b5a7['_isDataLoaded'])return!0x1;for(const _0x58dde1 of Object['keys'](_0x23157f))if(!_0x10d9b1(_0x5a331e[_0x58dde1],_0x23157f[_0x58dde1]))return!0x1;return!0x0;}function zt(_0x1998d8){const _0x17a956=Object['assign']({},_0x1998d8);return delete _0x17a956['skipNestingCheck'],delete _0x17a956['tablePasteChainId'],_0x17a956;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x4f9031(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4da596,_0x5337cd,_0x27292d,_0x4edbc9){super(),this['model']=_0x5337cd,this['view']=_0x27292d,this['commentThreadController']=_0x4edbc9,this['_editor']=_0x4da596,this['_acceptCommand']=_0x4da596['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4da596['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe4a638,_0x3a2209)=>_0xe4a638||_0x3a2209),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5515f6=>_0x5515f6&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ed547=>_0x2ed547&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['_pendingAction']=null,_0x27292d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x27292d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x27292d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x27292d,'change:isDirty',()=>{_0x27292d['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 _0x4d275d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d275d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c48ce{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4de915,_0x38f93a,_0x289c8d,_0x283225){super(_0x4de915),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1e2267(_0x4de915,o(_0x4de915,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x38f93a['authoredAt']),this['bind']('authoredAt')['to'](_0x38f93a),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',_0x38f93a,'authoredAt',this,'descriptionParts',(_0xe23af6,_0x3164a8,_0x3ffa8b)=>{const _0x4ef3f7=_0x3ffa8b['map'](_0x444163=>ls(_0x444163['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xe23af6-0x1,_0x38f93a['author']['name'],_0x3164a8?_0x283225['formatDateTime'](_0x3164a8):'',new DOMParser()['parseFromString'](_0x4ef3f7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x11e3bc(),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x138f59=>_0x138f59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x38f93a,this['_localUser']=_0x289c8d,this['_config']=_0x283225,_0x283225['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3cb939(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f5ad8}=this['_config'];this['commentsListView']=new _0x4f5ad8(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',_0x2c6805=>_0x2c6805+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28945a,_0x45519f)=>_0x28945a||!!_0x45519f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x587785}=this['_config'],_0x4676d2=new _0x587785(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x341148=_0x4676d2['commentInputView'];return _0x4676d2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x341148,'value',(_0x31d152,_0x210269,_0x561a88)=>!!_0x561a88||_0x31d152&&!_0x210269),_0x341148['on']('submit',(_0x23de98,_0x4f96b5)=>{this['fire']('addComment',_0x4f96b5),_0x341148['editor']['setData']('');}),_0x341148['on']('cancel',()=>this['focus']()),_0x341148['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4676d2;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x326b97,_0x47706e,_0x13297f,_0x37cac8){super(_0x326b97,_0x47706e,_0x13297f,_0x37cac8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1db1ae=>_0x1db1ae&&_0x1db1ae[0x0]?_0x1db1ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4772ad,_0x2d53e8)=>{let _0xc6296f='';for(const _0x8bfc9b of _0x4772ad)_0xc6296f+='<p>'+ls(_0x8bfc9b['content'],_0x8bfc9b['color'])+'</p>';return _0x2d53e8?_0xc6296f:_0x189d33(_0xc6296f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37cac8['SuggestionView'](_0x326b97,_0x47706e,{'formatDateTime':_0x37cac8['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 _0x3feebc=this['bindTemplate'],_0xe85350=[this['suggestionView']];return this['commentsListView']&&_0xe85350['push'](this['commentsListView']),this['commentThreadInputView']&&_0xe85350['push'](this['commentThreadInputView']),_0xe85350['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3feebc['if']('isActive','ck-suggestion-wrapper--active'),_0x3feebc['to']('type',_0xf6a757=>'ck-suggestion-'+_0xf6a757),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':_0x3feebc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xe85350};}['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 ce extends _0x5c48ce{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x38e132,_0x422372,_0x5e6f12){super(_0x38e132),this['_model']=_0x422372,this['_config']=_0x5e6f12,this['set']('description',''),this['bind']('authoredAt')['to'](_0x422372),this['acceptButton']=this['_createButton'](o(_0x38e132,'Accept\x20suggestion'),_0x129e38['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x38e132,'Discard\x20suggestion'),_0x129e38['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25caa3(_0x38e132,_0x422372['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x11e3bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1a240e=>_0x1a240e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe50baa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe50baa['innerHTML']=this['description'],this['on']('change:description',(_0x2d937c,_0x200f0c,_0x3ec1df)=>{_0xe50baa['innerHTML']=_0x3ec1df;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3fe16f=this['bindTemplate'],_0x308a85=[{'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']}},{'tag':'time','attributes':{'datetime':_0x3fe16f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fe16f['to']('authoredAt',_0x569457=>this['_config']['formatDateTime'](_0x569457))}]}]},{'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']&&_0x308a85['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':_0x308a85}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x313349,_0x1e9414,_0x56c8cf,_0x4dfd9e,_0x42a865){const _0x14ab74=new _0x388278(this['locale']);return _0x14ab74['set']({'label':_0x313349,'icon':_0x1e9414,'tooltip':!0x0,'tooltipPosition':_0x42a865}),_0x14ab74['extendTemplate']({'attributes':{'class':_0x56c8cf}}),_0x14ab74['on']('execute',()=>{this['fire'](_0x4dfd9e,this['_model']['id']);}),_0x14ab74;}['_setupKeyboardNavigation'](){const _0x4358ec=this['element'];this['keystrokes']['listenTo'](_0x4358ec);for(const _0x320c69 of this['focusables'])this['focusTracker']['add'](_0x320c69['element']),this['keystrokes']['listenTo'](_0x320c69['element']);this['keystrokes']['set']('enter',(_0x919a8a,_0x52f317)=>{_0x4358ec===_0x919a8a['target']&&(this['focusCycler']['focusFirst'](),_0x52f317());}),this['keystrokes']['set']('esc',(_0x211dd2,_0x10d6ef)=>{_0x4358ec!==_0x211dd2['target']&&(this['focus'](),_0x10d6ef());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x16a2ad{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5680c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372f5a){super(_0x372f5a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19ed8e=this['editor']['config'];_0x19ed8e['define']('trackChanges.SuggestionThreadView',re),_0x19ed8e['define']('trackChanges.SuggestionView',ce),_0x19ed8e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19ed8e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c6bce,_0xdddd07){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x517aff,_0x30ce37]of this['_handleControllerBuffer']){const _0x3615dd=this['_suggestionToController']['has'](_0x517aff);_0x3615dd||_0x30ce37?_0x3615dd&&_0x30ce37&&this['_destroyController'](_0x517aff):this['_initializeController'](_0x517aff);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c6bce,_0xdddd07);}['init'](){const _0x5ea4a8=this['editor'],_0x15a2ab=_0x5ea4a8['plugins']['get']('TrackChangesEditing'),_0x239e8b=_0x5ea4a8['plugins']['get']('Annotations'),_0x55b2dc=_0x5ea4a8['plugins']['get']('EditorAnnotations'),_0x23f9bc=_0x5ea4a8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x55b2dc['addSourceCollector'](()=>{const _0x559bba=[];for(const [_0x599a2f,_0x2af9c8]of Array['from'](this['_suggestionToController'])){const _0x146191=_0x599a2f['getAllAdjacentSuggestions'](),_0x4c02c8=[];for(const _0x3e9daf of _0x146191){if(!_0x3e9daf['isInContent'])continue;if(_0x3e9daf['isMultiRange']){_0x4c02c8['push'](..._0x3e9daf['getRanges']());continue;}const _0x3b6dd1=_0x3e9daf['getFirstRange']();if(_0x4c02c8['length']>0x0){const _0x1b3a42=_0x4c02c8[0x0]['getJoined'](_0x3b6dd1);if(_0x1b3a42){_0x4c02c8[0x0]=_0x1b3a42;continue;}}_0x4c02c8['push'](_0x3b6dd1);}_0x559bba['push']([_0x2af9c8['view'],_0x4c02c8]);}return _0x559bba;}),this['listenTo'](_0x15a2ab,'suggestionLoaded',(_0x43a95d,_0x31415b)=>{this['listenTo'](_0x31415b,'change:previous',(_0x574ba7,_0x4cf6ae,_0x21ff20,_0x4f257f)=>{_0x31415b['isInContent']&&(null==_0x21ff20?(this['_updateController'](_0x4f257f['head']),this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1)):(this['_updateController'](_0x21ff20['head']),null==_0x4f257f&&this['_handleSuggestionControllerDelayed'](_0x31415b,!0x0)));}),null!==_0x31415b['previous']?this['_updateController'](_0x31415b['head']):this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1);}),this['listenTo'](_0x15a2ab,'suggestionUnloaded',(_0x33c3c7,_0x3d81f2,_0x577aa7)=>{this['stopListening'](_0x3d81f2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d81f2),this['_suggestionToController']['has'](_0x3d81f2)&&this['_destroyController'](_0x3d81f2),_0x577aa7&&this['_updateController'](_0x577aa7['head']);}),this['listenTo'](_0x15a2ab,'suggestionChanged',(_0x2881,_0x31a187)=>{this['_updateController'](_0x31a187);}),this['listenTo'](_0x239e8b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23f9bc,'addComment',(_0x5b0f90,{threadId:_0x1b495e,isFromAdapter:_0x444e80})=>{if(_0x444e80||!_0x15a2ab['hasSuggestion'](_0x1b495e))return;const _0x5525f2=_0x15a2ab['getSuggestion'](_0x1b495e);this['_suggestionToController']['get'](_0x5525f2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x227c9d=this['editor']['plugins']['get']('Annotations'),_0x49cd74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fa9d8=Array['from'](_0x227c9d['activeAnnotations'],_0xda591c=>_0xda591c['innerView'])['filter'](_0x2ba5d9=>this['_viewToController']['has'](_0x2ba5d9)),_0xcf13ea=[];for(const _0x22d2e6 of _0x1fa9d8){const _0x59bcf0=this['_viewToController']['get'](_0x22d2e6)['model']['getAllAdjacentSuggestions']();_0xcf13ea['push'](..._0x59bcf0['reduce']((_0x2ce8ac,_0x43b001)=>[..._0x2ce8ac,..._0x43b001['getMarkerNames']()],[]));}_0x49cd74['activeMarkers']=_0xcf13ea;}['_addUIComponentsToFactory'](){const _0x14b216=this['editor'],_0x247595=_0x14b216['locale'],_0x95ccfe=o(_0x247595,'Track\x20changes'),_0x3dcf1a=new Wt([{'type':'switchbutton','model':new _0x1596b5({'withText':!0x0,'isToggleable':!0x0,'label':_0x95ccfe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xd3c1af of _0x3dcf1a)if(me(_0xd3c1af)){const _0x3b5307=_0x14b216['commands']['get'](_0xd3c1af['model']['commandName']);_0xd3c1af['model']['bind']('isOn','isEnabled')['to'](_0x3b5307,'value','isEnabled');}_0x14b216['ui']['componentFactory']['add']('trackChanges',_0x14c117=>this['_createToolbarButton'](_0x14c117,_0x3dcf1a,_0x95ccfe)),_0x14b216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18c914=>this['_createMenuBarMenu'](_0x18c914,_0x3dcf1a,_0x95ccfe));}['_createToolbarButton'](_0x2d7189,_0x1a02e7,_0x570df3){const _0x1bdb4e=Qt(_0x2d7189,_0x646426),_0x49fa3f=this['editor']['commands']['get']('trackChanges');_0x1bdb4e['buttonView']['set']({'tooltip':_0x570df3,'label':_0x570df3,'icon':he}),_0x1bdb4e['buttonView']['bind']('isOn')['to'](_0x49fa3f,'value'),_0x1bdb4e['buttonView']['on']('execute',()=>{_0x49fa3f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1bdb4e,_0x1a02e7,{'role':'menu'});const _0xc2a35c=[];for(const _0x1a78de of _0x1a02e7)me(_0x1a78de)&&_0xc2a35c['push'](this['editor']['commands']['get'](_0x1a78de['model']['commandName']));const _0x5c1731=_0x1bdb4e['buttonView'];return _0x5c1731['actionView']['unbind']('isEnabled'),_0x5c1731['arrowView']['unbind']('isEnabled'),_0x5c1731['actionView']['bind']('isEnabled')['to'](_0x49fa3f,'isEnabled'),_0x5c1731['arrowView']['bind']('isEnabled')['toMany'](_0xc2a35c,'isEnabled',(..._0x1f44e3)=>_0x1f44e3['some'](_0x46473e=>_0x46473e)),_0x1bdb4e['on']('execute',_0x1b8559=>{this['editor']['execute'](_0x1b8559['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1bdb4e;}['_createMenuBarMenu'](_0x37f98b,_0x57d835,_0x218001){const _0x2cf741=new Yt(_0x37f98b),_0x22b24e=this['editor']['commands']['get']('trackChanges');_0x2cf741['buttonView']['set']({'label':_0x218001,'icon':he});const _0x2f5ce2=new Zt(_0x37f98b);for(const _0x399505 of _0x57d835){if('separator'==_0x399505['type']){_0x2f5ce2['items']['add'](new Xt(_0x37f98b));continue;}const _0x22ed8b=new te(_0x37f98b,_0x2cf741),_0x300865=new _0x5c4ce3(_0x37f98b),_0x5b3857=_0x399505['model'];_0x300865['bind'](...Object['keys'](_0x5b3857))['to'](_0x5b3857),_0x300865['delegate']('execute')['to'](_0x2cf741),_0x300865['on']('execute',()=>{this['editor']['execute'](_0x5b3857['commandName']),this['editor']['editing']['view']['focus']();}),_0x22ed8b['children']['add'](_0x300865),_0x2f5ce2['items']['add'](_0x22ed8b);}return _0x2cf741['bind']('isEnabled')['to'](_0x22b24e,'isEnabled'),_0x2cf741['panelView']['children']['add'](_0x2f5ce2),_0x2cf741;}['_initializeController'](_0x468315){const _0xe80444=this['editor'],_0x58ae59=_0xe80444['config'],_0x419898=_0xe80444['plugins']['get']('Annotations'),_0x5a1d32=_0xe80444['plugins']['get']('CommentsRepository'),_0x32e6f6=_0xe80444['plugins']['get']('EditorAnnotations'),_0x5b3214=_0xe80444['plugins']['get'](_0x5680c5)['me'],_0x514eb4=_0x58ae59['get']('trackChanges')['SuggestionThreadView'],_0xa25f88=_0x58ae59['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37a5f9,CommentThreadInputView:_0x5243b1}=_0xe80444['plugins']['get']('CommentsUI');let _0x68acf5,_0x56ead3,_0x1f9d74;this['_annotationViews']['has'](_0x468315['id'])?(_0x56ead3=this['_annotationViews']['get'](_0x468315['id']),_0x68acf5=_0x56ead3['mainView']):(_0x68acf5=new _0x514eb4(_0xe80444['locale'],_0x468315,_0x5b3214,{'disableComments':this['_disableComments'],'editorConfig':_0x58ae59['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x58ae59['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x58ae59['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x58ae59['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1661b2(_0x58ae59['get']('locale')),'CommentView':_0x58ae59['get']('comments')['CommentView'],'CommentsListView':_0x37a5f9,'CommentThreadInputView':_0x5243b1,'SuggestionView':_0xa25f88}),_0x68acf5['suggestionView']['acceptButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x68acf5['suggestionView']['discardButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x56ead3=_0x419898['createAnnotationView'](this['editor']['locale'],_0x68acf5),_0x56ead3['bind']('isDirty')['to'](_0x68acf5,'isDirty'),_0x56ead3['bind']('length')['to'](_0x68acf5),_0x56ead3['bind']('type')['to'](_0x68acf5,'type',_0x1db4f2=>'suggestion-'+_0x1db4f2),_0x68acf5['on']('escape',()=>{_0x1f9d74['fire']('escape');}),this['_annotationViews']['set'](_0x468315['id'],_0x56ead3));const _0x4ea89e=_0x5a1d32['createCommentThreadController'](_0x468315['commentThread'],_0x68acf5),_0x5e4214=new ae(_0xe80444,_0x468315,_0x68acf5,_0x4ea89e),_0x99ab1e=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x8469e3=>_0x8469e3['isInContent']);_0x68acf5['descriptionParts']=_0xe80444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x99ab1e),this['_suggestionToController']['set'](_0x468315,_0x5e4214),this['_viewToController']['set'](_0x68acf5,_0x5e4214),_0x1f9d74=_0x419898['createAnnotation']({'view':_0x56ead3,'target':()=>{const _0x40f5d0=[],_0x48566c=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x9b6cca=>_0x9b6cca['isInContent']);for(const _0x1017ff of _0x48566c)_0x40f5d0['push'](..._0x1017ff['getMarkers']());return _0x39b097(_0xe80444['editing'],_0x40f5d0);},'type':()=>'suggestion-'+_0x5e4214['view']['type']}),_0x5a1d32['_bindAnnotationToEditors'](_0x68acf5,_0x1f9d74),_0x419898['add'](_0x1f9d74),_0x32e6f6['registerAnnotation'](_0x1f9d74);}['_destroyController'](_0x4303a1){const _0x46ec7e=this['editor']['plugins']['get']('CommentsRepository'),_0x8ca332=this['editor']['plugins']['get']('Annotations'),_0x3ef3bc=this['_suggestionToController']['get'](_0x4303a1),_0x25ef55=_0x3ef3bc['view'],_0x57c1f0=_0x8ca332['getByInnerView'](_0x25ef55);_0x46ec7e['_unbindEditors'](_0x25ef55),_0x57c1f0&&_0x8ca332['remove'](_0x57c1f0),this['_suggestionToController']['delete'](_0x4303a1),this['_viewToController']['delete'](_0x25ef55),_0x3ef3bc['destroy']();}['_updateController'](_0x2836c6){if(!_0x2836c6['isInContent']||!this['_suggestionToController']['has'](_0x2836c6))return;const _0x9b015d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4593f1=this['_suggestionToController']['get'](_0x2836c6),_0x502532=_0x2836c6['getAllAdjacentSuggestions']();_0x4593f1['view']['descriptionParts']=_0x9b015d['descriptionFactory']['getDescriptions'](_0x502532);}['destroy'](){for(const _0x5f4384 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5f4384);for(const _0x20a5ba of this['_annotationViews']['values']())_0x20a5ba['mainView']['destroy']();super['destroy']();}}function me(_0x2e8946){return'model'in _0x2e8946;}class k extends _0x16a2ad{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2f6505){this['editor']['plugins']['get'](p)['adapter']=_0x2f6505;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x41b57b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x41b57b);}['getSuggestions']({skipNotAttached:_0x5dddfe=!0x1,toJSON:_0x32f33e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5dddfe,'toJSON':_0x32f33e});}['getSuggestion'](_0x256bb0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x256bb0);}}const w=['Pagination'];class T extends _0x16a2ad{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4513ec=this['editor'];if(_0x4513ec['config']['define']('trackChangesData.editorCreator',_0x3018ac=>{const _0x37598a=_0x4513ec['model']['document']['getRootNames']()['reduce']((_0x30beb3,_0x232801)=>(_0x30beb3[_0x232801]='',_0x30beb3),{});return _0x4513ec['constructor']['create'](_0x37598a,_0x3018ac);}),'function'!=typeof _0x4513ec['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f735b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ed58b){return N(this['editor'],!0x0,_0x2ed58b);}['getDataWithDiscardedSuggestions'](_0x36b153){return N(this['editor'],!0x1,_0x36b153);}}class D extends _0x16a2ad{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5192aa){super(_0x5192aa),this['result']='end';}['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 v(_0x7008a8){return void 0x0!==_0x7008a8['getRootsAttributes'];}async function N(_0x178906,_0x55b589,_0x40087f){const _0x1af51a=_0x1c6eb1(_0x178906,w);_0x1af51a['plugins']['push'](p,D),_0x1af51a['rootsAttributes']=v(_0x178906)?_0x178906['getRootsAttributes']():void 0x0;const _0x1b3d27=document['createDocumentFragment'](),_0x5e0ddf=_0x178906['config']['get']('trackChangesData')['editorCreator'],_0x345de3=await _0x5e0ddf(_0x1af51a,()=>function(_0x5c46fa){const _0x5c0710=document['createElement']('div');return _0x5c46fa['appendChild'](_0x5c0710),_0x5c0710;}(_0x1b3d27));!function(_0x25bc16,_0x40ac72){const _0xc74e74=_0x25bc16['model']['document']['getRootNames']()['reduce']((_0x27a9ac,_0x216f71)=>(_0x27a9ac[_0x216f71]=_0x25bc16['data']['get']({'rootName':_0x216f71}),_0x27a9ac),{}),_0x165272=_0x25bc16['plugins']['get']('Users')['users']['map'](_0x132df7=>({'id':_0x132df7['id'],'name':_0x132df7['name']})),_0x5a45f6=_0x25bc16['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11c8fa=_0x25bc16['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45d9e6=_0x40ac72['plugins']['get']('Users'),_0x5259b7=_0x40ac72['plugins']['get']('TrackChangesEditing'),_0x1577dd=_0x40ac72['plugins']['get']('CommentsRepository');for(const _0x4921d9 of _0x1577dd['getCommentThreads']())_0x4921d9['remove']();for(const _0x5b9bf3 of _0x165272)_0x45d9e6['getUser'](_0x5b9bf3['id'])||_0x45d9e6['addUser'](_0x5b9bf3);_0x45d9e6['me']||_0x45d9e6['useAnonymousUser']();for(const _0x1f5841 of _0x11c8fa)_0x1577dd['addCommentThread'](_0x1f5841);for(const _0xde9429 of _0x5a45f6)_0x5259b7['addSuggestionData'](_0xde9429);_0x40ac72['data']['set'](_0xc74e74);}(_0x178906,_0x345de3),_0x345de3['execute'](_0x55b589?'acceptAllSuggestions':'discardAllSuggestions');const _0x50e155=v(_0x345de3)?_0x345de3['getFullData'](_0x40087f):_0x345de3['data']['get'](_0x40087f);return await _0x345de3['destroy'](),_0x50e155;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1d1013,PendingActions as _0x2b6a22,icons as _0xef2bba}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xc9e6ca,ObservableMixin as _0x5b20f4,uid as _0x338779,insertToPriorityArray as _0x299098,priorities as _0x563ef4,logWarning as _0x504e87,getEnvKeystrokeText as _0x296b3e,FocusTracker as _0x2f03c4,KeystrokeHandler as _0x9c9a0d,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1b5af7,View as _0x1840de,ViewCollection as _0x4960e1,FocusCycler as _0x14a7fb,ViewModel as _0x2060c6,createDropdown as Qt,SplitButtonView as _0x27ca1a,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x423b6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2ad360,hashObject as _0x35240c,surroundingMarkersDetector as _0x4b4fad,FOCUS_ANNOTATION_KEYSTROKE as _0x4ca322,AriaDescriptionView as _0x1afc9a,setupThreadKeyboardNavigation as _0x35c5a3,trimHtml as _0x4d23af,UserView as _0xc698bf,LateFocusButtonView as _0x1765ae,getDateTimeFormatter as _0x3460fc,getAllMarkersDomElementsSorted as _0x73809,sanitizeEditorConfig as _0x222606}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x560627,LiveRange as _0x4f83f9,LivePosition as _0x50c72e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x11169f,toWidget as _0x323006}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x289bbd,set as _0x200643,isEqual as _0x46161a,unset as _0xc6ac9e,omit as Rt}from'lodash-es';import{Delete as _0xf8fd26,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x563a8e,ShiftEnter as _0x156e28}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x559dd3,_0x2df249){super(_0x559dd3),this['_enabledCommands']=_0x2df249,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 _0x18510d of this['editor']['commands']['commands']())_0x18510d['affectsData']&&!this['_enabledCommands']['has'](_0x18510d)&&_0x18510d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x41ea1f of this['editor']['commands']['commands']())_0x41ea1f['affectsData']&&!this['_enabledCommands']['has'](_0x41ea1f)&&_0x41ea1f['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x3b6b7,_0xe0fce5){super(_0x3b6b7),this['_suggestions']=_0xe0fce5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26c86f){const _0x58079a=this['_suggestions']['get'](_0x26c86f);if(!_0x58079a)throw new _0xc9e6ca('track-changes-accept-suggestion-not-found',this);const _0x5c92f3=_0x58079a['getRanges']();this['editor']['model']['canEditAt'](_0x5c92f3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x58079a);}}class O extends ts{['_suggestions'];constructor(_0x14746d,_0x59735b){super(_0x14746d),this['_suggestions']=_0x59735b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b9fb7){const _0x9acd28=this['_suggestions']['get'](_0x3b9fb7);if(!_0x9acd28)throw new _0xc9e6ca('track-changes-discard-suggestion-not-found',this);const _0x3fffcf=_0x9acd28['getRanges']();this['editor']['model']['canEditAt'](_0x3fffcf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x9acd28);}}function ls(_0x51329b,_0x24ecf5){let _0x45b10a='';return _0x45b10a+=_0x51329b['split']('*')['map']((_0x5f0dab,_0x33a3bd)=>_0x33a3bd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5f0dab)+'</span>':nn(_0x5f0dab))['join'](''),_0x24ecf5&&(_0x45b10a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x24ecf5['value']+'\x22\x20title=\x22'+_0x24ecf5['title']+'\x22></span>'),_0x45b10a;}function nn(_0x132afb){const _0x217cf3=document['createElement']('span');return _0x217cf3['innerText']=_0x132afb,_0x217cf3['innerHTML'];}function ss(_0x5b5850){return _0x5b5850['sort']((_0x5dfb77,_0x57c602)=>'deletion'==_0x5dfb77['type']&&'deletion'!=_0x57c602['type']?-0x1:'deletion'!=_0x5dfb77['type']&&'deletion'==_0x57c602['type']?0x1:0x0);}function to(_0x7aceec,_0x3d2695){let _0x181a86,_0x16669f=0x0;const _0x4e00b8=[],_0x5ca046=_0x3d2695['schema'];for(;_0x16669f<_0x7aceec['length'];){const _0x5208ec=_0x7aceec[_0x16669f],_0x2ce841=_0x7aceec[_0x16669f+0x1];_0x181a86||(_0x181a86=_0x3d2695['createPositionBefore'](_0x5208ec)),on(_0x3d2695,_0x5208ec,_0x2ce841)||(_0x4e00b8['push'](_0x3d2695['createRange'](_0x181a86,_0x5ca046['isObject'](_0x5208ec)?_0x3d2695['createPositionAfter'](_0x5208ec):_0x3d2695['createPositionAt'](_0x5208ec,'end'))),_0x181a86=null),_0x16669f++;}return _0x4e00b8;}function on(_0x4c64a6,_0x558c74,_0xcfc910){if(!_0xcfc910)return!0x1;const _0x89354=_0x4c64a6['createPositionAfter'](_0x558c74),_0x1bdc12=_0x4c64a6['createPositionBefore'](_0xcfc910);return _0x89354['isTouching'](_0x1bdc12);}function rs(_0x5db154,_0x381f84,_0x52e338){for(;_0x52e338['length'];){const _0x1114fa=_0x52e338['splice'](0x0,0x64);_0x5db154['change'](()=>{for(const _0x5767c9 of _0x1114fa)_0x5767c9['isInContent']&&_0x381f84['execute'](_0x5767c9['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x4f3f22,_0x5a0971,_0x4bf83d){super(_0x4f3f22),this['_command']=_0x5a0971,this['_suggestions']=_0x4bf83d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b5d0a=Array['from'](this['_suggestions']['values']())['some'](_0x2ddb4a=>_0x2ddb4a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1b5d0a;}['execute'](){const _0x2ab341=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4ecaa1 of _0x2ab341){const _0xa835ff=_0x4ecaa1['getRanges']();if(!this['editor']['model']['canEditAt'](_0xa835ff))return;}rs(this['editor']['model'],this['_command'],_0x2ab341);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x265615,_0x21bd31,_0x485b1d){super(_0x265615),this['_command']=_0x21bd31,this['_suggestions']=_0x485b1d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x154060=this['editor']['model']['document']['selection'],_0x5c1a78=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x426dac,_0x9f62fd){const _0x4b0bed=Array['from'](_0x426dac['getRanges']()),_0x28553f=new Set();for(const _0x376268 of _0x9f62fd)if(_0x376268['isInContent']){for(const _0x438467 of _0x4b0bed)for(const _0x1568dc of _0x376268['getRanges']())(_0x438467['isIntersecting'](_0x1568dc)||_0x426dac['isCollapsed']&&!_0x376268['isMultiRange']&&_0x376268['next']&&_0x1568dc['end']['isTouching'](_0x438467['start']))&&_0x28553f['add'](_0x376268);}return _0x28553f;}(_0x154060,_0x5c1a78),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x35e34b=ss(Array['from'](this['_selectedSuggestions']));for(const _0x39e49c of _0x35e34b){const _0x233f7a=_0x39e49c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x233f7a))return;}rs(this['editor']['model'],this['_command'],_0x35e34b);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x5b20f4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1f9dff,_0x39a258){super(),this['id']=_0x39a258['id'],this['type']=_0x39a258['type'],this['subType']=_0x39a258['subType']||null,this['author']=_0x39a258['author'],this['creator']=_0x39a258['creator']||_0x39a258['author'],this['isExternal']=Boolean(_0x39a258['attributes']&&_0x39a258['attributes']['@external']),this['data']=null,this['_model']=_0x1f9dff,this['_onAccept']=_0x39a258['onAccept'],this['_onDiscard']=_0x39a258['onDiscard'],this['_onAttributesChange']=_0x39a258['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x39a258['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 _0x4a3e4a=this;for(;_0x4a3e4a['previous'];)_0x4a3e4a=_0x4a3e4a['previous'];return _0x4a3e4a;}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'](_0x1a7eb9){this['_markerNames']['add'](_0x1a7eb9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x58ac9d=>this['_model']['markers']['get'](_0x58ac9d))['filter'](_0x4fba95=>_0x4fba95);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1fa33c=>{for(const _0x4be3f3 of this['getMarkers']())_0x1fa33c['removeMarker'](_0x4be3f3);}),this['_markerNames']['clear']();}['removeMarker'](_0x58abfc){this['_model']['change'](_0x1dd5dc=>{_0x1dd5dc['removeMarker'](_0x58abfc);}),this['_markerNames']['delete'](_0x58abfc);}['addRange'](_0xc956f7){const _0x53b638='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x53b638),this['_model']['change'](_0x718ee=>{_0x718ee['addMarker'](_0x53b638,{'range':_0xc956f7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c8bc5){for(const _0x3e7341 of this['getRanges']())if(_0x3e7341['isIntersecting'](_0x5c8bc5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x9f4b23=>_0x9f4b23['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x9acd63,_0xb1a577)=>[..._0x9acd63,..._0xb1a577['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x395bdc=this['getRanges']();if(0x1!=_0x395bdc['length'])return null;const _0x34102f=_0x395bdc[0x0],_0x813245=_0x34102f['start']['nodeAfter'],_0x4a3ae1=_0x34102f['end']['nodeBefore'];return _0x813245 instanceof _0x560627?_0x813245!=_0x4a3ae1?null:_0x813245: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 _0x52daa4=[];let _0x2d7e75=this['head'];for(;_0x2d7e75;)_0x52daa4['push'](_0x2d7e75),_0x2d7e75=_0x2d7e75['next'];return _0x52daa4;}['setAttribute'](_0x3b2a7b,_0x369e8b){const _0x365684=_0x289bbd(this['attributes']);_0x200643(_0x365684,_0x3b2a7b,_0x369e8b),_0x46161a(_0x365684,this['attributes'])||(this['attributes']=_0x365684,this['_onAttributesChange'](_0x365684));}['removeAttribute'](_0x3ce40b){const _0x406c86=_0x289bbd(this['attributes']);_0xc6ac9e(_0x406c86,_0x3ce40b),_0x46161a(_0x406c86,this['attributes'])||(this['attributes']=_0x406c86,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 _0x338779()['substr'](0x1,0x5);}}function o(_0x19f1e8,_0x520507,_0x1de269){const _0x23e12a=_0x19f1e8['t'],t=_0x19f1e8['t'];switch(_0x520507){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'*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',_0x1de269);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1de269);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1de269);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1de269);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1de269);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',_0x1de269);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1de269);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x1de269);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1de269);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1de269);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1de269);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1de269);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1de269);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1de269);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1de269);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1de269);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1de269);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1de269);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1de269);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1de269);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1de269);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1de269);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1de269);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'},_0x1de269);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1de269);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1de269);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1de269);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1de269);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1de269);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'},_0x1de269);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1de269);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1de269);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1de269);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1de269);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'},_0x1de269);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1de269);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'},_0x1de269);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'},_0x1de269);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1de269);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'},_0x1de269);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1de269);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'},_0x1de269);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1de269);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1de269);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'},_0x1de269);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 _0x23e12a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1de269);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x23e12a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1de269);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1de269);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'},_0x1de269);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'},_0x1de269);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'},_0x1de269);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x520507;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4b39c9,_0x75c619){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4b39c9,this['_locale']=_0x75c619;}['getDescriptions'](_0x39d9fa){const _0x232b3d=[],_0x28bccf=new Set(),_0x4ebe8f=new Set();for(let _0x836d9e=0x0;_0x836d9e<_0x39d9fa['length'];_0x836d9e++){const _0x35735f=_0x39d9fa[_0x836d9e];if(!_0x35735f['isInContent'])continue;const _0x530eaa=this['_handleCustomCallbackDescription'](_0x35735f);if(_0x530eaa){if(null!=_0x35735f['subType']){if(_0x28bccf['has'](_0x35735f['subType']))continue;_0x28bccf['add'](_0x35735f['subType']);}_0x232b3d['push'](_0x530eaa);}else{if('attribute'!=_0x35735f['type'])'insertion'!=_0x35735f['type']&&'deletion'!=_0x35735f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x232b3d,_0x35735f,_0x39d9fa[_0x836d9e+0x1]);else{const _0x428cca=_0x35735f['data']['key'];if(_0x4ebe8f['has'](_0x428cca))continue;_0x4ebe8f['add'](_0x35735f['data']['key']),_0x428cca==m?this['_handleRenameSuggestionDescription'](_0x232b3d,_0x35735f):this['_handleAttributeSuggestionDescription'](_0x232b3d,_0x35735f);}}}return this['_resolveDescriptionItems'](_0x232b3d);}['registerDescriptionCallback'](_0x1e1f45){this['_customCallbacks']['push'](_0x1e1f45);}['registerElementLabel'](_0x2c61eb,_0x570a8b,_0x30629c=_0x563ef4['normal']){'function'==typeof _0x2c61eb?_0x299098(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2c61eb,'label':_0x570a8b,'priority':_0x30629c}):this['_itemLabels']['set'](_0x2c61eb,_0x570a8b);}['registerAttributeLabel'](_0x11c5ff,_0x4cee88){this['_attributeLabels']['set'](_0x11c5ff,_0x4cee88);}['getItemLabel'](_0x2a0986,_0x2c3904=0x1){let _0x3d20a7;for(const _0x1bda16 of this['_itemLabelsCallbacks'])if(_0x1bda16['matchingCallback'](_0x2a0986)){_0x3d20a7=_0x1bda16['label'];break;}return _0x3d20a7||(_0x3d20a7=this['_itemLabels']['get'](_0x2a0986['name'])),_0x3d20a7?_0x3d20a7(_0x2c3904):0x1!==_0x2c3904?_0x2c3904+'\x20'+_0x2a0986['name']+'s':''+_0x2a0986['name'];}['_addDescriptionItems'](_0x2b589,_0x3e9914){const _0x126120=_0x3e9914['getFirstRange']()['getWalker'](),_0x3196f6='insertion'==_0x3e9914['type']?'add':'remove';for(const _0x59c051 of _0x126120){const _0x4b0e33=_0x59c051['item'],_0x5dd978=_0x2b589[_0x2b589['length']-0x1];if(_0x4b0e33['is']('$textProxy'))_0x5dd978&&_0x5dd978['type']['indexOf']('Container')>-0x1&&_0x2b589['pop'](),_0x5dd978&&'text'==_0x5dd978['type']?_0x5dd978[_0x3196f6]+=_0x4b0e33['data']:_0x2b589['push']({'type':'text','add':'add'==_0x3196f6?_0x4b0e33['data']:'','remove':'remove'==_0x3196f6?_0x4b0e33['data']:''});else{if(this['_schema']['isObject'](_0x4b0e33)){const _0x5e9744=_0x4b0e33;if(_0x5dd978&&_0x5dd978['type']['indexOf']('Container')>-0x1&&_0x2b589['pop'](),'elementEnd'==_0x59c051['type'])continue;_0x5dd978&&_0x5dd978['type']==_0x3196f6+'Object'&&_0x5dd978['element']['name']==_0x5e9744['name']?_0x5dd978['quantity']++:_0x2b589['push']({'type':_0x3196f6+'Object','element':_0x5e9744,'quantity':0x1}),_0x126120['skip'](_0x501466=>!('elementEnd'==_0x501466['type']&&_0x501466['item']==_0x4b0e33));}else{if(this['_schema']['checkChild'](_0x4b0e33,'$text')||_0x4b0e33['is']('element','softBreak')){const _0x8f5344=_0x4b0e33;if('add'==_0x3196f6&&'elementStart'==_0x59c051['type']||'remove'==_0x3196f6&&'elementEnd'==_0x59c051['type'])continue;if(_0x5dd978&&-0x1==_0x5dd978['type']['indexOf']('Container')){'text'==_0x5dd978['type']&&(_0x5dd978[_0x3196f6]+='\x0a');continue;}let _0x2bee4a;if(_0x2bee4a='add'==_0x3196f6?_0x8f5344['nextSibling']&&!this['_schema']['isObject'](_0x8f5344['nextSibling'])?_0x8f5344['nextSibling']:null:_0x8f5344['previousSibling']&&!this['_schema']['isObject'](_0x8f5344['previousSibling'])?_0x8f5344['previousSibling']:null,_0x8f5344['isEmpty']||_0x2bee4a&&_0x2bee4a['isEmpty']){const _0x1247b2=_0x2bee4a&&_0x2bee4a['isEmpty']?_0x2bee4a:_0x8f5344;_0x5dd978&&_0x5dd978['type']==_0x3196f6+'EmptyContainer'&&_0x5dd978['element']['name']==_0x1247b2['name']?_0x5dd978['quantity']++:_0x2b589['push']({'type':_0x3196f6+'EmptyContainer','element':_0x1247b2,'quantity':0x1});}else _0x2b589['push']({'type':_0x3196f6+'Container','element':_0x8f5344});}}}}}['_resolveDescriptionItems'](_0x4002fa){const _0x24763f=this['_locale'],_0x45f7e0=[],_0x13dd3b=[],_0x5efdb9=[];for(const _0x1d4db8 of _0x4002fa)switch(_0x1d4db8['type']){case'text':if(_0x1d4db8['add']=_0x1d4db8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d4db8['remove']=_0x1d4db8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1d4db8['add']&&''!=_0x1d4db8['remove']){_0x45f7e0['push']({'type':'replace','content':o(_0x24763f,'REPLACE_TEXT',['\x22'+_0x1d4db8['remove']+'\x22','\x22'+_0x1d4db8['add']+'\x22'])});continue;}if(null!=_0x1d4db8['add']['match'](/^ +$/)){_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Insert:*\x20%0',o(_0x24763f,'ELEMENT_SPACE',_0x1d4db8['add']['length']))});continue;}if(null!=_0x1d4db8['remove']['match'](/^ +$/)){_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Remove:*\x20%0',o(_0x24763f,'ELEMENT_SPACE',_0x1d4db8['remove']['length']))});continue;}if(''!=_0x1d4db8['add']){_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Insert:*\x20%0','\x22'+_0x1d4db8['add']+'\x22')});continue;}_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Remove:*\x20%0','\x22'+_0x1d4db8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Insert:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Remove:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'addContainer':_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Split:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'removeContainer':_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Merge:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'addFormat':_0x13dd3b['push'](_0x1d4db8['key']);continue;case'removeFormat':_0x5efdb9['push'](_0x1d4db8['key']);continue;default:_0x45f7e0['push'](_0x1d4db8);}if(_0x13dd3b['length']){const _0x4bb32c=_0x13dd3b['map'](_0x18b9ff=>this['_attributeLabels']['has'](_0x18b9ff)?this['_attributeLabels']['get'](_0x18b9ff):_0x18b9ff)['join'](',\x20');_0x45f7e0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4bb32c)});}if(_0x5efdb9['length']){const _0x305c7e=_0x5efdb9['map'](_0x33683a=>this['_attributeLabels']['has'](_0x33683a)?this['_attributeLabels']['get'](_0x33683a):_0x33683a)['join'](',\x20');_0x45f7e0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x305c7e)});}return _0x45f7e0;}['_handleCustomCallbackDescription'](_0x288ddf){for(const _0xab44c of this['_customCallbacks']){const _0x14a609=_0xab44c(_0x288ddf);if(_0x14a609&&'type'in _0x14a609)return _0x14a609;}}['_handleAttributeSuggestionDescription'](_0x4a793d,_0x48dc69){const _0x23b4eb=_0x48dc69['data'],_0x52e588=void 0x0===_0x23b4eb['newValue']?'removeFormat':'addFormat';_0x4a793d['push']({'type':_0x52e588,'key':_0x23b4eb['key']});}['_handleRenameSuggestionDescription'](_0x5def8e,_0x4b1809){_0x5def8e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b1809['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1165e1,_0x4f3eeb,_0x235dd0){if(this['_addDescriptionItems'](_0x1165e1,_0x4f3eeb),_0x235dd0&&_0x235dd0['getFirstRange']()&&!_0x4f3eeb['getFirstRange']()['end']['isEqual'](_0x235dd0['getFirstRange']()['start'])){const _0x520566=_0x1165e1[_0x1165e1['length']-0x1],_0x497504='insertion'==_0x4f3eeb['type']?'add':'remove';_0x520566&&'text'==_0x520566['type']&&(_0x520566[_0x497504]+='\x0a');}}}class V extends _0x1d1013{['afterInit'](){const _0x1f5851=this['editor'],_0x4a47f9=_0x1f5851['plugins']['get']('TrackChangesEditing');_0x1f5851['commands']['get']('showAIAssistant')&&_0x4a47f9['enableCommand']('showAIAssistant');}}class U extends _0x1d1013{['afterInit'](){const _0xc25d=this['editor'],_0x16c557=_0xc25d['locale'];if(!_0xc25d['plugins']['has']('AlignmentEditing'))return;const _0x3a4a9e=_0xc25d['plugins']['get']('TrackChangesEditing');_0x3a4a9e['enableDefaultAttributesIntegration']('alignment'),_0x3a4a9e['registerBlockAttribute']('alignment'),_0x3a4a9e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x16c557,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a8654=this['editor'],_0x5dd842=_0x2a8654['locale'];_0x2a8654['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4537c5=>{if('formatBlock'!=_0x4537c5['type'])return;const {data:_0x26cdcc}=_0x4537c5;if(_0x26cdcc&&'alignment'==_0x26cdcc['commandName']){const _0x45788b=_0x26cdcc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5dd842,'*Format:*\x20%0',function(_0x3a6632){switch(_0x3a6632){case'left':return o(_0x5dd842,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5dd842,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5dd842,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5dd842,'FORMAT_JUSTIFY_TEXT');}}(_0x45788b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1d1013{['afterInit'](){const _0x3835df=this['editor'],_0x1ad038=_0x3835df['plugins']['get']('TrackChangesEditing'),_0x23a51a=_0x3835df['locale'];for(const _0x3a18d1 of ti){if(!_0x3835df['plugins']['has'](_0x3a18d1))continue;const _0x4233ba=_0x3a18d1['slice'](0x0,-0x7)['toLowerCase'](),_0xd2c54f='FORMAT_'+_0x4233ba['toUpperCase']();_0x1ad038['enableDefaultAttributesIntegration'](_0x4233ba),_0x1ad038['registerInlineAttribute'](_0x4233ba),_0x1ad038['descriptionFactory']['registerAttributeLabel'](_0x4233ba,o(_0x23a51a,_0xd2c54f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24cd6a=this['editor'],_0x4cfa52=_0x24cd6a['locale'],_0x53059a=_0x24cd6a['plugins']['get']('TrackChangesEditing');function _0x176b3f(_0x4e121c,_0x2569de){_0x53059a['descriptionFactory']['registerDescriptionCallback'](_0x57a004=>{if('formatInline'!=_0x57a004['type'])return;const {data:_0xee13b8}=_0x57a004;return _0xee13b8&&_0xee13b8['commandName']===_0x4e121c?_0xee13b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cfa52,'*Format:*\x20%0',_0x2569de)}:{'type':'format','content':o(_0x4cfa52,'*Remove\x20format:*\x20%0',_0x2569de)}:void 0x0;});}_0x176b3f('bold',o(_0x4cfa52,'FORMAT_BOLD')),_0x176b3f('italic',o(_0x4cfa52,'FORMAT_ITALIC')),_0x176b3f('underline',o(_0x4cfa52,'FORMAT_UNDERLINE')),_0x176b3f('code',o(_0x4cfa52,'FORMAT_CODE')),_0x176b3f('strikethrough',o(_0x4cfa52,'FORMAT_STRIKETHROUGH')),_0x176b3f('subscript',o(_0x4cfa52,'FORMAT_SUBSCRIPT')),_0x176b3f('superscript',o(_0x4cfa52,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1d1013{['afterInit'](){const _0x3033d0=this['editor'],_0x10e103=_0x3033d0['locale'];if(!_0x3033d0['plugins']['has']('BlockQuoteEditing'))return;const _0x44f1c6=_0x3033d0['plugins']['get']('TrackChangesEditing'),_0x41bd82=this['editor']['commands']['get']('blockQuote');_0x44f1c6['enableCommand']('blockQuote',(_0x5d7a67,_0x19f66a={})=>{const _0xdee148=this['editor']['model']['document']['selection'],_0x144db6=_0x19f66a&&void 0x0!==_0x19f66a['forceValue']?_0x19f66a['forceValue']:!_0x41bd82['value'];let _0x3437a4=[];if(_0x144db6){const _0x126bad=Array['from'](_0xdee148['getSelectedBlocks']())['filter'](_0x2afb02=>oo(_0x2afb02)||function(_0x2e9529,_0x54f807){const _0x1c06c4=_0x54f807['checkChild'](_0x2e9529['parent'],'blockQuote'),_0x2ebbc5=_0x54f807['checkChild'](['$root','blockQuote'],_0x2e9529);return _0x1c06c4&&_0x2ebbc5;}(_0x2afb02,this['editor']['model']['schema']));_0x3437a4=to(_0x126bad,_0x3033d0['model']);}else{const _0x36888f=Array['from'](_0xdee148['getSelectedBlocks']())['filter'](_0x4f8736=>oo(_0x4f8736));_0x3437a4=to(_0x36888f,_0x3033d0['model']);}_0x3033d0['model']['change'](()=>{for(const _0x5c98a9 of _0x3437a4)_0x44f1c6['markBlockFormat'](_0x5c98a9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x144db6}]});});}),_0x44f1c6['descriptionFactory']['registerDescriptionCallback'](_0x12630e=>{const {data:_0x4fbebc}=_0x12630e;if(_0x4fbebc&&'blockQuote'==_0x4fbebc['commandName']){const _0x4615c6=o(_0x10e103,'ELEMENT_BLOCK_QUOTE');return _0x4fbebc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10e103,'*Set\x20format:*\x20%0',_0x4615c6)}:{'type':'format','content':o(_0x10e103,'*Remove\x20format:*\x20%0',_0x4615c6)};}});}}function oo(_0x49be67){return'blockQuote'==_0x49be67['parent']['name'];}class L extends _0x1d1013{['afterInit'](){const _0x8f053=this['editor'];_0x8f053['plugins']['has']('CaseChange')&&(_0x8f053['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x8f053['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x8f053['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1d1013{['afterInit'](){const _0x2e65e6=this['editor'];_0x2e65e6['commands']['get']('ckbox')&&_0x2e65e6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1d1013{['afterInit'](){const _0x4b976c=this['editor'];if(!_0x4b976c['plugins']['has']('CodeBlock'))return;const _0x25fa88=_0x4b976c['plugins']['get']('TrackChangesEditing'),_0x5c91ac=_0x4b976c['locale'],_0x1a2295=_0x4b976c['config']['get']('codeBlock')['languages'],_0x2f2d19=_0x4b976c['commands']['get']('codeBlock');_0x25fa88['enableCommand']('indentCodeBlock'),_0x25fa88['enableCommand']('outdentCodeBlock'),_0x25fa88['enableCommand']('codeBlock',(_0x53da59,_0x203754={})=>{const _0x2a8b7d=_0x4b976c['model'],_0x19c530=_0x4b976c['model']['document']['selection'],_0x12a4e5=_0x203754&&void 0x0!==_0x203754['forceValue']?_0x203754['forceValue']:!_0x2f2d19['value'];let _0xc9066;_0x203754['language']||(_0x203754['language']=_0x1a2295[0x0]['language']),_0xc9066=_0x12a4e5?Array['from'](_0x19c530['getSelectedBlocks']())['filter'](_0xdfcde1=>eo(_0xdfcde1)||function(_0x16496d,_0x7c17d2){if(_0x16496d['is']('rootElement')||_0x7c17d2['isLimit'](_0x16496d))return!0x1;return _0x7c17d2['checkChild'](_0x16496d['parent'],'codeBlock');}(_0xdfcde1,_0x2a8b7d['schema'])):Array['from'](_0x19c530['getSelectedBlocks']())['filter'](_0xce766c=>eo(_0xce766c));const _0x3e1c53=to(_0xc9066,_0x2a8b7d);_0x2a8b7d['change'](()=>{for(const _0x153e42 of _0x3e1c53)_0x25fa88['markBlockFormat'](_0x153e42,{'commandName':'codeBlock','commandParams':[{..._0x203754,'forceValue':_0x12a4e5}],'formatGroupId':'blockName'});});}),(_0x25fa88['descriptionFactory']['registerElementLabel']('codeBlock',_0x34ee42=>o(_0x5c91ac,'ELEMENT_CODE_BLOCK',_0x34ee42)),_0x25fa88['descriptionFactory']['registerDescriptionCallback'](_0x4c2f3b=>{if('formatBlock'!=_0x4c2f3b['type'])return;const _0x386641=_0x5c91ac['t'],{data:_0x2d88d0}=_0x4c2f3b;if(!_0x2d88d0||'codeBlock'!=_0x2d88d0['commandName'])return;const _0x1a5ffb=_0x2d88d0['commandParams'][0x0]['language'],_0x1877f3=_0x386641(_0x1a2295['find'](_0x461a6f=>_0x461a6f['language']===_0x1a5ffb)['label'])['toLowerCase']();return _0x2d88d0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c91ac,'*Set\x20format:*\x20%0',o(_0x5c91ac,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1877f3+')')}:{'type':'format','content':o(_0x5c91ac,'*Remove\x20format:*\x20%0',o(_0x5c91ac,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xb8c867){return'codeBlock'==_0xb8c867['name'];}class q extends _0x1d1013{['afterInit'](){const _0x39ed65=this['editor'];if(!_0x39ed65['plugins']['has']('CommentsEditing'))return;_0x39ed65['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x38f2a6,_0x4c2c9e,_0x50eff1){const _0x1270cf=[];for(const _0x493c23 of _0x4c2c9e['getItems']())_0x493c23['hasAttribute'](_0x38f2a6)&&_0x1270cf['push'](_0x50eff1['createRangeOn'](_0x493c23));return _0x1270cf;}function _e(_0x1f8f07,_0x372c48,{showActiveMarker:_0x581102=!0x0}={}){const _0x3aee36=_0x1f8f07['plugins']['get']('TrackChangesEditing');return(_0x114fbf,_0x567fe6,_0x3502ed)=>{if(!_0x3502ed['consumable']['test'](_0x567fe6['markerRange'],_0x114fbf['name']))return;const _0x20b23b=_0x567fe6['markerRange']['getWalker'](),_0x43ba8d=_0x567fe6['markerRange']['start'],_0x5e7eb7=_0x1f8f07['model']['schema'];let _0x469ff2=null,_0xc74030=null,_0x40aeeb=!0x1,_0xac586e=!0x1;for(const _0x5d1bcd of _0x20b23b){const _0x5410f0=_0x5d1bcd['item'];_0x40aeeb=_0x40aeeb||_0x5e7eb7['isContent'](_0x5410f0);const _0x20062b=_0x3502ed['mapper']['toViewElement'](_0x5410f0);if(_0x20062b&&_0x20062b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d1bcd['type']&&(_0x5e7eb7['isBlock'](_0x5410f0)&&!_0x5e7eb7['isLimit'](_0x5410f0)&&(_0x5410f0['nextSibling']||_0x43ba8d['isAtEnd']?_0x469ff2&&_0x469ff2['parent']==_0x5410f0||(_0x469ff2=_0x5410f0,_0x47c8f4(_0x5d1bcd['previousPosition']),_0xac586e=!0x0):_0xc74030=_0xc74030||_0x5d1bcd['previousPosition']));}function _0x47c8f4(_0x1c5bc){const {authorId:_0x565e0d}=_0x3aee36['_splitMarkerName'](_0x567fe6['markerName']),_0x41174a=_0x3502ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x372c48,'data-author-id':_0x565e0d}),_0xb915c6=_0x3502ed['mapper']['toViewPosition'](_0x1c5bc);_0x581102&&_0x3aee36['activeMarkers']['includes'](_0x567fe6['markerName'])&&_0x3502ed['writer']['addClass']('ck-suggestion-marker--active',_0x41174a),_0x3502ed['writer']['insert'](_0xb915c6,_0x41174a),_0x3502ed['mapper']['bindElementToMarker'](_0x41174a,_0x567fe6['markerName']);}_0x40aeeb||_0xac586e||!_0xc74030||_0x47c8f4(_0xc74030);};}class z extends _0x1d1013{static get['requires'](){return[_0xf8fd26];}['init'](){const _0x547eb7=this['editor'],_0x4a2fc7=_0x547eb7['plugins']['get']('TrackChangesEditing');_0x4a2fc7['enableCommand']('delete');const _0x25764a=_0x547eb7['commands']['get']('deleteForward');_0x4a2fc7['enableCommand']('deleteForward',(_0x361e6e,_0x10779e={})=>{const _0x36ca63=_0x547eb7['model']['createSelection'](_0x547eb7['model']['document']['selection']);_0x36ca63['isCollapsed']&&_0x547eb7['model']['modifySelection'](_0x36ca63,{'direction':'forward','unit':_0x10779e['unit']});const _0x43fc80=_0x36ca63['getFirstRange'](),_0x280140=_0x4f83f9['fromRange'](_0x43fc80);let _0x4da045;_0x361e6e(_0x10779e),_0x4da045='$graveyard'==_0x280140['root']['rootName']?_0x547eb7['model']['createRange'](_0x43fc80['start']):_0x547eb7['model']['createRange'](_0x280140['start'],_0x280140['end']),_0x280140['detach'](),_0x547eb7['model']['enqueueChange'](_0x25764a['buffer']['batch'],_0x352873=>{_0x25764a['buffer']['lock'](),_0x352873['setSelection'](_0x352873['createRange'](_0x4da045['end'])),_0x25764a['buffer']['unlock']();});}),_0x547eb7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x547eb7,'merge'),{'priority':'high'}),_0x547eb7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x46366d,_0x3f7841,_0x5f1768)=>{_0x5f1768['options']['showSuggestionHighlights']&&_e(_0x547eb7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x46366d,_0x3f7841,_0x5f1768);},{'priority':'high'}),_0x547eb7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2f30ad,_0x4cc897,_0x434d55)=>{const _0x8e2373=_0x434d55['mapper']['markerNameToElements'](_0x4cc897['markerName']);if(_0x8e2373){for(const _0x5186e9 of _0x8e2373)_0x5186e9['is']('uiElement')&&(_0x434d55['mapper']['unbindElementFromMarkerName'](_0x5186e9,_0x4cc897['markerName']),_0x434d55['writer']['remove'](_0x5186e9));}},{'priority':'high'});}}class K extends _0x1d1013{['afterInit'](){const _0x5424f3=this['editor'];if(!_0x5424f3['plugins']['has']('ListEditing'))return;const _0x4173ea=_0x5424f3['locale'],_0x181e4f=_0x5424f3['plugins']['get']('TrackChangesEditing'),_0x11d9bd=_0x5424f3['plugins']['has']('TodoListEditing'),_0x33ecff=!!_0x5424f3['config']['get']('list.multiBlock');function _0x49eb86(_0x58c739){return{'type':'format','content':''+o(_0x4173ea,'*Set\x20format:*\x20%0',_0x58c739)};}function _0x14e022(_0x48ce01){return{'type':'format','content':''+o(_0x4173ea,'*Remove\x20format:*\x20%0',_0x48ce01)};}_0x181e4f['enableDefaultAttributesIntegration']('numberedList'),_0x181e4f['enableDefaultAttributesIntegration']('bulletedList'),_0x181e4f['enableDefaultAttributesIntegration']('customNumberedList'),_0x181e4f['enableDefaultAttributesIntegration']('customBulletedList'),_0x181e4f['enableDefaultAttributesIntegration']('indentList'),_0x181e4f['enableDefaultAttributesIntegration']('outdentList'),_0x181e4f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x181e4f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x181e4f['registerBlockAttribute']('listItemId'),_0x181e4f['registerBlockAttribute']('listType'),_0x181e4f['registerBlockAttribute']('listIndent'),_0x33ecff&&(_0x181e4f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x181e4f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x11d9bd&&(_0x181e4f['enableDefaultAttributesIntegration']('todoList'),_0x181e4f['enableDefaultAttributesIntegration']('checkTodoList'),_0x181e4f['registerBlockAttribute']('todoListChecked'),_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x475d3b=>{const {data:_0x34ace1}=_0x475d3b;if(_0x34ace1&&'todoListChecked'==_0x34ace1['key'])return{'type':'format','content':_0x34ace1['newValue']?o(_0x4173ea,'*Check\x20item*'):o(_0x4173ea,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1f7438=>{if(_0x1f7438['batch']['isUndo'])return!0x1;let _0x4289e1=!0x1;const _0x5a5485=_0x181e4f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1080cf=>'todoListChecked'===_0x181e4f['_getAttributeKey'](_0x1080cf));for(const _0x7ef3ef of _0x5a5485){'todo'!=_0x7ef3ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x181e4f['_findSuggestions'](_0x7ef3ef['getFirstRange'](),'attribute')['find'](_0x3b494d=>'listType'===_0x181e4f['_getAttributeKey'](_0x3b494d['suggestion']))||(_0x1f7438['removeMarker'](_0x7ef3ef['getFirstMarker']()),_0x4289e1=!0x0));}return _0x4289e1;})),_0x181e4f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4173ea,'FORMAT_INDENT'));const _0x5cd00f={'type':'format','content':''};_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x4f19ce=>{const {data:_0x5b5c7d}=_0x4f19ce;if(!_0x5b5c7d||'listType'!=_0x5b5c7d['key'])return;let _0x425d21=_0x4f19ce['head'];for(;_0x425d21;){if(_0x425d21['data']&&(('listStyle'==_0x425d21['data']['key']||'listMarkerStyle'==_0x425d21['data']['key'])&&(_0x425d21['data']['newValue']&&'default'!=_0x425d21['data']['newValue']||'default'!=_0x425d21['data']['oldValue']&&!_0x5b5c7d['newValue'])||!_0x33ecff&&_0x425d21['data']['key']==m))return _0x5cd00f;_0x425d21=_0x425d21['next'];}if(null==_0x5b5c7d['newValue'])switch(_0x5b5c7d['oldValue']){case'bulleted':return _0x14e022(o(_0x4173ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14e022(o(_0x4173ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14e022(o(_0x4173ea,'ELEMENT_TODO_LIST'));}switch(_0x5b5c7d['newValue']){case'bulleted':return _0x49eb86(o(_0x4173ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49eb86(o(_0x4173ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49eb86(o(_0x4173ea,'ELEMENT_TODO_LIST'));}}),_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x3917fa=>{const {data:_0x41d42f}=_0x3917fa;if(_0x41d42f&&'listIndent'==_0x41d42f['key'])return null==_0x41d42f['newValue']||null==_0x41d42f['oldValue']&&0x0==_0x41d42f['newValue']?_0x5cd00f:void 0x0;}),_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x3d0a2b=>{if('attribute'!=_0x3d0a2b['type'])return;const {data:_0x4623e8}=_0x3d0a2b;if(!_0x4623e8||'listItemId'!=_0x4623e8['key'])return;const _0x2bfe4a=Ee(_0x3d0a2b);return'newValue'==_0x2bfe4a?{'type':'format','content':o(_0x4173ea,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2bfe4a?{'type':'format','content':o(_0x4173ea,'*Split:*\x20list\x20item')}:_0x5cd00f;}),_0x5424f3['model']['document']['registerPostFixer'](_0x10c0a4=>this['listItemIdFixer'](_0x10c0a4)),_0x5424f3['model']['document']['registerPostFixer'](_0x52b4ce=>this['noTrackChangesFixer'](_0x52b4ce)),_0x5424f3['model']['document']['on']('change:data',(_0x130fd5,_0x347c95)=>{if(_0x347c95['isUndo']||!_0x347c95['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4b7369){if(_0x4b7369['batch']['isUndo']||!_0x4b7369['batch']['isLocal'])return!0x1;let _0x28c56b=!0x1;const _0x285bbf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50bddc=>_0x50bddc['data']&&'listItemId'==_0x50bddc['data']['key'])['filter'](_0x5397f2=>_0x5397f2['data']['newValue']&&_0x5397f2['data']['oldValue']);for(const _0x38980e of _0x285bbf)Ee(_0x38980e)||(_0x4b7369['removeMarker'](_0x38980e['getFirstMarker']()),_0x28c56b=!0x0);return _0x28c56b;}['noTrackChangesFixer'](_0x48d887){if(_0x48d887['batch']['isUndo']||!_0x48d887['batch']['isLocal'])return!0x1;const _0x1e14c0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e14c0['trackChangesCommand']['value'])return!0x1;let _0x52bc36=!0x1;const _0xd5867e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x201553=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x413387=>'attribute'==_0x413387['type'])['filter'](_0x4ebfba=>_0xd5867e['includes'](_0x4ebfba['attributeKey']));if(0x0==_0x201553['length'])return _0x52bc36;for(const _0x299ee3 of _0x201553){const _0x175c3a=_0x1e14c0['_findSuggestions'](_0x299ee3['range'],'attribute')['filter'](_0x580439=>!_0x580439['meta']['isNextTo'])['map'](_0x436c0c=>_0x436c0c['suggestion'])['filter'](_0x54b57c=>{const _0x43d56d=_0x1e14c0['_getAttributeKey'](_0x54b57c);return _0xd5867e['includes'](_0x43d56d);});if(_0x175c3a['length']){for(const _0x1906d1 of _0x175c3a)_0x48d887['removeMarker'](_0x1906d1['getFirstMarker']());_0x52bc36=!0x0;}}return _0x52bc36;}['assureChains'](){const _0x43f8e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f2b15=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x564bc9;const _0x5b50f2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21083b=>{if(_0x21083b['data']['oldRange']||!_0x21083b['data']['newRange'])return null;if(!_0x21083b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2563e5}=_0x43f8e4['_splitMarkerName'](_0x21083b['name']);if(!_0x43f8e4['hasSuggestion'](_0x2563e5))return null;const _0x5a7412=_0x43f8e4['getSuggestion'](_0x2563e5);return _0x5f2b15['includes'](_0x5a7412['data']['key']);})['map'](_0x1a2470=>{const {id:_0x2a6ce5}=_0x43f8e4['_splitMarkerName'](_0x1a2470['name']),_0x1ab67e=_0x43f8e4['getSuggestion'](_0x2a6ce5);return _0x564bc9=_0x1ab67e['attributes']['groupId'],_0x1ab67e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5b50f2['size'])return;const _0x5198ba=_0x43f8e4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14c1b6=>'attribute'==_0x14c1b6['type']&&_0x14c1b6['data']&&_0x5f2b15['includes'](_0x14c1b6['data']['key'])&&_0x14c1b6['attributes']['groupId']!=_0x564bc9)['map'](_0x4590cf=>({'listItem':_0x4590cf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4590cf['attributes']['groupId']})),_0x91f09f=new Set();for(const {groupId:_0x1fbb99,listItem:_0x4fa404}of _0x5198ba)_0x5b50f2['has'](_0x4fa404)&&_0x91f09f['add'](_0x1fbb99);for(const _0x3fe952 of _0x43f8e4['getSuggestions']())_0x91f09f['has'](_0x3fe952['attributes']['groupId'])&&_0x3fe952['setAttribute']('groupId',_0x564bc9);}['_supportLegacySuggestions'](){const _0x267459=this['editor'],_0x5aec1a=_0x267459['locale'],_0xde70d4=_0x267459['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xde70d4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x103f0d,_0xdc2706){const _0x297946=[];for(let _0x56efe3 of _0x103f0d)_0x56efe3['start']['nodeAfter']===_0x56efe3['end']['parent']&&(_0x56efe3=_0x267459['model']['createRange'](_0x267459['model']['createPositionAt'](_0x56efe3['start']['nodeAfter'],0x0))),_0x297946['push'](_0x56efe3);_0x267459['model']['change'](_0x3ac1fa=>{const _0x269ce8=_0x267459['model']['document']['selection'],_0x2f4abf=Array['from'](_0x269ce8['getRanges']())['map'](_0x22e3b9=>_0x4f83f9['fromRange'](_0x22e3b9));_0x3ac1fa['setSelection'](_0x297946),_0x267459['commands']['get'](_0xdc2706['commandName'])['refresh'](),_0xdc2706['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x267459['execute'](_0xdc2706['commandName'],..._0xdc2706['commandParams']),_0x3ac1fa['setSelection'](_0x2f4abf);for(const _0x4f2ff6 of _0x2f4abf)_0x4f2ff6['detach']();});}),_0xde70d4['descriptionFactory']['registerElementLabel'](function(_0x22e92f){const _0x838c00=!_0x267459['model']['schema']['isObject'](_0x22e92f),_0x220490=_0x22e92f['previousSibling'],_0xef7787=_0x22e92f['nextSibling'],_0x445482=_0x22e92f['getAttribute']('listItemId'),_0x4bbd4f=!_0x220490||_0x220490['getAttribute']('listItemId')!==_0x445482,_0x552d2f=!_0xef7787||_0xef7787['getAttribute']('listItemId')!==_0x445482;return _0x838c00&&Boolean(_0x445482)&&_0x4bbd4f&&_0x552d2f;},_0x3b2037=>o(_0x5aec1a,'ELEMENT_LIST_ITEM',_0x3b2037));}['_registerLegacyDescription'](){const _0x52e452=this['editor'],_0x1c5951=_0x52e452['locale'];function _0x3048bb(_0x172e41){const _0x45c5a1=_0x52e452['commands']['get']('bulletedList')['value'],_0x3202ea=_0x52e452['commands']['get']('numberedList')['value'];return'numberedList'===_0x172e41?_0x45c5a1:_0x3202ea;}_0x52e452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3c18c8){if('formatBlock'!=_0x3c18c8['type'])return;const {data:_0x17dc83}=_0x3c18c8;if(!_0x17dc83)return;let _0x5cfb1a,_0x148a12,_0x451cbe,_0x39a319;switch(_0x17dc83['commandName']){case'bulletedList':_0x451cbe=_0x17dc83['commandParams'][0x0]['forceValue'],_0x39a319=_0x3048bb(_0x17dc83['commandName']),_0x5cfb1a=_0x451cbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39a319&&_0x52e452['config']['get']('list.multiBlock')||(_0x5cfb1a='*Change\x20to:*\x20%0'),_0x148a12={'type':'format','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x451cbe=_0x17dc83['commandParams'][0x0]['forceValue'],_0x39a319=_0x3048bb(_0x17dc83['commandName']),_0x5cfb1a=_0x451cbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39a319&&_0x52e452['config']['get']('list.multiBlock')||(_0x5cfb1a='*Change\x20to:*\x20%0'),_0x148a12={'type':'format','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5cfb1a='*Indent:*\x20%0',_0x148a12={'type':'format','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5cfb1a=function(_0x1fe4d7){const _0x45c65a=_0x1fe4d7['getFirstRange']();let _0xecae1d=_0x45c65a['start']['nodeAfter'];for(;_0xecae1d&&_0x45c65a['containsItem'](_0xecae1d);){if(_0xecae1d['getAttribute']('listIndent')>0x0)return!0x1;_0xecae1d=_0xecae1d['nextSibling'];}return!0x0;}(_0x3c18c8)?o(_0x1c5951,'*Format:*\x20remove\x20from\x20%0',o(_0x1c5951,function(_0x2d2acc){return'ELEMENT_'+_0x2d2acc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3c18c8))):o(_0x1c5951,'*Outdent:*\x20%0',o(_0x1c5951,'ELEMENT_LIST_ITEM')),_0x148a12={'type':'format','content':_0x5cfb1a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x17dc83['multipleBlocks']&&(_0x5cfb1a='*Merge:*\x20%0',_0x148a12={'type':'deletion','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_LIST_ITEM'))});}return _0x148a12;});}}function Ee(_0x11c8ee){let _0x1d85c2=_0x11c8ee['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d85c2;){const _0x403644=_0x1d85c2['getAttribute']('listItemId');if(!_0x403644)return!0x1;if(_0x403644==_0x11c8ee['data']['newValue'])return'newValue';if(_0x403644==_0x11c8ee['data']['oldValue'])return'oldValue';_0x1d85c2=_0x1d85c2['previousSibling'];}return!0x1;}class pe extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xbcb7b6=this['editor']['config']['get']('list.properties'),_0x4e6e01=this['editor']['plugins']['get']('TrackChangesEditing');_0xbcb7b6['styles']&&(_0x4e6e01['enableDefaultAttributesIntegration']('listStyle'),_0x4e6e01['registerBlockAttribute']('listStyle')),_0xbcb7b6['reversed']&&(_0x4e6e01['enableDefaultAttributesIntegration']('listReversed'),_0x4e6e01['registerBlockAttribute']('listReversed')),_0xbcb7b6['startIndex']&&(_0x4e6e01['enableDefaultAttributesIntegration']('listStart'),_0x4e6e01['registerBlockAttribute']('listStart'));const _0x408a28={'type':'format','content':''};_0x4e6e01['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3cdc6d=this['editor']['locale'];_0x4e6e01['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3cdc6d,'FORMAT_LIST_REVERSED')),_0x4e6e01['descriptionFactory']['registerDescriptionCallback'](_0x3f5b89=>{const {data:_0x21392c}=_0x3f5b89;if(_0x21392c&&'listReversed'==_0x21392c['key'])return null==_0x21392c['newValue']||0x0==_0x21392c['newValue']&&null==_0x21392c['oldValue']?_0x408a28:void 0x0;}),_0x4e6e01['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3cdc6d,'FORMAT_LIST_START')),_0x4e6e01['descriptionFactory']['registerDescriptionCallback'](_0x3a7fe9=>{const {data:_0x4e6f0c}=_0x3a7fe9;if(_0x4e6f0c&&'listStart'==_0x4e6f0c['key'])return null==_0x4e6f0c['newValue']||0x1==_0x4e6f0c['newValue']&&null==_0x4e6f0c['oldValue']?_0x408a28:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa052d0=>{if(_0xa052d0['batch']['isUndo'])return!0x1;let _0xbae871=!0x1;const _0x1a0b65=_0x4e6e01['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b553a=>{const _0x118842=_0x4e6e01['_getAttributeKey'](_0x2b553a);return'listStart'==_0x118842||'listReversed'==_0x118842;});for(const _0x31e309 of _0x1a0b65){const _0x416986=_0x31e309['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x416986||'customNumbered'==_0x416986)continue;_0x4e6e01['_findSuggestions'](_0x31e309['getFirstRange'](),'attribute')['find'](_0x59123b=>'listType'==_0x4e6e01['_getAttributeKey'](_0x59123b['suggestion']))||(_0xa052d0['removeMarker'](_0x31e309['getFirstMarker']()),_0xbae871=!0x0);}return _0xbae871;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3247d2){const _0x5bb424=this['editor']['locale'],{data:_0x2dc2b8}=_0x3247d2,_0x5a3f46={'type':'format','content':''};if(!_0x2dc2b8||'listStyle'!=_0x2dc2b8['key'])return;if(!_0x2dc2b8['oldValue'])return'default'==_0x2dc2b8['newValue']?_0x5a3f46:{'type':'format','content':''+o(_0x5bb424,'*Set\x20format:*\x20%0',o(_0x5bb424,this['_getTranslationKeyForListStyle'](_0x2dc2b8['newValue'])))};if(!_0x2dc2b8['newValue']){if('default'==_0x2dc2b8['oldValue'])return _0x5a3f46;let _0x434746=_0x3247d2['head'];for(;_0x434746;){if(_0x434746['data']&&'listType'==_0x434746['data']['key']&&_0x434746['data']['newValue'])return _0x5a3f46;_0x434746=_0x434746['next'];}return{'type':'format','content':''+o(_0x5bb424,'*Remove\x20format:*\x20%0',o(_0x5bb424,this['_getTranslationKeyForListStyle'](_0x2dc2b8['oldValue'])))};}if('default'!=_0x2dc2b8['newValue'])return{'type':'format','content':''+o(_0x5bb424,'*Set\x20format:*\x20%0',o(_0x5bb424,this['_getTranslationKeyForListStyle'](_0x2dc2b8['newValue'])))};let _0x189f7c=_0x3247d2['head'];for(;_0x189f7c;){if(_0x189f7c['data']&&'listType'==_0x189f7c['data']['key']&&_0x189f7c['data']['newValue']&&_0x189f7c['data']['oldValue'])return _0x5a3f46;_0x189f7c=_0x189f7c['next'];}return{'type':'format','content':o(_0x5bb424,'*Set\x20format:*\x20%0',o(_0x5bb424,'ELEMENT_'+_0x3247d2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x153d6b=this['editor'],_0xf4b620=_0x153d6b['locale'];_0x153d6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x506358=>{if('formatBlock'!=_0x506358['type'])return;const {data:_0x487f36}=_0x506358;if(!_0x487f36)return;let _0x439339,_0x5e5d9d;switch(_0x487f36['commandName']){case'listStyle':_0x439339='*Change\x20to:*\x20%0',_0x5e5d9d={'type':'format','content':o(_0xf4b620,_0x439339,o(_0xf4b620,this['_getTranslationKeyForListStyle'](_0x487f36['commandParams'][0x0]['type'])))};break;case'listReversed':_0x439339=_0x487f36['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e5d9d={'type':'format','content':o(_0xf4b620,_0x439339)};break;case'listStart':_0x439339='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e5d9d={'type':'format','content':o(_0xf4b620,_0x439339,_0x487f36['commandParams'][0x0]['startIndex'])};}return _0x5e5d9d;});}['_getTranslationKeyForListStyle'](_0x62f903){return'ELEMENT_'+function(_0x41b3cf){if(ye['includes'](_0x41b3cf))return'bulleted';if(Se['includes'](_0x41b3cf))return'numbered';return null;}(_0x62f903)['toUpperCase']()+'_LIST_'+_0x62f903['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1d1013{static get['requires'](){return[_0x563a8e];}['init'](){const _0x5695a4=this['editor'],_0x3b26fc=_0x5695a4['plugins']['get']('TrackChangesEditing'),_0x23cd4f=_0x5695a4['commands']['get']('enter');_0x3b26fc['enableCommand']('enter',()=>{_0x5695a4['model']['change'](_0x5109e5=>{const _0x16f2e4=_0x5695a4['model']['document']['selection'],_0xaeeb3b=_0x16f2e4['getFirstPosition'](),_0x5c6cfe=_0x4f83f9['fromRange'](_0x16f2e4['getFirstRange']());if(_0x23cd4f['enterBlock'](_0x5109e5)){const _0x59045b=_0x5695a4['model']['createPositionAt'](_0xaeeb3b['parent']['nextSibling'],0x0),_0x1b384e=_0x5109e5['createRange'](_0xaeeb3b,_0x59045b);_0x3b26fc['markInsertion'](_0x1b384e);}else _0x5109e5['setSelection'](_0x5109e5['createRange'](_0x5c6cfe['end']));_0x5c6cfe['detach'](),_0x23cd4f['fire']('afterExecute',{'writer':_0x5109e5});});}),_0x5695a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5695a4,'split'),{'priority':'high'}),_0x5695a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2de5ed,_0xab189b,_0x232703)=>{const _0x474e96=_0x232703['mapper']['markerNameToElements'](_0xab189b['markerName']);if(_0x474e96){for(const _0x29f1b1 of _0x474e96)_0x29f1b1['hasClass']('ck-suggestion-marker-split')&&(_0x232703['mapper']['unbindElementFromMarkerName'](_0x29f1b1,_0xab189b['markerName']),_0x232703['writer']['remove'](_0x29f1b1));}},{'priority':'high'}),_0x5695a4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4bb584,_0x2b3556,_0x18acc4)=>{_0x18acc4['options']['showSuggestionHighlights']&&_e(_0x5695a4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4bb584,_0x2b3556,_0x18acc4);},{'priority':'high'});}}class X extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11b0d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x11b0d2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11b0d2['enableCommand']('findNext'),_0x11b0d2['enableCommand']('findPrevious'),_0x11b0d2['enableCommand']('replace'),_0x11b0d2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1ce067,_0x3afe26,_0x479e7e={}){const _0x518535=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1ce067(_0x2cc2da=>{let _0x3b4e59=('string'==typeof _0x3afe26?_0x518535['findByTextCallback'](_0x3afe26,_0x479e7e):_0x3afe26)(_0x2cc2da);Array['isArray'](_0x3b4e59)&&(_0x3b4e59={'results':_0x3b4e59,'searchText':'string'==typeof _0x3afe26?_0x3afe26:''});const _0x742da8=_0x3b4e59['results']['filter'](_0x5ec4d1=>!0x1===this['_isInDeletionRange'](_0x5ec4d1,_0x2cc2da['item']));return{..._0x3b4e59,'results':_0x742da8};},_0x479e7e);}['_isInDeletionRange'](_0x5d4cc4,_0x422097){const _0x598340=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x422097,_0x5d4cc4['start']),this['editor']['model']['createPositionAt'](_0x422097,_0x5d4cc4['end']));for(const _0x32ce49 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x598340['getIntersection'](_0x32ce49['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x1d1013{['afterInit'](){const _0x6a3231=this['editor']['locale'],_0x48327c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x470a7a,commandName:_0xd4e6fc}of ro)this['editor']['plugins']['has'](_0x470a7a)&&(_0x48327c['enableDefaultAttributesIntegration'](_0xd4e6fc),_0x48327c['registerInlineAttribute'](_0xd4e6fc));_0x48327c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6a3231,'FORMAT_FONT_SIZE')),_0x48327c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6a3231,'FORMAT_FONT_FAMILY')),_0x48327c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6a3231,'FORMAT_FONT_COLOR')),_0x48327c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6a3231,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e866=this['editor'],_0x21438d=_0x56e866['locale'];_0x56e866['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351568=>{const _0x2b2857=_0x21438d['t'];if('formatInline'!=_0x351568['type'])return;const {data:_0x54b5f4}=_0x351568;if(null!=_0x54b5f4){if('fontSize'==_0x54b5f4['commandName']){const _0x1c00e8=_0x54b5f4['commandParams'][0x0]['value'];if(_0x1c00e8){const _0x5d1663=_0x2b2857(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2c2c98=>_0x2c2c98['model']==_0x1c00e8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x21438d,'*Set\x20font\x20size:*\x20%0',_0x5d1663)};}return{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x54b5f4['commandName']){const _0x15ac19=_0x54b5f4['commandParams'][0x0]['value'];return _0x15ac19?{'type':'format','content':o(_0x21438d,'*Set\x20font\x20family:*\x20%0',_0x15ac19)}:{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x54b5f4['commandName']){const _0x5c3288=_0x54b5f4['commandParams'][0x0]['value'];if(_0x5c3288){const _0x4f0f63=_0x1b5af7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6480f6=>_0x6480f6['model']==_0x5c3288);let _0x2e171a=_0x5c3288,_0x5781fa='';return _0x4f0f63&&(_0x2e171a=_0x4f0f63['label'],_0x5781fa=_0x2b2857(_0x2e171a)['toLowerCase']()),{'type':'format','content':o(_0x21438d,'*Set\x20font\x20color:*\x20%0',_0x5781fa)['trim'](),'color':{'value':_0x5c3288,'title':_0x5781fa||_0x2e171a}};}return{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x54b5f4['commandName']){const _0x330e0a=_0x54b5f4['commandParams'][0x0]['value'];if(_0x330e0a){const _0x307382=_0x1b5af7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10efea=>_0x10efea['model']==_0x330e0a);let _0x3fc947=_0x330e0a,_0x379ea6='';return _0x307382&&(_0x3fc947=_0x307382['label'],_0x379ea6=_0x2b2857(_0x3fc947)['toLowerCase']()),{'type':'format','content':o(_0x21438d,'*Set\x20font\x20background\x20color:*\x20%0',_0x379ea6)['trim'](),'color':{'value':_0x330e0a,'title':_0x379ea6||_0x3fc947}};}return{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1d1013{['afterInit'](){const _0x49b4ff=this['editor'],_0x45d5a4=_0x49b4ff['plugins']['get']('TrackChangesEditing'),_0x391361=_0x49b4ff['commands']['get']('copyFormat'),_0x136fcc=_0x49b4ff['commands']['get']('pasteFormat');_0x391361&&_0x136fcc&&(_0x45d5a4['enableDefaultAttributesIntegration']('pasteFormat'),_0x45d5a4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d2549=this['editor'],_0xbd76ea=_0x1d2549['locale'];_0x1d2549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ed8a=>{if('formatBlock'!=_0x20ed8a['type']&&'formatInline'!=_0x20ed8a['type'])return;const {data:_0x3f1773}=_0x20ed8a;if(_0x3f1773&&'pasteFormat'===_0x3f1773['commandName']){const _0x575eee=[],_0x24e9be=_0x3f1773['commandParams'][0x0];for(const [_0x5e820f,_0x3335c2]of Object['entries'](_0x24e9be))_0x575eee['push'](so(_0x1d2549,_0x5e820f,_0x3335c2));return _0x575eee['length']?{'type':'format','content':o(_0xbd76ea,'*Set\x20format\x20to:*\x20%0',_0x575eee['join'](',\x20'))}:{'type':'format','content':o(_0xbd76ea,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1e22ff,_0x4d48d2,_0xaeafe4){const _0x5a41a6=_0x1e22ff['locale']['t'],_0x23d15f=_0x4d48d2['split'](/(?=[A-Z])/)['join']('\x20'),_0x55ab2f=_0x5a41a6(_0x23d15f['charAt'](0x0)['toUpperCase']()+_0x23d15f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xaeafe4)return _0x55ab2f;if('fontColor'===_0x4d48d2||'fontBackgroundColor'===_0x4d48d2){const _0x1e7bc7=_0x1b5af7(_0x1e22ff['config']['get']('fontColor.colors'))['find'](_0x25bed8=>_0x25bed8['model']==_0xaeafe4);return _0x55ab2f+'\x20('+(_0x1e7bc7?_0x5a41a6(_0x1e7bc7['label'])['toLowerCase']():_0xaeafe4)+')';}if('fontSize'===_0x4d48d2&&isNaN(parseFloat(_0xaeafe4))){const _0x294a76=_0x1e22ff['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1e22ff['config']['get']('fontSize.options'))['find'](_0x100673=>_0x100673['model']==_0xaeafe4);return _0x55ab2f+'\x20('+(_0x294a76?_0x5a41a6(_0x294a76['title'])['toLowerCase']():_0xaeafe4)+')';}return _0x55ab2f+'\x20('+_0xaeafe4+')';}class tt extends _0x1d1013{['_headingOptions'];['afterInit'](){const _0x1314fb=this['editor'];if(!_0x1314fb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1314fb['config']['get']('heading.options');const _0x4c927c=_0x1314fb['locale'],_0x39af12=_0x1314fb['plugins']['get']('TrackChangesEditing');_0x39af12['enableDefaultAttributesIntegration']('heading');for(const _0x32db85 of this['_headingOptions'])'paragraph'!=_0x32db85['model']&&_0x39af12['descriptionFactory']['registerElementLabel'](_0x32db85['model'],_0x4770c6=>{const _0x1eb9cd=this['_getHeadingLevel'](_0x32db85['model']);return null!==_0x1eb9cd?_0x364980(_0x4770c6,_0x1eb9cd):_0x1b70d0(_0x4770c6,_0x32db85['title']);});function _0x364980(_0x48cfa1,_0x2744d5){return o(_0x4c927c,'ELEMENT_HEADING',[_0x48cfa1,_0x2744d5]);}function _0x1b70d0(_0x4ff9f4,_0x23880e){return o(_0x4c927c,'ELEMENT_HEADING_CUSTOM',[_0x4ff9f4,_0x23880e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432ebc=this['editor'],_0x348538=_0x432ebc['locale'];function _0x331a6f(_0x3d4bc9,_0x2499f9){return o(_0x348538,'ELEMENT_HEADING_CUSTOM',[_0x3d4bc9,_0x2499f9]);}_0x432ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x80fd11=>{if('formatBlock'!=_0x80fd11['type'])return;const {data:_0x16e8dc}=_0x80fd11;if(_0x16e8dc&&'heading'==_0x16e8dc['commandName']){const _0x301e2e=_0x16e8dc['commandParams'][0x0]['value'],_0x1d0d61=this['_getHeadingLevel'](_0x301e2e);if(null!==_0x1d0d61)return{'type':'format','content':o(_0x348538,'*Change\x20to:*\x20%0',(_0x580e96=0x1,_0x42c85f=_0x1d0d61,o(_0x348538,'ELEMENT_HEADING',[_0x580e96,_0x42c85f])))};const _0x46ac3e=this['_headingOptions']['find'](_0x4ab8a6=>_0x4ab8a6['model']===_0x301e2e)['title'];return{'type':'format','content':o(_0x348538,'*Change\x20to:*\x20%0',_0x331a6f(0x1,_0x46ac3e))};}var _0x580e96,_0x42c85f;});}['_getHeadingLevel'](_0xddc8c4){const _0x2df0b1=_0xddc8c4['match'](/^heading(\d+)/);if(_0x2df0b1)return _0x2df0b1[0x1];const _0x21279e=this['_headingOptions']?.['find'](_0x39a8a6=>_0x39a8a6['model']==_0xddc8c4);if(_0x21279e&&_0x21279e['view']){const _0x24c2f0=_0x21279e['view'],_0x165492=(_0x24c2f0['name']??_0x24c2f0)['match'](/^h(\d+)/);if(_0x165492)return _0x165492[0x1];}return null;}}class et extends _0x1d1013{['afterInit'](){const _0x2c8d0d=this['editor'];if(!_0x2c8d0d['plugins']['has']('HighlightEditing'))return;const _0x4b6382=_0x2c8d0d['plugins']['get']('TrackChangesEditing'),_0x2e4c4a=_0x2c8d0d['locale'];_0x4b6382['enableDefaultAttributesIntegration']('highlight'),_0x4b6382['registerInlineAttribute']('highlight'),_0x4b6382['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2e4c4a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e4cb3=this['editor'],_0x431893=_0x5e4cb3['locale'];_0x5e4cb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1517=>{if('formatInline'!=_0x5e1517['type'])return;const {data:_0x58d5c4}=_0x5e1517;if(_0x58d5c4&&'highlight'==_0x58d5c4['commandName']){const _0x9d2d92=_0x431893['t'],_0x10ec41=_0x58d5c4['commandParams'][0x0]['value'];if(_0x10ec41){const _0x576e96=_0x5e4cb3['config']['get']('highlight.options')['find'](_0x1686ac=>_0x1686ac['model']==_0x10ec41),_0x5b76ad=_0x9d2d92(_0x576e96['title'])['toLowerCase']();return{'type':'format','content':o(_0x431893,'*Set\x20highlight:*\x20%0',_0x5b76ad),'color':{'value':_0x576e96['color'],'title':_0x576e96['title']}};}return{'type':'format','content':o(_0x431893,'*Remove\x20highlight*',o(_0x431893,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1d1013{['afterInit'](){const _0x335217=this['editor'];if(!_0x335217['plugins']['has']('HorizontalLineEditing'))return;_0x335217['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x395a00=_0x335217['plugins']['get']('TrackChangesEditing'),_0x139acc=_0x335217['locale'];_0x395a00['descriptionFactory']['registerElementLabel']('horizontalLine',_0x242303=>o(_0x139acc,'ELEMENT_HORIZONTAL_LINE',_0x242303)),_0x335217['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5801d7,{writer:_0x4ea48b,options:_0x4c4ded})=>{if(!_0x4c4ded['showSuggestionHighlights'])return null;const _0xc07712=_0x4ea48b['createContainerElement']('div'),_0x10be37=_0x4ea48b['createEmptyElement']('hr');return _0x4ea48b['addClass']('ck-horizontal-line',_0xc07712),_0x4ea48b['insert'](_0x4ea48b['createPositionAt'](_0xc07712,0x0),_0x10be37),_0xc07712;},'converterPriority':'high'});}}class st extends _0x1d1013{['afterInit'](){const _0x50d40d=this['editor'];if(!_0x50d40d['plugins']['has']('HtmlEmbed'))return;const _0x27f752=_0x50d40d['plugins']['get']('TrackChangesEditing'),_0x57f107=_0x50d40d['locale'];_0x27f752['descriptionFactory']['registerElementLabel']('rawHtml',_0x4101e1=>o(_0x57f107,'ELEMENT_HTML_EMBED',_0x4101e1)),_0x27f752['enableDefaultAttributesIntegration']('htmlEmbed'),_0x27f752['registerBlockAttribute']('value'),_0x27f752['descriptionFactory']['registerDescriptionCallback'](_0x56768a=>{if('attribute'!=_0x56768a['type'])return;const {data:_0x207eed}=_0x56768a;if(_0x207eed&&'value'==_0x207eed['key']&&_0x56768a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2cb712=o(_0x57f107,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x57f107,'*Change\x20%0\x20content*',_0x2cb712)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bf082=this['editor'],_0x557083=_0x5bf082['locale'];_0x5bf082['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21bd6a=>{if('formatBlock'!=_0x21bd6a['type'])return;const {data:_0x3890fc}=_0x21bd6a;if(_0x3890fc&&'htmlEmbed'==_0x3890fc['commandName']){const _0x460b06=o(_0x557083,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x557083,'*Change\x20%0\x20content*',_0x460b06)};}});}}class nt extends _0x1d1013{['afterInit'](){const _0x38cc37=this['editor'];if(!_0x38cc37['plugins']['has']('ImageEditing'))return;const _0x862b55=_0x38cc37['plugins']['get']('TrackChangesEditing'),_0x296dc9=_0x38cc37['plugins']['get']('ImageUtils'),_0x50ccb1=_0x38cc37['locale'];_0x862b55['enableCommand']('insertImage'),_0x862b55['descriptionFactory']['registerElementLabel']('imageBlock',_0xbf5b5a=>o(_0x50ccb1,'ELEMENT_IMAGE',_0xbf5b5a)),_0x862b55['descriptionFactory']['registerElementLabel']('imageInline',_0x14f767=>o(_0x50ccb1,'ELEMENT_INLINE_IMAGE',_0x14f767)),_0x862b55['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x50ccb1,'ELEMENT_CAPTION')),_0x38cc37['plugins']['has']('ImageUploadEditing')&&_0x862b55['enableCommand']('uploadImage'),_0x38cc37['plugins']['has']('ImageBlockEditing')&&_0x38cc37['plugins']['has']('ImageInlineEditing')&&(_0x862b55['enableCommand']('imageTypeInline',(_0x2a953e,_0x5062e5)=>{const _0xfd828c=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']);_0x38cc37['model']['change'](()=>{_0x862b55['markBlockFormat'](_0xfd828c,{'commandName':'imageTypeInline','commandParams':[_0x5062e5]},[],'convertBlockImageToInline');});}),_0x862b55['enableCommand']('imageTypeBlock',(_0x29c46d,_0x5a36cd)=>{_0x38cc37['model']['change'](_0x1a5eb7=>{let _0x3fbbcb=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x596f26=_0x1a5eb7['createRangeOn'](_0x3fbbcb);const _0x15e103=_0x50c72e['fromPosition'](_0x596f26['start'],'toPrevious'),_0x59725c=_0x50c72e['fromPosition'](_0x596f26['end'],'toNext');_0x862b55['forceDefaultExecution'](()=>_0x29c46d(_0x5a36cd)),_0x3fbbcb=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x596f26=_0x1a5eb7['createRangeOn'](_0x3fbbcb);const _0x308212=_0x1a5eb7['createRange'](_0x15e103,_0x59725c);_0x15e103['detach'](),_0x59725c['detach'](),_0x862b55['markBlockFormat'](_0x3fbbcb,{'commandName':'imageTypeInline','commandParams':[_0x5a36cd]},[],'convertInlineImageToBlock'),_0x308212['start']['isBefore'](_0x596f26['start'])&&_0x862b55['markInsertion'](_0x1a5eb7['createRange'](_0x308212['start'],_0x596f26['start']),'convertInlineImageToBlock'),_0x596f26['end']['isBefore'](_0x308212['end'])&&_0x862b55['markInsertion'](_0x1a5eb7['createRange'](_0x596f26['end'],_0x308212['end']),'convertInlineImageToBlock');});}),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x862b55['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1276a3])=>{const _0x55f6e8=_0x862b55['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4b1978=_0x1276a3['start'],_0x5e4d2c=_0x1276a3['end'];const _0x1e68b5=_0x38cc37['model']['schema']['getNearestSelectionRange'](_0x4b1978,'backward'),_0x17a8dd=_0x38cc37['model']['schema']['getNearestSelectionRange'](_0x5e4d2c,'forward');_0x1e68b5['isCollapsed']&&(_0x4b1978=_0x1e68b5['start']),_0x17a8dd['isCollapsed']&&(_0x5e4d2c=_0x17a8dd['end']),_0x55f6e8([_0x38cc37['model']['createRange'](_0x4b1978,_0x5e4d2c)]);}),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x10fed9),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x10fed9)),_0x38cc37['plugins']['has']('ImageCaptionEditing')&&(_0x862b55['enableCommand']('toggleImageCaption',(_0x3b2d2a,_0x2db70f)=>{const _0x2cfbba=_0x38cc37['plugins']['get']('ImageCaptionUtils');let _0x4a6a88=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x57921b=_0x2cfbba['getCaptionFromImageModelElement'](_0x4a6a88);_0x38cc37['model']['change'](()=>{if(_0x57921b)return void _0x862b55['markDeletion'](_0x38cc37['model']['createRangeOn'](_0x57921b));const _0x2224f8=_0x296dc9['isBlockImage'](_0x4a6a88);_0x3b2d2a(_0x2db70f),_0x4a6a88=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x57921b=_0x2cfbba['getCaptionFromImageModelElement'](_0x4a6a88),_0x862b55['markInsertion'](_0x38cc37['model']['createRangeOn'](_0x57921b),_0x2224f8?null:'imageCaption');});}),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x10fed9));const _0x18095=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13f324(_0x1bd5ec,_0x54a532){const _0x238261=_0x18095['findIndex'](({type:_0x1ffb4a,subType:_0x24889d})=>_0x1bd5ec['type']==_0x1ffb4a&&_0x1bd5ec['subType']==_0x24889d),_0x4a9d1f=_0x18095['findIndex'](({type:_0x3e33b2,subType:_0x1b12b0})=>_0x54a532['type']==_0x3e33b2&&_0x54a532['subType']==_0x1b12b0);if(_0x238261<0x0||_0x4a9d1f<0x0)return!0x1;const _0x4227c7=_0x1bd5ec['getFirstRange'](),_0x54148e=_0x54a532['getFirstRange']();if((0x0==_0x238261||0x1==_0x238261)&&0x2==_0x4a9d1f&&_0x4227c7['isIntersecting'](_0x54148e))return!0x0;if(0x2==_0x238261&&0x3==_0x4a9d1f){const _0x202190=_0x862b55['_findSuggestions'](_0x4227c7,'insertion')['filter'](({suggestion:_0x4a80e3,meta:_0x32b667})=>_0x32b667['isOwn']&&'convertInlineImageToBlock'==_0x4a80e3['subType']);if(_0x202190['length']>0x1&&_0x54148e['end']['isEqual'](_0x4227c7['start']))return!0x0;if(0x1==_0x202190['length']&&(_0x4227c7['start']['isEqual'](_0x54148e['end'])||_0x4227c7['end']['isEqual'](_0x54148e['start'])))return!0x0;}if(0x3==_0x238261&&0x3==_0x4a9d1f&&_0x4227c7['start']['isBefore'](_0x54148e['start'])){const _0x3514fa=_0x4227c7['end']['nodeAfter'],_0x4473a8=_0x54148e['start']['nodeBefore'];return _0x296dc9['isBlockImage'](_0x3514fa)&&_0x3514fa===_0x4473a8;}return!0x1;}function _0x10fed9(_0x3ea44f,_0x34f17d){return _0x13f324(_0x3ea44f,_0x34f17d)?[_0x3ea44f,_0x34f17d]:_0x13f324(_0x34f17d,_0x3ea44f)?[_0x34f17d,_0x3ea44f]:null;}_0x38cc37['plugins']['has']('ImageResize')&&(_0x862b55['enableDefaultAttributesIntegration']('resizeImage'),_0x862b55['registerBlockAttribute']('resizedWidth'),_0x862b55['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x50ccb1,'FORMAT_IMAGE_SIZE'))),_0x38cc37['plugins']['has']('ImageTextAlternativeEditing')&&(_0x862b55['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x862b55['registerBlockAttribute']('alt')),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x39b79c=>{if(!!_0x18095['find'](({type:_0x5ec747,subType:_0x21defc})=>_0x39b79c['type']==_0x5ec747&&_0x39b79c['subType']==_0x21defc))return _0x39b79c['previous']?{}:void 0x0;}),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x3ee105=>{if('insertion'==_0x3ee105['type']||'deletion'==_0x3ee105['type']){const _0x4b0910=_0x3ee105['getContainedElement']();if(_0x4b0910&&_0x4b0910['is']('element','caption'))return{'type':'insertion'==_0x3ee105['type']?'addObject':'removeObject','element':_0x4b0910,'quantity':0x1};}}),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x11d1a8=>'formatBlock'==_0x11d1a8['type']&&'convertInlineImageToBlock'==_0x11d1a8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11d1a8['type']&&'convertBlockImageToInline'==_0x11d1a8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x3758c1=>{if('attribute'!=_0x3758c1['type'])return;const {data:_0x2e97bc}=_0x3758c1;if(!_0x2e97bc||'alt'!=_0x2e97bc['key'])return;const _0x2add21=_0x2e97bc['newValue'];return _0x2add21?{'type':'format','content':o(_0x50ccb1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2add21+'\x22')}:{'type':'format','content':o(_0x50ccb1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59a9af=this['editor'],_0x5ad34f=_0x59a9af['locale'];_0x59a9af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2fcb=>{if('formatBlock'!=_0x1c2fcb['type']&&'formatInline'!=_0x1c2fcb['type'])return;const {data:_0x502bf1}=_0x1c2fcb;if(_0x502bf1){if('imageTextAlternative'==_0x502bf1['commandName']){const _0x850a73=_0x502bf1['commandParams'][0x0]['newValue'];return _0x850a73?{'type':'format','content':o(_0x5ad34f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x850a73+'\x22')}:{'type':'format','content':o(_0x5ad34f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x502bf1['commandName']){const _0x9284e3=_0x502bf1['commandParams'][0x0]['width'];return _0x9284e3?{'type':'format','content':o(_0x5ad34f,'*Set\x20image\x20width:*\x20%0',_0x9284e3)}:{'type':'format','content':o(_0x5ad34f,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x17039e=this['editor']['locale'],_0x1606d6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1606d6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1606d6['registerBlockAttribute']('src'),_0x1606d6['descriptionFactory']['registerDescriptionCallback'](_0x15bbb9=>{if('attribute'!=_0x15bbb9['type'])return;const {data:_0x20c2bc}=_0x15bbb9;return _0x20c2bc&&'src'==_0x20c2bc['key']?_0x20c2bc['newValue']&&_0x20c2bc['oldValue']?{'type':'format','content':o(_0x17039e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55756b=this['editor']['plugins']['get']('TrackChangesEditing');_0x55756b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x55756b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55756b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x55756b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x395c6e=this['editor'],_0x463c4a=_0x395c6e['locale'];_0x395c6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24ef7f=>{if('formatBlock'!=_0x24ef7f['type']&&'formatInline'!=_0x24ef7f['type'])return;const {data:_0x56f0d2}=_0x24ef7f;if(!_0x56f0d2||'replaceImageSource'!=_0x56f0d2['commandName'])return;return{'type':'format','content':o(_0x463c4a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1d1013{['afterInit'](){const _0x3cc5e8=this['editor'];if(!_0x3cc5e8['plugins']['has']('ImageStyleEditing'))return;const _0x42bf63=_0x3cc5e8['plugins']['get']('TrackChangesEditing'),_0x46b015=_0x3cc5e8['plugins']['get']('ImageUtils'),_0x190f86={};_0x42bf63['enableCommand']('imageStyle',(_0xa0ef87,_0x48683a)=>{const _0x119a4a=_0x3cc5e8['plugins']['get']('Users')['me'],_0x529876=_0x3cc5e8['commands']['get']('imageStyle');let _0x60f8c=_0x46b015['getClosestSelectedImageElement'](_0x3cc5e8['model']['document']['selection']),_0x804152=_0x3cc5e8['model']['createRangeOn'](_0x60f8c),_0x1da47d=_0x529876['value'];if(_0x1da47d==_0x48683a['value'])return;const _0x6dcfdc={'commandName':'imageStyle','commandParams':[_0x48683a],'formatGroupId':_0x338779()};_0x3cc5e8['model']['change'](()=>{if(_0x42bf63['getSuggestions']()['filter'](_0x4b7829=>_0x4b7829['isInContent']&&_0x119a4a==_0x4b7829['author']&&('formatBlock'==_0x4b7829['type']||'formatInline'==_0x4b7829['type'])&&('imageStylePreApply'==_0x4b7829['subType']||'imageStylePostApply'==_0x4b7829['subType'])&&_0x4b7829['getFirstRange']()['isEqual'](_0x804152))['forEach'](_0x503489=>_0x42bf63['discardSuggestion'](_0x503489['head'])),_0x60f8c=_0x46b015['getClosestSelectedImageElement'](_0x3cc5e8['model']['document']['selection']),_0x804152=_0x3cc5e8['model']['createRangeOn'](_0x60f8c),_0x529876['refresh'](),_0x3cc5e8['commands']['get']('imageTypeInline')['refresh'](),_0x3cc5e8['commands']['get']('imageTypeBlock')['refresh'](),_0x1da47d=_0x529876['value'],_0x1da47d!=_0x48683a['value'])return _0x46b015['isInlineImage'](_0x60f8c)&&_0x529876['shouldConvertImageType'](_0x48683a['value'],_0x60f8c)?(_0xa0ef87({..._0x48683a,'setImageSizes':!0x1}),_0x60f8c=_0x46b015['getClosestSelectedImageElement'](_0x3cc5e8['model']['document']['selection']),void _0x42bf63['markBlockFormat'](_0x60f8c,{..._0x6dcfdc,'commandReversedParams':[{'value':_0x1da47d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x46b015['isBlockImage'](_0x60f8c)?_0x42bf63['markBlockFormat'](_0x60f8c,_0x6dcfdc,[],'imageStylePostApply'):_0x42bf63['markInlineFormat'](_0x804152,_0x6dcfdc,'imageStylePostApply'));});});for(const _0x34bf83 of _0x3cc5e8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x190f86[_0x34bf83['name']]=_0x34bf83['title']['toLowerCase']();_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3eec48])=>{_0x46b015['setImageNaturalSizeAttributes'](_0x3eec48['getContainedElement']());}),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x183535,_0x13f2cc)=>{_0x42bf63['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x183535,{'commandName':_0x13f2cc['commandName'],'commandParams':_0x13f2cc['commandReversedParams']});}),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xd88dec,_0x157d3e){if(_0x1683b3(_0xd88dec,_0x157d3e))return[_0xd88dec,_0x157d3e];if(_0x1683b3(_0x157d3e,_0xd88dec))return[_0x157d3e,_0xd88dec];return null;});const _0x585351=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1683b3(_0x29a195,_0x470ca2){const _0x3c19a6=_0x585351['findIndex'](({type:_0xc79efb,subType:_0x19fce9})=>_0x29a195['type']==_0xc79efb&&_0x29a195['subType']==_0x19fce9),_0x565286=_0x585351['findIndex'](({type:_0x12a256,subType:_0x3dc2d9})=>_0x470ca2['type']==_0x12a256&&_0x470ca2['subType']==_0x3dc2d9);if(_0x3c19a6<0x0||_0x565286<0x0)return!0x1;const _0x1743b0=_0x29a195['getFirstRange'](),_0x56e127=_0x470ca2['getFirstRange']();if((0x0==_0x3c19a6||0x1==_0x3c19a6)&&0x2==_0x565286&&_0x1743b0['isIntersecting'](_0x56e127))return!0x0;if(0x2==_0x3c19a6&&0x3==_0x565286){const _0x593534=_0x42bf63['_findSuggestions'](_0x1743b0,'insertion')['filter'](({suggestion:_0x92454d,meta:_0x5ae3dc})=>_0x5ae3dc['isOwn']&&'convertInlineImageToBlock'==_0x92454d['subType']);if(_0x593534['length']>0x1&&_0x56e127['end']['isEqual'](_0x1743b0['start']))return!0x0;if(0x1==_0x593534['length']&&(_0x1743b0['start']['isEqual'](_0x56e127['end'])||_0x1743b0['end']['isEqual'](_0x56e127['start'])))return!0x0;}if(0x3==_0x3c19a6&&0x3==_0x565286&&_0x1743b0['start']['isBefore'](_0x56e127['start'])){const _0x1bfd43=_0x1743b0['end']['nodeAfter'],_0x3bee89=_0x56e127['start']['nodeBefore'];return _0x46b015['isBlockImage'](_0x1bfd43)&&_0x1bfd43===_0x3bee89;}return!0x1;}_0x3cc5e8['model']['document']['registerPostFixer'](()=>{let _0x38e53b=!0x1;const _0x2fd5e5=Array['from'](_0x3cc5e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48bfee,data:_0x1f1063}of _0x2fd5e5){const {group:_0x3a4dc4,type:_0x3b97b2,subType:_0x470578,id:_0x366f19}=_0x42bf63['_splitMarkerName'](_0x48bfee);if('suggestion'==_0x3a4dc4&&_0x42bf63['hasSuggestion'](_0x366f19)){if('formatBlock'==_0x3b97b2&&('imageStylePreApply'==_0x470578||'imageStylePostApply'==_0x470578)){const _0x3f1fcd=_0x42bf63['getSuggestion'](_0x366f19);if(_0x1f1063['newRange']){const _0x23730a=_0x3f1fcd['getFirstRange']()['getContainedElement']();if(_0x46b015['isBlockImage'](_0x23730a))continue;_0x42bf63['discardSuggestion'](_0x3f1fcd),_0x38e53b=!0x0;}}if('insertion'==_0x3b97b2&&'imageCaption'==_0x470578&&!_0x1f1063['newRange']){const _0x18ca24=_0x42bf63['getSuggestion'](_0x366f19);_0x18ca24['next']&&_0x18ca24['next']['isInContent']&&(_0x42bf63['discardSuggestion'](_0x18ca24['next']),_0x38e53b=!0x0);}}}return _0x38e53b;}),this['_registerLegacyDescription'](_0x190f86);}['_registerLegacyDescription'](_0xf961a5){const _0x45719c=this['editor'],_0xd289a7=_0x45719c['locale'];_0x45719c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29a4a1=>{if('formatBlock'!=_0x29a4a1['type']&&'formatInline'!=_0x29a4a1['type'])return;const {data:_0x45d2bf}=_0x29a4a1;if(!_0x45d2bf||'imageStyle'!=_0x45d2bf['commandName'])return;const _0x1ca340=_0x45d2bf['commandParams'][0x0]['value'];return _0x3d3711('side'===_0x1ca340?o(_0xd289a7,'FORMAT_SIDE_IMAGE'):_0xf961a5[_0x1ca340]||_0x1ca340);function _0x3d3711(_0x1ca4a6){return{'type':'format','content':o(_0xd289a7,'*Format:*\x20%0',_0x1ca4a6)};}});}}class at extends _0x1d1013{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4c3318){super(_0x4c3318),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x552e4d=this['editor'],_0xb62274=_0x552e4d['commands']['get']('importWord'),_0x14df8a=_0x552e4d['commands']['get']('trackChanges');_0xb62274&&(_0xb62274['on']('execute',(_0x1ba875,[,_0x527fe5])=>{this['_trackChangesValueDuringImport']=_0x14df8a['value'],_0x527fe5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb62274,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb62274,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x14df8a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x552e4d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3b9c24,_0x16d351){const {suggestions:_0x5c41ff}=_0x16d351,_0x1ee0fa=this['editor']['commands']['get']('trackChanges'),_0x1e1fd5=_0x1ee0fa['value'];this['_trackChangesValueDuringImport']!==_0x1e1fd5&&(_0x1ee0fa['execute'](),this['_trackChangesExecuted']=!0x0),_0x5c41ff&&_0x5c41ff['forEach'](({id:_0x46818c,type:_0x450b67,author:_0xa0db91,created_at:_0x20c61b})=>{const _0x243012={'id':_0x46818c,'type':_0x450b67,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa0db91,'createdAt':_0x20c61b?new Date(_0x20c61b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x243012);});}}class ct extends _0x1d1013{['afterInit'](){const _0x1fad66=this['editor'],_0x2d2576=_0x1fad66['plugins']['get']('TrackChangesEditing');if(_0x1fad66['plugins']['has']('IndentEditing')&&(_0x2d2576['enableCommand']('indent'),_0x2d2576['enableCommand']('outdent')),_0x1fad66['plugins']['has']('IndentBlock')){for(const _0x528e80 of['indentBlock','outdentBlock'])_0x2d2576['enableDefaultAttributesIntegration'](_0x528e80);}const _0x2574ec=_0x1fad66['locale'];_0x2d2576['registerBlockAttribute']('blockIndent'),_0x2d2576['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2574ec,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x384639=this['editor'],_0x2956d9=_0x384639['locale'],_0x33cae7=_0x384639['plugins']['get']('TrackChangesEditing');_0x33cae7['descriptionFactory']['registerDescriptionCallback'](_0x4511ce=>{if('formatBlock'!=_0x4511ce['type'])return;const {data:_0x56b86e}=_0x4511ce;if(!_0x56b86e)return;if('indentBlock'!=_0x56b86e['commandName']&&'outdentBlock'!=_0x56b86e['commandName'])return;const _0x547fc6=_0x4511ce['getItems']()[0x0],_0x58018e=_0x33cae7['descriptionFactory']['getItemLabel'](_0x547fc6);return'indentBlock'==_0x56b86e['commandName']?{'type':'format','content':o(_0x2956d9,'*Indent:*\x20%0',_0x58018e)}:'outdentBlock'==_0x56b86e['commandName']?{'type':'format','content':o(_0x2956d9,'*Outdent:*\x20%0',_0x58018e)}:void 0x0;});}}class ut extends _0x1d1013{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1d1013{['afterInit'](){const _0x5e13d0=this['editor'];if(!_0x5e13d0['plugins']['has']('LinkEditing'))return;const _0x1c3ea9=_0x5e13d0['plugins']['get']('TrackChangesEditing'),_0x57c553=_0x5e13d0['commands']['get']('link');_0x1c3ea9['enableDefaultAttributesIntegration']('link'),_0x1c3ea9['enableDefaultAttributesIntegration']('unlink'),_0x1c3ea9['registerInlineAttribute']('linkHref');for(const _0x304d68 of _0x57c553['manualDecorators'])_0x1c3ea9['registerInlineAttribute'](_0x304d68['id']),_0x1c3ea9['descriptionFactory']['registerAttributeLabel'](_0x304d68['id'],'link\x20('+_0x304d68['label']['toLowerCase']()+')');_0x1c3ea9['descriptionFactory']['registerDescriptionCallback'](_0x4ee041=>{if('attribute'!=_0x4ee041['type'])return;const {data:_0x4a5977}=_0x4ee041;if(!_0x4a5977||'linkHref'!=_0x4a5977['key'])return;const _0x4d730a=_0x4a5977['newValue'],_0xc0db4=_0x5e13d0['locale'];return{'type':'format','content':null==_0x4d730a?o(_0xc0db4,'*Remove\x20link*'):o(_0xc0db4,'*Set\x20link:*\x20%0','\x22'+_0x4d730a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x456662=this['editor'],_0x478388=_0x456662['locale'];_0x456662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a102=>{if('formatInline'!=_0x34a102['type'])return;const {data:_0x538f6c}=_0x34a102;if(_0x538f6c){if('link'==_0x538f6c['commandName']){const _0x440b8f=_0x538f6c['commandParams'][0x0];return{'type':'format','content':o(_0x478388,'*Set\x20link:*\x20%0','\x22'+_0x440b8f+'\x22')};}return'unlink'==_0x538f6c['commandName']?{'type':'format','content':o(_0x478388,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1d1013{['afterInit'](){const _0x1dad8d=this['editor'],_0x270902=_0x1dad8d['locale'];if(!_0x1dad8d['plugins']['has']('LegacyListEditing'))return;const _0x2a7806=_0x1dad8d['plugins']['get']('TrackChangesEditing'),_0x32d56a=_0x1dad8d['plugins']['has']('LegacyTodoListEditing');function _0xc9aec5(_0x2fe5dc){return()=>{const _0x46c3cc=_0x1dad8d['model']['document']['selection'],_0x43be89=_0x1dad8d['commands']['get'](_0x2fe5dc);if(_0x43be89['value'])return void _0x1dad8d['execute']('paragraph',{});const _0x1eb2fd=_0x2fe5dc['slice'](0x0,-0x4),_0x5705c6=function(_0x4aa126,_0x2fa0ee,_0x4b42ff){let _0x365429=Array['from'](_0x4aa126)['filter'](_0x131729=>function(_0x1c9730,_0x216dd5){return _0x216dd5['checkChild'](_0x1c9730['parent'],'listItem')&&!_0x216dd5['isObject'](_0x1c9730);}(_0x131729,_0x4b42ff));_0x365429=_0x365429['filter'](_0x410fe4=>!_0x410fe4['is']('element','listItem')||_0x410fe4['getAttribute']('listType')!=_0x2fa0ee);const _0x5f3626=new Set();for(const _0x423615 of _0x365429)_0x423615['is']('element','listItem')?_0x5f3626['add'](fe(_0x423615)):_0x5f3626['add'](_0x423615);return Array['from'](_0x5f3626);}(_0x46c3cc['getSelectedBlocks'](),_0x1eb2fd,_0x1dad8d['model']['schema']);_0x1dad8d['model']['change'](()=>{for(const _0x3c6344 of _0x5705c6)_0x2a7806['markBlockFormat'](_0x3c6344,{'commandName':_0x2fe5dc,'commandParams':[{'forceValue':!_0x43be89['value']}],'formatGroupId':'blockName'},ue(_0x3c6344));});};}function _0x2bdd6(_0x1653c2){return()=>{const _0x1f6241=function(_0x14edad){let _0x19dfe7=Array['from'](_0x14edad);const _0x154411=_0x19dfe7['findIndex'](_0x5bea9a=>'listItem'!=_0x5bea9a['name']);return _0x154411>-0x1&&(_0x19dfe7=_0x19dfe7['slice'](0x0,_0x154411)),_0x19dfe7;}(_0x1dad8d['model']['document']['selection']['getSelectedBlocks']()),_0x31b95b=_0x1dad8d['model']['createRange'](_0x1dad8d['model']['createPositionAt'](_0x1f6241[0x0],'before'),_0x1dad8d['model']['createPositionAt'](_0x1f6241[_0x1f6241['length']-0x1],'end'));_0x1dad8d['model']['change'](()=>{_0x2a7806['markBlockFormat'](_0x31b95b,{'commandName':_0x1653c2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23a488){const _0x34a4b4=new Set();for(const _0x1cbc96 of _0x23a488){let _0x346848=_0x1cbc96['nextSibling'];for(;_0x346848&&_0x346848['getAttribute']('listIndent')>_0x1cbc96['getAttribute']('listIndent');)_0x34a4b4['add'](_0x346848),_0x346848=_0x346848['nextSibling'];}return Array['from'](_0x34a4b4);}(_0x1f6241));});};}_0x2a7806['enableCommand']('numberedList',_0xc9aec5('numberedList')),_0x2a7806['enableCommand']('bulletedList',_0xc9aec5('bulletedList')),_0x32d56a&&_0x2a7806['enableCommand']('todoList',_0xc9aec5('todoList')),_0x2a7806['enableCommand']('indentList',_0x2bdd6('indentList')),_0x2a7806['enableCommand']('outdentList',_0x2bdd6('outdentList')),_0x32d56a&&_0x2a7806['enableCommand']('checkTodoList',()=>{const _0x4850a8=_0x1dad8d['commands']['get']('checkTodoList'),_0x18eb0a=Array['from'](_0x4850a8['_selectedElements']);_0x18eb0a['filter'](_0x375811=>_0x375811['getAttribute']('todoListChecked')!=_0x4850a8['value']),_0x1dad8d['model']['change'](()=>{for(const _0x3a16be of _0x18eb0a)_0x2a7806['markBlockFormat'](_0x3a16be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4850a8['value']}]});});}),_0x2a7806['descriptionFactory']['registerElementLabel']('listItem',_0x266d0a=>o(_0x270902,'ELEMENT_LIST_ITEM',_0x266d0a)),_0x2a7806['descriptionFactory']['registerDescriptionCallback'](_0x3d93aa=>{if('formatBlock'!=_0x3d93aa['type']&&'formatInline'!=_0x3d93aa['type'])return;const {data:_0x530b55}=_0x3d93aa;if(_0x530b55){if('numberedList'==_0x530b55['commandName']||'bulletedList'==_0x530b55['commandName']||'todoList'==_0x530b55['commandName'])switch(_0x530b55['commandName']['replace']('List','')){case'bulleted':return _0x38274e(o(_0x270902,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38274e(o(_0x270902,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38274e(o(_0x270902,'ELEMENT_TODO_LIST'));}if('indentList'==_0x530b55['commandName'])return{'type':'format','content':o(_0x270902,'*Indent:*\x20%0',o(_0x270902,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x530b55['commandName'])return{'type':'format','content':o(_0x270902,'*Outdent:*\x20%0',o(_0x270902,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x530b55['commandName'])return _0x530b55['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x270902,'*Check\x20item*')}:{'type':'format','content':o(_0x270902,'*Uncheck\x20item*')};}function _0x38274e(_0x4acfb6){return{'type':'format','content':o(_0x270902,'*Change\x20to:*\x20%0',_0x4acfb6)};}});}}function fe(_0x2d2bb4){const _0x1754fe=_0x2d2bb4['getAttribute']('listIndent');if(0x0==_0x1754fe)return _0x2d2bb4;let _0x3d8793=_0x2d2bb4;for(;_0x2d2bb4['previousSibling']&&_0x2d2bb4['previousSibling']['is']('element','listItem');){const _0x10d2f0=_0x2d2bb4['previousSibling']['getAttribute']('listIndent');if(_0x10d2f0==_0x1754fe)_0x3d8793=_0x2d2bb4['previousSibling'];else{if(_0x10d2f0<_0x1754fe)break;}_0x2d2bb4=_0x2d2bb4['previousSibling'];}return _0x3d8793;}function ue(_0x1e4318){const _0x2e7433=[];if(_0x1e4318['is']('element','listItem')&&_0x1e4318['getAttribute']('listIndent')>0x0){let _0x39ebf5=_0x1e4318['nextSibling'];for(;_0x39ebf5&&'listItem'==_0x39ebf5['name']&&_0x39ebf5['getAttribute']('listIndent')==_0x1e4318['getAttribute']('listIndent');)_0x2e7433['push'](_0x39ebf5),_0x39ebf5=_0x39ebf5['nextSibling'];}return _0x2e7433;}class W extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3c7411=this['editor']['config']['get']('list.properties'),_0x247631=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c7411['styles']&&_0x247631['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3c7411['reversed']&&_0x247631['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3c7411['startIndex']&&_0x247631['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x247631['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5b4a0d,_0x2ac13d={}){const _0x91fff6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21c774=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x91fff6['markMultiRangeBlockFormat'](_0x21c774,{'commandName':'listStyle','commandParams':[{'type':_0x2ac13d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b098c,_0x17a8cb={}){const _0x2e2bb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4197d2=this['_getSuggestionBlocks'](_0x962214=>_0x962214['is']('element','listItem')&&'numbered'===_0x962214['getAttribute']('listType'));if(_0x4197d2['length']<0x1)return;const _0x5dc9cb=_0x4197d2['map'](_0x5e333d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e333d,'before'),this['editor']['model']['createPositionAt'](_0x5e333d,0x0)));this['editor']['model']['change'](()=>{_0x2e2bb8['markMultiRangeBlockFormat'](_0x5dc9cb,{'commandName':'listReversed','commandParams':[{'reversed':_0x17a8cb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x504b5e,_0x5b6682={}){const _0x452f52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cf6bb=this['_getSuggestionBlocks'](_0x4e5622=>_0x4e5622['is']('element','listItem')&&'numbered'===_0x4e5622['getAttribute']('listType'));if(_0x2cf6bb['length']<0x1)return;const _0x2978b0=_0x2cf6bb['map'](_0x52625f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52625f,'before'),this['editor']['model']['createPositionAt'](_0x52625f,0x0)));this['editor']['model']['change'](()=>{_0x452f52['markMultiRangeBlockFormat'](_0x2978b0,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b6682['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a5b10){if('formatBlock'!=_0x4a5b10['type']&&'formatInline'!=_0x4a5b10['type'])return;const _0x1b8b21=this['editor']['locale'],{data:_0x15ea22}=_0x4a5b10;if(!_0x15ea22)return;let _0xd5a836,_0x407bfb;switch(_0x15ea22['commandName']){case'listStyle':_0xd5a836='*Change\x20to:*\x20%0',_0x407bfb={'type':'format','content':o(_0x1b8b21,_0xd5a836,o(_0x1b8b21,this['_getTranslationKeyForListStyle'](_0x15ea22['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd5a836=_0x15ea22['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x407bfb={'type':'format','content':o(_0x1b8b21,_0xd5a836)};break;case'listStart':_0xd5a836='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x407bfb={'type':'format','content':o(_0x1b8b21,_0xd5a836,_0x15ea22['commandParams'][0x0]['startIndex'])};}return _0x407bfb;}['_getSuggestionBlocksForListStyle'](){const _0x6c07f0=this['editor']['plugins']['get']('LegacyListUtils');let _0x1046aa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1046aa[0x0]?.['is']('element','listItem')&&_0x1046aa['unshift'](..._0x6c07f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1046aa[_0x1046aa['length']-0x1]?.['is']('element','listItem')&&_0x1046aa['push'](..._0x6c07f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1046aa=[...new Set(_0x1046aa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1046aa=_0x1046aa['filter'](_0x23c9a6=>_0x23c9a6['is']('element','listItem'))),_0x1046aa;}['_getSuggestionBlocks'](_0x1f5d29){const _0x1685c3=this['editor']['plugins']['get']('LegacyListUtils');let _0x1aa531=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1f5d29)['map'](_0x45e853=>{const _0x3da2ca=this['editor']['model']['createPositionAt'](_0x45e853,0x0);return[..._0x1685c3['getSiblingNodes'](_0x3da2ca,'backward'),..._0x1685c3['getSiblingNodes'](_0x3da2ca,'forward')];})['flat']();return _0x1aa531=[...new Set(_0x1aa531)],_0x1aa531;}['_getTranslationKeyForListStyle'](_0x2610d1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2610d1)||'default')['toUpperCase']()+'_LIST_'+_0x2610d1['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1d1013{['afterInit'](){const _0x492887=this['editor'];if(!_0x492887['plugins']['has']('MediaEmbedEditing'))return;const _0x2d7138=_0x492887['plugins']['get']('TrackChangesEditing'),_0x2b8130=_0x492887['locale'];_0x2d7138['enableCommand']('mediaEmbed'),_0x2d7138['descriptionFactory']['registerElementLabel']('media',_0x3b50b8=>o(_0x2b8130,'ELEMENT_MEDIA',_0x3b50b8)),_0x492887['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x348834,{writer:_0x39f4dd,options:_0x404a8c})=>{if(_0x404a8c['showSuggestionHighlights'])return _0x39f4dd['createEmptyElement']('div');},'converterPriority':'high'}),_0x492887['data']['downcastDispatcher']['on']('attribute:url:media',(_0x472481,_0x5e9233,_0x5b1e14)=>{_0x5b1e14['options']['showSuggestionHighlights']&&_0x472481['stop']();},{'priority':'high'});}}class mt extends _0x1d1013{['afterInit'](){const _0x5368b7=this['editor'];_0x5368b7['plugins']['has']('MentionEditing')&&_0x5368b7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1d1013{['afterInit'](){const _0x58b8cb=this['editor'];if(!_0x58b8cb['plugins']['has']('MergeFieldsEditing'))return;_0x58b8cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x58b8cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x42612a=_0x58b8cb['plugins']['get']('TrackChangesEditing'),_0x21fcd7=_0x58b8cb['locale'];_0x42612a['descriptionFactory']['registerElementLabel']('mergeField',_0x921f08=>o(_0x21fcd7,'ELEMENT_MERGE_FIELD',_0x921f08)),_0x42612a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x32bcf2=>o(_0x21fcd7,'ELEMENT_MERGE_FIELD',_0x32bcf2)),_0x42612a['descriptionFactory']['registerDescriptionCallback'](_0x2e7092=>{if('insertion'!=_0x2e7092['type']&&'deletion'!=_0x2e7092['type'])return;const _0x24ce20=_0x2e7092['getContainedElement']();if(null==_0x24ce20)return;if(!_0x24ce20['is']('element','mergeField')&&!_0x24ce20['is']('element','mergeFieldBlock'))return;const _0x15dd17=_0x58b8cb['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x24ce20['getAttribute']('id'));return'insertion'==_0x2e7092['type']?{'type':'insertion','content':o(_0x21fcd7,'*Insert:*\x20%0','\x22'+_0x15dd17+'\x22\x20'+o(_0x21fcd7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x21fcd7,'*Remove:*\x20%0','\x22'+_0x15dd17+'\x22\x20'+o(_0x21fcd7,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1d1013{['afterInit'](){const _0x614f51=this['editor'],_0x4d2a8b=_0x614f51['plugins']['get']('TrackChangesEditing');_0x614f51['plugins']['has']('MultiLevelList')&&(_0x4d2a8b['enableDefaultAttributesIntegration']('multiLevelList'),_0x4d2a8b['registerBlockAttribute']('listMarkerStyle'),_0x4d2a8b['descriptionFactory']['registerDescriptionCallback'](_0xefd6be=>this['handleDescriptions'](_0xefd6be)));}['handleDescriptions'](_0x1d3a49){const _0x8df939=this['editor']['locale'],{data:_0x711800}=_0x1d3a49,_0x259587={'type':'format','content':''};if(_0x711800&&'listMarkerStyle'==_0x711800['key']){if(!_0x711800['oldValue'])return{'type':'format','content':o(_0x8df939,'*Set\x20format:*\x20%0',o(_0x8df939,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x711800['newValue']+')'};if(!_0x711800['newValue']){let _0x41141c=_0x1d3a49['head'];for(;_0x41141c;){if(_0x41141c['data']&&'listType'==_0x41141c['data']['key']&&_0x41141c['data']['newValue'])return _0x259587;_0x41141c=_0x41141c['next'];}return{'type':'format','content':o(_0x8df939,'*Remove\x20format:*\x20%0',o(_0x8df939,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x711800['oldValue']+')'};}}}}class kt extends _0x1d1013{['afterInit'](){const _0x164a08=this['editor'];if(!_0x164a08['plugins']['has']('PageBreakEditing'))return;_0x164a08['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x897a6f=_0x164a08['plugins']['get']('TrackChangesEditing'),_0x543e86=_0x164a08['locale'];_0x897a6f['descriptionFactory']['registerElementLabel']('pageBreak',_0x34e4cf=>o(_0x543e86,'ELEMENT_PAGE_BREAK',_0x34e4cf));}}class bt extends _0x1d1013{['afterInit'](){const _0x3cc799=this['editor'];if(!_0x3cc799['plugins']['has']('Paragraph'))return;const _0x232e30=_0x3cc799['locale'],_0x5ae418=_0x3cc799['plugins']['get']('TrackChangesEditing');_0x5ae418['descriptionFactory']['registerElementLabel']('paragraph',_0x12f375=>o(_0x232e30,'ELEMENT_PARAGRAPH',_0x12f375)),_0x5ae418['enableDefaultAttributesIntegration']('paragraph'),_0x5ae418['enableCommand']('insertParagraph'),_0x3cc799['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3cc799),{'priority':'highest'}),_0x3cc799['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x79623c,_0x4eb889,_0x2f5e02)=>{_0x2f5e02['options']['showSuggestionHighlights']&&nr(_0x3cc799,{'showActiveMarker':!0x1})(_0x79623c,_0x4eb889,_0x2f5e02);},{'priority':'highest'});const _0x4c20bb=_0x5ae418['descriptionFactory'];_0x4c20bb['registerDescriptionCallback'](_0x42811c=>{if('insertion'!==_0x42811c['type'])return;const {start:_0x2ceeb5,end:_0x55e77a}=_0x42811c['getFirstRange']();if(!_0x2ceeb5['isTouching'](_0x55e77a)||!_0x2ceeb5['nodeAfter'])return;const _0x269dc8=_0x3cc799['model']['schema'],_0x57f3a0=_0x2ceeb5['nodeAfter'];return _0x269dc8['isBlock'](_0x57f3a0)&&!_0x269dc8['isLimit'](_0x57f3a0)&&_0x269dc8['checkChild'](_0x57f3a0,'$text')?{'type':'insertion','content':o(_0x232e30,'*Insert:*\x20%0',_0x4c20bb['getItemLabel'](_0x57f3a0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3d36=this['editor'],_0x2b9256=_0x3e3d36['locale'];_0x3e3d36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a8952=>{if('formatBlock'!=_0x4a8952['type'])return;const {data:_0x3bbe2e}=_0x4a8952;return _0x3bbe2e&&'paragraph'==_0x3bbe2e['commandName']?{'type':'format','content':o(_0x2b9256,'*Change\x20to:*\x20%0',o(_0x2b9256,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xcae091,{showActiveMarker:_0x528d6e=!0x0}={}){return(_0x4e14e2,_0x520350,_0x40f221)=>{const _0x3a17f9=_0xcae091['plugins']['get']('TrackChangesEditing'),_0x537d1f=_0x520350['markerRange']['start'],_0x247f7e=_0x520350['markerRange']['end'],_0x25c770=_0xcae091['model']['schema'];if(!_0x537d1f['isTouching'](_0x247f7e)||!_0x537d1f['nodeAfter'])return;const _0x2e4160=_0x537d1f['nodeAfter'];if(_0x25c770['isBlock'](_0x2e4160)&&!_0x25c770['isLimit'](_0x2e4160)&&_0x25c770['checkChild'](_0x2e4160,'$text')){if(!_0x40f221['consumable']['consume'](_0x520350['markerRange'],_0x4e14e2['name']))return;const {authorId:_0x2c6eed}=_0x3a17f9['_splitMarkerName'](_0x520350['markerName']),_0x314420=_0x40f221['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2c6eed}),_0x1225d8=_0x40f221['mapper']['toViewPosition'](_0x247f7e);_0x528d6e&&_0x3a17f9['activeMarkers']['includes'](_0x520350['markerName'])&&_0x40f221['writer']['addClass']('ck-suggestion-marker--active',_0x314420),_0x40f221['writer']['insert'](_0x1225d8,_0x314420),_0x40f221['mapper']['bindElementToMarker'](_0x314420,_0x520350['markerName']);}};}class wt extends _0x1d1013{['afterInit'](){const _0x20fb1c=this['editor'];if(!_0x20fb1c['plugins']['has']('RemoveFormatEditing'))return;_0x20fb1c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377f32=this['editor'];_0x377f32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36bfee=>{if('formatBlock'!=_0x36bfee['type']&&'formatInline'!=_0x36bfee['type'])return;const {data:_0x38a96f}=_0x36bfee;return _0x38a96f&&'removeFormat'==_0x38a96f['commandName']?{'type':'format','content':o(_0x377f32['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1d1013{['afterInit'](){const _0x36e4de=this['editor'];if(!_0x36e4de['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d1aff=_0x36e4de['plugins']['get']('TrackChangesEditing');_0x3d1aff['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d1aff['enableCommand']('goToNextRestrictedEditingException');const _0x5aae64=_0x36e4de['plugins']['get']('RestrictedEditingModeEditing');_0x5aae64['enableCommand']('trackChanges'),_0x5aae64['enableCommand']('acceptSuggestion'),_0x5aae64['enableCommand']('discardSuggestion'),_0x5aae64['enableCommand']('acceptAllSuggestions'),_0x5aae64['enableCommand']('discardAllSuggestions'),_0x5aae64['enableCommand']('acceptSelectedSuggestions'),_0x5aae64['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1d1013{static get['requires'](){return[_0x156e28];}['init'](){const _0x5a8942=this['editor'],_0x20d930=_0x5a8942['plugins']['get']('TrackChangesEditing');_0x20d930['enableCommand']('shiftEnter'),_0x5a8942['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5a8942),{'priority':'high'}),_0x5a8942['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5a8942),{'priority':'high'}),_0x5a8942['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xdf3e54,_0x395cea,_0x5449ae)=>{_0x5449ae['options']['showSuggestionHighlights']&&ge(_0x5a8942,{'showActiveMarker':!0x1})(_0xdf3e54,_0x395cea,_0x5449ae);}),_0x20d930['descriptionFactory']['registerElementLabel']('softBreak',_0x4ef0e8=>o(_0x5a8942['locale'],'ELEMENT_LINE_BREAK',_0x4ef0e8));}}function ge(_0x418546,{showActiveMarker:_0x230662=!0x0}={}){return(_0x4f2ee4,_0x52b13e,_0x5a1e64)=>{const _0x2c3c1b=_0x418546['plugins']['get']('TrackChangesEditing');if(!_0x5a1e64['consumable']['test'](_0x52b13e['markerRange'],_0x4f2ee4['name']))return;const _0xfbc32d=_0x418546['model'];for(const _0x5bc2b3 of _0x52b13e['markerRange']['getItems']()){if(!_0x5bc2b3['is']('element','softBreak'))continue;const _0x48ba60='deletion'==_0x52b13e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x115ca9}=_0x2c3c1b['_splitMarkerName'](_0x52b13e['markerName']),_0x2ae72d=_0x5a1e64['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48ba60,'data-author-id':_0x115ca9}),_0x59853a=_0x5a1e64['mapper']['toViewPosition'](_0xfbc32d['createPositionBefore'](_0x5bc2b3));_0x230662&&_0x2c3c1b['activeMarkers']['includes'](_0x52b13e['markerName'])&&_0x5a1e64['writer']['addClass']('ck-suggestion-marker--active',_0x2ae72d),_0x5a1e64['writer']['insert'](_0x59853a,_0x2ae72d),_0x5a1e64['mapper']['bindElementToMarker'](_0x2ae72d,_0x52b13e['markerName']);}};}class St extends _0x1d1013{['afterInit'](){const _0x4f01e1=this['editor'],_0x3bff60=_0x4f01e1['model'],_0x232beb=_0x4f01e1['locale'];if(!_0x4f01e1['plugins']['has']('StandardEditingModeEditing'))return;const _0x541e2a=_0x4f01e1['plugins']['get']('TrackChangesEditing'),_0x2f6067='restrictedEditingException',_0x448207=_0x4f01e1['commands']['get'](_0x2f6067);_0x541e2a['enableCommand'](_0x2f6067,(_0x35f576,_0x2391df={})=>{const _0x25e7a1=_0x3bff60['document']['selection'];if(_0x25e7a1['isCollapsed'])return void _0x35f576(_0x2391df);const _0x58b571=void 0x0!==_0x2391df['forceValue']?_0x2391df['forceValue']:!_0x448207['value'];_0x3bff60['change'](()=>{const _0x5bee01=Array['from'](_0x25e7a1['getRanges']());for(const _0x56af67 of _0x5bee01){const _0x530452=_0x58b571?[_0x56af67]:io(_0x2f6067,_0x56af67,_0x3bff60);for(const _0x1ffaef of _0x530452)_0x541e2a['markInlineFormat'](_0x1ffaef,{'commandName':_0x2f6067,'commandParams':[{'forceValue':_0x58b571}]});}});}),_0x541e2a['descriptionFactory']['registerDescriptionCallback'](_0x409d0b=>{if('formatBlock'!=_0x409d0b['type']&&'formatInline'!=_0x409d0b['type'])return;const {data:_0x5b73fc}=_0x409d0b;return _0x5b73fc&&_0x5b73fc['commandName']==_0x2f6067?_0x5b73fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x232beb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x232beb,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1d1013{['afterInit'](){const _0x537502=this['editor'];if(!_0x537502['plugins']['has']('Style')||!_0x537502['plugins']['has']('DataSchema'))return;const _0x3e2392=_0x537502['plugins']['get']('TrackChangesEditing'),_0x2e7b53=_0x537502['locale'],_0x24a495=_0x537502['config']['get']('style')||{},_0x221aca=_0x537502['plugins']['get']('GeneralHtmlSupport'),_0x568f86=_0x537502['plugins']['get']('StyleUtils')['normalizeConfig'](_0x537502['plugins']['get']('DataSchema'),_0x24a495['definitions']);_0x3e2392['enableDefaultAttributesIntegration']('style');const _0x1e8b28=new Set();for(const _0x59dd39 of _0x568f86['block']){const _0x37d00a=_0x221aca['getGhsAttributeNameForElement'](_0x59dd39['element']);_0x1e8b28['add'](_0x37d00a);}const _0x104412=new Set();for(const _0x51c3c1 of _0x568f86['inline']){const _0x362d0d=_0x221aca['getGhsAttributeNameForElement'](_0x51c3c1['element']);_0x104412['add'](_0x362d0d);for(const _0x4c8c62 of _0x51c3c1['ghsAttributes'])_0x104412['add'](_0x4c8c62);}for(const _0x2f06c5 of _0x1e8b28)_0x3e2392['registerBlockAttribute'](_0x2f06c5),_0x3e2392['descriptionFactory']['registerAttributeLabel'](_0x2f06c5,o(_0x2e7b53,'FORMAT_STYLE'));for(const _0x10d9f4 of _0x104412)_0x3e2392['registerInlineAttribute'](_0x10d9f4),_0x3e2392['descriptionFactory']['registerAttributeLabel'](_0x10d9f4,o(_0x2e7b53,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x529803=this['editor'],_0x4d1055=_0x529803['locale'];_0x529803['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e96f8=>{if('formatBlock'!=_0x5e96f8['type']&&'formatInline'!=_0x5e96f8['type'])return;const {data:_0x3d1af6}=_0x5e96f8;return _0x3d1af6&&'style'===_0x3d1af6['commandName']?_0x3d1af6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d1055,'*Set\x20format:*\x20%0',_0x3d1af6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4d1055,'*Remove\x20format:*\x20%0',_0x3d1af6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1d1013{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x31ee93){super(_0x31ee93),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x22d048=this['editor'],_0x134944=_0x22d048['model']['document']['selection'];if(!_0x22d048['plugins']['has']('TableEditing'))return;const _0x25d0ca=_0x22d048['locale'],_0x41e74d=_0x22d048['plugins']['get']('TrackChangesEditing'),_0x117e65=_0x22d048['plugins']['get']('TableUtils');_0x41e74d['descriptionFactory']['registerElementLabel']('table',_0x13b29a=>o(_0x25d0ca,'ELEMENT_TABLE',_0x13b29a)),this['_setupColumnsRowsFixing'](),_0x41e74d['enableCommand']('insertTable'),_0x41e74d['enableCommand']('selectTableRow'),_0x41e74d['enableCommand']('selectTableColumn');for(const _0x4c923c of['insertTableRowAbove','insertTableRowBelow']){const _0x247ff7=_0x22d048['commands']['get'](_0x4c923c);_0x41e74d['enableCommand'](_0x4c923c,_0x3c3581=>{_0x22d048['model']['change'](_0x3da4c0=>{_0x3c3581();const _0x5d57ed='above'===_0x247ff7['order'],_0x4b56a5=_0x117e65['getSelectionAffectedTableCells'](_0x134944),_0x192f54=_0x117e65['getRowIndexes'](_0x4b56a5),_0x374027=_0x5d57ed?_0x192f54['first']-0x1:_0x192f54['last']+0x1,_0x1bd428=_0x4b56a5[0x0]['findAncestor']('table'),_0x3ff19b=_0x117e65['createTableWalker'](_0x1bd428,{'startRow':_0x374027,'endRow':_0x374027}),_0x5f0ea9=Array['from'](_0x3ff19b)['map'](_0x2b6561=>_0x3da4c0['createRangeOn'](_0x2b6561['cell']));_0x41e74d['markMultiRangeInsertion'](_0x5f0ea9,'tableRow');});});}for(const _0x40c23b of['insertTableColumnLeft','insertTableColumnRight']){const _0x13d841=_0x22d048['commands']['get'](_0x40c23b);_0x41e74d['enableCommand'](_0x40c23b,_0x31f1d3=>{_0x22d048['model']['change'](_0x484779=>{_0x31f1d3();const _0x39d097='left'===_0x13d841['order'],_0x2c95d7=_0x117e65['getSelectionAffectedTableCells'](_0x134944),_0x10a3e4=_0x117e65['getColumnIndexes'](_0x2c95d7),_0x430296=_0x39d097?_0x10a3e4['first']-0x1:_0x10a3e4['last']+0x1,_0x373ad3=_0x2c95d7[0x0]['findAncestor']('table'),_0x3dae6a=_0x117e65['createTableWalker'](_0x373ad3,{'startRow':0x0,'column':_0x430296,'includeAllSlots':!0x1}),_0x72e47c=Array['from'](_0x3dae6a)['map'](_0xe92905=>_0x484779['createRangeOn'](_0xe92905['cell']));_0x41e74d['markMultiRangeInsertion'](_0x72e47c,'tableColumn');});});}for(const _0x1f7038 of['removeTableRow','removeTableColumn']){const _0x1fec06=_0x1f7038['substr'](0xb),_0x49b439=_0x1fec06['toLowerCase'](),_0xae8da8=_0x49b439['substr'](0x0,0x3)+'span',_0x46a34d='table'+_0x1fec06,_0x56dba6='min'+_0x1fec06,_0xbb3515='max'+_0x1fec06;_0x41e74d['enableCommand'](_0x1f7038,()=>{_0x22d048['model']['change'](_0x2aadcb=>{const _0x457b64=_0x117e65['getSelectionAffectedTableCells'](_0x134944),_0x5a97f9=_0x457b64[0x0]['findAncestor']('table');let _0x521923;if('removeTableRow'==_0x1f7038){const _0x4b5e70=_0x117e65['getRowIndexes'](_0x457b64);_0x521923={'startRow':_0x4b5e70['first'],'endRow':_0x4b5e70['last'],'includeAllSlots':!0x0};}else{const _0x4eb87b=_0x117e65['getColumnIndexes'](_0x457b64);_0x521923={'startColumn':_0x4eb87b['first'],'endColumn':_0x4eb87b['last'],'includeAllSlots':!0x0};}const _0x22a998=_0x117e65['createTableWalker'](_0x5a97f9,_0x521923),_0x290d59=Array['from'](_0x22a998)['map'](({cell:_0x3bfe8d})=>_0x3bfe8d),_0x19f0ba=be(_0x290d59['filter'](_0xb6d5ff=>_0xb6d5ff['hasAttribute'](_0xae8da8))),_0x1d4cb5=be(_0x290d59['filter'](_0x78c785=>!_0x78c785['hasAttribute'](_0xae8da8)))['map'](_0x369dae=>_0x2aadcb['createRangeOn'](_0x369dae)),_0x18c633=_0x41e74d['markMultiRangeDeletion'](_0x1d4cb5,_0x46a34d);if(_0x18c633&&('tableRow'==_0x18c633['subType']||'tableColumn'==_0x18c633['subType'])){const _0x36d890=this['_getSuggestionCoords'](_0x18c633);for(const _0x268476 of _0x19f0ba){const _0x409618=_0x2aadcb['createRangeOn'](_0x268476),_0x221cc9=_0x117e65['getCellLocation'](_0x268476),_0x2e1ac4=_0x268476['getAttribute'](_0xae8da8)-0x1,_0x5dfc0e=_0x36d890[_0x56dba6],_0x4325f=_0x36d890[_0xbb3515];_0x5dfc0e<=_0x221cc9[_0x49b439]&&_0x221cc9[_0x49b439]+_0x2e1ac4<=_0x4325f&&_0x18c633['addRange'](_0x409618);}}});});}function _0x4e7478(_0x159baf){const _0x3eec07=Array['from'](_0x134944['getRanges']())['map'](_0x2c9ef6=>_0x4f83f9['fromRange'](_0x2c9ef6));_0x22d048['model']['change'](_0x55b177=>{const _0x47e45e=_0x55b177['batch'];_0x159baf=_0x159baf['filter'](_0x83a577=>'$graveyard'!=_0x83a577['root']['rootName']),_0x55b177['setSelection'](_0x159baf),_0x22d048['commands']['get']('removeTableRow')['refresh'](),_0x22d048['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x22d048['model']['enqueueChange'](()=>{_0x22d048['model']['enqueueChange'](_0x47e45e,_0x1458d5=>{const _0x4613a1=_0x3eec07['filter'](_0x5df974=>'$graveyard'!=_0x5df974['root']['rootName']);_0x4613a1['length']>0x0&&_0x1458d5['setSelection'](_0x4613a1);for(const _0x153d69 of _0x3eec07)_0x153d69['detach']();});});});}function _0x2f7823(_0x3cf7b3){_0x22d048['model']['change'](_0x17ff0a=>{const _0x53fce2=Array['from'](_0x134944['getRanges']())['map'](_0x253ff6=>_0x4f83f9['fromRange'](_0x253ff6)),_0x14a372=[];for(const _0x555228 of _0x3cf7b3)for(const _0x2e4aa7 of _0x555228['getItems']({'shallow':!0x0}))_0x14a372['push'](_0x2e4aa7);for(const _0x583f84 of _0x14a372)'$graveyard'!=_0x583f84['root']['rootName']&&(_0x17ff0a['setSelection'](_0x17ff0a['createPositionAt'](_0x583f84,0x0)),_0x22d048['commands']['get']('removeTableColumn')['refresh'](),_0x22d048['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x193f0b=_0x53fce2['filter'](_0x3ddc65=>'$graveyard'!=_0x3ddc65['root']['rootName']);_0x193f0b['length']>0x0&&_0x17ff0a['setSelection'](_0x193f0b);for(const _0x11e7c9 of _0x53fce2)_0x11e7c9['detach']();});}function _0x13609e(_0x410d91,_0x368d3b){return _0x368d3b['every'](_0x87a455=>_0x410d91['some'](_0x45799f=>_0x45799f['end']['isEqual'](_0x87a455['start'])||_0x87a455['end']['isEqual'](_0x45799f['start'])));}function _0x21774f(_0x2f113b,_0x2b9b24){return!_0x2f113b['some'](_0x345459=>_0x2b9b24['some'](_0x467f25=>_0x345459['isIntersecting'](_0x467f25)))&&_0x2f113b['some'](_0x43cad9=>_0x2b9b24['some'](_0x26b535=>_0x43cad9['end']['isTouching'](_0x26b535['start'])));}_0x22d048['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2fe433,_0x3bd814,_0x318c9f)=>{if(!_0x318c9f['options']['showSuggestionHighlights'])return;const _0x1231a8=_0x3bd814['item'];if(!_0x1231a8)return;const _0x5067f1=_0x318c9f['mapper']['toViewElement'](_0x1231a8);function _0x1fc96f(_0x519436){return Array['isArray'](_0x519436)?_0x519436:[_0x519436];}_0x5067f1&&'tableCell'===_0x1231a8['name']&&_0x11169f(_0x5067f1,_0x318c9f['writer'],(_0x509f02,_0x17d4b5,_0x58d4fb)=>_0x58d4fb['addClass'](_0x1fc96f(_0x17d4b5['classes']),_0x509f02),(_0xca5a8f,_0x2a55ed,_0x5cbe09)=>_0x5cbe09['removeClass'](_0x1fc96f(_0x2a55ed['classes']),_0xca5a8f));},{'priority':'highest'}),_0x41e74d['descriptionFactory']['registerDescriptionCallback'](_0x282378=>{if('insertion'!=_0x282378['type']&&'deletion'!=_0x282378['type'])return;const _0x347b5b=_0x282378['getContainedElement']();if(null!=_0x347b5b&&_0x347b5b['is']('element','table')){if('insertion'==_0x282378['type']){const _0x5dcab3=_0x282378['getItems']()['filter'](_0x56ed4e=>_0x56ed4e['is']('$textProxy'))['map'](_0xf35af2=>_0xf35af2['data']);if(_0x5dcab3['length'])return{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5dcab3['join']('\x20')+'\x22'))};}if('deletion'==_0x282378['type']){const _0x173288=_0x282378['getItems']()['filter'](_0x401b72=>_0x401b72['is']('$textProxy'))['map'](_0x158155=>_0x158155['data']);if(_0x173288['length'])return{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x173288['join']('\x20')+'\x22'))};}}}),_0x41e74d['descriptionFactory']['registerDescriptionCallback'](_0x1c992b=>{if('tableRow'==_0x1c992b['subType']){const _0x173238=_0x1c992b['getItems']()['filter'](_0x1ac80b=>_0x1ac80b['is']('$textProxy'))['map'](_0x40e87a=>_0x40e87a['data']),_0x57d789=this['_getSuggestionCoords'](_0x1c992b),_0x5e1444=_0x57d789['maxRow']-_0x57d789['minRow']+0x1;if('insertion'==_0x1c992b['type'])return _0x173238['length']?{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5e1444,'\x22'+_0x173238['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW',_0x5e1444))};if('deletion'==_0x1c992b['type'])return _0x173238['length']?{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5e1444,'\x22'+_0x173238['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW',_0x5e1444))};}if('tableColumn'==_0x1c992b['subType']){const _0x3eb403=_0x1c992b['getItems']()['filter'](_0x4b7890=>_0x4b7890['is']('$textProxy'))['map'](_0x46ad27=>_0x46ad27['data']),_0x3ea9bf=this['_getSuggestionCoords'](_0x1c992b),_0x47ff80=_0x3ea9bf['maxColumn']-_0x3ea9bf['minColumn']+0x1;if('insertion'==_0x1c992b['type'])return _0x3eb403['length']?{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x47ff80,'\x22'+_0x3eb403['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN',_0x47ff80))};if('deletion'==_0x1c992b['type'])return _0x3eb403['length']?{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x47ff80,'\x22'+_0x3eb403['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN',_0x47ff80))};}}),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4e7478),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4e7478),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f7823),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f7823),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x13609e),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x13609e),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21774f),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21774f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3413e8=this['editor'],_0x122863=_0x3413e8['model']['document']['selection'];return(_0x52e92,_0x18e0ab)=>{_0x3413e8['model']['change'](_0x812eca=>{const {commandName:_0x1a1cf6,commandParams:_0x3b9554}=_0x18e0ab;let _0x2d0a41=_0x52e92[0x0]['end']['nodeBefore'];_0x3b9554&&_0x3b9554[0x0]&&!0x1===_0x3b9554[0x0]['forceValue']&&(_0x2d0a41=_0x52e92[0x0]['start']['nodeAfter']);const _0x15be8c=_0x812eca['createRangeIn'](_0x2d0a41);if('$graveyard'==_0x15be8c['root']['rootName'])return;const _0x19bde9=Array['from'](_0x122863['getRanges']())['map'](_0x234550=>_0x4f83f9['fromRange'](_0x234550));_0x812eca['setSelection'](_0x15be8c),_0x3413e8['commands']['get'](_0x1a1cf6)['refresh'](),_0x3b9554['push']({'forceDefaultExecution':!0x0}),_0x3413e8['execute'](_0x1a1cf6,..._0x3b9554);const _0x35b381=_0x19bde9['filter'](_0x2432d9=>'$graveyard'!=_0x2432d9['root']['rootName']);_0x35b381['length']>0x0&&_0x812eca['setSelection'](_0x35b381);for(const _0x469aaf of _0x19bde9)_0x469aaf['detach']();});};}['_getCoordsForCells'](_0x23373f){const _0x2992c0=this['editor']['plugins']['get']('TableUtils');let _0x22c52d=Number['MAX_SAFE_INTEGER'],_0x3bf77e=Number['MIN_SAFE_INTEGER'],_0x3ccb83=Number['MAX_SAFE_INTEGER'],_0x5cdb2d=Number['MIN_SAFE_INTEGER'];for(const _0x5b6c6e of _0x23373f){if('$graveyard'==_0x5b6c6e['root']['rootName'])continue;const {row:_0x3c8411,column:_0x25e634}=_0x2992c0['getCellLocation'](_0x5b6c6e),_0x476b51=_0x5b6c6e['hasAttribute']('rowspan')?_0x5b6c6e['getAttribute']('rowspan')-0x1:0x0,_0x12ac21=_0x5b6c6e['hasAttribute']('colspan')?_0x5b6c6e['getAttribute']('colspan')-0x1:0x0;_0x22c52d=_0x3c8411<_0x22c52d?_0x3c8411:_0x22c52d,_0x3bf77e=_0x3c8411+_0x476b51>_0x3bf77e?_0x3c8411+_0x476b51:_0x3bf77e,_0x3ccb83=_0x25e634<_0x3ccb83?_0x25e634:_0x3ccb83,_0x5cdb2d=_0x25e634+_0x12ac21>_0x5cdb2d?_0x25e634+_0x12ac21:_0x5cdb2d;}return{'minRow':_0x22c52d,'maxRow':_0x3bf77e,'minColumn':_0x3ccb83,'maxColumn':_0x5cdb2d};}['_setupColumnsRowsFixing'](){const _0x481252=this['editor'],_0x5d9551=_0x481252['plugins']['get']('TrackChangesEditing'),_0x4ebe4b=_0x481252['plugins']['get']('TableUtils');_0x481252['model']['document']['on']('change:data',()=>{const _0x2853bc=Array['from'](_0x481252['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x88331,data:_0x425d80}of _0x2853bc){const {group:_0x30f2dd,id:_0x43bdc2,subType:_0x32c85a}=_0x5d9551['_splitMarkerName'](_0x88331);if('suggestion'!=_0x30f2dd)continue;if(null!=_0x425d80['oldRange'])continue;const _0xfba6c9=_0x5d9551['getSuggestion'](_0x43bdc2);this['_tablePostFixingSubtypes']['includes'](_0x32c85a)&&this['_tableSuggestions']['add'](_0xfba6c9);}},{'priority':'low'});const _0xd1a46c=(_0x27a3bf,_0x4f7ab9)=>{let _0x1ed4a2=!0x1;const _0x10c7be=_0x4f7ab9['createRangeOn'](_0x27a3bf),_0x4a30bc=_0x27a3bf['findAncestor']('table'),_0x293376=_0x4ebe4b['getCellLocation'](_0x27a3bf);for(const _0xca5b15 of this['_tableSuggestions']){const _0x464a83=_0xca5b15['subType'],_0x3060a8=_0x464a83['startsWith']('tablePaste'),_0x5029ae=_0x464a83['substr'](_0x3060a8?0xa:0x5),_0x14a34e=_0x5029ae['toLowerCase'](),_0x14d18d=_0x14a34e['substr'](0x0,0x3)+'span',_0x43d095='min'+_0x5029ae,_0x840476='max'+_0x5029ae;if(!_0xca5b15['isInContent'])continue;if(_0x4a30bc!=_0xca5b15['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xca5b15['isIntersectingWithRange'](_0x10c7be))continue;const _0x380a9d=_0x27a3bf['hasAttribute'](_0x14d18d)?_0x27a3bf['getAttribute'](_0x14d18d)-0x1:0x0,_0x37d65b=this['_getSuggestionCoords'](_0xca5b15),_0x5a7823=_0x37d65b[_0x43d095],_0x2dcc68=_0x37d65b[_0x840476];_0x5a7823<=_0x293376[_0x14a34e]&&_0x293376[_0x14a34e]+_0x380a9d<=_0x2dcc68&&(_0xca5b15['addRange'](_0x10c7be),_0x1ed4a2=!0x0);}return _0x1ed4a2;};_0x481252['model']['document']['registerPostFixer'](_0x222ca1=>{let _0x84d524=!0x1;for(const _0x434ce4 of _0x481252['model']['document']['differ']['getChanges']())if('insert'==_0x434ce4['type']){if('tableRow'==_0x434ce4['name']){for(const _0x4328f6 of _0x434ce4['position']['nodeAfter']['getChildren']())_0x84d524=_0x84d524||_0xd1a46c(_0x4328f6,_0x222ca1);}else'tableCell'==_0x434ce4['name']&&(_0x84d524=_0x84d524||_0xd1a46c(_0x434ce4['position']['nodeAfter'],_0x222ca1));}return _0x84d524;});}['_getSuggestionCoords'](_0x5e7f94){return this['_getCoordsForCells'](_0x5e7f94['getRanges']()['map'](_0x31a9ba=>_0x31a9ba['start']['nodeAfter']));}}function be(_0x154a8e){return Array['from'](new Set(_0x154a8e)['values']());}class vt extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x46fd8e=this['editor'],_0x3ad5b9=_0x46fd8e['model']['document']['selection'],_0x25e409=_0x46fd8e['locale'];if(!_0x46fd8e['plugins']['has']('TableEditing'))return;const _0x277139=_0x46fd8e['plugins']['get']('TrackChangesEditing'),_0x420771=_0x46fd8e['plugins']['get']('TableUtils'),_0x4bda04=_0x46fd8e['plugins']['get'](It);_0x4bda04['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x277139['enableCommand']('mergeTableCells',()=>{const _0x29b8e4=_0x420771['getSelectionAffectedTableCells'](_0x46fd8e['model']['document']['selection']);_0x46fd8e['model']['change'](()=>{_0x277139['markMultiRangeBlockFormat'](_0x29b8e4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x46fd8e['commands']['get']('mergeTableCells')['on']('execute',(_0xc6ee5d,_0x597f2c)=>{_0x46fd8e['commands']['get']('trackChanges')['value']&&(_0x597f2c['length']>0x0&&_0x597f2c[_0x597f2c['length']-0x1]&&_0x597f2c[_0x597f2c['length']-0x1]['forceDefaultExecution']||_0x277139['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xc6ee5d['stop']());},{'priority':'highest'});for(const _0x484322 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x427ed0=_0x46fd8e['commands']['get'](_0x484322);_0x277139['enableCommand'](_0x484322,()=>{const _0x342920=_0x46fd8e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c80b8=>_0x1c80b8['is']('element','tableCell')),_0x5671ec=_0x427ed0['value'];_0x46fd8e['model']['change'](()=>{_0x277139['markMultiRangeBlockFormat']([_0x342920,_0x5671ec],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2acac5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x6cb7de=_0x46fd8e['commands']['get'](_0x2acac5);_0x277139['enableCommand'](_0x2acac5,()=>{const _0x303f24=_0x420771['getSelectionAffectedTableCells'](_0x46fd8e['model']['document']['selection'])[0x0],_0x4d61d9=_0x303f24['findAncestor']('table'),{column:_0x43e29f,row:_0x27108c}=_0x420771['getCellLocation'](_0x303f24);let _0x25f798=[];if('horizontally'==_0x6cb7de['direction']){const _0x3a9339=_0x420771['createTableWalker'](_0x4d61d9,{'startRow':_0x27108c,'endRow':_0x27108c,'includeAllSlots':!0x0});_0x25f798=Array['from'](_0x3a9339)['map'](_0x467543=>_0x467543['cell']);}else{const _0x13e8fb=_0x420771['createTableWalker'](_0x4d61d9,{'column':_0x43e29f,'includeAllSlots':!0x0});_0x25f798=Array['from'](_0x13e8fb)['map'](_0x2d4aa9=>_0x2d4aa9['cell']);}_0x46fd8e['model']['change'](_0x33221b=>{_0x277139['markBlockFormat'](_0x33221b['createRangeOn'](_0x303f24),{'commandName':_0x2acac5,'commandParams':[]},_0x25f798,_0x2acac5);});});}_0x277139['descriptionFactory']['registerDescriptionCallback'](_0x126316=>{if('formatBlock'!=_0x126316['type']&&'formatInline'!=_0x126316['type'])return;const {data:_0x3dfa8a}=_0x126316;return _0x3dfa8a&&'mergeTableCells'==_0x3dfa8a['commandName']?{'type':'format','content':o(_0x25e409,'*Merge\x20cells*')}:void 0x0;}),_0x277139['descriptionFactory']['registerDescriptionCallback'](_0x1bfded=>{if('formatBlock'!=_0x1bfded['type']&&'formatInline'!=_0x1bfded['type'])return;const {data:_0x3b77f2}=_0x1bfded;return _0x3b77f2?'splitTableCellVertically'==_0x3b77f2['commandName']?{'type':'format','content':o(_0x25e409,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b77f2['commandName']?{'type':'format','content':o(_0x25e409,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x38c389=_0x4bda04['_acceptFormatSuggestionCallbackFactory']();for(const _0x6bc50 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x277139['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6bc50,'accept',_0x38c389);for(const _0x1cad85 of['splitTableCellVertically','splitTableCellHorizontally'])_0x277139['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1cad85,'accept',_0x38c389);_0x277139['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x385eb6=>{_0x46fd8e['model']['change'](_0x3fc08c=>{const _0x3698ad=Array['from'](_0x3ad5b9['getRanges']())['map'](_0x137634=>_0x4f83f9['fromRange'](_0x137634));_0x3fc08c['setSelection'](_0x385eb6),_0x46fd8e['commands']['get']('mergeTableCells')['refresh'](),_0x46fd8e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x52b461=_0x3698ad['filter'](_0x36c109=>'$graveyard'!=_0x36c109['root']['rootName']);_0x52b461['length']>0x0&&_0x3fc08c['setSelection'](_0x52b461);for(const _0x482d00 of _0x3698ad)_0x482d00['detach']();});});for(const _0x4079ba of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x17a12d=_0x46fd8e['commands']['get'](_0x4079ba);_0x17a12d['on']('set:isEnabled',(_0x4aa084,_0x4ad08c,_0x135651)=>{if(_0x135651){const _0x1514a4=_0x46fd8e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2298d2=>_0x2298d2['is']('element','tableCell'));this['_areMergableCells'](_0x17a12d['value'],_0x1514a4)||(_0x4aa084['return']=!0x1,_0x4aa084['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x11ebbe=this['editor']['commands']['get']('mergeTableCells'),_0x41397b=this['editor']['plugins']['get']('TableUtils');if(!_0x11ebbe['isEnabled'])return!0x1;const _0x11e034=_0x41397b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15c8e7 of _0x11e034)for(const _0x16b8fa of _0x11e034)if(_0x15c8e7!=_0x16b8fa&&!this['_areMergableCells'](_0x15c8e7,_0x16b8fa))return!0x1;return!0x0;}['_areMergableCells'](_0x2daf5c,_0x8df441){const _0x348db8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e6c34=this['editor']['model']['createRangeOn'](_0x2daf5c),_0x16740a=this['editor']['model']['createRangeOn'](_0x8df441),_0x2044ee=new Set(),_0x3544fa=new Set();for(const _0xa6e64f of _0x348db8['getSuggestions']())if(('insertion'==_0xa6e64f['type']||'deletion'==_0xa6e64f['type']||'mergeTableCells'==_0xa6e64f['subType'])&&_0xa6e64f['isInContent']){for(const _0x16cf03 of _0xa6e64f['getRanges']())_0x16cf03['containsRange'](_0x4e6c34,!0x0)&&_0x2044ee['add'](_0xa6e64f['type']+':'+_0xa6e64f['author']['id']),_0x16cf03['containsRange'](_0x16740a,!0x0)&&_0x3544fa['add'](_0xa6e64f['type']+':'+_0xa6e64f['author']['id']);}if(_0x2044ee['size']!=_0x3544fa['size'])return!0x1;for(const _0x58daf6 of _0x2044ee)if(!_0x3544fa['has'](_0x58daf6))return!0x1;return!0x0;}}class Ct extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x2bbc50=this['editor'];if(!_0x2bbc50['plugins']['has']('TableEditing'))return;const _0x4f2416=_0x2bbc50['locale'],_0x5e2af1=_0x2bbc50['plugins']['get']('TrackChangesEditing');_0x5e2af1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e2af1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e2af1['registerBlockAttribute']('headingRows'),_0x5e2af1['registerBlockAttribute']('headingColumns'),_0x5e2af1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4f2416,'FORMAT_HEADER_ROW')),_0x5e2af1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4f2416,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x506b5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421faf=this['editor']['plugins']['get']('TableUtils'),_0x2d5a55=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x53784a({showActiveMarker:_0x28c14d=!0x0,setDataAttribute:_0x384e29=!0x0}={}){return(_0x55ed98,_0x58477f,_0x25ebae)=>{const {type:_0x2a865e,id:_0x1384f4}=_0x506b5a['_splitMarkerName'](_0x58477f['markerName']),_0x255e52=_0x506b5a['getSuggestion'](_0x1384f4),_0x1d928c=_0x255e52['data'];if('formatBlock'!=_0x255e52['type']||!_0x1d928c||'setTableColumnHeader'!=_0x1d928c['commandName'])return;if(_0x58477f['item'])return void _0x55ed98['stop']();if(!_0x25ebae['consumable']['consume'](_0x58477f['markerRange'],_0x55ed98['name']))return;const _0x2bd3ea=_0x58477f['markerRange']['start']['nodeAfter'],_0x2f6ff0=_0x58477f['markerRange']['end']['nodeBefore'],_0x2ff2d2=_0x2bd3ea['parent']['parent'],{column:_0x4e08ec}=_0x421faf['getCellLocation'](_0x2bd3ea),{column:_0x5d4d30}=_0x421faf['getCellLocation'](_0x2f6ff0);for(let _0x543312=_0x4e08ec;_0x543312<=_0x5d4d30;_0x543312++){const _0x50f043=_0x421faf['createTableWalker'](_0x2ff2d2,{'column':_0x543312,'includeAllSlots':!0x1});for(const _0x20b208 of _0x50f043){const _0x2c76c0=_0x20b208['cell'],_0x414093=_0x25ebae['mapper']['toViewElement'](_0x2c76c0);_0x25ebae['writer']['addClass']('ck-suggestion-marker-'+_0x2a865e,_0x414093),_0x384e29&&_0x25ebae['writer']['setAttribute']('data-suggestion',_0x1384f4,_0x414093),_0x25ebae['mapper']['bindElementToMarker'](_0x414093,_0x58477f['markerName']),_0x28c14d&&(_0x506b5a['activeMarkers']['includes'](_0x58477f['markerName'])?_0x25ebae['writer']['addClass']('ck-suggestion-marker--active',_0x414093):_0x25ebae['writer']['removeClass']('ck-suggestion-marker--active',_0x414093));}}};}_0x506b5a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2d5a55),_0x506b5a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2d5a55),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x53784a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x131c74,_0x2c35a2,_0x353523)=>{_0x353523['options']['showSuggestionHighlights']&&_0x53784a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x131c74,_0x2c35a2,_0x353523);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x9011a1,_0x477be4,_0x269bec)=>{const {type:_0x3c4505,id:_0x460736}=_0x506b5a['_splitMarkerName'](_0x477be4['markerName']),_0x5c1101=_0x506b5a['getSuggestion'](_0x460736),_0x2f2d85=_0x5c1101['data'];if('formatBlock'!=_0x5c1101['type']||!_0x2f2d85||'setTableColumnHeader'!=_0x2f2d85['commandName'])return;const _0x363dac=_0x269bec['mapper']['markerNameToElements'](_0x477be4['markerName']);if(_0x363dac){for(const _0x548337 of _0x363dac)_0x269bec['writer']['removeClass']('ck-suggestion-marker-'+_0x3c4505,_0x548337),_0x269bec['writer']['removeClass']('ck-suggestion-marker--active',_0x548337),_0x269bec['writer']['removeAttribute']('data-suggestion',_0x548337),_0x269bec['mapper']['unbindElementFromMarkerName'](_0x548337,_0x477be4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x539fd9=this['editor'],_0x3fdb16=_0x539fd9['locale'];function _0x11978f(_0x5357ae){return{'type':'format','content':o(_0x3fdb16,'*Format:*\x20%0',_0x5357ae)};}_0x539fd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b8e3a=>{if('formatBlock'!=_0x4b8e3a['type'])return;const {data:_0x3b5eda}=_0x4b8e3a;if(_0x3b5eda){if('setTableRowHeader'==_0x3b5eda['commandName']){const _0x1781fe=_0x3b5eda['commandParams'][0x0]['forceValue'];return _0x11978f(o(_0x3fdb16,_0x1781fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b5eda['commandName']){const _0x4e07ba=_0x3b5eda['commandParams'][0x0]['forceValue'];return _0x11978f(o(_0x3fdb16,_0x4e07ba?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x228bd8=>[_0x228bd8,null]));class _t extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x5232ba=this['editor'];if(!_0x5232ba['plugins']['has']('TableClipboard'))return;const _0x3a14c2=_0x5232ba['plugins']['get']('TrackChangesEditing'),_0x56fb22=_0x5232ba['plugins']['get']('TableUtils'),_0x540472=_0x5232ba['plugins']['get'](It),_0x220917=_0x5232ba['plugins']['get']('TableClipboard');_0x540472['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5232ba['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5232ba['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f4b83=null;_0x5232ba['model']['on']('insertContent',(_0x164002,_0x3a6ce1)=>{const [_0x551d37,_0x5801bd]=_0x3a6ce1,_0x32b8f1=_0x3a6ce1[_0x3a6ce1['length']-0x1];_0x32b8f1&&_0x32b8f1['forceDefaultExecution']||_0x3a14c2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xaecd20,_0x32ee7d,_0x1ada5f,_0x3b628f,_0x55b6d6){if(_0x32ee7d&&!_0x32ee7d['is']('documentSelection'))return!0x1;const _0x3eb37a=_0x55b6d6['getTableIfOnlyTableInContent'](_0xaecd20,_0x1ada5f);if(!_0x3eb37a||!Re(_0x3eb37a,void 0x0,_0x3b628f))return!0x1;const _0x38de50=_0x3b628f['getSelectionAffectedTableCells'](_0x1ada5f['document']['selection']);if(!_0x38de50['length'])return!0x1;const _0x44a090=_0x38de50[0x0]['findAncestor']('table'),_0x34a734=_0x3b628f['getRowIndexes'](_0x38de50),_0x579670=_0x3b628f['getColumnIndexes'](_0x38de50),_0x4ebdfe={'startRow':_0x34a734['first'],'endRow':_0x34a734['last'],'startColumn':_0x579670['first'],'endColumn':_0x579670['last']};return 0x1==_0x38de50['length']&&(_0x4ebdfe['endRow']+=_0x3b628f['getRows'](_0x3eb37a)-0x1,_0x4ebdfe['endColumn']+=_0x3b628f['getColumns'](_0x3eb37a)-0x1),Re(_0x44a090,_0x4ebdfe,_0x3b628f);}(_0x551d37,_0x5801bd,_0x5232ba['model'],_0x56fb22,_0x220917)&&(_0x164002['stop'](),_0x2f4b83={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5232ba['model']['change'](()=>{_0x5232ba['model']['insertContent'](_0x3a6ce1[0x0],_0x3a6ce1[0x1],_0x3a6ce1[0x2],{'forceDefaultExecution':!0x0});const _0x293f36=_0x338779(),{rowInsertionRanges:_0x4357de,columnInsertionRanges:_0x1f5a23,insertionRanges:_0xd1f095,deletionRanges:_0x43aa37,cells:_0x1ea41a}=_0x2f4b83;_0x4357de['length']&&_0x3a14c2['markMultiRangeInsertion'](_0x4357de,'tablePasteRow',{'tablePasteChainId':_0x293f36}),_0x1f5a23['length']&&_0x3a14c2['markMultiRangeInsertion'](_0x1f5a23,'tablePasteColumn',{'tablePasteChainId':_0x293f36}),_0xd1f095['length']&&(_0x3a14c2['markMultiRangeInsertion'](_0xd1f095,'tablePaste',{'tablePasteChainId':_0x293f36,'skipNestingCheck':!0x0}),_0xd1f095['forEach'](_0xae2b7e=>_0xae2b7e['detach']?.())),_0x43aa37['length']&&(_0x3a14c2['markMultiRangeDeletion'](_0x43aa37,'tablePaste',{'tablePasteChainId':_0x293f36,'skipNestingCheck':!0x0}),_0x43aa37['forEach'](_0x424eb9=>_0x424eb9['detach']?.()));const _0x334474=_0x3a14c2['markMultiRangeBlockFormat'](_0x1ea41a['map'](({element:_0x23f31f})=>_0x23f31f),{'formatGroupId':_0x338779()},[],'tablePasteCell',{'tablePasteChainId':_0x293f36});if(_0x334474){const _0x6a82b=_0x334474['getMarkers'](),_0x11d99c=[];for(const {element:_0x4005b1,attributes:_0x3bf3ac}of _0x1ea41a){if(!_0x3bf3ac)continue;const _0x483308=_0x5232ba['model']['createRangeOn'](_0x4005b1),_0x5e4428=_0x6a82b['find'](_0x2c5abd=>_0x2c5abd['getRange']()['isEqual'](_0x483308));_0x5e4428&&_0x11d99c['push']([_0x5e4428['name'],_0x3bf3ac]);}_0x11d99c['length']&&_0x334474['setAttribute']('markerAttributes',Object['fromEntries'](_0x11d99c));}_0x2f4b83=null;}));},{'priority':_0x563ef4['high']+0xa}),_0x5232ba['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x57adac,_0x661b6d)=>{const [_0x23e472,_0x19218f,,_0x257186]=_0x661b6d;if(!_0x2f4b83)return;_0x57adac['stop']();const _0x156442=_0x23e472['cell'],_0x220d8b=_0x19218f,_0x58703b=ke(_0x156442),_0x868918=ke(_0x220d8b);_0x57adac['return']=_0x156442;let _0x52d44e=null,_0x70c546=null;if(_0x868918||_0x58703b){if(_0x58703b&&!_0x868918){_0x257186['remove'](_0x156442['getChild'](0x0));for(const _0x1347a0 of Array['from'](_0x220d8b['getChildren']()))_0x257186['insert'](_0x1347a0,_0x156442,'end');const _0x55cc1a=_0x2f4b83['rowInsertionIndexes']['includes'](_0x23e472['row']),_0x160448=_0x2f4b83['columnInsertionIndexes']['includes'](_0x23e472['column']);_0x55cc1a||_0x160448||(_0x52d44e=_0x4f83f9['fromRange'](_0x257186['createRangeIn'](_0x156442)));}else _0x868918&&!_0x58703b&&(_0x70c546=_0x257186['createRangeIn'](_0x156442));}else{const _0x3fd673=_0x257186['createElement']('tableCellSuggestion'),_0x17acdb=_0x257186['createElement']('tableCellSuggestion');_0x257186['wrap'](_0x257186['createRangeIn'](_0x156442),_0x17acdb),_0x257186['insert'](_0x3fd673,_0x156442,0x0);for(const _0xbfcbc2 of Array['from'](_0x220d8b['getChildren']()))_0x257186['insert'](_0xbfcbc2,_0x3fd673,'end');_0x52d44e=_0x4f83f9['fromRange'](_0x257186['createRangeOn'](_0x3fd673)),_0x70c546=_0x4f83f9['fromRange'](_0x257186['createRangeOn'](_0x17acdb));}const _0x2c7282=Array['from'](_0x220d8b['getAttributes']())['filter'](([_0x4c1139])=>Pe['includes'](_0x4c1139));_0x2f4b83['cells']['push']({'element':_0x156442,'attributes':_0x2c7282['length']?Object['fromEntries'](_0x2c7282):null}),_0x52d44e&&_0x2f4b83['insertionRanges']['push'](_0x52d44e),_0x70c546&&_0x2f4b83['deletionRanges']['push'](_0x70c546);},{'priority':'high'}),_0x56fb22['on']('insertColumns',(_0x408200,_0x5a21be)=>{const [_0x216066,_0x51b45d={}]=_0x5a21be;if(!_0x2f4b83)return;const _0x2dfa58=_0x51b45d['at']||0x0,_0x2763e0=_0x51b45d['columns']||0x1;_0x2f4b83['columnInsertionIndexes']=new Array(_0x2763e0)['fill'](_0x2dfa58)['map']((_0x25b731,_0x51b31f)=>_0x25b731+_0x51b31f);for(const {cell:_0x1eafa8}of _0x56fb22['createTableWalker'](_0x216066,{'startColumn':_0x2dfa58,'endColumn':_0x2dfa58+_0x2763e0-0x1}))_0x2f4b83['columnInsertionRanges']['push'](_0x5232ba['model']['createRangeOn'](_0x1eafa8));},{'priority':'low'}),_0x56fb22['on']('insertRows',(_0x3f9d14,_0x108a15)=>{const [_0x49fad7,_0x2f280f={}]=_0x108a15;if(!_0x2f4b83)return;const _0x45ed34=_0x2f280f['at']||0x0,_0x4032cc=_0x2f280f['rows']||0x1;_0x2f4b83['rowInsertionIndexes']=new Array(_0x4032cc)['fill'](_0x45ed34)['map']((_0x5a5aca,_0x55d460)=>_0x5a5aca+_0x55d460);for(const {cell:_0x107c77}of _0x56fb22['createTableWalker'](_0x49fad7,{'startRow':_0x45ed34,'endRow':_0x45ed34+_0x4032cc-0x1}))_0x2f4b83['rowInsertionRanges']['push'](_0x5232ba['model']['createRangeOn'](_0x107c77));},{'priority':'low'}),_0x3a14c2['descriptionFactory']['registerDescriptionCallback'](_0x5f5999=>{if(_0x5f5999['subType']&&_0x5f5999['subType']['startsWith']('tablePaste'))return _0x5f5999['previous']?{}:{'type':'insertion','content':o(_0x5232ba['locale'],'*Replace\x20table\x20cells*')};});const _0x1ec00d=()=>!0x1;for(const _0x218778 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3a14c2['_suggestionFactory']['registerCustomCallback']('insertion',_0x218778,'join',_0x1ec00d),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('deletion',_0x218778,'join',_0x1ec00d),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x218778,'join',_0x1ec00d);_0x3a14c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1ec00d),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42a0ad,_0x281917,_0x4c3121)=>{const _0x3b1aae=_0x42a0ad['map'](_0x22bf64=>_0x22bf64['getContainedElement']())['filter'](_0xed0db6=>_0xed0db6),_0x1fa0da=new Map(_0x3b1aae['map'](_0xc3cb60=>[_0xc3cb60,null]));if(_0x2f4b83){for(const {element:_0x4c794b,attributes:_0x57b7cb}of _0x2f4b83['cells'])_0x57b7cb&&_0x1fa0da['set'](_0x4c794b,_0x57b7cb);}else{if(_0x4c3121&&_0x4c3121['markerAttributes'])for(const [_0x5afd4f,_0x42537d]of Object['entries'](_0x4c3121['markerAttributes'])){const _0x1d9a07=_0x5232ba['model']['markers']['get'](_0x5afd4f),_0x809db4=_0x1d9a07?_0x1d9a07['getRange']()['getContainedElement']():null;_0x809db4&&_0x1fa0da['set'](_0x809db4,_0x42537d);}}_0x5232ba['model']['change'](_0x361b1a=>{for(const [_0x42201f,_0x6333b2]of _0x1fa0da)_0x361b1a['setAttributes']({...we,..._0x6333b2},_0x42201f);});});const _0xc27ead=(_0x309e7e,_0x398568)=>{_0x3a14c2['_suggestionFactory']['registerCustomCallback'](_0x309e7e,'tablePaste',_0x398568,(_0x4e3934,_0x12f198,_0x304ca8)=>{_0x5232ba['model']['change'](_0x45f0ac=>{const _0x3729ac=[];for(const _0x583bad of _0x4e3934){const _0xf53ebd=_0x583bad['start']['nodeAfter'];_0xf53ebd['is']('element','tableCellSuggestion')&&_0x3729ac['push'](_0xf53ebd);}_0x3a14c2['_suggestionFactory']['getSuggestionCallback'](_0x309e7e,null,_0x398568)(_0x4e3934,_0x12f198,_0x304ca8);for(const _0x490718 of _0x3729ac)'$graveyard'!=_0x490718['root']['rootName']&&_0x45f0ac['unwrap'](_0x490718);});});};_0xc27ead('insertion','accept'),_0xc27ead('insertion','discard'),_0xc27ead('deletion','accept'),_0xc27ead('deletion','discard'),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x43cf76=>{const _0xc31350=_0x43cf76['map'](_0x16c709=>_0x16c709['getContainedElement']()),_0x4f7eae=_0xc31350[0x0]['findAncestor']('table'),{minRow:_0x245778,maxRow:_0x2507b8}=_0x540472['_getCoordsForCells'](_0xc31350);_0x56fb22['removeRows'](_0x4f7eae,{'at':_0x245778,'rows':_0x2507b8-_0x245778+0x1});}),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x41163=>{const _0x35855d=_0x41163['map'](_0x380bb4=>_0x380bb4['getContainedElement']()),_0x516a9b=_0x35855d[0x0]['findAncestor']('table'),{minColumn:_0x399d1f,maxColumn:_0x1a9678}=_0x540472['_getCoordsForCells'](_0x35855d);_0x56fb22['removeColumns'](_0x516a9b,{'at':_0x399d1f,'columns':_0x1a9678-_0x399d1f+0x1});});const _0x5c8456=(_0xb18ec4,_0x155511)=>{if(!_0x155511['subType']||!_0x155511['subType']['startsWith']('tablePaste'))return;const _0x2207fe=_0x155511['attributes']['tablePasteChainId'],_0xf8083e=_0x3a14c2['getSuggestions']()['filter'](_0x31bc47=>_0x31bc47['isInContent']&&_0x31bc47['attributes']&&_0x31bc47['attributes']['tablePasteChainId']==_0x2207fe);_0xf8083e['length']&&_0x155511['getAllAdjacentSuggestions']()['length']!=_0xf8083e['length']&&_0xf8083e['reduce']((_0x4b6eec,_0x4f3d79)=>(_0x4b6eec['next']=_0x4f3d79,_0x4f3d79['previous']=_0x4b6eec,_0x4f3d79));};function _0x1e82d3(_0xdc8e4e,_0x14b97c=!0x0){const {id:_0x29f82b,authorId:_0x2c5634}=_0x3a14c2['_splitMarkerName'](_0xdc8e4e['markerName']),_0xd888ab=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x59d372=_0x3a14c2['activeMarkers']['includes'](_0xdc8e4e['markerName']);return _0x59d372&&_0xd888ab['push']('ck-suggestion-marker--active'),{'classes':_0xd888ab,'attributes':{'data-suggestion':_0x29f82b,'data-author-id':_0x2c5634},'priority':_0x59d372&&_0x14b97c?0xbc2:0xbb8};}_0x3a14c2['on']('suggestionLoaded',_0x5c8456,{'priority':'high'}),_0x3a14c2['on']('suggestionUnloaded',_0x5c8456,{'priority':'high'}),_0x5232ba['model']['document']['registerPostFixer'](()=>{let _0x1fbef5=!0x1;const _0x5f20bb=Array['from'](_0x5232ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37a9bf,data:_0x59f838}of _0x5f20bb){const {group:_0xe3f8,type:_0x3b9301,id:_0x106fe5}=_0x3a14c2['_splitMarkerName'](_0x37a9bf);if('suggestion'!=_0xe3f8||'deletion'!=_0x3b9301||_0x59f838['oldRange'])continue;if(!_0x3a14c2['hasSuggestion'](_0x106fe5))continue;const _0x2c5a0e=_0x3a14c2['getSuggestion'](_0x106fe5)['getRanges'](),_0x436d74=_0x5232ba['plugins']['get']('Users')['me'];for(const _0x4ec880 of _0x3a14c2['getSuggestions']()){if(!_0x4ec880['isInContent']||_0x4ec880['author']!=_0x436d74)continue;if('formatBlock'!=_0x4ec880['type']||'tablePasteCell'!=_0x4ec880['subType'])continue;if(_0x4ec880['getRanges']()['every'](_0x5be8d0=>_0x2c5a0e['some'](_0x2cc8e4=>_0x2cc8e4['containsRange'](_0x5be8d0,!0x0)))){for(const _0x42144b of _0x4ec880['getAllAdjacentSuggestions']())_0x42144b['isInContent']&&(_0x42144b['discard'](),_0x1fbef5=!0x0);}}}return _0x1fbef5;}),_0x5232ba['model']['document']['registerPostFixer'](_0x2033ec=>{const _0x19666c=_0x5232ba['commands']['get']('redo');if(!_0x19666c||!_0x19666c['_createdBatches']['has'](_0x2033ec['batch']))return!0x1;let _0x1f42c9=!0x1;const _0x49ea1d=_0x5232ba['plugins']['get']('Users')['me'],_0x2c8ec9=_0x5232ba['model']['document']['differ']['getChanges'](),_0x10c05a=Array['from'](_0x5232ba['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x247d7c,data:_0x14a6f2})=>{const {group:_0x3e34fa,subType:_0x1206cf,authorId:_0x580ea5}=_0x3a14c2['_splitMarkerName'](_0x247d7c);return'suggestion'==_0x3e34fa&&'tablePaste'==_0x1206cf&&_0x580ea5==_0x49ea1d['id']&&!_0x14a6f2['oldRange'];});for(const _0x1ce267 of _0x2c8ec9){if('insert'!=_0x1ce267['type']||'tableCellSuggestion'!=_0x1ce267['name']||0x1!=_0x1ce267['length'])continue;const _0x7fd468=_0x2033ec['createRange'](_0x1ce267['position'],_0x1ce267['position']['getShiftedBy'](0x1));if(!_0x10c05a['find'](({data:_0x1e13ac})=>_0x1e13ac['newRange']['isEqual'](_0x7fd468))){for(const {name:_0x1e03ca,data:_0x45e620}of _0x10c05a)if(_0x7fd468['containsRange'](_0x45e620['newRange'])){_0x2033ec['updateMarker'](_0x1e03ca,{'range':_0x7fd468}),_0x1f42c9=!0x0;break;}}}return _0x1f42c9;}),_0x5232ba['model']['document']['registerPostFixer'](_0x126204=>{let _0x59b849=!0x1;const _0x50f678=_0x5232ba['plugins']['get']('Users')['me'],_0x25d5c3=_0x3a14c2['getSuggestions']()['filter'](_0x4c2e03=>_0x4c2e03['isInContent']&&_0x4c2e03['author']==_0x50f678),_0x2530a1=new Set(),_0x2f7e23=new Set();for(const _0xe053f6 of _0x25d5c3)if('tablePaste'==_0xe053f6['subType'])for(const _0x508bc7 of _0xe053f6['getMarkers']()){const _0x3c52b9=_0x508bc7['getRange']()['getContainedElement']();if(_0x3c52b9){if(_0x3c52b9['is']('element','tableCellSuggestion')&&ke(_0x3c52b9)){_0xe053f6['removeMarker'](_0x508bc7['name']),_0x2530a1['add'](_0x3c52b9),_0x59b849=!0x0;const _0x262935=_0x3c52b9['nextSibling'],_0x2cfc25=_0x3c52b9['previousSibling'],_0x4c127e=_0x262935&&_0x262935['is']('element','tableCellSuggestion'),_0x1f9f37=_0x2cfc25&&_0x2cfc25['is']('element','tableCellSuggestion');_0x4c127e&&!_0x2530a1['has'](_0x262935)&&_0x2f7e23['add'](_0x262935),_0x1f9f37&&!_0x2530a1['has'](_0x2cfc25)&&_0x2f7e23['add'](_0x2cfc25);}else _0x3c52b9['is']('element','paragraph')&&_0x3c52b9['isEmpty']&&(_0xe053f6['removeMarker'](_0x508bc7['name']),_0x59b849=!0x0);}}else{if('tablePasteCell'==_0xe053f6['subType']){if(!_0xe053f6['attributes']||!_0xe053f6['attributes']['tablePasteChainId'])continue;const _0x1f328b=_0xe053f6['attributes']['markerAttributes'];if(_0x1f328b&&Object['keys'](_0x1f328b)['length'])continue;const _0x216633=_0xe053f6['attributes']['tablePasteChainId'];let _0x3e018f=!0x0,_0x37cef8=!0x0;for(const _0x564027 of _0x25d5c3)if(_0x564027['subType']&&_0x564027['subType']['startsWith']('tablePaste')){if(!_0x564027['attributes']['tablePasteChainId']){_0x37cef8=!0x1;break;}if(_0x564027['id']!=_0xe053f6['id']&&_0x564027['attributes']['tablePasteChainId']==_0x216633){_0x3e018f=!0x1;break;}}_0x37cef8&&_0x3e018f&&(_0xe053f6['removeMarkers'](),_0x59b849=!0x0);}}for(const _0x371cbb of _0x2530a1)_0x126204['remove'](_0x371cbb);for(const _0x103f5b of _0x2f7e23)_0x126204['unwrap'](_0x103f5b);return _0x59b849;}),_0x5232ba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a73c7=>_0x1e82d3(_0x5a73c7),'converterPriority':'high'}),_0x5232ba['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb1514e,_0x489cd0)=>_0x489cd0['options']['showSuggestionHighlights']?_0x1e82d3(_0xb1514e,!0x1):null,'converterPriority':'high'});const _0x37011f=_0x5232ba['editing']['view'];this['listenTo'](_0x37011f['document'],'clipboardOutput',(_0x234059,_0x4446d2)=>{const _0x3f2a6f=[];for(const _0x39e600 of _0x37011f['createRangeIn'](_0x4446d2['content'])['getItems']())_0x39e600['is']('element','suggestion-td')&&_0x3f2a6f['push'](_0x39e600);_0x37011f['change'](_0x3729cc=>{for(const _0x341ae8 of _0x3f2a6f)_0x3729cc['move'](_0x3729cc['createRangeIn'](_0x341ae8),_0x3729cc['createPositionBefore'](_0x341ae8)),_0x3729cc['remove'](_0x341ae8);});});}}function ke(_0x2f30b3){if(_0x2f30b3['isEmpty'])return!0x0;const _0x3a2324=_0x2f30b3['getChild'](0x0);return _0x3a2324['is']('element','paragraph')&&_0x3a2324['isEmpty'];}function Re(_0x355682,_0x23d102={},_0x1eca49){for(const {isAnchor:_0x256aa6,cellHeight:_0x2e4046,cellWidth:_0x31a47e}of _0x1eca49['createTableWalker'](_0x355682,{'includeAllSlots':!0x0,..._0x23d102}))if(!_0x256aa6||0x1!=_0x2e4046||0x1!=_0x31a47e)return!0x1;return!0x0;}class Nt extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3bd181=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bd181['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3bd181['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3bd181['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bd181['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3bd181['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3bd181['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5d9462,_0x132a14){const _0x59794e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50e8c3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1b81f2=_0x132a14['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x6c31f9=_0x50e8c3['getColumnGroupElement'](_0x1b81f2);let _0x50f0d7=_0x6c31f9?_0x50e8c3['getTableColumnsWidths'](_0x6c31f9):null,_0x24a366=_0x1b81f2['getAttribute']('tableWidth')||null;const _0x159f73=_0x132a14['tableWidth']||_0x24a366,_0x57b7e9=_0x132a14['columnWidths']||_0x50f0d7,_0x417e05=this['editor']['plugins']['get']('Users')['me'];for(const _0x407786 of _0x59794e['getSuggestions']()){const _0x323ce6=_0x407786['getContainedElement']();if('resizeTable'===_0x407786['subType']&&_0x323ce6===_0x1b81f2){_0x407786['author']!==_0x417e05&&_0x407786['discard']();const _0x29187a=_0x407786['data']['commandParams'];_0x24a366=_0x29187a[0x0]['tableWidth'],_0x50f0d7=_0x29187a[0x0]['columnWidths'];break;}}_0x5d9462({'table':_0x1b81f2,'tableWidth':_0x159f73,'columnWidths':_0x57b7e9}),_0x59794e['markBlockFormat'](_0x1b81f2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x24a366,'columnWidths':_0x50f0d7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4db897){if('formatBlock'!=_0x4db897['type']&&'formatInline'!=_0x4db897['type'])return;const {data:_0x2cf6c1}=_0x4db897;if(_0x2cf6c1&&'resizeTable'===_0x2cf6c1['formatGroupId']){const _0x2cb7fd='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2cb7fd)};}}}class Dt extends _0x1d1013{['afterInit'](){const _0x1d0551=this['editor'];_0x1d0551['plugins']['has']('Template')&&_0x1d0551['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1d1013{['afterInit'](){const _0x5888a0=this['editor'];if(!_0x5888a0['commands']['get']('insertTableOfContents'))return;_0x5888a0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x487529=_0x5888a0['plugins']['get']('TrackChangesEditing'),_0x4e161a=_0x5888a0['locale'];_0x487529['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12ace7=>o(_0x4e161a,'ELEMENT_TABLE_OF_CONTENTS',_0x12ace7));}}class $t extends _0x1d1013{['afterInit'](){const _0x543c6f=this['editor'];if(!_0x543c6f['plugins']['has']('Title'))return;const _0x56d2d2=_0x543c6f['plugins']['get']('TrackChangesEditing');_0x56d2d2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x543c6f['locale'],'ELEMENT_TITLE')),_0x543c6f['model']['document']['registerPostFixer'](_0x1ca9f4=>{let _0x25c6ff=!0x1;const _0x3de510=Array['from'](_0x543c6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b0aa6,data:_0x5065e5}of _0x3de510){const {group:_0x1e7fa6}=_0x56d2d2['_splitMarkerName'](_0x5b0aa6);if('suggestion'!==_0x1e7fa6||!_0x5065e5['newRange'])continue;const _0x43c978=_0x5065e5['newRange'],_0x47114f=_0x43c978['end']['nodeBefore'];if(!_0x47114f||!_0x47114f['is']('element','title-content'))continue;if(!_0x43c978['start']['isTouching'](_0x43c978['end']))continue;const _0x5ae225=_0x543c6f['model']['schema']['getNearestSelectionRange'](_0x43c978['end'],'forward');if(_0x5ae225&&_0x5ae225['isCollapsed']){const _0x30aa03=_0x1ca9f4['createRange'](_0x43c978['start'],_0x5ae225['start']);_0x30aa03['isEqual'](_0x43c978)||(_0x1ca9f4['updateMarker'](_0x5b0aa6,{'range':_0x30aa03}),_0x25c6ff=!0x0);}_0x25c6ff||(_0x1ca9f4['removeMarker'](_0x5b0aa6),_0x25c6ff=!0x0);}return _0x25c6ff;});}}class Bt extends _0x1d1013{['afterInit'](){const _0x5ae2a4=this['editor'],_0x385971=_0x5ae2a4['plugins']['get']('TrackChangesEditing');_0x5ae2a4['plugins']['has']('UndoEditing')&&(_0x385971['enableCommand']('undo'),_0x385971['enableCommand']('redo'));}}class xt extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x130582=this['editor'];if(!_0x130582['plugins']['has']('TableCaptionEditing'))return;_0x130582['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x1d1013{['tableProperties'];['tableCellProperties'];constructor(_0x18fd53){super(_0x18fd53),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 _0x48c9c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x59da28 of this['tableProperties'])_0x48c9c0['enableCommand'](_0x59da28,(_0x498716,_0x12403d)=>{const _0x135bd5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x59da28,[_0x135bd5],this['tableProperties'],'tableProperties',_0x498716,_0x12403d);});_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x48c9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x33c12c,_0x1c1124)=>this['handleDiscardAction'](this['tableProperties'],_0x33c12c,_0x1c1124)),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56e25a of this['tableCellProperties'])_0x48c9c0['enableCommand'](_0x56e25a,(_0x1480c7,_0x48561e)=>{const _0x3e2f61=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56e25a,_0x3e2f61,this['tableCellProperties'],'tableCellProperties',_0x1480c7,_0x48561e);});_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x48c9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1f75eb,_0x180567)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1f75eb,_0x180567)),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x48c9c0['descriptionFactory']['registerDescriptionCallback'](_0x2950e5=>this['handleSuggestionDescription'](_0x2950e5));}['_handlePropertyChange'](_0x3bb29f,_0x16efb7,_0x4f3aac,_0x2449de,_0x459071,_0x2fc073){const _0x5756f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2fc073['batch'],()=>{for(const _0x5d80b3 of _0x16efb7){if(this['_getSuggestion'](_0x5d80b3,_0x2449de))_0x459071(_0x2fc073);else{const _0xaf4bf5={};for(const _0x29586e of _0x4f3aac){const _0x5a887d=_0x5d80b3['getAttribute'](_0x29586e);void 0x0!==_0x5a887d&&(_0xaf4bf5[_0x29586e]=_0x5a887d);}_0x459071(_0x2fc073),_0x5756f0['markBlockFormat'](_0x5d80b3,{'commandParams':[_0xaf4bf5]},[],_0x2449de);}}});}['handleDiscardAction'](_0xe7d188,_0x2f9c5b,_0x5eb87e){const _0x4e4cde=_0x2f9c5b[0x0]['start']['nodeAfter'],_0x269fe7=_0x5eb87e['commandParams'][0x0];this['editor']['model']['change'](_0x54bb9a=>{for(const _0x14bf95 of _0xe7d188)void 0x0!==_0x269fe7[_0x14bf95]?_0x54bb9a['setAttribute'](_0x14bf95,_0x269fe7[_0x14bf95],_0x4e4cde):_0x54bb9a['removeAttribute'](_0x14bf95,_0x4e4cde);});}['handleSuggestionDescription'](_0x369557){if(_0x369557['data'])switch(_0x369557['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3f09d8,_0x44e279){const _0x13651f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x10030d of _0x13651f['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f00b5=_0x10030d['getContainedElement']();if(_0x10030d['subType']===_0x44e279&&_0x3f00b5===_0x3f09d8)return _0x10030d;}return null;}}const m='$elementName';class p extends _0x1d1013{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ad360,_0x2b6a22,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56ad67){function _0x10b104(_0x1052c9){return _0x1052c9['map'](_0x295a3a=>String['fromCharCode'](_0x295a3a))['join']('');}super(_0x56ad67),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1b4db2,_0x2d6238,_0x471b0c,_0x22f99e)=>{this['_model']['change'](()=>{for(const _0x21dd51 of[..._0x22f99e,..._0x471b0c])this['_model']['markers']['has'](_0x21dd51)&&_0x56ad67['editing']['reconvertMarker'](_0x21dd51);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x56ad67['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x56ad67['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56ad67['config']['get']('trackChanges.trackFormatChanges'),_0x56ad67['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56ad67['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x56ad67,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x10b104([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10b104([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x30]);}['init'](){const _0x5132b8=this['editor'],_0x2032df=(_0x44873a,_0x593508)=>{if('attribute'!=_0x44873a)return'ck-suggestion-marker-'+_0x44873a;const _0x544fc3=_0x593508['split']('|')[0x0];return this['_isBlockAttribute'](_0x544fc3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5132b8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x51677a=>{const {id:_0x9df36f,authorId:_0x51583d,type:_0x19baae,subType:_0x5ca736}=this['_splitMarkerName'](_0x51677a['markerName']),_0x5644ab=['ck-suggestion-marker',_0x2032df(_0x19baae,_0x5ca736)];let _0x53d73c=0xbb8;return this['activeMarkers']['includes'](_0x51677a['markerName'])&&(_0x5644ab['push']('ck-suggestion-marker--active'),_0x53d73c=0xbc2),'deletion'==_0x19baae&&(_0x53d73c+=0x5),{'classes':_0x5644ab,'attributes':{'data-suggestion':_0x9df36f,'data-author-id':_0x51583d},'priority':_0x53d73c};}}),_0x5132b8['conversion']['for']('dataDowncast')['add'](_0x35f77a=>{_0x35f77a['on']('addMarker:suggestion',(_0x4b6ffc,_0x3bd53e,_0x78805c)=>{if(!_0x78805c['options']['showSuggestionHighlights'])return;const _0x5e46a6=_0x3bd53e['item'];if(!_0x5e46a6)return;const _0x11a7fd=_0x78805c['mapper']['toViewElement'](_0x5e46a6);_0x5132b8['model']['schema']['isObject'](_0x5e46a6)&&_0x11a7fd&&!_0x11a7fd['getCustomProperty']('widget')&&_0x11a7fd['is']('containerElement')&&_0x323006(_0x11a7fd,_0x78805c['writer']);},{'priority':'high'});}),_0x5132b8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5054d7,_0x71a7f5)=>{if(!_0x71a7f5['options']['showSuggestionHighlights'])return null;const {type:_0x195b7e,subType:_0x4356de}=this['_splitMarkerName'](_0x5054d7['markerName']);return{'classes':['ck-suggestion-marker',_0x2032df(_0x195b7e,_0x4356de)],'priority':0xbb8};}});const _0xd9cfbe=({showActiveMarkers:_0x1b291a=!0x0,isAttributeSuggestion:_0x5f022b=!0x1}={})=>(_0x1c7c59,_0x4b371c,_0x29dcde)=>{if(!_0x4b371c['item'])return;const {id:_0x4c6819,authorId:_0x564ab0}=this['_splitMarkerName'](_0x4b371c['markerName']);if(_0x5f022b){const _0x593dd4=this['_suggestions']['get'](_0x4c6819),_0x57ddf9=this['_getAttributeKey'](_0x593dd4);if(!this['_isBlockAttribute'](_0x57ddf9))return;}if(_0x4b371c['item']['is']('selection'))return void _0x29dcde['consumable']['consume'](_0x4b371c['item'],_0x1c7c59['name']);const _0x2a26a8=_0x29dcde['mapper']['toViewElement'](_0x4b371c['item']);if(_0x4b371c['item']['is']('element')&&_0x5132b8['model']['schema']['isBlock'](_0x4b371c['item'])&&!_0x2a26a8['getCustomProperty']('addHighlight')){_0x29dcde['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2a26a8),_0x29dcde['writer']['setAttribute']('data-suggestion',_0x4c6819,_0x2a26a8),_0x29dcde['writer']['setAttribute']('data-author-id',_0x564ab0,_0x2a26a8),_0x29dcde['mapper']['bindElementToMarker'](_0x2a26a8,_0x4b371c['markerName']),_0x1b291a&&(this['activeMarkers']['includes'](_0x4b371c['markerName'])?_0x29dcde['writer']['addClass']('ck-suggestion-marker--active',_0x2a26a8):_0x29dcde['writer']['removeClass']('ck-suggestion-marker--active',_0x2a26a8));for(const _0x466247 of _0x5132b8['model']['createRangeIn'](_0x4b371c['item'])['getItems']())_0x29dcde['consumable']['consume'](_0x466247,_0x1c7c59['name']);_0x29dcde['consumable']['consume'](_0x4b371c['item'],_0x1c7c59['name']);}};_0x5132b8['conversion']['for']('dataDowncast')['add'](_0x77dda=>{_0x77dda['on']('addMarker:suggestion:formatBlock',(_0x846edb,_0x459b09,_0x5225d5)=>{_0x5225d5['options']['showSuggestionHighlights']&&_0xd9cfbe({'showActiveMarkers':!0x1})(_0x846edb,_0x459b09,_0x5225d5);},{'priority':'highest'});}),_0x5132b8['conversion']['for']('dataDowncast')['add'](_0x414770=>{_0x414770['on']('addMarker:suggestion:attribute',(_0x2e8e20,_0xf7061b,_0x527bd0)=>{_0x527bd0['options']['showSuggestionHighlights']&&_0xd9cfbe({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2e8e20,_0xf7061b,_0x527bd0);},{'priority':'highest'});}),_0x5132b8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x56cde6,_0x3fb0d1)=>_0x3fb0d1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x56cde6['substr'](0xb)}}),_0x5132b8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1f618e,{writer:_0x170894})=>{let _0x39c5b1='suggestion:'+_0x1f618e['getAttribute']('suggestion-type')+':'+_0x1f618e['getAttribute']('id');return _0x1f618e['getAttribute']('marker-count')&&(_0x39c5b1+=':'+_0x1f618e['getAttribute']('marker-count')),_0x170894['createElement']('$marker',{'data-name':_0x39c5b1});}}),_0x5132b8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x5a139b=>{_0x5a139b['on']('addMarker:suggestion:formatBlock',_0xd9cfbe(),{'priority':'high'});}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x21b805=>{_0x21b805['on']('addMarker:suggestion:attribute',_0xd9cfbe({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x93cc1b=>{_0x93cc1b['on']('removeMarker:suggestion:formatBlock',(_0x271a0c,_0x1e0567,_0x283a80)=>{const _0x4a7b47=_0x283a80['mapper']['markerNameToElements'](_0x1e0567['markerName']);if(_0x4a7b47){for(const _0x1b86e7 of _0x4a7b47)_0x1b86e7['getCustomProperty']('addHighlight')||(_0x283a80['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1b86e7),_0x283a80['writer']['removeAttribute']('data-suggestion',_0x1b86e7),_0x283a80['writer']['removeAttribute']('data-author-id',_0x1b86e7),_0x283a80['mapper']['unbindElementFromMarkerName'](_0x1b86e7,_0x1e0567['markerName']));}},{'priority':'high'});}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x568f73=>{_0x568f73['on']('removeMarker:suggestion:attribute',(_0x30bbfd,_0xe97497,_0x2d6f40)=>{const _0x57ac44=_0x2d6f40['mapper']['markerNameToElements'](_0xe97497['markerName']);if(!_0x57ac44)return;const {id:_0x54a489}=this['_splitMarkerName'](_0xe97497['markerName']),_0x4f8596=this['_suggestions']['get'](_0x54a489),_0x5e9046=this['_getAttributeKey'](_0x4f8596);if(this['_isBlockAttribute'](_0x5e9046)){for(const _0x26ab31 of _0x57ac44)_0x26ab31['getCustomProperty']('addHighlight')||(_0x2d6f40['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26ab31),_0x2d6f40['writer']['removeAttribute']('data-suggestion',_0x26ab31),_0x2d6f40['writer']['removeAttribute']('data-author-id',_0x26ab31),_0x2d6f40['mapper']['unbindElementFromMarkerName'](_0x26ab31,_0xe97497['markerName']));}},{'priority':'high'});}),_0x5132b8['model']['document']['registerPostFixer'](_0xf333a2=>{let _0x2982b7=!0x1;const _0x2f5617=Array['from'](_0x5132b8['model']['document']['differ']['getChangedMarkers']()),_0x240fe4=new Set();for(const {name:_0x2e3364,data:_0x53589c}of _0x2f5617){const {group:_0xdb182c,type:_0x3c7717,subType:_0xb80f32,id:_0x5f4444}=this['_splitMarkerName'](_0x2e3364);if('suggestion'!==_0xdb182c)continue;const _0x4b0e2a=this['_suggestions']['get'](_0x5f4444);if(null!=_0x53589c['newRange']){'formatInline'==_0x3c7717&&(_0x2982b7=_0x2982b7||Ut(_0x53589c['newRange'],_0x2e3364,_0xf333a2,_0x5132b8['model']['schema']));const _0x24dddf='attribute'==_0x3c7717&&this['_isBlockAttribute'](_0xb80f32['split']('|')[0x0]);if(_0x53589c['newRange']['isCollapsed']||'$graveyard'==_0x53589c['newRange']['root']['rootName']||'formatBlock'==_0x3c7717&&!Gt(_0x53589c['newRange'])||_0x24dddf&&!Gt(_0x53589c['newRange'])||'deletion'==_0x3c7717&&!(!Vt(_0x22c1f4=_0x53589c['newRange'])&&!function(_0x240e4c){return _0x240e4c['start']['parent']==_0x240e4c['end']['nodeBefore']&&_0x240e4c['start']['isAtEnd'];}(_0x22c1f4)))_0xf333a2['removeMarker'](_0x2e3364),_0x2982b7=!0x0;else{if(!_0x4b0e2a||!_0x4b0e2a['isInContent'])continue;if(_0x53589c['newRange']&&_0x53589c['oldRange']&&_0x53589c['newRange']['isEqual'](_0x53589c['oldRange']))continue;_0x240fe4['add'](_0x4b0e2a);}}}var _0x22c1f4;return _0x240fe4['size']>0x0&&(_0x2982b7=!!this['_joinWithAdjacentSuggestions'](_0x240fe4)||_0x2982b7),_0x2982b7;}),_0x5132b8['model']['document']['registerPostFixer'](_0x1c8e55=>{let _0x135118=!0x1;for(const _0x2742d8 of _0x5132b8['model']['document']['differ']['getChanges']())if('insert'==_0x2742d8['type'])for(const _0x3a5606 of this['_suggestions']['values']()){if(_0x3a5606['isMultiRange']||!_0x3a5606['isInContent'])continue;const _0x3f195d='formatBlock'==_0x3a5606['type'],_0x378a62=this['_getAttributeKey'](_0x3a5606),_0xc19173=_0x378a62&&this['_isBlockAttribute'](_0x378a62);if(!_0x3f195d&&!_0xc19173)continue;const _0x55edfe=_0x3a5606['getFirstRange']();if(_0x55edfe['start']['parent']!=_0x55edfe['end']['parent']&&!_0x55edfe['end']['isAtEnd']){const _0x548ddb=_0x5132b8['model']['createPositionAt'](_0x55edfe['start']['nodeAfter'],'end'),_0x304bb7=_0x5132b8['model']['createRange'](_0x55edfe['start'],_0x548ddb);_0x1c8e55['updateMarker'](_0x3a5606['getFirstMarker'](),{'range':_0x304bb7}),_0x135118=!0x0;}}return _0x135118;}),_0x5132b8['model']['document']['registerPostFixer'](_0x42ed7c=>this['_processAttributeChanges'](_0x42ed7c)),_0x5132b8['model']['document']['registerPostFixer'](_0x210aaf=>!_0x210aaf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x210aaf)),_0x5132b8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5132b8['model']['document']['on']('change:data',(_0x575409,_0x114054)=>{if(!_0x114054['isLocal']||_0x114054['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x14548e=_0x5132b8['model']['document']['differ']['getChanges']();if(0x0==_0x14548e['length'])return;const _0x4774bf=[],_0x48f25b=_0x14548e['filter'](_0x18157b=>'attribute'==_0x18157b['type']),_0x3fee4d=_0x14548e['filter'](_0x999cfd=>'insert'==_0x999cfd['type']&&'$text'!=_0x999cfd['name']);for(const _0x34196a of _0x48f25b)this['_isRegisteredAttribute'](_0x34196a['attributeKey'])&&_0x4774bf['push']({'key':_0x34196a['attributeKey'],'newValue':_0x34196a['attributeNewValue'],'oldValue':_0x34196a['attributeOldValue'],'range':Ft(_0x34196a['range'],_0x5132b8['model'])});for(const _0x531c23 of _0x3fee4d){if('rename'!=_0x531c23['action']&&'refresh'!=_0x531c23['action'])continue;const _0x45072c=Lt(_0x531c23['position']['nodeAfter'],_0x5132b8['model']),_0x34dac5=_0x531c23['before'];'rename'==_0x531c23['action']&&_0x4774bf['push']({'key':m,'newValue':_0x531c23['name'],'oldValue':_0x34dac5['name'],'range':_0x45072c});for(const [_0x5eed17,_0x5dee0f]of _0x34dac5['attributes']){if(!this['_isRegisteredAttribute'](_0x5eed17))continue;const _0x67167c=_0x531c23['attributes']['get'](_0x5eed17);_0x5dee0f!==_0x67167c&&_0x4774bf['push']({'key':_0x5eed17,'newValue':_0x67167c,'oldValue':_0x5dee0f,'range':_0x45072c});}for(const [_0x57be4f,_0x2116cd]of _0x531c23['attributes'])this['_isRegisteredAttribute'](_0x57be4f)&&(_0x34dac5['attributes']['has'](_0x57be4f)||_0x4774bf['push']({'key':_0x57be4f,'newValue':_0x2116cd,'oldValue':null,'range':_0x45072c}));}0x0!=_0x4774bf['length']&&_0x5132b8['model']['enqueueChange'](_0x114054,_0x240811=>{const _0x400a99=_0x338779();for(const {range:_0x3f8e63,key:_0x5521c4,oldValue:_0x546ff9,newValue:_0x99a43e}of _0x4774bf)this['markAttributeChange'](_0x3f8e63,_0x5521c4,_0x546ff9,_0x99a43e,{'groupId':_0x400a99});this['_reduceExistingSuggestions'](_0x240811,_0x4774bf);});},{'priority':'lowest'}),_0x5132b8['model']['markers']['on']('update:suggestion',(_0x3c4034,_0x2063a6,_0x4f471)=>{if(null==_0x4f471){const {id:_0x387d18}=this['_splitMarkerName'](_0x2063a6['name']),_0x51a364=this['_suggestions']['get'](_0x387d18);_0x51a364&&_0x51a364['addMarkerName'](_0x2063a6['name']);}}),_0x5132b8['model']['document']['on']('change:data',()=>{const _0x393887=Array['from'](_0x5132b8['model']['document']['differ']['getChangedMarkers']())['filter'](_0xa24fe7=>'suggestion'===this['_splitMarkerName'](_0xa24fe7['name'])['group']);if(0x0===_0x393887['length'])return;_0x393887['sort']((_0x2c1fcc,_0x3c84e2)=>{const _0x54c76a=_0x2c1fcc['data']['oldRange'],_0x5734df=_0x3c84e2['data']['oldRange'];return null===_0x54c76a&&null===_0x5734df?0x0:null===_0x54c76a&&null!==_0x5734df?-0x1:null!==_0x54c76a&&null===_0x5734df?0x1:_0x54c76a['start']['isBefore'](_0x5734df['start'])?-0x1:0x1;});const _0x10559e=new Set(),_0x628636=new Set();for(const {name:_0x1c38cb,data:_0x4e5cea}of _0x393887){const {id:_0xcccdb4}=this['_splitMarkerName'](_0x1c38cb);if(null===_0x4e5cea['oldRange']){const _0x4dc8d6=this['_handleNewSuggestionMarker'](_0x1c38cb);_0x628636['add'](_0x4dc8d6);}else{const _0xb34ff=this['_suggestions']['get'](_0xcccdb4);null!==_0x4e5cea['newRange']||_0xb34ff['isInContent']?(_0x10559e['add'](_0xb34ff['head']),_0x628636['add'](_0xb34ff)):this['_removeSuggestion'](_0xb34ff);}}_0x628636['size']>0x0&&this['_refreshSuggestionsChain'](_0x628636);for(const _0x3ebaa3 of _0x10559e)this['fire']('suggestionChanged',_0x3ebaa3);}),_0x5132b8['model']['on']('applyOperation',(_0x4756bf,_0x3fd93a)=>{const _0x26d635=_0x3fd93a[0x0];if(!this['_suggestions']['size'])return;if(!_0x26d635['isDocumentOperation'])return;if(_0x26d635['batch']['isUndo']||!_0x26d635['batch']['isLocal'])return;let _0x66494c,_0x4b484b;switch(_0x26d635['type']){case'insert':_0x66494c=_0x5132b8['model']['createPositionAt'](_0x26d635['position']),_0x4b484b=_0x66494c['getShiftedBy'](_0x26d635['howMany']);break;case'split':_0x66494c=_0x5132b8['model']['createPositionAt'](_0x26d635['splitPosition']),_0x4b484b=_0x5132b8['model']['createPositionAt'](_0x26d635['moveTargetPosition']);break;case'move':_0x66494c=_0x5132b8['model']['createPositionAt'](_0x26d635['targetPosition']),_0x4b484b=_0x66494c['getShiftedBy'](_0x26d635['howMany']);break;default:return;}const _0x33ca03=_0x5132b8['model']['createRange'](_0x66494c,_0x4b484b);_0x5132b8['model']['change'](()=>{for(const {suggestion:_0x4efd1f,meta:_0x2a27bc}of this['_findSuggestions'](_0x33ca03)){if(_0x4efd1f['isMultiRange'])continue;if('formatInline'==_0x4efd1f['type'])continue;const _0x38f905=this['_getAttributeKey'](_0x4efd1f);if(_0x38f905&&this['_isBlockAttribute'](_0x38f905)&&'split'!=_0x26d635['type'])continue;const _0x3984ff=_0x4efd1f['data']&&_0x4efd1f['data']['multipleBlocks'];('formatBlock'!=_0x4efd1f['type']||'split'==_0x26d635['type']&&!_0x3984ff)&&(_0x2a27bc['containsRangeInObject']||'insertion'==_0x4efd1f['type']&&_0x2a27bc['isOwn']||_0x4efd1f['getFirstRange']()['containsRange'](_0x33ca03)&&this['_breakSuggestionMarker'](_0x4efd1f,_0x66494c,_0x4b484b));}});},{'priority':'lowest'}),_0x5132b8['model']['on']('deleteContent',(_0x53cedb,_0x5a9c86)=>{const _0x168841=_0x5a9c86[0x0],_0x143cd7=_0x5a9c86[0x1];if(_0x143cd7&&_0x143cd7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x168841['isCollapsed'])return;const _0x25145c=_0x5132b8['model']['schema'],{start:_0xe8a200,end:_0x172a4f}=_0x168841['getFirstRange'](),_0x8bd2a4=_0xe8a200['nodeAfter']&&_0x25145c['isLimit'](_0xe8a200['nodeAfter'])?null:_0x25145c['getNearestSelectionRange'](_0xe8a200,'forward'),_0x347e8a=_0x172a4f['nodeBefore']&&_0x25145c['isLimit'](_0x172a4f['nodeBefore'])?null:_0x25145c['getNearestSelectionRange'](_0x172a4f,'backward'),_0x7bb708=_0x5132b8['model']['createRange'](_0x8bd2a4?_0x8bd2a4['start']:_0xe8a200,_0x347e8a?_0x347e8a['end']:_0x172a4f);_0x5132b8['model']['change'](_0x1b5fba=>{this['markDeletion'](_0x7bb708);const _0x814816=_0x5132b8['model']['schema']['getNearestSelectionRange'](_0x7bb708['start']);_0x168841['is']('documentSelection')?_0x1b5fba['setSelection'](_0x814816):_0x168841['setTo'](_0x814816);}),_0x53cedb['stop']();},{'priority':_0x563ef4['normal']+0xa}),_0x5132b8['model']['on']('insertContent',(_0x29d6f9,_0x443c3c)=>{const _0x2569c5=_0x443c3c[_0x443c3c['length']-0x1];_0x2569c5&&_0x2569c5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5132b8['model']['change'](()=>{let _0x528f72=_0x5132b8['model']['insertContent'](_0x443c3c[0x0],_0x443c3c[0x1],_0x443c3c[0x2],{'forceDefaultExecution':!0x0});if(!_0x528f72)return;_0x29d6f9['return']=_0x528f72['clone']();const _0x882b10=_0x528f72['end']['nodeBefore'],_0x3b58bd=_0x5132b8['model']['schema'];_0x882b10&&_0x3b58bd['isBlock'](_0x882b10)&&!_0x3b58bd['isObject'](_0x882b10)&&(_0x528f72=_0x5132b8['model']['createRange'](_0x528f72['start'],_0x5132b8['model']['createPositionAt'](_0x882b10,'end'))),this['markInsertion'](_0x528f72);}),_0x29d6f9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x412a24=new x(_0x5132b8,this['_suggestions']);_0x5132b8['commands']['add']('acceptSuggestion',_0x412a24),this['enableCommand']('acceptSuggestion');const _0x498192=new O(_0x5132b8,this['_suggestions']);_0x5132b8['commands']['add']('discardSuggestion',_0x498192),this['enableCommand']('discardSuggestion'),_0x5132b8['commands']['add']('acceptAllSuggestions',new R(_0x5132b8,_0x412a24,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5132b8['commands']['add']('discardAllSuggestions',new R(_0x5132b8,_0x498192,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5132b8['commands']['add']('acceptSelectedSuggestions',new E(_0x5132b8,_0x412a24,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5132b8['commands']['add']('discardSelectedSuggestions',new E(_0x5132b8,_0x498192,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2e2420=_0x5132b8['plugins']['get']('CommentsRepository');this['listenTo'](_0x2e2420,'addComment',(_0x19016f,{threadId:_0x549678})=>{const _0x4803c3=this['_suggestions']['get'](_0x549678);_0x4803c3&&_0x4803c3['commentThread']&&0x1===_0x4803c3['commentThread']['length']&&this['_updateSuggestionData'](_0x549678,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2e2420,'removeComment',(_0x3a588e,{threadId:_0x4811c5})=>{const _0x2f8b2c=this['_suggestions']['get'](_0x4811c5);_0x2f8b2c&&_0x2f8b2c['commentThread']&&!_0x2f8b2c['commentThread']['length']&&this['_updateSuggestionData'](_0x4811c5,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4c503e){if(this['_adapter'])throw new _0xc9e6ca('track-changes-adapter-already-set',this);this['_adapter']=_0x4c503e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1f1d54=!0x1,toJSON:_0x34692c=!0x1}={}){const _0x3fcbdb=[];for(const _0x1b281a of this['_suggestions']['values']())_0x1f1d54&&!_0x1b281a['isInContent']||_0x3fcbdb['push'](_0x1b281a);return _0x34692c?_0x3fcbdb['map'](_0x6cb173=>_0x6cb173['toJSON']()):_0x3fcbdb;}['getSuggestion'](_0x94234d){const _0x3655fa=this['_suggestions']['get'](_0x94234d);if(!_0x3655fa)throw new _0xc9e6ca('track-changes-suggestion-not-found',this);return _0x3655fa;}['hasSuggestion'](_0x31064a){return this['_suggestions']['has'](_0x31064a);}['addSuggestionData'](_0x14784b){const {authorId:_0x5e7f07,id:_0x498bf6,attributes:_0xfbaaa0}=_0x14784b,[_0x130304,_0x1732c9]=_0x14784b['type']['split'](':'),_0x52ca67=this['_suggestions']['get'](_0x498bf6)||this['_createSuggestion'](_0x130304,_0x1732c9,_0x498bf6,_0x5e7f07,_0xfbaaa0);if(this['_addThreadToSuggestion'](_0x52ca67),this['_checkSuggestionCorrectness'](_0x52ca67,_0x130304,_0x1732c9||null,_0x5e7f07),_0x52ca67['createdAt']=_0x14784b['createdAt'],_0x52ca67['_isDataLoaded']=!0x0,_0xfbaaa0&&_0xfbaaa0['@external']){const _0x1fb27e=_0xfbaaa0['@external'],_0x568b84=this['_getExternalAuthor'](_0x1fb27e['authorName']);_0x52ca67['authoredAt']=_0x1fb27e['createdAt'],_0x52ca67['author']=_0x568b84,_0x52ca67['isExternal']=!0x0;}else _0x52ca67['authoredAt']=_0x14784b['createdAt'];switch(_0x14784b['data']&&(_0x52ca67['data']=_0x14784b['data']),_0x14784b['attributes']&&(_0x52ca67['attributes']=_0x14784b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x52ca67['_saved']=!0x0),this['_suggestionState']['get'](_0x52ca67)){case'notReady':this['_suggestionState']['set'](_0x52ca67,'dataReady');break;case'markerReady':_0x52ca67['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x52ca67])),this['_refreshSuggestionsChain'](new Set([_0x52ca67])),this['_suggestionState']['set'](_0x52ca67,'ready'),this['fire']('suggestionLoaded',_0x52ca67)):this['_suggestionState']['set'](_0x52ca67,'removed');}return _0x52ca67;}['acceptSuggestion'](_0xf75428){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x193e13 of _0xf75428['getAllAdjacentSuggestions']())_0x193e13['accept']();});});}['discardSuggestion'](_0x35f655){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3cd87f of _0x35f655['getAllAdjacentSuggestions']())_0x3cd87f['discard']();});});}['enableCommand'](_0x3069f1,_0x30980e){const _0x4a5f18=this['editor']['commands']['get'](_0x3069f1);if(!_0x4a5f18)throw new _0xc9e6ca('track-changes-command-not-found',this,{'commandName':_0x3069f1});if(this['_enabledCommands']['has'](_0x4a5f18))throw new _0xc9e6ca('track-changes-enable-command-twice',this,{'commandName':_0x3069f1});this['_enabledCommands']['add'](_0x4a5f18),_0x30980e&&_0x4a5f18['on']('execute',(_0x74c05e,_0x2d852b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d852b['length']>0x0&&_0x2d852b[_0x2d852b['length']-0x1]&&_0x2d852b[_0x2d852b['length']-0x1]['forceDefaultExecution']?_0x2d852b['pop']():(_0x74c05e['return']=_0x30980e((..._0x347405)=>_0x4a5f18['execute'](..._0x347405,{'forceDefaultExecution':!0x0}),..._0x2d852b),_0x74c05e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1d31e2){let _0x5e68c9,_0x1ef6bd;const _0x2fc069=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e68c9=_0x1d31e2();}catch(_0xff73ee){_0x1ef6bd=_0xff73ee;}return _0x2fc069||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ef6bd&&_0xc9e6ca['rethrowUnexpectedError'](_0x1ef6bd,this),_0x5e68c9;}['markInsertion'](_0x33a5d4,_0x385c24=null,_0x4c3324={}){if(_0x33a5d4['isCollapsed'])return null;const _0x6cd472=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2b0ce2,meta:_0x480ddc}of this['_findSuggestions'](_0x33a5d4,'insertion'))if(_0x480ddc['isOwn']){if(!_0x480ddc['isNextTo']){if(_0x480ddc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x2b0ce2,_0x4c3324))continue;return _0x2b0ce2;}if(qt(_0x2b0ce2,_0x4c3324))return _0x2b0ce2;this['_breakSuggestionMarker'](_0x2b0ce2,_0x33a5d4['start'],_0x33a5d4['end']);break;}if(_0x385c24==_0x2b0ce2['subType']&&qt(_0x2b0ce2,_0x4c3324)){const _0x131581=_0x2b0ce2['getFirstRange']();return _0x131581['start']['isEqual'](_0x33a5d4['end'])?this['_setSuggestionRange'](_0x2b0ce2,this['_model']['createRange'](_0x33a5d4['start'],_0x131581['end'])):this['_setSuggestionRange'](_0x2b0ce2,this['_model']['createRange'](_0x131581['start'],_0x33a5d4['end'])),_0x2b0ce2;}}const _0xff077=_0x338779(),_0x554755=_0x6cd472['id'],_0x210b35=_0x385c24?'insertion:'+_0x385c24:'insertion',_0x53048c=this['_setSuggestionData']({'id':_0xff077,'type':_0x210b35,'createdAt':new Date(),'authorId':_0x554755,'attributes':_0x4c3324});return this['_addSuggestionMarker'](_0x210b35,_0xff077,_0x554755,_0x33a5d4),_0x53048c;}['markMultiRangeInsertion'](_0x27e1a2,_0x5dd876='multi',_0x393415={}){const _0x2680ac=this['editor']['plugins']['get']('Users')['me'],_0x5bd71e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5dd876,'join');for(const _0x4d2530 of this['getSuggestions']())if(_0x4d2530['author']['id']==_0x2680ac['id']&&'insertion'==_0x4d2530['type']&&_0x4d2530['subType']==_0x5dd876&&qt(_0x4d2530,_0x393415)&&(_0x5bd71e(_0x4d2530['getRanges'](),_0x27e1a2)||_0x5bd71e(_0x27e1a2,_0x4d2530['getRanges']()))){for(const _0x29cf85 of _0x27e1a2)_0x4d2530['addRange'](_0x29cf85);return _0x4d2530;}for(const {suggestion:_0x3274cf,meta:_0x4b0374}of this['_findSuggestions'](_0x27e1a2,'insertion')){if(!_0x4b0374['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4b0374['containsRangeInObject'])continue;if(!qt(_0x3274cf,_0x393415))continue;let _0x3c9fb2=!0x0;for(const _0x2851ea of _0x3274cf['getRanges']())for(const _0x55938c of _0x27e1a2)if(!_0x2851ea['containsRange'](_0x55938c)){_0x3c9fb2=!0x1;break;}if(_0x3c9fb2)return _0x3274cf;}const _0xa39976=_0x338779(),_0x5e7308=_0x2680ac['id'],_0x4cc965='insertion:'+_0x5dd876,_0x286cf7=this['_setSuggestionData']({'id':_0xa39976,'type':_0x4cc965,'createdAt':new Date(),'authorId':_0x5e7308,'attributes':_0x393415});for(const _0x212c36 of _0x27e1a2)this['_addSuggestionMarker'](_0x4cc965,_0xa39976,_0x5e7308,_0x212c36,u['getMultiRangeId']());return _0x286cf7;}['markInlineFormat'](_0x3f5fad,_0x7daa06,_0x5b4929=null,_0x3f822b={}){if(_0x5b4929=_0x5b4929||Pt(_0x7daa06),_0x3f5fad['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x226fbe=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b4929,'accept');return this['forceDefaultExecution'](()=>_0x226fbe([_0x3f5fad],_0x7daa06,_0x3f822b)),null;}const _0x498c41=this['editor']['plugins']['get']('Users')['me'],_0x5cf34c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2977e3,meta:_0x411e1d}of this['_findSuggestions'](_0x3f5fad,'insertion'))_0x411e1d['isOwn']&&!_0x411e1d['isInsideObject']&&_0x5cf34c['push'](..._0x2977e3['getRanges']());}const _0xa250d=function(_0x519371,_0x105ed8){const _0x4dd5ef=[];for(const _0x168567 of _0x105ed8){const _0x971e65=_0x519371['getIntersection'](_0x168567);_0x971e65&&_0x4dd5ef['push'](_0x971e65);}return _0x4dd5ef;}(_0x3f5fad,_0x5cf34c),_0x4cd6a3=function(_0x2845b2,_0x36551c){const _0x592f94=[_0x2845b2];for(const _0x4a0bc4 of _0x36551c){let _0x2af770=0x0;for(;_0x2af770<_0x592f94['length'];){const _0x217cf8=_0x592f94[_0x2af770]['getDifference'](_0x4a0bc4);_0x592f94['splice'](_0x2af770,0x1,..._0x217cf8),_0x2af770+=_0x217cf8['length'];}}return _0x592f94;}(_0x3f5fad,_0x5cf34c);_0xa250d['length']&&this['_model']['change'](()=>{for(const _0x5cdc64 of _0xa250d){const _0x53693b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b4929,'accept');this['forceDefaultExecution'](()=>_0x53693b([_0x5cdc64],_0x7daa06,_0x3f822b));}});for(const _0x1258df of _0x4cd6a3){let _0x2a04e8=null,_0x124ea9=_0x1258df['start'],_0x4f51b2=_0x1258df['end'];for(const {suggestion:_0x1a47ec,meta:_0x3e29bc}of this['_findSuggestions'](_0x1258df,'formatInline')){if(!_0x3e29bc['isOwn'])continue;if(_0x1a47ec['subType']!=_0x5b4929)continue;if(!qt(_0x1a47ec,_0x3f822b))continue;const _0xf3b476=_0x1a47ec['getFirstRange']();if(_0xf3b476['containsRange'](_0x1258df,!0x0))return null;_0x124ea9=_0x124ea9['isBefore'](_0xf3b476['start'])?_0x124ea9:_0xf3b476['start'],_0x4f51b2=_0x4f51b2['isAfter'](_0xf3b476['end'])?_0x4f51b2:_0xf3b476['end'],_0x2a04e8?_0xf3b476['start']['isBefore'](_0x2a04e8['getFirstRange']()['start'])?(_0x2a04e8['removeMarkers'](),_0x2a04e8=_0x1a47ec):_0x1a47ec['removeMarkers']():_0x2a04e8=_0x1a47ec;}const _0x41fa78=this['_model']['createRange'](_0x124ea9,_0x4f51b2);if(_0x2a04e8)this['_setSuggestionRange'](_0x2a04e8,_0x41fa78);else{const _0x3acc28=_0x338779(),_0x42849c=_0x498c41['id'];this['_setSuggestionData']({'id':_0x3acc28,'type':'formatInline:'+_0x5b4929,'data':_0x7daa06,'createdAt':new Date(),'authorId':_0x42849c,'attributes':_0x3f822b}),this['_addSuggestionMarker']('formatInline:'+_0x5b4929,_0x3acc28,_0x42849c,_0x41fa78);}}return null;}['markBlockFormat'](_0x127760,_0x2fad63,_0x471645=[],_0x2fd167=null,_0xf32501={}){_0x2fad63['formatGroupId']||(_0x2fad63['formatGroupId']=_0x2fad63['commandName']),_0x2fad63['multipleBlocks']=_0x127760['is']('range'),_0x2fd167=_0x2fd167||Pt(_0x2fad63);const _0x3b6930=_0x471645['map'](_0x156622=>Lt(_0x156622,this['_model'])),_0x2e5735=_0x127760['is']('range')?_0x127760:Lt(_0x127760,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4052e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fd167,'accept');return this['forceDefaultExecution'](()=>_0x4052e2([_0x2e5735],_0x2fad63,_0xf32501)),null;}_0x3b6930['push'](_0x2e5735);let _0x2f9877=!0x0;for(const _0x592e85 of _0x3b6930)if(!this['_rangeIsInLocalUserInsertion'](_0x592e85)){_0x2f9877=!0x1;break;}if(_0x2f9877&&'always'!==this['_trackFormatChanges']){const _0x258308=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fd167,'accept');return this['forceDefaultExecution'](()=>_0x258308([_0x2e5735],_0x2fad63,_0xf32501)),null;}let _0x34c41d=null,_0x10fea7=_0x2e5735['start'],_0x1a8aed=_0x2e5735['end'];for(const {suggestion:_0x10d223,meta:_0x77010}of this['_findSuggestions'](_0x2e5735,'formatBlock')){if(!_0x77010['isOwn'])continue;if(_0x77010['isNextTo']||_0x77010['containsRangeInObject']||_0x77010['isInsideObject'])continue;if(_0x10d223['data']['formatGroupId']!=_0x2fad63['formatGroupId'])continue;if(!qt(_0x10d223,_0xf32501))continue;const _0x46c42b=_0x10d223['getFirstRange']();if(_0x10d223['subType']==_0x2fd167){if(_0x46c42b['containsRange'](_0x2e5735,!0x0))return null;_0x10fea7=_0x10fea7['isBefore'](_0x46c42b['start'])?_0x10fea7:_0x46c42b['start'],_0x1a8aed=_0x1a8aed['isAfter'](_0x46c42b['end'])?_0x1a8aed:_0x46c42b['end'],_0x34c41d?_0x46c42b['start']['isBefore'](_0x34c41d['getFirstRange']()['start'])?(_0x34c41d['removeMarkers'](),_0x34c41d=_0x10d223):_0x10d223['removeMarkers']():_0x34c41d=_0x10d223;}else{const _0x26e72a=_0x2e5735['getIntersection'](_0x46c42b);this['_cutOutSuggestionMarker'](_0x10d223,_0x26e72a);}}const _0x4c6c4d=this['editor']['plugins']['get']('Users')['me'],_0x1a6cdf=_0x338779(),_0x310301=_0x4c6c4d['id'];if(_0x34c41d)return this['_setSuggestionRange'](_0x34c41d,this['_model']['createRange'](_0x10fea7,_0x1a8aed)),_0x34c41d;{const _0x177f1d=this['_setSuggestionData']({'id':_0x1a6cdf,'type':'formatBlock:'+_0x2fd167,'data':_0x2fad63,'createdAt':new Date(),'authorId':_0x310301,'attributes':_0xf32501});return this['_addSuggestionMarker']('formatBlock:'+_0x2fd167,_0x1a6cdf,_0x310301,this['_model']['createRange'](_0x10fea7,_0x1a8aed)),_0x177f1d;}}['markMultiRangeBlockFormat'](_0x4315f1,_0x306099,_0x2220c5=[],_0x53d1d2=null,_0x34048a={}){_0x306099['formatGroupId']||(_0x306099['formatGroupId']=_0x306099['commandName']);const _0x41bf6b=_0x4315f1[0x0];_0x306099['multipleBlocks']=_0x41bf6b['is']('range'),_0x53d1d2=_0x53d1d2||Pt(_0x306099);const _0x309068=_0x2220c5['map'](_0x507073=>Lt(_0x507073,this['_model'])),_0x1a6e13=_0x41bf6b['is']('range')?_0x4315f1:_0x4315f1['map'](_0x5c945c=>Lt(_0x5c945c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x485a61=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53d1d2,'accept');return this['forceDefaultExecution'](()=>_0x485a61(_0x1a6e13,_0x306099,_0x34048a)),null;}_0x309068['push'](..._0x1a6e13);let _0x4be4fa=!0x0;for(const _0x476d1c of _0x309068)if(!this['_rangeIsInLocalUserInsertion'](_0x476d1c)){_0x4be4fa=!0x1;break;}if(_0x4be4fa&&'always'!==this['_trackFormatChanges']){const _0x36adb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53d1d2,'accept');return this['forceDefaultExecution'](()=>_0x36adb6(_0x1a6e13,_0x306099,_0x34048a)),null;}const _0x4d7de4=this['editor']['plugins']['get']('Users')['me'];for(const _0x582380 of this['getSuggestions']()){if(_0x582380['author']['id']!=_0x4d7de4['id'])continue;if('formatBlock'!=_0x582380['type']||_0x582380['data']['formatGroupId']!=_0x306099['formatGroupId'])continue;if(!qt(_0x582380,_0x34048a))continue;const _0x5a8e25=_0x582380['subType']==_0x53d1d2;for(let _0x157629=0x0;_0x157629<_0x1a6e13['length'];_0x157629++){const _0x4b3978=_0x1a6e13[_0x157629];for(const _0x3b69ad of _0x582380['getMarkers']()){const _0x44836b=_0x3b69ad['getRange']();if(_0x4b3978['isEqual'](_0x44836b)){_0x5a8e25?(_0x1a6e13['splice'](_0x157629,0x1),_0x157629--):_0x582380['removeMarker'](_0x3b69ad['name']);break;}}}}if(0x0==_0x1a6e13['length'])return null;const _0x3dff05=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53d1d2,'join');for(const _0x562975 of this['getSuggestions']())if(_0x562975['author']['id']==_0x4d7de4['id']&&'formatBlock'==_0x562975['type']&&_0x562975['data']['formatGroupId']==_0x306099['formatGroupId']&&_0x562975['subType']==_0x53d1d2&&qt(_0x562975,_0x34048a)&&(_0x3dff05(_0x562975['getRanges'](),_0x1a6e13)||_0x3dff05(_0x1a6e13,_0x562975['getRanges']()))){for(const _0x15d728 of _0x1a6e13)_0x562975['addRange'](_0x15d728);return _0x562975;}const _0x5d20e3=_0x338779(),_0x5e67b5=_0x4d7de4['id'],_0x422637='formatBlock:'+_0x53d1d2,_0x3a0d96=this['_setSuggestionData']({'id':_0x5d20e3,'type':_0x422637,'data':_0x306099,'createdAt':new Date(),'authorId':_0x5e67b5,'attributes':_0x34048a});for(const _0x40dedb of _0x1a6e13)this['_addSuggestionMarker'](_0x422637,_0x5d20e3,_0x5e67b5,_0x40dedb,u['getMultiRangeId']());return _0x3a0d96;}['markDeletion'](_0x1aa354,_0x42bd63=null,_0x59e136={}){if(_0x1aa354['isCollapsed'])return null;const _0x56e3c6=this['editor']['plugins']['get']('Users')['me'],_0x296ecd=new _0x4f83f9(_0x1aa354['start'],_0x1aa354['end']);for(const {suggestion:_0x472407,meta:_0x30d151}of this['_findSuggestions'](_0x296ecd,'insertion'))if(_0x30d151['isOwn']&&!_0x30d151['isNextTo']){if(_0x472407['isMultiRange']){const _0x2c04c5=_0x472407['getRanges']()['filter'](_0x34306b=>'$graveyard'!=_0x34306b['root']['rootName']);_0x2c04c5['every'](_0x1ad4b9=>_0x296ecd['containsRange'](_0x1ad4b9,!0x0))&&_0x472407['discard']();if(_0x2c04c5['some'](_0x5c9ed4=>_0x5c9ed4['containsRange'](_0x296ecd,!0x0))){const _0x297f77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42bd63,'accept');return this['forceDefaultExecution'](()=>_0x297f77([_0x296ecd],null,_0x59e136)),null;}}else{const _0xa3bdce=_0x296ecd['getIntersection'](_0x472407['getFirstRange']());null!==_0xa3bdce&&_0x472407['_onDiscard']([_0xa3bdce],null,_0x59e136);}}if(_0x296ecd['detach'](),_0x296ecd['isCollapsed']||'$graveyard'==_0x296ecd['root']['rootName'])return null;let _0x1793f6=null,_0x469be9=_0x296ecd['start'],_0x4b896c=_0x296ecd['end'];const _0x3ecf2d=this['_findSuggestions'](_0x296ecd,'deletion');for(const {suggestion:_0x518411,meta:_0x36aec9}of _0x3ecf2d){const _0x168e24=this['_model']['createRange'](_0x469be9,_0x4b896c);if(_0x36aec9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36aec9['containsRangeInObject']&&!_0x36aec9['isInsideObject'])){if(_0x518411['isMultiRange']){if(!qt(_0x518411,_0x59e136))continue;let _0x3fe3cc=!0x0;for(const _0x586f1d of _0x518411['getRanges']()){if(_0x586f1d['containsRange'](_0x168e24,!0x0))return _0x518411;_0x168e24['containsRange'](_0x586f1d)||(_0x3fe3cc=!0x1);}_0x3fe3cc&&_0x518411['discard']();}else{const _0x374db9=_0x518411['getFirstRange']();if(_0x374db9['containsRange'](_0x168e24,!0x0))return _0x518411;if(!qt(_0x518411,_0x59e136)){_0x168e24['containsRange'](_0x374db9)?_0x518411['removeMarkers']():_0x374db9['containsPosition'](_0x469be9)?_0x469be9=_0x374db9['end']:_0x374db9['containsPosition'](_0x4b896c)&&(_0x4b896c=_0x374db9['start']);continue;}_0x469be9=_0x469be9['isBefore'](_0x374db9['start'])?_0x469be9:_0x374db9['start'],_0x4b896c=_0x4b896c['isAfter'](_0x374db9['end'])?_0x4b896c:_0x374db9['end'],_0x59e136=Object['assign']({},_0x518411['attributes']),_0x1793f6?_0x374db9['start']['isBefore'](_0x1793f6['getFirstRange']()['start'])?(_0x1793f6['removeMarkers'](),_0x1793f6=_0x518411):_0x518411['removeMarkers']():_0x1793f6=_0x518411;}}}if(_0x1793f6)return this['_setSuggestionRange'](_0x1793f6,this['_model']['createRange'](_0x469be9,_0x4b896c)),_0x1793f6;{const _0x5a5031=_0x338779(),_0x4667e6=this['_model']['createRange'](_0x469be9,_0x4b896c),_0x416c71=_0x56e3c6['id'],_0x1ca89e=_0x42bd63?'deletion:'+_0x42bd63:'deletion',_0xfb4f70=this['_setSuggestionData']({'id':_0x5a5031,'type':_0x1ca89e,'createdAt':new Date(),'authorId':_0x416c71,'attributes':_0x59e136});return this['_addSuggestionMarker'](_0x1ca89e,_0x5a5031,_0x416c71,_0x4667e6),_0xfb4f70;}}['markMultiRangeDeletion'](_0x1fb8e0,_0x1b2018='multi',_0x23807e={}){const _0x122a44=this['editor']['plugins']['get']('Users')['me'],_0x3edb52=_0x1fb8e0['map'](_0x3df333=>new _0x4f83f9(_0x3df333['start'],_0x3df333['end'])),_0x5efdb6=new Set();for(const {suggestion:_0x366c75,meta:_0x338239}of this['_findSuggestions'](_0x3edb52,'insertion'))_0x338239['isOwn']&&!_0x338239['isNextTo']&&_0x5efdb6['add'](_0x366c75);for(const _0x49eecf of _0x5efdb6)if(_0x49eecf['isMultiRange']){const _0x2eee29=_0x49eecf['getRanges']();(!_0x49eecf['attributes']||!_0x49eecf['attributes']['skipNestingCheck'])&&(_0x2eee29['every'](_0x365a11=>_0x3edb52['some'](_0x2b5218=>_0x2b5218['containsRange'](_0x365a11,!0x0)))&&_0x49eecf['discard']());if(_0x3edb52['every'](_0x173777=>_0x2eee29['some'](_0x2cec30=>_0x2cec30['containsRange'](_0x173777,!0x0)))){const _0x305cc3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b2018,'accept');return this['forceDefaultExecution'](()=>_0x305cc3(_0x1fb8e0,null,_0x23807e)),null;}}else{const _0x112ae9=_0x49eecf['getFirstRange']();_0x3edb52['some'](_0x493d76=>_0x493d76['containsRange'](_0x112ae9,!0x0))&&_0x49eecf['discard']();if(_0x3edb52['every'](_0x534718=>_0x112ae9['containsRange'](_0x534718,!0x0))){const _0x949b24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b2018,'accept');return this['forceDefaultExecution'](()=>_0x949b24(_0x3edb52,null,_0x23807e)),null;}}const _0x5cd486=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b2018,'join');let _0xebad9a=null;for(const _0x486a95 of this['getSuggestions']())if(_0x486a95['author']['id']==_0x122a44['id']&&_0x486a95['isInContent']&&'deletion'==_0x486a95['type']&&_0x486a95['subType']==_0x1b2018&&qt(_0x486a95,_0x23807e)&&(_0x5cd486(_0x486a95['getRanges'](),_0x3edb52)||_0x5cd486(_0x3edb52,_0x486a95['getRanges']()))){if(_0xebad9a){if(_0x486a95['commentThread']&&_0x486a95['commentThread']['length'])continue;for(const _0x3fb09d of _0x486a95['getRanges']())_0xebad9a['isIntersectingWithRange'](_0x3fb09d)||_0xebad9a['addRange'](_0x3fb09d);_0x486a95['removeMarkers']();}else{_0xebad9a=_0x486a95;for(const _0x3fa1a9 of _0x3edb52)_0x486a95['isIntersectingWithRange'](_0x3fa1a9)||_0x486a95['addRange'](_0x3fa1a9);}}if(_0xebad9a)return _0xebad9a;_0x5efdb6['clear']();for(const {suggestion:_0x425f30,meta:_0x4cae0b}of this['_findSuggestions'](_0x3edb52,'deletion'))_0x4cae0b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4cae0b['containsRangeInObject']&&!_0x4cae0b['isInsideObject'])&&qt(_0x425f30,_0x23807e)&&_0x5efdb6['add'](_0x425f30);for(const _0x510b37 of _0x5efdb6){const _0xd7d465=_0x510b37['getRanges']();if(!_0x23807e||!_0x23807e['skipNestingCheck']){if(_0x3edb52['every'](_0x1f5653=>_0xd7d465['some'](_0x2593e0=>_0x2593e0['containsRange'](_0x1f5653,!0x0))))return _0x510b37;}(!_0x510b37['attributes']||!_0x510b37['attributes']['skipNestingCheck'])&&(_0xd7d465['every'](_0x5e8dc1=>_0x3edb52['some'](_0x563634=>_0x563634['containsRange'](_0x5e8dc1,!0x0)))&&_0x510b37['discard']());}const _0x2ec2dc=_0x338779(),_0x353ec0=_0x122a44['id'],_0x26dd1a='deletion:'+_0x1b2018,_0xc44dcb=this['_setSuggestionData']({'id':_0x2ec2dc,'type':_0x26dd1a,'createdAt':new Date(),'authorId':_0x353ec0,'attributes':_0x23807e});for(const _0x31a593 of _0x3edb52)_0x31a593['detach'](),_0x31a593['isCollapsed']||'$graveyard'==_0x31a593['root']['rootName']||this['_addSuggestionMarker'](_0x26dd1a,_0x2ec2dc,_0x353ec0,_0x31a593,u['getMultiRangeId']());return _0xc44dcb;}['markAttributeChange'](_0x39978c,_0x1736e5,_0x5bf8c5,_0x410b00,_0x379b1b){if(_0x39978c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x149b00=this['editor']['plugins']['get']('Users')['me']['id'],_0x364217=Array['from'](this['_suggestions']['values']())['filter'](_0x3acf8c=>'attribute'==_0x3acf8c['type']&&_0x3acf8c['data']['key']==_0x1736e5&&_0x3acf8c['isIntersectingWithRange'](_0x39978c));if('default'===this['_trackFormatChanges']){const _0x333281=this['_findSuggestions'](_0x39978c,'insertion')['filter'](({meta:_0xea523f})=>_0xea523f['isOwn']&&!_0xea523f['isInsideObject']&&!_0xea523f['isNextTo'])['map'](({suggestion:_0x2afea6})=>_0x2afea6);_0x364217['unshift'](..._0x333281);}const _0x23615e=new Map([[_0x39978c,_0x5bf8c5]]);for(const _0x10501c of _0x364217){const _0x30586e='attribute'==_0x10501c['type']?_0x10501c['data']['oldValue']:void 0x0,_0x27c17b=_0x10501c['getFirstRange'](),_0x36da1f=Array['from'](_0x23615e['keys']())['find'](_0xe6d610=>_0xe6d610['isIntersecting'](_0x27c17b));if(!_0x36da1f)continue;const _0x371f95=_0x36da1f['getDifference'](_0x27c17b);this['_isBlockAttribute'](_0x1736e5)&&'insertion'==_0x10501c['type']&&0x0!=_0x371f95['length']||(_0x23615e['delete'](_0x36da1f),_0x371f95['forEach'](_0x1b801e=>{_0x23615e['set'](_0x1b801e,_0x5bf8c5);}),'insertion'!=_0x10501c['type']&&_0x30586e!=_0x410b00&&_0x23615e['set'](_0x36da1f['getIntersection'](_0x27c17b),_0x30586e));}const _0x3d5ea5=[];for(const [_0x499a21,_0x18b662]of _0x23615e){const _0x3016ab=_0x338779(),_0x49dd86={'key':_0x1736e5,'oldValue':_0x18b662,'newValue':_0x410b00};_0x1736e5['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':_0x1736e5});const _0x5b7c83=('attribute:'+(_0x1736e5+'|'+Pt({'newValue':_0x410b00})))['substring'](0x0,0x3c),_0x40c604=this['_setSuggestionData']({'id':_0x3016ab,'type':_0x5b7c83,'data':_0x49dd86,'createdAt':new Date(),'authorId':_0x149b00,'attributes':_0x379b1b});_0x3d5ea5['push'](_0x40c604),this['_addSuggestionMarker'](_0x5b7c83,_0x3016ab,_0x149b00,_0x499a21);}return _0x3d5ea5;}['enableDefaultAttributesIntegration'](_0x276999){this['enableCommand'](_0x276999,(_0x11aee5,..._0x5b7aa1)=>{this['_recordAttributeChanges'](()=>{_0x11aee5(..._0x5b7aa1);});});}['registerBlockAttribute'](_0x295777){this['_blockAttributeKeys']['add'](_0x295777);}['registerInlineAttribute'](_0x316eaa){this['_inlineAttributeKeys']['add'](_0x316eaa);}['_getAttributeKey'](_0x18daa8){return'attribute'==_0x18daa8['type']?_0x18daa8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xe2fb26,_0x5050f4){const _0x4fd26b=_0xe2fb26['getFirstMarker']();this['_model']['change'](_0x31e3c3=>{_0x31e3c3['updateMarker'](_0x4fd26b,{'range':_0x5050f4});});}['_addThreadToSuggestion'](_0x3d5093){const _0x59ab22=_0x3d5093['id'],_0x493a36=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59ab22)||this['_commentsRepository']['addCommentThread']({'channelId':_0x493a36,'threadId':_0x59ab22,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x329afe=this['_commentsRepository']['getCommentThread'](_0x59ab22);_0x329afe['unbind']('isRemovable'),_0x329afe['isRemovable']=!0x1,_0x3d5093['commentThread']=_0x329afe;}['_checkSuggestionCorrectness'](_0x252921,_0x21e0e8,_0x448db0,_0x493122){if(_0x252921['type']!=_0x21e0e8||_0x252921['subType']!=_0x448db0||_0x252921['creator']['id']!=_0x493122)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xc9e6ca('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x9738cd,_0x5ecc19){const _0x2534fd=_0x9738cd['getFirstRange']();if(_0x5ecc19['isEqual'](_0x2534fd))_0x9738cd['removeMarkers']();else{if(_0x2534fd['containsRange'](_0x5ecc19)){const _0x432d1e=this['_model']['createPositionAt'](_0x5ecc19['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9738cd,this['_model']['createRange'](_0x2534fd['start'],_0x432d1e));const _0x1d01f6=_0x338779(),_0x290cf8=_0x9738cd['creator']['id'],_0x117848=_0x9738cd['type']+':'+_0x9738cd['subType'];this['_setSuggestionData']({'id':_0x1d01f6,'type':_0x117848,'createdAt':new Date(),'authorId':_0x290cf8,'data':_0x9738cd['data'],'attributes':_0x9738cd['attributes']});const _0x205116=this['_model']['createPositionAt'](_0x5ecc19['end']['parent'],'after'),_0x3f6f00=this['_model']['createRange'](_0x205116,_0x2534fd['end']);this['_addSuggestionMarker'](_0x117848,_0x1d01f6,_0x290cf8,_0x3f6f00);}else{if(_0x2534fd['containsPosition'](_0x5ecc19['start'])){const _0xeba469=this['_model']['createPositionAt'](_0x5ecc19['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9738cd,this['_model']['createRange'](_0x2534fd['start'],_0xeba469));}else{const _0x2c126f=this['_model']['createPositionAt'](_0x5ecc19['end']['parent'],'after');this['_setSuggestionRange'](_0x9738cd,this['_model']['createRange'](_0x2c126f,_0x2534fd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d4a75){for(const {suggestion:_0x450238,meta:_0x185fc3}of this['_findSuggestions'](_0x5d4a75,'insertion')){if(!_0x185fc3['isOwn'])continue;const _0x3d4554=_0x450238['getRanges']();for(const _0x2e76ba of _0x3d4554)if(!_0x5d4a75['getDifference'](_0x2e76ba)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3fc426){const _0x334b33=this['editor']['plugins']['get']('Users')['getUser'](_0x3fc426);if(!_0x334b33)throw new _0xc9e6ca('track-changes-user-not-found',this);return _0x334b33;}['_getExternalAuthor'](_0x429e2e){const _0x38dcb1=this['editor']['plugins']['get']('Users'),_0x3ba137=_0x35240c('external:'+_0x429e2e),_0x19eca1=_0x38dcb1['getUser'](_0x3ba137);return _0x19eca1||_0x38dcb1['addUser']({'id':_0x3ba137,'name':_0x429e2e});}['_createSuggestion'](_0x59bf57,_0x1f30ff,_0x23e2d4,_0x432baa,_0x1d31d5){const _0x329a99=this['_getAuthorFromId'](_0x432baa),_0x516ef3=this['_suggestionFactory']['buildSuggestion'](_0x59bf57,_0x1f30ff,_0x23e2d4,_0x329a99,_0x1d31d5,_0x5aa799=>{this['_updateSuggestionData'](_0x23e2d4,{'attributes':_0x5aa799});const _0x1fefb3=this['getSuggestion'](_0x23e2d4);this['_joinWithAdjacentSuggestions'](new Set([_0x1fefb3])),this['_refreshSuggestionsChain'](new Set([_0x1fefb3]));});return this['listenTo'](_0x516ef3,'accept',()=>{this['_updateSuggestionData'](_0x23e2d4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x516ef3,'discard',()=>{this['_updateSuggestionData'](_0x23e2d4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x23e2d4,_0x516ef3),this['_suggestionState']['set'](_0x516ef3,'notReady'),_0x516ef3;}['_splitMarkerName'](_0x37ba23){const _0x2907d4=_0x37ba23['split'](':');return{'group':_0x2907d4[0x0],'type':_0x2907d4[0x1],'subType':_0x2907d4['length']>=0x5?_0x2907d4[0x2]:null,'id':_0x2907d4['length']<0x5?_0x2907d4[0x2]:_0x2907d4[0x3],'authorId':_0x2907d4['length']<0x5?_0x2907d4[0x3]:_0x2907d4[0x4],'markerCount':0x6==_0x2907d4['length']?_0x2907d4[0x5]:null};}['_breakSuggestionMarker'](_0x15518e,_0x90dbe2,_0x255545){const _0x3aaf83=_0x15518e['getFirstRange'](),_0x378ea7=_0x3aaf83['start'],_0x60d4a5=_0x3aaf83['end'];this['_setSuggestionRange'](_0x15518e,this['_model']['createRange'](_0x378ea7,_0x90dbe2));const _0x524ae3=_0x338779(),_0x375818=_0x15518e['creator']['id'],_0x4e4eef=_0x15518e['type']+(_0x15518e['subType']?':'+_0x15518e['subType']:'');this['_setSuggestionData']({'id':_0x524ae3,'type':_0x4e4eef,'createdAt':new Date(),'authorId':_0x375818,'originalSuggestionId':_0x15518e['id'],'attributes':_0x15518e['attributes'],'data':_0x15518e['data']});const _0x17e521=this['_getAttributeKey'](_0x15518e);('formatBlock'==_0x15518e['type']||_0x17e521&&this['_isBlockAttribute'](_0x17e521))&&(_0x255545=this['_model']['createPositionBefore'](_0x255545['parent'])),this['_addSuggestionMarker'](_0x4e4eef,_0x524ae3,_0x375818,this['_model']['createRange'](_0x255545,_0x60d4a5));}['_findSuggestions'](_0x5da582,_0x5ceb2f=null){const _0x5ab7a8=[],_0xa6c563=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5da582)||(_0x5da582=[_0x5da582]);for(const _0x225b1c of this['getSuggestions']()){if(!_0x225b1c['isInContent'])continue;if(_0x5ceb2f&&_0x225b1c['type']!=_0x5ceb2f)continue;let _0x58a46c=!0x1;for(const _0x317629 of _0x225b1c['getRanges']()){for(const _0x403da3 of _0x5da582){const _0x39e819=_0x403da3['start']['isEqual'](_0x317629['end'])||_0x403da3['end']['isEqual'](_0x317629['start']);if(_0x39e819||_0x403da3['getIntersection'](_0x317629)){const _0x5efb36=_0x403da3['containsRange'](_0x317629)&&Et(this['_model']['schema'],_0x317629['start'],_0x403da3),_0x1df957=_0x317629['containsRange'](_0x403da3)&&Et(this['_model']['schema'],_0x403da3['start'],_0x317629);_0x5ab7a8['push']({'suggestion':_0x225b1c,'meta':{'isOwn':_0xa6c563==_0x225b1c['author'],'isNextTo':_0x39e819,'isInsideObject':_0x5efb36,'containsRangeInObject':_0x1df957}}),_0x58a46c=!0x0;break;}}if(_0x58a46c)break;}}return _0x5ab7a8;}['_addSuggestionMarker'](_0x3c65b0,_0x2ab122,_0x43bfe3,_0x3563a9,_0x50b084){this['_model']['change'](_0xf95685=>{let _0x368048='suggestion:'+_0x3c65b0+':'+_0x2ab122+':'+_0x43bfe3;_0x50b084&&(_0x368048=_0x368048+':'+_0x50b084),_0xf95685['addMarker'](_0x368048,{'range':_0x3563a9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xda8d93){const _0x4af2e2=_0xda8d93['previous'],_0x1b25ea=_0xda8d93['next'];_0xda8d93['previous']=null,_0xda8d93['next']=null,null!=_0x4af2e2&&_0x4af2e2['next']==_0xda8d93&&(_0x4af2e2['next']=_0x1b25ea),null!=_0x1b25ea&&_0x1b25ea['previous']==_0xda8d93&&(_0x1b25ea['previous']=_0x4af2e2),'ready'==this['_suggestionState']['get'](_0xda8d93)&&(this['_suggestionState']['set'](_0xda8d93,'removed'),this['fire']('suggestionUnloaded',_0xda8d93,_0x4af2e2,_0x1b25ea));}['_setSuggestionData'](_0xae9515){const _0x37d35e=_0xae9515['id'],_0x5b3804=this['addSuggestionData'](_0xae9515);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f7ea3=this['editor']['plugins']['get']('PendingActions'),_0x92c7c9=_0x5b3804['hasComments'],_0x104102=_0x5b3804['subType']?_0x5b3804['type']+':'+_0x5b3804['subType']:_0x5b3804['type'],_0xfafd4c=this['editor']['locale'],_0x3d6c67=_0x1f7ea3['add'](o(_0xfafd4c,'PENDING_ACTION_SUGGESTION')),_0x452ca7={'id':_0x37d35e,'type':_0x104102,'hasComments':_0x92c7c9,'data':_0xae9515['data']||null,'originalSuggestionId':_0xae9515['originalSuggestionId']||null,'attributes':_0x5b3804['attributes']};this['_adapter']['addSuggestion'](_0x452ca7)['then'](_0xf2e981=>{_0x5b3804['_saved']=!0x0,_0x1f7ea3['remove'](_0x3d6c67),_0xf2e981&&_0xf2e981['createdAt']&&(this['_suggestions']['get'](_0x37d35e)['createdAt']=_0xf2e981['createdAt']);})['catch'](_0xf463e6=>{throw _0x504e87('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5b3804['discard']();}),_0x5b3804['stopListening'](),this['_suggestions']['delete'](_0x5b3804['id']),this['_suggestionState']['delete'](_0x5b3804),_0xf463e6;});}return _0x5b3804;}['_isBlockAttribute'](_0x3e3cc2){return this['_blockAttributeKeys']['has'](_0x3e3cc2);}['_updateSuggestionData'](_0x38e57c,_0x476e5e){const _0xf9c094=this['editor']['plugins']['get']('PendingActions'),_0x30127c=this['getSuggestion'](_0x38e57c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30127c['_saved']){const _0x2e417f=_0xf9c094['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x38e57c,_0x476e5e)['then'](()=>{_0xf9c094['remove'](_0x2e417f);});}else _0x30127c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x38e57c,_0x476e5e);});}}['_getSuggestionData'](_0x59e369){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xc9e6ca('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x59e369);}['_handleNewSuggestionMarker'](_0x51a547){const {id:_0x256218,type:_0x184781,subType:_0x31bdb9,authorId:_0x10bd74}=this['_splitMarkerName'](_0x51a547),_0x30d73c=this['_suggestions']['get'](_0x256218)||this['_createSuggestion'](_0x184781,_0x31bdb9,_0x256218,_0x10bd74,{});switch(this['_checkSuggestionCorrectness'](_0x30d73c,_0x184781,_0x31bdb9,_0x10bd74),this['_suggestionState']['get'](_0x30d73c)){case'notReady':this['_getSuggestionData'](_0x256218)['then'](_0x584fb3=>{let _0x368786=Promise['resolve']();_0x584fb3['hasComments']&&(_0x368786=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x256218})),_0x368786['then'](()=>{this['addSuggestionData'](_0x584fb3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30d73c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x256218,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30d73c,'ready'),this['fire']('suggestionLoaded',_0x30d73c);break;case'ready':this['fire']('suggestionChanged',_0x30d73c);}return _0x30d73c['addMarkerName'](_0x51a547),_0x30d73c;}['_refreshSuggestionsChain'](_0x54cf8a){const _0x240779=Array['from'](_0x54cf8a),_0x5e609d=_0x240779['filter'](_0x934359=>'attribute'==_0x934359['type']);this['_refreshAttributeSuggestionsChain'](_0x5e609d);const _0x5e46f4=_0x240779['filter'](_0x110324=>!_0x110324['isMultiRange']&&'attribute'!=_0x110324['type']),_0x1eaf75=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x240396=>!_0x240396['isMultiRange']&&'attribute'!=_0x240396['type']),_0x1e6afc=_0x1eaf75['filter'](_0x2d9d46=>!_0x54cf8a['has'](_0x2d9d46)),_0x2db68d=new Map(_0x1eaf75['map'](_0x57e534=>[_0x57e534,this['_suggestionFactory']['getSuggestionCallback'](_0x57e534['type'],_0x57e534['subType'],'chain')])),_0x429b0f=new Map(_0x1eaf75['map'](_0x4fbc63=>[_0x4fbc63,_0x4fbc63['getFirstRange']()])),_0x445f1e=new Set(),_0x48dd9f=new Set();for(let _0xba3f2c=0x0;_0xba3f2c<_0x5e46f4['length'];_0xba3f2c++)_0x236980(_0x5e46f4[_0xba3f2c],_0x5e46f4,_0xba3f2c+0x1);for(let _0x12d991=0x0;_0x12d991<_0x5e46f4['length'];_0x12d991++)_0x236980(_0x5e46f4[_0x12d991],_0x1e6afc,0x0);const _0x2e4e80=new Set();for(let _0x2c7be7=0x0;_0x2c7be7<_0x5e46f4['length'];_0x2c7be7++){const _0x2fcfa9=_0x5e46f4[_0x2c7be7];!_0x48dd9f['has'](_0x2fcfa9)&&_0x2fcfa9['previous']&&(_0x2e4e80['add'](_0x2fcfa9['previous']),_0x2fcfa9['previous']['next']===_0x2fcfa9&&(_0x2fcfa9['previous']['next']=null),_0x2fcfa9['previous']=null),!_0x445f1e['has'](_0x2fcfa9)&&_0x2fcfa9['next']&&(_0x2e4e80['add'](_0x2fcfa9['next']),_0x2fcfa9['next']['previous']===_0x2fcfa9&&(_0x2fcfa9['next']['previous']=null),_0x2fcfa9['next']=null);}function _0x236980(_0x2467d3,_0x58ff72,_0x7d9b13){for(let _0xc6c753=_0x7d9b13;_0xc6c753<_0x58ff72['length'];_0xc6c753++){const _0x1bff86=_0x2e3266(_0x2467d3,_0x58ff72[_0xc6c753]);_0x1bff86&&(_0x1bff86[0x0]['next']=_0x1bff86[0x1],_0x1bff86[0x1]['previous']=_0x1bff86[0x0],_0x445f1e['add'](_0x1bff86[0x0]),_0x48dd9f['add'](_0x1bff86[0x1]));}}function _0x2e3266(_0x24acdf,_0x32fc39){if(_0x24acdf['author']['id']!==_0x32fc39['author']['id'])return null;const _0x43b115=_0x2db68d['get'](_0x24acdf)(_0x24acdf,_0x32fc39,_0x429b0f['get'](_0x24acdf),_0x429b0f['get'](_0x32fc39));if(!_0x43b115)return null;return _0x2db68d['get'](_0x32fc39)(_0x24acdf,_0x32fc39,_0x429b0f['get'](_0x24acdf),_0x429b0f['get'](_0x32fc39))?_0x43b115[0x1]['commentThread']&&_0x43b115[0x1]['commentThread']['length']?null:_0x43b115:null;}_0x2e4e80['size']&&this['_refreshSuggestionsChain'](_0x2e4e80);}['_refreshAttributeSuggestionsChain'](_0xba18a7){if(0x0==_0xba18a7['length'])return;const _0x57bb02=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52423f=>'attribute'==_0x52423f['type']&&_0x52423f['_isDataLoaded']),_0x33d645=[],_0x1238a5=new Map();for(const _0x4485dd of _0x57bb02){const _0x49b84b=_0x35240c(_0x4485dd['attributes']);_0x1238a5['has'](_0x49b84b)||(_0x1238a5['set'](_0x49b84b,_0x33d645['length']),_0x33d645['push']([]));const _0x39695a=_0x1238a5['get'](_0x49b84b);_0x33d645[_0x39695a]['push'](_0x4485dd);}!(function(){_0x33d645['sort']((_0x4a865d,_0x3952db)=>{const _0x4e15bb=_0x4a865d[0x0]['createdAt'],_0x4c06dc=_0x3952db[0x0]['createdAt'];return _0x4e15bb==_0x4c06dc?_0x4a865d[0x0]['attributes']['groupId']<_0x3952db[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e15bb<_0x4c06dc?-0x1:0x1;});for(const _0x31a1b3 of _0x33d645)_0x31a1b3['sort']((_0x254d06,_0x456fca)=>_0x254d06['id']<_0x456fca['id']?-0x1:0x1);}());for(let _0x3f948e=0x0;_0x3f948e<_0x33d645['length'];_0x3f948e++){if(0x0==_0x33d645[_0x3f948e]['length'])continue;const _0x16e0d8=[];for(let _0x47a2b3=_0x3f948e+0x1;_0x47a2b3<_0x33d645['length'];_0x47a2b3++)0x0!=_0x33d645[_0x47a2b3]['length']&&_0x3fb9a9(_0x33d645[_0x3f948e],_0x33d645[_0x47a2b3])&&_0x16e0d8['push'](_0x47a2b3);for(const _0x4e4245 of _0x16e0d8)_0x33d645[_0x3f948e]=_0x33d645[_0x3f948e]['concat'](_0x33d645[_0x4e4245]),_0x33d645[_0x4e4245]=[];}for(const _0x4764bc of _0x33d645)for(let _0x18e2a0=0x0;_0x18e2a0<_0x4764bc['length'];_0x18e2a0++){const _0x533605=_0x4764bc[_0x18e2a0+0x1]||null;_0x4764bc[_0x18e2a0]['next']!==_0x533605&&(_0x4764bc[_0x18e2a0]['next']=_0x533605);}for(const _0x309e4c of _0x33d645)for(let _0x16ebb1=0x0;_0x16ebb1<_0x309e4c['length'];_0x16ebb1++){const _0xc76f14=_0x309e4c[_0x16ebb1-0x1]||null;_0x309e4c[_0x16ebb1]['previous']!==_0xc76f14&&(_0x309e4c[_0x16ebb1]['previous']=_0xc76f14);}function _0x3fb9a9(_0x1579c0,_0x3d9bf7){if(_0x1579c0[0x0]['attributes']['groupId']!==_0x3d9bf7[0x0]['attributes']['groupId']&&_0x1579c0[0x0]['author']!==_0x3d9bf7[0x0]['author'])return!0x1;if(!function(_0xb8e25d,_0x3191a0){if(!_0xb8e25d['hasComments']&&!_0x3191a0['hasComments'])return!0x0;if(_0xb8e25d['hasComments']&&_0x3191a0['hasComments'])return!0x1;if(_0xb8e25d['hasComments']&&_0x3191a0['createdAt']<_0xb8e25d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3191a0['hasComments']&&_0xb8e25d['createdAt']<_0x3191a0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1579c0[0x0],_0x3d9bf7[0x0]))return!0x1;const _0x54d71d=Rt(_0x1579c0[0x0]['attributes'],'groupId'),_0x1301eb=Rt(_0x3d9bf7[0x0]['attributes'],'groupId');if(!_0x46161a(_0x54d71d,_0x1301eb))return!0x1;return!!_0x1579c0['every'](_0x5a175c=>_0x3d9bf7['some'](_0x11c917=>_0x5a175c['getFirstRange']()['isEqual'](_0x11c917['getFirstRange']())))&&_0x3d9bf7['every'](_0x45bc24=>_0x1579c0['some'](_0x417bed=>_0x45bc24['getFirstRange']()['isEqual'](_0x417bed['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5d9171){const _0x475256=Array['from'](_0x5d9171),_0x3b2356=this['getSuggestions']({'skipNotAttached':!0x0}),_0x424607=_0x3b2356['filter'](_0x3fc425=>!_0x5d9171['has'](_0x3fc425)),_0x1df6bd=new Map(_0x475256['map'](_0x301001=>[_0x301001,this['_suggestionFactory']['getSuggestionCallback'](_0x301001['type'],_0x301001['subType'],'join')])),_0x52d1c3=new Map(_0x3b2356['map'](_0x96fa55=>[_0x96fa55,_0x96fa55['getRanges']()]));for(let _0x3447db=0x0;_0x3447db<_0x475256['length'];_0x3447db++){if(_0x452fc8(this,_0x475256[_0x3447db],_0x475256,_0x3447db+0x1))return!0x0;}for(let _0x3149df=0x0;_0x3149df<_0x475256['length'];_0x3149df++){if(_0x452fc8(this,_0x475256[_0x3149df],_0x424607,0x0))return!0x0;}return!0x1;function _0x452fc8(_0x303221,_0x17367e,_0xafdc2e,_0x2ba1f1){for(let _0x55c23a=_0x2ba1f1;_0x55c23a<_0xafdc2e['length'];_0x55c23a++){const _0x119b8f=_0xafdc2e[_0x55c23a];if(_0x119b8f['type']!==_0x17367e['type']||_0x119b8f['author']['id']!==_0x17367e['author']['id']||_0x119b8f['subType']!==_0x17367e['subType'])continue;if(!Jt(_0x17367e,_0x119b8f))continue;if('attribute'==_0x17367e['type']&&_0x17367e['data']['oldValue']!=_0x119b8f['data']['oldValue'])continue;if('attribute'==_0x17367e['type']&&_0x303221['_isBlockAttribute'](_0x17367e['data']['key']))continue;if('formatBlock'==_0x17367e['type']){const _0xf13029=_0x303221['editor']['model'],_0x23b6d6=_0x17367e['getContainedElement']();if(_0x23b6d6&&(_0xf13029['schema']['isObject'](_0x23b6d6)||_0xf13029['schema']['isLimit'](_0x23b6d6)))continue;}const _0x265670=_0x1df6bd['get'](_0x17367e),_0x389535=_0x52d1c3['get'](_0x17367e),_0x35be0c=_0x52d1c3['get'](_0x119b8f),_0x350cdb=_0x17367e['commentThread']&&_0x17367e['commentThread']['length'],_0x329e3d=_0x119b8f['commentThread']&&_0x119b8f['commentThread']['length'];if(!_0x350cdb&&_0x265670(_0x35be0c,_0x389535))return _0x303221['_joinSuggestions'](_0x119b8f,_0x17367e),_0x52d1c3['delete'](_0x17367e),!0x0;if(!_0x329e3d&&_0x265670(_0x389535,_0x35be0c))return _0x303221['_joinSuggestions'](_0x17367e,_0x119b8f),_0x52d1c3['delete'](_0x119b8f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2183f5,_0x4fd738){if(_0x2183f5['isMultiRange']){for(const _0x38054d of _0x4fd738['getRanges']())_0x2183f5['addRange'](_0x38054d);}else{const _0x3a0824=_0x4fd738['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2183f5,this['_model']['createRange'](_0x2183f5['getFirstRange']()['start'],_0x3a0824));}_0x4fd738['removeMarkers']();}['_getMarkerAnnouncementText'](_0x256bdf,_0x449e21,_0x3819cc){const _0x47e2c1=_0x256bdf['startsWith']('format')||_0x256bdf['startsWith']('attribute')?'FORMATTING':_0x256bdf['toUpperCase']();return o(this['editor']['locale'],_0x449e21+'_'+_0x47e2c1+'_SUGGESTION_ANNOUNCEMENT',_0x3819cc);}['_initAriaMarkerChangeAnnouncements'](){const _0x24008c=this['editor'];if(!_0x24008c['ui'])return;const {ariaLiveAnnouncer:_0x3a4452}=_0x24008c['ui'];_0x4b4fad(this['_model'],({left:_0x5348a7,entered:_0x1284f9})=>{for(const _0x37b81f of _0x5348a7){const {group:_0x42540a,type:_0x2b03f5}=this['_splitMarkerName'](_0x37b81f['name']);if('suggestion'===_0x42540a){_0x3a4452['announce'](this['_getMarkerAnnouncementText'](_0x2b03f5,'LEAVE'));break;}}for(const _0x2f23c5 of _0x1284f9){const {group:_0x2de94f,type:_0x1ed6ef}=this['_splitMarkerName'](_0x2f23c5['name']);if('suggestion'===_0x2de94f){_0x3a4452['announce'](this['_getMarkerAnnouncementText'](_0x1ed6ef,'ENTER',_0x296b3e(_0x4ca322)));break;}}});}['_processAttributeChanges'](_0x287453){if(this['_recordAttributeSuggestions'])return!0x1;const _0x506708=this['editor'],_0xec338a=_0x506708['model']['document']['differ']['getChanges']();if(0x0==_0xec338a['length'])return!0x1;const _0x522bc8=[],_0x38b5d8=_0xec338a['filter'](_0x360c4a=>'attribute'==_0x360c4a['type']),_0x3790a8=_0xec338a['filter'](_0x1cb230=>'insert'==_0x1cb230['type']&&'$text'!=_0x1cb230['name']),_0x3780b2=_0xec338a['filter'](_0x147119=>'remove'==_0x147119['type']&&'$text'!=_0x147119['name']);for(const _0x17f672 of _0x38b5d8)_0x522bc8['push']({'key':_0x17f672['attributeKey'],'newValue':_0x17f672['attributeNewValue'],'oldValue':_0x17f672['attributeOldValue'],'range':Ft(_0x17f672['range'],_0x506708['model'])});for(const _0x5b6dd4 of _0x3790a8){const _0x25da27=_0x3780b2['find'](_0x89b1ef=>_0x89b1ef['position']['isEqual'](_0x5b6dd4['position']));_0x25da27&&_0x522bc8['push']({'key':m,'newValue':_0x5b6dd4['name'],'oldValue':_0x25da27['name'],'range':_0x506708['model']['createRangeOn'](_0x5b6dd4['position']['nodeAfter'])});}return 0x0!=_0x522bc8['length']&&this['_reduceExistingSuggestions'](_0x287453,_0x522bc8);}['_processAttributeSuggestions'](_0xef8a04){let _0x27f2da=!0x1;const _0x1e2673=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x129753=>_0x129753['data']['newRange']&&_0x129753['name']['startsWith']('suggestion:attribute:'));for(const _0x2b5d9f of _0x1e2673){const {subType:_0x5170cc,id:_0x5993fd}=this['_splitMarkerName'](_0x2b5d9f['name']),_0x1d96a6=_0x5170cc['split']('|')[0x0];for(const _0x29bf65 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x29bf65['id']!=_0x5993fd&&'attribute'==_0x29bf65['type']&&_0x29bf65['data']&&_0x29bf65['data']['key']==_0x1d96a6&&_0x29bf65['getFirstRange']()['isIntersecting'](_0x2b5d9f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x29bf65,_0x2b5d9f['data']['newRange'],_0xef8a04),_0x27f2da=!0x0);}return _0x27f2da;}['_recordAttributeChanges'](_0x162b3d){this['_recordAttributeSuggestions']=!0x0,_0x162b3d();}['_isRegisteredAttribute'](_0xc71632){const _0x17974e=this['_isBlockAttribute'](_0xc71632),_0x199b50=this['_inlineAttributeKeys']['has'](_0xc71632);return _0x17974e||_0x199b50;}['_reduceExistingSuggestions'](_0x3ad855,_0x31163c){if(0x0==_0x31163c['length'])return!0x1;let _0x2818e9=!0x1;for(const _0x4bf1cd of _0x31163c){const _0x33bf02=this['_findSuggestions'](_0x4bf1cd['range'],'attribute')['filter'](_0xce3e23=>!_0xce3e23['meta']['isNextTo'])['map'](_0x5ed87e=>_0x5ed87e['suggestion']),_0x3b7f7f=_0x35240c({'newValue':_0x4bf1cd['newValue']});_0x33bf02['filter'](_0x372d86=>{const [_0x141b88,_0xa29ec0]=_0x372d86['subType']['split']('|');return _0x141b88==_0x4bf1cd['key']&&_0xa29ec0!=_0x3b7f7f;})['forEach'](_0x159c4f=>{this['_reduceSuggestionAttributeRange'](_0x159c4f,_0x4bf1cd['range'],_0x3ad855),_0x2818e9=!0x0;});}return _0x2818e9;}['_reduceSuggestionAttributeRange'](_0x46039c,_0x3b90f3,_0x296531){const _0x7550d3=_0x46039c['getFirstRange']()['getDifference'](_0x3b90f3);0x0!==_0x7550d3['length']?0x1!==_0x7550d3['length']?this['_breakSuggestionMarker'](_0x46039c,_0x3b90f3['start'],_0x3b90f3['end']):this['_setSuggestionRange'](_0x46039c,_0x7550d3[0x0]):_0x296531['removeMarker'](_0x46039c['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x241466){this['_editor']=_0x241466,this['_model']=_0x241466['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb7b290,_0x22635f,_0x2b3ab8,_0x48e437,_0x40fdd8,_0x3d3415){return new u(this['_model'],{'type':_0xb7b290,'subType':_0x22635f,'id':_0x2b3ab8,'author':_0x48e437,'creator':_0x48e437,'attributes':_0x40fdd8,'onAttributesChange':_0x3d3415,'onAccept':(..._0x14d137)=>this['getSuggestionCallback'](_0xb7b290,_0x22635f,'accept')(..._0x14d137),'onDiscard':(..._0x559a27)=>this['getSuggestionCallback'](_0xb7b290,_0x22635f,'discard')(..._0x559a27)});}['registerCustomCallback'](_0x4e7c91,_0x3d21ad,_0x3aae09,_0x2295a7){const _0x473b7a=_0x4e7c91+':'+_0x3d21ad+':'+_0x3aae09;this['_customCallbacks']['set'](_0x473b7a,_0x2295a7);}['getSuggestionCallback'](_0x26e8d0,_0x174f55,_0x5dc584){const _0x3a4957=_0x26e8d0+':'+_0x174f55+':'+_0x5dc584;return this['_customCallbacks']['get'](_0x3a4957)||this['_defaultCallbacks']['get'](_0x26e8d0+':'+_0x5dc584);}['_registerDefaultCallbacks'](){const _0x41e909=()=>!0x1,_0x5673ed=_0x1a20c6=>{_0x1a20c6['sort']((_0x11eb06,_0x17b96e)=>_0x11eb06['start']['isBefore'](_0x17b96e['start'])?0x1:-0x1),this['_model']['change'](_0x5862f2=>{for(const _0x81e530 of _0x1a20c6){let _0x406149;_0x406149=_0x81e530['end']['isAtEnd']&&_0x81e530['end']['parent']==_0x81e530['start']['nodeAfter']?_0x5862f2['createSelection'](_0x81e530['start']['nodeAfter'],'on'):_0x5862f2['createSelection'](_0x81e530),this['_model']['deleteContent'](_0x406149,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4956a0=(_0x545540,_0x32d2a6)=>{_0x32d2a6&&this['_model']['change'](_0x2b4ff9=>{const {commandName:_0x254be3,commandParams:_0x4f3e04=[]}=_0x32d2a6,_0x4548b5=_0x545540['map'](_0x2e3545=>(Vt(_0x2e3545)&&(_0x2e3545=this['_model']['createRange'](_0x2e3545['end'])),_0x2e3545))['filter'](_0xb2bc12=>'$graveyard'!==_0xb2bc12['root']['rootName']);if(_0x4548b5['length']<0x1)return;const _0x38b544=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49de3e=>_0x4f83f9['fromRange'](_0x49de3e));_0x2b4ff9['setSelection'](_0x4548b5);for(const _0x3910dc of this['_editor']['commands']['commands']())_0x3910dc['refresh']();_0x4f3e04['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x254be3,..._0x4f3e04);const _0x4e8e02=_0x38b544['filter'](_0xdfe4b5=>'$graveyard'!=_0xdfe4b5['root']['rootName']);_0x4e8e02['length']>0x0&&_0x2b4ff9['setSelection'](_0x4e8e02);for(const _0x1d7481 of _0x38b544)_0x1d7481['detach']();});},_0x51b457=(_0x445d7c,_0x32ed26)=>0x1==_0x445d7c['length']&&0x1==_0x32ed26['length']&&_0x445d7c[0x0]['end']['isEqual'](_0x32ed26[0x0]['start']),_0x4648d9=(_0x58fb25,_0x5b21ed,_0x424462,_0x219c7a)=>Ht(_0x58fb25,_0x5b21ed,_0x424462,_0x219c7a,this['_model'])?[_0x58fb25,_0x5b21ed]:Ht(_0x5b21ed,_0x58fb25,_0x219c7a,_0x424462,this['_model'])?[_0x5b21ed,_0x58fb25]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41e909),this['_defaultCallbacks']['set']('insertion:discard',_0x5673ed),this['_defaultCallbacks']['set']('insertion:join',_0x51b457),this['_defaultCallbacks']['set']('insertion:chain',_0x4648d9),this['_defaultCallbacks']['set']('deletion:accept',_0x5673ed),this['_defaultCallbacks']['set']('deletion:discard',_0x41e909),this['_defaultCallbacks']['set']('deletion:join',_0x51b457),this['_defaultCallbacks']['set']('deletion:chain',_0x4648d9),this['_defaultCallbacks']['set']('formatInline:accept',_0x4956a0),this['_defaultCallbacks']['set']('formatInline:discard',_0x41e909),this['_defaultCallbacks']['set']('formatInline:join',_0x51b457),this['_defaultCallbacks']['set']('formatInline:chain',_0x41e909),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4956a0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41e909),this['_defaultCallbacks']['set']('formatBlock:join',_0x51b457),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41e909),this['_defaultCallbacks']['set']('attribute:accept',_0x41e909),this['_defaultCallbacks']['set']('attribute:discard',(_0xe1f7d4,_0x227962)=>{if(!_0x227962)return;const _0x3f8925=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2dd032=>{if(_0x227962['key']==m)for(const _0x1ecf7e of _0xe1f7d4){const _0x59f6e7=_0x1ecf7e['start']['nodeAfter'],_0x10e9e5=_0x227962['oldValue'];_0x2dd032['rename'](_0x59f6e7,_0x10e9e5);}else{if(_0x3f8925['_isBlockAttribute'](_0x227962['key'])){for(const _0x38529a of _0xe1f7d4)void 0x0!==_0x227962['oldValue']?_0x2dd032['setAttribute'](_0x227962['key'],_0x227962['oldValue'],_0x38529a['start']['nodeAfter']):_0x2dd032['removeAttribute'](_0x227962['key'],_0x38529a['start']['nodeAfter']);}else{for(const _0x55ff89 of _0xe1f7d4)_0x227962['oldValue']?_0x2dd032['setAttribute'](_0x227962['key'],_0x227962['oldValue'],_0x55ff89):_0x2dd032['removeAttribute'](_0x227962['key'],_0x55ff89);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51b457);}}function Et(_0x1e3ed4,_0x10c7b6,_0x47b920){for(const _0x31dd7d of _0x10c7b6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x31dd7d['root']==_0x31dd7d)return!0x1;if(!_0x47b920['containsItem'](_0x31dd7d))return!0x1;if(_0x1e3ed4['isObject'](_0x31dd7d)||_0x1e3ed4['isLimit'](_0x31dd7d))return!0x0;}return!0x1;}function Vt(_0x51a83a){return _0x51a83a['end']['parent']==_0x51a83a['start']['nodeAfter']&&_0x51a83a['end']['isAtStart'];}function Ut(_0x191482,_0x2fec33,_0x4f4a9c,_0x359f23){const _0x4a8d7c=_0x2b189f=>!_0x2b189f['item']['is']('$textProxy')&&!_0x359f23['isObject'](_0x2b189f['item']),_0x182aac=_0x191482['start']['getLastMatchingPosition'](_0x4a8d7c),_0x679bf5=_0x191482['end']['getLastMatchingPosition'](_0x4a8d7c,{'direction':'backward'});return(!_0x191482['start']['isEqual'](_0x182aac)||!_0x191482['end']['isEqual'](_0x679bf5))&&(_0x182aac['isBefore'](_0x679bf5)?_0x4f4a9c['updateMarker'](_0x2fec33,{'range':_0x4f4a9c['createRange'](_0x182aac,_0x679bf5)}):_0x4f4a9c['removeMarker'](_0x2fec33),!0x0);}function Pt(_0x12168a){return _0x35240c(_0x12168a);}function Gt(_0x46dacc){const _0x56a915=_0x46dacc['start']['nodeAfter'];return _0x56a915&&_0x56a915['is']('element');}function Ft(_0x260622,_0x276f6a){return null==_0x260622['end']['nodeBefore']&&_0x260622['end']['parent']==_0x260622['start']['nodeAfter']?Lt(_0x260622['start']['nodeAfter'],_0x276f6a):_0x260622;}function Lt(_0x25ba9f,_0x430927){const _0x3cbf34=_0x430927['schema']['isObject'](_0x25ba9f)||_0x430927['schema']['isSelectable'](_0x25ba9f);return _0x430927['createRange'](_0x430927['createPositionAt'](_0x25ba9f,'before'),_0x3cbf34?_0x430927['createPositionAfter'](_0x25ba9f):_0x430927['createPositionAt'](_0x25ba9f,'end'));}function Ht(_0x211eaf,_0x1736c2,_0x49d068,_0x373c41,_0x1a8f3f){if(_0x211eaf['next'])return!0x1;if(!Jt(_0x211eaf,_0x1736c2))return!0x1;if(_0x49d068['end']['isEqual'](_0x373c41['start']))return!0x0;if(_0x211eaf['type']!=_0x1736c2['type'])return!0x1;if(!_0x49d068['end']['isTouching'](_0x373c41['start']))return!0x1;const _0xf1a62a=_0x1a8f3f['createRange'](_0x49d068['end'],_0x373c41['start'])['getWalker']();for(const _0x883849 of _0xf1a62a)if(['elementStart','elementEnd']['includes'](_0x883849['type'])&&_0x1a8f3f['schema']['isLimit'](_0x883849['item']))return!0x1;return!0x0;}function Jt(_0x29be02,_0x385a05){if(!_0x29be02['_isDataLoaded']||!_0x385a05['_isDataLoaded'])return!0x1;const _0x10d300=new Set(Object['keys'](_0x29be02['attributes'])),_0x22e44b=new Set(Object['keys'](_0x385a05['attributes']));if(_0x10d300['delete']('groupId'),_0x22e44b['delete']('groupId'),0x0==_0x10d300['size']&&0x0==_0x22e44b['size'])return!0x0;if(_0x10d300['size']!=_0x22e44b['size'])return!0x1;const _0x4fe9cb={..._0x29be02['attributes']},_0x48b287={..._0x385a05['attributes']};return delete _0x4fe9cb['groupId'],delete _0x48b287['groupId'],JSON['stringify'](_0x4fe9cb)==JSON['stringify'](_0x48b287);}function qt(_0x1f9085,_0x4e113f){const _0x198936=zt(_0x1f9085['attributes']),_0x1f3dd2=zt(_0x4e113f);if(!_0x1f9085['_isDataLoaded'])return!0x1;for(const _0x3ade2e of Object['keys'](_0x1f3dd2))if(!_0x46161a(_0x198936[_0x3ade2e],_0x1f3dd2[_0x3ade2e]))return!0x1;return!0x0;}function zt(_0xba76ac){const _0x121cc8=Object['assign']({},_0xba76ac);return delete _0x121cc8['skipNestingCheck'],delete _0x121cc8['tablePasteChainId'],_0x121cc8;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x5b20f4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21fdc9,_0xef734f,_0x5c4a49,_0x5894cc){super(),this['model']=_0xef734f,this['view']=_0x5c4a49,this['commentThreadController']=_0x5894cc,this['_editor']=_0x21fdc9,this['_acceptCommand']=_0x21fdc9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21fdc9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3c4b1c,_0xbb7678)=>_0x3c4b1c||_0xbb7678),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x606291=>_0x606291&&this['_editor']['model']['canEditAt'](_0xef734f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x30ab74=>_0x30ab74&&this['_editor']['model']['canEditAt'](_0xef734f['getRanges']())),this['_pendingAction']=null,_0x5c4a49['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5c4a49,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5c4a49,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5c4a49,'change:isDirty',()=>{_0x5c4a49['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 _0x360e29=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x360e29);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1840de{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a82ae,_0x33d945,_0x2fa536,_0x56d7ca){super(_0x2a82ae),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1afc9a(_0x2a82ae,o(_0x2a82ae,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x33d945['authoredAt']),this['bind']('authoredAt')['to'](_0x33d945),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',_0x33d945,'authoredAt',this,'descriptionParts',(_0x7bcc72,_0x5a1058,_0x48a6aa)=>{const _0x229b9b=_0x48a6aa['map'](_0x4b842b=>ls(_0x4b842b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x7bcc72-0x1,_0x33d945['author']['name'],_0x5a1058?_0x56d7ca['formatDateTime'](_0x5a1058):'',new DOMParser()['parseFromString'](_0x229b9b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4960e1(),this['focusTracker']=new _0x2f03c4(),this['keystrokes']=new _0x9c9a0d(),this['focusCycler']=new _0x14a7fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c11ae=>_0x3c11ae['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x33d945,this['_localUser']=_0x2fa536,this['_config']=_0x56d7ca,_0x56d7ca['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x35c5a3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x24b53a}=this['_config'];this['commentsListView']=new _0x24b53a(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',_0x274adb=>_0x274adb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bfb4f,_0x32b960)=>_0x5bfb4f||!!_0x32b960);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x57257f}=this['_config'],_0x103d55=new _0x57257f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x36903e=_0x103d55['commentInputView'];return _0x103d55['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x36903e,'value',(_0x20ac92,_0x244d78,_0xca7df9)=>!!_0xca7df9||_0x20ac92&&!_0x244d78),_0x36903e['on']('submit',(_0x5b8563,_0x25d963)=>{this['fire']('addComment',_0x25d963),_0x36903e['editor']['setData']('');}),_0x36903e['on']('cancel',()=>this['focus']()),_0x36903e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x103d55;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0xa7734a,_0x5207a0,_0x19961c,_0x4c7be7){super(_0xa7734a,_0x5207a0,_0x19961c,_0x4c7be7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d1bdd=>_0x4d1bdd&&_0x4d1bdd[0x0]?_0x4d1bdd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44d516,_0x57571b)=>{let _0x3c1f92='';for(const _0x2b553e of _0x44d516)_0x3c1f92+='<p>'+ls(_0x2b553e['content'],_0x2b553e['color'])+'</p>';return _0x57571b?_0x3c1f92:_0x4d23af(_0x3c1f92,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4c7be7['SuggestionView'](_0xa7734a,_0x5207a0,{'formatDateTime':_0x4c7be7['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 _0x6fb166=this['bindTemplate'],_0x5bdadc=[this['suggestionView']];return this['commentsListView']&&_0x5bdadc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5bdadc['push'](this['commentThreadInputView']),_0x5bdadc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x6fb166['if']('isActive','ck-suggestion-wrapper--active'),_0x6fb166['to']('type',_0x443b7a=>'ck-suggestion-'+_0x443b7a),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':_0x6fb166['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5bdadc};}['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 ce extends _0x1840de{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4d87b0,_0x54a96b,_0x4a3bdf){super(_0x4d87b0),this['_model']=_0x54a96b,this['_config']=_0x4a3bdf,this['set']('description',''),this['bind']('authoredAt')['to'](_0x54a96b),this['acceptButton']=this['_createButton'](o(_0x4d87b0,'Accept\x20suggestion'),_0xef2bba['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4d87b0,'Discard\x20suggestion'),_0xef2bba['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xc698bf(_0x4d87b0,_0x54a96b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4960e1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2f03c4(),this['keystrokes']=new _0x9c9a0d(),this['focusCycler']=new _0x14a7fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x339f7a=>_0x339f7a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x14c5c9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x14c5c9['innerHTML']=this['description'],this['on']('change:description',(_0x95ab72,_0x9f5903,_0x286687)=>{_0x14c5c9['innerHTML']=_0x286687;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x547ac1=this['bindTemplate'],_0x18c9a8=[{'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']}},{'tag':'time','attributes':{'datetime':_0x547ac1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x547ac1['to']('authoredAt',_0x455092=>this['_config']['formatDateTime'](_0x455092))}]}]},{'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']&&_0x18c9a8['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':_0x18c9a8}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5ba9a8,_0x21d054,_0x3754ac,_0xb3bee4,_0x111099){const _0x26d75d=new _0x1765ae(this['locale']);return _0x26d75d['set']({'label':_0x5ba9a8,'icon':_0x21d054,'tooltip':!0x0,'tooltipPosition':_0x111099}),_0x26d75d['extendTemplate']({'attributes':{'class':_0x3754ac}}),_0x26d75d['on']('execute',()=>{this['fire'](_0xb3bee4,this['_model']['id']);}),_0x26d75d;}['_setupKeyboardNavigation'](){const _0x155898=this['element'];this['keystrokes']['listenTo'](_0x155898);for(const _0x1d333b of this['focusables'])this['focusTracker']['add'](_0x1d333b['element']),this['keystrokes']['listenTo'](_0x1d333b['element']);this['keystrokes']['set']('enter',(_0x55caeb,_0x3e7b6f)=>{_0x155898===_0x55caeb['target']&&(this['focusCycler']['focusFirst'](),_0x3e7b6f());}),this['keystrokes']['set']('esc',(_0x7bdb74,_0x542145)=>{_0x155898!==_0x7bdb74['target']&&(this['focus'](),_0x542145());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1d1013{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ad360,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43f10f){super(_0x43f10f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31dc07=this['editor']['config'];_0x31dc07['define']('trackChanges.SuggestionThreadView',re),_0x31dc07['define']('trackChanges.SuggestionView',ce),_0x31dc07['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31dc07['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x527b02,_0x33737a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1b481b,_0x2497f2]of this['_handleControllerBuffer']){const _0x4dc80f=this['_suggestionToController']['has'](_0x1b481b);_0x4dc80f||_0x2497f2?_0x4dc80f&&_0x2497f2&&this['_destroyController'](_0x1b481b):this['_initializeController'](_0x1b481b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x527b02,_0x33737a);}['init'](){const _0x29ca85=this['editor'],_0x4b587a=_0x29ca85['plugins']['get']('TrackChangesEditing'),_0x2e818e=_0x29ca85['plugins']['get']('Annotations'),_0x952660=_0x29ca85['plugins']['get']('EditorAnnotations'),_0x5bc8f0=_0x29ca85['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x952660['addSourceCollector'](()=>{const _0xbae90e=[];for(const [_0x879376,_0x371095]of Array['from'](this['_suggestionToController'])){const _0x62f61=_0x879376['getAllAdjacentSuggestions'](),_0x4f1b1c=[];for(const _0x566f6a of _0x62f61){if(!_0x566f6a['isInContent'])continue;if(_0x566f6a['isMultiRange']){_0x4f1b1c['push'](..._0x566f6a['getRanges']());continue;}const _0x14491b=_0x566f6a['getFirstRange']();if(_0x4f1b1c['length']>0x0){const _0x463814=_0x4f1b1c[0x0]['getJoined'](_0x14491b);if(_0x463814){_0x4f1b1c[0x0]=_0x463814;continue;}}_0x4f1b1c['push'](_0x14491b);}_0xbae90e['push']([_0x371095['view'],_0x4f1b1c]);}return _0xbae90e;}),this['listenTo'](_0x4b587a,'suggestionLoaded',(_0x1969aa,_0x3659a5)=>{this['listenTo'](_0x3659a5,'change:previous',(_0x3ac4e0,_0x3179a2,_0x58e092,_0x5a4b3e)=>{_0x3659a5['isInContent']&&(null==_0x58e092?(this['_updateController'](_0x5a4b3e['head']),this['_handleSuggestionControllerDelayed'](_0x3659a5,!0x1)):(this['_updateController'](_0x58e092['head']),null==_0x5a4b3e&&this['_handleSuggestionControllerDelayed'](_0x3659a5,!0x0)));}),null!==_0x3659a5['previous']?this['_updateController'](_0x3659a5['head']):this['_handleSuggestionControllerDelayed'](_0x3659a5,!0x1);}),this['listenTo'](_0x4b587a,'suggestionUnloaded',(_0x49bcb6,_0x3449ab,_0x4c5023)=>{this['stopListening'](_0x3449ab,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3449ab),this['_suggestionToController']['has'](_0x3449ab)&&this['_destroyController'](_0x3449ab),_0x4c5023&&this['_updateController'](_0x4c5023['head']);}),this['listenTo'](_0x4b587a,'suggestionChanged',(_0xc19d0a,_0x1c1c99)=>{this['_updateController'](_0x1c1c99);}),this['listenTo'](_0x2e818e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5bc8f0,'addComment',(_0x342efd,{threadId:_0x3115a1,isFromAdapter:_0x3317e5})=>{if(_0x3317e5||!_0x4b587a['hasSuggestion'](_0x3115a1))return;const _0x2a5f50=_0x4b587a['getSuggestion'](_0x3115a1);this['_suggestionToController']['get'](_0x2a5f50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x32d063=this['editor']['plugins']['get']('Annotations'),_0x45b375=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45375b=Array['from'](_0x32d063['activeAnnotations'],_0x2ca3ef=>_0x2ca3ef['innerView'])['filter'](_0x275ebf=>this['_viewToController']['has'](_0x275ebf)),_0x2efd30=[];for(const _0x28501e of _0x45375b){const _0x46130c=this['_viewToController']['get'](_0x28501e)['model']['getAllAdjacentSuggestions']();_0x2efd30['push'](..._0x46130c['reduce']((_0x11622f,_0x43c8f4)=>[..._0x11622f,..._0x43c8f4['getMarkerNames']()],[]));}_0x45b375['activeMarkers']=_0x2efd30;}['_addUIComponentsToFactory'](){const _0x3ffaac=this['editor'],_0x450149=_0x3ffaac['locale'],_0x30e095=o(_0x450149,'Track\x20changes'),_0x235af2=new Wt([{'type':'switchbutton','model':new _0x2060c6({'withText':!0x0,'isToggleable':!0x0,'label':_0x30e095,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x11fddd of _0x235af2)if(me(_0x11fddd)){const _0x3df733=_0x3ffaac['commands']['get'](_0x11fddd['model']['commandName']);_0x11fddd['model']['bind']('isOn','isEnabled')['to'](_0x3df733,'value','isEnabled');}_0x3ffaac['ui']['componentFactory']['add']('trackChanges',_0x40d304=>this['_createToolbarButton'](_0x40d304,_0x235af2,_0x30e095)),_0x3ffaac['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc6d60e=>this['_createMenuBarMenu'](_0xc6d60e,_0x235af2,_0x30e095));}['_createToolbarButton'](_0x3864fd,_0x1621dd,_0x50d030){const _0x2fa85f=Qt(_0x3864fd,_0x27ca1a),_0x4b14a=this['editor']['commands']['get']('trackChanges');_0x2fa85f['buttonView']['set']({'tooltip':_0x50d030,'label':_0x50d030,'icon':he}),_0x2fa85f['buttonView']['bind']('isOn')['to'](_0x4b14a,'value'),_0x2fa85f['buttonView']['on']('execute',()=>{_0x4b14a['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2fa85f,_0x1621dd,{'role':'menu'});const _0x262d7a=[];for(const _0x441933 of _0x1621dd)me(_0x441933)&&_0x262d7a['push'](this['editor']['commands']['get'](_0x441933['model']['commandName']));const _0x1f4e7f=_0x2fa85f['buttonView'];return _0x1f4e7f['actionView']['unbind']('isEnabled'),_0x1f4e7f['arrowView']['unbind']('isEnabled'),_0x1f4e7f['actionView']['bind']('isEnabled')['to'](_0x4b14a,'isEnabled'),_0x1f4e7f['arrowView']['bind']('isEnabled')['toMany'](_0x262d7a,'isEnabled',(..._0x1b9dd0)=>_0x1b9dd0['some'](_0x50b247=>_0x50b247)),_0x2fa85f['on']('execute',_0x31d78d=>{this['editor']['execute'](_0x31d78d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fa85f;}['_createMenuBarMenu'](_0xb8540c,_0x27ea29,_0x55c77e){const _0x25f5c9=new Yt(_0xb8540c),_0x3c78f4=this['editor']['commands']['get']('trackChanges');_0x25f5c9['buttonView']['set']({'label':_0x55c77e,'icon':he});const _0x44746e=new Zt(_0xb8540c);for(const _0x5897bb of _0x27ea29){if('separator'==_0x5897bb['type']){_0x44746e['items']['add'](new Xt(_0xb8540c));continue;}const _0x3b734c=new te(_0xb8540c,_0x25f5c9),_0x58241e=new _0x423b6(_0xb8540c),_0x58463e=_0x5897bb['model'];_0x58241e['bind'](...Object['keys'](_0x58463e))['to'](_0x58463e),_0x58241e['delegate']('execute')['to'](_0x25f5c9),_0x58241e['on']('execute',()=>{this['editor']['execute'](_0x58463e['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b734c['children']['add'](_0x58241e),_0x44746e['items']['add'](_0x3b734c);}return _0x25f5c9['bind']('isEnabled')['to'](_0x3c78f4,'isEnabled'),_0x25f5c9['panelView']['children']['add'](_0x44746e),_0x25f5c9;}['_initializeController'](_0x269cbd){const _0x3b2222=this['editor'],_0x5bd2bb=_0x3b2222['config'],_0x18a1b3=_0x3b2222['plugins']['get']('Annotations'),_0x4103d7=_0x3b2222['plugins']['get']('CommentsRepository'),_0x47a129=_0x3b2222['plugins']['get']('EditorAnnotations'),_0x44bb0e=_0x3b2222['plugins']['get'](_0x2ad360)['me'],_0xfbc163=_0x5bd2bb['get']('trackChanges')['SuggestionThreadView'],_0x54e878=_0x5bd2bb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2709c8,CommentThreadInputView:_0x4e429a}=_0x3b2222['plugins']['get']('CommentsUI');let _0x3c6747,_0x14b1b9,_0xde69a6;this['_annotationViews']['has'](_0x269cbd['id'])?(_0x14b1b9=this['_annotationViews']['get'](_0x269cbd['id']),_0x3c6747=_0x14b1b9['mainView']):(_0x3c6747=new _0xfbc163(_0x3b2222['locale'],_0x269cbd,_0x44bb0e,{'disableComments':this['_disableComments'],'editorConfig':_0x5bd2bb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5bd2bb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5bd2bb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5bd2bb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3460fc(_0x5bd2bb['get']('locale')),'CommentView':_0x5bd2bb['get']('comments')['CommentView'],'CommentsListView':_0x2709c8,'CommentThreadInputView':_0x4e429a,'SuggestionView':_0x54e878}),_0x3c6747['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b2222['editing']['view']['focus']();}),_0x3c6747['suggestionView']['discardButton']['on']('execute',()=>{_0x3b2222['editing']['view']['focus']();}),_0x14b1b9=_0x18a1b3['createAnnotationView'](this['editor']['locale'],_0x3c6747),_0x14b1b9['bind']('isDirty')['to'](_0x3c6747,'isDirty'),_0x14b1b9['bind']('length')['to'](_0x3c6747),_0x14b1b9['bind']('type')['to'](_0x3c6747,'type',_0x20fb14=>'suggestion-'+_0x20fb14),_0x3c6747['on']('escape',()=>{_0xde69a6['fire']('escape');}),this['_annotationViews']['set'](_0x269cbd['id'],_0x14b1b9));const _0x54f576=_0x4103d7['createCommentThreadController'](_0x269cbd['commentThread'],_0x3c6747),_0x98e473=new ae(_0x3b2222,_0x269cbd,_0x3c6747,_0x54f576),_0x525bb1=_0x269cbd['getAllAdjacentSuggestions']()['filter'](_0x5d56be=>_0x5d56be['isInContent']);_0x3c6747['descriptionParts']=_0x3b2222['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x525bb1),this['_suggestionToController']['set'](_0x269cbd,_0x98e473),this['_viewToController']['set'](_0x3c6747,_0x98e473),_0xde69a6=_0x18a1b3['createAnnotation']({'view':_0x14b1b9,'target':()=>{const _0x54a9ff=[],_0x5bebe2=_0x269cbd['getAllAdjacentSuggestions']()['filter'](_0x563e49=>_0x563e49['isInContent']);for(const _0x31d6bc of _0x5bebe2)_0x54a9ff['push'](..._0x31d6bc['getMarkers']());return _0x73809(_0x3b2222['editing'],_0x54a9ff);},'type':()=>'suggestion-'+_0x98e473['view']['type']}),_0x4103d7['_bindAnnotationToEditors'](_0x3c6747,_0xde69a6),_0x18a1b3['add'](_0xde69a6),_0x47a129['registerAnnotation'](_0xde69a6);}['_destroyController'](_0x80c01b){const _0x5bfc3c=this['editor']['plugins']['get']('CommentsRepository'),_0x5081bb=this['editor']['plugins']['get']('Annotations'),_0x1cde1e=this['_suggestionToController']['get'](_0x80c01b),_0xd1c3dd=_0x1cde1e['view'],_0x59c751=_0x5081bb['getByInnerView'](_0xd1c3dd);_0x5bfc3c['_unbindEditors'](_0xd1c3dd),_0x59c751&&_0x5081bb['remove'](_0x59c751),this['_suggestionToController']['delete'](_0x80c01b),this['_viewToController']['delete'](_0xd1c3dd),_0x1cde1e['destroy']();}['_updateController'](_0x269860){if(!_0x269860['isInContent']||!this['_suggestionToController']['has'](_0x269860))return;const _0x5ad085=this['editor']['plugins']['get']('TrackChangesEditing'),_0x141b1c=this['_suggestionToController']['get'](_0x269860),_0x5bd6b9=_0x269860['getAllAdjacentSuggestions']();_0x141b1c['view']['descriptionParts']=_0x5ad085['descriptionFactory']['getDescriptions'](_0x5bd6b9);}['destroy'](){for(const _0x28dbdb of this['_suggestionToController']['keys']())this['_destroyController'](_0x28dbdb);for(const _0x4baa15 of this['_annotationViews']['values']())_0x4baa15['mainView']['destroy']();super['destroy']();}}function me(_0x3922bd){return'model'in _0x3922bd;}class k extends _0x1d1013{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5238cc){this['editor']['plugins']['get'](p)['adapter']=_0x5238cc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d6653){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d6653);}['getSuggestions']({skipNotAttached:_0x91b465=!0x1,toJSON:_0x439270=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x91b465,'toJSON':_0x439270});}['getSuggestion'](_0x550e41){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x550e41);}}const w=['Pagination'];class T extends _0x1d1013{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x178f3f=this['editor'];if(_0x178f3f['config']['define']('trackChangesData.editorCreator',_0x5a193f=>{const _0x256a13=_0x178f3f['model']['document']['getRootNames']()['reduce']((_0xf67117,_0x259730)=>(_0xf67117[_0x259730]='',_0xf67117),{});return _0x178f3f['constructor']['create'](_0x256a13,_0x5a193f);}),'function'!=typeof _0x178f3f['config']['get']('trackChangesData')['editorCreator'])throw new _0xc9e6ca('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x31b602){return N(this['editor'],!0x0,_0x31b602);}['getDataWithDiscardedSuggestions'](_0x499d5d){return N(this['editor'],!0x1,_0x499d5d);}}class D extends _0x1d1013{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a2264){super(_0x2a2264),this['result']='end';}['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 v(_0x5dd095){return void 0x0!==_0x5dd095['getRootsAttributes'];}async function N(_0x1be103,_0x1383ab,_0x13c933){const _0x2a05a4=_0x222606(_0x1be103,w);_0x2a05a4['plugins']['push'](p,D),_0x2a05a4['rootsAttributes']=v(_0x1be103)?_0x1be103['getRootsAttributes']():void 0x0;const _0x1e0ba4=document['createDocumentFragment'](),_0x14ba36=_0x1be103['config']['get']('trackChangesData')['editorCreator'],_0x5a57de=await _0x14ba36(_0x2a05a4,()=>function(_0x15d010){const _0x2100bd=document['createElement']('div');return _0x15d010['appendChild'](_0x2100bd),_0x2100bd;}(_0x1e0ba4));!function(_0x2e8463,_0x14ca12){const _0x323e12=_0x2e8463['model']['document']['getRootNames']()['reduce']((_0x26934e,_0x1bf639)=>(_0x26934e[_0x1bf639]=_0x2e8463['data']['get']({'rootName':_0x1bf639}),_0x26934e),{}),_0x2741fb=_0x2e8463['plugins']['get']('Users')['users']['map'](_0xec1eea=>({'id':_0xec1eea['id'],'name':_0xec1eea['name']})),_0x29d8a4=_0x2e8463['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b16dc=_0x2e8463['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe69c0d=_0x14ca12['plugins']['get']('Users'),_0xfbdbc2=_0x14ca12['plugins']['get']('TrackChangesEditing'),_0x54c6ca=_0x14ca12['plugins']['get']('CommentsRepository');for(const _0x5729ea of _0x54c6ca['getCommentThreads']())_0x5729ea['remove']();for(const _0x55ca0e of _0x2741fb)_0xe69c0d['getUser'](_0x55ca0e['id'])||_0xe69c0d['addUser'](_0x55ca0e);_0xe69c0d['me']||_0xe69c0d['useAnonymousUser']();for(const _0x33a8bc of _0x3b16dc)_0x54c6ca['addCommentThread'](_0x33a8bc);for(const _0x5c4999 of _0x29d8a4)_0xfbdbc2['addSuggestionData'](_0x5c4999);_0x14ca12['data']['set'](_0x323e12);}(_0x1be103,_0x5a57de),_0x5a57de['execute'](_0x1383ab?'acceptAllSuggestions':'discardAllSuggestions');const _0x454b82=v(_0x5a57de)?_0x5a57de['getFullData'](_0x13c933):_0x5a57de['data']['get'](_0x13c933);return await _0x5a57de['destroy'](),_0x454b82;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};