@ckeditor/ckeditor5-track-changes 44.3.0-alpha.3 → 44.3.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Yt,Plugin as _0x3d817a,PendingActions as _0x1f09ee,icons as _0x4c8c8a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x21392e,ObservableMixin as _0x938063,uid as _0x16cdcd,priorities as _0x50574c,insertToPriorityArray as _0xcab107,logWarning as _0x5504c8,getEnvKeystrokeText as _0xaff5fb,FocusTracker as _0x48ec70,KeystrokeHandler as _0x1704b9,Collection as _0x491800}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x60ef7a,View as _0x27d206,ViewCollection as _0x2d8fef,FocusCycler as _0x44dc46,ViewModel as _0x2d67b7,createDropdown as _0x41b629,SplitButtonView as _0x2c22f6,addListToDropdown as _0x3ee2ec,MenuBarMenuView as _0x48f0bb,MenuBarMenuListView as _0x2a5a11,ListSeparatorView as _0x27da9a,MenuBarMenuListItemView as _0x38980a,MenuBarMenuListItemButtonView as _0x2c7249,BodyCollection as _0x50ad16,Dialog as _0x1d59bd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x12c1ef,hashObject as _0x12fa0f,surroundingMarkersDetector as _0x5ca1bf,FOCUS_ANNOTATION_KEYSTROKE as _0xb6d6be,AriaDescriptionView as _0x17614a,setupThreadKeyboardNavigation as _0x5c591b,trimHtml as _0x4fd39a,UserView as _0x5d454b,LateFocusButtonView as _0x3e26d1,getDateTimeFormatter as _0x12e6f5,getAllMarkersDomElementsSorted as _0xd3d08d,sanitizeEditorConfig as _0x2307db}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2a539a,LiveRange as _0x25966c,LivePosition as _0x387827,DowncastWriter as _0x20aed6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5a0d08,toWidget as _0x138778}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x36ab56,set as _0x228397,isEqual as _0x55fccb,unset as _0x273e74,omit as Vt}from'lodash-es';import{Delete as _0x21f8ab,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x48d2f9,ShiftEnter as _0x128636}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0xf4cdcc,_0x5a4dd5){super(_0xf4cdcc),this['_enabledCommands']=_0x5a4dd5,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 _0xaad744 of this['editor']['commands']['commands']())_0xaad744['affectsData']&&!this['_enabledCommands']['has'](_0xaad744)&&_0xaad744['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xdb33e8 of this['editor']['commands']['commands']())_0xdb33e8['affectsData']&&!this['_enabledCommands']['has'](_0xdb33e8)&&_0xdb33e8['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x32abd4,_0x3ba6eb){super(_0x32abd4),this['_suggestions']=_0x3ba6eb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xea8b58){const _0x3089e5=this['_suggestions']['get'](_0xea8b58);if(!_0x3089e5)throw new _0x21392e('track-changes-accept-suggestion-not-found',this);const _0x3b6f89=_0x3089e5['getRanges']();this['editor']['model']['canEditAt'](_0x3b6f89)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3089e5);}}class R extends Yt{['_suggestions'];constructor(_0x393f5e,_0x47e457){super(_0x393f5e),this['_suggestions']=_0x47e457,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1dc184){const _0x52c451=this['_suggestions']['get'](_0x1dc184);if(!_0x52c451)throw new _0x21392e('track-changes-discard-suggestion-not-found',this);const _0x15e401=_0x52c451['getRanges']();this['editor']['model']['canEditAt'](_0x15e401)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x52c451);}}function cs(_0x4fd904,_0xce2ac2){let _0x1f9fcc='';return _0x1f9fcc+=_0x4fd904['split']('*')['map']((_0x4d6544,_0xc740ff)=>_0xc740ff%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4d6544)+'</span>':nn(_0x4d6544))['join'](''),_0xce2ac2&&(_0x1f9fcc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xce2ac2['value']+'\x22\x20title=\x22'+_0xce2ac2['title']+'\x22></span>'),_0x1f9fcc;}function nn(_0x38a7ba){const _0x206e3c=document['createElement']('span');return _0x206e3c['innerText']=_0x38a7ba,_0x206e3c['innerHTML'];}function Zt(_0x4821fa){return _0x4821fa['sort']((_0x10fc5a,_0x4c49e9)=>'deletion'==_0x10fc5a['type']&&'deletion'!=_0x4c49e9['type']?-0x1:'deletion'!=_0x10fc5a['type']&&'deletion'==_0x4c49e9['type']?0x1:0x0);}function to(_0x473cc3,_0x46a3ce){let _0x17fd14,_0x178f94=0x0;const _0x69e4d1=[],_0x2d8a28=_0x46a3ce['schema'];for(;_0x178f94<_0x473cc3['length'];){const _0x3d1382=_0x473cc3[_0x178f94],_0x540232=_0x473cc3[_0x178f94+0x1];_0x17fd14||(_0x17fd14=_0x46a3ce['createPositionBefore'](_0x3d1382)),on(_0x46a3ce,_0x3d1382,_0x540232)||(_0x69e4d1['push'](_0x46a3ce['createRange'](_0x17fd14,_0x2d8a28['isObject'](_0x3d1382)?_0x46a3ce['createPositionAfter'](_0x3d1382):_0x46a3ce['createPositionAt'](_0x3d1382,'end'))),_0x17fd14=null),_0x178f94++;}return _0x69e4d1;}function on(_0x97f259,_0x33640c,_0x5c6f44){if(!_0x5c6f44)return!0x1;const _0x159a65=_0x97f259['createPositionAfter'](_0x33640c),_0x17f7ca=_0x97f259['createPositionBefore'](_0x5c6f44);return _0x159a65['isTouching'](_0x17f7ca);}function ts(_0x1874f7,_0x4fa82a,_0x1e81cc){for(;_0x1e81cc['length'];){const _0x2378a0=_0x1e81cc['splice'](0x0,0x64);_0x1874f7['change'](()=>{for(const _0x500ac1 of _0x2378a0)_0x500ac1['isInContent']&&_0x4fa82a['execute'](_0x500ac1['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x331a9f,_0xffe306,_0xdde592){super(_0x331a9f),this['_command']=_0xffe306,this['_suggestions']=_0xdde592,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5127f9=Array['from'](this['_suggestions']['values']())['some'](_0x8ef97e=>_0x8ef97e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5127f9;}['execute'](){const _0x30ff68=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x5d6530 of _0x30ff68){const _0x43d745=_0x5d6530['getRanges']();if(!this['editor']['model']['canEditAt'](_0x43d745))return;}ts(this['editor']['model'],this['_command'],_0x30ff68);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x41b634,_0x6d9f7b,_0x4bbf5a){super(_0x41b634),this['_command']=_0x6d9f7b,this['_suggestions']=_0x4bbf5a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xed9e33=this['editor']['model']['document']['selection'],_0x4023c4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x36ccd4,_0x420d6b){const _0x17c08b=Array['from'](_0x36ccd4['getRanges']()),_0x46bbe5=new Set();for(const _0x1da6bd of _0x420d6b)if(_0x1da6bd['isInContent']){for(const _0x7bb188 of _0x17c08b)for(const _0x2ad559 of _0x1da6bd['getRanges']())(_0x7bb188['isIntersecting'](_0x2ad559)||_0x36ccd4['isCollapsed']&&!_0x1da6bd['isMultiRange']&&_0x1da6bd['next']&&_0x2ad559['end']['isTouching'](_0x7bb188['start']))&&_0x46bbe5['add'](_0x1da6bd);}return _0x46bbe5;}(_0xed9e33,_0x4023c4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x32ad40=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x22062d of _0x32ad40){const _0x571a07=_0x22062d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x571a07))return;}ts(this['editor']['model'],this['_command'],_0x32ad40);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x938063(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x207025,_0x4490d7){super(),this['id']=_0x4490d7['id'],this['type']=_0x4490d7['type'],this['subType']=_0x4490d7['subType']||null,this['author']=_0x4490d7['author'],this['creator']=_0x4490d7['creator']||_0x4490d7['author'],this['isExternal']=Boolean(_0x4490d7['attributes']&&_0x4490d7['attributes']['@external']),this['data']=null,this['_model']=_0x207025,this['_onAccept']=_0x4490d7['onAccept'],this['_onDiscard']=_0x4490d7['onDiscard'],this['_onAttributesChange']=_0x4490d7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4490d7['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 _0x1b35c1=this;for(;_0x1b35c1['previous'];)_0x1b35c1=_0x1b35c1['previous'];return _0x1b35c1;}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'](_0x1c8480){this['_markerNames']['add'](_0x1c8480);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x477c01=>this['_model']['markers']['get'](_0x477c01))['filter'](_0x14ec62=>_0x14ec62);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x21e8cd=>{for(const _0x31111e of this['getMarkers']())_0x21e8cd['removeMarker'](_0x31111e);}),this['_markerNames']['clear']();}['removeMarker'](_0x3a6af4){this['_model']['change'](_0x5412b9=>{_0x5412b9['removeMarker'](_0x3a6af4);}),this['_markerNames']['delete'](_0x3a6af4);}['addRange'](_0xb33f5d){const _0x544f07='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x544f07),this['_model']['change'](_0x3b9d63=>{_0x3b9d63['addMarker'](_0x544f07,{'range':_0xb33f5d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29c082){for(const _0x2845fd of this['getRanges']())if(_0x2845fd['isIntersecting'](_0x29c082))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x567dd6=>_0x567dd6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x40f0c7,_0x49b2af)=>[..._0x40f0c7,..._0x49b2af['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x19ce56=this['getRanges']();if(0x1!=_0x19ce56['length'])return null;const _0x49bc43=_0x19ce56[0x0],_0x389edd=_0x49bc43['start']['nodeAfter'],_0x50aeeb=_0x49bc43['end']['nodeBefore'];return _0x389edd instanceof _0x2a539a?_0x389edd!=_0x50aeeb?null:_0x389edd: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 _0xa0936a=[];let _0x210378=this['head'];for(;_0x210378;)_0xa0936a['push'](_0x210378),_0x210378=_0x210378['next'];return _0xa0936a;}['setAttribute'](_0x2bf198,_0x4df5c9){const _0x33409a=_0x36ab56(this['attributes']);_0x228397(_0x33409a,_0x2bf198,_0x4df5c9),_0x55fccb(_0x33409a,this['attributes'])||(this['attributes']=_0x33409a,this['_onAttributesChange'](_0x33409a));}['removeAttribute'](_0x1f8fd2){const _0xfd8918=_0x36ab56(this['attributes']);_0x273e74(_0xfd8918,_0x1f8fd2),_0x55fccb(_0xfd8918,this['attributes'])||(this['attributes']=_0xfd8918,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 _0x16cdcd()['substr'](0x1,0x5);}}function o(_0xf920a1,_0x1d6159,_0x134c41){const _0x45c7db=_0xf920a1['t'],t=_0xf920a1['t'];switch(_0x1d6159){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x134c41);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x134c41);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x134c41);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x134c41);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x134c41);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',_0x134c41);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x134c41);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x134c41);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x134c41);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x134c41);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x134c41);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x134c41);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x134c41);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x134c41);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x134c41);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x134c41);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x134c41);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x134c41);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x134c41);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x134c41);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x134c41);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x134c41);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x134c41);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x134c41);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'},_0x134c41);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x134c41);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x134c41);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x134c41);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x134c41);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x134c41);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'},_0x134c41);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x134c41);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x134c41);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x134c41);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x134c41);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'},_0x134c41);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x134c41);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'},_0x134c41);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'},_0x134c41);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x134c41);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'},_0x134c41);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x134c41);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'},_0x134c41);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x134c41);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x134c41);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'},_0x134c41);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x134c41);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 _0x45c7db({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x134c41);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x45c7db({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x134c41);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x134c41);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'},_0x134c41);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'},_0x134c41);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'},_0x134c41);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d6159;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x23755c,_0x115228){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x23755c,this['_locale']=_0x115228;}['getDescriptions'](_0xd0d9db){const _0x15429a=[],_0x12da34=new Set(),_0x111e98=new Set();for(let _0x31778a=0x0;_0x31778a<_0xd0d9db['length'];_0x31778a++){const _0x307367=_0xd0d9db[_0x31778a];if(!_0x307367['isInContent'])continue;const _0x580252=this['_handleCustomCallbackDescription'](_0x307367);if(_0x580252){if(null!=_0x307367['subType']){if(_0x12da34['has'](_0x307367['subType']))continue;_0x12da34['add'](_0x307367['subType']);}_0x15429a['push'](_0x580252);}else{if('attribute'!=_0x307367['type'])'insertion'!=_0x307367['type']&&'deletion'!=_0x307367['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15429a,_0x307367,_0xd0d9db[_0x31778a+0x1]);else{const _0x23f599=_0x307367['data']['key'];if(_0x111e98['has'](_0x23f599))continue;_0x111e98['add'](_0x307367['data']['key']),_0x23f599==m?this['_handleRenameSuggestionDescription'](_0x15429a,_0x307367):this['_handleAttributeSuggestionDescription'](_0x15429a,_0x307367);}}}return this['_resolveDescriptionItems'](_0x15429a);}['registerDescriptionCallback'](_0x319343){this['_customCallbacks']['push'](_0x319343);}['registerElementLabel'](_0x2f45a2,_0x5cb086,_0x27f75b=_0x50574c['normal']){'function'==typeof _0x2f45a2?_0xcab107(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2f45a2,'label':_0x5cb086,'priority':_0x27f75b}):this['_itemLabels']['set'](_0x2f45a2,_0x5cb086);}['registerAttributeLabel'](_0x5e7fb3,_0x3beaff){this['_attributeLabels']['set'](_0x5e7fb3,_0x3beaff);}['getItemLabel'](_0x55c283,_0x178d34=0x1){let _0xe2ebac;for(const _0x2372c3 of this['_itemLabelsCallbacks'])if(_0x2372c3['matchingCallback'](_0x55c283)){_0xe2ebac=_0x2372c3['label'];break;}return _0xe2ebac||(_0xe2ebac=this['_itemLabels']['get'](_0x55c283['name'])),_0xe2ebac?_0xe2ebac(_0x178d34):0x1!==_0x178d34?_0x178d34+'\x20'+_0x55c283['name']+'s':''+_0x55c283['name'];}['_addDescriptionItems'](_0x5d1cfb,_0x1ed351){const _0x119f9c=_0x1ed351['getFirstRange']()['getWalker'](),_0x3497c5='insertion'==_0x1ed351['type']?'add':'remove';for(const _0x1f3f3f of _0x119f9c){const _0x547e13=_0x1f3f3f['item'],_0x286fb9=_0x5d1cfb[_0x5d1cfb['length']-0x1];if(_0x547e13['is']('$textProxy'))_0x286fb9&&_0x286fb9['type']['indexOf']('Container')>-0x1&&_0x5d1cfb['pop'](),_0x286fb9&&'text'==_0x286fb9['type']?_0x286fb9[_0x3497c5]+=_0x547e13['data']:_0x5d1cfb['push']({'type':'text','add':'add'==_0x3497c5?_0x547e13['data']:'','remove':'remove'==_0x3497c5?_0x547e13['data']:''});else{if(this['_schema']['isObject'](_0x547e13)){const _0x350060=_0x547e13;if(_0x286fb9&&_0x286fb9['type']['indexOf']('Container')>-0x1&&_0x5d1cfb['pop'](),'elementEnd'==_0x1f3f3f['type'])continue;_0x286fb9&&_0x286fb9['type']==_0x3497c5+'Object'&&_0x286fb9['element']['name']==_0x350060['name']?_0x286fb9['quantity']++:_0x5d1cfb['push']({'type':_0x3497c5+'Object','element':_0x350060,'quantity':0x1}),_0x119f9c['skip'](_0x397d90=>!('elementEnd'==_0x397d90['type']&&_0x397d90['item']==_0x547e13));}else{if(this['_schema']['checkChild'](_0x547e13,'$text')||_0x547e13['is']('element','softBreak')){const _0x1cfa91=_0x547e13;if('add'==_0x3497c5&&'elementStart'==_0x1f3f3f['type']||'remove'==_0x3497c5&&'elementEnd'==_0x1f3f3f['type'])continue;if(_0x286fb9&&-0x1==_0x286fb9['type']['indexOf']('Container')){'text'==_0x286fb9['type']&&(_0x286fb9[_0x3497c5]+='\x0a');continue;}let _0x16672a;if(_0x16672a='add'==_0x3497c5?_0x1cfa91['nextSibling']&&!this['_schema']['isObject'](_0x1cfa91['nextSibling'])?_0x1cfa91['nextSibling']:null:_0x1cfa91['previousSibling']&&!this['_schema']['isObject'](_0x1cfa91['previousSibling'])?_0x1cfa91['previousSibling']:null,_0x1cfa91['isEmpty']||_0x16672a&&_0x16672a['isEmpty']){const _0x14319b=_0x16672a&&_0x16672a['isEmpty']?_0x16672a:_0x1cfa91;_0x286fb9&&_0x286fb9['type']==_0x3497c5+'EmptyContainer'&&_0x286fb9['element']['name']==_0x14319b['name']?_0x286fb9['quantity']++:_0x5d1cfb['push']({'type':_0x3497c5+'EmptyContainer','element':_0x14319b,'quantity':0x1});}else _0x5d1cfb['push']({'type':_0x3497c5+'Container','element':_0x1cfa91});}}}}}['_resolveDescriptionItems'](_0x4126d3){const _0x381f98=this['_locale'],_0x575f87=[],_0x746428=[],_0x408442=[];for(const _0x1b5887 of _0x4126d3)switch(_0x1b5887['type']){case'text':if(_0x1b5887['add']=_0x1b5887['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1b5887['remove']=_0x1b5887['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1b5887['add']&&''!=_0x1b5887['remove']){_0x575f87['push']({'type':'replace','content':o(_0x381f98,'REPLACE_TEXT',['\x22'+_0x1b5887['remove']+'\x22','\x22'+_0x1b5887['add']+'\x22'])});continue;}if(null!=_0x1b5887['add']['match'](/^ +$/)){_0x575f87['push']({'type':'insertion','content':o(_0x381f98,'*Insert:*\x20%0',o(_0x381f98,'ELEMENT_SPACE',_0x1b5887['add']['length']))});continue;}if(null!=_0x1b5887['remove']['match'](/^ +$/)){_0x575f87['push']({'type':'deletion','content':o(_0x381f98,'*Remove:*\x20%0',o(_0x381f98,'ELEMENT_SPACE',_0x1b5887['remove']['length']))});continue;}if(''!=_0x1b5887['add']){_0x575f87['push']({'type':'insertion','content':o(_0x381f98,'*Insert:*\x20%0','\x22'+_0x1b5887['add']+'\x22')});continue;}_0x575f87['push']({'type':'deletion','content':o(_0x381f98,'*Remove:*\x20%0','\x22'+_0x1b5887['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x575f87['push']({'type':'insertion','content':o(_0x381f98,'*Insert:*\x20%0',this['getItemLabel'](_0x1b5887['element'],_0x1b5887['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x575f87['push']({'type':'deletion','content':o(_0x381f98,'*Remove:*\x20%0',this['getItemLabel'](_0x1b5887['element'],_0x1b5887['quantity']))});continue;case'addContainer':_0x575f87['push']({'type':'insertion','content':o(_0x381f98,'*Split:*\x20%0',this['getItemLabel'](_0x1b5887['element'],_0x1b5887['quantity']))});continue;case'removeContainer':_0x575f87['push']({'type':'deletion','content':o(_0x381f98,'*Merge:*\x20%0',this['getItemLabel'](_0x1b5887['element'],_0x1b5887['quantity']))});continue;case'addFormat':_0x746428['push'](_0x1b5887['key']);continue;case'removeFormat':_0x408442['push'](_0x1b5887['key']);continue;default:_0x575f87['push'](_0x1b5887);}if(_0x746428['length']){const _0x5be9b6=_0x746428['map'](_0x12d6e0=>this['_attributeLabels']['has'](_0x12d6e0)?this['_attributeLabels']['get'](_0x12d6e0):_0x12d6e0)['join'](',\x20');_0x575f87['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5be9b6)});}if(_0x408442['length']){const _0x304e91=_0x408442['map'](_0x1cee05=>this['_attributeLabels']['has'](_0x1cee05)?this['_attributeLabels']['get'](_0x1cee05):_0x1cee05)['join'](',\x20');_0x575f87['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x304e91)});}return _0x575f87;}['_handleCustomCallbackDescription'](_0x337f37){for(const _0x20b8d9 of this['_customCallbacks']){const _0x3f8809=_0x20b8d9(_0x337f37);if(_0x3f8809&&'type'in _0x3f8809)return _0x3f8809;}}['_handleAttributeSuggestionDescription'](_0x26cdfa,_0x1181ed){const _0x501222=_0x1181ed['data'],_0x256c47=void 0x0===_0x501222['newValue']?'removeFormat':'addFormat';_0x26cdfa['push']({'type':_0x256c47,'key':_0x501222['key']});}['_handleRenameSuggestionDescription'](_0x2d82c8,_0x412be4){_0x2d82c8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x412be4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x42c509,_0x4f10da,_0x1fd037){if(this['_addDescriptionItems'](_0x42c509,_0x4f10da),_0x1fd037&&_0x1fd037['getFirstRange']()&&!_0x4f10da['getFirstRange']()['end']['isEqual'](_0x1fd037['getFirstRange']()['start'])){const _0x375453=_0x42c509[_0x42c509['length']-0x1],_0x4b12cc='insertion'==_0x4f10da['type']?'add':'remove';_0x375453&&'text'==_0x375453['type']&&(_0x375453[_0x4b12cc]+='\x0a');}}}class U extends _0x3d817a{['afterInit'](){const _0x417b02=this['editor'],_0x212bad=_0x417b02['plugins']['get']('TrackChangesEditing');_0x417b02['commands']['get']('showAIAssistant')&&_0x212bad['enableCommand']('showAIAssistant');}}class V extends _0x3d817a{['afterInit'](){const _0x2dc33d=this['editor'],_0x4c75f8=_0x2dc33d['locale'];if(!_0x2dc33d['plugins']['has']('AlignmentEditing'))return;const _0xac3e4a=_0x2dc33d['plugins']['get']('TrackChangesEditing');_0xac3e4a['enableDefaultAttributesIntegration']('alignment'),_0xac3e4a['registerBlockAttribute']('alignment'),_0xac3e4a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c75f8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a898b=this['editor'],_0x50872d=_0x4a898b['locale'];_0x4a898b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58a052=>{if('formatBlock'!=_0x58a052['type'])return;const {data:_0x239f55}=_0x58a052;if(_0x239f55&&'alignment'==_0x239f55['commandName']){const _0x1dff0e=_0x239f55['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x50872d,'*Format:*\x20%0',function(_0x56dfbc){switch(_0x56dfbc){case'left':return o(_0x50872d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x50872d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x50872d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x50872d,'FORMAT_JUSTIFY_TEXT');}}(_0x1dff0e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3d817a{['afterInit'](){const _0x4eb2e4=this['editor'],_0x250036=_0x4eb2e4['plugins']['get']('TrackChangesEditing'),_0x502c31=_0x4eb2e4['locale'];for(const _0x4a582d of ti){if(!_0x4eb2e4['plugins']['has'](_0x4a582d))continue;const _0x516075=_0x4a582d['slice'](0x0,-0x7)['toLowerCase'](),_0x552c83='FORMAT_'+_0x516075['toUpperCase']();_0x250036['enableDefaultAttributesIntegration'](_0x516075),_0x250036['registerInlineAttribute'](_0x516075),_0x250036['descriptionFactory']['registerAttributeLabel'](_0x516075,o(_0x502c31,_0x552c83));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586668=this['editor'],_0x4873a7=_0x586668['locale'],_0x46e246=_0x586668['plugins']['get']('TrackChangesEditing');function _0x3215f8(_0x4ab6ec,_0x44334f){_0x46e246['descriptionFactory']['registerDescriptionCallback'](_0xac484=>{if('formatInline'!=_0xac484['type'])return;const {data:_0x12130f}=_0xac484;return _0x12130f&&_0x12130f['commandName']===_0x4ab6ec?_0x12130f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4873a7,'*Format:*\x20%0',_0x44334f)}:{'type':'format','content':o(_0x4873a7,'*Remove\x20format:*\x20%0',_0x44334f)}:void 0x0;});}_0x3215f8('bold',o(_0x4873a7,'FORMAT_BOLD')),_0x3215f8('italic',o(_0x4873a7,'FORMAT_ITALIC')),_0x3215f8('underline',o(_0x4873a7,'FORMAT_UNDERLINE')),_0x3215f8('code',o(_0x4873a7,'FORMAT_CODE')),_0x3215f8('strikethrough',o(_0x4873a7,'FORMAT_STRIKETHROUGH')),_0x3215f8('subscript',o(_0x4873a7,'FORMAT_SUBSCRIPT')),_0x3215f8('superscript',o(_0x4873a7,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3d817a{['afterInit'](){const _0x445288=this['editor'],_0x48e16c=_0x445288['locale'];if(!_0x445288['plugins']['has']('BlockQuoteEditing'))return;const _0x1d0f14=_0x445288['plugins']['get']('TrackChangesEditing'),_0x176431=this['editor']['commands']['get']('blockQuote');_0x1d0f14['enableCommand']('blockQuote',(_0x1ba5ca,_0x597bc3={})=>{const _0x154fa=this['editor']['model']['document']['selection'],_0x55ae71=_0x597bc3&&void 0x0!==_0x597bc3['forceValue']?_0x597bc3['forceValue']:!_0x176431['value'];let _0xe944e1=[];if(_0x55ae71){const _0x289e84=Array['from'](_0x154fa['getSelectedBlocks']())['filter'](_0x554900=>oo(_0x554900)||function(_0x36efe2,_0x47c9f2){const _0x52f29f=_0x47c9f2['checkChild'](_0x36efe2['parent'],'blockQuote'),_0x85d0d1=_0x47c9f2['checkChild'](['$root','blockQuote'],_0x36efe2);return _0x52f29f&&_0x85d0d1;}(_0x554900,this['editor']['model']['schema']));_0xe944e1=to(_0x289e84,_0x445288['model']);}else{const _0x29d532=Array['from'](_0x154fa['getSelectedBlocks']())['filter'](_0x240912=>oo(_0x240912));_0xe944e1=to(_0x29d532,_0x445288['model']);}_0x445288['model']['change'](()=>{for(const _0x20b664 of _0xe944e1)_0x1d0f14['markBlockFormat'](_0x20b664,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55ae71}]});});}),_0x1d0f14['descriptionFactory']['registerDescriptionCallback'](_0xdc4cd3=>{const {data:_0x9ca48a}=_0xdc4cd3;if(_0x9ca48a&&'blockQuote'==_0x9ca48a['commandName']){const _0x1b5833=o(_0x48e16c,'ELEMENT_BLOCK_QUOTE');return _0x9ca48a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48e16c,'*Set\x20format:*\x20%0',_0x1b5833)}:{'type':'format','content':o(_0x48e16c,'*Remove\x20format:*\x20%0',_0x1b5833)};}});}}function oo(_0x1b0c35){return'blockQuote'==_0x1b0c35['parent']['name'];}class L extends _0x3d817a{['afterInit'](){const _0x4d0112=this['editor'],_0x2caf43=_0x4d0112['locale'],_0x94a63f=_0x4d0112['plugins']['get']('TrackChangesEditing');_0x4d0112['plugins']['has']('BookmarkEditing')&&(_0x94a63f['enableCommand']('insertBookmark'),_0x94a63f['enableDefaultAttributesIntegration']('updateBookmark'),_0x94a63f['registerBlockAttribute']('bookmarkId'),_0x94a63f['descriptionFactory']['registerDescriptionCallback'](_0x1ef1f4=>{if('insertion'!=_0x1ef1f4['type']&&'deletion'!=_0x1ef1f4['type']&&'attribute'!=_0x1ef1f4['type'])return;const _0x385aae=_0x1ef1f4['getContainedElement']();if(null==_0x385aae)return;if(!_0x385aae['is']('element','bookmark'))return;const _0x464cee=_0x385aae['getAttribute']('bookmarkId');if('insertion'==_0x1ef1f4['type'])return{'type':'insertion','content':o(_0x2caf43,'*Insert:*\x20%0','\x22'+_0x464cee+'\x22\x20'+o(_0x2caf43,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1ef1f4['type'])return{'type':'deletion','content':o(_0x2caf43,'*Remove:*\x20%0','\x22'+_0x464cee+'\x22\x20'+o(_0x2caf43,'ELEMENT_BOOKMARK'))};const {data:_0x5123a6}=_0x1ef1f4;if(!_0x5123a6||'bookmarkId'!=_0x5123a6['key'])return;return{'type':'format','content':o(_0x2caf43,'*Set\x20bookmark:*\x20%0','\x22'+_0x5123a6['newValue']+'\x22')};}));}}class J extends _0x3d817a{['afterInit'](){const _0x4e3b01=this['editor'];_0x4e3b01['plugins']['has']('CaseChange')&&(_0x4e3b01['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e3b01['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e3b01['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3d817a{['afterInit'](){const _0x355c70=this['editor'];_0x355c70['commands']['get']('ckbox')&&_0x355c70['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3d817a{['afterInit'](){const _0x5afd18=this['editor'];if(!_0x5afd18['plugins']['has']('CodeBlock'))return;const _0x169e4a=_0x5afd18['plugins']['get']('TrackChangesEditing'),_0x312705=_0x5afd18['locale'],_0x5bc4ca=_0x5afd18['config']['get']('codeBlock')['languages'],_0x536323=_0x5afd18['commands']['get']('codeBlock');_0x169e4a['enableCommand']('indentCodeBlock'),_0x169e4a['enableCommand']('outdentCodeBlock'),_0x169e4a['enableCommand']('codeBlock',(_0x40ea3c,_0x5bf765={})=>{const _0x10c84c=_0x5afd18['model'],_0x2fb556=_0x5afd18['model']['document']['selection'],_0xd5b673=_0x5bf765&&void 0x0!==_0x5bf765['forceValue']?_0x5bf765['forceValue']:!_0x536323['value'];let _0x158342;_0x5bf765['language']||(_0x5bf765['language']=_0x5bc4ca[0x0]['language']),_0x158342=_0xd5b673?Array['from'](_0x2fb556['getSelectedBlocks']())['filter'](_0x568cfe=>eo(_0x568cfe)||function(_0x2120a3,_0x42e44e){if(_0x2120a3['is']('rootElement')||_0x42e44e['isLimit'](_0x2120a3))return!0x1;return _0x42e44e['checkChild'](_0x2120a3['parent'],'codeBlock');}(_0x568cfe,_0x10c84c['schema'])):Array['from'](_0x2fb556['getSelectedBlocks']())['filter'](_0x3bed58=>eo(_0x3bed58));const _0x483d91=to(_0x158342,_0x10c84c);_0x10c84c['change'](()=>{for(const _0x521ce7 of _0x483d91)_0x169e4a['markBlockFormat'](_0x521ce7,{'commandName':'codeBlock','commandParams':[{..._0x5bf765,'forceValue':_0xd5b673}],'formatGroupId':'blockName'});});}),(_0x169e4a['descriptionFactory']['registerElementLabel']('codeBlock',_0x16c635=>o(_0x312705,'ELEMENT_CODE_BLOCK',_0x16c635)),_0x169e4a['descriptionFactory']['registerDescriptionCallback'](_0x49064c=>{if('formatBlock'!=_0x49064c['type'])return;const _0x51eb65=_0x312705['t'],{data:_0x2e2491}=_0x49064c;if(!_0x2e2491||'codeBlock'!=_0x2e2491['commandName'])return;const _0x5af476=_0x2e2491['commandParams'][0x0]['language'],_0x46848b=_0x51eb65(_0x5bc4ca['find'](_0x2d7647=>_0x2d7647['language']===_0x5af476)['label'])['toLowerCase']();return _0x2e2491['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x312705,'*Set\x20format:*\x20%0',o(_0x312705,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x46848b+')')}:{'type':'format','content':o(_0x312705,'*Remove\x20format:*\x20%0',o(_0x312705,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c8d3b){return'codeBlock'==_0x1c8d3b['name'];}class z extends _0x3d817a{['afterInit'](){const _0xa2bb93=this['editor'];if(!_0xa2bb93['plugins']['has']('CommentsEditing'))return;_0xa2bb93['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1ba3c9,_0x36fe52,_0x2db7e5){const _0x3cecf7=[];for(const _0x49db49 of _0x36fe52['getItems']())_0x49db49['hasAttribute'](_0x1ba3c9)&&_0x3cecf7['push'](_0x2db7e5['createRangeOn'](_0x49db49));return _0x3cecf7;}function De(_0x259eae,_0x2b48e6,{showActiveMarker:_0xc3876d=!0x0}={}){const _0x35c785=_0x259eae['plugins']['get']('TrackChangesEditing');return(_0x447d78,_0x488da8,_0x474014)=>{if(!_0x474014['consumable']['test'](_0x488da8['markerRange'],_0x447d78['name']))return;const _0x5c2997=_0x488da8['markerRange']['getWalker'](),_0x1c3486=_0x488da8['markerRange']['start'],_0x278b52=_0x259eae['model']['schema'];let _0xbb76eb=null,_0x24e88f=null,_0x963d2c=!0x1,_0x250751=!0x1;for(const _0x24632c of _0x5c2997){const _0x3d855a=_0x24632c['item'];_0x963d2c=_0x963d2c||_0x278b52['isContent'](_0x3d855a);const _0x3c0ae9=_0x474014['mapper']['toViewElement'](_0x3d855a);if(_0x3c0ae9&&_0x3c0ae9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24632c['type']&&(_0x278b52['isBlock'](_0x3d855a)&&!_0x278b52['isLimit'](_0x3d855a)&&(_0x3d855a['nextSibling']||_0x1c3486['isAtEnd']?_0xbb76eb&&_0xbb76eb['parent']==_0x3d855a||(_0xbb76eb=_0x3d855a,_0x315866(_0x24632c['previousPosition']),_0x250751=!0x0):_0x24e88f=_0x24e88f||_0x24632c['previousPosition']));}function _0x315866(_0x471d75){const {authorId:_0x9a4374}=_0x35c785['_splitMarkerName'](_0x488da8['markerName']),_0x32204d=_0x474014['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b48e6,'data-author-id':_0x9a4374}),_0x5afa6c=_0x474014['mapper']['toViewPosition'](_0x471d75);_0xc3876d&&_0x35c785['activeMarkers']['includes'](_0x488da8['markerName'])&&_0x474014['writer']['addClass']('ck-suggestion-marker--active',_0x32204d),_0x474014['writer']['insert'](_0x5afa6c,_0x32204d),_0x474014['mapper']['bindElementToMarker'](_0x32204d,_0x488da8['markerName']);}_0x963d2c||_0x250751||!_0x24e88f||_0x315866(_0x24e88f);};}class K extends _0x3d817a{static get['requires'](){return[_0x21f8ab];}['init'](){const _0x1b5f1d=this['editor'],_0xb4ec2e=_0x1b5f1d['plugins']['get']('TrackChangesEditing');_0xb4ec2e['enableCommand']('delete');const _0x46bb08=_0x1b5f1d['commands']['get']('deleteForward');_0xb4ec2e['enableCommand']('deleteForward',(_0x1f7fb5,_0x374c48={})=>{const _0x1a7ec2=_0x1b5f1d['model']['createSelection'](_0x1b5f1d['model']['document']['selection']);_0x1a7ec2['isCollapsed']&&_0x1b5f1d['model']['modifySelection'](_0x1a7ec2,{'direction':'forward','unit':_0x374c48['unit']});const _0x2d91c0=_0x1a7ec2['getFirstRange'](),_0xf7f010=_0x25966c['fromRange'](_0x2d91c0);let _0x3f44e5;_0x1f7fb5(_0x374c48),_0x3f44e5='$graveyard'==_0xf7f010['root']['rootName']?_0x1b5f1d['model']['createRange'](_0x2d91c0['start']):_0x1b5f1d['model']['createRange'](_0xf7f010['start'],_0xf7f010['end']),_0xf7f010['detach'](),_0x1b5f1d['model']['enqueueChange'](_0x46bb08['buffer']['batch'],_0x367b2e=>{_0x46bb08['buffer']['lock'](),_0x367b2e['setSelection'](_0x367b2e['createRange'](_0x3f44e5['end'])),_0x46bb08['buffer']['unlock']();});}),_0x1b5f1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b5f1d,'merge'),{'priority':'high'}),_0x1b5f1d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x53db3f,_0x5ddaca,_0x1ff7a7)=>{_0x1ff7a7['options']['showSuggestionHighlights']&&De(_0x1b5f1d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x53db3f,_0x5ddaca,_0x1ff7a7);},{'priority':'high'}),_0x1b5f1d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4a819d,_0x3e34ae,_0x3ed3c8)=>{const _0x3479d1=_0x3ed3c8['mapper']['markerNameToElements'](_0x3e34ae['markerName']);if(_0x3479d1){for(const _0x6e3cdc of _0x3479d1)_0x6e3cdc['is']('uiElement')&&(_0x3ed3c8['mapper']['unbindElementFromMarkerName'](_0x6e3cdc,_0x3e34ae['markerName']),_0x3ed3c8['writer']['remove'](_0x6e3cdc));}},{'priority':'high'});}}class W extends _0x3d817a{['afterInit'](){const _0xe2fce4=this['editor'];if(!_0xe2fce4['plugins']['has']('ListEditing'))return;const _0x41566b=_0xe2fce4['locale'],_0x158c9e=_0xe2fce4['plugins']['get']('TrackChangesEditing'),_0x1a6eee=_0xe2fce4['plugins']['has']('TodoListEditing'),_0x196655=!!_0xe2fce4['config']['get']('list.multiBlock');function _0x349867(_0x343361){return{'type':'format','content':''+o(_0x41566b,'*Set\x20format:*\x20%0',_0x343361)};}function _0x4e1fac(_0x105e62){return{'type':'format','content':''+o(_0x41566b,'*Remove\x20format:*\x20%0',_0x105e62)};}_0x158c9e['enableDefaultAttributesIntegration']('numberedList'),_0x158c9e['enableDefaultAttributesIntegration']('bulletedList'),_0x158c9e['enableDefaultAttributesIntegration']('customNumberedList'),_0x158c9e['enableDefaultAttributesIntegration']('customBulletedList'),_0x158c9e['enableDefaultAttributesIntegration']('indentList'),_0x158c9e['enableDefaultAttributesIntegration']('outdentList'),_0x158c9e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x158c9e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x158c9e['registerBlockAttribute']('listItemId'),_0x158c9e['registerBlockAttribute']('listType'),_0x158c9e['registerBlockAttribute']('listIndent'),_0x196655&&(_0x158c9e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x158c9e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1a6eee&&(_0x158c9e['enableDefaultAttributesIntegration']('todoList'),_0x158c9e['enableDefaultAttributesIntegration']('checkTodoList'),_0x158c9e['registerBlockAttribute']('todoListChecked'),_0x158c9e['descriptionFactory']['registerDescriptionCallback'](_0x28c2cd=>{const {data:_0x4dcb22}=_0x28c2cd;if(_0x4dcb22&&'todoListChecked'==_0x4dcb22['key'])return{'type':'format','content':_0x4dcb22['newValue']?o(_0x41566b,'*Check\x20item*'):o(_0x41566b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x570695=>{if(_0x570695['batch']['isUndo'])return!0x1;let _0x5d1fc6=!0x1;const _0x46fa9c=_0x158c9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42df5c=>'todoListChecked'===_0x158c9e['_getAttributeKey'](_0x42df5c));for(const _0xd138a4 of _0x46fa9c){'todo'!=_0xd138a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x158c9e['_findSuggestions'](_0xd138a4['getFirstRange'](),'attribute')['find'](_0x5918cf=>'listType'===_0x158c9e['_getAttributeKey'](_0x5918cf['suggestion']))||(_0x570695['removeMarker'](_0xd138a4['getFirstMarker']()),_0x5d1fc6=!0x0));}return _0x5d1fc6;})),_0x158c9e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x41566b,'FORMAT_INDENT'));const _0x1b41d7={'type':'format','content':''};_0x158c9e['descriptionFactory']['registerDescriptionCallback'](_0x5aee5f=>{const {data:_0x21eadd}=_0x5aee5f;if(!_0x21eadd||'listType'!=_0x21eadd['key'])return;let _0x2696cd=_0x5aee5f['head'];for(;_0x2696cd;){if(_0x2696cd['data']&&(('listStyle'==_0x2696cd['data']['key']||'listMarkerStyle'==_0x2696cd['data']['key'])&&(_0x2696cd['data']['newValue']&&'default'!=_0x2696cd['data']['newValue']||'default'!=_0x2696cd['data']['oldValue']&&!_0x21eadd['newValue'])||!_0x196655&&_0x2696cd['data']['key']==m))return _0x1b41d7;_0x2696cd=_0x2696cd['next'];}if(null==_0x21eadd['newValue'])switch(_0x21eadd['oldValue']){case'bulleted':return _0x4e1fac(o(_0x41566b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e1fac(o(_0x41566b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e1fac(o(_0x41566b,'ELEMENT_TODO_LIST'));}switch(_0x21eadd['newValue']){case'bulleted':return _0x349867(o(_0x41566b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x349867(o(_0x41566b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x349867(o(_0x41566b,'ELEMENT_TODO_LIST'));}}),_0x158c9e['descriptionFactory']['registerDescriptionCallback'](_0x16d7bb=>{const {data:_0xce1a8e}=_0x16d7bb;if(_0xce1a8e&&'listIndent'==_0xce1a8e['key'])return null==_0xce1a8e['newValue']||null==_0xce1a8e['oldValue']&&0x0==_0xce1a8e['newValue']?_0x1b41d7:void 0x0;}),_0x158c9e['descriptionFactory']['registerDescriptionCallback'](_0x3682ed=>{if('attribute'!=_0x3682ed['type'])return;const {data:_0x8eda12}=_0x3682ed;if(!_0x8eda12||'listItemId'!=_0x8eda12['key'])return;const _0x21cf0b=Te(_0x3682ed);return'newValue'==_0x21cf0b?{'type':'format','content':o(_0x41566b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x21cf0b?{'type':'format','content':o(_0x41566b,'*Split:*\x20list\x20item')}:_0x1b41d7;}),_0xe2fce4['model']['document']['registerPostFixer'](_0x52105d=>this['listItemIdFixer'](_0x52105d)),_0xe2fce4['model']['document']['registerPostFixer'](_0x1c146f=>this['noTrackChangesFixer'](_0x1c146f)),_0xe2fce4['model']['document']['on']('change:data',(_0xd9fdb2,_0x11becb)=>{if(_0x11becb['isUndo']||!_0x11becb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1ce05f){if(_0x1ce05f['batch']['isUndo']||!_0x1ce05f['batch']['isLocal'])return!0x1;let _0x87a4e4=!0x1;const _0x383dd3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x300a5=>_0x300a5['data']&&'listItemId'==_0x300a5['data']['key'])['filter'](_0x31afd3=>_0x31afd3['data']['newValue']&&_0x31afd3['data']['oldValue']);for(const _0x427bec of _0x383dd3)Te(_0x427bec)||(_0x1ce05f['removeMarker'](_0x427bec['getFirstMarker']()),_0x87a4e4=!0x0);return _0x87a4e4;}['noTrackChangesFixer'](_0x921007){if(_0x921007['batch']['isUndo']||!_0x921007['batch']['isLocal'])return!0x1;const _0x188302=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x188302['trackChangesCommand']['value'])return!0x1;let _0x4e458f=!0x1;const _0x3cfe33=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x43da2d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x20fcfa=>'attribute'==_0x20fcfa['type'])['filter'](_0x3ca6b4=>_0x3cfe33['includes'](_0x3ca6b4['attributeKey']));if(0x0==_0x43da2d['length'])return _0x4e458f;for(const _0x302c70 of _0x43da2d){const _0x26e29e=_0x188302['_findSuggestions'](_0x302c70['range'],'attribute')['filter'](_0x151c3d=>!_0x151c3d['meta']['isNextTo'])['map'](_0x5e667e=>_0x5e667e['suggestion'])['filter'](_0x4a3c6b=>{const _0x1f042a=_0x188302['_getAttributeKey'](_0x4a3c6b);return _0x3cfe33['includes'](_0x1f042a);});if(_0x26e29e['length']){for(const _0x199ca6 of _0x26e29e)_0x921007['removeMarker'](_0x199ca6['getFirstMarker']());_0x4e458f=!0x0;}}return _0x4e458f;}['assureChains'](){const _0x1daf83=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd4b519=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2f966e;const _0x4dc396=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x259ac4=>{if(_0x259ac4['data']['oldRange']||!_0x259ac4['data']['newRange'])return null;if(!_0x259ac4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4cbebd}=_0x1daf83['_splitMarkerName'](_0x259ac4['name']);if(!_0x1daf83['hasSuggestion'](_0x4cbebd))return null;const _0x460894=_0x1daf83['getSuggestion'](_0x4cbebd);return _0xd4b519['includes'](_0x460894['data']['key']);})['map'](_0x141f07=>{const {id:_0x21f8d6}=_0x1daf83['_splitMarkerName'](_0x141f07['name']),_0x166a8f=_0x1daf83['getSuggestion'](_0x21f8d6);return _0x2f966e=_0x166a8f['attributes']['groupId'],_0x166a8f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4dc396['size'])return;const _0x44e87d=_0x1daf83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x577d97=>'attribute'==_0x577d97['type']&&_0x577d97['data']&&_0xd4b519['includes'](_0x577d97['data']['key'])&&_0x577d97['attributes']['groupId']!=_0x2f966e)['map'](_0x4eaa78=>({'listItem':_0x4eaa78['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4eaa78['attributes']['groupId']})),_0x113939=new Set();for(const {groupId:_0x20ce8f,listItem:_0xff323}of _0x44e87d)_0x4dc396['has'](_0xff323)&&_0x113939['add'](_0x20ce8f);for(const _0x247372 of _0x1daf83['getSuggestions']())_0x113939['has'](_0x247372['attributes']['groupId'])&&_0x247372['setAttribute']('groupId',_0x2f966e);}['_supportLegacySuggestions'](){const _0x5690e5=this['editor'],_0x384260=_0x5690e5['locale'],_0x378dc6=_0x5690e5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x378dc6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5eea9b,_0x102308){const _0x5d6e04=[];for(let _0x3f7aca of _0x5eea9b)_0x3f7aca['start']['nodeAfter']===_0x3f7aca['end']['parent']&&(_0x3f7aca=_0x5690e5['model']['createRange'](_0x5690e5['model']['createPositionAt'](_0x3f7aca['start']['nodeAfter'],0x0))),_0x5d6e04['push'](_0x3f7aca);_0x5690e5['model']['change'](_0x5e0c96=>{const _0x49e5c3=_0x5690e5['model']['document']['selection'],_0x57886f=Array['from'](_0x49e5c3['getRanges']())['map'](_0x473f1b=>_0x25966c['fromRange'](_0x473f1b));_0x5e0c96['setSelection'](_0x5d6e04),_0x5690e5['commands']['get'](_0x102308['commandName'])['refresh'](),_0x102308['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5690e5['execute'](_0x102308['commandName'],..._0x102308['commandParams']),_0x5e0c96['setSelection'](_0x57886f);for(const _0x2d860f of _0x57886f)_0x2d860f['detach']();});}),_0x378dc6['descriptionFactory']['registerElementLabel'](function(_0x303662){const _0xca6f14=!_0x5690e5['model']['schema']['isObject'](_0x303662),_0x403d14=_0x303662['previousSibling'],_0x2e3e72=_0x303662['nextSibling'],_0x1849c3=_0x303662['getAttribute']('listItemId'),_0x395726=!_0x403d14||_0x403d14['getAttribute']('listItemId')!==_0x1849c3,_0x511bb7=!_0x2e3e72||_0x2e3e72['getAttribute']('listItemId')!==_0x1849c3;return _0xca6f14&&Boolean(_0x1849c3)&&_0x395726&&_0x511bb7;},_0x4f0cf7=>o(_0x384260,'ELEMENT_LIST_ITEM',_0x4f0cf7));}['_registerLegacyDescription'](){const _0x360ace=this['editor'],_0x5d3bd2=_0x360ace['locale'];function _0x273cca(_0x42ad6a){const _0x3bd8fb=_0x360ace['commands']['get']('bulletedList')['value'],_0x52839a=_0x360ace['commands']['get']('numberedList')['value'];return'numberedList'===_0x42ad6a?_0x3bd8fb:_0x52839a;}_0x360ace['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x462754){if('formatBlock'!=_0x462754['type'])return;const {data:_0x21c07f}=_0x462754;if(!_0x21c07f)return;let _0x3a0c8e,_0x1f7c59,_0x414e14,_0x2d55f9;switch(_0x21c07f['commandName']){case'bulletedList':_0x414e14=_0x21c07f['commandParams'][0x0]['forceValue'],_0x2d55f9=_0x273cca(_0x21c07f['commandName']),_0x3a0c8e=_0x414e14?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d55f9&&_0x360ace['config']['get']('list.multiBlock')||(_0x3a0c8e='*Change\x20to:*\x20%0'),_0x1f7c59={'type':'format','content':o(_0x5d3bd2,_0x3a0c8e,o(_0x5d3bd2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x414e14=_0x21c07f['commandParams'][0x0]['forceValue'],_0x2d55f9=_0x273cca(_0x21c07f['commandName']),_0x3a0c8e=_0x414e14?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d55f9&&_0x360ace['config']['get']('list.multiBlock')||(_0x3a0c8e='*Change\x20to:*\x20%0'),_0x1f7c59={'type':'format','content':o(_0x5d3bd2,_0x3a0c8e,o(_0x5d3bd2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3a0c8e='*Indent:*\x20%0',_0x1f7c59={'type':'format','content':o(_0x5d3bd2,_0x3a0c8e,o(_0x5d3bd2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3a0c8e=function(_0xc9d5be){const _0x593024=_0xc9d5be['getFirstRange']();let _0x84c57=_0x593024['start']['nodeAfter'];for(;_0x84c57&&_0x593024['containsItem'](_0x84c57);){if(_0x84c57['getAttribute']('listIndent')>0x0)return!0x1;_0x84c57=_0x84c57['nextSibling'];}return!0x0;}(_0x462754)?o(_0x5d3bd2,'*Format:*\x20remove\x20from\x20%0',o(_0x5d3bd2,function(_0x49ea35){return'ELEMENT_'+_0x49ea35['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x462754))):o(_0x5d3bd2,'*Outdent:*\x20%0',o(_0x5d3bd2,'ELEMENT_LIST_ITEM')),_0x1f7c59={'type':'format','content':_0x3a0c8e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x21c07f['multipleBlocks']&&(_0x3a0c8e='*Merge:*\x20%0',_0x1f7c59={'type':'deletion','content':o(_0x5d3bd2,_0x3a0c8e,o(_0x5d3bd2,'ELEMENT_LIST_ITEM'))});}return _0x1f7c59;});}}function Te(_0x39ee67){let _0xc90ba7=_0x39ee67['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc90ba7;){const _0x14a1fe=_0xc90ba7['getAttribute']('listItemId');if(!_0x14a1fe)return!0x1;if(_0x14a1fe==_0x39ee67['data']['newValue'])return'newValue';if(_0x14a1fe==_0x39ee67['data']['oldValue'])return'oldValue';_0xc90ba7=_0xc90ba7['previousSibling'];}return!0x1;}class Se extends _0x3d817a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3e5643=this['editor']['config']['get']('list.properties'),_0x3eb169=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e5643['styles']&&(_0x3eb169['enableDefaultAttributesIntegration']('listStyle'),_0x3eb169['registerBlockAttribute']('listStyle')),_0x3e5643['reversed']&&(_0x3eb169['enableDefaultAttributesIntegration']('listReversed'),_0x3eb169['registerBlockAttribute']('listReversed')),_0x3e5643['startIndex']&&(_0x3eb169['enableDefaultAttributesIntegration']('listStart'),_0x3eb169['registerBlockAttribute']('listStart'));const _0x39b442={'type':'format','content':''};_0x3eb169['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x36855d=this['editor']['locale'];_0x3eb169['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x36855d,'FORMAT_LIST_REVERSED')),_0x3eb169['descriptionFactory']['registerDescriptionCallback'](_0x4be596=>{const {data:_0x3e312c}=_0x4be596;if(_0x3e312c&&'listReversed'==_0x3e312c['key'])return null==_0x3e312c['newValue']||0x0==_0x3e312c['newValue']&&null==_0x3e312c['oldValue']?_0x39b442:void 0x0;}),_0x3eb169['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x36855d,'FORMAT_LIST_START')),_0x3eb169['descriptionFactory']['registerDescriptionCallback'](_0xeeff82=>{const {data:_0x208a10}=_0xeeff82;if(_0x208a10&&'listStart'==_0x208a10['key'])return null==_0x208a10['newValue']||0x1==_0x208a10['newValue']&&null==_0x208a10['oldValue']?_0x39b442:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3ae725=>{if(_0x3ae725['batch']['isUndo'])return!0x1;let _0x256e59=!0x1;const _0x57d1cd=_0x3eb169['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf62b27=>{const _0x2c5841=_0x3eb169['_getAttributeKey'](_0xf62b27);return'listStart'==_0x2c5841||'listReversed'==_0x2c5841;});for(const _0x2e4d9c of _0x57d1cd){const _0x570ab1=_0x2e4d9c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x570ab1||'customNumbered'==_0x570ab1)continue;_0x3eb169['_findSuggestions'](_0x2e4d9c['getFirstRange'](),'attribute')['find'](_0x2bb056=>'listType'==_0x3eb169['_getAttributeKey'](_0x2bb056['suggestion']))||(_0x3ae725['removeMarker'](_0x2e4d9c['getFirstMarker']()),_0x256e59=!0x0);}return _0x256e59;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13bc3c){const _0x401311=this['editor']['locale'],{data:_0x34f1b9}=_0x13bc3c,_0x5bf1c6={'type':'format','content':''};if(!_0x34f1b9||'listStyle'!=_0x34f1b9['key'])return;if(!_0x34f1b9['oldValue'])return'default'==_0x34f1b9['newValue']?_0x5bf1c6:{'type':'format','content':''+o(_0x401311,'*Set\x20format:*\x20%0',o(_0x401311,this['_getTranslationKeyForListStyle'](_0x34f1b9['newValue'])))};if(!_0x34f1b9['newValue']){if('default'==_0x34f1b9['oldValue'])return _0x5bf1c6;let _0x3738ec=_0x13bc3c['head'];for(;_0x3738ec;){if(_0x3738ec['data']&&'listType'==_0x3738ec['data']['key']&&_0x3738ec['data']['newValue'])return _0x5bf1c6;_0x3738ec=_0x3738ec['next'];}return{'type':'format','content':''+o(_0x401311,'*Remove\x20format:*\x20%0',o(_0x401311,this['_getTranslationKeyForListStyle'](_0x34f1b9['oldValue'])))};}if('default'!=_0x34f1b9['newValue'])return{'type':'format','content':''+o(_0x401311,'*Set\x20format:*\x20%0',o(_0x401311,this['_getTranslationKeyForListStyle'](_0x34f1b9['newValue'])))};let _0x548501=_0x13bc3c['head'];for(;_0x548501;){if(_0x548501['data']&&'listType'==_0x548501['data']['key']&&_0x548501['data']['newValue']&&_0x548501['data']['oldValue'])return _0x5bf1c6;_0x548501=_0x548501['next'];}return{'type':'format','content':o(_0x401311,'*Set\x20format:*\x20%0',o(_0x401311,'ELEMENT_'+_0x13bc3c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x29f494=this['editor'],_0x45c127=_0x29f494['locale'];_0x29f494['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8f21=>{if('formatBlock'!=_0x3b8f21['type'])return;const {data:_0x539b91}=_0x3b8f21;if(!_0x539b91)return;let _0x595cab,_0x221d5f;switch(_0x539b91['commandName']){case'listStyle':_0x595cab='*Change\x20to:*\x20%0',_0x221d5f={'type':'format','content':o(_0x45c127,_0x595cab,o(_0x45c127,this['_getTranslationKeyForListStyle'](_0x539b91['commandParams'][0x0]['type'])))};break;case'listReversed':_0x595cab=_0x539b91['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x221d5f={'type':'format','content':o(_0x45c127,_0x595cab)};break;case'listStart':_0x595cab='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x221d5f={'type':'format','content':o(_0x45c127,_0x595cab,_0x539b91['commandParams'][0x0]['startIndex'])};}return _0x221d5f;});}['_getTranslationKeyForListStyle'](_0x2ba282){return'ELEMENT_'+function(_0x243aa5){if(_e['includes'](_0x243aa5))return'bulleted';if(Re['includes'](_0x243aa5))return'numbered';return null;}(_0x2ba282)['toUpperCase']()+'_LIST_'+_0x2ba282['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3d817a{['afterInit'](){const _0x2bb3bc=this['editor'];_0x2bb3bc['commands']['get']('emoji')&&_0x2bb3bc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3d817a{static get['requires'](){return[_0x48d2f9];}['init'](){const _0x1e9e66=this['editor'],_0x37b091=_0x1e9e66['plugins']['get']('TrackChangesEditing'),_0xe31477=_0x1e9e66['commands']['get']('enter');_0x37b091['enableCommand']('enter',()=>{_0x1e9e66['model']['change'](_0xb461e=>{const _0x4eb263=_0x1e9e66['model']['document']['selection'],_0x5ec80b=_0x4eb263['getFirstPosition'](),_0x25f09e=_0x25966c['fromRange'](_0x4eb263['getFirstRange']());if(_0xe31477['enterBlock'](_0xb461e)){const _0x441ced=_0x1e9e66['model']['createPositionAt'](_0x5ec80b['parent']['nextSibling'],0x0),_0x3631c8=_0xb461e['createRange'](_0x5ec80b,_0x441ced);_0x37b091['markInsertion'](_0x3631c8);}else _0xb461e['setSelection'](_0xb461e['createRange'](_0x25f09e['end']));_0x25f09e['detach'](),_0xe31477['fire']('afterExecute',{'writer':_0xb461e});});}),_0x1e9e66['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1e9e66,'split'),{'priority':'high'}),_0x1e9e66['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xc00187,_0x5effdf,_0x37c78a)=>{const _0x3816a8=_0x37c78a['mapper']['markerNameToElements'](_0x5effdf['markerName']);if(_0x3816a8){for(const _0x4ec9bc of _0x3816a8)_0x4ec9bc['hasClass']('ck-suggestion-marker-split')&&(_0x37c78a['mapper']['unbindElementFromMarkerName'](_0x4ec9bc,_0x5effdf['markerName']),_0x37c78a['writer']['remove'](_0x4ec9bc));}},{'priority':'high'}),_0x1e9e66['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38686f,_0x4dd4dc,_0xccb086)=>{_0xccb086['options']['showSuggestionHighlights']&&De(_0x1e9e66,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x38686f,_0x4dd4dc,_0xccb086);},{'priority':'high'});}}class Z extends _0x3d817a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x151805=this['editor']['plugins']['get']('TrackChangesEditing');_0x151805['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x151805['enableCommand']('findNext'),_0x151805['enableCommand']('findPrevious'),_0x151805['enableCommand']('replace'),_0x151805['enableCommand']('replaceAll');}['handleFindCommand'](_0xdd9cf7,_0x162c2e,_0x24bbbd={}){const _0x226fe2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xdd9cf7(_0x5059ea=>{let _0x261ff6=('string'==typeof _0x162c2e?_0x226fe2['findByTextCallback'](_0x162c2e,_0x24bbbd):_0x162c2e)(_0x5059ea);Array['isArray'](_0x261ff6)&&(_0x261ff6={'results':_0x261ff6,'searchText':'string'==typeof _0x162c2e?_0x162c2e:''});const _0x7c0133=_0x261ff6['results']['filter'](_0x56f2a4=>!0x1===this['_isInDeletionRange'](_0x56f2a4,_0x5059ea['item']));return{..._0x261ff6,'results':_0x7c0133};},_0x24bbbd);}['_isInDeletionRange'](_0x27fce3,_0x5b438b){const _0x4446e5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b438b,_0x27fce3['start']),this['editor']['model']['createPositionAt'](_0x5b438b,_0x27fce3['end']));for(const _0x76e101 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4446e5['getIntersection'](_0x76e101['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3d817a{['afterInit'](){const _0x4e7b11=this['editor']['locale'],_0x2809c7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x23b3cf,commandName:_0x2973d7}of ro)this['editor']['plugins']['has'](_0x23b3cf)&&(_0x2809c7['enableDefaultAttributesIntegration'](_0x2973d7),_0x2809c7['registerInlineAttribute'](_0x2973d7));_0x2809c7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e7b11,'FORMAT_FONT_SIZE')),_0x2809c7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e7b11,'FORMAT_FONT_FAMILY')),_0x2809c7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e7b11,'FORMAT_FONT_COLOR')),_0x2809c7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e7b11,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5db5a9=this['editor'],_0x4e5e9a=_0x5db5a9['locale'];_0x5db5a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a232e=>{const _0xa20ad4=_0x4e5e9a['t'];if('formatInline'!=_0x3a232e['type'])return;const {data:_0x40ae93}=_0x3a232e;if(null!=_0x40ae93){if('fontSize'==_0x40ae93['commandName']){const _0x36a12e=_0x40ae93['commandParams'][0x0]['value'];if(_0x36a12e){const _0x1719a9=_0xa20ad4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x15fc62=>_0x15fc62['model']==_0x36a12e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4e5e9a,'*Set\x20font\x20size:*\x20%0',_0x1719a9)};}return{'type':'format','content':o(_0x4e5e9a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x40ae93['commandName']){const _0x1206e9=_0x40ae93['commandParams'][0x0]['value'];return _0x1206e9?{'type':'format','content':o(_0x4e5e9a,'*Set\x20font\x20family:*\x20%0',_0x1206e9)}:{'type':'format','content':o(_0x4e5e9a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x40ae93['commandName']){const _0x32d9da=_0x40ae93['commandParams'][0x0]['value'];if(_0x32d9da){const _0x3b9901=_0x60ef7a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x429ff0=>_0x429ff0['model']==_0x32d9da);let _0x3bbc90=_0x32d9da,_0x403838='';return _0x3b9901&&(_0x3bbc90=_0x3b9901['label'],_0x403838=_0xa20ad4(_0x3bbc90)['toLowerCase']()),{'type':'format','content':o(_0x4e5e9a,'*Set\x20font\x20color:*\x20%0',_0x403838)['trim'](),'color':{'value':_0x32d9da,'title':_0x403838||_0x3bbc90}};}return{'type':'format','content':o(_0x4e5e9a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x40ae93['commandName']){const _0x2b464b=_0x40ae93['commandParams'][0x0]['value'];if(_0x2b464b){const _0x4ebc10=_0x60ef7a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x20023c=>_0x20023c['model']==_0x2b464b);let _0x2ffab4=_0x2b464b,_0x33700d='';return _0x4ebc10&&(_0x2ffab4=_0x4ebc10['label'],_0x33700d=_0xa20ad4(_0x2ffab4)['toLowerCase']()),{'type':'format','content':o(_0x4e5e9a,'*Set\x20font\x20background\x20color:*\x20%0',_0x33700d)['trim'](),'color':{'value':_0x2b464b,'title':_0x33700d||_0x2ffab4}};}return{'type':'format','content':o(_0x4e5e9a,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x3d817a{['afterInit'](){const _0x513050=this['editor'],_0x2ceefe=_0x513050['plugins']['get']('TrackChangesEditing'),_0x34e9cc=_0x513050['commands']['get']('copyFormat'),_0x5ee47f=_0x513050['commands']['get']('pasteFormat');_0x34e9cc&&_0x5ee47f&&(_0x2ceefe['enableDefaultAttributesIntegration']('pasteFormat'),_0x2ceefe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f5b60=this['editor'],_0x273930=_0x4f5b60['locale'];_0x4f5b60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56d1a4=>{if('formatBlock'!=_0x56d1a4['type']&&'formatInline'!=_0x56d1a4['type'])return;const {data:_0x25a511}=_0x56d1a4;if(_0x25a511&&'pasteFormat'===_0x25a511['commandName']){const _0x1f67cb=[],_0x376a10=_0x25a511['commandParams'][0x0];for(const [_0x51a059,_0x15e35c]of Object['entries'](_0x376a10))_0x1f67cb['push'](so(_0x4f5b60,_0x51a059,_0x15e35c));return _0x1f67cb['length']?{'type':'format','content':o(_0x273930,'*Set\x20format\x20to:*\x20%0',_0x1f67cb['join'](',\x20'))}:{'type':'format','content':o(_0x273930,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2786b8,_0x216ba3,_0x23852b){const _0x156fed=_0x2786b8['locale']['t'],_0x7dd7e4=_0x216ba3['split'](/(?=[A-Z])/)['join']('\x20'),_0x436cbd=_0x156fed(_0x7dd7e4['charAt'](0x0)['toUpperCase']()+_0x7dd7e4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x23852b)return _0x436cbd;if('fontColor'===_0x216ba3||'fontBackgroundColor'===_0x216ba3){const _0xad9591=_0x60ef7a(_0x2786b8['config']['get']('fontColor.colors'))['find'](_0x467fa5=>_0x467fa5['model']==_0x23852b);return _0x436cbd+'\x20('+(_0xad9591?_0x156fed(_0xad9591['label'])['toLowerCase']():_0x23852b)+')';}if('fontSize'===_0x216ba3&&isNaN(parseFloat(_0x23852b))){const _0x3d6698=_0x2786b8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2786b8['config']['get']('fontSize.options'))['find'](_0xeb554c=>_0xeb554c['model']==_0x23852b);return _0x436cbd+'\x20('+(_0x3d6698?_0x156fed(_0x3d6698['title'])['toLowerCase']():_0x23852b)+')';}return _0x436cbd+'\x20('+_0x23852b+')';}class it extends _0x3d817a{['_headingOptions'];['afterInit'](){const _0x483764=this['editor'];if(!_0x483764['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x483764['config']['get']('heading.options');const _0x46da1b=_0x483764['locale'],_0x2e4b16=_0x483764['plugins']['get']('TrackChangesEditing');_0x2e4b16['enableDefaultAttributesIntegration']('heading');for(const _0x7971bf of this['_headingOptions'])'paragraph'!=_0x7971bf['model']&&_0x2e4b16['descriptionFactory']['registerElementLabel'](_0x7971bf['model'],_0x12a4b7=>{const _0x1a1810=this['_getHeadingLevel'](_0x7971bf['model']);return null!==_0x1a1810?_0x35e8f1(_0x12a4b7,_0x1a1810):_0x3493a9(_0x12a4b7,_0x7971bf['title']);});function _0x35e8f1(_0x44224c,_0x134f41){return o(_0x46da1b,'ELEMENT_HEADING',[_0x44224c,_0x134f41]);}function _0x3493a9(_0x108b37,_0x5d8b5c){return o(_0x46da1b,'ELEMENT_HEADING_CUSTOM',[_0x108b37,_0x5d8b5c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50af98=this['editor'],_0x7cba18=_0x50af98['locale'];function _0x1062f6(_0x30b658,_0x45acfc){return o(_0x7cba18,'ELEMENT_HEADING_CUSTOM',[_0x30b658,_0x45acfc]);}_0x50af98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24893e=>{if('formatBlock'!=_0x24893e['type'])return;const {data:_0x1153f1}=_0x24893e;if(_0x1153f1&&'heading'==_0x1153f1['commandName']){const _0x564b52=_0x1153f1['commandParams'][0x0]['value'],_0x19dad3=this['_getHeadingLevel'](_0x564b52);if(null!==_0x19dad3)return{'type':'format','content':o(_0x7cba18,'*Change\x20to:*\x20%0',(_0x204e86=0x1,_0x461e74=_0x19dad3,o(_0x7cba18,'ELEMENT_HEADING',[_0x204e86,_0x461e74])))};const _0x31a0bb=this['_headingOptions']['find'](_0x13e904=>_0x13e904['model']===_0x564b52)['title'];return{'type':'format','content':o(_0x7cba18,'*Change\x20to:*\x20%0',_0x1062f6(0x1,_0x31a0bb))};}var _0x204e86,_0x461e74;});}['_getHeadingLevel'](_0x3c59c1){const _0x356c48=_0x3c59c1['match'](/^heading(\d+)/);if(_0x356c48)return _0x356c48[0x1];const _0x3d2fec=this['_headingOptions']?.['find'](_0x4876c8=>_0x4876c8['model']==_0x3c59c1);if(_0x3d2fec&&_0x3d2fec['view']){const _0x30dbff=_0x3d2fec['view'],_0x3a01cc=(_0x30dbff['name']??_0x30dbff)['match'](/^h(\d+)/);if(_0x3a01cc)return _0x3a01cc[0x1];}return null;}}class et extends _0x3d817a{['afterInit'](){const _0x400360=this['editor'];if(!_0x400360['plugins']['has']('HighlightEditing'))return;const _0x1ce66b=_0x400360['plugins']['get']('TrackChangesEditing'),_0x31ab6f=_0x400360['locale'];_0x1ce66b['enableDefaultAttributesIntegration']('highlight'),_0x1ce66b['registerInlineAttribute']('highlight'),_0x1ce66b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x31ab6f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x475fd0=this['editor'],_0x123d6f=_0x475fd0['locale'];_0x475fd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300a00=>{if('formatInline'!=_0x300a00['type'])return;const {data:_0x430fc9}=_0x300a00;if(_0x430fc9&&'highlight'==_0x430fc9['commandName']){const _0x17ce2b=_0x123d6f['t'],_0x502d8f=_0x430fc9['commandParams'][0x0]['value'];if(_0x502d8f){const _0x445233=_0x475fd0['config']['get']('highlight.options')['find'](_0x4eae5e=>_0x4eae5e['model']==_0x502d8f),_0xea1ee9=_0x17ce2b(_0x445233['title'])['toLowerCase']();return{'type':'format','content':o(_0x123d6f,'*Set\x20highlight:*\x20%0',_0xea1ee9),'color':{'value':_0x445233['color'],'title':_0x445233['title']}};}return{'type':'format','content':o(_0x123d6f,'*Remove\x20highlight*',o(_0x123d6f,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3d817a{['afterInit'](){const _0x4c052c=this['editor'];if(!_0x4c052c['plugins']['has']('HorizontalLineEditing'))return;_0x4c052c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x58e3df=_0x4c052c['plugins']['get']('TrackChangesEditing'),_0x147ef0=_0x4c052c['locale'];_0x58e3df['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2e3301=>o(_0x147ef0,'ELEMENT_HORIZONTAL_LINE',_0x2e3301)),_0x4c052c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1a47ba,{writer:_0x4baba7,options:_0x6e0ca3})=>{if(!_0x6e0ca3['showSuggestionHighlights'])return null;const _0xc1e5fa=_0x4baba7['createContainerElement']('div'),_0x5c2f86=_0x4baba7['createEmptyElement']('hr');return _0x4baba7['addClass']('ck-horizontal-line',_0xc1e5fa),_0x4baba7['insert'](_0x4baba7['createPositionAt'](_0xc1e5fa,0x0),_0x5c2f86),_0xc1e5fa;},'converterPriority':'high'});}}class ot extends _0x3d817a{['afterInit'](){const _0x4e02ca=this['editor'];if(!_0x4e02ca['plugins']['has']('HtmlEmbed'))return;const _0x22c8f4=_0x4e02ca['plugins']['get']('TrackChangesEditing'),_0x25e33a=_0x4e02ca['locale'];_0x22c8f4['descriptionFactory']['registerElementLabel']('rawHtml',_0xd7d345=>o(_0x25e33a,'ELEMENT_HTML_EMBED',_0xd7d345)),_0x22c8f4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x22c8f4['registerBlockAttribute']('value'),_0x22c8f4['descriptionFactory']['registerDescriptionCallback'](_0x443485=>{if('attribute'!=_0x443485['type'])return;const {data:_0x5c381f}=_0x443485;if(_0x5c381f&&'value'==_0x5c381f['key']&&_0x443485['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d4b79=o(_0x25e33a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25e33a,'*Change\x20%0\x20content*',_0x3d4b79)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1624b7=this['editor'],_0x38fb77=_0x1624b7['locale'];_0x1624b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b373=>{if('formatBlock'!=_0x47b373['type'])return;const {data:_0x436407}=_0x47b373;if(_0x436407&&'htmlEmbed'==_0x436407['commandName']){const _0x43fa84=o(_0x38fb77,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x38fb77,'*Change\x20%0\x20content*',_0x43fa84)};}});}}class rt extends _0x3d817a{['afterInit'](){const _0xea1d22=this['editor'];if(!_0xea1d22['plugins']['has']('ImageEditing'))return;const _0x11feb0=_0xea1d22['plugins']['get']('TrackChangesEditing'),_0x2fb941=_0xea1d22['plugins']['get']('ImageUtils'),_0x320582=_0xea1d22['locale'];_0x11feb0['enableCommand']('insertImage'),_0x11feb0['descriptionFactory']['registerElementLabel']('imageBlock',_0x9903e8=>o(_0x320582,'ELEMENT_IMAGE',_0x9903e8)),_0x11feb0['descriptionFactory']['registerElementLabel']('imageInline',_0xdedd02=>o(_0x320582,'ELEMENT_INLINE_IMAGE',_0xdedd02)),_0x11feb0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x320582,'ELEMENT_CAPTION')),_0xea1d22['plugins']['has']('ImageUploadEditing')&&_0x11feb0['enableCommand']('uploadImage'),_0xea1d22['plugins']['has']('ImageBlockEditing')&&_0xea1d22['plugins']['has']('ImageInlineEditing')&&(_0x11feb0['enableCommand']('imageTypeInline',(_0x551410,_0x3660b6)=>{const _0x2024bf=_0x2fb941['getClosestSelectedImageElement'](_0xea1d22['model']['document']['selection']);_0xea1d22['model']['change'](()=>{_0x11feb0['markBlockFormat'](_0x2024bf,{'commandName':'imageTypeInline','commandParams':[_0x3660b6]},[],'convertBlockImageToInline');});}),_0x11feb0['enableCommand']('imageTypeBlock',(_0x34fee6,_0xc9dba6)=>{_0xea1d22['model']['change'](_0x46ca14=>{let _0x2ad6f5=_0x2fb941['getClosestSelectedImageElement'](_0xea1d22['model']['document']['selection']),_0x3ec0c3=_0x46ca14['createRangeOn'](_0x2ad6f5);const _0x4470d9=_0x387827['fromPosition'](_0x3ec0c3['start'],'toPrevious'),_0x1a9d1a=_0x387827['fromPosition'](_0x3ec0c3['end'],'toNext');_0x11feb0['forceDefaultExecution'](()=>_0x34fee6(_0xc9dba6)),_0x2ad6f5=_0x2fb941['getClosestSelectedImageElement'](_0xea1d22['model']['document']['selection']),_0x3ec0c3=_0x46ca14['createRangeOn'](_0x2ad6f5);const _0x7a7b23=_0x46ca14['createRange'](_0x4470d9,_0x1a9d1a);_0x4470d9['detach'](),_0x1a9d1a['detach'](),_0x11feb0['markBlockFormat'](_0x2ad6f5,{'commandName':'imageTypeInline','commandParams':[_0xc9dba6]},[],'convertInlineImageToBlock'),_0x7a7b23['start']['isBefore'](_0x3ec0c3['start'])&&_0x11feb0['markInsertion'](_0x46ca14['createRange'](_0x7a7b23['start'],_0x3ec0c3['start']),'convertInlineImageToBlock'),_0x3ec0c3['end']['isBefore'](_0x7a7b23['end'])&&_0x11feb0['markInsertion'](_0x46ca14['createRange'](_0x3ec0c3['end'],_0x7a7b23['end']),'convertInlineImageToBlock');});}),_0x11feb0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11feb0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11feb0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11feb0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11feb0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11feb0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x351cb8])=>{const _0x46e6d2=_0x11feb0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x286ab5=_0x351cb8['start'],_0x5bb18b=_0x351cb8['end'];const _0x22fbc9=_0xea1d22['model']['schema']['getNearestSelectionRange'](_0x286ab5,'backward'),_0x5726e3=_0xea1d22['model']['schema']['getNearestSelectionRange'](_0x5bb18b,'forward');_0x22fbc9['isCollapsed']&&(_0x286ab5=_0x22fbc9['start']),_0x5726e3['isCollapsed']&&(_0x5bb18b=_0x5726e3['end']),_0x46e6d2([_0xea1d22['model']['createRange'](_0x286ab5,_0x5bb18b)]);}),_0x11feb0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x339cee),_0x11feb0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x339cee)),_0xea1d22['plugins']['has']('ImageCaptionEditing')&&(_0x11feb0['enableCommand']('toggleImageCaption',(_0x701f6a,_0xe2691c)=>{const _0x4e5961=_0xea1d22['plugins']['get']('ImageCaptionUtils');let _0x23a711=_0x2fb941['getClosestSelectedImageElement'](_0xea1d22['model']['document']['selection']),_0x51568b=_0x4e5961['getCaptionFromImageModelElement'](_0x23a711);_0xea1d22['model']['change'](()=>{if(_0x51568b)return void _0x11feb0['markDeletion'](_0xea1d22['model']['createRangeOn'](_0x51568b));const _0x6d6e5d=_0x2fb941['isBlockImage'](_0x23a711);_0x701f6a(_0xe2691c),_0x23a711=_0x2fb941['getClosestSelectedImageElement'](_0xea1d22['model']['document']['selection']),_0x51568b=_0x4e5961['getCaptionFromImageModelElement'](_0x23a711),_0x11feb0['markInsertion'](_0xea1d22['model']['createRangeOn'](_0x51568b),_0x6d6e5d?null:'imageCaption');});}),_0x11feb0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x339cee));const _0x5aced2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x266ec2(_0x292f4e,_0x252757){const _0x2fb346=_0x5aced2['findIndex'](({type:_0x4da2ed,subType:_0xdccdac})=>_0x292f4e['type']==_0x4da2ed&&_0x292f4e['subType']==_0xdccdac),_0x1b92cb=_0x5aced2['findIndex'](({type:_0x175146,subType:_0x471591})=>_0x252757['type']==_0x175146&&_0x252757['subType']==_0x471591);if(_0x2fb346<0x0||_0x1b92cb<0x0)return!0x1;const _0x61f7fb=_0x292f4e['getFirstRange'](),_0x4403c4=_0x252757['getFirstRange']();if((0x0==_0x2fb346||0x1==_0x2fb346)&&0x2==_0x1b92cb&&_0x61f7fb['isIntersecting'](_0x4403c4))return!0x0;if(0x2==_0x2fb346&&0x3==_0x1b92cb){const _0xe9f8b8=_0x11feb0['_findSuggestions'](_0x61f7fb,'insertion')['filter'](({suggestion:_0x4d321d,meta:_0x572628})=>_0x572628['isOwn']&&'convertInlineImageToBlock'==_0x4d321d['subType']);if(_0xe9f8b8['length']>0x1&&_0x4403c4['end']['isEqual'](_0x61f7fb['start']))return!0x0;if(0x1==_0xe9f8b8['length']&&(_0x61f7fb['start']['isEqual'](_0x4403c4['end'])||_0x61f7fb['end']['isEqual'](_0x4403c4['start'])))return!0x0;}if(0x3==_0x2fb346&&0x3==_0x1b92cb&&_0x61f7fb['start']['isBefore'](_0x4403c4['start'])){const _0x3dd212=_0x61f7fb['end']['nodeAfter'],_0x55581c=_0x4403c4['start']['nodeBefore'];return _0x2fb941['isBlockImage'](_0x3dd212)&&_0x3dd212===_0x55581c;}return!0x1;}function _0x339cee(_0x598ea1,_0x4fc65c){return _0x266ec2(_0x598ea1,_0x4fc65c)?[_0x598ea1,_0x4fc65c]:_0x266ec2(_0x4fc65c,_0x598ea1)?[_0x4fc65c,_0x598ea1]:null;}_0xea1d22['plugins']['has']('ImageResize')&&(_0x11feb0['enableDefaultAttributesIntegration']('resizeImage'),_0x11feb0['registerBlockAttribute']('resizedWidth'),_0x11feb0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x320582,'FORMAT_IMAGE_SIZE'))),_0xea1d22['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11feb0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11feb0['registerBlockAttribute']('alt')),_0xea1d22['plugins']['has']('PictureEditing')&&(_0x11feb0['registerBlockAttribute']('sources'),_0x11feb0['descriptionFactory']['registerDescriptionCallback'](_0xb92d5b=>{if('attribute'!=_0xb92d5b['type'])return;const {data:_0x4736e6}=_0xb92d5b;return _0x4736e6&&'sources'==_0x4736e6['key']?{'type':'format','content':''}:void 0x0;})),_0xea1d22['plugins']['has']('ImageSizeAttributes')&&(_0x11feb0['registerBlockAttribute']('width'),_0x11feb0['registerBlockAttribute']('height'),_0x11feb0['descriptionFactory']['registerDescriptionCallback'](_0x57760e=>{if('attribute'!=_0x57760e['type'])return;const {data:_0x44b288}=_0x57760e;return!_0x44b288||'width'!=_0x44b288['key']&&'height'!=_0x44b288['key']?void 0x0:{'type':'format','content':''};})),_0x11feb0['descriptionFactory']['registerDescriptionCallback'](_0x57c8da=>{if(!!_0x5aced2['find'](({type:_0x2ae8f9,subType:_0x516008})=>_0x57c8da['type']==_0x2ae8f9&&_0x57c8da['subType']==_0x516008))return _0x57c8da['previous']?{}:void 0x0;}),_0x11feb0['descriptionFactory']['registerDescriptionCallback'](_0x144dbd=>{if('insertion'==_0x144dbd['type']||'deletion'==_0x144dbd['type']){const _0x4dc9f7=_0x144dbd['getContainedElement']();if(_0x4dc9f7&&_0x4dc9f7['is']('element','caption'))return{'type':'insertion'==_0x144dbd['type']?'addObject':'removeObject','element':_0x4dc9f7,'quantity':0x1};}}),_0x11feb0['descriptionFactory']['registerDescriptionCallback'](_0x1f015c=>'formatBlock'==_0x1f015c['type']&&'convertInlineImageToBlock'==_0x1f015c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1f015c['type']&&'convertBlockImageToInline'==_0x1f015c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11feb0['descriptionFactory']['registerDescriptionCallback'](_0x8ce5cb=>{if('attribute'!=_0x8ce5cb['type'])return;const {data:_0xa83e70}=_0x8ce5cb;if(!_0xa83e70||'alt'!=_0xa83e70['key'])return;const _0xee3fc4=_0xa83e70['newValue'];return _0xee3fc4?{'type':'format','content':o(_0x320582,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xee3fc4+'\x22')}:{'type':'format','content':o(_0x320582,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22a0e9=this['editor'],_0x5594e0=_0x22a0e9['locale'];_0x22a0e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29c190=>{if('formatBlock'!=_0x29c190['type']&&'formatInline'!=_0x29c190['type'])return;const {data:_0x20a26c}=_0x29c190;if(_0x20a26c){if('imageTextAlternative'==_0x20a26c['commandName']){const _0x21b6c4=_0x20a26c['commandParams'][0x0]['newValue'];return _0x21b6c4?{'type':'format','content':o(_0x5594e0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x21b6c4+'\x22')}:{'type':'format','content':o(_0x5594e0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20a26c['commandName']){const _0x23d914=_0x20a26c['commandParams'][0x0]['width'];return _0x23d914?{'type':'format','content':o(_0x5594e0,'*Set\x20image\x20width:*\x20%0',_0x23d914)}:{'type':'format','content':o(_0x5594e0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3d817a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xca2cfc=this['editor']['locale'],_0x4d7135=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d7135['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4d7135['registerBlockAttribute']('src'),_0x4d7135['descriptionFactory']['registerDescriptionCallback'](_0x3d82ab=>{if('attribute'!=_0x3d82ab['type'])return;const {data:_0x25bc78}=_0x3d82ab;return _0x25bc78&&'src'==_0x25bc78['key']?_0x25bc78['newValue']&&_0x25bc78['oldValue']?{'type':'format','content':o(_0xca2cfc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a6566=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a6566['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a6566['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a6566['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a6566['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f0dee=this['editor'],_0x33c695=_0x3f0dee['locale'];_0x3f0dee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14efff=>{if('formatBlock'!=_0x14efff['type']&&'formatInline'!=_0x14efff['type'])return;const {data:_0x50d40c}=_0x14efff;if(!_0x50d40c||'replaceImageSource'!=_0x50d40c['commandName'])return;return{'type':'format','content':o(_0x33c695,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3d817a{['afterInit'](){const _0x5b9c56=this['editor'];if(!_0x5b9c56['plugins']['has']('ImageStyleEditing'))return;const _0x520686=_0x5b9c56['plugins']['get']('TrackChangesEditing'),_0x18b855=_0x5b9c56['plugins']['get']('ImageUtils'),_0x2c6297={};_0x520686['enableCommand']('imageStyle',(_0x130e8d,_0x5c8e75)=>{const _0x38c18d=_0x5b9c56['plugins']['get']('Users')['me'],_0x3e2ef3=_0x5b9c56['commands']['get']('imageStyle');let _0x3bfe09=_0x18b855['getClosestSelectedImageElement'](_0x5b9c56['model']['document']['selection']),_0x679194=_0x5b9c56['model']['createRangeOn'](_0x3bfe09),_0x1a4cbd=_0x3e2ef3['value'];if(_0x1a4cbd==_0x5c8e75['value'])return;const _0x30d248={'commandName':'imageStyle','commandParams':[_0x5c8e75],'formatGroupId':_0x16cdcd()};_0x5b9c56['model']['change'](()=>{if(_0x520686['getSuggestions']()['filter'](_0x10bdff=>_0x10bdff['isInContent']&&_0x38c18d==_0x10bdff['author']&&('formatBlock'==_0x10bdff['type']||'formatInline'==_0x10bdff['type'])&&('imageStylePreApply'==_0x10bdff['subType']||'imageStylePostApply'==_0x10bdff['subType'])&&_0x10bdff['getFirstRange']()['isEqual'](_0x679194))['forEach'](_0x4bd402=>_0x520686['discardSuggestion'](_0x4bd402['head'])),_0x3bfe09=_0x18b855['getClosestSelectedImageElement'](_0x5b9c56['model']['document']['selection']),_0x679194=_0x5b9c56['model']['createRangeOn'](_0x3bfe09),_0x3e2ef3['refresh'](),_0x5b9c56['commands']['get']('imageTypeInline')['refresh'](),_0x5b9c56['commands']['get']('imageTypeBlock')['refresh'](),_0x1a4cbd=_0x3e2ef3['value'],_0x1a4cbd!=_0x5c8e75['value'])return _0x18b855['isInlineImage'](_0x3bfe09)&&_0x3e2ef3['shouldConvertImageType'](_0x5c8e75['value'],_0x3bfe09)?(_0x130e8d({..._0x5c8e75,'setImageSizes':!0x1}),_0x3bfe09=_0x18b855['getClosestSelectedImageElement'](_0x5b9c56['model']['document']['selection']),void _0x520686['markBlockFormat'](_0x3bfe09,{..._0x30d248,'commandReversedParams':[{'value':_0x1a4cbd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18b855['isBlockImage'](_0x3bfe09)?_0x520686['markBlockFormat'](_0x3bfe09,_0x30d248,[],'imageStylePostApply'):_0x520686['markInlineFormat'](_0x679194,_0x30d248,'imageStylePostApply'));});});for(const _0x2161e6 of _0x5b9c56['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2c6297[_0x2161e6['name']]=_0x2161e6['title']['toLowerCase']();_0x520686['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x520686['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x520686['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x520686['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b8918])=>{_0x18b855['setImageNaturalSizeAttributes'](_0x4b8918['getContainedElement']());}),_0x520686['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b9b1c,_0x31e9e1)=>{_0x520686['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b9b1c,{'commandName':_0x31e9e1['commandName'],'commandParams':_0x31e9e1['commandReversedParams']});}),_0x520686['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x39108b,_0x14b825){if(_0x54da37(_0x39108b,_0x14b825))return[_0x39108b,_0x14b825];if(_0x54da37(_0x14b825,_0x39108b))return[_0x14b825,_0x39108b];return null;});const _0x434e1a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54da37(_0x1603fe,_0x28003b){const _0x5c590f=_0x434e1a['findIndex'](({type:_0x2e41e5,subType:_0x5bbb48})=>_0x1603fe['type']==_0x2e41e5&&_0x1603fe['subType']==_0x5bbb48),_0x3e45dc=_0x434e1a['findIndex'](({type:_0x3e91d0,subType:_0x30150e})=>_0x28003b['type']==_0x3e91d0&&_0x28003b['subType']==_0x30150e);if(_0x5c590f<0x0||_0x3e45dc<0x0)return!0x1;const _0x1c3746=_0x1603fe['getFirstRange'](),_0x5a6a89=_0x28003b['getFirstRange']();if((0x0==_0x5c590f||0x1==_0x5c590f)&&0x2==_0x3e45dc&&_0x1c3746['isIntersecting'](_0x5a6a89))return!0x0;if(0x2==_0x5c590f&&0x3==_0x3e45dc){const _0x2a75b2=_0x520686['_findSuggestions'](_0x1c3746,'insertion')['filter'](({suggestion:_0x2509f0,meta:_0x5483eb})=>_0x5483eb['isOwn']&&'convertInlineImageToBlock'==_0x2509f0['subType']);if(_0x2a75b2['length']>0x1&&_0x5a6a89['end']['isEqual'](_0x1c3746['start']))return!0x0;if(0x1==_0x2a75b2['length']&&(_0x1c3746['start']['isEqual'](_0x5a6a89['end'])||_0x1c3746['end']['isEqual'](_0x5a6a89['start'])))return!0x0;}if(0x3==_0x5c590f&&0x3==_0x3e45dc&&_0x1c3746['start']['isBefore'](_0x5a6a89['start'])){const _0x3877b3=_0x1c3746['end']['nodeAfter'],_0x24aedb=_0x5a6a89['start']['nodeBefore'];return _0x18b855['isBlockImage'](_0x3877b3)&&_0x3877b3===_0x24aedb;}return!0x1;}_0x5b9c56['model']['document']['registerPostFixer'](()=>{let _0x231732=!0x1;const _0xc5cd28=Array['from'](_0x5b9c56['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b2f18,data:_0x1effba}of _0xc5cd28){const {group:_0x15e378,type:_0x2ddbde,subType:_0x4e3eb5,id:_0x2b2e65}=_0x520686['_splitMarkerName'](_0x5b2f18);if('suggestion'==_0x15e378&&_0x520686['hasSuggestion'](_0x2b2e65)){if('formatBlock'==_0x2ddbde&&('imageStylePreApply'==_0x4e3eb5||'imageStylePostApply'==_0x4e3eb5)){const _0x34c680=_0x520686['getSuggestion'](_0x2b2e65);if(_0x1effba['newRange']){const _0x5bdcc0=_0x34c680['getFirstRange']()['getContainedElement']();if(_0x18b855['isBlockImage'](_0x5bdcc0))continue;_0x520686['discardSuggestion'](_0x34c680),_0x231732=!0x0;}}if('insertion'==_0x2ddbde&&'imageCaption'==_0x4e3eb5&&!_0x1effba['newRange']){const _0x2c98f=_0x520686['getSuggestion'](_0x2b2e65);_0x2c98f['next']&&_0x2c98f['next']['isInContent']&&(_0x520686['discardSuggestion'](_0x2c98f['next']),_0x231732=!0x0);}}}return _0x231732;}),this['_registerLegacyDescription'](_0x2c6297);}['_registerLegacyDescription'](_0x3ce7a2){const _0x43c211=this['editor'],_0x3e9af2=_0x43c211['locale'];_0x43c211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1083=>{if('formatBlock'!=_0x5c1083['type']&&'formatInline'!=_0x5c1083['type'])return;const {data:_0x8bc3d1}=_0x5c1083;if(!_0x8bc3d1||'imageStyle'!=_0x8bc3d1['commandName'])return;const _0xf94714=_0x8bc3d1['commandParams'][0x0]['value'];return _0x1de7d2('side'===_0xf94714?o(_0x3e9af2,'FORMAT_SIDE_IMAGE'):_0x3ce7a2[_0xf94714]||_0xf94714);function _0x1de7d2(_0x5c949f){return{'type':'format','content':o(_0x3e9af2,'*Format:*\x20%0',_0x5c949f)};}});}}class ut extends _0x3d817a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x19a787){super(_0x19a787),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5cb444=this['editor'],_0x31b8f6=_0x5cb444['commands']['get']('importWord'),_0x55f373=_0x5cb444['commands']['get']('trackChanges');_0x31b8f6&&(_0x31b8f6['on']('execute',(_0x20b1d0,[,_0x4dad75])=>{this['_trackChangesValueDuringImport']=_0x55f373['value'],_0x4dad75['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31b8f6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31b8f6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x55f373['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5cb444['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1179a7,_0x135ccb){const {suggestions:_0x1c60f5}=_0x135ccb,_0x53a39f=this['editor']['commands']['get']('trackChanges'),_0x4fe897=_0x53a39f['value'];this['_trackChangesValueDuringImport']!==_0x4fe897&&(_0x53a39f['execute'](),this['_trackChangesExecuted']=!0x0),_0x1c60f5&&_0x1c60f5['forEach'](({id:_0x2eff75,type:_0x292d81,author:_0x127092,created_at:_0x358556})=>{const _0xc9a68f={'id':_0x2eff75,'type':_0x292d81,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x127092,'createdAt':_0x358556?new Date(_0x358556):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xc9a68f);});}}class ft extends _0x3d817a{['afterInit'](){const _0x2c49ca=this['editor'],_0x5f4c01=_0x2c49ca['plugins']['get']('TrackChangesEditing');if(_0x2c49ca['plugins']['has']('IndentEditing')&&(_0x5f4c01['enableCommand']('indent'),_0x5f4c01['enableCommand']('outdent')),_0x2c49ca['plugins']['has']('IndentBlock')){for(const _0x30d3cf of['indentBlock','outdentBlock'])_0x5f4c01['enableDefaultAttributesIntegration'](_0x30d3cf);}const _0x37d5ab=_0x2c49ca['locale'];_0x5f4c01['registerBlockAttribute']('blockIndent'),_0x5f4c01['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x37d5ab,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e31b4=this['editor'],_0x563604=_0x1e31b4['locale'],_0x1678a6=_0x1e31b4['plugins']['get']('TrackChangesEditing');_0x1678a6['descriptionFactory']['registerDescriptionCallback'](_0x4700fd=>{if('formatBlock'!=_0x4700fd['type'])return;const {data:_0x13614e}=_0x4700fd;if(!_0x13614e)return;if('indentBlock'!=_0x13614e['commandName']&&'outdentBlock'!=_0x13614e['commandName'])return;const _0x35f403=_0x4700fd['getItems']()[0x0],_0x492af3=_0x1678a6['descriptionFactory']['getItemLabel'](_0x35f403);return'indentBlock'==_0x13614e['commandName']?{'type':'format','content':o(_0x563604,'*Indent:*\x20%0',_0x492af3)}:'outdentBlock'==_0x13614e['commandName']?{'type':'format','content':o(_0x563604,'*Outdent:*\x20%0',_0x492af3)}:void 0x0;});}}class ht extends _0x3d817a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3d817a{['afterInit'](){const _0x12249a=this['editor'];if(!_0x12249a['plugins']['has']('LinkEditing'))return;const _0x22f259=_0x12249a['plugins']['get']('TrackChangesEditing'),_0x105204=_0x12249a['commands']['get']('link');_0x22f259['enableDefaultAttributesIntegration']('link'),_0x22f259['enableDefaultAttributesIntegration']('unlink'),_0x22f259['registerInlineAttribute']('linkHref');for(const _0x310cce of _0x105204['manualDecorators'])_0x22f259['registerInlineAttribute'](_0x310cce['id']),_0x22f259['descriptionFactory']['registerAttributeLabel'](_0x310cce['id'],'link\x20('+_0x310cce['label']['toLowerCase']()+')');_0x22f259['descriptionFactory']['registerDescriptionCallback'](_0x4485ed=>{if('attribute'!=_0x4485ed['type'])return;const {data:_0x1380f4}=_0x4485ed;if(!_0x1380f4||'linkHref'!=_0x1380f4['key'])return;const _0x241910=_0x1380f4['newValue'],_0x294fd8=_0x12249a['locale'];return{'type':'format','content':null==_0x241910?o(_0x294fd8,'*Remove\x20link*'):o(_0x294fd8,'*Set\x20link:*\x20%0','\x22'+_0x241910+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x598e7e=this['editor'],_0x2be7e6=_0x598e7e['locale'];_0x598e7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0f53=>{if('formatInline'!=_0x2a0f53['type'])return;const {data:_0x45cfde}=_0x2a0f53;if(_0x45cfde){if('link'==_0x45cfde['commandName']){const _0x3dbd41=_0x45cfde['commandParams'][0x0];return{'type':'format','content':o(_0x2be7e6,'*Set\x20link:*\x20%0','\x22'+_0x3dbd41+'\x22')};}return'unlink'==_0x45cfde['commandName']?{'type':'format','content':o(_0x2be7e6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3d817a{['afterInit'](){const _0x1fef95=this['editor'],_0x2b486e=_0x1fef95['locale'];if(!_0x1fef95['plugins']['has']('LegacyListEditing'))return;const _0xdf9797=_0x1fef95['plugins']['get']('TrackChangesEditing'),_0x3a11ed=_0x1fef95['plugins']['has']('LegacyTodoListEditing');function _0x1bd576(_0x3ba474){return()=>{const _0x22c95d=_0x1fef95['model']['document']['selection'],_0x16657f=_0x1fef95['commands']['get'](_0x3ba474);if(_0x16657f['value'])return void _0x1fef95['execute']('paragraph',{});const _0x5b992e=_0x3ba474['slice'](0x0,-0x4),_0x56ece1=function(_0x4bed4a,_0x32e19a,_0x6bb796){let _0x1f062c=Array['from'](_0x4bed4a)['filter'](_0x101bf7=>function(_0x25c6de,_0x22b070){return _0x22b070['checkChild'](_0x25c6de['parent'],'listItem')&&!_0x22b070['isObject'](_0x25c6de);}(_0x101bf7,_0x6bb796));_0x1f062c=_0x1f062c['filter'](_0x3192e5=>!_0x3192e5['is']('element','listItem')||_0x3192e5['getAttribute']('listType')!=_0x32e19a);const _0x4c26f8=new Set();for(const _0x4b763b of _0x1f062c)_0x4b763b['is']('element','listItem')?_0x4c26f8['add'](Le(_0x4b763b)):_0x4c26f8['add'](_0x4b763b);return Array['from'](_0x4c26f8);}(_0x22c95d['getSelectedBlocks'](),_0x5b992e,_0x1fef95['model']['schema']);_0x1fef95['model']['change'](()=>{for(const _0x3bc4d8 of _0x56ece1)_0xdf9797['markBlockFormat'](_0x3bc4d8,{'commandName':_0x3ba474,'commandParams':[{'forceValue':!_0x16657f['value']}],'formatGroupId':'blockName'},Ee(_0x3bc4d8));});};}function _0x5ca10b(_0x36044c){return()=>{const _0x45ff29=function(_0x57f55e){let _0x39ba79=Array['from'](_0x57f55e);const _0x54161a=_0x39ba79['findIndex'](_0x89d445=>'listItem'!=_0x89d445['name']);return _0x54161a>-0x1&&(_0x39ba79=_0x39ba79['slice'](0x0,_0x54161a)),_0x39ba79;}(_0x1fef95['model']['document']['selection']['getSelectedBlocks']()),_0x37582d=_0x1fef95['model']['createRange'](_0x1fef95['model']['createPositionAt'](_0x45ff29[0x0],'before'),_0x1fef95['model']['createPositionAt'](_0x45ff29[_0x45ff29['length']-0x1],'end'));_0x1fef95['model']['change'](()=>{_0xdf9797['markBlockFormat'](_0x37582d,{'commandName':_0x36044c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x68b75a){const _0x3f885e=new Set();for(const _0x499078 of _0x68b75a){let _0x433be8=_0x499078['nextSibling'];for(;_0x433be8&&_0x433be8['getAttribute']('listIndent')>_0x499078['getAttribute']('listIndent');)_0x3f885e['add'](_0x433be8),_0x433be8=_0x433be8['nextSibling'];}return Array['from'](_0x3f885e);}(_0x45ff29));});};}_0xdf9797['enableCommand']('numberedList',_0x1bd576('numberedList')),_0xdf9797['enableCommand']('bulletedList',_0x1bd576('bulletedList')),_0x3a11ed&&_0xdf9797['enableCommand']('todoList',_0x1bd576('todoList')),_0xdf9797['enableCommand']('indentList',_0x5ca10b('indentList')),_0xdf9797['enableCommand']('outdentList',_0x5ca10b('outdentList')),_0x3a11ed&&_0xdf9797['enableCommand']('checkTodoList',()=>{const _0x51ffec=_0x1fef95['commands']['get']('checkTodoList'),_0x479314=Array['from'](_0x51ffec['_selectedElements']);_0x479314['filter'](_0x1ce835=>_0x1ce835['getAttribute']('todoListChecked')!=_0x51ffec['value']),_0x1fef95['model']['change'](()=>{for(const _0x5b9af of _0x479314)_0xdf9797['markBlockFormat'](_0x5b9af,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x51ffec['value']}]});});}),_0xdf9797['descriptionFactory']['registerElementLabel']('listItem',_0x40f9d0=>o(_0x2b486e,'ELEMENT_LIST_ITEM',_0x40f9d0)),_0xdf9797['descriptionFactory']['registerDescriptionCallback'](_0x24ae67=>{if('formatBlock'!=_0x24ae67['type']&&'formatInline'!=_0x24ae67['type'])return;const {data:_0x268e19}=_0x24ae67;if(_0x268e19){if('numberedList'==_0x268e19['commandName']||'bulletedList'==_0x268e19['commandName']||'todoList'==_0x268e19['commandName'])switch(_0x268e19['commandName']['replace']('List','')){case'bulleted':return _0x9290f7(o(_0x2b486e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9290f7(o(_0x2b486e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9290f7(o(_0x2b486e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x268e19['commandName'])return{'type':'format','content':o(_0x2b486e,'*Indent:*\x20%0',o(_0x2b486e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x268e19['commandName'])return{'type':'format','content':o(_0x2b486e,'*Outdent:*\x20%0',o(_0x2b486e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x268e19['commandName'])return _0x268e19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b486e,'*Check\x20item*')}:{'type':'format','content':o(_0x2b486e,'*Uncheck\x20item*')};}function _0x9290f7(_0x343d0c){return{'type':'format','content':o(_0x2b486e,'*Change\x20to:*\x20%0',_0x343d0c)};}});}}function Le(_0x4f3d08){const _0x1c333a=_0x4f3d08['getAttribute']('listIndent');if(0x0==_0x1c333a)return _0x4f3d08;let _0x220eba=_0x4f3d08;for(;_0x4f3d08['previousSibling']&&_0x4f3d08['previousSibling']['is']('element','listItem');){const _0x2bb57b=_0x4f3d08['previousSibling']['getAttribute']('listIndent');if(_0x2bb57b==_0x1c333a)_0x220eba=_0x4f3d08['previousSibling'];else{if(_0x2bb57b<_0x1c333a)break;}_0x4f3d08=_0x4f3d08['previousSibling'];}return _0x220eba;}function Ee(_0x222bd8){const _0x51b188=[];if(_0x222bd8['is']('element','listItem')&&_0x222bd8['getAttribute']('listIndent')>0x0){let _0xe2e78=_0x222bd8['nextSibling'];for(;_0xe2e78&&'listItem'==_0xe2e78['name']&&_0xe2e78['getAttribute']('listIndent')==_0x222bd8['getAttribute']('listIndent');)_0x51b188['push'](_0xe2e78),_0xe2e78=_0xe2e78['nextSibling'];}return _0x51b188;}class Q extends _0x3d817a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32b17f=this['editor']['config']['get']('list.properties'),_0x30fcbb=this['editor']['plugins']['get']('TrackChangesEditing');_0x32b17f['styles']&&_0x30fcbb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32b17f['reversed']&&_0x30fcbb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32b17f['startIndex']&&_0x30fcbb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30fcbb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x30876b,_0x4f9943={}){const _0x350ece=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c9339=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x350ece['markMultiRangeBlockFormat'](_0x4c9339,{'commandName':'listStyle','commandParams':[{'type':_0x4f9943['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd26349,_0x2b8d8c={}){const _0x1797d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3287a6=this['_getSuggestionBlocks'](_0xffd2d1=>_0xffd2d1['is']('element','listItem')&&'numbered'===_0xffd2d1['getAttribute']('listType'));if(_0x3287a6['length']<0x1)return;const _0x3d82de=_0x3287a6['map'](_0x29b909=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29b909,'before'),this['editor']['model']['createPositionAt'](_0x29b909,0x0)));this['editor']['model']['change'](()=>{_0x1797d0['markMultiRangeBlockFormat'](_0x3d82de,{'commandName':'listReversed','commandParams':[{'reversed':_0x2b8d8c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24ac36,_0x3dfa9b={}){const _0x131be8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59f9e6=this['_getSuggestionBlocks'](_0x1de782=>_0x1de782['is']('element','listItem')&&'numbered'===_0x1de782['getAttribute']('listType'));if(_0x59f9e6['length']<0x1)return;const _0x58fb3b=_0x59f9e6['map'](_0xff209=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xff209,'before'),this['editor']['model']['createPositionAt'](_0xff209,0x0)));this['editor']['model']['change'](()=>{_0x131be8['markMultiRangeBlockFormat'](_0x58fb3b,{'commandName':'listStart','commandParams':[{'startIndex':_0x3dfa9b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x311c7f){if('formatBlock'!=_0x311c7f['type']&&'formatInline'!=_0x311c7f['type'])return;const _0x192592=this['editor']['locale'],{data:_0x11737e}=_0x311c7f;if(!_0x11737e)return;let _0x567f92,_0x16ed9c;switch(_0x11737e['commandName']){case'listStyle':_0x567f92='*Change\x20to:*\x20%0',_0x16ed9c={'type':'format','content':o(_0x192592,_0x567f92,o(_0x192592,this['_getTranslationKeyForListStyle'](_0x11737e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x567f92=_0x11737e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16ed9c={'type':'format','content':o(_0x192592,_0x567f92)};break;case'listStart':_0x567f92='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16ed9c={'type':'format','content':o(_0x192592,_0x567f92,_0x11737e['commandParams'][0x0]['startIndex'])};}return _0x16ed9c;}['_getSuggestionBlocksForListStyle'](){const _0x423df5=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e7342=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1e7342[0x0]?.['is']('element','listItem')&&_0x1e7342['unshift'](..._0x423df5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1e7342[_0x1e7342['length']-0x1]?.['is']('element','listItem')&&_0x1e7342['push'](..._0x423df5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1e7342=[...new Set(_0x1e7342)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1e7342=_0x1e7342['filter'](_0x2922df=>_0x2922df['is']('element','listItem'))),_0x1e7342;}['_getSuggestionBlocks'](_0xe9aab9){const _0x73041=this['editor']['plugins']['get']('LegacyListUtils');let _0x26260a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe9aab9)['map'](_0x5c59d1=>{const _0x403e20=this['editor']['model']['createPositionAt'](_0x5c59d1,0x0);return[..._0x73041['getSiblingNodes'](_0x403e20,'backward'),..._0x73041['getSiblingNodes'](_0x403e20,'forward')];})['flat']();return _0x26260a=[...new Set(_0x26260a)],_0x26260a;}['_getTranslationKeyForListStyle'](_0x545707){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x545707)||'default')['toUpperCase']()+'_LIST_'+_0x545707['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3d817a{['afterInit'](){const _0xa09644=this['editor'];if(!_0xa09644['plugins']['has']('MediaEmbedEditing'))return;const _0x1f8ce5=_0xa09644['plugins']['get']('TrackChangesEditing'),_0x43854a=_0xa09644['locale'];_0x1f8ce5['enableCommand']('mediaEmbed'),_0x1f8ce5['descriptionFactory']['registerElementLabel']('media',_0x3c73ec=>o(_0x43854a,'ELEMENT_MEDIA',_0x3c73ec)),_0xa09644['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1aa6fb,{writer:_0x492edf,options:_0x56faa3})=>{if(_0x56faa3['showSuggestionHighlights'])return _0x492edf['createEmptyElement']('div');},'converterPriority':'high'}),_0xa09644['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2ad5c6,_0x469165,_0x5b3fbc)=>{_0x5b3fbc['options']['showSuggestionHighlights']&&_0x2ad5c6['stop']();},{'priority':'high'});}}class pt extends _0x3d817a{['afterInit'](){const _0x126e37=this['editor'];_0x126e37['plugins']['has']('MentionEditing')&&_0x126e37['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3d817a{['afterInit'](){const _0x1d32bc=this['editor'];if(!_0x1d32bc['plugins']['has']('MergeFieldsEditing'))return;const _0x2df703=_0x1d32bc['plugins']['get']('TrackChangesEditing'),_0x268c29=_0x1d32bc['locale'];_0x2df703['enableCommand']('insertMergeField'),_0x2df703['enableCommand']('insertMergeFieldBlock'),_0x2df703['enableCommand']('insertMergeFieldImage'),_0x2df703['descriptionFactory']['registerElementLabel']('mergeField',_0xfe9d34=>o(_0x268c29,'ELEMENT_MERGE_FIELD',_0xfe9d34)),_0x2df703['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3b226f=>o(_0x268c29,'ELEMENT_MERGE_FIELD',_0x3b226f)),_0x2df703['descriptionFactory']['registerDescriptionCallback'](_0x37bc27=>{if('insertion'!=_0x37bc27['type']&&'deletion'!=_0x37bc27['type'])return;const _0x4c47e7=_0x37bc27['getContainedElement']();if(null==_0x4c47e7)return;const _0x39c52c=_0x1d32bc['plugins']['get']('MergeFieldsEditing');let _0x5b5097;switch(_0x39c52c['getMergeFieldType'](_0x4c47e7)){case null:return;case'image':{const _0x3ddb5d=_0x39c52c['unwrapAffixes'](_0x4c47e7['getAttribute']('src'));_0x5b5097=_0x39c52c['getLabel'](_0x3ddb5d)||_0x3ddb5d;break;}default:{const _0x490515=_0x4c47e7['getAttribute']('id');_0x5b5097=_0x39c52c['getLabel'](_0x490515)||_0x490515;break;}}return'insertion'==_0x37bc27['type']?{'type':'insertion','content':o(_0x268c29,'*Insert:*\x20%0','\x22'+_0x5b5097+'\x22\x20'+o(_0x268c29,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x268c29,'*Remove:*\x20%0','\x22'+_0x5b5097+'\x22\x20'+o(_0x268c29,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3d817a{['afterInit'](){const _0x172271=this['editor'],_0xc78191=_0x172271['plugins']['get']('TrackChangesEditing');_0x172271['plugins']['has']('MultiLevelList')&&(_0xc78191['enableDefaultAttributesIntegration']('multiLevelList'),_0xc78191['registerBlockAttribute']('listMarkerStyle'),_0xc78191['descriptionFactory']['registerDescriptionCallback'](_0x4be8ee=>this['handleDescriptions'](_0x4be8ee)));}['handleDescriptions'](_0x2a6424){const _0x53df8c=this['editor']['locale'],{data:_0x35a195}=_0x2a6424,_0x35e680={'type':'format','content':''};if(_0x35a195&&'listMarkerStyle'==_0x35a195['key']){if(!_0x35a195['oldValue'])return{'type':'format','content':o(_0x53df8c,'*Set\x20format:*\x20%0',o(_0x53df8c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35a195['newValue']+')'};if(!_0x35a195['newValue']){let _0x1a3e32=_0x2a6424['head'];for(;_0x1a3e32;){if(_0x1a3e32['data']&&'listType'==_0x1a3e32['data']['key']&&_0x1a3e32['data']['newValue'])return _0x35e680;_0x1a3e32=_0x1a3e32['next'];}return{'type':'format','content':o(_0x53df8c,'*Remove\x20format:*\x20%0',o(_0x53df8c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35a195['oldValue']+')'};}}}}class bt extends _0x3d817a{['afterInit'](){const _0x34e5f7=this['editor'];if(!_0x34e5f7['plugins']['has']('PageBreakEditing'))return;_0x34e5f7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23e503=_0x34e5f7['plugins']['get']('TrackChangesEditing'),_0x131722=_0x34e5f7['locale'];_0x23e503['descriptionFactory']['registerElementLabel']('pageBreak',_0x410562=>o(_0x131722,'ELEMENT_PAGE_BREAK',_0x410562));}}class yt extends _0x3d817a{['afterInit'](){const _0x1e690d=this['editor'];if(!_0x1e690d['plugins']['has']('Paragraph'))return;const _0x256935=_0x1e690d['locale'],_0x19f8fc=_0x1e690d['plugins']['get']('TrackChangesEditing');_0x19f8fc['descriptionFactory']['registerElementLabel']('paragraph',_0x36ae47=>o(_0x256935,'ELEMENT_PARAGRAPH',_0x36ae47)),_0x19f8fc['enableDefaultAttributesIntegration']('paragraph'),_0x19f8fc['enableCommand']('insertParagraph'),_0x1e690d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1e690d),{'priority':'highest'}),_0x1e690d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34a92c,_0x3fded5,_0x1e0da6)=>{_0x1e0da6['options']['showSuggestionHighlights']&&nr(_0x1e690d,{'showActiveMarker':!0x1})(_0x34a92c,_0x3fded5,_0x1e0da6);},{'priority':'highest'});const _0x1246e9=_0x19f8fc['descriptionFactory'];_0x1246e9['registerDescriptionCallback'](_0x366e61=>{if('insertion'!==_0x366e61['type'])return;const {start:_0x48372b,end:_0x42c830}=_0x366e61['getFirstRange']();if(!_0x48372b['isTouching'](_0x42c830)||!_0x48372b['nodeAfter'])return;const _0x101c30=_0x1e690d['model']['schema'],_0x4b2b97=_0x48372b['nodeAfter'];return _0x101c30['isBlock'](_0x4b2b97)&&!_0x101c30['isLimit'](_0x4b2b97)&&_0x101c30['checkChild'](_0x4b2b97,'$text')?{'type':'insertion','content':o(_0x256935,'*Insert:*\x20%0',_0x1246e9['getItemLabel'](_0x4b2b97,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bc7b5=this['editor'],_0x515387=_0x5bc7b5['locale'];_0x5bc7b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38bed7=>{if('formatBlock'!=_0x38bed7['type'])return;const {data:_0x53856e}=_0x38bed7;return _0x53856e&&'paragraph'==_0x53856e['commandName']?{'type':'format','content':o(_0x515387,'*Change\x20to:*\x20%0',o(_0x515387,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x59d032,{showActiveMarker:_0x280fb0=!0x0}={}){return(_0x17a112,_0x31bd71,_0x166e09)=>{const _0x2fec55=_0x59d032['plugins']['get']('TrackChangesEditing'),_0x56acc0=_0x31bd71['markerRange']['start'],_0x30a3f4=_0x31bd71['markerRange']['end'],_0x13b408=_0x59d032['model']['schema'];if(!_0x56acc0['isTouching'](_0x30a3f4)||!_0x56acc0['nodeAfter'])return;const _0x174b4f=_0x56acc0['nodeAfter'];if(_0x13b408['isBlock'](_0x174b4f)&&!_0x13b408['isLimit'](_0x174b4f)&&_0x13b408['checkChild'](_0x174b4f,'$text')){if(!_0x166e09['consumable']['consume'](_0x31bd71['markerRange'],_0x17a112['name']))return;const {authorId:_0x201bee}=_0x2fec55['_splitMarkerName'](_0x31bd71['markerName']),_0x375851=_0x166e09['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x201bee}),_0x256f40=_0x166e09['mapper']['toViewPosition'](_0x30a3f4);_0x280fb0&&_0x2fec55['activeMarkers']['includes'](_0x31bd71['markerName'])&&_0x166e09['writer']['addClass']('ck-suggestion-marker--active',_0x375851),_0x166e09['writer']['insert'](_0x256f40,_0x375851),_0x166e09['mapper']['bindElementToMarker'](_0x375851,_0x31bd71['markerName']);}};}class jt extends _0x3d817a{['afterInit'](){const _0x9fc8b2=this['editor'];_0x9fc8b2['commands']['get']('replaceSource')&&_0x9fc8b2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3d817a{['afterInit'](){const _0x4f0529=this['editor'];if(!_0x4f0529['plugins']['has']('RemoveFormatEditing'))return;_0x4f0529['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9dc0=this['editor'];_0x4d9dc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584810=>{if('formatBlock'!=_0x584810['type']&&'formatInline'!=_0x584810['type'])return;const {data:_0x5b1b85}=_0x584810;return _0x5b1b85&&'removeFormat'==_0x5b1b85['commandName']?{'type':'format','content':o(_0x4d9dc0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3d817a{['afterInit'](){const _0x5a8d03=this['editor'];if(!_0x5a8d03['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x18371f=_0x5a8d03['plugins']['get']('TrackChangesEditing');_0x18371f['enableCommand']('goToPreviousRestrictedEditingException'),_0x18371f['enableCommand']('goToNextRestrictedEditingException');const _0x34661a=_0x5a8d03['plugins']['get']('RestrictedEditingModeEditing');_0x34661a['enableCommand']('trackChanges'),_0x34661a['enableCommand']('acceptSuggestion'),_0x34661a['enableCommand']('discardSuggestion'),_0x34661a['enableCommand']('acceptAllSuggestions'),_0x34661a['enableCommand']('discardAllSuggestions'),_0x34661a['enableCommand']('acceptSelectedSuggestions'),_0x34661a['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3d817a{static get['requires'](){return[_0x128636];}['init'](){const _0x541e9f=this['editor'],_0x5f09e1=_0x541e9f['plugins']['get']('TrackChangesEditing');_0x5f09e1['enableCommand']('shiftEnter'),_0x541e9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x541e9f),{'priority':'high'}),_0x541e9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x541e9f),{'priority':'high'}),_0x541e9f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x39a3ee,_0x3b427b,_0x1113d7)=>{_0x1113d7['options']['showSuggestionHighlights']&&je(_0x541e9f,{'showActiveMarker':!0x1})(_0x39a3ee,_0x3b427b,_0x1113d7);}),_0x5f09e1['descriptionFactory']['registerElementLabel']('softBreak',_0x250a45=>o(_0x541e9f['locale'],'ELEMENT_LINE_BREAK',_0x250a45));}}function je(_0x44501d,{showActiveMarker:_0x561f28=!0x0}={}){return(_0x3bc171,_0x3391c1,_0x451326)=>{const _0x5bd6e7=_0x44501d['plugins']['get']('TrackChangesEditing');if(!_0x451326['consumable']['test'](_0x3391c1['markerRange'],_0x3bc171['name']))return;const _0x2f03a2=_0x44501d['model'];for(const _0x3bd4f9 of _0x3391c1['markerRange']['getItems']()){if(!_0x3bd4f9['is']('element','softBreak'))continue;const _0x4cf084='deletion'==_0x3391c1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x146416}=_0x5bd6e7['_splitMarkerName'](_0x3391c1['markerName']),_0x4cfc8e=_0x451326['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4cf084,'data-author-id':_0x146416}),_0x56b097=_0x451326['mapper']['toViewPosition'](_0x2f03a2['createPositionBefore'](_0x3bd4f9));_0x561f28&&_0x5bd6e7['activeMarkers']['includes'](_0x3391c1['markerName'])&&_0x451326['writer']['addClass']('ck-suggestion-marker--active',_0x4cfc8e),_0x451326['writer']['insert'](_0x56b097,_0x4cfc8e),_0x451326['mapper']['bindElementToMarker'](_0x4cfc8e,_0x3391c1['markerName']);}};}class vt extends _0x3d817a{['afterInit'](){const _0x2affa8=this['editor'],_0x3b2d70=_0x2affa8['model'],_0xae55d5=_0x2affa8['locale'];if(!_0x2affa8['plugins']['has']('StandardEditingModeEditing'))return;const _0x14ed24=_0x2affa8['plugins']['get']('TrackChangesEditing'),_0x5d9732='restrictedEditingException',_0x28529f=_0x2affa8['commands']['get'](_0x5d9732);_0x14ed24['enableCommand'](_0x5d9732,(_0x5edf12,_0x5c6f76={})=>{const _0x5ac799=_0x3b2d70['document']['selection'];if(_0x5ac799['isCollapsed'])return void _0x5edf12(_0x5c6f76);const _0x41c4d4=void 0x0!==_0x5c6f76['forceValue']?_0x5c6f76['forceValue']:!_0x28529f['value'];_0x3b2d70['change'](()=>{const _0xeb083f=Array['from'](_0x5ac799['getRanges']());for(const _0x474cc6 of _0xeb083f){const _0x51c01b=_0x41c4d4?[_0x474cc6]:io(_0x5d9732,_0x474cc6,_0x3b2d70);for(const _0x40fbff of _0x51c01b)_0x14ed24['markInlineFormat'](_0x40fbff,{'commandName':_0x5d9732,'commandParams':[{'forceValue':_0x41c4d4}]});}});}),_0x14ed24['descriptionFactory']['registerDescriptionCallback'](_0x155f62=>{if('formatBlock'!=_0x155f62['type']&&'formatInline'!=_0x155f62['type'])return;const {data:_0x5b6879}=_0x155f62;return _0x5b6879&&_0x5b6879['commandName']==_0x5d9732?_0x5b6879['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xae55d5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xae55d5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x3d817a{['afterInit'](){const _0x1aecea=this['editor'];if(!_0x1aecea['plugins']['has']('Style')||!_0x1aecea['plugins']['has']('DataSchema'))return;const _0x59e89d=_0x1aecea['plugins']['get']('TrackChangesEditing'),_0x14050e=_0x1aecea['locale'],_0x126884=_0x1aecea['config']['get']('style')||{},_0x5296f1=_0x1aecea['plugins']['get']('GeneralHtmlSupport'),_0x2b8bbd=_0x1aecea['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1aecea['plugins']['get']('DataSchema'),_0x126884['definitions']);_0x59e89d['enableDefaultAttributesIntegration']('style');const _0x48feab=new Set();for(const _0x340f0f of _0x2b8bbd['block']){const _0x4847d3=_0x5296f1['getGhsAttributeNameForElement'](_0x340f0f['element']);_0x48feab['add'](_0x4847d3);}const _0x22d11d=new Set();for(const _0x3277f8 of _0x2b8bbd['inline']){const _0x2833c3=_0x5296f1['getGhsAttributeNameForElement'](_0x3277f8['element']);_0x22d11d['add'](_0x2833c3);for(const _0x5d24f1 of _0x3277f8['ghsAttributes'])_0x22d11d['add'](_0x5d24f1);}for(const _0x26c5ad of _0x48feab)_0x59e89d['registerBlockAttribute'](_0x26c5ad),_0x59e89d['descriptionFactory']['registerAttributeLabel'](_0x26c5ad,o(_0x14050e,'FORMAT_STYLE'));for(const _0x5885e6 of _0x22d11d)_0x59e89d['registerInlineAttribute'](_0x5885e6),_0x59e89d['descriptionFactory']['registerAttributeLabel'](_0x5885e6,o(_0x14050e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e336c=this['editor'],_0x149dab=_0x5e336c['locale'];_0x5e336c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ccda=>{if('formatBlock'!=_0x29ccda['type']&&'formatInline'!=_0x29ccda['type'])return;const {data:_0x41a9b7}=_0x29ccda;return _0x41a9b7&&'style'===_0x41a9b7['commandName']?_0x41a9b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x149dab,'*Set\x20format:*\x20%0',_0x41a9b7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x149dab,'*Remove\x20format:*\x20%0',_0x41a9b7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3d817a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5b992b){super(_0x5b992b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x8b4b54=this['editor'],_0x45d73a=_0x8b4b54['model']['document']['selection'];if(!_0x8b4b54['plugins']['has']('TableEditing'))return;const _0x3366b3=_0x8b4b54['locale'],_0x469c01=_0x8b4b54['plugins']['get']('TrackChangesEditing'),_0x5b0056=_0x8b4b54['plugins']['get']('TableUtils');_0x469c01['descriptionFactory']['registerElementLabel']('table',_0xe8c57d=>o(_0x3366b3,'ELEMENT_TABLE',_0xe8c57d)),this['_setupColumnsRowsFixing'](),_0x469c01['enableCommand']('insertTable'),_0x469c01['enableCommand']('selectTableRow'),_0x469c01['enableCommand']('selectTableColumn');for(const _0x27e490 of['insertTableRowAbove','insertTableRowBelow']){const _0xbe725=_0x8b4b54['commands']['get'](_0x27e490);_0x469c01['enableCommand'](_0x27e490,_0x4cf58f=>{_0x8b4b54['model']['change'](_0xe64159=>{_0x4cf58f();const _0x1a7b2='above'===_0xbe725['order'],_0x2c1f9a=_0x5b0056['getSelectionAffectedTableCells'](_0x45d73a),_0x272ef1=_0x5b0056['getRowIndexes'](_0x2c1f9a),_0xa45a00=_0x1a7b2?_0x272ef1['first']-0x1:_0x272ef1['last']+0x1,_0x33a234=_0x2c1f9a[0x0]['findAncestor']('table'),_0x4b98cc=_0x5b0056['createTableWalker'](_0x33a234,{'startRow':_0xa45a00,'endRow':_0xa45a00}),_0x16309e=Array['from'](_0x4b98cc)['map'](_0x9e72e0=>_0xe64159['createRangeOn'](_0x9e72e0['cell']));_0x469c01['markMultiRangeInsertion'](_0x16309e,'tableRow');});});}for(const _0x5d8547 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1dee6c=_0x8b4b54['commands']['get'](_0x5d8547);_0x469c01['enableCommand'](_0x5d8547,_0x3ffbe5=>{_0x8b4b54['model']['change'](_0x1d6e99=>{_0x3ffbe5();const _0x59084e='left'===_0x1dee6c['order'],_0x37bad1=_0x5b0056['getSelectionAffectedTableCells'](_0x45d73a),_0x5b9311=_0x5b0056['getColumnIndexes'](_0x37bad1),_0x322d5f=_0x59084e?_0x5b9311['first']-0x1:_0x5b9311['last']+0x1,_0x499e3e=_0x37bad1[0x0]['findAncestor']('table'),_0xcb928a=_0x5b0056['createTableWalker'](_0x499e3e,{'startRow':0x0,'column':_0x322d5f,'includeAllSlots':!0x1}),_0x5a0983=Array['from'](_0xcb928a)['map'](_0x34938a=>_0x1d6e99['createRangeOn'](_0x34938a['cell']));_0x469c01['markMultiRangeInsertion'](_0x5a0983,'tableColumn');});});}for(const _0x37becf of['removeTableRow','removeTableColumn']){const _0x1f481a=_0x37becf['substr'](0xb),_0x2e3d76=_0x1f481a['toLowerCase'](),_0x29e8a9=_0x2e3d76['substr'](0x0,0x3)+'span',_0x4f3ce9='table'+_0x1f481a,_0x1663a3='min'+_0x1f481a,_0x45f43a='max'+_0x1f481a;_0x469c01['enableCommand'](_0x37becf,()=>{_0x8b4b54['model']['change'](_0x22227a=>{const _0x5a0b54=_0x5b0056['getSelectionAffectedTableCells'](_0x45d73a),_0x2749f7=_0x5a0b54[0x0]['findAncestor']('table');let _0x475cb6;if('removeTableRow'==_0x37becf){const _0x428f5a=_0x5b0056['getRowIndexes'](_0x5a0b54);_0x475cb6={'startRow':_0x428f5a['first'],'endRow':_0x428f5a['last'],'includeAllSlots':!0x0};}else{const _0x128f4e=_0x5b0056['getColumnIndexes'](_0x5a0b54);_0x475cb6={'startColumn':_0x128f4e['first'],'endColumn':_0x128f4e['last'],'includeAllSlots':!0x0};}const _0x509c9c=_0x5b0056['createTableWalker'](_0x2749f7,_0x475cb6),_0x2f3ed8=Array['from'](_0x509c9c)['map'](({cell:_0x27ca59})=>_0x27ca59),_0x765a6f=Ne(_0x2f3ed8['filter'](_0x25735a=>_0x25735a['hasAttribute'](_0x29e8a9))),_0x144b93=Ne(_0x2f3ed8['filter'](_0x13dc6e=>!_0x13dc6e['hasAttribute'](_0x29e8a9)))['map'](_0x54714e=>_0x22227a['createRangeOn'](_0x54714e)),_0x10ea38=_0x469c01['markMultiRangeDeletion'](_0x144b93,_0x4f3ce9);if(_0x10ea38&&('tableRow'==_0x10ea38['subType']||'tableColumn'==_0x10ea38['subType'])){const _0x4de2ff=this['_getSuggestionCoords'](_0x10ea38);for(const _0x211852 of _0x765a6f){const _0x2d72c3=_0x22227a['createRangeOn'](_0x211852),_0x410a66=_0x5b0056['getCellLocation'](_0x211852),_0x44df7b=_0x211852['getAttribute'](_0x29e8a9)-0x1,_0x16658b=_0x4de2ff[_0x1663a3],_0x3100fa=_0x4de2ff[_0x45f43a];_0x16658b<=_0x410a66[_0x2e3d76]&&_0x410a66[_0x2e3d76]+_0x44df7b<=_0x3100fa&&_0x10ea38['addRange'](_0x2d72c3);}}});});}function _0x424f58(_0x354032){const _0x179117=Array['from'](_0x45d73a['getRanges']())['map'](_0x442aa9=>_0x25966c['fromRange'](_0x442aa9));_0x8b4b54['model']['change'](_0xc03c5d=>{const _0x2f8de1=_0xc03c5d['batch'];_0x354032=_0x354032['filter'](_0x30c9ae=>'$graveyard'!=_0x30c9ae['root']['rootName']),_0xc03c5d['setSelection'](_0x354032),_0x8b4b54['commands']['get']('removeTableRow')['refresh'](),_0x8b4b54['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x8b4b54['model']['enqueueChange'](()=>{_0x8b4b54['model']['enqueueChange'](_0x2f8de1,_0x20562b=>{const _0x157469=_0x179117['filter'](_0x2858cb=>'$graveyard'!=_0x2858cb['root']['rootName']);_0x157469['length']>0x0&&_0x20562b['setSelection'](_0x157469);for(const _0x53388a of _0x179117)_0x53388a['detach']();});});});}function _0xb32139(_0x40b5f9){_0x8b4b54['model']['change'](_0x358ac6=>{const _0x34c789=Array['from'](_0x45d73a['getRanges']())['map'](_0xcad628=>_0x25966c['fromRange'](_0xcad628)),_0x1ea1fe=[];for(const _0x127774 of _0x40b5f9)for(const _0x3e942 of _0x127774['getItems']({'shallow':!0x0}))_0x1ea1fe['push'](_0x3e942);for(const _0x20e1f7 of _0x1ea1fe)'$graveyard'!=_0x20e1f7['root']['rootName']&&(_0x358ac6['setSelection'](_0x358ac6['createPositionAt'](_0x20e1f7,0x0)),_0x8b4b54['commands']['get']('removeTableColumn')['refresh'](),_0x8b4b54['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c0e8f=_0x34c789['filter'](_0x13c413=>'$graveyard'!=_0x13c413['root']['rootName']);_0x4c0e8f['length']>0x0&&_0x358ac6['setSelection'](_0x4c0e8f);for(const _0x606631 of _0x34c789)_0x606631['detach']();});}function _0x248514(_0x1c56ce,_0x5eefe9){return _0x5eefe9['every'](_0x50642a=>_0x1c56ce['some'](_0x3f9666=>_0x3f9666['end']['isEqual'](_0x50642a['start'])||_0x50642a['end']['isEqual'](_0x3f9666['start'])));}function _0x4fdcd7(_0x40aef5,_0x23e295){return!_0x40aef5['some'](_0x506a01=>_0x23e295['some'](_0x5a3b6c=>_0x506a01['isIntersecting'](_0x5a3b6c)))&&_0x40aef5['some'](_0x2c2ac9=>_0x23e295['some'](_0x5d021e=>_0x2c2ac9['end']['isTouching'](_0x5d021e['start'])));}_0x8b4b54['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x19ec8e,_0x29d815,_0x1bbeca)=>{if(!_0x1bbeca['options']['showSuggestionHighlights'])return;const _0x37b37d=_0x29d815['item'];if(!_0x37b37d)return;const _0x3fbd05=_0x1bbeca['mapper']['toViewElement'](_0x37b37d);function _0x7686b1(_0x428524){return Array['isArray'](_0x428524)?_0x428524:[_0x428524];}_0x3fbd05&&'tableCell'===_0x37b37d['name']&&_0x5a0d08(_0x3fbd05,_0x1bbeca['writer'],(_0x5432fc,_0x386b00,_0x16237d)=>_0x16237d['addClass'](_0x7686b1(_0x386b00['classes']),_0x5432fc),(_0x2677e2,_0x2698c7,_0x389ae6)=>_0x389ae6['removeClass'](_0x7686b1(_0x2698c7['classes']),_0x2677e2));},{'priority':'highest'}),_0x469c01['descriptionFactory']['registerDescriptionCallback'](_0x236fa5=>{if('insertion'!=_0x236fa5['type']&&'deletion'!=_0x236fa5['type'])return;const _0x569271=_0x236fa5['getContainedElement']();if(null!=_0x569271&&_0x569271['is']('element','table')){if('insertion'==_0x236fa5['type']){const _0x595020=_0x236fa5['getItems']()['filter'](_0x1103d7=>_0x1103d7['is']('$textProxy'))['map'](_0x3802f2=>_0x3802f2['data']);if(_0x595020['length'])return{'type':'insertion','content':o(_0x3366b3,'*Insert:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x595020['join']('\x20')+'\x22'))};}if('deletion'==_0x236fa5['type']){const _0x264d77=_0x236fa5['getItems']()['filter'](_0x2bb25c=>_0x2bb25c['is']('$textProxy'))['map'](_0x1c4191=>_0x1c4191['data']);if(_0x264d77['length'])return{'type':'deletion','content':o(_0x3366b3,'*Remove:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x264d77['join']('\x20')+'\x22'))};}}}),_0x469c01['descriptionFactory']['registerDescriptionCallback'](_0x3079ba=>{if('tableRow'==_0x3079ba['subType']){const _0x52ae33=_0x3079ba['getItems']()['filter'](_0x2601c4=>_0x2601c4['is']('$textProxy'))['map'](_0x1cedb3=>_0x1cedb3['data']),_0x578d4c=this['_getSuggestionCoords'](_0x3079ba),_0x1ac68e=_0x578d4c['maxRow']-_0x578d4c['minRow']+0x1;if('insertion'==_0x3079ba['type'])return _0x52ae33['length']?{'type':'insertion','content':o(_0x3366b3,'*Insert:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ac68e,'\x22'+_0x52ae33['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3366b3,'*Insert:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_ROW',_0x1ac68e))};if('deletion'==_0x3079ba['type'])return _0x52ae33['length']?{'type':'deletion','content':o(_0x3366b3,'*Remove:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ac68e,'\x22'+_0x52ae33['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3366b3,'*Remove:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_ROW',_0x1ac68e))};}if('tableColumn'==_0x3079ba['subType']){const _0x1249e6=_0x3079ba['getItems']()['filter'](_0x4aa6e1=>_0x4aa6e1['is']('$textProxy'))['map'](_0x3e3d9c=>_0x3e3d9c['data']),_0x484876=this['_getSuggestionCoords'](_0x3079ba),_0x361e31=_0x484876['maxColumn']-_0x484876['minColumn']+0x1;if('insertion'==_0x3079ba['type'])return _0x1249e6['length']?{'type':'insertion','content':o(_0x3366b3,'*Insert:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x361e31,'\x22'+_0x1249e6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3366b3,'*Insert:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_COLUMN',_0x361e31))};if('deletion'==_0x3079ba['type'])return _0x1249e6['length']?{'type':'deletion','content':o(_0x3366b3,'*Remove:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x361e31,'\x22'+_0x1249e6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3366b3,'*Remove:*\x20%0',o(_0x3366b3,'ELEMENT_TABLE_COLUMN',_0x361e31))};}}),_0x469c01['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x424f58),_0x469c01['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x424f58),_0x469c01['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xb32139),_0x469c01['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xb32139),_0x469c01['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x248514),_0x469c01['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x248514),_0x469c01['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4fdcd7),_0x469c01['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4fdcd7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x51998b=this['editor'],_0x2b2843=_0x51998b['model']['document']['selection'];return(_0x5596e5,_0x13db33)=>{_0x51998b['model']['change'](_0x578c67=>{const {commandName:_0x33aa66,commandParams:_0x2ba9cf}=_0x13db33;let _0x45a787=_0x5596e5[0x0]['end']['nodeBefore'];_0x2ba9cf&&_0x2ba9cf[0x0]&&!0x1===_0x2ba9cf[0x0]['forceValue']&&(_0x45a787=_0x5596e5[0x0]['start']['nodeAfter']);const _0x4a7a9c=_0x578c67['createRangeIn'](_0x45a787);if('$graveyard'==_0x4a7a9c['root']['rootName'])return;const _0x64f04f=Array['from'](_0x2b2843['getRanges']())['map'](_0x510c5e=>_0x25966c['fromRange'](_0x510c5e));_0x578c67['setSelection'](_0x4a7a9c),_0x51998b['commands']['get'](_0x33aa66)['refresh'](),_0x2ba9cf['push']({'forceDefaultExecution':!0x0}),_0x51998b['execute'](_0x33aa66,..._0x2ba9cf);const _0x1c4dd6=_0x64f04f['filter'](_0x4b91e9=>'$graveyard'!=_0x4b91e9['root']['rootName']);_0x1c4dd6['length']>0x0&&_0x578c67['setSelection'](_0x1c4dd6);for(const _0x29320b of _0x64f04f)_0x29320b['detach']();});};}['_getCoordsForCells'](_0x23d1f5){const _0x1f2ebe=this['editor']['plugins']['get']('TableUtils');let _0x410e84=Number['MAX_SAFE_INTEGER'],_0x4058c5=Number['MIN_SAFE_INTEGER'],_0x2cc715=Number['MAX_SAFE_INTEGER'],_0x2d9ac3=Number['MIN_SAFE_INTEGER'];for(const _0x5d0a29 of _0x23d1f5){if('$graveyard'==_0x5d0a29['root']['rootName'])continue;const {row:_0x20b578,column:_0x35672e}=_0x1f2ebe['getCellLocation'](_0x5d0a29),_0x16f7c1=_0x5d0a29['hasAttribute']('rowspan')?_0x5d0a29['getAttribute']('rowspan')-0x1:0x0,_0x54d4bf=_0x5d0a29['hasAttribute']('colspan')?_0x5d0a29['getAttribute']('colspan')-0x1:0x0;_0x410e84=_0x20b578<_0x410e84?_0x20b578:_0x410e84,_0x4058c5=_0x20b578+_0x16f7c1>_0x4058c5?_0x20b578+_0x16f7c1:_0x4058c5,_0x2cc715=_0x35672e<_0x2cc715?_0x35672e:_0x2cc715,_0x2d9ac3=_0x35672e+_0x54d4bf>_0x2d9ac3?_0x35672e+_0x54d4bf:_0x2d9ac3;}return{'minRow':_0x410e84,'maxRow':_0x4058c5,'minColumn':_0x2cc715,'maxColumn':_0x2d9ac3};}['_setupColumnsRowsFixing'](){const _0x528cb1=this['editor'],_0x132730=_0x528cb1['plugins']['get']('TrackChangesEditing'),_0x1e0fd8=_0x528cb1['plugins']['get']('TableUtils');_0x528cb1['model']['document']['on']('change:data',()=>{const _0x3d96f9=Array['from'](_0x528cb1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x241040,data:_0x5cbc8f}of _0x3d96f9){const {group:_0x388b43,id:_0xd7bccf,subType:_0x11ef8f}=_0x132730['_splitMarkerName'](_0x241040);if('suggestion'!=_0x388b43)continue;if(null!=_0x5cbc8f['oldRange'])continue;const _0x622943=_0x132730['getSuggestion'](_0xd7bccf);this['_tablePostFixingSubtypes']['includes'](_0x11ef8f)&&this['_tableSuggestions']['add'](_0x622943);}},{'priority':'low'});const _0x2ee4c8=(_0xf93dda,_0x38bdac)=>{let _0x3f5e9d=!0x1;const _0x354238=_0x38bdac['createRangeOn'](_0xf93dda),_0x3a7cb7=_0xf93dda['findAncestor']('table'),_0xe28f00=_0x1e0fd8['getCellLocation'](_0xf93dda);for(const _0x23e710 of this['_tableSuggestions']){const _0x34546e=_0x23e710['subType'],_0x4f1a4e=_0x34546e['startsWith']('tablePaste'),_0x4f706d=_0x34546e['substr'](_0x4f1a4e?0xa:0x5),_0x3f257e=_0x4f706d['toLowerCase'](),_0x5d18d6=_0x3f257e['substr'](0x0,0x3)+'span',_0x59b789='min'+_0x4f706d,_0x3c3225='max'+_0x4f706d;if(!_0x23e710['isInContent'])continue;if(_0x3a7cb7!=_0x23e710['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x23e710['isIntersectingWithRange'](_0x354238))continue;const _0x10fe89=_0xf93dda['hasAttribute'](_0x5d18d6)?_0xf93dda['getAttribute'](_0x5d18d6)-0x1:0x0,_0x4a422e=this['_getSuggestionCoords'](_0x23e710),_0x376d89=_0x4a422e[_0x59b789],_0x4cff30=_0x4a422e[_0x3c3225];_0x376d89<=_0xe28f00[_0x3f257e]&&_0xe28f00[_0x3f257e]+_0x10fe89<=_0x4cff30&&(_0x23e710['addRange'](_0x354238),_0x3f5e9d=!0x0);}return _0x3f5e9d;};_0x528cb1['model']['document']['registerPostFixer'](_0xdc1c00=>{let _0x532094=!0x1;for(const _0x56f66e of _0x528cb1['model']['document']['differ']['getChanges']())if('insert'==_0x56f66e['type']){if('tableRow'==_0x56f66e['name']){for(const _0x33b593 of _0x56f66e['position']['nodeAfter']['getChildren']())_0x532094=_0x532094||_0x2ee4c8(_0x33b593,_0xdc1c00);}else'tableCell'==_0x56f66e['name']&&(_0x532094=_0x532094||_0x2ee4c8(_0x56f66e['position']['nodeAfter'],_0xdc1c00));}return _0x532094;});}['_getSuggestionCoords'](_0x59c4aa){return this['_getCoordsForCells'](_0x59c4aa['getRanges']()['map'](_0x48b7d7=>_0x48b7d7['start']['nodeAfter']));}}function Ne(_0x11311e){return Array['from'](new Set(_0x11311e)['values']());}class Nt extends _0x3d817a{static get['requires'](){return[Ct];}['afterInit'](){const _0x11c77d=this['editor'],_0x2717ca=_0x11c77d['model']['document']['selection'],_0x2d49d8=_0x11c77d['locale'];if(!_0x11c77d['plugins']['has']('TableEditing'))return;const _0x3274cb=_0x11c77d['plugins']['get']('TrackChangesEditing'),_0x4a3de2=_0x11c77d['plugins']['get']('TableUtils'),_0x25a9f7=_0x11c77d['plugins']['get'](Ct);_0x25a9f7['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3274cb['enableCommand']('mergeTableCells',()=>{const _0x561a71=_0x4a3de2['getSelectionAffectedTableCells'](_0x11c77d['model']['document']['selection']);_0x11c77d['model']['change'](()=>{_0x3274cb['markMultiRangeBlockFormat'](_0x561a71,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x11c77d['commands']['get']('mergeTableCells')['on']('execute',(_0x257dbd,_0x37f913)=>{_0x11c77d['commands']['get']('trackChanges')['value']&&(_0x37f913['length']>0x0&&_0x37f913[_0x37f913['length']-0x1]&&_0x37f913[_0x37f913['length']-0x1]['forceDefaultExecution']||_0x3274cb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x257dbd['stop']());},{'priority':'highest'});for(const _0x515e90 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x35748f=_0x11c77d['commands']['get'](_0x515e90);_0x3274cb['enableCommand'](_0x515e90,()=>{const _0x52e6a3=_0x11c77d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24d48c=>_0x24d48c['is']('element','tableCell')),_0x2c7583=_0x35748f['value'];_0x11c77d['model']['change'](()=>{_0x3274cb['markMultiRangeBlockFormat']([_0x52e6a3,_0x2c7583],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x501427 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xa138f7=_0x11c77d['commands']['get'](_0x501427);_0x3274cb['enableCommand'](_0x501427,()=>{const _0x2bc2b1=_0x4a3de2['getSelectionAffectedTableCells'](_0x11c77d['model']['document']['selection'])[0x0],_0xdad558=_0x2bc2b1['findAncestor']('table'),{column:_0x12f956,row:_0x29be3f}=_0x4a3de2['getCellLocation'](_0x2bc2b1);let _0x5caa1b=[];if('horizontally'==_0xa138f7['direction']){const _0x19e93a=_0x4a3de2['createTableWalker'](_0xdad558,{'startRow':_0x29be3f,'endRow':_0x29be3f,'includeAllSlots':!0x0});_0x5caa1b=Array['from'](_0x19e93a)['map'](_0x179e02=>_0x179e02['cell']);}else{const _0x167a46=_0x4a3de2['createTableWalker'](_0xdad558,{'column':_0x12f956,'includeAllSlots':!0x0});_0x5caa1b=Array['from'](_0x167a46)['map'](_0x45d10d=>_0x45d10d['cell']);}_0x11c77d['model']['change'](_0x4e6b68=>{_0x3274cb['markBlockFormat'](_0x4e6b68['createRangeOn'](_0x2bc2b1),{'commandName':_0x501427,'commandParams':[]},_0x5caa1b,_0x501427);});});}_0x3274cb['descriptionFactory']['registerDescriptionCallback'](_0x515113=>{if('formatBlock'!=_0x515113['type']&&'formatInline'!=_0x515113['type'])return;const {data:_0x289121}=_0x515113;return _0x289121&&'mergeTableCells'==_0x289121['commandName']?{'type':'format','content':o(_0x2d49d8,'*Merge\x20cells*')}:void 0x0;}),_0x3274cb['descriptionFactory']['registerDescriptionCallback'](_0x57e420=>{if('formatBlock'!=_0x57e420['type']&&'formatInline'!=_0x57e420['type'])return;const {data:_0x294b7a}=_0x57e420;return _0x294b7a?'splitTableCellVertically'==_0x294b7a['commandName']?{'type':'format','content':o(_0x2d49d8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x294b7a['commandName']?{'type':'format','content':o(_0x2d49d8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4b0a1c=_0x25a9f7['_acceptFormatSuggestionCallbackFactory']();for(const _0x494f69 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3274cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x494f69,'accept',_0x4b0a1c);for(const _0x2fcc13 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3274cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fcc13,'accept',_0x4b0a1c);_0x3274cb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5c7a70=>{_0x11c77d['model']['change'](_0x233815=>{const _0x47f5fd=Array['from'](_0x2717ca['getRanges']())['map'](_0xb2c75=>_0x25966c['fromRange'](_0xb2c75));_0x233815['setSelection'](_0x5c7a70),_0x11c77d['commands']['get']('mergeTableCells')['refresh'](),_0x11c77d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55d6b9=_0x47f5fd['filter'](_0x14dcc0=>'$graveyard'!=_0x14dcc0['root']['rootName']);_0x55d6b9['length']>0x0&&_0x233815['setSelection'](_0x55d6b9);for(const _0x4fc911 of _0x47f5fd)_0x4fc911['detach']();});});for(const _0x45aef9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58f7b1=_0x11c77d['commands']['get'](_0x45aef9);_0x58f7b1['on']('set:isEnabled',(_0x521528,_0x1d75a7,_0x48b52e)=>{if(_0x48b52e){const _0x37ddfb=_0x11c77d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18c12e=>_0x18c12e['is']('element','tableCell'));this['_areMergableCells'](_0x58f7b1['value'],_0x37ddfb)||(_0x521528['return']=!0x1,_0x521528['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x124c49=this['editor']['commands']['get']('mergeTableCells'),_0x145742=this['editor']['plugins']['get']('TableUtils');if(!_0x124c49['isEnabled'])return!0x1;const _0x44721e=_0x145742['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x288079 of _0x44721e)for(const _0x5561fc of _0x44721e)if(_0x288079!=_0x5561fc&&!this['_areMergableCells'](_0x288079,_0x5561fc))return!0x1;return!0x0;}['_areMergableCells'](_0x27a2f3,_0x3333f1){const _0x144fdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15d6a6=this['editor']['model']['createRangeOn'](_0x27a2f3),_0x432e6b=this['editor']['model']['createRangeOn'](_0x3333f1),_0x21bf02=new Set(),_0x3a7640=new Set();for(const _0x532fe5 of _0x144fdd['getSuggestions']())if(('insertion'==_0x532fe5['type']||'deletion'==_0x532fe5['type']||'mergeTableCells'==_0x532fe5['subType'])&&_0x532fe5['isInContent']){for(const _0x13f69a of _0x532fe5['getRanges']())_0x13f69a['containsRange'](_0x15d6a6,!0x0)&&_0x21bf02['add'](_0x532fe5['type']+':'+_0x532fe5['author']['id']),_0x13f69a['containsRange'](_0x432e6b,!0x0)&&_0x3a7640['add'](_0x532fe5['type']+':'+_0x532fe5['author']['id']);}if(_0x21bf02['size']!=_0x3a7640['size'])return!0x1;for(const _0x19d328 of _0x21bf02)if(!_0x3a7640['has'](_0x19d328))return!0x1;return!0x0;}}class Dt extends _0x3d817a{static get['requires'](){return[Ct];}['afterInit'](){const _0x278c1f=this['editor'];if(!_0x278c1f['plugins']['has']('TableEditing'))return;const _0x4e9eaf=_0x278c1f['locale'],_0x3e51b6=_0x278c1f['plugins']['get']('TrackChangesEditing');_0x3e51b6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3e51b6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3e51b6['registerBlockAttribute']('headingRows'),_0x3e51b6['registerBlockAttribute']('headingColumns'),_0x3e51b6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4e9eaf,'FORMAT_HEADER_ROW')),_0x3e51b6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4e9eaf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x508026=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2957db=this['editor']['plugins']['get']('TableUtils'),_0x57c946=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x52cb4f({showActiveMarker:_0x5d3f2f=!0x0,setDataAttribute:_0x1b0aa1=!0x0}={}){return(_0x4d5888,_0x1f9cfc,_0x2248f0)=>{const {type:_0x2a2d42,id:_0x2abbce}=_0x508026['_splitMarkerName'](_0x1f9cfc['markerName']),_0x51d045=_0x508026['getSuggestion'](_0x2abbce),_0xa94e92=_0x51d045['data'];if('formatBlock'!=_0x51d045['type']||!_0xa94e92||'setTableColumnHeader'!=_0xa94e92['commandName'])return;if(_0x1f9cfc['item'])return void _0x4d5888['stop']();if(!_0x2248f0['consumable']['consume'](_0x1f9cfc['markerRange'],_0x4d5888['name']))return;const _0x5ddca3=_0x1f9cfc['markerRange']['start']['nodeAfter'],_0xf1f8b2=_0x1f9cfc['markerRange']['end']['nodeBefore'],_0x5c675c=_0x5ddca3['parent']['parent'],{column:_0x16cdaa}=_0x2957db['getCellLocation'](_0x5ddca3),{column:_0x2a2f8e}=_0x2957db['getCellLocation'](_0xf1f8b2);for(let _0xe356f3=_0x16cdaa;_0xe356f3<=_0x2a2f8e;_0xe356f3++){const _0x1c5f5f=_0x2957db['createTableWalker'](_0x5c675c,{'column':_0xe356f3,'includeAllSlots':!0x1});for(const _0x5bf186 of _0x1c5f5f){const _0x4ed932=_0x5bf186['cell'],_0x5b2b66=_0x2248f0['mapper']['toViewElement'](_0x4ed932);_0x2248f0['writer']['addClass']('ck-suggestion-marker-'+_0x2a2d42,_0x5b2b66),_0x1b0aa1&&_0x2248f0['writer']['setAttribute']('data-suggestion',_0x2abbce,_0x5b2b66),_0x2248f0['mapper']['bindElementToMarker'](_0x5b2b66,_0x1f9cfc['markerName']),_0x5d3f2f&&(_0x508026['activeMarkers']['includes'](_0x1f9cfc['markerName'])?_0x2248f0['writer']['addClass']('ck-suggestion-marker--active',_0x5b2b66):_0x2248f0['writer']['removeClass']('ck-suggestion-marker--active',_0x5b2b66));}}};}_0x508026['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x57c946),_0x508026['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x57c946),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x52cb4f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x83bbed,_0x121670,_0x1b9b62)=>{_0x1b9b62['options']['showSuggestionHighlights']&&_0x52cb4f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x83bbed,_0x121670,_0x1b9b62);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1b748a,_0x434c85,_0x210171)=>{const {type:_0x57cfa1,id:_0xe3b1b8}=_0x508026['_splitMarkerName'](_0x434c85['markerName']),_0x270eea=_0x508026['getSuggestion'](_0xe3b1b8),_0x21639c=_0x270eea['data'];if('formatBlock'!=_0x270eea['type']||!_0x21639c||'setTableColumnHeader'!=_0x21639c['commandName'])return;const _0x1021c7=_0x210171['mapper']['markerNameToElements'](_0x434c85['markerName']);if(_0x1021c7){for(const _0x26e1e3 of _0x1021c7)_0x210171['writer']['removeClass']('ck-suggestion-marker-'+_0x57cfa1,_0x26e1e3),_0x210171['writer']['removeClass']('ck-suggestion-marker--active',_0x26e1e3),_0x210171['writer']['removeAttribute']('data-suggestion',_0x26e1e3),_0x210171['mapper']['unbindElementFromMarkerName'](_0x26e1e3,_0x434c85['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34bb8c=this['editor'],_0x44b7f4=_0x34bb8c['locale'];function _0x33f686(_0x16a97b){return{'type':'format','content':o(_0x44b7f4,'*Format:*\x20%0',_0x16a97b)};}_0x34bb8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x534441=>{if('formatBlock'!=_0x534441['type'])return;const {data:_0xffb57e}=_0x534441;if(_0xffb57e){if('setTableRowHeader'==_0xffb57e['commandName']){const _0x305ba3=_0xffb57e['commandParams'][0x0]['forceValue'];return _0x33f686(o(_0x44b7f4,_0x305ba3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xffb57e['commandName']){const _0x4c6975=_0xffb57e['commandParams'][0x0]['forceValue'];return _0x33f686(o(_0x44b7f4,_0x4c6975?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4df859=>[_0x4df859,null]));class Mt extends _0x3d817a{static get['requires'](){return[Ct];}['afterInit'](){const _0x4b0bb6=this['editor'];if(!_0x4b0bb6['plugins']['has']('TableClipboard'))return;const _0x501ca8=_0x4b0bb6['plugins']['get']('TrackChangesEditing'),_0x1852e2=_0x4b0bb6['plugins']['get']('TableUtils'),_0x257f81=_0x4b0bb6['plugins']['get'](Ct),_0x4f01c1=_0x4b0bb6['plugins']['get']('TableClipboard');_0x257f81['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4b0bb6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4b0bb6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4b4de8=null;_0x4b0bb6['model']['on']('insertContent',(_0x3db473,_0xca7298)=>{const [_0xe8c0a9,_0x12f4f4]=_0xca7298,_0x1592e0=_0xca7298[_0xca7298['length']-0x1];_0x1592e0&&_0x1592e0['forceDefaultExecution']||_0x501ca8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xe1c674,_0x58ac41,_0x3d9222,_0x1b6949,_0x5c143f){if(_0x58ac41&&!_0x58ac41['is']('documentSelection'))return!0x1;const _0x346b50=_0x5c143f['getTableIfOnlyTableInContent'](_0xe1c674,_0x3d9222);if(!_0x346b50||!Ue(_0x346b50,void 0x0,_0x1b6949))return!0x1;const _0x46c3ad=_0x1b6949['getSelectionAffectedTableCells'](_0x3d9222['document']['selection']);if(!_0x46c3ad['length'])return!0x1;const _0x412806=_0x46c3ad[0x0]['findAncestor']('table'),_0x53951e=_0x1b6949['getRowIndexes'](_0x46c3ad),_0x50e1e6=_0x1b6949['getColumnIndexes'](_0x46c3ad),_0x443a1c={'startRow':_0x53951e['first'],'endRow':_0x53951e['last'],'startColumn':_0x50e1e6['first'],'endColumn':_0x50e1e6['last']};return 0x1==_0x46c3ad['length']&&(_0x443a1c['endRow']+=_0x1b6949['getRows'](_0x346b50)-0x1,_0x443a1c['endColumn']+=_0x1b6949['getColumns'](_0x346b50)-0x1),Ue(_0x412806,_0x443a1c,_0x1b6949);}(_0xe8c0a9,_0x12f4f4,_0x4b0bb6['model'],_0x1852e2,_0x4f01c1)&&(_0x3db473['stop'](),_0x4b4de8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4b0bb6['model']['change'](()=>{_0x4b0bb6['model']['insertContent'](_0xca7298[0x0],_0xca7298[0x1],_0xca7298[0x2],{'forceDefaultExecution':!0x0});const _0x2e5037=_0x16cdcd(),{rowInsertionRanges:_0x26f5ea,columnInsertionRanges:_0x3da178,insertionRanges:_0x59e9cf,deletionRanges:_0x183666,cells:_0x57023a}=_0x4b4de8;_0x26f5ea['length']&&_0x501ca8['markMultiRangeInsertion'](_0x26f5ea,'tablePasteRow',{'tablePasteChainId':_0x2e5037}),_0x3da178['length']&&_0x501ca8['markMultiRangeInsertion'](_0x3da178,'tablePasteColumn',{'tablePasteChainId':_0x2e5037}),_0x59e9cf['length']&&(_0x501ca8['markMultiRangeInsertion'](_0x59e9cf,'tablePaste',{'tablePasteChainId':_0x2e5037,'skipNestingCheck':!0x0}),_0x59e9cf['forEach'](_0x1dfcfb=>_0x1dfcfb['detach']?.())),_0x183666['length']&&(_0x501ca8['markMultiRangeDeletion'](_0x183666,'tablePaste',{'tablePasteChainId':_0x2e5037,'skipNestingCheck':!0x0}),_0x183666['forEach'](_0x2c0bf0=>_0x2c0bf0['detach']?.()));const _0x4662ce=_0x501ca8['markMultiRangeBlockFormat'](_0x57023a['map'](({element:_0x243705})=>_0x243705),{'formatGroupId':_0x16cdcd()},[],'tablePasteCell',{'tablePasteChainId':_0x2e5037});if(_0x4662ce){const _0x3f62fd=_0x4662ce['getMarkers'](),_0x152157=[];for(const {element:_0x4c9736,attributes:_0x1b5d92}of _0x57023a){if(!_0x1b5d92)continue;const _0x454076=_0x4b0bb6['model']['createRangeOn'](_0x4c9736),_0x1349f2=_0x3f62fd['find'](_0x2c6766=>_0x2c6766['getRange']()['isEqual'](_0x454076));_0x1349f2&&_0x152157['push']([_0x1349f2['name'],_0x1b5d92]);}_0x152157['length']&&_0x4662ce['setAttribute']('markerAttributes',Object['fromEntries'](_0x152157));}_0x4b4de8=null;}));},{'priority':_0x50574c['high']+0xa}),_0x4b0bb6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x213740,_0x59e38a)=>{const [_0x284ad3,_0xb626a8,,_0x3809b0]=_0x59e38a;if(!_0x4b4de8)return;_0x213740['stop']();const _0x4c93c0=_0x284ad3['cell'],_0x4d6448=_0xb626a8,_0x253029=Oe(_0x4c93c0),_0x39810f=Oe(_0x4d6448);_0x213740['return']=_0x4c93c0;let _0x3e7f51=null,_0x2de0c0=null;if(_0x39810f||_0x253029){if(_0x253029&&!_0x39810f){_0x3809b0['remove'](_0x4c93c0['getChild'](0x0));for(const _0x399f6b of Array['from'](_0x4d6448['getChildren']()))_0x3809b0['insert'](_0x399f6b,_0x4c93c0,'end');const _0x4ea8dd=_0x4b4de8['rowInsertionIndexes']['includes'](_0x284ad3['row']),_0x886585=_0x4b4de8['columnInsertionIndexes']['includes'](_0x284ad3['column']);_0x4ea8dd||_0x886585||(_0x3e7f51=_0x25966c['fromRange'](_0x3809b0['createRangeIn'](_0x4c93c0)));}else _0x39810f&&!_0x253029&&(_0x2de0c0=_0x3809b0['createRangeIn'](_0x4c93c0));}else{const _0x57f755=_0x3809b0['createElement']('tableCellSuggestion'),_0x2a11bc=_0x3809b0['createElement']('tableCellSuggestion');_0x3809b0['wrap'](_0x3809b0['createRangeIn'](_0x4c93c0),_0x2a11bc),_0x3809b0['insert'](_0x57f755,_0x4c93c0,0x0);for(const _0x8a5bf7 of Array['from'](_0x4d6448['getChildren']()))_0x3809b0['insert'](_0x8a5bf7,_0x57f755,'end');_0x3e7f51=_0x25966c['fromRange'](_0x3809b0['createRangeOn'](_0x57f755)),_0x2de0c0=_0x25966c['fromRange'](_0x3809b0['createRangeOn'](_0x2a11bc));}const _0x23ab25=Array['from'](_0x4d6448['getAttributes']())['filter'](([_0x125f36])=>Be['includes'](_0x125f36));_0x4b4de8['cells']['push']({'element':_0x4c93c0,'attributes':_0x23ab25['length']?Object['fromEntries'](_0x23ab25):null}),_0x3e7f51&&_0x4b4de8['insertionRanges']['push'](_0x3e7f51),_0x2de0c0&&_0x4b4de8['deletionRanges']['push'](_0x2de0c0);},{'priority':'high'}),_0x1852e2['on']('insertColumns',(_0x25778e,_0x4a28fb)=>{const [_0x55e479,_0x5c4e47={}]=_0x4a28fb;if(!_0x4b4de8)return;const _0x235f34=_0x5c4e47['at']||0x0,_0x354da9=_0x5c4e47['columns']||0x1;_0x4b4de8['columnInsertionIndexes']=new Array(_0x354da9)['fill'](_0x235f34)['map']((_0x313b8d,_0x5c45cc)=>_0x313b8d+_0x5c45cc);for(const {cell:_0x559866}of _0x1852e2['createTableWalker'](_0x55e479,{'startColumn':_0x235f34,'endColumn':_0x235f34+_0x354da9-0x1}))_0x4b4de8['columnInsertionRanges']['push'](_0x4b0bb6['model']['createRangeOn'](_0x559866));},{'priority':'low'}),_0x1852e2['on']('insertRows',(_0x171bad,_0x11f3cb)=>{const [_0x50a55a,_0x469c92={}]=_0x11f3cb;if(!_0x4b4de8)return;const _0x25272f=_0x469c92['at']||0x0,_0x197841=_0x469c92['rows']||0x1;_0x4b4de8['rowInsertionIndexes']=new Array(_0x197841)['fill'](_0x25272f)['map']((_0x134c45,_0x54eb84)=>_0x134c45+_0x54eb84);for(const {cell:_0x3c062c}of _0x1852e2['createTableWalker'](_0x50a55a,{'startRow':_0x25272f,'endRow':_0x25272f+_0x197841-0x1}))_0x4b4de8['rowInsertionRanges']['push'](_0x4b0bb6['model']['createRangeOn'](_0x3c062c));},{'priority':'low'}),_0x501ca8['descriptionFactory']['registerDescriptionCallback'](_0x484e73=>{if(_0x484e73['subType']&&_0x484e73['subType']['startsWith']('tablePaste'))return _0x484e73['previous']?{}:{'type':'insertion','content':o(_0x4b0bb6['locale'],'*Replace\x20table\x20cells*')};});const _0x2025ee=()=>!0x1;for(const _0x20c4df of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x501ca8['_suggestionFactory']['registerCustomCallback']('insertion',_0x20c4df,'join',_0x2025ee),_0x501ca8['_suggestionFactory']['registerCustomCallback']('deletion',_0x20c4df,'join',_0x2025ee),_0x501ca8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x20c4df,'join',_0x2025ee);_0x501ca8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2025ee),_0x501ca8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53999a,_0x2d6754,_0x26be07)=>{const _0x49f0cd=_0x53999a['map'](_0xd371e4=>_0xd371e4['getContainedElement']())['filter'](_0xb7f99d=>_0xb7f99d),_0x2c88ec=new Map(_0x49f0cd['map'](_0x5470e3=>[_0x5470e3,null]));if(_0x4b4de8){for(const {element:_0x640fe5,attributes:_0x3ca424}of _0x4b4de8['cells'])_0x3ca424&&_0x2c88ec['set'](_0x640fe5,_0x3ca424);}else{if(_0x26be07&&_0x26be07['markerAttributes'])for(const [_0xe6e384,_0x470829]of Object['entries'](_0x26be07['markerAttributes'])){const _0x3c3ee1=_0x4b0bb6['model']['markers']['get'](_0xe6e384),_0x25946d=_0x3c3ee1?_0x3c3ee1['getRange']()['getContainedElement']():null;_0x25946d&&_0x2c88ec['set'](_0x25946d,_0x470829);}}_0x4b0bb6['model']['change'](_0x5702a9=>{for(const [_0x5dafe0,_0xa4f622]of _0x2c88ec)_0x5702a9['setAttributes']({...xe,..._0xa4f622},_0x5dafe0);});});const _0x46d731=(_0x363c71,_0x4593e3)=>{_0x501ca8['_suggestionFactory']['registerCustomCallback'](_0x363c71,'tablePaste',_0x4593e3,(_0x457f3c,_0x468263,_0x5abeee)=>{_0x4b0bb6['model']['change'](_0x37e1b8=>{const _0x4f9c4b=[];for(const _0x2c6e7b of _0x457f3c){const _0x486109=_0x2c6e7b['start']['nodeAfter'];_0x486109['is']('element','tableCellSuggestion')&&_0x4f9c4b['push'](_0x486109);}_0x501ca8['_suggestionFactory']['getSuggestionCallback'](_0x363c71,null,_0x4593e3)(_0x457f3c,_0x468263,_0x5abeee);for(const _0x3fb99a of _0x4f9c4b)'$graveyard'!=_0x3fb99a['root']['rootName']&&_0x37e1b8['unwrap'](_0x3fb99a);});});};_0x46d731('insertion','accept'),_0x46d731('insertion','discard'),_0x46d731('deletion','accept'),_0x46d731('deletion','discard'),_0x501ca8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x572ffa=>{const _0x59fce3=_0x572ffa['map'](_0x4be141=>_0x4be141['getContainedElement']()),_0x3672e3=_0x59fce3[0x0]['findAncestor']('table'),{minRow:_0x28f98f,maxRow:_0x2118cd}=_0x257f81['_getCoordsForCells'](_0x59fce3);_0x1852e2['removeRows'](_0x3672e3,{'at':_0x28f98f,'rows':_0x2118cd-_0x28f98f+0x1});}),_0x501ca8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd40fc4=>{const _0x457d70=_0xd40fc4['map'](_0x41e19a=>_0x41e19a['getContainedElement']()),_0x3d8485=_0x457d70[0x0]['findAncestor']('table'),{minColumn:_0x443823,maxColumn:_0x19b0a3}=_0x257f81['_getCoordsForCells'](_0x457d70);_0x1852e2['removeColumns'](_0x3d8485,{'at':_0x443823,'columns':_0x19b0a3-_0x443823+0x1});});const _0x838e09=(_0x242d89,_0x158fcb)=>{if(!_0x158fcb['subType']||!_0x158fcb['subType']['startsWith']('tablePaste'))return;const _0x3282a7=_0x158fcb['attributes']['tablePasteChainId'],_0x4ebe30=_0x501ca8['getSuggestions']()['filter'](_0x20ae7f=>_0x20ae7f['isInContent']&&_0x20ae7f['attributes']&&_0x20ae7f['attributes']['tablePasteChainId']==_0x3282a7);_0x4ebe30['length']&&_0x158fcb['getAllAdjacentSuggestions']()['length']!=_0x4ebe30['length']&&_0x4ebe30['reduce']((_0x52bfa6,_0x1ddc1e)=>(_0x52bfa6['next']=_0x1ddc1e,_0x1ddc1e['previous']=_0x52bfa6,_0x1ddc1e));};function _0x57770f(_0x54ccbd,_0x198b60=!0x0){const {id:_0x5324c0,authorId:_0x48b028}=_0x501ca8['_splitMarkerName'](_0x54ccbd['markerName']),_0x24e5b3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44b89a=_0x501ca8['activeMarkers']['includes'](_0x54ccbd['markerName']);return _0x44b89a&&_0x24e5b3['push']('ck-suggestion-marker--active'),{'classes':_0x24e5b3,'attributes':{'data-suggestion':_0x5324c0,'data-author-id':_0x48b028},'priority':_0x44b89a&&_0x198b60?0xbc2:0xbb8};}_0x501ca8['on']('suggestionLoaded',_0x838e09,{'priority':'high'}),_0x501ca8['on']('suggestionUnloaded',_0x838e09,{'priority':'high'}),_0x4b0bb6['model']['document']['registerPostFixer'](()=>{let _0x52fe0b=!0x1;const _0xd80252=Array['from'](_0x4b0bb6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x337096,data:_0x46a158}of _0xd80252){const {group:_0x19edc4,type:_0x3204a1,id:_0x2b40c0}=_0x501ca8['_splitMarkerName'](_0x337096);if('suggestion'!=_0x19edc4||'deletion'!=_0x3204a1||_0x46a158['oldRange'])continue;if(!_0x501ca8['hasSuggestion'](_0x2b40c0))continue;const _0xb62b13=_0x501ca8['getSuggestion'](_0x2b40c0)['getRanges'](),_0x9e2790=_0x4b0bb6['plugins']['get']('Users')['me'];for(const _0x2df1c9 of _0x501ca8['getSuggestions']()){if(!_0x2df1c9['isInContent']||_0x2df1c9['author']!=_0x9e2790)continue;if('formatBlock'!=_0x2df1c9['type']||'tablePasteCell'!=_0x2df1c9['subType'])continue;if(_0x2df1c9['getRanges']()['every'](_0x46a763=>_0xb62b13['some'](_0xecaae0=>_0xecaae0['containsRange'](_0x46a763,!0x0)))){for(const _0x587ab8 of _0x2df1c9['getAllAdjacentSuggestions']())_0x587ab8['isInContent']&&(_0x587ab8['discard'](),_0x52fe0b=!0x0);}}}return _0x52fe0b;}),_0x4b0bb6['model']['document']['registerPostFixer'](_0x1d0dc7=>{const _0x3f52f7=_0x4b0bb6['commands']['get']('redo');if(!_0x3f52f7||!_0x3f52f7['_createdBatches']['has'](_0x1d0dc7['batch']))return!0x1;let _0x52da05=!0x1;const _0x55597a=_0x4b0bb6['plugins']['get']('Users')['me'],_0x47bc49=_0x4b0bb6['model']['document']['differ']['getChanges'](),_0x22e07a=Array['from'](_0x4b0bb6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x44456c,data:_0x26e3ea})=>{const {group:_0x52979f,subType:_0x55709e,authorId:_0x1a1e5a}=_0x501ca8['_splitMarkerName'](_0x44456c);return'suggestion'==_0x52979f&&'tablePaste'==_0x55709e&&_0x1a1e5a==_0x55597a['id']&&!_0x26e3ea['oldRange'];});for(const _0x25717f of _0x47bc49){if('insert'!=_0x25717f['type']||'tableCellSuggestion'!=_0x25717f['name']||0x1!=_0x25717f['length'])continue;const _0x22a235=_0x1d0dc7['createRange'](_0x25717f['position'],_0x25717f['position']['getShiftedBy'](0x1));if(!_0x22e07a['find'](({data:_0x3260e8})=>_0x3260e8['newRange']['isEqual'](_0x22a235))){for(const {name:_0x4d51dd,data:_0x554bbe}of _0x22e07a)if(_0x22a235['containsRange'](_0x554bbe['newRange'])){_0x1d0dc7['updateMarker'](_0x4d51dd,{'range':_0x22a235}),_0x52da05=!0x0;break;}}}return _0x52da05;}),_0x4b0bb6['model']['document']['registerPostFixer'](_0x419002=>{let _0x58d4af=!0x1;const _0x9c9273=_0x4b0bb6['plugins']['get']('Users')['me'],_0x1bd113=_0x501ca8['getSuggestions']()['filter'](_0x5ebc13=>_0x5ebc13['isInContent']&&_0x5ebc13['author']==_0x9c9273),_0x45e518=new Set(),_0x66c4eb=new Set();for(const _0x121370 of _0x1bd113)if('tablePaste'==_0x121370['subType'])for(const _0x39ceb5 of _0x121370['getMarkers']()){const _0x2f86f0=_0x39ceb5['getRange']()['getContainedElement']();if(_0x2f86f0){if(_0x2f86f0['is']('element','tableCellSuggestion')&&Oe(_0x2f86f0)){_0x121370['removeMarker'](_0x39ceb5['name']),_0x45e518['add'](_0x2f86f0),_0x58d4af=!0x0;const _0x2296b0=_0x2f86f0['nextSibling'],_0x32c8f3=_0x2f86f0['previousSibling'],_0x340742=_0x2296b0&&_0x2296b0['is']('element','tableCellSuggestion'),_0x32827e=_0x32c8f3&&_0x32c8f3['is']('element','tableCellSuggestion');_0x340742&&!_0x45e518['has'](_0x2296b0)&&_0x66c4eb['add'](_0x2296b0),_0x32827e&&!_0x45e518['has'](_0x32c8f3)&&_0x66c4eb['add'](_0x32c8f3);}else _0x2f86f0['is']('element','paragraph')&&_0x2f86f0['isEmpty']&&(_0x121370['removeMarker'](_0x39ceb5['name']),_0x58d4af=!0x0);}}else{if('tablePasteCell'==_0x121370['subType']){if(!_0x121370['attributes']||!_0x121370['attributes']['tablePasteChainId'])continue;const _0x415766=_0x121370['attributes']['markerAttributes'];if(_0x415766&&Object['keys'](_0x415766)['length'])continue;const _0x77ab63=_0x121370['attributes']['tablePasteChainId'];let _0x18f16f=!0x0,_0x55a594=!0x0;for(const _0x2893a2 of _0x1bd113)if(_0x2893a2['subType']&&_0x2893a2['subType']['startsWith']('tablePaste')){if(!_0x2893a2['attributes']['tablePasteChainId']){_0x55a594=!0x1;break;}if(_0x2893a2['id']!=_0x121370['id']&&_0x2893a2['attributes']['tablePasteChainId']==_0x77ab63){_0x18f16f=!0x1;break;}}_0x55a594&&_0x18f16f&&(_0x121370['removeMarkers'](),_0x58d4af=!0x0);}}for(const _0x3a95c8 of _0x45e518)_0x419002['remove'](_0x3a95c8);for(const _0x21ae67 of _0x66c4eb)_0x419002['unwrap'](_0x21ae67);return _0x58d4af;}),_0x4b0bb6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xe278d4=>_0x57770f(_0xe278d4),'converterPriority':'high'}),_0x4b0bb6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3ad26f,_0x58a290)=>_0x58a290['options']['showSuggestionHighlights']?_0x57770f(_0x3ad26f,!0x1):null,'converterPriority':'high'});const _0x221716=_0x4b0bb6['editing']['view'];this['listenTo'](_0x221716['document'],'clipboardOutput',(_0x5f4e86,_0x3dadac)=>{const _0x419439=[];for(const _0x195bf7 of _0x221716['createRangeIn'](_0x3dadac['content'])['getItems']())_0x195bf7['is']('element','suggestion-td')&&_0x419439['push'](_0x195bf7);_0x221716['change'](_0x376473=>{for(const _0x406902 of _0x419439)_0x376473['move'](_0x376473['createRangeIn'](_0x406902),_0x376473['createPositionBefore'](_0x406902)),_0x376473['remove'](_0x406902);});});}}function Oe(_0x4353ef){if(_0x4353ef['isEmpty'])return!0x0;const _0x1b2d65=_0x4353ef['getChild'](0x0);return _0x1b2d65['is']('element','paragraph')&&_0x1b2d65['isEmpty'];}function Ue(_0x24a09d,_0x36cbc4={},_0x310172){for(const {isAnchor:_0x3acb9e,cellHeight:_0x359555,cellWidth:_0xf05732}of _0x310172['createTableWalker'](_0x24a09d,{'includeAllSlots':!0x0,..._0x36cbc4}))if(!_0x3acb9e||0x1!=_0x359555||0x1!=_0xf05732)return!0x1;return!0x0;}class $t extends _0x3d817a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x141aa6=this['editor']['plugins']['get']('TrackChangesEditing');_0x141aa6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x141aa6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x141aa6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141aa6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x141aa6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x141aa6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3ffb01,_0x3041cd){const _0x4d677c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50468c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x582ccc=_0x3041cd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x371530=_0x50468c['getColumnGroupElement'](_0x582ccc);let _0x56bec0=_0x371530?_0x50468c['getTableColumnsWidths'](_0x371530):null,_0x131dd3=_0x582ccc['getAttribute']('tableWidth')||null;const _0x324241=_0x3041cd['tableWidth']||_0x131dd3,_0x1daf7f=_0x3041cd['columnWidths']||_0x56bec0,_0xff9ec9=this['editor']['plugins']['get']('Users')['me'];for(const _0x57eab4 of _0x4d677c['getSuggestions']()){const _0x2bd03c=_0x57eab4['getContainedElement']();if('resizeTable'===_0x57eab4['subType']&&_0x2bd03c===_0x582ccc){_0x57eab4['author']!==_0xff9ec9&&_0x57eab4['discard']();const _0x49bce0=_0x57eab4['data']['commandParams'];_0x131dd3=_0x49bce0[0x0]['tableWidth'],_0x56bec0=_0x49bce0[0x0]['columnWidths'];break;}}_0x3ffb01({'table':_0x582ccc,'tableWidth':_0x324241,'columnWidths':_0x1daf7f}),_0x4d677c['markBlockFormat'](_0x582ccc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x131dd3,'columnWidths':_0x56bec0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x8dc192){if('formatBlock'!=_0x8dc192['type']&&'formatInline'!=_0x8dc192['type'])return;const {data:_0xce5bd}=_0x8dc192;if(_0xce5bd&&'resizeTable'===_0xce5bd['formatGroupId']){const _0x47acd2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x47acd2)};}}}class Bt extends _0x3d817a{['afterInit'](){const _0x56ad14=this['editor'];_0x56ad14['plugins']['has']('Template')&&_0x56ad14['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3d817a{['afterInit'](){const _0x862f9b=this['editor'];if(!_0x862f9b['commands']['get']('insertTableOfContents'))return;_0x862f9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x44afaa=_0x862f9b['plugins']['get']('TrackChangesEditing'),_0x334005=_0x862f9b['locale'];_0x44afaa['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16c198=>o(_0x334005,'ELEMENT_TABLE_OF_CONTENTS',_0x16c198));}}class Rt extends _0x3d817a{['afterInit'](){const _0x4b50ec=this['editor'];if(!_0x4b50ec['plugins']['has']('Title'))return;const _0x4c633f=_0x4b50ec['plugins']['get']('TrackChangesEditing');_0x4c633f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4b50ec['locale'],'ELEMENT_TITLE')),_0x4b50ec['model']['document']['registerPostFixer'](_0xe9d524=>{let _0x1c4df7=!0x1;const _0x3a4df8=Array['from'](_0x4b50ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a1119,data:_0x56d443}of _0x3a4df8){const {group:_0xc533de}=_0x4c633f['_splitMarkerName'](_0x2a1119);if('suggestion'!==_0xc533de||!_0x56d443['newRange'])continue;const _0x1d0e52=_0x56d443['newRange'],_0x2318ab=_0x1d0e52['end']['nodeBefore'];if(!_0x2318ab||!_0x2318ab['is']('element','title-content'))continue;if(!_0x1d0e52['start']['isTouching'](_0x1d0e52['end']))continue;const _0x2a8a35=_0x4b50ec['model']['schema']['getNearestSelectionRange'](_0x1d0e52['end'],'forward');if(_0x2a8a35&&_0x2a8a35['isCollapsed']){const _0x19708=_0xe9d524['createRange'](_0x1d0e52['start'],_0x2a8a35['start']);_0x19708['isEqual'](_0x1d0e52)||(_0xe9d524['updateMarker'](_0x2a1119,{'range':_0x19708}),_0x1c4df7=!0x0);}_0x1c4df7||(_0xe9d524['removeMarker'](_0x2a1119),_0x1c4df7=!0x0);}return _0x1c4df7;});}}class Tt extends _0x3d817a{['afterInit'](){const _0x148aab=this['editor'],_0x15319e=_0x148aab['plugins']['get']('TrackChangesEditing');_0x148aab['plugins']['has']('Uploadcare')&&(_0x15319e['enableCommand']('uploadcare'),_0x148aab['plugins']['has']('UploadcareImageEdit')&&(_0x15319e['enableCommand']('uploadcareImageEdit'),_0x15319e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x15319e['registerBlockAttribute']('uploadcareImageId'),_0x15319e['descriptionFactory']['registerDescriptionCallback'](_0x2438f6=>{if('attribute'!=_0x2438f6['type'])return;const {data:_0x5ca5bc}=_0x2438f6;return _0x5ca5bc&&'uploadcareImageId'==_0x5ca5bc['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3d817a{['afterInit'](){const _0x9951e2=this['editor'],_0x1380e6=_0x9951e2['plugins']['get']('TrackChangesEditing');_0x9951e2['plugins']['has']('UndoEditing')&&(_0x1380e6['enableCommand']('undo'),_0x1380e6['enableCommand']('redo'));}}class Et extends _0x3d817a{static get['requires'](){return[Ct];}['afterInit'](){const _0x1095f7=this['editor'];if(!_0x1095f7['plugins']['has']('TableCaptionEditing'))return;_0x1095f7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x3d817a{['tableProperties'];['tableCellProperties'];constructor(_0x1c1b11){super(_0x1c1b11),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 _0x59eed2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x523ce7 of this['tableProperties'])_0x59eed2['enableCommand'](_0x523ce7,(_0x2c88e4,_0x202d74)=>{const _0x222345=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x523ce7,[_0x222345],this['tableProperties'],'tableProperties',_0x2c88e4,_0x202d74);});_0x59eed2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x59eed2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59eed2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x6d4214,_0x124b7a)=>this['handleDiscardAction'](this['tableProperties'],_0x6d4214,_0x124b7a)),_0x59eed2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46e188 of this['tableCellProperties'])_0x59eed2['enableCommand'](_0x46e188,(_0x3ea5b4,_0x5d7801)=>{const _0x93d521=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46e188,_0x93d521,this['tableCellProperties'],'tableCellProperties',_0x3ea5b4,_0x5d7801);});_0x59eed2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x59eed2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59eed2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x8bf973,_0x5f3a8c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x8bf973,_0x5f3a8c)),_0x59eed2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x59eed2['descriptionFactory']['registerDescriptionCallback'](_0x59760a=>this['handleSuggestionDescription'](_0x59760a));}['_handlePropertyChange'](_0x1eb2d7,_0x5a498a,_0x2b1984,_0x46e3b8,_0x513b2f,_0x2c399e){const _0x344e1c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c399e['batch'],()=>{for(const _0x109c23 of _0x5a498a){if(this['_getSuggestion'](_0x109c23,_0x46e3b8))_0x513b2f(_0x2c399e);else{const _0x37d768={};for(const _0x42ffb7 of _0x2b1984){const _0x290fba=_0x109c23['getAttribute'](_0x42ffb7);void 0x0!==_0x290fba&&(_0x37d768[_0x42ffb7]=_0x290fba);}_0x513b2f(_0x2c399e),_0x344e1c['markBlockFormat'](_0x109c23,{'commandParams':[_0x37d768]},[],_0x46e3b8);}}});}['handleDiscardAction'](_0x1907ea,_0x5d2f65,_0x50d60c){const _0x38d259=_0x5d2f65[0x0]['start']['nodeAfter'],_0x5cb66a=_0x50d60c['commandParams'][0x0];this['editor']['model']['change'](_0x636a6e=>{for(const _0x4b7137 of _0x1907ea)void 0x0!==_0x5cb66a[_0x4b7137]?_0x636a6e['setAttribute'](_0x4b7137,_0x5cb66a[_0x4b7137],_0x38d259):_0x636a6e['removeAttribute'](_0x4b7137,_0x38d259);});}['handleSuggestionDescription'](_0x3f6ee7){if(_0x3f6ee7['data'])switch(_0x3f6ee7['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'](_0x327b45,_0x46863a){const _0x413133=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x96cc0c of _0x413133['getSuggestions']({'skipNotAttached':!0x0})){const _0x1f370b=_0x96cc0c['getContainedElement']();if(_0x96cc0c['subType']===_0x46863a&&_0x1f370b===_0x327b45)return _0x96cc0c;}return null;}}const m='$elementName';class p extends _0x3d817a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x12c1ef,_0x1f09ee,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47898a){super(_0x47898a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55da64,_0x10a9bc,_0x138695,_0x2dda86)=>{this['_model']['change'](()=>{for(const _0x124da9 of[..._0x2dda86,..._0x138695])this['_model']['markers']['has'](_0x124da9)&&_0x47898a['editing']['reconvertMarker'](_0x124da9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x47898a['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(),_0x47898a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x47898a['config']['get']('trackChanges.trackFormatChanges'),_0x47898a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x47898a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x47898a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x569c27=this['editor'],_0x4f32f7=(_0x4aa547,_0x12d788)=>{if('attribute'!=_0x4aa547)return'ck-suggestion-marker-'+_0x4aa547;const _0x442045=_0x12d788['split']('|')[0x0];return this['_isBlockAttribute'](_0x442045)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x569c27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1e59f1=>{const {id:_0x263891,authorId:_0x1451d9,type:_0x5afb15,subType:_0x4a0226}=this['_splitMarkerName'](_0x1e59f1['markerName']),_0x14bbf2=['ck-suggestion-marker',_0x4f32f7(_0x5afb15,_0x4a0226)];let _0x1b41b6=0xbb8;return this['activeMarkers']['includes'](_0x1e59f1['markerName'])&&(_0x14bbf2['push']('ck-suggestion-marker--active'),_0x1b41b6=0xbc2),'deletion'==_0x5afb15&&(_0x1b41b6+=0x5),{'classes':_0x14bbf2,'attributes':{'data-suggestion':_0x263891,'data-author-id':_0x1451d9},'priority':_0x1b41b6};}}),_0x569c27['conversion']['for']('dataDowncast')['add'](_0x31edeb=>{_0x31edeb['on']('addMarker:suggestion',(_0x3da0ff,_0x552904,_0x535ae2)=>{if(!_0x535ae2['options']['showSuggestionHighlights'])return;const _0x299f12=_0x552904['item'];if(!_0x299f12)return;const _0x1a7ff8=_0x535ae2['mapper']['toViewElement'](_0x299f12);_0x569c27['model']['schema']['isObject'](_0x299f12)&&_0x1a7ff8&&!_0x1a7ff8['getCustomProperty']('widget')&&_0x1a7ff8['is']('containerElement')&&_0x138778(_0x1a7ff8,_0x535ae2['writer']);},{'priority':'high'});}),_0x569c27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x125c4d,_0x55a0d9)=>{if(!_0x55a0d9['options']['showSuggestionHighlights'])return null;const {type:_0x2976f5,subType:_0x2702dd}=this['_splitMarkerName'](_0x125c4d['markerName']);return{'classes':['ck-suggestion-marker',_0x4f32f7(_0x2976f5,_0x2702dd)],'priority':0xbb8};}});const _0x3eeb4e=({showActiveMarkers:_0x23b6c3=!0x0,isAttributeSuggestion:_0x5d8a9e=!0x1}={})=>(_0x4820d9,_0x2d7ad1,_0x971fcc)=>{if(!_0x2d7ad1['item'])return;const {id:_0x1f50a9,authorId:_0x37cf3d}=this['_splitMarkerName'](_0x2d7ad1['markerName']);if(_0x5d8a9e){const _0xe338dd=this['_suggestions']['get'](_0x1f50a9),_0xe6e7b7=this['_getAttributeKey'](_0xe338dd);if(!this['_isBlockAttribute'](_0xe6e7b7))return;}if(_0x2d7ad1['item']['is']('selection'))return void _0x971fcc['consumable']['consume'](_0x2d7ad1['item'],_0x4820d9['name']);const _0x1c06d3=_0x971fcc['mapper']['toViewElement'](_0x2d7ad1['item']);if(_0x2d7ad1['item']['is']('element')&&_0x569c27['model']['schema']['isBlock'](_0x2d7ad1['item'])&&!_0x1c06d3['getCustomProperty']('addHighlight')){_0x971fcc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1c06d3),_0x971fcc['writer']['setAttribute']('data-suggestion',_0x1f50a9,_0x1c06d3),_0x971fcc['writer']['setAttribute']('data-author-id',_0x37cf3d,_0x1c06d3),_0x971fcc['mapper']['bindElementToMarker'](_0x1c06d3,_0x2d7ad1['markerName']),_0x23b6c3&&(this['activeMarkers']['includes'](_0x2d7ad1['markerName'])?_0x971fcc['writer']['addClass']('ck-suggestion-marker--active',_0x1c06d3):_0x971fcc['writer']['removeClass']('ck-suggestion-marker--active',_0x1c06d3));for(const _0x361a72 of _0x569c27['model']['createRangeIn'](_0x2d7ad1['item'])['getItems']())_0x971fcc['consumable']['consume'](_0x361a72,_0x4820d9['name']);_0x971fcc['consumable']['consume'](_0x2d7ad1['item'],_0x4820d9['name']);}};_0x569c27['conversion']['for']('dataDowncast')['add'](_0x3a2eb9=>{_0x3a2eb9['on']('addMarker:suggestion:formatBlock',(_0x3ea621,_0x4c1363,_0x9724bd)=>{_0x9724bd['options']['showSuggestionHighlights']&&_0x3eeb4e({'showActiveMarkers':!0x1})(_0x3ea621,_0x4c1363,_0x9724bd);},{'priority':'highest'});}),_0x569c27['conversion']['for']('dataDowncast')['add'](_0x3344bb=>{_0x3344bb['on']('addMarker:suggestion:attribute',(_0x524e19,_0x3aa1d6,_0x19248f)=>{_0x19248f['options']['showSuggestionHighlights']&&_0x3eeb4e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x524e19,_0x3aa1d6,_0x19248f);},{'priority':'highest'});}),_0x569c27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x52853a,_0x42d759)=>_0x42d759['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x52853a['substr'](0xb)}}),_0x569c27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x242bd4,{writer:_0x56fd76})=>{let _0x221068='suggestion:'+_0x242bd4['getAttribute']('suggestion-type')+':'+_0x242bd4['getAttribute']('id');return _0x242bd4['getAttribute']('marker-count')&&(_0x221068+=':'+_0x242bd4['getAttribute']('marker-count')),_0x56fd76['createElement']('$marker',{'data-name':_0x221068});}}),_0x569c27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x569c27['conversion']['for']('editingDowncast')['add'](_0x1d5ace=>{_0x1d5ace['on']('addMarker:suggestion:formatBlock',_0x3eeb4e(),{'priority':'high'});}),_0x569c27['conversion']['for']('editingDowncast')['add'](_0x1ef779=>{_0x1ef779['on']('addMarker:suggestion:attribute',_0x3eeb4e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x569c27['conversion']['for']('editingDowncast')['add'](_0x480045=>{_0x480045['on']('removeMarker:suggestion:formatBlock',(_0x4b3415,_0x346257,_0x38366f)=>{const _0x53d349=_0x38366f['mapper']['markerNameToElements'](_0x346257['markerName']);if(_0x53d349){for(const _0x3a7ffb of _0x53d349)_0x3a7ffb['getCustomProperty']('addHighlight')||(_0x38366f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a7ffb),_0x38366f['writer']['removeAttribute']('data-suggestion',_0x3a7ffb),_0x38366f['writer']['removeAttribute']('data-author-id',_0x3a7ffb),_0x38366f['mapper']['unbindElementFromMarkerName'](_0x3a7ffb,_0x346257['markerName']));}},{'priority':'high'});}),_0x569c27['conversion']['for']('editingDowncast')['add'](_0x566b7f=>{_0x566b7f['on']('removeMarker:suggestion:attribute',(_0xac0926,_0x58ea9e,_0x10ac2e)=>{const _0xe60c0=_0x10ac2e['mapper']['markerNameToElements'](_0x58ea9e['markerName']);if(!_0xe60c0)return;const {id:_0x5188de}=this['_splitMarkerName'](_0x58ea9e['markerName']),_0x512f78=this['_suggestions']['get'](_0x5188de),_0x25777a=this['_getAttributeKey'](_0x512f78);if(this['_isBlockAttribute'](_0x25777a)){for(const _0x44fa1b of _0xe60c0)_0x44fa1b['getCustomProperty']('addHighlight')||(_0x10ac2e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44fa1b),_0x10ac2e['writer']['removeAttribute']('data-suggestion',_0x44fa1b),_0x10ac2e['writer']['removeAttribute']('data-author-id',_0x44fa1b),_0x10ac2e['mapper']['unbindElementFromMarkerName'](_0x44fa1b,_0x58ea9e['markerName']));}},{'priority':'high'});}),_0x569c27['model']['document']['registerPostFixer'](_0x3e2f50=>{let _0x2ae73a=!0x1;const _0x495eb0=Array['from'](_0x569c27['model']['document']['differ']['getChangedMarkers']()),_0x5cab34=new Set();for(const {name:_0x30c2da,data:_0x444210}of _0x495eb0){const {group:_0x101f87,type:_0x14b740,subType:_0x2488e8,id:_0x2c36e0}=this['_splitMarkerName'](_0x30c2da);if('suggestion'!==_0x101f87)continue;const _0x319a1a=this['_suggestions']['get'](_0x2c36e0);if(null!=_0x444210['newRange']){'formatInline'==_0x14b740&&(_0x2ae73a=_0x2ae73a||Lt(_0x444210['newRange'],_0x30c2da,_0x3e2f50,_0x569c27['model']['schema']));const _0x23f4d4='attribute'==_0x14b740&&this['_isBlockAttribute'](_0x2488e8['split']('|')[0x0]);if(_0x444210['newRange']['isCollapsed']||'$graveyard'==_0x444210['newRange']['root']['rootName']||'formatBlock'==_0x14b740&&!Ht(_0x444210['newRange'])||_0x23f4d4&&!Ht(_0x444210['newRange'])||'deletion'==_0x14b740&&!(!Ft(_0x533172=_0x444210['newRange'])&&!function(_0x916aa7){return _0x916aa7['start']['parent']==_0x916aa7['end']['nodeBefore']&&_0x916aa7['start']['isAtEnd'];}(_0x533172)))_0x3e2f50['removeMarker'](_0x30c2da),_0x2ae73a=!0x0;else{if(!_0x319a1a||!_0x319a1a['isInContent'])continue;if(_0x444210['newRange']&&_0x444210['oldRange']&&_0x444210['newRange']['isEqual'](_0x444210['oldRange']))continue;_0x5cab34['add'](_0x319a1a);}}}var _0x533172;return _0x5cab34['size']>0x0&&(_0x2ae73a=!!this['_joinWithAdjacentSuggestions'](_0x5cab34)||_0x2ae73a),_0x2ae73a;}),_0x569c27['model']['document']['registerPostFixer'](_0x2adabd=>{let _0x4ee673=!0x1;for(const _0x348611 of _0x569c27['model']['document']['differ']['getChanges']())if('insert'==_0x348611['type'])for(const _0x19591e of this['_suggestions']['values']()){if(_0x19591e['isMultiRange']||!_0x19591e['isInContent'])continue;const _0x4e5e8a='formatBlock'==_0x19591e['type'],_0x46a2b0=this['_getAttributeKey'](_0x19591e),_0x281fae=_0x46a2b0&&this['_isBlockAttribute'](_0x46a2b0);if(!_0x4e5e8a&&!_0x281fae)continue;const _0x238f1d=_0x19591e['getFirstRange']();if(_0x238f1d['start']['parent']!=_0x238f1d['end']['parent']&&!_0x238f1d['end']['isAtEnd']){const _0x5e2da4=_0x569c27['model']['createPositionAt'](_0x238f1d['start']['nodeAfter'],'end'),_0xe34c4e=_0x569c27['model']['createRange'](_0x238f1d['start'],_0x5e2da4);_0x2adabd['updateMarker'](_0x19591e['getFirstMarker'](),{'range':_0xe34c4e}),_0x4ee673=!0x0;}}return _0x4ee673;}),_0x569c27['model']['document']['registerPostFixer'](_0x199809=>this['_processAttributeChanges'](_0x199809)),_0x569c27['model']['document']['registerPostFixer'](_0x811bcd=>!_0x811bcd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x811bcd)),_0x569c27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x569c27['model']['document']['on']('change:data',(_0x973dbc,_0x52482a)=>{if(!_0x52482a['isLocal']||_0x52482a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f9897=_0x569c27['model']['document']['differ']['getChanges']();if(0x0==_0x1f9897['length'])return;const _0x54663e=[],_0x4b3993=_0x1f9897['filter'](_0x260d3a=>'attribute'==_0x260d3a['type']),_0x438c53=_0x1f9897['filter'](_0x3c8603=>'insert'==_0x3c8603['type']&&'$text'!=_0x3c8603['name']);for(const _0x3ac13f of _0x4b3993)this['_isRegisteredAttribute'](_0x3ac13f['attributeKey'])&&_0x54663e['push']({'key':_0x3ac13f['attributeKey'],'newValue':_0x3ac13f['attributeNewValue'],'oldValue':_0x3ac13f['attributeOldValue'],'range':qt(_0x3ac13f['range'],_0x569c27['model'])});for(const _0x2f6a5b of _0x438c53){if('rename'!=_0x2f6a5b['action']&&'refresh'!=_0x2f6a5b['action'])continue;const _0x2226e2=zt(_0x2f6a5b['position']['nodeAfter'],_0x569c27['model']),_0x3c5cf4=_0x2f6a5b['before'];'rename'==_0x2f6a5b['action']&&_0x54663e['push']({'key':m,'newValue':_0x2f6a5b['name'],'oldValue':_0x3c5cf4['name'],'range':_0x2226e2});for(const [_0x17a5e2,_0x4f07d0]of _0x3c5cf4['attributes']){if(!this['_isRegisteredAttribute'](_0x17a5e2))continue;const _0x55dd6f=_0x2f6a5b['attributes']['get'](_0x17a5e2);_0x4f07d0!==_0x55dd6f&&_0x54663e['push']({'key':_0x17a5e2,'newValue':_0x55dd6f,'oldValue':_0x4f07d0,'range':_0x2226e2});}for(const [_0x29e9cb,_0xb99f95]of _0x2f6a5b['attributes'])this['_isRegisteredAttribute'](_0x29e9cb)&&(_0x3c5cf4['attributes']['has'](_0x29e9cb)||_0x54663e['push']({'key':_0x29e9cb,'newValue':_0xb99f95,'oldValue':null,'range':_0x2226e2}));}0x0!=_0x54663e['length']&&_0x569c27['model']['enqueueChange'](_0x52482a,_0x3d13db=>{const _0x23937c=_0x16cdcd();for(const {range:_0x5e9eb7,key:_0x2459bb,oldValue:_0x566ce3,newValue:_0x3a633a}of _0x54663e)this['markAttributeChange'](_0x5e9eb7,_0x2459bb,_0x566ce3,_0x3a633a,{'groupId':_0x23937c});this['_reduceExistingSuggestions'](_0x3d13db,_0x54663e);});},{'priority':'lowest'}),_0x569c27['model']['markers']['on']('update:suggestion',(_0x419f0a,_0x1492ca,_0x2c243c)=>{if(null==_0x2c243c){const {id:_0x415895}=this['_splitMarkerName'](_0x1492ca['name']),_0x3cf8b6=this['_suggestions']['get'](_0x415895);_0x3cf8b6&&_0x3cf8b6['addMarkerName'](_0x1492ca['name']);}}),_0x569c27['model']['document']['on']('change:data',()=>{const _0x4fdcf5=Array['from'](_0x569c27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2f9057=>'suggestion'===this['_splitMarkerName'](_0x2f9057['name'])['group']);if(0x0===_0x4fdcf5['length'])return;_0x4fdcf5['sort']((_0x16d0b9,_0x33710c)=>{const _0x5e6a67=_0x16d0b9['data']['oldRange'],_0x569a61=_0x33710c['data']['oldRange'];return null===_0x5e6a67&&null===_0x569a61?0x0:null===_0x5e6a67&&null!==_0x569a61?-0x1:null!==_0x5e6a67&&null===_0x569a61?0x1:_0x5e6a67['start']['isBefore'](_0x569a61['start'])?-0x1:0x1;});const _0x349c9f=new Set(),_0x3d1994=new Set();for(const {name:_0x2ba495,data:_0x3c8667}of _0x4fdcf5){const {id:_0x17337f}=this['_splitMarkerName'](_0x2ba495);if(null===_0x3c8667['oldRange']){const _0x163d4e=this['_handleNewSuggestionMarker'](_0x2ba495);_0x3d1994['add'](_0x163d4e);}else{const _0x1b6f41=this['_suggestions']['get'](_0x17337f);null!==_0x3c8667['newRange']||_0x1b6f41['isInContent']?(_0x349c9f['add'](_0x1b6f41['head']),_0x3d1994['add'](_0x1b6f41)):this['_removeSuggestion'](_0x1b6f41);}}_0x3d1994['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d1994);for(const _0x2c856e of _0x349c9f)this['fire']('suggestionChanged',_0x2c856e);}),_0x569c27['model']['on']('applyOperation',(_0x17ef1f,_0x4fee24)=>{const _0x34923c=_0x4fee24[0x0];if(!this['_suggestions']['size'])return;if(!_0x34923c['isDocumentOperation'])return;if(_0x34923c['batch']['isUndo']||!_0x34923c['batch']['isLocal'])return;let _0x5f4aeb,_0x28ef3f;switch(_0x34923c['type']){case'insert':_0x5f4aeb=_0x569c27['model']['createPositionAt'](_0x34923c['position']),_0x28ef3f=_0x5f4aeb['getShiftedBy'](_0x34923c['howMany']);break;case'split':_0x5f4aeb=_0x569c27['model']['createPositionAt'](_0x34923c['splitPosition']),_0x28ef3f=_0x569c27['model']['createPositionAt'](_0x34923c['moveTargetPosition']);break;case'move':_0x5f4aeb=_0x569c27['model']['createPositionAt'](_0x34923c['targetPosition']),_0x28ef3f=_0x5f4aeb['getShiftedBy'](_0x34923c['howMany']);break;default:return;}const _0x1cf2f9=_0x569c27['model']['createRange'](_0x5f4aeb,_0x28ef3f);_0x569c27['model']['change'](()=>{for(const {suggestion:_0xc5392a,meta:_0x3ab96a}of this['_findSuggestions'](_0x1cf2f9)){if(_0xc5392a['isMultiRange'])continue;if('formatInline'==_0xc5392a['type'])continue;const _0x19d444=this['_getAttributeKey'](_0xc5392a);if(_0x19d444&&this['_isBlockAttribute'](_0x19d444)&&'split'!=_0x34923c['type'])continue;const _0x692d6e=_0xc5392a['data']&&_0xc5392a['data']['multipleBlocks'];('formatBlock'!=_0xc5392a['type']||'split'==_0x34923c['type']&&!_0x692d6e)&&(_0x3ab96a['containsRangeInObject']||'insertion'==_0xc5392a['type']&&_0x3ab96a['isOwn']||_0xc5392a['getFirstRange']()['containsRange'](_0x1cf2f9)&&this['_breakSuggestionMarker'](_0xc5392a,_0x5f4aeb,_0x28ef3f));}});},{'priority':'lowest'}),_0x569c27['model']['on']('deleteContent',(_0x16a08a,_0x117212)=>{const _0x481fad=_0x117212[0x0],_0x237e08=_0x117212[0x1];if(_0x237e08&&_0x237e08['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x481fad['isCollapsed'])return;const _0x27b8b0=_0x569c27['model']['schema'],{start:_0x456a13,end:_0x29f6f6}=_0x481fad['getFirstRange'](),_0x11a2f8=_0x456a13['nodeAfter']&&_0x27b8b0['isLimit'](_0x456a13['nodeAfter'])?null:_0x27b8b0['getNearestSelectionRange'](_0x456a13,'forward'),_0x5dd8f9=_0x29f6f6['nodeBefore']&&_0x27b8b0['isLimit'](_0x29f6f6['nodeBefore'])?null:_0x27b8b0['getNearestSelectionRange'](_0x29f6f6,'backward'),_0xd7fa5c=_0x569c27['model']['createRange'](_0x11a2f8?_0x11a2f8['start']:_0x456a13,_0x5dd8f9?_0x5dd8f9['end']:_0x29f6f6);_0x569c27['model']['change'](_0x4b4a1a=>{this['markDeletion'](_0xd7fa5c);const _0x44b658=_0x569c27['model']['schema']['getNearestSelectionRange'](_0xd7fa5c['start']);_0x481fad['is']('documentSelection')?_0x4b4a1a['setSelection'](_0x44b658):_0x481fad['setTo'](_0x44b658);}),_0x16a08a['stop']();},{'priority':_0x50574c['normal']+0xa}),_0x569c27['model']['on']('insertContent',(_0xc3ba59,_0x1d4b47)=>{const _0x26d3e6=_0x1d4b47[_0x1d4b47['length']-0x1];_0x26d3e6&&_0x26d3e6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x569c27['model']['change'](()=>{let _0x98488a=_0x569c27['model']['insertContent'](_0x1d4b47[0x0],_0x1d4b47[0x1],_0x1d4b47[0x2],{'forceDefaultExecution':!0x0});if(!_0x98488a)return;_0xc3ba59['return']=_0x98488a['clone']();const _0x125ba5=_0x98488a['end']['nodeBefore'],_0x1ace2a=_0x569c27['model']['schema'];_0x125ba5&&_0x1ace2a['isBlock'](_0x125ba5)&&!_0x1ace2a['isObject'](_0x125ba5)&&(_0x98488a=_0x569c27['model']['createRange'](_0x98488a['start'],_0x569c27['model']['createPositionAt'](_0x125ba5,'end'))),this['markInsertion'](_0x98488a);}),_0xc3ba59['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x429e12=new O(_0x569c27,this['_suggestions']);_0x569c27['commands']['add']('acceptSuggestion',_0x429e12),this['enableCommand']('acceptSuggestion');const _0x2e4f4e=new R(_0x569c27,this['_suggestions']);_0x569c27['commands']['add']('discardSuggestion',_0x2e4f4e),this['enableCommand']('discardSuggestion'),_0x569c27['commands']['add']('acceptAllSuggestions',new x(_0x569c27,_0x429e12,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x569c27['commands']['add']('discardAllSuggestions',new x(_0x569c27,_0x2e4f4e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x569c27['commands']['add']('acceptSelectedSuggestions',new E(_0x569c27,_0x429e12,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x569c27['commands']['add']('discardSelectedSuggestions',new E(_0x569c27,_0x2e4f4e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xe834df=_0x569c27['plugins']['get']('CommentsRepository');this['listenTo'](_0xe834df,'addComment',(_0x1ce159,{threadId:_0x141e83})=>{const _0x2b07cb=this['_suggestions']['get'](_0x141e83);_0x2b07cb&&_0x2b07cb['commentThread']&&0x1===_0x2b07cb['commentThread']['length']&&this['_updateSuggestionData'](_0x141e83,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe834df,'removeComment',(_0x100a13,{threadId:_0x1b21f5})=>{const _0x2032eb=this['_suggestions']['get'](_0x1b21f5);_0x2032eb&&_0x2032eb['commentThread']&&!_0x2032eb['commentThread']['length']&&this['_updateSuggestionData'](_0x1b21f5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1c93f7){const _0x5c7f15=_0x55b0f7([0x48,0x45,0x6e,0x57,0x59,0x5a,0x77,0x4c,0x41,0x55,0x54,0x64,0x71,0x46,0x61,0x36,0x31,0x74,0x68,0x79,0x44,0x4d,0x52,0x67,0x63,0x33,0x7a,0x32,0x51,0x58,0x6f,0x6a,0x70,0x34,0x4f,0x65,0x56,0x42,0x66,0x38,0x30,0x4e,0x75,0x6b,0x53,0x73,0x72,0x4b,0x35,0x49,0x50,0x6c,0x43,0x39,0x76,0x4a,0x47,0x62,0x37,0x78,0x69,0x6d]),_0x3cfa04=0x5f51243c,_0x4ab9a9=0x5f5644dc^_0x3cfa04,_0x23e1b1=window[_0x55b0f7([0x44,0x61,0x74,0x65])][_0x55b0f7([0x6e,0x6f,0x77])](),_0x4ae004=_0x1c93f7[_0x55b0f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23ac12=new window[(_0x55b0f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d027f=>{_0x4ae004[_0x55b0f7([0x6f,0x6e,0x63,0x65])](_0x55b0f7([0x72,0x65,0x61,0x64,0x79]),_0x1d027f);}),_0x32def3={[_0x55b0f7([0x6b,0x74,0x79])]:_0x55b0f7([0x45,0x43]),[_0x55b0f7([0x75,0x73,0x65])]:_0x55b0f7([0x73,0x69,0x67]),[_0x55b0f7([0x63,0x72,0x76])]:_0x55b0f7([0x50,0x2d,0x32,0x35,0x36]),[_0x55b0f7([0x78])]:_0x55b0f7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x55b0f7([0x79])]:_0x55b0f7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x55b0f7([0x61,0x6c,0x67])]:_0x55b0f7([0x45,0x53,0x32,0x35,0x36])},_0x559420=_0x4ae004[_0x55b0f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55b0f7([0x67,0x65,0x74])](_0x55b0f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52f377(){let _0x5d3389,_0x414db0=null,_0x21439f=null;try{if(_0x559420==_0x55b0f7([0x47,0x50,0x4c]))return _0x55b0f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d3389=_0x25dee9(),!_0x5d3389)return _0x55b0f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d3389[_0x55b0f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21439f=_0x57b936(_0x5d3389[_0x55b0f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d3389[_0x55b0f7([0x6a,0x74,0x69])])),await _0x46f058()?_0x4c4ad9()?_0x43a0a2()?_0x55b0f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x236ec3()?(_0x5d3389[_0x55b0f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55b0f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x414db0=_0x10cc6c(_0x55b0f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d3389[_0x55b0f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55b0f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x414db0=_0x10cc6c(_0x55b0f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46c227()):_0x55b0f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55b0f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55b0f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xc1160a){return _0x55b0f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43a0a2(){const _0x4a2456=[_0x55b0f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55b0f7([0x74,0x72,0x69,0x61,0x6c])][_0x55b0f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d3389[_0x55b0f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23e1b1/0x3e8:0xe10*_0x4ab9a9;return _0x5d3389[_0x55b0f7([0x65,0x78,0x70])]<_0x4a2456;}function _0x4c4ad9(){const _0x505e10=_0x5d3389[_0x55b0f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x505e10)return!0x1;if(_0x505e10[_0x55b0f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b0f7([0x2a])))return!0x0;if(_0x505e10[_0x55b0f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b0f7([0x54,0x43])))return!0x0;if(_0x505e10[_0x55b0f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b0f7([0x52,0x54,0x43]))){if(_0x59aeea())return!0x0;if(_0x359098()||_0x368845())return!0x0;}return!0x1;}function _0x236ec3(){const _0x4a45ab=_0x5d3389[_0x55b0f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a45ab||0x0==_0x4a45ab[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x161928}=new URL(window[_0x55b0f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a45ab[_0x55b0f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161928))return!0x0;const _0x2396fa=_0x161928[_0x55b0f7([0x73,0x70,0x6c,0x69,0x74])](_0x55b0f7([0x2e]));return _0x4a45ab[_0x55b0f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd29742=>_0xd29742[_0x55b0f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b0f7([0x2a])))[_0x55b0f7([0x6d,0x61,0x70])](_0x35e4a4=>_0x35e4a4[_0x55b0f7([0x73,0x70,0x6c,0x69,0x74])](_0x55b0f7([0x2e])))[_0x55b0f7([0x73,0x6f,0x6d,0x65])](_0x2dac1d=>_0x2396fa[_0x55b0f7([0x65,0x76,0x65,0x72,0x79])]((_0x4b976b,_0x6eaadf)=>_0x2dac1d[_0x6eaadf]===_0x4b976b||_0x2dac1d[_0x6eaadf]===_0x55b0f7([0x2a])));}function _0x46c227(){return _0x414db0&&_0x21439f?new window[(_0x55b0f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b6efa,_0x40320c)=>{_0x414db0[_0x55b0f7([0x74,0x68,0x65,0x6e])](_0x1b6efa,_0x40320c),_0x21439f[_0x55b0f7([0x74,0x68,0x65,0x6e])](_0x105638=>{_0x105638!=_0x55b0f7([0x56,0x61,0x6c,0x69,0x64])&&_0x1b6efa(_0x105638);},_0x40320c);}):_0x414db0||_0x21439f||_0x55b0f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57b936(_0x5171d6,_0x4b8ad0){return new window[(_0x55b0f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xba559d=>{if(_0x5ecab0())return _0xba559d(_0x55b0f7([0x56,0x61,0x6c,0x69,0x64]));_0x52b008(),_0x4ae004[_0x55b0f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55b0f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2db97b=!0x1;const _0x113470=_0x16cdcd();function _0x418621(_0x3251a0){return!!_0x3251a0&&(typeof _0x3251a0===_0x55b0f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3251a0===_0x55b0f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3251a0[_0x55b0f7([0x74,0x68,0x65,0x6e])]===_0x55b0f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3251a0[_0x55b0f7([0x63,0x61,0x74,0x63,0x68])]===_0x55b0f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a0a73(_0x312df5){_0x3e7295(_0x312df5)[_0x55b0f7([0x74,0x68,0x65,0x6e])](_0x1dac64=>{if(!_0x1dac64||_0x1dac64[_0x55b0f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55b0f7([0x6f,0x6b]))return _0x55b0f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2be43d(_0x37dbaf(_0x113470+_0x4b8ad0))!=_0x1dac64[_0x55b0f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55b0f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55b0f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x55b0f7([0x74,0x68,0x65,0x6e])](_0x39e20f=>(_0x456380(),_0x39e20f),()=>{const _0x2569d5=_0x4f340f();return null==_0x2569d5?(_0x456380(),_0x55b0f7([0x56,0x61,0x6c,0x69,0x64])):_0x55b0f7(_0x23e1b1-_0x2569d5>(0x7b5da03c^_0x3cfa04)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55b0f7([0x74,0x68,0x65,0x6e])](_0xba559d)[_0x55b0f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0xba559d(_0x55b0f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ac285=0x5f67cabc^_0x3cfa04;function _0x456380(){const _0x573982=_0x55b0f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2be43d(_0x37dbaf(_0x5171d6)),_0xa925bf=_0x2c0563(_0x2be43d(window[_0x55b0f7([0x4d,0x61,0x74,0x68])][_0x55b0f7([0x63,0x65,0x69,0x6c])](_0x23e1b1/_0x4ac285)));window[_0x55b0f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55b0f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x573982,_0xa925bf);}function _0x4f340f(){const _0x1f2e6e=_0x55b0f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2be43d(_0x37dbaf(_0x5171d6)),_0xf41059=window[_0x55b0f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55b0f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f2e6e);return _0xf41059?window[_0x55b0f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c0563(_0xf41059),0x10)*_0x4ac285:null;}function _0x3e7295(_0x7f56de){return new window[(_0x55b0f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28099d,_0x49ffdd)=>{_0x7f56de[_0x55b0f7([0x74,0x68,0x65,0x6e])](_0x28099d,_0x49ffdd),window[_0x55b0f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49ffdd,0x5f50f0fc^_0x3cfa04);});}}_0x4ae004[_0x55b0f7([0x6f,0x6e])](_0x55b0f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d9a85,_0x2c53b7)=>{if(_0x2c53b7[0x0]!=_0x5171d6)return _0xba559d(_0x55b0f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c53b7[0x1]={..._0x2c53b7[0x1],[_0x55b0f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x113470};},{[_0x55b0f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55b0f7([0x68,0x69,0x67,0x68])}),_0x4ae004[_0x55b0f7([0x6f,0x6e])](_0x55b0f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44b9bd=>{_0x418621(_0x44b9bd[_0x55b0f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2db97b=!0x0,_0x1a0a73(_0x44b9bd[_0x55b0f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55b0f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55b0f7([0x6c,0x6f,0x77])}),_0x23ac12[_0x55b0f7([0x74,0x68,0x65,0x6e])](()=>{_0x2db97b||_0xba559d(_0x55b0f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ecab0(){return _0x4ae004[_0x55b0f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55b0f7([0x76,0x69,0x65,0x77])][_0x55b0f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55b0f7([0x61,0x75,0x74,0x6f]);}function _0x52b008(){_0x4ae004[_0x55b0f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55b0f7([0x76,0x69,0x65,0x77])][_0x55b0f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55b0f7([0x61,0x75,0x74,0x6f]);}}function _0x10cc6c(_0x4bb150){const _0x1891dc=[new window[(_0x55b0f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34b62f=>setTimeout(_0x34b62f,0x5f581af0^_0x3cfa04)),_0x23ac12[_0x55b0f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55b0f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bff32=>{let _0x2b24b4=0x0;_0x4ae004[_0x55b0f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x55b0f7([0x6f,0x6e])](_0x55b0f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1eaa91,_0x1b64db)=>{_0x1b64db[0x0][_0x55b0f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b24b4++,_0x2b24b4==(0x5f5125c4^_0x3cfa04)&&(_0x3bff32(),_0x1eaa91[_0x55b0f7([0x6f,0x66,0x66])]());});}))];return window[_0x55b0f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55b0f7([0x72,0x61,0x63,0x65])](_0x1891dc)[_0x55b0f7([0x74,0x68,0x65,0x6e])](()=>_0x4bb150);}async function _0x37077d(){await _0x23ac12,_0x4ae004[_0x55b0f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x55b0f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x513de9,_0x4ae004[_0x55b0f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x55b0f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x513de9,_0x4ae004[_0x55b0f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55b0f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59aeea(){return _0x3a2e42(_0x55b0f7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1e091f(_0x55b0f7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x55b0f7([0x73,0x74,0x61,0x74,0x65])]==_0x55b0f7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x359098(){return _0x3a2e42(_0x55b0f7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x368845(){return _0x3a2e42(_0x55b0f7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x330a19(_0x53981f){const _0x43ba04=_0xab15ea();_0x4ae004[_0x43ba04]=_0x55b0f7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53981f,_0x53981f!=_0x55b0f7([0x56,0x61,0x6c,0x69,0x64])&&_0x37077d();}function _0xab15ea(){const _0x241893=window[_0x55b0f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55b0f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55b0f7([0x6e,0x6f,0x77])]())[_0x55b0f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55b0f7([0x2e]),'');let _0xa9eb0=_0x55b0f7([0x48]);for(let _0x2eb34a=0x0;_0x2eb34a<_0x241893[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eb34a+=0x2){let _0x11eb2b=window[_0x55b0f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x241893[_0x55b0f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eb34a,_0x2eb34a+0x2));_0x11eb2b>=_0x5c7f15[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11eb2b-=_0x5c7f15[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa9eb0+=_0x5c7f15[_0x11eb2b];}return _0xa9eb0;}function _0x25dee9(){const _0x2d48ca=_0x559420[_0x55b0f7([0x73,0x70,0x6c,0x69,0x74])](_0x55b0f7([0x2e]));if(0x3!=_0x2d48ca[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1cc460(_0x2d48ca[0x1]);function _0x1cc460(_0x524b6f){const _0x461c44=_0x16b1d7(_0x524b6f);return _0x461c44&&_0x4ebd50()?_0x461c44:null;function _0x4ebd50(){const _0x2181d4=_0x461c44[_0x55b0f7([0x6a,0x74,0x69])],_0xeff634=window[_0x55b0f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2181d4[_0x55b0f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2181d4[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x348f64={..._0x461c44,[_0x55b0f7([0x6a,0x74,0x69])]:_0x2181d4[_0x55b0f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2181d4[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x348f64[_0x55b0f7([0x76,0x63])],_0x37dbaf(_0x348f64)==_0xeff634;}}}async function _0x46f058(){let _0x252a7e=!0x0;try{const _0x3e4e5e=_0x559420[_0x55b0f7([0x73,0x70,0x6c,0x69,0x74])](_0x55b0f7([0x2e])),[_0x3b5e7b,_0x3b84ca,_0x1a45a3]=_0x3e4e5e;return _0x3a3614(_0x3b5e7b),await _0x36384a(_0x3b5e7b,_0x3b84ca,_0x1a45a3),_0x252a7e;}catch(_0x4f407f){return!0x1;}function _0x3a3614(_0x17ae0e){const _0x47f9f3=_0x16b1d7(_0x17ae0e);_0x47f9f3&&_0x47f9f3[_0x55b0f7([0x61,0x6c,0x67])]==_0x55b0f7([0x45,0x53,0x32,0x35,0x36])||(_0x252a7e=!0x1);}async function _0x36384a(_0x146b3f,_0x5dffba,_0x1ce2ee){const _0x1329fd=window[_0x55b0f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55b0f7([0x66,0x72,0x6f,0x6d])](_0x28b356(_0x1ce2ee),_0x233382=>_0x233382[_0x55b0f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x491714=new window[(_0x55b0f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55b0f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x146b3f+_0x55b0f7([0x2e])+_0x5dffba),_0x421a87=window[_0x55b0f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55b0f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x421a87)return;const _0x310f2f=await _0x421a87[_0x55b0f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55b0f7([0x6a,0x77,0x6b]),_0x32def3,{[_0x55b0f7([0x6e,0x61,0x6d,0x65])]:_0x55b0f7([0x45,0x43,0x44,0x53,0x41]),[_0x55b0f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55b0f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55b0f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x421a87[_0x55b0f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55b0f7([0x6e,0x61,0x6d,0x65])]:_0x55b0f7([0x45,0x43,0x44,0x53,0x41]),[_0x55b0f7([0x68,0x61,0x73,0x68])]:{[_0x55b0f7([0x6e,0x61,0x6d,0x65])]:_0x55b0f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x310f2f,_0x1329fd,_0x491714)||(_0x252a7e=!0x1);}}function _0x16b1d7(_0x57b0e9){return _0x57b0e9[_0x55b0f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55b0f7([0x65,0x79]))?JSON[_0x55b0f7([0x70,0x61,0x72,0x73,0x65])](_0x28b356(_0x57b0e9)):null;}function _0x28b356(_0x225df4){return window[_0x55b0f7([0x61,0x74,0x6f,0x62])](_0x225df4[_0x55b0f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55b0f7([0x2b]))[_0x55b0f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55b0f7([0x2f])));}function _0x37dbaf(_0x586ed0){let _0x199eba=0x1505;function _0x3fd599(_0xd46aac){for(let _0x4d2e6d=0x0;_0x4d2e6d<_0xd46aac[_0x55b0f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d2e6d++){const _0x320800=_0xd46aac[_0x55b0f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d2e6d);_0x199eba=(_0x199eba<<0x5)+_0x199eba+_0x320800,_0x199eba&=_0x199eba;}}function _0x2e069c(_0x48c32b){Array[_0x55b0f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48c32b)?_0x48c32b[_0x55b0f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e069c):_0x48c32b&&typeof _0x48c32b==_0x55b0f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55b0f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48c32b)[_0x55b0f7([0x73,0x6f,0x72,0x74])]()[_0x55b0f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14f882,_0x18fe03])=>{_0x3fd599(_0x14f882),_0x2e069c(_0x18fe03);}):_0x3fd599(window[_0x55b0f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48c32b));}return _0x2e069c(_0x586ed0),_0x199eba>>>0x0;}function _0x2be43d(_0x58599f){return _0x58599f[_0x55b0f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55b0f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55b0f7([0x30]));}function _0x2c0563(_0x297e57){return _0x297e57[_0x55b0f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55b0f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55b0f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a2e42(_0x37e94c){return _0x4ae004[_0x55b0f7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55b0f7([0x68,0x61,0x73])](_0x37e94c);}function _0x1e091f(_0x3405d9){return _0x4ae004[_0x55b0f7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55b0f7([0x67,0x65,0x74])](_0x3405d9);}function _0x513de9(){}function _0x55b0f7(_0x477808){return _0x477808['map'](_0x40f199=>String['fromCharCode'](_0x40f199))['join']('');}_0x330a19(await _0x52f377());}(this);}set['adapter'](_0x175376){if(this['_adapter'])throw new _0x21392e('track-changes-adapter-already-set',this);this['_adapter']=_0x175376;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x485108=!0x1,toJSON:_0x2f8e1b=!0x1}={}){const _0x502112=[];for(const _0x40cc09 of this['_suggestions']['values']())_0x485108&&!_0x40cc09['isInContent']||_0x502112['push'](_0x40cc09);return _0x2f8e1b?_0x502112['map'](_0x225a07=>_0x225a07['toJSON']()):_0x502112;}['getSuggestion'](_0x4a47f7){const _0x2d0064=this['_suggestions']['get'](_0x4a47f7);if(!_0x2d0064)throw new _0x21392e('track-changes-suggestion-not-found',this);return _0x2d0064;}['hasSuggestion'](_0x413fa7){return this['_suggestions']['has'](_0x413fa7);}['addSuggestionData'](_0x3832df){const {authorId:_0xf56cd4,id:_0x3b7965,attributes:_0x375adb}=_0x3832df,[_0x3804a4,_0x314d80]=_0x3832df['type']['split'](':'),_0x227c5b=this['_suggestions']['get'](_0x3b7965)||this['_createSuggestion'](_0x3804a4,_0x314d80,_0x3b7965,_0xf56cd4,_0x375adb);if(this['_addThreadToSuggestion'](_0x227c5b),this['_checkSuggestionCorrectness'](_0x227c5b,_0x3804a4,_0x314d80||null,_0xf56cd4),_0x227c5b['createdAt']=_0x3832df['createdAt'],_0x227c5b['_isDataLoaded']=!0x0,_0x375adb&&_0x375adb['@external']){const _0x1683fa=_0x375adb['@external'],_0x185e6d=this['_getExternalAuthor'](_0x1683fa['authorName']);_0x227c5b['authoredAt']=_0x1683fa['createdAt'],_0x227c5b['author']=_0x185e6d,_0x227c5b['isExternal']=!0x0;}else _0x227c5b['authoredAt']=_0x3832df['createdAt'];switch(_0x3832df['data']&&(_0x227c5b['data']=_0x3832df['data']),_0x3832df['attributes']&&(_0x227c5b['attributes']=_0x3832df['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x227c5b['_saved']=!0x0),this['_suggestionState']['get'](_0x227c5b)){case'notReady':this['_suggestionState']['set'](_0x227c5b,'dataReady');break;case'markerReady':_0x227c5b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x227c5b])),this['_refreshSuggestionsChain'](new Set([_0x227c5b])),this['_suggestionState']['set'](_0x227c5b,'ready'),this['fire']('suggestionLoaded',_0x227c5b)):this['_suggestionState']['set'](_0x227c5b,'removed');}return _0x227c5b;}['acceptSuggestion'](_0x55618a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x313ac7 of _0x55618a['getAllAdjacentSuggestions']())_0x313ac7['accept']();});});}['discardSuggestion'](_0x30e926){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b1491 of _0x30e926['getAllAdjacentSuggestions']())_0x4b1491['discard']();});});}['enableCommand'](_0x3bb918,_0x263fd5){const _0x1eb052=this['editor']['commands']['get'](_0x3bb918);if(!_0x1eb052)throw new _0x21392e('track-changes-command-not-found',this,{'commandName':_0x3bb918});if(this['_enabledCommands']['has'](_0x1eb052))throw new _0x21392e('track-changes-enable-command-twice',this,{'commandName':_0x3bb918});this['_enabledCommands']['add'](_0x1eb052),_0x263fd5&&_0x1eb052['on']('execute',(_0x5087b8,_0x5ca4aa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ca4aa['length']>0x0&&_0x5ca4aa[_0x5ca4aa['length']-0x1]&&_0x5ca4aa[_0x5ca4aa['length']-0x1]['forceDefaultExecution']?_0x5ca4aa['pop']():(_0x5087b8['return']=_0x263fd5((..._0x1211f7)=>_0x1eb052['execute'](..._0x1211f7,{'forceDefaultExecution':!0x0}),..._0x5ca4aa),_0x5087b8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xba70bc){let _0x2b588c,_0x444dd4;const _0x79a64b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b588c=_0xba70bc();}catch(_0x2b6de1){_0x444dd4=_0x2b6de1;}return _0x79a64b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x444dd4&&_0x21392e['rethrowUnexpectedError'](_0x444dd4,this),_0x2b588c;}['markInsertion'](_0x55e7ee,_0x1421de=null,_0x4a18e1={}){if(_0x55e7ee['isCollapsed'])return null;const _0x240f04=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1f9564,meta:_0x343fe1}of this['_findSuggestions'](_0x55e7ee,'insertion'))if(_0x343fe1['isOwn']){if(!_0x343fe1['isNextTo']){if(_0x343fe1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1f9564,_0x4a18e1))continue;return _0x1f9564;}if(Qt(_0x1f9564,_0x4a18e1))return _0x1f9564;this['_breakSuggestionMarker'](_0x1f9564,_0x55e7ee['start'],_0x55e7ee['end']);break;}if(_0x1421de==_0x1f9564['subType']&&Qt(_0x1f9564,_0x4a18e1)){const _0x4a52b7=_0x1f9564['getFirstRange']();return _0x4a52b7['start']['isEqual'](_0x55e7ee['end'])?this['_setSuggestionRange'](_0x1f9564,this['_model']['createRange'](_0x55e7ee['start'],_0x4a52b7['end'])):this['_setSuggestionRange'](_0x1f9564,this['_model']['createRange'](_0x4a52b7['start'],_0x55e7ee['end'])),_0x1f9564;}}const _0x5c808f=_0x16cdcd(),_0x9cd644=_0x240f04['id'],_0x157df7=_0x1421de?'insertion:'+_0x1421de:'insertion',_0x51fa8c=this['_setSuggestionData']({'id':_0x5c808f,'type':_0x157df7,'createdAt':new Date(),'authorId':_0x9cd644,'attributes':_0x4a18e1});return this['_addSuggestionMarker'](_0x157df7,_0x5c808f,_0x9cd644,_0x55e7ee),_0x51fa8c;}['markMultiRangeInsertion'](_0x524163,_0x359c7a='multi',_0x43afd9={}){const _0x5bd7d2=this['editor']['plugins']['get']('Users')['me'],_0x46ad08=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x359c7a,'join');for(const _0x2048bc of this['getSuggestions']())if(_0x2048bc['author']['id']==_0x5bd7d2['id']&&'insertion'==_0x2048bc['type']&&_0x2048bc['subType']==_0x359c7a&&Qt(_0x2048bc,_0x43afd9)&&(_0x46ad08(_0x2048bc['getRanges'](),_0x524163)||_0x46ad08(_0x524163,_0x2048bc['getRanges']()))){for(const _0x496908 of _0x524163)_0x2048bc['addRange'](_0x496908);return _0x2048bc;}for(const {suggestion:_0x7bdae1,meta:_0x2b6740}of this['_findSuggestions'](_0x524163,'insertion')){if(!_0x2b6740['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2b6740['containsRangeInObject'])continue;if(!Qt(_0x7bdae1,_0x43afd9))continue;let _0x5775f6=!0x0;for(const _0xe04c0f of _0x7bdae1['getRanges']())for(const _0x5bd331 of _0x524163)if(!_0xe04c0f['containsRange'](_0x5bd331)){_0x5775f6=!0x1;break;}if(_0x5775f6)return _0x7bdae1;}const _0x28f380=_0x16cdcd(),_0xcb08dc=_0x5bd7d2['id'],_0x1d3c11='insertion:'+_0x359c7a,_0x5d1a5b=this['_setSuggestionData']({'id':_0x28f380,'type':_0x1d3c11,'createdAt':new Date(),'authorId':_0xcb08dc,'attributes':_0x43afd9});for(const _0xb05fad of _0x524163)this['_addSuggestionMarker'](_0x1d3c11,_0x28f380,_0xcb08dc,_0xb05fad,u['getMultiRangeId']());return _0x5d1a5b;}['markInlineFormat'](_0x2cb626,_0x4b667e,_0x27b05c=null,_0x61d31={}){if(_0x27b05c=_0x27b05c||Jt(_0x4b667e),_0x2cb626['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x49a513=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27b05c,'accept');return this['forceDefaultExecution'](()=>_0x49a513([_0x2cb626],_0x4b667e,_0x61d31)),null;}const _0x2016f2=this['editor']['plugins']['get']('Users')['me'],_0x41d7e8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2da91a,meta:_0x90d8a1}of this['_findSuggestions'](_0x2cb626,'insertion'))_0x90d8a1['isOwn']&&!_0x90d8a1['isInsideObject']&&_0x41d7e8['push'](..._0x2da91a['getRanges']());}const _0x1a73da=function(_0x524f34,_0x34d08b){const _0x3cb4f0=[];for(const _0xa9a007 of _0x34d08b){const _0x3b87d7=_0x524f34['getIntersection'](_0xa9a007);_0x3b87d7&&_0x3cb4f0['push'](_0x3b87d7);}return _0x3cb4f0;}(_0x2cb626,_0x41d7e8),_0xf84c95=function(_0x31dd85,_0x51d5b9){const _0x42a135=[_0x31dd85];for(const _0x2b9f8d of _0x51d5b9){let _0xf17e8a=0x0;for(;_0xf17e8a<_0x42a135['length'];){const _0x341221=_0x42a135[_0xf17e8a]['getDifference'](_0x2b9f8d);_0x42a135['splice'](_0xf17e8a,0x1,..._0x341221),_0xf17e8a+=_0x341221['length'];}}return _0x42a135;}(_0x2cb626,_0x41d7e8);_0x1a73da['length']&&this['_model']['change'](()=>{for(const _0x2e77be of _0x1a73da){const _0x5ed8dd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27b05c,'accept');this['forceDefaultExecution'](()=>_0x5ed8dd([_0x2e77be],_0x4b667e,_0x61d31));}});for(const _0x871a26 of _0xf84c95){let _0x8332cc=null,_0x11e166=_0x871a26['start'],_0x5decb0=_0x871a26['end'];for(const {suggestion:_0x25e8ed,meta:_0x1f2c51}of this['_findSuggestions'](_0x871a26,'formatInline')){if(!_0x1f2c51['isOwn'])continue;if(_0x25e8ed['subType']!=_0x27b05c)continue;if(!Qt(_0x25e8ed,_0x61d31))continue;const _0x462707=_0x25e8ed['getFirstRange']();if(_0x462707['containsRange'](_0x871a26,!0x0))return null;_0x11e166=_0x11e166['isBefore'](_0x462707['start'])?_0x11e166:_0x462707['start'],_0x5decb0=_0x5decb0['isAfter'](_0x462707['end'])?_0x5decb0:_0x462707['end'],_0x8332cc?_0x462707['start']['isBefore'](_0x8332cc['getFirstRange']()['start'])?(_0x8332cc['removeMarkers'](),_0x8332cc=_0x25e8ed):_0x25e8ed['removeMarkers']():_0x8332cc=_0x25e8ed;}const _0x9917a6=this['_model']['createRange'](_0x11e166,_0x5decb0);if(_0x8332cc)this['_setSuggestionRange'](_0x8332cc,_0x9917a6);else{const _0x2fa66b=_0x16cdcd(),_0x558c3e=_0x2016f2['id'];this['_setSuggestionData']({'id':_0x2fa66b,'type':'formatInline:'+_0x27b05c,'data':_0x4b667e,'createdAt':new Date(),'authorId':_0x558c3e,'attributes':_0x61d31}),this['_addSuggestionMarker']('formatInline:'+_0x27b05c,_0x2fa66b,_0x558c3e,_0x9917a6);}}return null;}['markBlockFormat'](_0x135c10,_0x43796a,_0x3e093e=[],_0x458c7e=null,_0x10c34e={}){_0x43796a['formatGroupId']||(_0x43796a['formatGroupId']=_0x43796a['commandName']),_0x43796a['multipleBlocks']=_0x135c10['is']('range'),_0x458c7e=_0x458c7e||Jt(_0x43796a);const _0x5e7210=_0x3e093e['map'](_0x334b89=>zt(_0x334b89,this['_model'])),_0x3f2506=_0x135c10['is']('range')?_0x135c10:zt(_0x135c10,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5b2390=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x458c7e,'accept');return this['forceDefaultExecution'](()=>_0x5b2390([_0x3f2506],_0x43796a,_0x10c34e)),null;}_0x5e7210['push'](_0x3f2506);let _0x228bbe=!0x0;for(const _0x239c72 of _0x5e7210)if(!this['_rangeIsInLocalUserInsertion'](_0x239c72)){_0x228bbe=!0x1;break;}if(_0x228bbe&&'always'!==this['_trackFormatChanges']){const _0x5c7029=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x458c7e,'accept');return this['forceDefaultExecution'](()=>_0x5c7029([_0x3f2506],_0x43796a,_0x10c34e)),null;}let _0x3a891f=null,_0x3b7f01=_0x3f2506['start'],_0x3a40e5=_0x3f2506['end'];for(const {suggestion:_0x4a77d0,meta:_0x48498e}of this['_findSuggestions'](_0x3f2506,'formatBlock')){if(!_0x48498e['isOwn'])continue;if(_0x48498e['isNextTo']||_0x48498e['containsRangeInObject']||_0x48498e['isInsideObject'])continue;if(_0x4a77d0['data']['formatGroupId']!=_0x43796a['formatGroupId'])continue;if(!Qt(_0x4a77d0,_0x10c34e))continue;const _0x1cbd53=_0x4a77d0['getFirstRange']();if(_0x4a77d0['subType']==_0x458c7e){if(_0x1cbd53['containsRange'](_0x3f2506,!0x0))return null;_0x3b7f01=_0x3b7f01['isBefore'](_0x1cbd53['start'])?_0x3b7f01:_0x1cbd53['start'],_0x3a40e5=_0x3a40e5['isAfter'](_0x1cbd53['end'])?_0x3a40e5:_0x1cbd53['end'],_0x3a891f?_0x1cbd53['start']['isBefore'](_0x3a891f['getFirstRange']()['start'])?(_0x3a891f['removeMarkers'](),_0x3a891f=_0x4a77d0):_0x4a77d0['removeMarkers']():_0x3a891f=_0x4a77d0;}else{const _0x503530=_0x3f2506['getIntersection'](_0x1cbd53);this['_cutOutSuggestionMarker'](_0x4a77d0,_0x503530);}}const _0x3211b6=this['editor']['plugins']['get']('Users')['me'],_0x41651f=_0x16cdcd(),_0x4aebee=_0x3211b6['id'];if(_0x3a891f)return this['_setSuggestionRange'](_0x3a891f,this['_model']['createRange'](_0x3b7f01,_0x3a40e5)),_0x3a891f;{const _0x23848f=this['_setSuggestionData']({'id':_0x41651f,'type':'formatBlock:'+_0x458c7e,'data':_0x43796a,'createdAt':new Date(),'authorId':_0x4aebee,'attributes':_0x10c34e});return this['_addSuggestionMarker']('formatBlock:'+_0x458c7e,_0x41651f,_0x4aebee,this['_model']['createRange'](_0x3b7f01,_0x3a40e5)),_0x23848f;}}['markMultiRangeBlockFormat'](_0x428b68,_0x1e237e,_0x3020c7=[],_0x2d55f1=null,_0x5d97d2={}){_0x1e237e['formatGroupId']||(_0x1e237e['formatGroupId']=_0x1e237e['commandName']);const _0x499bd4=_0x428b68[0x0];_0x1e237e['multipleBlocks']=_0x499bd4['is']('range'),_0x2d55f1=_0x2d55f1||Jt(_0x1e237e);const _0x40c09c=_0x3020c7['map'](_0x22cb26=>zt(_0x22cb26,this['_model'])),_0x1f10d8=_0x499bd4['is']('range')?_0x428b68:_0x428b68['map'](_0x10a51a=>zt(_0x10a51a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xa6cc45=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d55f1,'accept');return this['forceDefaultExecution'](()=>_0xa6cc45(_0x1f10d8,_0x1e237e,_0x5d97d2)),null;}_0x40c09c['push'](..._0x1f10d8);let _0x572e02=!0x0;for(const _0x105716 of _0x40c09c)if(!this['_rangeIsInLocalUserInsertion'](_0x105716)){_0x572e02=!0x1;break;}if(_0x572e02&&'always'!==this['_trackFormatChanges']){const _0x398c4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d55f1,'accept');return this['forceDefaultExecution'](()=>_0x398c4e(_0x1f10d8,_0x1e237e,_0x5d97d2)),null;}const _0x141d76=this['editor']['plugins']['get']('Users')['me'];for(const _0x8746e9 of this['getSuggestions']()){if(_0x8746e9['author']['id']!=_0x141d76['id'])continue;if('formatBlock'!=_0x8746e9['type']||_0x8746e9['data']['formatGroupId']!=_0x1e237e['formatGroupId'])continue;if(!Qt(_0x8746e9,_0x5d97d2))continue;const _0x14e5b7=_0x8746e9['subType']==_0x2d55f1;for(let _0x27afef=0x0;_0x27afef<_0x1f10d8['length'];_0x27afef++){const _0x2919a0=_0x1f10d8[_0x27afef];for(const _0x548e8a of _0x8746e9['getMarkers']()){const _0x9c9c01=_0x548e8a['getRange']();if(_0x2919a0['isEqual'](_0x9c9c01)){_0x14e5b7?(_0x1f10d8['splice'](_0x27afef,0x1),_0x27afef--):_0x8746e9['removeMarker'](_0x548e8a['name']);break;}}}}if(0x0==_0x1f10d8['length'])return null;const _0x491caa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d55f1,'join');for(const _0x2a2ab5 of this['getSuggestions']())if(_0x2a2ab5['author']['id']==_0x141d76['id']&&'formatBlock'==_0x2a2ab5['type']&&_0x2a2ab5['data']['formatGroupId']==_0x1e237e['formatGroupId']&&_0x2a2ab5['subType']==_0x2d55f1&&Qt(_0x2a2ab5,_0x5d97d2)&&(_0x491caa(_0x2a2ab5['getRanges'](),_0x1f10d8)||_0x491caa(_0x1f10d8,_0x2a2ab5['getRanges']()))){for(const _0xa32b50 of _0x1f10d8)_0x2a2ab5['addRange'](_0xa32b50);return _0x2a2ab5;}const _0x26435b=_0x16cdcd(),_0x3eda6e=_0x141d76['id'],_0x532b65='formatBlock:'+_0x2d55f1,_0x39eb02=this['_setSuggestionData']({'id':_0x26435b,'type':_0x532b65,'data':_0x1e237e,'createdAt':new Date(),'authorId':_0x3eda6e,'attributes':_0x5d97d2});for(const _0x220873 of _0x1f10d8)this['_addSuggestionMarker'](_0x532b65,_0x26435b,_0x3eda6e,_0x220873,u['getMultiRangeId']());return _0x39eb02;}['markDeletion'](_0x1d97a7,_0x2fd1c6=null,_0x2897bf={}){if(_0x1d97a7['isCollapsed'])return null;const _0x40f292=this['editor']['plugins']['get']('Users')['me'],_0x2bbd3e=new _0x25966c(_0x1d97a7['start'],_0x1d97a7['end']);for(const {suggestion:_0x12f7c4,meta:_0x13a5e5}of this['_findSuggestions'](_0x2bbd3e,'insertion'))if(_0x13a5e5['isOwn']&&!_0x13a5e5['isNextTo']){if(_0x12f7c4['isMultiRange']){const _0x4e788f=_0x12f7c4['getRanges']()['filter'](_0x28c3c5=>'$graveyard'!=_0x28c3c5['root']['rootName']);_0x4e788f['every'](_0x1d2637=>_0x2bbd3e['containsRange'](_0x1d2637,!0x0))&&_0x12f7c4['discard']();if(_0x4e788f['some'](_0x127f39=>_0x127f39['containsRange'](_0x2bbd3e,!0x0))){const _0x2ae1e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd1c6,'accept');return this['forceDefaultExecution'](()=>_0x2ae1e9([_0x2bbd3e],null,_0x2897bf)),null;}}else{const _0x31efbf=_0x2bbd3e['getIntersection'](_0x12f7c4['getFirstRange']());null!==_0x31efbf&&_0x12f7c4['_onDiscard']([_0x31efbf],null,_0x2897bf);}}if(_0x2bbd3e['detach'](),_0x2bbd3e['isCollapsed']||'$graveyard'==_0x2bbd3e['root']['rootName'])return null;let _0x215253=null,_0x22f799=_0x2bbd3e['start'],_0x31abd2=_0x2bbd3e['end'];const _0x4157f4=this['_findSuggestions'](_0x2bbd3e,'deletion');for(const {suggestion:_0x3b6f55,meta:_0x1f8cb1}of _0x4157f4){const _0x11cf44=this['_model']['createRange'](_0x22f799,_0x31abd2);if(_0x1f8cb1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f8cb1['containsRangeInObject']&&!_0x1f8cb1['isInsideObject'])){if(_0x3b6f55['isMultiRange']){if(!Qt(_0x3b6f55,_0x2897bf))continue;let _0x1ca7e7=!0x0;for(const _0x55a566 of _0x3b6f55['getRanges']()){if(_0x55a566['containsRange'](_0x11cf44,!0x0))return _0x3b6f55;_0x11cf44['containsRange'](_0x55a566)||(_0x1ca7e7=!0x1);}_0x1ca7e7&&_0x3b6f55['discard']();}else{const _0x10cc1f=_0x3b6f55['getFirstRange']();if(_0x10cc1f['containsRange'](_0x11cf44,!0x0))return _0x3b6f55;if(!Qt(_0x3b6f55,_0x2897bf)){_0x11cf44['containsRange'](_0x10cc1f)?_0x3b6f55['removeMarkers']():_0x10cc1f['containsPosition'](_0x22f799)?_0x22f799=_0x10cc1f['end']:_0x10cc1f['containsPosition'](_0x31abd2)&&(_0x31abd2=_0x10cc1f['start']);continue;}_0x22f799=_0x22f799['isBefore'](_0x10cc1f['start'])?_0x22f799:_0x10cc1f['start'],_0x31abd2=_0x31abd2['isAfter'](_0x10cc1f['end'])?_0x31abd2:_0x10cc1f['end'],_0x2897bf=Object['assign']({},_0x3b6f55['attributes']),_0x215253?_0x10cc1f['start']['isBefore'](_0x215253['getFirstRange']()['start'])?(_0x215253['removeMarkers'](),_0x215253=_0x3b6f55):_0x3b6f55['removeMarkers']():_0x215253=_0x3b6f55;}}}if(_0x215253)return this['_setSuggestionRange'](_0x215253,this['_model']['createRange'](_0x22f799,_0x31abd2)),_0x215253;{const _0x252342=_0x16cdcd(),_0x3c5271=this['_model']['createRange'](_0x22f799,_0x31abd2),_0x1af3dd=_0x40f292['id'],_0x16f7fc=_0x2fd1c6?'deletion:'+_0x2fd1c6:'deletion',_0x5ceea3=this['_setSuggestionData']({'id':_0x252342,'type':_0x16f7fc,'createdAt':new Date(),'authorId':_0x1af3dd,'attributes':_0x2897bf});return this['_addSuggestionMarker'](_0x16f7fc,_0x252342,_0x1af3dd,_0x3c5271),_0x5ceea3;}}['markMultiRangeDeletion'](_0x427193,_0x45d46b='multi',_0x170d72={}){const _0x503f6d=this['editor']['plugins']['get']('Users')['me'],_0x369718=_0x427193['map'](_0x5572e9=>new _0x25966c(_0x5572e9['start'],_0x5572e9['end'])),_0x4ec022=new Set();for(const {suggestion:_0x19284b,meta:_0x4094db}of this['_findSuggestions'](_0x369718,'insertion'))_0x4094db['isOwn']&&!_0x4094db['isNextTo']&&_0x4ec022['add'](_0x19284b);for(const _0xc78538 of _0x4ec022)if(_0xc78538['isMultiRange']){const _0x59acbe=_0xc78538['getRanges']();(!_0xc78538['attributes']||!_0xc78538['attributes']['skipNestingCheck'])&&(_0x59acbe['every'](_0x451fc1=>_0x369718['some'](_0x21af4d=>_0x21af4d['containsRange'](_0x451fc1,!0x0)))&&_0xc78538['discard']());if(_0x369718['every'](_0x207fef=>_0x59acbe['some'](_0x2104bf=>_0x2104bf['containsRange'](_0x207fef,!0x0)))){const _0x264eb1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45d46b,'accept');return this['forceDefaultExecution'](()=>_0x264eb1(_0x427193,null,_0x170d72)),null;}}else{const _0x5c9471=_0xc78538['getFirstRange']();_0x369718['some'](_0x10eeaf=>_0x10eeaf['containsRange'](_0x5c9471,!0x0))&&_0xc78538['discard']();if(_0x369718['every'](_0xf57aa3=>_0x5c9471['containsRange'](_0xf57aa3,!0x0))){const _0x3db62b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45d46b,'accept');return this['forceDefaultExecution'](()=>_0x3db62b(_0x369718,null,_0x170d72)),null;}}const _0x45319d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45d46b,'join');let _0x5d02b6=null;for(const _0x204cb0 of this['getSuggestions']())if(_0x204cb0['author']['id']==_0x503f6d['id']&&_0x204cb0['isInContent']&&'deletion'==_0x204cb0['type']&&_0x204cb0['subType']==_0x45d46b&&Qt(_0x204cb0,_0x170d72)&&(_0x45319d(_0x204cb0['getRanges'](),_0x369718)||_0x45319d(_0x369718,_0x204cb0['getRanges']()))){if(_0x5d02b6){if(_0x204cb0['commentThread']&&_0x204cb0['commentThread']['length'])continue;for(const _0x2fc418 of _0x204cb0['getRanges']())_0x5d02b6['isIntersectingWithRange'](_0x2fc418)||_0x5d02b6['addRange'](_0x2fc418);_0x204cb0['removeMarkers']();}else{_0x5d02b6=_0x204cb0;for(const _0x3ce30f of _0x369718)_0x204cb0['isIntersectingWithRange'](_0x3ce30f)||_0x204cb0['addRange'](_0x3ce30f);}}if(_0x5d02b6)return _0x5d02b6;_0x4ec022['clear']();for(const {suggestion:_0x162f6e,meta:_0x5806c0}of this['_findSuggestions'](_0x369718,'deletion'))_0x5806c0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5806c0['containsRangeInObject']&&!_0x5806c0['isInsideObject'])&&Qt(_0x162f6e,_0x170d72)&&_0x4ec022['add'](_0x162f6e);for(const _0x4e47f8 of _0x4ec022){const _0x1955d9=_0x4e47f8['getRanges']();if(!_0x170d72||!_0x170d72['skipNestingCheck']){if(_0x369718['every'](_0x4e78a8=>_0x1955d9['some'](_0x4359b6=>_0x4359b6['containsRange'](_0x4e78a8,!0x0))))return _0x4e47f8;}(!_0x4e47f8['attributes']||!_0x4e47f8['attributes']['skipNestingCheck'])&&(_0x1955d9['every'](_0x52e3ea=>_0x369718['some'](_0x3fe8c5=>_0x3fe8c5['containsRange'](_0x52e3ea,!0x0)))&&_0x4e47f8['discard']());}const _0x52bc86=_0x16cdcd(),_0x5efda5=_0x503f6d['id'],_0x4de815='deletion:'+_0x45d46b,_0x2ec53f=this['_setSuggestionData']({'id':_0x52bc86,'type':_0x4de815,'createdAt':new Date(),'authorId':_0x5efda5,'attributes':_0x170d72});for(const _0x13ccc4 of _0x369718)_0x13ccc4['detach'](),_0x13ccc4['isCollapsed']||'$graveyard'==_0x13ccc4['root']['rootName']||this['_addSuggestionMarker'](_0x4de815,_0x52bc86,_0x5efda5,_0x13ccc4,u['getMultiRangeId']());return _0x2ec53f;}['markAttributeChange'](_0x3cf33b,_0x563df4,_0x293b3b,_0xc1f04a,_0x12b465){if(_0x3cf33b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8fa7ea=this['editor']['plugins']['get']('Users')['me']['id'],_0x2dab4d=Array['from'](this['_suggestions']['values']())['filter'](_0x32b26=>'attribute'==_0x32b26['type']&&_0x32b26['data']['key']==_0x563df4&&_0x32b26['isIntersectingWithRange'](_0x3cf33b));if('default'===this['_trackFormatChanges']){const _0x7dd77b=this['_findSuggestions'](_0x3cf33b,'insertion')['filter'](({meta:_0x4dedd4})=>_0x4dedd4['isOwn']&&!_0x4dedd4['isInsideObject']&&!_0x4dedd4['isNextTo'])['map'](({suggestion:_0x5e1975})=>_0x5e1975);_0x2dab4d['unshift'](..._0x7dd77b);}const _0x3f53c9=new Map([[_0x3cf33b,_0x293b3b]]);for(const _0x11c586 of _0x2dab4d){const _0xa2cd88='attribute'==_0x11c586['type']?_0x11c586['data']['oldValue']:void 0x0,_0x24d93d=_0x11c586['getFirstRange'](),_0x42e10b=Array['from'](_0x3f53c9['keys']())['find'](_0x3f95c8=>_0x3f95c8['isIntersecting'](_0x24d93d));if(!_0x42e10b)continue;const _0x187c38=_0x42e10b['getDifference'](_0x24d93d);this['_isBlockAttribute'](_0x563df4)&&'insertion'==_0x11c586['type']&&0x0!=_0x187c38['length']||(_0x3f53c9['delete'](_0x42e10b),_0x187c38['forEach'](_0x316f08=>{_0x3f53c9['set'](_0x316f08,_0x293b3b);}),'insertion'!=_0x11c586['type']&&_0xa2cd88!=_0xc1f04a&&_0x3f53c9['set'](_0x42e10b['getIntersection'](_0x24d93d),_0xa2cd88));}const _0x5cb8bf=[];for(const [_0x1a0291,_0x3d48fc]of _0x3f53c9){const _0x50b667=_0x16cdcd(),_0x44a496={'key':_0x563df4,'oldValue':_0x3d48fc,'newValue':_0xc1f04a};_0x563df4['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':_0x563df4});const _0x68d1fe=('attribute:'+(_0x563df4+'|'+Jt({'newValue':_0xc1f04a})))['substring'](0x0,0x3c),_0x43a6ed=this['_setSuggestionData']({'id':_0x50b667,'type':_0x68d1fe,'data':_0x44a496,'createdAt':new Date(),'authorId':_0x8fa7ea,'attributes':_0x12b465});_0x5cb8bf['push'](_0x43a6ed),this['_addSuggestionMarker'](_0x68d1fe,_0x50b667,_0x8fa7ea,_0x1a0291);}return _0x5cb8bf;}['enableDefaultAttributesIntegration'](_0x54975e){this['enableCommand'](_0x54975e,(_0x565be7,..._0x43007f)=>{this['_recordAttributeChanges'](()=>{_0x565be7(..._0x43007f);});});}['registerBlockAttribute'](_0x3ff1fc){this['_blockAttributeKeys']['add'](_0x3ff1fc);}['registerInlineAttribute'](_0x54f3e0){this['_inlineAttributeKeys']['add'](_0x54f3e0);}['_getAttributeKey'](_0x4c1269){return'attribute'==_0x4c1269['type']?_0x4c1269['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4da15e,_0x541917){const _0x1ec0aa=_0x4da15e['getFirstMarker']();this['_model']['change'](_0x66023e=>{_0x66023e['updateMarker'](_0x1ec0aa,{'range':_0x541917});});}['_addThreadToSuggestion'](_0x68f12){const _0xad7817=_0x68f12['id'],_0x59b0d7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xad7817)||this['_commentsRepository']['addCommentThread']({'channelId':_0x59b0d7,'threadId':_0xad7817,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2036df=this['_commentsRepository']['getCommentThread'](_0xad7817);_0x2036df['unbind']('isRemovable'),_0x2036df['isRemovable']=!0x1,_0x68f12['commentThread']=_0x2036df;}['_checkSuggestionCorrectness'](_0x1863b5,_0x648ed1,_0x420af2,_0x320e51){if(_0x1863b5['type']!=_0x648ed1||_0x1863b5['subType']!=_0x420af2||_0x1863b5['creator']['id']!=_0x320e51)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x21392e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x36a26c,_0xf45e37){const _0x18b2af=_0x36a26c['getFirstRange']();if(_0xf45e37['isEqual'](_0x18b2af))_0x36a26c['removeMarkers']();else{if(_0x18b2af['containsRange'](_0xf45e37)){const _0x2a8ea8=this['_model']['createPositionAt'](_0xf45e37['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x36a26c,this['_model']['createRange'](_0x18b2af['start'],_0x2a8ea8));const _0x3021f9=_0x16cdcd(),_0x5f5c89=_0x36a26c['creator']['id'],_0x18bbf9=_0x36a26c['type']+':'+_0x36a26c['subType'];this['_setSuggestionData']({'id':_0x3021f9,'type':_0x18bbf9,'createdAt':new Date(),'authorId':_0x5f5c89,'data':_0x36a26c['data'],'attributes':_0x36a26c['attributes']});const _0x10d79c=this['_model']['createPositionAt'](_0xf45e37['end']['parent'],'after'),_0x107f5b=this['_model']['createRange'](_0x10d79c,_0x18b2af['end']);this['_addSuggestionMarker'](_0x18bbf9,_0x3021f9,_0x5f5c89,_0x107f5b);}else{if(_0x18b2af['containsPosition'](_0xf45e37['start'])){const _0x24ee08=this['_model']['createPositionAt'](_0xf45e37['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x36a26c,this['_model']['createRange'](_0x18b2af['start'],_0x24ee08));}else{const _0x48bc77=this['_model']['createPositionAt'](_0xf45e37['end']['parent'],'after');this['_setSuggestionRange'](_0x36a26c,this['_model']['createRange'](_0x48bc77,_0x18b2af['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xce0246){for(const {suggestion:_0xabfb24,meta:_0x5e0130}of this['_findSuggestions'](_0xce0246,'insertion')){if(!_0x5e0130['isOwn'])continue;const _0x29cb9b=_0xabfb24['getRanges']();for(const _0x42869d of _0x29cb9b)if(!_0xce0246['getDifference'](_0x42869d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x23609f){const _0xcad019=this['editor']['plugins']['get']('Users')['getUser'](_0x23609f);if(!_0xcad019)throw new _0x21392e('track-changes-user-not-found',this);return _0xcad019;}['_getExternalAuthor'](_0x2c0b87){const _0x30f55e=this['editor']['plugins']['get']('Users'),_0x3517da=_0x12fa0f('external:'+_0x2c0b87),_0x51131b=_0x30f55e['getUser'](_0x3517da);return _0x51131b||_0x30f55e['addUser']({'id':_0x3517da,'name':_0x2c0b87});}['_createSuggestion'](_0x1ceac1,_0x17dee2,_0x43cefb,_0x55891f,_0x514c61){const _0x5f0245=this['_getAuthorFromId'](_0x55891f),_0x5dcbad=this['_suggestionFactory']['buildSuggestion'](_0x1ceac1,_0x17dee2,_0x43cefb,_0x5f0245,_0x514c61,_0x1e2584=>{this['_updateSuggestionData'](_0x43cefb,{'attributes':_0x1e2584});const _0x336ca0=this['getSuggestion'](_0x43cefb);this['_joinWithAdjacentSuggestions'](new Set([_0x336ca0])),this['_refreshSuggestionsChain'](new Set([_0x336ca0]));});return this['listenTo'](_0x5dcbad,'accept',()=>{this['_updateSuggestionData'](_0x43cefb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5dcbad,'discard',()=>{this['_updateSuggestionData'](_0x43cefb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43cefb,_0x5dcbad),this['_suggestionState']['set'](_0x5dcbad,'notReady'),_0x5dcbad;}['_splitMarkerName'](_0x3f4116){const _0x175a8e=_0x3f4116['split'](':');return{'group':_0x175a8e[0x0],'type':_0x175a8e[0x1],'subType':_0x175a8e['length']>=0x5?_0x175a8e[0x2]:null,'id':_0x175a8e['length']<0x5?_0x175a8e[0x2]:_0x175a8e[0x3],'authorId':_0x175a8e['length']<0x5?_0x175a8e[0x3]:_0x175a8e[0x4],'markerCount':0x6==_0x175a8e['length']?_0x175a8e[0x5]:null};}['_breakSuggestionMarker'](_0x2d9005,_0x50e09d,_0x34cff5){const _0x3a6a04=_0x2d9005['getFirstRange'](),_0x217736=_0x3a6a04['start'],_0x14bfd7=_0x3a6a04['end'];this['_setSuggestionRange'](_0x2d9005,this['_model']['createRange'](_0x217736,_0x50e09d));const _0x291a94=_0x16cdcd(),_0x4c5ccd=_0x2d9005['creator']['id'],_0x1ecd42=_0x2d9005['type']+(_0x2d9005['subType']?':'+_0x2d9005['subType']:'');this['_setSuggestionData']({'id':_0x291a94,'type':_0x1ecd42,'createdAt':new Date(),'authorId':_0x4c5ccd,'originalSuggestionId':_0x2d9005['id'],'attributes':_0x2d9005['attributes'],'data':_0x2d9005['data']});const _0x46c769=this['_getAttributeKey'](_0x2d9005);('formatBlock'==_0x2d9005['type']||_0x46c769&&this['_isBlockAttribute'](_0x46c769))&&(_0x34cff5=this['_model']['createPositionBefore'](_0x34cff5['parent'])),this['_addSuggestionMarker'](_0x1ecd42,_0x291a94,_0x4c5ccd,this['_model']['createRange'](_0x34cff5,_0x14bfd7));}['_findSuggestions'](_0x57c9d0,_0x26b952=null){const _0x4db355=[],_0x5eb79b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x57c9d0)||(_0x57c9d0=[_0x57c9d0]);for(const _0x5444f6 of this['getSuggestions']()){if(!_0x5444f6['isInContent'])continue;if(_0x26b952&&_0x5444f6['type']!=_0x26b952)continue;let _0x128c07=!0x1;for(const _0x8b35f9 of _0x5444f6['getRanges']()){for(const _0x20f19c of _0x57c9d0){const _0x1c4992=_0x20f19c['start']['isEqual'](_0x8b35f9['end'])||_0x20f19c['end']['isEqual'](_0x8b35f9['start']);if(_0x1c4992||_0x20f19c['getIntersection'](_0x8b35f9)){const _0x529329=_0x20f19c['containsRange'](_0x8b35f9)&&Gt(this['_model']['schema'],_0x8b35f9['start'],_0x20f19c),_0x3e613c=_0x8b35f9['containsRange'](_0x20f19c)&&Gt(this['_model']['schema'],_0x20f19c['start'],_0x8b35f9);_0x4db355['push']({'suggestion':_0x5444f6,'meta':{'isOwn':_0x5eb79b==_0x5444f6['author'],'isNextTo':_0x1c4992,'isInsideObject':_0x529329,'containsRangeInObject':_0x3e613c}}),_0x128c07=!0x0;break;}}if(_0x128c07)break;}}return _0x4db355;}['_addSuggestionMarker'](_0x3284ea,_0x339614,_0x185501,_0x2df92d,_0xacd4c2){this['_model']['change'](_0x14a4a3=>{let _0x5c2380='suggestion:'+_0x3284ea+':'+_0x339614+':'+_0x185501;_0xacd4c2&&(_0x5c2380=_0x5c2380+':'+_0xacd4c2),_0x14a4a3['addMarker'](_0x5c2380,{'range':_0x2df92d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x53c5c9){const _0x113241=_0x53c5c9['previous'],_0x460fff=_0x53c5c9['next'];_0x53c5c9['previous']=null,_0x53c5c9['next']=null,null!=_0x113241&&_0x113241['next']==_0x53c5c9&&(_0x113241['next']=_0x460fff),null!=_0x460fff&&_0x460fff['previous']==_0x53c5c9&&(_0x460fff['previous']=_0x113241),'ready'==this['_suggestionState']['get'](_0x53c5c9)&&(this['_suggestionState']['set'](_0x53c5c9,'removed'),this['fire']('suggestionUnloaded',_0x53c5c9,_0x113241,_0x460fff));}['_setSuggestionData'](_0x4aab73){const _0x557e73=_0x4aab73['id'],_0x844b67=this['addSuggestionData'](_0x4aab73);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xfd8474=this['editor']['plugins']['get']('PendingActions'),_0x288eba=_0x844b67['hasComments'],_0x595a97=_0x844b67['subType']?_0x844b67['type']+':'+_0x844b67['subType']:_0x844b67['type'],_0x12be74=this['editor']['locale'],_0x4a1440=_0xfd8474['add'](o(_0x12be74,'PENDING_ACTION_SUGGESTION')),_0xc93cb2={'id':_0x557e73,'type':_0x595a97,'hasComments':_0x288eba,'data':_0x4aab73['data']||null,'originalSuggestionId':_0x4aab73['originalSuggestionId']||null,'attributes':_0x844b67['attributes']};this['_adapter']['addSuggestion'](_0xc93cb2)['then'](_0x2a51e1=>{_0x844b67['_saved']=!0x0,_0xfd8474['remove'](_0x4a1440),_0x2a51e1&&_0x2a51e1['createdAt']&&(this['_suggestions']['get'](_0x557e73)['createdAt']=_0x2a51e1['createdAt']);})['catch'](_0x2b3de2=>{throw _0x5504c8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x844b67['discard']();}),_0x844b67['stopListening'](),this['_suggestions']['delete'](_0x844b67['id']),this['_suggestionState']['delete'](_0x844b67),_0x2b3de2;});}return _0x844b67;}['_isBlockAttribute'](_0x95d583){return this['_blockAttributeKeys']['has'](_0x95d583);}['_updateSuggestionData'](_0x40b9c0,_0x39ee8f){const _0x404de5=this['editor']['plugins']['get']('PendingActions'),_0x4550b2=this['getSuggestion'](_0x40b9c0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4550b2['_saved']){const _0x4bcc59=_0x404de5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x40b9c0,_0x39ee8f)['then'](()=>{_0x404de5['remove'](_0x4bcc59);});}else _0x4550b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x40b9c0,_0x39ee8f);});}}['_getSuggestionData'](_0x248f22){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x21392e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x248f22);}['_handleNewSuggestionMarker'](_0x37d1fe){const {id:_0xcbb58b,type:_0x1d2fff,subType:_0x2d3436,authorId:_0x579bb5}=this['_splitMarkerName'](_0x37d1fe),_0xd4f77b=this['_suggestions']['get'](_0xcbb58b)||this['_createSuggestion'](_0x1d2fff,_0x2d3436,_0xcbb58b,_0x579bb5,{});switch(this['_checkSuggestionCorrectness'](_0xd4f77b,_0x1d2fff,_0x2d3436,_0x579bb5),this['_suggestionState']['get'](_0xd4f77b)){case'notReady':this['_getSuggestionData'](_0xcbb58b)['then'](_0x4d1558=>{let _0x372dbb=Promise['resolve']();_0x4d1558['hasComments']&&(_0x372dbb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcbb58b})),_0x372dbb['then'](()=>{this['addSuggestionData'](_0x4d1558)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xd4f77b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcbb58b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xd4f77b,'ready'),this['fire']('suggestionLoaded',_0xd4f77b);break;case'ready':this['fire']('suggestionChanged',_0xd4f77b);}return _0xd4f77b['addMarkerName'](_0x37d1fe),_0xd4f77b;}['_refreshSuggestionsChain'](_0x3048c3){const _0x4e1156=Array['from'](_0x3048c3),_0x4f768a=_0x4e1156['filter'](_0x3159cc=>'attribute'==_0x3159cc['type']);this['_refreshAttributeSuggestionsChain'](_0x4f768a);const _0x6950bd=_0x4e1156['filter'](_0x15dbc7=>!_0x15dbc7['isMultiRange']&&'attribute'!=_0x15dbc7['type']),_0x303f0d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7ce76=>!_0x7ce76['isMultiRange']&&'attribute'!=_0x7ce76['type']),_0x42e075=_0x303f0d['filter'](_0x1bf7c2=>!_0x3048c3['has'](_0x1bf7c2)),_0x24f9dd=new Map(_0x303f0d['map'](_0x175c69=>[_0x175c69,this['_suggestionFactory']['getSuggestionCallback'](_0x175c69['type'],_0x175c69['subType'],'chain')])),_0x4b6be4=new Map(_0x303f0d['map'](_0x42bca4=>[_0x42bca4,_0x42bca4['getFirstRange']()])),_0x20b75b=new Set(),_0x46c6c5=new Set();for(let _0x4b787f=0x0;_0x4b787f<_0x6950bd['length'];_0x4b787f++)_0x53847c(_0x6950bd[_0x4b787f],_0x6950bd,_0x4b787f+0x1);for(let _0x5a8595=0x0;_0x5a8595<_0x6950bd['length'];_0x5a8595++)_0x53847c(_0x6950bd[_0x5a8595],_0x42e075,0x0);const _0x2ace63=new Set();for(let _0x378407=0x0;_0x378407<_0x6950bd['length'];_0x378407++){const _0x50b820=_0x6950bd[_0x378407];!_0x46c6c5['has'](_0x50b820)&&_0x50b820['previous']&&(_0x2ace63['add'](_0x50b820['previous']),_0x50b820['previous']['next']===_0x50b820&&(_0x50b820['previous']['next']=null),_0x50b820['previous']=null),!_0x20b75b['has'](_0x50b820)&&_0x50b820['next']&&(_0x2ace63['add'](_0x50b820['next']),_0x50b820['next']['previous']===_0x50b820&&(_0x50b820['next']['previous']=null),_0x50b820['next']=null);}function _0x53847c(_0x3ed93a,_0x5c3795,_0x428502){for(let _0x125f9e=_0x428502;_0x125f9e<_0x5c3795['length'];_0x125f9e++){const _0x43847b=_0x44537e(_0x3ed93a,_0x5c3795[_0x125f9e]);_0x43847b&&(_0x43847b[0x0]['next']=_0x43847b[0x1],_0x43847b[0x1]['previous']=_0x43847b[0x0],_0x20b75b['add'](_0x43847b[0x0]),_0x46c6c5['add'](_0x43847b[0x1]));}}function _0x44537e(_0xad5c79,_0x1b0fcb){if(_0xad5c79['author']['id']!==_0x1b0fcb['author']['id'])return null;const _0x371cd9=_0x24f9dd['get'](_0xad5c79)(_0xad5c79,_0x1b0fcb,_0x4b6be4['get'](_0xad5c79),_0x4b6be4['get'](_0x1b0fcb));if(!_0x371cd9)return null;return _0x24f9dd['get'](_0x1b0fcb)(_0xad5c79,_0x1b0fcb,_0x4b6be4['get'](_0xad5c79),_0x4b6be4['get'](_0x1b0fcb))?_0x371cd9[0x1]['commentThread']&&_0x371cd9[0x1]['commentThread']['length']?null:_0x371cd9:null;}_0x2ace63['size']&&this['_refreshSuggestionsChain'](_0x2ace63);}['_refreshAttributeSuggestionsChain'](_0x5bbde3){if(0x0==_0x5bbde3['length'])return;const _0x4517ae=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c1f6=>'attribute'==_0x22c1f6['type']&&_0x22c1f6['_isDataLoaded']),_0x487a69=[],_0x312986=new Map();for(const _0x9fc6 of _0x4517ae){const _0x5b8a1e=_0x12fa0f(_0x9fc6['attributes']);_0x312986['has'](_0x5b8a1e)||(_0x312986['set'](_0x5b8a1e,_0x487a69['length']),_0x487a69['push']([]));const _0x1b805c=_0x312986['get'](_0x5b8a1e);_0x487a69[_0x1b805c]['push'](_0x9fc6);}!(function(){_0x487a69['sort']((_0x39c186,_0x36f7b7)=>{const _0x23df60=_0x39c186[0x0]['createdAt'],_0x269e56=_0x36f7b7[0x0]['createdAt'];return _0x23df60==_0x269e56?_0x39c186[0x0]['attributes']['groupId']<_0x36f7b7[0x0]['attributes']['groupId']?-0x1:0x1:_0x23df60<_0x269e56?-0x1:0x1;});for(const _0x67a5db of _0x487a69)_0x67a5db['sort']((_0x1a84d8,_0x581ec4)=>_0x1a84d8['id']<_0x581ec4['id']?-0x1:0x1);}());for(let _0x456d17=0x0;_0x456d17<_0x487a69['length'];_0x456d17++){if(0x0==_0x487a69[_0x456d17]['length'])continue;const _0x3a667c=[];for(let _0x22787c=_0x456d17+0x1;_0x22787c<_0x487a69['length'];_0x22787c++)0x0!=_0x487a69[_0x22787c]['length']&&_0x532798(_0x487a69[_0x456d17],_0x487a69[_0x22787c])&&_0x3a667c['push'](_0x22787c);for(const _0x5be609 of _0x3a667c)_0x487a69[_0x456d17]=_0x487a69[_0x456d17]['concat'](_0x487a69[_0x5be609]),_0x487a69[_0x5be609]=[];}for(const _0xe473d2 of _0x487a69)for(let _0x5ca9fb=0x0;_0x5ca9fb<_0xe473d2['length'];_0x5ca9fb++){const _0x37899e=_0xe473d2[_0x5ca9fb+0x1]||null;_0xe473d2[_0x5ca9fb]['next']!==_0x37899e&&(_0xe473d2[_0x5ca9fb]['next']=_0x37899e);}for(const _0x3b2402 of _0x487a69)for(let _0x44371d=0x0;_0x44371d<_0x3b2402['length'];_0x44371d++){const _0x52ffc3=_0x3b2402[_0x44371d-0x1]||null;_0x3b2402[_0x44371d]['previous']!==_0x52ffc3&&(_0x3b2402[_0x44371d]['previous']=_0x52ffc3);}function _0x532798(_0x536890,_0x1c47c5){if(_0x536890[0x0]['attributes']['groupId']!==_0x1c47c5[0x0]['attributes']['groupId']&&_0x536890[0x0]['author']!==_0x1c47c5[0x0]['author'])return!0x1;if(!function(_0x100aa0,_0x1b17b8){if(!_0x100aa0['hasComments']&&!_0x1b17b8['hasComments'])return!0x0;if(_0x100aa0['hasComments']&&_0x1b17b8['hasComments'])return!0x1;if(_0x100aa0['hasComments']&&_0x1b17b8['createdAt']<_0x100aa0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1b17b8['hasComments']&&_0x100aa0['createdAt']<_0x1b17b8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x536890[0x0],_0x1c47c5[0x0]))return!0x1;const _0x5211eb=Vt(_0x536890[0x0]['attributes'],'groupId'),_0x2436dc=Vt(_0x1c47c5[0x0]['attributes'],'groupId');if(!_0x55fccb(_0x5211eb,_0x2436dc))return!0x1;return!!_0x536890['every'](_0x131fda=>_0x1c47c5['some'](_0x363990=>_0x131fda['getFirstRange']()['isEqual'](_0x363990['getFirstRange']())))&&_0x1c47c5['every'](_0x3944a7=>_0x536890['some'](_0x232184=>_0x3944a7['getFirstRange']()['isEqual'](_0x232184['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3f40c){const _0x58a997=Array['from'](_0x3f40c),_0x5a592b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x48340e=_0x5a592b['filter'](_0x255043=>!_0x3f40c['has'](_0x255043)),_0x2b1326=new Map(_0x58a997['map'](_0x3124bf=>[_0x3124bf,this['_suggestionFactory']['getSuggestionCallback'](_0x3124bf['type'],_0x3124bf['subType'],'join')])),_0x13b101=new Map(_0x5a592b['map'](_0x3fe97e=>[_0x3fe97e,_0x3fe97e['getRanges']()]));for(let _0x1d14a6=0x0;_0x1d14a6<_0x58a997['length'];_0x1d14a6++){if(_0x56951f(this,_0x58a997[_0x1d14a6],_0x58a997,_0x1d14a6+0x1))return!0x0;}for(let _0x2550fb=0x0;_0x2550fb<_0x58a997['length'];_0x2550fb++){if(_0x56951f(this,_0x58a997[_0x2550fb],_0x48340e,0x0))return!0x0;}return!0x1;function _0x56951f(_0x5edfb1,_0x4818a3,_0xc96361,_0x23c629){for(let _0x15761d=_0x23c629;_0x15761d<_0xc96361['length'];_0x15761d++){const _0x5be502=_0xc96361[_0x15761d];if(_0x5be502['type']!==_0x4818a3['type']||_0x5be502['author']['id']!==_0x4818a3['author']['id']||_0x5be502['subType']!==_0x4818a3['subType'])continue;if(!Wt(_0x4818a3,_0x5be502))continue;if('attribute'==_0x4818a3['type']&&_0x4818a3['data']['oldValue']!=_0x5be502['data']['oldValue'])continue;if('attribute'==_0x4818a3['type']&&_0x5edfb1['_isBlockAttribute'](_0x4818a3['data']['key']))continue;if('formatBlock'==_0x4818a3['type']){const _0x3c97e3=_0x5edfb1['editor']['model'],_0x5c5e64=_0x4818a3['getContainedElement']();if(_0x5c5e64&&(_0x3c97e3['schema']['isObject'](_0x5c5e64)||_0x3c97e3['schema']['isLimit'](_0x5c5e64)))continue;}const _0x478eec=_0x2b1326['get'](_0x4818a3),_0x5a7391=_0x13b101['get'](_0x4818a3),_0x5a9737=_0x13b101['get'](_0x5be502),_0x49d2e9=_0x4818a3['commentThread']&&_0x4818a3['commentThread']['length'],_0x2a0fdc=_0x5be502['commentThread']&&_0x5be502['commentThread']['length'];if(!_0x49d2e9&&_0x478eec(_0x5a9737,_0x5a7391))return _0x5edfb1['_joinSuggestions'](_0x5be502,_0x4818a3),_0x13b101['delete'](_0x4818a3),!0x0;if(!_0x2a0fdc&&_0x478eec(_0x5a7391,_0x5a9737))return _0x5edfb1['_joinSuggestions'](_0x4818a3,_0x5be502),_0x13b101['delete'](_0x5be502),!0x0;}return!0x1;}}['_joinSuggestions'](_0x237053,_0xba4e3c){if(_0x237053['isMultiRange']){for(const _0x33add1 of _0xba4e3c['getRanges']())_0x237053['addRange'](_0x33add1);}else{const _0x5e1657=_0xba4e3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x237053,this['_model']['createRange'](_0x237053['getFirstRange']()['start'],_0x5e1657));}_0xba4e3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x540ffe,_0x31a8a4,_0xe36dc8){const _0x2083b2=_0x540ffe['startsWith']('format')||_0x540ffe['startsWith']('attribute')?'FORMATTING':_0x540ffe['toUpperCase']();return o(this['editor']['locale'],_0x31a8a4+'_'+_0x2083b2+'_SUGGESTION_ANNOUNCEMENT',_0xe36dc8);}['_initAriaMarkerChangeAnnouncements'](){const _0x3d117d=this['editor'];if(!_0x3d117d['ui'])return;const {ariaLiveAnnouncer:_0x300212}=_0x3d117d['ui'];_0x5ca1bf(this['_model'],({left:_0x2a390d,entered:_0x51fa38})=>{for(const _0x3a7eba of _0x2a390d){const {group:_0x191815,type:_0x9058e6}=this['_splitMarkerName'](_0x3a7eba['name']);if('suggestion'===_0x191815){_0x300212['announce'](this['_getMarkerAnnouncementText'](_0x9058e6,'LEAVE'));break;}}for(const _0x580faa of _0x51fa38){const {group:_0xb714fe,type:_0x639bfa}=this['_splitMarkerName'](_0x580faa['name']);if('suggestion'===_0xb714fe){_0x300212['announce'](this['_getMarkerAnnouncementText'](_0x639bfa,'ENTER',_0xaff5fb(_0xb6d6be)));break;}}});}['_processAttributeChanges'](_0x3ba1a5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3b12a4=this['editor'],_0x1a3417=_0x3b12a4['model']['document']['differ']['getChanges']();if(0x0==_0x1a3417['length'])return!0x1;const _0x10fbda=[],_0x56d05d=_0x1a3417['filter'](_0x5d15d0=>'attribute'==_0x5d15d0['type']),_0x5681bd=_0x1a3417['filter'](_0x318d76=>'insert'==_0x318d76['type']&&'$text'!=_0x318d76['name']),_0x400891=_0x1a3417['filter'](_0x572411=>'remove'==_0x572411['type']&&'$text'!=_0x572411['name']);for(const _0x4cf69b of _0x56d05d)_0x10fbda['push']({'key':_0x4cf69b['attributeKey'],'newValue':_0x4cf69b['attributeNewValue'],'oldValue':_0x4cf69b['attributeOldValue'],'range':qt(_0x4cf69b['range'],_0x3b12a4['model'])});for(const _0x34f899 of _0x5681bd){const _0x4dcf96=_0x400891['find'](_0x298ff6=>_0x298ff6['position']['isEqual'](_0x34f899['position']));_0x4dcf96&&_0x10fbda['push']({'key':m,'newValue':_0x34f899['name'],'oldValue':_0x4dcf96['name'],'range':_0x3b12a4['model']['createRangeOn'](_0x34f899['position']['nodeAfter'])});}return 0x0!=_0x10fbda['length']&&this['_reduceExistingSuggestions'](_0x3ba1a5,_0x10fbda);}['_processAttributeSuggestions'](_0x5b6484){let _0x135f7b=!0x1;const _0x4eedcf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b001e=>_0x5b001e['data']['newRange']&&_0x5b001e['name']['startsWith']('suggestion:attribute:'));for(const _0x2ab51e of _0x4eedcf){const {subType:_0x5b5eac,id:_0x35d658}=this['_splitMarkerName'](_0x2ab51e['name']),_0x1e3649=_0x5b5eac['split']('|')[0x0];for(const _0x307fcf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x307fcf['id']!=_0x35d658&&'attribute'==_0x307fcf['type']&&_0x307fcf['data']&&_0x307fcf['data']['key']==_0x1e3649&&_0x307fcf['getFirstRange']()['isIntersecting'](_0x2ab51e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x307fcf,_0x2ab51e['data']['newRange'],_0x5b6484),_0x135f7b=!0x0);}return _0x135f7b;}['_recordAttributeChanges'](_0x175a5d){this['_recordAttributeSuggestions']=!0x0,_0x175a5d();}['_isRegisteredAttribute'](_0x513ece){const _0x3f783f=this['_isBlockAttribute'](_0x513ece),_0x247cb8=this['_inlineAttributeKeys']['has'](_0x513ece);return _0x3f783f||_0x247cb8;}['_reduceExistingSuggestions'](_0x4059b9,_0x15973f){if(0x0==_0x15973f['length'])return!0x1;let _0x209323=!0x1;for(const _0x4caf0d of _0x15973f){const _0x34b4ee=this['_findSuggestions'](_0x4caf0d['range'],'attribute')['filter'](_0x3b540c=>!_0x3b540c['meta']['isNextTo'])['map'](_0x3c366e=>_0x3c366e['suggestion']),_0x3c7537=_0x12fa0f({'newValue':_0x4caf0d['newValue']});_0x34b4ee['filter'](_0x339167=>{const [_0x5787a2,_0x125308]=_0x339167['subType']['split']('|');return _0x5787a2==_0x4caf0d['key']&&_0x125308!=_0x3c7537;})['forEach'](_0x441810=>{this['_reduceSuggestionAttributeRange'](_0x441810,_0x4caf0d['range'],_0x4059b9),_0x209323=!0x0;});}return _0x209323;}['_reduceSuggestionAttributeRange'](_0x19f93f,_0x3e897d,_0x2fb496){const _0x42bb3d=_0x19f93f['getFirstRange']()['getDifference'](_0x3e897d);0x0!==_0x42bb3d['length']?0x1!==_0x42bb3d['length']?this['_breakSuggestionMarker'](_0x19f93f,_0x3e897d['start'],_0x3e897d['end']):this['_setSuggestionRange'](_0x19f93f,_0x42bb3d[0x0]):_0x2fb496['removeMarker'](_0x19f93f['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5f2224){this['_editor']=_0x5f2224,this['_model']=_0x5f2224['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4997ed,_0x42dfa2,_0x5b5545,_0x2d14d4,_0x5a72f6,_0xc38302){return new u(this['_model'],{'type':_0x4997ed,'subType':_0x42dfa2,'id':_0x5b5545,'author':_0x2d14d4,'creator':_0x2d14d4,'attributes':_0x5a72f6,'onAttributesChange':_0xc38302,'onAccept':(..._0x2c6f71)=>this['getSuggestionCallback'](_0x4997ed,_0x42dfa2,'accept')(..._0x2c6f71),'onDiscard':(..._0x29d5c7)=>this['getSuggestionCallback'](_0x4997ed,_0x42dfa2,'discard')(..._0x29d5c7)});}['registerCustomCallback'](_0x4a68fc,_0x40b977,_0x128c01,_0x1ff316){const _0x522c04=_0x4a68fc+':'+_0x40b977+':'+_0x128c01;this['_customCallbacks']['set'](_0x522c04,_0x1ff316);}['getSuggestionCallback'](_0x5cba30,_0x555784,_0x410a13){const _0x51005e=_0x5cba30+':'+_0x555784+':'+_0x410a13;return this['_customCallbacks']['get'](_0x51005e)||this['_defaultCallbacks']['get'](_0x5cba30+':'+_0x410a13);}['_registerDefaultCallbacks'](){const _0xc9f7e5=()=>!0x1,_0x591743=_0x61244a=>{_0x61244a['sort']((_0x103a34,_0x26e5d2)=>_0x103a34['start']['isBefore'](_0x26e5d2['start'])?0x1:-0x1),this['_model']['change'](_0xe7a7e4=>{for(const _0x276e60 of _0x61244a){let _0xb50054;_0xb50054=_0x276e60['end']['isAtEnd']&&_0x276e60['end']['parent']==_0x276e60['start']['nodeAfter']?_0xe7a7e4['createSelection'](_0x276e60['start']['nodeAfter'],'on'):_0xe7a7e4['createSelection'](_0x276e60),this['_model']['deleteContent'](_0xb50054,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x594769=(_0x51d96f,_0x16144b)=>{_0x16144b&&this['_model']['change'](_0x831d39=>{const {commandName:_0x1e3713,commandParams:_0x542f6c=[]}=_0x16144b,_0x3d234a=_0x51d96f['map'](_0x238437=>(Ft(_0x238437)&&(_0x238437=this['_model']['createRange'](_0x238437['end'])),_0x238437))['filter'](_0x344ec2=>'$graveyard'!==_0x344ec2['root']['rootName']);if(_0x3d234a['length']<0x1)return;const _0x44495e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x380782=>_0x25966c['fromRange'](_0x380782));_0x831d39['setSelection'](_0x3d234a);for(const _0x14f215 of this['_editor']['commands']['commands']())_0x14f215['refresh']();_0x542f6c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e3713,..._0x542f6c);const _0x2df40f=_0x44495e['filter'](_0x287b20=>'$graveyard'!=_0x287b20['root']['rootName']);_0x2df40f['length']>0x0&&_0x831d39['setSelection'](_0x2df40f);for(const _0x407019 of _0x44495e)_0x407019['detach']();});},_0x2ba464=(_0x2128c9,_0x4413d9)=>0x1==_0x2128c9['length']&&0x1==_0x4413d9['length']&&_0x2128c9[0x0]['end']['isEqual'](_0x4413d9[0x0]['start']),_0x6421bd=(_0x300b46,_0x558ecb,_0xbc313a,_0x260bcd)=>Kt(_0x300b46,_0x558ecb,_0xbc313a,_0x260bcd)?[_0x300b46,_0x558ecb]:Kt(_0x558ecb,_0x300b46,_0x260bcd,_0xbc313a)?[_0x558ecb,_0x300b46]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xc9f7e5),this['_defaultCallbacks']['set']('insertion:discard',_0x591743),this['_defaultCallbacks']['set']('insertion:join',_0x2ba464),this['_defaultCallbacks']['set']('insertion:chain',_0x6421bd),this['_defaultCallbacks']['set']('deletion:accept',_0x591743),this['_defaultCallbacks']['set']('deletion:discard',_0xc9f7e5),this['_defaultCallbacks']['set']('deletion:join',_0x2ba464),this['_defaultCallbacks']['set']('deletion:chain',_0x6421bd),this['_defaultCallbacks']['set']('formatInline:accept',_0x594769),this['_defaultCallbacks']['set']('formatInline:discard',_0xc9f7e5),this['_defaultCallbacks']['set']('formatInline:join',_0x2ba464),this['_defaultCallbacks']['set']('formatInline:chain',_0xc9f7e5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x594769),this['_defaultCallbacks']['set']('formatBlock:discard',_0xc9f7e5),this['_defaultCallbacks']['set']('formatBlock:join',_0x2ba464),this['_defaultCallbacks']['set']('formatBlock:chain',_0xc9f7e5),this['_defaultCallbacks']['set']('attribute:accept',_0xc9f7e5),this['_defaultCallbacks']['set']('attribute:discard',(_0xb70f7,_0x1462da)=>{if(!_0x1462da)return;const _0x485eb7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3bd246=>{if(_0x1462da['key']==m)for(const _0xad918e of _0xb70f7){const _0x10c04f=_0xad918e['start']['nodeAfter'],_0x14b697=_0x1462da['oldValue'];_0x3bd246['rename'](_0x10c04f,_0x14b697);}else{if(_0x485eb7['_isBlockAttribute'](_0x1462da['key'])){for(const _0x1209f1 of _0xb70f7)void 0x0!==_0x1462da['oldValue']?_0x3bd246['setAttribute'](_0x1462da['key'],_0x1462da['oldValue'],_0x1209f1['start']['nodeAfter']):_0x3bd246['removeAttribute'](_0x1462da['key'],_0x1209f1['start']['nodeAfter']);}else{for(const _0x4bae79 of _0xb70f7)_0x1462da['oldValue']?_0x3bd246['setAttribute'](_0x1462da['key'],_0x1462da['oldValue'],_0x4bae79):_0x3bd246['removeAttribute'](_0x1462da['key'],_0x4bae79);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2ba464);}}function Gt(_0x34a2e9,_0x3de154,_0x5b7459){for(const _0x3aaef0 of _0x3de154['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3aaef0['root']==_0x3aaef0)return!0x1;if(!_0x5b7459['containsItem'](_0x3aaef0))return!0x1;if(_0x34a2e9['isObject'](_0x3aaef0)||_0x34a2e9['isLimit'](_0x3aaef0))return!0x0;}return!0x1;}function Ft(_0xbcbe0a){return _0xbcbe0a['end']['parent']==_0xbcbe0a['start']['nodeAfter']&&_0xbcbe0a['end']['isAtStart'];}function Lt(_0x41bff6,_0x354a75,_0x3b4cb1,_0x36567d){const _0x1b7c8=_0x43e197=>!_0x43e197['item']['is']('$textProxy')&&!_0x36567d['isObject'](_0x43e197['item']),_0x266d5c=_0x41bff6['start']['getLastMatchingPosition'](_0x1b7c8),_0x35089c=_0x41bff6['end']['getLastMatchingPosition'](_0x1b7c8,{'direction':'backward'});return(!_0x41bff6['start']['isEqual'](_0x266d5c)||!_0x41bff6['end']['isEqual'](_0x35089c))&&(_0x266d5c['isBefore'](_0x35089c)?_0x3b4cb1['updateMarker'](_0x354a75,{'range':_0x3b4cb1['createRange'](_0x266d5c,_0x35089c)}):_0x3b4cb1['removeMarker'](_0x354a75),!0x0);}function Jt(_0x1288f6){return _0x12fa0f(_0x1288f6);}function Ht(_0x5eca8){const _0x2a3323=_0x5eca8['start']['nodeAfter'];return _0x2a3323&&_0x2a3323['is']('element');}function qt(_0x12c275,_0x2ae383){return null==_0x12c275['end']['nodeBefore']&&_0x12c275['end']['parent']==_0x12c275['start']['nodeAfter']?zt(_0x12c275['start']['nodeAfter'],_0x2ae383):_0x12c275;}function zt(_0x2626c2,_0x153b91){const _0x4e98b6=_0x153b91['schema']['isObject'](_0x2626c2)||_0x153b91['schema']['isSelectable'](_0x2626c2);return _0x153b91['createRange'](_0x153b91['createPositionAt'](_0x2626c2,'before'),_0x4e98b6?_0x153b91['createPositionAfter'](_0x2626c2):_0x153b91['createPositionAt'](_0x2626c2,'end'));}function Kt(_0x44f5ab,_0x2329d8,_0x2faf22,_0x35aead){return!!Wt(_0x44f5ab,_0x2329d8)&&_0x2faf22['end']['isEqual'](_0x35aead['start']);}function Wt(_0x25f3e2,_0x212471){if(!_0x25f3e2['_isDataLoaded']||!_0x212471['_isDataLoaded'])return!0x1;const _0x2fcf82=new Set(Object['keys'](_0x25f3e2['attributes'])),_0x4cf9b8=new Set(Object['keys'](_0x212471['attributes']));if(_0x2fcf82['delete']('groupId'),_0x4cf9b8['delete']('groupId'),0x0==_0x2fcf82['size']&&0x0==_0x4cf9b8['size'])return!0x0;if(_0x2fcf82['size']!=_0x4cf9b8['size'])return!0x1;const _0x1a1f00={..._0x25f3e2['attributes']},_0x1182f5={..._0x212471['attributes']};return delete _0x1a1f00['groupId'],delete _0x1182f5['groupId'],JSON['stringify'](_0x1a1f00)==JSON['stringify'](_0x1182f5);}function Qt(_0x2d7920,_0x29fcee){const _0x451d4a=Xt(_0x2d7920['attributes']),_0x432e55=Xt(_0x29fcee);if(!_0x2d7920['_isDataLoaded'])return!0x1;for(const _0x32f852 of Object['keys'](_0x432e55))if(!_0x55fccb(_0x451d4a[_0x32f852],_0x432e55[_0x32f852]))return!0x1;return!0x0;}function Xt(_0x15643e){const _0x272796=Object['assign']({},_0x15643e);return delete _0x272796['skipNestingCheck'],delete _0x272796['tablePasteChainId'],_0x272796;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x938063(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x26013e,_0x3ead26,_0xcd2fd1,_0x3440ed){super(),this['model']=_0x3ead26,this['view']=_0xcd2fd1,this['commentThreadController']=_0x3440ed,this['_editor']=_0x26013e,this['_acceptCommand']=_0x26013e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x26013e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b39f7,_0xf08a39)=>_0x2b39f7||_0xf08a39),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x11909c=>_0x11909c&&this['_editor']['model']['canEditAt'](_0x3ead26['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x124ae2=>_0x124ae2&&this['_editor']['model']['canEditAt'](_0x3ead26['getRanges']())),this['_pendingAction']=null,_0xcd2fd1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xcd2fd1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xcd2fd1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xcd2fd1,'change:isDirty',()=>{_0xcd2fd1['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 _0x4028de=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4028de);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x27d206{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xeee4ba,_0xfb5430,_0x186240,_0x4bd7b0){super(_0xeee4ba),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x17614a(_0xeee4ba,o(_0xeee4ba,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xfb5430['authoredAt']),this['bind']('authoredAt')['to'](_0xfb5430),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',_0xfb5430,'authoredAt',this,'descriptionParts',(_0x4f3eab,_0x11255c,_0x321da3)=>{const _0x3c91b2=_0x321da3['map'](_0x953b37=>cs(_0x953b37['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f3eab-0x1,_0xfb5430['author']['name'],_0x11255c?_0x4bd7b0['formatDateTime'](_0x11255c):'',new DOMParser()['parseFromString'](_0x3c91b2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2d8fef(),this['focusTracker']=new _0x48ec70(),this['keystrokes']=new _0x1704b9(),this['focusCycler']=new _0x44dc46({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3d4b15=>_0x3d4b15['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xfb5430,this['_localUser']=_0x186240,this['_config']=_0x4bd7b0,_0x4bd7b0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5c591b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x57b041}=this['_config'];this['commentsListView']=new _0x57b041(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',_0x47e6ee=>_0x47e6ee+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x596728,_0x1346aa)=>_0x596728||!!_0x1346aa);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2abd0c}=this['_config'],_0x5d7b7b=new _0x2abd0c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ba84c=_0x5d7b7b['commentInputView'];return _0x5d7b7b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5ba84c,'value',(_0xa4664f,_0x41ca59,_0x495278)=>!!_0x495278||_0xa4664f&&!_0x41ca59),_0x5ba84c['on']('submit',(_0x1078a3,_0x4e6a38)=>{this['fire']('addComment',_0x4e6a38),_0x5ba84c['editor']['setData']('');}),_0x5ba84c['on']('cancel',()=>this['focus']()),_0x5ba84c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5d7b7b;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x2a14a2,_0x482dd6,_0x58d07d,_0x51a26d){super(_0x2a14a2,_0x482dd6,_0x58d07d,_0x51a26d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2c8e39=>_0x2c8e39&&_0x2c8e39[0x0]?_0x2c8e39[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44fe88,_0x3baa25)=>{let _0x113cf7='';for(const _0x1efd36 of _0x44fe88)_0x113cf7+='<p>'+cs(_0x1efd36['content'],_0x1efd36['color'])+'</p>';return _0x3baa25?_0x113cf7:_0x4fd39a(_0x113cf7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x51a26d['SuggestionView'](_0x2a14a2,_0x482dd6,{'formatDateTime':_0x51a26d['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 _0x17befd=this['bindTemplate'],_0x28db06=[this['suggestionView']];return this['commentsListView']&&_0x28db06['push'](this['commentsListView']),this['commentThreadInputView']&&_0x28db06['push'](this['commentThreadInputView']),_0x28db06['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x17befd['if']('isActive','ck-suggestion-wrapper--active'),_0x17befd['to']('type',_0x13d319=>'ck-suggestion-'+_0x13d319),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':_0x17befd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x28db06};}['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 fe extends _0x27d206{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x25264b,_0x46d208,_0x3297b5){super(_0x25264b),this['_model']=_0x46d208,this['_config']=_0x3297b5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x46d208),this['acceptButton']=this['_createButton'](o(_0x25264b,'Accept\x20suggestion'),_0x4c8c8a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x25264b,'Discard\x20suggestion'),_0x4c8c8a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d454b(_0x25264b,_0x46d208['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2d8fef([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48ec70(),this['keystrokes']=new _0x1704b9(),this['focusCycler']=new _0x44dc46({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55bb96=>_0x55bb96['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4f7d65=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4f7d65['innerHTML']=this['description'],this['on']('change:description',(_0x242329,_0x1f8435,_0x1e4b9c)=>{_0x4f7d65['innerHTML']=_0x1e4b9c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2389ef=this['bindTemplate'],_0x328810=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2389ef['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2389ef['to']('authoredAt',_0x178db0=>this['_config']['formatDateTime'](_0x178db0))}]}]},{'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']&&_0x328810['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':_0x328810}]};}['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'](_0x5b40a4,_0x4d88c5,_0x1101a0,_0x98294c,_0x3448e0){const _0x3b60e1=new _0x3e26d1(this['locale']);return _0x3b60e1['set']({'label':_0x5b40a4,'icon':_0x4d88c5,'tooltip':!0x0,'tooltipPosition':_0x3448e0}),_0x3b60e1['extendTemplate']({'attributes':{'class':_0x1101a0}}),_0x3b60e1['on']('execute',()=>{this['fire'](_0x98294c,this['_model']['id']);}),_0x3b60e1;}['_setupKeyboardNavigation'](){const _0x3e3e19=this['element'];this['keystrokes']['listenTo'](_0x3e3e19);for(const _0x753397 of this['focusables'])this['focusTracker']['add'](_0x753397['element']),this['keystrokes']['listenTo'](_0x753397['element']);this['keystrokes']['set']('enter',(_0x3c580d,_0x3e7413)=>{_0x3e3e19===_0x3c580d['target']&&(this['focusCycler']['focusFirst'](),_0x3e7413());}),this['keystrokes']['set']('esc',(_0x2fa441,_0x23bf59)=>{_0x3e3e19!==_0x2fa441['target']&&(this['focus'](),_0x23bf59());});}}var we='<!--\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-2025,\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 _0x3d817a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x12c1ef,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x167781){super(_0x167781),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19fea6=this['editor']['config'];_0x19fea6['define']('trackChanges.SuggestionThreadView',pe),_0x19fea6['define']('trackChanges.SuggestionView',fe),_0x19fea6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19fea6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x288144,_0x5656be){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5997b1,_0x4d326f]of this['_handleControllerBuffer']){const _0x591690=this['_suggestionToController']['has'](_0x5997b1);_0x591690||_0x4d326f?_0x591690&&_0x4d326f&&this['_destroyController'](_0x5997b1):this['_initializeController'](_0x5997b1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x288144,_0x5656be);}['init'](){const _0x4be25e=this['editor'],_0x50f47c=_0x4be25e['plugins']['get']('TrackChangesEditing'),_0x534440=_0x4be25e['plugins']['get']('Annotations'),_0x2e8518=_0x4be25e['plugins']['get']('EditorAnnotations'),_0x45d819=_0x4be25e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e8518['addSourceCollector'](()=>{const _0x4b07f7=[];for(const [_0xb4a12c,_0x409367]of Array['from'](this['_suggestionToController'])){const _0x35ddbe=_0xb4a12c['getAllAdjacentSuggestions'](),_0x18370b=[];for(const _0x37a99d of _0x35ddbe){if(!_0x37a99d['isInContent'])continue;if(_0x37a99d['isMultiRange']){_0x18370b['push'](..._0x37a99d['getRanges']());continue;}const _0x30c835=_0x37a99d['getFirstRange']();if(_0x18370b['length']>0x0){const _0x1426ac=_0x18370b[0x0]['getJoined'](_0x30c835);if(_0x1426ac){_0x18370b[0x0]=_0x1426ac;continue;}}_0x18370b['push'](_0x30c835);}_0x4b07f7['push']([_0x409367['view'],_0x18370b]);}return _0x4b07f7;}),this['listenTo'](_0x50f47c,'suggestionLoaded',(_0x385e60,_0x364ded)=>{this['listenTo'](_0x364ded,'change:previous',(_0x153cea,_0x508b1a,_0x2b2757,_0x56abb8)=>{_0x364ded['isInContent']&&(null==_0x2b2757?(this['_updateController'](_0x56abb8['head']),this['_handleSuggestionControllerDelayed'](_0x364ded,!0x1)):(this['_updateController'](_0x2b2757['head']),null==_0x56abb8&&this['_handleSuggestionControllerDelayed'](_0x364ded,!0x0)));}),null!==_0x364ded['previous']?this['_updateController'](_0x364ded['head']):this['_handleSuggestionControllerDelayed'](_0x364ded,!0x1);}),this['listenTo'](_0x50f47c,'suggestionUnloaded',(_0xef1a8b,_0x4b0804,_0x4ed8a2)=>{this['stopListening'](_0x4b0804,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b0804),this['_suggestionToController']['has'](_0x4b0804)&&this['_destroyController'](_0x4b0804),_0x4ed8a2&&this['_updateController'](_0x4ed8a2['head']);}),this['listenTo'](_0x50f47c,'suggestionChanged',(_0x1bf048,_0x2d3069)=>{this['_updateController'](_0x2d3069);}),this['listenTo'](_0x534440,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x45d819,'addComment',(_0x572699,{threadId:_0x423474,isFromAdapter:_0x221907})=>{if(_0x221907||!_0x50f47c['hasSuggestion'](_0x423474))return;const _0x44643c=_0x50f47c['getSuggestion'](_0x423474);this['_suggestionToController']['get'](_0x44643c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21e9ff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc032d8;for(const _0x4c8253 in _0x21e9ff){const _0xbe71a0=_0x4c8253,_0x32b670=_0x21e9ff[_0xbe71a0];if('trackChangesLicenseKeyValid'==_0x32b670||'trackChangesLicenseKeyInvalid'==_0x32b670||'trackChangesLicenseKeyExpired'==_0x32b670||'trackChangesLicenseKeyDomainLimit'==_0x32b670||'trackChangesLicenseKeyNotAllowed'==_0x32b670||'trackChangesLicenseKeyEvaluationLimit'==_0x32b670||'trackChangesLicenseKeyTrialLimit'==_0x32b670||'trackChangesLicenseKeyUsageLimit'==_0x32b670){delete _0x21e9ff[_0xbe71a0],_0xc032d8=_0x32b670,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xc032d8&&_0x21e9ff['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xc032d8&&_0x21e9ff['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xc032d8&&_0x21e9ff['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xc032d8&&_0x21e9ff['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xc032d8&&_0x21e9ff['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xc032d8&&_0x21e9ff['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xc032d8&&_0x21e9ff['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x447323=this['editor']['plugins']['get']('Annotations'),_0xe47d21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39a4e4=Array['from'](_0x447323['activeAnnotations'],_0x50a34a=>_0x50a34a['innerView'])['filter'](_0x427abc=>this['_viewToController']['has'](_0x427abc)),_0x1ce41e=[];for(const _0x8e2dd6 of _0x39a4e4){const _0x2c72b9=this['_viewToController']['get'](_0x8e2dd6)['model']['getAllAdjacentSuggestions']();_0x1ce41e['push'](..._0x2c72b9['reduce']((_0x58f34f,_0x4d8e39)=>[..._0x58f34f,..._0x4d8e39['getMarkerNames']()],[]));}_0xe47d21['activeMarkers']=_0x1ce41e;}['_addUIComponentsToFactory'](){const _0x1b4086=this['editor'],_0x43f2e5=_0x1b4086['locale'],_0x32fcaf=o(_0x43f2e5,'Track\x20changes'),_0x4400e4=new _0x491800([{'type':'switchbutton','model':new _0x2d67b7({'withText':!0x0,'isToggleable':!0x0,'label':_0x32fcaf,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2d67b7({'withText':!0x0,'label':o(_0x43f2e5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d67b7({'withText':!0x0,'label':o(_0x43f2e5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d67b7({'withText':!0x0,'label':o(_0x43f2e5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d67b7({'withText':!0x0,'label':o(_0x43f2e5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1b4086['plugins']['has']('TrackChangesPreview')&&_0x4400e4['addMany']([{'type':'separator'},{'type':'button','model':new _0x2d67b7({'withText':!0x0,'label':o(_0x43f2e5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1fea81 of _0x4400e4)if(ke(_0x1fea81)){const _0x1a193d=_0x1b4086['commands']['get'](_0x1fea81['model']['commandName']);_0x1fea81['model']['bind']('isOn','isEnabled')['to'](_0x1a193d,'value','isEnabled');}_0x1b4086['ui']['componentFactory']['add']('trackChanges',_0x1fb27a=>this['_createToolbarButton'](_0x1fb27a,_0x4400e4,_0x32fcaf)),_0x1b4086['ui']['componentFactory']['add']('menuBar:trackChanges',_0x59ab11=>this['_createMenuBarMenu'](_0x59ab11,_0x4400e4,_0x32fcaf));}['_createToolbarButton'](_0x108702,_0x2de1b9,_0x3883f4){const _0x174e12=_0x41b629(_0x108702,_0x2c22f6),_0x3d66e7=this['editor']['commands']['get']('trackChanges');_0x174e12['buttonView']['set']({'tooltip':_0x3883f4,'label':_0x3883f4,'icon':we}),_0x174e12['buttonView']['bind']('isOn')['to'](_0x3d66e7,'value'),_0x174e12['buttonView']['on']('execute',()=>{_0x3d66e7['execute'](),this['editor']['editing']['view']['focus']();}),_0x3ee2ec(_0x174e12,_0x2de1b9,{'role':'menu'});const _0x554c91=[];for(const _0x576c23 of _0x2de1b9)ke(_0x576c23)&&_0x554c91['push'](this['editor']['commands']['get'](_0x576c23['model']['commandName']));const _0x40e3a6=_0x174e12['buttonView'];return _0x40e3a6['actionView']['unbind']('isEnabled'),_0x40e3a6['arrowView']['unbind']('isEnabled'),_0x40e3a6['actionView']['bind']('isEnabled')['to'](_0x3d66e7,'isEnabled'),_0x40e3a6['arrowView']['bind']('isEnabled')['toMany'](_0x554c91,'isEnabled',(..._0x3451b3)=>_0x3451b3['some'](_0x24230d=>_0x24230d)),_0x174e12['on']('execute',_0x3fb8ac=>{this['editor']['execute'](_0x3fb8ac['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x174e12;}['_createMenuBarMenu'](_0x33953c,_0x4f53ac,_0x40d8da){const _0x3ffd74=new _0x48f0bb(_0x33953c),_0x5039b8=this['editor']['commands']['get']('trackChanges');_0x3ffd74['buttonView']['set']({'label':_0x40d8da,'icon':we});const _0x5b0d15=new _0x2a5a11(_0x33953c);for(const _0x5e518d of _0x4f53ac){if('separator'==_0x5e518d['type']){_0x5b0d15['items']['add'](new _0x27da9a(_0x33953c));continue;}const _0x263c5a=new _0x38980a(_0x33953c,_0x3ffd74),_0x167ecb=new _0x2c7249(_0x33953c),_0x37edb1=_0x5e518d['model'];_0x167ecb['bind'](...Object['keys'](_0x37edb1))['to'](_0x37edb1),_0x167ecb['delegate']('execute')['to'](_0x3ffd74),_0x167ecb['on']('execute',()=>{this['editor']['execute'](_0x37edb1['commandName']),this['editor']['editing']['view']['focus']();}),_0x263c5a['children']['add'](_0x167ecb),_0x5b0d15['items']['add'](_0x263c5a);}return _0x3ffd74['bind']('isEnabled')['to'](_0x5039b8,'isEnabled'),_0x3ffd74['panelView']['children']['add'](_0x5b0d15),_0x3ffd74;}['_initializeController'](_0x54fe95){const _0x4be53d=this['editor'],_0x3a0068=_0x4be53d['config'],_0x432a9c=_0x4be53d['plugins']['get']('Annotations'),_0x26fe67=_0x4be53d['plugins']['get']('CommentsRepository'),_0x4479d7=_0x4be53d['plugins']['get']('EditorAnnotations'),_0x5df43a=_0x4be53d['plugins']['get'](_0x12c1ef)['me'],_0x34e7fb=_0x3a0068['get']('trackChanges')['SuggestionThreadView'],_0x569fba=_0x3a0068['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37dd9c,CommentThreadInputView:_0x4bc383}=_0x4be53d['plugins']['get']('CommentsUI');let _0x4fa512,_0x23fc73,_0x5bb8bf;this['_annotationViews']['has'](_0x54fe95['id'])?(_0x23fc73=this['_annotationViews']['get'](_0x54fe95['id']),_0x4fa512=_0x23fc73['mainView']):(_0x4fa512=new _0x34e7fb(_0x4be53d['locale'],_0x54fe95,_0x5df43a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3a0068['get']('comments.editorConfig'),'licenseKey':_0x3a0068['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3a0068['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3a0068['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3a0068['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x12e6f5(_0x3a0068['get']('locale')),'CommentView':_0x3a0068['get']('comments')['CommentView'],'CommentsListView':_0x37dd9c,'CommentThreadInputView':_0x4bc383,'SuggestionView':_0x569fba}),_0x4fa512['suggestionView']['acceptButton']['on']('execute',()=>{_0x4be53d['editing']['view']['focus']();}),_0x4fa512['suggestionView']['discardButton']['on']('execute',()=>{_0x4be53d['editing']['view']['focus']();}),_0x23fc73=_0x432a9c['createAnnotationView'](this['editor']['locale'],_0x4fa512),_0x23fc73['bind']('isDirty')['to'](_0x4fa512,'isDirty'),_0x23fc73['bind']('length')['to'](_0x4fa512),_0x23fc73['bind']('type')['to'](_0x4fa512,'type',_0x1ee81b=>'suggestion-'+_0x1ee81b),_0x4fa512['on']('escape',()=>{_0x5bb8bf['fire']('escape');}),this['_annotationViews']['set'](_0x54fe95['id'],_0x23fc73));const _0x33517a=_0x26fe67['createCommentThreadController'](_0x54fe95['commentThread'],_0x4fa512),_0x35885e=new Ce(_0x4be53d,_0x54fe95,_0x4fa512,_0x33517a),_0x58702e=_0x54fe95['getAllAdjacentSuggestions']()['filter'](_0x352ece=>_0x352ece['isInContent']);_0x4fa512['descriptionParts']=_0x4be53d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x58702e),this['_suggestionToController']['set'](_0x54fe95,_0x35885e),this['_viewToController']['set'](_0x4fa512,_0x35885e),_0x5bb8bf=_0x432a9c['createAnnotation']({'view':_0x23fc73,'target':()=>{const _0x318c7e=[],_0x78f7dc=_0x54fe95['getAllAdjacentSuggestions']()['filter'](_0x4bfa1b=>_0x4bfa1b['isInContent']);for(const _0x34cf43 of _0x78f7dc)_0x318c7e['push'](..._0x34cf43['getMarkers']());return _0xd3d08d(_0x4be53d['editing'],_0x318c7e);},'type':()=>'suggestion-'+_0x35885e['view']['type']}),_0x26fe67['_bindAnnotationToEditors'](_0x4fa512,_0x5bb8bf),_0x432a9c['add'](_0x5bb8bf),_0x4479d7['registerAnnotation'](_0x5bb8bf);}['_destroyController'](_0x2e419e){const _0x7779ca=this['editor']['plugins']['get']('CommentsRepository'),_0x5659a0=this['editor']['plugins']['get']('Annotations'),_0x13274b=this['_suggestionToController']['get'](_0x2e419e),_0xa6187a=_0x13274b['view'],_0x5ce9e=_0x5659a0['getByInnerView'](_0xa6187a);_0x7779ca['_unbindEditors'](_0xa6187a),_0x5ce9e&&_0x5659a0['remove'](_0x5ce9e),this['_suggestionToController']['delete'](_0x2e419e),this['_viewToController']['delete'](_0xa6187a),_0x13274b['destroy']();}['_updateController'](_0x2f21d4){if(!_0x2f21d4['isInContent']||!this['_suggestionToController']['has'](_0x2f21d4))return;const _0x301f22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x332ecd=this['_suggestionToController']['get'](_0x2f21d4),_0x14c80b=_0x2f21d4['getAllAdjacentSuggestions']();_0x332ecd['view']['descriptionParts']=_0x301f22['descriptionFactory']['getDescriptions'](_0x14c80b);}['destroy'](){for(const _0x344575 of this['_suggestionToController']['keys']())this['_destroyController'](_0x344575);for(const _0xef1749 of this['_annotationViews']['values']())_0xef1749['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4099d3){return'model'in _0x4099d3;}class k extends _0x3d817a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x310ecf){this['editor']['plugins']['get'](p)['adapter']=_0x310ecf;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x13be2f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x13be2f);}['getSuggestions']({skipNotAttached:_0x2c0fd6=!0x1,toJSON:_0x4e03f4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c0fd6,'toJSON':_0x4e03f4});}['getSuggestion'](_0xefa402){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xefa402);}}const w=['Pagination'];class T extends _0x3d817a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5be896=this['editor'];if(_0x5be896['config']['define']('trackChangesData.editorCreator',_0x669caa=>{const _0x120f67=_0x5be896['model']['document']['getRootNames']()['reduce']((_0x36f254,_0x597e5e)=>(_0x36f254[_0x597e5e]='',_0x36f254),{});return _0x5be896['constructor']['create'](_0x120f67,_0x669caa);}),'function'!=typeof _0x5be896['config']['get']('trackChangesData')['editorCreator'])throw new _0x21392e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x305b31){return N(this['editor'],!0x0,_0x305b31);}['getDataWithDiscardedSuggestions'](_0x2283c3){return N(this['editor'],!0x1,_0x2283c3);}}class D extends _0x3d817a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x259b2b){function _0x4d18b3(_0xebe2fd){return _0xebe2fd['map'](_0x4bc5ed=>String['fromCharCode'](_0x4bc5ed))['join']('');}super(_0x259b2b),this['result']='end',_0x259b2b[_0x4d18b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d18b3([0x76,0x69,0x65,0x77])][_0x4d18b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d18b3([0x61,0x75,0x74,0x6f]),_0x259b2b[_0x4d18b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d18b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d18b3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d18b3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d18b3([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x289870){return void 0x0!==_0x289870['getRootsAttributes'];}async function N(_0x10612d,_0xacd83c,_0x171e0c){const _0x1b2fdb=_0x2307db(_0x10612d,w);_0x1b2fdb['plugins']['push'](p,D),_0x1b2fdb['rootsAttributes']=Fe(_0x10612d)?_0x10612d['getRootsAttributes']():void 0x0;const _0x35be82=document['createDocumentFragment'](),_0x50b304=_0x10612d['config']['get']('trackChangesData')['editorCreator'],_0xabc8=await _0x50b304(_0x1b2fdb,()=>function(_0x161b46){const _0x50d9ce=document['createElement']('div');return _0x161b46['appendChild'](_0x50d9ce),_0x50d9ce;}(_0x35be82));!function(_0x374ade,_0x34baf1){const _0x283675=_0x374ade['model']['document']['getRootNames']()['reduce']((_0x3d62aa,_0x5a6d32)=>(_0x3d62aa[_0x5a6d32]=_0x374ade['data']['get']({'rootName':_0x5a6d32}),_0x3d62aa),{}),_0x3ace71=_0x374ade['plugins']['get']('Users')['users']['map'](_0x38ab7d=>({'id':_0x38ab7d['id'],'name':_0x38ab7d['name']})),_0x145d33=_0x374ade['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1fb535=_0x374ade['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55b46d=_0x34baf1['plugins']['get']('Users'),_0x1ac4a0=_0x34baf1['plugins']['get']('TrackChangesEditing'),_0x59b4d0=_0x34baf1['plugins']['get']('CommentsRepository');for(const _0x4da6ac of _0x59b4d0['getCommentThreads']())_0x4da6ac['remove']();for(const _0x3b9768 of _0x3ace71)_0x55b46d['getUser'](_0x3b9768['id'])||_0x55b46d['addUser'](_0x3b9768);_0x55b46d['me']||_0x55b46d['useAnonymousUser']();for(const _0x9055ac of _0x1fb535)_0x59b4d0['addCommentThread'](_0x9055ac);for(const _0x3909f0 of _0x145d33)_0x1ac4a0['addSuggestionData'](_0x3909f0);_0x34baf1['data']['set'](_0x283675);}(_0x10612d,_0xabc8),_0xabc8['execute'](_0xacd83c?'acceptAllSuggestions':'discardAllSuggestions');const _0x90ad95=Fe(_0xabc8)?_0xabc8['getFullData'](_0x171e0c):_0xabc8['data']['get'](_0x171e0c);return await _0xabc8['destroy'](),_0x90ad95;}class Me extends _0x27d206{['options'];constructor(_0x373878,_0x33e10e){super(_0x373878),this['options']=_0x33e10e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x390384,_0x40df9f){if(!this['element'])return;const _0x3e9fc4=[];for(const [_0x3acaeb,_0xf5cc75]of _0x390384){const _0x4aa1f9=document['createElement']('div');_0x4aa1f9['setAttribute']('data-ck-root-name',_0x3acaeb),_0x4aa1f9['className']=_0xf5cc75['classes']+'\x20ck-track-changes-preview__root-container',_0x4aa1f9['innerHTML']=_0xf5cc75['content'],_0x3e9fc4['push'](_0x4aa1f9);}_0x40df9f(this['element'],_0x3e9fc4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x16830f){super(_0x16830f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x49fd21=this['editor'],_0x36cc02=_0x49fd21['locale'],_0x540deb=_0x49fd21['plugins']['get']('Dialog');let _0x109381;const _0xad58c0=function(_0x39924d){const _0x1b7a99={};if('editables'in _0x39924d['ui']['view']){for(const [_0x52af3d,_0x3c632f]of Object['entries'](_0x39924d['ui']['view']['editables']))_0x1b7a99[_0x52af3d]=_0x3c632f['element'];}else _0x1b7a99[_0x39924d['model']['document']['getRootNames']()[0x0]]=_0x39924d['ui']['view']['editable']['element'];return _0x1b7a99;}(_0x49fd21),_0x5540cb=function(_0x4a5e58){let _0x3152bf=0x0;for(const _0x10f175 of Object['values'](_0x4a5e58))_0x3152bf=Math['max'](_0x3152bf,_0x10f175['getBoundingClientRect']()['width']);let _0xb8973e=0x0;for(const _0x13f29d of Object['values'](_0x4a5e58))_0xb8973e+=_0x13f29d['getBoundingClientRect']()['height'];const _0x54eea6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x33943a=Math['min'](_0xb8973e,_0x54eea6);return{'width':_0x3152bf,'height':_0x33943a};}(_0xad58c0);_0x540deb['show']({'id':'finalContentPreview','title':o(_0x36cc02,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x36cc02,{'dialogRects':_0x5540cb}),'onHide':()=>{_0x109381['detachFromDom']();},'onShow':()=>{_0x49fd21['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x256e37=>{const _0x1a2a81=this['_standarizeRootsData'](_0x256e37,_0x49fd21,_0xad58c0);_0x540deb['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a2a81,_0x49fd21['config']['get']('trackChanges.preview.renderFunction'));}),_0x109381=new _0x50ad16(_0x36cc02,[_0x540deb['view']]),_0x109381['attachToDom'](),_0x109381['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x49fd21['once']('destroy',()=>{_0x109381['detachFromDom']();});const _0x3c876b=_0x540deb['view']['headerView']['class'];_0x540deb['view']['headerView']['class']=_0x3c876b?_0x3c876b+'\x20ck-reset_all':'ck-reset_all',_0x540deb['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x540deb['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5f0dd7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x22fcfe=_0x5f0dd7['previewMode'],_0x54071f={};if('$labels'===_0x22fcfe){for(const _0x25d55b of _0x5f0dd7['getMergeFieldsIds']())_0x54071f[_0x25d55b]=_0x5f0dd7['getLabel'](_0x25d55b)||_0x25d55b;}else{const _0x810297='$defaultValues'===_0x22fcfe?_0x5f0dd7['getDefaultValues']():_0x5f0dd7['getDataSetValues'](_0x22fcfe,!0x0);for(const _0x1cafea of Object['entries'](_0x810297)){const [_0xbf4170,_0xc109b0]=_0x1cafea;_0x54071f[_0xbf4170]=null!==_0xc109b0?_0xc109b0:_0x5f0dd7['getLabel'](_0xbf4170)||_0xbf4170;}}return{'mergeFieldsData':_0x54071f};}['_standarizeRootsData'](_0x1d8c01,_0x3b1296,_0x3c4632){let _0x1feedd;if('string'==typeof _0x1d8c01){const _0x4e7784=_0x3b1296['model']['document']['getRootNames']()[0x0];_0x1feedd={[_0x4e7784]:_0x1d8c01};}else _0x1feedd=_0x1d8c01;const _0x59354e=this['_fixMediaEmbeds'](_0x1feedd,_0x3b1296),_0x670b9=function(_0x218ded,_0x4f3cb0){for(const [_0x1b093e,_0x3802f8]of _0x218ded)_0x3802f8['classes']=_0x4f3cb0[_0x1b093e]['classList']['value']['replace']('ck-focused','');return _0x218ded;}(this['_sortRoots'](_0x3b1296)['reduce']((_0x461161,_0x48fe84)=>(_0x461161['push']([_0x48fe84,{'content':_0x59354e[_0x48fe84],'classes':''}]),_0x461161),[]),_0x3c4632);return _0x670b9;}['_fixMediaEmbeds'](_0x1c9538,_0x452734){if(!_0x452734['plugins']['has']('MediaEmbedEditing'))return _0x1c9538;const _0x59ef25=_0x452734['plugins']['get']('MediaEmbedEditing');for(const [_0x2f6bb5,_0x59bfbb]of Object['entries'](_0x1c9538)){const _0x2b45a7=document['createElement']('div');_0x2b45a7['innerHTML']=_0x59bfbb,(_0x2b45a7['querySelectorAll']('figure.media')['forEach'](_0x2a5ae5=>{const _0x33dadb=_0x2a5ae5['querySelector']('oembed');if(_0x33dadb){const _0x51a67d=_0x33dadb['getAttribute']('url');if(_0x51a67d){const _0x27a68f=_0x59ef25['registry']['getMediaViewElement'](new _0x20aed6(_0x452734['editing']['view']['document']),_0x51a67d,{'elementName':'','renderForEditingView':!0x0}),_0x1229dd=document['createElement']('div');_0x1229dd['classList']['add']('ck-media__wrapper'),_0x27a68f['render'](_0x1229dd,_0x452734['editing']['view']['domConverter']),_0x33dadb['replaceWith'](_0x1229dd);}}}),_0x1c9538[_0x2f6bb5]=_0x2b45a7['innerHTML']);}return _0x1c9538;}['_sortRoots'](_0x5a58cd){if(!function(_0x15fa9e){return void 0x0!==_0x15fa9e['getRootsAttributes'];}(_0x5a58cd))return _0x5a58cd['model']['document']['getRootNames']();const _0x54d3a2=[],_0x4e8e19=new Map();for(const _0x40075a of _0x5a58cd['model']['document']['getRootNames']()){const _0x2923da=_0x5a58cd['editing']['view']['getDomRoot'](_0x40075a)['getClientRects']()['item'](0x0);_0x54d3a2['push'](_0x40075a),_0x4e8e19['set'](_0x40075a,_0x2923da);}return _0x54d3a2['sort']((_0x2b5b56,_0xa9b7fc)=>{const _0x34396d=_0x4e8e19['get'](_0x2b5b56),_0x57e3b8=_0x4e8e19['get'](_0xa9b7fc);return _0x34396d['y']-_0x57e3b8['y']||_0x34396d['x']-_0x57e3b8['x'];}),_0x54d3a2;}}class te extends _0x3d817a{static get['requires'](){return[T,_0x1d59bd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x464b0f){super(_0x464b0f),_0x464b0f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x464b0f['config']['define']('trackChanges.preview.renderFunction',(_0x17a4d4,_0x1d3cc0)=>{for(const _0x265a74 of _0x1d3cc0)_0x17a4d4['appendChild'](_0x265a74);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0x33fd4f,PendingActions as _0x507ac0,icons as _0xf84e45}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x120ce8,ObservableMixin as _0x52a502,uid as _0x543df7,priorities as _0x2ddc52,insertToPriorityArray as _0x5bef34,logWarning as _0x2caaa5,getEnvKeystrokeText as _0x58fa28,FocusTracker as _0x157490,KeystrokeHandler as _0x123216,Collection as _0x41cefd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3a586c,View as _0x2d4c9d,ViewCollection as _0x4c648b,FocusCycler as _0x5f0e7d,ViewModel as _0x15075b,createDropdown as _0x20c5d7,SplitButtonView as _0x293984,addListToDropdown as _0x282457,MenuBarMenuView as _0x299f9f,MenuBarMenuListView as _0x2bd287,ListSeparatorView as _0x2008c7,MenuBarMenuListItemView as _0x228eb6,MenuBarMenuListItemButtonView as _0x1914ee,BodyCollection as _0x58562c,Dialog as _0xb7459f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x167c8f,hashObject as _0x2f3e09,surroundingMarkersDetector as _0x160bfb,FOCUS_ANNOTATION_KEYSTROKE as _0x2ab7e2,AriaDescriptionView as _0xa26071,setupThreadKeyboardNavigation as _0x33f8d3,trimHtml as _0x419e76,UserView as _0x100f70,LateFocusButtonView as _0x4faad9,getDateTimeFormatter as _0x2ab271,getAllMarkersDomElementsSorted as _0x24abad,sanitizeEditorConfig as _0xba82a3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5c0342,LiveRange as _0x10a588,LivePosition as _0x41b995,DowncastWriter as _0x1d56f7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3d3d65,toWidget as _0x28a097}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x175357,set as _0x5cca66,isEqual as _0x16559d,unset as _0x54da95,omit as Vt}from'lodash-es';import{Delete as _0x364525,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x38ae87,ShiftEnter as _0x273f2b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x463df4,_0x5a6cc){super(_0x463df4),this['_enabledCommands']=_0x5a6cc,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 _0x59b189 of this['editor']['commands']['commands']())_0x59b189['affectsData']&&!this['_enabledCommands']['has'](_0x59b189)&&_0x59b189['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2e41ac of this['editor']['commands']['commands']())_0x2e41ac['affectsData']&&!this['_enabledCommands']['has'](_0x2e41ac)&&_0x2e41ac['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x505043,_0x436eec){super(_0x505043),this['_suggestions']=_0x436eec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x55e859){const _0x1397e4=this['_suggestions']['get'](_0x55e859);if(!_0x1397e4)throw new _0x120ce8('track-changes-accept-suggestion-not-found',this);const _0x277765=_0x1397e4['getRanges']();this['editor']['model']['canEditAt'](_0x277765)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1397e4);}}class R extends Yt{['_suggestions'];constructor(_0x24c35c,_0x39c483){super(_0x24c35c),this['_suggestions']=_0x39c483,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59a875){const _0x3ee4a7=this['_suggestions']['get'](_0x59a875);if(!_0x3ee4a7)throw new _0x120ce8('track-changes-discard-suggestion-not-found',this);const _0x5255bc=_0x3ee4a7['getRanges']();this['editor']['model']['canEditAt'](_0x5255bc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3ee4a7);}}function cs(_0x4c667b,_0x195d82){let _0x86026c='';return _0x86026c+=_0x4c667b['split']('*')['map']((_0x9c8822,_0x39d324)=>_0x39d324%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x9c8822)+'</span>':nn(_0x9c8822))['join'](''),_0x195d82&&(_0x86026c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x195d82['value']+'\x22\x20title=\x22'+_0x195d82['title']+'\x22></span>'),_0x86026c;}function nn(_0x1b8309){const _0x2f47df=document['createElement']('span');return _0x2f47df['innerText']=_0x1b8309,_0x2f47df['innerHTML'];}function Zt(_0x15ce22){return _0x15ce22['sort']((_0x2633ab,_0x280395)=>'deletion'==_0x2633ab['type']&&'deletion'!=_0x280395['type']?-0x1:'deletion'!=_0x2633ab['type']&&'deletion'==_0x280395['type']?0x1:0x0);}function to(_0x272012,_0x5e6a76){let _0x1d573e,_0x5f5b52=0x0;const _0x755170=[],_0x1dedf9=_0x5e6a76['schema'];for(;_0x5f5b52<_0x272012['length'];){const _0xe64476=_0x272012[_0x5f5b52],_0x15fa31=_0x272012[_0x5f5b52+0x1];_0x1d573e||(_0x1d573e=_0x5e6a76['createPositionBefore'](_0xe64476)),on(_0x5e6a76,_0xe64476,_0x15fa31)||(_0x755170['push'](_0x5e6a76['createRange'](_0x1d573e,_0x1dedf9['isObject'](_0xe64476)?_0x5e6a76['createPositionAfter'](_0xe64476):_0x5e6a76['createPositionAt'](_0xe64476,'end'))),_0x1d573e=null),_0x5f5b52++;}return _0x755170;}function on(_0x483e67,_0x4a66ae,_0x25ad80){if(!_0x25ad80)return!0x1;const _0x1e56fc=_0x483e67['createPositionAfter'](_0x4a66ae),_0x59dc90=_0x483e67['createPositionBefore'](_0x25ad80);return _0x1e56fc['isTouching'](_0x59dc90);}function ts(_0x2ed7c8,_0x248664,_0x519073){for(;_0x519073['length'];){const _0x233adc=_0x519073['splice'](0x0,0x64);_0x2ed7c8['change'](()=>{for(const _0x5b40ce of _0x233adc)_0x5b40ce['isInContent']&&_0x248664['execute'](_0x5b40ce['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x457501,_0x59f621,_0x169253){super(_0x457501),this['_command']=_0x59f621,this['_suggestions']=_0x169253,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1dc0fb=Array['from'](this['_suggestions']['values']())['some'](_0x28b2ad=>_0x28b2ad['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1dc0fb;}['execute'](){const _0x19dd26=Zt(Array['from'](this['_suggestions']['values']()));for(const _0xe674c8 of _0x19dd26){const _0x2ad009=_0xe674c8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ad009))return;}ts(this['editor']['model'],this['_command'],_0x19dd26);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xbc528c,_0x56bf2c,_0x3a924c){super(_0xbc528c),this['_command']=_0x56bf2c,this['_suggestions']=_0x3a924c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x508f5a=this['editor']['model']['document']['selection'],_0x95f4da=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5872ee,_0x2c5356){const _0x37b114=Array['from'](_0x5872ee['getRanges']()),_0x5b6726=new Set();for(const _0x2530c8 of _0x2c5356)if(_0x2530c8['isInContent']){for(const _0x31ccc9 of _0x37b114)for(const _0xe20bb8 of _0x2530c8['getRanges']())(_0x31ccc9['isIntersecting'](_0xe20bb8)||_0x5872ee['isCollapsed']&&!_0x2530c8['isMultiRange']&&_0x2530c8['next']&&_0xe20bb8['end']['isTouching'](_0x31ccc9['start']))&&_0x5b6726['add'](_0x2530c8);}return _0x5b6726;}(_0x508f5a,_0x95f4da),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x53f1de=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x121576 of _0x53f1de){const _0x34f988=_0x121576['getRanges']();if(!this['editor']['model']['canEditAt'](_0x34f988))return;}ts(this['editor']['model'],this['_command'],_0x53f1de);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x52a502(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x56ce34,_0x4062a6){super(),this['id']=_0x4062a6['id'],this['type']=_0x4062a6['type'],this['subType']=_0x4062a6['subType']||null,this['author']=_0x4062a6['author'],this['creator']=_0x4062a6['creator']||_0x4062a6['author'],this['isExternal']=Boolean(_0x4062a6['attributes']&&_0x4062a6['attributes']['@external']),this['data']=null,this['_model']=_0x56ce34,this['_onAccept']=_0x4062a6['onAccept'],this['_onDiscard']=_0x4062a6['onDiscard'],this['_onAttributesChange']=_0x4062a6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4062a6['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 _0x2054fc=this;for(;_0x2054fc['previous'];)_0x2054fc=_0x2054fc['previous'];return _0x2054fc;}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'](_0x47bcc2){this['_markerNames']['add'](_0x47bcc2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x422db8=>this['_model']['markers']['get'](_0x422db8))['filter'](_0x22b8cc=>_0x22b8cc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3f43e5=>{for(const _0xf402f6 of this['getMarkers']())_0x3f43e5['removeMarker'](_0xf402f6);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c3517){this['_model']['change'](_0x51c37d=>{_0x51c37d['removeMarker'](_0x3c3517);}),this['_markerNames']['delete'](_0x3c3517);}['addRange'](_0x2170a1){const _0x58ed6e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x58ed6e),this['_model']['change'](_0x3bbab6=>{_0x3bbab6['addMarker'](_0x58ed6e,{'range':_0x2170a1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46f28d){for(const _0x20e02d of this['getRanges']())if(_0x20e02d['isIntersecting'](_0x46f28d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x53ec89=>_0x53ec89['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x53a8e2,_0x2f9e20)=>[..._0x53a8e2,..._0x2f9e20['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd490a3=this['getRanges']();if(0x1!=_0xd490a3['length'])return null;const _0x666484=_0xd490a3[0x0],_0x12dcb9=_0x666484['start']['nodeAfter'],_0x4b081e=_0x666484['end']['nodeBefore'];return _0x12dcb9 instanceof _0x5c0342?_0x12dcb9!=_0x4b081e?null:_0x12dcb9: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 _0x38c1ac=[];let _0x20a201=this['head'];for(;_0x20a201;)_0x38c1ac['push'](_0x20a201),_0x20a201=_0x20a201['next'];return _0x38c1ac;}['setAttribute'](_0x3c7719,_0x1de8f2){const _0x1390c4=_0x175357(this['attributes']);_0x5cca66(_0x1390c4,_0x3c7719,_0x1de8f2),_0x16559d(_0x1390c4,this['attributes'])||(this['attributes']=_0x1390c4,this['_onAttributesChange'](_0x1390c4));}['removeAttribute'](_0x431df9){const _0xb2479a=_0x175357(this['attributes']);_0x54da95(_0xb2479a,_0x431df9),_0x16559d(_0xb2479a,this['attributes'])||(this['attributes']=_0xb2479a,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 _0x543df7()['substr'](0x1,0x5);}}function o(_0xdb1d19,_0x5566be,_0x2f63f9){const _0x2975dd=_0xdb1d19['t'],t=_0xdb1d19['t'];switch(_0x5566be){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2f63f9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f63f9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f63f9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f63f9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f63f9);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',_0x2f63f9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f63f9);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f63f9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f63f9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f63f9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f63f9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f63f9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f63f9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2f63f9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f63f9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f63f9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f63f9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f63f9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f63f9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f63f9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f63f9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f63f9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f63f9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f63f9);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'},_0x2f63f9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f63f9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f63f9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f63f9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f63f9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f63f9);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'},_0x2f63f9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f63f9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f63f9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f63f9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f63f9);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'},_0x2f63f9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f63f9);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'},_0x2f63f9);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'},_0x2f63f9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f63f9);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'},_0x2f63f9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f63f9);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'},_0x2f63f9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f63f9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f63f9);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'},_0x2f63f9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2f63f9);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 _0x2975dd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2f63f9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2975dd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2f63f9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2f63f9);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'},_0x2f63f9);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'},_0x2f63f9);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'},_0x2f63f9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5566be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1043e9,_0x4f2525){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1043e9,this['_locale']=_0x4f2525;}['getDescriptions'](_0x55d43a){const _0x29782e=[],_0x3b86a4=new Set(),_0x1df69c=new Set();for(let _0x1176d5=0x0;_0x1176d5<_0x55d43a['length'];_0x1176d5++){const _0x5ca4d9=_0x55d43a[_0x1176d5];if(!_0x5ca4d9['isInContent'])continue;const _0x3f617d=this['_handleCustomCallbackDescription'](_0x5ca4d9);if(_0x3f617d){if(null!=_0x5ca4d9['subType']){if(_0x3b86a4['has'](_0x5ca4d9['subType']))continue;_0x3b86a4['add'](_0x5ca4d9['subType']);}_0x29782e['push'](_0x3f617d);}else{if('attribute'!=_0x5ca4d9['type'])'insertion'!=_0x5ca4d9['type']&&'deletion'!=_0x5ca4d9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x29782e,_0x5ca4d9,_0x55d43a[_0x1176d5+0x1]);else{const _0x10a8ec=_0x5ca4d9['data']['key'];if(_0x1df69c['has'](_0x10a8ec))continue;_0x1df69c['add'](_0x5ca4d9['data']['key']),_0x10a8ec==m?this['_handleRenameSuggestionDescription'](_0x29782e,_0x5ca4d9):this['_handleAttributeSuggestionDescription'](_0x29782e,_0x5ca4d9);}}}return this['_resolveDescriptionItems'](_0x29782e);}['registerDescriptionCallback'](_0x2f8a05){this['_customCallbacks']['push'](_0x2f8a05);}['registerElementLabel'](_0x28e322,_0x4220aa,_0x52c212=_0x2ddc52['normal']){'function'==typeof _0x28e322?_0x5bef34(this['_itemLabelsCallbacks'],{'matchingCallback':_0x28e322,'label':_0x4220aa,'priority':_0x52c212}):this['_itemLabels']['set'](_0x28e322,_0x4220aa);}['registerAttributeLabel'](_0x456715,_0x59777f){this['_attributeLabels']['set'](_0x456715,_0x59777f);}['getItemLabel'](_0x2978ff,_0x1c0e0b=0x1){let _0x1164fc;for(const _0x54ce9c of this['_itemLabelsCallbacks'])if(_0x54ce9c['matchingCallback'](_0x2978ff)){_0x1164fc=_0x54ce9c['label'];break;}return _0x1164fc||(_0x1164fc=this['_itemLabels']['get'](_0x2978ff['name'])),_0x1164fc?_0x1164fc(_0x1c0e0b):0x1!==_0x1c0e0b?_0x1c0e0b+'\x20'+_0x2978ff['name']+'s':''+_0x2978ff['name'];}['_addDescriptionItems'](_0x216765,_0x5b466b){const _0x39cc93=_0x5b466b['getFirstRange']()['getWalker'](),_0x11a9d3='insertion'==_0x5b466b['type']?'add':'remove';for(const _0x5c2408 of _0x39cc93){const _0x377792=_0x5c2408['item'],_0xe3bd3b=_0x216765[_0x216765['length']-0x1];if(_0x377792['is']('$textProxy'))_0xe3bd3b&&_0xe3bd3b['type']['indexOf']('Container')>-0x1&&_0x216765['pop'](),_0xe3bd3b&&'text'==_0xe3bd3b['type']?_0xe3bd3b[_0x11a9d3]+=_0x377792['data']:_0x216765['push']({'type':'text','add':'add'==_0x11a9d3?_0x377792['data']:'','remove':'remove'==_0x11a9d3?_0x377792['data']:''});else{if(this['_schema']['isObject'](_0x377792)){const _0x20aabe=_0x377792;if(_0xe3bd3b&&_0xe3bd3b['type']['indexOf']('Container')>-0x1&&_0x216765['pop'](),'elementEnd'==_0x5c2408['type'])continue;_0xe3bd3b&&_0xe3bd3b['type']==_0x11a9d3+'Object'&&_0xe3bd3b['element']['name']==_0x20aabe['name']?_0xe3bd3b['quantity']++:_0x216765['push']({'type':_0x11a9d3+'Object','element':_0x20aabe,'quantity':0x1}),_0x39cc93['skip'](_0x33b521=>!('elementEnd'==_0x33b521['type']&&_0x33b521['item']==_0x377792));}else{if(this['_schema']['checkChild'](_0x377792,'$text')||_0x377792['is']('element','softBreak')){const _0x38a008=_0x377792;if('add'==_0x11a9d3&&'elementStart'==_0x5c2408['type']||'remove'==_0x11a9d3&&'elementEnd'==_0x5c2408['type'])continue;if(_0xe3bd3b&&-0x1==_0xe3bd3b['type']['indexOf']('Container')){'text'==_0xe3bd3b['type']&&(_0xe3bd3b[_0x11a9d3]+='\x0a');continue;}let _0x57ca61;if(_0x57ca61='add'==_0x11a9d3?_0x38a008['nextSibling']&&!this['_schema']['isObject'](_0x38a008['nextSibling'])?_0x38a008['nextSibling']:null:_0x38a008['previousSibling']&&!this['_schema']['isObject'](_0x38a008['previousSibling'])?_0x38a008['previousSibling']:null,_0x38a008['isEmpty']||_0x57ca61&&_0x57ca61['isEmpty']){const _0x20865b=_0x57ca61&&_0x57ca61['isEmpty']?_0x57ca61:_0x38a008;_0xe3bd3b&&_0xe3bd3b['type']==_0x11a9d3+'EmptyContainer'&&_0xe3bd3b['element']['name']==_0x20865b['name']?_0xe3bd3b['quantity']++:_0x216765['push']({'type':_0x11a9d3+'EmptyContainer','element':_0x20865b,'quantity':0x1});}else _0x216765['push']({'type':_0x11a9d3+'Container','element':_0x38a008});}}}}}['_resolveDescriptionItems'](_0xd3e103){const _0x41f455=this['_locale'],_0x279f8c=[],_0x3c3db6=[],_0x164b40=[];for(const _0x297074 of _0xd3e103)switch(_0x297074['type']){case'text':if(_0x297074['add']=_0x297074['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x297074['remove']=_0x297074['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x297074['add']&&''!=_0x297074['remove']){_0x279f8c['push']({'type':'replace','content':o(_0x41f455,'REPLACE_TEXT',['\x22'+_0x297074['remove']+'\x22','\x22'+_0x297074['add']+'\x22'])});continue;}if(null!=_0x297074['add']['match'](/^ +$/)){_0x279f8c['push']({'type':'insertion','content':o(_0x41f455,'*Insert:*\x20%0',o(_0x41f455,'ELEMENT_SPACE',_0x297074['add']['length']))});continue;}if(null!=_0x297074['remove']['match'](/^ +$/)){_0x279f8c['push']({'type':'deletion','content':o(_0x41f455,'*Remove:*\x20%0',o(_0x41f455,'ELEMENT_SPACE',_0x297074['remove']['length']))});continue;}if(''!=_0x297074['add']){_0x279f8c['push']({'type':'insertion','content':o(_0x41f455,'*Insert:*\x20%0','\x22'+_0x297074['add']+'\x22')});continue;}_0x279f8c['push']({'type':'deletion','content':o(_0x41f455,'*Remove:*\x20%0','\x22'+_0x297074['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x279f8c['push']({'type':'insertion','content':o(_0x41f455,'*Insert:*\x20%0',this['getItemLabel'](_0x297074['element'],_0x297074['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x279f8c['push']({'type':'deletion','content':o(_0x41f455,'*Remove:*\x20%0',this['getItemLabel'](_0x297074['element'],_0x297074['quantity']))});continue;case'addContainer':_0x279f8c['push']({'type':'insertion','content':o(_0x41f455,'*Split:*\x20%0',this['getItemLabel'](_0x297074['element'],_0x297074['quantity']))});continue;case'removeContainer':_0x279f8c['push']({'type':'deletion','content':o(_0x41f455,'*Merge:*\x20%0',this['getItemLabel'](_0x297074['element'],_0x297074['quantity']))});continue;case'addFormat':_0x3c3db6['push'](_0x297074['key']);continue;case'removeFormat':_0x164b40['push'](_0x297074['key']);continue;default:_0x279f8c['push'](_0x297074);}if(_0x3c3db6['length']){const _0x330fc3=_0x3c3db6['map'](_0x198b04=>this['_attributeLabels']['has'](_0x198b04)?this['_attributeLabels']['get'](_0x198b04):_0x198b04)['join'](',\x20');_0x279f8c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x330fc3)});}if(_0x164b40['length']){const _0x5cdb7b=_0x164b40['map'](_0x351fb1=>this['_attributeLabels']['has'](_0x351fb1)?this['_attributeLabels']['get'](_0x351fb1):_0x351fb1)['join'](',\x20');_0x279f8c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5cdb7b)});}return _0x279f8c;}['_handleCustomCallbackDescription'](_0x5d943b){for(const _0x3cdedc of this['_customCallbacks']){const _0x36860b=_0x3cdedc(_0x5d943b);if(_0x36860b&&'type'in _0x36860b)return _0x36860b;}}['_handleAttributeSuggestionDescription'](_0x2a3791,_0x35a6a6){const _0x3382c7=_0x35a6a6['data'],_0x24117b=void 0x0===_0x3382c7['newValue']?'removeFormat':'addFormat';_0x2a3791['push']({'type':_0x24117b,'key':_0x3382c7['key']});}['_handleRenameSuggestionDescription'](_0x5d95dd,_0x2a71d5){_0x5d95dd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2a71d5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4a5ad8,_0x1d72b6,_0x143320){if(this['_addDescriptionItems'](_0x4a5ad8,_0x1d72b6),_0x143320&&_0x143320['getFirstRange']()&&!_0x1d72b6['getFirstRange']()['end']['isEqual'](_0x143320['getFirstRange']()['start'])){const _0x2a7602=_0x4a5ad8[_0x4a5ad8['length']-0x1],_0x58532e='insertion'==_0x1d72b6['type']?'add':'remove';_0x2a7602&&'text'==_0x2a7602['type']&&(_0x2a7602[_0x58532e]+='\x0a');}}}class U extends _0x33fd4f{['afterInit'](){const _0x5ede28=this['editor'],_0x39a754=_0x5ede28['plugins']['get']('TrackChangesEditing');_0x5ede28['commands']['get']('showAIAssistant')&&_0x39a754['enableCommand']('showAIAssistant');}}class V extends _0x33fd4f{['afterInit'](){const _0xc70298=this['editor'],_0x2bea8c=_0xc70298['locale'];if(!_0xc70298['plugins']['has']('AlignmentEditing'))return;const _0x5eb736=_0xc70298['plugins']['get']('TrackChangesEditing');_0x5eb736['enableDefaultAttributesIntegration']('alignment'),_0x5eb736['registerBlockAttribute']('alignment'),_0x5eb736['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2bea8c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe498e1=this['editor'],_0x371b58=_0xe498e1['locale'];_0xe498e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2210db=>{if('formatBlock'!=_0x2210db['type'])return;const {data:_0x4fb1a7}=_0x2210db;if(_0x4fb1a7&&'alignment'==_0x4fb1a7['commandName']){const _0xc3ad3d=_0x4fb1a7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x371b58,'*Format:*\x20%0',function(_0x24247e){switch(_0x24247e){case'left':return o(_0x371b58,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x371b58,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x371b58,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x371b58,'FORMAT_JUSTIFY_TEXT');}}(_0xc3ad3d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x33fd4f{['afterInit'](){const _0x4441be=this['editor'],_0x58c4d1=_0x4441be['plugins']['get']('TrackChangesEditing'),_0x15c9e7=_0x4441be['locale'];for(const _0x2a5893 of ti){if(!_0x4441be['plugins']['has'](_0x2a5893))continue;const _0x4c6b48=_0x2a5893['slice'](0x0,-0x7)['toLowerCase'](),_0x244908='FORMAT_'+_0x4c6b48['toUpperCase']();_0x58c4d1['enableDefaultAttributesIntegration'](_0x4c6b48),_0x58c4d1['registerInlineAttribute'](_0x4c6b48),_0x58c4d1['descriptionFactory']['registerAttributeLabel'](_0x4c6b48,o(_0x15c9e7,_0x244908));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ef0f6=this['editor'],_0x51eba1=_0x3ef0f6['locale'],_0x33da1a=_0x3ef0f6['plugins']['get']('TrackChangesEditing');function _0x223d76(_0x581e80,_0x5cd21d){_0x33da1a['descriptionFactory']['registerDescriptionCallback'](_0x333114=>{if('formatInline'!=_0x333114['type'])return;const {data:_0x19dad7}=_0x333114;return _0x19dad7&&_0x19dad7['commandName']===_0x581e80?_0x19dad7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51eba1,'*Format:*\x20%0',_0x5cd21d)}:{'type':'format','content':o(_0x51eba1,'*Remove\x20format:*\x20%0',_0x5cd21d)}:void 0x0;});}_0x223d76('bold',o(_0x51eba1,'FORMAT_BOLD')),_0x223d76('italic',o(_0x51eba1,'FORMAT_ITALIC')),_0x223d76('underline',o(_0x51eba1,'FORMAT_UNDERLINE')),_0x223d76('code',o(_0x51eba1,'FORMAT_CODE')),_0x223d76('strikethrough',o(_0x51eba1,'FORMAT_STRIKETHROUGH')),_0x223d76('subscript',o(_0x51eba1,'FORMAT_SUBSCRIPT')),_0x223d76('superscript',o(_0x51eba1,'FORMAT_SUPERSCRIPT'));}}class F extends _0x33fd4f{['afterInit'](){const _0x576165=this['editor'],_0x3b0b5e=_0x576165['locale'];if(!_0x576165['plugins']['has']('BlockQuoteEditing'))return;const _0x322254=_0x576165['plugins']['get']('TrackChangesEditing'),_0x1ccf77=this['editor']['commands']['get']('blockQuote');_0x322254['enableCommand']('blockQuote',(_0x1f5568,_0x62d9f4={})=>{const _0x16bd66=this['editor']['model']['document']['selection'],_0x511533=_0x62d9f4&&void 0x0!==_0x62d9f4['forceValue']?_0x62d9f4['forceValue']:!_0x1ccf77['value'];let _0x929561=[];if(_0x511533){const _0x200cea=Array['from'](_0x16bd66['getSelectedBlocks']())['filter'](_0x548445=>oo(_0x548445)||function(_0x525f07,_0x199b97){const _0x1e63fa=_0x199b97['checkChild'](_0x525f07['parent'],'blockQuote'),_0xe7f308=_0x199b97['checkChild'](['$root','blockQuote'],_0x525f07);return _0x1e63fa&&_0xe7f308;}(_0x548445,this['editor']['model']['schema']));_0x929561=to(_0x200cea,_0x576165['model']);}else{const _0x33b58c=Array['from'](_0x16bd66['getSelectedBlocks']())['filter'](_0x3a28e8=>oo(_0x3a28e8));_0x929561=to(_0x33b58c,_0x576165['model']);}_0x576165['model']['change'](()=>{for(const _0xee29b0 of _0x929561)_0x322254['markBlockFormat'](_0xee29b0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x511533}]});});}),_0x322254['descriptionFactory']['registerDescriptionCallback'](_0x16d5a3=>{const {data:_0x5a360a}=_0x16d5a3;if(_0x5a360a&&'blockQuote'==_0x5a360a['commandName']){const _0x5a1084=o(_0x3b0b5e,'ELEMENT_BLOCK_QUOTE');return _0x5a360a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b0b5e,'*Set\x20format:*\x20%0',_0x5a1084)}:{'type':'format','content':o(_0x3b0b5e,'*Remove\x20format:*\x20%0',_0x5a1084)};}});}}function oo(_0x421a8e){return'blockQuote'==_0x421a8e['parent']['name'];}class L extends _0x33fd4f{['afterInit'](){const _0x2fdae4=this['editor'],_0x2f78c0=_0x2fdae4['locale'],_0x1b3fbe=_0x2fdae4['plugins']['get']('TrackChangesEditing');_0x2fdae4['plugins']['has']('BookmarkEditing')&&(_0x1b3fbe['enableCommand']('insertBookmark'),_0x1b3fbe['enableDefaultAttributesIntegration']('updateBookmark'),_0x1b3fbe['registerBlockAttribute']('bookmarkId'),_0x1b3fbe['descriptionFactory']['registerDescriptionCallback'](_0x23c2d9=>{if('insertion'!=_0x23c2d9['type']&&'deletion'!=_0x23c2d9['type']&&'attribute'!=_0x23c2d9['type'])return;const _0x4497ea=_0x23c2d9['getContainedElement']();if(null==_0x4497ea)return;if(!_0x4497ea['is']('element','bookmark'))return;const _0x348c84=_0x4497ea['getAttribute']('bookmarkId');if('insertion'==_0x23c2d9['type'])return{'type':'insertion','content':o(_0x2f78c0,'*Insert:*\x20%0','\x22'+_0x348c84+'\x22\x20'+o(_0x2f78c0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23c2d9['type'])return{'type':'deletion','content':o(_0x2f78c0,'*Remove:*\x20%0','\x22'+_0x348c84+'\x22\x20'+o(_0x2f78c0,'ELEMENT_BOOKMARK'))};const {data:_0xcf6c53}=_0x23c2d9;if(!_0xcf6c53||'bookmarkId'!=_0xcf6c53['key'])return;return{'type':'format','content':o(_0x2f78c0,'*Set\x20bookmark:*\x20%0','\x22'+_0xcf6c53['newValue']+'\x22')};}));}}class J extends _0x33fd4f{['afterInit'](){const _0x3c9fd2=this['editor'];_0x3c9fd2['plugins']['has']('CaseChange')&&(_0x3c9fd2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3c9fd2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3c9fd2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x33fd4f{['afterInit'](){const _0xb1dfe0=this['editor'];_0xb1dfe0['commands']['get']('ckbox')&&_0xb1dfe0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x33fd4f{['afterInit'](){const _0x24c57f=this['editor'];if(!_0x24c57f['plugins']['has']('CodeBlock'))return;const _0x694e58=_0x24c57f['plugins']['get']('TrackChangesEditing'),_0xb2ecae=_0x24c57f['locale'],_0x1f7341=_0x24c57f['config']['get']('codeBlock')['languages'],_0x421847=_0x24c57f['commands']['get']('codeBlock');_0x694e58['enableCommand']('indentCodeBlock'),_0x694e58['enableCommand']('outdentCodeBlock'),_0x694e58['enableCommand']('codeBlock',(_0x18c477,_0x58c5d5={})=>{const _0x590b4c=_0x24c57f['model'],_0x3d0bfc=_0x24c57f['model']['document']['selection'],_0x36ea4a=_0x58c5d5&&void 0x0!==_0x58c5d5['forceValue']?_0x58c5d5['forceValue']:!_0x421847['value'];let _0x15ff08;_0x58c5d5['language']||(_0x58c5d5['language']=_0x1f7341[0x0]['language']),_0x15ff08=_0x36ea4a?Array['from'](_0x3d0bfc['getSelectedBlocks']())['filter'](_0x47d339=>eo(_0x47d339)||function(_0x415431,_0x56bc68){if(_0x415431['is']('rootElement')||_0x56bc68['isLimit'](_0x415431))return!0x1;return _0x56bc68['checkChild'](_0x415431['parent'],'codeBlock');}(_0x47d339,_0x590b4c['schema'])):Array['from'](_0x3d0bfc['getSelectedBlocks']())['filter'](_0x3b3e10=>eo(_0x3b3e10));const _0x2f3cb4=to(_0x15ff08,_0x590b4c);_0x590b4c['change'](()=>{for(const _0x38cc54 of _0x2f3cb4)_0x694e58['markBlockFormat'](_0x38cc54,{'commandName':'codeBlock','commandParams':[{..._0x58c5d5,'forceValue':_0x36ea4a}],'formatGroupId':'blockName'});});}),(_0x694e58['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ed08e=>o(_0xb2ecae,'ELEMENT_CODE_BLOCK',_0x4ed08e)),_0x694e58['descriptionFactory']['registerDescriptionCallback'](_0x58bd06=>{if('formatBlock'!=_0x58bd06['type'])return;const _0xf49092=_0xb2ecae['t'],{data:_0x4afad4}=_0x58bd06;if(!_0x4afad4||'codeBlock'!=_0x4afad4['commandName'])return;const _0x507fcf=_0x4afad4['commandParams'][0x0]['language'],_0x4b0c0f=_0xf49092(_0x1f7341['find'](_0x5a136a=>_0x5a136a['language']===_0x507fcf)['label'])['toLowerCase']();return _0x4afad4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb2ecae,'*Set\x20format:*\x20%0',o(_0xb2ecae,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4b0c0f+')')}:{'type':'format','content':o(_0xb2ecae,'*Remove\x20format:*\x20%0',o(_0xb2ecae,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3901cc){return'codeBlock'==_0x3901cc['name'];}class z extends _0x33fd4f{['afterInit'](){const _0x4d180b=this['editor'];if(!_0x4d180b['plugins']['has']('CommentsEditing'))return;_0x4d180b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2d56e1,_0xde0fe6,_0x25f9cb){const _0x4e356b=[];for(const _0xada946 of _0xde0fe6['getItems']())_0xada946['hasAttribute'](_0x2d56e1)&&_0x4e356b['push'](_0x25f9cb['createRangeOn'](_0xada946));return _0x4e356b;}function De(_0x389246,_0x5aa918,{showActiveMarker:_0x4106d6=!0x0}={}){const _0x494a61=_0x389246['plugins']['get']('TrackChangesEditing');return(_0x4b8e0e,_0x5a01e6,_0x27071c)=>{if(!_0x27071c['consumable']['test'](_0x5a01e6['markerRange'],_0x4b8e0e['name']))return;const _0x4d6b7b=_0x5a01e6['markerRange']['getWalker'](),_0x783607=_0x5a01e6['markerRange']['start'],_0x1c0c33=_0x389246['model']['schema'];let _0x43208f=null,_0x16bdc2=null,_0x58f4ec=!0x1,_0x34c18a=!0x1;for(const _0x3377ea of _0x4d6b7b){const _0x5f1aa6=_0x3377ea['item'];_0x58f4ec=_0x58f4ec||_0x1c0c33['isContent'](_0x5f1aa6);const _0x4786bd=_0x27071c['mapper']['toViewElement'](_0x5f1aa6);if(_0x4786bd&&_0x4786bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3377ea['type']&&(_0x1c0c33['isBlock'](_0x5f1aa6)&&!_0x1c0c33['isLimit'](_0x5f1aa6)&&(_0x5f1aa6['nextSibling']||_0x783607['isAtEnd']?_0x43208f&&_0x43208f['parent']==_0x5f1aa6||(_0x43208f=_0x5f1aa6,_0x397b4b(_0x3377ea['previousPosition']),_0x34c18a=!0x0):_0x16bdc2=_0x16bdc2||_0x3377ea['previousPosition']));}function _0x397b4b(_0x1e8a0d){const {authorId:_0x322e0d}=_0x494a61['_splitMarkerName'](_0x5a01e6['markerName']),_0x47aa9b=_0x27071c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5aa918,'data-author-id':_0x322e0d}),_0x26600a=_0x27071c['mapper']['toViewPosition'](_0x1e8a0d);_0x4106d6&&_0x494a61['activeMarkers']['includes'](_0x5a01e6['markerName'])&&_0x27071c['writer']['addClass']('ck-suggestion-marker--active',_0x47aa9b),_0x27071c['writer']['insert'](_0x26600a,_0x47aa9b),_0x27071c['mapper']['bindElementToMarker'](_0x47aa9b,_0x5a01e6['markerName']);}_0x58f4ec||_0x34c18a||!_0x16bdc2||_0x397b4b(_0x16bdc2);};}class K extends _0x33fd4f{static get['requires'](){return[_0x364525];}['init'](){const _0x4fc5f6=this['editor'],_0x5dd0e7=_0x4fc5f6['plugins']['get']('TrackChangesEditing');_0x5dd0e7['enableCommand']('delete');const _0x39d3ea=_0x4fc5f6['commands']['get']('deleteForward');_0x5dd0e7['enableCommand']('deleteForward',(_0x18dbb3,_0x387df1={})=>{const _0x16b5ee=_0x4fc5f6['model']['createSelection'](_0x4fc5f6['model']['document']['selection']);_0x16b5ee['isCollapsed']&&_0x4fc5f6['model']['modifySelection'](_0x16b5ee,{'direction':'forward','unit':_0x387df1['unit']});const _0x2a39c3=_0x16b5ee['getFirstRange'](),_0x5496b6=_0x10a588['fromRange'](_0x2a39c3);let _0x364137;_0x18dbb3(_0x387df1),_0x364137='$graveyard'==_0x5496b6['root']['rootName']?_0x4fc5f6['model']['createRange'](_0x2a39c3['start']):_0x4fc5f6['model']['createRange'](_0x5496b6['start'],_0x5496b6['end']),_0x5496b6['detach'](),_0x4fc5f6['model']['enqueueChange'](_0x39d3ea['buffer']['batch'],_0x3c9b87=>{_0x39d3ea['buffer']['lock'](),_0x3c9b87['setSelection'](_0x3c9b87['createRange'](_0x364137['end'])),_0x39d3ea['buffer']['unlock']();});}),_0x4fc5f6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4fc5f6,'merge'),{'priority':'high'}),_0x4fc5f6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x355442,_0x4d4087,_0xf00ff4)=>{_0xf00ff4['options']['showSuggestionHighlights']&&De(_0x4fc5f6,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x355442,_0x4d4087,_0xf00ff4);},{'priority':'high'}),_0x4fc5f6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4e15bd,_0x212874,_0x18d16b)=>{const _0x57fe7b=_0x18d16b['mapper']['markerNameToElements'](_0x212874['markerName']);if(_0x57fe7b){for(const _0x37f24b of _0x57fe7b)_0x37f24b['is']('uiElement')&&(_0x18d16b['mapper']['unbindElementFromMarkerName'](_0x37f24b,_0x212874['markerName']),_0x18d16b['writer']['remove'](_0x37f24b));}},{'priority':'high'});}}class W extends _0x33fd4f{['afterInit'](){const _0x3c5d9=this['editor'];if(!_0x3c5d9['plugins']['has']('ListEditing'))return;const _0x71bd7=_0x3c5d9['locale'],_0x5a5581=_0x3c5d9['plugins']['get']('TrackChangesEditing'),_0x5a9739=_0x3c5d9['plugins']['has']('TodoListEditing'),_0xbe6633=!!_0x3c5d9['config']['get']('list.multiBlock');function _0x2242bd(_0x39ecff){return{'type':'format','content':''+o(_0x71bd7,'*Set\x20format:*\x20%0',_0x39ecff)};}function _0x2063c7(_0x5b3d14){return{'type':'format','content':''+o(_0x71bd7,'*Remove\x20format:*\x20%0',_0x5b3d14)};}_0x5a5581['enableDefaultAttributesIntegration']('numberedList'),_0x5a5581['enableDefaultAttributesIntegration']('bulletedList'),_0x5a5581['enableDefaultAttributesIntegration']('customNumberedList'),_0x5a5581['enableDefaultAttributesIntegration']('customBulletedList'),_0x5a5581['enableDefaultAttributesIntegration']('indentList'),_0x5a5581['enableDefaultAttributesIntegration']('outdentList'),_0x5a5581['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5a5581['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5a5581['registerBlockAttribute']('listItemId'),_0x5a5581['registerBlockAttribute']('listType'),_0x5a5581['registerBlockAttribute']('listIndent'),_0xbe6633&&(_0x5a5581['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5a5581['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5a9739&&(_0x5a5581['enableDefaultAttributesIntegration']('todoList'),_0x5a5581['enableDefaultAttributesIntegration']('checkTodoList'),_0x5a5581['registerBlockAttribute']('todoListChecked'),_0x5a5581['descriptionFactory']['registerDescriptionCallback'](_0x286fb6=>{const {data:_0xe5181c}=_0x286fb6;if(_0xe5181c&&'todoListChecked'==_0xe5181c['key'])return{'type':'format','content':_0xe5181c['newValue']?o(_0x71bd7,'*Check\x20item*'):o(_0x71bd7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x471f29=>{if(_0x471f29['batch']['isUndo'])return!0x1;let _0x4dd189=!0x1;const _0x1899f0=_0x5a5581['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21eb39=>'todoListChecked'===_0x5a5581['_getAttributeKey'](_0x21eb39));for(const _0xb3b7fa of _0x1899f0){'todo'!=_0xb3b7fa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5a5581['_findSuggestions'](_0xb3b7fa['getFirstRange'](),'attribute')['find'](_0xd70e25=>'listType'===_0x5a5581['_getAttributeKey'](_0xd70e25['suggestion']))||(_0x471f29['removeMarker'](_0xb3b7fa['getFirstMarker']()),_0x4dd189=!0x0));}return _0x4dd189;})),_0x5a5581['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x71bd7,'FORMAT_INDENT'));const _0x3a0d97={'type':'format','content':''};_0x5a5581['descriptionFactory']['registerDescriptionCallback'](_0xdbc5f8=>{const {data:_0x23f61c}=_0xdbc5f8;if(!_0x23f61c||'listType'!=_0x23f61c['key'])return;let _0x5d12b6=_0xdbc5f8['head'];for(;_0x5d12b6;){if(_0x5d12b6['data']&&(('listStyle'==_0x5d12b6['data']['key']||'listMarkerStyle'==_0x5d12b6['data']['key'])&&(_0x5d12b6['data']['newValue']&&'default'!=_0x5d12b6['data']['newValue']||'default'!=_0x5d12b6['data']['oldValue']&&!_0x23f61c['newValue'])||!_0xbe6633&&_0x5d12b6['data']['key']==m))return _0x3a0d97;_0x5d12b6=_0x5d12b6['next'];}if(null==_0x23f61c['newValue'])switch(_0x23f61c['oldValue']){case'bulleted':return _0x2063c7(o(_0x71bd7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2063c7(o(_0x71bd7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2063c7(o(_0x71bd7,'ELEMENT_TODO_LIST'));}switch(_0x23f61c['newValue']){case'bulleted':return _0x2242bd(o(_0x71bd7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2242bd(o(_0x71bd7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2242bd(o(_0x71bd7,'ELEMENT_TODO_LIST'));}}),_0x5a5581['descriptionFactory']['registerDescriptionCallback'](_0x415400=>{const {data:_0x3beabd}=_0x415400;if(_0x3beabd&&'listIndent'==_0x3beabd['key'])return null==_0x3beabd['newValue']||null==_0x3beabd['oldValue']&&0x0==_0x3beabd['newValue']?_0x3a0d97:void 0x0;}),_0x5a5581['descriptionFactory']['registerDescriptionCallback'](_0x51d975=>{if('attribute'!=_0x51d975['type'])return;const {data:_0x1b56be}=_0x51d975;if(!_0x1b56be||'listItemId'!=_0x1b56be['key'])return;const _0x5ce3e1=Te(_0x51d975);return'newValue'==_0x5ce3e1?{'type':'format','content':o(_0x71bd7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5ce3e1?{'type':'format','content':o(_0x71bd7,'*Split:*\x20list\x20item')}:_0x3a0d97;}),_0x3c5d9['model']['document']['registerPostFixer'](_0x1d1e3e=>this['listItemIdFixer'](_0x1d1e3e)),_0x3c5d9['model']['document']['registerPostFixer'](_0xec42fd=>this['noTrackChangesFixer'](_0xec42fd)),_0x3c5d9['model']['document']['on']('change:data',(_0x370b13,_0x2ac1e6)=>{if(_0x2ac1e6['isUndo']||!_0x2ac1e6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4a3d33){if(_0x4a3d33['batch']['isUndo']||!_0x4a3d33['batch']['isLocal'])return!0x1;let _0x2828dc=!0x1;const _0x5e5818=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18c2e3=>_0x18c2e3['data']&&'listItemId'==_0x18c2e3['data']['key'])['filter'](_0x2c80be=>_0x2c80be['data']['newValue']&&_0x2c80be['data']['oldValue']);for(const _0xa01e88 of _0x5e5818)Te(_0xa01e88)||(_0x4a3d33['removeMarker'](_0xa01e88['getFirstMarker']()),_0x2828dc=!0x0);return _0x2828dc;}['noTrackChangesFixer'](_0xc26e2e){if(_0xc26e2e['batch']['isUndo']||!_0xc26e2e['batch']['isLocal'])return!0x1;const _0x52c104=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x52c104['trackChangesCommand']['value'])return!0x1;let _0x4a2b56=!0x1;const _0x2d6db9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x38049f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4d1471=>'attribute'==_0x4d1471['type'])['filter'](_0x136296=>_0x2d6db9['includes'](_0x136296['attributeKey']));if(0x0==_0x38049f['length'])return _0x4a2b56;for(const _0x2c35ce of _0x38049f){const _0x360c4e=_0x52c104['_findSuggestions'](_0x2c35ce['range'],'attribute')['filter'](_0xcec92d=>!_0xcec92d['meta']['isNextTo'])['map'](_0x11419b=>_0x11419b['suggestion'])['filter'](_0x3eb94b=>{const _0x15aaea=_0x52c104['_getAttributeKey'](_0x3eb94b);return _0x2d6db9['includes'](_0x15aaea);});if(_0x360c4e['length']){for(const _0x4c944a of _0x360c4e)_0xc26e2e['removeMarker'](_0x4c944a['getFirstMarker']());_0x4a2b56=!0x0;}}return _0x4a2b56;}['assureChains'](){const _0x54775d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5da6b4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47cde2;const _0x4a70cd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1fd55b=>{if(_0x1fd55b['data']['oldRange']||!_0x1fd55b['data']['newRange'])return null;if(!_0x1fd55b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1d5f3d}=_0x54775d['_splitMarkerName'](_0x1fd55b['name']);if(!_0x54775d['hasSuggestion'](_0x1d5f3d))return null;const _0x165c17=_0x54775d['getSuggestion'](_0x1d5f3d);return _0x5da6b4['includes'](_0x165c17['data']['key']);})['map'](_0x74c83d=>{const {id:_0x41e59e}=_0x54775d['_splitMarkerName'](_0x74c83d['name']),_0x3a37b4=_0x54775d['getSuggestion'](_0x41e59e);return _0x47cde2=_0x3a37b4['attributes']['groupId'],_0x3a37b4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4a70cd['size'])return;const _0x50d750=_0x54775d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b8881=>'attribute'==_0x3b8881['type']&&_0x3b8881['data']&&_0x5da6b4['includes'](_0x3b8881['data']['key'])&&_0x3b8881['attributes']['groupId']!=_0x47cde2)['map'](_0x14b73b=>({'listItem':_0x14b73b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x14b73b['attributes']['groupId']})),_0x276277=new Set();for(const {groupId:_0x7bd353,listItem:_0x461818}of _0x50d750)_0x4a70cd['has'](_0x461818)&&_0x276277['add'](_0x7bd353);for(const _0x305c5c of _0x54775d['getSuggestions']())_0x276277['has'](_0x305c5c['attributes']['groupId'])&&_0x305c5c['setAttribute']('groupId',_0x47cde2);}['_supportLegacySuggestions'](){const _0x21ce9f=this['editor'],_0x5d6f22=_0x21ce9f['locale'],_0x22a5fb=_0x21ce9f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x22a5fb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3ee87d,_0x35c8ed){const _0x305a16=[];for(let _0x21c3ea of _0x3ee87d)_0x21c3ea['start']['nodeAfter']===_0x21c3ea['end']['parent']&&(_0x21c3ea=_0x21ce9f['model']['createRange'](_0x21ce9f['model']['createPositionAt'](_0x21c3ea['start']['nodeAfter'],0x0))),_0x305a16['push'](_0x21c3ea);_0x21ce9f['model']['change'](_0x1f800b=>{const _0x3891ab=_0x21ce9f['model']['document']['selection'],_0x4ad44d=Array['from'](_0x3891ab['getRanges']())['map'](_0x4a4f1d=>_0x10a588['fromRange'](_0x4a4f1d));_0x1f800b['setSelection'](_0x305a16),_0x21ce9f['commands']['get'](_0x35c8ed['commandName'])['refresh'](),_0x35c8ed['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x21ce9f['execute'](_0x35c8ed['commandName'],..._0x35c8ed['commandParams']),_0x1f800b['setSelection'](_0x4ad44d);for(const _0x19f498 of _0x4ad44d)_0x19f498['detach']();});}),_0x22a5fb['descriptionFactory']['registerElementLabel'](function(_0x436b62){const _0x33afe4=!_0x21ce9f['model']['schema']['isObject'](_0x436b62),_0x589e56=_0x436b62['previousSibling'],_0x19bcb3=_0x436b62['nextSibling'],_0x23bf8c=_0x436b62['getAttribute']('listItemId'),_0x9fa7a4=!_0x589e56||_0x589e56['getAttribute']('listItemId')!==_0x23bf8c,_0x257a1d=!_0x19bcb3||_0x19bcb3['getAttribute']('listItemId')!==_0x23bf8c;return _0x33afe4&&Boolean(_0x23bf8c)&&_0x9fa7a4&&_0x257a1d;},_0xb891b1=>o(_0x5d6f22,'ELEMENT_LIST_ITEM',_0xb891b1));}['_registerLegacyDescription'](){const _0x41c3b8=this['editor'],_0x493c38=_0x41c3b8['locale'];function _0xf26ca2(_0xdd216e){const _0x479c6f=_0x41c3b8['commands']['get']('bulletedList')['value'],_0x165178=_0x41c3b8['commands']['get']('numberedList')['value'];return'numberedList'===_0xdd216e?_0x479c6f:_0x165178;}_0x41c3b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6a803a){if('formatBlock'!=_0x6a803a['type'])return;const {data:_0x474b40}=_0x6a803a;if(!_0x474b40)return;let _0x595f8f,_0x135258,_0x21340a,_0x30e543;switch(_0x474b40['commandName']){case'bulletedList':_0x21340a=_0x474b40['commandParams'][0x0]['forceValue'],_0x30e543=_0xf26ca2(_0x474b40['commandName']),_0x595f8f=_0x21340a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30e543&&_0x41c3b8['config']['get']('list.multiBlock')||(_0x595f8f='*Change\x20to:*\x20%0'),_0x135258={'type':'format','content':o(_0x493c38,_0x595f8f,o(_0x493c38,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x21340a=_0x474b40['commandParams'][0x0]['forceValue'],_0x30e543=_0xf26ca2(_0x474b40['commandName']),_0x595f8f=_0x21340a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30e543&&_0x41c3b8['config']['get']('list.multiBlock')||(_0x595f8f='*Change\x20to:*\x20%0'),_0x135258={'type':'format','content':o(_0x493c38,_0x595f8f,o(_0x493c38,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x595f8f='*Indent:*\x20%0',_0x135258={'type':'format','content':o(_0x493c38,_0x595f8f,o(_0x493c38,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x595f8f=function(_0x3ecca7){const _0x49203a=_0x3ecca7['getFirstRange']();let _0x31dda2=_0x49203a['start']['nodeAfter'];for(;_0x31dda2&&_0x49203a['containsItem'](_0x31dda2);){if(_0x31dda2['getAttribute']('listIndent')>0x0)return!0x1;_0x31dda2=_0x31dda2['nextSibling'];}return!0x0;}(_0x6a803a)?o(_0x493c38,'*Format:*\x20remove\x20from\x20%0',o(_0x493c38,function(_0x4cc8ea){return'ELEMENT_'+_0x4cc8ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6a803a))):o(_0x493c38,'*Outdent:*\x20%0',o(_0x493c38,'ELEMENT_LIST_ITEM')),_0x135258={'type':'format','content':_0x595f8f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x474b40['multipleBlocks']&&(_0x595f8f='*Merge:*\x20%0',_0x135258={'type':'deletion','content':o(_0x493c38,_0x595f8f,o(_0x493c38,'ELEMENT_LIST_ITEM'))});}return _0x135258;});}}function Te(_0x449d10){let _0x253e1d=_0x449d10['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x253e1d;){const _0x49595a=_0x253e1d['getAttribute']('listItemId');if(!_0x49595a)return!0x1;if(_0x49595a==_0x449d10['data']['newValue'])return'newValue';if(_0x49595a==_0x449d10['data']['oldValue'])return'oldValue';_0x253e1d=_0x253e1d['previousSibling'];}return!0x1;}class Se extends _0x33fd4f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x42f78e=this['editor']['config']['get']('list.properties'),_0x1049c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x42f78e['styles']&&(_0x1049c1['enableDefaultAttributesIntegration']('listStyle'),_0x1049c1['registerBlockAttribute']('listStyle')),_0x42f78e['reversed']&&(_0x1049c1['enableDefaultAttributesIntegration']('listReversed'),_0x1049c1['registerBlockAttribute']('listReversed')),_0x42f78e['startIndex']&&(_0x1049c1['enableDefaultAttributesIntegration']('listStart'),_0x1049c1['registerBlockAttribute']('listStart'));const _0x4efa35={'type':'format','content':''};_0x1049c1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3a05c1=this['editor']['locale'];_0x1049c1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3a05c1,'FORMAT_LIST_REVERSED')),_0x1049c1['descriptionFactory']['registerDescriptionCallback'](_0x320607=>{const {data:_0x3b3057}=_0x320607;if(_0x3b3057&&'listReversed'==_0x3b3057['key'])return null==_0x3b3057['newValue']||0x0==_0x3b3057['newValue']&&null==_0x3b3057['oldValue']?_0x4efa35:void 0x0;}),_0x1049c1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3a05c1,'FORMAT_LIST_START')),_0x1049c1['descriptionFactory']['registerDescriptionCallback'](_0x27d811=>{const {data:_0x547719}=_0x27d811;if(_0x547719&&'listStart'==_0x547719['key'])return null==_0x547719['newValue']||0x1==_0x547719['newValue']&&null==_0x547719['oldValue']?_0x4efa35:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x461e19=>{if(_0x461e19['batch']['isUndo'])return!0x1;let _0x52aa05=!0x1;const _0x367083=_0x1049c1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb3931a=>{const _0x3479c9=_0x1049c1['_getAttributeKey'](_0xb3931a);return'listStart'==_0x3479c9||'listReversed'==_0x3479c9;});for(const _0x1daa9b of _0x367083){const _0x3a52f1=_0x1daa9b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a52f1||'customNumbered'==_0x3a52f1)continue;_0x1049c1['_findSuggestions'](_0x1daa9b['getFirstRange'](),'attribute')['find'](_0x4dd5a6=>'listType'==_0x1049c1['_getAttributeKey'](_0x4dd5a6['suggestion']))||(_0x461e19['removeMarker'](_0x1daa9b['getFirstMarker']()),_0x52aa05=!0x0);}return _0x52aa05;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4041ff){const _0x58d051=this['editor']['locale'],{data:_0x16d7ff}=_0x4041ff,_0x3b4bcf={'type':'format','content':''};if(!_0x16d7ff||'listStyle'!=_0x16d7ff['key'])return;if(!_0x16d7ff['oldValue'])return'default'==_0x16d7ff['newValue']?_0x3b4bcf:{'type':'format','content':''+o(_0x58d051,'*Set\x20format:*\x20%0',o(_0x58d051,this['_getTranslationKeyForListStyle'](_0x16d7ff['newValue'])))};if(!_0x16d7ff['newValue']){if('default'==_0x16d7ff['oldValue'])return _0x3b4bcf;let _0x7ee011=_0x4041ff['head'];for(;_0x7ee011;){if(_0x7ee011['data']&&'listType'==_0x7ee011['data']['key']&&_0x7ee011['data']['newValue'])return _0x3b4bcf;_0x7ee011=_0x7ee011['next'];}return{'type':'format','content':''+o(_0x58d051,'*Remove\x20format:*\x20%0',o(_0x58d051,this['_getTranslationKeyForListStyle'](_0x16d7ff['oldValue'])))};}if('default'!=_0x16d7ff['newValue'])return{'type':'format','content':''+o(_0x58d051,'*Set\x20format:*\x20%0',o(_0x58d051,this['_getTranslationKeyForListStyle'](_0x16d7ff['newValue'])))};let _0x17a59c=_0x4041ff['head'];for(;_0x17a59c;){if(_0x17a59c['data']&&'listType'==_0x17a59c['data']['key']&&_0x17a59c['data']['newValue']&&_0x17a59c['data']['oldValue'])return _0x3b4bcf;_0x17a59c=_0x17a59c['next'];}return{'type':'format','content':o(_0x58d051,'*Set\x20format:*\x20%0',o(_0x58d051,'ELEMENT_'+_0x4041ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x46439e=this['editor'],_0x256a84=_0x46439e['locale'];_0x46439e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x397530=>{if('formatBlock'!=_0x397530['type'])return;const {data:_0x4a8304}=_0x397530;if(!_0x4a8304)return;let _0x43b7f1,_0x5547c4;switch(_0x4a8304['commandName']){case'listStyle':_0x43b7f1='*Change\x20to:*\x20%0',_0x5547c4={'type':'format','content':o(_0x256a84,_0x43b7f1,o(_0x256a84,this['_getTranslationKeyForListStyle'](_0x4a8304['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43b7f1=_0x4a8304['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5547c4={'type':'format','content':o(_0x256a84,_0x43b7f1)};break;case'listStart':_0x43b7f1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5547c4={'type':'format','content':o(_0x256a84,_0x43b7f1,_0x4a8304['commandParams'][0x0]['startIndex'])};}return _0x5547c4;});}['_getTranslationKeyForListStyle'](_0x453de3){return'ELEMENT_'+function(_0x11770a){if(_e['includes'](_0x11770a))return'bulleted';if(Re['includes'](_0x11770a))return'numbered';return null;}(_0x453de3)['toUpperCase']()+'_LIST_'+_0x453de3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x33fd4f{['afterInit'](){const _0xb25bf1=this['editor'];_0xb25bf1['commands']['get']('emoji')&&_0xb25bf1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x33fd4f{static get['requires'](){return[_0x38ae87];}['init'](){const _0x156441=this['editor'],_0x2fbbc8=_0x156441['plugins']['get']('TrackChangesEditing'),_0x19f5a5=_0x156441['commands']['get']('enter');_0x2fbbc8['enableCommand']('enter',()=>{_0x156441['model']['change'](_0x2de362=>{const _0x8cc7bf=_0x156441['model']['document']['selection'],_0x42bdce=_0x8cc7bf['getFirstPosition'](),_0x15f2c8=_0x10a588['fromRange'](_0x8cc7bf['getFirstRange']());if(_0x19f5a5['enterBlock'](_0x2de362)){const _0x5bbc4f=_0x156441['model']['createPositionAt'](_0x42bdce['parent']['nextSibling'],0x0),_0x3e3e83=_0x2de362['createRange'](_0x42bdce,_0x5bbc4f);_0x2fbbc8['markInsertion'](_0x3e3e83);}else _0x2de362['setSelection'](_0x2de362['createRange'](_0x15f2c8['end']));_0x15f2c8['detach'](),_0x19f5a5['fire']('afterExecute',{'writer':_0x2de362});});}),_0x156441['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x156441,'split'),{'priority':'high'}),_0x156441['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x59d13b,_0x1eb95f,_0x2930fe)=>{const _0x37f5ce=_0x2930fe['mapper']['markerNameToElements'](_0x1eb95f['markerName']);if(_0x37f5ce){for(const _0x340729 of _0x37f5ce)_0x340729['hasClass']('ck-suggestion-marker-split')&&(_0x2930fe['mapper']['unbindElementFromMarkerName'](_0x340729,_0x1eb95f['markerName']),_0x2930fe['writer']['remove'](_0x340729));}},{'priority':'high'}),_0x156441['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a8ff6,_0x264bfb,_0x5ccc16)=>{_0x5ccc16['options']['showSuggestionHighlights']&&De(_0x156441,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3a8ff6,_0x264bfb,_0x5ccc16);},{'priority':'high'});}}class Z extends _0x33fd4f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b0808=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b0808['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b0808['enableCommand']('findNext'),_0x1b0808['enableCommand']('findPrevious'),_0x1b0808['enableCommand']('replace'),_0x1b0808['enableCommand']('replaceAll');}['handleFindCommand'](_0x231ba0,_0x2ab9f,_0x44a065={}){const _0x4c43cc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x231ba0(_0x219650=>{let _0x217257=('string'==typeof _0x2ab9f?_0x4c43cc['findByTextCallback'](_0x2ab9f,_0x44a065):_0x2ab9f)(_0x219650);Array['isArray'](_0x217257)&&(_0x217257={'results':_0x217257,'searchText':'string'==typeof _0x2ab9f?_0x2ab9f:''});const _0x3859c8=_0x217257['results']['filter'](_0x3823dd=>!0x1===this['_isInDeletionRange'](_0x3823dd,_0x219650['item']));return{..._0x217257,'results':_0x3859c8};},_0x44a065);}['_isInDeletionRange'](_0x578106,_0x4f1087){const _0x4869c6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f1087,_0x578106['start']),this['editor']['model']['createPositionAt'](_0x4f1087,_0x578106['end']));for(const _0x352119 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4869c6['getIntersection'](_0x352119['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x33fd4f{['afterInit'](){const _0x201717=this['editor']['locale'],_0x484a8e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5c5298,commandName:_0x20d18f}of ro)this['editor']['plugins']['has'](_0x5c5298)&&(_0x484a8e['enableDefaultAttributesIntegration'](_0x20d18f),_0x484a8e['registerInlineAttribute'](_0x20d18f));_0x484a8e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x201717,'FORMAT_FONT_SIZE')),_0x484a8e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x201717,'FORMAT_FONT_FAMILY')),_0x484a8e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x201717,'FORMAT_FONT_COLOR')),_0x484a8e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x201717,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7516=this['editor'],_0x20fb6d=_0x2d7516['locale'];_0x2d7516['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54c308=>{const _0x21843b=_0x20fb6d['t'];if('formatInline'!=_0x54c308['type'])return;const {data:_0x3c9d12}=_0x54c308;if(null!=_0x3c9d12){if('fontSize'==_0x3c9d12['commandName']){const _0x5450f2=_0x3c9d12['commandParams'][0x0]['value'];if(_0x5450f2){const _0x44f902=_0x21843b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33b7bc=>_0x33b7bc['model']==_0x5450f2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x20fb6d,'*Set\x20font\x20size:*\x20%0',_0x44f902)};}return{'type':'format','content':o(_0x20fb6d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3c9d12['commandName']){const _0x125ea6=_0x3c9d12['commandParams'][0x0]['value'];return _0x125ea6?{'type':'format','content':o(_0x20fb6d,'*Set\x20font\x20family:*\x20%0',_0x125ea6)}:{'type':'format','content':o(_0x20fb6d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3c9d12['commandName']){const _0x1d6c93=_0x3c9d12['commandParams'][0x0]['value'];if(_0x1d6c93){const _0xa2893=_0x3a586c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x9eb8f5=>_0x9eb8f5['model']==_0x1d6c93);let _0x2b9104=_0x1d6c93,_0x589baf='';return _0xa2893&&(_0x2b9104=_0xa2893['label'],_0x589baf=_0x21843b(_0x2b9104)['toLowerCase']()),{'type':'format','content':o(_0x20fb6d,'*Set\x20font\x20color:*\x20%0',_0x589baf)['trim'](),'color':{'value':_0x1d6c93,'title':_0x589baf||_0x2b9104}};}return{'type':'format','content':o(_0x20fb6d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3c9d12['commandName']){const _0x221883=_0x3c9d12['commandParams'][0x0]['value'];if(_0x221883){const _0x3d39b1=_0x3a586c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d5cb9=>_0x3d5cb9['model']==_0x221883);let _0x3618db=_0x221883,_0x43af02='';return _0x3d39b1&&(_0x3618db=_0x3d39b1['label'],_0x43af02=_0x21843b(_0x3618db)['toLowerCase']()),{'type':'format','content':o(_0x20fb6d,'*Set\x20font\x20background\x20color:*\x20%0',_0x43af02)['trim'](),'color':{'value':_0x221883,'title':_0x43af02||_0x3618db}};}return{'type':'format','content':o(_0x20fb6d,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x33fd4f{['afterInit'](){const _0x510499=this['editor'],_0x3e43e8=_0x510499['plugins']['get']('TrackChangesEditing'),_0xa2f8e7=_0x510499['commands']['get']('copyFormat'),_0x18cf74=_0x510499['commands']['get']('pasteFormat');_0xa2f8e7&&_0x18cf74&&(_0x3e43e8['enableDefaultAttributesIntegration']('pasteFormat'),_0x3e43e8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x44a1c2=this['editor'],_0x147c34=_0x44a1c2['locale'];_0x44a1c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fe12f=>{if('formatBlock'!=_0x4fe12f['type']&&'formatInline'!=_0x4fe12f['type'])return;const {data:_0x564960}=_0x4fe12f;if(_0x564960&&'pasteFormat'===_0x564960['commandName']){const _0x4691e9=[],_0x115bcc=_0x564960['commandParams'][0x0];for(const [_0x38494f,_0x455951]of Object['entries'](_0x115bcc))_0x4691e9['push'](so(_0x44a1c2,_0x38494f,_0x455951));return _0x4691e9['length']?{'type':'format','content':o(_0x147c34,'*Set\x20format\x20to:*\x20%0',_0x4691e9['join'](',\x20'))}:{'type':'format','content':o(_0x147c34,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1868b4,_0x1fef2e,_0x468273){const _0x14bf60=_0x1868b4['locale']['t'],_0xcf1f6e=_0x1fef2e['split'](/(?=[A-Z])/)['join']('\x20'),_0x33ee8f=_0x14bf60(_0xcf1f6e['charAt'](0x0)['toUpperCase']()+_0xcf1f6e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x468273)return _0x33ee8f;if('fontColor'===_0x1fef2e||'fontBackgroundColor'===_0x1fef2e){const _0x2ec7df=_0x3a586c(_0x1868b4['config']['get']('fontColor.colors'))['find'](_0x126948=>_0x126948['model']==_0x468273);return _0x33ee8f+'\x20('+(_0x2ec7df?_0x14bf60(_0x2ec7df['label'])['toLowerCase']():_0x468273)+')';}if('fontSize'===_0x1fef2e&&isNaN(parseFloat(_0x468273))){const _0x37da48=_0x1868b4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1868b4['config']['get']('fontSize.options'))['find'](_0x5d1d99=>_0x5d1d99['model']==_0x468273);return _0x33ee8f+'\x20('+(_0x37da48?_0x14bf60(_0x37da48['title'])['toLowerCase']():_0x468273)+')';}return _0x33ee8f+'\x20('+_0x468273+')';}class it extends _0x33fd4f{['_headingOptions'];['afterInit'](){const _0x5c20f7=this['editor'];if(!_0x5c20f7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c20f7['config']['get']('heading.options');const _0x50999d=_0x5c20f7['locale'],_0x15bf4d=_0x5c20f7['plugins']['get']('TrackChangesEditing');_0x15bf4d['enableDefaultAttributesIntegration']('heading');for(const _0x1401be of this['_headingOptions'])'paragraph'!=_0x1401be['model']&&_0x15bf4d['descriptionFactory']['registerElementLabel'](_0x1401be['model'],_0xea2462=>{const _0x3e5d0c=this['_getHeadingLevel'](_0x1401be['model']);return null!==_0x3e5d0c?_0xa3d2f8(_0xea2462,_0x3e5d0c):_0x5702a3(_0xea2462,_0x1401be['title']);});function _0xa3d2f8(_0x4f7e43,_0x3399f6){return o(_0x50999d,'ELEMENT_HEADING',[_0x4f7e43,_0x3399f6]);}function _0x5702a3(_0x463c0b,_0x5b33c9){return o(_0x50999d,'ELEMENT_HEADING_CUSTOM',[_0x463c0b,_0x5b33c9]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7a43=this['editor'],_0x586940=_0x2b7a43['locale'];function _0x29187f(_0x349446,_0x223eb3){return o(_0x586940,'ELEMENT_HEADING_CUSTOM',[_0x349446,_0x223eb3]);}_0x2b7a43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236436=>{if('formatBlock'!=_0x236436['type'])return;const {data:_0x35ad87}=_0x236436;if(_0x35ad87&&'heading'==_0x35ad87['commandName']){const _0xff9077=_0x35ad87['commandParams'][0x0]['value'],_0xb914ea=this['_getHeadingLevel'](_0xff9077);if(null!==_0xb914ea)return{'type':'format','content':o(_0x586940,'*Change\x20to:*\x20%0',(_0x1741ef=0x1,_0x5a35d8=_0xb914ea,o(_0x586940,'ELEMENT_HEADING',[_0x1741ef,_0x5a35d8])))};const _0x2b191b=this['_headingOptions']['find'](_0x3b79f9=>_0x3b79f9['model']===_0xff9077)['title'];return{'type':'format','content':o(_0x586940,'*Change\x20to:*\x20%0',_0x29187f(0x1,_0x2b191b))};}var _0x1741ef,_0x5a35d8;});}['_getHeadingLevel'](_0x5ede1f){const _0x99b942=_0x5ede1f['match'](/^heading(\d+)/);if(_0x99b942)return _0x99b942[0x1];const _0x14987b=this['_headingOptions']?.['find'](_0x49cbfb=>_0x49cbfb['model']==_0x5ede1f);if(_0x14987b&&_0x14987b['view']){const _0x4cfdc6=_0x14987b['view'],_0x22e3fa=(_0x4cfdc6['name']??_0x4cfdc6)['match'](/^h(\d+)/);if(_0x22e3fa)return _0x22e3fa[0x1];}return null;}}class et extends _0x33fd4f{['afterInit'](){const _0x1dfe06=this['editor'];if(!_0x1dfe06['plugins']['has']('HighlightEditing'))return;const _0x3453b6=_0x1dfe06['plugins']['get']('TrackChangesEditing'),_0x151366=_0x1dfe06['locale'];_0x3453b6['enableDefaultAttributesIntegration']('highlight'),_0x3453b6['registerInlineAttribute']('highlight'),_0x3453b6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x151366,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56aff7=this['editor'],_0x4fdcc6=_0x56aff7['locale'];_0x56aff7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x425712=>{if('formatInline'!=_0x425712['type'])return;const {data:_0x3b1b2d}=_0x425712;if(_0x3b1b2d&&'highlight'==_0x3b1b2d['commandName']){const _0xb21e1b=_0x4fdcc6['t'],_0x244b96=_0x3b1b2d['commandParams'][0x0]['value'];if(_0x244b96){const _0xaa40e0=_0x56aff7['config']['get']('highlight.options')['find'](_0x17cef1=>_0x17cef1['model']==_0x244b96),_0x2d5517=_0xb21e1b(_0xaa40e0['title'])['toLowerCase']();return{'type':'format','content':o(_0x4fdcc6,'*Set\x20highlight:*\x20%0',_0x2d5517),'color':{'value':_0xaa40e0['color'],'title':_0xaa40e0['title']}};}return{'type':'format','content':o(_0x4fdcc6,'*Remove\x20highlight*',o(_0x4fdcc6,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x33fd4f{['afterInit'](){const _0x470763=this['editor'];if(!_0x470763['plugins']['has']('HorizontalLineEditing'))return;_0x470763['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf387c=_0x470763['plugins']['get']('TrackChangesEditing'),_0x1a1dd3=_0x470763['locale'];_0xf387c['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe5dc0d=>o(_0x1a1dd3,'ELEMENT_HORIZONTAL_LINE',_0xe5dc0d)),_0x470763['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c7323,{writer:_0x5dd8bc,options:_0x486326})=>{if(!_0x486326['showSuggestionHighlights'])return null;const _0x50e0fb=_0x5dd8bc['createContainerElement']('div'),_0x4a2ba7=_0x5dd8bc['createEmptyElement']('hr');return _0x5dd8bc['addClass']('ck-horizontal-line',_0x50e0fb),_0x5dd8bc['insert'](_0x5dd8bc['createPositionAt'](_0x50e0fb,0x0),_0x4a2ba7),_0x50e0fb;},'converterPriority':'high'});}}class ot extends _0x33fd4f{['afterInit'](){const _0x24d012=this['editor'];if(!_0x24d012['plugins']['has']('HtmlEmbed'))return;const _0x1be89b=_0x24d012['plugins']['get']('TrackChangesEditing'),_0x2e930e=_0x24d012['locale'];_0x1be89b['descriptionFactory']['registerElementLabel']('rawHtml',_0x23921c=>o(_0x2e930e,'ELEMENT_HTML_EMBED',_0x23921c)),_0x1be89b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1be89b['registerBlockAttribute']('value'),_0x1be89b['descriptionFactory']['registerDescriptionCallback'](_0x1f2584=>{if('attribute'!=_0x1f2584['type'])return;const {data:_0x37751}=_0x1f2584;if(_0x37751&&'value'==_0x37751['key']&&_0x1f2584['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3a78a1=o(_0x2e930e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e930e,'*Change\x20%0\x20content*',_0x3a78a1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x100bde=this['editor'],_0x346fba=_0x100bde['locale'];_0x100bde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576f9f=>{if('formatBlock'!=_0x576f9f['type'])return;const {data:_0x58c068}=_0x576f9f;if(_0x58c068&&'htmlEmbed'==_0x58c068['commandName']){const _0x711aee=o(_0x346fba,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x346fba,'*Change\x20%0\x20content*',_0x711aee)};}});}}class rt extends _0x33fd4f{['afterInit'](){const _0xa01288=this['editor'];if(!_0xa01288['plugins']['has']('ImageEditing'))return;const _0x355fc5=_0xa01288['plugins']['get']('TrackChangesEditing'),_0x120fb1=_0xa01288['plugins']['get']('ImageUtils'),_0x5c5e04=_0xa01288['locale'];_0x355fc5['enableCommand']('insertImage'),_0x355fc5['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b46e6=>o(_0x5c5e04,'ELEMENT_IMAGE',_0x4b46e6)),_0x355fc5['descriptionFactory']['registerElementLabel']('imageInline',_0x26edc7=>o(_0x5c5e04,'ELEMENT_INLINE_IMAGE',_0x26edc7)),_0x355fc5['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5c5e04,'ELEMENT_CAPTION')),_0xa01288['plugins']['has']('ImageUploadEditing')&&_0x355fc5['enableCommand']('uploadImage'),_0xa01288['plugins']['has']('ImageBlockEditing')&&_0xa01288['plugins']['has']('ImageInlineEditing')&&(_0x355fc5['enableCommand']('imageTypeInline',(_0x2ed295,_0x555cdc)=>{const _0x1d081c=_0x120fb1['getClosestSelectedImageElement'](_0xa01288['model']['document']['selection']);_0xa01288['model']['change'](()=>{_0x355fc5['markBlockFormat'](_0x1d081c,{'commandName':'imageTypeInline','commandParams':[_0x555cdc]},[],'convertBlockImageToInline');});}),_0x355fc5['enableCommand']('imageTypeBlock',(_0x126ec2,_0x6de0e9)=>{_0xa01288['model']['change'](_0x38338b=>{let _0x59ad89=_0x120fb1['getClosestSelectedImageElement'](_0xa01288['model']['document']['selection']),_0x577da9=_0x38338b['createRangeOn'](_0x59ad89);const _0x20ff22=_0x41b995['fromPosition'](_0x577da9['start'],'toPrevious'),_0x4595f1=_0x41b995['fromPosition'](_0x577da9['end'],'toNext');_0x355fc5['forceDefaultExecution'](()=>_0x126ec2(_0x6de0e9)),_0x59ad89=_0x120fb1['getClosestSelectedImageElement'](_0xa01288['model']['document']['selection']),_0x577da9=_0x38338b['createRangeOn'](_0x59ad89);const _0x322724=_0x38338b['createRange'](_0x20ff22,_0x4595f1);_0x20ff22['detach'](),_0x4595f1['detach'](),_0x355fc5['markBlockFormat'](_0x59ad89,{'commandName':'imageTypeInline','commandParams':[_0x6de0e9]},[],'convertInlineImageToBlock'),_0x322724['start']['isBefore'](_0x577da9['start'])&&_0x355fc5['markInsertion'](_0x38338b['createRange'](_0x322724['start'],_0x577da9['start']),'convertInlineImageToBlock'),_0x577da9['end']['isBefore'](_0x322724['end'])&&_0x355fc5['markInsertion'](_0x38338b['createRange'](_0x577da9['end'],_0x322724['end']),'convertInlineImageToBlock');});}),_0x355fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x355fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x355fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x355fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x355fc5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x355fc5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x365ce5])=>{const _0x510928=_0x355fc5['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3cb757=_0x365ce5['start'],_0x52acb8=_0x365ce5['end'];const _0x46cb12=_0xa01288['model']['schema']['getNearestSelectionRange'](_0x3cb757,'backward'),_0x4fe2d8=_0xa01288['model']['schema']['getNearestSelectionRange'](_0x52acb8,'forward');_0x46cb12['isCollapsed']&&(_0x3cb757=_0x46cb12['start']),_0x4fe2d8['isCollapsed']&&(_0x52acb8=_0x4fe2d8['end']),_0x510928([_0xa01288['model']['createRange'](_0x3cb757,_0x52acb8)]);}),_0x355fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x143be6),_0x355fc5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x143be6)),_0xa01288['plugins']['has']('ImageCaptionEditing')&&(_0x355fc5['enableCommand']('toggleImageCaption',(_0x5322d5,_0x545a4e)=>{const _0x152a43=_0xa01288['plugins']['get']('ImageCaptionUtils');let _0x299931=_0x120fb1['getClosestSelectedImageElement'](_0xa01288['model']['document']['selection']),_0x3049a9=_0x152a43['getCaptionFromImageModelElement'](_0x299931);_0xa01288['model']['change'](()=>{if(_0x3049a9)return void _0x355fc5['markDeletion'](_0xa01288['model']['createRangeOn'](_0x3049a9));const _0x5c6a2a=_0x120fb1['isBlockImage'](_0x299931);_0x5322d5(_0x545a4e),_0x299931=_0x120fb1['getClosestSelectedImageElement'](_0xa01288['model']['document']['selection']),_0x3049a9=_0x152a43['getCaptionFromImageModelElement'](_0x299931),_0x355fc5['markInsertion'](_0xa01288['model']['createRangeOn'](_0x3049a9),_0x5c6a2a?null:'imageCaption');});}),_0x355fc5['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x143be6));const _0xc0d920=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44601d(_0x195ef0,_0x19e998){const _0x41ff30=_0xc0d920['findIndex'](({type:_0x2796af,subType:_0x5024ce})=>_0x195ef0['type']==_0x2796af&&_0x195ef0['subType']==_0x5024ce),_0x1dd2c7=_0xc0d920['findIndex'](({type:_0x261688,subType:_0x1e8a98})=>_0x19e998['type']==_0x261688&&_0x19e998['subType']==_0x1e8a98);if(_0x41ff30<0x0||_0x1dd2c7<0x0)return!0x1;const _0x3be353=_0x195ef0['getFirstRange'](),_0x37ed44=_0x19e998['getFirstRange']();if((0x0==_0x41ff30||0x1==_0x41ff30)&&0x2==_0x1dd2c7&&_0x3be353['isIntersecting'](_0x37ed44))return!0x0;if(0x2==_0x41ff30&&0x3==_0x1dd2c7){const _0xa2dc66=_0x355fc5['_findSuggestions'](_0x3be353,'insertion')['filter'](({suggestion:_0x4b3982,meta:_0x126046})=>_0x126046['isOwn']&&'convertInlineImageToBlock'==_0x4b3982['subType']);if(_0xa2dc66['length']>0x1&&_0x37ed44['end']['isEqual'](_0x3be353['start']))return!0x0;if(0x1==_0xa2dc66['length']&&(_0x3be353['start']['isEqual'](_0x37ed44['end'])||_0x3be353['end']['isEqual'](_0x37ed44['start'])))return!0x0;}if(0x3==_0x41ff30&&0x3==_0x1dd2c7&&_0x3be353['start']['isBefore'](_0x37ed44['start'])){const _0x291a8c=_0x3be353['end']['nodeAfter'],_0x20b978=_0x37ed44['start']['nodeBefore'];return _0x120fb1['isBlockImage'](_0x291a8c)&&_0x291a8c===_0x20b978;}return!0x1;}function _0x143be6(_0x1fdaad,_0x5d9874){return _0x44601d(_0x1fdaad,_0x5d9874)?[_0x1fdaad,_0x5d9874]:_0x44601d(_0x5d9874,_0x1fdaad)?[_0x5d9874,_0x1fdaad]:null;}_0xa01288['plugins']['has']('ImageResize')&&(_0x355fc5['enableDefaultAttributesIntegration']('resizeImage'),_0x355fc5['registerBlockAttribute']('resizedWidth'),_0x355fc5['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5c5e04,'FORMAT_IMAGE_SIZE'))),_0xa01288['plugins']['has']('ImageTextAlternativeEditing')&&(_0x355fc5['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x355fc5['registerBlockAttribute']('alt')),_0xa01288['plugins']['has']('PictureEditing')&&(_0x355fc5['registerBlockAttribute']('sources'),_0x355fc5['descriptionFactory']['registerDescriptionCallback'](_0x3c1688=>{if('attribute'!=_0x3c1688['type'])return;const {data:_0x435046}=_0x3c1688;return _0x435046&&'sources'==_0x435046['key']?{'type':'format','content':''}:void 0x0;})),_0xa01288['plugins']['has']('ImageSizeAttributes')&&(_0x355fc5['registerBlockAttribute']('width'),_0x355fc5['registerBlockAttribute']('height'),_0x355fc5['descriptionFactory']['registerDescriptionCallback'](_0x1b100a=>{if('attribute'!=_0x1b100a['type'])return;const {data:_0x182dae}=_0x1b100a;return!_0x182dae||'width'!=_0x182dae['key']&&'height'!=_0x182dae['key']?void 0x0:{'type':'format','content':''};})),_0x355fc5['descriptionFactory']['registerDescriptionCallback'](_0x54c9a9=>{if(!!_0xc0d920['find'](({type:_0x26ba22,subType:_0x5c38f8})=>_0x54c9a9['type']==_0x26ba22&&_0x54c9a9['subType']==_0x5c38f8))return _0x54c9a9['previous']?{}:void 0x0;}),_0x355fc5['descriptionFactory']['registerDescriptionCallback'](_0x5d4544=>{if('insertion'==_0x5d4544['type']||'deletion'==_0x5d4544['type']){const _0x84399b=_0x5d4544['getContainedElement']();if(_0x84399b&&_0x84399b['is']('element','caption'))return{'type':'insertion'==_0x5d4544['type']?'addObject':'removeObject','element':_0x84399b,'quantity':0x1};}}),_0x355fc5['descriptionFactory']['registerDescriptionCallback'](_0x36849e=>'formatBlock'==_0x36849e['type']&&'convertInlineImageToBlock'==_0x36849e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36849e['type']&&'convertBlockImageToInline'==_0x36849e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x355fc5['descriptionFactory']['registerDescriptionCallback'](_0x1e69d8=>{if('attribute'!=_0x1e69d8['type'])return;const {data:_0x18416e}=_0x1e69d8;if(!_0x18416e||'alt'!=_0x18416e['key'])return;const _0x59897f=_0x18416e['newValue'];return _0x59897f?{'type':'format','content':o(_0x5c5e04,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59897f+'\x22')}:{'type':'format','content':o(_0x5c5e04,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f018=this['editor'],_0x82c2a2=_0x11f018['locale'];_0x11f018['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x360ef4=>{if('formatBlock'!=_0x360ef4['type']&&'formatInline'!=_0x360ef4['type'])return;const {data:_0x39995c}=_0x360ef4;if(_0x39995c){if('imageTextAlternative'==_0x39995c['commandName']){const _0x20f4b2=_0x39995c['commandParams'][0x0]['newValue'];return _0x20f4b2?{'type':'format','content':o(_0x82c2a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20f4b2+'\x22')}:{'type':'format','content':o(_0x82c2a2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x39995c['commandName']){const _0x2a2327=_0x39995c['commandParams'][0x0]['width'];return _0x2a2327?{'type':'format','content':o(_0x82c2a2,'*Set\x20image\x20width:*\x20%0',_0x2a2327)}:{'type':'format','content':o(_0x82c2a2,'*Reset\x20image\x20width*')};}}});}}class at extends _0x33fd4f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x449516=this['editor']['locale'],_0xab331a=this['editor']['plugins']['get']('TrackChangesEditing');_0xab331a['enableDefaultAttributesIntegration']('replaceImageSource'),_0xab331a['registerBlockAttribute']('src'),_0xab331a['descriptionFactory']['registerDescriptionCallback'](_0x157be2=>{if('attribute'!=_0x157be2['type'])return;const {data:_0x533801}=_0x157be2;return _0x533801&&'src'==_0x533801['key']?_0x533801['newValue']&&_0x533801['oldValue']?{'type':'format','content':o(_0x449516,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x252087=this['editor']['plugins']['get']('TrackChangesEditing');_0x252087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x252087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x252087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x252087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48f530=this['editor'],_0x27bf3e=_0x48f530['locale'];_0x48f530['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35dd15=>{if('formatBlock'!=_0x35dd15['type']&&'formatInline'!=_0x35dd15['type'])return;const {data:_0x3a690a}=_0x35dd15;if(!_0x3a690a||'replaceImageSource'!=_0x3a690a['commandName'])return;return{'type':'format','content':o(_0x27bf3e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x33fd4f{['afterInit'](){const _0x18c531=this['editor'];if(!_0x18c531['plugins']['has']('ImageStyleEditing'))return;const _0x16b1fb=_0x18c531['plugins']['get']('TrackChangesEditing'),_0x46fccc=_0x18c531['plugins']['get']('ImageUtils'),_0x2e3b4a={};_0x16b1fb['enableCommand']('imageStyle',(_0x300714,_0xcfb75f)=>{const _0x267ee7=_0x18c531['plugins']['get']('Users')['me'],_0x56db68=_0x18c531['commands']['get']('imageStyle');let _0x32c9bc=_0x46fccc['getClosestSelectedImageElement'](_0x18c531['model']['document']['selection']),_0x3c2c98=_0x18c531['model']['createRangeOn'](_0x32c9bc),_0x3c8881=_0x56db68['value'];if(_0x3c8881==_0xcfb75f['value'])return;const _0x541cdd={'commandName':'imageStyle','commandParams':[_0xcfb75f],'formatGroupId':_0x543df7()};_0x18c531['model']['change'](()=>{if(_0x16b1fb['getSuggestions']()['filter'](_0x7752dc=>_0x7752dc['isInContent']&&_0x267ee7==_0x7752dc['author']&&('formatBlock'==_0x7752dc['type']||'formatInline'==_0x7752dc['type'])&&('imageStylePreApply'==_0x7752dc['subType']||'imageStylePostApply'==_0x7752dc['subType'])&&_0x7752dc['getFirstRange']()['isEqual'](_0x3c2c98))['forEach'](_0x270087=>_0x16b1fb['discardSuggestion'](_0x270087['head'])),_0x32c9bc=_0x46fccc['getClosestSelectedImageElement'](_0x18c531['model']['document']['selection']),_0x3c2c98=_0x18c531['model']['createRangeOn'](_0x32c9bc),_0x56db68['refresh'](),_0x18c531['commands']['get']('imageTypeInline')['refresh'](),_0x18c531['commands']['get']('imageTypeBlock')['refresh'](),_0x3c8881=_0x56db68['value'],_0x3c8881!=_0xcfb75f['value'])return _0x46fccc['isInlineImage'](_0x32c9bc)&&_0x56db68['shouldConvertImageType'](_0xcfb75f['value'],_0x32c9bc)?(_0x300714({..._0xcfb75f,'setImageSizes':!0x1}),_0x32c9bc=_0x46fccc['getClosestSelectedImageElement'](_0x18c531['model']['document']['selection']),void _0x16b1fb['markBlockFormat'](_0x32c9bc,{..._0x541cdd,'commandReversedParams':[{'value':_0x3c8881||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x46fccc['isBlockImage'](_0x32c9bc)?_0x16b1fb['markBlockFormat'](_0x32c9bc,_0x541cdd,[],'imageStylePostApply'):_0x16b1fb['markInlineFormat'](_0x3c2c98,_0x541cdd,'imageStylePostApply'));});});for(const _0x2f970f of _0x18c531['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2e3b4a[_0x2f970f['name']]=_0x2f970f['title']['toLowerCase']();_0x16b1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x16b1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x16b1fb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x16b1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3fe8dd])=>{_0x46fccc['setImageNaturalSizeAttributes'](_0x3fe8dd['getContainedElement']());}),_0x16b1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c043d,_0x259854)=>{_0x16b1fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c043d,{'commandName':_0x259854['commandName'],'commandParams':_0x259854['commandReversedParams']});}),_0x16b1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1ef14e,_0x1e3f66){if(_0x1284d0(_0x1ef14e,_0x1e3f66))return[_0x1ef14e,_0x1e3f66];if(_0x1284d0(_0x1e3f66,_0x1ef14e))return[_0x1e3f66,_0x1ef14e];return null;});const _0x190e72=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1284d0(_0x1d8093,_0x3e43f5){const _0x4236a6=_0x190e72['findIndex'](({type:_0x113fdd,subType:_0x196ce0})=>_0x1d8093['type']==_0x113fdd&&_0x1d8093['subType']==_0x196ce0),_0x1a7440=_0x190e72['findIndex'](({type:_0x2bdc6e,subType:_0x2ea62f})=>_0x3e43f5['type']==_0x2bdc6e&&_0x3e43f5['subType']==_0x2ea62f);if(_0x4236a6<0x0||_0x1a7440<0x0)return!0x1;const _0x4ecda9=_0x1d8093['getFirstRange'](),_0x1626db=_0x3e43f5['getFirstRange']();if((0x0==_0x4236a6||0x1==_0x4236a6)&&0x2==_0x1a7440&&_0x4ecda9['isIntersecting'](_0x1626db))return!0x0;if(0x2==_0x4236a6&&0x3==_0x1a7440){const _0x59fb44=_0x16b1fb['_findSuggestions'](_0x4ecda9,'insertion')['filter'](({suggestion:_0x56153f,meta:_0x48c1d6})=>_0x48c1d6['isOwn']&&'convertInlineImageToBlock'==_0x56153f['subType']);if(_0x59fb44['length']>0x1&&_0x1626db['end']['isEqual'](_0x4ecda9['start']))return!0x0;if(0x1==_0x59fb44['length']&&(_0x4ecda9['start']['isEqual'](_0x1626db['end'])||_0x4ecda9['end']['isEqual'](_0x1626db['start'])))return!0x0;}if(0x3==_0x4236a6&&0x3==_0x1a7440&&_0x4ecda9['start']['isBefore'](_0x1626db['start'])){const _0x3888ab=_0x4ecda9['end']['nodeAfter'],_0x9edae0=_0x1626db['start']['nodeBefore'];return _0x46fccc['isBlockImage'](_0x3888ab)&&_0x3888ab===_0x9edae0;}return!0x1;}_0x18c531['model']['document']['registerPostFixer'](()=>{let _0x2041dc=!0x1;const _0xb25dd0=Array['from'](_0x18c531['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a9759,data:_0x1e789d}of _0xb25dd0){const {group:_0x1b1382,type:_0x5a235d,subType:_0x4cbbfc,id:_0x3e4c34}=_0x16b1fb['_splitMarkerName'](_0x5a9759);if('suggestion'==_0x1b1382&&_0x16b1fb['hasSuggestion'](_0x3e4c34)){if('formatBlock'==_0x5a235d&&('imageStylePreApply'==_0x4cbbfc||'imageStylePostApply'==_0x4cbbfc)){const _0xb7af12=_0x16b1fb['getSuggestion'](_0x3e4c34);if(_0x1e789d['newRange']){const _0x5f2cc5=_0xb7af12['getFirstRange']()['getContainedElement']();if(_0x46fccc['isBlockImage'](_0x5f2cc5))continue;_0x16b1fb['discardSuggestion'](_0xb7af12),_0x2041dc=!0x0;}}if('insertion'==_0x5a235d&&'imageCaption'==_0x4cbbfc&&!_0x1e789d['newRange']){const _0x7f0370=_0x16b1fb['getSuggestion'](_0x3e4c34);_0x7f0370['next']&&_0x7f0370['next']['isInContent']&&(_0x16b1fb['discardSuggestion'](_0x7f0370['next']),_0x2041dc=!0x0);}}}return _0x2041dc;}),this['_registerLegacyDescription'](_0x2e3b4a);}['_registerLegacyDescription'](_0x2ff911){const _0x447559=this['editor'],_0x1a9bfb=_0x447559['locale'];_0x447559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38a29b=>{if('formatBlock'!=_0x38a29b['type']&&'formatInline'!=_0x38a29b['type'])return;const {data:_0x3c3af4}=_0x38a29b;if(!_0x3c3af4||'imageStyle'!=_0x3c3af4['commandName'])return;const _0x3e20a4=_0x3c3af4['commandParams'][0x0]['value'];return _0x41c04d('side'===_0x3e20a4?o(_0x1a9bfb,'FORMAT_SIDE_IMAGE'):_0x2ff911[_0x3e20a4]||_0x3e20a4);function _0x41c04d(_0x49222f){return{'type':'format','content':o(_0x1a9bfb,'*Format:*\x20%0',_0x49222f)};}});}}class ut extends _0x33fd4f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5425af){super(_0x5425af),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1ff773=this['editor'],_0x2fa310=_0x1ff773['commands']['get']('importWord'),_0x444303=_0x1ff773['commands']['get']('trackChanges');_0x2fa310&&(_0x2fa310['on']('execute',(_0x11d09c,[,_0x9ab132])=>{this['_trackChangesValueDuringImport']=_0x444303['value'],_0x9ab132['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2fa310,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2fa310,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x444303['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1ff773['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2102b6,_0x1b4c80){const {suggestions:_0x3e6b1c}=_0x1b4c80,_0x317b34=this['editor']['commands']['get']('trackChanges'),_0x21c8e7=_0x317b34['value'];this['_trackChangesValueDuringImport']!==_0x21c8e7&&(_0x317b34['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e6b1c&&_0x3e6b1c['forEach'](({id:_0x27a078,type:_0x30884b,author:_0xf4646,created_at:_0x12875b})=>{const _0x1cbd62={'id':_0x27a078,'type':_0x30884b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf4646,'createdAt':_0x12875b?new Date(_0x12875b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1cbd62);});}}class ft extends _0x33fd4f{['afterInit'](){const _0x48957d=this['editor'],_0xaac04c=_0x48957d['plugins']['get']('TrackChangesEditing');if(_0x48957d['plugins']['has']('IndentEditing')&&(_0xaac04c['enableCommand']('indent'),_0xaac04c['enableCommand']('outdent')),_0x48957d['plugins']['has']('IndentBlock')){for(const _0x3e21a4 of['indentBlock','outdentBlock'])_0xaac04c['enableDefaultAttributesIntegration'](_0x3e21a4);}const _0x33d29c=_0x48957d['locale'];_0xaac04c['registerBlockAttribute']('blockIndent'),_0xaac04c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x33d29c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51552d=this['editor'],_0x4f7038=_0x51552d['locale'],_0x5143c8=_0x51552d['plugins']['get']('TrackChangesEditing');_0x5143c8['descriptionFactory']['registerDescriptionCallback'](_0x297304=>{if('formatBlock'!=_0x297304['type'])return;const {data:_0x166276}=_0x297304;if(!_0x166276)return;if('indentBlock'!=_0x166276['commandName']&&'outdentBlock'!=_0x166276['commandName'])return;const _0x524ab1=_0x297304['getItems']()[0x0],_0x52954b=_0x5143c8['descriptionFactory']['getItemLabel'](_0x524ab1);return'indentBlock'==_0x166276['commandName']?{'type':'format','content':o(_0x4f7038,'*Indent:*\x20%0',_0x52954b)}:'outdentBlock'==_0x166276['commandName']?{'type':'format','content':o(_0x4f7038,'*Outdent:*\x20%0',_0x52954b)}:void 0x0;});}}class ht extends _0x33fd4f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x33fd4f{['afterInit'](){const _0x55020f=this['editor'];if(!_0x55020f['plugins']['has']('LinkEditing'))return;const _0x1b4b35=_0x55020f['plugins']['get']('TrackChangesEditing'),_0x556b0b=_0x55020f['commands']['get']('link');_0x1b4b35['enableDefaultAttributesIntegration']('link'),_0x1b4b35['enableDefaultAttributesIntegration']('unlink'),_0x1b4b35['registerInlineAttribute']('linkHref');for(const _0x20d4b5 of _0x556b0b['manualDecorators'])_0x1b4b35['registerInlineAttribute'](_0x20d4b5['id']),_0x1b4b35['descriptionFactory']['registerAttributeLabel'](_0x20d4b5['id'],'link\x20('+_0x20d4b5['label']['toLowerCase']()+')');_0x1b4b35['descriptionFactory']['registerDescriptionCallback'](_0x20a368=>{if('attribute'!=_0x20a368['type'])return;const {data:_0x31abbb}=_0x20a368;if(!_0x31abbb||'linkHref'!=_0x31abbb['key'])return;const _0x14718b=_0x31abbb['newValue'],_0x333cd1=_0x55020f['locale'];return{'type':'format','content':null==_0x14718b?o(_0x333cd1,'*Remove\x20link*'):o(_0x333cd1,'*Set\x20link:*\x20%0','\x22'+_0x14718b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b81af=this['editor'],_0x361ed7=_0x2b81af['locale'];_0x2b81af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b0f1b=>{if('formatInline'!=_0x1b0f1b['type'])return;const {data:_0x3afd2d}=_0x1b0f1b;if(_0x3afd2d){if('link'==_0x3afd2d['commandName']){const _0x3b8e17=_0x3afd2d['commandParams'][0x0];return{'type':'format','content':o(_0x361ed7,'*Set\x20link:*\x20%0','\x22'+_0x3b8e17+'\x22')};}return'unlink'==_0x3afd2d['commandName']?{'type':'format','content':o(_0x361ed7,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x33fd4f{['afterInit'](){const _0x62a996=this['editor'],_0x472c77=_0x62a996['locale'];if(!_0x62a996['plugins']['has']('LegacyListEditing'))return;const _0x211d8a=_0x62a996['plugins']['get']('TrackChangesEditing'),_0x58101d=_0x62a996['plugins']['has']('LegacyTodoListEditing');function _0x5070ab(_0x329443){return()=>{const _0x416826=_0x62a996['model']['document']['selection'],_0x29f010=_0x62a996['commands']['get'](_0x329443);if(_0x29f010['value'])return void _0x62a996['execute']('paragraph',{});const _0x1d2277=_0x329443['slice'](0x0,-0x4),_0x434914=function(_0x580d4a,_0x4ee15e,_0x2eb5a8){let _0x4f1a6b=Array['from'](_0x580d4a)['filter'](_0x10a874=>function(_0x4c1da8,_0x5ed700){return _0x5ed700['checkChild'](_0x4c1da8['parent'],'listItem')&&!_0x5ed700['isObject'](_0x4c1da8);}(_0x10a874,_0x2eb5a8));_0x4f1a6b=_0x4f1a6b['filter'](_0x1fce13=>!_0x1fce13['is']('element','listItem')||_0x1fce13['getAttribute']('listType')!=_0x4ee15e);const _0x411ba5=new Set();for(const _0x24c9ac of _0x4f1a6b)_0x24c9ac['is']('element','listItem')?_0x411ba5['add'](Le(_0x24c9ac)):_0x411ba5['add'](_0x24c9ac);return Array['from'](_0x411ba5);}(_0x416826['getSelectedBlocks'](),_0x1d2277,_0x62a996['model']['schema']);_0x62a996['model']['change'](()=>{for(const _0x549d42 of _0x434914)_0x211d8a['markBlockFormat'](_0x549d42,{'commandName':_0x329443,'commandParams':[{'forceValue':!_0x29f010['value']}],'formatGroupId':'blockName'},Ee(_0x549d42));});};}function _0x49dee2(_0x28195a){return()=>{const _0x41df4d=function(_0xc46176){let _0x407dc1=Array['from'](_0xc46176);const _0x1ecf7f=_0x407dc1['findIndex'](_0x420893=>'listItem'!=_0x420893['name']);return _0x1ecf7f>-0x1&&(_0x407dc1=_0x407dc1['slice'](0x0,_0x1ecf7f)),_0x407dc1;}(_0x62a996['model']['document']['selection']['getSelectedBlocks']()),_0x25d438=_0x62a996['model']['createRange'](_0x62a996['model']['createPositionAt'](_0x41df4d[0x0],'before'),_0x62a996['model']['createPositionAt'](_0x41df4d[_0x41df4d['length']-0x1],'end'));_0x62a996['model']['change'](()=>{_0x211d8a['markBlockFormat'](_0x25d438,{'commandName':_0x28195a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1302ba){const _0x4eb176=new Set();for(const _0x27231f of _0x1302ba){let _0x2fa99c=_0x27231f['nextSibling'];for(;_0x2fa99c&&_0x2fa99c['getAttribute']('listIndent')>_0x27231f['getAttribute']('listIndent');)_0x4eb176['add'](_0x2fa99c),_0x2fa99c=_0x2fa99c['nextSibling'];}return Array['from'](_0x4eb176);}(_0x41df4d));});};}_0x211d8a['enableCommand']('numberedList',_0x5070ab('numberedList')),_0x211d8a['enableCommand']('bulletedList',_0x5070ab('bulletedList')),_0x58101d&&_0x211d8a['enableCommand']('todoList',_0x5070ab('todoList')),_0x211d8a['enableCommand']('indentList',_0x49dee2('indentList')),_0x211d8a['enableCommand']('outdentList',_0x49dee2('outdentList')),_0x58101d&&_0x211d8a['enableCommand']('checkTodoList',()=>{const _0x56ccd1=_0x62a996['commands']['get']('checkTodoList'),_0x500f0c=Array['from'](_0x56ccd1['_selectedElements']);_0x500f0c['filter'](_0x53dff9=>_0x53dff9['getAttribute']('todoListChecked')!=_0x56ccd1['value']),_0x62a996['model']['change'](()=>{for(const _0x1d1fe0 of _0x500f0c)_0x211d8a['markBlockFormat'](_0x1d1fe0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x56ccd1['value']}]});});}),_0x211d8a['descriptionFactory']['registerElementLabel']('listItem',_0x55dfba=>o(_0x472c77,'ELEMENT_LIST_ITEM',_0x55dfba)),_0x211d8a['descriptionFactory']['registerDescriptionCallback'](_0x2ebd97=>{if('formatBlock'!=_0x2ebd97['type']&&'formatInline'!=_0x2ebd97['type'])return;const {data:_0x480c2b}=_0x2ebd97;if(_0x480c2b){if('numberedList'==_0x480c2b['commandName']||'bulletedList'==_0x480c2b['commandName']||'todoList'==_0x480c2b['commandName'])switch(_0x480c2b['commandName']['replace']('List','')){case'bulleted':return _0x39c49a(o(_0x472c77,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39c49a(o(_0x472c77,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39c49a(o(_0x472c77,'ELEMENT_TODO_LIST'));}if('indentList'==_0x480c2b['commandName'])return{'type':'format','content':o(_0x472c77,'*Indent:*\x20%0',o(_0x472c77,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x480c2b['commandName'])return{'type':'format','content':o(_0x472c77,'*Outdent:*\x20%0',o(_0x472c77,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x480c2b['commandName'])return _0x480c2b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x472c77,'*Check\x20item*')}:{'type':'format','content':o(_0x472c77,'*Uncheck\x20item*')};}function _0x39c49a(_0x3aa1b7){return{'type':'format','content':o(_0x472c77,'*Change\x20to:*\x20%0',_0x3aa1b7)};}});}}function Le(_0x45b405){const _0x1ce988=_0x45b405['getAttribute']('listIndent');if(0x0==_0x1ce988)return _0x45b405;let _0x29f8a3=_0x45b405;for(;_0x45b405['previousSibling']&&_0x45b405['previousSibling']['is']('element','listItem');){const _0x2c0967=_0x45b405['previousSibling']['getAttribute']('listIndent');if(_0x2c0967==_0x1ce988)_0x29f8a3=_0x45b405['previousSibling'];else{if(_0x2c0967<_0x1ce988)break;}_0x45b405=_0x45b405['previousSibling'];}return _0x29f8a3;}function Ee(_0x2c14f0){const _0x30841f=[];if(_0x2c14f0['is']('element','listItem')&&_0x2c14f0['getAttribute']('listIndent')>0x0){let _0x40c97a=_0x2c14f0['nextSibling'];for(;_0x40c97a&&'listItem'==_0x40c97a['name']&&_0x40c97a['getAttribute']('listIndent')==_0x2c14f0['getAttribute']('listIndent');)_0x30841f['push'](_0x40c97a),_0x40c97a=_0x40c97a['nextSibling'];}return _0x30841f;}class Q extends _0x33fd4f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x175d76=this['editor']['config']['get']('list.properties'),_0x45ce83=this['editor']['plugins']['get']('TrackChangesEditing');_0x175d76['styles']&&_0x45ce83['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x175d76['reversed']&&_0x45ce83['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x175d76['startIndex']&&_0x45ce83['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x45ce83['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x551d70,_0x55396b={}){const _0x3bba53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43bdb0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3bba53['markMultiRangeBlockFormat'](_0x43bdb0,{'commandName':'listStyle','commandParams':[{'type':_0x55396b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5a1e63,_0x2ef6fa={}){const _0x1c2d6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x124d06=this['_getSuggestionBlocks'](_0x5bb878=>_0x5bb878['is']('element','listItem')&&'numbered'===_0x5bb878['getAttribute']('listType'));if(_0x124d06['length']<0x1)return;const _0x4e92b3=_0x124d06['map'](_0x256d21=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x256d21,'before'),this['editor']['model']['createPositionAt'](_0x256d21,0x0)));this['editor']['model']['change'](()=>{_0x1c2d6b['markMultiRangeBlockFormat'](_0x4e92b3,{'commandName':'listReversed','commandParams':[{'reversed':_0x2ef6fa['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x34b014,_0x45e34a={}){const _0x4692c2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494faf=this['_getSuggestionBlocks'](_0x2582dd=>_0x2582dd['is']('element','listItem')&&'numbered'===_0x2582dd['getAttribute']('listType'));if(_0x494faf['length']<0x1)return;const _0x2aef8a=_0x494faf['map'](_0x45ea29=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45ea29,'before'),this['editor']['model']['createPositionAt'](_0x45ea29,0x0)));this['editor']['model']['change'](()=>{_0x4692c2['markMultiRangeBlockFormat'](_0x2aef8a,{'commandName':'listStart','commandParams':[{'startIndex':_0x45e34a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x13c448){if('formatBlock'!=_0x13c448['type']&&'formatInline'!=_0x13c448['type'])return;const _0x7b2de0=this['editor']['locale'],{data:_0x19e53a}=_0x13c448;if(!_0x19e53a)return;let _0x365144,_0x363c63;switch(_0x19e53a['commandName']){case'listStyle':_0x365144='*Change\x20to:*\x20%0',_0x363c63={'type':'format','content':o(_0x7b2de0,_0x365144,o(_0x7b2de0,this['_getTranslationKeyForListStyle'](_0x19e53a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x365144=_0x19e53a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x363c63={'type':'format','content':o(_0x7b2de0,_0x365144)};break;case'listStart':_0x365144='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x363c63={'type':'format','content':o(_0x7b2de0,_0x365144,_0x19e53a['commandParams'][0x0]['startIndex'])};}return _0x363c63;}['_getSuggestionBlocksForListStyle'](){const _0x1a684b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4fc131=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4fc131[0x0]?.['is']('element','listItem')&&_0x4fc131['unshift'](..._0x1a684b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4fc131[_0x4fc131['length']-0x1]?.['is']('element','listItem')&&_0x4fc131['push'](..._0x1a684b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4fc131=[...new Set(_0x4fc131)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4fc131=_0x4fc131['filter'](_0x165497=>_0x165497['is']('element','listItem'))),_0x4fc131;}['_getSuggestionBlocks'](_0x48eeeb){const _0x545294=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b15e8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x48eeeb)['map'](_0x46b273=>{const _0x187a9e=this['editor']['model']['createPositionAt'](_0x46b273,0x0);return[..._0x545294['getSiblingNodes'](_0x187a9e,'backward'),..._0x545294['getSiblingNodes'](_0x187a9e,'forward')];})['flat']();return _0x2b15e8=[...new Set(_0x2b15e8)],_0x2b15e8;}['_getTranslationKeyForListStyle'](_0x5a82fd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5a82fd)||'default')['toUpperCase']()+'_LIST_'+_0x5a82fd['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x33fd4f{['afterInit'](){const _0x3164e6=this['editor'];if(!_0x3164e6['plugins']['has']('MediaEmbedEditing'))return;const _0x52a55a=_0x3164e6['plugins']['get']('TrackChangesEditing'),_0x4b089b=_0x3164e6['locale'];_0x52a55a['enableCommand']('mediaEmbed'),_0x52a55a['descriptionFactory']['registerElementLabel']('media',_0x40cc2b=>o(_0x4b089b,'ELEMENT_MEDIA',_0x40cc2b)),_0x3164e6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x387f04,{writer:_0x334029,options:_0x317ff6})=>{if(_0x317ff6['showSuggestionHighlights'])return _0x334029['createEmptyElement']('div');},'converterPriority':'high'}),_0x3164e6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x19d2bd,_0x304d77,_0x217693)=>{_0x217693['options']['showSuggestionHighlights']&&_0x19d2bd['stop']();},{'priority':'high'});}}class pt extends _0x33fd4f{['afterInit'](){const _0x2cdfb1=this['editor'];_0x2cdfb1['plugins']['has']('MentionEditing')&&_0x2cdfb1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x33fd4f{['afterInit'](){const _0x234bf0=this['editor'];if(!_0x234bf0['plugins']['has']('MergeFieldsEditing'))return;const _0x378a42=_0x234bf0['plugins']['get']('TrackChangesEditing'),_0x17d522=_0x234bf0['locale'];_0x378a42['enableCommand']('insertMergeField'),_0x378a42['enableCommand']('insertMergeFieldBlock'),_0x378a42['enableCommand']('insertMergeFieldImage'),_0x378a42['descriptionFactory']['registerElementLabel']('mergeField',_0x379575=>o(_0x17d522,'ELEMENT_MERGE_FIELD',_0x379575)),_0x378a42['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26b1e2=>o(_0x17d522,'ELEMENT_MERGE_FIELD',_0x26b1e2)),_0x378a42['descriptionFactory']['registerDescriptionCallback'](_0x20f189=>{if('insertion'!=_0x20f189['type']&&'deletion'!=_0x20f189['type'])return;const _0x14f2f9=_0x20f189['getContainedElement']();if(null==_0x14f2f9)return;const _0x3a9a61=_0x234bf0['plugins']['get']('MergeFieldsEditing');let _0x522430;switch(_0x3a9a61['getMergeFieldType'](_0x14f2f9)){case null:return;case'image':{const _0x12f606=_0x3a9a61['unwrapAffixes'](_0x14f2f9['getAttribute']('src'));_0x522430=_0x3a9a61['getLabel'](_0x12f606)||_0x12f606;break;}default:{const _0x39a959=_0x14f2f9['getAttribute']('id');_0x522430=_0x3a9a61['getLabel'](_0x39a959)||_0x39a959;break;}}return'insertion'==_0x20f189['type']?{'type':'insertion','content':o(_0x17d522,'*Insert:*\x20%0','\x22'+_0x522430+'\x22\x20'+o(_0x17d522,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x17d522,'*Remove:*\x20%0','\x22'+_0x522430+'\x22\x20'+o(_0x17d522,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x33fd4f{['afterInit'](){const _0x1a5b1c=this['editor'],_0x219ec0=_0x1a5b1c['plugins']['get']('TrackChangesEditing');_0x1a5b1c['plugins']['has']('MultiLevelList')&&(_0x219ec0['enableDefaultAttributesIntegration']('multiLevelList'),_0x219ec0['registerBlockAttribute']('listMarkerStyle'),_0x219ec0['descriptionFactory']['registerDescriptionCallback'](_0x4ae168=>this['handleDescriptions'](_0x4ae168)));}['handleDescriptions'](_0x51ff23){const _0x288b2c=this['editor']['locale'],{data:_0x4325d2}=_0x51ff23,_0x2fd9e4={'type':'format','content':''};if(_0x4325d2&&'listMarkerStyle'==_0x4325d2['key']){if(!_0x4325d2['oldValue'])return{'type':'format','content':o(_0x288b2c,'*Set\x20format:*\x20%0',o(_0x288b2c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4325d2['newValue']+')'};if(!_0x4325d2['newValue']){let _0x2eda82=_0x51ff23['head'];for(;_0x2eda82;){if(_0x2eda82['data']&&'listType'==_0x2eda82['data']['key']&&_0x2eda82['data']['newValue'])return _0x2fd9e4;_0x2eda82=_0x2eda82['next'];}return{'type':'format','content':o(_0x288b2c,'*Remove\x20format:*\x20%0',o(_0x288b2c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4325d2['oldValue']+')'};}}}}class bt extends _0x33fd4f{['afterInit'](){const _0x4b80b8=this['editor'];if(!_0x4b80b8['plugins']['has']('PageBreakEditing'))return;_0x4b80b8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x6b402e=_0x4b80b8['plugins']['get']('TrackChangesEditing'),_0x596c34=_0x4b80b8['locale'];_0x6b402e['descriptionFactory']['registerElementLabel']('pageBreak',_0x48c837=>o(_0x596c34,'ELEMENT_PAGE_BREAK',_0x48c837));}}class yt extends _0x33fd4f{['afterInit'](){const _0x41426d=this['editor'];if(!_0x41426d['plugins']['has']('Paragraph'))return;const _0x45fe2c=_0x41426d['locale'],_0x40612c=_0x41426d['plugins']['get']('TrackChangesEditing');_0x40612c['descriptionFactory']['registerElementLabel']('paragraph',_0x445cb0=>o(_0x45fe2c,'ELEMENT_PARAGRAPH',_0x445cb0)),_0x40612c['enableDefaultAttributesIntegration']('paragraph'),_0x40612c['enableCommand']('insertParagraph'),_0x41426d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x41426d),{'priority':'highest'}),_0x41426d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38f7c5,_0xff93d9,_0x5f10fb)=>{_0x5f10fb['options']['showSuggestionHighlights']&&nr(_0x41426d,{'showActiveMarker':!0x1})(_0x38f7c5,_0xff93d9,_0x5f10fb);},{'priority':'highest'});const _0x376f05=_0x40612c['descriptionFactory'];_0x376f05['registerDescriptionCallback'](_0x5873e5=>{if('insertion'!==_0x5873e5['type'])return;const {start:_0x3ddc3f,end:_0x410260}=_0x5873e5['getFirstRange']();if(!_0x3ddc3f['isTouching'](_0x410260)||!_0x3ddc3f['nodeAfter'])return;const _0x50b810=_0x41426d['model']['schema'],_0x5ac3af=_0x3ddc3f['nodeAfter'];return _0x50b810['isBlock'](_0x5ac3af)&&!_0x50b810['isLimit'](_0x5ac3af)&&_0x50b810['checkChild'](_0x5ac3af,'$text')?{'type':'insertion','content':o(_0x45fe2c,'*Insert:*\x20%0',_0x376f05['getItemLabel'](_0x5ac3af,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa30c0a=this['editor'],_0xf3285=_0xa30c0a['locale'];_0xa30c0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b583=>{if('formatBlock'!=_0x13b583['type'])return;const {data:_0x1d27aa}=_0x13b583;return _0x1d27aa&&'paragraph'==_0x1d27aa['commandName']?{'type':'format','content':o(_0xf3285,'*Change\x20to:*\x20%0',o(_0xf3285,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f1d39,{showActiveMarker:_0x5b60aa=!0x0}={}){return(_0x197c07,_0x26cb78,_0x1f64d9)=>{const _0xfc6e3=_0x2f1d39['plugins']['get']('TrackChangesEditing'),_0x1473d1=_0x26cb78['markerRange']['start'],_0x237235=_0x26cb78['markerRange']['end'],_0x179a7b=_0x2f1d39['model']['schema'];if(!_0x1473d1['isTouching'](_0x237235)||!_0x1473d1['nodeAfter'])return;const _0x2ad191=_0x1473d1['nodeAfter'];if(_0x179a7b['isBlock'](_0x2ad191)&&!_0x179a7b['isLimit'](_0x2ad191)&&_0x179a7b['checkChild'](_0x2ad191,'$text')){if(!_0x1f64d9['consumable']['consume'](_0x26cb78['markerRange'],_0x197c07['name']))return;const {authorId:_0x362adb}=_0xfc6e3['_splitMarkerName'](_0x26cb78['markerName']),_0x1a8a8c=_0x1f64d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x362adb}),_0x6ce5f8=_0x1f64d9['mapper']['toViewPosition'](_0x237235);_0x5b60aa&&_0xfc6e3['activeMarkers']['includes'](_0x26cb78['markerName'])&&_0x1f64d9['writer']['addClass']('ck-suggestion-marker--active',_0x1a8a8c),_0x1f64d9['writer']['insert'](_0x6ce5f8,_0x1a8a8c),_0x1f64d9['mapper']['bindElementToMarker'](_0x1a8a8c,_0x26cb78['markerName']);}};}class jt extends _0x33fd4f{['afterInit'](){const _0x23c6dd=this['editor'];_0x23c6dd['commands']['get']('replaceSource')&&_0x23c6dd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x33fd4f{['afterInit'](){const _0x341517=this['editor'];if(!_0x341517['plugins']['has']('RemoveFormatEditing'))return;_0x341517['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcff016=this['editor'];_0xcff016['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53a773=>{if('formatBlock'!=_0x53a773['type']&&'formatInline'!=_0x53a773['type'])return;const {data:_0x4d5de3}=_0x53a773;return _0x4d5de3&&'removeFormat'==_0x4d5de3['commandName']?{'type':'format','content':o(_0xcff016['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x33fd4f{['afterInit'](){const _0x830fb8=this['editor'];if(!_0x830fb8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5cac13=_0x830fb8['plugins']['get']('TrackChangesEditing');_0x5cac13['enableCommand']('goToPreviousRestrictedEditingException'),_0x5cac13['enableCommand']('goToNextRestrictedEditingException');const _0x437ebd=_0x830fb8['plugins']['get']('RestrictedEditingModeEditing');_0x437ebd['enableCommand']('trackChanges'),_0x437ebd['enableCommand']('acceptSuggestion'),_0x437ebd['enableCommand']('discardSuggestion'),_0x437ebd['enableCommand']('acceptAllSuggestions'),_0x437ebd['enableCommand']('discardAllSuggestions'),_0x437ebd['enableCommand']('acceptSelectedSuggestions'),_0x437ebd['enableCommand']('discardSelectedSuggestions');}}class It extends _0x33fd4f{static get['requires'](){return[_0x273f2b];}['init'](){const _0x1c538e=this['editor'],_0x312399=_0x1c538e['plugins']['get']('TrackChangesEditing');_0x312399['enableCommand']('shiftEnter'),_0x1c538e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1c538e),{'priority':'high'}),_0x1c538e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1c538e),{'priority':'high'}),_0x1c538e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cb0d9,_0x5904b1,_0x418193)=>{_0x418193['options']['showSuggestionHighlights']&&je(_0x1c538e,{'showActiveMarker':!0x1})(_0x1cb0d9,_0x5904b1,_0x418193);}),_0x312399['descriptionFactory']['registerElementLabel']('softBreak',_0x3ed4fb=>o(_0x1c538e['locale'],'ELEMENT_LINE_BREAK',_0x3ed4fb));}}function je(_0x1e49e4,{showActiveMarker:_0x20e924=!0x0}={}){return(_0x1bf05a,_0x512452,_0x843499)=>{const _0x4ebb82=_0x1e49e4['plugins']['get']('TrackChangesEditing');if(!_0x843499['consumable']['test'](_0x512452['markerRange'],_0x1bf05a['name']))return;const _0xba559f=_0x1e49e4['model'];for(const _0x5a6c19 of _0x512452['markerRange']['getItems']()){if(!_0x5a6c19['is']('element','softBreak'))continue;const _0x8c3ff3='deletion'==_0x512452['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5c0214}=_0x4ebb82['_splitMarkerName'](_0x512452['markerName']),_0xced084=_0x843499['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8c3ff3,'data-author-id':_0x5c0214}),_0x4922ea=_0x843499['mapper']['toViewPosition'](_0xba559f['createPositionBefore'](_0x5a6c19));_0x20e924&&_0x4ebb82['activeMarkers']['includes'](_0x512452['markerName'])&&_0x843499['writer']['addClass']('ck-suggestion-marker--active',_0xced084),_0x843499['writer']['insert'](_0x4922ea,_0xced084),_0x843499['mapper']['bindElementToMarker'](_0xced084,_0x512452['markerName']);}};}class vt extends _0x33fd4f{['afterInit'](){const _0x23f717=this['editor'],_0x39a4ea=_0x23f717['model'],_0x103890=_0x23f717['locale'];if(!_0x23f717['plugins']['has']('StandardEditingModeEditing'))return;const _0x48510b=_0x23f717['plugins']['get']('TrackChangesEditing'),_0x289a62='restrictedEditingException',_0x2c61f3=_0x23f717['commands']['get'](_0x289a62);_0x48510b['enableCommand'](_0x289a62,(_0x2045d8,_0x39bd4a={})=>{const _0x2b591b=_0x39a4ea['document']['selection'];if(_0x2b591b['isCollapsed'])return void _0x2045d8(_0x39bd4a);const _0xbd8930=void 0x0!==_0x39bd4a['forceValue']?_0x39bd4a['forceValue']:!_0x2c61f3['value'];_0x39a4ea['change'](()=>{const _0x19c6b9=Array['from'](_0x2b591b['getRanges']());for(const _0x415b69 of _0x19c6b9){const _0x4a5d10=_0xbd8930?[_0x415b69]:io(_0x289a62,_0x415b69,_0x39a4ea);for(const _0x19c697 of _0x4a5d10)_0x48510b['markInlineFormat'](_0x19c697,{'commandName':_0x289a62,'commandParams':[{'forceValue':_0xbd8930}]});}});}),_0x48510b['descriptionFactory']['registerDescriptionCallback'](_0x41301c=>{if('formatBlock'!=_0x41301c['type']&&'formatInline'!=_0x41301c['type'])return;const {data:_0xef3e5d}=_0x41301c;return _0xef3e5d&&_0xef3e5d['commandName']==_0x289a62?_0xef3e5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x103890,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x103890,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x33fd4f{['afterInit'](){const _0x43e18f=this['editor'];if(!_0x43e18f['plugins']['has']('Style')||!_0x43e18f['plugins']['has']('DataSchema'))return;const _0x21d4ad=_0x43e18f['plugins']['get']('TrackChangesEditing'),_0x152379=_0x43e18f['locale'],_0xe3b9c2=_0x43e18f['config']['get']('style')||{},_0x52def6=_0x43e18f['plugins']['get']('GeneralHtmlSupport'),_0x45ec1f=_0x43e18f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x43e18f['plugins']['get']('DataSchema'),_0xe3b9c2['definitions']);_0x21d4ad['enableDefaultAttributesIntegration']('style');const _0x103483=new Set();for(const _0x4c518b of _0x45ec1f['block']){const _0x1c022e=_0x52def6['getGhsAttributeNameForElement'](_0x4c518b['element']);_0x103483['add'](_0x1c022e);}const _0x41b760=new Set();for(const _0x36ccdb of _0x45ec1f['inline']){const _0xe69ce4=_0x52def6['getGhsAttributeNameForElement'](_0x36ccdb['element']);_0x41b760['add'](_0xe69ce4);for(const _0xf2c1b2 of _0x36ccdb['ghsAttributes'])_0x41b760['add'](_0xf2c1b2);}for(const _0x2e9f9c of _0x103483)_0x21d4ad['registerBlockAttribute'](_0x2e9f9c),_0x21d4ad['descriptionFactory']['registerAttributeLabel'](_0x2e9f9c,o(_0x152379,'FORMAT_STYLE'));for(const _0x1297c0 of _0x41b760)_0x21d4ad['registerInlineAttribute'](_0x1297c0),_0x21d4ad['descriptionFactory']['registerAttributeLabel'](_0x1297c0,o(_0x152379,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbc55a0=this['editor'],_0x8353d4=_0xbc55a0['locale'];_0xbc55a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47cddd=>{if('formatBlock'!=_0x47cddd['type']&&'formatInline'!=_0x47cddd['type'])return;const {data:_0x4344e6}=_0x47cddd;return _0x4344e6&&'style'===_0x4344e6['commandName']?_0x4344e6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8353d4,'*Set\x20format:*\x20%0',_0x4344e6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x8353d4,'*Remove\x20format:*\x20%0',_0x4344e6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x33fd4f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xdd5c3e){super(_0xdd5c3e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x21862d=this['editor'],_0x513105=_0x21862d['model']['document']['selection'];if(!_0x21862d['plugins']['has']('TableEditing'))return;const _0x20a08a=_0x21862d['locale'],_0x37562f=_0x21862d['plugins']['get']('TrackChangesEditing'),_0x539257=_0x21862d['plugins']['get']('TableUtils');_0x37562f['descriptionFactory']['registerElementLabel']('table',_0x51b7d6=>o(_0x20a08a,'ELEMENT_TABLE',_0x51b7d6)),this['_setupColumnsRowsFixing'](),_0x37562f['enableCommand']('insertTable'),_0x37562f['enableCommand']('selectTableRow'),_0x37562f['enableCommand']('selectTableColumn');for(const _0x13db63 of['insertTableRowAbove','insertTableRowBelow']){const _0x2b8bdc=_0x21862d['commands']['get'](_0x13db63);_0x37562f['enableCommand'](_0x13db63,_0x4aea08=>{_0x21862d['model']['change'](_0x3a0197=>{_0x4aea08();const _0x1b3976='above'===_0x2b8bdc['order'],_0x522c0f=_0x539257['getSelectionAffectedTableCells'](_0x513105),_0x57e0ff=_0x539257['getRowIndexes'](_0x522c0f),_0x34e673=_0x1b3976?_0x57e0ff['first']-0x1:_0x57e0ff['last']+0x1,_0x37191f=_0x522c0f[0x0]['findAncestor']('table'),_0xdbe950=_0x539257['createTableWalker'](_0x37191f,{'startRow':_0x34e673,'endRow':_0x34e673}),_0x30a443=Array['from'](_0xdbe950)['map'](_0x1d32c0=>_0x3a0197['createRangeOn'](_0x1d32c0['cell']));_0x37562f['markMultiRangeInsertion'](_0x30a443,'tableRow');});});}for(const _0x55cbba of['insertTableColumnLeft','insertTableColumnRight']){const _0x36fd3c=_0x21862d['commands']['get'](_0x55cbba);_0x37562f['enableCommand'](_0x55cbba,_0x23f4b9=>{_0x21862d['model']['change'](_0x5dfdbf=>{_0x23f4b9();const _0x341576='left'===_0x36fd3c['order'],_0x28efd0=_0x539257['getSelectionAffectedTableCells'](_0x513105),_0x3dda4f=_0x539257['getColumnIndexes'](_0x28efd0),_0x213c5a=_0x341576?_0x3dda4f['first']-0x1:_0x3dda4f['last']+0x1,_0x1fc2b8=_0x28efd0[0x0]['findAncestor']('table'),_0x59c3da=_0x539257['createTableWalker'](_0x1fc2b8,{'startRow':0x0,'column':_0x213c5a,'includeAllSlots':!0x1}),_0xf08280=Array['from'](_0x59c3da)['map'](_0x10bc75=>_0x5dfdbf['createRangeOn'](_0x10bc75['cell']));_0x37562f['markMultiRangeInsertion'](_0xf08280,'tableColumn');});});}for(const _0x3f3520 of['removeTableRow','removeTableColumn']){const _0x3d11f5=_0x3f3520['substr'](0xb),_0xb8d1=_0x3d11f5['toLowerCase'](),_0x49fd05=_0xb8d1['substr'](0x0,0x3)+'span',_0x3a9807='table'+_0x3d11f5,_0x30c558='min'+_0x3d11f5,_0x4fafb1='max'+_0x3d11f5;_0x37562f['enableCommand'](_0x3f3520,()=>{_0x21862d['model']['change'](_0x1e802c=>{const _0x46f325=_0x539257['getSelectionAffectedTableCells'](_0x513105),_0x3531cb=_0x46f325[0x0]['findAncestor']('table');let _0x193e9c;if('removeTableRow'==_0x3f3520){const _0x9c855=_0x539257['getRowIndexes'](_0x46f325);_0x193e9c={'startRow':_0x9c855['first'],'endRow':_0x9c855['last'],'includeAllSlots':!0x0};}else{const _0xdfa475=_0x539257['getColumnIndexes'](_0x46f325);_0x193e9c={'startColumn':_0xdfa475['first'],'endColumn':_0xdfa475['last'],'includeAllSlots':!0x0};}const _0x3821f5=_0x539257['createTableWalker'](_0x3531cb,_0x193e9c),_0xcd6482=Array['from'](_0x3821f5)['map'](({cell:_0x25b744})=>_0x25b744),_0x54ddf6=Ne(_0xcd6482['filter'](_0x40c846=>_0x40c846['hasAttribute'](_0x49fd05))),_0x45510c=Ne(_0xcd6482['filter'](_0x34cc05=>!_0x34cc05['hasAttribute'](_0x49fd05)))['map'](_0x17c4b3=>_0x1e802c['createRangeOn'](_0x17c4b3)),_0x53eccb=_0x37562f['markMultiRangeDeletion'](_0x45510c,_0x3a9807);if(_0x53eccb&&('tableRow'==_0x53eccb['subType']||'tableColumn'==_0x53eccb['subType'])){const _0x20172c=this['_getSuggestionCoords'](_0x53eccb);for(const _0x2b680e of _0x54ddf6){const _0x3fd601=_0x1e802c['createRangeOn'](_0x2b680e),_0x30016c=_0x539257['getCellLocation'](_0x2b680e),_0xdafbf9=_0x2b680e['getAttribute'](_0x49fd05)-0x1,_0x229909=_0x20172c[_0x30c558],_0x2f3dee=_0x20172c[_0x4fafb1];_0x229909<=_0x30016c[_0xb8d1]&&_0x30016c[_0xb8d1]+_0xdafbf9<=_0x2f3dee&&_0x53eccb['addRange'](_0x3fd601);}}});});}function _0xa49554(_0x413335){const _0xfe682f=Array['from'](_0x513105['getRanges']())['map'](_0x57df54=>_0x10a588['fromRange'](_0x57df54));_0x21862d['model']['change'](_0x14055c=>{const _0x2df60e=_0x14055c['batch'];_0x413335=_0x413335['filter'](_0x524b53=>'$graveyard'!=_0x524b53['root']['rootName']),_0x14055c['setSelection'](_0x413335),_0x21862d['commands']['get']('removeTableRow')['refresh'](),_0x21862d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x21862d['model']['enqueueChange'](()=>{_0x21862d['model']['enqueueChange'](_0x2df60e,_0x16f3f=>{const _0x404e10=_0xfe682f['filter'](_0x3e036f=>'$graveyard'!=_0x3e036f['root']['rootName']);_0x404e10['length']>0x0&&_0x16f3f['setSelection'](_0x404e10);for(const _0x5db5a6 of _0xfe682f)_0x5db5a6['detach']();});});});}function _0x3ed295(_0x362b53){_0x21862d['model']['change'](_0x45aab4=>{const _0x1882b9=Array['from'](_0x513105['getRanges']())['map'](_0x18237e=>_0x10a588['fromRange'](_0x18237e)),_0x39d4e1=[];for(const _0x61bbc9 of _0x362b53)for(const _0x22ab78 of _0x61bbc9['getItems']({'shallow':!0x0}))_0x39d4e1['push'](_0x22ab78);for(const _0x66c54 of _0x39d4e1)'$graveyard'!=_0x66c54['root']['rootName']&&(_0x45aab4['setSelection'](_0x45aab4['createPositionAt'](_0x66c54,0x0)),_0x21862d['commands']['get']('removeTableColumn')['refresh'](),_0x21862d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ab335=_0x1882b9['filter'](_0x430eaf=>'$graveyard'!=_0x430eaf['root']['rootName']);_0x2ab335['length']>0x0&&_0x45aab4['setSelection'](_0x2ab335);for(const _0x38760e of _0x1882b9)_0x38760e['detach']();});}function _0x1803f9(_0xf9f699,_0x160618){return _0x160618['every'](_0x3880ba=>_0xf9f699['some'](_0x1c960e=>_0x1c960e['end']['isEqual'](_0x3880ba['start'])||_0x3880ba['end']['isEqual'](_0x1c960e['start'])));}function _0x3627ae(_0x48b1db,_0x50a29c){return!_0x48b1db['some'](_0x5d4f75=>_0x50a29c['some'](_0x4a8074=>_0x5d4f75['isIntersecting'](_0x4a8074)))&&_0x48b1db['some'](_0x18d27b=>_0x50a29c['some'](_0x927bc6=>_0x18d27b['end']['isTouching'](_0x927bc6['start'])));}_0x21862d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2860b7,_0x1e205f,_0x2233ab)=>{if(!_0x2233ab['options']['showSuggestionHighlights'])return;const _0x344d1b=_0x1e205f['item'];if(!_0x344d1b)return;const _0x1a2b82=_0x2233ab['mapper']['toViewElement'](_0x344d1b);function _0x12edbe(_0x5d289b){return Array['isArray'](_0x5d289b)?_0x5d289b:[_0x5d289b];}_0x1a2b82&&'tableCell'===_0x344d1b['name']&&_0x3d3d65(_0x1a2b82,_0x2233ab['writer'],(_0x483b9d,_0x38f4d2,_0x97cc11)=>_0x97cc11['addClass'](_0x12edbe(_0x38f4d2['classes']),_0x483b9d),(_0x2a832a,_0x2c5cbf,_0x2c18f9)=>_0x2c18f9['removeClass'](_0x12edbe(_0x2c5cbf['classes']),_0x2a832a));},{'priority':'highest'}),_0x37562f['descriptionFactory']['registerDescriptionCallback'](_0x1e2449=>{if('insertion'!=_0x1e2449['type']&&'deletion'!=_0x1e2449['type'])return;const _0x1f4602=_0x1e2449['getContainedElement']();if(null!=_0x1f4602&&_0x1f4602['is']('element','table')){if('insertion'==_0x1e2449['type']){const _0x19d4f1=_0x1e2449['getItems']()['filter'](_0x27786a=>_0x27786a['is']('$textProxy'))['map'](_0x2b3383=>_0x2b3383['data']);if(_0x19d4f1['length'])return{'type':'insertion','content':o(_0x20a08a,'*Insert:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19d4f1['join']('\x20')+'\x22'))};}if('deletion'==_0x1e2449['type']){const _0x3bae9a=_0x1e2449['getItems']()['filter'](_0xefcc27=>_0xefcc27['is']('$textProxy'))['map'](_0x4b5423=>_0x4b5423['data']);if(_0x3bae9a['length'])return{'type':'deletion','content':o(_0x20a08a,'*Remove:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3bae9a['join']('\x20')+'\x22'))};}}}),_0x37562f['descriptionFactory']['registerDescriptionCallback'](_0x43ebdc=>{if('tableRow'==_0x43ebdc['subType']){const _0x2b816d=_0x43ebdc['getItems']()['filter'](_0x128ab9=>_0x128ab9['is']('$textProxy'))['map'](_0x4c1131=>_0x4c1131['data']),_0x19e47b=this['_getSuggestionCoords'](_0x43ebdc),_0x3a23aa=_0x19e47b['maxRow']-_0x19e47b['minRow']+0x1;if('insertion'==_0x43ebdc['type'])return _0x2b816d['length']?{'type':'insertion','content':o(_0x20a08a,'*Insert:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a23aa,'\x22'+_0x2b816d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x20a08a,'*Insert:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_ROW',_0x3a23aa))};if('deletion'==_0x43ebdc['type'])return _0x2b816d['length']?{'type':'deletion','content':o(_0x20a08a,'*Remove:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a23aa,'\x22'+_0x2b816d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x20a08a,'*Remove:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_ROW',_0x3a23aa))};}if('tableColumn'==_0x43ebdc['subType']){const _0x5523b4=_0x43ebdc['getItems']()['filter'](_0x10ec53=>_0x10ec53['is']('$textProxy'))['map'](_0xcbaf7e=>_0xcbaf7e['data']),_0x573866=this['_getSuggestionCoords'](_0x43ebdc),_0x4a9aa2=_0x573866['maxColumn']-_0x573866['minColumn']+0x1;if('insertion'==_0x43ebdc['type'])return _0x5523b4['length']?{'type':'insertion','content':o(_0x20a08a,'*Insert:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a9aa2,'\x22'+_0x5523b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x20a08a,'*Insert:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_COLUMN',_0x4a9aa2))};if('deletion'==_0x43ebdc['type'])return _0x5523b4['length']?{'type':'deletion','content':o(_0x20a08a,'*Remove:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a9aa2,'\x22'+_0x5523b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x20a08a,'*Remove:*\x20%0',o(_0x20a08a,'ELEMENT_TABLE_COLUMN',_0x4a9aa2))};}}),_0x37562f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xa49554),_0x37562f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xa49554),_0x37562f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3ed295),_0x37562f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3ed295),_0x37562f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1803f9),_0x37562f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1803f9),_0x37562f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3627ae),_0x37562f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3627ae);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24eec8=this['editor'],_0x23b277=_0x24eec8['model']['document']['selection'];return(_0x3b696a,_0x34c2db)=>{_0x24eec8['model']['change'](_0x366ae7=>{const {commandName:_0x50c761,commandParams:_0x4a7ceb}=_0x34c2db;let _0x49bd2a=_0x3b696a[0x0]['end']['nodeBefore'];_0x4a7ceb&&_0x4a7ceb[0x0]&&!0x1===_0x4a7ceb[0x0]['forceValue']&&(_0x49bd2a=_0x3b696a[0x0]['start']['nodeAfter']);const _0x484147=_0x366ae7['createRangeIn'](_0x49bd2a);if('$graveyard'==_0x484147['root']['rootName'])return;const _0x477256=Array['from'](_0x23b277['getRanges']())['map'](_0x1ea5fa=>_0x10a588['fromRange'](_0x1ea5fa));_0x366ae7['setSelection'](_0x484147),_0x24eec8['commands']['get'](_0x50c761)['refresh'](),_0x4a7ceb['push']({'forceDefaultExecution':!0x0}),_0x24eec8['execute'](_0x50c761,..._0x4a7ceb);const _0x5cedb2=_0x477256['filter'](_0x5ea0c9=>'$graveyard'!=_0x5ea0c9['root']['rootName']);_0x5cedb2['length']>0x0&&_0x366ae7['setSelection'](_0x5cedb2);for(const _0x2feae5 of _0x477256)_0x2feae5['detach']();});};}['_getCoordsForCells'](_0x142456){const _0x32c4f9=this['editor']['plugins']['get']('TableUtils');let _0x1520f6=Number['MAX_SAFE_INTEGER'],_0x449506=Number['MIN_SAFE_INTEGER'],_0x595c97=Number['MAX_SAFE_INTEGER'],_0x593842=Number['MIN_SAFE_INTEGER'];for(const _0x50c93b of _0x142456){if('$graveyard'==_0x50c93b['root']['rootName'])continue;const {row:_0x4ee083,column:_0x4b6e77}=_0x32c4f9['getCellLocation'](_0x50c93b),_0x59ec83=_0x50c93b['hasAttribute']('rowspan')?_0x50c93b['getAttribute']('rowspan')-0x1:0x0,_0xb3b90a=_0x50c93b['hasAttribute']('colspan')?_0x50c93b['getAttribute']('colspan')-0x1:0x0;_0x1520f6=_0x4ee083<_0x1520f6?_0x4ee083:_0x1520f6,_0x449506=_0x4ee083+_0x59ec83>_0x449506?_0x4ee083+_0x59ec83:_0x449506,_0x595c97=_0x4b6e77<_0x595c97?_0x4b6e77:_0x595c97,_0x593842=_0x4b6e77+_0xb3b90a>_0x593842?_0x4b6e77+_0xb3b90a:_0x593842;}return{'minRow':_0x1520f6,'maxRow':_0x449506,'minColumn':_0x595c97,'maxColumn':_0x593842};}['_setupColumnsRowsFixing'](){const _0x30684c=this['editor'],_0x37d285=_0x30684c['plugins']['get']('TrackChangesEditing'),_0x5810c5=_0x30684c['plugins']['get']('TableUtils');_0x30684c['model']['document']['on']('change:data',()=>{const _0x3c5907=Array['from'](_0x30684c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5abad5,data:_0x2f2c0e}of _0x3c5907){const {group:_0x57aff6,id:_0x352c2d,subType:_0x19afb8}=_0x37d285['_splitMarkerName'](_0x5abad5);if('suggestion'!=_0x57aff6)continue;if(null!=_0x2f2c0e['oldRange'])continue;const _0x416f33=_0x37d285['getSuggestion'](_0x352c2d);this['_tablePostFixingSubtypes']['includes'](_0x19afb8)&&this['_tableSuggestions']['add'](_0x416f33);}},{'priority':'low'});const _0x513d12=(_0x9b418b,_0x42662b)=>{let _0x108bee=!0x1;const _0x2687ad=_0x42662b['createRangeOn'](_0x9b418b),_0x195719=_0x9b418b['findAncestor']('table'),_0x19b1f4=_0x5810c5['getCellLocation'](_0x9b418b);for(const _0x40e1f2 of this['_tableSuggestions']){const _0x36f585=_0x40e1f2['subType'],_0x13300c=_0x36f585['startsWith']('tablePaste'),_0x2796d5=_0x36f585['substr'](_0x13300c?0xa:0x5),_0x357e11=_0x2796d5['toLowerCase'](),_0x5473ad=_0x357e11['substr'](0x0,0x3)+'span',_0x25b039='min'+_0x2796d5,_0x3c5c4a='max'+_0x2796d5;if(!_0x40e1f2['isInContent'])continue;if(_0x195719!=_0x40e1f2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x40e1f2['isIntersectingWithRange'](_0x2687ad))continue;const _0x290f3e=_0x9b418b['hasAttribute'](_0x5473ad)?_0x9b418b['getAttribute'](_0x5473ad)-0x1:0x0,_0xaff1b1=this['_getSuggestionCoords'](_0x40e1f2),_0x40e953=_0xaff1b1[_0x25b039],_0x2f8016=_0xaff1b1[_0x3c5c4a];_0x40e953<=_0x19b1f4[_0x357e11]&&_0x19b1f4[_0x357e11]+_0x290f3e<=_0x2f8016&&(_0x40e1f2['addRange'](_0x2687ad),_0x108bee=!0x0);}return _0x108bee;};_0x30684c['model']['document']['registerPostFixer'](_0x529ecb=>{let _0x5ec1f9=!0x1;for(const _0x45d485 of _0x30684c['model']['document']['differ']['getChanges']())if('insert'==_0x45d485['type']){if('tableRow'==_0x45d485['name']){for(const _0x4e45d1 of _0x45d485['position']['nodeAfter']['getChildren']())_0x5ec1f9=_0x5ec1f9||_0x513d12(_0x4e45d1,_0x529ecb);}else'tableCell'==_0x45d485['name']&&(_0x5ec1f9=_0x5ec1f9||_0x513d12(_0x45d485['position']['nodeAfter'],_0x529ecb));}return _0x5ec1f9;});}['_getSuggestionCoords'](_0x6dc37d){return this['_getCoordsForCells'](_0x6dc37d['getRanges']()['map'](_0x25f741=>_0x25f741['start']['nodeAfter']));}}function Ne(_0x155e01){return Array['from'](new Set(_0x155e01)['values']());}class Nt extends _0x33fd4f{static get['requires'](){return[Ct];}['afterInit'](){const _0x18438a=this['editor'],_0x1af93e=_0x18438a['model']['document']['selection'],_0x265655=_0x18438a['locale'];if(!_0x18438a['plugins']['has']('TableEditing'))return;const _0x4dd9a2=_0x18438a['plugins']['get']('TrackChangesEditing'),_0x348055=_0x18438a['plugins']['get']('TableUtils'),_0x246465=_0x18438a['plugins']['get'](Ct);_0x246465['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4dd9a2['enableCommand']('mergeTableCells',()=>{const _0xa7bfc7=_0x348055['getSelectionAffectedTableCells'](_0x18438a['model']['document']['selection']);_0x18438a['model']['change'](()=>{_0x4dd9a2['markMultiRangeBlockFormat'](_0xa7bfc7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x18438a['commands']['get']('mergeTableCells')['on']('execute',(_0x20e43f,_0x429499)=>{_0x18438a['commands']['get']('trackChanges')['value']&&(_0x429499['length']>0x0&&_0x429499[_0x429499['length']-0x1]&&_0x429499[_0x429499['length']-0x1]['forceDefaultExecution']||_0x4dd9a2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x20e43f['stop']());},{'priority':'highest'});for(const _0x2d7787 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1964e5=_0x18438a['commands']['get'](_0x2d7787);_0x4dd9a2['enableCommand'](_0x2d7787,()=>{const _0x330ba7=_0x18438a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35e72c=>_0x35e72c['is']('element','tableCell')),_0x2890a8=_0x1964e5['value'];_0x18438a['model']['change'](()=>{_0x4dd9a2['markMultiRangeBlockFormat']([_0x330ba7,_0x2890a8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29f878 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x405f45=_0x18438a['commands']['get'](_0x29f878);_0x4dd9a2['enableCommand'](_0x29f878,()=>{const _0x26e8ee=_0x348055['getSelectionAffectedTableCells'](_0x18438a['model']['document']['selection'])[0x0],_0x28dfd4=_0x26e8ee['findAncestor']('table'),{column:_0x4d8577,row:_0x8cf27c}=_0x348055['getCellLocation'](_0x26e8ee);let _0x3c49d9=[];if('horizontally'==_0x405f45['direction']){const _0x496723=_0x348055['createTableWalker'](_0x28dfd4,{'startRow':_0x8cf27c,'endRow':_0x8cf27c,'includeAllSlots':!0x0});_0x3c49d9=Array['from'](_0x496723)['map'](_0x210c5c=>_0x210c5c['cell']);}else{const _0x419a27=_0x348055['createTableWalker'](_0x28dfd4,{'column':_0x4d8577,'includeAllSlots':!0x0});_0x3c49d9=Array['from'](_0x419a27)['map'](_0x268b39=>_0x268b39['cell']);}_0x18438a['model']['change'](_0x41376c=>{_0x4dd9a2['markBlockFormat'](_0x41376c['createRangeOn'](_0x26e8ee),{'commandName':_0x29f878,'commandParams':[]},_0x3c49d9,_0x29f878);});});}_0x4dd9a2['descriptionFactory']['registerDescriptionCallback'](_0x5adcbb=>{if('formatBlock'!=_0x5adcbb['type']&&'formatInline'!=_0x5adcbb['type'])return;const {data:_0x3a988c}=_0x5adcbb;return _0x3a988c&&'mergeTableCells'==_0x3a988c['commandName']?{'type':'format','content':o(_0x265655,'*Merge\x20cells*')}:void 0x0;}),_0x4dd9a2['descriptionFactory']['registerDescriptionCallback'](_0x175d7a=>{if('formatBlock'!=_0x175d7a['type']&&'formatInline'!=_0x175d7a['type'])return;const {data:_0x1c2ad9}=_0x175d7a;return _0x1c2ad9?'splitTableCellVertically'==_0x1c2ad9['commandName']?{'type':'format','content':o(_0x265655,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1c2ad9['commandName']?{'type':'format','content':o(_0x265655,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3d53a1=_0x246465['_acceptFormatSuggestionCallbackFactory']();for(const _0x17265d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4dd9a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17265d,'accept',_0x3d53a1);for(const _0x275cfe of['splitTableCellVertically','splitTableCellHorizontally'])_0x4dd9a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x275cfe,'accept',_0x3d53a1);_0x4dd9a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x525491=>{_0x18438a['model']['change'](_0xece2ad=>{const _0x1aba0b=Array['from'](_0x1af93e['getRanges']())['map'](_0x3e4e7b=>_0x10a588['fromRange'](_0x3e4e7b));_0xece2ad['setSelection'](_0x525491),_0x18438a['commands']['get']('mergeTableCells')['refresh'](),_0x18438a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x7cafac=_0x1aba0b['filter'](_0x24b6a2=>'$graveyard'!=_0x24b6a2['root']['rootName']);_0x7cafac['length']>0x0&&_0xece2ad['setSelection'](_0x7cafac);for(const _0x4ae082 of _0x1aba0b)_0x4ae082['detach']();});});for(const _0x863f5d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x514d3e=_0x18438a['commands']['get'](_0x863f5d);_0x514d3e['on']('set:isEnabled',(_0x46545a,_0xbff859,_0x33a964)=>{if(_0x33a964){const _0xee6916=_0x18438a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x332c95=>_0x332c95['is']('element','tableCell'));this['_areMergableCells'](_0x514d3e['value'],_0xee6916)||(_0x46545a['return']=!0x1,_0x46545a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x28d0a4=this['editor']['commands']['get']('mergeTableCells'),_0x5ef761=this['editor']['plugins']['get']('TableUtils');if(!_0x28d0a4['isEnabled'])return!0x1;const _0x5d0d0c=_0x5ef761['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x39e552 of _0x5d0d0c)for(const _0x3ea18a of _0x5d0d0c)if(_0x39e552!=_0x3ea18a&&!this['_areMergableCells'](_0x39e552,_0x3ea18a))return!0x1;return!0x0;}['_areMergableCells'](_0x3ccb47,_0x2798b0){const _0x21fbe9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b64e5=this['editor']['model']['createRangeOn'](_0x3ccb47),_0x37e227=this['editor']['model']['createRangeOn'](_0x2798b0),_0x345c23=new Set(),_0x36f0e9=new Set();for(const _0x528049 of _0x21fbe9['getSuggestions']())if(('insertion'==_0x528049['type']||'deletion'==_0x528049['type']||'mergeTableCells'==_0x528049['subType'])&&_0x528049['isInContent']){for(const _0x124321 of _0x528049['getRanges']())_0x124321['containsRange'](_0x4b64e5,!0x0)&&_0x345c23['add'](_0x528049['type']+':'+_0x528049['author']['id']),_0x124321['containsRange'](_0x37e227,!0x0)&&_0x36f0e9['add'](_0x528049['type']+':'+_0x528049['author']['id']);}if(_0x345c23['size']!=_0x36f0e9['size'])return!0x1;for(const _0x3ea813 of _0x345c23)if(!_0x36f0e9['has'](_0x3ea813))return!0x1;return!0x0;}}class Dt extends _0x33fd4f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3aab52=this['editor'];if(!_0x3aab52['plugins']['has']('TableEditing'))return;const _0x5b7614=_0x3aab52['locale'],_0x30bbbd=_0x3aab52['plugins']['get']('TrackChangesEditing');_0x30bbbd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x30bbbd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x30bbbd['registerBlockAttribute']('headingRows'),_0x30bbbd['registerBlockAttribute']('headingColumns'),_0x30bbbd['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5b7614,'FORMAT_HEADER_ROW')),_0x30bbbd['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5b7614,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x281e0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53eb2e=this['editor']['plugins']['get']('TableUtils'),_0x4852b9=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x189ff9({showActiveMarker:_0x3f7955=!0x0,setDataAttribute:_0x146a2e=!0x0}={}){return(_0x30d254,_0x1a3983,_0x5b21eb)=>{const {type:_0x371f4c,id:_0x4bc799}=_0x281e0e['_splitMarkerName'](_0x1a3983['markerName']),_0x66bf6f=_0x281e0e['getSuggestion'](_0x4bc799),_0x50541a=_0x66bf6f['data'];if('formatBlock'!=_0x66bf6f['type']||!_0x50541a||'setTableColumnHeader'!=_0x50541a['commandName'])return;if(_0x1a3983['item'])return void _0x30d254['stop']();if(!_0x5b21eb['consumable']['consume'](_0x1a3983['markerRange'],_0x30d254['name']))return;const _0x4b5586=_0x1a3983['markerRange']['start']['nodeAfter'],_0x193cf3=_0x1a3983['markerRange']['end']['nodeBefore'],_0x50ac3a=_0x4b5586['parent']['parent'],{column:_0x428322}=_0x53eb2e['getCellLocation'](_0x4b5586),{column:_0x64d3f6}=_0x53eb2e['getCellLocation'](_0x193cf3);for(let _0x4720e6=_0x428322;_0x4720e6<=_0x64d3f6;_0x4720e6++){const _0x49e379=_0x53eb2e['createTableWalker'](_0x50ac3a,{'column':_0x4720e6,'includeAllSlots':!0x1});for(const _0x11ea0a of _0x49e379){const _0x2432cb=_0x11ea0a['cell'],_0x567b12=_0x5b21eb['mapper']['toViewElement'](_0x2432cb);_0x5b21eb['writer']['addClass']('ck-suggestion-marker-'+_0x371f4c,_0x567b12),_0x146a2e&&_0x5b21eb['writer']['setAttribute']('data-suggestion',_0x4bc799,_0x567b12),_0x5b21eb['mapper']['bindElementToMarker'](_0x567b12,_0x1a3983['markerName']),_0x3f7955&&(_0x281e0e['activeMarkers']['includes'](_0x1a3983['markerName'])?_0x5b21eb['writer']['addClass']('ck-suggestion-marker--active',_0x567b12):_0x5b21eb['writer']['removeClass']('ck-suggestion-marker--active',_0x567b12));}}};}_0x281e0e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4852b9),_0x281e0e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4852b9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x189ff9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x133f24,_0xbde6d2,_0x38a5b6)=>{_0x38a5b6['options']['showSuggestionHighlights']&&_0x189ff9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x133f24,_0xbde6d2,_0x38a5b6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3af51b,_0x543f16,_0x10bd2a)=>{const {type:_0x501e5c,id:_0x339ce0}=_0x281e0e['_splitMarkerName'](_0x543f16['markerName']),_0x596fa7=_0x281e0e['getSuggestion'](_0x339ce0),_0x4f87f6=_0x596fa7['data'];if('formatBlock'!=_0x596fa7['type']||!_0x4f87f6||'setTableColumnHeader'!=_0x4f87f6['commandName'])return;const _0x9677d3=_0x10bd2a['mapper']['markerNameToElements'](_0x543f16['markerName']);if(_0x9677d3){for(const _0x2c8236 of _0x9677d3)_0x10bd2a['writer']['removeClass']('ck-suggestion-marker-'+_0x501e5c,_0x2c8236),_0x10bd2a['writer']['removeClass']('ck-suggestion-marker--active',_0x2c8236),_0x10bd2a['writer']['removeAttribute']('data-suggestion',_0x2c8236),_0x10bd2a['mapper']['unbindElementFromMarkerName'](_0x2c8236,_0x543f16['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e0585=this['editor'],_0x5ec89d=_0x4e0585['locale'];function _0x180531(_0x4e0718){return{'type':'format','content':o(_0x5ec89d,'*Format:*\x20%0',_0x4e0718)};}_0x4e0585['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16b868=>{if('formatBlock'!=_0x16b868['type'])return;const {data:_0xa54c12}=_0x16b868;if(_0xa54c12){if('setTableRowHeader'==_0xa54c12['commandName']){const _0x6c9499=_0xa54c12['commandParams'][0x0]['forceValue'];return _0x180531(o(_0x5ec89d,_0x6c9499?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa54c12['commandName']){const _0x360eac=_0xa54c12['commandParams'][0x0]['forceValue'];return _0x180531(o(_0x5ec89d,_0x360eac?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3be651=>[_0x3be651,null]));class Mt extends _0x33fd4f{static get['requires'](){return[Ct];}['afterInit'](){const _0x72f432=this['editor'];if(!_0x72f432['plugins']['has']('TableClipboard'))return;const _0x3b43a1=_0x72f432['plugins']['get']('TrackChangesEditing'),_0x4746f3=_0x72f432['plugins']['get']('TableUtils'),_0x48fdbb=_0x72f432['plugins']['get'](Ct),_0x51ae90=_0x72f432['plugins']['get']('TableClipboard');_0x48fdbb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x72f432['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x72f432['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2fcd1c=null;_0x72f432['model']['on']('insertContent',(_0x24888a,_0x25bcaf)=>{const [_0x1c5c84,_0x5b4d4a]=_0x25bcaf,_0x3d73a0=_0x25bcaf[_0x25bcaf['length']-0x1];_0x3d73a0&&_0x3d73a0['forceDefaultExecution']||_0x3b43a1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x92755b,_0x3cd505,_0x430bcd,_0x1da422,_0x3f2da5){if(_0x3cd505&&!_0x3cd505['is']('documentSelection'))return!0x1;const _0x564d25=_0x3f2da5['getTableIfOnlyTableInContent'](_0x92755b,_0x430bcd);if(!_0x564d25||!Ue(_0x564d25,void 0x0,_0x1da422))return!0x1;const _0xec589f=_0x1da422['getSelectionAffectedTableCells'](_0x430bcd['document']['selection']);if(!_0xec589f['length'])return!0x1;const _0x1d9d53=_0xec589f[0x0]['findAncestor']('table'),_0x2b710b=_0x1da422['getRowIndexes'](_0xec589f),_0x53ab6b=_0x1da422['getColumnIndexes'](_0xec589f),_0x3fc9b0={'startRow':_0x2b710b['first'],'endRow':_0x2b710b['last'],'startColumn':_0x53ab6b['first'],'endColumn':_0x53ab6b['last']};return 0x1==_0xec589f['length']&&(_0x3fc9b0['endRow']+=_0x1da422['getRows'](_0x564d25)-0x1,_0x3fc9b0['endColumn']+=_0x1da422['getColumns'](_0x564d25)-0x1),Ue(_0x1d9d53,_0x3fc9b0,_0x1da422);}(_0x1c5c84,_0x5b4d4a,_0x72f432['model'],_0x4746f3,_0x51ae90)&&(_0x24888a['stop'](),_0x2fcd1c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x72f432['model']['change'](()=>{_0x72f432['model']['insertContent'](_0x25bcaf[0x0],_0x25bcaf[0x1],_0x25bcaf[0x2],{'forceDefaultExecution':!0x0});const _0x439148=_0x543df7(),{rowInsertionRanges:_0x3fc6db,columnInsertionRanges:_0x4ba33b,insertionRanges:_0x352f3f,deletionRanges:_0x16f641,cells:_0x4c95e8}=_0x2fcd1c;_0x3fc6db['length']&&_0x3b43a1['markMultiRangeInsertion'](_0x3fc6db,'tablePasteRow',{'tablePasteChainId':_0x439148}),_0x4ba33b['length']&&_0x3b43a1['markMultiRangeInsertion'](_0x4ba33b,'tablePasteColumn',{'tablePasteChainId':_0x439148}),_0x352f3f['length']&&(_0x3b43a1['markMultiRangeInsertion'](_0x352f3f,'tablePaste',{'tablePasteChainId':_0x439148,'skipNestingCheck':!0x0}),_0x352f3f['forEach'](_0x34f5ea=>_0x34f5ea['detach']?.())),_0x16f641['length']&&(_0x3b43a1['markMultiRangeDeletion'](_0x16f641,'tablePaste',{'tablePasteChainId':_0x439148,'skipNestingCheck':!0x0}),_0x16f641['forEach'](_0x52ae57=>_0x52ae57['detach']?.()));const _0x4a5d66=_0x3b43a1['markMultiRangeBlockFormat'](_0x4c95e8['map'](({element:_0x47d7e4})=>_0x47d7e4),{'formatGroupId':_0x543df7()},[],'tablePasteCell',{'tablePasteChainId':_0x439148});if(_0x4a5d66){const _0x58c10a=_0x4a5d66['getMarkers'](),_0x195b21=[];for(const {element:_0x1bbda2,attributes:_0x5399cf}of _0x4c95e8){if(!_0x5399cf)continue;const _0x1746a6=_0x72f432['model']['createRangeOn'](_0x1bbda2),_0x110fa5=_0x58c10a['find'](_0xf9846c=>_0xf9846c['getRange']()['isEqual'](_0x1746a6));_0x110fa5&&_0x195b21['push']([_0x110fa5['name'],_0x5399cf]);}_0x195b21['length']&&_0x4a5d66['setAttribute']('markerAttributes',Object['fromEntries'](_0x195b21));}_0x2fcd1c=null;}));},{'priority':_0x2ddc52['high']+0xa}),_0x72f432['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5037e7,_0x5e1642)=>{const [_0x5859c0,_0x4b3dfd,,_0x10b5c3]=_0x5e1642;if(!_0x2fcd1c)return;_0x5037e7['stop']();const _0x27bb12=_0x5859c0['cell'],_0x127cfa=_0x4b3dfd,_0xb28f21=Oe(_0x27bb12),_0x6f03cd=Oe(_0x127cfa);_0x5037e7['return']=_0x27bb12;let _0x4b5f70=null,_0x4c32d9=null;if(_0x6f03cd||_0xb28f21){if(_0xb28f21&&!_0x6f03cd){_0x10b5c3['remove'](_0x27bb12['getChild'](0x0));for(const _0x3d574b of Array['from'](_0x127cfa['getChildren']()))_0x10b5c3['insert'](_0x3d574b,_0x27bb12,'end');const _0x37146c=_0x2fcd1c['rowInsertionIndexes']['includes'](_0x5859c0['row']),_0x141197=_0x2fcd1c['columnInsertionIndexes']['includes'](_0x5859c0['column']);_0x37146c||_0x141197||(_0x4b5f70=_0x10a588['fromRange'](_0x10b5c3['createRangeIn'](_0x27bb12)));}else _0x6f03cd&&!_0xb28f21&&(_0x4c32d9=_0x10b5c3['createRangeIn'](_0x27bb12));}else{const _0x283ab5=_0x10b5c3['createElement']('tableCellSuggestion'),_0x6bef2c=_0x10b5c3['createElement']('tableCellSuggestion');_0x10b5c3['wrap'](_0x10b5c3['createRangeIn'](_0x27bb12),_0x6bef2c),_0x10b5c3['insert'](_0x283ab5,_0x27bb12,0x0);for(const _0x48091f of Array['from'](_0x127cfa['getChildren']()))_0x10b5c3['insert'](_0x48091f,_0x283ab5,'end');_0x4b5f70=_0x10a588['fromRange'](_0x10b5c3['createRangeOn'](_0x283ab5)),_0x4c32d9=_0x10a588['fromRange'](_0x10b5c3['createRangeOn'](_0x6bef2c));}const _0x5554dc=Array['from'](_0x127cfa['getAttributes']())['filter'](([_0x55b3e6])=>Be['includes'](_0x55b3e6));_0x2fcd1c['cells']['push']({'element':_0x27bb12,'attributes':_0x5554dc['length']?Object['fromEntries'](_0x5554dc):null}),_0x4b5f70&&_0x2fcd1c['insertionRanges']['push'](_0x4b5f70),_0x4c32d9&&_0x2fcd1c['deletionRanges']['push'](_0x4c32d9);},{'priority':'high'}),_0x4746f3['on']('insertColumns',(_0x44680f,_0x791b24)=>{const [_0x1b41f5,_0x5a3ef8={}]=_0x791b24;if(!_0x2fcd1c)return;const _0x4523a4=_0x5a3ef8['at']||0x0,_0x28c511=_0x5a3ef8['columns']||0x1;_0x2fcd1c['columnInsertionIndexes']=new Array(_0x28c511)['fill'](_0x4523a4)['map']((_0x3b4ca4,_0x2ee8ff)=>_0x3b4ca4+_0x2ee8ff);for(const {cell:_0x55073c}of _0x4746f3['createTableWalker'](_0x1b41f5,{'startColumn':_0x4523a4,'endColumn':_0x4523a4+_0x28c511-0x1}))_0x2fcd1c['columnInsertionRanges']['push'](_0x72f432['model']['createRangeOn'](_0x55073c));},{'priority':'low'}),_0x4746f3['on']('insertRows',(_0x13bbdf,_0x2da60e)=>{const [_0x282c55,_0x2b2e6d={}]=_0x2da60e;if(!_0x2fcd1c)return;const _0x247544=_0x2b2e6d['at']||0x0,_0x40b662=_0x2b2e6d['rows']||0x1;_0x2fcd1c['rowInsertionIndexes']=new Array(_0x40b662)['fill'](_0x247544)['map']((_0x4b0b4b,_0x2026b5)=>_0x4b0b4b+_0x2026b5);for(const {cell:_0x272b12}of _0x4746f3['createTableWalker'](_0x282c55,{'startRow':_0x247544,'endRow':_0x247544+_0x40b662-0x1}))_0x2fcd1c['rowInsertionRanges']['push'](_0x72f432['model']['createRangeOn'](_0x272b12));},{'priority':'low'}),_0x3b43a1['descriptionFactory']['registerDescriptionCallback'](_0x38eecf=>{if(_0x38eecf['subType']&&_0x38eecf['subType']['startsWith']('tablePaste'))return _0x38eecf['previous']?{}:{'type':'insertion','content':o(_0x72f432['locale'],'*Replace\x20table\x20cells*')};});const _0x21f4fb=()=>!0x1;for(const _0x1c92c5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b43a1['_suggestionFactory']['registerCustomCallback']('insertion',_0x1c92c5,'join',_0x21f4fb),_0x3b43a1['_suggestionFactory']['registerCustomCallback']('deletion',_0x1c92c5,'join',_0x21f4fb),_0x3b43a1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c92c5,'join',_0x21f4fb);_0x3b43a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x21f4fb),_0x3b43a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e5905,_0x47358d,_0x31e40d)=>{const _0x348f6d=_0x3e5905['map'](_0x186074=>_0x186074['getContainedElement']())['filter'](_0x14d85a=>_0x14d85a),_0x28321e=new Map(_0x348f6d['map'](_0x4cf152=>[_0x4cf152,null]));if(_0x2fcd1c){for(const {element:_0x1e8ae0,attributes:_0xeab7c1}of _0x2fcd1c['cells'])_0xeab7c1&&_0x28321e['set'](_0x1e8ae0,_0xeab7c1);}else{if(_0x31e40d&&_0x31e40d['markerAttributes'])for(const [_0x20d701,_0x359918]of Object['entries'](_0x31e40d['markerAttributes'])){const _0x23cb83=_0x72f432['model']['markers']['get'](_0x20d701),_0x38ddad=_0x23cb83?_0x23cb83['getRange']()['getContainedElement']():null;_0x38ddad&&_0x28321e['set'](_0x38ddad,_0x359918);}}_0x72f432['model']['change'](_0xdafb9e=>{for(const [_0x14d0db,_0x3417ab]of _0x28321e)_0xdafb9e['setAttributes']({...xe,..._0x3417ab},_0x14d0db);});});const _0x233591=(_0x2c52e7,_0x43fae9)=>{_0x3b43a1['_suggestionFactory']['registerCustomCallback'](_0x2c52e7,'tablePaste',_0x43fae9,(_0x50ecc7,_0x129fa7,_0x93048b)=>{_0x72f432['model']['change'](_0x545f94=>{const _0x358e2b=[];for(const _0x3ac67d of _0x50ecc7){const _0x426773=_0x3ac67d['start']['nodeAfter'];_0x426773['is']('element','tableCellSuggestion')&&_0x358e2b['push'](_0x426773);}_0x3b43a1['_suggestionFactory']['getSuggestionCallback'](_0x2c52e7,null,_0x43fae9)(_0x50ecc7,_0x129fa7,_0x93048b);for(const _0x3b3b31 of _0x358e2b)'$graveyard'!=_0x3b3b31['root']['rootName']&&_0x545f94['unwrap'](_0x3b3b31);});});};_0x233591('insertion','accept'),_0x233591('insertion','discard'),_0x233591('deletion','accept'),_0x233591('deletion','discard'),_0x3b43a1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1bcd88=>{const _0x23fc1b=_0x1bcd88['map'](_0x1c0a1f=>_0x1c0a1f['getContainedElement']()),_0x50f076=_0x23fc1b[0x0]['findAncestor']('table'),{minRow:_0x30a517,maxRow:_0x872ab0}=_0x48fdbb['_getCoordsForCells'](_0x23fc1b);_0x4746f3['removeRows'](_0x50f076,{'at':_0x30a517,'rows':_0x872ab0-_0x30a517+0x1});}),_0x3b43a1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2b4a81=>{const _0x455df5=_0x2b4a81['map'](_0x15238a=>_0x15238a['getContainedElement']()),_0xfe89f3=_0x455df5[0x0]['findAncestor']('table'),{minColumn:_0x4239ea,maxColumn:_0x3c871e}=_0x48fdbb['_getCoordsForCells'](_0x455df5);_0x4746f3['removeColumns'](_0xfe89f3,{'at':_0x4239ea,'columns':_0x3c871e-_0x4239ea+0x1});});const _0x26dbaf=(_0x2454d0,_0x1b8037)=>{if(!_0x1b8037['subType']||!_0x1b8037['subType']['startsWith']('tablePaste'))return;const _0x346c62=_0x1b8037['attributes']['tablePasteChainId'],_0x520056=_0x3b43a1['getSuggestions']()['filter'](_0x4ebfb2=>_0x4ebfb2['isInContent']&&_0x4ebfb2['attributes']&&_0x4ebfb2['attributes']['tablePasteChainId']==_0x346c62);_0x520056['length']&&_0x1b8037['getAllAdjacentSuggestions']()['length']!=_0x520056['length']&&_0x520056['reduce']((_0x161254,_0x12a3ba)=>(_0x161254['next']=_0x12a3ba,_0x12a3ba['previous']=_0x161254,_0x12a3ba));};function _0x479305(_0xa584c1,_0x3da97b=!0x0){const {id:_0x4ef5cc,authorId:_0x1c761f}=_0x3b43a1['_splitMarkerName'](_0xa584c1['markerName']),_0x43eae8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42da7c=_0x3b43a1['activeMarkers']['includes'](_0xa584c1['markerName']);return _0x42da7c&&_0x43eae8['push']('ck-suggestion-marker--active'),{'classes':_0x43eae8,'attributes':{'data-suggestion':_0x4ef5cc,'data-author-id':_0x1c761f},'priority':_0x42da7c&&_0x3da97b?0xbc2:0xbb8};}_0x3b43a1['on']('suggestionLoaded',_0x26dbaf,{'priority':'high'}),_0x3b43a1['on']('suggestionUnloaded',_0x26dbaf,{'priority':'high'}),_0x72f432['model']['document']['registerPostFixer'](()=>{let _0x653bab=!0x1;const _0x12188e=Array['from'](_0x72f432['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b3051,data:_0x54533b}of _0x12188e){const {group:_0x3095cf,type:_0x231aaa,id:_0x17aaac}=_0x3b43a1['_splitMarkerName'](_0x2b3051);if('suggestion'!=_0x3095cf||'deletion'!=_0x231aaa||_0x54533b['oldRange'])continue;if(!_0x3b43a1['hasSuggestion'](_0x17aaac))continue;const _0x4a9a0c=_0x3b43a1['getSuggestion'](_0x17aaac)['getRanges'](),_0x4dcdf2=_0x72f432['plugins']['get']('Users')['me'];for(const _0x5aa9b0 of _0x3b43a1['getSuggestions']()){if(!_0x5aa9b0['isInContent']||_0x5aa9b0['author']!=_0x4dcdf2)continue;if('formatBlock'!=_0x5aa9b0['type']||'tablePasteCell'!=_0x5aa9b0['subType'])continue;if(_0x5aa9b0['getRanges']()['every'](_0x5a9b01=>_0x4a9a0c['some'](_0x150528=>_0x150528['containsRange'](_0x5a9b01,!0x0)))){for(const _0x48a63 of _0x5aa9b0['getAllAdjacentSuggestions']())_0x48a63['isInContent']&&(_0x48a63['discard'](),_0x653bab=!0x0);}}}return _0x653bab;}),_0x72f432['model']['document']['registerPostFixer'](_0x46c9ed=>{const _0x4db0a6=_0x72f432['commands']['get']('redo');if(!_0x4db0a6||!_0x4db0a6['_createdBatches']['has'](_0x46c9ed['batch']))return!0x1;let _0x756d0e=!0x1;const _0x287438=_0x72f432['plugins']['get']('Users')['me'],_0x73935d=_0x72f432['model']['document']['differ']['getChanges'](),_0x4875d5=Array['from'](_0x72f432['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x59460c,data:_0x58640c})=>{const {group:_0x4ba3fe,subType:_0x4c2e7e,authorId:_0x4ce278}=_0x3b43a1['_splitMarkerName'](_0x59460c);return'suggestion'==_0x4ba3fe&&'tablePaste'==_0x4c2e7e&&_0x4ce278==_0x287438['id']&&!_0x58640c['oldRange'];});for(const _0x319b84 of _0x73935d){if('insert'!=_0x319b84['type']||'tableCellSuggestion'!=_0x319b84['name']||0x1!=_0x319b84['length'])continue;const _0x49aad1=_0x46c9ed['createRange'](_0x319b84['position'],_0x319b84['position']['getShiftedBy'](0x1));if(!_0x4875d5['find'](({data:_0x58c0a6})=>_0x58c0a6['newRange']['isEqual'](_0x49aad1))){for(const {name:_0xb89c3d,data:_0x5aeff4}of _0x4875d5)if(_0x49aad1['containsRange'](_0x5aeff4['newRange'])){_0x46c9ed['updateMarker'](_0xb89c3d,{'range':_0x49aad1}),_0x756d0e=!0x0;break;}}}return _0x756d0e;}),_0x72f432['model']['document']['registerPostFixer'](_0x551619=>{let _0x3b980a=!0x1;const _0x18e773=_0x72f432['plugins']['get']('Users')['me'],_0x45e9ac=_0x3b43a1['getSuggestions']()['filter'](_0x44d6ce=>_0x44d6ce['isInContent']&&_0x44d6ce['author']==_0x18e773),_0x53c7b3=new Set(),_0x2b5b56=new Set();for(const _0x27ae41 of _0x45e9ac)if('tablePaste'==_0x27ae41['subType'])for(const _0x26e799 of _0x27ae41['getMarkers']()){const _0x5af49e=_0x26e799['getRange']()['getContainedElement']();if(_0x5af49e){if(_0x5af49e['is']('element','tableCellSuggestion')&&Oe(_0x5af49e)){_0x27ae41['removeMarker'](_0x26e799['name']),_0x53c7b3['add'](_0x5af49e),_0x3b980a=!0x0;const _0x2ac32c=_0x5af49e['nextSibling'],_0x2b79cf=_0x5af49e['previousSibling'],_0x5d999a=_0x2ac32c&&_0x2ac32c['is']('element','tableCellSuggestion'),_0x547114=_0x2b79cf&&_0x2b79cf['is']('element','tableCellSuggestion');_0x5d999a&&!_0x53c7b3['has'](_0x2ac32c)&&_0x2b5b56['add'](_0x2ac32c),_0x547114&&!_0x53c7b3['has'](_0x2b79cf)&&_0x2b5b56['add'](_0x2b79cf);}else _0x5af49e['is']('element','paragraph')&&_0x5af49e['isEmpty']&&(_0x27ae41['removeMarker'](_0x26e799['name']),_0x3b980a=!0x0);}}else{if('tablePasteCell'==_0x27ae41['subType']){if(!_0x27ae41['attributes']||!_0x27ae41['attributes']['tablePasteChainId'])continue;const _0x485126=_0x27ae41['attributes']['markerAttributes'];if(_0x485126&&Object['keys'](_0x485126)['length'])continue;const _0x4600bf=_0x27ae41['attributes']['tablePasteChainId'];let _0x5329ba=!0x0,_0x79defe=!0x0;for(const _0x1d67d1 of _0x45e9ac)if(_0x1d67d1['subType']&&_0x1d67d1['subType']['startsWith']('tablePaste')){if(!_0x1d67d1['attributes']['tablePasteChainId']){_0x79defe=!0x1;break;}if(_0x1d67d1['id']!=_0x27ae41['id']&&_0x1d67d1['attributes']['tablePasteChainId']==_0x4600bf){_0x5329ba=!0x1;break;}}_0x79defe&&_0x5329ba&&(_0x27ae41['removeMarkers'](),_0x3b980a=!0x0);}}for(const _0x51f8e0 of _0x53c7b3)_0x551619['remove'](_0x51f8e0);for(const _0x44ca69 of _0x2b5b56)_0x551619['unwrap'](_0x44ca69);return _0x3b980a;}),_0x72f432['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4efff7=>_0x479305(_0x4efff7),'converterPriority':'high'}),_0x72f432['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4ad706,_0x92f08a)=>_0x92f08a['options']['showSuggestionHighlights']?_0x479305(_0x4ad706,!0x1):null,'converterPriority':'high'});const _0x65abb=_0x72f432['editing']['view'];this['listenTo'](_0x65abb['document'],'clipboardOutput',(_0x1e35f1,_0x357951)=>{const _0x43cc4f=[];for(const _0x5bcbb3 of _0x65abb['createRangeIn'](_0x357951['content'])['getItems']())_0x5bcbb3['is']('element','suggestion-td')&&_0x43cc4f['push'](_0x5bcbb3);_0x65abb['change'](_0x36bad4=>{for(const _0x3156e0 of _0x43cc4f)_0x36bad4['move'](_0x36bad4['createRangeIn'](_0x3156e0),_0x36bad4['createPositionBefore'](_0x3156e0)),_0x36bad4['remove'](_0x3156e0);});});}}function Oe(_0x796d92){if(_0x796d92['isEmpty'])return!0x0;const _0x3f1032=_0x796d92['getChild'](0x0);return _0x3f1032['is']('element','paragraph')&&_0x3f1032['isEmpty'];}function Ue(_0x6941fb,_0x54e2c2={},_0x4f2d5b){for(const {isAnchor:_0xf91fcb,cellHeight:_0x52f564,cellWidth:_0x26383d}of _0x4f2d5b['createTableWalker'](_0x6941fb,{'includeAllSlots':!0x0,..._0x54e2c2}))if(!_0xf91fcb||0x1!=_0x52f564||0x1!=_0x26383d)return!0x1;return!0x0;}class $t extends _0x33fd4f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x448b98=this['editor']['plugins']['get']('TrackChangesEditing');_0x448b98['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x448b98['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x448b98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x448b98['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x448b98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x448b98['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xae6962,_0x43b2b0){const _0x272591=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1253b7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1470bd=_0x43b2b0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x535048=_0x1253b7['getColumnGroupElement'](_0x1470bd);let _0x43136a=_0x535048?_0x1253b7['getTableColumnsWidths'](_0x535048):null,_0x168730=_0x1470bd['getAttribute']('tableWidth')||null;const _0x157440=_0x43b2b0['tableWidth']||_0x168730,_0x31beb8=_0x43b2b0['columnWidths']||_0x43136a,_0x2bf8a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x138673 of _0x272591['getSuggestions']()){const _0x2740ee=_0x138673['getContainedElement']();if('resizeTable'===_0x138673['subType']&&_0x2740ee===_0x1470bd){_0x138673['author']!==_0x2bf8a5&&_0x138673['discard']();const _0x30e2f2=_0x138673['data']['commandParams'];_0x168730=_0x30e2f2[0x0]['tableWidth'],_0x43136a=_0x30e2f2[0x0]['columnWidths'];break;}}_0xae6962({'table':_0x1470bd,'tableWidth':_0x157440,'columnWidths':_0x31beb8}),_0x272591['markBlockFormat'](_0x1470bd,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x168730,'columnWidths':_0x43136a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f1057){if('formatBlock'!=_0x4f1057['type']&&'formatInline'!=_0x4f1057['type'])return;const {data:_0x47ea2a}=_0x4f1057;if(_0x47ea2a&&'resizeTable'===_0x47ea2a['formatGroupId']){const _0x223e23='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x223e23)};}}}class Bt extends _0x33fd4f{['afterInit'](){const _0x123f4e=this['editor'];_0x123f4e['plugins']['has']('Template')&&_0x123f4e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x33fd4f{['afterInit'](){const _0x1b91c4=this['editor'];if(!_0x1b91c4['commands']['get']('insertTableOfContents'))return;_0x1b91c4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4f1120=_0x1b91c4['plugins']['get']('TrackChangesEditing'),_0x3251ea=_0x1b91c4['locale'];_0x4f1120['descriptionFactory']['registerElementLabel']('tableOfContents',_0x125a3c=>o(_0x3251ea,'ELEMENT_TABLE_OF_CONTENTS',_0x125a3c));}}class Rt extends _0x33fd4f{['afterInit'](){const _0x1ea290=this['editor'];if(!_0x1ea290['plugins']['has']('Title'))return;const _0x1a4d3e=_0x1ea290['plugins']['get']('TrackChangesEditing');_0x1a4d3e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1ea290['locale'],'ELEMENT_TITLE')),_0x1ea290['model']['document']['registerPostFixer'](_0x3ad771=>{let _0x10f303=!0x1;const _0x278625=Array['from'](_0x1ea290['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x166b00,data:_0x293d3e}of _0x278625){const {group:_0x4958e5}=_0x1a4d3e['_splitMarkerName'](_0x166b00);if('suggestion'!==_0x4958e5||!_0x293d3e['newRange'])continue;const _0x5aeb1c=_0x293d3e['newRange'],_0x56949c=_0x5aeb1c['end']['nodeBefore'];if(!_0x56949c||!_0x56949c['is']('element','title-content'))continue;if(!_0x5aeb1c['start']['isTouching'](_0x5aeb1c['end']))continue;const _0x30b9df=_0x1ea290['model']['schema']['getNearestSelectionRange'](_0x5aeb1c['end'],'forward');if(_0x30b9df&&_0x30b9df['isCollapsed']){const _0x312436=_0x3ad771['createRange'](_0x5aeb1c['start'],_0x30b9df['start']);_0x312436['isEqual'](_0x5aeb1c)||(_0x3ad771['updateMarker'](_0x166b00,{'range':_0x312436}),_0x10f303=!0x0);}_0x10f303||(_0x3ad771['removeMarker'](_0x166b00),_0x10f303=!0x0);}return _0x10f303;});}}class Tt extends _0x33fd4f{['afterInit'](){const _0x3aa1f0=this['editor'],_0x147d4f=_0x3aa1f0['plugins']['get']('TrackChangesEditing');_0x3aa1f0['plugins']['has']('Uploadcare')&&(_0x147d4f['enableCommand']('uploadcare'),_0x3aa1f0['plugins']['has']('UploadcareImageEdit')&&(_0x147d4f['enableCommand']('uploadcareImageEdit'),_0x147d4f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x147d4f['registerBlockAttribute']('uploadcareImageId'),_0x147d4f['descriptionFactory']['registerDescriptionCallback'](_0xe7107e=>{if('attribute'!=_0xe7107e['type'])return;const {data:_0x571094}=_0xe7107e;return _0x571094&&'uploadcareImageId'==_0x571094['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x33fd4f{['afterInit'](){const _0x52a469=this['editor'],_0x49cadd=_0x52a469['plugins']['get']('TrackChangesEditing');_0x52a469['plugins']['has']('UndoEditing')&&(_0x49cadd['enableCommand']('undo'),_0x49cadd['enableCommand']('redo'));}}class Et extends _0x33fd4f{static get['requires'](){return[Ct];}['afterInit'](){const _0x12a7ff=this['editor'];if(!_0x12a7ff['plugins']['has']('TableCaptionEditing'))return;_0x12a7ff['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x33fd4f{['tableProperties'];['tableCellProperties'];constructor(_0x447f8b){super(_0x447f8b),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 _0x404eb5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x264152 of this['tableProperties'])_0x404eb5['enableCommand'](_0x264152,(_0x37b1b3,_0x266b6b)=>{const _0x4b6de5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x264152,[_0x4b6de5],this['tableProperties'],'tableProperties',_0x37b1b3,_0x266b6b);});_0x404eb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x404eb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x404eb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xb61341,_0x5e05b0)=>this['handleDiscardAction'](this['tableProperties'],_0xb61341,_0x5e05b0)),_0x404eb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x551726 of this['tableCellProperties'])_0x404eb5['enableCommand'](_0x551726,(_0x26d459,_0x4a4e9d)=>{const _0x5e69b1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x551726,_0x5e69b1,this['tableCellProperties'],'tableCellProperties',_0x26d459,_0x4a4e9d);});_0x404eb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x404eb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x404eb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b4300,_0x20f3a3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b4300,_0x20f3a3)),_0x404eb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x404eb5['descriptionFactory']['registerDescriptionCallback'](_0x5d6928=>this['handleSuggestionDescription'](_0x5d6928));}['_handlePropertyChange'](_0x1c5800,_0x4bdcd7,_0x26414c,_0x19ff15,_0x400493,_0x5c75cd){const _0x3bb522=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5c75cd['batch'],()=>{for(const _0x416859 of _0x4bdcd7){if(this['_getSuggestion'](_0x416859,_0x19ff15))_0x400493(_0x5c75cd);else{const _0x32ab78={};for(const _0x2a5823 of _0x26414c){const _0x40f606=_0x416859['getAttribute'](_0x2a5823);void 0x0!==_0x40f606&&(_0x32ab78[_0x2a5823]=_0x40f606);}_0x400493(_0x5c75cd),_0x3bb522['markBlockFormat'](_0x416859,{'commandParams':[_0x32ab78]},[],_0x19ff15);}}});}['handleDiscardAction'](_0x58f397,_0x1b19f4,_0x544088){const _0x4df533=_0x1b19f4[0x0]['start']['nodeAfter'],_0x5135e1=_0x544088['commandParams'][0x0];this['editor']['model']['change'](_0xa88d40=>{for(const _0x246729 of _0x58f397)void 0x0!==_0x5135e1[_0x246729]?_0xa88d40['setAttribute'](_0x246729,_0x5135e1[_0x246729],_0x4df533):_0xa88d40['removeAttribute'](_0x246729,_0x4df533);});}['handleSuggestionDescription'](_0x2793ae){if(_0x2793ae['data'])switch(_0x2793ae['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'](_0x1a742a,_0x20805c){const _0x200828=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x352ca6 of _0x200828['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ccfde=_0x352ca6['getContainedElement']();if(_0x352ca6['subType']===_0x20805c&&_0x3ccfde===_0x1a742a)return _0x352ca6;}return null;}}const m='$elementName';class p extends _0x33fd4f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x167c8f,_0x507ac0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b110c){super(_0x3b110c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x120497,_0x2d02d4,_0x36dbc5,_0x5c087f)=>{this['_model']['change'](()=>{for(const _0x5b2b8b of[..._0x5c087f,..._0x36dbc5])this['_model']['markers']['has'](_0x5b2b8b)&&_0x3b110c['editing']['reconvertMarker'](_0x5b2b8b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3b110c['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(),_0x3b110c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b110c['config']['get']('trackChanges.trackFormatChanges'),_0x3b110c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b110c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3b110c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x281900=this['editor'],_0x432ac7=(_0x51de18,_0x5cb02e)=>{if('attribute'!=_0x51de18)return'ck-suggestion-marker-'+_0x51de18;const _0x3cd7b9=_0x5cb02e['split']('|')[0x0];return this['_isBlockAttribute'](_0x3cd7b9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x281900['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x52166e=>{const {id:_0x19b303,authorId:_0x43b93c,type:_0x129cf1,subType:_0x5f35dd}=this['_splitMarkerName'](_0x52166e['markerName']),_0x3706db=['ck-suggestion-marker',_0x432ac7(_0x129cf1,_0x5f35dd)];let _0x4ffdc1=0xbb8;return this['activeMarkers']['includes'](_0x52166e['markerName'])&&(_0x3706db['push']('ck-suggestion-marker--active'),_0x4ffdc1=0xbc2),'deletion'==_0x129cf1&&(_0x4ffdc1+=0x5),{'classes':_0x3706db,'attributes':{'data-suggestion':_0x19b303,'data-author-id':_0x43b93c},'priority':_0x4ffdc1};}}),_0x281900['conversion']['for']('dataDowncast')['add'](_0x1f2497=>{_0x1f2497['on']('addMarker:suggestion',(_0x1d76e0,_0x1a60dc,_0x1dfe36)=>{if(!_0x1dfe36['options']['showSuggestionHighlights'])return;const _0x30a473=_0x1a60dc['item'];if(!_0x30a473)return;const _0x1311a4=_0x1dfe36['mapper']['toViewElement'](_0x30a473);_0x281900['model']['schema']['isObject'](_0x30a473)&&_0x1311a4&&!_0x1311a4['getCustomProperty']('widget')&&_0x1311a4['is']('containerElement')&&_0x28a097(_0x1311a4,_0x1dfe36['writer']);},{'priority':'high'});}),_0x281900['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3675b2,_0x3f7e80)=>{if(!_0x3f7e80['options']['showSuggestionHighlights'])return null;const {type:_0x461676,subType:_0x3becb3}=this['_splitMarkerName'](_0x3675b2['markerName']);return{'classes':['ck-suggestion-marker',_0x432ac7(_0x461676,_0x3becb3)],'priority':0xbb8};}});const _0x22afba=({showActiveMarkers:_0x1f7516=!0x0,isAttributeSuggestion:_0x275cb9=!0x1}={})=>(_0x4c56d1,_0x25ecf1,_0x340182)=>{if(!_0x25ecf1['item'])return;const {id:_0x196133,authorId:_0x2ae671}=this['_splitMarkerName'](_0x25ecf1['markerName']);if(_0x275cb9){const _0x58f6fd=this['_suggestions']['get'](_0x196133),_0x301993=this['_getAttributeKey'](_0x58f6fd);if(!this['_isBlockAttribute'](_0x301993))return;}if(_0x25ecf1['item']['is']('selection'))return void _0x340182['consumable']['consume'](_0x25ecf1['item'],_0x4c56d1['name']);const _0x56adf7=_0x340182['mapper']['toViewElement'](_0x25ecf1['item']);if(_0x25ecf1['item']['is']('element')&&_0x281900['model']['schema']['isBlock'](_0x25ecf1['item'])&&!_0x56adf7['getCustomProperty']('addHighlight')){_0x340182['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56adf7),_0x340182['writer']['setAttribute']('data-suggestion',_0x196133,_0x56adf7),_0x340182['writer']['setAttribute']('data-author-id',_0x2ae671,_0x56adf7),_0x340182['mapper']['bindElementToMarker'](_0x56adf7,_0x25ecf1['markerName']),_0x1f7516&&(this['activeMarkers']['includes'](_0x25ecf1['markerName'])?_0x340182['writer']['addClass']('ck-suggestion-marker--active',_0x56adf7):_0x340182['writer']['removeClass']('ck-suggestion-marker--active',_0x56adf7));for(const _0x58b6c8 of _0x281900['model']['createRangeIn'](_0x25ecf1['item'])['getItems']())_0x340182['consumable']['consume'](_0x58b6c8,_0x4c56d1['name']);_0x340182['consumable']['consume'](_0x25ecf1['item'],_0x4c56d1['name']);}};_0x281900['conversion']['for']('dataDowncast')['add'](_0x3a0244=>{_0x3a0244['on']('addMarker:suggestion:formatBlock',(_0x1512e3,_0x17ddb4,_0x35c98e)=>{_0x35c98e['options']['showSuggestionHighlights']&&_0x22afba({'showActiveMarkers':!0x1})(_0x1512e3,_0x17ddb4,_0x35c98e);},{'priority':'highest'});}),_0x281900['conversion']['for']('dataDowncast')['add'](_0x4a16f0=>{_0x4a16f0['on']('addMarker:suggestion:attribute',(_0x42faab,_0x3669e9,_0x24024d)=>{_0x24024d['options']['showSuggestionHighlights']&&_0x22afba({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x42faab,_0x3669e9,_0x24024d);},{'priority':'highest'});}),_0x281900['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2f833b,_0x22029e)=>_0x22029e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2f833b['substr'](0xb)}}),_0x281900['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3af44b,{writer:_0x23e5fc})=>{let _0x162a0c='suggestion:'+_0x3af44b['getAttribute']('suggestion-type')+':'+_0x3af44b['getAttribute']('id');return _0x3af44b['getAttribute']('marker-count')&&(_0x162a0c+=':'+_0x3af44b['getAttribute']('marker-count')),_0x23e5fc['createElement']('$marker',{'data-name':_0x162a0c});}}),_0x281900['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x281900['conversion']['for']('editingDowncast')['add'](_0x563b71=>{_0x563b71['on']('addMarker:suggestion:formatBlock',_0x22afba(),{'priority':'high'});}),_0x281900['conversion']['for']('editingDowncast')['add'](_0x184873=>{_0x184873['on']('addMarker:suggestion:attribute',_0x22afba({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x281900['conversion']['for']('editingDowncast')['add'](_0x32009d=>{_0x32009d['on']('removeMarker:suggestion:formatBlock',(_0x1c6126,_0x136006,_0x19dfd1)=>{const _0x8496b4=_0x19dfd1['mapper']['markerNameToElements'](_0x136006['markerName']);if(_0x8496b4){for(const _0x34a832 of _0x8496b4)_0x34a832['getCustomProperty']('addHighlight')||(_0x19dfd1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34a832),_0x19dfd1['writer']['removeAttribute']('data-suggestion',_0x34a832),_0x19dfd1['writer']['removeAttribute']('data-author-id',_0x34a832),_0x19dfd1['mapper']['unbindElementFromMarkerName'](_0x34a832,_0x136006['markerName']));}},{'priority':'high'});}),_0x281900['conversion']['for']('editingDowncast')['add'](_0x2bfbe9=>{_0x2bfbe9['on']('removeMarker:suggestion:attribute',(_0x4300bb,_0x25418e,_0xa0aa7b)=>{const _0x138b71=_0xa0aa7b['mapper']['markerNameToElements'](_0x25418e['markerName']);if(!_0x138b71)return;const {id:_0x5f57a7}=this['_splitMarkerName'](_0x25418e['markerName']),_0x42a111=this['_suggestions']['get'](_0x5f57a7),_0x3ccd70=this['_getAttributeKey'](_0x42a111);if(this['_isBlockAttribute'](_0x3ccd70)){for(const _0x138a24 of _0x138b71)_0x138a24['getCustomProperty']('addHighlight')||(_0xa0aa7b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x138a24),_0xa0aa7b['writer']['removeAttribute']('data-suggestion',_0x138a24),_0xa0aa7b['writer']['removeAttribute']('data-author-id',_0x138a24),_0xa0aa7b['mapper']['unbindElementFromMarkerName'](_0x138a24,_0x25418e['markerName']));}},{'priority':'high'});}),_0x281900['model']['document']['registerPostFixer'](_0x4ab10f=>{let _0x4556a9=!0x1;const _0x186ff2=Array['from'](_0x281900['model']['document']['differ']['getChangedMarkers']()),_0x2140e5=new Set();for(const {name:_0x1c02b9,data:_0x691c7}of _0x186ff2){const {group:_0x4b0b76,type:_0x1f9eba,subType:_0x3ef06d,id:_0x125a83}=this['_splitMarkerName'](_0x1c02b9);if('suggestion'!==_0x4b0b76)continue;const _0x527f21=this['_suggestions']['get'](_0x125a83);if(null!=_0x691c7['newRange']){'formatInline'==_0x1f9eba&&(_0x4556a9=_0x4556a9||Lt(_0x691c7['newRange'],_0x1c02b9,_0x4ab10f,_0x281900['model']['schema']));const _0x24551c='attribute'==_0x1f9eba&&this['_isBlockAttribute'](_0x3ef06d['split']('|')[0x0]);if(_0x691c7['newRange']['isCollapsed']||'$graveyard'==_0x691c7['newRange']['root']['rootName']||'formatBlock'==_0x1f9eba&&!Ht(_0x691c7['newRange'])||_0x24551c&&!Ht(_0x691c7['newRange'])||'deletion'==_0x1f9eba&&!(!Ft(_0x26c591=_0x691c7['newRange'])&&!function(_0x419c52){return _0x419c52['start']['parent']==_0x419c52['end']['nodeBefore']&&_0x419c52['start']['isAtEnd'];}(_0x26c591)))_0x4ab10f['removeMarker'](_0x1c02b9),_0x4556a9=!0x0;else{if(!_0x527f21||!_0x527f21['isInContent'])continue;if(_0x691c7['newRange']&&_0x691c7['oldRange']&&_0x691c7['newRange']['isEqual'](_0x691c7['oldRange']))continue;_0x2140e5['add'](_0x527f21);}}}var _0x26c591;return _0x2140e5['size']>0x0&&(_0x4556a9=!!this['_joinWithAdjacentSuggestions'](_0x2140e5)||_0x4556a9),_0x4556a9;}),_0x281900['model']['document']['registerPostFixer'](_0x275c64=>{let _0x14e5ba=!0x1;for(const _0x5433bb of _0x281900['model']['document']['differ']['getChanges']())if('insert'==_0x5433bb['type'])for(const _0x352900 of this['_suggestions']['values']()){if(_0x352900['isMultiRange']||!_0x352900['isInContent'])continue;const _0x3d5874='formatBlock'==_0x352900['type'],_0x4bc295=this['_getAttributeKey'](_0x352900),_0x5344c8=_0x4bc295&&this['_isBlockAttribute'](_0x4bc295);if(!_0x3d5874&&!_0x5344c8)continue;const _0x4e804=_0x352900['getFirstRange']();if(_0x4e804['start']['parent']!=_0x4e804['end']['parent']&&!_0x4e804['end']['isAtEnd']){const _0x260728=_0x281900['model']['createPositionAt'](_0x4e804['start']['nodeAfter'],'end'),_0x27873b=_0x281900['model']['createRange'](_0x4e804['start'],_0x260728);_0x275c64['updateMarker'](_0x352900['getFirstMarker'](),{'range':_0x27873b}),_0x14e5ba=!0x0;}}return _0x14e5ba;}),_0x281900['model']['document']['registerPostFixer'](_0x53dbfe=>this['_processAttributeChanges'](_0x53dbfe)),_0x281900['model']['document']['registerPostFixer'](_0x36facb=>!_0x36facb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x36facb)),_0x281900['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x281900['model']['document']['on']('change:data',(_0x4d81f4,_0x352967)=>{if(!_0x352967['isLocal']||_0x352967['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3aae72=_0x281900['model']['document']['differ']['getChanges']();if(0x0==_0x3aae72['length'])return;const _0x15a9a5=[],_0x77bf61=_0x3aae72['filter'](_0x88727d=>'attribute'==_0x88727d['type']),_0x4bd8c0=_0x3aae72['filter'](_0x1fe415=>'insert'==_0x1fe415['type']&&'$text'!=_0x1fe415['name']);for(const _0xd8f0d2 of _0x77bf61)this['_isRegisteredAttribute'](_0xd8f0d2['attributeKey'])&&_0x15a9a5['push']({'key':_0xd8f0d2['attributeKey'],'newValue':_0xd8f0d2['attributeNewValue'],'oldValue':_0xd8f0d2['attributeOldValue'],'range':qt(_0xd8f0d2['range'],_0x281900['model'])});for(const _0x765c1d of _0x4bd8c0){if('rename'!=_0x765c1d['action']&&'refresh'!=_0x765c1d['action'])continue;const _0x955002=zt(_0x765c1d['position']['nodeAfter'],_0x281900['model']),_0x2f90c2=_0x765c1d['before'];'rename'==_0x765c1d['action']&&_0x15a9a5['push']({'key':m,'newValue':_0x765c1d['name'],'oldValue':_0x2f90c2['name'],'range':_0x955002});for(const [_0x464570,_0x10613b]of _0x2f90c2['attributes']){if(!this['_isRegisteredAttribute'](_0x464570))continue;const _0x57e3ed=_0x765c1d['attributes']['get'](_0x464570);_0x10613b!==_0x57e3ed&&_0x15a9a5['push']({'key':_0x464570,'newValue':_0x57e3ed,'oldValue':_0x10613b,'range':_0x955002});}for(const [_0x22709c,_0x282fbe]of _0x765c1d['attributes'])this['_isRegisteredAttribute'](_0x22709c)&&(_0x2f90c2['attributes']['has'](_0x22709c)||_0x15a9a5['push']({'key':_0x22709c,'newValue':_0x282fbe,'oldValue':null,'range':_0x955002}));}0x0!=_0x15a9a5['length']&&_0x281900['model']['enqueueChange'](_0x352967,_0x2de1d2=>{const _0x21e170=_0x543df7();for(const {range:_0x128bd7,key:_0x33c941,oldValue:_0x28e9cc,newValue:_0x5c9098}of _0x15a9a5)this['markAttributeChange'](_0x128bd7,_0x33c941,_0x28e9cc,_0x5c9098,{'groupId':_0x21e170});this['_reduceExistingSuggestions'](_0x2de1d2,_0x15a9a5);});},{'priority':'lowest'}),_0x281900['model']['markers']['on']('update:suggestion',(_0x181472,_0x35c664,_0x8dea37)=>{if(null==_0x8dea37){const {id:_0x3c1703}=this['_splitMarkerName'](_0x35c664['name']),_0x15f061=this['_suggestions']['get'](_0x3c1703);_0x15f061&&_0x15f061['addMarkerName'](_0x35c664['name']);}}),_0x281900['model']['document']['on']('change:data',()=>{const _0x29008d=Array['from'](_0x281900['model']['document']['differ']['getChangedMarkers']())['filter'](_0x446e81=>'suggestion'===this['_splitMarkerName'](_0x446e81['name'])['group']);if(0x0===_0x29008d['length'])return;_0x29008d['sort']((_0x47f423,_0x54fbb0)=>{const _0x4201cf=_0x47f423['data']['oldRange'],_0x516604=_0x54fbb0['data']['oldRange'];return null===_0x4201cf&&null===_0x516604?0x0:null===_0x4201cf&&null!==_0x516604?-0x1:null!==_0x4201cf&&null===_0x516604?0x1:_0x4201cf['start']['isBefore'](_0x516604['start'])?-0x1:0x1;});const _0x4f6190=new Set(),_0x5027ca=new Set();for(const {name:_0x474518,data:_0x2c0222}of _0x29008d){const {id:_0x504166}=this['_splitMarkerName'](_0x474518);if(null===_0x2c0222['oldRange']){const _0xa63bf0=this['_handleNewSuggestionMarker'](_0x474518);_0x5027ca['add'](_0xa63bf0);}else{const _0x54e58d=this['_suggestions']['get'](_0x504166);null!==_0x2c0222['newRange']||_0x54e58d['isInContent']?(_0x4f6190['add'](_0x54e58d['head']),_0x5027ca['add'](_0x54e58d)):this['_removeSuggestion'](_0x54e58d);}}_0x5027ca['size']>0x0&&this['_refreshSuggestionsChain'](_0x5027ca);for(const _0x313db1 of _0x4f6190)this['fire']('suggestionChanged',_0x313db1);}),_0x281900['model']['on']('applyOperation',(_0xf6904d,_0x2274cb)=>{const _0x557222=_0x2274cb[0x0];if(!this['_suggestions']['size'])return;if(!_0x557222['isDocumentOperation'])return;if(_0x557222['batch']['isUndo']||!_0x557222['batch']['isLocal'])return;let _0x4c8662,_0x3a7e81;switch(_0x557222['type']){case'insert':_0x4c8662=_0x281900['model']['createPositionAt'](_0x557222['position']),_0x3a7e81=_0x4c8662['getShiftedBy'](_0x557222['howMany']);break;case'split':_0x4c8662=_0x281900['model']['createPositionAt'](_0x557222['splitPosition']),_0x3a7e81=_0x281900['model']['createPositionAt'](_0x557222['moveTargetPosition']);break;case'move':_0x4c8662=_0x281900['model']['createPositionAt'](_0x557222['targetPosition']),_0x3a7e81=_0x4c8662['getShiftedBy'](_0x557222['howMany']);break;default:return;}const _0x318581=_0x281900['model']['createRange'](_0x4c8662,_0x3a7e81);_0x281900['model']['change'](()=>{for(const {suggestion:_0x3b47b4,meta:_0x5bca18}of this['_findSuggestions'](_0x318581)){if(_0x3b47b4['isMultiRange'])continue;if('formatInline'==_0x3b47b4['type'])continue;const _0x3ccbfd=this['_getAttributeKey'](_0x3b47b4);if(_0x3ccbfd&&this['_isBlockAttribute'](_0x3ccbfd)&&'split'!=_0x557222['type'])continue;const _0x2acdd6=_0x3b47b4['data']&&_0x3b47b4['data']['multipleBlocks'];('formatBlock'!=_0x3b47b4['type']||'split'==_0x557222['type']&&!_0x2acdd6)&&(_0x5bca18['containsRangeInObject']||'insertion'==_0x3b47b4['type']&&_0x5bca18['isOwn']||_0x3b47b4['getFirstRange']()['containsRange'](_0x318581)&&this['_breakSuggestionMarker'](_0x3b47b4,_0x4c8662,_0x3a7e81));}});},{'priority':'lowest'}),_0x281900['model']['on']('deleteContent',(_0xa44f1c,_0x2cbd25)=>{const _0x2acc22=_0x2cbd25[0x0],_0x1cd7b8=_0x2cbd25[0x1];if(_0x1cd7b8&&_0x1cd7b8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2acc22['isCollapsed'])return;const _0x3008c0=_0x281900['model']['schema'],{start:_0x13f77c,end:_0x4cf339}=_0x2acc22['getFirstRange'](),_0x59dc35=_0x13f77c['nodeAfter']&&_0x3008c0['isLimit'](_0x13f77c['nodeAfter'])?null:_0x3008c0['getNearestSelectionRange'](_0x13f77c,'forward'),_0x31eb67=_0x4cf339['nodeBefore']&&_0x3008c0['isLimit'](_0x4cf339['nodeBefore'])?null:_0x3008c0['getNearestSelectionRange'](_0x4cf339,'backward'),_0x5acf2b=_0x281900['model']['createRange'](_0x59dc35?_0x59dc35['start']:_0x13f77c,_0x31eb67?_0x31eb67['end']:_0x4cf339);_0x281900['model']['change'](_0x5642af=>{this['markDeletion'](_0x5acf2b);const _0xf04bca=_0x281900['model']['schema']['getNearestSelectionRange'](_0x5acf2b['start']);_0x2acc22['is']('documentSelection')?_0x5642af['setSelection'](_0xf04bca):_0x2acc22['setTo'](_0xf04bca);}),_0xa44f1c['stop']();},{'priority':_0x2ddc52['normal']+0xa}),_0x281900['model']['on']('insertContent',(_0xcf0450,_0x4991c3)=>{const _0x38f4c6=_0x4991c3[_0x4991c3['length']-0x1];_0x38f4c6&&_0x38f4c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x281900['model']['change'](()=>{let _0x1b6512=_0x281900['model']['insertContent'](_0x4991c3[0x0],_0x4991c3[0x1],_0x4991c3[0x2],{'forceDefaultExecution':!0x0});if(!_0x1b6512)return;_0xcf0450['return']=_0x1b6512['clone']();const _0xf47b2=_0x1b6512['end']['nodeBefore'],_0x4c3077=_0x281900['model']['schema'];_0xf47b2&&_0x4c3077['isBlock'](_0xf47b2)&&!_0x4c3077['isObject'](_0xf47b2)&&(_0x1b6512=_0x281900['model']['createRange'](_0x1b6512['start'],_0x281900['model']['createPositionAt'](_0xf47b2,'end'))),this['markInsertion'](_0x1b6512);}),_0xcf0450['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a0ed4=new O(_0x281900,this['_suggestions']);_0x281900['commands']['add']('acceptSuggestion',_0x3a0ed4),this['enableCommand']('acceptSuggestion');const _0x25c4b9=new R(_0x281900,this['_suggestions']);_0x281900['commands']['add']('discardSuggestion',_0x25c4b9),this['enableCommand']('discardSuggestion'),_0x281900['commands']['add']('acceptAllSuggestions',new x(_0x281900,_0x3a0ed4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x281900['commands']['add']('discardAllSuggestions',new x(_0x281900,_0x25c4b9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x281900['commands']['add']('acceptSelectedSuggestions',new E(_0x281900,_0x3a0ed4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x281900['commands']['add']('discardSelectedSuggestions',new E(_0x281900,_0x25c4b9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4981d0=_0x281900['plugins']['get']('CommentsRepository');this['listenTo'](_0x4981d0,'addComment',(_0x114ce8,{threadId:_0x3bb439})=>{const _0x41f3b5=this['_suggestions']['get'](_0x3bb439);_0x41f3b5&&_0x41f3b5['commentThread']&&0x1===_0x41f3b5['commentThread']['length']&&this['_updateSuggestionData'](_0x3bb439,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4981d0,'removeComment',(_0x260b63,{threadId:_0x2adb88})=>{const _0x107989=this['_suggestions']['get'](_0x2adb88);_0x107989&&_0x107989['commentThread']&&!_0x107989['commentThread']['length']&&this['_updateSuggestionData'](_0x2adb88,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x12f392){const _0x373dac=_0x4d2566([0x30,0x64,0x59,0x4e,0x63,0x67,0x33,0x54,0x6b,0x73,0x76,0x62,0x47,0x44,0x46,0x52,0x72,0x36,0x4d,0x37,0x68,0x4b,0x74,0x65,0x49,0x45,0x34,0x4f,0x69,0x6e,0x50,0x4a,0x39,0x51,0x48,0x32,0x79,0x41,0x66,0x6a,0x38,0x56,0x35,0x6d,0x5a,0x53,0x6c,0x4c,0x78,0x70,0x6f,0x31,0x7a,0x55,0x61,0x43,0x58,0x71,0x57,0x42,0x75,0x77]),_0x4bf91f=0x3bcff20c,_0x5d2220=0x3bc8931c^_0x4bf91f,_0x12293f=window[_0x4d2566([0x44,0x61,0x74,0x65])][_0x4d2566([0x6e,0x6f,0x77])](),_0x20602c=_0x12f392[_0x4d2566([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x295a45=new window[(_0x4d2566([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ec124=>{_0x20602c[_0x4d2566([0x6f,0x6e,0x63,0x65])](_0x4d2566([0x72,0x65,0x61,0x64,0x79]),_0x5ec124);}),_0x5ea0a8={[_0x4d2566([0x6b,0x74,0x79])]:_0x4d2566([0x45,0x43]),[_0x4d2566([0x75,0x73,0x65])]:_0x4d2566([0x73,0x69,0x67]),[_0x4d2566([0x63,0x72,0x76])]:_0x4d2566([0x50,0x2d,0x32,0x35,0x36]),[_0x4d2566([0x78])]:_0x4d2566([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4d2566([0x79])]:_0x4d2566([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4d2566([0x61,0x6c,0x67])]:_0x4d2566([0x45,0x53,0x32,0x35,0x36])},_0x1ee2e0=_0x20602c[_0x4d2566([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d2566([0x67,0x65,0x74])](_0x4d2566([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5aa9c4(){let _0x2dae65,_0x41651b=null,_0x12bb00=null;try{if(_0x1ee2e0==_0x4d2566([0x47,0x50,0x4c]))return _0x4d2566([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dae65=_0x354f37(),!_0x2dae65)return _0x4d2566([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dae65[_0x4d2566([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12bb00=_0x1a481f(_0x2dae65[_0x4d2566([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dae65[_0x4d2566([0x6a,0x74,0x69])])),await _0x82df48()?_0x45a579()?_0x74e543()?_0x4d2566([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x538484()?(_0x2dae65[_0x4d2566([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d2566([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41651b=_0x5215dd(_0x4d2566([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2dae65[_0x4d2566([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d2566([0x74,0x72,0x69,0x61,0x6c])&&(_0x41651b=_0x5215dd(_0x4d2566([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x530654()):_0x4d2566([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d2566([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d2566([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38cb8e){return _0x4d2566([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x74e543(){const _0x382694=[_0x4d2566([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d2566([0x74,0x72,0x69,0x61,0x6c])][_0x4d2566([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dae65[_0x4d2566([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12293f/0x3e8:0xe10*_0x5d2220;return _0x2dae65[_0x4d2566([0x65,0x78,0x70])]<_0x382694;}function _0x45a579(){const _0x17c4f2=_0x2dae65[_0x4d2566([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x17c4f2)return!0x1;if(_0x17c4f2[_0x4d2566([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d2566([0x2a])))return!0x0;if(_0x17c4f2[_0x4d2566([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d2566([0x54,0x43])))return!0x0;if(_0x17c4f2[_0x4d2566([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d2566([0x52,0x54,0x43]))){if(_0x3ee1e6())return!0x0;if(_0x1124ef()||_0x16180c())return!0x0;}return!0x1;}function _0x538484(){const _0x85b208=_0x2dae65[_0x4d2566([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x85b208||0x0==_0x85b208[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f6d50}=new URL(window[_0x4d2566([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x85b208[_0x4d2566([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6d50))return!0x0;const _0x5a8bd3=_0x4f6d50[_0x4d2566([0x73,0x70,0x6c,0x69,0x74])](_0x4d2566([0x2e]));return _0x85b208[_0x4d2566([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54dff4=>_0x54dff4[_0x4d2566([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d2566([0x2a])))[_0x4d2566([0x6d,0x61,0x70])](_0x57f2a1=>_0x57f2a1[_0x4d2566([0x73,0x70,0x6c,0x69,0x74])](_0x4d2566([0x2e])))[_0x4d2566([0x73,0x6f,0x6d,0x65])](_0xa0a5c7=>_0x5a8bd3[_0x4d2566([0x65,0x76,0x65,0x72,0x79])]((_0x5b4ad9,_0x313453)=>_0xa0a5c7[_0x313453]===_0x5b4ad9||_0xa0a5c7[_0x313453]===_0x4d2566([0x2a])));}function _0x530654(){return _0x41651b&&_0x12bb00?new window[(_0x4d2566([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x122fd6,_0x19b7d6)=>{_0x41651b[_0x4d2566([0x74,0x68,0x65,0x6e])](_0x122fd6,_0x19b7d6),_0x12bb00[_0x4d2566([0x74,0x68,0x65,0x6e])](_0x20bee4=>{_0x20bee4!=_0x4d2566([0x56,0x61,0x6c,0x69,0x64])&&_0x122fd6(_0x20bee4);},_0x19b7d6);}):_0x41651b||_0x12bb00||_0x4d2566([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a481f(_0x3b7f42,_0x2a07f4){return new window[(_0x4d2566([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9c5b21=>{if(_0x3dfdbc())return _0x9c5b21(_0x4d2566([0x56,0x61,0x6c,0x69,0x64]));_0x39ea2b(),_0x20602c[_0x4d2566([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d2566([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12d767=!0x1;const _0x2f12e5=_0x543df7();function _0x13545d(_0x3ad3ff){return!!_0x3ad3ff&&(typeof _0x3ad3ff===_0x4d2566([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ad3ff===_0x4d2566([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ad3ff[_0x4d2566([0x74,0x68,0x65,0x6e])]===_0x4d2566([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ad3ff[_0x4d2566([0x63,0x61,0x74,0x63,0x68])]===_0x4d2566([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x488f9f(_0x1c1ba0){_0x58313f(_0x1c1ba0)[_0x4d2566([0x74,0x68,0x65,0x6e])](_0x5e26f5=>{if(!_0x5e26f5||_0x5e26f5[_0x4d2566([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d2566([0x6f,0x6b]))return _0x4d2566([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd117c8(_0x383e18(_0x2f12e5+_0x2a07f4))!=_0x5e26f5[_0x4d2566([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d2566([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d2566([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d2566([0x74,0x68,0x65,0x6e])](_0x513d80=>(_0x4bedbd(),_0x513d80),()=>{const _0x3924f6=_0x262352();return null==_0x3924f6?(_0x4bedbd(),_0x4d2566([0x56,0x61,0x6c,0x69,0x64])):_0x4d2566(_0x12293f-_0x3924f6>(0x1fc3760c^_0x4bf91f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d2566([0x74,0x68,0x65,0x6e])](_0x9c5b21)[_0x4d2566([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9c5b21(_0x4d2566([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34beb2=0x3bf91c8c^_0x4bf91f;function _0x4bedbd(){const _0x1ca953=_0x4d2566([0x6c,0x6c,0x63,0x74,0x2d])+_0xd117c8(_0x383e18(_0x3b7f42)),_0x3206a6=_0x2bfb41(_0xd117c8(window[_0x4d2566([0x4d,0x61,0x74,0x68])][_0x4d2566([0x63,0x65,0x69,0x6c])](_0x12293f/_0x34beb2)));window[_0x4d2566([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d2566([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ca953,_0x3206a6);}function _0x262352(){const _0x18680a=_0x4d2566([0x6c,0x6c,0x63,0x74,0x2d])+_0xd117c8(_0x383e18(_0x3b7f42)),_0x4dfd7e=window[_0x4d2566([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d2566([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18680a);return _0x4dfd7e?window[_0x4d2566([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bfb41(_0x4dfd7e),0x10)*_0x34beb2:null;}function _0x58313f(_0x15baab){return new window[(_0x4d2566([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a0d78,_0x24aa54)=>{_0x15baab[_0x4d2566([0x74,0x68,0x65,0x6e])](_0x1a0d78,_0x24aa54),window[_0x4d2566([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24aa54,0x3bce26cc^_0x4bf91f);});}}_0x20602c[_0x4d2566([0x6f,0x6e])](_0x4d2566([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cfeb3,_0x5ed94d)=>{if(_0x5ed94d[0x0]!=_0x3b7f42)return _0x9c5b21(_0x4d2566([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ed94d[0x1]={..._0x5ed94d[0x1],[_0x4d2566([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f12e5};},{[_0x4d2566([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d2566([0x68,0x69,0x67,0x68])}),_0x20602c[_0x4d2566([0x6f,0x6e])](_0x4d2566([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56f3f1=>{_0x13545d(_0x56f3f1[_0x4d2566([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12d767=!0x0,_0x488f9f(_0x56f3f1[_0x4d2566([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d2566([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d2566([0x6c,0x6f,0x77])}),_0x295a45[_0x4d2566([0x74,0x68,0x65,0x6e])](()=>{_0x12d767||_0x9c5b21(_0x4d2566([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3dfdbc(){return _0x20602c[_0x4d2566([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d2566([0x76,0x69,0x65,0x77])][_0x4d2566([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d2566([0x61,0x75,0x74,0x6f]);}function _0x39ea2b(){_0x20602c[_0x4d2566([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d2566([0x76,0x69,0x65,0x77])][_0x4d2566([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d2566([0x61,0x75,0x74,0x6f]);}}function _0x5215dd(_0x8c94cd){const _0x5c82d8=[new window[(_0x4d2566([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4daeab=>setTimeout(_0x4daeab,0x3bc6ccc0^_0x4bf91f)),_0x295a45[_0x4d2566([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d2566([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31f3f3=>{let _0x3bebb7=0x0;_0x20602c[_0x4d2566([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d2566([0x6f,0x6e])](_0x4d2566([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f7fdc,_0x2c1546)=>{_0x2c1546[0x0][_0x4d2566([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bebb7++,_0x3bebb7==(0x3bcff3f4^_0x4bf91f)&&(_0x31f3f3(),_0x1f7fdc[_0x4d2566([0x6f,0x66,0x66])]());});}))];return window[_0x4d2566([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d2566([0x72,0x61,0x63,0x65])](_0x5c82d8)[_0x4d2566([0x74,0x68,0x65,0x6e])](()=>_0x8c94cd);}async function _0x39922a(){await _0x295a45,_0x20602c[_0x4d2566([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d2566([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a2412,_0x20602c[_0x4d2566([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d2566([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a2412,_0x20602c[_0x4d2566([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d2566([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ee1e6(){return _0xae5787(_0x4d2566([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf1df5f(_0x4d2566([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d2566([0x73,0x74,0x61,0x74,0x65])]==_0x4d2566([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1124ef(){return _0xae5787(_0x4d2566([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x16180c(){return _0xae5787(_0x4d2566([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x596f44(_0x3aec25){const _0xd9dd41=_0x452c16();_0x20602c[_0xd9dd41]=_0x4d2566([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3aec25,_0x3aec25!=_0x4d2566([0x56,0x61,0x6c,0x69,0x64])&&_0x39922a();}function _0x452c16(){const _0x429166=window[_0x4d2566([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d2566([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d2566([0x6e,0x6f,0x77])]())[_0x4d2566([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d2566([0x2e]),'');let _0x22e9aa=_0x4d2566([0x64]);for(let _0x5795d8=0x0;_0x5795d8<_0x429166[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5795d8+=0x2){let _0x5d39f6=window[_0x4d2566([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x429166[_0x4d2566([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5795d8,_0x5795d8+0x2));_0x5d39f6>=_0x373dac[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d39f6-=_0x373dac[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22e9aa+=_0x373dac[_0x5d39f6];}return _0x22e9aa;}function _0x354f37(){const _0x13dc2e=_0x1ee2e0[_0x4d2566([0x73,0x70,0x6c,0x69,0x74])](_0x4d2566([0x2e]));if(0x3!=_0x13dc2e[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c941b(_0x13dc2e[0x1]);function _0x1c941b(_0x4db12f){const _0x1e18a1=_0xc8ebde(_0x4db12f);return _0x1e18a1&&_0x1e616a()?_0x1e18a1:null;function _0x1e616a(){const _0x354786=_0x1e18a1[_0x4d2566([0x6a,0x74,0x69])],_0x5520f2=window[_0x4d2566([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x354786[_0x4d2566([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x354786[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53adce={..._0x1e18a1,[_0x4d2566([0x6a,0x74,0x69])]:_0x354786[_0x4d2566([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x354786[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53adce[_0x4d2566([0x76,0x63])],_0x383e18(_0x53adce)==_0x5520f2;}}}async function _0x82df48(){let _0x5eb347=!0x0;try{const _0x414d63=_0x1ee2e0[_0x4d2566([0x73,0x70,0x6c,0x69,0x74])](_0x4d2566([0x2e])),[_0x325cff,_0x5447ca,_0x4450f8]=_0x414d63;return _0x5c9624(_0x325cff),await _0x2c9970(_0x325cff,_0x5447ca,_0x4450f8),_0x5eb347;}catch(_0x237a49){return!0x1;}function _0x5c9624(_0x15163d){const _0x400bd9=_0xc8ebde(_0x15163d);_0x400bd9&&_0x400bd9[_0x4d2566([0x61,0x6c,0x67])]==_0x4d2566([0x45,0x53,0x32,0x35,0x36])||(_0x5eb347=!0x1);}async function _0x2c9970(_0x4dbb4b,_0x12bd29,_0x9731ba){const _0x4a90ff=window[_0x4d2566([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d2566([0x66,0x72,0x6f,0x6d])](_0x3b1b36(_0x9731ba),_0x5222f9=>_0x5222f9[_0x4d2566([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d267d=new window[(_0x4d2566([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d2566([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4dbb4b+_0x4d2566([0x2e])+_0x12bd29),_0x4e230c=window[_0x4d2566([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d2566([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e230c)return;const _0x8adb9e=await _0x4e230c[_0x4d2566([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d2566([0x6a,0x77,0x6b]),_0x5ea0a8,{[_0x4d2566([0x6e,0x61,0x6d,0x65])]:_0x4d2566([0x45,0x43,0x44,0x53,0x41]),[_0x4d2566([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d2566([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d2566([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e230c[_0x4d2566([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d2566([0x6e,0x61,0x6d,0x65])]:_0x4d2566([0x45,0x43,0x44,0x53,0x41]),[_0x4d2566([0x68,0x61,0x73,0x68])]:{[_0x4d2566([0x6e,0x61,0x6d,0x65])]:_0x4d2566([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8adb9e,_0x4a90ff,_0x4d267d)||(_0x5eb347=!0x1);}}function _0xc8ebde(_0x4543a9){return _0x4543a9[_0x4d2566([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d2566([0x65,0x79]))?JSON[_0x4d2566([0x70,0x61,0x72,0x73,0x65])](_0x3b1b36(_0x4543a9)):null;}function _0x3b1b36(_0x119ae2){return window[_0x4d2566([0x61,0x74,0x6f,0x62])](_0x119ae2[_0x4d2566([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d2566([0x2b]))[_0x4d2566([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d2566([0x2f])));}function _0x383e18(_0x539d93){let _0x457985=0x1505;function _0x45de88(_0x465a9d){for(let _0x10be66=0x0;_0x10be66<_0x465a9d[_0x4d2566([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10be66++){const _0x146126=_0x465a9d[_0x4d2566([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10be66);_0x457985=(_0x457985<<0x5)+_0x457985+_0x146126,_0x457985&=_0x457985;}}function _0x5adc04(_0x2dd4e1){Array[_0x4d2566([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dd4e1)?_0x2dd4e1[_0x4d2566([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5adc04):_0x2dd4e1&&typeof _0x2dd4e1==_0x4d2566([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d2566([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dd4e1)[_0x4d2566([0x73,0x6f,0x72,0x74])]()[_0x4d2566([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51ff5e,_0x48c267])=>{_0x45de88(_0x51ff5e),_0x5adc04(_0x48c267);}):_0x45de88(window[_0x4d2566([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dd4e1));}return _0x5adc04(_0x539d93),_0x457985>>>0x0;}function _0xd117c8(_0x1f6204){return _0x1f6204[_0x4d2566([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d2566([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d2566([0x30]));}function _0x2bfb41(_0x2ec477){return _0x2ec477[_0x4d2566([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d2566([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d2566([0x6a,0x6f,0x69,0x6e])]('');}function _0xae5787(_0x14e3a6){return _0x20602c[_0x4d2566([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d2566([0x68,0x61,0x73])](_0x14e3a6);}function _0xf1df5f(_0x19f236){return _0x20602c[_0x4d2566([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d2566([0x67,0x65,0x74])](_0x19f236);}function _0x1a2412(){}function _0x4d2566(_0xa249da){return _0xa249da['map'](_0x1dbe45=>String['fromCharCode'](_0x1dbe45))['join']('');}_0x596f44(await _0x5aa9c4());}(this);}set['adapter'](_0x560388){if(this['_adapter'])throw new _0x120ce8('track-changes-adapter-already-set',this);this['_adapter']=_0x560388;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x87c5d2=!0x1,toJSON:_0x2ce283=!0x1}={}){const _0x417ac4=[];for(const _0x21a430 of this['_suggestions']['values']())_0x87c5d2&&!_0x21a430['isInContent']||_0x417ac4['push'](_0x21a430);return _0x2ce283?_0x417ac4['map'](_0x4eb85f=>_0x4eb85f['toJSON']()):_0x417ac4;}['getSuggestion'](_0x49040e){const _0x1c91fc=this['_suggestions']['get'](_0x49040e);if(!_0x1c91fc)throw new _0x120ce8('track-changes-suggestion-not-found',this);return _0x1c91fc;}['hasSuggestion'](_0x3f13c1){return this['_suggestions']['has'](_0x3f13c1);}['addSuggestionData'](_0x1e7533){const {authorId:_0x5197be,id:_0x1725b7,attributes:_0x108ba7}=_0x1e7533,[_0x1f3918,_0x4be690]=_0x1e7533['type']['split'](':'),_0x7f561d=this['_suggestions']['get'](_0x1725b7)||this['_createSuggestion'](_0x1f3918,_0x4be690,_0x1725b7,_0x5197be,_0x108ba7);if(this['_addThreadToSuggestion'](_0x7f561d),this['_checkSuggestionCorrectness'](_0x7f561d,_0x1f3918,_0x4be690||null,_0x5197be),_0x7f561d['createdAt']=_0x1e7533['createdAt'],_0x7f561d['_isDataLoaded']=!0x0,_0x108ba7&&_0x108ba7['@external']){const _0x931db5=_0x108ba7['@external'],_0x53074b=this['_getExternalAuthor'](_0x931db5['authorName']);_0x7f561d['authoredAt']=_0x931db5['createdAt'],_0x7f561d['author']=_0x53074b,_0x7f561d['isExternal']=!0x0;}else _0x7f561d['authoredAt']=_0x1e7533['createdAt'];switch(_0x1e7533['data']&&(_0x7f561d['data']=_0x1e7533['data']),_0x1e7533['attributes']&&(_0x7f561d['attributes']=_0x1e7533['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x7f561d['_saved']=!0x0),this['_suggestionState']['get'](_0x7f561d)){case'notReady':this['_suggestionState']['set'](_0x7f561d,'dataReady');break;case'markerReady':_0x7f561d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x7f561d])),this['_refreshSuggestionsChain'](new Set([_0x7f561d])),this['_suggestionState']['set'](_0x7f561d,'ready'),this['fire']('suggestionLoaded',_0x7f561d)):this['_suggestionState']['set'](_0x7f561d,'removed');}return _0x7f561d;}['acceptSuggestion'](_0x5124b2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x371f8e of _0x5124b2['getAllAdjacentSuggestions']())_0x371f8e['accept']();});});}['discardSuggestion'](_0x337961){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14b2c2 of _0x337961['getAllAdjacentSuggestions']())_0x14b2c2['discard']();});});}['enableCommand'](_0x497b55,_0x2b2171){const _0x410fd7=this['editor']['commands']['get'](_0x497b55);if(!_0x410fd7)throw new _0x120ce8('track-changes-command-not-found',this,{'commandName':_0x497b55});if(this['_enabledCommands']['has'](_0x410fd7))throw new _0x120ce8('track-changes-enable-command-twice',this,{'commandName':_0x497b55});this['_enabledCommands']['add'](_0x410fd7),_0x2b2171&&_0x410fd7['on']('execute',(_0xd9d7c8,_0x140e99)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x140e99['length']>0x0&&_0x140e99[_0x140e99['length']-0x1]&&_0x140e99[_0x140e99['length']-0x1]['forceDefaultExecution']?_0x140e99['pop']():(_0xd9d7c8['return']=_0x2b2171((..._0xe8e35b)=>_0x410fd7['execute'](..._0xe8e35b,{'forceDefaultExecution':!0x0}),..._0x140e99),_0xd9d7c8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3a57f1){let _0x549136,_0x34b641;const _0x34031d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x549136=_0x3a57f1();}catch(_0x8fd06){_0x34b641=_0x8fd06;}return _0x34031d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x34b641&&_0x120ce8['rethrowUnexpectedError'](_0x34b641,this),_0x549136;}['markInsertion'](_0x3ea21b,_0x5ddb70=null,_0x4a01c4={}){if(_0x3ea21b['isCollapsed'])return null;const _0x4ff4d3=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xcd86d2,meta:_0x5e0c9f}of this['_findSuggestions'](_0x3ea21b,'insertion'))if(_0x5e0c9f['isOwn']){if(!_0x5e0c9f['isNextTo']){if(_0x5e0c9f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0xcd86d2,_0x4a01c4))continue;return _0xcd86d2;}if(Qt(_0xcd86d2,_0x4a01c4))return _0xcd86d2;this['_breakSuggestionMarker'](_0xcd86d2,_0x3ea21b['start'],_0x3ea21b['end']);break;}if(_0x5ddb70==_0xcd86d2['subType']&&Qt(_0xcd86d2,_0x4a01c4)){const _0x3cfc26=_0xcd86d2['getFirstRange']();return _0x3cfc26['start']['isEqual'](_0x3ea21b['end'])?this['_setSuggestionRange'](_0xcd86d2,this['_model']['createRange'](_0x3ea21b['start'],_0x3cfc26['end'])):this['_setSuggestionRange'](_0xcd86d2,this['_model']['createRange'](_0x3cfc26['start'],_0x3ea21b['end'])),_0xcd86d2;}}const _0x9116a1=_0x543df7(),_0x48ff40=_0x4ff4d3['id'],_0x531ff9=_0x5ddb70?'insertion:'+_0x5ddb70:'insertion',_0x156b09=this['_setSuggestionData']({'id':_0x9116a1,'type':_0x531ff9,'createdAt':new Date(),'authorId':_0x48ff40,'attributes':_0x4a01c4});return this['_addSuggestionMarker'](_0x531ff9,_0x9116a1,_0x48ff40,_0x3ea21b),_0x156b09;}['markMultiRangeInsertion'](_0x9cb08d,_0x5fbaff='multi',_0x1ba75f={}){const _0xe03eb=this['editor']['plugins']['get']('Users')['me'],_0xea4f47=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5fbaff,'join');for(const _0x2777b5 of this['getSuggestions']())if(_0x2777b5['author']['id']==_0xe03eb['id']&&'insertion'==_0x2777b5['type']&&_0x2777b5['subType']==_0x5fbaff&&Qt(_0x2777b5,_0x1ba75f)&&(_0xea4f47(_0x2777b5['getRanges'](),_0x9cb08d)||_0xea4f47(_0x9cb08d,_0x2777b5['getRanges']()))){for(const _0x552ff4 of _0x9cb08d)_0x2777b5['addRange'](_0x552ff4);return _0x2777b5;}for(const {suggestion:_0x3f6472,meta:_0x3a2ea6}of this['_findSuggestions'](_0x9cb08d,'insertion')){if(!_0x3a2ea6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a2ea6['containsRangeInObject'])continue;if(!Qt(_0x3f6472,_0x1ba75f))continue;let _0x917298=!0x0;for(const _0xff2434 of _0x3f6472['getRanges']())for(const _0x583dc6 of _0x9cb08d)if(!_0xff2434['containsRange'](_0x583dc6)){_0x917298=!0x1;break;}if(_0x917298)return _0x3f6472;}const _0x49d929=_0x543df7(),_0x4f5724=_0xe03eb['id'],_0x1a38d7='insertion:'+_0x5fbaff,_0x21b0d2=this['_setSuggestionData']({'id':_0x49d929,'type':_0x1a38d7,'createdAt':new Date(),'authorId':_0x4f5724,'attributes':_0x1ba75f});for(const _0x25e9d9 of _0x9cb08d)this['_addSuggestionMarker'](_0x1a38d7,_0x49d929,_0x4f5724,_0x25e9d9,u['getMultiRangeId']());return _0x21b0d2;}['markInlineFormat'](_0xba896e,_0x13920a,_0x5e5d13=null,_0x59a570={}){if(_0x5e5d13=_0x5e5d13||Jt(_0x13920a),_0xba896e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2cbc09=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e5d13,'accept');return this['forceDefaultExecution'](()=>_0x2cbc09([_0xba896e],_0x13920a,_0x59a570)),null;}const _0x38f1b2=this['editor']['plugins']['get']('Users')['me'],_0x5a6c2e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2dd442,meta:_0x610811}of this['_findSuggestions'](_0xba896e,'insertion'))_0x610811['isOwn']&&!_0x610811['isInsideObject']&&_0x5a6c2e['push'](..._0x2dd442['getRanges']());}const _0x32690a=function(_0x5d2915,_0x24950d){const _0x1d88d6=[];for(const _0x3e107f of _0x24950d){const _0x22939c=_0x5d2915['getIntersection'](_0x3e107f);_0x22939c&&_0x1d88d6['push'](_0x22939c);}return _0x1d88d6;}(_0xba896e,_0x5a6c2e),_0x1b6614=function(_0x5775f0,_0x36b2b4){const _0x379063=[_0x5775f0];for(const _0x4c586d of _0x36b2b4){let _0x356ad0=0x0;for(;_0x356ad0<_0x379063['length'];){const _0x476c78=_0x379063[_0x356ad0]['getDifference'](_0x4c586d);_0x379063['splice'](_0x356ad0,0x1,..._0x476c78),_0x356ad0+=_0x476c78['length'];}}return _0x379063;}(_0xba896e,_0x5a6c2e);_0x32690a['length']&&this['_model']['change'](()=>{for(const _0x4ceebc of _0x32690a){const _0x360bb1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e5d13,'accept');this['forceDefaultExecution'](()=>_0x360bb1([_0x4ceebc],_0x13920a,_0x59a570));}});for(const _0x4aef15 of _0x1b6614){let _0x25c47e=null,_0x43c36c=_0x4aef15['start'],_0xf22476=_0x4aef15['end'];for(const {suggestion:_0x19b006,meta:_0x15f0e2}of this['_findSuggestions'](_0x4aef15,'formatInline')){if(!_0x15f0e2['isOwn'])continue;if(_0x19b006['subType']!=_0x5e5d13)continue;if(!Qt(_0x19b006,_0x59a570))continue;const _0x38367c=_0x19b006['getFirstRange']();if(_0x38367c['containsRange'](_0x4aef15,!0x0))return null;_0x43c36c=_0x43c36c['isBefore'](_0x38367c['start'])?_0x43c36c:_0x38367c['start'],_0xf22476=_0xf22476['isAfter'](_0x38367c['end'])?_0xf22476:_0x38367c['end'],_0x25c47e?_0x38367c['start']['isBefore'](_0x25c47e['getFirstRange']()['start'])?(_0x25c47e['removeMarkers'](),_0x25c47e=_0x19b006):_0x19b006['removeMarkers']():_0x25c47e=_0x19b006;}const _0x12536d=this['_model']['createRange'](_0x43c36c,_0xf22476);if(_0x25c47e)this['_setSuggestionRange'](_0x25c47e,_0x12536d);else{const _0x20b8da=_0x543df7(),_0x4def26=_0x38f1b2['id'];this['_setSuggestionData']({'id':_0x20b8da,'type':'formatInline:'+_0x5e5d13,'data':_0x13920a,'createdAt':new Date(),'authorId':_0x4def26,'attributes':_0x59a570}),this['_addSuggestionMarker']('formatInline:'+_0x5e5d13,_0x20b8da,_0x4def26,_0x12536d);}}return null;}['markBlockFormat'](_0x4e7187,_0x3de4d4,_0x3508cf=[],_0xb3e755=null,_0x31c31a={}){_0x3de4d4['formatGroupId']||(_0x3de4d4['formatGroupId']=_0x3de4d4['commandName']),_0x3de4d4['multipleBlocks']=_0x4e7187['is']('range'),_0xb3e755=_0xb3e755||Jt(_0x3de4d4);const _0x5f26f7=_0x3508cf['map'](_0xc03004=>zt(_0xc03004,this['_model'])),_0x54ff7c=_0x4e7187['is']('range')?_0x4e7187:zt(_0x4e7187,this['_model']);if('never'===this['_trackFormatChanges']){const _0x858c43=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb3e755,'accept');return this['forceDefaultExecution'](()=>_0x858c43([_0x54ff7c],_0x3de4d4,_0x31c31a)),null;}_0x5f26f7['push'](_0x54ff7c);let _0x2a20b0=!0x0;for(const _0x410b72 of _0x5f26f7)if(!this['_rangeIsInLocalUserInsertion'](_0x410b72)){_0x2a20b0=!0x1;break;}if(_0x2a20b0&&'always'!==this['_trackFormatChanges']){const _0x2705b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb3e755,'accept');return this['forceDefaultExecution'](()=>_0x2705b8([_0x54ff7c],_0x3de4d4,_0x31c31a)),null;}let _0x509095=null,_0x2df43c=_0x54ff7c['start'],_0xd2e3dc=_0x54ff7c['end'];for(const {suggestion:_0xd29399,meta:_0x40f4ce}of this['_findSuggestions'](_0x54ff7c,'formatBlock')){if(!_0x40f4ce['isOwn'])continue;if(_0x40f4ce['isNextTo']||_0x40f4ce['containsRangeInObject']||_0x40f4ce['isInsideObject'])continue;if(_0xd29399['data']['formatGroupId']!=_0x3de4d4['formatGroupId'])continue;if(!Qt(_0xd29399,_0x31c31a))continue;const _0x14b425=_0xd29399['getFirstRange']();if(_0xd29399['subType']==_0xb3e755){if(_0x14b425['containsRange'](_0x54ff7c,!0x0))return null;_0x2df43c=_0x2df43c['isBefore'](_0x14b425['start'])?_0x2df43c:_0x14b425['start'],_0xd2e3dc=_0xd2e3dc['isAfter'](_0x14b425['end'])?_0xd2e3dc:_0x14b425['end'],_0x509095?_0x14b425['start']['isBefore'](_0x509095['getFirstRange']()['start'])?(_0x509095['removeMarkers'](),_0x509095=_0xd29399):_0xd29399['removeMarkers']():_0x509095=_0xd29399;}else{const _0x3cc212=_0x54ff7c['getIntersection'](_0x14b425);this['_cutOutSuggestionMarker'](_0xd29399,_0x3cc212);}}const _0x350a6b=this['editor']['plugins']['get']('Users')['me'],_0x101d43=_0x543df7(),_0x2d93e2=_0x350a6b['id'];if(_0x509095)return this['_setSuggestionRange'](_0x509095,this['_model']['createRange'](_0x2df43c,_0xd2e3dc)),_0x509095;{const _0x227866=this['_setSuggestionData']({'id':_0x101d43,'type':'formatBlock:'+_0xb3e755,'data':_0x3de4d4,'createdAt':new Date(),'authorId':_0x2d93e2,'attributes':_0x31c31a});return this['_addSuggestionMarker']('formatBlock:'+_0xb3e755,_0x101d43,_0x2d93e2,this['_model']['createRange'](_0x2df43c,_0xd2e3dc)),_0x227866;}}['markMultiRangeBlockFormat'](_0xda0a82,_0x32c1f2,_0x5cd1b6=[],_0x4e3846=null,_0xa63d29={}){_0x32c1f2['formatGroupId']||(_0x32c1f2['formatGroupId']=_0x32c1f2['commandName']);const _0x288ee1=_0xda0a82[0x0];_0x32c1f2['multipleBlocks']=_0x288ee1['is']('range'),_0x4e3846=_0x4e3846||Jt(_0x32c1f2);const _0x3a1008=_0x5cd1b6['map'](_0x31315d=>zt(_0x31315d,this['_model'])),_0x57c1e0=_0x288ee1['is']('range')?_0xda0a82:_0xda0a82['map'](_0x2c321c=>zt(_0x2c321c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x212294=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e3846,'accept');return this['forceDefaultExecution'](()=>_0x212294(_0x57c1e0,_0x32c1f2,_0xa63d29)),null;}_0x3a1008['push'](..._0x57c1e0);let _0x140e8e=!0x0;for(const _0x3cbd78 of _0x3a1008)if(!this['_rangeIsInLocalUserInsertion'](_0x3cbd78)){_0x140e8e=!0x1;break;}if(_0x140e8e&&'always'!==this['_trackFormatChanges']){const _0xec5ca1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e3846,'accept');return this['forceDefaultExecution'](()=>_0xec5ca1(_0x57c1e0,_0x32c1f2,_0xa63d29)),null;}const _0x19d6a7=this['editor']['plugins']['get']('Users')['me'];for(const _0x20fcfc of this['getSuggestions']()){if(_0x20fcfc['author']['id']!=_0x19d6a7['id'])continue;if('formatBlock'!=_0x20fcfc['type']||_0x20fcfc['data']['formatGroupId']!=_0x32c1f2['formatGroupId'])continue;if(!Qt(_0x20fcfc,_0xa63d29))continue;const _0x546b2b=_0x20fcfc['subType']==_0x4e3846;for(let _0x3f01b2=0x0;_0x3f01b2<_0x57c1e0['length'];_0x3f01b2++){const _0x1af275=_0x57c1e0[_0x3f01b2];for(const _0x33aeca of _0x20fcfc['getMarkers']()){const _0x3748f4=_0x33aeca['getRange']();if(_0x1af275['isEqual'](_0x3748f4)){_0x546b2b?(_0x57c1e0['splice'](_0x3f01b2,0x1),_0x3f01b2--):_0x20fcfc['removeMarker'](_0x33aeca['name']);break;}}}}if(0x0==_0x57c1e0['length'])return null;const _0x8e73c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e3846,'join');for(const _0x1e38f5 of this['getSuggestions']())if(_0x1e38f5['author']['id']==_0x19d6a7['id']&&'formatBlock'==_0x1e38f5['type']&&_0x1e38f5['data']['formatGroupId']==_0x32c1f2['formatGroupId']&&_0x1e38f5['subType']==_0x4e3846&&Qt(_0x1e38f5,_0xa63d29)&&(_0x8e73c8(_0x1e38f5['getRanges'](),_0x57c1e0)||_0x8e73c8(_0x57c1e0,_0x1e38f5['getRanges']()))){for(const _0x55fd14 of _0x57c1e0)_0x1e38f5['addRange'](_0x55fd14);return _0x1e38f5;}const _0x151fb2=_0x543df7(),_0x578825=_0x19d6a7['id'],_0x484105='formatBlock:'+_0x4e3846,_0x56634a=this['_setSuggestionData']({'id':_0x151fb2,'type':_0x484105,'data':_0x32c1f2,'createdAt':new Date(),'authorId':_0x578825,'attributes':_0xa63d29});for(const _0x592cce of _0x57c1e0)this['_addSuggestionMarker'](_0x484105,_0x151fb2,_0x578825,_0x592cce,u['getMultiRangeId']());return _0x56634a;}['markDeletion'](_0x4755a1,_0x242963=null,_0x14af68={}){if(_0x4755a1['isCollapsed'])return null;const _0x54bdf4=this['editor']['plugins']['get']('Users')['me'],_0x186e56=new _0x10a588(_0x4755a1['start'],_0x4755a1['end']);for(const {suggestion:_0x33aade,meta:_0x16f4d2}of this['_findSuggestions'](_0x186e56,'insertion'))if(_0x16f4d2['isOwn']&&!_0x16f4d2['isNextTo']){if(_0x33aade['isMultiRange']){const _0x5d7652=_0x33aade['getRanges']()['filter'](_0x3110f4=>'$graveyard'!=_0x3110f4['root']['rootName']);_0x5d7652['every'](_0x28f317=>_0x186e56['containsRange'](_0x28f317,!0x0))&&_0x33aade['discard']();if(_0x5d7652['some'](_0x323c5f=>_0x323c5f['containsRange'](_0x186e56,!0x0))){const _0x1b9873=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x242963,'accept');return this['forceDefaultExecution'](()=>_0x1b9873([_0x186e56],null,_0x14af68)),null;}}else{const _0x58d92d=_0x186e56['getIntersection'](_0x33aade['getFirstRange']());null!==_0x58d92d&&_0x33aade['_onDiscard']([_0x58d92d],null,_0x14af68);}}if(_0x186e56['detach'](),_0x186e56['isCollapsed']||'$graveyard'==_0x186e56['root']['rootName'])return null;let _0x42e3af=null,_0x2a0a38=_0x186e56['start'],_0x1ea621=_0x186e56['end'];const _0x5d21e0=this['_findSuggestions'](_0x186e56,'deletion');for(const {suggestion:_0x3f3f15,meta:_0xcec251}of _0x5d21e0){const _0x21247b=this['_model']['createRange'](_0x2a0a38,_0x1ea621);if(_0xcec251['isOwn']&&(this['_mergeNestedSuggestions']||!_0xcec251['containsRangeInObject']&&!_0xcec251['isInsideObject'])){if(_0x3f3f15['isMultiRange']){if(!Qt(_0x3f3f15,_0x14af68))continue;let _0x44b5b1=!0x0;for(const _0x3e252e of _0x3f3f15['getRanges']()){if(_0x3e252e['containsRange'](_0x21247b,!0x0))return _0x3f3f15;_0x21247b['containsRange'](_0x3e252e)||(_0x44b5b1=!0x1);}_0x44b5b1&&_0x3f3f15['discard']();}else{const _0x140187=_0x3f3f15['getFirstRange']();if(_0x140187['containsRange'](_0x21247b,!0x0))return _0x3f3f15;if(!Qt(_0x3f3f15,_0x14af68)){_0x21247b['containsRange'](_0x140187)?_0x3f3f15['removeMarkers']():_0x140187['containsPosition'](_0x2a0a38)?_0x2a0a38=_0x140187['end']:_0x140187['containsPosition'](_0x1ea621)&&(_0x1ea621=_0x140187['start']);continue;}_0x2a0a38=_0x2a0a38['isBefore'](_0x140187['start'])?_0x2a0a38:_0x140187['start'],_0x1ea621=_0x1ea621['isAfter'](_0x140187['end'])?_0x1ea621:_0x140187['end'],_0x14af68=Object['assign']({},_0x3f3f15['attributes']),_0x42e3af?_0x140187['start']['isBefore'](_0x42e3af['getFirstRange']()['start'])?(_0x42e3af['removeMarkers'](),_0x42e3af=_0x3f3f15):_0x3f3f15['removeMarkers']():_0x42e3af=_0x3f3f15;}}}if(_0x42e3af)return this['_setSuggestionRange'](_0x42e3af,this['_model']['createRange'](_0x2a0a38,_0x1ea621)),_0x42e3af;{const _0x1fe398=_0x543df7(),_0x38b16f=this['_model']['createRange'](_0x2a0a38,_0x1ea621),_0x146011=_0x54bdf4['id'],_0x26e202=_0x242963?'deletion:'+_0x242963:'deletion',_0xcfbfc3=this['_setSuggestionData']({'id':_0x1fe398,'type':_0x26e202,'createdAt':new Date(),'authorId':_0x146011,'attributes':_0x14af68});return this['_addSuggestionMarker'](_0x26e202,_0x1fe398,_0x146011,_0x38b16f),_0xcfbfc3;}}['markMultiRangeDeletion'](_0x515da3,_0x5a58d5='multi',_0x31713c={}){const _0x539448=this['editor']['plugins']['get']('Users')['me'],_0x1f3a97=_0x515da3['map'](_0x23c06a=>new _0x10a588(_0x23c06a['start'],_0x23c06a['end'])),_0x13d91e=new Set();for(const {suggestion:_0x413aca,meta:_0x3813d9}of this['_findSuggestions'](_0x1f3a97,'insertion'))_0x3813d9['isOwn']&&!_0x3813d9['isNextTo']&&_0x13d91e['add'](_0x413aca);for(const _0x4f8d80 of _0x13d91e)if(_0x4f8d80['isMultiRange']){const _0x192ea7=_0x4f8d80['getRanges']();(!_0x4f8d80['attributes']||!_0x4f8d80['attributes']['skipNestingCheck'])&&(_0x192ea7['every'](_0x6b5023=>_0x1f3a97['some'](_0x3683f3=>_0x3683f3['containsRange'](_0x6b5023,!0x0)))&&_0x4f8d80['discard']());if(_0x1f3a97['every'](_0x32324f=>_0x192ea7['some'](_0x335cbe=>_0x335cbe['containsRange'](_0x32324f,!0x0)))){const _0x3b1b21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a58d5,'accept');return this['forceDefaultExecution'](()=>_0x3b1b21(_0x515da3,null,_0x31713c)),null;}}else{const _0x2c7cf5=_0x4f8d80['getFirstRange']();_0x1f3a97['some'](_0x4eb29a=>_0x4eb29a['containsRange'](_0x2c7cf5,!0x0))&&_0x4f8d80['discard']();if(_0x1f3a97['every'](_0x1d923d=>_0x2c7cf5['containsRange'](_0x1d923d,!0x0))){const _0x32c4de=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a58d5,'accept');return this['forceDefaultExecution'](()=>_0x32c4de(_0x1f3a97,null,_0x31713c)),null;}}const _0x11149e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a58d5,'join');let _0x21cc99=null;for(const _0x488f8a of this['getSuggestions']())if(_0x488f8a['author']['id']==_0x539448['id']&&_0x488f8a['isInContent']&&'deletion'==_0x488f8a['type']&&_0x488f8a['subType']==_0x5a58d5&&Qt(_0x488f8a,_0x31713c)&&(_0x11149e(_0x488f8a['getRanges'](),_0x1f3a97)||_0x11149e(_0x1f3a97,_0x488f8a['getRanges']()))){if(_0x21cc99){if(_0x488f8a['commentThread']&&_0x488f8a['commentThread']['length'])continue;for(const _0x5a43c8 of _0x488f8a['getRanges']())_0x21cc99['isIntersectingWithRange'](_0x5a43c8)||_0x21cc99['addRange'](_0x5a43c8);_0x488f8a['removeMarkers']();}else{_0x21cc99=_0x488f8a;for(const _0x117ef9 of _0x1f3a97)_0x488f8a['isIntersectingWithRange'](_0x117ef9)||_0x488f8a['addRange'](_0x117ef9);}}if(_0x21cc99)return _0x21cc99;_0x13d91e['clear']();for(const {suggestion:_0x1f819d,meta:_0x15612b}of this['_findSuggestions'](_0x1f3a97,'deletion'))_0x15612b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15612b['containsRangeInObject']&&!_0x15612b['isInsideObject'])&&Qt(_0x1f819d,_0x31713c)&&_0x13d91e['add'](_0x1f819d);for(const _0x184cc5 of _0x13d91e){const _0x11bb4e=_0x184cc5['getRanges']();if(!_0x31713c||!_0x31713c['skipNestingCheck']){if(_0x1f3a97['every'](_0x4628c8=>_0x11bb4e['some'](_0x2e3511=>_0x2e3511['containsRange'](_0x4628c8,!0x0))))return _0x184cc5;}(!_0x184cc5['attributes']||!_0x184cc5['attributes']['skipNestingCheck'])&&(_0x11bb4e['every'](_0xa9f4fa=>_0x1f3a97['some'](_0x33d374=>_0x33d374['containsRange'](_0xa9f4fa,!0x0)))&&_0x184cc5['discard']());}const _0x31ec4e=_0x543df7(),_0x241d9e=_0x539448['id'],_0x3643a1='deletion:'+_0x5a58d5,_0xa1be3=this['_setSuggestionData']({'id':_0x31ec4e,'type':_0x3643a1,'createdAt':new Date(),'authorId':_0x241d9e,'attributes':_0x31713c});for(const _0x199d5e of _0x1f3a97)_0x199d5e['detach'](),_0x199d5e['isCollapsed']||'$graveyard'==_0x199d5e['root']['rootName']||this['_addSuggestionMarker'](_0x3643a1,_0x31ec4e,_0x241d9e,_0x199d5e,u['getMultiRangeId']());return _0xa1be3;}['markAttributeChange'](_0x3b2bdc,_0x4b61b1,_0x5c2de3,_0x5510bb,_0x3568b5){if(_0x3b2bdc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x36f078=this['editor']['plugins']['get']('Users')['me']['id'],_0x4bbed6=Array['from'](this['_suggestions']['values']())['filter'](_0x51c9d5=>'attribute'==_0x51c9d5['type']&&_0x51c9d5['data']['key']==_0x4b61b1&&_0x51c9d5['isIntersectingWithRange'](_0x3b2bdc));if('default'===this['_trackFormatChanges']){const _0x35635b=this['_findSuggestions'](_0x3b2bdc,'insertion')['filter'](({meta:_0x2217b6})=>_0x2217b6['isOwn']&&!_0x2217b6['isInsideObject']&&!_0x2217b6['isNextTo'])['map'](({suggestion:_0x40cc13})=>_0x40cc13);_0x4bbed6['unshift'](..._0x35635b);}const _0x449aab=new Map([[_0x3b2bdc,_0x5c2de3]]);for(const _0x211b88 of _0x4bbed6){const _0x4d3a77='attribute'==_0x211b88['type']?_0x211b88['data']['oldValue']:void 0x0,_0x15ec96=_0x211b88['getFirstRange'](),_0x2cd640=Array['from'](_0x449aab['keys']())['find'](_0x4e6250=>_0x4e6250['isIntersecting'](_0x15ec96));if(!_0x2cd640)continue;const _0x500a63=_0x2cd640['getDifference'](_0x15ec96);this['_isBlockAttribute'](_0x4b61b1)&&'insertion'==_0x211b88['type']&&0x0!=_0x500a63['length']||(_0x449aab['delete'](_0x2cd640),_0x500a63['forEach'](_0x183873=>{_0x449aab['set'](_0x183873,_0x5c2de3);}),'insertion'!=_0x211b88['type']&&_0x4d3a77!=_0x5510bb&&_0x449aab['set'](_0x2cd640['getIntersection'](_0x15ec96),_0x4d3a77));}const _0x4c8579=[];for(const [_0x21a3c8,_0x402b3c]of _0x449aab){const _0x540e0b=_0x543df7(),_0x51501d={'key':_0x4b61b1,'oldValue':_0x402b3c,'newValue':_0x5510bb};_0x4b61b1['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':_0x4b61b1});const _0x1182e8=('attribute:'+(_0x4b61b1+'|'+Jt({'newValue':_0x5510bb})))['substring'](0x0,0x3c),_0x12dc9b=this['_setSuggestionData']({'id':_0x540e0b,'type':_0x1182e8,'data':_0x51501d,'createdAt':new Date(),'authorId':_0x36f078,'attributes':_0x3568b5});_0x4c8579['push'](_0x12dc9b),this['_addSuggestionMarker'](_0x1182e8,_0x540e0b,_0x36f078,_0x21a3c8);}return _0x4c8579;}['enableDefaultAttributesIntegration'](_0x253ba1){this['enableCommand'](_0x253ba1,(_0x468988,..._0x5bd1aa)=>{this['_recordAttributeChanges'](()=>{_0x468988(..._0x5bd1aa);});});}['registerBlockAttribute'](_0x5a4213){this['_blockAttributeKeys']['add'](_0x5a4213);}['registerInlineAttribute'](_0x1c8182){this['_inlineAttributeKeys']['add'](_0x1c8182);}['_getAttributeKey'](_0x2d52b9){return'attribute'==_0x2d52b9['type']?_0x2d52b9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x54035d,_0x40305b){const _0x21b17e=_0x54035d['getFirstMarker']();this['_model']['change'](_0x3d3917=>{_0x3d3917['updateMarker'](_0x21b17e,{'range':_0x40305b});});}['_addThreadToSuggestion'](_0x337769){const _0x42d8ba=_0x337769['id'],_0x1b971a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x42d8ba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b971a,'threadId':_0x42d8ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55929=this['_commentsRepository']['getCommentThread'](_0x42d8ba);_0x55929['unbind']('isRemovable'),_0x55929['isRemovable']=!0x1,_0x337769['commentThread']=_0x55929;}['_checkSuggestionCorrectness'](_0xa5a5a2,_0x96dd0e,_0x428fe8,_0x270e8c){if(_0xa5a5a2['type']!=_0x96dd0e||_0xa5a5a2['subType']!=_0x428fe8||_0xa5a5a2['creator']['id']!=_0x270e8c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x120ce8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5bb433,_0x32879d){const _0x577dd6=_0x5bb433['getFirstRange']();if(_0x32879d['isEqual'](_0x577dd6))_0x5bb433['removeMarkers']();else{if(_0x577dd6['containsRange'](_0x32879d)){const _0x487a99=this['_model']['createPositionAt'](_0x32879d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5bb433,this['_model']['createRange'](_0x577dd6['start'],_0x487a99));const _0x129b35=_0x543df7(),_0x416883=_0x5bb433['creator']['id'],_0x728cdf=_0x5bb433['type']+':'+_0x5bb433['subType'];this['_setSuggestionData']({'id':_0x129b35,'type':_0x728cdf,'createdAt':new Date(),'authorId':_0x416883,'data':_0x5bb433['data'],'attributes':_0x5bb433['attributes']});const _0x3295c0=this['_model']['createPositionAt'](_0x32879d['end']['parent'],'after'),_0x574120=this['_model']['createRange'](_0x3295c0,_0x577dd6['end']);this['_addSuggestionMarker'](_0x728cdf,_0x129b35,_0x416883,_0x574120);}else{if(_0x577dd6['containsPosition'](_0x32879d['start'])){const _0x2aa940=this['_model']['createPositionAt'](_0x32879d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5bb433,this['_model']['createRange'](_0x577dd6['start'],_0x2aa940));}else{const _0xf427fe=this['_model']['createPositionAt'](_0x32879d['end']['parent'],'after');this['_setSuggestionRange'](_0x5bb433,this['_model']['createRange'](_0xf427fe,_0x577dd6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13d68a){for(const {suggestion:_0x5628ce,meta:_0x5ddcb8}of this['_findSuggestions'](_0x13d68a,'insertion')){if(!_0x5ddcb8['isOwn'])continue;const _0x49ba6a=_0x5628ce['getRanges']();for(const _0x304714 of _0x49ba6a)if(!_0x13d68a['getDifference'](_0x304714)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a4946){const _0x14b89d=this['editor']['plugins']['get']('Users')['getUser'](_0x1a4946);if(!_0x14b89d)throw new _0x120ce8('track-changes-user-not-found',this);return _0x14b89d;}['_getExternalAuthor'](_0x8d8ffb){const _0x20b956=this['editor']['plugins']['get']('Users'),_0x40ecca=_0x2f3e09('external:'+_0x8d8ffb),_0x23af68=_0x20b956['getUser'](_0x40ecca);return _0x23af68||_0x20b956['addUser']({'id':_0x40ecca,'name':_0x8d8ffb});}['_createSuggestion'](_0x2f3e74,_0x9712a5,_0x4d9ada,_0x18f72a,_0x44b970){const _0x587fbf=this['_getAuthorFromId'](_0x18f72a),_0x343463=this['_suggestionFactory']['buildSuggestion'](_0x2f3e74,_0x9712a5,_0x4d9ada,_0x587fbf,_0x44b970,_0x5dcca1=>{this['_updateSuggestionData'](_0x4d9ada,{'attributes':_0x5dcca1});const _0x57322a=this['getSuggestion'](_0x4d9ada);this['_joinWithAdjacentSuggestions'](new Set([_0x57322a])),this['_refreshSuggestionsChain'](new Set([_0x57322a]));});return this['listenTo'](_0x343463,'accept',()=>{this['_updateSuggestionData'](_0x4d9ada,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x343463,'discard',()=>{this['_updateSuggestionData'](_0x4d9ada,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d9ada,_0x343463),this['_suggestionState']['set'](_0x343463,'notReady'),_0x343463;}['_splitMarkerName'](_0x3e333e){const _0x5378e0=_0x3e333e['split'](':');return{'group':_0x5378e0[0x0],'type':_0x5378e0[0x1],'subType':_0x5378e0['length']>=0x5?_0x5378e0[0x2]:null,'id':_0x5378e0['length']<0x5?_0x5378e0[0x2]:_0x5378e0[0x3],'authorId':_0x5378e0['length']<0x5?_0x5378e0[0x3]:_0x5378e0[0x4],'markerCount':0x6==_0x5378e0['length']?_0x5378e0[0x5]:null};}['_breakSuggestionMarker'](_0xf4259e,_0x5a6632,_0x117afc){const _0x185090=_0xf4259e['getFirstRange'](),_0x46f519=_0x185090['start'],_0x178dc7=_0x185090['end'];this['_setSuggestionRange'](_0xf4259e,this['_model']['createRange'](_0x46f519,_0x5a6632));const _0x4e1a9b=_0x543df7(),_0x55b154=_0xf4259e['creator']['id'],_0x434e5a=_0xf4259e['type']+(_0xf4259e['subType']?':'+_0xf4259e['subType']:'');this['_setSuggestionData']({'id':_0x4e1a9b,'type':_0x434e5a,'createdAt':new Date(),'authorId':_0x55b154,'originalSuggestionId':_0xf4259e['id'],'attributes':_0xf4259e['attributes'],'data':_0xf4259e['data']});const _0x484f9c=this['_getAttributeKey'](_0xf4259e);('formatBlock'==_0xf4259e['type']||_0x484f9c&&this['_isBlockAttribute'](_0x484f9c))&&(_0x117afc=this['_model']['createPositionBefore'](_0x117afc['parent'])),this['_addSuggestionMarker'](_0x434e5a,_0x4e1a9b,_0x55b154,this['_model']['createRange'](_0x117afc,_0x178dc7));}['_findSuggestions'](_0x3c53a5,_0x58be84=null){const _0x397b8a=[],_0x7b47b6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c53a5)||(_0x3c53a5=[_0x3c53a5]);for(const _0x15d898 of this['getSuggestions']()){if(!_0x15d898['isInContent'])continue;if(_0x58be84&&_0x15d898['type']!=_0x58be84)continue;let _0x199497=!0x1;for(const _0x5070f6 of _0x15d898['getRanges']()){for(const _0x4c7207 of _0x3c53a5){const _0x5ab5ca=_0x4c7207['start']['isEqual'](_0x5070f6['end'])||_0x4c7207['end']['isEqual'](_0x5070f6['start']);if(_0x5ab5ca||_0x4c7207['getIntersection'](_0x5070f6)){const _0x24d2c9=_0x4c7207['containsRange'](_0x5070f6)&&Gt(this['_model']['schema'],_0x5070f6['start'],_0x4c7207),_0x1f07c4=_0x5070f6['containsRange'](_0x4c7207)&&Gt(this['_model']['schema'],_0x4c7207['start'],_0x5070f6);_0x397b8a['push']({'suggestion':_0x15d898,'meta':{'isOwn':_0x7b47b6==_0x15d898['author'],'isNextTo':_0x5ab5ca,'isInsideObject':_0x24d2c9,'containsRangeInObject':_0x1f07c4}}),_0x199497=!0x0;break;}}if(_0x199497)break;}}return _0x397b8a;}['_addSuggestionMarker'](_0x469c4d,_0x4e0862,_0x32ca38,_0x370926,_0x2d08a5){this['_model']['change'](_0x234ac1=>{let _0x200656='suggestion:'+_0x469c4d+':'+_0x4e0862+':'+_0x32ca38;_0x2d08a5&&(_0x200656=_0x200656+':'+_0x2d08a5),_0x234ac1['addMarker'](_0x200656,{'range':_0x370926,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32a1d8){const _0x462afe=_0x32a1d8['previous'],_0x26915d=_0x32a1d8['next'];_0x32a1d8['previous']=null,_0x32a1d8['next']=null,null!=_0x462afe&&_0x462afe['next']==_0x32a1d8&&(_0x462afe['next']=_0x26915d),null!=_0x26915d&&_0x26915d['previous']==_0x32a1d8&&(_0x26915d['previous']=_0x462afe),'ready'==this['_suggestionState']['get'](_0x32a1d8)&&(this['_suggestionState']['set'](_0x32a1d8,'removed'),this['fire']('suggestionUnloaded',_0x32a1d8,_0x462afe,_0x26915d));}['_setSuggestionData'](_0x133c22){const _0xd648d5=_0x133c22['id'],_0x32cc01=this['addSuggestionData'](_0x133c22);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x363f09=this['editor']['plugins']['get']('PendingActions'),_0x4de74e=_0x32cc01['hasComments'],_0x307315=_0x32cc01['subType']?_0x32cc01['type']+':'+_0x32cc01['subType']:_0x32cc01['type'],_0x10d6ab=this['editor']['locale'],_0x9c789=_0x363f09['add'](o(_0x10d6ab,'PENDING_ACTION_SUGGESTION')),_0x4276aa={'id':_0xd648d5,'type':_0x307315,'hasComments':_0x4de74e,'data':_0x133c22['data']||null,'originalSuggestionId':_0x133c22['originalSuggestionId']||null,'attributes':_0x32cc01['attributes']};this['_adapter']['addSuggestion'](_0x4276aa)['then'](_0x19b51c=>{_0x32cc01['_saved']=!0x0,_0x363f09['remove'](_0x9c789),_0x19b51c&&_0x19b51c['createdAt']&&(this['_suggestions']['get'](_0xd648d5)['createdAt']=_0x19b51c['createdAt']);})['catch'](_0x4fbc82=>{throw _0x2caaa5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32cc01['discard']();}),_0x32cc01['stopListening'](),this['_suggestions']['delete'](_0x32cc01['id']),this['_suggestionState']['delete'](_0x32cc01),_0x4fbc82;});}return _0x32cc01;}['_isBlockAttribute'](_0x208914){return this['_blockAttributeKeys']['has'](_0x208914);}['_updateSuggestionData'](_0x532b83,_0x3a90f6){const _0x2a7e81=this['editor']['plugins']['get']('PendingActions'),_0x11ed66=this['getSuggestion'](_0x532b83);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x11ed66['_saved']){const _0x473bf5=_0x2a7e81['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x532b83,_0x3a90f6)['then'](()=>{_0x2a7e81['remove'](_0x473bf5);});}else _0x11ed66['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x532b83,_0x3a90f6);});}}['_getSuggestionData'](_0x42c64e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x120ce8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x42c64e);}['_handleNewSuggestionMarker'](_0x1d466f){const {id:_0x1e7159,type:_0x3bccd3,subType:_0x5d45c7,authorId:_0x3a0736}=this['_splitMarkerName'](_0x1d466f),_0x1a800c=this['_suggestions']['get'](_0x1e7159)||this['_createSuggestion'](_0x3bccd3,_0x5d45c7,_0x1e7159,_0x3a0736,{});switch(this['_checkSuggestionCorrectness'](_0x1a800c,_0x3bccd3,_0x5d45c7,_0x3a0736),this['_suggestionState']['get'](_0x1a800c)){case'notReady':this['_getSuggestionData'](_0x1e7159)['then'](_0x3e54df=>{let _0x21a546=Promise['resolve']();_0x3e54df['hasComments']&&(_0x21a546=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e7159})),_0x21a546['then'](()=>{this['addSuggestionData'](_0x3e54df)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a800c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e7159,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a800c,'ready'),this['fire']('suggestionLoaded',_0x1a800c);break;case'ready':this['fire']('suggestionChanged',_0x1a800c);}return _0x1a800c['addMarkerName'](_0x1d466f),_0x1a800c;}['_refreshSuggestionsChain'](_0x39e34e){const _0x47f08b=Array['from'](_0x39e34e),_0x2e9195=_0x47f08b['filter'](_0x2f1ae1=>'attribute'==_0x2f1ae1['type']);this['_refreshAttributeSuggestionsChain'](_0x2e9195);const _0x4f47f0=_0x47f08b['filter'](_0x2adf21=>!_0x2adf21['isMultiRange']&&'attribute'!=_0x2adf21['type']),_0x8d9bda=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4010c3=>!_0x4010c3['isMultiRange']&&'attribute'!=_0x4010c3['type']),_0x580934=_0x8d9bda['filter'](_0x327a70=>!_0x39e34e['has'](_0x327a70)),_0xa96f51=new Map(_0x8d9bda['map'](_0x2f3607=>[_0x2f3607,this['_suggestionFactory']['getSuggestionCallback'](_0x2f3607['type'],_0x2f3607['subType'],'chain')])),_0x96b676=new Map(_0x8d9bda['map'](_0x2a6af5=>[_0x2a6af5,_0x2a6af5['getFirstRange']()])),_0xf4d837=new Set(),_0x413351=new Set();for(let _0x72adb7=0x0;_0x72adb7<_0x4f47f0['length'];_0x72adb7++)_0x318284(_0x4f47f0[_0x72adb7],_0x4f47f0,_0x72adb7+0x1);for(let _0x45ea20=0x0;_0x45ea20<_0x4f47f0['length'];_0x45ea20++)_0x318284(_0x4f47f0[_0x45ea20],_0x580934,0x0);const _0x127501=new Set();for(let _0x577e7f=0x0;_0x577e7f<_0x4f47f0['length'];_0x577e7f++){const _0xf5fc8b=_0x4f47f0[_0x577e7f];!_0x413351['has'](_0xf5fc8b)&&_0xf5fc8b['previous']&&(_0x127501['add'](_0xf5fc8b['previous']),_0xf5fc8b['previous']['next']===_0xf5fc8b&&(_0xf5fc8b['previous']['next']=null),_0xf5fc8b['previous']=null),!_0xf4d837['has'](_0xf5fc8b)&&_0xf5fc8b['next']&&(_0x127501['add'](_0xf5fc8b['next']),_0xf5fc8b['next']['previous']===_0xf5fc8b&&(_0xf5fc8b['next']['previous']=null),_0xf5fc8b['next']=null);}function _0x318284(_0x30280d,_0x544cc2,_0x257a46){for(let _0x368341=_0x257a46;_0x368341<_0x544cc2['length'];_0x368341++){const _0x2af4b4=_0x4d2d56(_0x30280d,_0x544cc2[_0x368341]);_0x2af4b4&&(_0x2af4b4[0x0]['next']=_0x2af4b4[0x1],_0x2af4b4[0x1]['previous']=_0x2af4b4[0x0],_0xf4d837['add'](_0x2af4b4[0x0]),_0x413351['add'](_0x2af4b4[0x1]));}}function _0x4d2d56(_0xa80a3c,_0x3fc0a8){if(_0xa80a3c['author']['id']!==_0x3fc0a8['author']['id'])return null;const _0x58f013=_0xa96f51['get'](_0xa80a3c)(_0xa80a3c,_0x3fc0a8,_0x96b676['get'](_0xa80a3c),_0x96b676['get'](_0x3fc0a8));if(!_0x58f013)return null;return _0xa96f51['get'](_0x3fc0a8)(_0xa80a3c,_0x3fc0a8,_0x96b676['get'](_0xa80a3c),_0x96b676['get'](_0x3fc0a8))?_0x58f013[0x1]['commentThread']&&_0x58f013[0x1]['commentThread']['length']?null:_0x58f013:null;}_0x127501['size']&&this['_refreshSuggestionsChain'](_0x127501);}['_refreshAttributeSuggestionsChain'](_0x52df87){if(0x0==_0x52df87['length'])return;const _0x265fdc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20b88d=>'attribute'==_0x20b88d['type']&&_0x20b88d['_isDataLoaded']),_0x403bb9=[],_0x3e40fb=new Map();for(const _0x41edde of _0x265fdc){const _0x11e68d=_0x2f3e09(_0x41edde['attributes']);_0x3e40fb['has'](_0x11e68d)||(_0x3e40fb['set'](_0x11e68d,_0x403bb9['length']),_0x403bb9['push']([]));const _0x2db10b=_0x3e40fb['get'](_0x11e68d);_0x403bb9[_0x2db10b]['push'](_0x41edde);}!(function(){_0x403bb9['sort']((_0x12296f,_0x471249)=>{const _0x32f19f=_0x12296f[0x0]['createdAt'],_0x53aa7c=_0x471249[0x0]['createdAt'];return _0x32f19f==_0x53aa7c?_0x12296f[0x0]['attributes']['groupId']<_0x471249[0x0]['attributes']['groupId']?-0x1:0x1:_0x32f19f<_0x53aa7c?-0x1:0x1;});for(const _0x12b0f2 of _0x403bb9)_0x12b0f2['sort']((_0x379e43,_0x45e0f0)=>_0x379e43['id']<_0x45e0f0['id']?-0x1:0x1);}());for(let _0x5925d7=0x0;_0x5925d7<_0x403bb9['length'];_0x5925d7++){if(0x0==_0x403bb9[_0x5925d7]['length'])continue;const _0x271d95=[];for(let _0x2df9d6=_0x5925d7+0x1;_0x2df9d6<_0x403bb9['length'];_0x2df9d6++)0x0!=_0x403bb9[_0x2df9d6]['length']&&_0x91a093(_0x403bb9[_0x5925d7],_0x403bb9[_0x2df9d6])&&_0x271d95['push'](_0x2df9d6);for(const _0x1995e7 of _0x271d95)_0x403bb9[_0x5925d7]=_0x403bb9[_0x5925d7]['concat'](_0x403bb9[_0x1995e7]),_0x403bb9[_0x1995e7]=[];}for(const _0x4023c6 of _0x403bb9)for(let _0x5da4d2=0x0;_0x5da4d2<_0x4023c6['length'];_0x5da4d2++){const _0x4f3fe7=_0x4023c6[_0x5da4d2+0x1]||null;_0x4023c6[_0x5da4d2]['next']!==_0x4f3fe7&&(_0x4023c6[_0x5da4d2]['next']=_0x4f3fe7);}for(const _0x440742 of _0x403bb9)for(let _0x29ddac=0x0;_0x29ddac<_0x440742['length'];_0x29ddac++){const _0x53ba3c=_0x440742[_0x29ddac-0x1]||null;_0x440742[_0x29ddac]['previous']!==_0x53ba3c&&(_0x440742[_0x29ddac]['previous']=_0x53ba3c);}function _0x91a093(_0xb21ad4,_0x5c004b){if(_0xb21ad4[0x0]['attributes']['groupId']!==_0x5c004b[0x0]['attributes']['groupId']&&_0xb21ad4[0x0]['author']!==_0x5c004b[0x0]['author'])return!0x1;if(!function(_0x67884d,_0x328d18){if(!_0x67884d['hasComments']&&!_0x328d18['hasComments'])return!0x0;if(_0x67884d['hasComments']&&_0x328d18['hasComments'])return!0x1;if(_0x67884d['hasComments']&&_0x328d18['createdAt']<_0x67884d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x328d18['hasComments']&&_0x67884d['createdAt']<_0x328d18['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb21ad4[0x0],_0x5c004b[0x0]))return!0x1;const _0x49737f=Vt(_0xb21ad4[0x0]['attributes'],'groupId'),_0x2dd454=Vt(_0x5c004b[0x0]['attributes'],'groupId');if(!_0x16559d(_0x49737f,_0x2dd454))return!0x1;return!!_0xb21ad4['every'](_0x31488b=>_0x5c004b['some'](_0x13bb82=>_0x31488b['getFirstRange']()['isEqual'](_0x13bb82['getFirstRange']())))&&_0x5c004b['every'](_0x277e3b=>_0xb21ad4['some'](_0x1f6439=>_0x277e3b['getFirstRange']()['isEqual'](_0x1f6439['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x51990){const _0x2ca6a8=Array['from'](_0x51990),_0xda6205=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c175a=_0xda6205['filter'](_0x23b7c6=>!_0x51990['has'](_0x23b7c6)),_0x208afb=new Map(_0x2ca6a8['map'](_0x2d543e=>[_0x2d543e,this['_suggestionFactory']['getSuggestionCallback'](_0x2d543e['type'],_0x2d543e['subType'],'join')])),_0x32b8a8=new Map(_0xda6205['map'](_0x192a01=>[_0x192a01,_0x192a01['getRanges']()]));for(let _0x2ce206=0x0;_0x2ce206<_0x2ca6a8['length'];_0x2ce206++){if(_0x2ffd7d(this,_0x2ca6a8[_0x2ce206],_0x2ca6a8,_0x2ce206+0x1))return!0x0;}for(let _0x57dd6a=0x0;_0x57dd6a<_0x2ca6a8['length'];_0x57dd6a++){if(_0x2ffd7d(this,_0x2ca6a8[_0x57dd6a],_0x4c175a,0x0))return!0x0;}return!0x1;function _0x2ffd7d(_0x419e47,_0x5e53a2,_0x3080ff,_0x553b08){for(let _0x234f40=_0x553b08;_0x234f40<_0x3080ff['length'];_0x234f40++){const _0x4fd76c=_0x3080ff[_0x234f40];if(_0x4fd76c['type']!==_0x5e53a2['type']||_0x4fd76c['author']['id']!==_0x5e53a2['author']['id']||_0x4fd76c['subType']!==_0x5e53a2['subType'])continue;if(!Wt(_0x5e53a2,_0x4fd76c))continue;if('attribute'==_0x5e53a2['type']&&_0x5e53a2['data']['oldValue']!=_0x4fd76c['data']['oldValue'])continue;if('attribute'==_0x5e53a2['type']&&_0x419e47['_isBlockAttribute'](_0x5e53a2['data']['key']))continue;if('formatBlock'==_0x5e53a2['type']){const _0x4a332a=_0x419e47['editor']['model'],_0x52d434=_0x5e53a2['getContainedElement']();if(_0x52d434&&(_0x4a332a['schema']['isObject'](_0x52d434)||_0x4a332a['schema']['isLimit'](_0x52d434)))continue;}const _0xed4a70=_0x208afb['get'](_0x5e53a2),_0x458dc4=_0x32b8a8['get'](_0x5e53a2),_0x250c90=_0x32b8a8['get'](_0x4fd76c),_0x56653c=_0x5e53a2['commentThread']&&_0x5e53a2['commentThread']['length'],_0x27cb56=_0x4fd76c['commentThread']&&_0x4fd76c['commentThread']['length'];if(!_0x56653c&&_0xed4a70(_0x250c90,_0x458dc4))return _0x419e47['_joinSuggestions'](_0x4fd76c,_0x5e53a2),_0x32b8a8['delete'](_0x5e53a2),!0x0;if(!_0x27cb56&&_0xed4a70(_0x458dc4,_0x250c90))return _0x419e47['_joinSuggestions'](_0x5e53a2,_0x4fd76c),_0x32b8a8['delete'](_0x4fd76c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x297c1c,_0x4e414c){if(_0x297c1c['isMultiRange']){for(const _0x45de23 of _0x4e414c['getRanges']())_0x297c1c['addRange'](_0x45de23);}else{const _0x41780c=_0x4e414c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x297c1c,this['_model']['createRange'](_0x297c1c['getFirstRange']()['start'],_0x41780c));}_0x4e414c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2da89f,_0x4cf62a,_0x262b14){const _0x5dcb28=_0x2da89f['startsWith']('format')||_0x2da89f['startsWith']('attribute')?'FORMATTING':_0x2da89f['toUpperCase']();return o(this['editor']['locale'],_0x4cf62a+'_'+_0x5dcb28+'_SUGGESTION_ANNOUNCEMENT',_0x262b14);}['_initAriaMarkerChangeAnnouncements'](){const _0x4f2beb=this['editor'];if(!_0x4f2beb['ui'])return;const {ariaLiveAnnouncer:_0x276a85}=_0x4f2beb['ui'];_0x160bfb(this['_model'],({left:_0x5b1fc0,entered:_0x34c256})=>{for(const _0x25c571 of _0x5b1fc0){const {group:_0x18b280,type:_0x5c1c30}=this['_splitMarkerName'](_0x25c571['name']);if('suggestion'===_0x18b280){_0x276a85['announce'](this['_getMarkerAnnouncementText'](_0x5c1c30,'LEAVE'));break;}}for(const _0x3fb45f of _0x34c256){const {group:_0x3fc3dd,type:_0x3dc359}=this['_splitMarkerName'](_0x3fb45f['name']);if('suggestion'===_0x3fc3dd){_0x276a85['announce'](this['_getMarkerAnnouncementText'](_0x3dc359,'ENTER',_0x58fa28(_0x2ab7e2)));break;}}});}['_processAttributeChanges'](_0x4d5530){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1909ea=this['editor'],_0x57704d=_0x1909ea['model']['document']['differ']['getChanges']();if(0x0==_0x57704d['length'])return!0x1;const _0x4cc890=[],_0x4f5f2e=_0x57704d['filter'](_0xc1c137=>'attribute'==_0xc1c137['type']),_0x32e911=_0x57704d['filter'](_0x2bec91=>'insert'==_0x2bec91['type']&&'$text'!=_0x2bec91['name']),_0x2c619b=_0x57704d['filter'](_0x129123=>'remove'==_0x129123['type']&&'$text'!=_0x129123['name']);for(const _0x3d735f of _0x4f5f2e)_0x4cc890['push']({'key':_0x3d735f['attributeKey'],'newValue':_0x3d735f['attributeNewValue'],'oldValue':_0x3d735f['attributeOldValue'],'range':qt(_0x3d735f['range'],_0x1909ea['model'])});for(const _0x2dd528 of _0x32e911){const _0x519c31=_0x2c619b['find'](_0x15290a=>_0x15290a['position']['isEqual'](_0x2dd528['position']));_0x519c31&&_0x4cc890['push']({'key':m,'newValue':_0x2dd528['name'],'oldValue':_0x519c31['name'],'range':_0x1909ea['model']['createRangeOn'](_0x2dd528['position']['nodeAfter'])});}return 0x0!=_0x4cc890['length']&&this['_reduceExistingSuggestions'](_0x4d5530,_0x4cc890);}['_processAttributeSuggestions'](_0x30c03a){let _0x1f0faa=!0x1;const _0x484379=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x145700=>_0x145700['data']['newRange']&&_0x145700['name']['startsWith']('suggestion:attribute:'));for(const _0x20baa8 of _0x484379){const {subType:_0x351aa4,id:_0x2e637a}=this['_splitMarkerName'](_0x20baa8['name']),_0x4dd9b2=_0x351aa4['split']('|')[0x0];for(const _0xacbb78 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xacbb78['id']!=_0x2e637a&&'attribute'==_0xacbb78['type']&&_0xacbb78['data']&&_0xacbb78['data']['key']==_0x4dd9b2&&_0xacbb78['getFirstRange']()['isIntersecting'](_0x20baa8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xacbb78,_0x20baa8['data']['newRange'],_0x30c03a),_0x1f0faa=!0x0);}return _0x1f0faa;}['_recordAttributeChanges'](_0x58ab3b){this['_recordAttributeSuggestions']=!0x0,_0x58ab3b();}['_isRegisteredAttribute'](_0x4ba740){const _0x41bdea=this['_isBlockAttribute'](_0x4ba740),_0x52e0e8=this['_inlineAttributeKeys']['has'](_0x4ba740);return _0x41bdea||_0x52e0e8;}['_reduceExistingSuggestions'](_0x19148f,_0x19c373){if(0x0==_0x19c373['length'])return!0x1;let _0x2f91e1=!0x1;for(const _0x14d645 of _0x19c373){const _0x101d12=this['_findSuggestions'](_0x14d645['range'],'attribute')['filter'](_0xd89009=>!_0xd89009['meta']['isNextTo'])['map'](_0x27c7cc=>_0x27c7cc['suggestion']),_0x1521e0=_0x2f3e09({'newValue':_0x14d645['newValue']});_0x101d12['filter'](_0x1b4819=>{const [_0x4a053d,_0x94896e]=_0x1b4819['subType']['split']('|');return _0x4a053d==_0x14d645['key']&&_0x94896e!=_0x1521e0;})['forEach'](_0x305f46=>{this['_reduceSuggestionAttributeRange'](_0x305f46,_0x14d645['range'],_0x19148f),_0x2f91e1=!0x0;});}return _0x2f91e1;}['_reduceSuggestionAttributeRange'](_0x58da0c,_0x20216c,_0x2ab800){const _0x145801=_0x58da0c['getFirstRange']()['getDifference'](_0x20216c);0x0!==_0x145801['length']?0x1!==_0x145801['length']?this['_breakSuggestionMarker'](_0x58da0c,_0x20216c['start'],_0x20216c['end']):this['_setSuggestionRange'](_0x58da0c,_0x145801[0x0]):_0x2ab800['removeMarker'](_0x58da0c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2fc645){this['_editor']=_0x2fc645,this['_model']=_0x2fc645['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3e5ded,_0x22af98,_0x11ea66,_0x988b6,_0x9d6f2,_0x4333af){return new u(this['_model'],{'type':_0x3e5ded,'subType':_0x22af98,'id':_0x11ea66,'author':_0x988b6,'creator':_0x988b6,'attributes':_0x9d6f2,'onAttributesChange':_0x4333af,'onAccept':(..._0x1cb1da)=>this['getSuggestionCallback'](_0x3e5ded,_0x22af98,'accept')(..._0x1cb1da),'onDiscard':(..._0x4bd03e)=>this['getSuggestionCallback'](_0x3e5ded,_0x22af98,'discard')(..._0x4bd03e)});}['registerCustomCallback'](_0x252e77,_0x48f3ab,_0x533649,_0x164c59){const _0x227758=_0x252e77+':'+_0x48f3ab+':'+_0x533649;this['_customCallbacks']['set'](_0x227758,_0x164c59);}['getSuggestionCallback'](_0x1e47cc,_0x37174d,_0x5401e0){const _0x2404d8=_0x1e47cc+':'+_0x37174d+':'+_0x5401e0;return this['_customCallbacks']['get'](_0x2404d8)||this['_defaultCallbacks']['get'](_0x1e47cc+':'+_0x5401e0);}['_registerDefaultCallbacks'](){const _0x1c8afe=()=>!0x1,_0xf41a64=_0x941e59=>{_0x941e59['sort']((_0x1cabb2,_0x19c866)=>_0x1cabb2['start']['isBefore'](_0x19c866['start'])?0x1:-0x1),this['_model']['change'](_0x3fb52f=>{for(const _0x173f47 of _0x941e59){let _0x23ef8a;_0x23ef8a=_0x173f47['end']['isAtEnd']&&_0x173f47['end']['parent']==_0x173f47['start']['nodeAfter']?_0x3fb52f['createSelection'](_0x173f47['start']['nodeAfter'],'on'):_0x3fb52f['createSelection'](_0x173f47),this['_model']['deleteContent'](_0x23ef8a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x123795=(_0x4a4b44,_0x3f0c78)=>{_0x3f0c78&&this['_model']['change'](_0x4aea31=>{const {commandName:_0x215638,commandParams:_0x1774e5=[]}=_0x3f0c78,_0x3d853e=_0x4a4b44['map'](_0x181ac5=>(Ft(_0x181ac5)&&(_0x181ac5=this['_model']['createRange'](_0x181ac5['end'])),_0x181ac5))['filter'](_0x282b5d=>'$graveyard'!==_0x282b5d['root']['rootName']);if(_0x3d853e['length']<0x1)return;const _0x1e9b44=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x68f154=>_0x10a588['fromRange'](_0x68f154));_0x4aea31['setSelection'](_0x3d853e);for(const _0x26c4f6 of this['_editor']['commands']['commands']())_0x26c4f6['refresh']();_0x1774e5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x215638,..._0x1774e5);const _0x1d4611=_0x1e9b44['filter'](_0x4ad8f1=>'$graveyard'!=_0x4ad8f1['root']['rootName']);_0x1d4611['length']>0x0&&_0x4aea31['setSelection'](_0x1d4611);for(const _0x3d6ad7 of _0x1e9b44)_0x3d6ad7['detach']();});},_0x233a24=(_0x4c5cdb,_0x436317)=>0x1==_0x4c5cdb['length']&&0x1==_0x436317['length']&&_0x4c5cdb[0x0]['end']['isEqual'](_0x436317[0x0]['start']),_0x5bfe2d=(_0x2d6542,_0x491421,_0x56a40b,_0xa0e963)=>Kt(_0x2d6542,_0x491421,_0x56a40b,_0xa0e963)?[_0x2d6542,_0x491421]:Kt(_0x491421,_0x2d6542,_0xa0e963,_0x56a40b)?[_0x491421,_0x2d6542]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1c8afe),this['_defaultCallbacks']['set']('insertion:discard',_0xf41a64),this['_defaultCallbacks']['set']('insertion:join',_0x233a24),this['_defaultCallbacks']['set']('insertion:chain',_0x5bfe2d),this['_defaultCallbacks']['set']('deletion:accept',_0xf41a64),this['_defaultCallbacks']['set']('deletion:discard',_0x1c8afe),this['_defaultCallbacks']['set']('deletion:join',_0x233a24),this['_defaultCallbacks']['set']('deletion:chain',_0x5bfe2d),this['_defaultCallbacks']['set']('formatInline:accept',_0x123795),this['_defaultCallbacks']['set']('formatInline:discard',_0x1c8afe),this['_defaultCallbacks']['set']('formatInline:join',_0x233a24),this['_defaultCallbacks']['set']('formatInline:chain',_0x1c8afe),this['_defaultCallbacks']['set']('formatBlock:accept',_0x123795),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1c8afe),this['_defaultCallbacks']['set']('formatBlock:join',_0x233a24),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1c8afe),this['_defaultCallbacks']['set']('attribute:accept',_0x1c8afe),this['_defaultCallbacks']['set']('attribute:discard',(_0x5362b0,_0x219e77)=>{if(!_0x219e77)return;const _0x2238a7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2d888f=>{if(_0x219e77['key']==m)for(const _0x2922af of _0x5362b0){const _0x264746=_0x2922af['start']['nodeAfter'],_0x2728bc=_0x219e77['oldValue'];_0x2d888f['rename'](_0x264746,_0x2728bc);}else{if(_0x2238a7['_isBlockAttribute'](_0x219e77['key'])){for(const _0x4ac4aa of _0x5362b0)void 0x0!==_0x219e77['oldValue']?_0x2d888f['setAttribute'](_0x219e77['key'],_0x219e77['oldValue'],_0x4ac4aa['start']['nodeAfter']):_0x2d888f['removeAttribute'](_0x219e77['key'],_0x4ac4aa['start']['nodeAfter']);}else{for(const _0x1d517b of _0x5362b0)_0x219e77['oldValue']?_0x2d888f['setAttribute'](_0x219e77['key'],_0x219e77['oldValue'],_0x1d517b):_0x2d888f['removeAttribute'](_0x219e77['key'],_0x1d517b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x233a24);}}function Gt(_0x4766e1,_0x1c2049,_0x552836){for(const _0x4b07a2 of _0x1c2049['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b07a2['root']==_0x4b07a2)return!0x1;if(!_0x552836['containsItem'](_0x4b07a2))return!0x1;if(_0x4766e1['isObject'](_0x4b07a2)||_0x4766e1['isLimit'](_0x4b07a2))return!0x0;}return!0x1;}function Ft(_0x20945a){return _0x20945a['end']['parent']==_0x20945a['start']['nodeAfter']&&_0x20945a['end']['isAtStart'];}function Lt(_0x23af0b,_0x2d2d67,_0x145082,_0xbb2099){const _0x39f296=_0x55f035=>!_0x55f035['item']['is']('$textProxy')&&!_0xbb2099['isObject'](_0x55f035['item']),_0x5ab36b=_0x23af0b['start']['getLastMatchingPosition'](_0x39f296),_0x256eb2=_0x23af0b['end']['getLastMatchingPosition'](_0x39f296,{'direction':'backward'});return(!_0x23af0b['start']['isEqual'](_0x5ab36b)||!_0x23af0b['end']['isEqual'](_0x256eb2))&&(_0x5ab36b['isBefore'](_0x256eb2)?_0x145082['updateMarker'](_0x2d2d67,{'range':_0x145082['createRange'](_0x5ab36b,_0x256eb2)}):_0x145082['removeMarker'](_0x2d2d67),!0x0);}function Jt(_0x4ae3d0){return _0x2f3e09(_0x4ae3d0);}function Ht(_0x4f4a9b){const _0x1d32d1=_0x4f4a9b['start']['nodeAfter'];return _0x1d32d1&&_0x1d32d1['is']('element');}function qt(_0x5c46ec,_0x46eef9){return null==_0x5c46ec['end']['nodeBefore']&&_0x5c46ec['end']['parent']==_0x5c46ec['start']['nodeAfter']?zt(_0x5c46ec['start']['nodeAfter'],_0x46eef9):_0x5c46ec;}function zt(_0x35b6d3,_0x511fad){const _0x18c022=_0x511fad['schema']['isObject'](_0x35b6d3)||_0x511fad['schema']['isSelectable'](_0x35b6d3);return _0x511fad['createRange'](_0x511fad['createPositionAt'](_0x35b6d3,'before'),_0x18c022?_0x511fad['createPositionAfter'](_0x35b6d3):_0x511fad['createPositionAt'](_0x35b6d3,'end'));}function Kt(_0x2be453,_0x469f43,_0x4f8d10,_0x582211){return!!Wt(_0x2be453,_0x469f43)&&_0x4f8d10['end']['isEqual'](_0x582211['start']);}function Wt(_0x331f8a,_0x1c043c){if(!_0x331f8a['_isDataLoaded']||!_0x1c043c['_isDataLoaded'])return!0x1;const _0x5d7bf1=new Set(Object['keys'](_0x331f8a['attributes'])),_0xd38836=new Set(Object['keys'](_0x1c043c['attributes']));if(_0x5d7bf1['delete']('groupId'),_0xd38836['delete']('groupId'),0x0==_0x5d7bf1['size']&&0x0==_0xd38836['size'])return!0x0;if(_0x5d7bf1['size']!=_0xd38836['size'])return!0x1;const _0x547098={..._0x331f8a['attributes']},_0x4c7f8b={..._0x1c043c['attributes']};return delete _0x547098['groupId'],delete _0x4c7f8b['groupId'],JSON['stringify'](_0x547098)==JSON['stringify'](_0x4c7f8b);}function Qt(_0xbd6a42,_0x44d9a7){const _0x4e11cf=Xt(_0xbd6a42['attributes']),_0xfc5c92=Xt(_0x44d9a7);if(!_0xbd6a42['_isDataLoaded'])return!0x1;for(const _0x2c3925 of Object['keys'](_0xfc5c92))if(!_0x16559d(_0x4e11cf[_0x2c3925],_0xfc5c92[_0x2c3925]))return!0x1;return!0x0;}function Xt(_0x417e49){const _0x2e31d2=Object['assign']({},_0x417e49);return delete _0x2e31d2['skipNestingCheck'],delete _0x2e31d2['tablePasteChainId'],_0x2e31d2;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x52a502(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1b10bd,_0x56e90c,_0x5be022,_0x424c42){super(),this['model']=_0x56e90c,this['view']=_0x5be022,this['commentThreadController']=_0x424c42,this['_editor']=_0x1b10bd,this['_acceptCommand']=_0x1b10bd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1b10bd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ba109,_0x199648)=>_0x4ba109||_0x199648),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3ddd97=>_0x3ddd97&&this['_editor']['model']['canEditAt'](_0x56e90c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x541303=>_0x541303&&this['_editor']['model']['canEditAt'](_0x56e90c['getRanges']())),this['_pendingAction']=null,_0x5be022['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5be022,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5be022,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5be022,'change:isDirty',()=>{_0x5be022['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 _0x35fef3=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35fef3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x2d4c9d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x527537,_0x35341e,_0x684ddc,_0x298bef){super(_0x527537),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa26071(_0x527537,o(_0x527537,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x35341e['authoredAt']),this['bind']('authoredAt')['to'](_0x35341e),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',_0x35341e,'authoredAt',this,'descriptionParts',(_0x3cbced,_0x2c4548,_0x24a094)=>{const _0x2054b4=_0x24a094['map'](_0x7854bd=>cs(_0x7854bd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3cbced-0x1,_0x35341e['author']['name'],_0x2c4548?_0x298bef['formatDateTime'](_0x2c4548):'',new DOMParser()['parseFromString'](_0x2054b4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4c648b(),this['focusTracker']=new _0x157490(),this['keystrokes']=new _0x123216(),this['focusCycler']=new _0x5f0e7d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1dbc50=>_0x1dbc50['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x35341e,this['_localUser']=_0x684ddc,this['_config']=_0x298bef,_0x298bef['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x33f8d3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x32ffb0}=this['_config'];this['commentsListView']=new _0x32ffb0(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',_0x50f52a=>_0x50f52a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x69f216,_0x378a16)=>_0x69f216||!!_0x378a16);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x239e50}=this['_config'],_0x35cd0b=new _0x239e50(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b38eb=_0x35cd0b['commentInputView'];return _0x35cd0b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b38eb,'value',(_0x174553,_0x53bb7a,_0x219342)=>!!_0x219342||_0x174553&&!_0x53bb7a),_0x4b38eb['on']('submit',(_0x3c013f,_0x10e0ba)=>{this['fire']('addComment',_0x10e0ba),_0x4b38eb['editor']['setData']('');}),_0x4b38eb['on']('cancel',()=>this['focus']()),_0x4b38eb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x35cd0b;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x420e6f,_0x56e4c5,_0x1b796d,_0x1c0e1c){super(_0x420e6f,_0x56e4c5,_0x1b796d,_0x1c0e1c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x221508=>_0x221508&&_0x221508[0x0]?_0x221508[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22cbd1,_0x2c4445)=>{let _0x1f394f='';for(const _0x8f344a of _0x22cbd1)_0x1f394f+='<p>'+cs(_0x8f344a['content'],_0x8f344a['color'])+'</p>';return _0x2c4445?_0x1f394f:_0x419e76(_0x1f394f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1c0e1c['SuggestionView'](_0x420e6f,_0x56e4c5,{'formatDateTime':_0x1c0e1c['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 _0x2291cc=this['bindTemplate'],_0x581248=[this['suggestionView']];return this['commentsListView']&&_0x581248['push'](this['commentsListView']),this['commentThreadInputView']&&_0x581248['push'](this['commentThreadInputView']),_0x581248['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2291cc['if']('isActive','ck-suggestion-wrapper--active'),_0x2291cc['to']('type',_0x3f24cf=>'ck-suggestion-'+_0x3f24cf),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':_0x2291cc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x581248};}['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 fe extends _0x2d4c9d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x20c43d,_0x34dd8c,_0x1c9011){super(_0x20c43d),this['_model']=_0x34dd8c,this['_config']=_0x1c9011,this['set']('description',''),this['bind']('authoredAt')['to'](_0x34dd8c),this['acceptButton']=this['_createButton'](o(_0x20c43d,'Accept\x20suggestion'),_0xf84e45['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x20c43d,'Discard\x20suggestion'),_0xf84e45['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x100f70(_0x20c43d,_0x34dd8c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4c648b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x157490(),this['keystrokes']=new _0x123216(),this['focusCycler']=new _0x5f0e7d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5f2789=>_0x5f2789['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x588c99=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x588c99['innerHTML']=this['description'],this['on']('change:description',(_0x522941,_0x236802,_0x151fd9)=>{_0x588c99['innerHTML']=_0x151fd9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1c5909=this['bindTemplate'],_0x3d4efa=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1c5909['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c5909['to']('authoredAt',_0xd3296a=>this['_config']['formatDateTime'](_0xd3296a))}]}]},{'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']&&_0x3d4efa['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':_0x3d4efa}]};}['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'](_0x432ed5,_0x108e74,_0x4b5e52,_0x1c9516,_0x1ca19e){const _0x4deda5=new _0x4faad9(this['locale']);return _0x4deda5['set']({'label':_0x432ed5,'icon':_0x108e74,'tooltip':!0x0,'tooltipPosition':_0x1ca19e}),_0x4deda5['extendTemplate']({'attributes':{'class':_0x4b5e52}}),_0x4deda5['on']('execute',()=>{this['fire'](_0x1c9516,this['_model']['id']);}),_0x4deda5;}['_setupKeyboardNavigation'](){const _0x5200df=this['element'];this['keystrokes']['listenTo'](_0x5200df);for(const _0x2e9cec of this['focusables'])this['focusTracker']['add'](_0x2e9cec['element']),this['keystrokes']['listenTo'](_0x2e9cec['element']);this['keystrokes']['set']('enter',(_0x753064,_0x354606)=>{_0x5200df===_0x753064['target']&&(this['focusCycler']['focusFirst'](),_0x354606());}),this['keystrokes']['set']('esc',(_0x2b48d4,_0x1b8300)=>{_0x5200df!==_0x2b48d4['target']&&(this['focus'](),_0x1b8300());});}}var we='<!--\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-2025,\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 _0x33fd4f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x167c8f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27a1d2){super(_0x27a1d2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3e75a9=this['editor']['config'];_0x3e75a9['define']('trackChanges.SuggestionThreadView',pe),_0x3e75a9['define']('trackChanges.SuggestionView',fe),_0x3e75a9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3e75a9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b4d3f,_0x4cacf3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5396d9,_0x406d57]of this['_handleControllerBuffer']){const _0x1c1c39=this['_suggestionToController']['has'](_0x5396d9);_0x1c1c39||_0x406d57?_0x1c1c39&&_0x406d57&&this['_destroyController'](_0x5396d9):this['_initializeController'](_0x5396d9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b4d3f,_0x4cacf3);}['init'](){const _0x296ed2=this['editor'],_0x2a656b=_0x296ed2['plugins']['get']('TrackChangesEditing'),_0x58e2cb=_0x296ed2['plugins']['get']('Annotations'),_0x583d99=_0x296ed2['plugins']['get']('EditorAnnotations'),_0x5567a4=_0x296ed2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x583d99['addSourceCollector'](()=>{const _0x3faa10=[];for(const [_0x55849f,_0x3424c5]of Array['from'](this['_suggestionToController'])){const _0x4d8118=_0x55849f['getAllAdjacentSuggestions'](),_0x45667d=[];for(const _0x47049d of _0x4d8118){if(!_0x47049d['isInContent'])continue;if(_0x47049d['isMultiRange']){_0x45667d['push'](..._0x47049d['getRanges']());continue;}const _0x8544cb=_0x47049d['getFirstRange']();if(_0x45667d['length']>0x0){const _0x1a79d1=_0x45667d[0x0]['getJoined'](_0x8544cb);if(_0x1a79d1){_0x45667d[0x0]=_0x1a79d1;continue;}}_0x45667d['push'](_0x8544cb);}_0x3faa10['push']([_0x3424c5['view'],_0x45667d]);}return _0x3faa10;}),this['listenTo'](_0x2a656b,'suggestionLoaded',(_0x56b7e6,_0x3d7485)=>{this['listenTo'](_0x3d7485,'change:previous',(_0x1ddd36,_0x44aa2a,_0x3555c4,_0x1dc1fd)=>{_0x3d7485['isInContent']&&(null==_0x3555c4?(this['_updateController'](_0x1dc1fd['head']),this['_handleSuggestionControllerDelayed'](_0x3d7485,!0x1)):(this['_updateController'](_0x3555c4['head']),null==_0x1dc1fd&&this['_handleSuggestionControllerDelayed'](_0x3d7485,!0x0)));}),null!==_0x3d7485['previous']?this['_updateController'](_0x3d7485['head']):this['_handleSuggestionControllerDelayed'](_0x3d7485,!0x1);}),this['listenTo'](_0x2a656b,'suggestionUnloaded',(_0x2217fe,_0x48b07b,_0x4881ae)=>{this['stopListening'](_0x48b07b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x48b07b),this['_suggestionToController']['has'](_0x48b07b)&&this['_destroyController'](_0x48b07b),_0x4881ae&&this['_updateController'](_0x4881ae['head']);}),this['listenTo'](_0x2a656b,'suggestionChanged',(_0x279d9f,_0x44f093)=>{this['_updateController'](_0x44f093);}),this['listenTo'](_0x58e2cb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5567a4,'addComment',(_0x562320,{threadId:_0x3ae5b1,isFromAdapter:_0x1dc07e})=>{if(_0x1dc07e||!_0x2a656b['hasSuggestion'](_0x3ae5b1))return;const _0x192935=_0x2a656b['getSuggestion'](_0x3ae5b1);this['_suggestionToController']['get'](_0x192935)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x541ba4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x189909;for(const _0x28e058 in _0x541ba4){const _0x4caeec=_0x28e058,_0x6cf21e=_0x541ba4[_0x4caeec];if('trackChangesLicenseKeyValid'==_0x6cf21e||'trackChangesLicenseKeyInvalid'==_0x6cf21e||'trackChangesLicenseKeyExpired'==_0x6cf21e||'trackChangesLicenseKeyDomainLimit'==_0x6cf21e||'trackChangesLicenseKeyNotAllowed'==_0x6cf21e||'trackChangesLicenseKeyEvaluationLimit'==_0x6cf21e||'trackChangesLicenseKeyTrialLimit'==_0x6cf21e||'trackChangesLicenseKeyUsageLimit'==_0x6cf21e){delete _0x541ba4[_0x4caeec],_0x189909=_0x6cf21e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x189909&&_0x541ba4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x189909&&_0x541ba4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x189909&&_0x541ba4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x189909&&_0x541ba4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x189909&&_0x541ba4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x189909&&_0x541ba4['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x189909&&_0x541ba4['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x26b676=this['editor']['plugins']['get']('Annotations'),_0x4b3736=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f6bac=Array['from'](_0x26b676['activeAnnotations'],_0x547777=>_0x547777['innerView'])['filter'](_0x17aa3e=>this['_viewToController']['has'](_0x17aa3e)),_0x32521a=[];for(const _0x18c763 of _0x3f6bac){const _0xc7a7be=this['_viewToController']['get'](_0x18c763)['model']['getAllAdjacentSuggestions']();_0x32521a['push'](..._0xc7a7be['reduce']((_0x184b0c,_0xe9d79c)=>[..._0x184b0c,..._0xe9d79c['getMarkerNames']()],[]));}_0x4b3736['activeMarkers']=_0x32521a;}['_addUIComponentsToFactory'](){const _0x46a9a1=this['editor'],_0x23fa36=_0x46a9a1['locale'],_0x122145=o(_0x23fa36,'Track\x20changes'),_0x1dd949=new _0x41cefd([{'type':'switchbutton','model':new _0x15075b({'withText':!0x0,'isToggleable':!0x0,'label':_0x122145,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x15075b({'withText':!0x0,'label':o(_0x23fa36,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15075b({'withText':!0x0,'label':o(_0x23fa36,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15075b({'withText':!0x0,'label':o(_0x23fa36,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15075b({'withText':!0x0,'label':o(_0x23fa36,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x46a9a1['plugins']['has']('TrackChangesPreview')&&_0x1dd949['addMany']([{'type':'separator'},{'type':'button','model':new _0x15075b({'withText':!0x0,'label':o(_0x23fa36,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x36bd4e of _0x1dd949)if(ke(_0x36bd4e)){const _0x359c08=_0x46a9a1['commands']['get'](_0x36bd4e['model']['commandName']);_0x36bd4e['model']['bind']('isOn','isEnabled')['to'](_0x359c08,'value','isEnabled');}_0x46a9a1['ui']['componentFactory']['add']('trackChanges',_0x589296=>this['_createToolbarButton'](_0x589296,_0x1dd949,_0x122145)),_0x46a9a1['ui']['componentFactory']['add']('menuBar:trackChanges',_0x409c98=>this['_createMenuBarMenu'](_0x409c98,_0x1dd949,_0x122145));}['_createToolbarButton'](_0x19ca50,_0x40ea85,_0x4019f6){const _0x141b9c=_0x20c5d7(_0x19ca50,_0x293984),_0x80244=this['editor']['commands']['get']('trackChanges');_0x141b9c['buttonView']['set']({'tooltip':_0x4019f6,'label':_0x4019f6,'icon':we}),_0x141b9c['buttonView']['bind']('isOn')['to'](_0x80244,'value'),_0x141b9c['buttonView']['on']('execute',()=>{_0x80244['execute'](),this['editor']['editing']['view']['focus']();}),_0x282457(_0x141b9c,_0x40ea85,{'role':'menu'});const _0x455018=[];for(const _0x13fbbf of _0x40ea85)ke(_0x13fbbf)&&_0x455018['push'](this['editor']['commands']['get'](_0x13fbbf['model']['commandName']));const _0x10ab9c=_0x141b9c['buttonView'];return _0x10ab9c['actionView']['unbind']('isEnabled'),_0x10ab9c['arrowView']['unbind']('isEnabled'),_0x10ab9c['actionView']['bind']('isEnabled')['to'](_0x80244,'isEnabled'),_0x10ab9c['arrowView']['bind']('isEnabled')['toMany'](_0x455018,'isEnabled',(..._0x39fd00)=>_0x39fd00['some'](_0x2e9beb=>_0x2e9beb)),_0x141b9c['on']('execute',_0x343a03=>{this['editor']['execute'](_0x343a03['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x141b9c;}['_createMenuBarMenu'](_0x3cf517,_0xac1075,_0x2e04a4){const _0x112d2e=new _0x299f9f(_0x3cf517),_0x1093c7=this['editor']['commands']['get']('trackChanges');_0x112d2e['buttonView']['set']({'label':_0x2e04a4,'icon':we});const _0x370777=new _0x2bd287(_0x3cf517);for(const _0x45d41c of _0xac1075){if('separator'==_0x45d41c['type']){_0x370777['items']['add'](new _0x2008c7(_0x3cf517));continue;}const _0x5bc37e=new _0x228eb6(_0x3cf517,_0x112d2e),_0x14aa86=new _0x1914ee(_0x3cf517),_0x1b4d68=_0x45d41c['model'];_0x14aa86['bind'](...Object['keys'](_0x1b4d68))['to'](_0x1b4d68),_0x14aa86['delegate']('execute')['to'](_0x112d2e),_0x14aa86['on']('execute',()=>{this['editor']['execute'](_0x1b4d68['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bc37e['children']['add'](_0x14aa86),_0x370777['items']['add'](_0x5bc37e);}return _0x112d2e['bind']('isEnabled')['to'](_0x1093c7,'isEnabled'),_0x112d2e['panelView']['children']['add'](_0x370777),_0x112d2e;}['_initializeController'](_0x153652){const _0x1b7c40=this['editor'],_0x11f625=_0x1b7c40['config'],_0x51bb71=_0x1b7c40['plugins']['get']('Annotations'),_0x4df8ac=_0x1b7c40['plugins']['get']('CommentsRepository'),_0x15f491=_0x1b7c40['plugins']['get']('EditorAnnotations'),_0x7e13bd=_0x1b7c40['plugins']['get'](_0x167c8f)['me'],_0xfedb69=_0x11f625['get']('trackChanges')['SuggestionThreadView'],_0x7d0062=_0x11f625['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2e27a7,CommentThreadInputView:_0x19ae18}=_0x1b7c40['plugins']['get']('CommentsUI');let _0x2bfc04,_0x2d41c9,_0x3755eb;this['_annotationViews']['has'](_0x153652['id'])?(_0x2d41c9=this['_annotationViews']['get'](_0x153652['id']),_0x2bfc04=_0x2d41c9['mainView']):(_0x2bfc04=new _0xfedb69(_0x1b7c40['locale'],_0x153652,_0x7e13bd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x11f625['get']('comments.editorConfig'),'licenseKey':_0x11f625['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x11f625['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x11f625['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11f625['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2ab271(_0x11f625['get']('locale')),'CommentView':_0x11f625['get']('comments')['CommentView'],'CommentsListView':_0x2e27a7,'CommentThreadInputView':_0x19ae18,'SuggestionView':_0x7d0062}),_0x2bfc04['suggestionView']['acceptButton']['on']('execute',()=>{_0x1b7c40['editing']['view']['focus']();}),_0x2bfc04['suggestionView']['discardButton']['on']('execute',()=>{_0x1b7c40['editing']['view']['focus']();}),_0x2d41c9=_0x51bb71['createAnnotationView'](this['editor']['locale'],_0x2bfc04),_0x2d41c9['bind']('isDirty')['to'](_0x2bfc04,'isDirty'),_0x2d41c9['bind']('length')['to'](_0x2bfc04),_0x2d41c9['bind']('type')['to'](_0x2bfc04,'type',_0x426f94=>'suggestion-'+_0x426f94),_0x2bfc04['on']('escape',()=>{_0x3755eb['fire']('escape');}),this['_annotationViews']['set'](_0x153652['id'],_0x2d41c9));const _0x19547b=_0x4df8ac['createCommentThreadController'](_0x153652['commentThread'],_0x2bfc04),_0x3282a2=new Ce(_0x1b7c40,_0x153652,_0x2bfc04,_0x19547b),_0x5f464a=_0x153652['getAllAdjacentSuggestions']()['filter'](_0x1a2ebd=>_0x1a2ebd['isInContent']);_0x2bfc04['descriptionParts']=_0x1b7c40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5f464a),this['_suggestionToController']['set'](_0x153652,_0x3282a2),this['_viewToController']['set'](_0x2bfc04,_0x3282a2),_0x3755eb=_0x51bb71['createAnnotation']({'view':_0x2d41c9,'target':()=>{const _0x275ff0=[],_0x35818d=_0x153652['getAllAdjacentSuggestions']()['filter'](_0x4a5a23=>_0x4a5a23['isInContent']);for(const _0x48cba8 of _0x35818d)_0x275ff0['push'](..._0x48cba8['getMarkers']());return _0x24abad(_0x1b7c40['editing'],_0x275ff0);},'type':()=>'suggestion-'+_0x3282a2['view']['type']}),_0x4df8ac['_bindAnnotationToEditors'](_0x2bfc04,_0x3755eb),_0x51bb71['add'](_0x3755eb),_0x15f491['registerAnnotation'](_0x3755eb);}['_destroyController'](_0x1567cc){const _0x103bb8=this['editor']['plugins']['get']('CommentsRepository'),_0x4d52fe=this['editor']['plugins']['get']('Annotations'),_0x28f94c=this['_suggestionToController']['get'](_0x1567cc),_0x443729=_0x28f94c['view'],_0x500b74=_0x4d52fe['getByInnerView'](_0x443729);_0x103bb8['_unbindEditors'](_0x443729),_0x500b74&&_0x4d52fe['remove'](_0x500b74),this['_suggestionToController']['delete'](_0x1567cc),this['_viewToController']['delete'](_0x443729),_0x28f94c['destroy']();}['_updateController'](_0x35c594){if(!_0x35c594['isInContent']||!this['_suggestionToController']['has'](_0x35c594))return;const _0x18b146=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1827f1=this['_suggestionToController']['get'](_0x35c594),_0x1b2b11=_0x35c594['getAllAdjacentSuggestions']();_0x1827f1['view']['descriptionParts']=_0x18b146['descriptionFactory']['getDescriptions'](_0x1b2b11);}['destroy'](){for(const _0x468b10 of this['_suggestionToController']['keys']())this['_destroyController'](_0x468b10);for(const _0x1d3427 of this['_annotationViews']['values']())_0x1d3427['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14d3f6){return'model'in _0x14d3f6;}class k extends _0x33fd4f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x34a43){this['editor']['plugins']['get'](p)['adapter']=_0x34a43;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4235d2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4235d2);}['getSuggestions']({skipNotAttached:_0x348788=!0x1,toJSON:_0x2bddef=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x348788,'toJSON':_0x2bddef});}['getSuggestion'](_0x598b49){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x598b49);}}const w=['Pagination'];class T extends _0x33fd4f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1143fb=this['editor'];if(_0x1143fb['config']['define']('trackChangesData.editorCreator',_0x4a76e9=>{const _0x374d5b=_0x1143fb['model']['document']['getRootNames']()['reduce']((_0x55121a,_0x2dab64)=>(_0x55121a[_0x2dab64]='',_0x55121a),{});return _0x1143fb['constructor']['create'](_0x374d5b,_0x4a76e9);}),'function'!=typeof _0x1143fb['config']['get']('trackChangesData')['editorCreator'])throw new _0x120ce8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2f8536){return N(this['editor'],!0x0,_0x2f8536);}['getDataWithDiscardedSuggestions'](_0x9c2feb){return N(this['editor'],!0x1,_0x9c2feb);}}class D extends _0x33fd4f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x360f81){function _0x28bbdb(_0x1612ae){return _0x1612ae['map'](_0x5c5e3d=>String['fromCharCode'](_0x5c5e3d))['join']('');}super(_0x360f81),this['result']='end',_0x360f81[_0x28bbdb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28bbdb([0x76,0x69,0x65,0x77])][_0x28bbdb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28bbdb([0x61,0x75,0x74,0x6f]),_0x360f81[_0x28bbdb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x28bbdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28bbdb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x28bbdb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x28bbdb([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4c82b6){return void 0x0!==_0x4c82b6['getRootsAttributes'];}async function N(_0x331809,_0x40cdc4,_0x39165c){const _0x59e318=_0xba82a3(_0x331809,w);_0x59e318['plugins']['push'](p,D),_0x59e318['rootsAttributes']=Fe(_0x331809)?_0x331809['getRootsAttributes']():void 0x0;const _0x2d2832=document['createDocumentFragment'](),_0x540ff8=_0x331809['config']['get']('trackChangesData')['editorCreator'],_0x872653=await _0x540ff8(_0x59e318,()=>function(_0x181f69){const _0xa68b8=document['createElement']('div');return _0x181f69['appendChild'](_0xa68b8),_0xa68b8;}(_0x2d2832));!function(_0x2a13f8,_0x366f42){const _0x48650f=_0x2a13f8['model']['document']['getRootNames']()['reduce']((_0xff54fa,_0x8caf46)=>(_0xff54fa[_0x8caf46]=_0x2a13f8['data']['get']({'rootName':_0x8caf46}),_0xff54fa),{}),_0x346420=_0x2a13f8['plugins']['get']('Users')['users']['map'](_0x59d690=>({'id':_0x59d690['id'],'name':_0x59d690['name']})),_0x56c3ea=_0x2a13f8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3736cf=_0x2a13f8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b6e32=_0x366f42['plugins']['get']('Users'),_0x42369f=_0x366f42['plugins']['get']('TrackChangesEditing'),_0x528ec9=_0x366f42['plugins']['get']('CommentsRepository');for(const _0x184d57 of _0x528ec9['getCommentThreads']())_0x184d57['remove']();for(const _0x2585fc of _0x346420)_0x3b6e32['getUser'](_0x2585fc['id'])||_0x3b6e32['addUser'](_0x2585fc);_0x3b6e32['me']||_0x3b6e32['useAnonymousUser']();for(const _0x1bcd78 of _0x3736cf)_0x528ec9['addCommentThread'](_0x1bcd78);for(const _0x2e79fb of _0x56c3ea)_0x42369f['addSuggestionData'](_0x2e79fb);_0x366f42['data']['set'](_0x48650f);}(_0x331809,_0x872653),_0x872653['execute'](_0x40cdc4?'acceptAllSuggestions':'discardAllSuggestions');const _0x359aa7=Fe(_0x872653)?_0x872653['getFullData'](_0x39165c):_0x872653['data']['get'](_0x39165c);return await _0x872653['destroy'](),_0x359aa7;}class Me extends _0x2d4c9d{['options'];constructor(_0x57c89f,_0x452460){super(_0x57c89f),this['options']=_0x452460,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x196a8a,_0x3f18f3){if(!this['element'])return;const _0x402c55=[];for(const [_0x151357,_0xc8d816]of _0x196a8a){const _0x4ae3af=document['createElement']('div');_0x4ae3af['setAttribute']('data-ck-root-name',_0x151357),_0x4ae3af['className']=_0xc8d816['classes']+'\x20ck-track-changes-preview__root-container',_0x4ae3af['innerHTML']=_0xc8d816['content'],_0x402c55['push'](_0x4ae3af);}_0x3f18f3(this['element'],_0x402c55),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x523f20){super(_0x523f20),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xa30dbd=this['editor'],_0x16f76c=_0xa30dbd['locale'],_0x1d131f=_0xa30dbd['plugins']['get']('Dialog');let _0x32e41a;const _0x12ab07=function(_0x253c70){const _0x54136d={};if('editables'in _0x253c70['ui']['view']){for(const [_0x290bc7,_0x2d80f6]of Object['entries'](_0x253c70['ui']['view']['editables']))_0x54136d[_0x290bc7]=_0x2d80f6['element'];}else _0x54136d[_0x253c70['model']['document']['getRootNames']()[0x0]]=_0x253c70['ui']['view']['editable']['element'];return _0x54136d;}(_0xa30dbd),_0x1dee80=function(_0x39af6c){let _0x31bad3=0x0;for(const _0x590b5a of Object['values'](_0x39af6c))_0x31bad3=Math['max'](_0x31bad3,_0x590b5a['getBoundingClientRect']()['width']);let _0x4628fb=0x0;for(const _0x27e492 of Object['values'](_0x39af6c))_0x4628fb+=_0x27e492['getBoundingClientRect']()['height'];const _0x2c4aa4=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x24fdc3=Math['min'](_0x4628fb,_0x2c4aa4);return{'width':_0x31bad3,'height':_0x24fdc3};}(_0x12ab07);_0x1d131f['show']({'id':'finalContentPreview','title':o(_0x16f76c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x16f76c,{'dialogRects':_0x1dee80}),'onHide':()=>{_0x32e41a['detachFromDom']();},'onShow':()=>{_0xa30dbd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xa12486=>{const _0x5edcd2=this['_standarizeRootsData'](_0xa12486,_0xa30dbd,_0x12ab07);_0x1d131f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5edcd2,_0xa30dbd['config']['get']('trackChanges.preview.renderFunction'));}),_0x32e41a=new _0x58562c(_0x16f76c,[_0x1d131f['view']]),_0x32e41a['attachToDom'](),_0x32e41a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xa30dbd['once']('destroy',()=>{_0x32e41a['detachFromDom']();});const _0x26a831=_0x1d131f['view']['headerView']['class'];_0x1d131f['view']['headerView']['class']=_0x26a831?_0x26a831+'\x20ck-reset_all':'ck-reset_all',_0x1d131f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1d131f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x48d1c3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x26d440=_0x48d1c3['previewMode'],_0x46f5a1={};if('$labels'===_0x26d440){for(const _0x231f9b of _0x48d1c3['getMergeFieldsIds']())_0x46f5a1[_0x231f9b]=_0x48d1c3['getLabel'](_0x231f9b)||_0x231f9b;}else{const _0x5c5429='$defaultValues'===_0x26d440?_0x48d1c3['getDefaultValues']():_0x48d1c3['getDataSetValues'](_0x26d440,!0x0);for(const _0x1a8d6d of Object['entries'](_0x5c5429)){const [_0x54d304,_0x54272e]=_0x1a8d6d;_0x46f5a1[_0x54d304]=null!==_0x54272e?_0x54272e:_0x48d1c3['getLabel'](_0x54d304)||_0x54d304;}}return{'mergeFieldsData':_0x46f5a1};}['_standarizeRootsData'](_0xd80507,_0x456321,_0x27c188){let _0x843d44;if('string'==typeof _0xd80507){const _0x257045=_0x456321['model']['document']['getRootNames']()[0x0];_0x843d44={[_0x257045]:_0xd80507};}else _0x843d44=_0xd80507;const _0x5d125c=this['_fixMediaEmbeds'](_0x843d44,_0x456321),_0x3a1b74=function(_0x458e00,_0x43ce50){for(const [_0x85ecc1,_0x31bfd6]of _0x458e00)_0x31bfd6['classes']=_0x43ce50[_0x85ecc1]['classList']['value']['replace']('ck-focused','');return _0x458e00;}(this['_sortRoots'](_0x456321)['reduce']((_0x1b376c,_0x3f0269)=>(_0x1b376c['push']([_0x3f0269,{'content':_0x5d125c[_0x3f0269],'classes':''}]),_0x1b376c),[]),_0x27c188);return _0x3a1b74;}['_fixMediaEmbeds'](_0x5bc66c,_0x4bc6bb){if(!_0x4bc6bb['plugins']['has']('MediaEmbedEditing'))return _0x5bc66c;const _0x5662b3=_0x4bc6bb['plugins']['get']('MediaEmbedEditing');for(const [_0x1a9268,_0x591b2e]of Object['entries'](_0x5bc66c)){const _0x9dba6c=document['createElement']('div');_0x9dba6c['innerHTML']=_0x591b2e,(_0x9dba6c['querySelectorAll']('figure.media')['forEach'](_0x390a43=>{const _0x545a87=_0x390a43['querySelector']('oembed');if(_0x545a87){const _0x57a12f=_0x545a87['getAttribute']('url');if(_0x57a12f){const _0x312e2a=_0x5662b3['registry']['getMediaViewElement'](new _0x1d56f7(_0x4bc6bb['editing']['view']['document']),_0x57a12f,{'elementName':'','renderForEditingView':!0x0}),_0x5c5610=document['createElement']('div');_0x5c5610['classList']['add']('ck-media__wrapper'),_0x312e2a['render'](_0x5c5610,_0x4bc6bb['editing']['view']['domConverter']),_0x545a87['replaceWith'](_0x5c5610);}}}),_0x5bc66c[_0x1a9268]=_0x9dba6c['innerHTML']);}return _0x5bc66c;}['_sortRoots'](_0x51b033){if(!function(_0x3af6d3){return void 0x0!==_0x3af6d3['getRootsAttributes'];}(_0x51b033))return _0x51b033['model']['document']['getRootNames']();const _0x543723=[],_0x359253=new Map();for(const _0x5aba52 of _0x51b033['model']['document']['getRootNames']()){const _0x488070=_0x51b033['editing']['view']['getDomRoot'](_0x5aba52)['getClientRects']()['item'](0x0);_0x543723['push'](_0x5aba52),_0x359253['set'](_0x5aba52,_0x488070);}return _0x543723['sort']((_0x45a921,_0x4bfee0)=>{const _0x464f3e=_0x359253['get'](_0x45a921),_0x27b6ea=_0x359253['get'](_0x4bfee0);return _0x464f3e['y']-_0x27b6ea['y']||_0x464f3e['x']-_0x27b6ea['x'];}),_0x543723;}}class te extends _0x33fd4f{static get['requires'](){return[T,_0xb7459f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b3e6c){super(_0x2b3e6c),_0x2b3e6c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2b3e6c['config']['define']('trackChanges.preview.renderFunction',(_0x4a563c,_0x45fbca)=>{for(const _0x5add3c of _0x45fbca)_0x4a563c['appendChild'](_0x5add3c);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};