@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250214.0 → 0.0.0-nightly-20250215.0

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 _0x2e0600,PendingActions as _0x396b21,icons as _0x4ff397}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c235c,ObservableMixin as _0x357011,uid as _0x502eb1,priorities as _0xffa7dc,insertToPriorityArray as _0x155509,logWarning as _0x5db013,getEnvKeystrokeText as _0x3ec30c,FocusTracker as _0x5b40b3,KeystrokeHandler as _0x1f3671,Collection as _0x424f10}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x21d4ef,View as _0x18ecc2,ViewCollection as _0x41a95c,FocusCycler as _0x2c0406,ViewModel as _0x3570d2,createDropdown as _0x5bae48,SplitButtonView as _0x15d7f7,addListToDropdown as _0x5172de,MenuBarMenuView as _0x346073,MenuBarMenuListView as _0x1d7800,ListSeparatorView as _0x1e1643,MenuBarMenuListItemView as _0x9caca5,MenuBarMenuListItemButtonView as _0x32b585,BodyCollection as _0x240a52,Dialog as _0x32d43f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x483d85,hashObject as _0x2dc0b9,surroundingMarkersDetector as _0x3f2b80,FOCUS_ANNOTATION_KEYSTROKE as _0x5f1d9f,AriaDescriptionView as _0x15cfc2,setupThreadKeyboardNavigation as _0x24f4c2,trimHtml as _0x586920,UserView as _0x219a7c,LateFocusButtonView as _0x254f07,getDateTimeFormatter as _0x2167ca,getAllMarkersDomElementsSorted as _0x16b1a5,sanitizeEditorConfig as _0x3e1684}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x488a98,LiveRange as _0x1200ae,LivePosition as _0x4c297e,DowncastWriter as _0x343a56}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4b20b2,toWidget as _0x3dbc81}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4b5e25,set as _0x299b13,isEqual as _0x344f35,unset as _0x1d4566,omit as Vt}from'lodash-es';import{Delete as _0x3f742a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x57352a,ShiftEnter as _0xf6831f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x1aa571,_0x3d20ec){super(_0x1aa571),this['_enabledCommands']=_0x3d20ec,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 _0x2f9cc9 of this['editor']['commands']['commands']())_0x2f9cc9['affectsData']&&!this['_enabledCommands']['has'](_0x2f9cc9)&&_0x2f9cc9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x25f1b0 of this['editor']['commands']['commands']())_0x25f1b0['affectsData']&&!this['_enabledCommands']['has'](_0x25f1b0)&&_0x25f1b0['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x15cc55,_0x25bf55){super(_0x15cc55),this['_suggestions']=_0x25bf55,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2cbb8b){const _0x23ac18=this['_suggestions']['get'](_0x2cbb8b);if(!_0x23ac18)throw new _0x1c235c('track-changes-accept-suggestion-not-found',this);const _0x2894d2=_0x23ac18['getRanges']();this['editor']['model']['canEditAt'](_0x2894d2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23ac18);}}class R extends Yt{['_suggestions'];constructor(_0x45bd34,_0x131111){super(_0x45bd34),this['_suggestions']=_0x131111,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x421506){const _0x3b4527=this['_suggestions']['get'](_0x421506);if(!_0x3b4527)throw new _0x1c235c('track-changes-discard-suggestion-not-found',this);const _0x42d8c1=_0x3b4527['getRanges']();this['editor']['model']['canEditAt'](_0x42d8c1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b4527);}}function cs(_0x165798,_0x4e6aa9){let _0x27fb29='';return _0x27fb29+=_0x165798['split']('*')['map']((_0x3804ed,_0x32def2)=>_0x32def2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3804ed)+'</span>':nn(_0x3804ed))['join'](''),_0x4e6aa9&&(_0x27fb29+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4e6aa9['value']+'\x22\x20title=\x22'+_0x4e6aa9['title']+'\x22></span>'),_0x27fb29;}function nn(_0x1f9d15){const _0x38dee4=document['createElement']('span');return _0x38dee4['innerText']=_0x1f9d15,_0x38dee4['innerHTML'];}function Zt(_0x3e5b4e){return _0x3e5b4e['sort']((_0x2be016,_0x230945)=>'deletion'==_0x2be016['type']&&'deletion'!=_0x230945['type']?-0x1:'deletion'!=_0x2be016['type']&&'deletion'==_0x230945['type']?0x1:0x0);}function to(_0x14b4ba,_0x314e33){let _0x58fb11,_0x592ece=0x0;const _0x155ce3=[],_0x3c5dbf=_0x314e33['schema'];for(;_0x592ece<_0x14b4ba['length'];){const _0x42ca9e=_0x14b4ba[_0x592ece],_0x13e6af=_0x14b4ba[_0x592ece+0x1];_0x58fb11||(_0x58fb11=_0x314e33['createPositionBefore'](_0x42ca9e)),on(_0x314e33,_0x42ca9e,_0x13e6af)||(_0x155ce3['push'](_0x314e33['createRange'](_0x58fb11,_0x3c5dbf['isObject'](_0x42ca9e)?_0x314e33['createPositionAfter'](_0x42ca9e):_0x314e33['createPositionAt'](_0x42ca9e,'end'))),_0x58fb11=null),_0x592ece++;}return _0x155ce3;}function on(_0xa5c85f,_0x1c5e2c,_0x5b95bb){if(!_0x5b95bb)return!0x1;const _0x569085=_0xa5c85f['createPositionAfter'](_0x1c5e2c),_0x14c7c8=_0xa5c85f['createPositionBefore'](_0x5b95bb);return _0x569085['isTouching'](_0x14c7c8);}function ts(_0x453075,_0x23b129,_0x3994d4){for(;_0x3994d4['length'];){const _0x18676d=_0x3994d4['splice'](0x0,0x64);_0x453075['change'](()=>{for(const _0x323f37 of _0x18676d)_0x323f37['isInContent']&&_0x23b129['execute'](_0x323f37['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0xc5d0fa,_0x3b71e7,_0x2b032b){super(_0xc5d0fa),this['_command']=_0x3b71e7,this['_suggestions']=_0x2b032b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36b2e2=Array['from'](this['_suggestions']['values']())['some'](_0xa6f75b=>_0xa6f75b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36b2e2;}['execute'](){const _0x48e809=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x5e7852 of _0x48e809){const _0x315743=_0x5e7852['getRanges']();if(!this['editor']['model']['canEditAt'](_0x315743))return;}ts(this['editor']['model'],this['_command'],_0x48e809);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd3a2d9,_0x341870,_0x462a15){super(_0xd3a2d9),this['_command']=_0x341870,this['_suggestions']=_0x462a15,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16bfe0=this['editor']['model']['document']['selection'],_0x3f1162=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10dbd1,_0x2d23e4){const _0xcbd259=Array['from'](_0x10dbd1['getRanges']()),_0x23c334=new Set();for(const _0x1dbbf2 of _0x2d23e4)if(_0x1dbbf2['isInContent']){for(const _0x1d10e0 of _0xcbd259)for(const _0x2e3606 of _0x1dbbf2['getRanges']())(_0x1d10e0['isIntersecting'](_0x2e3606)||_0x10dbd1['isCollapsed']&&!_0x1dbbf2['isMultiRange']&&_0x1dbbf2['next']&&_0x2e3606['end']['isTouching'](_0x1d10e0['start']))&&_0x23c334['add'](_0x1dbbf2);}return _0x23c334;}(_0x16bfe0,_0x3f1162),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x55b7c5=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x29f32f of _0x55b7c5){const _0x492708=_0x29f32f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x492708))return;}ts(this['editor']['model'],this['_command'],_0x55b7c5);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x357011(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xa821f4,_0x3daa80){super(),this['id']=_0x3daa80['id'],this['type']=_0x3daa80['type'],this['subType']=_0x3daa80['subType']||null,this['author']=_0x3daa80['author'],this['creator']=_0x3daa80['creator']||_0x3daa80['author'],this['isExternal']=Boolean(_0x3daa80['attributes']&&_0x3daa80['attributes']['@external']),this['data']=null,this['_model']=_0xa821f4,this['_onAccept']=_0x3daa80['onAccept'],this['_onDiscard']=_0x3daa80['onDiscard'],this['_onAttributesChange']=_0x3daa80['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3daa80['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 _0x113b71=this;for(;_0x113b71['previous'];)_0x113b71=_0x113b71['previous'];return _0x113b71;}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'](_0xddbb38){this['_markerNames']['add'](_0xddbb38);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35303f=>this['_model']['markers']['get'](_0x35303f))['filter'](_0x17e7bb=>_0x17e7bb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x25262b=>{for(const _0x48c818 of this['getMarkers']())_0x25262b['removeMarker'](_0x48c818);}),this['_markerNames']['clear']();}['removeMarker'](_0x4b4f86){this['_model']['change'](_0x1c8648=>{_0x1c8648['removeMarker'](_0x4b4f86);}),this['_markerNames']['delete'](_0x4b4f86);}['addRange'](_0x2ad4b9){const _0x2d949f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2d949f),this['_model']['change'](_0x553d84=>{_0x553d84['addMarker'](_0x2d949f,{'range':_0x2ad4b9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x224857){for(const _0x5414dd of this['getRanges']())if(_0x5414dd['isIntersecting'](_0x224857))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5267fc=>_0x5267fc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x37f8d3,_0x1343e9)=>[..._0x37f8d3,..._0x1343e9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x351a89=this['getRanges']();if(0x1!=_0x351a89['length'])return null;const _0x441b23=_0x351a89[0x0],_0x2b8657=_0x441b23['start']['nodeAfter'],_0x4cb540=_0x441b23['end']['nodeBefore'];return _0x2b8657 instanceof _0x488a98?_0x2b8657!=_0x4cb540?null:_0x2b8657: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 _0x4c4d49=[];let _0x498d65=this['head'];for(;_0x498d65;)_0x4c4d49['push'](_0x498d65),_0x498d65=_0x498d65['next'];return _0x4c4d49;}['setAttribute'](_0x2f35ce,_0x5ce16f){const _0x5c6182=_0x4b5e25(this['attributes']);_0x299b13(_0x5c6182,_0x2f35ce,_0x5ce16f),_0x344f35(_0x5c6182,this['attributes'])||(this['attributes']=_0x5c6182,this['_onAttributesChange'](_0x5c6182));}['removeAttribute'](_0x45584){const _0x5c8e99=_0x4b5e25(this['attributes']);_0x1d4566(_0x5c8e99,_0x45584),_0x344f35(_0x5c8e99,this['attributes'])||(this['attributes']=_0x5c8e99,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 _0x502eb1()['substr'](0x1,0x5);}}function o(_0x9d19c,_0x265be2,_0x1d3201){const _0x529ea7=_0x9d19c['t'],t=_0x9d19c['t'];switch(_0x265be2){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',_0x1d3201);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d3201);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d3201);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d3201);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d3201);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',_0x1d3201);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d3201);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',_0x1d3201);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d3201);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d3201);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d3201);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d3201);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d3201);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1d3201);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d3201);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d3201);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d3201);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d3201);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d3201);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d3201);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d3201);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d3201);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d3201);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d3201);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'},_0x1d3201);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d3201);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d3201);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d3201);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d3201);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d3201);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d3201);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d3201);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d3201);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'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d3201);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1d3201);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 _0x529ea7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d3201);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x529ea7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1d3201);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1d3201);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'},_0x1d3201);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'},_0x1d3201);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'},_0x1d3201);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x265be2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x217dba,_0x33e871){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x217dba,this['_locale']=_0x33e871;}['getDescriptions'](_0x357c3c){const _0x1fb323=[],_0x4bf2db=new Set(),_0x5df890=new Set();for(let _0x452125=0x0;_0x452125<_0x357c3c['length'];_0x452125++){const _0x16a0a0=_0x357c3c[_0x452125];if(!_0x16a0a0['isInContent'])continue;const _0x43a272=this['_handleCustomCallbackDescription'](_0x16a0a0);if(_0x43a272){if(null!=_0x16a0a0['subType']){if(_0x4bf2db['has'](_0x16a0a0['subType']))continue;_0x4bf2db['add'](_0x16a0a0['subType']);}_0x1fb323['push'](_0x43a272);}else{if('attribute'!=_0x16a0a0['type'])'insertion'!=_0x16a0a0['type']&&'deletion'!=_0x16a0a0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1fb323,_0x16a0a0,_0x357c3c[_0x452125+0x1]);else{const _0x5bff85=_0x16a0a0['data']['key'];if(_0x5df890['has'](_0x5bff85))continue;_0x5df890['add'](_0x16a0a0['data']['key']),_0x5bff85==m?this['_handleRenameSuggestionDescription'](_0x1fb323,_0x16a0a0):this['_handleAttributeSuggestionDescription'](_0x1fb323,_0x16a0a0);}}}return this['_resolveDescriptionItems'](_0x1fb323);}['registerDescriptionCallback'](_0x5a31bc){this['_customCallbacks']['push'](_0x5a31bc);}['registerElementLabel'](_0x25b69a,_0xd26676,_0x2aa8b2=_0xffa7dc['normal']){'function'==typeof _0x25b69a?_0x155509(this['_itemLabelsCallbacks'],{'matchingCallback':_0x25b69a,'label':_0xd26676,'priority':_0x2aa8b2}):this['_itemLabels']['set'](_0x25b69a,_0xd26676);}['registerAttributeLabel'](_0x3e4494,_0x269c5d){this['_attributeLabels']['set'](_0x3e4494,_0x269c5d);}['getItemLabel'](_0x2b9311,_0x514b04=0x1){let _0x50fb7b;for(const _0x2b8e5f of this['_itemLabelsCallbacks'])if(_0x2b8e5f['matchingCallback'](_0x2b9311)){_0x50fb7b=_0x2b8e5f['label'];break;}return _0x50fb7b||(_0x50fb7b=this['_itemLabels']['get'](_0x2b9311['name'])),_0x50fb7b?_0x50fb7b(_0x514b04):0x1!==_0x514b04?_0x514b04+'\x20'+_0x2b9311['name']+'s':''+_0x2b9311['name'];}['_addDescriptionItems'](_0x32918d,_0x5a8ed1){const _0x2ea6a9=_0x5a8ed1['getFirstRange']()['getWalker'](),_0x965dbd='insertion'==_0x5a8ed1['type']?'add':'remove';for(const _0x1beeca of _0x2ea6a9){const _0x4bbc1e=_0x1beeca['item'],_0x34b0ff=_0x32918d[_0x32918d['length']-0x1];if(_0x4bbc1e['is']('$textProxy'))_0x34b0ff&&_0x34b0ff['type']['indexOf']('Container')>-0x1&&_0x32918d['pop'](),_0x34b0ff&&'text'==_0x34b0ff['type']?_0x34b0ff[_0x965dbd]+=_0x4bbc1e['data']:_0x32918d['push']({'type':'text','add':'add'==_0x965dbd?_0x4bbc1e['data']:'','remove':'remove'==_0x965dbd?_0x4bbc1e['data']:''});else{if(this['_schema']['isObject'](_0x4bbc1e)){const _0x7a0258=_0x4bbc1e;if(_0x34b0ff&&_0x34b0ff['type']['indexOf']('Container')>-0x1&&_0x32918d['pop'](),'elementEnd'==_0x1beeca['type'])continue;_0x34b0ff&&_0x34b0ff['type']==_0x965dbd+'Object'&&_0x34b0ff['element']['name']==_0x7a0258['name']?_0x34b0ff['quantity']++:_0x32918d['push']({'type':_0x965dbd+'Object','element':_0x7a0258,'quantity':0x1}),_0x2ea6a9['skip'](_0x54159e=>!('elementEnd'==_0x54159e['type']&&_0x54159e['item']==_0x4bbc1e));}else{if(this['_schema']['checkChild'](_0x4bbc1e,'$text')||_0x4bbc1e['is']('element','softBreak')){const _0x57984b=_0x4bbc1e;if('add'==_0x965dbd&&'elementStart'==_0x1beeca['type']||'remove'==_0x965dbd&&'elementEnd'==_0x1beeca['type'])continue;if(_0x34b0ff&&-0x1==_0x34b0ff['type']['indexOf']('Container')){'text'==_0x34b0ff['type']&&(_0x34b0ff[_0x965dbd]+='\x0a');continue;}let _0x588bbf;if(_0x588bbf='add'==_0x965dbd?_0x57984b['nextSibling']&&!this['_schema']['isObject'](_0x57984b['nextSibling'])?_0x57984b['nextSibling']:null:_0x57984b['previousSibling']&&!this['_schema']['isObject'](_0x57984b['previousSibling'])?_0x57984b['previousSibling']:null,_0x57984b['isEmpty']||_0x588bbf&&_0x588bbf['isEmpty']){const _0x105b55=_0x588bbf&&_0x588bbf['isEmpty']?_0x588bbf:_0x57984b;_0x34b0ff&&_0x34b0ff['type']==_0x965dbd+'EmptyContainer'&&_0x34b0ff['element']['name']==_0x105b55['name']?_0x34b0ff['quantity']++:_0x32918d['push']({'type':_0x965dbd+'EmptyContainer','element':_0x105b55,'quantity':0x1});}else _0x32918d['push']({'type':_0x965dbd+'Container','element':_0x57984b});}}}}}['_resolveDescriptionItems'](_0x48a862){const _0x401033=this['_locale'],_0x593530=[],_0x8b8a9f=[],_0x8f3321=[];for(const _0x2a9a57 of _0x48a862)switch(_0x2a9a57['type']){case'text':if(_0x2a9a57['add']=_0x2a9a57['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2a9a57['remove']=_0x2a9a57['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2a9a57['add']&&''!=_0x2a9a57['remove']){_0x593530['push']({'type':'replace','content':o(_0x401033,'REPLACE_TEXT',['\x22'+_0x2a9a57['remove']+'\x22','\x22'+_0x2a9a57['add']+'\x22'])});continue;}if(null!=_0x2a9a57['add']['match'](/^ +$/)){_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Insert:*\x20%0',o(_0x401033,'ELEMENT_SPACE',_0x2a9a57['add']['length']))});continue;}if(null!=_0x2a9a57['remove']['match'](/^ +$/)){_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Remove:*\x20%0',o(_0x401033,'ELEMENT_SPACE',_0x2a9a57['remove']['length']))});continue;}if(''!=_0x2a9a57['add']){_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Insert:*\x20%0','\x22'+_0x2a9a57['add']+'\x22')});continue;}_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Remove:*\x20%0','\x22'+_0x2a9a57['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Insert:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Remove:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'addContainer':_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Split:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'removeContainer':_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Merge:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'addFormat':_0x8b8a9f['push'](_0x2a9a57['key']);continue;case'removeFormat':_0x8f3321['push'](_0x2a9a57['key']);continue;default:_0x593530['push'](_0x2a9a57);}if(_0x8b8a9f['length']){const _0x77bbde=_0x8b8a9f['map'](_0x4fd500=>this['_attributeLabels']['has'](_0x4fd500)?this['_attributeLabels']['get'](_0x4fd500):_0x4fd500)['join'](',\x20');_0x593530['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x77bbde)});}if(_0x8f3321['length']){const _0x391438=_0x8f3321['map'](_0x326853=>this['_attributeLabels']['has'](_0x326853)?this['_attributeLabels']['get'](_0x326853):_0x326853)['join'](',\x20');_0x593530['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x391438)});}return _0x593530;}['_handleCustomCallbackDescription'](_0x571ad9){for(const _0x1e8962 of this['_customCallbacks']){const _0xce907d=_0x1e8962(_0x571ad9);if(_0xce907d&&'type'in _0xce907d)return _0xce907d;}}['_handleAttributeSuggestionDescription'](_0xbcbb60,_0x4c5103){const _0x6d54bd=_0x4c5103['data'],_0x598397=void 0x0===_0x6d54bd['newValue']?'removeFormat':'addFormat';_0xbcbb60['push']({'type':_0x598397,'key':_0x6d54bd['key']});}['_handleRenameSuggestionDescription'](_0x3764ca,_0x38d6e5){_0x3764ca['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x38d6e5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f6891,_0x43dbe6,_0x527f9e){if(this['_addDescriptionItems'](_0x4f6891,_0x43dbe6),_0x527f9e&&_0x527f9e['getFirstRange']()&&!_0x43dbe6['getFirstRange']()['end']['isEqual'](_0x527f9e['getFirstRange']()['start'])){const _0x3d27d2=_0x4f6891[_0x4f6891['length']-0x1],_0x2d4278='insertion'==_0x43dbe6['type']?'add':'remove';_0x3d27d2&&'text'==_0x3d27d2['type']&&(_0x3d27d2[_0x2d4278]+='\x0a');}}}class U extends _0x2e0600{['afterInit'](){const _0x290537=this['editor'],_0x561ed7=_0x290537['plugins']['get']('TrackChangesEditing');_0x290537['commands']['get']('showAIAssistant')&&_0x561ed7['enableCommand']('showAIAssistant');}}class V extends _0x2e0600{['afterInit'](){const _0x14f071=this['editor'],_0x224b8c=_0x14f071['locale'];if(!_0x14f071['plugins']['has']('AlignmentEditing'))return;const _0x58a244=_0x14f071['plugins']['get']('TrackChangesEditing');_0x58a244['enableDefaultAttributesIntegration']('alignment'),_0x58a244['registerBlockAttribute']('alignment'),_0x58a244['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x224b8c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26a48f=this['editor'],_0x464e2f=_0x26a48f['locale'];_0x26a48f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209f39=>{if('formatBlock'!=_0x209f39['type'])return;const {data:_0x5ba7cc}=_0x209f39;if(_0x5ba7cc&&'alignment'==_0x5ba7cc['commandName']){const _0x1e922f=_0x5ba7cc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x464e2f,'*Format:*\x20%0',function(_0x214f18){switch(_0x214f18){case'left':return o(_0x464e2f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x464e2f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x464e2f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x464e2f,'FORMAT_JUSTIFY_TEXT');}}(_0x1e922f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2e0600{['afterInit'](){const _0x331e8a=this['editor'],_0x57ae4c=_0x331e8a['plugins']['get']('TrackChangesEditing'),_0x6a27b3=_0x331e8a['locale'];for(const _0x38cced of ti){if(!_0x331e8a['plugins']['has'](_0x38cced))continue;const _0x42cd04=_0x38cced['slice'](0x0,-0x7)['toLowerCase'](),_0x346999='FORMAT_'+_0x42cd04['toUpperCase']();_0x57ae4c['enableDefaultAttributesIntegration'](_0x42cd04),_0x57ae4c['registerInlineAttribute'](_0x42cd04),_0x57ae4c['descriptionFactory']['registerAttributeLabel'](_0x42cd04,o(_0x6a27b3,_0x346999));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf8f15d=this['editor'],_0xfd491b=_0xf8f15d['locale'],_0xd1a704=_0xf8f15d['plugins']['get']('TrackChangesEditing');function _0x4f0337(_0x43aa20,_0xdce536){_0xd1a704['descriptionFactory']['registerDescriptionCallback'](_0x1e834c=>{if('formatInline'!=_0x1e834c['type'])return;const {data:_0x301748}=_0x1e834c;return _0x301748&&_0x301748['commandName']===_0x43aa20?_0x301748['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfd491b,'*Format:*\x20%0',_0xdce536)}:{'type':'format','content':o(_0xfd491b,'*Remove\x20format:*\x20%0',_0xdce536)}:void 0x0;});}_0x4f0337('bold',o(_0xfd491b,'FORMAT_BOLD')),_0x4f0337('italic',o(_0xfd491b,'FORMAT_ITALIC')),_0x4f0337('underline',o(_0xfd491b,'FORMAT_UNDERLINE')),_0x4f0337('code',o(_0xfd491b,'FORMAT_CODE')),_0x4f0337('strikethrough',o(_0xfd491b,'FORMAT_STRIKETHROUGH')),_0x4f0337('subscript',o(_0xfd491b,'FORMAT_SUBSCRIPT')),_0x4f0337('superscript',o(_0xfd491b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e0600{['afterInit'](){const _0x2903e3=this['editor'],_0x1998e8=_0x2903e3['locale'];if(!_0x2903e3['plugins']['has']('BlockQuoteEditing'))return;const _0x4a9891=_0x2903e3['plugins']['get']('TrackChangesEditing'),_0x357e23=this['editor']['commands']['get']('blockQuote');_0x4a9891['enableCommand']('blockQuote',(_0x5a43e3,_0x1dc276={})=>{const _0x512d3d=this['editor']['model']['document']['selection'],_0xdb3124=_0x1dc276&&void 0x0!==_0x1dc276['forceValue']?_0x1dc276['forceValue']:!_0x357e23['value'];let _0x427608=[];if(_0xdb3124){const _0x54d3d2=Array['from'](_0x512d3d['getSelectedBlocks']())['filter'](_0x412f80=>oo(_0x412f80)||function(_0x4fc3a7,_0x417994){const _0x36a4c4=_0x417994['checkChild'](_0x4fc3a7['parent'],'blockQuote'),_0x3996a6=_0x417994['checkChild'](['$root','blockQuote'],_0x4fc3a7);return _0x36a4c4&&_0x3996a6;}(_0x412f80,this['editor']['model']['schema']));_0x427608=to(_0x54d3d2,_0x2903e3['model']);}else{const _0x25f9c0=Array['from'](_0x512d3d['getSelectedBlocks']())['filter'](_0x3d8541=>oo(_0x3d8541));_0x427608=to(_0x25f9c0,_0x2903e3['model']);}_0x2903e3['model']['change'](()=>{for(const _0x544660 of _0x427608)_0x4a9891['markBlockFormat'](_0x544660,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xdb3124}]});});}),_0x4a9891['descriptionFactory']['registerDescriptionCallback'](_0x5ba1da=>{const {data:_0x189eb8}=_0x5ba1da;if(_0x189eb8&&'blockQuote'==_0x189eb8['commandName']){const _0x3a10d2=o(_0x1998e8,'ELEMENT_BLOCK_QUOTE');return _0x189eb8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1998e8,'*Set\x20format:*\x20%0',_0x3a10d2)}:{'type':'format','content':o(_0x1998e8,'*Remove\x20format:*\x20%0',_0x3a10d2)};}});}}function oo(_0x3dc04f){return'blockQuote'==_0x3dc04f['parent']['name'];}class L extends _0x2e0600{['afterInit'](){const _0x22748d=this['editor'],_0x517618=_0x22748d['locale'],_0x1dc7e4=_0x22748d['plugins']['get']('TrackChangesEditing');_0x22748d['plugins']['has']('BookmarkEditing')&&(_0x1dc7e4['enableCommand']('insertBookmark'),_0x1dc7e4['enableDefaultAttributesIntegration']('updateBookmark'),_0x1dc7e4['registerBlockAttribute']('bookmarkId'),_0x1dc7e4['descriptionFactory']['registerDescriptionCallback'](_0xedf6bc=>{if('insertion'!=_0xedf6bc['type']&&'deletion'!=_0xedf6bc['type']&&'attribute'!=_0xedf6bc['type'])return;const _0x39e3dd=_0xedf6bc['getContainedElement']();if(null==_0x39e3dd)return;if(!_0x39e3dd['is']('element','bookmark'))return;const _0x21c8a2=_0x39e3dd['getAttribute']('bookmarkId');if('insertion'==_0xedf6bc['type'])return{'type':'insertion','content':o(_0x517618,'*Insert:*\x20%0','\x22'+_0x21c8a2+'\x22\x20'+o(_0x517618,'ELEMENT_BOOKMARK'))};if('deletion'==_0xedf6bc['type'])return{'type':'deletion','content':o(_0x517618,'*Remove:*\x20%0','\x22'+_0x21c8a2+'\x22\x20'+o(_0x517618,'ELEMENT_BOOKMARK'))};const {data:_0x3c16b7}=_0xedf6bc;if(!_0x3c16b7||'bookmarkId'!=_0x3c16b7['key'])return;return{'type':'format','content':o(_0x517618,'*Set\x20bookmark:*\x20%0','\x22'+_0x3c16b7['newValue']+'\x22')};}));}}class J extends _0x2e0600{['afterInit'](){const _0x58bcc8=this['editor'];_0x58bcc8['plugins']['has']('CaseChange')&&(_0x58bcc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x58bcc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x58bcc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2e0600{['afterInit'](){const _0x43658e=this['editor'];_0x43658e['commands']['get']('ckbox')&&_0x43658e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2e0600{['afterInit'](){const _0x1ab686=this['editor'];if(!_0x1ab686['plugins']['has']('CodeBlock'))return;const _0x1a7b28=_0x1ab686['plugins']['get']('TrackChangesEditing'),_0x4011b6=_0x1ab686['locale'],_0x169427=_0x1ab686['config']['get']('codeBlock')['languages'],_0x53de97=_0x1ab686['commands']['get']('codeBlock');_0x1a7b28['enableCommand']('indentCodeBlock'),_0x1a7b28['enableCommand']('outdentCodeBlock'),_0x1a7b28['enableCommand']('codeBlock',(_0x5cceb3,_0x37a2b9={})=>{const _0x508098=_0x1ab686['model'],_0x4d40de=_0x1ab686['model']['document']['selection'],_0x251479=_0x37a2b9&&void 0x0!==_0x37a2b9['forceValue']?_0x37a2b9['forceValue']:!_0x53de97['value'];let _0x10fab6;_0x37a2b9['language']||(_0x37a2b9['language']=_0x169427[0x0]['language']),_0x10fab6=_0x251479?Array['from'](_0x4d40de['getSelectedBlocks']())['filter'](_0x5a87fa=>eo(_0x5a87fa)||function(_0x27dcd8,_0x262330){if(_0x27dcd8['is']('rootElement')||_0x262330['isLimit'](_0x27dcd8))return!0x1;return _0x262330['checkChild'](_0x27dcd8['parent'],'codeBlock');}(_0x5a87fa,_0x508098['schema'])):Array['from'](_0x4d40de['getSelectedBlocks']())['filter'](_0xcdaa19=>eo(_0xcdaa19));const _0x31368c=to(_0x10fab6,_0x508098);_0x508098['change'](()=>{for(const _0x1300e2 of _0x31368c)_0x1a7b28['markBlockFormat'](_0x1300e2,{'commandName':'codeBlock','commandParams':[{..._0x37a2b9,'forceValue':_0x251479}],'formatGroupId':'blockName'});});}),(_0x1a7b28['descriptionFactory']['registerElementLabel']('codeBlock',_0x559db5=>o(_0x4011b6,'ELEMENT_CODE_BLOCK',_0x559db5)),_0x1a7b28['descriptionFactory']['registerDescriptionCallback'](_0x210c9d=>{if('formatBlock'!=_0x210c9d['type'])return;const _0x5261d1=_0x4011b6['t'],{data:_0x3607c9}=_0x210c9d;if(!_0x3607c9||'codeBlock'!=_0x3607c9['commandName'])return;const _0x1520d8=_0x3607c9['commandParams'][0x0]['language'],_0x1a5a29=_0x5261d1(_0x169427['find'](_0xf619c2=>_0xf619c2['language']===_0x1520d8)['label'])['toLowerCase']();return _0x3607c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4011b6,'*Set\x20format:*\x20%0',o(_0x4011b6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1a5a29+')')}:{'type':'format','content':o(_0x4011b6,'*Remove\x20format:*\x20%0',o(_0x4011b6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x16cbed){return'codeBlock'==_0x16cbed['name'];}class z extends _0x2e0600{['afterInit'](){const _0x16d43b=this['editor'];if(!_0x16d43b['plugins']['has']('CommentsEditing'))return;_0x16d43b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1ced4a,_0x355d37,_0x5ca6a8){const _0x4b842e=[];for(const _0x30e482 of _0x355d37['getItems']())_0x30e482['hasAttribute'](_0x1ced4a)&&_0x4b842e['push'](_0x5ca6a8['createRangeOn'](_0x30e482));return _0x4b842e;}function De(_0x2b8868,_0x2c6098,{showActiveMarker:_0x4c5db2=!0x0}={}){const _0x5f9113=_0x2b8868['plugins']['get']('TrackChangesEditing');return(_0x3ee509,_0x3bbff0,_0x3396a2)=>{if(!_0x3396a2['consumable']['test'](_0x3bbff0['markerRange'],_0x3ee509['name']))return;const _0x7fd851=_0x3bbff0['markerRange']['getWalker'](),_0x278592=_0x3bbff0['markerRange']['start'],_0x55f7c8=_0x2b8868['model']['schema'];let _0x514d53=null,_0x213831=null,_0x44bf40=!0x1,_0x27e866=!0x1;for(const _0x3d62f5 of _0x7fd851){const _0x11604d=_0x3d62f5['item'];_0x44bf40=_0x44bf40||_0x55f7c8['isContent'](_0x11604d);const _0x2b24bd=_0x3396a2['mapper']['toViewElement'](_0x11604d);if(_0x2b24bd&&_0x2b24bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d62f5['type']&&(_0x55f7c8['isBlock'](_0x11604d)&&!_0x55f7c8['isLimit'](_0x11604d)&&(_0x11604d['nextSibling']||_0x278592['isAtEnd']?_0x514d53&&_0x514d53['parent']==_0x11604d||(_0x514d53=_0x11604d,_0x1d0f8a(_0x3d62f5['previousPosition']),_0x27e866=!0x0):_0x213831=_0x213831||_0x3d62f5['previousPosition']));}function _0x1d0f8a(_0x30f58d){const {authorId:_0x6dee33}=_0x5f9113['_splitMarkerName'](_0x3bbff0['markerName']),_0xe25a94=_0x3396a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c6098,'data-author-id':_0x6dee33}),_0x5d9fdc=_0x3396a2['mapper']['toViewPosition'](_0x30f58d);_0x4c5db2&&_0x5f9113['activeMarkers']['includes'](_0x3bbff0['markerName'])&&_0x3396a2['writer']['addClass']('ck-suggestion-marker--active',_0xe25a94),_0x3396a2['writer']['insert'](_0x5d9fdc,_0xe25a94),_0x3396a2['mapper']['bindElementToMarker'](_0xe25a94,_0x3bbff0['markerName']);}_0x44bf40||_0x27e866||!_0x213831||_0x1d0f8a(_0x213831);};}class K extends _0x2e0600{static get['requires'](){return[_0x3f742a];}['init'](){const _0x5e37bd=this['editor'],_0x82122b=_0x5e37bd['plugins']['get']('TrackChangesEditing');_0x82122b['enableCommand']('delete');const _0x4e29d2=_0x5e37bd['commands']['get']('deleteForward');_0x82122b['enableCommand']('deleteForward',(_0x2d3c35,_0x427bd2={})=>{const _0x88cad7=_0x5e37bd['model']['createSelection'](_0x5e37bd['model']['document']['selection']);_0x88cad7['isCollapsed']&&_0x5e37bd['model']['modifySelection'](_0x88cad7,{'direction':'forward','unit':_0x427bd2['unit']});const _0x34b773=_0x88cad7['getFirstRange'](),_0x10ca2f=_0x1200ae['fromRange'](_0x34b773);let _0xe2e3c1;_0x2d3c35(_0x427bd2),_0xe2e3c1='$graveyard'==_0x10ca2f['root']['rootName']?_0x5e37bd['model']['createRange'](_0x34b773['start']):_0x5e37bd['model']['createRange'](_0x10ca2f['start'],_0x10ca2f['end']),_0x10ca2f['detach'](),_0x5e37bd['model']['enqueueChange'](_0x4e29d2['buffer']['batch'],_0xe0333e=>{_0x4e29d2['buffer']['lock'](),_0xe0333e['setSelection'](_0xe0333e['createRange'](_0xe2e3c1['end'])),_0x4e29d2['buffer']['unlock']();});}),_0x5e37bd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5e37bd,'merge'),{'priority':'high'}),_0x5e37bd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3059a7,_0x567117,_0x5aba88)=>{_0x5aba88['options']['showSuggestionHighlights']&&De(_0x5e37bd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3059a7,_0x567117,_0x5aba88);},{'priority':'high'}),_0x5e37bd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1c2dfc,_0x101ec7,_0x318ed1)=>{const _0x23d0bb=_0x318ed1['mapper']['markerNameToElements'](_0x101ec7['markerName']);if(_0x23d0bb){for(const _0x5d3d5b of _0x23d0bb)_0x5d3d5b['is']('uiElement')&&(_0x318ed1['mapper']['unbindElementFromMarkerName'](_0x5d3d5b,_0x101ec7['markerName']),_0x318ed1['writer']['remove'](_0x5d3d5b));}},{'priority':'high'});}}class W extends _0x2e0600{['afterInit'](){const _0x3c8bb3=this['editor'];if(!_0x3c8bb3['plugins']['has']('ListEditing'))return;const _0x1ff684=_0x3c8bb3['locale'],_0x19b2d6=_0x3c8bb3['plugins']['get']('TrackChangesEditing'),_0x2cb101=_0x3c8bb3['plugins']['has']('TodoListEditing'),_0x84f3b=!!_0x3c8bb3['config']['get']('list.multiBlock');function _0xe39364(_0x452869){return{'type':'format','content':''+o(_0x1ff684,'*Set\x20format:*\x20%0',_0x452869)};}function _0x49b532(_0x16ebbc){return{'type':'format','content':''+o(_0x1ff684,'*Remove\x20format:*\x20%0',_0x16ebbc)};}_0x19b2d6['enableDefaultAttributesIntegration']('numberedList'),_0x19b2d6['enableDefaultAttributesIntegration']('bulletedList'),_0x19b2d6['enableDefaultAttributesIntegration']('customNumberedList'),_0x19b2d6['enableDefaultAttributesIntegration']('customBulletedList'),_0x19b2d6['enableDefaultAttributesIntegration']('indentList'),_0x19b2d6['enableDefaultAttributesIntegration']('outdentList'),_0x19b2d6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19b2d6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19b2d6['registerBlockAttribute']('listItemId'),_0x19b2d6['registerBlockAttribute']('listType'),_0x19b2d6['registerBlockAttribute']('listIndent'),_0x84f3b&&(_0x19b2d6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19b2d6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2cb101&&(_0x19b2d6['enableDefaultAttributesIntegration']('todoList'),_0x19b2d6['enableDefaultAttributesIntegration']('checkTodoList'),_0x19b2d6['registerBlockAttribute']('todoListChecked'),_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x49bbc4=>{const {data:_0x27938d}=_0x49bbc4;if(_0x27938d&&'todoListChecked'==_0x27938d['key'])return{'type':'format','content':_0x27938d['newValue']?o(_0x1ff684,'*Check\x20item*'):o(_0x1ff684,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e729e=>{if(_0x2e729e['batch']['isUndo'])return!0x1;let _0x50d6ab=!0x1;const _0xca2976=_0x19b2d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27991a=>'todoListChecked'===_0x19b2d6['_getAttributeKey'](_0x27991a));for(const _0x349106 of _0xca2976){'todo'!=_0x349106['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19b2d6['_findSuggestions'](_0x349106['getFirstRange'](),'attribute')['find'](_0x5cea32=>'listType'===_0x19b2d6['_getAttributeKey'](_0x5cea32['suggestion']))||(_0x2e729e['removeMarker'](_0x349106['getFirstMarker']()),_0x50d6ab=!0x0));}return _0x50d6ab;})),_0x19b2d6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1ff684,'FORMAT_INDENT'));const _0x51364f={'type':'format','content':''};_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x138b1c=>{const {data:_0x17834a}=_0x138b1c;if(!_0x17834a||'listType'!=_0x17834a['key'])return;let _0x508503=_0x138b1c['head'];for(;_0x508503;){if(_0x508503['data']&&(('listStyle'==_0x508503['data']['key']||'listMarkerStyle'==_0x508503['data']['key'])&&(_0x508503['data']['newValue']&&'default'!=_0x508503['data']['newValue']||'default'!=_0x508503['data']['oldValue']&&!_0x17834a['newValue'])||!_0x84f3b&&_0x508503['data']['key']==m))return _0x51364f;_0x508503=_0x508503['next'];}if(null==_0x17834a['newValue'])switch(_0x17834a['oldValue']){case'bulleted':return _0x49b532(o(_0x1ff684,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49b532(o(_0x1ff684,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49b532(o(_0x1ff684,'ELEMENT_TODO_LIST'));}switch(_0x17834a['newValue']){case'bulleted':return _0xe39364(o(_0x1ff684,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe39364(o(_0x1ff684,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe39364(o(_0x1ff684,'ELEMENT_TODO_LIST'));}}),_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x4bef2b=>{const {data:_0x2d590a}=_0x4bef2b;if(_0x2d590a&&'listIndent'==_0x2d590a['key'])return null==_0x2d590a['newValue']||null==_0x2d590a['oldValue']&&0x0==_0x2d590a['newValue']?_0x51364f:void 0x0;}),_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x308ff3=>{if('attribute'!=_0x308ff3['type'])return;const {data:_0x52b2ee}=_0x308ff3;if(!_0x52b2ee||'listItemId'!=_0x52b2ee['key'])return;const _0x3b331a=Te(_0x308ff3);return'newValue'==_0x3b331a?{'type':'format','content':o(_0x1ff684,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3b331a?{'type':'format','content':o(_0x1ff684,'*Split:*\x20list\x20item')}:_0x51364f;}),_0x3c8bb3['model']['document']['registerPostFixer'](_0x28bf2d=>this['listItemIdFixer'](_0x28bf2d)),_0x3c8bb3['model']['document']['registerPostFixer'](_0x43fbb5=>this['noTrackChangesFixer'](_0x43fbb5)),_0x3c8bb3['model']['document']['on']('change:data',(_0x42a948,_0x569431)=>{if(_0x569431['isUndo']||!_0x569431['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x54b69d){if(_0x54b69d['batch']['isUndo']||!_0x54b69d['batch']['isLocal'])return!0x1;let _0x583bcd=!0x1;const _0x5e982d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28efbd=>_0x28efbd['data']&&'listItemId'==_0x28efbd['data']['key'])['filter'](_0x4845a3=>_0x4845a3['data']['newValue']&&_0x4845a3['data']['oldValue']);for(const _0x23ecd7 of _0x5e982d)Te(_0x23ecd7)||(_0x54b69d['removeMarker'](_0x23ecd7['getFirstMarker']()),_0x583bcd=!0x0);return _0x583bcd;}['noTrackChangesFixer'](_0x18bd0b){if(_0x18bd0b['batch']['isUndo']||!_0x18bd0b['batch']['isLocal'])return!0x1;const _0x2cae98=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2cae98['trackChangesCommand']['value'])return!0x1;let _0x4e9973=!0x1;const _0x104ccc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26281a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd8b0f3=>'attribute'==_0xd8b0f3['type'])['filter'](_0xdfe5fe=>_0x104ccc['includes'](_0xdfe5fe['attributeKey']));if(0x0==_0x26281a['length'])return _0x4e9973;for(const _0x3623f7 of _0x26281a){const _0xa4d3dd=_0x2cae98['_findSuggestions'](_0x3623f7['range'],'attribute')['filter'](_0x1f74ee=>!_0x1f74ee['meta']['isNextTo'])['map'](_0x30a112=>_0x30a112['suggestion'])['filter'](_0x17fb30=>{const _0x17343c=_0x2cae98['_getAttributeKey'](_0x17fb30);return _0x104ccc['includes'](_0x17343c);});if(_0xa4d3dd['length']){for(const _0x4bbb52 of _0xa4d3dd)_0x18bd0b['removeMarker'](_0x4bbb52['getFirstMarker']());_0x4e9973=!0x0;}}return _0x4e9973;}['assureChains'](){const _0x4c2c1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4211=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f15bb;const _0x28288b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x41f6b1=>{if(_0x41f6b1['data']['oldRange']||!_0x41f6b1['data']['newRange'])return null;if(!_0x41f6b1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7a6527}=_0x4c2c1e['_splitMarkerName'](_0x41f6b1['name']);if(!_0x4c2c1e['hasSuggestion'](_0x7a6527))return null;const _0x23ce5f=_0x4c2c1e['getSuggestion'](_0x7a6527);return _0x1e4211['includes'](_0x23ce5f['data']['key']);})['map'](_0x52637b=>{const {id:_0x2c62c5}=_0x4c2c1e['_splitMarkerName'](_0x52637b['name']),_0x11324d=_0x4c2c1e['getSuggestion'](_0x2c62c5);return _0x3f15bb=_0x11324d['attributes']['groupId'],_0x11324d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x28288b['size'])return;const _0x535942=_0x4c2c1e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e3fde=>'attribute'==_0x5e3fde['type']&&_0x5e3fde['data']&&_0x1e4211['includes'](_0x5e3fde['data']['key'])&&_0x5e3fde['attributes']['groupId']!=_0x3f15bb)['map'](_0x1b0931=>({'listItem':_0x1b0931['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1b0931['attributes']['groupId']})),_0x50b7f0=new Set();for(const {groupId:_0x1a3be5,listItem:_0xc59330}of _0x535942)_0x28288b['has'](_0xc59330)&&_0x50b7f0['add'](_0x1a3be5);for(const _0x2d3f8a of _0x4c2c1e['getSuggestions']())_0x50b7f0['has'](_0x2d3f8a['attributes']['groupId'])&&_0x2d3f8a['setAttribute']('groupId',_0x3f15bb);}['_supportLegacySuggestions'](){const _0x1d61f4=this['editor'],_0x2d940d=_0x1d61f4['locale'],_0x2044a1=_0x1d61f4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2044a1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x478d38,_0x1ebc4f){const _0x463ef3=[];for(let _0x323b0b of _0x478d38)_0x323b0b['start']['nodeAfter']===_0x323b0b['end']['parent']&&(_0x323b0b=_0x1d61f4['model']['createRange'](_0x1d61f4['model']['createPositionAt'](_0x323b0b['start']['nodeAfter'],0x0))),_0x463ef3['push'](_0x323b0b);_0x1d61f4['model']['change'](_0x4f89f7=>{const _0x431e95=_0x1d61f4['model']['document']['selection'],_0x1d6562=Array['from'](_0x431e95['getRanges']())['map'](_0x393d85=>_0x1200ae['fromRange'](_0x393d85));_0x4f89f7['setSelection'](_0x463ef3),_0x1d61f4['commands']['get'](_0x1ebc4f['commandName'])['refresh'](),_0x1ebc4f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d61f4['execute'](_0x1ebc4f['commandName'],..._0x1ebc4f['commandParams']),_0x4f89f7['setSelection'](_0x1d6562);for(const _0x5a7167 of _0x1d6562)_0x5a7167['detach']();});}),_0x2044a1['descriptionFactory']['registerElementLabel'](function(_0x3ba480){const _0x29e254=!_0x1d61f4['model']['schema']['isObject'](_0x3ba480),_0xb7924f=_0x3ba480['previousSibling'],_0x66c644=_0x3ba480['nextSibling'],_0x1bf1f6=_0x3ba480['getAttribute']('listItemId'),_0x2af26d=!_0xb7924f||_0xb7924f['getAttribute']('listItemId')!==_0x1bf1f6,_0x23af1d=!_0x66c644||_0x66c644['getAttribute']('listItemId')!==_0x1bf1f6;return _0x29e254&&Boolean(_0x1bf1f6)&&_0x2af26d&&_0x23af1d;},_0x5053f1=>o(_0x2d940d,'ELEMENT_LIST_ITEM',_0x5053f1));}['_registerLegacyDescription'](){const _0x16c323=this['editor'],_0x121f1d=_0x16c323['locale'];function _0x2fe687(_0x4c0a29){const _0x563a0e=_0x16c323['commands']['get']('bulletedList')['value'],_0x3ab993=_0x16c323['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c0a29?_0x563a0e:_0x3ab993;}_0x16c323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf8b0ea){if('formatBlock'!=_0xf8b0ea['type'])return;const {data:_0x224e54}=_0xf8b0ea;if(!_0x224e54)return;let _0x2640d0,_0x4eda40,_0x867544,_0x25ea17;switch(_0x224e54['commandName']){case'bulletedList':_0x867544=_0x224e54['commandParams'][0x0]['forceValue'],_0x25ea17=_0x2fe687(_0x224e54['commandName']),_0x2640d0=_0x867544?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25ea17&&_0x16c323['config']['get']('list.multiBlock')||(_0x2640d0='*Change\x20to:*\x20%0'),_0x4eda40={'type':'format','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x867544=_0x224e54['commandParams'][0x0]['forceValue'],_0x25ea17=_0x2fe687(_0x224e54['commandName']),_0x2640d0=_0x867544?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25ea17&&_0x16c323['config']['get']('list.multiBlock')||(_0x2640d0='*Change\x20to:*\x20%0'),_0x4eda40={'type':'format','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2640d0='*Indent:*\x20%0',_0x4eda40={'type':'format','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2640d0=function(_0x5c4f5e){const _0x156dc4=_0x5c4f5e['getFirstRange']();let _0x5f23e0=_0x156dc4['start']['nodeAfter'];for(;_0x5f23e0&&_0x156dc4['containsItem'](_0x5f23e0);){if(_0x5f23e0['getAttribute']('listIndent')>0x0)return!0x1;_0x5f23e0=_0x5f23e0['nextSibling'];}return!0x0;}(_0xf8b0ea)?o(_0x121f1d,'*Format:*\x20remove\x20from\x20%0',o(_0x121f1d,function(_0x5cd9bd){return'ELEMENT_'+_0x5cd9bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf8b0ea))):o(_0x121f1d,'*Outdent:*\x20%0',o(_0x121f1d,'ELEMENT_LIST_ITEM')),_0x4eda40={'type':'format','content':_0x2640d0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x224e54['multipleBlocks']&&(_0x2640d0='*Merge:*\x20%0',_0x4eda40={'type':'deletion','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_LIST_ITEM'))});}return _0x4eda40;});}}function Te(_0xa56162){let _0x25c47e=_0xa56162['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x25c47e;){const _0x3cb1d5=_0x25c47e['getAttribute']('listItemId');if(!_0x3cb1d5)return!0x1;if(_0x3cb1d5==_0xa56162['data']['newValue'])return'newValue';if(_0x3cb1d5==_0xa56162['data']['oldValue'])return'oldValue';_0x25c47e=_0x25c47e['previousSibling'];}return!0x1;}class Se extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5a11eb=this['editor']['config']['get']('list.properties'),_0x268095=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a11eb['styles']&&(_0x268095['enableDefaultAttributesIntegration']('listStyle'),_0x268095['registerBlockAttribute']('listStyle')),_0x5a11eb['reversed']&&(_0x268095['enableDefaultAttributesIntegration']('listReversed'),_0x268095['registerBlockAttribute']('listReversed')),_0x5a11eb['startIndex']&&(_0x268095['enableDefaultAttributesIntegration']('listStart'),_0x268095['registerBlockAttribute']('listStart'));const _0x2d74a2={'type':'format','content':''};_0x268095['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x462243=this['editor']['locale'];_0x268095['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x462243,'FORMAT_LIST_REVERSED')),_0x268095['descriptionFactory']['registerDescriptionCallback'](_0x37daf0=>{const {data:_0x2caa57}=_0x37daf0;if(_0x2caa57&&'listReversed'==_0x2caa57['key'])return null==_0x2caa57['newValue']||0x0==_0x2caa57['newValue']&&null==_0x2caa57['oldValue']?_0x2d74a2:void 0x0;}),_0x268095['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x462243,'FORMAT_LIST_START')),_0x268095['descriptionFactory']['registerDescriptionCallback'](_0x2840d4=>{const {data:_0x1da6b4}=_0x2840d4;if(_0x1da6b4&&'listStart'==_0x1da6b4['key'])return null==_0x1da6b4['newValue']||0x1==_0x1da6b4['newValue']&&null==_0x1da6b4['oldValue']?_0x2d74a2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38add2=>{if(_0x38add2['batch']['isUndo'])return!0x1;let _0x572d55=!0x1;const _0x5a42c0=_0x268095['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ef185=>{const _0x41922e=_0x268095['_getAttributeKey'](_0x3ef185);return'listStart'==_0x41922e||'listReversed'==_0x41922e;});for(const _0x4d67b5 of _0x5a42c0){const _0x5480b0=_0x4d67b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5480b0||'customNumbered'==_0x5480b0)continue;_0x268095['_findSuggestions'](_0x4d67b5['getFirstRange'](),'attribute')['find'](_0x228796=>'listType'==_0x268095['_getAttributeKey'](_0x228796['suggestion']))||(_0x38add2['removeMarker'](_0x4d67b5['getFirstMarker']()),_0x572d55=!0x0);}return _0x572d55;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x513c98){const _0x2a447e=this['editor']['locale'],{data:_0x2ffa28}=_0x513c98,_0x8216e9={'type':'format','content':''};if(!_0x2ffa28||'listStyle'!=_0x2ffa28['key'])return;if(!_0x2ffa28['oldValue'])return'default'==_0x2ffa28['newValue']?_0x8216e9:{'type':'format','content':''+o(_0x2a447e,'*Set\x20format:*\x20%0',o(_0x2a447e,this['_getTranslationKeyForListStyle'](_0x2ffa28['newValue'])))};if(!_0x2ffa28['newValue']){if('default'==_0x2ffa28['oldValue'])return _0x8216e9;let _0x5018d5=_0x513c98['head'];for(;_0x5018d5;){if(_0x5018d5['data']&&'listType'==_0x5018d5['data']['key']&&_0x5018d5['data']['newValue'])return _0x8216e9;_0x5018d5=_0x5018d5['next'];}return{'type':'format','content':''+o(_0x2a447e,'*Remove\x20format:*\x20%0',o(_0x2a447e,this['_getTranslationKeyForListStyle'](_0x2ffa28['oldValue'])))};}if('default'!=_0x2ffa28['newValue'])return{'type':'format','content':''+o(_0x2a447e,'*Set\x20format:*\x20%0',o(_0x2a447e,this['_getTranslationKeyForListStyle'](_0x2ffa28['newValue'])))};let _0x315296=_0x513c98['head'];for(;_0x315296;){if(_0x315296['data']&&'listType'==_0x315296['data']['key']&&_0x315296['data']['newValue']&&_0x315296['data']['oldValue'])return _0x8216e9;_0x315296=_0x315296['next'];}return{'type':'format','content':o(_0x2a447e,'*Set\x20format:*\x20%0',o(_0x2a447e,'ELEMENT_'+_0x513c98['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x77dc0f=this['editor'],_0x32a998=_0x77dc0f['locale'];_0x77dc0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c0e78=>{if('formatBlock'!=_0x1c0e78['type'])return;const {data:_0x55431c}=_0x1c0e78;if(!_0x55431c)return;let _0x3dae3e,_0x202400;switch(_0x55431c['commandName']){case'listStyle':_0x3dae3e='*Change\x20to:*\x20%0',_0x202400={'type':'format','content':o(_0x32a998,_0x3dae3e,o(_0x32a998,this['_getTranslationKeyForListStyle'](_0x55431c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3dae3e=_0x55431c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x202400={'type':'format','content':o(_0x32a998,_0x3dae3e)};break;case'listStart':_0x3dae3e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x202400={'type':'format','content':o(_0x32a998,_0x3dae3e,_0x55431c['commandParams'][0x0]['startIndex'])};}return _0x202400;});}['_getTranslationKeyForListStyle'](_0x5064b2){return'ELEMENT_'+function(_0x32f5a8){if(_e['includes'](_0x32f5a8))return'bulleted';if(Re['includes'](_0x32f5a8))return'numbered';return null;}(_0x5064b2)['toUpperCase']()+'_LIST_'+_0x5064b2['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2e0600{['afterInit'](){const _0x2cc144=this['editor'];_0x2cc144['commands']['get']('emoji')&&_0x2cc144['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2e0600{static get['requires'](){return[_0x57352a];}['init'](){const _0x21e530=this['editor'],_0x46b60d=_0x21e530['plugins']['get']('TrackChangesEditing'),_0x359871=_0x21e530['commands']['get']('enter');_0x46b60d['enableCommand']('enter',()=>{_0x21e530['model']['change'](_0x2a9486=>{const _0x4c9580=_0x21e530['model']['document']['selection'],_0x12495e=_0x4c9580['getFirstPosition'](),_0x380f14=_0x1200ae['fromRange'](_0x4c9580['getFirstRange']());if(_0x359871['enterBlock'](_0x2a9486)){const _0x5d8048=_0x21e530['model']['createPositionAt'](_0x12495e['parent']['nextSibling'],0x0),_0x3f9928=_0x2a9486['createRange'](_0x12495e,_0x5d8048);_0x46b60d['markInsertion'](_0x3f9928);}else _0x2a9486['setSelection'](_0x2a9486['createRange'](_0x380f14['end']));_0x380f14['detach'](),_0x359871['fire']('afterExecute',{'writer':_0x2a9486});});}),_0x21e530['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x21e530,'split'),{'priority':'high'}),_0x21e530['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4e394f,_0x5c92ec,_0x5a2b11)=>{const _0x1e0bca=_0x5a2b11['mapper']['markerNameToElements'](_0x5c92ec['markerName']);if(_0x1e0bca){for(const _0x5852af of _0x1e0bca)_0x5852af['hasClass']('ck-suggestion-marker-split')&&(_0x5a2b11['mapper']['unbindElementFromMarkerName'](_0x5852af,_0x5c92ec['markerName']),_0x5a2b11['writer']['remove'](_0x5852af));}},{'priority':'high'}),_0x21e530['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54346d,_0x301da1,_0x738d66)=>{_0x738d66['options']['showSuggestionHighlights']&&De(_0x21e530,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54346d,_0x301da1,_0x738d66);},{'priority':'high'});}}class Z extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2e37d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e37d3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2e37d3['enableCommand']('findNext'),_0x2e37d3['enableCommand']('findPrevious'),_0x2e37d3['enableCommand']('replace'),_0x2e37d3['enableCommand']('replaceAll');}['handleFindCommand'](_0x44d5aa,_0x54cb49,_0x371d35={}){const _0x4d717f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x44d5aa(_0x2dac6d=>{let _0x1e1a08=('string'==typeof _0x54cb49?_0x4d717f['findByTextCallback'](_0x54cb49,_0x371d35):_0x54cb49)(_0x2dac6d);Array['isArray'](_0x1e1a08)&&(_0x1e1a08={'results':_0x1e1a08,'searchText':'string'==typeof _0x54cb49?_0x54cb49:''});const _0x46f75e=_0x1e1a08['results']['filter'](_0x485f9f=>!0x1===this['_isInDeletionRange'](_0x485f9f,_0x2dac6d['item']));return{..._0x1e1a08,'results':_0x46f75e};},_0x371d35);}['_isInDeletionRange'](_0x2d3daf,_0x289ae5){const _0x24e159=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x289ae5,_0x2d3daf['start']),this['editor']['model']['createPositionAt'](_0x289ae5,_0x2d3daf['end']));for(const _0x3f01a6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x24e159['getIntersection'](_0x3f01a6['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 _0x2e0600{['afterInit'](){const _0x2be158=this['editor']['locale'],_0x35d741=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3b697e,commandName:_0x2349a2}of ro)this['editor']['plugins']['has'](_0x3b697e)&&(_0x35d741['enableDefaultAttributesIntegration'](_0x2349a2),_0x35d741['registerInlineAttribute'](_0x2349a2));_0x35d741['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2be158,'FORMAT_FONT_SIZE')),_0x35d741['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2be158,'FORMAT_FONT_FAMILY')),_0x35d741['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2be158,'FORMAT_FONT_COLOR')),_0x35d741['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2be158,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15ef07=this['editor'],_0x674347=_0x15ef07['locale'];_0x15ef07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30e06f=>{const _0x175681=_0x674347['t'];if('formatInline'!=_0x30e06f['type'])return;const {data:_0x4a0cf1}=_0x30e06f;if(null!=_0x4a0cf1){if('fontSize'==_0x4a0cf1['commandName']){const _0x460514=_0x4a0cf1['commandParams'][0x0]['value'];if(_0x460514){const _0x58114e=_0x175681(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1dcd31=>_0x1dcd31['model']==_0x460514)['title'])['toLowerCase']();return{'type':'format','content':o(_0x674347,'*Set\x20font\x20size:*\x20%0',_0x58114e)};}return{'type':'format','content':o(_0x674347,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a0cf1['commandName']){const _0x1a270d=_0x4a0cf1['commandParams'][0x0]['value'];return _0x1a270d?{'type':'format','content':o(_0x674347,'*Set\x20font\x20family:*\x20%0',_0x1a270d)}:{'type':'format','content':o(_0x674347,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a0cf1['commandName']){const _0x3cd5f6=_0x4a0cf1['commandParams'][0x0]['value'];if(_0x3cd5f6){const _0xd93d42=_0x21d4ef(this['editor']['config']['get']('fontColor.colors'))['find'](_0x9f4664=>_0x9f4664['model']==_0x3cd5f6);let _0x44ac69=_0x3cd5f6,_0x24bc22='';return _0xd93d42&&(_0x44ac69=_0xd93d42['label'],_0x24bc22=_0x175681(_0x44ac69)['toLowerCase']()),{'type':'format','content':o(_0x674347,'*Set\x20font\x20color:*\x20%0',_0x24bc22)['trim'](),'color':{'value':_0x3cd5f6,'title':_0x24bc22||_0x44ac69}};}return{'type':'format','content':o(_0x674347,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a0cf1['commandName']){const _0x5b6426=_0x4a0cf1['commandParams'][0x0]['value'];if(_0x5b6426){const _0x23ca3a=_0x21d4ef(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bc7e6=>_0x2bc7e6['model']==_0x5b6426);let _0x51daaa=_0x5b6426,_0x3f6abb='';return _0x23ca3a&&(_0x51daaa=_0x23ca3a['label'],_0x3f6abb=_0x175681(_0x51daaa)['toLowerCase']()),{'type':'format','content':o(_0x674347,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f6abb)['trim'](),'color':{'value':_0x5b6426,'title':_0x3f6abb||_0x51daaa}};}return{'type':'format','content':o(_0x674347,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x2e0600{['afterInit'](){const _0x45512f=this['editor'],_0x5a225f=_0x45512f['plugins']['get']('TrackChangesEditing'),_0x57cdfb=_0x45512f['commands']['get']('copyFormat'),_0x20c24d=_0x45512f['commands']['get']('pasteFormat');_0x57cdfb&&_0x20c24d&&(_0x5a225f['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a225f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2270eb=this['editor'],_0x4dfd70=_0x2270eb['locale'];_0x2270eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54f683=>{if('formatBlock'!=_0x54f683['type']&&'formatInline'!=_0x54f683['type'])return;const {data:_0x190652}=_0x54f683;if(_0x190652&&'pasteFormat'===_0x190652['commandName']){const _0x634378=[],_0x6c4420=_0x190652['commandParams'][0x0];for(const [_0x1201fd,_0x38ee24]of Object['entries'](_0x6c4420))_0x634378['push'](so(_0x2270eb,_0x1201fd,_0x38ee24));return _0x634378['length']?{'type':'format','content':o(_0x4dfd70,'*Set\x20format\x20to:*\x20%0',_0x634378['join'](',\x20'))}:{'type':'format','content':o(_0x4dfd70,'*Remove\x20all\x20formatting*')};}});}}function so(_0x25fa30,_0x3e93e7,_0x245ab9){const _0x295de4=_0x25fa30['locale']['t'],_0x2eced4=_0x3e93e7['split'](/(?=[A-Z])/)['join']('\x20'),_0x9aa178=_0x295de4(_0x2eced4['charAt'](0x0)['toUpperCase']()+_0x2eced4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x245ab9)return _0x9aa178;if('fontColor'===_0x3e93e7||'fontBackgroundColor'===_0x3e93e7){const _0x4643e5=_0x21d4ef(_0x25fa30['config']['get']('fontColor.colors'))['find'](_0x27a34c=>_0x27a34c['model']==_0x245ab9);return _0x9aa178+'\x20('+(_0x4643e5?_0x295de4(_0x4643e5['label'])['toLowerCase']():_0x245ab9)+')';}if('fontSize'===_0x3e93e7&&isNaN(parseFloat(_0x245ab9))){const _0x47e4e4=_0x25fa30['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x25fa30['config']['get']('fontSize.options'))['find'](_0x126d73=>_0x126d73['model']==_0x245ab9);return _0x9aa178+'\x20('+(_0x47e4e4?_0x295de4(_0x47e4e4['title'])['toLowerCase']():_0x245ab9)+')';}return _0x9aa178+'\x20('+_0x245ab9+')';}class it extends _0x2e0600{['_headingOptions'];['afterInit'](){const _0x1d2115=this['editor'];if(!_0x1d2115['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1d2115['config']['get']('heading.options');const _0x20983c=_0x1d2115['locale'],_0x227330=_0x1d2115['plugins']['get']('TrackChangesEditing');_0x227330['enableDefaultAttributesIntegration']('heading');for(const _0x2c71e6 of this['_headingOptions'])'paragraph'!=_0x2c71e6['model']&&_0x227330['descriptionFactory']['registerElementLabel'](_0x2c71e6['model'],_0x4e8074=>{const _0x40d82e=this['_getHeadingLevel'](_0x2c71e6['model']);return null!==_0x40d82e?_0x583fad(_0x4e8074,_0x40d82e):_0x9703df(_0x4e8074,_0x2c71e6['title']);});function _0x583fad(_0x250df9,_0x57371e){return o(_0x20983c,'ELEMENT_HEADING',[_0x250df9,_0x57371e]);}function _0x9703df(_0x4b81cf,_0x34ea1f){return o(_0x20983c,'ELEMENT_HEADING_CUSTOM',[_0x4b81cf,_0x34ea1f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ac82=this['editor'],_0x1ca338=_0x53ac82['locale'];function _0x717043(_0x30eb89,_0x4e08b6){return o(_0x1ca338,'ELEMENT_HEADING_CUSTOM',[_0x30eb89,_0x4e08b6]);}_0x53ac82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x262a4d=>{if('formatBlock'!=_0x262a4d['type'])return;const {data:_0x2ad253}=_0x262a4d;if(_0x2ad253&&'heading'==_0x2ad253['commandName']){const _0x3256cc=_0x2ad253['commandParams'][0x0]['value'],_0x5dd8a5=this['_getHeadingLevel'](_0x3256cc);if(null!==_0x5dd8a5)return{'type':'format','content':o(_0x1ca338,'*Change\x20to:*\x20%0',(_0x3cfcd0=0x1,_0x284ecc=_0x5dd8a5,o(_0x1ca338,'ELEMENT_HEADING',[_0x3cfcd0,_0x284ecc])))};const _0x3f0f74=this['_headingOptions']['find'](_0x489f91=>_0x489f91['model']===_0x3256cc)['title'];return{'type':'format','content':o(_0x1ca338,'*Change\x20to:*\x20%0',_0x717043(0x1,_0x3f0f74))};}var _0x3cfcd0,_0x284ecc;});}['_getHeadingLevel'](_0x2bae37){const _0x926714=_0x2bae37['match'](/^heading(\d+)/);if(_0x926714)return _0x926714[0x1];const _0x517c45=this['_headingOptions']?.['find'](_0x15c3d4=>_0x15c3d4['model']==_0x2bae37);if(_0x517c45&&_0x517c45['view']){const _0x50f595=_0x517c45['view'],_0x1ed9bf=(_0x50f595['name']??_0x50f595)['match'](/^h(\d+)/);if(_0x1ed9bf)return _0x1ed9bf[0x1];}return null;}}class et extends _0x2e0600{['afterInit'](){const _0x3f6432=this['editor'];if(!_0x3f6432['plugins']['has']('HighlightEditing'))return;const _0x341293=_0x3f6432['plugins']['get']('TrackChangesEditing'),_0x1dffd5=_0x3f6432['locale'];_0x341293['enableDefaultAttributesIntegration']('highlight'),_0x341293['registerInlineAttribute']('highlight'),_0x341293['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1dffd5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x93034c=this['editor'],_0xcc2e5=_0x93034c['locale'];_0x93034c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45609b=>{if('formatInline'!=_0x45609b['type'])return;const {data:_0x28b393}=_0x45609b;if(_0x28b393&&'highlight'==_0x28b393['commandName']){const _0x476bb3=_0xcc2e5['t'],_0x454177=_0x28b393['commandParams'][0x0]['value'];if(_0x454177){const _0x1b5259=_0x93034c['config']['get']('highlight.options')['find'](_0x3de839=>_0x3de839['model']==_0x454177),_0x58f7ab=_0x476bb3(_0x1b5259['title'])['toLowerCase']();return{'type':'format','content':o(_0xcc2e5,'*Set\x20highlight:*\x20%0',_0x58f7ab),'color':{'value':_0x1b5259['color'],'title':_0x1b5259['title']}};}return{'type':'format','content':o(_0xcc2e5,'*Remove\x20highlight*',o(_0xcc2e5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2e0600{['afterInit'](){const _0x5f2a9e=this['editor'];if(!_0x5f2a9e['plugins']['has']('HorizontalLineEditing'))return;_0x5f2a9e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x34f016=_0x5f2a9e['plugins']['get']('TrackChangesEditing'),_0x6953f6=_0x5f2a9e['locale'];_0x34f016['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5dfdcd=>o(_0x6953f6,'ELEMENT_HORIZONTAL_LINE',_0x5dfdcd)),_0x5f2a9e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a0909,{writer:_0x5e042f,options:_0x732e79})=>{if(!_0x732e79['showSuggestionHighlights'])return null;const _0x5d94c0=_0x5e042f['createContainerElement']('div'),_0x51f65a=_0x5e042f['createEmptyElement']('hr');return _0x5e042f['addClass']('ck-horizontal-line',_0x5d94c0),_0x5e042f['insert'](_0x5e042f['createPositionAt'](_0x5d94c0,0x0),_0x51f65a),_0x5d94c0;},'converterPriority':'high'});}}class ot extends _0x2e0600{['afterInit'](){const _0x21cf2d=this['editor'];if(!_0x21cf2d['plugins']['has']('HtmlEmbed'))return;const _0x221655=_0x21cf2d['plugins']['get']('TrackChangesEditing'),_0x52f807=_0x21cf2d['locale'];_0x221655['descriptionFactory']['registerElementLabel']('rawHtml',_0x247f5e=>o(_0x52f807,'ELEMENT_HTML_EMBED',_0x247f5e)),_0x221655['enableDefaultAttributesIntegration']('htmlEmbed'),_0x221655['registerBlockAttribute']('value'),_0x221655['descriptionFactory']['registerDescriptionCallback'](_0x43b621=>{if('attribute'!=_0x43b621['type'])return;const {data:_0x1d431e}=_0x43b621;if(_0x1d431e&&'value'==_0x1d431e['key']&&_0x43b621['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4cbe91=o(_0x52f807,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52f807,'*Change\x20%0\x20content*',_0x4cbe91)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cca6c=this['editor'],_0x536664=_0x3cca6c['locale'];_0x3cca6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc5a49b=>{if('formatBlock'!=_0xc5a49b['type'])return;const {data:_0x1e31ec}=_0xc5a49b;if(_0x1e31ec&&'htmlEmbed'==_0x1e31ec['commandName']){const _0x10fb7b=o(_0x536664,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x536664,'*Change\x20%0\x20content*',_0x10fb7b)};}});}}class rt extends _0x2e0600{['afterInit'](){const _0x5b344f=this['editor'];if(!_0x5b344f['plugins']['has']('ImageEditing'))return;const _0x2538e2=_0x5b344f['plugins']['get']('TrackChangesEditing'),_0x16afab=_0x5b344f['plugins']['get']('ImageUtils'),_0x468869=_0x5b344f['locale'];_0x2538e2['enableCommand']('insertImage'),_0x2538e2['descriptionFactory']['registerElementLabel']('imageBlock',_0x68d6a1=>o(_0x468869,'ELEMENT_IMAGE',_0x68d6a1)),_0x2538e2['descriptionFactory']['registerElementLabel']('imageInline',_0x1a8587=>o(_0x468869,'ELEMENT_INLINE_IMAGE',_0x1a8587)),_0x2538e2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x468869,'ELEMENT_CAPTION')),_0x5b344f['plugins']['has']('ImageUploadEditing')&&_0x2538e2['enableCommand']('uploadImage'),_0x5b344f['plugins']['has']('ImageBlockEditing')&&_0x5b344f['plugins']['has']('ImageInlineEditing')&&(_0x2538e2['enableCommand']('imageTypeInline',(_0x27f546,_0x578d37)=>{const _0x117393=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']);_0x5b344f['model']['change'](()=>{_0x2538e2['markBlockFormat'](_0x117393,{'commandName':'imageTypeInline','commandParams':[_0x578d37]},[],'convertBlockImageToInline');});}),_0x2538e2['enableCommand']('imageTypeBlock',(_0x4ab7ac,_0x558812)=>{_0x5b344f['model']['change'](_0x51214c=>{let _0x2e330d=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x4f1b64=_0x51214c['createRangeOn'](_0x2e330d);const _0xed66f3=_0x4c297e['fromPosition'](_0x4f1b64['start'],'toPrevious'),_0x31b669=_0x4c297e['fromPosition'](_0x4f1b64['end'],'toNext');_0x2538e2['forceDefaultExecution'](()=>_0x4ab7ac(_0x558812)),_0x2e330d=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x4f1b64=_0x51214c['createRangeOn'](_0x2e330d);const _0x5e9388=_0x51214c['createRange'](_0xed66f3,_0x31b669);_0xed66f3['detach'](),_0x31b669['detach'](),_0x2538e2['markBlockFormat'](_0x2e330d,{'commandName':'imageTypeInline','commandParams':[_0x558812]},[],'convertInlineImageToBlock'),_0x5e9388['start']['isBefore'](_0x4f1b64['start'])&&_0x2538e2['markInsertion'](_0x51214c['createRange'](_0x5e9388['start'],_0x4f1b64['start']),'convertInlineImageToBlock'),_0x4f1b64['end']['isBefore'](_0x5e9388['end'])&&_0x2538e2['markInsertion'](_0x51214c['createRange'](_0x4f1b64['end'],_0x5e9388['end']),'convertInlineImageToBlock');});}),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2538e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3144df])=>{const _0x40bfee=_0x2538e2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x51749c=_0x3144df['start'],_0x29ea90=_0x3144df['end'];const _0x508b30=_0x5b344f['model']['schema']['getNearestSelectionRange'](_0x51749c,'backward'),_0x5cd96b=_0x5b344f['model']['schema']['getNearestSelectionRange'](_0x29ea90,'forward');_0x508b30['isCollapsed']&&(_0x51749c=_0x508b30['start']),_0x5cd96b['isCollapsed']&&(_0x29ea90=_0x5cd96b['end']),_0x40bfee([_0x5b344f['model']['createRange'](_0x51749c,_0x29ea90)]);}),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x37a7e1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x37a7e1)),_0x5b344f['plugins']['has']('ImageCaptionEditing')&&(_0x2538e2['enableCommand']('toggleImageCaption',(_0x45c002,_0x47e5ce)=>{const _0x21b37e=_0x5b344f['plugins']['get']('ImageCaptionUtils');let _0x48d7d0=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x1cafa3=_0x21b37e['getCaptionFromImageModelElement'](_0x48d7d0);_0x5b344f['model']['change'](()=>{if(_0x1cafa3)return void _0x2538e2['markDeletion'](_0x5b344f['model']['createRangeOn'](_0x1cafa3));const _0x394446=_0x16afab['isBlockImage'](_0x48d7d0);_0x45c002(_0x47e5ce),_0x48d7d0=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x1cafa3=_0x21b37e['getCaptionFromImageModelElement'](_0x48d7d0),_0x2538e2['markInsertion'](_0x5b344f['model']['createRangeOn'](_0x1cafa3),_0x394446?null:'imageCaption');});}),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x37a7e1));const _0x552e1f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x131dbf(_0x21201d,_0x5e22f9){const _0x21a801=_0x552e1f['findIndex'](({type:_0x790da4,subType:_0x565cb9})=>_0x21201d['type']==_0x790da4&&_0x21201d['subType']==_0x565cb9),_0x18f1c4=_0x552e1f['findIndex'](({type:_0x2c1827,subType:_0x29cf16})=>_0x5e22f9['type']==_0x2c1827&&_0x5e22f9['subType']==_0x29cf16);if(_0x21a801<0x0||_0x18f1c4<0x0)return!0x1;const _0x34aea8=_0x21201d['getFirstRange'](),_0xeb49ff=_0x5e22f9['getFirstRange']();if((0x0==_0x21a801||0x1==_0x21a801)&&0x2==_0x18f1c4&&_0x34aea8['isIntersecting'](_0xeb49ff))return!0x0;if(0x2==_0x21a801&&0x3==_0x18f1c4){const _0x668f2d=_0x2538e2['_findSuggestions'](_0x34aea8,'insertion')['filter'](({suggestion:_0x285607,meta:_0x7b8413})=>_0x7b8413['isOwn']&&'convertInlineImageToBlock'==_0x285607['subType']);if(_0x668f2d['length']>0x1&&_0xeb49ff['end']['isEqual'](_0x34aea8['start']))return!0x0;if(0x1==_0x668f2d['length']&&(_0x34aea8['start']['isEqual'](_0xeb49ff['end'])||_0x34aea8['end']['isEqual'](_0xeb49ff['start'])))return!0x0;}if(0x3==_0x21a801&&0x3==_0x18f1c4&&_0x34aea8['start']['isBefore'](_0xeb49ff['start'])){const _0x469847=_0x34aea8['end']['nodeAfter'],_0x3aec12=_0xeb49ff['start']['nodeBefore'];return _0x16afab['isBlockImage'](_0x469847)&&_0x469847===_0x3aec12;}return!0x1;}function _0x37a7e1(_0x25e8f4,_0x2accf3){return _0x131dbf(_0x25e8f4,_0x2accf3)?[_0x25e8f4,_0x2accf3]:_0x131dbf(_0x2accf3,_0x25e8f4)?[_0x2accf3,_0x25e8f4]:null;}_0x5b344f['plugins']['has']('ImageResize')&&(_0x2538e2['enableDefaultAttributesIntegration']('resizeImage'),_0x2538e2['registerBlockAttribute']('resizedWidth'),_0x2538e2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x468869,'FORMAT_IMAGE_SIZE'))),_0x5b344f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2538e2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2538e2['registerBlockAttribute']('alt')),_0x5b344f['plugins']['has']('PictureEditing')&&(_0x2538e2['registerBlockAttribute']('sources'),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x1d5f18=>{if('attribute'!=_0x1d5f18['type'])return;const {data:_0x2d47e2}=_0x1d5f18;return _0x2d47e2&&'sources'==_0x2d47e2['key']?{'type':'format','content':''}:void 0x0;})),_0x5b344f['plugins']['has']('ImageSizeAttributes')&&(_0x2538e2['registerBlockAttribute']('width'),_0x2538e2['registerBlockAttribute']('height'),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x1c530f=>{if('attribute'!=_0x1c530f['type'])return;const {data:_0x1287a1}=_0x1c530f;return!_0x1287a1||'width'!=_0x1287a1['key']&&'height'!=_0x1287a1['key']?void 0x0:{'type':'format','content':''};})),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x45aefc=>{if(!!_0x552e1f['find'](({type:_0x1b2481,subType:_0x46deaf})=>_0x45aefc['type']==_0x1b2481&&_0x45aefc['subType']==_0x46deaf))return _0x45aefc['previous']?{}:void 0x0;}),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x1b6908=>{if('insertion'==_0x1b6908['type']||'deletion'==_0x1b6908['type']){const _0x52f7c3=_0x1b6908['getContainedElement']();if(_0x52f7c3&&_0x52f7c3['is']('element','caption'))return{'type':'insertion'==_0x1b6908['type']?'addObject':'removeObject','element':_0x52f7c3,'quantity':0x1};}}),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x38f2ca=>'formatBlock'==_0x38f2ca['type']&&'convertInlineImageToBlock'==_0x38f2ca['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x38f2ca['type']&&'convertBlockImageToInline'==_0x38f2ca['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x3930aa=>{if('attribute'!=_0x3930aa['type'])return;const {data:_0x216579}=_0x3930aa;if(!_0x216579||'alt'!=_0x216579['key'])return;const _0x23f238=_0x216579['newValue'];return _0x23f238?{'type':'format','content':o(_0x468869,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23f238+'\x22')}:{'type':'format','content':o(_0x468869,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x784fc=this['editor'],_0x35e076=_0x784fc['locale'];_0x784fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178be7=>{if('formatBlock'!=_0x178be7['type']&&'formatInline'!=_0x178be7['type'])return;const {data:_0x16c171}=_0x178be7;if(_0x16c171){if('imageTextAlternative'==_0x16c171['commandName']){const _0x1320be=_0x16c171['commandParams'][0x0]['newValue'];return _0x1320be?{'type':'format','content':o(_0x35e076,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1320be+'\x22')}:{'type':'format','content':o(_0x35e076,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x16c171['commandName']){const _0x469fb2=_0x16c171['commandParams'][0x0]['width'];return _0x469fb2?{'type':'format','content':o(_0x35e076,'*Set\x20image\x20width:*\x20%0',_0x469fb2)}:{'type':'format','content':o(_0x35e076,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xbb4a71=this['editor']['locale'],_0x4c5b18=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c5b18['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c5b18['registerBlockAttribute']('src'),_0x4c5b18['descriptionFactory']['registerDescriptionCallback'](_0x3ab1bc=>{if('attribute'!=_0x3ab1bc['type'])return;const {data:_0xbde9a2}=_0x3ab1bc;return _0xbde9a2&&'src'==_0xbde9a2['key']?_0xbde9a2['newValue']&&_0xbde9a2['oldValue']?{'type':'format','content':o(_0xbb4a71,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc78b86=this['editor']['plugins']['get']('TrackChangesEditing');_0xc78b86['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc78b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc78b86['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc78b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x170017=this['editor'],_0x4d50c8=_0x170017['locale'];_0x170017['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dd663=>{if('formatBlock'!=_0x2dd663['type']&&'formatInline'!=_0x2dd663['type'])return;const {data:_0xda2873}=_0x2dd663;if(!_0xda2873||'replaceImageSource'!=_0xda2873['commandName'])return;return{'type':'format','content':o(_0x4d50c8,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2e0600{['afterInit'](){const _0x33c5ae=this['editor'];if(!_0x33c5ae['plugins']['has']('ImageStyleEditing'))return;const _0x28d9fc=_0x33c5ae['plugins']['get']('TrackChangesEditing'),_0x15934b=_0x33c5ae['plugins']['get']('ImageUtils'),_0x182a47={};_0x28d9fc['enableCommand']('imageStyle',(_0x31482a,_0x783a4e)=>{const _0x272f2b=_0x33c5ae['plugins']['get']('Users')['me'],_0x4eeb98=_0x33c5ae['commands']['get']('imageStyle');let _0x2bd976=_0x15934b['getClosestSelectedImageElement'](_0x33c5ae['model']['document']['selection']),_0xf13510=_0x33c5ae['model']['createRangeOn'](_0x2bd976),_0x4e5f2a=_0x4eeb98['value'];if(_0x4e5f2a==_0x783a4e['value'])return;const _0x3a8e02={'commandName':'imageStyle','commandParams':[_0x783a4e],'formatGroupId':_0x502eb1()};_0x33c5ae['model']['change'](()=>{if(_0x28d9fc['getSuggestions']()['filter'](_0x320396=>_0x320396['isInContent']&&_0x272f2b==_0x320396['author']&&('formatBlock'==_0x320396['type']||'formatInline'==_0x320396['type'])&&('imageStylePreApply'==_0x320396['subType']||'imageStylePostApply'==_0x320396['subType'])&&_0x320396['getFirstRange']()['isEqual'](_0xf13510))['forEach'](_0x225897=>_0x28d9fc['discardSuggestion'](_0x225897['head'])),_0x2bd976=_0x15934b['getClosestSelectedImageElement'](_0x33c5ae['model']['document']['selection']),_0xf13510=_0x33c5ae['model']['createRangeOn'](_0x2bd976),_0x4eeb98['refresh'](),_0x33c5ae['commands']['get']('imageTypeInline')['refresh'](),_0x33c5ae['commands']['get']('imageTypeBlock')['refresh'](),_0x4e5f2a=_0x4eeb98['value'],_0x4e5f2a!=_0x783a4e['value'])return _0x15934b['isInlineImage'](_0x2bd976)&&_0x4eeb98['shouldConvertImageType'](_0x783a4e['value'],_0x2bd976)?(_0x31482a({..._0x783a4e,'setImageSizes':!0x1}),_0x2bd976=_0x15934b['getClosestSelectedImageElement'](_0x33c5ae['model']['document']['selection']),void _0x28d9fc['markBlockFormat'](_0x2bd976,{..._0x3a8e02,'commandReversedParams':[{'value':_0x4e5f2a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15934b['isBlockImage'](_0x2bd976)?_0x28d9fc['markBlockFormat'](_0x2bd976,_0x3a8e02,[],'imageStylePostApply'):_0x28d9fc['markInlineFormat'](_0xf13510,_0x3a8e02,'imageStylePostApply'));});});for(const _0x4c0b66 of _0x33c5ae['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x182a47[_0x4c0b66['name']]=_0x4c0b66['title']['toLowerCase']();_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x120d79])=>{_0x15934b['setImageNaturalSizeAttributes'](_0x120d79['getContainedElement']());}),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x11231a,_0x237b71)=>{_0x28d9fc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x11231a,{'commandName':_0x237b71['commandName'],'commandParams':_0x237b71['commandReversedParams']});}),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3f3c4a,_0x124123){if(_0x35145b(_0x3f3c4a,_0x124123))return[_0x3f3c4a,_0x124123];if(_0x35145b(_0x124123,_0x3f3c4a))return[_0x124123,_0x3f3c4a];return null;});const _0x3b49d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x35145b(_0x5674af,_0xd16d1a){const _0x2bc41d=_0x3b49d9['findIndex'](({type:_0x1228c1,subType:_0x3b86d5})=>_0x5674af['type']==_0x1228c1&&_0x5674af['subType']==_0x3b86d5),_0x3c8955=_0x3b49d9['findIndex'](({type:_0x59d061,subType:_0x2a5e79})=>_0xd16d1a['type']==_0x59d061&&_0xd16d1a['subType']==_0x2a5e79);if(_0x2bc41d<0x0||_0x3c8955<0x0)return!0x1;const _0x4715bd=_0x5674af['getFirstRange'](),_0x57ac77=_0xd16d1a['getFirstRange']();if((0x0==_0x2bc41d||0x1==_0x2bc41d)&&0x2==_0x3c8955&&_0x4715bd['isIntersecting'](_0x57ac77))return!0x0;if(0x2==_0x2bc41d&&0x3==_0x3c8955){const _0x3fbec=_0x28d9fc['_findSuggestions'](_0x4715bd,'insertion')['filter'](({suggestion:_0x206174,meta:_0x3df8ac})=>_0x3df8ac['isOwn']&&'convertInlineImageToBlock'==_0x206174['subType']);if(_0x3fbec['length']>0x1&&_0x57ac77['end']['isEqual'](_0x4715bd['start']))return!0x0;if(0x1==_0x3fbec['length']&&(_0x4715bd['start']['isEqual'](_0x57ac77['end'])||_0x4715bd['end']['isEqual'](_0x57ac77['start'])))return!0x0;}if(0x3==_0x2bc41d&&0x3==_0x3c8955&&_0x4715bd['start']['isBefore'](_0x57ac77['start'])){const _0x2a0888=_0x4715bd['end']['nodeAfter'],_0x431750=_0x57ac77['start']['nodeBefore'];return _0x15934b['isBlockImage'](_0x2a0888)&&_0x2a0888===_0x431750;}return!0x1;}_0x33c5ae['model']['document']['registerPostFixer'](()=>{let _0x303f39=!0x1;const _0x1fd618=Array['from'](_0x33c5ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5736f8,data:_0x3e06f9}of _0x1fd618){const {group:_0x15a973,type:_0x58e142,subType:_0x479da1,id:_0x56aa20}=_0x28d9fc['_splitMarkerName'](_0x5736f8);if('suggestion'==_0x15a973&&_0x28d9fc['hasSuggestion'](_0x56aa20)){if('formatBlock'==_0x58e142&&('imageStylePreApply'==_0x479da1||'imageStylePostApply'==_0x479da1)){const _0x26868f=_0x28d9fc['getSuggestion'](_0x56aa20);if(_0x3e06f9['newRange']){const _0xbe8c9d=_0x26868f['getFirstRange']()['getContainedElement']();if(_0x15934b['isBlockImage'](_0xbe8c9d))continue;_0x28d9fc['discardSuggestion'](_0x26868f),_0x303f39=!0x0;}}if('insertion'==_0x58e142&&'imageCaption'==_0x479da1&&!_0x3e06f9['newRange']){const _0x4f2d3e=_0x28d9fc['getSuggestion'](_0x56aa20);_0x4f2d3e['next']&&_0x4f2d3e['next']['isInContent']&&(_0x28d9fc['discardSuggestion'](_0x4f2d3e['next']),_0x303f39=!0x0);}}}return _0x303f39;}),this['_registerLegacyDescription'](_0x182a47);}['_registerLegacyDescription'](_0x4cf03b){const _0x48d572=this['editor'],_0xf091e4=_0x48d572['locale'];_0x48d572['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47021b=>{if('formatBlock'!=_0x47021b['type']&&'formatInline'!=_0x47021b['type'])return;const {data:_0x409d9d}=_0x47021b;if(!_0x409d9d||'imageStyle'!=_0x409d9d['commandName'])return;const _0x3e93d1=_0x409d9d['commandParams'][0x0]['value'];return _0x53931c('side'===_0x3e93d1?o(_0xf091e4,'FORMAT_SIDE_IMAGE'):_0x4cf03b[_0x3e93d1]||_0x3e93d1);function _0x53931c(_0x5ef3f9){return{'type':'format','content':o(_0xf091e4,'*Format:*\x20%0',_0x5ef3f9)};}});}}class ut extends _0x2e0600{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x90cd3){super(_0x90cd3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc4eae6=this['editor'],_0x459574=_0xc4eae6['commands']['get']('importWord'),_0x2186d2=_0xc4eae6['commands']['get']('trackChanges');_0x459574&&(_0x459574['on']('execute',(_0x382580,[,_0xb4d1ef])=>{this['_trackChangesValueDuringImport']=_0x2186d2['value'],_0xb4d1ef['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x459574,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x459574,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2186d2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc4eae6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x133e76,_0x23f3cb){const {suggestions:_0x34fe81}=_0x23f3cb,_0x35f44d=this['editor']['commands']['get']('trackChanges'),_0x29a092=_0x35f44d['value'];this['_trackChangesValueDuringImport']!==_0x29a092&&(_0x35f44d['execute'](),this['_trackChangesExecuted']=!0x0),_0x34fe81&&_0x34fe81['forEach'](({id:_0x577d88,type:_0x496abb,author:_0x348d0e,created_at:_0x1f86f0})=>{const _0xf5eeb9={'id':_0x577d88,'type':_0x496abb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x348d0e,'createdAt':_0x1f86f0?new Date(_0x1f86f0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xf5eeb9);});}}class ft extends _0x2e0600{['afterInit'](){const _0x25fd6c=this['editor'],_0x2cb2d5=_0x25fd6c['plugins']['get']('TrackChangesEditing');if(_0x25fd6c['plugins']['has']('IndentEditing')&&(_0x2cb2d5['enableCommand']('indent'),_0x2cb2d5['enableCommand']('outdent')),_0x25fd6c['plugins']['has']('IndentBlock')){for(const _0x520e7e of['indentBlock','outdentBlock'])_0x2cb2d5['enableDefaultAttributesIntegration'](_0x520e7e);}const _0x51f310=_0x25fd6c['locale'];_0x2cb2d5['registerBlockAttribute']('blockIndent'),_0x2cb2d5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x51f310,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x176275=this['editor'],_0x54fc96=_0x176275['locale'],_0x599726=_0x176275['plugins']['get']('TrackChangesEditing');_0x599726['descriptionFactory']['registerDescriptionCallback'](_0x25d8a5=>{if('formatBlock'!=_0x25d8a5['type'])return;const {data:_0x1b0120}=_0x25d8a5;if(!_0x1b0120)return;if('indentBlock'!=_0x1b0120['commandName']&&'outdentBlock'!=_0x1b0120['commandName'])return;const _0x276770=_0x25d8a5['getItems']()[0x0],_0x4b36d1=_0x599726['descriptionFactory']['getItemLabel'](_0x276770);return'indentBlock'==_0x1b0120['commandName']?{'type':'format','content':o(_0x54fc96,'*Indent:*\x20%0',_0x4b36d1)}:'outdentBlock'==_0x1b0120['commandName']?{'type':'format','content':o(_0x54fc96,'*Outdent:*\x20%0',_0x4b36d1)}:void 0x0;});}}class ht extends _0x2e0600{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2e0600{['afterInit'](){const _0x54c595=this['editor'];if(!_0x54c595['plugins']['has']('LinkEditing'))return;const _0x3295e0=_0x54c595['plugins']['get']('TrackChangesEditing'),_0xe29651=_0x54c595['commands']['get']('link');_0x3295e0['enableDefaultAttributesIntegration']('link'),_0x3295e0['enableDefaultAttributesIntegration']('unlink'),_0x3295e0['registerInlineAttribute']('linkHref');for(const _0x3d4f8d of _0xe29651['manualDecorators'])_0x3295e0['registerInlineAttribute'](_0x3d4f8d['id']),_0x3295e0['descriptionFactory']['registerAttributeLabel'](_0x3d4f8d['id'],'link\x20('+_0x3d4f8d['label']['toLowerCase']()+')');_0x3295e0['descriptionFactory']['registerDescriptionCallback'](_0xbfe9b8=>{if('attribute'!=_0xbfe9b8['type'])return;const {data:_0x14f0cf}=_0xbfe9b8;if(!_0x14f0cf||'linkHref'!=_0x14f0cf['key'])return;const _0x499e2d=_0x14f0cf['newValue'],_0x1e7667=_0x54c595['locale'];return{'type':'format','content':null==_0x499e2d?o(_0x1e7667,'*Remove\x20link*'):o(_0x1e7667,'*Set\x20link:*\x20%0','\x22'+_0x499e2d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d945e=this['editor'],_0x1ddf27=_0x2d945e['locale'];_0x2d945e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x379339=>{if('formatInline'!=_0x379339['type'])return;const {data:_0x122357}=_0x379339;if(_0x122357){if('link'==_0x122357['commandName']){const _0x2cc261=_0x122357['commandParams'][0x0];return{'type':'format','content':o(_0x1ddf27,'*Set\x20link:*\x20%0','\x22'+_0x2cc261+'\x22')};}return'unlink'==_0x122357['commandName']?{'type':'format','content':o(_0x1ddf27,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2e0600{['afterInit'](){const _0x32ad26=this['editor'],_0x3e3e94=_0x32ad26['locale'];if(!_0x32ad26['plugins']['has']('LegacyListEditing'))return;const _0x55353a=_0x32ad26['plugins']['get']('TrackChangesEditing'),_0xaa934d=_0x32ad26['plugins']['has']('LegacyTodoListEditing');function _0x516a28(_0x47ddd8){return()=>{const _0x1b441d=_0x32ad26['model']['document']['selection'],_0x158885=_0x32ad26['commands']['get'](_0x47ddd8);if(_0x158885['value'])return void _0x32ad26['execute']('paragraph',{});const _0x25a217=_0x47ddd8['slice'](0x0,-0x4),_0x2cd492=function(_0x243b0e,_0x3fb4d7,_0x4c4890){let _0x5c19b3=Array['from'](_0x243b0e)['filter'](_0x2de50d=>function(_0x518ce0,_0x1dd75f){return _0x1dd75f['checkChild'](_0x518ce0['parent'],'listItem')&&!_0x1dd75f['isObject'](_0x518ce0);}(_0x2de50d,_0x4c4890));_0x5c19b3=_0x5c19b3['filter'](_0xf8b057=>!_0xf8b057['is']('element','listItem')||_0xf8b057['getAttribute']('listType')!=_0x3fb4d7);const _0x595f83=new Set();for(const _0x329d90 of _0x5c19b3)_0x329d90['is']('element','listItem')?_0x595f83['add'](Le(_0x329d90)):_0x595f83['add'](_0x329d90);return Array['from'](_0x595f83);}(_0x1b441d['getSelectedBlocks'](),_0x25a217,_0x32ad26['model']['schema']);_0x32ad26['model']['change'](()=>{for(const _0x39b33f of _0x2cd492)_0x55353a['markBlockFormat'](_0x39b33f,{'commandName':_0x47ddd8,'commandParams':[{'forceValue':!_0x158885['value']}],'formatGroupId':'blockName'},Ee(_0x39b33f));});};}function _0x42f548(_0x1f9c01){return()=>{const _0x25d5c5=function(_0x266ab2){let _0x49d8ec=Array['from'](_0x266ab2);const _0x4067b6=_0x49d8ec['findIndex'](_0x169575=>'listItem'!=_0x169575['name']);return _0x4067b6>-0x1&&(_0x49d8ec=_0x49d8ec['slice'](0x0,_0x4067b6)),_0x49d8ec;}(_0x32ad26['model']['document']['selection']['getSelectedBlocks']()),_0x20adbf=_0x32ad26['model']['createRange'](_0x32ad26['model']['createPositionAt'](_0x25d5c5[0x0],'before'),_0x32ad26['model']['createPositionAt'](_0x25d5c5[_0x25d5c5['length']-0x1],'end'));_0x32ad26['model']['change'](()=>{_0x55353a['markBlockFormat'](_0x20adbf,{'commandName':_0x1f9c01,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3dcc14){const _0x4a49af=new Set();for(const _0x477f3d of _0x3dcc14){let _0x210f37=_0x477f3d['nextSibling'];for(;_0x210f37&&_0x210f37['getAttribute']('listIndent')>_0x477f3d['getAttribute']('listIndent');)_0x4a49af['add'](_0x210f37),_0x210f37=_0x210f37['nextSibling'];}return Array['from'](_0x4a49af);}(_0x25d5c5));});};}_0x55353a['enableCommand']('numberedList',_0x516a28('numberedList')),_0x55353a['enableCommand']('bulletedList',_0x516a28('bulletedList')),_0xaa934d&&_0x55353a['enableCommand']('todoList',_0x516a28('todoList')),_0x55353a['enableCommand']('indentList',_0x42f548('indentList')),_0x55353a['enableCommand']('outdentList',_0x42f548('outdentList')),_0xaa934d&&_0x55353a['enableCommand']('checkTodoList',()=>{const _0x4becf1=_0x32ad26['commands']['get']('checkTodoList'),_0x23f9e2=Array['from'](_0x4becf1['_selectedElements']);_0x23f9e2['filter'](_0x454c19=>_0x454c19['getAttribute']('todoListChecked')!=_0x4becf1['value']),_0x32ad26['model']['change'](()=>{for(const _0x1df379 of _0x23f9e2)_0x55353a['markBlockFormat'](_0x1df379,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4becf1['value']}]});});}),_0x55353a['descriptionFactory']['registerElementLabel']('listItem',_0x37c056=>o(_0x3e3e94,'ELEMENT_LIST_ITEM',_0x37c056)),_0x55353a['descriptionFactory']['registerDescriptionCallback'](_0x3181f7=>{if('formatBlock'!=_0x3181f7['type']&&'formatInline'!=_0x3181f7['type'])return;const {data:_0x566a10}=_0x3181f7;if(_0x566a10){if('numberedList'==_0x566a10['commandName']||'bulletedList'==_0x566a10['commandName']||'todoList'==_0x566a10['commandName'])switch(_0x566a10['commandName']['replace']('List','')){case'bulleted':return _0x121cb2(o(_0x3e3e94,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x121cb2(o(_0x3e3e94,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x121cb2(o(_0x3e3e94,'ELEMENT_TODO_LIST'));}if('indentList'==_0x566a10['commandName'])return{'type':'format','content':o(_0x3e3e94,'*Indent:*\x20%0',o(_0x3e3e94,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x566a10['commandName'])return{'type':'format','content':o(_0x3e3e94,'*Outdent:*\x20%0',o(_0x3e3e94,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x566a10['commandName'])return _0x566a10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e3e94,'*Check\x20item*')}:{'type':'format','content':o(_0x3e3e94,'*Uncheck\x20item*')};}function _0x121cb2(_0x3b838d){return{'type':'format','content':o(_0x3e3e94,'*Change\x20to:*\x20%0',_0x3b838d)};}});}}function Le(_0x29bd37){const _0x300c0f=_0x29bd37['getAttribute']('listIndent');if(0x0==_0x300c0f)return _0x29bd37;let _0x510a4d=_0x29bd37;for(;_0x29bd37['previousSibling']&&_0x29bd37['previousSibling']['is']('element','listItem');){const _0x54a668=_0x29bd37['previousSibling']['getAttribute']('listIndent');if(_0x54a668==_0x300c0f)_0x510a4d=_0x29bd37['previousSibling'];else{if(_0x54a668<_0x300c0f)break;}_0x29bd37=_0x29bd37['previousSibling'];}return _0x510a4d;}function Ee(_0x315fc7){const _0x5c4384=[];if(_0x315fc7['is']('element','listItem')&&_0x315fc7['getAttribute']('listIndent')>0x0){let _0x3972cd=_0x315fc7['nextSibling'];for(;_0x3972cd&&'listItem'==_0x3972cd['name']&&_0x3972cd['getAttribute']('listIndent')==_0x315fc7['getAttribute']('listIndent');)_0x5c4384['push'](_0x3972cd),_0x3972cd=_0x3972cd['nextSibling'];}return _0x5c4384;}class Q extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46f01d=this['editor']['config']['get']('list.properties'),_0x549130=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f01d['styles']&&_0x549130['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46f01d['reversed']&&_0x549130['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46f01d['startIndex']&&_0x549130['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x549130['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cb6b6,_0x3b142f={}){const _0x305d6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a458a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x305d6e['markMultiRangeBlockFormat'](_0x3a458a,{'commandName':'listStyle','commandParams':[{'type':_0x3b142f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4c0c2f,_0xc54c6={}){const _0x2db8f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x141fe4=this['_getSuggestionBlocks'](_0x5c68b9=>_0x5c68b9['is']('element','listItem')&&'numbered'===_0x5c68b9['getAttribute']('listType'));if(_0x141fe4['length']<0x1)return;const _0x44c10d=_0x141fe4['map'](_0x1692d2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1692d2,'before'),this['editor']['model']['createPositionAt'](_0x1692d2,0x0)));this['editor']['model']['change'](()=>{_0x2db8f5['markMultiRangeBlockFormat'](_0x44c10d,{'commandName':'listReversed','commandParams':[{'reversed':_0xc54c6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x387c4c,_0x3ffca1={}){const _0xf9f7b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247958=this['_getSuggestionBlocks'](_0x4f7e29=>_0x4f7e29['is']('element','listItem')&&'numbered'===_0x4f7e29['getAttribute']('listType'));if(_0x247958['length']<0x1)return;const _0x4761a0=_0x247958['map'](_0x5831e8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5831e8,'before'),this['editor']['model']['createPositionAt'](_0x5831e8,0x0)));this['editor']['model']['change'](()=>{_0xf9f7b0['markMultiRangeBlockFormat'](_0x4761a0,{'commandName':'listStart','commandParams':[{'startIndex':_0x3ffca1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2c4fcb){if('formatBlock'!=_0x2c4fcb['type']&&'formatInline'!=_0x2c4fcb['type'])return;const _0x25eeec=this['editor']['locale'],{data:_0x13e3aa}=_0x2c4fcb;if(!_0x13e3aa)return;let _0x341658,_0x332adf;switch(_0x13e3aa['commandName']){case'listStyle':_0x341658='*Change\x20to:*\x20%0',_0x332adf={'type':'format','content':o(_0x25eeec,_0x341658,o(_0x25eeec,this['_getTranslationKeyForListStyle'](_0x13e3aa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x341658=_0x13e3aa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x332adf={'type':'format','content':o(_0x25eeec,_0x341658)};break;case'listStart':_0x341658='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x332adf={'type':'format','content':o(_0x25eeec,_0x341658,_0x13e3aa['commandParams'][0x0]['startIndex'])};}return _0x332adf;}['_getSuggestionBlocksForListStyle'](){const _0x1514c1=this['editor']['plugins']['get']('LegacyListUtils');let _0x539376=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x539376[0x0]?.['is']('element','listItem')&&_0x539376['unshift'](..._0x1514c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x539376[_0x539376['length']-0x1]?.['is']('element','listItem')&&_0x539376['push'](..._0x1514c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x539376=[...new Set(_0x539376)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x539376=_0x539376['filter'](_0x45a30b=>_0x45a30b['is']('element','listItem'))),_0x539376;}['_getSuggestionBlocks'](_0xf8da1a){const _0x25f638=this['editor']['plugins']['get']('LegacyListUtils');let _0x21520a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xf8da1a)['map'](_0xe65c53=>{const _0x1620c2=this['editor']['model']['createPositionAt'](_0xe65c53,0x0);return[..._0x25f638['getSiblingNodes'](_0x1620c2,'backward'),..._0x25f638['getSiblingNodes'](_0x1620c2,'forward')];})['flat']();return _0x21520a=[...new Set(_0x21520a)],_0x21520a;}['_getTranslationKeyForListStyle'](_0x2388b1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2388b1)||'default')['toUpperCase']()+'_LIST_'+_0x2388b1['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2e0600{['afterInit'](){const _0x1f9641=this['editor'];if(!_0x1f9641['plugins']['has']('MediaEmbedEditing'))return;const _0x1d3a79=_0x1f9641['plugins']['get']('TrackChangesEditing'),_0x2923b0=_0x1f9641['locale'];_0x1d3a79['enableCommand']('mediaEmbed'),_0x1d3a79['descriptionFactory']['registerElementLabel']('media',_0x39d698=>o(_0x2923b0,'ELEMENT_MEDIA',_0x39d698)),_0x1f9641['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x30c5be,{writer:_0x3955c4,options:_0x2332e1})=>{if(_0x2332e1['showSuggestionHighlights'])return _0x3955c4['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f9641['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3b3616,_0x24b458,_0x552083)=>{_0x552083['options']['showSuggestionHighlights']&&_0x3b3616['stop']();},{'priority':'high'});}}class pt extends _0x2e0600{['afterInit'](){const _0x200a4d=this['editor'];_0x200a4d['plugins']['has']('MentionEditing')&&_0x200a4d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2e0600{['afterInit'](){const _0x58557f=this['editor'];if(!_0x58557f['plugins']['has']('MergeFieldsEditing'))return;const _0x57dede=_0x58557f['plugins']['get']('TrackChangesEditing'),_0x21027a=_0x58557f['locale'];_0x57dede['enableCommand']('insertMergeField'),_0x57dede['enableCommand']('insertMergeFieldBlock'),_0x57dede['enableCommand']('insertMergeFieldImage'),_0x57dede['descriptionFactory']['registerElementLabel']('mergeField',_0x47be0e=>o(_0x21027a,'ELEMENT_MERGE_FIELD',_0x47be0e)),_0x57dede['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3ae3a2=>o(_0x21027a,'ELEMENT_MERGE_FIELD',_0x3ae3a2)),_0x57dede['descriptionFactory']['registerDescriptionCallback'](_0x1ac635=>{if('insertion'!=_0x1ac635['type']&&'deletion'!=_0x1ac635['type'])return;const _0x525482=_0x1ac635['getContainedElement']();if(null==_0x525482)return;const _0x2457ec=_0x58557f['plugins']['get']('MergeFieldsEditing');let _0x1e4b8c;switch(_0x2457ec['getMergeFieldType'](_0x525482)){case null:return;case'image':{const _0x4530e2=_0x2457ec['unwrapAffixes'](_0x525482['getAttribute']('src'));_0x1e4b8c=_0x2457ec['getLabel'](_0x4530e2)||_0x4530e2;break;}default:{const _0x230a30=_0x525482['getAttribute']('id');_0x1e4b8c=_0x2457ec['getLabel'](_0x230a30)||_0x230a30;break;}}return'insertion'==_0x1ac635['type']?{'type':'insertion','content':o(_0x21027a,'*Insert:*\x20%0','\x22'+_0x1e4b8c+'\x22\x20'+o(_0x21027a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x21027a,'*Remove:*\x20%0','\x22'+_0x1e4b8c+'\x22\x20'+o(_0x21027a,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2e0600{['afterInit'](){const _0x195ffd=this['editor'],_0xf91540=_0x195ffd['plugins']['get']('TrackChangesEditing');_0x195ffd['plugins']['has']('MultiLevelList')&&(_0xf91540['enableDefaultAttributesIntegration']('multiLevelList'),_0xf91540['registerBlockAttribute']('listMarkerStyle'),_0xf91540['descriptionFactory']['registerDescriptionCallback'](_0x179aed=>this['handleDescriptions'](_0x179aed)));}['handleDescriptions'](_0x255b20){const _0xc3b2bd=this['editor']['locale'],{data:_0xdca3e2}=_0x255b20,_0x117578={'type':'format','content':''};if(_0xdca3e2&&'listMarkerStyle'==_0xdca3e2['key']){if(!_0xdca3e2['oldValue'])return{'type':'format','content':o(_0xc3b2bd,'*Set\x20format:*\x20%0',o(_0xc3b2bd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdca3e2['newValue']+')'};if(!_0xdca3e2['newValue']){let _0x21608a=_0x255b20['head'];for(;_0x21608a;){if(_0x21608a['data']&&'listType'==_0x21608a['data']['key']&&_0x21608a['data']['newValue'])return _0x117578;_0x21608a=_0x21608a['next'];}return{'type':'format','content':o(_0xc3b2bd,'*Remove\x20format:*\x20%0',o(_0xc3b2bd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdca3e2['oldValue']+')'};}}}}class bt extends _0x2e0600{['afterInit'](){const _0x2a2587=this['editor'];if(!_0x2a2587['plugins']['has']('PageBreakEditing'))return;_0x2a2587['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c1c4e=_0x2a2587['plugins']['get']('TrackChangesEditing'),_0x3111cc=_0x2a2587['locale'];_0x4c1c4e['descriptionFactory']['registerElementLabel']('pageBreak',_0x4e5ddc=>o(_0x3111cc,'ELEMENT_PAGE_BREAK',_0x4e5ddc));}}class yt extends _0x2e0600{['afterInit'](){const _0x2762e9=this['editor'];if(!_0x2762e9['plugins']['has']('Paragraph'))return;const _0x33f59b=_0x2762e9['locale'],_0x40c1b4=_0x2762e9['plugins']['get']('TrackChangesEditing');_0x40c1b4['descriptionFactory']['registerElementLabel']('paragraph',_0x5627ac=>o(_0x33f59b,'ELEMENT_PARAGRAPH',_0x5627ac)),_0x40c1b4['enableDefaultAttributesIntegration']('paragraph'),_0x40c1b4['enableCommand']('insertParagraph'),_0x2762e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2762e9),{'priority':'highest'}),_0x2762e9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x131ba7,_0xce5ae9,_0x29656b)=>{_0x29656b['options']['showSuggestionHighlights']&&nr(_0x2762e9,{'showActiveMarker':!0x1})(_0x131ba7,_0xce5ae9,_0x29656b);},{'priority':'highest'});const _0x5ecf4a=_0x40c1b4['descriptionFactory'];_0x5ecf4a['registerDescriptionCallback'](_0x27b33c=>{if('insertion'!==_0x27b33c['type'])return;const {start:_0x1684ef,end:_0x4700c8}=_0x27b33c['getFirstRange']();if(!_0x1684ef['isTouching'](_0x4700c8)||!_0x1684ef['nodeAfter'])return;const _0x38ad07=_0x2762e9['model']['schema'],_0x5e534b=_0x1684ef['nodeAfter'];return _0x38ad07['isBlock'](_0x5e534b)&&!_0x38ad07['isLimit'](_0x5e534b)&&_0x38ad07['checkChild'](_0x5e534b,'$text')?{'type':'insertion','content':o(_0x33f59b,'*Insert:*\x20%0',_0x5ecf4a['getItemLabel'](_0x5e534b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a0ec4=this['editor'],_0x52951c=_0x5a0ec4['locale'];_0x5a0ec4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cef1d=>{if('formatBlock'!=_0x2cef1d['type'])return;const {data:_0x48e9be}=_0x2cef1d;return _0x48e9be&&'paragraph'==_0x48e9be['commandName']?{'type':'format','content':o(_0x52951c,'*Change\x20to:*\x20%0',o(_0x52951c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x26779c,{showActiveMarker:_0x79521d=!0x0}={}){return(_0x1eae1d,_0x414f7b,_0xcbfb20)=>{const _0x177a51=_0x26779c['plugins']['get']('TrackChangesEditing'),_0x44ff76=_0x414f7b['markerRange']['start'],_0x4723cd=_0x414f7b['markerRange']['end'],_0x299944=_0x26779c['model']['schema'];if(!_0x44ff76['isTouching'](_0x4723cd)||!_0x44ff76['nodeAfter'])return;const _0x439391=_0x44ff76['nodeAfter'];if(_0x299944['isBlock'](_0x439391)&&!_0x299944['isLimit'](_0x439391)&&_0x299944['checkChild'](_0x439391,'$text')){if(!_0xcbfb20['consumable']['consume'](_0x414f7b['markerRange'],_0x1eae1d['name']))return;const {authorId:_0x5ee0e2}=_0x177a51['_splitMarkerName'](_0x414f7b['markerName']),_0x208855=_0xcbfb20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5ee0e2}),_0x582418=_0xcbfb20['mapper']['toViewPosition'](_0x4723cd);_0x79521d&&_0x177a51['activeMarkers']['includes'](_0x414f7b['markerName'])&&_0xcbfb20['writer']['addClass']('ck-suggestion-marker--active',_0x208855),_0xcbfb20['writer']['insert'](_0x582418,_0x208855),_0xcbfb20['mapper']['bindElementToMarker'](_0x208855,_0x414f7b['markerName']);}};}class jt extends _0x2e0600{['afterInit'](){const _0x5e347d=this['editor'];_0x5e347d['commands']['get']('replaceSource')&&_0x5e347d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2e0600{['afterInit'](){const _0x2d3548=this['editor'];if(!_0x2d3548['plugins']['has']('RemoveFormatEditing'))return;_0x2d3548['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548afa=this['editor'];_0x548afa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdf968b=>{if('formatBlock'!=_0xdf968b['type']&&'formatInline'!=_0xdf968b['type'])return;const {data:_0x507ec7}=_0xdf968b;return _0x507ec7&&'removeFormat'==_0x507ec7['commandName']?{'type':'format','content':o(_0x548afa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2e0600{['afterInit'](){const _0x150162=this['editor'];if(!_0x150162['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x388cef=_0x150162['plugins']['get']('TrackChangesEditing');_0x388cef['enableCommand']('goToPreviousRestrictedEditingException'),_0x388cef['enableCommand']('goToNextRestrictedEditingException');const _0x4c20e3=_0x150162['plugins']['get']('RestrictedEditingModeEditing');_0x4c20e3['enableCommand']('trackChanges'),_0x4c20e3['enableCommand']('acceptSuggestion'),_0x4c20e3['enableCommand']('discardSuggestion'),_0x4c20e3['enableCommand']('acceptAllSuggestions'),_0x4c20e3['enableCommand']('discardAllSuggestions'),_0x4c20e3['enableCommand']('acceptSelectedSuggestions'),_0x4c20e3['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2e0600{static get['requires'](){return[_0xf6831f];}['init'](){const _0x2cd0a2=this['editor'],_0x7c2f3d=_0x2cd0a2['plugins']['get']('TrackChangesEditing');_0x7c2f3d['enableCommand']('shiftEnter'),_0x2cd0a2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2cd0a2),{'priority':'high'}),_0x2cd0a2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2cd0a2),{'priority':'high'}),_0x2cd0a2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2271a7,_0x12adbc,_0x2bf714)=>{_0x2bf714['options']['showSuggestionHighlights']&&je(_0x2cd0a2,{'showActiveMarker':!0x1})(_0x2271a7,_0x12adbc,_0x2bf714);}),_0x7c2f3d['descriptionFactory']['registerElementLabel']('softBreak',_0x7d9611=>o(_0x2cd0a2['locale'],'ELEMENT_LINE_BREAK',_0x7d9611));}}function je(_0x38a22a,{showActiveMarker:_0x5e918d=!0x0}={}){return(_0x173441,_0x515c2b,_0x235870)=>{const _0x478830=_0x38a22a['plugins']['get']('TrackChangesEditing');if(!_0x235870['consumable']['test'](_0x515c2b['markerRange'],_0x173441['name']))return;const _0x3d6387=_0x38a22a['model'];for(const _0x694307 of _0x515c2b['markerRange']['getItems']()){if(!_0x694307['is']('element','softBreak'))continue;const _0x7e2976='deletion'==_0x515c2b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x536d48}=_0x478830['_splitMarkerName'](_0x515c2b['markerName']),_0x362d32=_0x235870['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7e2976,'data-author-id':_0x536d48}),_0x1d61b2=_0x235870['mapper']['toViewPosition'](_0x3d6387['createPositionBefore'](_0x694307));_0x5e918d&&_0x478830['activeMarkers']['includes'](_0x515c2b['markerName'])&&_0x235870['writer']['addClass']('ck-suggestion-marker--active',_0x362d32),_0x235870['writer']['insert'](_0x1d61b2,_0x362d32),_0x235870['mapper']['bindElementToMarker'](_0x362d32,_0x515c2b['markerName']);}};}class vt extends _0x2e0600{['afterInit'](){const _0x541d35=this['editor'],_0x2025cc=_0x541d35['model'],_0x74ea2c=_0x541d35['locale'];if(!_0x541d35['plugins']['has']('StandardEditingModeEditing'))return;const _0x7c4857=_0x541d35['plugins']['get']('TrackChangesEditing'),_0x6fae29='restrictedEditingException',_0x171800=_0x541d35['commands']['get'](_0x6fae29);_0x7c4857['enableCommand'](_0x6fae29,(_0xbaf935,_0x2abf92={})=>{const _0x770a3a=_0x2025cc['document']['selection'];if(_0x770a3a['isCollapsed'])return void _0xbaf935(_0x2abf92);const _0x420a75=void 0x0!==_0x2abf92['forceValue']?_0x2abf92['forceValue']:!_0x171800['value'];_0x2025cc['change'](()=>{const _0x23566d=Array['from'](_0x770a3a['getRanges']());for(const _0x482236 of _0x23566d){const _0x7f2eff=_0x420a75?[_0x482236]:io(_0x6fae29,_0x482236,_0x2025cc);for(const _0x4348b1 of _0x7f2eff)_0x7c4857['markInlineFormat'](_0x4348b1,{'commandName':_0x6fae29,'commandParams':[{'forceValue':_0x420a75}]});}});}),_0x7c4857['descriptionFactory']['registerDescriptionCallback'](_0xca3da8=>{if('formatBlock'!=_0xca3da8['type']&&'formatInline'!=_0xca3da8['type'])return;const {data:_0x2fcd90}=_0xca3da8;return _0x2fcd90&&_0x2fcd90['commandName']==_0x6fae29?_0x2fcd90['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x74ea2c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x74ea2c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x2e0600{['afterInit'](){const _0x293580=this['editor'];if(!_0x293580['plugins']['has']('Style')||!_0x293580['plugins']['has']('DataSchema'))return;const _0x309922=_0x293580['plugins']['get']('TrackChangesEditing'),_0x7188e4=_0x293580['locale'],_0x4283e1=_0x293580['config']['get']('style')||{},_0x44f6fb=_0x293580['plugins']['get']('GeneralHtmlSupport'),_0x2636cf=_0x293580['plugins']['get']('StyleUtils')['normalizeConfig'](_0x293580['plugins']['get']('DataSchema'),_0x4283e1['definitions']);_0x309922['enableDefaultAttributesIntegration']('style');const _0x2d691b=new Set();for(const _0x3d8cd3 of _0x2636cf['block']){const _0x45f0d1=_0x44f6fb['getGhsAttributeNameForElement'](_0x3d8cd3['element']);_0x2d691b['add'](_0x45f0d1);}const _0x529ffd=new Set();for(const _0x1774be of _0x2636cf['inline']){const _0x401c22=_0x44f6fb['getGhsAttributeNameForElement'](_0x1774be['element']);_0x529ffd['add'](_0x401c22);for(const _0x2f7643 of _0x1774be['ghsAttributes'])_0x529ffd['add'](_0x2f7643);}for(const _0x469040 of _0x2d691b)_0x309922['registerBlockAttribute'](_0x469040),_0x309922['descriptionFactory']['registerAttributeLabel'](_0x469040,o(_0x7188e4,'FORMAT_STYLE'));for(const _0x514934 of _0x529ffd)_0x309922['registerInlineAttribute'](_0x514934),_0x309922['descriptionFactory']['registerAttributeLabel'](_0x514934,o(_0x7188e4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dda2d=this['editor'],_0x264887=_0x1dda2d['locale'];_0x1dda2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326074=>{if('formatBlock'!=_0x326074['type']&&'formatInline'!=_0x326074['type'])return;const {data:_0x47e4b0}=_0x326074;return _0x47e4b0&&'style'===_0x47e4b0['commandName']?_0x47e4b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x264887,'*Set\x20format:*\x20%0',_0x47e4b0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x264887,'*Remove\x20format:*\x20%0',_0x47e4b0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2e0600{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x437ebc){super(_0x437ebc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x53ac16=this['editor'],_0x5de87a=_0x53ac16['model']['document']['selection'];if(!_0x53ac16['plugins']['has']('TableEditing'))return;const _0x14e08d=_0x53ac16['locale'],_0x5dac0a=_0x53ac16['plugins']['get']('TrackChangesEditing'),_0x2eb49c=_0x53ac16['plugins']['get']('TableUtils');_0x5dac0a['descriptionFactory']['registerElementLabel']('table',_0x581f8a=>o(_0x14e08d,'ELEMENT_TABLE',_0x581f8a)),this['_setupColumnsRowsFixing'](),_0x5dac0a['enableCommand']('insertTable'),_0x5dac0a['enableCommand']('selectTableRow'),_0x5dac0a['enableCommand']('selectTableColumn');for(const _0x45e751 of['insertTableRowAbove','insertTableRowBelow']){const _0x20a504=_0x53ac16['commands']['get'](_0x45e751);_0x5dac0a['enableCommand'](_0x45e751,_0x3277c5=>{_0x53ac16['model']['change'](_0x2eaf8d=>{_0x3277c5();const _0x27ae55='above'===_0x20a504['order'],_0x1cc107=_0x2eb49c['getSelectionAffectedTableCells'](_0x5de87a),_0x45510e=_0x2eb49c['getRowIndexes'](_0x1cc107),_0x3456f4=_0x27ae55?_0x45510e['first']-0x1:_0x45510e['last']+0x1,_0x58eb3b=_0x1cc107[0x0]['findAncestor']('table'),_0x444314=_0x2eb49c['createTableWalker'](_0x58eb3b,{'startRow':_0x3456f4,'endRow':_0x3456f4}),_0x425013=Array['from'](_0x444314)['map'](_0x5adddb=>_0x2eaf8d['createRangeOn'](_0x5adddb['cell']));_0x5dac0a['markMultiRangeInsertion'](_0x425013,'tableRow');});});}for(const _0x32b8b9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x40440b=_0x53ac16['commands']['get'](_0x32b8b9);_0x5dac0a['enableCommand'](_0x32b8b9,_0x127af3=>{_0x53ac16['model']['change'](_0x1e35f8=>{_0x127af3();const _0x5cd73e='left'===_0x40440b['order'],_0x33b24a=_0x2eb49c['getSelectionAffectedTableCells'](_0x5de87a),_0x3ed815=_0x2eb49c['getColumnIndexes'](_0x33b24a),_0x3cbc73=_0x5cd73e?_0x3ed815['first']-0x1:_0x3ed815['last']+0x1,_0x574886=_0x33b24a[0x0]['findAncestor']('table'),_0x1044af=_0x2eb49c['createTableWalker'](_0x574886,{'startRow':0x0,'column':_0x3cbc73,'includeAllSlots':!0x1}),_0x58800c=Array['from'](_0x1044af)['map'](_0x2a18af=>_0x1e35f8['createRangeOn'](_0x2a18af['cell']));_0x5dac0a['markMultiRangeInsertion'](_0x58800c,'tableColumn');});});}for(const _0x3153a8 of['removeTableRow','removeTableColumn']){const _0x2794a6=_0x3153a8['substr'](0xb),_0x2890ae=_0x2794a6['toLowerCase'](),_0x2601cf=_0x2890ae['substr'](0x0,0x3)+'span',_0x191063='table'+_0x2794a6,_0x206df6='min'+_0x2794a6,_0xa84b33='max'+_0x2794a6;_0x5dac0a['enableCommand'](_0x3153a8,()=>{_0x53ac16['model']['change'](_0x573cd6=>{const _0x9a96bc=_0x2eb49c['getSelectionAffectedTableCells'](_0x5de87a),_0x289056=_0x9a96bc[0x0]['findAncestor']('table');let _0x594f9b;if('removeTableRow'==_0x3153a8){const _0x533ba0=_0x2eb49c['getRowIndexes'](_0x9a96bc);_0x594f9b={'startRow':_0x533ba0['first'],'endRow':_0x533ba0['last'],'includeAllSlots':!0x0};}else{const _0x913988=_0x2eb49c['getColumnIndexes'](_0x9a96bc);_0x594f9b={'startColumn':_0x913988['first'],'endColumn':_0x913988['last'],'includeAllSlots':!0x0};}const _0x273e87=_0x2eb49c['createTableWalker'](_0x289056,_0x594f9b),_0x4d8c4f=Array['from'](_0x273e87)['map'](({cell:_0x27eb28})=>_0x27eb28),_0x290e31=Ne(_0x4d8c4f['filter'](_0x18fd01=>_0x18fd01['hasAttribute'](_0x2601cf))),_0x4c195d=Ne(_0x4d8c4f['filter'](_0x5a1f7d=>!_0x5a1f7d['hasAttribute'](_0x2601cf)))['map'](_0x336ce3=>_0x573cd6['createRangeOn'](_0x336ce3)),_0xb3ea15=_0x5dac0a['markMultiRangeDeletion'](_0x4c195d,_0x191063);if(_0xb3ea15&&('tableRow'==_0xb3ea15['subType']||'tableColumn'==_0xb3ea15['subType'])){const _0x5d79c=this['_getSuggestionCoords'](_0xb3ea15);for(const _0x3c300b of _0x290e31){const _0x476062=_0x573cd6['createRangeOn'](_0x3c300b),_0x2d127c=_0x2eb49c['getCellLocation'](_0x3c300b),_0x4ec87e=_0x3c300b['getAttribute'](_0x2601cf)-0x1,_0x2b20ba=_0x5d79c[_0x206df6],_0x5ef164=_0x5d79c[_0xa84b33];_0x2b20ba<=_0x2d127c[_0x2890ae]&&_0x2d127c[_0x2890ae]+_0x4ec87e<=_0x5ef164&&_0xb3ea15['addRange'](_0x476062);}}});});}function _0x14b03a(_0xfe50f5){const _0x343119=Array['from'](_0x5de87a['getRanges']())['map'](_0x2d80fa=>_0x1200ae['fromRange'](_0x2d80fa));_0x53ac16['model']['change'](_0x3d644b=>{const _0x576438=_0x3d644b['batch'];_0xfe50f5=_0xfe50f5['filter'](_0x43f84f=>'$graveyard'!=_0x43f84f['root']['rootName']),_0x3d644b['setSelection'](_0xfe50f5),_0x53ac16['commands']['get']('removeTableRow')['refresh'](),_0x53ac16['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53ac16['model']['enqueueChange'](()=>{_0x53ac16['model']['enqueueChange'](_0x576438,_0x436401=>{const _0x40a1ef=_0x343119['filter'](_0x1c1bda=>'$graveyard'!=_0x1c1bda['root']['rootName']);_0x40a1ef['length']>0x0&&_0x436401['setSelection'](_0x40a1ef);for(const _0x4a88d9 of _0x343119)_0x4a88d9['detach']();});});});}function _0x3aae32(_0x565ea3){_0x53ac16['model']['change'](_0x544549=>{const _0x195cef=Array['from'](_0x5de87a['getRanges']())['map'](_0x307497=>_0x1200ae['fromRange'](_0x307497)),_0x1720b9=[];for(const _0xfb6764 of _0x565ea3)for(const _0x74af32 of _0xfb6764['getItems']({'shallow':!0x0}))_0x1720b9['push'](_0x74af32);for(const _0x3f3586 of _0x1720b9)'$graveyard'!=_0x3f3586['root']['rootName']&&(_0x544549['setSelection'](_0x544549['createPositionAt'](_0x3f3586,0x0)),_0x53ac16['commands']['get']('removeTableColumn')['refresh'](),_0x53ac16['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x56b3ae=_0x195cef['filter'](_0x5dd967=>'$graveyard'!=_0x5dd967['root']['rootName']);_0x56b3ae['length']>0x0&&_0x544549['setSelection'](_0x56b3ae);for(const _0x42e52c of _0x195cef)_0x42e52c['detach']();});}function _0x3b5cb4(_0xab9bda,_0xa67c0d){return _0xa67c0d['every'](_0x30dda8=>_0xab9bda['some'](_0x4f8896=>_0x4f8896['end']['isEqual'](_0x30dda8['start'])||_0x30dda8['end']['isEqual'](_0x4f8896['start'])));}function _0x292af0(_0x5fc4d9,_0x59dff3){return!_0x5fc4d9['some'](_0x21ceb3=>_0x59dff3['some'](_0x2e3957=>_0x21ceb3['isIntersecting'](_0x2e3957)))&&_0x5fc4d9['some'](_0x11d325=>_0x59dff3['some'](_0x3ae9db=>_0x11d325['end']['isTouching'](_0x3ae9db['start'])));}_0x53ac16['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35fc5a,_0x3a62fa,_0x4b2f3b)=>{if(!_0x4b2f3b['options']['showSuggestionHighlights'])return;const _0x1c403e=_0x3a62fa['item'];if(!_0x1c403e)return;const _0x3d00e5=_0x4b2f3b['mapper']['toViewElement'](_0x1c403e);function _0x13434a(_0x1827f8){return Array['isArray'](_0x1827f8)?_0x1827f8:[_0x1827f8];}_0x3d00e5&&'tableCell'===_0x1c403e['name']&&_0x4b20b2(_0x3d00e5,_0x4b2f3b['writer'],(_0x1d4bd6,_0x2956e4,_0x180dbe)=>_0x180dbe['addClass'](_0x13434a(_0x2956e4['classes']),_0x1d4bd6),(_0x49fb8c,_0x2bb926,_0x38ea70)=>_0x38ea70['removeClass'](_0x13434a(_0x2bb926['classes']),_0x49fb8c));},{'priority':'highest'}),_0x5dac0a['descriptionFactory']['registerDescriptionCallback'](_0x26bd41=>{if('insertion'!=_0x26bd41['type']&&'deletion'!=_0x26bd41['type'])return;const _0x39ee23=_0x26bd41['getContainedElement']();if(null!=_0x39ee23&&_0x39ee23['is']('element','table')){if('insertion'==_0x26bd41['type']){const _0x3d269=_0x26bd41['getItems']()['filter'](_0x449186=>_0x449186['is']('$textProxy'))['map'](_0x185a4d=>_0x185a4d['data']);if(_0x3d269['length'])return{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d269['join']('\x20')+'\x22'))};}if('deletion'==_0x26bd41['type']){const _0x57dc54=_0x26bd41['getItems']()['filter'](_0x3412c1=>_0x3412c1['is']('$textProxy'))['map'](_0x114983=>_0x114983['data']);if(_0x57dc54['length'])return{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57dc54['join']('\x20')+'\x22'))};}}}),_0x5dac0a['descriptionFactory']['registerDescriptionCallback'](_0xec58f=>{if('tableRow'==_0xec58f['subType']){const _0x1c296a=_0xec58f['getItems']()['filter'](_0x10f95f=>_0x10f95f['is']('$textProxy'))['map'](_0x8ff7ec=>_0x8ff7ec['data']),_0x1110e5=this['_getSuggestionCoords'](_0xec58f),_0x57277a=_0x1110e5['maxRow']-_0x1110e5['minRow']+0x1;if('insertion'==_0xec58f['type'])return _0x1c296a['length']?{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57277a,'\x22'+_0x1c296a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW',_0x57277a))};if('deletion'==_0xec58f['type'])return _0x1c296a['length']?{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57277a,'\x22'+_0x1c296a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW',_0x57277a))};}if('tableColumn'==_0xec58f['subType']){const _0x4f2429=_0xec58f['getItems']()['filter'](_0x34dadb=>_0x34dadb['is']('$textProxy'))['map'](_0x398047=>_0x398047['data']),_0x2c7cba=this['_getSuggestionCoords'](_0xec58f),_0x4e1e81=_0x2c7cba['maxColumn']-_0x2c7cba['minColumn']+0x1;if('insertion'==_0xec58f['type'])return _0x4f2429['length']?{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e1e81,'\x22'+_0x4f2429['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN',_0x4e1e81))};if('deletion'==_0xec58f['type'])return _0x4f2429['length']?{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e1e81,'\x22'+_0x4f2429['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN',_0x4e1e81))};}}),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x14b03a),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x14b03a),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3aae32),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3aae32),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b5cb4),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b5cb4),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x292af0),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x292af0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2af668=this['editor'],_0x4a8530=_0x2af668['model']['document']['selection'];return(_0x44f943,_0x507c61)=>{_0x2af668['model']['change'](_0x15074a=>{const {commandName:_0x3e5980,commandParams:_0x11dd41}=_0x507c61;let _0x2fb1fe=_0x44f943[0x0]['end']['nodeBefore'];_0x11dd41&&_0x11dd41[0x0]&&!0x1===_0x11dd41[0x0]['forceValue']&&(_0x2fb1fe=_0x44f943[0x0]['start']['nodeAfter']);const _0x50075a=_0x15074a['createRangeIn'](_0x2fb1fe);if('$graveyard'==_0x50075a['root']['rootName'])return;const _0x51edb6=Array['from'](_0x4a8530['getRanges']())['map'](_0xf4abca=>_0x1200ae['fromRange'](_0xf4abca));_0x15074a['setSelection'](_0x50075a),_0x2af668['commands']['get'](_0x3e5980)['refresh'](),_0x11dd41['push']({'forceDefaultExecution':!0x0}),_0x2af668['execute'](_0x3e5980,..._0x11dd41);const _0x387531=_0x51edb6['filter'](_0x33829e=>'$graveyard'!=_0x33829e['root']['rootName']);_0x387531['length']>0x0&&_0x15074a['setSelection'](_0x387531);for(const _0x59738d of _0x51edb6)_0x59738d['detach']();});};}['_getCoordsForCells'](_0x3cfee6){const _0x5709a1=this['editor']['plugins']['get']('TableUtils');let _0x3cd249=Number['MAX_SAFE_INTEGER'],_0x1a44d4=Number['MIN_SAFE_INTEGER'],_0x3887be=Number['MAX_SAFE_INTEGER'],_0x8a49dc=Number['MIN_SAFE_INTEGER'];for(const _0x5ec766 of _0x3cfee6){if('$graveyard'==_0x5ec766['root']['rootName'])continue;const {row:_0x45f53a,column:_0x2d22fd}=_0x5709a1['getCellLocation'](_0x5ec766),_0x3b4bb5=_0x5ec766['hasAttribute']('rowspan')?_0x5ec766['getAttribute']('rowspan')-0x1:0x0,_0x846d99=_0x5ec766['hasAttribute']('colspan')?_0x5ec766['getAttribute']('colspan')-0x1:0x0;_0x3cd249=_0x45f53a<_0x3cd249?_0x45f53a:_0x3cd249,_0x1a44d4=_0x45f53a+_0x3b4bb5>_0x1a44d4?_0x45f53a+_0x3b4bb5:_0x1a44d4,_0x3887be=_0x2d22fd<_0x3887be?_0x2d22fd:_0x3887be,_0x8a49dc=_0x2d22fd+_0x846d99>_0x8a49dc?_0x2d22fd+_0x846d99:_0x8a49dc;}return{'minRow':_0x3cd249,'maxRow':_0x1a44d4,'minColumn':_0x3887be,'maxColumn':_0x8a49dc};}['_setupColumnsRowsFixing'](){const _0x24f1a4=this['editor'],_0x332d43=_0x24f1a4['plugins']['get']('TrackChangesEditing'),_0xf7f847=_0x24f1a4['plugins']['get']('TableUtils');_0x24f1a4['model']['document']['on']('change:data',()=>{const _0x1c9414=Array['from'](_0x24f1a4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x420ca2,data:_0x1cd512}of _0x1c9414){const {group:_0x178331,id:_0x464341,subType:_0x54243b}=_0x332d43['_splitMarkerName'](_0x420ca2);if('suggestion'!=_0x178331)continue;if(null!=_0x1cd512['oldRange'])continue;const _0x584fad=_0x332d43['getSuggestion'](_0x464341);this['_tablePostFixingSubtypes']['includes'](_0x54243b)&&this['_tableSuggestions']['add'](_0x584fad);}},{'priority':'low'});const _0x22ac30=(_0x13b07b,_0x39b953)=>{let _0x50a309=!0x1;const _0x10d19b=_0x39b953['createRangeOn'](_0x13b07b),_0x422e15=_0x13b07b['findAncestor']('table'),_0x405442=_0xf7f847['getCellLocation'](_0x13b07b);for(const _0x579a57 of this['_tableSuggestions']){const _0xf58c=_0x579a57['subType'],_0x3392e4=_0xf58c['startsWith']('tablePaste'),_0xb35e38=_0xf58c['substr'](_0x3392e4?0xa:0x5),_0x3e5df9=_0xb35e38['toLowerCase'](),_0x39e561=_0x3e5df9['substr'](0x0,0x3)+'span',_0x43f222='min'+_0xb35e38,_0x59db0e='max'+_0xb35e38;if(!_0x579a57['isInContent'])continue;if(_0x422e15!=_0x579a57['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x579a57['isIntersectingWithRange'](_0x10d19b))continue;const _0x27a2bc=_0x13b07b['hasAttribute'](_0x39e561)?_0x13b07b['getAttribute'](_0x39e561)-0x1:0x0,_0x6b9a60=this['_getSuggestionCoords'](_0x579a57),_0x166ab5=_0x6b9a60[_0x43f222],_0x4c17b6=_0x6b9a60[_0x59db0e];_0x166ab5<=_0x405442[_0x3e5df9]&&_0x405442[_0x3e5df9]+_0x27a2bc<=_0x4c17b6&&(_0x579a57['addRange'](_0x10d19b),_0x50a309=!0x0);}return _0x50a309;};_0x24f1a4['model']['document']['registerPostFixer'](_0x518e37=>{let _0x3255e1=!0x1;for(const _0x316570 of _0x24f1a4['model']['document']['differ']['getChanges']())if('insert'==_0x316570['type']){if('tableRow'==_0x316570['name']){for(const _0x258871 of _0x316570['position']['nodeAfter']['getChildren']())_0x3255e1=_0x3255e1||_0x22ac30(_0x258871,_0x518e37);}else'tableCell'==_0x316570['name']&&(_0x3255e1=_0x3255e1||_0x22ac30(_0x316570['position']['nodeAfter'],_0x518e37));}return _0x3255e1;});}['_getSuggestionCoords'](_0x4b0772){return this['_getCoordsForCells'](_0x4b0772['getRanges']()['map'](_0x5a2e51=>_0x5a2e51['start']['nodeAfter']));}}function Ne(_0x2ba02d){return Array['from'](new Set(_0x2ba02d)['values']());}class Nt extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0xccdef0=this['editor'],_0x2aa0b6=_0xccdef0['model']['document']['selection'],_0x6cf939=_0xccdef0['locale'];if(!_0xccdef0['plugins']['has']('TableEditing'))return;const _0x308822=_0xccdef0['plugins']['get']('TrackChangesEditing'),_0x25d36a=_0xccdef0['plugins']['get']('TableUtils'),_0x386d8b=_0xccdef0['plugins']['get'](Ct);_0x386d8b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x308822['enableCommand']('mergeTableCells',()=>{const _0x42c0be=_0x25d36a['getSelectionAffectedTableCells'](_0xccdef0['model']['document']['selection']);_0xccdef0['model']['change'](()=>{_0x308822['markMultiRangeBlockFormat'](_0x42c0be,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xccdef0['commands']['get']('mergeTableCells')['on']('execute',(_0x46647b,_0x15ffb0)=>{_0xccdef0['commands']['get']('trackChanges')['value']&&(_0x15ffb0['length']>0x0&&_0x15ffb0[_0x15ffb0['length']-0x1]&&_0x15ffb0[_0x15ffb0['length']-0x1]['forceDefaultExecution']||_0x308822['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x46647b['stop']());},{'priority':'highest'});for(const _0x174032 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b57ff=_0xccdef0['commands']['get'](_0x174032);_0x308822['enableCommand'](_0x174032,()=>{const _0x4e5618=_0xccdef0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e6630=>_0x1e6630['is']('element','tableCell')),_0x2fa137=_0x1b57ff['value'];_0xccdef0['model']['change'](()=>{_0x308822['markMultiRangeBlockFormat']([_0x4e5618,_0x2fa137],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x235992 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x12db03=_0xccdef0['commands']['get'](_0x235992);_0x308822['enableCommand'](_0x235992,()=>{const _0x25f8c3=_0x25d36a['getSelectionAffectedTableCells'](_0xccdef0['model']['document']['selection'])[0x0],_0x3fef95=_0x25f8c3['findAncestor']('table'),{column:_0x341cbd,row:_0x36b089}=_0x25d36a['getCellLocation'](_0x25f8c3);let _0x588869=[];if('horizontally'==_0x12db03['direction']){const _0x498280=_0x25d36a['createTableWalker'](_0x3fef95,{'startRow':_0x36b089,'endRow':_0x36b089,'includeAllSlots':!0x0});_0x588869=Array['from'](_0x498280)['map'](_0x53c1b8=>_0x53c1b8['cell']);}else{const _0x2a7813=_0x25d36a['createTableWalker'](_0x3fef95,{'column':_0x341cbd,'includeAllSlots':!0x0});_0x588869=Array['from'](_0x2a7813)['map'](_0x32ad9c=>_0x32ad9c['cell']);}_0xccdef0['model']['change'](_0x267838=>{_0x308822['markBlockFormat'](_0x267838['createRangeOn'](_0x25f8c3),{'commandName':_0x235992,'commandParams':[]},_0x588869,_0x235992);});});}_0x308822['descriptionFactory']['registerDescriptionCallback'](_0x1dcf99=>{if('formatBlock'!=_0x1dcf99['type']&&'formatInline'!=_0x1dcf99['type'])return;const {data:_0x5ec1d9}=_0x1dcf99;return _0x5ec1d9&&'mergeTableCells'==_0x5ec1d9['commandName']?{'type':'format','content':o(_0x6cf939,'*Merge\x20cells*')}:void 0x0;}),_0x308822['descriptionFactory']['registerDescriptionCallback'](_0xab40dd=>{if('formatBlock'!=_0xab40dd['type']&&'formatInline'!=_0xab40dd['type'])return;const {data:_0xcb1fe2}=_0xab40dd;return _0xcb1fe2?'splitTableCellVertically'==_0xcb1fe2['commandName']?{'type':'format','content':o(_0x6cf939,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xcb1fe2['commandName']?{'type':'format','content':o(_0x6cf939,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d0d0f=_0x386d8b['_acceptFormatSuggestionCallbackFactory']();for(const _0x151ff1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x308822['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x151ff1,'accept',_0x5d0d0f);for(const _0xbdc16 of['splitTableCellVertically','splitTableCellHorizontally'])_0x308822['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xbdc16,'accept',_0x5d0d0f);_0x308822['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e10b6=>{_0xccdef0['model']['change'](_0x58319b=>{const _0x5b8380=Array['from'](_0x2aa0b6['getRanges']())['map'](_0x178490=>_0x1200ae['fromRange'](_0x178490));_0x58319b['setSelection'](_0x4e10b6),_0xccdef0['commands']['get']('mergeTableCells')['refresh'](),_0xccdef0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44b7ac=_0x5b8380['filter'](_0x32bc98=>'$graveyard'!=_0x32bc98['root']['rootName']);_0x44b7ac['length']>0x0&&_0x58319b['setSelection'](_0x44b7ac);for(const _0x4387c9 of _0x5b8380)_0x4387c9['detach']();});});for(const _0x37160a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x9633aa=_0xccdef0['commands']['get'](_0x37160a);_0x9633aa['on']('set:isEnabled',(_0xedd21a,_0x4aa04a,_0x13e837)=>{if(_0x13e837){const _0xb6a16e=_0xccdef0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b8d74=>_0x1b8d74['is']('element','tableCell'));this['_areMergableCells'](_0x9633aa['value'],_0xb6a16e)||(_0xedd21a['return']=!0x1,_0xedd21a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2f233a=this['editor']['commands']['get']('mergeTableCells'),_0x467057=this['editor']['plugins']['get']('TableUtils');if(!_0x2f233a['isEnabled'])return!0x1;const _0x318ac8=_0x467057['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d6b61 of _0x318ac8)for(const _0x4413f8 of _0x318ac8)if(_0x4d6b61!=_0x4413f8&&!this['_areMergableCells'](_0x4d6b61,_0x4413f8))return!0x1;return!0x0;}['_areMergableCells'](_0x546252,_0x4f00cb){const _0x4be8e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51d13e=this['editor']['model']['createRangeOn'](_0x546252),_0x3e9719=this['editor']['model']['createRangeOn'](_0x4f00cb),_0x1099e2=new Set(),_0x589b85=new Set();for(const _0xcc7c36 of _0x4be8e3['getSuggestions']())if(('insertion'==_0xcc7c36['type']||'deletion'==_0xcc7c36['type']||'mergeTableCells'==_0xcc7c36['subType'])&&_0xcc7c36['isInContent']){for(const _0x3e7c8e of _0xcc7c36['getRanges']())_0x3e7c8e['containsRange'](_0x51d13e,!0x0)&&_0x1099e2['add'](_0xcc7c36['type']+':'+_0xcc7c36['author']['id']),_0x3e7c8e['containsRange'](_0x3e9719,!0x0)&&_0x589b85['add'](_0xcc7c36['type']+':'+_0xcc7c36['author']['id']);}if(_0x1099e2['size']!=_0x589b85['size'])return!0x1;for(const _0x315b15 of _0x1099e2)if(!_0x589b85['has'](_0x315b15))return!0x1;return!0x0;}}class Dt extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0x1ab344=this['editor'];if(!_0x1ab344['plugins']['has']('TableEditing'))return;const _0x87bfd5=_0x1ab344['locale'],_0x15f613=_0x1ab344['plugins']['get']('TrackChangesEditing');_0x15f613['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x15f613['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x15f613['registerBlockAttribute']('headingRows'),_0x15f613['registerBlockAttribute']('headingColumns'),_0x15f613['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x87bfd5,'FORMAT_HEADER_ROW')),_0x15f613['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x87bfd5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x39e66b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2edcf=this['editor']['plugins']['get']('TableUtils'),_0x13a7e8=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5c11d8({showActiveMarker:_0x27d216=!0x0,setDataAttribute:_0x2680bf=!0x0}={}){return(_0x349820,_0x657668,_0x4929cd)=>{const {type:_0x14bd3a,id:_0x4ae920}=_0x39e66b['_splitMarkerName'](_0x657668['markerName']),_0x342941=_0x39e66b['getSuggestion'](_0x4ae920),_0x448e4e=_0x342941['data'];if('formatBlock'!=_0x342941['type']||!_0x448e4e||'setTableColumnHeader'!=_0x448e4e['commandName'])return;if(_0x657668['item'])return void _0x349820['stop']();if(!_0x4929cd['consumable']['consume'](_0x657668['markerRange'],_0x349820['name']))return;const _0x24a5cf=_0x657668['markerRange']['start']['nodeAfter'],_0x1518cb=_0x657668['markerRange']['end']['nodeBefore'],_0x51b072=_0x24a5cf['parent']['parent'],{column:_0x3cb8a3}=_0xc2edcf['getCellLocation'](_0x24a5cf),{column:_0x35cebb}=_0xc2edcf['getCellLocation'](_0x1518cb);for(let _0x52d63e=_0x3cb8a3;_0x52d63e<=_0x35cebb;_0x52d63e++){const _0x19ca4e=_0xc2edcf['createTableWalker'](_0x51b072,{'column':_0x52d63e,'includeAllSlots':!0x1});for(const _0x277a61 of _0x19ca4e){const _0x414dd1=_0x277a61['cell'],_0x16b1e8=_0x4929cd['mapper']['toViewElement'](_0x414dd1);_0x4929cd['writer']['addClass']('ck-suggestion-marker-'+_0x14bd3a,_0x16b1e8),_0x2680bf&&_0x4929cd['writer']['setAttribute']('data-suggestion',_0x4ae920,_0x16b1e8),_0x4929cd['mapper']['bindElementToMarker'](_0x16b1e8,_0x657668['markerName']),_0x27d216&&(_0x39e66b['activeMarkers']['includes'](_0x657668['markerName'])?_0x4929cd['writer']['addClass']('ck-suggestion-marker--active',_0x16b1e8):_0x4929cd['writer']['removeClass']('ck-suggestion-marker--active',_0x16b1e8));}}};}_0x39e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x13a7e8),_0x39e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x13a7e8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c11d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x195a7e,_0x504713,_0x3a3f5d)=>{_0x3a3f5d['options']['showSuggestionHighlights']&&_0x5c11d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x195a7e,_0x504713,_0x3a3f5d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x41fc91,_0xe5bac5,_0x56a367)=>{const {type:_0x217872,id:_0x543ffc}=_0x39e66b['_splitMarkerName'](_0xe5bac5['markerName']),_0x1ffe90=_0x39e66b['getSuggestion'](_0x543ffc),_0x56a422=_0x1ffe90['data'];if('formatBlock'!=_0x1ffe90['type']||!_0x56a422||'setTableColumnHeader'!=_0x56a422['commandName'])return;const _0x4d534f=_0x56a367['mapper']['markerNameToElements'](_0xe5bac5['markerName']);if(_0x4d534f){for(const _0x1bc7d1 of _0x4d534f)_0x56a367['writer']['removeClass']('ck-suggestion-marker-'+_0x217872,_0x1bc7d1),_0x56a367['writer']['removeClass']('ck-suggestion-marker--active',_0x1bc7d1),_0x56a367['writer']['removeAttribute']('data-suggestion',_0x1bc7d1),_0x56a367['mapper']['unbindElementFromMarkerName'](_0x1bc7d1,_0xe5bac5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292c98=this['editor'],_0x400ecc=_0x292c98['locale'];function _0x4d942b(_0x423de5){return{'type':'format','content':o(_0x400ecc,'*Format:*\x20%0',_0x423de5)};}_0x292c98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434ead=>{if('formatBlock'!=_0x434ead['type'])return;const {data:_0x16b13b}=_0x434ead;if(_0x16b13b){if('setTableRowHeader'==_0x16b13b['commandName']){const _0x1082cb=_0x16b13b['commandParams'][0x0]['forceValue'];return _0x4d942b(o(_0x400ecc,_0x1082cb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x16b13b['commandName']){const _0x54307f=_0x16b13b['commandParams'][0x0]['forceValue'];return _0x4d942b(o(_0x400ecc,_0x54307f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x552ea0=>[_0x552ea0,null]));class Mt extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0x1918a5=this['editor'];if(!_0x1918a5['plugins']['has']('TableClipboard'))return;const _0x388eb8=_0x1918a5['plugins']['get']('TrackChangesEditing'),_0x25ec40=_0x1918a5['plugins']['get']('TableUtils'),_0xc8e4f1=_0x1918a5['plugins']['get'](Ct),_0x1712e2=_0x1918a5['plugins']['get']('TableClipboard');_0xc8e4f1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1918a5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1918a5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x32f439=null;_0x1918a5['model']['on']('insertContent',(_0x229365,_0x5bed15)=>{const [_0x4d607b,_0x56dd5a]=_0x5bed15,_0x3c04f6=_0x5bed15[_0x5bed15['length']-0x1];_0x3c04f6&&_0x3c04f6['forceDefaultExecution']||_0x388eb8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c5a1f,_0x323177,_0x3c6c0f,_0x186e96,_0x162737){if(_0x323177&&!_0x323177['is']('documentSelection'))return!0x1;const _0xdcec7=_0x162737['getTableIfOnlyTableInContent'](_0x5c5a1f,_0x3c6c0f);if(!_0xdcec7||!Ue(_0xdcec7,void 0x0,_0x186e96))return!0x1;const _0x3d4480=_0x186e96['getSelectionAffectedTableCells'](_0x3c6c0f['document']['selection']);if(!_0x3d4480['length'])return!0x1;const _0x10b5bc=_0x3d4480[0x0]['findAncestor']('table'),_0x53be86=_0x186e96['getRowIndexes'](_0x3d4480),_0x3ba077=_0x186e96['getColumnIndexes'](_0x3d4480),_0x277190={'startRow':_0x53be86['first'],'endRow':_0x53be86['last'],'startColumn':_0x3ba077['first'],'endColumn':_0x3ba077['last']};return 0x1==_0x3d4480['length']&&(_0x277190['endRow']+=_0x186e96['getRows'](_0xdcec7)-0x1,_0x277190['endColumn']+=_0x186e96['getColumns'](_0xdcec7)-0x1),Ue(_0x10b5bc,_0x277190,_0x186e96);}(_0x4d607b,_0x56dd5a,_0x1918a5['model'],_0x25ec40,_0x1712e2)&&(_0x229365['stop'](),_0x32f439={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1918a5['model']['change'](()=>{_0x1918a5['model']['insertContent'](_0x5bed15[0x0],_0x5bed15[0x1],_0x5bed15[0x2],{'forceDefaultExecution':!0x0});const _0x41ab49=_0x502eb1(),{rowInsertionRanges:_0x219724,columnInsertionRanges:_0x501117,insertionRanges:_0x3cd0d,deletionRanges:_0x20dfee,cells:_0x28710f}=_0x32f439;_0x219724['length']&&_0x388eb8['markMultiRangeInsertion'](_0x219724,'tablePasteRow',{'tablePasteChainId':_0x41ab49}),_0x501117['length']&&_0x388eb8['markMultiRangeInsertion'](_0x501117,'tablePasteColumn',{'tablePasteChainId':_0x41ab49}),_0x3cd0d['length']&&(_0x388eb8['markMultiRangeInsertion'](_0x3cd0d,'tablePaste',{'tablePasteChainId':_0x41ab49,'skipNestingCheck':!0x0}),_0x3cd0d['forEach'](_0x2b7c03=>_0x2b7c03['detach']?.())),_0x20dfee['length']&&(_0x388eb8['markMultiRangeDeletion'](_0x20dfee,'tablePaste',{'tablePasteChainId':_0x41ab49,'skipNestingCheck':!0x0}),_0x20dfee['forEach'](_0x9a5d58=>_0x9a5d58['detach']?.()));const _0x2b1bae=_0x388eb8['markMultiRangeBlockFormat'](_0x28710f['map'](({element:_0x310556})=>_0x310556),{'formatGroupId':_0x502eb1()},[],'tablePasteCell',{'tablePasteChainId':_0x41ab49});if(_0x2b1bae){const _0x7b698f=_0x2b1bae['getMarkers'](),_0x416267=[];for(const {element:_0x10034d,attributes:_0x1ec55a}of _0x28710f){if(!_0x1ec55a)continue;const _0x3d2c0d=_0x1918a5['model']['createRangeOn'](_0x10034d),_0x6a1cdc=_0x7b698f['find'](_0x4a96f1=>_0x4a96f1['getRange']()['isEqual'](_0x3d2c0d));_0x6a1cdc&&_0x416267['push']([_0x6a1cdc['name'],_0x1ec55a]);}_0x416267['length']&&_0x2b1bae['setAttribute']('markerAttributes',Object['fromEntries'](_0x416267));}_0x32f439=null;}));},{'priority':_0xffa7dc['high']+0xa}),_0x1918a5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b46e2,_0xc78f3d)=>{const [_0x3ffa88,_0x29f545,,_0x3d1a1e]=_0xc78f3d;if(!_0x32f439)return;_0x4b46e2['stop']();const _0x222cdd=_0x3ffa88['cell'],_0x4a4806=_0x29f545,_0x4d84c3=Oe(_0x222cdd),_0x1bf885=Oe(_0x4a4806);_0x4b46e2['return']=_0x222cdd;let _0xcea442=null,_0x5ccfba=null;if(_0x1bf885||_0x4d84c3){if(_0x4d84c3&&!_0x1bf885){_0x3d1a1e['remove'](_0x222cdd['getChild'](0x0));for(const _0x49db5c of Array['from'](_0x4a4806['getChildren']()))_0x3d1a1e['insert'](_0x49db5c,_0x222cdd,'end');const _0x13cec2=_0x32f439['rowInsertionIndexes']['includes'](_0x3ffa88['row']),_0x3a265c=_0x32f439['columnInsertionIndexes']['includes'](_0x3ffa88['column']);_0x13cec2||_0x3a265c||(_0xcea442=_0x1200ae['fromRange'](_0x3d1a1e['createRangeIn'](_0x222cdd)));}else _0x1bf885&&!_0x4d84c3&&(_0x5ccfba=_0x3d1a1e['createRangeIn'](_0x222cdd));}else{const _0x8dec16=_0x3d1a1e['createElement']('tableCellSuggestion'),_0x18e3d7=_0x3d1a1e['createElement']('tableCellSuggestion');_0x3d1a1e['wrap'](_0x3d1a1e['createRangeIn'](_0x222cdd),_0x18e3d7),_0x3d1a1e['insert'](_0x8dec16,_0x222cdd,0x0);for(const _0x39c298 of Array['from'](_0x4a4806['getChildren']()))_0x3d1a1e['insert'](_0x39c298,_0x8dec16,'end');_0xcea442=_0x1200ae['fromRange'](_0x3d1a1e['createRangeOn'](_0x8dec16)),_0x5ccfba=_0x1200ae['fromRange'](_0x3d1a1e['createRangeOn'](_0x18e3d7));}const _0x23da30=Array['from'](_0x4a4806['getAttributes']())['filter'](([_0x1f2d4d])=>Be['includes'](_0x1f2d4d));_0x32f439['cells']['push']({'element':_0x222cdd,'attributes':_0x23da30['length']?Object['fromEntries'](_0x23da30):null}),_0xcea442&&_0x32f439['insertionRanges']['push'](_0xcea442),_0x5ccfba&&_0x32f439['deletionRanges']['push'](_0x5ccfba);},{'priority':'high'}),_0x25ec40['on']('insertColumns',(_0x611971,_0x5e1801)=>{const [_0x29299e,_0x341bfe={}]=_0x5e1801;if(!_0x32f439)return;const _0x2a6b56=_0x341bfe['at']||0x0,_0x4507fd=_0x341bfe['columns']||0x1;_0x32f439['columnInsertionIndexes']=new Array(_0x4507fd)['fill'](_0x2a6b56)['map']((_0x2b9244,_0x4c8e8a)=>_0x2b9244+_0x4c8e8a);for(const {cell:_0x25b4d3}of _0x25ec40['createTableWalker'](_0x29299e,{'startColumn':_0x2a6b56,'endColumn':_0x2a6b56+_0x4507fd-0x1}))_0x32f439['columnInsertionRanges']['push'](_0x1918a5['model']['createRangeOn'](_0x25b4d3));},{'priority':'low'}),_0x25ec40['on']('insertRows',(_0x52a59f,_0x3e3302)=>{const [_0x5f2d62,_0x19f8f3={}]=_0x3e3302;if(!_0x32f439)return;const _0x5402c9=_0x19f8f3['at']||0x0,_0x3c469c=_0x19f8f3['rows']||0x1;_0x32f439['rowInsertionIndexes']=new Array(_0x3c469c)['fill'](_0x5402c9)['map']((_0x422720,_0x210104)=>_0x422720+_0x210104);for(const {cell:_0x3b89c8}of _0x25ec40['createTableWalker'](_0x5f2d62,{'startRow':_0x5402c9,'endRow':_0x5402c9+_0x3c469c-0x1}))_0x32f439['rowInsertionRanges']['push'](_0x1918a5['model']['createRangeOn'](_0x3b89c8));},{'priority':'low'}),_0x388eb8['descriptionFactory']['registerDescriptionCallback'](_0x4644ea=>{if(_0x4644ea['subType']&&_0x4644ea['subType']['startsWith']('tablePaste'))return _0x4644ea['previous']?{}:{'type':'insertion','content':o(_0x1918a5['locale'],'*Replace\x20table\x20cells*')};});const _0x26e0dd=()=>!0x1;for(const _0xd593c7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x388eb8['_suggestionFactory']['registerCustomCallback']('insertion',_0xd593c7,'join',_0x26e0dd),_0x388eb8['_suggestionFactory']['registerCustomCallback']('deletion',_0xd593c7,'join',_0x26e0dd),_0x388eb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd593c7,'join',_0x26e0dd);_0x388eb8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x26e0dd),_0x388eb8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1e2c8d,_0x4dd017,_0x2d6863)=>{const _0x3dcf59=_0x1e2c8d['map'](_0x1c087a=>_0x1c087a['getContainedElement']())['filter'](_0x5b0e1d=>_0x5b0e1d),_0x55f8ca=new Map(_0x3dcf59['map'](_0x5ef279=>[_0x5ef279,null]));if(_0x32f439){for(const {element:_0x2234b2,attributes:_0x29ea97}of _0x32f439['cells'])_0x29ea97&&_0x55f8ca['set'](_0x2234b2,_0x29ea97);}else{if(_0x2d6863&&_0x2d6863['markerAttributes'])for(const [_0x30d25a,_0x568147]of Object['entries'](_0x2d6863['markerAttributes'])){const _0x4076bc=_0x1918a5['model']['markers']['get'](_0x30d25a),_0x161f97=_0x4076bc?_0x4076bc['getRange']()['getContainedElement']():null;_0x161f97&&_0x55f8ca['set'](_0x161f97,_0x568147);}}_0x1918a5['model']['change'](_0x35db3e=>{for(const [_0xd3767,_0x1e8a08]of _0x55f8ca)_0x35db3e['setAttributes']({...xe,..._0x1e8a08},_0xd3767);});});const _0x695155=(_0x26e38d,_0x48ebb5)=>{_0x388eb8['_suggestionFactory']['registerCustomCallback'](_0x26e38d,'tablePaste',_0x48ebb5,(_0x27fa07,_0x1e0d7a,_0x33756d)=>{_0x1918a5['model']['change'](_0x2d9626=>{const _0x58e723=[];for(const _0x228730 of _0x27fa07){const _0x3513e6=_0x228730['start']['nodeAfter'];_0x3513e6['is']('element','tableCellSuggestion')&&_0x58e723['push'](_0x3513e6);}_0x388eb8['_suggestionFactory']['getSuggestionCallback'](_0x26e38d,null,_0x48ebb5)(_0x27fa07,_0x1e0d7a,_0x33756d);for(const _0x377af4 of _0x58e723)'$graveyard'!=_0x377af4['root']['rootName']&&_0x2d9626['unwrap'](_0x377af4);});});};_0x695155('insertion','accept'),_0x695155('insertion','discard'),_0x695155('deletion','accept'),_0x695155('deletion','discard'),_0x388eb8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29a32f=>{const _0x23aa59=_0x29a32f['map'](_0xbb5e0a=>_0xbb5e0a['getContainedElement']()),_0x7f884c=_0x23aa59[0x0]['findAncestor']('table'),{minRow:_0x4cd99a,maxRow:_0x39fbc9}=_0xc8e4f1['_getCoordsForCells'](_0x23aa59);_0x25ec40['removeRows'](_0x7f884c,{'at':_0x4cd99a,'rows':_0x39fbc9-_0x4cd99a+0x1});}),_0x388eb8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5a8381=>{const _0x1d4336=_0x5a8381['map'](_0x4ff8e=>_0x4ff8e['getContainedElement']()),_0x4aa729=_0x1d4336[0x0]['findAncestor']('table'),{minColumn:_0x54edea,maxColumn:_0x3e6cdc}=_0xc8e4f1['_getCoordsForCells'](_0x1d4336);_0x25ec40['removeColumns'](_0x4aa729,{'at':_0x54edea,'columns':_0x3e6cdc-_0x54edea+0x1});});const _0x21560e=(_0x7c5541,_0x5f0fea)=>{if(!_0x5f0fea['subType']||!_0x5f0fea['subType']['startsWith']('tablePaste'))return;const _0x38e642=_0x5f0fea['attributes']['tablePasteChainId'],_0x3a94b6=_0x388eb8['getSuggestions']()['filter'](_0x36349a=>_0x36349a['isInContent']&&_0x36349a['attributes']&&_0x36349a['attributes']['tablePasteChainId']==_0x38e642);_0x3a94b6['length']&&_0x5f0fea['getAllAdjacentSuggestions']()['length']!=_0x3a94b6['length']&&_0x3a94b6['reduce']((_0x29710e,_0xeb60cf)=>(_0x29710e['next']=_0xeb60cf,_0xeb60cf['previous']=_0x29710e,_0xeb60cf));};function _0xb2299d(_0x14c7eb,_0x3ef91b=!0x0){const {id:_0x9b3b05,authorId:_0x411557}=_0x388eb8['_splitMarkerName'](_0x14c7eb['markerName']),_0x3308f6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f5395=_0x388eb8['activeMarkers']['includes'](_0x14c7eb['markerName']);return _0x5f5395&&_0x3308f6['push']('ck-suggestion-marker--active'),{'classes':_0x3308f6,'attributes':{'data-suggestion':_0x9b3b05,'data-author-id':_0x411557},'priority':_0x5f5395&&_0x3ef91b?0xbc2:0xbb8};}_0x388eb8['on']('suggestionLoaded',_0x21560e,{'priority':'high'}),_0x388eb8['on']('suggestionUnloaded',_0x21560e,{'priority':'high'}),_0x1918a5['model']['document']['registerPostFixer'](()=>{let _0x145ae6=!0x1;const _0x4b7873=Array['from'](_0x1918a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ffc8e,data:_0x5ef7a6}of _0x4b7873){const {group:_0x2bf0fb,type:_0x102bee,id:_0x4c8c6e}=_0x388eb8['_splitMarkerName'](_0x1ffc8e);if('suggestion'!=_0x2bf0fb||'deletion'!=_0x102bee||_0x5ef7a6['oldRange'])continue;if(!_0x388eb8['hasSuggestion'](_0x4c8c6e))continue;const _0x1f0d83=_0x388eb8['getSuggestion'](_0x4c8c6e)['getRanges'](),_0x3ca478=_0x1918a5['plugins']['get']('Users')['me'];for(const _0x108f28 of _0x388eb8['getSuggestions']()){if(!_0x108f28['isInContent']||_0x108f28['author']!=_0x3ca478)continue;if('formatBlock'!=_0x108f28['type']||'tablePasteCell'!=_0x108f28['subType'])continue;if(_0x108f28['getRanges']()['every'](_0x1d5d59=>_0x1f0d83['some'](_0x30155f=>_0x30155f['containsRange'](_0x1d5d59,!0x0)))){for(const _0x4501b8 of _0x108f28['getAllAdjacentSuggestions']())_0x4501b8['isInContent']&&(_0x4501b8['discard'](),_0x145ae6=!0x0);}}}return _0x145ae6;}),_0x1918a5['model']['document']['registerPostFixer'](_0x50d1eb=>{const _0x1e7803=_0x1918a5['commands']['get']('redo');if(!_0x1e7803||!_0x1e7803['_createdBatches']['has'](_0x50d1eb['batch']))return!0x1;let _0x1cb68f=!0x1;const _0x2ef0b5=_0x1918a5['plugins']['get']('Users')['me'],_0x2634de=_0x1918a5['model']['document']['differ']['getChanges'](),_0x282ced=Array['from'](_0x1918a5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x547dcc,data:_0x46471e})=>{const {group:_0x4da735,subType:_0x41cbed,authorId:_0x1f6561}=_0x388eb8['_splitMarkerName'](_0x547dcc);return'suggestion'==_0x4da735&&'tablePaste'==_0x41cbed&&_0x1f6561==_0x2ef0b5['id']&&!_0x46471e['oldRange'];});for(const _0x12786a of _0x2634de){if('insert'!=_0x12786a['type']||'tableCellSuggestion'!=_0x12786a['name']||0x1!=_0x12786a['length'])continue;const _0x57207b=_0x50d1eb['createRange'](_0x12786a['position'],_0x12786a['position']['getShiftedBy'](0x1));if(!_0x282ced['find'](({data:_0x24060e})=>_0x24060e['newRange']['isEqual'](_0x57207b))){for(const {name:_0x37b25a,data:_0xb9ed92}of _0x282ced)if(_0x57207b['containsRange'](_0xb9ed92['newRange'])){_0x50d1eb['updateMarker'](_0x37b25a,{'range':_0x57207b}),_0x1cb68f=!0x0;break;}}}return _0x1cb68f;}),_0x1918a5['model']['document']['registerPostFixer'](_0x5cfc7f=>{let _0x1e8903=!0x1;const _0x263851=_0x1918a5['plugins']['get']('Users')['me'],_0xc8190e=_0x388eb8['getSuggestions']()['filter'](_0x277246=>_0x277246['isInContent']&&_0x277246['author']==_0x263851),_0x41d33c=new Set(),_0x994c1c=new Set();for(const _0x1a6e32 of _0xc8190e)if('tablePaste'==_0x1a6e32['subType'])for(const _0x3a52b6 of _0x1a6e32['getMarkers']()){const _0x5ca87f=_0x3a52b6['getRange']()['getContainedElement']();if(_0x5ca87f){if(_0x5ca87f['is']('element','tableCellSuggestion')&&Oe(_0x5ca87f)){_0x1a6e32['removeMarker'](_0x3a52b6['name']),_0x41d33c['add'](_0x5ca87f),_0x1e8903=!0x0;const _0x4609a7=_0x5ca87f['nextSibling'],_0x3e7436=_0x5ca87f['previousSibling'],_0xf75cf2=_0x4609a7&&_0x4609a7['is']('element','tableCellSuggestion'),_0x2f7c84=_0x3e7436&&_0x3e7436['is']('element','tableCellSuggestion');_0xf75cf2&&!_0x41d33c['has'](_0x4609a7)&&_0x994c1c['add'](_0x4609a7),_0x2f7c84&&!_0x41d33c['has'](_0x3e7436)&&_0x994c1c['add'](_0x3e7436);}else _0x5ca87f['is']('element','paragraph')&&_0x5ca87f['isEmpty']&&(_0x1a6e32['removeMarker'](_0x3a52b6['name']),_0x1e8903=!0x0);}}else{if('tablePasteCell'==_0x1a6e32['subType']){if(!_0x1a6e32['attributes']||!_0x1a6e32['attributes']['tablePasteChainId'])continue;const _0x447f19=_0x1a6e32['attributes']['markerAttributes'];if(_0x447f19&&Object['keys'](_0x447f19)['length'])continue;const _0x331416=_0x1a6e32['attributes']['tablePasteChainId'];let _0x1546dd=!0x0,_0x140268=!0x0;for(const _0x20c37e of _0xc8190e)if(_0x20c37e['subType']&&_0x20c37e['subType']['startsWith']('tablePaste')){if(!_0x20c37e['attributes']['tablePasteChainId']){_0x140268=!0x1;break;}if(_0x20c37e['id']!=_0x1a6e32['id']&&_0x20c37e['attributes']['tablePasteChainId']==_0x331416){_0x1546dd=!0x1;break;}}_0x140268&&_0x1546dd&&(_0x1a6e32['removeMarkers'](),_0x1e8903=!0x0);}}for(const _0xc7c1dd of _0x41d33c)_0x5cfc7f['remove'](_0xc7c1dd);for(const _0x955bf5 of _0x994c1c)_0x5cfc7f['unwrap'](_0x955bf5);return _0x1e8903;}),_0x1918a5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x399c81=>_0xb2299d(_0x399c81),'converterPriority':'high'}),_0x1918a5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b8076,_0x4709f1)=>_0x4709f1['options']['showSuggestionHighlights']?_0xb2299d(_0x3b8076,!0x1):null,'converterPriority':'high'});const _0x144d31=_0x1918a5['editing']['view'];this['listenTo'](_0x144d31['document'],'clipboardOutput',(_0x51215f,_0x356ecc)=>{const _0x3ade54=[];for(const _0x124e81 of _0x144d31['createRangeIn'](_0x356ecc['content'])['getItems']())_0x124e81['is']('element','suggestion-td')&&_0x3ade54['push'](_0x124e81);_0x144d31['change'](_0x279334=>{for(const _0x2db623 of _0x3ade54)_0x279334['move'](_0x279334['createRangeIn'](_0x2db623),_0x279334['createPositionBefore'](_0x2db623)),_0x279334['remove'](_0x2db623);});});}}function Oe(_0x55a935){if(_0x55a935['isEmpty'])return!0x0;const _0x5155ea=_0x55a935['getChild'](0x0);return _0x5155ea['is']('element','paragraph')&&_0x5155ea['isEmpty'];}function Ue(_0x137ec3,_0x5e1219={},_0x8f8c63){for(const {isAnchor:_0x55534a,cellHeight:_0x1c64d3,cellWidth:_0x2062cb}of _0x8f8c63['createTableWalker'](_0x137ec3,{'includeAllSlots':!0x0,..._0x5e1219}))if(!_0x55534a||0x1!=_0x1c64d3||0x1!=_0x2062cb)return!0x1;return!0x0;}class $t extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5386f7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5386f7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5386f7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5386f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5386f7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5386f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5386f7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22dd97,_0x935dbd){const _0x43310d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52a3e9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3cef07=_0x935dbd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2e602b=_0x52a3e9['getColumnGroupElement'](_0x3cef07);let _0x3c2b47=_0x2e602b?_0x52a3e9['getTableColumnsWidths'](_0x2e602b):null,_0x487eb0=_0x3cef07['getAttribute']('tableWidth')||null;const _0x341392=_0x935dbd['tableWidth']||_0x487eb0,_0x40e9c6=_0x935dbd['columnWidths']||_0x3c2b47,_0x104995=this['editor']['plugins']['get']('Users')['me'];for(const _0xcd8d9b of _0x43310d['getSuggestions']()){const _0x159ff7=_0xcd8d9b['getContainedElement']();if('resizeTable'===_0xcd8d9b['subType']&&_0x159ff7===_0x3cef07){_0xcd8d9b['author']!==_0x104995&&_0xcd8d9b['discard']();const _0x5dc3ed=_0xcd8d9b['data']['commandParams'];_0x487eb0=_0x5dc3ed[0x0]['tableWidth'],_0x3c2b47=_0x5dc3ed[0x0]['columnWidths'];break;}}_0x22dd97({'table':_0x3cef07,'tableWidth':_0x341392,'columnWidths':_0x40e9c6}),_0x43310d['markBlockFormat'](_0x3cef07,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x487eb0,'columnWidths':_0x3c2b47}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41ad4b){if('formatBlock'!=_0x41ad4b['type']&&'formatInline'!=_0x41ad4b['type'])return;const {data:_0x1fd361}=_0x41ad4b;if(_0x1fd361&&'resizeTable'===_0x1fd361['formatGroupId']){const _0x44ed58='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x44ed58)};}}}class Bt extends _0x2e0600{['afterInit'](){const _0x14cf9a=this['editor'];_0x14cf9a['plugins']['has']('Template')&&_0x14cf9a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2e0600{['afterInit'](){const _0x3fcf6e=this['editor'];if(!_0x3fcf6e['commands']['get']('insertTableOfContents'))return;_0x3fcf6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5629e4=_0x3fcf6e['plugins']['get']('TrackChangesEditing'),_0x358c03=_0x3fcf6e['locale'];_0x5629e4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x26a4de=>o(_0x358c03,'ELEMENT_TABLE_OF_CONTENTS',_0x26a4de));}}class Rt extends _0x2e0600{['afterInit'](){const _0x4dfa44=this['editor'];if(!_0x4dfa44['plugins']['has']('Title'))return;const _0x5962f5=_0x4dfa44['plugins']['get']('TrackChangesEditing');_0x5962f5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4dfa44['locale'],'ELEMENT_TITLE')),_0x4dfa44['model']['document']['registerPostFixer'](_0xe5a037=>{let _0x125c39=!0x1;const _0x1de241=Array['from'](_0x4dfa44['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x259ce5,data:_0x2beb7e}of _0x1de241){const {group:_0x58aea4}=_0x5962f5['_splitMarkerName'](_0x259ce5);if('suggestion'!==_0x58aea4||!_0x2beb7e['newRange'])continue;const _0xaedca=_0x2beb7e['newRange'],_0x57cd30=_0xaedca['end']['nodeBefore'];if(!_0x57cd30||!_0x57cd30['is']('element','title-content'))continue;if(!_0xaedca['start']['isTouching'](_0xaedca['end']))continue;const _0x1af0aa=_0x4dfa44['model']['schema']['getNearestSelectionRange'](_0xaedca['end'],'forward');if(_0x1af0aa&&_0x1af0aa['isCollapsed']){const _0x279acd=_0xe5a037['createRange'](_0xaedca['start'],_0x1af0aa['start']);_0x279acd['isEqual'](_0xaedca)||(_0xe5a037['updateMarker'](_0x259ce5,{'range':_0x279acd}),_0x125c39=!0x0);}_0x125c39||(_0xe5a037['removeMarker'](_0x259ce5),_0x125c39=!0x0);}return _0x125c39;});}}class Tt extends _0x2e0600{['afterInit'](){const _0x4f5dd6=this['editor'],_0x3de29c=_0x4f5dd6['plugins']['get']('TrackChangesEditing');_0x4f5dd6['plugins']['has']('Uploadcare')&&(_0x3de29c['enableCommand']('uploadcare'),_0x4f5dd6['plugins']['has']('UploadcareImageEdit')&&(_0x3de29c['enableCommand']('uploadcareImageEdit'),_0x3de29c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3de29c['registerBlockAttribute']('uploadcareImageId'),_0x3de29c['descriptionFactory']['registerDescriptionCallback'](_0x470968=>{if('attribute'!=_0x470968['type'])return;const {data:_0x547f85}=_0x470968;return _0x547f85&&'uploadcareImageId'==_0x547f85['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2e0600{['afterInit'](){const _0x4e4e76=this['editor'],_0x435a54=_0x4e4e76['plugins']['get']('TrackChangesEditing');_0x4e4e76['plugins']['has']('UndoEditing')&&(_0x435a54['enableCommand']('undo'),_0x435a54['enableCommand']('redo'));}}class Et extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0x2159db=this['editor'];if(!_0x2159db['plugins']['has']('TableCaptionEditing'))return;_0x2159db['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x2e0600{['tableProperties'];['tableCellProperties'];constructor(_0x16e262){super(_0x16e262),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 _0x1d8c47=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xd5056d of this['tableProperties'])_0x1d8c47['enableCommand'](_0xd5056d,(_0x325952,_0x23ebe2)=>{const _0x3b32a0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xd5056d,[_0x3b32a0],this['tableProperties'],'tableProperties',_0x325952,_0x23ebe2);});_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d8c47['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5a66d4,_0x142a83)=>this['handleDiscardAction'](this['tableProperties'],_0x5a66d4,_0x142a83)),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x27bade of this['tableCellProperties'])_0x1d8c47['enableCommand'](_0x27bade,(_0x3d7417,_0x116818)=>{const _0x101a21=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x27bade,_0x101a21,this['tableCellProperties'],'tableCellProperties',_0x3d7417,_0x116818);});_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d8c47['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44ce9b,_0x5899a7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44ce9b,_0x5899a7)),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d8c47['descriptionFactory']['registerDescriptionCallback'](_0x473dc8=>this['handleSuggestionDescription'](_0x473dc8));}['_handlePropertyChange'](_0x4644cc,_0xd39997,_0x3dd668,_0x485b5c,_0x19490c,_0x1e8de4){const _0x4ac5e9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1e8de4['batch'],()=>{for(const _0x59b5c7 of _0xd39997){if(this['_getSuggestion'](_0x59b5c7,_0x485b5c))_0x19490c(_0x1e8de4);else{const _0x1120e9={};for(const _0x178c9c of _0x3dd668){const _0x51d812=_0x59b5c7['getAttribute'](_0x178c9c);void 0x0!==_0x51d812&&(_0x1120e9[_0x178c9c]=_0x51d812);}_0x19490c(_0x1e8de4),_0x4ac5e9['markBlockFormat'](_0x59b5c7,{'commandParams':[_0x1120e9]},[],_0x485b5c);}}});}['handleDiscardAction'](_0x158033,_0x1b89c8,_0x58c0b3){const _0x509a54=_0x1b89c8[0x0]['start']['nodeAfter'],_0x47f152=_0x58c0b3['commandParams'][0x0];this['editor']['model']['change'](_0x5de16b=>{for(const _0x49abd6 of _0x158033)void 0x0!==_0x47f152[_0x49abd6]?_0x5de16b['setAttribute'](_0x49abd6,_0x47f152[_0x49abd6],_0x509a54):_0x5de16b['removeAttribute'](_0x49abd6,_0x509a54);});}['handleSuggestionDescription'](_0x1eda3e){if(_0x1eda3e['data'])switch(_0x1eda3e['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'](_0x511183,_0x4d3608){const _0x564162=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x39e2f4 of _0x564162['getSuggestions']({'skipNotAttached':!0x0})){const _0x51ee9d=_0x39e2f4['getContainedElement']();if(_0x39e2f4['subType']===_0x4d3608&&_0x51ee9d===_0x511183)return _0x39e2f4;}return null;}}const m='$elementName';class p extends _0x2e0600{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x483d85,_0x396b21,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(_0xd08ece){super(_0xd08ece),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2e1eab,_0x3fc1f0,_0x2f2c93,_0x4f52cd)=>{this['_model']['change'](()=>{for(const _0x1e4751 of[..._0x4f52cd,..._0x2f2c93])this['_model']['markers']['has'](_0x1e4751)&&_0xd08ece['editing']['reconvertMarker'](_0x1e4751);});}),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']=_0xd08ece['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(),_0xd08ece['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xd08ece['config']['get']('trackChanges.trackFormatChanges'),_0xd08ece['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xd08ece['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xd08ece,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x51ec80=this['editor'],_0x951bf3=(_0x1abddc,_0x2bdeb4)=>{if('attribute'!=_0x1abddc)return'ck-suggestion-marker-'+_0x1abddc;const _0x33ffe7=_0x2bdeb4['split']('|')[0x0];return this['_isBlockAttribute'](_0x33ffe7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x51ec80['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x144b6c=>{const {id:_0x4fe63d,authorId:_0x12d99f,type:_0x78429b,subType:_0x6855f5}=this['_splitMarkerName'](_0x144b6c['markerName']),_0x5cc0e3=['ck-suggestion-marker',_0x951bf3(_0x78429b,_0x6855f5)];let _0x462b91=0xbb8;return this['activeMarkers']['includes'](_0x144b6c['markerName'])&&(_0x5cc0e3['push']('ck-suggestion-marker--active'),_0x462b91=0xbc2),'deletion'==_0x78429b&&(_0x462b91+=0x5),{'classes':_0x5cc0e3,'attributes':{'data-suggestion':_0x4fe63d,'data-author-id':_0x12d99f},'priority':_0x462b91};}}),_0x51ec80['conversion']['for']('dataDowncast')['add'](_0x9aa039=>{_0x9aa039['on']('addMarker:suggestion',(_0x231111,_0x489ba8,_0x1ebaaf)=>{if(!_0x1ebaaf['options']['showSuggestionHighlights'])return;const _0xff39e9=_0x489ba8['item'];if(!_0xff39e9)return;const _0x2fdd89=_0x1ebaaf['mapper']['toViewElement'](_0xff39e9);_0x51ec80['model']['schema']['isObject'](_0xff39e9)&&_0x2fdd89&&!_0x2fdd89['getCustomProperty']('widget')&&_0x2fdd89['is']('containerElement')&&_0x3dbc81(_0x2fdd89,_0x1ebaaf['writer']);},{'priority':'high'});}),_0x51ec80['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b464a,_0x4cee2e)=>{if(!_0x4cee2e['options']['showSuggestionHighlights'])return null;const {type:_0x8ddfdd,subType:_0x1eff1e}=this['_splitMarkerName'](_0x4b464a['markerName']);return{'classes':['ck-suggestion-marker',_0x951bf3(_0x8ddfdd,_0x1eff1e)],'priority':0xbb8};}});const _0x1ec902=({showActiveMarkers:_0x1923b5=!0x0,isAttributeSuggestion:_0x37f348=!0x1}={})=>(_0x14d816,_0x370301,_0x310378)=>{if(!_0x370301['item'])return;const {id:_0xac1779,authorId:_0xd5b1b0}=this['_splitMarkerName'](_0x370301['markerName']);if(_0x37f348){const _0x1327db=this['_suggestions']['get'](_0xac1779),_0x1fa8fb=this['_getAttributeKey'](_0x1327db);if(!this['_isBlockAttribute'](_0x1fa8fb))return;}if(_0x370301['item']['is']('selection'))return void _0x310378['consumable']['consume'](_0x370301['item'],_0x14d816['name']);const _0x33ccd2=_0x310378['mapper']['toViewElement'](_0x370301['item']);if(_0x370301['item']['is']('element')&&_0x51ec80['model']['schema']['isBlock'](_0x370301['item'])&&!_0x33ccd2['getCustomProperty']('addHighlight')){_0x310378['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x33ccd2),_0x310378['writer']['setAttribute']('data-suggestion',_0xac1779,_0x33ccd2),_0x310378['writer']['setAttribute']('data-author-id',_0xd5b1b0,_0x33ccd2),_0x310378['mapper']['bindElementToMarker'](_0x33ccd2,_0x370301['markerName']),_0x1923b5&&(this['activeMarkers']['includes'](_0x370301['markerName'])?_0x310378['writer']['addClass']('ck-suggestion-marker--active',_0x33ccd2):_0x310378['writer']['removeClass']('ck-suggestion-marker--active',_0x33ccd2));for(const _0x419d65 of _0x51ec80['model']['createRangeIn'](_0x370301['item'])['getItems']())_0x310378['consumable']['consume'](_0x419d65,_0x14d816['name']);_0x310378['consumable']['consume'](_0x370301['item'],_0x14d816['name']);}};_0x51ec80['conversion']['for']('dataDowncast')['add'](_0x469e0f=>{_0x469e0f['on']('addMarker:suggestion:formatBlock',(_0x1745a7,_0x593206,_0x102398)=>{_0x102398['options']['showSuggestionHighlights']&&_0x1ec902({'showActiveMarkers':!0x1})(_0x1745a7,_0x593206,_0x102398);},{'priority':'highest'});}),_0x51ec80['conversion']['for']('dataDowncast')['add'](_0x1ce73=>{_0x1ce73['on']('addMarker:suggestion:attribute',(_0x10b6ac,_0x5591c1,_0x2f5830)=>{_0x2f5830['options']['showSuggestionHighlights']&&_0x1ec902({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x10b6ac,_0x5591c1,_0x2f5830);},{'priority':'highest'});}),_0x51ec80['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x464c86,_0x388d62)=>_0x388d62['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x464c86['substr'](0xb)}}),_0x51ec80['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c6d10,{writer:_0x471fd2})=>{let _0x10c682='suggestion:'+_0x3c6d10['getAttribute']('suggestion-type')+':'+_0x3c6d10['getAttribute']('id');return _0x3c6d10['getAttribute']('marker-count')&&(_0x10c682+=':'+_0x3c6d10['getAttribute']('marker-count')),_0x471fd2['createElement']('$marker',{'data-name':_0x10c682});}}),_0x51ec80['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x102fdb=>{_0x102fdb['on']('addMarker:suggestion:formatBlock',_0x1ec902(),{'priority':'high'});}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x2ca9fe=>{_0x2ca9fe['on']('addMarker:suggestion:attribute',_0x1ec902({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x54b7fd=>{_0x54b7fd['on']('removeMarker:suggestion:formatBlock',(_0x53247e,_0x25842e,_0xd97aa)=>{const _0x3021be=_0xd97aa['mapper']['markerNameToElements'](_0x25842e['markerName']);if(_0x3021be){for(const _0xd27ffd of _0x3021be)_0xd27ffd['getCustomProperty']('addHighlight')||(_0xd97aa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd27ffd),_0xd97aa['writer']['removeAttribute']('data-suggestion',_0xd27ffd),_0xd97aa['writer']['removeAttribute']('data-author-id',_0xd27ffd),_0xd97aa['mapper']['unbindElementFromMarkerName'](_0xd27ffd,_0x25842e['markerName']));}},{'priority':'high'});}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x2f4250=>{_0x2f4250['on']('removeMarker:suggestion:attribute',(_0x5b7d85,_0xbd1040,_0x4b18d9)=>{const _0xe60829=_0x4b18d9['mapper']['markerNameToElements'](_0xbd1040['markerName']);if(!_0xe60829)return;const {id:_0x56d092}=this['_splitMarkerName'](_0xbd1040['markerName']),_0x463f32=this['_suggestions']['get'](_0x56d092),_0x3808a0=this['_getAttributeKey'](_0x463f32);if(this['_isBlockAttribute'](_0x3808a0)){for(const _0x2f461f of _0xe60829)_0x2f461f['getCustomProperty']('addHighlight')||(_0x4b18d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f461f),_0x4b18d9['writer']['removeAttribute']('data-suggestion',_0x2f461f),_0x4b18d9['writer']['removeAttribute']('data-author-id',_0x2f461f),_0x4b18d9['mapper']['unbindElementFromMarkerName'](_0x2f461f,_0xbd1040['markerName']));}},{'priority':'high'});}),_0x51ec80['model']['document']['registerPostFixer'](_0x40fa60=>{let _0x35777a=!0x1;const _0x42e6fa=Array['from'](_0x51ec80['model']['document']['differ']['getChangedMarkers']()),_0x48b949=new Set();for(const {name:_0x3e8516,data:_0x2ea9ab}of _0x42e6fa){const {group:_0x21b6a2,type:_0x54e133,subType:_0x45cadf,id:_0x5bdcb4}=this['_splitMarkerName'](_0x3e8516);if('suggestion'!==_0x21b6a2)continue;const _0x304293=this['_suggestions']['get'](_0x5bdcb4);if(null!=_0x2ea9ab['newRange']){'formatInline'==_0x54e133&&(_0x35777a=_0x35777a||Lt(_0x2ea9ab['newRange'],_0x3e8516,_0x40fa60,_0x51ec80['model']['schema']));const _0x13bda5='attribute'==_0x54e133&&this['_isBlockAttribute'](_0x45cadf['split']('|')[0x0]);if(_0x2ea9ab['newRange']['isCollapsed']||'$graveyard'==_0x2ea9ab['newRange']['root']['rootName']||'formatBlock'==_0x54e133&&!Ht(_0x2ea9ab['newRange'])||_0x13bda5&&!Ht(_0x2ea9ab['newRange'])||'deletion'==_0x54e133&&!(!Ft(_0x829121=_0x2ea9ab['newRange'])&&!function(_0x29da2a){return _0x29da2a['start']['parent']==_0x29da2a['end']['nodeBefore']&&_0x29da2a['start']['isAtEnd'];}(_0x829121)))_0x40fa60['removeMarker'](_0x3e8516),_0x35777a=!0x0;else{if(!_0x304293||!_0x304293['isInContent'])continue;if(_0x2ea9ab['newRange']&&_0x2ea9ab['oldRange']&&_0x2ea9ab['newRange']['isEqual'](_0x2ea9ab['oldRange']))continue;_0x48b949['add'](_0x304293);}}}var _0x829121;return _0x48b949['size']>0x0&&(_0x35777a=!!this['_joinWithAdjacentSuggestions'](_0x48b949)||_0x35777a),_0x35777a;}),_0x51ec80['model']['document']['registerPostFixer'](_0x235083=>{let _0x254bdd=!0x1;for(const _0x582b24 of _0x51ec80['model']['document']['differ']['getChanges']())if('insert'==_0x582b24['type'])for(const _0x397f89 of this['_suggestions']['values']()){if(_0x397f89['isMultiRange']||!_0x397f89['isInContent'])continue;const _0x51ab9f='formatBlock'==_0x397f89['type'],_0x35ca87=this['_getAttributeKey'](_0x397f89),_0x5ea59b=_0x35ca87&&this['_isBlockAttribute'](_0x35ca87);if(!_0x51ab9f&&!_0x5ea59b)continue;const _0x6a5a5b=_0x397f89['getFirstRange']();if(_0x6a5a5b['start']['parent']!=_0x6a5a5b['end']['parent']&&!_0x6a5a5b['end']['isAtEnd']){const _0x4e1bce=_0x51ec80['model']['createPositionAt'](_0x6a5a5b['start']['nodeAfter'],'end'),_0x34d135=_0x51ec80['model']['createRange'](_0x6a5a5b['start'],_0x4e1bce);_0x235083['updateMarker'](_0x397f89['getFirstMarker'](),{'range':_0x34d135}),_0x254bdd=!0x0;}}return _0x254bdd;}),_0x51ec80['model']['document']['registerPostFixer'](_0x5c0aeb=>this['_processAttributeChanges'](_0x5c0aeb)),_0x51ec80['model']['document']['registerPostFixer'](_0xf3ab1d=>!_0xf3ab1d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xf3ab1d)),_0x51ec80['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x51ec80['model']['document']['on']('change:data',(_0x1e228b,_0x2b14b7)=>{if(!_0x2b14b7['isLocal']||_0x2b14b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5e276c=_0x51ec80['model']['document']['differ']['getChanges']();if(0x0==_0x5e276c['length'])return;const _0x5a5c61=[],_0xc62975=_0x5e276c['filter'](_0x23e92e=>'attribute'==_0x23e92e['type']),_0x37f46e=_0x5e276c['filter'](_0x2c04ca=>'insert'==_0x2c04ca['type']&&'$text'!=_0x2c04ca['name']);for(const _0x5e3151 of _0xc62975)this['_isRegisteredAttribute'](_0x5e3151['attributeKey'])&&_0x5a5c61['push']({'key':_0x5e3151['attributeKey'],'newValue':_0x5e3151['attributeNewValue'],'oldValue':_0x5e3151['attributeOldValue'],'range':qt(_0x5e3151['range'],_0x51ec80['model'])});for(const _0x216613 of _0x37f46e){if('rename'!=_0x216613['action']&&'refresh'!=_0x216613['action'])continue;const _0x38cd9f=zt(_0x216613['position']['nodeAfter'],_0x51ec80['model']),_0x5c8bbf=_0x216613['before'];'rename'==_0x216613['action']&&_0x5a5c61['push']({'key':m,'newValue':_0x216613['name'],'oldValue':_0x5c8bbf['name'],'range':_0x38cd9f});for(const [_0x337584,_0x21b300]of _0x5c8bbf['attributes']){if(!this['_isRegisteredAttribute'](_0x337584))continue;const _0xdfb2d2=_0x216613['attributes']['get'](_0x337584);_0x21b300!==_0xdfb2d2&&_0x5a5c61['push']({'key':_0x337584,'newValue':_0xdfb2d2,'oldValue':_0x21b300,'range':_0x38cd9f});}for(const [_0xc9d2ba,_0x1c060d]of _0x216613['attributes'])this['_isRegisteredAttribute'](_0xc9d2ba)&&(_0x5c8bbf['attributes']['has'](_0xc9d2ba)||_0x5a5c61['push']({'key':_0xc9d2ba,'newValue':_0x1c060d,'oldValue':null,'range':_0x38cd9f}));}0x0!=_0x5a5c61['length']&&_0x51ec80['model']['enqueueChange'](_0x2b14b7,_0x3544c4=>{const _0x5115e3=_0x502eb1();for(const {range:_0xa79a41,key:_0x4d0627,oldValue:_0x1e1101,newValue:_0x37366f}of _0x5a5c61)this['markAttributeChange'](_0xa79a41,_0x4d0627,_0x1e1101,_0x37366f,{'groupId':_0x5115e3});this['_reduceExistingSuggestions'](_0x3544c4,_0x5a5c61);});},{'priority':'lowest'}),_0x51ec80['model']['markers']['on']('update:suggestion',(_0x4706d6,_0xef4e95,_0x2afdcb)=>{if(null==_0x2afdcb){const {id:_0x5e8088}=this['_splitMarkerName'](_0xef4e95['name']),_0x267cea=this['_suggestions']['get'](_0x5e8088);_0x267cea&&_0x267cea['addMarkerName'](_0xef4e95['name']);}}),_0x51ec80['model']['document']['on']('change:data',()=>{const _0x1fa56d=Array['from'](_0x51ec80['model']['document']['differ']['getChangedMarkers']())['filter'](_0x17691f=>'suggestion'===this['_splitMarkerName'](_0x17691f['name'])['group']);if(0x0===_0x1fa56d['length'])return;_0x1fa56d['sort']((_0x4f2706,_0xf2106b)=>{const _0x4fd8e3=_0x4f2706['data']['oldRange'],_0x15325a=_0xf2106b['data']['oldRange'];return null===_0x4fd8e3&&null===_0x15325a?0x0:null===_0x4fd8e3&&null!==_0x15325a?-0x1:null!==_0x4fd8e3&&null===_0x15325a?0x1:_0x4fd8e3['start']['isBefore'](_0x15325a['start'])?-0x1:0x1;});const _0xe66a32=new Set(),_0x111733=new Set();for(const {name:_0x255024,data:_0x265a3c}of _0x1fa56d){const {id:_0x115dba}=this['_splitMarkerName'](_0x255024);if(null===_0x265a3c['oldRange']){const _0x30d8f0=this['_handleNewSuggestionMarker'](_0x255024);_0x111733['add'](_0x30d8f0);}else{const _0x386bab=this['_suggestions']['get'](_0x115dba);null!==_0x265a3c['newRange']||_0x386bab['isInContent']?(_0xe66a32['add'](_0x386bab['head']),_0x111733['add'](_0x386bab)):this['_removeSuggestion'](_0x386bab);}}_0x111733['size']>0x0&&this['_refreshSuggestionsChain'](_0x111733);for(const _0x4e2d92 of _0xe66a32)this['fire']('suggestionChanged',_0x4e2d92);}),_0x51ec80['model']['on']('applyOperation',(_0x4339c1,_0xf9d03c)=>{const _0x5993d6=_0xf9d03c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5993d6['isDocumentOperation'])return;if(_0x5993d6['batch']['isUndo']||!_0x5993d6['batch']['isLocal'])return;let _0x5bda15,_0x429f7e;switch(_0x5993d6['type']){case'insert':_0x5bda15=_0x51ec80['model']['createPositionAt'](_0x5993d6['position']),_0x429f7e=_0x5bda15['getShiftedBy'](_0x5993d6['howMany']);break;case'split':_0x5bda15=_0x51ec80['model']['createPositionAt'](_0x5993d6['splitPosition']),_0x429f7e=_0x51ec80['model']['createPositionAt'](_0x5993d6['moveTargetPosition']);break;case'move':_0x5bda15=_0x51ec80['model']['createPositionAt'](_0x5993d6['targetPosition']),_0x429f7e=_0x5bda15['getShiftedBy'](_0x5993d6['howMany']);break;default:return;}const _0x11cc38=_0x51ec80['model']['createRange'](_0x5bda15,_0x429f7e);_0x51ec80['model']['change'](()=>{for(const {suggestion:_0x16b508,meta:_0x556f70}of this['_findSuggestions'](_0x11cc38)){if(_0x16b508['isMultiRange'])continue;if('formatInline'==_0x16b508['type'])continue;const _0x916fd9=this['_getAttributeKey'](_0x16b508);if(_0x916fd9&&this['_isBlockAttribute'](_0x916fd9)&&'split'!=_0x5993d6['type'])continue;const _0x2c561d=_0x16b508['data']&&_0x16b508['data']['multipleBlocks'];('formatBlock'!=_0x16b508['type']||'split'==_0x5993d6['type']&&!_0x2c561d)&&(_0x556f70['containsRangeInObject']||'insertion'==_0x16b508['type']&&_0x556f70['isOwn']||_0x16b508['getFirstRange']()['containsRange'](_0x11cc38)&&this['_breakSuggestionMarker'](_0x16b508,_0x5bda15,_0x429f7e));}});},{'priority':'lowest'}),_0x51ec80['model']['on']('deleteContent',(_0x386665,_0x401a52)=>{const _0x5e78d3=_0x401a52[0x0],_0x18506f=_0x401a52[0x1];if(_0x18506f&&_0x18506f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e78d3['isCollapsed'])return;const _0xfbdd39=_0x51ec80['model']['schema'],{start:_0x4e5c06,end:_0x51c716}=_0x5e78d3['getFirstRange'](),_0x307a90=_0x4e5c06['nodeAfter']&&_0xfbdd39['isLimit'](_0x4e5c06['nodeAfter'])?null:_0xfbdd39['getNearestSelectionRange'](_0x4e5c06,'forward'),_0x49bec0=_0x51c716['nodeBefore']&&_0xfbdd39['isLimit'](_0x51c716['nodeBefore'])?null:_0xfbdd39['getNearestSelectionRange'](_0x51c716,'backward'),_0x504749=_0x51ec80['model']['createRange'](_0x307a90?_0x307a90['start']:_0x4e5c06,_0x49bec0?_0x49bec0['end']:_0x51c716);_0x51ec80['model']['change'](_0x885ba5=>{this['markDeletion'](_0x504749);const _0x41bf80=_0x51ec80['model']['schema']['getNearestSelectionRange'](_0x504749['start']);_0x5e78d3['is']('documentSelection')?_0x885ba5['setSelection'](_0x41bf80):_0x5e78d3['setTo'](_0x41bf80);}),_0x386665['stop']();},{'priority':_0xffa7dc['normal']+0xa}),_0x51ec80['model']['on']('insertContent',(_0x31d363,_0x3b5e64)=>{const _0xc3fe71=_0x3b5e64[_0x3b5e64['length']-0x1];_0xc3fe71&&_0xc3fe71['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x51ec80['model']['change'](()=>{let _0x54790d=_0x51ec80['model']['insertContent'](_0x3b5e64[0x0],_0x3b5e64[0x1],_0x3b5e64[0x2],{'forceDefaultExecution':!0x0});if(!_0x54790d)return;_0x31d363['return']=_0x54790d['clone']();const _0x23fe13=_0x54790d['end']['nodeBefore'],_0x59b031=_0x51ec80['model']['schema'];_0x23fe13&&_0x59b031['isBlock'](_0x23fe13)&&!_0x59b031['isObject'](_0x23fe13)&&(_0x54790d=_0x51ec80['model']['createRange'](_0x54790d['start'],_0x51ec80['model']['createPositionAt'](_0x23fe13,'end'))),this['markInsertion'](_0x54790d);}),_0x31d363['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c66e6=new O(_0x51ec80,this['_suggestions']);_0x51ec80['commands']['add']('acceptSuggestion',_0x3c66e6),this['enableCommand']('acceptSuggestion');const _0x2e7f04=new R(_0x51ec80,this['_suggestions']);_0x51ec80['commands']['add']('discardSuggestion',_0x2e7f04),this['enableCommand']('discardSuggestion'),_0x51ec80['commands']['add']('acceptAllSuggestions',new x(_0x51ec80,_0x3c66e6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x51ec80['commands']['add']('discardAllSuggestions',new x(_0x51ec80,_0x2e7f04,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x51ec80['commands']['add']('acceptSelectedSuggestions',new E(_0x51ec80,_0x3c66e6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x51ec80['commands']['add']('discardSelectedSuggestions',new E(_0x51ec80,_0x2e7f04,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x397fa1=_0x51ec80['plugins']['get']('CommentsRepository');this['listenTo'](_0x397fa1,'addComment',(_0xa1e7a0,{threadId:_0x599fa3})=>{const _0x1f935d=this['_suggestions']['get'](_0x599fa3);_0x1f935d&&_0x1f935d['commentThread']&&0x1===_0x1f935d['commentThread']['length']&&this['_updateSuggestionData'](_0x599fa3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x397fa1,'removeComment',(_0x228967,{threadId:_0xb52985})=>{const _0x5c7f7=this['_suggestions']['get'](_0xb52985);_0x5c7f7&&_0x5c7f7['commentThread']&&!_0x5c7f7['commentThread']['length']&&this['_updateSuggestionData'](_0xb52985,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a1cd3){const _0x2a029d=_0x256c32([0x64,0x73,0x76,0x4e,0x59,0x71,0x43,0x52,0x4d,0x45,0x6f,0x49,0x44,0x6d,0x58,0x4c,0x7a,0x4b,0x6c,0x54,0x48,0x32,0x6a,0x37,0x31,0x53,0x78,0x77,0x72,0x42,0x39,0x41,0x36,0x66,0x30,0x55,0x69,0x46,0x57,0x65,0x67,0x4f,0x75,0x5a,0x34,0x50,0x6b,0x63,0x56,0x51,0x35,0x68,0x6e,0x38,0x74,0x70,0x47,0x79,0x33,0x62,0x61,0x4a]),_0x32ca70=0x691f93a9,_0x5910f6=0x6918ccd1^_0x32ca70,_0xae269e=window[_0x256c32([0x44,0x61,0x74,0x65])][_0x256c32([0x6e,0x6f,0x77])](),_0x4f953c=_0x3a1cd3[_0x256c32([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58d0e9=new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x206966=>{_0x4f953c[_0x256c32([0x6f,0x6e,0x63,0x65])](_0x256c32([0x72,0x65,0x61,0x64,0x79]),_0x206966);}),_0x1ea037={[_0x256c32([0x6b,0x74,0x79])]:_0x256c32([0x45,0x43]),[_0x256c32([0x75,0x73,0x65])]:_0x256c32([0x73,0x69,0x67]),[_0x256c32([0x63,0x72,0x76])]:_0x256c32([0x50,0x2d,0x32,0x35,0x36]),[_0x256c32([0x78])]:_0x256c32([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]),[_0x256c32([0x79])]:_0x256c32([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]),[_0x256c32([0x61,0x6c,0x67])]:_0x256c32([0x45,0x53,0x32,0x35,0x36])},_0x4cac36=_0x4f953c[_0x256c32([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x256c32([0x67,0x65,0x74])](_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x239d44(){let _0x28e3ab,_0x5ed2bc=null,_0x2e2cdf=null;try{if(_0x4cac36==_0x256c32([0x47,0x50,0x4c]))return _0x256c32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28e3ab=_0x1b4caf(),!_0x28e3ab)return _0x256c32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28e3ab[_0x256c32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e2cdf=_0x5d7a09(_0x28e3ab[_0x256c32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28e3ab[_0x256c32([0x6a,0x74,0x69])])),await _0x29808b()?_0x4482da()?_0x4d4a47()?_0x256c32([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2243cc()?(_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256c32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ed2bc=_0x1852c7(_0x256c32([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256c32([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ed2bc=_0x1852c7(_0x256c32([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x469726()):_0x256c32([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x256c32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x256c32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf088c6){return _0x256c32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d4a47(){const _0x466c5d=[_0x256c32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x256c32([0x74,0x72,0x69,0x61,0x6c])][_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xae269e/0x3e8:0xe10*_0x5910f6;return _0x28e3ab[_0x256c32([0x65,0x78,0x70])]<_0x466c5d;}function _0x4482da(){const _0x39f3c7=_0x28e3ab[_0x256c32([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39f3c7)return!0x1;if(_0x39f3c7[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x2a])))return!0x0;if(_0x39f3c7[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x54,0x43])))return!0x0;if(_0x39f3c7[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x52,0x54,0x43]))){if(_0xeeccdc())return!0x0;if(_0x1a1494()||_0x185c92())return!0x0;}return!0x1;}function _0x2243cc(){const _0x30f120=_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30f120||0x0==_0x30f120[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x353141}=new URL(window[_0x256c32([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30f120[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353141))return!0x0;const _0x11c194=_0x353141[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e]));return _0x30f120[_0x256c32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d0e0f=>_0x3d0e0f[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x2a])))[_0x256c32([0x6d,0x61,0x70])](_0x59fac4=>_0x59fac4[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e])))[_0x256c32([0x73,0x6f,0x6d,0x65])](_0x3a93b7=>_0x11c194[_0x256c32([0x65,0x76,0x65,0x72,0x79])]((_0x3d12d1,_0x42f23f)=>_0x3a93b7[_0x42f23f]===_0x3d12d1||_0x3a93b7[_0x42f23f]===_0x256c32([0x2a])));}function _0x469726(){return _0x5ed2bc&&_0x2e2cdf?new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x401efc,_0x1cd9c3)=>{_0x5ed2bc[_0x256c32([0x74,0x68,0x65,0x6e])](_0x401efc,_0x1cd9c3),_0x2e2cdf[_0x256c32([0x74,0x68,0x65,0x6e])](_0x2b4af7=>{_0x2b4af7!=_0x256c32([0x56,0x61,0x6c,0x69,0x64])&&_0x401efc(_0x2b4af7);},_0x1cd9c3);}):_0x5ed2bc||_0x2e2cdf||_0x256c32([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d7a09(_0x3eb4e9,_0x376100){return new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aee65=>{if(_0x4076bf())return _0x4aee65(_0x256c32([0x56,0x61,0x6c,0x69,0x64]));_0x1e63fb(),_0x4f953c[_0x256c32([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x256c32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39a546=!0x1;const _0x3159bc=_0x502eb1();function _0x35c92e(_0x51254a){return!!_0x51254a&&(typeof _0x51254a===_0x256c32([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51254a===_0x256c32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51254a[_0x256c32([0x74,0x68,0x65,0x6e])]===_0x256c32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51254a[_0x256c32([0x63,0x61,0x74,0x63,0x68])]===_0x256c32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d2917(_0x2f5489){_0x227f8e(_0x2f5489)[_0x256c32([0x74,0x68,0x65,0x6e])](_0x4fc8b6=>{if(!_0x4fc8b6||_0x4fc8b6[_0x256c32([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x256c32([0x6f,0x6b]))return _0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x587e8d(_0x38bbf6(_0x3159bc+_0x376100))!=_0x4fc8b6[_0x256c32([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x256c32([0x56,0x61,0x6c,0x69,0x64]);})[_0x256c32([0x74,0x68,0x65,0x6e])](_0x56df1d=>(_0x255386(),_0x56df1d),()=>{const _0x48c781=_0x3b73fa();return null==_0x48c781?(_0x255386(),_0x256c32([0x56,0x61,0x6c,0x69,0x64])):_0x256c32(_0xae269e-_0x48c781>(0x4d1317a9^_0x32ca70)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x256c32([0x74,0x68,0x65,0x6e])](_0x4aee65)[_0x256c32([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4aee65(_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37ceca=0x69297d29^_0x32ca70;function _0x255386(){const _0x578abd=_0x256c32([0x6c,0x6c,0x63,0x74,0x2d])+_0x587e8d(_0x38bbf6(_0x3eb4e9)),_0x120ce9=_0x192947(_0x587e8d(window[_0x256c32([0x4d,0x61,0x74,0x68])][_0x256c32([0x63,0x65,0x69,0x6c])](_0xae269e/_0x37ceca)));window[_0x256c32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256c32([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x578abd,_0x120ce9);}function _0x3b73fa(){const _0x16277b=_0x256c32([0x6c,0x6c,0x63,0x74,0x2d])+_0x587e8d(_0x38bbf6(_0x3eb4e9)),_0x5230b7=window[_0x256c32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256c32([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16277b);return _0x5230b7?window[_0x256c32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x192947(_0x5230b7),0x10)*_0x37ceca:null;}function _0x227f8e(_0x5665be){return new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2febde,_0x3ec374)=>{_0x5665be[_0x256c32([0x74,0x68,0x65,0x6e])](_0x2febde,_0x3ec374),window[_0x256c32([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ec374,0x691e4769^_0x32ca70);});}}_0x4f953c[_0x256c32([0x6f,0x6e])](_0x256c32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x283eee,_0x442bff)=>{if(_0x442bff[0x0]!=_0x3eb4e9)return _0x4aee65(_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x442bff[0x1]={..._0x442bff[0x1],[_0x256c32([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3159bc};},{[_0x256c32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256c32([0x68,0x69,0x67,0x68])}),_0x4f953c[_0x256c32([0x6f,0x6e])](_0x256c32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46cf5a=>{_0x35c92e(_0x46cf5a[_0x256c32([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39a546=!0x0,_0x3d2917(_0x46cf5a[_0x256c32([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x256c32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256c32([0x6c,0x6f,0x77])}),_0x58d0e9[_0x256c32([0x74,0x68,0x65,0x6e])](()=>{_0x39a546||_0x4aee65(_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4076bf(){return _0x4f953c[_0x256c32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256c32([0x76,0x69,0x65,0x77])][_0x256c32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x256c32([0x61,0x75,0x74,0x6f]);}function _0x1e63fb(){_0x4f953c[_0x256c32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256c32([0x76,0x69,0x65,0x77])][_0x256c32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x256c32([0x61,0x75,0x74,0x6f]);}}function _0x1852c7(_0x4097bd){const _0x1837df=[new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d1971=>setTimeout(_0x5d1971,0x6916ad65^_0x32ca70)),_0x58d0e9[_0x256c32([0x74,0x68,0x65,0x6e])](()=>new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4691f5=>{let _0x1ab10e=0x0;_0x4f953c[_0x256c32([0x6d,0x6f,0x64,0x65,0x6c])][_0x256c32([0x6f,0x6e])](_0x256c32([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x241548,_0x2db274)=>{_0x2db274[0x0][_0x256c32([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ab10e++,_0x1ab10e==(0x691f9251^_0x32ca70)&&(_0x4691f5(),_0x241548[_0x256c32([0x6f,0x66,0x66])]());});}))];return window[_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x256c32([0x72,0x61,0x63,0x65])](_0x1837df)[_0x256c32([0x74,0x68,0x65,0x6e])](()=>_0x4097bd);}async function _0x147fd9(){await _0x58d0e9,_0x4f953c[_0x256c32([0x6d,0x6f,0x64,0x65,0x6c])][_0x256c32([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16c3bb,_0x4f953c[_0x256c32([0x6d,0x6f,0x64,0x65,0x6c])][_0x256c32([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16c3bb,_0x4f953c[_0x256c32([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x256c32([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xeeccdc(){return _0x9fdc60(_0x256c32([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xdc01fd(_0x256c32([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x256c32([0x73,0x74,0x61,0x74,0x65])]==_0x256c32([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a1494(){return _0x9fdc60(_0x256c32([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 _0x185c92(){return _0x9fdc60(_0x256c32([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5f3bf5(_0x25fa05){const _0x1a73d9=_0x5c5640();_0x4f953c[_0x1a73d9]=_0x256c32([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25fa05,_0x25fa05!=_0x256c32([0x56,0x61,0x6c,0x69,0x64])&&_0x147fd9();}function _0x5c5640(){const _0x351b59=window[_0x256c32([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x256c32([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x256c32([0x6e,0x6f,0x77])]())[_0x256c32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x256c32([0x2e]),'');let _0x3647fe=_0x256c32([0x64]);for(let _0xc41b1d=0x0;_0xc41b1d<_0x351b59[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc41b1d+=0x2){let _0x54ed0d=window[_0x256c32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x351b59[_0x256c32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc41b1d,_0xc41b1d+0x2));_0x54ed0d>=_0x2a029d[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54ed0d-=_0x2a029d[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3647fe+=_0x2a029d[_0x54ed0d];}return _0x3647fe;}function _0x1b4caf(){const _0x91a8f1=_0x4cac36[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e]));if(0x3!=_0x91a8f1[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x92d231(_0x91a8f1[0x1]);function _0x92d231(_0x59341c){const _0x54623d=_0x31dbe7(_0x59341c);return _0x54623d&&_0x245c3e()?_0x54623d:null;function _0x245c3e(){const _0x4ff086=_0x54623d[_0x256c32([0x6a,0x74,0x69])],_0x193c09=window[_0x256c32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ff086[_0x256c32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ff086[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e45fb={..._0x54623d,[_0x256c32([0x6a,0x74,0x69])]:_0x4ff086[_0x256c32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ff086[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e45fb[_0x256c32([0x76,0x63])],_0x38bbf6(_0x3e45fb)==_0x193c09;}}}async function _0x29808b(){let _0x1855c3=!0x0;try{const _0x1bdac3=_0x4cac36[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e])),[_0x219de1,_0x2a7f82,_0xe94ad0]=_0x1bdac3;return _0xd3a2cf(_0x219de1),await _0x1c081e(_0x219de1,_0x2a7f82,_0xe94ad0),_0x1855c3;}catch(_0x5225cc){return!0x1;}function _0xd3a2cf(_0x4cb7c4){const _0x11485e=_0x31dbe7(_0x4cb7c4);_0x11485e&&_0x11485e[_0x256c32([0x61,0x6c,0x67])]==_0x256c32([0x45,0x53,0x32,0x35,0x36])||(_0x1855c3=!0x1);}async function _0x1c081e(_0x3a70cc,_0x38e57e,_0x2a4e46){const _0x52e314=window[_0x256c32([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x256c32([0x66,0x72,0x6f,0x6d])](_0x540e7d(_0x2a4e46),_0x5d6c4c=>_0x5d6c4c[_0x256c32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ad120=new window[(_0x256c32([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x256c32([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a70cc+_0x256c32([0x2e])+_0x38e57e),_0x20eb3c=window[_0x256c32([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x256c32([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20eb3c)return;const _0x51d627=await _0x20eb3c[_0x256c32([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x256c32([0x6a,0x77,0x6b]),_0x1ea037,{[_0x256c32([0x6e,0x61,0x6d,0x65])]:_0x256c32([0x45,0x43,0x44,0x53,0x41]),[_0x256c32([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x256c32([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x256c32([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20eb3c[_0x256c32([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x256c32([0x6e,0x61,0x6d,0x65])]:_0x256c32([0x45,0x43,0x44,0x53,0x41]),[_0x256c32([0x68,0x61,0x73,0x68])]:{[_0x256c32([0x6e,0x61,0x6d,0x65])]:_0x256c32([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51d627,_0x52e314,_0x3ad120)||(_0x1855c3=!0x1);}}function _0x31dbe7(_0x36935c){return _0x36935c[_0x256c32([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x256c32([0x65,0x79]))?JSON[_0x256c32([0x70,0x61,0x72,0x73,0x65])](_0x540e7d(_0x36935c)):null;}function _0x540e7d(_0x6e807c){return window[_0x256c32([0x61,0x74,0x6f,0x62])](_0x6e807c[_0x256c32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x256c32([0x2b]))[_0x256c32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x256c32([0x2f])));}function _0x38bbf6(_0x1f9f76){let _0x18f3fb=0x1505;function _0x59158a(_0x25ab1c){for(let _0x46a863=0x0;_0x46a863<_0x25ab1c[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46a863++){const _0x14ab79=_0x25ab1c[_0x256c32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46a863);_0x18f3fb=(_0x18f3fb<<0x5)+_0x18f3fb+_0x14ab79,_0x18f3fb&=_0x18f3fb;}}function _0x44a6fc(_0x5d8956){Array[_0x256c32([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d8956)?_0x5d8956[_0x256c32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44a6fc):_0x5d8956&&typeof _0x5d8956==_0x256c32([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x256c32([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d8956)[_0x256c32([0x73,0x6f,0x72,0x74])]()[_0x256c32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8cfbb5,_0x176d90])=>{_0x59158a(_0x8cfbb5),_0x44a6fc(_0x176d90);}):_0x59158a(window[_0x256c32([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d8956));}return _0x44a6fc(_0x1f9f76),_0x18f3fb>>>0x0;}function _0x587e8d(_0x28cd05){return _0x28cd05[_0x256c32([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x256c32([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x256c32([0x30]));}function _0x192947(_0x2d5a12){return _0x2d5a12[_0x256c32([0x73,0x70,0x6c,0x69,0x74])]('')[_0x256c32([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x256c32([0x6a,0x6f,0x69,0x6e])]('');}function _0x9fdc60(_0xdcd39f){return _0x4f953c[_0x256c32([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x256c32([0x68,0x61,0x73])](_0xdcd39f);}function _0xdc01fd(_0x1bcdb4){return _0x4f953c[_0x256c32([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x256c32([0x67,0x65,0x74])](_0x1bcdb4);}function _0x16c3bb(){}function _0x256c32(_0x2baa5d){return _0x2baa5d['map'](_0x332dff=>String['fromCharCode'](_0x332dff))['join']('');}_0x5f3bf5(await _0x239d44());}(this);}set['adapter'](_0x1befb2){if(this['_adapter'])throw new _0x1c235c('track-changes-adapter-already-set',this);this['_adapter']=_0x1befb2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x516101=!0x1,toJSON:_0x500bea=!0x1}={}){const _0x64104d=[];for(const _0x151136 of this['_suggestions']['values']())_0x516101&&!_0x151136['isInContent']||_0x64104d['push'](_0x151136);return _0x500bea?_0x64104d['map'](_0x5d7b08=>_0x5d7b08['toJSON']()):_0x64104d;}['getSuggestion'](_0x45cbe3){const _0xabb30e=this['_suggestions']['get'](_0x45cbe3);if(!_0xabb30e)throw new _0x1c235c('track-changes-suggestion-not-found',this);return _0xabb30e;}['hasSuggestion'](_0x3263d2){return this['_suggestions']['has'](_0x3263d2);}['addSuggestionData'](_0x1ccc86){const {authorId:_0x344261,id:_0x287025,attributes:_0x3d6d58}=_0x1ccc86,[_0x1d750d,_0x4c6d53]=_0x1ccc86['type']['split'](':'),_0x246b7b=this['_suggestions']['get'](_0x287025)||this['_createSuggestion'](_0x1d750d,_0x4c6d53,_0x287025,_0x344261,_0x3d6d58);if(this['_addThreadToSuggestion'](_0x246b7b),this['_checkSuggestionCorrectness'](_0x246b7b,_0x1d750d,_0x4c6d53||null,_0x344261),_0x246b7b['createdAt']=_0x1ccc86['createdAt'],_0x246b7b['_isDataLoaded']=!0x0,_0x3d6d58&&_0x3d6d58['@external']){const _0x3c0ea4=_0x3d6d58['@external'],_0x2705e3=this['_getExternalAuthor'](_0x3c0ea4['authorName']);_0x246b7b['authoredAt']=_0x3c0ea4['createdAt'],_0x246b7b['author']=_0x2705e3,_0x246b7b['isExternal']=!0x0;}else _0x246b7b['authoredAt']=_0x1ccc86['createdAt'];switch(_0x1ccc86['data']&&(_0x246b7b['data']=_0x1ccc86['data']),_0x1ccc86['attributes']&&(_0x246b7b['attributes']=_0x1ccc86['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x246b7b['_saved']=!0x0),this['_suggestionState']['get'](_0x246b7b)){case'notReady':this['_suggestionState']['set'](_0x246b7b,'dataReady');break;case'markerReady':_0x246b7b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x246b7b])),this['_refreshSuggestionsChain'](new Set([_0x246b7b])),this['_suggestionState']['set'](_0x246b7b,'ready'),this['fire']('suggestionLoaded',_0x246b7b)):this['_suggestionState']['set'](_0x246b7b,'removed');}return _0x246b7b;}['acceptSuggestion'](_0x4f889b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x321958 of _0x4f889b['getAllAdjacentSuggestions']())_0x321958['accept']();});});}['discardSuggestion'](_0x394aba){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4cc1e1 of _0x394aba['getAllAdjacentSuggestions']())_0x4cc1e1['discard']();});});}['enableCommand'](_0x3c5a58,_0x20123f){const _0x1e573b=this['editor']['commands']['get'](_0x3c5a58);if(!_0x1e573b)throw new _0x1c235c('track-changes-command-not-found',this,{'commandName':_0x3c5a58});if(this['_enabledCommands']['has'](_0x1e573b))throw new _0x1c235c('track-changes-enable-command-twice',this,{'commandName':_0x3c5a58});this['_enabledCommands']['add'](_0x1e573b),_0x20123f&&_0x1e573b['on']('execute',(_0x1feeee,_0x49d519)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x49d519['length']>0x0&&_0x49d519[_0x49d519['length']-0x1]&&_0x49d519[_0x49d519['length']-0x1]['forceDefaultExecution']?_0x49d519['pop']():(_0x1feeee['return']=_0x20123f((..._0x2046c7)=>_0x1e573b['execute'](..._0x2046c7,{'forceDefaultExecution':!0x0}),..._0x49d519),_0x1feeee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3c94f0){let _0x4f2985,_0x375750;const _0x4d3478=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f2985=_0x3c94f0();}catch(_0x478ee3){_0x375750=_0x478ee3;}return _0x4d3478||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x375750&&_0x1c235c['rethrowUnexpectedError'](_0x375750,this),_0x4f2985;}['markInsertion'](_0x92b562,_0x1d0acc=null,_0xdc1b84={}){if(_0x92b562['isCollapsed'])return null;const _0x387640=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48903f,meta:_0xc6723d}of this['_findSuggestions'](_0x92b562,'insertion'))if(_0xc6723d['isOwn']){if(!_0xc6723d['isNextTo']){if(_0xc6723d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x48903f,_0xdc1b84))continue;return _0x48903f;}if(Qt(_0x48903f,_0xdc1b84))return _0x48903f;this['_breakSuggestionMarker'](_0x48903f,_0x92b562['start'],_0x92b562['end']);break;}if(_0x1d0acc==_0x48903f['subType']&&Qt(_0x48903f,_0xdc1b84)){const _0x3aa21d=_0x48903f['getFirstRange']();return _0x3aa21d['start']['isEqual'](_0x92b562['end'])?this['_setSuggestionRange'](_0x48903f,this['_model']['createRange'](_0x92b562['start'],_0x3aa21d['end'])):this['_setSuggestionRange'](_0x48903f,this['_model']['createRange'](_0x3aa21d['start'],_0x92b562['end'])),_0x48903f;}}const _0x5c212b=_0x502eb1(),_0x47d496=_0x387640['id'],_0x4c0339=_0x1d0acc?'insertion:'+_0x1d0acc:'insertion',_0x3706a5=this['_setSuggestionData']({'id':_0x5c212b,'type':_0x4c0339,'createdAt':new Date(),'authorId':_0x47d496,'attributes':_0xdc1b84});return this['_addSuggestionMarker'](_0x4c0339,_0x5c212b,_0x47d496,_0x92b562),_0x3706a5;}['markMultiRangeInsertion'](_0x863b0e,_0x210b7c='multi',_0x3f1e0f={}){const _0x3b37bf=this['editor']['plugins']['get']('Users')['me'],_0x4ef97e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x210b7c,'join');for(const _0x5ae239 of this['getSuggestions']())if(_0x5ae239['author']['id']==_0x3b37bf['id']&&'insertion'==_0x5ae239['type']&&_0x5ae239['subType']==_0x210b7c&&Qt(_0x5ae239,_0x3f1e0f)&&(_0x4ef97e(_0x5ae239['getRanges'](),_0x863b0e)||_0x4ef97e(_0x863b0e,_0x5ae239['getRanges']()))){for(const _0x181daa of _0x863b0e)_0x5ae239['addRange'](_0x181daa);return _0x5ae239;}for(const {suggestion:_0x5b3c15,meta:_0x3fd696}of this['_findSuggestions'](_0x863b0e,'insertion')){if(!_0x3fd696['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3fd696['containsRangeInObject'])continue;if(!Qt(_0x5b3c15,_0x3f1e0f))continue;let _0xfcff06=!0x0;for(const _0x1da0cd of _0x5b3c15['getRanges']())for(const _0x5073cf of _0x863b0e)if(!_0x1da0cd['containsRange'](_0x5073cf)){_0xfcff06=!0x1;break;}if(_0xfcff06)return _0x5b3c15;}const _0x4e3454=_0x502eb1(),_0x55bbe5=_0x3b37bf['id'],_0x3bcac7='insertion:'+_0x210b7c,_0x3bbaea=this['_setSuggestionData']({'id':_0x4e3454,'type':_0x3bcac7,'createdAt':new Date(),'authorId':_0x55bbe5,'attributes':_0x3f1e0f});for(const _0x59e289 of _0x863b0e)this['_addSuggestionMarker'](_0x3bcac7,_0x4e3454,_0x55bbe5,_0x59e289,u['getMultiRangeId']());return _0x3bbaea;}['markInlineFormat'](_0x16f9ef,_0x48523c,_0x845f05=null,_0x57d9d2={}){if(_0x845f05=_0x845f05||Jt(_0x48523c),_0x16f9ef['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51208a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x845f05,'accept');return this['forceDefaultExecution'](()=>_0x51208a([_0x16f9ef],_0x48523c,_0x57d9d2)),null;}const _0xd802c8=this['editor']['plugins']['get']('Users')['me'],_0x3abfa8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x420e9b,meta:_0x439527}of this['_findSuggestions'](_0x16f9ef,'insertion'))_0x439527['isOwn']&&!_0x439527['isInsideObject']&&_0x3abfa8['push'](..._0x420e9b['getRanges']());}const _0x209df1=function(_0x50205f,_0x38f4c7){const _0x5214e6=[];for(const _0x5a1b9d of _0x38f4c7){const _0x91b712=_0x50205f['getIntersection'](_0x5a1b9d);_0x91b712&&_0x5214e6['push'](_0x91b712);}return _0x5214e6;}(_0x16f9ef,_0x3abfa8),_0x4a37f0=function(_0x325e1f,_0x15351c){const _0x12c79c=[_0x325e1f];for(const _0x57ed2b of _0x15351c){let _0x42b524=0x0;for(;_0x42b524<_0x12c79c['length'];){const _0x224a3c=_0x12c79c[_0x42b524]['getDifference'](_0x57ed2b);_0x12c79c['splice'](_0x42b524,0x1,..._0x224a3c),_0x42b524+=_0x224a3c['length'];}}return _0x12c79c;}(_0x16f9ef,_0x3abfa8);_0x209df1['length']&&this['_model']['change'](()=>{for(const _0x1b3a7c of _0x209df1){const _0x1b117a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x845f05,'accept');this['forceDefaultExecution'](()=>_0x1b117a([_0x1b3a7c],_0x48523c,_0x57d9d2));}});for(const _0x3e7467 of _0x4a37f0){let _0x5172bf=null,_0x3ef69b=_0x3e7467['start'],_0x84e4ba=_0x3e7467['end'];for(const {suggestion:_0x36baa0,meta:_0x20084a}of this['_findSuggestions'](_0x3e7467,'formatInline')){if(!_0x20084a['isOwn'])continue;if(_0x36baa0['subType']!=_0x845f05)continue;if(!Qt(_0x36baa0,_0x57d9d2))continue;const _0x25a2c9=_0x36baa0['getFirstRange']();if(_0x25a2c9['containsRange'](_0x3e7467,!0x0))return null;_0x3ef69b=_0x3ef69b['isBefore'](_0x25a2c9['start'])?_0x3ef69b:_0x25a2c9['start'],_0x84e4ba=_0x84e4ba['isAfter'](_0x25a2c9['end'])?_0x84e4ba:_0x25a2c9['end'],_0x5172bf?_0x25a2c9['start']['isBefore'](_0x5172bf['getFirstRange']()['start'])?(_0x5172bf['removeMarkers'](),_0x5172bf=_0x36baa0):_0x36baa0['removeMarkers']():_0x5172bf=_0x36baa0;}const _0x3021f5=this['_model']['createRange'](_0x3ef69b,_0x84e4ba);if(_0x5172bf)this['_setSuggestionRange'](_0x5172bf,_0x3021f5);else{const _0x320cd7=_0x502eb1(),_0x3bd951=_0xd802c8['id'];this['_setSuggestionData']({'id':_0x320cd7,'type':'formatInline:'+_0x845f05,'data':_0x48523c,'createdAt':new Date(),'authorId':_0x3bd951,'attributes':_0x57d9d2}),this['_addSuggestionMarker']('formatInline:'+_0x845f05,_0x320cd7,_0x3bd951,_0x3021f5);}}return null;}['markBlockFormat'](_0x5a8a01,_0x2bcafc,_0x211dc3=[],_0x3085e6=null,_0x20fb1d={}){_0x2bcafc['formatGroupId']||(_0x2bcafc['formatGroupId']=_0x2bcafc['commandName']),_0x2bcafc['multipleBlocks']=_0x5a8a01['is']('range'),_0x3085e6=_0x3085e6||Jt(_0x2bcafc);const _0x27dfd3=_0x211dc3['map'](_0x59f034=>zt(_0x59f034,this['_model'])),_0x4cf6b4=_0x5a8a01['is']('range')?_0x5a8a01:zt(_0x5a8a01,this['_model']);if('never'===this['_trackFormatChanges']){const _0x40e65a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3085e6,'accept');return this['forceDefaultExecution'](()=>_0x40e65a([_0x4cf6b4],_0x2bcafc,_0x20fb1d)),null;}_0x27dfd3['push'](_0x4cf6b4);let _0x44f79e=!0x0;for(const _0x19cd7b of _0x27dfd3)if(!this['_rangeIsInLocalUserInsertion'](_0x19cd7b)){_0x44f79e=!0x1;break;}if(_0x44f79e&&'always'!==this['_trackFormatChanges']){const _0x2c53c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3085e6,'accept');return this['forceDefaultExecution'](()=>_0x2c53c0([_0x4cf6b4],_0x2bcafc,_0x20fb1d)),null;}let _0x4e332f=null,_0x1379b0=_0x4cf6b4['start'],_0x50e2f7=_0x4cf6b4['end'];for(const {suggestion:_0x321543,meta:_0x14ed8a}of this['_findSuggestions'](_0x4cf6b4,'formatBlock')){if(!_0x14ed8a['isOwn'])continue;if(_0x14ed8a['isNextTo']||_0x14ed8a['containsRangeInObject']||_0x14ed8a['isInsideObject'])continue;if(_0x321543['data']['formatGroupId']!=_0x2bcafc['formatGroupId'])continue;if(!Qt(_0x321543,_0x20fb1d))continue;const _0x22bc11=_0x321543['getFirstRange']();if(_0x321543['subType']==_0x3085e6){if(_0x22bc11['containsRange'](_0x4cf6b4,!0x0))return null;_0x1379b0=_0x1379b0['isBefore'](_0x22bc11['start'])?_0x1379b0:_0x22bc11['start'],_0x50e2f7=_0x50e2f7['isAfter'](_0x22bc11['end'])?_0x50e2f7:_0x22bc11['end'],_0x4e332f?_0x22bc11['start']['isBefore'](_0x4e332f['getFirstRange']()['start'])?(_0x4e332f['removeMarkers'](),_0x4e332f=_0x321543):_0x321543['removeMarkers']():_0x4e332f=_0x321543;}else{const _0x423463=_0x4cf6b4['getIntersection'](_0x22bc11);this['_cutOutSuggestionMarker'](_0x321543,_0x423463);}}const _0x593549=this['editor']['plugins']['get']('Users')['me'],_0xd79aea=_0x502eb1(),_0x4512d7=_0x593549['id'];if(_0x4e332f)return this['_setSuggestionRange'](_0x4e332f,this['_model']['createRange'](_0x1379b0,_0x50e2f7)),_0x4e332f;{const _0x438f3d=this['_setSuggestionData']({'id':_0xd79aea,'type':'formatBlock:'+_0x3085e6,'data':_0x2bcafc,'createdAt':new Date(),'authorId':_0x4512d7,'attributes':_0x20fb1d});return this['_addSuggestionMarker']('formatBlock:'+_0x3085e6,_0xd79aea,_0x4512d7,this['_model']['createRange'](_0x1379b0,_0x50e2f7)),_0x438f3d;}}['markMultiRangeBlockFormat'](_0x3fe26d,_0x1964d1,_0xd689b6=[],_0x479afb=null,_0x514c3e={}){_0x1964d1['formatGroupId']||(_0x1964d1['formatGroupId']=_0x1964d1['commandName']);const _0x3c4f94=_0x3fe26d[0x0];_0x1964d1['multipleBlocks']=_0x3c4f94['is']('range'),_0x479afb=_0x479afb||Jt(_0x1964d1);const _0x45ac0a=_0xd689b6['map'](_0x440ddb=>zt(_0x440ddb,this['_model'])),_0x469577=_0x3c4f94['is']('range')?_0x3fe26d:_0x3fe26d['map'](_0x351e20=>zt(_0x351e20,this['_model']));if('never'===this['_trackFormatChanges']){const _0x15f26f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479afb,'accept');return this['forceDefaultExecution'](()=>_0x15f26f(_0x469577,_0x1964d1,_0x514c3e)),null;}_0x45ac0a['push'](..._0x469577);let _0x2ebcd0=!0x0;for(const _0x39c08b of _0x45ac0a)if(!this['_rangeIsInLocalUserInsertion'](_0x39c08b)){_0x2ebcd0=!0x1;break;}if(_0x2ebcd0&&'always'!==this['_trackFormatChanges']){const _0x6b32b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479afb,'accept');return this['forceDefaultExecution'](()=>_0x6b32b1(_0x469577,_0x1964d1,_0x514c3e)),null;}const _0x3585de=this['editor']['plugins']['get']('Users')['me'];for(const _0x4eb221 of this['getSuggestions']()){if(_0x4eb221['author']['id']!=_0x3585de['id'])continue;if('formatBlock'!=_0x4eb221['type']||_0x4eb221['data']['formatGroupId']!=_0x1964d1['formatGroupId'])continue;if(!Qt(_0x4eb221,_0x514c3e))continue;const _0x311743=_0x4eb221['subType']==_0x479afb;for(let _0x4d1a4f=0x0;_0x4d1a4f<_0x469577['length'];_0x4d1a4f++){const _0x52b845=_0x469577[_0x4d1a4f];for(const _0xaae552 of _0x4eb221['getMarkers']()){const _0x35d036=_0xaae552['getRange']();if(_0x52b845['isEqual'](_0x35d036)){_0x311743?(_0x469577['splice'](_0x4d1a4f,0x1),_0x4d1a4f--):_0x4eb221['removeMarker'](_0xaae552['name']);break;}}}}if(0x0==_0x469577['length'])return null;const _0x43161c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479afb,'join');for(const _0x2a0af4 of this['getSuggestions']())if(_0x2a0af4['author']['id']==_0x3585de['id']&&'formatBlock'==_0x2a0af4['type']&&_0x2a0af4['data']['formatGroupId']==_0x1964d1['formatGroupId']&&_0x2a0af4['subType']==_0x479afb&&Qt(_0x2a0af4,_0x514c3e)&&(_0x43161c(_0x2a0af4['getRanges'](),_0x469577)||_0x43161c(_0x469577,_0x2a0af4['getRanges']()))){for(const _0x197c3f of _0x469577)_0x2a0af4['addRange'](_0x197c3f);return _0x2a0af4;}const _0x55e530=_0x502eb1(),_0x43179d=_0x3585de['id'],_0x2e2864='formatBlock:'+_0x479afb,_0x1da295=this['_setSuggestionData']({'id':_0x55e530,'type':_0x2e2864,'data':_0x1964d1,'createdAt':new Date(),'authorId':_0x43179d,'attributes':_0x514c3e});for(const _0xb19595 of _0x469577)this['_addSuggestionMarker'](_0x2e2864,_0x55e530,_0x43179d,_0xb19595,u['getMultiRangeId']());return _0x1da295;}['markDeletion'](_0x1d3e72,_0x448f09=null,_0xb2eb3c={}){if(_0x1d3e72['isCollapsed'])return null;const _0x4493b2=this['editor']['plugins']['get']('Users')['me'],_0x30f9e6=new _0x1200ae(_0x1d3e72['start'],_0x1d3e72['end']);for(const {suggestion:_0x426d3a,meta:_0x7f4f47}of this['_findSuggestions'](_0x30f9e6,'insertion'))if(_0x7f4f47['isOwn']&&!_0x7f4f47['isNextTo']){if(_0x426d3a['isMultiRange']){const _0x45b20c=_0x426d3a['getRanges']()['filter'](_0x5156db=>'$graveyard'!=_0x5156db['root']['rootName']);_0x45b20c['every'](_0x5418e1=>_0x30f9e6['containsRange'](_0x5418e1,!0x0))&&_0x426d3a['discard']();if(_0x45b20c['some'](_0x5779f2=>_0x5779f2['containsRange'](_0x30f9e6,!0x0))){const _0x5577ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x448f09,'accept');return this['forceDefaultExecution'](()=>_0x5577ce([_0x30f9e6],null,_0xb2eb3c)),null;}}else{const _0x2fa9fd=_0x30f9e6['getIntersection'](_0x426d3a['getFirstRange']());null!==_0x2fa9fd&&_0x426d3a['_onDiscard']([_0x2fa9fd],null,_0xb2eb3c);}}if(_0x30f9e6['detach'](),_0x30f9e6['isCollapsed']||'$graveyard'==_0x30f9e6['root']['rootName'])return null;let _0x2353c9=null,_0x132c4f=_0x30f9e6['start'],_0xd27970=_0x30f9e6['end'];const _0x56e862=this['_findSuggestions'](_0x30f9e6,'deletion');for(const {suggestion:_0x387e0e,meta:_0x45e767}of _0x56e862){const _0x288945=this['_model']['createRange'](_0x132c4f,_0xd27970);if(_0x45e767['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45e767['containsRangeInObject']&&!_0x45e767['isInsideObject'])){if(_0x387e0e['isMultiRange']){if(!Qt(_0x387e0e,_0xb2eb3c))continue;let _0x453898=!0x0;for(const _0x5e89ab of _0x387e0e['getRanges']()){if(_0x5e89ab['containsRange'](_0x288945,!0x0))return _0x387e0e;_0x288945['containsRange'](_0x5e89ab)||(_0x453898=!0x1);}_0x453898&&_0x387e0e['discard']();}else{const _0x245d1a=_0x387e0e['getFirstRange']();if(_0x245d1a['containsRange'](_0x288945,!0x0))return _0x387e0e;if(!Qt(_0x387e0e,_0xb2eb3c)){_0x288945['containsRange'](_0x245d1a)?_0x387e0e['removeMarkers']():_0x245d1a['containsPosition'](_0x132c4f)?_0x132c4f=_0x245d1a['end']:_0x245d1a['containsPosition'](_0xd27970)&&(_0xd27970=_0x245d1a['start']);continue;}_0x132c4f=_0x132c4f['isBefore'](_0x245d1a['start'])?_0x132c4f:_0x245d1a['start'],_0xd27970=_0xd27970['isAfter'](_0x245d1a['end'])?_0xd27970:_0x245d1a['end'],_0xb2eb3c=Object['assign']({},_0x387e0e['attributes']),_0x2353c9?_0x245d1a['start']['isBefore'](_0x2353c9['getFirstRange']()['start'])?(_0x2353c9['removeMarkers'](),_0x2353c9=_0x387e0e):_0x387e0e['removeMarkers']():_0x2353c9=_0x387e0e;}}}if(_0x2353c9)return this['_setSuggestionRange'](_0x2353c9,this['_model']['createRange'](_0x132c4f,_0xd27970)),_0x2353c9;{const _0x229363=_0x502eb1(),_0x55aa2c=this['_model']['createRange'](_0x132c4f,_0xd27970),_0x3dfcbf=_0x4493b2['id'],_0x4026ce=_0x448f09?'deletion:'+_0x448f09:'deletion',_0x49ada9=this['_setSuggestionData']({'id':_0x229363,'type':_0x4026ce,'createdAt':new Date(),'authorId':_0x3dfcbf,'attributes':_0xb2eb3c});return this['_addSuggestionMarker'](_0x4026ce,_0x229363,_0x3dfcbf,_0x55aa2c),_0x49ada9;}}['markMultiRangeDeletion'](_0x2f6691,_0x318c81='multi',_0x12df4c={}){const _0x20961c=this['editor']['plugins']['get']('Users')['me'],_0x12df49=_0x2f6691['map'](_0x5d1937=>new _0x1200ae(_0x5d1937['start'],_0x5d1937['end'])),_0x2749e8=new Set();for(const {suggestion:_0x4465a5,meta:_0x2c6ecd}of this['_findSuggestions'](_0x12df49,'insertion'))_0x2c6ecd['isOwn']&&!_0x2c6ecd['isNextTo']&&_0x2749e8['add'](_0x4465a5);for(const _0x125c98 of _0x2749e8)if(_0x125c98['isMultiRange']){const _0x1f0a1d=_0x125c98['getRanges']();(!_0x125c98['attributes']||!_0x125c98['attributes']['skipNestingCheck'])&&(_0x1f0a1d['every'](_0x501b3e=>_0x12df49['some'](_0x5dead9=>_0x5dead9['containsRange'](_0x501b3e,!0x0)))&&_0x125c98['discard']());if(_0x12df49['every'](_0x49b41f=>_0x1f0a1d['some'](_0x27c059=>_0x27c059['containsRange'](_0x49b41f,!0x0)))){const _0x51282b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x318c81,'accept');return this['forceDefaultExecution'](()=>_0x51282b(_0x2f6691,null,_0x12df4c)),null;}}else{const _0x3a2f8d=_0x125c98['getFirstRange']();_0x12df49['some'](_0x1b2042=>_0x1b2042['containsRange'](_0x3a2f8d,!0x0))&&_0x125c98['discard']();if(_0x12df49['every'](_0x3b8931=>_0x3a2f8d['containsRange'](_0x3b8931,!0x0))){const _0x1be06c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x318c81,'accept');return this['forceDefaultExecution'](()=>_0x1be06c(_0x12df49,null,_0x12df4c)),null;}}const _0x25eace=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x318c81,'join');let _0xabf10=null;for(const _0xd6b60f of this['getSuggestions']())if(_0xd6b60f['author']['id']==_0x20961c['id']&&_0xd6b60f['isInContent']&&'deletion'==_0xd6b60f['type']&&_0xd6b60f['subType']==_0x318c81&&Qt(_0xd6b60f,_0x12df4c)&&(_0x25eace(_0xd6b60f['getRanges'](),_0x12df49)||_0x25eace(_0x12df49,_0xd6b60f['getRanges']()))){if(_0xabf10){if(_0xd6b60f['commentThread']&&_0xd6b60f['commentThread']['length'])continue;for(const _0x57afca of _0xd6b60f['getRanges']())_0xabf10['isIntersectingWithRange'](_0x57afca)||_0xabf10['addRange'](_0x57afca);_0xd6b60f['removeMarkers']();}else{_0xabf10=_0xd6b60f;for(const _0x4fc3b8 of _0x12df49)_0xd6b60f['isIntersectingWithRange'](_0x4fc3b8)||_0xd6b60f['addRange'](_0x4fc3b8);}}if(_0xabf10)return _0xabf10;_0x2749e8['clear']();for(const {suggestion:_0x1da3d5,meta:_0x2515f5}of this['_findSuggestions'](_0x12df49,'deletion'))_0x2515f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2515f5['containsRangeInObject']&&!_0x2515f5['isInsideObject'])&&Qt(_0x1da3d5,_0x12df4c)&&_0x2749e8['add'](_0x1da3d5);for(const _0x50203a of _0x2749e8){const _0x3fac7d=_0x50203a['getRanges']();if(!_0x12df4c||!_0x12df4c['skipNestingCheck']){if(_0x12df49['every'](_0x5fb903=>_0x3fac7d['some'](_0x48517b=>_0x48517b['containsRange'](_0x5fb903,!0x0))))return _0x50203a;}(!_0x50203a['attributes']||!_0x50203a['attributes']['skipNestingCheck'])&&(_0x3fac7d['every'](_0x4829ec=>_0x12df49['some'](_0x3595d4=>_0x3595d4['containsRange'](_0x4829ec,!0x0)))&&_0x50203a['discard']());}const _0x443af5=_0x502eb1(),_0x331b4b=_0x20961c['id'],_0x23b50f='deletion:'+_0x318c81,_0x4db052=this['_setSuggestionData']({'id':_0x443af5,'type':_0x23b50f,'createdAt':new Date(),'authorId':_0x331b4b,'attributes':_0x12df4c});for(const _0x405646 of _0x12df49)_0x405646['detach'](),_0x405646['isCollapsed']||'$graveyard'==_0x405646['root']['rootName']||this['_addSuggestionMarker'](_0x23b50f,_0x443af5,_0x331b4b,_0x405646,u['getMultiRangeId']());return _0x4db052;}['markAttributeChange'](_0x4ea9ce,_0xef98b,_0x1f7ff5,_0x2512be,_0x1c4388){if(_0x4ea9ce['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x39e0d9=this['editor']['plugins']['get']('Users')['me']['id'],_0x4487d5=Array['from'](this['_suggestions']['values']())['filter'](_0x2e290f=>'attribute'==_0x2e290f['type']&&_0x2e290f['data']['key']==_0xef98b&&_0x2e290f['isIntersectingWithRange'](_0x4ea9ce));if('default'===this['_trackFormatChanges']){const _0x532e35=this['_findSuggestions'](_0x4ea9ce,'insertion')['filter'](({meta:_0xf0b8cf})=>_0xf0b8cf['isOwn']&&!_0xf0b8cf['isInsideObject']&&!_0xf0b8cf['isNextTo'])['map'](({suggestion:_0x150567})=>_0x150567);_0x4487d5['unshift'](..._0x532e35);}const _0x1d622c=new Map([[_0x4ea9ce,_0x1f7ff5]]);for(const _0x161765 of _0x4487d5){const _0x30b624='attribute'==_0x161765['type']?_0x161765['data']['oldValue']:void 0x0,_0x1b3a05=_0x161765['getFirstRange'](),_0x4b1fef=Array['from'](_0x1d622c['keys']())['find'](_0x5917f0=>_0x5917f0['isIntersecting'](_0x1b3a05));if(!_0x4b1fef)continue;const _0x1e121c=_0x4b1fef['getDifference'](_0x1b3a05);this['_isBlockAttribute'](_0xef98b)&&'insertion'==_0x161765['type']&&0x0!=_0x1e121c['length']||(_0x1d622c['delete'](_0x4b1fef),_0x1e121c['forEach'](_0x1274d0=>{_0x1d622c['set'](_0x1274d0,_0x1f7ff5);}),'insertion'!=_0x161765['type']&&_0x30b624!=_0x2512be&&_0x1d622c['set'](_0x4b1fef['getIntersection'](_0x1b3a05),_0x30b624));}const _0x2c5832=[];for(const [_0x24b8e0,_0x2c1dca]of _0x1d622c){const _0x2e17a1=_0x502eb1(),_0x702368={'key':_0xef98b,'oldValue':_0x2c1dca,'newValue':_0x2512be};_0xef98b['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':_0xef98b});const _0x340600=('attribute:'+(_0xef98b+'|'+Jt({'newValue':_0x2512be})))['substring'](0x0,0x3c),_0x47c294=this['_setSuggestionData']({'id':_0x2e17a1,'type':_0x340600,'data':_0x702368,'createdAt':new Date(),'authorId':_0x39e0d9,'attributes':_0x1c4388});_0x2c5832['push'](_0x47c294),this['_addSuggestionMarker'](_0x340600,_0x2e17a1,_0x39e0d9,_0x24b8e0);}return _0x2c5832;}['enableDefaultAttributesIntegration'](_0x2bd597){this['enableCommand'](_0x2bd597,(_0x5de21e,..._0x5a764e)=>{this['_recordAttributeChanges'](()=>{_0x5de21e(..._0x5a764e);});});}['registerBlockAttribute'](_0x309dec){this['_blockAttributeKeys']['add'](_0x309dec);}['registerInlineAttribute'](_0x2ed75f){this['_inlineAttributeKeys']['add'](_0x2ed75f);}['_getAttributeKey'](_0x2a3760){return'attribute'==_0x2a3760['type']?_0x2a3760['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4e9f78,_0x78a05){const _0x2e449a=_0x4e9f78['getFirstMarker']();this['_model']['change'](_0x2283e7=>{_0x2283e7['updateMarker'](_0x2e449a,{'range':_0x78a05});});}['_addThreadToSuggestion'](_0x55480b){const _0x2669bb=_0x55480b['id'],_0x14abce=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2669bb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14abce,'threadId':_0x2669bb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c65a4=this['_commentsRepository']['getCommentThread'](_0x2669bb);_0x2c65a4['unbind']('isRemovable'),_0x2c65a4['isRemovable']=!0x1,_0x55480b['commentThread']=_0x2c65a4;}['_checkSuggestionCorrectness'](_0x427992,_0x541636,_0xa42c11,_0x3450b8){if(_0x427992['type']!=_0x541636||_0x427992['subType']!=_0xa42c11||_0x427992['creator']['id']!=_0x3450b8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c235c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x252300,_0x15b544){const _0x37dab7=_0x252300['getFirstRange']();if(_0x15b544['isEqual'](_0x37dab7))_0x252300['removeMarkers']();else{if(_0x37dab7['containsRange'](_0x15b544)){const _0x51dee3=this['_model']['createPositionAt'](_0x15b544['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x252300,this['_model']['createRange'](_0x37dab7['start'],_0x51dee3));const _0xc45520=_0x502eb1(),_0x277490=_0x252300['creator']['id'],_0x116dce=_0x252300['type']+':'+_0x252300['subType'];this['_setSuggestionData']({'id':_0xc45520,'type':_0x116dce,'createdAt':new Date(),'authorId':_0x277490,'data':_0x252300['data'],'attributes':_0x252300['attributes']});const _0x247885=this['_model']['createPositionAt'](_0x15b544['end']['parent'],'after'),_0x1772e8=this['_model']['createRange'](_0x247885,_0x37dab7['end']);this['_addSuggestionMarker'](_0x116dce,_0xc45520,_0x277490,_0x1772e8);}else{if(_0x37dab7['containsPosition'](_0x15b544['start'])){const _0x2c95a0=this['_model']['createPositionAt'](_0x15b544['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x252300,this['_model']['createRange'](_0x37dab7['start'],_0x2c95a0));}else{const _0x52ec54=this['_model']['createPositionAt'](_0x15b544['end']['parent'],'after');this['_setSuggestionRange'](_0x252300,this['_model']['createRange'](_0x52ec54,_0x37dab7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2cc61b){for(const {suggestion:_0x15fd47,meta:_0x47a62d}of this['_findSuggestions'](_0x2cc61b,'insertion')){if(!_0x47a62d['isOwn'])continue;const _0x2d0b17=_0x15fd47['getRanges']();for(const _0x272040 of _0x2d0b17)if(!_0x2cc61b['getDifference'](_0x272040)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd9968e){const _0xad975b=this['editor']['plugins']['get']('Users')['getUser'](_0xd9968e);if(!_0xad975b)throw new _0x1c235c('track-changes-user-not-found',this);return _0xad975b;}['_getExternalAuthor'](_0x129bce){const _0x3124cc=this['editor']['plugins']['get']('Users'),_0x5e7a73=_0x2dc0b9('external:'+_0x129bce),_0x31fd86=_0x3124cc['getUser'](_0x5e7a73);return _0x31fd86||_0x3124cc['addUser']({'id':_0x5e7a73,'name':_0x129bce});}['_createSuggestion'](_0x2f187d,_0x420206,_0x1ac0ab,_0x4b2de2,_0x46774e){const _0x3f1491=this['_getAuthorFromId'](_0x4b2de2),_0xe516c3=this['_suggestionFactory']['buildSuggestion'](_0x2f187d,_0x420206,_0x1ac0ab,_0x3f1491,_0x46774e,_0x155eeb=>{this['_updateSuggestionData'](_0x1ac0ab,{'attributes':_0x155eeb});const _0x53fff4=this['getSuggestion'](_0x1ac0ab);this['_joinWithAdjacentSuggestions'](new Set([_0x53fff4])),this['_refreshSuggestionsChain'](new Set([_0x53fff4]));});return this['listenTo'](_0xe516c3,'accept',()=>{this['_updateSuggestionData'](_0x1ac0ab,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xe516c3,'discard',()=>{this['_updateSuggestionData'](_0x1ac0ab,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ac0ab,_0xe516c3),this['_suggestionState']['set'](_0xe516c3,'notReady'),_0xe516c3;}['_splitMarkerName'](_0x3386e7){const _0x2e9ac2=_0x3386e7['split'](':');return{'group':_0x2e9ac2[0x0],'type':_0x2e9ac2[0x1],'subType':_0x2e9ac2['length']>=0x5?_0x2e9ac2[0x2]:null,'id':_0x2e9ac2['length']<0x5?_0x2e9ac2[0x2]:_0x2e9ac2[0x3],'authorId':_0x2e9ac2['length']<0x5?_0x2e9ac2[0x3]:_0x2e9ac2[0x4],'markerCount':0x6==_0x2e9ac2['length']?_0x2e9ac2[0x5]:null};}['_breakSuggestionMarker'](_0x54126c,_0x1ab184,_0x38dd1d){const _0x11657a=_0x54126c['getFirstRange'](),_0x1c2fd6=_0x11657a['start'],_0x268bff=_0x11657a['end'];this['_setSuggestionRange'](_0x54126c,this['_model']['createRange'](_0x1c2fd6,_0x1ab184));const _0x26733d=_0x502eb1(),_0x472efc=_0x54126c['creator']['id'],_0x4bd6f9=_0x54126c['type']+(_0x54126c['subType']?':'+_0x54126c['subType']:'');this['_setSuggestionData']({'id':_0x26733d,'type':_0x4bd6f9,'createdAt':new Date(),'authorId':_0x472efc,'originalSuggestionId':_0x54126c['id'],'attributes':_0x54126c['attributes'],'data':_0x54126c['data']});const _0x217a0c=this['_getAttributeKey'](_0x54126c);('formatBlock'==_0x54126c['type']||_0x217a0c&&this['_isBlockAttribute'](_0x217a0c))&&(_0x38dd1d=this['_model']['createPositionBefore'](_0x38dd1d['parent'])),this['_addSuggestionMarker'](_0x4bd6f9,_0x26733d,_0x472efc,this['_model']['createRange'](_0x38dd1d,_0x268bff));}['_findSuggestions'](_0xee5cb8,_0x21baa0=null){const _0x26d301=[],_0x463e8f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xee5cb8)||(_0xee5cb8=[_0xee5cb8]);for(const _0x104eb6 of this['getSuggestions']()){if(!_0x104eb6['isInContent'])continue;if(_0x21baa0&&_0x104eb6['type']!=_0x21baa0)continue;let _0x2503ce=!0x1;for(const _0x2a71f9 of _0x104eb6['getRanges']()){for(const _0x2a0f2c of _0xee5cb8){const _0x432487=_0x2a0f2c['start']['isEqual'](_0x2a71f9['end'])||_0x2a0f2c['end']['isEqual'](_0x2a71f9['start']);if(_0x432487||_0x2a0f2c['getIntersection'](_0x2a71f9)){const _0x5b7de7=_0x2a0f2c['containsRange'](_0x2a71f9)&&Gt(this['_model']['schema'],_0x2a71f9['start'],_0x2a0f2c),_0x11e6ab=_0x2a71f9['containsRange'](_0x2a0f2c)&&Gt(this['_model']['schema'],_0x2a0f2c['start'],_0x2a71f9);_0x26d301['push']({'suggestion':_0x104eb6,'meta':{'isOwn':_0x463e8f==_0x104eb6['author'],'isNextTo':_0x432487,'isInsideObject':_0x5b7de7,'containsRangeInObject':_0x11e6ab}}),_0x2503ce=!0x0;break;}}if(_0x2503ce)break;}}return _0x26d301;}['_addSuggestionMarker'](_0x10d939,_0x45f5a4,_0x4a5b96,_0x24fed9,_0x16113a){this['_model']['change'](_0x490541=>{let _0x3919f0='suggestion:'+_0x10d939+':'+_0x45f5a4+':'+_0x4a5b96;_0x16113a&&(_0x3919f0=_0x3919f0+':'+_0x16113a),_0x490541['addMarker'](_0x3919f0,{'range':_0x24fed9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x534bf8){const _0x4aa0ec=_0x534bf8['previous'],_0x501ea0=_0x534bf8['next'];_0x534bf8['previous']=null,_0x534bf8['next']=null,null!=_0x4aa0ec&&_0x4aa0ec['next']==_0x534bf8&&(_0x4aa0ec['next']=_0x501ea0),null!=_0x501ea0&&_0x501ea0['previous']==_0x534bf8&&(_0x501ea0['previous']=_0x4aa0ec),'ready'==this['_suggestionState']['get'](_0x534bf8)&&(this['_suggestionState']['set'](_0x534bf8,'removed'),this['fire']('suggestionUnloaded',_0x534bf8,_0x4aa0ec,_0x501ea0));}['_setSuggestionData'](_0x2fcb3a){const _0x51b97d=_0x2fcb3a['id'],_0x1d8137=this['addSuggestionData'](_0x2fcb3a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1df9b3=this['editor']['plugins']['get']('PendingActions'),_0x2e9cb8=_0x1d8137['hasComments'],_0x3c0261=_0x1d8137['subType']?_0x1d8137['type']+':'+_0x1d8137['subType']:_0x1d8137['type'],_0x117540=this['editor']['locale'],_0x4adb70=_0x1df9b3['add'](o(_0x117540,'PENDING_ACTION_SUGGESTION')),_0x12f004={'id':_0x51b97d,'type':_0x3c0261,'hasComments':_0x2e9cb8,'data':_0x2fcb3a['data']||null,'originalSuggestionId':_0x2fcb3a['originalSuggestionId']||null,'attributes':_0x1d8137['attributes']};this['_adapter']['addSuggestion'](_0x12f004)['then'](_0x3db7e1=>{_0x1d8137['_saved']=!0x0,_0x1df9b3['remove'](_0x4adb70),_0x3db7e1&&_0x3db7e1['createdAt']&&(this['_suggestions']['get'](_0x51b97d)['createdAt']=_0x3db7e1['createdAt']);})['catch'](_0x1674b1=>{throw _0x5db013('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1d8137['discard']();}),_0x1d8137['stopListening'](),this['_suggestions']['delete'](_0x1d8137['id']),this['_suggestionState']['delete'](_0x1d8137),_0x1674b1;});}return _0x1d8137;}['_isBlockAttribute'](_0x52c441){return this['_blockAttributeKeys']['has'](_0x52c441);}['_updateSuggestionData'](_0x182c5d,_0x3512ff){const _0x3412f3=this['editor']['plugins']['get']('PendingActions'),_0x37b44d=this['getSuggestion'](_0x182c5d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37b44d['_saved']){const _0xc48118=_0x3412f3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x182c5d,_0x3512ff)['then'](()=>{_0x3412f3['remove'](_0xc48118);});}else _0x37b44d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x182c5d,_0x3512ff);});}}['_getSuggestionData'](_0x3c4e4b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c235c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3c4e4b);}['_handleNewSuggestionMarker'](_0xd8a840){const {id:_0x19d3a1,type:_0x582de4,subType:_0x32dfb2,authorId:_0x3ccc3d}=this['_splitMarkerName'](_0xd8a840),_0x4aa858=this['_suggestions']['get'](_0x19d3a1)||this['_createSuggestion'](_0x582de4,_0x32dfb2,_0x19d3a1,_0x3ccc3d,{});switch(this['_checkSuggestionCorrectness'](_0x4aa858,_0x582de4,_0x32dfb2,_0x3ccc3d),this['_suggestionState']['get'](_0x4aa858)){case'notReady':this['_getSuggestionData'](_0x19d3a1)['then'](_0x2f1b0a=>{let _0x384e23=Promise['resolve']();_0x2f1b0a['hasComments']&&(_0x384e23=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x19d3a1})),_0x384e23['then'](()=>{this['addSuggestionData'](_0x2f1b0a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4aa858,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x19d3a1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4aa858,'ready'),this['fire']('suggestionLoaded',_0x4aa858);break;case'ready':this['fire']('suggestionChanged',_0x4aa858);}return _0x4aa858['addMarkerName'](_0xd8a840),_0x4aa858;}['_refreshSuggestionsChain'](_0x374034){const _0x5260ec=Array['from'](_0x374034),_0x3d3d02=_0x5260ec['filter'](_0x36753e=>'attribute'==_0x36753e['type']);this['_refreshAttributeSuggestionsChain'](_0x3d3d02);const _0x1cea01=_0x5260ec['filter'](_0x3bf6c4=>!_0x3bf6c4['isMultiRange']&&'attribute'!=_0x3bf6c4['type']),_0x3b2f9d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa6bafd=>!_0xa6bafd['isMultiRange']&&'attribute'!=_0xa6bafd['type']),_0xd0691c=_0x3b2f9d['filter'](_0x199969=>!_0x374034['has'](_0x199969)),_0x1e4baa=new Map(_0x3b2f9d['map'](_0x553e83=>[_0x553e83,this['_suggestionFactory']['getSuggestionCallback'](_0x553e83['type'],_0x553e83['subType'],'chain')])),_0x7b29a7=new Map(_0x3b2f9d['map'](_0x46ffa4=>[_0x46ffa4,_0x46ffa4['getFirstRange']()])),_0x1eb967=new Set(),_0x14688e=new Set();for(let _0xe33b95=0x0;_0xe33b95<_0x1cea01['length'];_0xe33b95++)_0x40fee1(_0x1cea01[_0xe33b95],_0x1cea01,_0xe33b95+0x1);for(let _0x53477a=0x0;_0x53477a<_0x1cea01['length'];_0x53477a++)_0x40fee1(_0x1cea01[_0x53477a],_0xd0691c,0x0);const _0x43f227=new Set();for(let _0x1e6909=0x0;_0x1e6909<_0x1cea01['length'];_0x1e6909++){const _0x566f2f=_0x1cea01[_0x1e6909];!_0x14688e['has'](_0x566f2f)&&_0x566f2f['previous']&&(_0x43f227['add'](_0x566f2f['previous']),_0x566f2f['previous']['next']===_0x566f2f&&(_0x566f2f['previous']['next']=null),_0x566f2f['previous']=null),!_0x1eb967['has'](_0x566f2f)&&_0x566f2f['next']&&(_0x43f227['add'](_0x566f2f['next']),_0x566f2f['next']['previous']===_0x566f2f&&(_0x566f2f['next']['previous']=null),_0x566f2f['next']=null);}function _0x40fee1(_0xf1ddda,_0xfdd047,_0x273eb1){for(let _0x31bbba=_0x273eb1;_0x31bbba<_0xfdd047['length'];_0x31bbba++){const _0x114bd5=_0xe6b333(_0xf1ddda,_0xfdd047[_0x31bbba]);_0x114bd5&&(_0x114bd5[0x0]['next']=_0x114bd5[0x1],_0x114bd5[0x1]['previous']=_0x114bd5[0x0],_0x1eb967['add'](_0x114bd5[0x0]),_0x14688e['add'](_0x114bd5[0x1]));}}function _0xe6b333(_0x10b7ef,_0x3eff02){if(_0x10b7ef['author']['id']!==_0x3eff02['author']['id'])return null;const _0x2b3eb4=_0x1e4baa['get'](_0x10b7ef)(_0x10b7ef,_0x3eff02,_0x7b29a7['get'](_0x10b7ef),_0x7b29a7['get'](_0x3eff02));if(!_0x2b3eb4)return null;return _0x1e4baa['get'](_0x3eff02)(_0x10b7ef,_0x3eff02,_0x7b29a7['get'](_0x10b7ef),_0x7b29a7['get'](_0x3eff02))?_0x2b3eb4[0x1]['commentThread']&&_0x2b3eb4[0x1]['commentThread']['length']?null:_0x2b3eb4:null;}_0x43f227['size']&&this['_refreshSuggestionsChain'](_0x43f227);}['_refreshAttributeSuggestionsChain'](_0x123007){if(0x0==_0x123007['length'])return;const _0x2a9c2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26f978=>'attribute'==_0x26f978['type']&&_0x26f978['_isDataLoaded']),_0x36fee9=[],_0x190900=new Map();for(const _0x290b03 of _0x2a9c2d){const _0x156f48=_0x2dc0b9(_0x290b03['attributes']);_0x190900['has'](_0x156f48)||(_0x190900['set'](_0x156f48,_0x36fee9['length']),_0x36fee9['push']([]));const _0x37e29f=_0x190900['get'](_0x156f48);_0x36fee9[_0x37e29f]['push'](_0x290b03);}!(function(){_0x36fee9['sort']((_0x33c1a5,_0x3a36a1)=>{const _0x48a470=_0x33c1a5[0x0]['createdAt'],_0x752af7=_0x3a36a1[0x0]['createdAt'];return _0x48a470==_0x752af7?_0x33c1a5[0x0]['attributes']['groupId']<_0x3a36a1[0x0]['attributes']['groupId']?-0x1:0x1:_0x48a470<_0x752af7?-0x1:0x1;});for(const _0x46d4f7 of _0x36fee9)_0x46d4f7['sort']((_0x21ca85,_0x303c7f)=>_0x21ca85['id']<_0x303c7f['id']?-0x1:0x1);}());for(let _0x29471b=0x0;_0x29471b<_0x36fee9['length'];_0x29471b++){if(0x0==_0x36fee9[_0x29471b]['length'])continue;const _0x1257c6=[];for(let _0x2f24cc=_0x29471b+0x1;_0x2f24cc<_0x36fee9['length'];_0x2f24cc++)0x0!=_0x36fee9[_0x2f24cc]['length']&&_0x99355d(_0x36fee9[_0x29471b],_0x36fee9[_0x2f24cc])&&_0x1257c6['push'](_0x2f24cc);for(const _0xb5c3d5 of _0x1257c6)_0x36fee9[_0x29471b]=_0x36fee9[_0x29471b]['concat'](_0x36fee9[_0xb5c3d5]),_0x36fee9[_0xb5c3d5]=[];}for(const _0x5cceb2 of _0x36fee9)for(let _0x178c4b=0x0;_0x178c4b<_0x5cceb2['length'];_0x178c4b++){const _0x54f5f3=_0x5cceb2[_0x178c4b+0x1]||null;_0x5cceb2[_0x178c4b]['next']!==_0x54f5f3&&(_0x5cceb2[_0x178c4b]['next']=_0x54f5f3);}for(const _0x50be0b of _0x36fee9)for(let _0x2976ef=0x0;_0x2976ef<_0x50be0b['length'];_0x2976ef++){const _0x1abee1=_0x50be0b[_0x2976ef-0x1]||null;_0x50be0b[_0x2976ef]['previous']!==_0x1abee1&&(_0x50be0b[_0x2976ef]['previous']=_0x1abee1);}function _0x99355d(_0x578965,_0xbce572){if(_0x578965[0x0]['attributes']['groupId']!==_0xbce572[0x0]['attributes']['groupId']&&_0x578965[0x0]['author']!==_0xbce572[0x0]['author'])return!0x1;if(!function(_0x4e07a8,_0x43c063){if(!_0x4e07a8['hasComments']&&!_0x43c063['hasComments'])return!0x0;if(_0x4e07a8['hasComments']&&_0x43c063['hasComments'])return!0x1;if(_0x4e07a8['hasComments']&&_0x43c063['createdAt']<_0x4e07a8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x43c063['hasComments']&&_0x4e07a8['createdAt']<_0x43c063['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x578965[0x0],_0xbce572[0x0]))return!0x1;const _0x10d499=Vt(_0x578965[0x0]['attributes'],'groupId'),_0x353b09=Vt(_0xbce572[0x0]['attributes'],'groupId');if(!_0x344f35(_0x10d499,_0x353b09))return!0x1;return!!_0x578965['every'](_0x31f231=>_0xbce572['some'](_0x5ba95e=>_0x31f231['getFirstRange']()['isEqual'](_0x5ba95e['getFirstRange']())))&&_0xbce572['every'](_0x48c9db=>_0x578965['some'](_0x45e575=>_0x48c9db['getFirstRange']()['isEqual'](_0x45e575['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4e7763){const _0x3d019c=Array['from'](_0x4e7763),_0x17f111=this['getSuggestions']({'skipNotAttached':!0x0}),_0x462688=_0x17f111['filter'](_0xe376dd=>!_0x4e7763['has'](_0xe376dd)),_0xe11b52=new Map(_0x3d019c['map'](_0x38e058=>[_0x38e058,this['_suggestionFactory']['getSuggestionCallback'](_0x38e058['type'],_0x38e058['subType'],'join')])),_0x5ce7d8=new Map(_0x17f111['map'](_0xc46768=>[_0xc46768,_0xc46768['getRanges']()]));for(let _0x17fe96=0x0;_0x17fe96<_0x3d019c['length'];_0x17fe96++){if(_0x3ae519(this,_0x3d019c[_0x17fe96],_0x3d019c,_0x17fe96+0x1))return!0x0;}for(let _0x376dec=0x0;_0x376dec<_0x3d019c['length'];_0x376dec++){if(_0x3ae519(this,_0x3d019c[_0x376dec],_0x462688,0x0))return!0x0;}return!0x1;function _0x3ae519(_0x1d8e86,_0x302b82,_0x1ed8bb,_0x90c9a0){for(let _0x433bd2=_0x90c9a0;_0x433bd2<_0x1ed8bb['length'];_0x433bd2++){const _0x4e88bd=_0x1ed8bb[_0x433bd2];if(_0x4e88bd['type']!==_0x302b82['type']||_0x4e88bd['author']['id']!==_0x302b82['author']['id']||_0x4e88bd['subType']!==_0x302b82['subType'])continue;if(!Wt(_0x302b82,_0x4e88bd))continue;if('attribute'==_0x302b82['type']&&_0x302b82['data']['oldValue']!=_0x4e88bd['data']['oldValue'])continue;if('attribute'==_0x302b82['type']&&_0x1d8e86['_isBlockAttribute'](_0x302b82['data']['key']))continue;if('formatBlock'==_0x302b82['type']){const _0x3f7934=_0x1d8e86['editor']['model'],_0x296ff5=_0x302b82['getContainedElement']();if(_0x296ff5&&(_0x3f7934['schema']['isObject'](_0x296ff5)||_0x3f7934['schema']['isLimit'](_0x296ff5)))continue;}const _0x442c1e=_0xe11b52['get'](_0x302b82),_0x5784c4=_0x5ce7d8['get'](_0x302b82),_0x5c7f21=_0x5ce7d8['get'](_0x4e88bd),_0x387d6e=_0x302b82['commentThread']&&_0x302b82['commentThread']['length'],_0x384d32=_0x4e88bd['commentThread']&&_0x4e88bd['commentThread']['length'];if(!_0x387d6e&&_0x442c1e(_0x5c7f21,_0x5784c4))return _0x1d8e86['_joinSuggestions'](_0x4e88bd,_0x302b82),_0x5ce7d8['delete'](_0x302b82),!0x0;if(!_0x384d32&&_0x442c1e(_0x5784c4,_0x5c7f21))return _0x1d8e86['_joinSuggestions'](_0x302b82,_0x4e88bd),_0x5ce7d8['delete'](_0x4e88bd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c1c9a,_0x1ee9af){if(_0x2c1c9a['isMultiRange']){for(const _0x1e7ddc of _0x1ee9af['getRanges']())_0x2c1c9a['addRange'](_0x1e7ddc);}else{const _0x503a73=_0x1ee9af['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c1c9a,this['_model']['createRange'](_0x2c1c9a['getFirstRange']()['start'],_0x503a73));}_0x1ee9af['removeMarkers']();}['_getMarkerAnnouncementText'](_0x83f2f7,_0x71167e,_0x1141de){const _0x58b0be=_0x83f2f7['startsWith']('format')||_0x83f2f7['startsWith']('attribute')?'FORMATTING':_0x83f2f7['toUpperCase']();return o(this['editor']['locale'],_0x71167e+'_'+_0x58b0be+'_SUGGESTION_ANNOUNCEMENT',_0x1141de);}['_initAriaMarkerChangeAnnouncements'](){const _0xebf6aa=this['editor'];if(!_0xebf6aa['ui'])return;const {ariaLiveAnnouncer:_0x5e2e44}=_0xebf6aa['ui'];_0x3f2b80(this['_model'],({left:_0x2bee9,entered:_0x5267c2})=>{for(const _0x38660c of _0x2bee9){const {group:_0x4ccc11,type:_0x40ffd1}=this['_splitMarkerName'](_0x38660c['name']);if('suggestion'===_0x4ccc11){_0x5e2e44['announce'](this['_getMarkerAnnouncementText'](_0x40ffd1,'LEAVE'));break;}}for(const _0xb6db82 of _0x5267c2){const {group:_0x44ee54,type:_0x453365}=this['_splitMarkerName'](_0xb6db82['name']);if('suggestion'===_0x44ee54){_0x5e2e44['announce'](this['_getMarkerAnnouncementText'](_0x453365,'ENTER',_0x3ec30c(_0x5f1d9f)));break;}}});}['_processAttributeChanges'](_0x5908a3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d44fd=this['editor'],_0x3f6df7=_0x5d44fd['model']['document']['differ']['getChanges']();if(0x0==_0x3f6df7['length'])return!0x1;const _0x148fc9=[],_0x4066a1=_0x3f6df7['filter'](_0x3d0d06=>'attribute'==_0x3d0d06['type']),_0x1c662c=_0x3f6df7['filter'](_0xeda7fc=>'insert'==_0xeda7fc['type']&&'$text'!=_0xeda7fc['name']),_0x19d7b2=_0x3f6df7['filter'](_0x4a0584=>'remove'==_0x4a0584['type']&&'$text'!=_0x4a0584['name']);for(const _0x233aa1 of _0x4066a1)_0x148fc9['push']({'key':_0x233aa1['attributeKey'],'newValue':_0x233aa1['attributeNewValue'],'oldValue':_0x233aa1['attributeOldValue'],'range':qt(_0x233aa1['range'],_0x5d44fd['model'])});for(const _0x515936 of _0x1c662c){const _0x2ef466=_0x19d7b2['find'](_0x50c5ce=>_0x50c5ce['position']['isEqual'](_0x515936['position']));_0x2ef466&&_0x148fc9['push']({'key':m,'newValue':_0x515936['name'],'oldValue':_0x2ef466['name'],'range':_0x5d44fd['model']['createRangeOn'](_0x515936['position']['nodeAfter'])});}return 0x0!=_0x148fc9['length']&&this['_reduceExistingSuggestions'](_0x5908a3,_0x148fc9);}['_processAttributeSuggestions'](_0x431547){let _0x4360c3=!0x1;const _0x3786c5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2bafe1=>_0x2bafe1['data']['newRange']&&_0x2bafe1['name']['startsWith']('suggestion:attribute:'));for(const _0x20f7ad of _0x3786c5){const {subType:_0x5d034b,id:_0x17ce1b}=this['_splitMarkerName'](_0x20f7ad['name']),_0x17f3fc=_0x5d034b['split']('|')[0x0];for(const _0x396529 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x396529['id']!=_0x17ce1b&&'attribute'==_0x396529['type']&&_0x396529['data']&&_0x396529['data']['key']==_0x17f3fc&&_0x396529['getFirstRange']()['isIntersecting'](_0x20f7ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x396529,_0x20f7ad['data']['newRange'],_0x431547),_0x4360c3=!0x0);}return _0x4360c3;}['_recordAttributeChanges'](_0x48b390){this['_recordAttributeSuggestions']=!0x0,_0x48b390();}['_isRegisteredAttribute'](_0x1eb960){const _0x41fdbb=this['_isBlockAttribute'](_0x1eb960),_0x3acafb=this['_inlineAttributeKeys']['has'](_0x1eb960);return _0x41fdbb||_0x3acafb;}['_reduceExistingSuggestions'](_0x44fc0b,_0x2d9feb){if(0x0==_0x2d9feb['length'])return!0x1;let _0x44f5c4=!0x1;for(const _0x5c484a of _0x2d9feb){const _0x586841=this['_findSuggestions'](_0x5c484a['range'],'attribute')['filter'](_0x571267=>!_0x571267['meta']['isNextTo'])['map'](_0x1d9a28=>_0x1d9a28['suggestion']),_0x56cb35=_0x2dc0b9({'newValue':_0x5c484a['newValue']});_0x586841['filter'](_0x34e863=>{const [_0x513e86,_0x4952f5]=_0x34e863['subType']['split']('|');return _0x513e86==_0x5c484a['key']&&_0x4952f5!=_0x56cb35;})['forEach'](_0x496d57=>{this['_reduceSuggestionAttributeRange'](_0x496d57,_0x5c484a['range'],_0x44fc0b),_0x44f5c4=!0x0;});}return _0x44f5c4;}['_reduceSuggestionAttributeRange'](_0x3a8aed,_0x4881d7,_0x334e3a){const _0x338404=_0x3a8aed['getFirstRange']()['getDifference'](_0x4881d7);0x0!==_0x338404['length']?0x1!==_0x338404['length']?this['_breakSuggestionMarker'](_0x3a8aed,_0x4881d7['start'],_0x4881d7['end']):this['_setSuggestionRange'](_0x3a8aed,_0x338404[0x0]):_0x334e3a['removeMarker'](_0x3a8aed['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2deb7c){this['_editor']=_0x2deb7c,this['_model']=_0x2deb7c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b0077,_0x2b3c72,_0x14eff2,_0x27e300,_0x80e2e1,_0x63e0b8){return new u(this['_model'],{'type':_0x5b0077,'subType':_0x2b3c72,'id':_0x14eff2,'author':_0x27e300,'creator':_0x27e300,'attributes':_0x80e2e1,'onAttributesChange':_0x63e0b8,'onAccept':(..._0x53ad20)=>this['getSuggestionCallback'](_0x5b0077,_0x2b3c72,'accept')(..._0x53ad20),'onDiscard':(..._0x4bed23)=>this['getSuggestionCallback'](_0x5b0077,_0x2b3c72,'discard')(..._0x4bed23)});}['registerCustomCallback'](_0x15b97a,_0x12e8e1,_0xcfcacd,_0x268631){const _0x33cc75=_0x15b97a+':'+_0x12e8e1+':'+_0xcfcacd;this['_customCallbacks']['set'](_0x33cc75,_0x268631);}['getSuggestionCallback'](_0x5e9413,_0x203ffa,_0x3f9e1d){const _0x171e7f=_0x5e9413+':'+_0x203ffa+':'+_0x3f9e1d;return this['_customCallbacks']['get'](_0x171e7f)||this['_defaultCallbacks']['get'](_0x5e9413+':'+_0x3f9e1d);}['_registerDefaultCallbacks'](){const _0x2d0939=()=>!0x1,_0x5750a8=_0x3f7fc3=>{_0x3f7fc3['sort']((_0x1d46c3,_0x1e2f35)=>_0x1d46c3['start']['isBefore'](_0x1e2f35['start'])?0x1:-0x1),this['_model']['change'](_0x19241f=>{for(const _0x38b1e9 of _0x3f7fc3){let _0x5bd321;_0x5bd321=_0x38b1e9['end']['isAtEnd']&&_0x38b1e9['end']['parent']==_0x38b1e9['start']['nodeAfter']?_0x19241f['createSelection'](_0x38b1e9['start']['nodeAfter'],'on'):_0x19241f['createSelection'](_0x38b1e9),this['_model']['deleteContent'](_0x5bd321,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x41f546=(_0xe0b5f8,_0x4fbccb)=>{_0x4fbccb&&this['_model']['change'](_0x35fc61=>{const {commandName:_0x1dccd1,commandParams:_0x49590b=[]}=_0x4fbccb,_0x4ec14e=_0xe0b5f8['map'](_0x39c5ad=>(Ft(_0x39c5ad)&&(_0x39c5ad=this['_model']['createRange'](_0x39c5ad['end'])),_0x39c5ad))['filter'](_0x3f9ea8=>'$graveyard'!==_0x3f9ea8['root']['rootName']);if(_0x4ec14e['length']<0x1)return;const _0xc8c941=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4cd511=>_0x1200ae['fromRange'](_0x4cd511));_0x35fc61['setSelection'](_0x4ec14e);for(const _0x8559ee of this['_editor']['commands']['commands']())_0x8559ee['refresh']();_0x49590b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dccd1,..._0x49590b);const _0x35dfe5=_0xc8c941['filter'](_0x1b91a5=>'$graveyard'!=_0x1b91a5['root']['rootName']);_0x35dfe5['length']>0x0&&_0x35fc61['setSelection'](_0x35dfe5);for(const _0x426765 of _0xc8c941)_0x426765['detach']();});},_0x20ee66=(_0x4371c4,_0x54ee4e)=>0x1==_0x4371c4['length']&&0x1==_0x54ee4e['length']&&_0x4371c4[0x0]['end']['isEqual'](_0x54ee4e[0x0]['start']),_0x1c383d=(_0x580409,_0x43ff7a,_0x3ef19a,_0x212fb9)=>Kt(_0x580409,_0x43ff7a,_0x3ef19a,_0x212fb9)?[_0x580409,_0x43ff7a]:Kt(_0x43ff7a,_0x580409,_0x212fb9,_0x3ef19a)?[_0x43ff7a,_0x580409]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2d0939),this['_defaultCallbacks']['set']('insertion:discard',_0x5750a8),this['_defaultCallbacks']['set']('insertion:join',_0x20ee66),this['_defaultCallbacks']['set']('insertion:chain',_0x1c383d),this['_defaultCallbacks']['set']('deletion:accept',_0x5750a8),this['_defaultCallbacks']['set']('deletion:discard',_0x2d0939),this['_defaultCallbacks']['set']('deletion:join',_0x20ee66),this['_defaultCallbacks']['set']('deletion:chain',_0x1c383d),this['_defaultCallbacks']['set']('formatInline:accept',_0x41f546),this['_defaultCallbacks']['set']('formatInline:discard',_0x2d0939),this['_defaultCallbacks']['set']('formatInline:join',_0x20ee66),this['_defaultCallbacks']['set']('formatInline:chain',_0x2d0939),this['_defaultCallbacks']['set']('formatBlock:accept',_0x41f546),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2d0939),this['_defaultCallbacks']['set']('formatBlock:join',_0x20ee66),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2d0939),this['_defaultCallbacks']['set']('attribute:accept',_0x2d0939),this['_defaultCallbacks']['set']('attribute:discard',(_0x347e2d,_0x5ec873)=>{if(!_0x5ec873)return;const _0x110c92=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5b5c80=>{if(_0x5ec873['key']==m)for(const _0x39704c of _0x347e2d){const _0x317c7b=_0x39704c['start']['nodeAfter'],_0x37e762=_0x5ec873['oldValue'];_0x5b5c80['rename'](_0x317c7b,_0x37e762);}else{if(_0x110c92['_isBlockAttribute'](_0x5ec873['key'])){for(const _0x27b710 of _0x347e2d)void 0x0!==_0x5ec873['oldValue']?_0x5b5c80['setAttribute'](_0x5ec873['key'],_0x5ec873['oldValue'],_0x27b710['start']['nodeAfter']):_0x5b5c80['removeAttribute'](_0x5ec873['key'],_0x27b710['start']['nodeAfter']);}else{for(const _0x20f6a9 of _0x347e2d)_0x5ec873['oldValue']?_0x5b5c80['setAttribute'](_0x5ec873['key'],_0x5ec873['oldValue'],_0x20f6a9):_0x5b5c80['removeAttribute'](_0x5ec873['key'],_0x20f6a9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20ee66);}}function Gt(_0x14a70d,_0x3db303,_0x4e0b11){for(const _0x26997f of _0x3db303['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26997f['root']==_0x26997f)return!0x1;if(!_0x4e0b11['containsItem'](_0x26997f))return!0x1;if(_0x14a70d['isObject'](_0x26997f)||_0x14a70d['isLimit'](_0x26997f))return!0x0;}return!0x1;}function Ft(_0x1a409f){return _0x1a409f['end']['parent']==_0x1a409f['start']['nodeAfter']&&_0x1a409f['end']['isAtStart'];}function Lt(_0x2d91f1,_0x567311,_0x8e35c6,_0x911158){const _0x14aab4=_0x81cf0d=>!_0x81cf0d['item']['is']('$textProxy')&&!_0x911158['isObject'](_0x81cf0d['item']),_0x138234=_0x2d91f1['start']['getLastMatchingPosition'](_0x14aab4),_0x406904=_0x2d91f1['end']['getLastMatchingPosition'](_0x14aab4,{'direction':'backward'});return(!_0x2d91f1['start']['isEqual'](_0x138234)||!_0x2d91f1['end']['isEqual'](_0x406904))&&(_0x138234['isBefore'](_0x406904)?_0x8e35c6['updateMarker'](_0x567311,{'range':_0x8e35c6['createRange'](_0x138234,_0x406904)}):_0x8e35c6['removeMarker'](_0x567311),!0x0);}function Jt(_0x5befdd){return _0x2dc0b9(_0x5befdd);}function Ht(_0xb3a147){const _0xd39078=_0xb3a147['start']['nodeAfter'];return _0xd39078&&_0xd39078['is']('element');}function qt(_0x2bbe5c,_0x360c6e){return null==_0x2bbe5c['end']['nodeBefore']&&_0x2bbe5c['end']['parent']==_0x2bbe5c['start']['nodeAfter']?zt(_0x2bbe5c['start']['nodeAfter'],_0x360c6e):_0x2bbe5c;}function zt(_0x33e07d,_0x1aeefd){const _0x4df8e9=_0x1aeefd['schema']['isObject'](_0x33e07d)||_0x1aeefd['schema']['isSelectable'](_0x33e07d);return _0x1aeefd['createRange'](_0x1aeefd['createPositionAt'](_0x33e07d,'before'),_0x4df8e9?_0x1aeefd['createPositionAfter'](_0x33e07d):_0x1aeefd['createPositionAt'](_0x33e07d,'end'));}function Kt(_0x15b65a,_0x52f459,_0x61879,_0x525252){return!!Wt(_0x15b65a,_0x52f459)&&_0x61879['end']['isEqual'](_0x525252['start']);}function Wt(_0x18dac4,_0x3563dc){if(!_0x18dac4['_isDataLoaded']||!_0x3563dc['_isDataLoaded'])return!0x1;const _0x179caf=new Set(Object['keys'](_0x18dac4['attributes'])),_0x2aeecd=new Set(Object['keys'](_0x3563dc['attributes']));if(_0x179caf['delete']('groupId'),_0x2aeecd['delete']('groupId'),0x0==_0x179caf['size']&&0x0==_0x2aeecd['size'])return!0x0;if(_0x179caf['size']!=_0x2aeecd['size'])return!0x1;const _0xd2b2c8={..._0x18dac4['attributes']},_0x51ab74={..._0x3563dc['attributes']};return delete _0xd2b2c8['groupId'],delete _0x51ab74['groupId'],JSON['stringify'](_0xd2b2c8)==JSON['stringify'](_0x51ab74);}function Qt(_0x18f64f,_0x18b542){const _0x19a01c=Xt(_0x18f64f['attributes']),_0x27ef9c=Xt(_0x18b542);if(!_0x18f64f['_isDataLoaded'])return!0x1;for(const _0xba2855 of Object['keys'](_0x27ef9c))if(!_0x344f35(_0x19a01c[_0xba2855],_0x27ef9c[_0xba2855]))return!0x1;return!0x0;}function Xt(_0x43fb63){const _0x1e017d=Object['assign']({},_0x43fb63);return delete _0x1e017d['skipNestingCheck'],delete _0x1e017d['tablePasteChainId'],_0x1e017d;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x357011(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2254b6,_0x5949f4,_0x2a90b8,_0x466d0b){super(),this['model']=_0x5949f4,this['view']=_0x2a90b8,this['commentThreadController']=_0x466d0b,this['_editor']=_0x2254b6,this['_acceptCommand']=_0x2254b6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2254b6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49d055,_0x3ff0d6)=>_0x49d055||_0x3ff0d6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x213ea9=>_0x213ea9&&this['_editor']['model']['canEditAt'](_0x5949f4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xb3cdb6=>_0xb3cdb6&&this['_editor']['model']['canEditAt'](_0x5949f4['getRanges']())),this['_pendingAction']=null,_0x2a90b8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2a90b8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2a90b8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2a90b8,'change:isDirty',()=>{_0x2a90b8['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 _0x520c09=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x520c09);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x18ecc2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2df0f8,_0x785e6f,_0x439521,_0x4ca53b){super(_0x2df0f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x15cfc2(_0x2df0f8,o(_0x2df0f8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x785e6f['authoredAt']),this['bind']('authoredAt')['to'](_0x785e6f),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',_0x785e6f,'authoredAt',this,'descriptionParts',(_0x392f7c,_0x475a34,_0x4a889f)=>{const _0x1353f5=_0x4a889f['map'](_0x488bb6=>cs(_0x488bb6['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x392f7c-0x1,_0x785e6f['author']['name'],_0x475a34?_0x4ca53b['formatDateTime'](_0x475a34):'',new DOMParser()['parseFromString'](_0x1353f5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x41a95c(),this['focusTracker']=new _0x5b40b3(),this['keystrokes']=new _0x1f3671(),this['focusCycler']=new _0x2c0406({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x378e17=>_0x378e17['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x785e6f,this['_localUser']=_0x439521,this['_config']=_0x4ca53b,_0x4ca53b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24f4c2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xb3d18d}=this['_config'];this['commentsListView']=new _0xb3d18d(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',_0x281620=>_0x281620+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3d65a3,_0x4b7732)=>_0x3d65a3||!!_0x4b7732);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x32a747}=this['_config'],_0x28d798=new _0x32a747(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f33bc=_0x28d798['commentInputView'];return _0x28d798['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f33bc,'value',(_0x1a4561,_0x43a48a,_0x5f1d5d)=>!!_0x5f1d5d||_0x1a4561&&!_0x43a48a),_0x3f33bc['on']('submit',(_0x3d4319,_0x267d8b)=>{this['fire']('addComment',_0x267d8b),_0x3f33bc['editor']['setData']('');}),_0x3f33bc['on']('cancel',()=>this['focus']()),_0x3f33bc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28d798;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x2ddd18,_0x4486f1,_0x2915dd,_0x2d44b3){super(_0x2ddd18,_0x4486f1,_0x2915dd,_0x2d44b3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5c771d=>_0x5c771d&&_0x5c771d[0x0]?_0x5c771d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x257ce9,_0x39d2e8)=>{let _0x44e33e='';for(const _0x179fb5 of _0x257ce9)_0x44e33e+='<p>'+cs(_0x179fb5['content'],_0x179fb5['color'])+'</p>';return _0x39d2e8?_0x44e33e:_0x586920(_0x44e33e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d44b3['SuggestionView'](_0x2ddd18,_0x4486f1,{'formatDateTime':_0x2d44b3['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 _0xfb5097=this['bindTemplate'],_0x2f28c7=[this['suggestionView']];return this['commentsListView']&&_0x2f28c7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2f28c7['push'](this['commentThreadInputView']),_0x2f28c7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xfb5097['if']('isActive','ck-suggestion-wrapper--active'),_0xfb5097['to']('type',_0x50956b=>'ck-suggestion-'+_0x50956b),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':_0xfb5097['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2f28c7};}['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 _0x18ecc2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x152da1,_0x5167fe,_0x3f9e2e){super(_0x152da1),this['_model']=_0x5167fe,this['_config']=_0x3f9e2e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5167fe),this['acceptButton']=this['_createButton'](o(_0x152da1,'Accept\x20suggestion'),_0x4ff397['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x152da1,'Discard\x20suggestion'),_0x4ff397['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x219a7c(_0x152da1,_0x5167fe['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x41a95c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b40b3(),this['keystrokes']=new _0x1f3671(),this['focusCycler']=new _0x2c0406({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1af188=>_0x1af188['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x38d307=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x38d307['innerHTML']=this['description'],this['on']('change:description',(_0x4bd2cf,_0x889aee,_0x6230cb)=>{_0x38d307['innerHTML']=_0x6230cb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1442e7=this['bindTemplate'],_0x37cfd5=[{'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':_0x1442e7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1442e7['to']('authoredAt',_0x285887=>this['_config']['formatDateTime'](_0x285887))}]}]},{'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']&&_0x37cfd5['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':_0x37cfd5}]};}['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'](_0xc00b10,_0x209b4f,_0x6ca547,_0x2f1a1a,_0x3cd3b7){const _0x18aa13=new _0x254f07(this['locale']);return _0x18aa13['set']({'label':_0xc00b10,'icon':_0x209b4f,'tooltip':!0x0,'tooltipPosition':_0x3cd3b7}),_0x18aa13['extendTemplate']({'attributes':{'class':_0x6ca547}}),_0x18aa13['on']('execute',()=>{this['fire'](_0x2f1a1a,this['_model']['id']);}),_0x18aa13;}['_setupKeyboardNavigation'](){const _0x5e0b62=this['element'];this['keystrokes']['listenTo'](_0x5e0b62);for(const _0x1a44fd of this['focusables'])this['focusTracker']['add'](_0x1a44fd['element']),this['keystrokes']['listenTo'](_0x1a44fd['element']);this['keystrokes']['set']('enter',(_0xba2a13,_0x2727a3)=>{_0x5e0b62===_0xba2a13['target']&&(this['focusCycler']['focusFirst'](),_0x2727a3());}),this['keystrokes']['set']('esc',(_0x242d3e,_0x1a57db)=>{_0x5e0b62!==_0x242d3e['target']&&(this['focus'](),_0x1a57db());});}}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 _0x2e0600{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x483d85,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x457d08){super(_0x457d08),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x33a434=this['editor']['config'];_0x33a434['define']('trackChanges.SuggestionThreadView',pe),_0x33a434['define']('trackChanges.SuggestionView',fe),_0x33a434['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x33a434['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x200eff,_0x2ce034){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24bc24,_0x2e0550]of this['_handleControllerBuffer']){const _0x313e88=this['_suggestionToController']['has'](_0x24bc24);_0x313e88||_0x2e0550?_0x313e88&&_0x2e0550&&this['_destroyController'](_0x24bc24):this['_initializeController'](_0x24bc24);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x200eff,_0x2ce034);}['init'](){const _0x173b64=this['editor'],_0x7cf4d8=_0x173b64['plugins']['get']('TrackChangesEditing'),_0x4ca4ea=_0x173b64['plugins']['get']('Annotations'),_0x5867c0=_0x173b64['plugins']['get']('EditorAnnotations'),_0x4b68ac=_0x173b64['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5867c0['addSourceCollector'](()=>{const _0x68e6e4=[];for(const [_0x18a724,_0x209199]of Array['from'](this['_suggestionToController'])){const _0x2e3531=_0x18a724['getAllAdjacentSuggestions'](),_0x1f5e5c=[];for(const _0x278f4b of _0x2e3531){if(!_0x278f4b['isInContent'])continue;if(_0x278f4b['isMultiRange']){_0x1f5e5c['push'](..._0x278f4b['getRanges']());continue;}const _0x780c2d=_0x278f4b['getFirstRange']();if(_0x1f5e5c['length']>0x0){const _0x2877d8=_0x1f5e5c[0x0]['getJoined'](_0x780c2d);if(_0x2877d8){_0x1f5e5c[0x0]=_0x2877d8;continue;}}_0x1f5e5c['push'](_0x780c2d);}_0x68e6e4['push']([_0x209199['view'],_0x1f5e5c]);}return _0x68e6e4;}),this['listenTo'](_0x7cf4d8,'suggestionLoaded',(_0x1b8709,_0x5b8cea)=>{this['listenTo'](_0x5b8cea,'change:previous',(_0x4eb8a5,_0x5df060,_0x20012f,_0x4af603)=>{_0x5b8cea['isInContent']&&(null==_0x20012f?(this['_updateController'](_0x4af603['head']),this['_handleSuggestionControllerDelayed'](_0x5b8cea,!0x1)):(this['_updateController'](_0x20012f['head']),null==_0x4af603&&this['_handleSuggestionControllerDelayed'](_0x5b8cea,!0x0)));}),null!==_0x5b8cea['previous']?this['_updateController'](_0x5b8cea['head']):this['_handleSuggestionControllerDelayed'](_0x5b8cea,!0x1);}),this['listenTo'](_0x7cf4d8,'suggestionUnloaded',(_0x387e6d,_0xad32d2,_0x5452ae)=>{this['stopListening'](_0xad32d2,'change:previous'),this['_handleControllerBuffer']['delete'](_0xad32d2),this['_suggestionToController']['has'](_0xad32d2)&&this['_destroyController'](_0xad32d2),_0x5452ae&&this['_updateController'](_0x5452ae['head']);}),this['listenTo'](_0x7cf4d8,'suggestionChanged',(_0x592333,_0x43680e)=>{this['_updateController'](_0x43680e);}),this['listenTo'](_0x4ca4ea,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b68ac,'addComment',(_0x2c7971,{threadId:_0x2b35ad,isFromAdapter:_0x5c3cbc})=>{if(_0x5c3cbc||!_0x7cf4d8['hasSuggestion'](_0x2b35ad))return;const _0x4a4306=_0x7cf4d8['getSuggestion'](_0x2b35ad);this['_suggestionToController']['get'](_0x4a4306)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdd1150=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b0186;for(const _0x3603b7 in _0xdd1150){const _0x2671ae=_0x3603b7,_0x1d7c51=_0xdd1150[_0x2671ae];if('trackChangesLicenseKeyValid'==_0x1d7c51||'trackChangesLicenseKeyInvalid'==_0x1d7c51||'trackChangesLicenseKeyExpired'==_0x1d7c51||'trackChangesLicenseKeyDomainLimit'==_0x1d7c51||'trackChangesLicenseKeyNotAllowed'==_0x1d7c51||'trackChangesLicenseKeyEvaluationLimit'==_0x1d7c51||'trackChangesLicenseKeyTrialLimit'==_0x1d7c51||'trackChangesLicenseKeyUsageLimit'==_0x1d7c51){delete _0xdd1150[_0x2671ae],_0x2b0186=_0x1d7c51,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2b0186&&_0xdd1150['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2b0186&&_0xdd1150['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2b0186&&_0xdd1150['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x22aac5=this['editor']['plugins']['get']('Annotations'),_0x4554bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c3cc2=Array['from'](_0x22aac5['activeAnnotations'],_0x59d656=>_0x59d656['innerView'])['filter'](_0x3d39b4=>this['_viewToController']['has'](_0x3d39b4)),_0x5bd92f=[];for(const _0x4bd9da of _0x3c3cc2){const _0x3a0b7c=this['_viewToController']['get'](_0x4bd9da)['model']['getAllAdjacentSuggestions']();_0x5bd92f['push'](..._0x3a0b7c['reduce']((_0x5c73ab,_0x116953)=>[..._0x5c73ab,..._0x116953['getMarkerNames']()],[]));}_0x4554bc['activeMarkers']=_0x5bd92f;}['_addUIComponentsToFactory'](){const _0x860f3d=this['editor'],_0xbaeca8=_0x860f3d['locale'],_0x4503a6=o(_0xbaeca8,'Track\x20changes'),_0x292907=new _0x424f10([{'type':'switchbutton','model':new _0x3570d2({'withText':!0x0,'isToggleable':!0x0,'label':_0x4503a6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x860f3d['plugins']['has']('TrackChangesPreview')&&_0x292907['addMany']([{'type':'separator'},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x8756ac of _0x292907)if(ke(_0x8756ac)){const _0x5848ed=_0x860f3d['commands']['get'](_0x8756ac['model']['commandName']);_0x8756ac['model']['bind']('isOn','isEnabled')['to'](_0x5848ed,'value','isEnabled');}_0x860f3d['ui']['componentFactory']['add']('trackChanges',_0x287f14=>this['_createToolbarButton'](_0x287f14,_0x292907,_0x4503a6)),_0x860f3d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3680e1=>this['_createMenuBarMenu'](_0x3680e1,_0x292907,_0x4503a6));}['_createToolbarButton'](_0x58371d,_0x3f5afa,_0x3c3eb6){const _0x5f0315=_0x5bae48(_0x58371d,_0x15d7f7),_0x47d7fc=this['editor']['commands']['get']('trackChanges');_0x5f0315['buttonView']['set']({'tooltip':_0x3c3eb6,'label':_0x3c3eb6,'icon':we}),_0x5f0315['buttonView']['bind']('isOn')['to'](_0x47d7fc,'value'),_0x5f0315['buttonView']['on']('execute',()=>{_0x47d7fc['execute'](),this['editor']['editing']['view']['focus']();}),_0x5172de(_0x5f0315,_0x3f5afa,{'role':'menu'});const _0x2ce076=[];for(const _0x587acc of _0x3f5afa)ke(_0x587acc)&&_0x2ce076['push'](this['editor']['commands']['get'](_0x587acc['model']['commandName']));const _0x2e5a74=_0x5f0315['buttonView'];return _0x2e5a74['actionView']['unbind']('isEnabled'),_0x2e5a74['arrowView']['unbind']('isEnabled'),_0x2e5a74['actionView']['bind']('isEnabled')['to'](_0x47d7fc,'isEnabled'),_0x2e5a74['arrowView']['bind']('isEnabled')['toMany'](_0x2ce076,'isEnabled',(..._0x39586a)=>_0x39586a['some'](_0x6ffd73=>_0x6ffd73)),_0x5f0315['on']('execute',_0x7cf5d3=>{this['editor']['execute'](_0x7cf5d3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f0315;}['_createMenuBarMenu'](_0x43d01d,_0x5793a8,_0x4b93bd){const _0x420519=new _0x346073(_0x43d01d),_0x3ddd42=this['editor']['commands']['get']('trackChanges');_0x420519['buttonView']['set']({'label':_0x4b93bd,'icon':we});const _0xaddb52=new _0x1d7800(_0x43d01d);for(const _0x500f1a of _0x5793a8){if('separator'==_0x500f1a['type']){_0xaddb52['items']['add'](new _0x1e1643(_0x43d01d));continue;}const _0x379c36=new _0x9caca5(_0x43d01d,_0x420519),_0x213583=new _0x32b585(_0x43d01d),_0x3234dd=_0x500f1a['model'];_0x213583['bind'](...Object['keys'](_0x3234dd))['to'](_0x3234dd),_0x213583['delegate']('execute')['to'](_0x420519),_0x213583['on']('execute',()=>{this['editor']['execute'](_0x3234dd['commandName']),this['editor']['editing']['view']['focus']();}),_0x379c36['children']['add'](_0x213583),_0xaddb52['items']['add'](_0x379c36);}return _0x420519['bind']('isEnabled')['to'](_0x3ddd42,'isEnabled'),_0x420519['panelView']['children']['add'](_0xaddb52),_0x420519;}['_initializeController'](_0x2dc65f){const _0x397f0f=this['editor'],_0x1cd26b=_0x397f0f['config'],_0x393dc4=_0x397f0f['plugins']['get']('Annotations'),_0xf221b2=_0x397f0f['plugins']['get']('CommentsRepository'),_0x1f59e7=_0x397f0f['plugins']['get']('EditorAnnotations'),_0xfa6bf5=_0x397f0f['plugins']['get'](_0x483d85)['me'],_0x343efd=_0x1cd26b['get']('trackChanges')['SuggestionThreadView'],_0x484494=_0x1cd26b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb9e928,CommentThreadInputView:_0x46f464}=_0x397f0f['plugins']['get']('CommentsUI');let _0x140264,_0x53779f,_0x2d07b3;this['_annotationViews']['has'](_0x2dc65f['id'])?(_0x53779f=this['_annotationViews']['get'](_0x2dc65f['id']),_0x140264=_0x53779f['mainView']):(_0x140264=new _0x343efd(_0x397f0f['locale'],_0x2dc65f,_0xfa6bf5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1cd26b['get']('comments.editorConfig'),'licenseKey':_0x1cd26b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1cd26b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1cd26b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1cd26b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2167ca(_0x1cd26b['get']('locale')),'CommentView':_0x1cd26b['get']('comments')['CommentView'],'CommentsListView':_0xb9e928,'CommentThreadInputView':_0x46f464,'SuggestionView':_0x484494}),_0x140264['suggestionView']['acceptButton']['on']('execute',()=>{_0x397f0f['editing']['view']['focus']();}),_0x140264['suggestionView']['discardButton']['on']('execute',()=>{_0x397f0f['editing']['view']['focus']();}),_0x53779f=_0x393dc4['createAnnotationView'](this['editor']['locale'],_0x140264),_0x53779f['bind']('isDirty')['to'](_0x140264,'isDirty'),_0x53779f['bind']('length')['to'](_0x140264),_0x53779f['bind']('type')['to'](_0x140264,'type',_0x193464=>'suggestion-'+_0x193464),_0x140264['on']('escape',()=>{_0x2d07b3['fire']('escape');}),this['_annotationViews']['set'](_0x2dc65f['id'],_0x53779f));const _0x5e4e04=_0xf221b2['createCommentThreadController'](_0x2dc65f['commentThread'],_0x140264),_0x16f674=new Ce(_0x397f0f,_0x2dc65f,_0x140264,_0x5e4e04),_0x1e0ded=_0x2dc65f['getAllAdjacentSuggestions']()['filter'](_0x13d408=>_0x13d408['isInContent']);_0x140264['descriptionParts']=_0x397f0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1e0ded),this['_suggestionToController']['set'](_0x2dc65f,_0x16f674),this['_viewToController']['set'](_0x140264,_0x16f674),_0x2d07b3=_0x393dc4['createAnnotation']({'view':_0x53779f,'target':()=>{const _0x2a8664=[],_0x33ae01=_0x2dc65f['getAllAdjacentSuggestions']()['filter'](_0x2d9ead=>_0x2d9ead['isInContent']);for(const _0x30ed79 of _0x33ae01)_0x2a8664['push'](..._0x30ed79['getMarkers']());return _0x16b1a5(_0x397f0f['editing'],_0x2a8664);},'type':()=>'suggestion-'+_0x16f674['view']['type']}),_0xf221b2['_bindAnnotationToEditors'](_0x140264,_0x2d07b3),_0x393dc4['add'](_0x2d07b3),_0x1f59e7['registerAnnotation'](_0x2d07b3);}['_destroyController'](_0x2b856b){const _0x3bb5b9=this['editor']['plugins']['get']('CommentsRepository'),_0x50acbd=this['editor']['plugins']['get']('Annotations'),_0x545ff3=this['_suggestionToController']['get'](_0x2b856b),_0x4631e2=_0x545ff3['view'],_0x2719be=_0x50acbd['getByInnerView'](_0x4631e2);_0x3bb5b9['_unbindEditors'](_0x4631e2),_0x2719be&&_0x50acbd['remove'](_0x2719be),this['_suggestionToController']['delete'](_0x2b856b),this['_viewToController']['delete'](_0x4631e2),_0x545ff3['destroy']();}['_updateController'](_0x396641){if(!_0x396641['isInContent']||!this['_suggestionToController']['has'](_0x396641))return;const _0x5b8bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x147cc1=this['_suggestionToController']['get'](_0x396641),_0x43dbc7=_0x396641['getAllAdjacentSuggestions']();_0x147cc1['view']['descriptionParts']=_0x5b8bd['descriptionFactory']['getDescriptions'](_0x43dbc7);}['destroy'](){for(const _0x5c5e98 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c5e98);for(const _0x4ac3e5 of this['_annotationViews']['values']())_0x4ac3e5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1b5540){return'model'in _0x1b5540;}class k extends _0x2e0600{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x57764f){this['editor']['plugins']['get'](p)['adapter']=_0x57764f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xfa9588){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xfa9588);}['getSuggestions']({skipNotAttached:_0x20bc6d=!0x1,toJSON:_0x473c52=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x20bc6d,'toJSON':_0x473c52});}['getSuggestion'](_0xc0dd51){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xc0dd51);}}const w=['Pagination'];class T extends _0x2e0600{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x341b56=this['editor'];if(_0x341b56['config']['define']('trackChangesData.editorCreator',_0x3768c3=>{const _0x35e8c9=_0x341b56['model']['document']['getRootNames']()['reduce']((_0x257b68,_0x5f2d00)=>(_0x257b68[_0x5f2d00]='',_0x257b68),{});return _0x341b56['constructor']['create'](_0x35e8c9,_0x3768c3);}),'function'!=typeof _0x341b56['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c235c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e3ea0){return N(this['editor'],!0x0,_0x2e3ea0);}['getDataWithDiscardedSuggestions'](_0x4ac80e){return N(this['editor'],!0x1,_0x4ac80e);}}class D extends _0x2e0600{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x201415){function _0x357b64(_0x304be6){return _0x304be6['map'](_0x155595=>String['fromCharCode'](_0x155595))['join']('');}super(_0x201415),this['result']='end',_0x201415[_0x357b64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x357b64([0x76,0x69,0x65,0x77])][_0x357b64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x357b64([0x61,0x75,0x74,0x6f]),_0x201415[_0x357b64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x357b64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x357b64([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x357b64([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x357b64([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(_0x3353fc){return void 0x0!==_0x3353fc['getRootsAttributes'];}async function N(_0x1f7ddd,_0x37ea78,_0x3c1f35){const _0x21c5c4=_0x3e1684(_0x1f7ddd,w);_0x21c5c4['plugins']['push'](p,D),_0x21c5c4['rootsAttributes']=Fe(_0x1f7ddd)?_0x1f7ddd['getRootsAttributes']():void 0x0;const _0x2a2187=document['createDocumentFragment'](),_0x454a5f=_0x1f7ddd['config']['get']('trackChangesData')['editorCreator'],_0x43df52=await _0x454a5f(_0x21c5c4,()=>function(_0xe244d5){const _0x23140c=document['createElement']('div');return _0xe244d5['appendChild'](_0x23140c),_0x23140c;}(_0x2a2187));!function(_0x4412ba,_0x40217b){const _0x2b48ab=_0x4412ba['model']['document']['getRootNames']()['reduce']((_0x3ac794,_0xb379b7)=>(_0x3ac794[_0xb379b7]=_0x4412ba['data']['get']({'rootName':_0xb379b7}),_0x3ac794),{}),_0x1c1616=_0x4412ba['plugins']['get']('Users')['users']['map'](_0x5e342d=>({'id':_0x5e342d['id'],'name':_0x5e342d['name']})),_0x452328=_0x4412ba['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x283ab7=_0x4412ba['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x327c65=_0x40217b['plugins']['get']('Users'),_0x46facb=_0x40217b['plugins']['get']('TrackChangesEditing'),_0x4cc32e=_0x40217b['plugins']['get']('CommentsRepository');for(const _0xac6a27 of _0x4cc32e['getCommentThreads']())_0xac6a27['remove']();for(const _0x56d0dc of _0x1c1616)_0x327c65['getUser'](_0x56d0dc['id'])||_0x327c65['addUser'](_0x56d0dc);_0x327c65['me']||_0x327c65['useAnonymousUser']();for(const _0x2ea585 of _0x283ab7)_0x4cc32e['addCommentThread'](_0x2ea585);for(const _0x5252b9 of _0x452328)_0x46facb['addSuggestionData'](_0x5252b9);_0x40217b['data']['set'](_0x2b48ab);}(_0x1f7ddd,_0x43df52),_0x43df52['execute'](_0x37ea78?'acceptAllSuggestions':'discardAllSuggestions');const _0x24a87d=Fe(_0x43df52)?_0x43df52['getFullData'](_0x3c1f35):_0x43df52['data']['get'](_0x3c1f35);return await _0x43df52['destroy'](),_0x24a87d;}class Me extends _0x18ecc2{['options'];constructor(_0x1516ac,_0x35d0cf){super(_0x1516ac),this['options']=_0x35d0cf,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'](_0x5cc238,_0x5332f5){if(!this['element'])return;const _0x48f612=[];for(const [_0x327288,_0x4ac171]of _0x5cc238){const _0x54b7e1=document['createElement']('div');_0x54b7e1['setAttribute']('data-ck-root-name',_0x327288),_0x54b7e1['className']=_0x4ac171['classes']+'\x20ck-track-changes-preview__root-container',_0x54b7e1['innerHTML']=_0x4ac171['content'],_0x48f612['push'](_0x54b7e1);}_0x5332f5(this['element'],_0x48f612),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x5d152b){super(_0x5d152b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x292db0=this['editor'],_0x58c42a=_0x292db0['locale'],_0xabca27=_0x292db0['plugins']['get']('Dialog');let _0x5ed42c;const _0x3fa83f=function(_0x36473d){const _0x5da63c={};if('editables'in _0x36473d['ui']['view']){for(const [_0x4b6e22,_0x190d94]of Object['entries'](_0x36473d['ui']['view']['editables']))_0x5da63c[_0x4b6e22]=_0x190d94['element'];}else _0x5da63c[_0x36473d['model']['document']['getRootNames']()[0x0]]=_0x36473d['ui']['view']['editable']['element'];return _0x5da63c;}(_0x292db0),_0xc701d4=function(_0xed28a5){let _0x2b0c8c=0x0;for(const _0x94a42a of Object['values'](_0xed28a5))_0x2b0c8c=Math['max'](_0x2b0c8c,_0x94a42a['getBoundingClientRect']()['width']);let _0x53e711=0x0;for(const _0x54dc0f of Object['values'](_0xed28a5))_0x53e711+=_0x54dc0f['getBoundingClientRect']()['height'];const _0x55b788=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x19a040=Math['min'](_0x53e711,_0x55b788);return{'width':_0x2b0c8c,'height':_0x19a040};}(_0x3fa83f);_0xabca27['show']({'id':'finalContentPreview','title':o(_0x58c42a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x58c42a,{'dialogRects':_0xc701d4}),'onHide':()=>{_0x5ed42c['detachFromDom']();},'onShow':()=>{_0x292db0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x20e693=>{const _0x293dab=this['_standarizeRootsData'](_0x20e693,_0x292db0,_0x3fa83f);_0xabca27['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x293dab,_0x292db0['config']['get']('trackChanges.preview.renderFunction'));}),_0x5ed42c=new _0x240a52(_0x58c42a,[_0xabca27['view']]),_0x5ed42c['attachToDom'](),_0x5ed42c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x292db0['once']('destroy',()=>{_0x5ed42c['detachFromDom']();});const _0x2ee9a6=_0xabca27['view']['headerView']['class'];_0xabca27['view']['headerView']['class']=_0x2ee9a6?_0x2ee9a6+'\x20ck-reset_all':'ck-reset_all',_0xabca27['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xabca27['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x50f814=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x7ef7ac=_0x50f814['previewMode'],_0x15b575={};if('$labels'===_0x7ef7ac){for(const _0x1eae5b of _0x50f814['getMergeFieldsIds']())_0x15b575[_0x1eae5b]=_0x50f814['getLabel'](_0x1eae5b)||_0x1eae5b;}else{const _0x3f2bdd='$defaultValues'===_0x7ef7ac?_0x50f814['getDefaultValues']():_0x50f814['getDataSetValues'](_0x7ef7ac,!0x0);for(const _0x9f21a4 of Object['entries'](_0x3f2bdd)){const [_0x1a02b2,_0x52ceb5]=_0x9f21a4;_0x15b575[_0x1a02b2]=null!==_0x52ceb5?_0x52ceb5:_0x50f814['getLabel'](_0x1a02b2)||_0x1a02b2;}}return{'mergeFieldsData':_0x15b575};}['_standarizeRootsData'](_0x5a8d1c,_0x525451,_0x4779c6){let _0x21cb8a;if('string'==typeof _0x5a8d1c){const _0x360475=_0x525451['model']['document']['getRootNames']()[0x0];_0x21cb8a={[_0x360475]:_0x5a8d1c};}else _0x21cb8a=_0x5a8d1c;const _0x3a59a3=this['_fixMediaEmbeds'](_0x21cb8a,_0x525451),_0x184c01=function(_0x3adf75,_0x35bb37){for(const [_0x33a6f8,_0x2cb374]of _0x3adf75)_0x2cb374['classes']=_0x35bb37[_0x33a6f8]['classList']['value']['replace']('ck-focused','');return _0x3adf75;}(this['_sortRoots'](_0x525451)['reduce']((_0x3bf842,_0x40357e)=>(_0x3bf842['push']([_0x40357e,{'content':_0x3a59a3[_0x40357e],'classes':''}]),_0x3bf842),[]),_0x4779c6);return _0x184c01;}['_fixMediaEmbeds'](_0x44728b,_0x52130d){if(!_0x52130d['plugins']['has']('MediaEmbedEditing'))return _0x44728b;const _0x378848=_0x52130d['plugins']['get']('MediaEmbedEditing');for(const [_0x5c0de8,_0x1f22ec]of Object['entries'](_0x44728b)){const _0x2ae8ac=document['createElement']('div');_0x2ae8ac['innerHTML']=_0x1f22ec,(_0x2ae8ac['querySelectorAll']('figure.media')['forEach'](_0x66ef03=>{const _0x582f78=_0x66ef03['querySelector']('oembed');if(_0x582f78){const _0x5321f4=_0x582f78['getAttribute']('url');if(_0x5321f4){const _0x35e904=_0x378848['registry']['getMediaViewElement'](new _0x343a56(_0x52130d['editing']['view']['document']),_0x5321f4,{'elementName':'','renderForEditingView':!0x0}),_0x2779c9=document['createElement']('div');_0x2779c9['classList']['add']('ck-media__wrapper'),_0x35e904['render'](_0x2779c9,_0x52130d['editing']['view']['domConverter']),_0x582f78['replaceWith'](_0x2779c9);}}}),_0x44728b[_0x5c0de8]=_0x2ae8ac['innerHTML']);}return _0x44728b;}['_sortRoots'](_0x4b831d){if(!function(_0x4f2c33){return void 0x0!==_0x4f2c33['getRootsAttributes'];}(_0x4b831d))return _0x4b831d['model']['document']['getRootNames']();const _0xeeb3e9=[],_0x4b0fbb=new Map();for(const _0x5f4589 of _0x4b831d['model']['document']['getRootNames']()){const _0x3ee5db=_0x4b831d['editing']['view']['getDomRoot'](_0x5f4589)['getClientRects']()['item'](0x0);_0xeeb3e9['push'](_0x5f4589),_0x4b0fbb['set'](_0x5f4589,_0x3ee5db);}return _0xeeb3e9['sort']((_0x3d75bc,_0x3607e7)=>{const _0x5dd176=_0x4b0fbb['get'](_0x3d75bc),_0x34ce33=_0x4b0fbb['get'](_0x3607e7);return _0x5dd176['y']-_0x34ce33['y']||_0x5dd176['x']-_0x34ce33['x'];}),_0xeeb3e9;}}class te extends _0x2e0600{static get['requires'](){return[T,_0x32d43f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c983c){super(_0x1c983c),_0x1c983c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1c983c['config']['define']('trackChanges.preview.renderFunction',(_0x57eb19,_0x117820)=>{for(const _0x44a1ca of _0x117820)_0x57eb19['appendChild'](_0x44a1ca);});}}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 _0x3870c0,PendingActions as _0x691f6b,icons as _0x33fe73}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x534bac,ObservableMixin as _0x28e810,uid as _0x53814c,priorities as _0x14f8c3,insertToPriorityArray as _0x4ba70b,logWarning as _0x1cd223,getEnvKeystrokeText as _0x3ab478,FocusTracker as _0x4adce5,KeystrokeHandler as _0x4ab5eb,Collection as _0x34b401}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x323ab2,View as _0x16d55d,ViewCollection as _0xc19ddf,FocusCycler as _0x107169,ViewModel as _0x6fd7fd,createDropdown as _0x2b3e30,SplitButtonView as _0x507e81,addListToDropdown as _0x8392e2,MenuBarMenuView as _0xe7eec8,MenuBarMenuListView as _0x100061,ListSeparatorView as _0x28bae8,MenuBarMenuListItemView as _0x166fd0,MenuBarMenuListItemButtonView as _0x3aa8a5,BodyCollection as _0x3c49d0,Dialog as _0x6f0cd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x19b2a6,hashObject as _0x5b8f05,surroundingMarkersDetector as _0xedede1,FOCUS_ANNOTATION_KEYSTROKE as _0x5f04f5,AriaDescriptionView as _0x12891d,setupThreadKeyboardNavigation as _0x143d1c,trimHtml as _0xa16176,UserView as _0x793856,LateFocusButtonView as _0xd3709b,getDateTimeFormatter as _0x56aa9d,getAllMarkersDomElementsSorted as _0x32221f,sanitizeEditorConfig as _0x3ea1df}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x42e207,LiveRange as _0x1abeca,LivePosition as _0x373c0f,DowncastWriter as _0x3530bb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4f62b8,toWidget as _0x50a07e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xd10e7a,set as _0x4f3fc7,isEqual as _0x5730e9,unset as _0x28fbab,omit as Vt}from'lodash-es';import{Delete as _0x387fbd,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x21a068,ShiftEnter as _0xb156e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x3178d3,_0x2aa520){super(_0x3178d3),this['_enabledCommands']=_0x2aa520,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 _0x3005b8 of this['editor']['commands']['commands']())_0x3005b8['affectsData']&&!this['_enabledCommands']['has'](_0x3005b8)&&_0x3005b8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x24843d of this['editor']['commands']['commands']())_0x24843d['affectsData']&&!this['_enabledCommands']['has'](_0x24843d)&&_0x24843d['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x4a22e9,_0x4a9fb8){super(_0x4a22e9),this['_suggestions']=_0x4a9fb8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5ebc37){const _0x16643e=this['_suggestions']['get'](_0x5ebc37);if(!_0x16643e)throw new _0x534bac('track-changes-accept-suggestion-not-found',this);const _0x516dcf=_0x16643e['getRanges']();this['editor']['model']['canEditAt'](_0x516dcf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x16643e);}}class R extends Yt{['_suggestions'];constructor(_0x140c74,_0x2bfc3d){super(_0x140c74),this['_suggestions']=_0x2bfc3d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x49b3f3){const _0x53d5be=this['_suggestions']['get'](_0x49b3f3);if(!_0x53d5be)throw new _0x534bac('track-changes-discard-suggestion-not-found',this);const _0x32a80a=_0x53d5be['getRanges']();this['editor']['model']['canEditAt'](_0x32a80a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x53d5be);}}function cs(_0xb6b3b,_0x5d7ccb){let _0x589aac='';return _0x589aac+=_0xb6b3b['split']('*')['map']((_0x38b40e,_0x243786)=>_0x243786%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x38b40e)+'</span>':nn(_0x38b40e))['join'](''),_0x5d7ccb&&(_0x589aac+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5d7ccb['value']+'\x22\x20title=\x22'+_0x5d7ccb['title']+'\x22></span>'),_0x589aac;}function nn(_0x106991){const _0x20b3ff=document['createElement']('span');return _0x20b3ff['innerText']=_0x106991,_0x20b3ff['innerHTML'];}function Zt(_0x400c79){return _0x400c79['sort']((_0x5e87c9,_0x23bab4)=>'deletion'==_0x5e87c9['type']&&'deletion'!=_0x23bab4['type']?-0x1:'deletion'!=_0x5e87c9['type']&&'deletion'==_0x23bab4['type']?0x1:0x0);}function to(_0x423451,_0xa42119){let _0x42cb4b,_0x442d19=0x0;const _0x4ab408=[],_0x47d180=_0xa42119['schema'];for(;_0x442d19<_0x423451['length'];){const _0x35acda=_0x423451[_0x442d19],_0x467d02=_0x423451[_0x442d19+0x1];_0x42cb4b||(_0x42cb4b=_0xa42119['createPositionBefore'](_0x35acda)),on(_0xa42119,_0x35acda,_0x467d02)||(_0x4ab408['push'](_0xa42119['createRange'](_0x42cb4b,_0x47d180['isObject'](_0x35acda)?_0xa42119['createPositionAfter'](_0x35acda):_0xa42119['createPositionAt'](_0x35acda,'end'))),_0x42cb4b=null),_0x442d19++;}return _0x4ab408;}function on(_0x3549e8,_0x2aacad,_0x1e91c8){if(!_0x1e91c8)return!0x1;const _0x4fe420=_0x3549e8['createPositionAfter'](_0x2aacad),_0x5117bd=_0x3549e8['createPositionBefore'](_0x1e91c8);return _0x4fe420['isTouching'](_0x5117bd);}function ts(_0x3df884,_0x30444a,_0x4948f6){for(;_0x4948f6['length'];){const _0x35389d=_0x4948f6['splice'](0x0,0x64);_0x3df884['change'](()=>{for(const _0x26e195 of _0x35389d)_0x26e195['isInContent']&&_0x30444a['execute'](_0x26e195['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x4e2f6f,_0x3d7820,_0x50ea52){super(_0x4e2f6f),this['_command']=_0x3d7820,this['_suggestions']=_0x50ea52,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4524d4=Array['from'](this['_suggestions']['values']())['some'](_0xce6133=>_0xce6133['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4524d4;}['execute'](){const _0x47b307=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x456b06 of _0x47b307){const _0x42ff24=_0x456b06['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42ff24))return;}ts(this['editor']['model'],this['_command'],_0x47b307);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4d4d3e,_0x18224a,_0x2b6293){super(_0x4d4d3e),this['_command']=_0x18224a,this['_suggestions']=_0x2b6293,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b14c0=this['editor']['model']['document']['selection'],_0x2cd25e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x171beb,_0x4976c6){const _0x50b985=Array['from'](_0x171beb['getRanges']()),_0x7d3790=new Set();for(const _0x343428 of _0x4976c6)if(_0x343428['isInContent']){for(const _0x31dfa6 of _0x50b985)for(const _0x212842 of _0x343428['getRanges']())(_0x31dfa6['isIntersecting'](_0x212842)||_0x171beb['isCollapsed']&&!_0x343428['isMultiRange']&&_0x343428['next']&&_0x212842['end']['isTouching'](_0x31dfa6['start']))&&_0x7d3790['add'](_0x343428);}return _0x7d3790;}(_0x2b14c0,_0x2cd25e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xbcf913=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x244bc8 of _0xbcf913){const _0x547262=_0x244bc8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x547262))return;}ts(this['editor']['model'],this['_command'],_0xbcf913);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x28e810(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x584bd2,_0x1edc1f){super(),this['id']=_0x1edc1f['id'],this['type']=_0x1edc1f['type'],this['subType']=_0x1edc1f['subType']||null,this['author']=_0x1edc1f['author'],this['creator']=_0x1edc1f['creator']||_0x1edc1f['author'],this['isExternal']=Boolean(_0x1edc1f['attributes']&&_0x1edc1f['attributes']['@external']),this['data']=null,this['_model']=_0x584bd2,this['_onAccept']=_0x1edc1f['onAccept'],this['_onDiscard']=_0x1edc1f['onDiscard'],this['_onAttributesChange']=_0x1edc1f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1edc1f['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 _0x4ce67d=this;for(;_0x4ce67d['previous'];)_0x4ce67d=_0x4ce67d['previous'];return _0x4ce67d;}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'](_0x18012a){this['_markerNames']['add'](_0x18012a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5b99f6=>this['_model']['markers']['get'](_0x5b99f6))['filter'](_0x50fc26=>_0x50fc26);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e1efd=>{for(const _0xc2eade of this['getMarkers']())_0x2e1efd['removeMarker'](_0xc2eade);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f2eff){this['_model']['change'](_0x25783e=>{_0x25783e['removeMarker'](_0x3f2eff);}),this['_markerNames']['delete'](_0x3f2eff);}['addRange'](_0x152295){const _0x36a12c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x36a12c),this['_model']['change'](_0x3a715a=>{_0x3a715a['addMarker'](_0x36a12c,{'range':_0x152295,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x19c0b6){for(const _0x4cd1ee of this['getRanges']())if(_0x4cd1ee['isIntersecting'](_0x19c0b6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x161967=>_0x161967['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3cb8e7,_0x41349d)=>[..._0x3cb8e7,..._0x41349d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x48d21a=this['getRanges']();if(0x1!=_0x48d21a['length'])return null;const _0x41b5d7=_0x48d21a[0x0],_0x35d48a=_0x41b5d7['start']['nodeAfter'],_0x2a963b=_0x41b5d7['end']['nodeBefore'];return _0x35d48a instanceof _0x42e207?_0x35d48a!=_0x2a963b?null:_0x35d48a: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 _0x2ac4e6=[];let _0x4e6e3e=this['head'];for(;_0x4e6e3e;)_0x2ac4e6['push'](_0x4e6e3e),_0x4e6e3e=_0x4e6e3e['next'];return _0x2ac4e6;}['setAttribute'](_0x2caa02,_0x29ef37){const _0x27f799=_0xd10e7a(this['attributes']);_0x4f3fc7(_0x27f799,_0x2caa02,_0x29ef37),_0x5730e9(_0x27f799,this['attributes'])||(this['attributes']=_0x27f799,this['_onAttributesChange'](_0x27f799));}['removeAttribute'](_0x4cdd43){const _0x1ed6d8=_0xd10e7a(this['attributes']);_0x28fbab(_0x1ed6d8,_0x4cdd43),_0x5730e9(_0x1ed6d8,this['attributes'])||(this['attributes']=_0x1ed6d8,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 _0x53814c()['substr'](0x1,0x5);}}function o(_0x5e05b6,_0x28ffdd,_0x5f0f9c){const _0x30579e=_0x5e05b6['t'],t=_0x5e05b6['t'];switch(_0x28ffdd){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',_0x5f0f9c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f0f9c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f0f9c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f0f9c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f0f9c);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',_0x5f0f9c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f0f9c);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',_0x5f0f9c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f0f9c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f0f9c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f0f9c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f0f9c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f0f9c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f0f9c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f0f9c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5f0f9c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f0f9c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f0f9c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f0f9c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f0f9c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f0f9c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f0f9c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f0f9c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f0f9c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f0f9c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f0f9c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f0f9c);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'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f0f9c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5f0f9c);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 _0x30579e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5f0f9c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x30579e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5f0f9c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5f0f9c);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'},_0x5f0f9c);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'},_0x5f0f9c);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'},_0x5f0f9c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28ffdd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5bd841,_0xe33b02){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5bd841,this['_locale']=_0xe33b02;}['getDescriptions'](_0x4f9175){const _0x105531=[],_0x195b40=new Set(),_0xf5be72=new Set();for(let _0x192547=0x0;_0x192547<_0x4f9175['length'];_0x192547++){const _0x13974a=_0x4f9175[_0x192547];if(!_0x13974a['isInContent'])continue;const _0xab9b9d=this['_handleCustomCallbackDescription'](_0x13974a);if(_0xab9b9d){if(null!=_0x13974a['subType']){if(_0x195b40['has'](_0x13974a['subType']))continue;_0x195b40['add'](_0x13974a['subType']);}_0x105531['push'](_0xab9b9d);}else{if('attribute'!=_0x13974a['type'])'insertion'!=_0x13974a['type']&&'deletion'!=_0x13974a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x105531,_0x13974a,_0x4f9175[_0x192547+0x1]);else{const _0xb6926b=_0x13974a['data']['key'];if(_0xf5be72['has'](_0xb6926b))continue;_0xf5be72['add'](_0x13974a['data']['key']),_0xb6926b==m?this['_handleRenameSuggestionDescription'](_0x105531,_0x13974a):this['_handleAttributeSuggestionDescription'](_0x105531,_0x13974a);}}}return this['_resolveDescriptionItems'](_0x105531);}['registerDescriptionCallback'](_0x50de15){this['_customCallbacks']['push'](_0x50de15);}['registerElementLabel'](_0x55376e,_0x3df345,_0x2ba4d9=_0x14f8c3['normal']){'function'==typeof _0x55376e?_0x4ba70b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55376e,'label':_0x3df345,'priority':_0x2ba4d9}):this['_itemLabels']['set'](_0x55376e,_0x3df345);}['registerAttributeLabel'](_0x29123a,_0x232cab){this['_attributeLabels']['set'](_0x29123a,_0x232cab);}['getItemLabel'](_0xed9e34,_0x148222=0x1){let _0x458853;for(const _0x26a792 of this['_itemLabelsCallbacks'])if(_0x26a792['matchingCallback'](_0xed9e34)){_0x458853=_0x26a792['label'];break;}return _0x458853||(_0x458853=this['_itemLabels']['get'](_0xed9e34['name'])),_0x458853?_0x458853(_0x148222):0x1!==_0x148222?_0x148222+'\x20'+_0xed9e34['name']+'s':''+_0xed9e34['name'];}['_addDescriptionItems'](_0x4a7bde,_0x472cc6){const _0x49b8f1=_0x472cc6['getFirstRange']()['getWalker'](),_0x5b0812='insertion'==_0x472cc6['type']?'add':'remove';for(const _0x478b05 of _0x49b8f1){const _0x1748e6=_0x478b05['item'],_0x5298a4=_0x4a7bde[_0x4a7bde['length']-0x1];if(_0x1748e6['is']('$textProxy'))_0x5298a4&&_0x5298a4['type']['indexOf']('Container')>-0x1&&_0x4a7bde['pop'](),_0x5298a4&&'text'==_0x5298a4['type']?_0x5298a4[_0x5b0812]+=_0x1748e6['data']:_0x4a7bde['push']({'type':'text','add':'add'==_0x5b0812?_0x1748e6['data']:'','remove':'remove'==_0x5b0812?_0x1748e6['data']:''});else{if(this['_schema']['isObject'](_0x1748e6)){const _0x3a4366=_0x1748e6;if(_0x5298a4&&_0x5298a4['type']['indexOf']('Container')>-0x1&&_0x4a7bde['pop'](),'elementEnd'==_0x478b05['type'])continue;_0x5298a4&&_0x5298a4['type']==_0x5b0812+'Object'&&_0x5298a4['element']['name']==_0x3a4366['name']?_0x5298a4['quantity']++:_0x4a7bde['push']({'type':_0x5b0812+'Object','element':_0x3a4366,'quantity':0x1}),_0x49b8f1['skip'](_0x43fc9f=>!('elementEnd'==_0x43fc9f['type']&&_0x43fc9f['item']==_0x1748e6));}else{if(this['_schema']['checkChild'](_0x1748e6,'$text')||_0x1748e6['is']('element','softBreak')){const _0x11a892=_0x1748e6;if('add'==_0x5b0812&&'elementStart'==_0x478b05['type']||'remove'==_0x5b0812&&'elementEnd'==_0x478b05['type'])continue;if(_0x5298a4&&-0x1==_0x5298a4['type']['indexOf']('Container')){'text'==_0x5298a4['type']&&(_0x5298a4[_0x5b0812]+='\x0a');continue;}let _0x54df10;if(_0x54df10='add'==_0x5b0812?_0x11a892['nextSibling']&&!this['_schema']['isObject'](_0x11a892['nextSibling'])?_0x11a892['nextSibling']:null:_0x11a892['previousSibling']&&!this['_schema']['isObject'](_0x11a892['previousSibling'])?_0x11a892['previousSibling']:null,_0x11a892['isEmpty']||_0x54df10&&_0x54df10['isEmpty']){const _0x378140=_0x54df10&&_0x54df10['isEmpty']?_0x54df10:_0x11a892;_0x5298a4&&_0x5298a4['type']==_0x5b0812+'EmptyContainer'&&_0x5298a4['element']['name']==_0x378140['name']?_0x5298a4['quantity']++:_0x4a7bde['push']({'type':_0x5b0812+'EmptyContainer','element':_0x378140,'quantity':0x1});}else _0x4a7bde['push']({'type':_0x5b0812+'Container','element':_0x11a892});}}}}}['_resolveDescriptionItems'](_0x43f839){const _0x46f501=this['_locale'],_0x57af4f=[],_0x55dd7d=[],_0x5c79d8=[];for(const _0x429d89 of _0x43f839)switch(_0x429d89['type']){case'text':if(_0x429d89['add']=_0x429d89['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x429d89['remove']=_0x429d89['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x429d89['add']&&''!=_0x429d89['remove']){_0x57af4f['push']({'type':'replace','content':o(_0x46f501,'REPLACE_TEXT',['\x22'+_0x429d89['remove']+'\x22','\x22'+_0x429d89['add']+'\x22'])});continue;}if(null!=_0x429d89['add']['match'](/^ +$/)){_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Insert:*\x20%0',o(_0x46f501,'ELEMENT_SPACE',_0x429d89['add']['length']))});continue;}if(null!=_0x429d89['remove']['match'](/^ +$/)){_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Remove:*\x20%0',o(_0x46f501,'ELEMENT_SPACE',_0x429d89['remove']['length']))});continue;}if(''!=_0x429d89['add']){_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Insert:*\x20%0','\x22'+_0x429d89['add']+'\x22')});continue;}_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Remove:*\x20%0','\x22'+_0x429d89['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Insert:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Remove:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'addContainer':_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Split:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'removeContainer':_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Merge:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'addFormat':_0x55dd7d['push'](_0x429d89['key']);continue;case'removeFormat':_0x5c79d8['push'](_0x429d89['key']);continue;default:_0x57af4f['push'](_0x429d89);}if(_0x55dd7d['length']){const _0x3605e6=_0x55dd7d['map'](_0x245e5a=>this['_attributeLabels']['has'](_0x245e5a)?this['_attributeLabels']['get'](_0x245e5a):_0x245e5a)['join'](',\x20');_0x57af4f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3605e6)});}if(_0x5c79d8['length']){const _0x35a0e0=_0x5c79d8['map'](_0x3a2a23=>this['_attributeLabels']['has'](_0x3a2a23)?this['_attributeLabels']['get'](_0x3a2a23):_0x3a2a23)['join'](',\x20');_0x57af4f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x35a0e0)});}return _0x57af4f;}['_handleCustomCallbackDescription'](_0xe8cb2b){for(const _0x4f5e33 of this['_customCallbacks']){const _0x705779=_0x4f5e33(_0xe8cb2b);if(_0x705779&&'type'in _0x705779)return _0x705779;}}['_handleAttributeSuggestionDescription'](_0x197865,_0x4e2d0a){const _0x1b87c7=_0x4e2d0a['data'],_0x5cc7bb=void 0x0===_0x1b87c7['newValue']?'removeFormat':'addFormat';_0x197865['push']({'type':_0x5cc7bb,'key':_0x1b87c7['key']});}['_handleRenameSuggestionDescription'](_0x43c681,_0x447a28){_0x43c681['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x447a28['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x762a5f,_0x213cbc,_0x72c1ea){if(this['_addDescriptionItems'](_0x762a5f,_0x213cbc),_0x72c1ea&&_0x72c1ea['getFirstRange']()&&!_0x213cbc['getFirstRange']()['end']['isEqual'](_0x72c1ea['getFirstRange']()['start'])){const _0x40e2a6=_0x762a5f[_0x762a5f['length']-0x1],_0x2b00e0='insertion'==_0x213cbc['type']?'add':'remove';_0x40e2a6&&'text'==_0x40e2a6['type']&&(_0x40e2a6[_0x2b00e0]+='\x0a');}}}class U extends _0x3870c0{['afterInit'](){const _0x140691=this['editor'],_0x23360a=_0x140691['plugins']['get']('TrackChangesEditing');_0x140691['commands']['get']('showAIAssistant')&&_0x23360a['enableCommand']('showAIAssistant');}}class V extends _0x3870c0{['afterInit'](){const _0x4fde54=this['editor'],_0x4c9bc3=_0x4fde54['locale'];if(!_0x4fde54['plugins']['has']('AlignmentEditing'))return;const _0x613fef=_0x4fde54['plugins']['get']('TrackChangesEditing');_0x613fef['enableDefaultAttributesIntegration']('alignment'),_0x613fef['registerBlockAttribute']('alignment'),_0x613fef['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c9bc3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51aa68=this['editor'],_0x345a38=_0x51aa68['locale'];_0x51aa68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19beb7=>{if('formatBlock'!=_0x19beb7['type'])return;const {data:_0x48d1eb}=_0x19beb7;if(_0x48d1eb&&'alignment'==_0x48d1eb['commandName']){const _0x382a11=_0x48d1eb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x345a38,'*Format:*\x20%0',function(_0x3b9212){switch(_0x3b9212){case'left':return o(_0x345a38,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x345a38,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x345a38,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x345a38,'FORMAT_JUSTIFY_TEXT');}}(_0x382a11))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3870c0{['afterInit'](){const _0x1e9f59=this['editor'],_0x5b03bd=_0x1e9f59['plugins']['get']('TrackChangesEditing'),_0x3533e5=_0x1e9f59['locale'];for(const _0x335672 of ti){if(!_0x1e9f59['plugins']['has'](_0x335672))continue;const _0x15cd38=_0x335672['slice'](0x0,-0x7)['toLowerCase'](),_0x1ae2a0='FORMAT_'+_0x15cd38['toUpperCase']();_0x5b03bd['enableDefaultAttributesIntegration'](_0x15cd38),_0x5b03bd['registerInlineAttribute'](_0x15cd38),_0x5b03bd['descriptionFactory']['registerAttributeLabel'](_0x15cd38,o(_0x3533e5,_0x1ae2a0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3924e5=this['editor'],_0x49b5b0=_0x3924e5['locale'],_0x138be1=_0x3924e5['plugins']['get']('TrackChangesEditing');function _0x1c3c6b(_0x1c559a,_0x3e18c8){_0x138be1['descriptionFactory']['registerDescriptionCallback'](_0x1785f2=>{if('formatInline'!=_0x1785f2['type'])return;const {data:_0x37d1ec}=_0x1785f2;return _0x37d1ec&&_0x37d1ec['commandName']===_0x1c559a?_0x37d1ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49b5b0,'*Format:*\x20%0',_0x3e18c8)}:{'type':'format','content':o(_0x49b5b0,'*Remove\x20format:*\x20%0',_0x3e18c8)}:void 0x0;});}_0x1c3c6b('bold',o(_0x49b5b0,'FORMAT_BOLD')),_0x1c3c6b('italic',o(_0x49b5b0,'FORMAT_ITALIC')),_0x1c3c6b('underline',o(_0x49b5b0,'FORMAT_UNDERLINE')),_0x1c3c6b('code',o(_0x49b5b0,'FORMAT_CODE')),_0x1c3c6b('strikethrough',o(_0x49b5b0,'FORMAT_STRIKETHROUGH')),_0x1c3c6b('subscript',o(_0x49b5b0,'FORMAT_SUBSCRIPT')),_0x1c3c6b('superscript',o(_0x49b5b0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3870c0{['afterInit'](){const _0x167b86=this['editor'],_0x58db59=_0x167b86['locale'];if(!_0x167b86['plugins']['has']('BlockQuoteEditing'))return;const _0x530045=_0x167b86['plugins']['get']('TrackChangesEditing'),_0x197d0f=this['editor']['commands']['get']('blockQuote');_0x530045['enableCommand']('blockQuote',(_0x34569a,_0x27b663={})=>{const _0x18cf91=this['editor']['model']['document']['selection'],_0x46d407=_0x27b663&&void 0x0!==_0x27b663['forceValue']?_0x27b663['forceValue']:!_0x197d0f['value'];let _0x57627b=[];if(_0x46d407){const _0x186070=Array['from'](_0x18cf91['getSelectedBlocks']())['filter'](_0x313273=>oo(_0x313273)||function(_0x146ca7,_0x4db5a9){const _0x908fb4=_0x4db5a9['checkChild'](_0x146ca7['parent'],'blockQuote'),_0x2f158b=_0x4db5a9['checkChild'](['$root','blockQuote'],_0x146ca7);return _0x908fb4&&_0x2f158b;}(_0x313273,this['editor']['model']['schema']));_0x57627b=to(_0x186070,_0x167b86['model']);}else{const _0x390eec=Array['from'](_0x18cf91['getSelectedBlocks']())['filter'](_0x49c3e0=>oo(_0x49c3e0));_0x57627b=to(_0x390eec,_0x167b86['model']);}_0x167b86['model']['change'](()=>{for(const _0x133330 of _0x57627b)_0x530045['markBlockFormat'](_0x133330,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x46d407}]});});}),_0x530045['descriptionFactory']['registerDescriptionCallback'](_0x39b400=>{const {data:_0x4872df}=_0x39b400;if(_0x4872df&&'blockQuote'==_0x4872df['commandName']){const _0x2c0dd5=o(_0x58db59,'ELEMENT_BLOCK_QUOTE');return _0x4872df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58db59,'*Set\x20format:*\x20%0',_0x2c0dd5)}:{'type':'format','content':o(_0x58db59,'*Remove\x20format:*\x20%0',_0x2c0dd5)};}});}}function oo(_0x593a77){return'blockQuote'==_0x593a77['parent']['name'];}class L extends _0x3870c0{['afterInit'](){const _0x42090e=this['editor'],_0x174704=_0x42090e['locale'],_0x2e1dcc=_0x42090e['plugins']['get']('TrackChangesEditing');_0x42090e['plugins']['has']('BookmarkEditing')&&(_0x2e1dcc['enableCommand']('insertBookmark'),_0x2e1dcc['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e1dcc['registerBlockAttribute']('bookmarkId'),_0x2e1dcc['descriptionFactory']['registerDescriptionCallback'](_0x23ba7c=>{if('insertion'!=_0x23ba7c['type']&&'deletion'!=_0x23ba7c['type']&&'attribute'!=_0x23ba7c['type'])return;const _0x47f7a7=_0x23ba7c['getContainedElement']();if(null==_0x47f7a7)return;if(!_0x47f7a7['is']('element','bookmark'))return;const _0x82444c=_0x47f7a7['getAttribute']('bookmarkId');if('insertion'==_0x23ba7c['type'])return{'type':'insertion','content':o(_0x174704,'*Insert:*\x20%0','\x22'+_0x82444c+'\x22\x20'+o(_0x174704,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23ba7c['type'])return{'type':'deletion','content':o(_0x174704,'*Remove:*\x20%0','\x22'+_0x82444c+'\x22\x20'+o(_0x174704,'ELEMENT_BOOKMARK'))};const {data:_0x5ce391}=_0x23ba7c;if(!_0x5ce391||'bookmarkId'!=_0x5ce391['key'])return;return{'type':'format','content':o(_0x174704,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ce391['newValue']+'\x22')};}));}}class J extends _0x3870c0{['afterInit'](){const _0x3eaf23=this['editor'];_0x3eaf23['plugins']['has']('CaseChange')&&(_0x3eaf23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3eaf23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3eaf23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3870c0{['afterInit'](){const _0x2013db=this['editor'];_0x2013db['commands']['get']('ckbox')&&_0x2013db['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3870c0{['afterInit'](){const _0x233243=this['editor'];if(!_0x233243['plugins']['has']('CodeBlock'))return;const _0x44bfc3=_0x233243['plugins']['get']('TrackChangesEditing'),_0x470e30=_0x233243['locale'],_0x1d9b4a=_0x233243['config']['get']('codeBlock')['languages'],_0x1aff29=_0x233243['commands']['get']('codeBlock');_0x44bfc3['enableCommand']('indentCodeBlock'),_0x44bfc3['enableCommand']('outdentCodeBlock'),_0x44bfc3['enableCommand']('codeBlock',(_0x357961,_0x409737={})=>{const _0x2ade90=_0x233243['model'],_0xefbccc=_0x233243['model']['document']['selection'],_0x46bfdf=_0x409737&&void 0x0!==_0x409737['forceValue']?_0x409737['forceValue']:!_0x1aff29['value'];let _0x38ee3f;_0x409737['language']||(_0x409737['language']=_0x1d9b4a[0x0]['language']),_0x38ee3f=_0x46bfdf?Array['from'](_0xefbccc['getSelectedBlocks']())['filter'](_0x45b67b=>eo(_0x45b67b)||function(_0x277be7,_0x76d97b){if(_0x277be7['is']('rootElement')||_0x76d97b['isLimit'](_0x277be7))return!0x1;return _0x76d97b['checkChild'](_0x277be7['parent'],'codeBlock');}(_0x45b67b,_0x2ade90['schema'])):Array['from'](_0xefbccc['getSelectedBlocks']())['filter'](_0x459813=>eo(_0x459813));const _0x3b4a55=to(_0x38ee3f,_0x2ade90);_0x2ade90['change'](()=>{for(const _0x4df02d of _0x3b4a55)_0x44bfc3['markBlockFormat'](_0x4df02d,{'commandName':'codeBlock','commandParams':[{..._0x409737,'forceValue':_0x46bfdf}],'formatGroupId':'blockName'});});}),(_0x44bfc3['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d9995=>o(_0x470e30,'ELEMENT_CODE_BLOCK',_0x3d9995)),_0x44bfc3['descriptionFactory']['registerDescriptionCallback'](_0x4765c9=>{if('formatBlock'!=_0x4765c9['type'])return;const _0x1241b3=_0x470e30['t'],{data:_0x2418ec}=_0x4765c9;if(!_0x2418ec||'codeBlock'!=_0x2418ec['commandName'])return;const _0x2e8588=_0x2418ec['commandParams'][0x0]['language'],_0x57c35a=_0x1241b3(_0x1d9b4a['find'](_0x26ac2b=>_0x26ac2b['language']===_0x2e8588)['label'])['toLowerCase']();return _0x2418ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x470e30,'*Set\x20format:*\x20%0',o(_0x470e30,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x57c35a+')')}:{'type':'format','content':o(_0x470e30,'*Remove\x20format:*\x20%0',o(_0x470e30,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5bc18e){return'codeBlock'==_0x5bc18e['name'];}class z extends _0x3870c0{['afterInit'](){const _0x4b8cd5=this['editor'];if(!_0x4b8cd5['plugins']['has']('CommentsEditing'))return;_0x4b8cd5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x54d9d5,_0x4ff20d,_0xeda4f4){const _0x1f9976=[];for(const _0x276dad of _0x4ff20d['getItems']())_0x276dad['hasAttribute'](_0x54d9d5)&&_0x1f9976['push'](_0xeda4f4['createRangeOn'](_0x276dad));return _0x1f9976;}function De(_0xd4ef00,_0xf2015c,{showActiveMarker:_0x4de181=!0x0}={}){const _0x28413c=_0xd4ef00['plugins']['get']('TrackChangesEditing');return(_0x2c29b1,_0x86de33,_0x551fbc)=>{if(!_0x551fbc['consumable']['test'](_0x86de33['markerRange'],_0x2c29b1['name']))return;const _0x36bf72=_0x86de33['markerRange']['getWalker'](),_0x4e80cb=_0x86de33['markerRange']['start'],_0x365dc0=_0xd4ef00['model']['schema'];let _0x5c2540=null,_0x1f31bc=null,_0xc17216=!0x1,_0x32eac7=!0x1;for(const _0x46ba6a of _0x36bf72){const _0x1a5bb6=_0x46ba6a['item'];_0xc17216=_0xc17216||_0x365dc0['isContent'](_0x1a5bb6);const _0x802e2e=_0x551fbc['mapper']['toViewElement'](_0x1a5bb6);if(_0x802e2e&&_0x802e2e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46ba6a['type']&&(_0x365dc0['isBlock'](_0x1a5bb6)&&!_0x365dc0['isLimit'](_0x1a5bb6)&&(_0x1a5bb6['nextSibling']||_0x4e80cb['isAtEnd']?_0x5c2540&&_0x5c2540['parent']==_0x1a5bb6||(_0x5c2540=_0x1a5bb6,_0x1e6bd5(_0x46ba6a['previousPosition']),_0x32eac7=!0x0):_0x1f31bc=_0x1f31bc||_0x46ba6a['previousPosition']));}function _0x1e6bd5(_0xaa19b3){const {authorId:_0x19f005}=_0x28413c['_splitMarkerName'](_0x86de33['markerName']),_0x2f1f73=_0x551fbc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf2015c,'data-author-id':_0x19f005}),_0x184296=_0x551fbc['mapper']['toViewPosition'](_0xaa19b3);_0x4de181&&_0x28413c['activeMarkers']['includes'](_0x86de33['markerName'])&&_0x551fbc['writer']['addClass']('ck-suggestion-marker--active',_0x2f1f73),_0x551fbc['writer']['insert'](_0x184296,_0x2f1f73),_0x551fbc['mapper']['bindElementToMarker'](_0x2f1f73,_0x86de33['markerName']);}_0xc17216||_0x32eac7||!_0x1f31bc||_0x1e6bd5(_0x1f31bc);};}class K extends _0x3870c0{static get['requires'](){return[_0x387fbd];}['init'](){const _0x35f5ff=this['editor'],_0x1b10fa=_0x35f5ff['plugins']['get']('TrackChangesEditing');_0x1b10fa['enableCommand']('delete');const _0x3465cd=_0x35f5ff['commands']['get']('deleteForward');_0x1b10fa['enableCommand']('deleteForward',(_0x5537ec,_0x5a62b6={})=>{const _0xa7a53=_0x35f5ff['model']['createSelection'](_0x35f5ff['model']['document']['selection']);_0xa7a53['isCollapsed']&&_0x35f5ff['model']['modifySelection'](_0xa7a53,{'direction':'forward','unit':_0x5a62b6['unit']});const _0x16608d=_0xa7a53['getFirstRange'](),_0x7cfaad=_0x1abeca['fromRange'](_0x16608d);let _0x2ca170;_0x5537ec(_0x5a62b6),_0x2ca170='$graveyard'==_0x7cfaad['root']['rootName']?_0x35f5ff['model']['createRange'](_0x16608d['start']):_0x35f5ff['model']['createRange'](_0x7cfaad['start'],_0x7cfaad['end']),_0x7cfaad['detach'](),_0x35f5ff['model']['enqueueChange'](_0x3465cd['buffer']['batch'],_0xdf16b5=>{_0x3465cd['buffer']['lock'](),_0xdf16b5['setSelection'](_0xdf16b5['createRange'](_0x2ca170['end'])),_0x3465cd['buffer']['unlock']();});}),_0x35f5ff['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x35f5ff,'merge'),{'priority':'high'}),_0x35f5ff['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x47ac49,_0x221534,_0x391002)=>{_0x391002['options']['showSuggestionHighlights']&&De(_0x35f5ff,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x47ac49,_0x221534,_0x391002);},{'priority':'high'}),_0x35f5ff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xe2b6d4,_0x1ee429,_0x57ff04)=>{const _0x204b4b=_0x57ff04['mapper']['markerNameToElements'](_0x1ee429['markerName']);if(_0x204b4b){for(const _0x2ba431 of _0x204b4b)_0x2ba431['is']('uiElement')&&(_0x57ff04['mapper']['unbindElementFromMarkerName'](_0x2ba431,_0x1ee429['markerName']),_0x57ff04['writer']['remove'](_0x2ba431));}},{'priority':'high'});}}class W extends _0x3870c0{['afterInit'](){const _0x5cb753=this['editor'];if(!_0x5cb753['plugins']['has']('ListEditing'))return;const _0x16a84a=_0x5cb753['locale'],_0x14921c=_0x5cb753['plugins']['get']('TrackChangesEditing'),_0x23f8c5=_0x5cb753['plugins']['has']('TodoListEditing'),_0x57428f=!!_0x5cb753['config']['get']('list.multiBlock');function _0x2e8a8e(_0x4b7d2d){return{'type':'format','content':''+o(_0x16a84a,'*Set\x20format:*\x20%0',_0x4b7d2d)};}function _0x237f07(_0x15ff34){return{'type':'format','content':''+o(_0x16a84a,'*Remove\x20format:*\x20%0',_0x15ff34)};}_0x14921c['enableDefaultAttributesIntegration']('numberedList'),_0x14921c['enableDefaultAttributesIntegration']('bulletedList'),_0x14921c['enableDefaultAttributesIntegration']('customNumberedList'),_0x14921c['enableDefaultAttributesIntegration']('customBulletedList'),_0x14921c['enableDefaultAttributesIntegration']('indentList'),_0x14921c['enableDefaultAttributesIntegration']('outdentList'),_0x14921c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x14921c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x14921c['registerBlockAttribute']('listItemId'),_0x14921c['registerBlockAttribute']('listType'),_0x14921c['registerBlockAttribute']('listIndent'),_0x57428f&&(_0x14921c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x14921c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23f8c5&&(_0x14921c['enableDefaultAttributesIntegration']('todoList'),_0x14921c['enableDefaultAttributesIntegration']('checkTodoList'),_0x14921c['registerBlockAttribute']('todoListChecked'),_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x57ac0f=>{const {data:_0x3ef363}=_0x57ac0f;if(_0x3ef363&&'todoListChecked'==_0x3ef363['key'])return{'type':'format','content':_0x3ef363['newValue']?o(_0x16a84a,'*Check\x20item*'):o(_0x16a84a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31664c=>{if(_0x31664c['batch']['isUndo'])return!0x1;let _0x1c1078=!0x1;const _0x11d6ca=_0x14921c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59d039=>'todoListChecked'===_0x14921c['_getAttributeKey'](_0x59d039));for(const _0x3be1ac of _0x11d6ca){'todo'!=_0x3be1ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x14921c['_findSuggestions'](_0x3be1ac['getFirstRange'](),'attribute')['find'](_0x19e9e2=>'listType'===_0x14921c['_getAttributeKey'](_0x19e9e2['suggestion']))||(_0x31664c['removeMarker'](_0x3be1ac['getFirstMarker']()),_0x1c1078=!0x0));}return _0x1c1078;})),_0x14921c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x16a84a,'FORMAT_INDENT'));const _0x4834ce={'type':'format','content':''};_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x2f5fa2=>{const {data:_0x422611}=_0x2f5fa2;if(!_0x422611||'listType'!=_0x422611['key'])return;let _0x4c0b46=_0x2f5fa2['head'];for(;_0x4c0b46;){if(_0x4c0b46['data']&&(('listStyle'==_0x4c0b46['data']['key']||'listMarkerStyle'==_0x4c0b46['data']['key'])&&(_0x4c0b46['data']['newValue']&&'default'!=_0x4c0b46['data']['newValue']||'default'!=_0x4c0b46['data']['oldValue']&&!_0x422611['newValue'])||!_0x57428f&&_0x4c0b46['data']['key']==m))return _0x4834ce;_0x4c0b46=_0x4c0b46['next'];}if(null==_0x422611['newValue'])switch(_0x422611['oldValue']){case'bulleted':return _0x237f07(o(_0x16a84a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x237f07(o(_0x16a84a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x237f07(o(_0x16a84a,'ELEMENT_TODO_LIST'));}switch(_0x422611['newValue']){case'bulleted':return _0x2e8a8e(o(_0x16a84a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e8a8e(o(_0x16a84a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e8a8e(o(_0x16a84a,'ELEMENT_TODO_LIST'));}}),_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x4e1c98=>{const {data:_0x1588ee}=_0x4e1c98;if(_0x1588ee&&'listIndent'==_0x1588ee['key'])return null==_0x1588ee['newValue']||null==_0x1588ee['oldValue']&&0x0==_0x1588ee['newValue']?_0x4834ce:void 0x0;}),_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x3729af=>{if('attribute'!=_0x3729af['type'])return;const {data:_0x28e9bc}=_0x3729af;if(!_0x28e9bc||'listItemId'!=_0x28e9bc['key'])return;const _0x523087=Te(_0x3729af);return'newValue'==_0x523087?{'type':'format','content':o(_0x16a84a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x523087?{'type':'format','content':o(_0x16a84a,'*Split:*\x20list\x20item')}:_0x4834ce;}),_0x5cb753['model']['document']['registerPostFixer'](_0x480f69=>this['listItemIdFixer'](_0x480f69)),_0x5cb753['model']['document']['registerPostFixer'](_0x526481=>this['noTrackChangesFixer'](_0x526481)),_0x5cb753['model']['document']['on']('change:data',(_0x24d49d,_0x3c66dd)=>{if(_0x3c66dd['isUndo']||!_0x3c66dd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5d5318){if(_0x5d5318['batch']['isUndo']||!_0x5d5318['batch']['isLocal'])return!0x1;let _0x3e4e9d=!0x1;const _0x1fc265=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x266720=>_0x266720['data']&&'listItemId'==_0x266720['data']['key'])['filter'](_0xa09095=>_0xa09095['data']['newValue']&&_0xa09095['data']['oldValue']);for(const _0x165061 of _0x1fc265)Te(_0x165061)||(_0x5d5318['removeMarker'](_0x165061['getFirstMarker']()),_0x3e4e9d=!0x0);return _0x3e4e9d;}['noTrackChangesFixer'](_0x49dc22){if(_0x49dc22['batch']['isUndo']||!_0x49dc22['batch']['isLocal'])return!0x1;const _0x37a56b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x37a56b['trackChangesCommand']['value'])return!0x1;let _0x12167d=!0x1;const _0x55a246=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x18e372=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x23abad=>'attribute'==_0x23abad['type'])['filter'](_0x5dac1b=>_0x55a246['includes'](_0x5dac1b['attributeKey']));if(0x0==_0x18e372['length'])return _0x12167d;for(const _0x4c3dab of _0x18e372){const _0x46bb2e=_0x37a56b['_findSuggestions'](_0x4c3dab['range'],'attribute')['filter'](_0x1f4cf0=>!_0x1f4cf0['meta']['isNextTo'])['map'](_0x29ed28=>_0x29ed28['suggestion'])['filter'](_0x5d849b=>{const _0x4fc6cd=_0x37a56b['_getAttributeKey'](_0x5d849b);return _0x55a246['includes'](_0x4fc6cd);});if(_0x46bb2e['length']){for(const _0x33de44 of _0x46bb2e)_0x49dc22['removeMarker'](_0x33de44['getFirstMarker']());_0x12167d=!0x0;}}return _0x12167d;}['assureChains'](){const _0x2fbf45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55bab8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x389c17;const _0x14a9ef=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55e178=>{if(_0x55e178['data']['oldRange']||!_0x55e178['data']['newRange'])return null;if(!_0x55e178['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1800f0}=_0x2fbf45['_splitMarkerName'](_0x55e178['name']);if(!_0x2fbf45['hasSuggestion'](_0x1800f0))return null;const _0x3797a0=_0x2fbf45['getSuggestion'](_0x1800f0);return _0x55bab8['includes'](_0x3797a0['data']['key']);})['map'](_0x3f9d2b=>{const {id:_0xfc4648}=_0x2fbf45['_splitMarkerName'](_0x3f9d2b['name']),_0x4b1701=_0x2fbf45['getSuggestion'](_0xfc4648);return _0x389c17=_0x4b1701['attributes']['groupId'],_0x4b1701['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14a9ef['size'])return;const _0x10e91c=_0x2fbf45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x439161=>'attribute'==_0x439161['type']&&_0x439161['data']&&_0x55bab8['includes'](_0x439161['data']['key'])&&_0x439161['attributes']['groupId']!=_0x389c17)['map'](_0x1f1c49=>({'listItem':_0x1f1c49['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1f1c49['attributes']['groupId']})),_0x3f4b17=new Set();for(const {groupId:_0x58faa2,listItem:_0x35db8a}of _0x10e91c)_0x14a9ef['has'](_0x35db8a)&&_0x3f4b17['add'](_0x58faa2);for(const _0xefeb85 of _0x2fbf45['getSuggestions']())_0x3f4b17['has'](_0xefeb85['attributes']['groupId'])&&_0xefeb85['setAttribute']('groupId',_0x389c17);}['_supportLegacySuggestions'](){const _0x529b21=this['editor'],_0x27ac65=_0x529b21['locale'],_0xc5c218=_0x529b21['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc5c218['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa630ca,_0x27a4eb){const _0x2d5bbb=[];for(let _0x27d272 of _0xa630ca)_0x27d272['start']['nodeAfter']===_0x27d272['end']['parent']&&(_0x27d272=_0x529b21['model']['createRange'](_0x529b21['model']['createPositionAt'](_0x27d272['start']['nodeAfter'],0x0))),_0x2d5bbb['push'](_0x27d272);_0x529b21['model']['change'](_0x46519f=>{const _0x2d8567=_0x529b21['model']['document']['selection'],_0x4db719=Array['from'](_0x2d8567['getRanges']())['map'](_0x3781c8=>_0x1abeca['fromRange'](_0x3781c8));_0x46519f['setSelection'](_0x2d5bbb),_0x529b21['commands']['get'](_0x27a4eb['commandName'])['refresh'](),_0x27a4eb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x529b21['execute'](_0x27a4eb['commandName'],..._0x27a4eb['commandParams']),_0x46519f['setSelection'](_0x4db719);for(const _0xe71ed1 of _0x4db719)_0xe71ed1['detach']();});}),_0xc5c218['descriptionFactory']['registerElementLabel'](function(_0x2e1966){const _0x18b360=!_0x529b21['model']['schema']['isObject'](_0x2e1966),_0x2ac254=_0x2e1966['previousSibling'],_0x4de0b8=_0x2e1966['nextSibling'],_0x30a3e3=_0x2e1966['getAttribute']('listItemId'),_0x38a5e3=!_0x2ac254||_0x2ac254['getAttribute']('listItemId')!==_0x30a3e3,_0x4c304d=!_0x4de0b8||_0x4de0b8['getAttribute']('listItemId')!==_0x30a3e3;return _0x18b360&&Boolean(_0x30a3e3)&&_0x38a5e3&&_0x4c304d;},_0xeb73d6=>o(_0x27ac65,'ELEMENT_LIST_ITEM',_0xeb73d6));}['_registerLegacyDescription'](){const _0x361f45=this['editor'],_0x4b3a84=_0x361f45['locale'];function _0x9967bf(_0x1b787d){const _0x3c4d1e=_0x361f45['commands']['get']('bulletedList')['value'],_0x462e7e=_0x361f45['commands']['get']('numberedList')['value'];return'numberedList'===_0x1b787d?_0x3c4d1e:_0x462e7e;}_0x361f45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x164285){if('formatBlock'!=_0x164285['type'])return;const {data:_0x1459c6}=_0x164285;if(!_0x1459c6)return;let _0x15fae8,_0x5be28b,_0x20b22c,_0x2f2d88;switch(_0x1459c6['commandName']){case'bulletedList':_0x20b22c=_0x1459c6['commandParams'][0x0]['forceValue'],_0x2f2d88=_0x9967bf(_0x1459c6['commandName']),_0x15fae8=_0x20b22c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f2d88&&_0x361f45['config']['get']('list.multiBlock')||(_0x15fae8='*Change\x20to:*\x20%0'),_0x5be28b={'type':'format','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x20b22c=_0x1459c6['commandParams'][0x0]['forceValue'],_0x2f2d88=_0x9967bf(_0x1459c6['commandName']),_0x15fae8=_0x20b22c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f2d88&&_0x361f45['config']['get']('list.multiBlock')||(_0x15fae8='*Change\x20to:*\x20%0'),_0x5be28b={'type':'format','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15fae8='*Indent:*\x20%0',_0x5be28b={'type':'format','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15fae8=function(_0x5c8ff){const _0x45dbac=_0x5c8ff['getFirstRange']();let _0x27094e=_0x45dbac['start']['nodeAfter'];for(;_0x27094e&&_0x45dbac['containsItem'](_0x27094e);){if(_0x27094e['getAttribute']('listIndent')>0x0)return!0x1;_0x27094e=_0x27094e['nextSibling'];}return!0x0;}(_0x164285)?o(_0x4b3a84,'*Format:*\x20remove\x20from\x20%0',o(_0x4b3a84,function(_0x99066b){return'ELEMENT_'+_0x99066b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x164285))):o(_0x4b3a84,'*Outdent:*\x20%0',o(_0x4b3a84,'ELEMENT_LIST_ITEM')),_0x5be28b={'type':'format','content':_0x15fae8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1459c6['multipleBlocks']&&(_0x15fae8='*Merge:*\x20%0',_0x5be28b={'type':'deletion','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_LIST_ITEM'))});}return _0x5be28b;});}}function Te(_0x13821c){let _0x45441c=_0x13821c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x45441c;){const _0x56e80d=_0x45441c['getAttribute']('listItemId');if(!_0x56e80d)return!0x1;if(_0x56e80d==_0x13821c['data']['newValue'])return'newValue';if(_0x56e80d==_0x13821c['data']['oldValue'])return'oldValue';_0x45441c=_0x45441c['previousSibling'];}return!0x1;}class Se extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf11fa9=this['editor']['config']['get']('list.properties'),_0x4bc1d5=this['editor']['plugins']['get']('TrackChangesEditing');_0xf11fa9['styles']&&(_0x4bc1d5['enableDefaultAttributesIntegration']('listStyle'),_0x4bc1d5['registerBlockAttribute']('listStyle')),_0xf11fa9['reversed']&&(_0x4bc1d5['enableDefaultAttributesIntegration']('listReversed'),_0x4bc1d5['registerBlockAttribute']('listReversed')),_0xf11fa9['startIndex']&&(_0x4bc1d5['enableDefaultAttributesIntegration']('listStart'),_0x4bc1d5['registerBlockAttribute']('listStart'));const _0x90e231={'type':'format','content':''};_0x4bc1d5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ef3e0=this['editor']['locale'];_0x4bc1d5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ef3e0,'FORMAT_LIST_REVERSED')),_0x4bc1d5['descriptionFactory']['registerDescriptionCallback'](_0x51812d=>{const {data:_0x589d1d}=_0x51812d;if(_0x589d1d&&'listReversed'==_0x589d1d['key'])return null==_0x589d1d['newValue']||0x0==_0x589d1d['newValue']&&null==_0x589d1d['oldValue']?_0x90e231:void 0x0;}),_0x4bc1d5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ef3e0,'FORMAT_LIST_START')),_0x4bc1d5['descriptionFactory']['registerDescriptionCallback'](_0x5c5ef6=>{const {data:_0x3fd7a5}=_0x5c5ef6;if(_0x3fd7a5&&'listStart'==_0x3fd7a5['key'])return null==_0x3fd7a5['newValue']||0x1==_0x3fd7a5['newValue']&&null==_0x3fd7a5['oldValue']?_0x90e231:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x104d0a=>{if(_0x104d0a['batch']['isUndo'])return!0x1;let _0x264429=!0x1;const _0x275999=_0x4bc1d5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x122435=>{const _0xbe45ec=_0x4bc1d5['_getAttributeKey'](_0x122435);return'listStart'==_0xbe45ec||'listReversed'==_0xbe45ec;});for(const _0x547c1e of _0x275999){const _0x458691=_0x547c1e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x458691||'customNumbered'==_0x458691)continue;_0x4bc1d5['_findSuggestions'](_0x547c1e['getFirstRange'](),'attribute')['find'](_0x4b7b21=>'listType'==_0x4bc1d5['_getAttributeKey'](_0x4b7b21['suggestion']))||(_0x104d0a['removeMarker'](_0x547c1e['getFirstMarker']()),_0x264429=!0x0);}return _0x264429;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf9d10c){const _0x26e46c=this['editor']['locale'],{data:_0x4dd066}=_0xf9d10c,_0x19d377={'type':'format','content':''};if(!_0x4dd066||'listStyle'!=_0x4dd066['key'])return;if(!_0x4dd066['oldValue'])return'default'==_0x4dd066['newValue']?_0x19d377:{'type':'format','content':''+o(_0x26e46c,'*Set\x20format:*\x20%0',o(_0x26e46c,this['_getTranslationKeyForListStyle'](_0x4dd066['newValue'])))};if(!_0x4dd066['newValue']){if('default'==_0x4dd066['oldValue'])return _0x19d377;let _0x380797=_0xf9d10c['head'];for(;_0x380797;){if(_0x380797['data']&&'listType'==_0x380797['data']['key']&&_0x380797['data']['newValue'])return _0x19d377;_0x380797=_0x380797['next'];}return{'type':'format','content':''+o(_0x26e46c,'*Remove\x20format:*\x20%0',o(_0x26e46c,this['_getTranslationKeyForListStyle'](_0x4dd066['oldValue'])))};}if('default'!=_0x4dd066['newValue'])return{'type':'format','content':''+o(_0x26e46c,'*Set\x20format:*\x20%0',o(_0x26e46c,this['_getTranslationKeyForListStyle'](_0x4dd066['newValue'])))};let _0x2a9cd9=_0xf9d10c['head'];for(;_0x2a9cd9;){if(_0x2a9cd9['data']&&'listType'==_0x2a9cd9['data']['key']&&_0x2a9cd9['data']['newValue']&&_0x2a9cd9['data']['oldValue'])return _0x19d377;_0x2a9cd9=_0x2a9cd9['next'];}return{'type':'format','content':o(_0x26e46c,'*Set\x20format:*\x20%0',o(_0x26e46c,'ELEMENT_'+_0xf9d10c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ec3d8=this['editor'],_0x114a50=_0x2ec3d8['locale'];_0x2ec3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4908=>{if('formatBlock'!=_0x1b4908['type'])return;const {data:_0x5b4072}=_0x1b4908;if(!_0x5b4072)return;let _0x418f0d,_0x1d28e0;switch(_0x5b4072['commandName']){case'listStyle':_0x418f0d='*Change\x20to:*\x20%0',_0x1d28e0={'type':'format','content':o(_0x114a50,_0x418f0d,o(_0x114a50,this['_getTranslationKeyForListStyle'](_0x5b4072['commandParams'][0x0]['type'])))};break;case'listReversed':_0x418f0d=_0x5b4072['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d28e0={'type':'format','content':o(_0x114a50,_0x418f0d)};break;case'listStart':_0x418f0d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d28e0={'type':'format','content':o(_0x114a50,_0x418f0d,_0x5b4072['commandParams'][0x0]['startIndex'])};}return _0x1d28e0;});}['_getTranslationKeyForListStyle'](_0x333995){return'ELEMENT_'+function(_0x346466){if(_e['includes'](_0x346466))return'bulleted';if(Re['includes'](_0x346466))return'numbered';return null;}(_0x333995)['toUpperCase']()+'_LIST_'+_0x333995['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3870c0{['afterInit'](){const _0x40b05a=this['editor'];_0x40b05a['commands']['get']('emoji')&&_0x40b05a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3870c0{static get['requires'](){return[_0x21a068];}['init'](){const _0x29e284=this['editor'],_0x4f1caf=_0x29e284['plugins']['get']('TrackChangesEditing'),_0x24c6b5=_0x29e284['commands']['get']('enter');_0x4f1caf['enableCommand']('enter',()=>{_0x29e284['model']['change'](_0xa0f0b3=>{const _0x188774=_0x29e284['model']['document']['selection'],_0x598a6d=_0x188774['getFirstPosition'](),_0x4dbd5c=_0x1abeca['fromRange'](_0x188774['getFirstRange']());if(_0x24c6b5['enterBlock'](_0xa0f0b3)){const _0x483d0c=_0x29e284['model']['createPositionAt'](_0x598a6d['parent']['nextSibling'],0x0),_0x46d550=_0xa0f0b3['createRange'](_0x598a6d,_0x483d0c);_0x4f1caf['markInsertion'](_0x46d550);}else _0xa0f0b3['setSelection'](_0xa0f0b3['createRange'](_0x4dbd5c['end']));_0x4dbd5c['detach'](),_0x24c6b5['fire']('afterExecute',{'writer':_0xa0f0b3});});}),_0x29e284['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x29e284,'split'),{'priority':'high'}),_0x29e284['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a3449,_0x24950d,_0x22e447)=>{const _0x1b9803=_0x22e447['mapper']['markerNameToElements'](_0x24950d['markerName']);if(_0x1b9803){for(const _0x51152a of _0x1b9803)_0x51152a['hasClass']('ck-suggestion-marker-split')&&(_0x22e447['mapper']['unbindElementFromMarkerName'](_0x51152a,_0x24950d['markerName']),_0x22e447['writer']['remove'](_0x51152a));}},{'priority':'high'}),_0x29e284['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x150ff5,_0x2669d7,_0x48ea6c)=>{_0x48ea6c['options']['showSuggestionHighlights']&&De(_0x29e284,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x150ff5,_0x2669d7,_0x48ea6c);},{'priority':'high'});}}class Z extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e7398=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e7398['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e7398['enableCommand']('findNext'),_0x1e7398['enableCommand']('findPrevious'),_0x1e7398['enableCommand']('replace'),_0x1e7398['enableCommand']('replaceAll');}['handleFindCommand'](_0x108721,_0x2d9e70,_0x4413b6={}){const _0x2d68dd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x108721(_0x598100=>{let _0x1e99fc=('string'==typeof _0x2d9e70?_0x2d68dd['findByTextCallback'](_0x2d9e70,_0x4413b6):_0x2d9e70)(_0x598100);Array['isArray'](_0x1e99fc)&&(_0x1e99fc={'results':_0x1e99fc,'searchText':'string'==typeof _0x2d9e70?_0x2d9e70:''});const _0x318343=_0x1e99fc['results']['filter'](_0x661c78=>!0x1===this['_isInDeletionRange'](_0x661c78,_0x598100['item']));return{..._0x1e99fc,'results':_0x318343};},_0x4413b6);}['_isInDeletionRange'](_0xa23790,_0x284ccf){const _0x5274a3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x284ccf,_0xa23790['start']),this['editor']['model']['createPositionAt'](_0x284ccf,_0xa23790['end']));for(const _0x39bdbe of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5274a3['getIntersection'](_0x39bdbe['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 _0x3870c0{['afterInit'](){const _0x1fe16c=this['editor']['locale'],_0x1a9375=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x199951,commandName:_0x309a8c}of ro)this['editor']['plugins']['has'](_0x199951)&&(_0x1a9375['enableDefaultAttributesIntegration'](_0x309a8c),_0x1a9375['registerInlineAttribute'](_0x309a8c));_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1fe16c,'FORMAT_FONT_SIZE')),_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1fe16c,'FORMAT_FONT_FAMILY')),_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1fe16c,'FORMAT_FONT_COLOR')),_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1fe16c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd05295=this['editor'],_0x5b8fbf=_0xd05295['locale'];_0xd05295['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x559d80=>{const _0x45a620=_0x5b8fbf['t'];if('formatInline'!=_0x559d80['type'])return;const {data:_0x3aa897}=_0x559d80;if(null!=_0x3aa897){if('fontSize'==_0x3aa897['commandName']){const _0x1b2a1f=_0x3aa897['commandParams'][0x0]['value'];if(_0x1b2a1f){const _0x1b99cb=_0x45a620(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1949c9=>_0x1949c9['model']==_0x1b2a1f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20size:*\x20%0',_0x1b99cb)};}return{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3aa897['commandName']){const _0x5f25b9=_0x3aa897['commandParams'][0x0]['value'];return _0x5f25b9?{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20family:*\x20%0',_0x5f25b9)}:{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3aa897['commandName']){const _0x173db9=_0x3aa897['commandParams'][0x0]['value'];if(_0x173db9){const _0x17923f=_0x323ab2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ee0d6=>_0x5ee0d6['model']==_0x173db9);let _0x4f831d=_0x173db9,_0x410e16='';return _0x17923f&&(_0x4f831d=_0x17923f['label'],_0x410e16=_0x45a620(_0x4f831d)['toLowerCase']()),{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20color:*\x20%0',_0x410e16)['trim'](),'color':{'value':_0x173db9,'title':_0x410e16||_0x4f831d}};}return{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3aa897['commandName']){const _0xa360cb=_0x3aa897['commandParams'][0x0]['value'];if(_0xa360cb){const _0x313347=_0x323ab2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x490bcc=>_0x490bcc['model']==_0xa360cb);let _0x1cfb83=_0xa360cb,_0x3d29ed='';return _0x313347&&(_0x1cfb83=_0x313347['label'],_0x3d29ed=_0x45a620(_0x1cfb83)['toLowerCase']()),{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d29ed)['trim'](),'color':{'value':_0xa360cb,'title':_0x3d29ed||_0x1cfb83}};}return{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x3870c0{['afterInit'](){const _0x52af7c=this['editor'],_0x369242=_0x52af7c['plugins']['get']('TrackChangesEditing'),_0x5d28b1=_0x52af7c['commands']['get']('copyFormat'),_0x3bc383=_0x52af7c['commands']['get']('pasteFormat');_0x5d28b1&&_0x3bc383&&(_0x369242['enableDefaultAttributesIntegration']('pasteFormat'),_0x369242['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20aa7d=this['editor'],_0x5b6869=_0x20aa7d['locale'];_0x20aa7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b7db=>{if('formatBlock'!=_0x42b7db['type']&&'formatInline'!=_0x42b7db['type'])return;const {data:_0x1cfe0e}=_0x42b7db;if(_0x1cfe0e&&'pasteFormat'===_0x1cfe0e['commandName']){const _0x285366=[],_0x5cf318=_0x1cfe0e['commandParams'][0x0];for(const [_0x2e81fd,_0x515666]of Object['entries'](_0x5cf318))_0x285366['push'](so(_0x20aa7d,_0x2e81fd,_0x515666));return _0x285366['length']?{'type':'format','content':o(_0x5b6869,'*Set\x20format\x20to:*\x20%0',_0x285366['join'](',\x20'))}:{'type':'format','content':o(_0x5b6869,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5250af,_0x3acdc3,_0x3967a3){const _0x354844=_0x5250af['locale']['t'],_0x4c99cb=_0x3acdc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x43c974=_0x354844(_0x4c99cb['charAt'](0x0)['toUpperCase']()+_0x4c99cb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3967a3)return _0x43c974;if('fontColor'===_0x3acdc3||'fontBackgroundColor'===_0x3acdc3){const _0x40fe5a=_0x323ab2(_0x5250af['config']['get']('fontColor.colors'))['find'](_0x13ea22=>_0x13ea22['model']==_0x3967a3);return _0x43c974+'\x20('+(_0x40fe5a?_0x354844(_0x40fe5a['label'])['toLowerCase']():_0x3967a3)+')';}if('fontSize'===_0x3acdc3&&isNaN(parseFloat(_0x3967a3))){const _0x337916=_0x5250af['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5250af['config']['get']('fontSize.options'))['find'](_0x1d3e28=>_0x1d3e28['model']==_0x3967a3);return _0x43c974+'\x20('+(_0x337916?_0x354844(_0x337916['title'])['toLowerCase']():_0x3967a3)+')';}return _0x43c974+'\x20('+_0x3967a3+')';}class it extends _0x3870c0{['_headingOptions'];['afterInit'](){const _0x30732d=this['editor'];if(!_0x30732d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x30732d['config']['get']('heading.options');const _0x482878=_0x30732d['locale'],_0x540220=_0x30732d['plugins']['get']('TrackChangesEditing');_0x540220['enableDefaultAttributesIntegration']('heading');for(const _0x3d2e15 of this['_headingOptions'])'paragraph'!=_0x3d2e15['model']&&_0x540220['descriptionFactory']['registerElementLabel'](_0x3d2e15['model'],_0x5dcb64=>{const _0x2c2180=this['_getHeadingLevel'](_0x3d2e15['model']);return null!==_0x2c2180?_0x50e47b(_0x5dcb64,_0x2c2180):_0x39fe23(_0x5dcb64,_0x3d2e15['title']);});function _0x50e47b(_0x4cc86d,_0x4e5586){return o(_0x482878,'ELEMENT_HEADING',[_0x4cc86d,_0x4e5586]);}function _0x39fe23(_0x27fed4,_0x45a55a){return o(_0x482878,'ELEMENT_HEADING_CUSTOM',[_0x27fed4,_0x45a55a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4956fd=this['editor'],_0x127856=_0x4956fd['locale'];function _0x39e11b(_0x1de19d,_0x4ae320){return o(_0x127856,'ELEMENT_HEADING_CUSTOM',[_0x1de19d,_0x4ae320]);}_0x4956fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x502388=>{if('formatBlock'!=_0x502388['type'])return;const {data:_0x29e0d1}=_0x502388;if(_0x29e0d1&&'heading'==_0x29e0d1['commandName']){const _0x29aa69=_0x29e0d1['commandParams'][0x0]['value'],_0x37f9a7=this['_getHeadingLevel'](_0x29aa69);if(null!==_0x37f9a7)return{'type':'format','content':o(_0x127856,'*Change\x20to:*\x20%0',(_0x1ec586=0x1,_0x167d7a=_0x37f9a7,o(_0x127856,'ELEMENT_HEADING',[_0x1ec586,_0x167d7a])))};const _0xa217b2=this['_headingOptions']['find'](_0x4e03c1=>_0x4e03c1['model']===_0x29aa69)['title'];return{'type':'format','content':o(_0x127856,'*Change\x20to:*\x20%0',_0x39e11b(0x1,_0xa217b2))};}var _0x1ec586,_0x167d7a;});}['_getHeadingLevel'](_0x350d9a){const _0x346fb3=_0x350d9a['match'](/^heading(\d+)/);if(_0x346fb3)return _0x346fb3[0x1];const _0x1647e9=this['_headingOptions']?.['find'](_0x56c1ba=>_0x56c1ba['model']==_0x350d9a);if(_0x1647e9&&_0x1647e9['view']){const _0xda4915=_0x1647e9['view'],_0x48c17f=(_0xda4915['name']??_0xda4915)['match'](/^h(\d+)/);if(_0x48c17f)return _0x48c17f[0x1];}return null;}}class et extends _0x3870c0{['afterInit'](){const _0x4f8b47=this['editor'];if(!_0x4f8b47['plugins']['has']('HighlightEditing'))return;const _0x52ea44=_0x4f8b47['plugins']['get']('TrackChangesEditing'),_0x281c75=_0x4f8b47['locale'];_0x52ea44['enableDefaultAttributesIntegration']('highlight'),_0x52ea44['registerInlineAttribute']('highlight'),_0x52ea44['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x281c75,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x518219=this['editor'],_0x1ad3e7=_0x518219['locale'];_0x518219['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6e6f=>{if('formatInline'!=_0x2c6e6f['type'])return;const {data:_0x58363f}=_0x2c6e6f;if(_0x58363f&&'highlight'==_0x58363f['commandName']){const _0x3b901c=_0x1ad3e7['t'],_0x24578d=_0x58363f['commandParams'][0x0]['value'];if(_0x24578d){const _0x259ebc=_0x518219['config']['get']('highlight.options')['find'](_0x5b0713=>_0x5b0713['model']==_0x24578d),_0x4076d7=_0x3b901c(_0x259ebc['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ad3e7,'*Set\x20highlight:*\x20%0',_0x4076d7),'color':{'value':_0x259ebc['color'],'title':_0x259ebc['title']}};}return{'type':'format','content':o(_0x1ad3e7,'*Remove\x20highlight*',o(_0x1ad3e7,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3870c0{['afterInit'](){const _0x45cfde=this['editor'];if(!_0x45cfde['plugins']['has']('HorizontalLineEditing'))return;_0x45cfde['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2c8980=_0x45cfde['plugins']['get']('TrackChangesEditing'),_0x2e7882=_0x45cfde['locale'];_0x2c8980['descriptionFactory']['registerElementLabel']('horizontalLine',_0x26155f=>o(_0x2e7882,'ELEMENT_HORIZONTAL_LINE',_0x26155f)),_0x45cfde['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x55ae79,{writer:_0x13bc4e,options:_0x5da429})=>{if(!_0x5da429['showSuggestionHighlights'])return null;const _0x5e7351=_0x13bc4e['createContainerElement']('div'),_0x1639bd=_0x13bc4e['createEmptyElement']('hr');return _0x13bc4e['addClass']('ck-horizontal-line',_0x5e7351),_0x13bc4e['insert'](_0x13bc4e['createPositionAt'](_0x5e7351,0x0),_0x1639bd),_0x5e7351;},'converterPriority':'high'});}}class ot extends _0x3870c0{['afterInit'](){const _0x177699=this['editor'];if(!_0x177699['plugins']['has']('HtmlEmbed'))return;const _0x2ea991=_0x177699['plugins']['get']('TrackChangesEditing'),_0x142d9f=_0x177699['locale'];_0x2ea991['descriptionFactory']['registerElementLabel']('rawHtml',_0x43fc99=>o(_0x142d9f,'ELEMENT_HTML_EMBED',_0x43fc99)),_0x2ea991['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2ea991['registerBlockAttribute']('value'),_0x2ea991['descriptionFactory']['registerDescriptionCallback'](_0x38c386=>{if('attribute'!=_0x38c386['type'])return;const {data:_0xd1feeb}=_0x38c386;if(_0xd1feeb&&'value'==_0xd1feeb['key']&&_0x38c386['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5d0640=o(_0x142d9f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x142d9f,'*Change\x20%0\x20content*',_0x5d0640)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f959=this['editor'],_0x475b70=_0x57f959['locale'];_0x57f959['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6c260b=>{if('formatBlock'!=_0x6c260b['type'])return;const {data:_0x3c943e}=_0x6c260b;if(_0x3c943e&&'htmlEmbed'==_0x3c943e['commandName']){const _0x58c2b9=o(_0x475b70,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x475b70,'*Change\x20%0\x20content*',_0x58c2b9)};}});}}class rt extends _0x3870c0{['afterInit'](){const _0x24991b=this['editor'];if(!_0x24991b['plugins']['has']('ImageEditing'))return;const _0x3a0726=_0x24991b['plugins']['get']('TrackChangesEditing'),_0x8f886c=_0x24991b['plugins']['get']('ImageUtils'),_0x41069e=_0x24991b['locale'];_0x3a0726['enableCommand']('insertImage'),_0x3a0726['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a4f97=>o(_0x41069e,'ELEMENT_IMAGE',_0x4a4f97)),_0x3a0726['descriptionFactory']['registerElementLabel']('imageInline',_0x46c965=>o(_0x41069e,'ELEMENT_INLINE_IMAGE',_0x46c965)),_0x3a0726['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41069e,'ELEMENT_CAPTION')),_0x24991b['plugins']['has']('ImageUploadEditing')&&_0x3a0726['enableCommand']('uploadImage'),_0x24991b['plugins']['has']('ImageBlockEditing')&&_0x24991b['plugins']['has']('ImageInlineEditing')&&(_0x3a0726['enableCommand']('imageTypeInline',(_0x1d7b81,_0x24f8a8)=>{const _0x4625df=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']);_0x24991b['model']['change'](()=>{_0x3a0726['markBlockFormat'](_0x4625df,{'commandName':'imageTypeInline','commandParams':[_0x24f8a8]},[],'convertBlockImageToInline');});}),_0x3a0726['enableCommand']('imageTypeBlock',(_0x5cc86f,_0x43c47d)=>{_0x24991b['model']['change'](_0x5e5b9b=>{let _0x22cd8c=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x512d2f=_0x5e5b9b['createRangeOn'](_0x22cd8c);const _0x2d4c58=_0x373c0f['fromPosition'](_0x512d2f['start'],'toPrevious'),_0x80d40=_0x373c0f['fromPosition'](_0x512d2f['end'],'toNext');_0x3a0726['forceDefaultExecution'](()=>_0x5cc86f(_0x43c47d)),_0x22cd8c=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x512d2f=_0x5e5b9b['createRangeOn'](_0x22cd8c);const _0x297440=_0x5e5b9b['createRange'](_0x2d4c58,_0x80d40);_0x2d4c58['detach'](),_0x80d40['detach'](),_0x3a0726['markBlockFormat'](_0x22cd8c,{'commandName':'imageTypeInline','commandParams':[_0x43c47d]},[],'convertInlineImageToBlock'),_0x297440['start']['isBefore'](_0x512d2f['start'])&&_0x3a0726['markInsertion'](_0x5e5b9b['createRange'](_0x297440['start'],_0x512d2f['start']),'convertInlineImageToBlock'),_0x512d2f['end']['isBefore'](_0x297440['end'])&&_0x3a0726['markInsertion'](_0x5e5b9b['createRange'](_0x512d2f['end'],_0x297440['end']),'convertInlineImageToBlock');});}),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3a0726['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46db07])=>{const _0x52d08a=_0x3a0726['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x47f909=_0x46db07['start'],_0x48863a=_0x46db07['end'];const _0x1bb0c4=_0x24991b['model']['schema']['getNearestSelectionRange'](_0x47f909,'backward'),_0x135dc8=_0x24991b['model']['schema']['getNearestSelectionRange'](_0x48863a,'forward');_0x1bb0c4['isCollapsed']&&(_0x47f909=_0x1bb0c4['start']),_0x135dc8['isCollapsed']&&(_0x48863a=_0x135dc8['end']),_0x52d08a([_0x24991b['model']['createRange'](_0x47f909,_0x48863a)]);}),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f042b),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f042b)),_0x24991b['plugins']['has']('ImageCaptionEditing')&&(_0x3a0726['enableCommand']('toggleImageCaption',(_0x3a0444,_0x1e2364)=>{const _0x33bc11=_0x24991b['plugins']['get']('ImageCaptionUtils');let _0x48f84e=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x20b708=_0x33bc11['getCaptionFromImageModelElement'](_0x48f84e);_0x24991b['model']['change'](()=>{if(_0x20b708)return void _0x3a0726['markDeletion'](_0x24991b['model']['createRangeOn'](_0x20b708));const _0xe66a42=_0x8f886c['isBlockImage'](_0x48f84e);_0x3a0444(_0x1e2364),_0x48f84e=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x20b708=_0x33bc11['getCaptionFromImageModelElement'](_0x48f84e),_0x3a0726['markInsertion'](_0x24991b['model']['createRangeOn'](_0x20b708),_0xe66a42?null:'imageCaption');});}),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f042b));const _0x20560c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x339730(_0x58df3d,_0x3d517a){const _0x2fe5a4=_0x20560c['findIndex'](({type:_0x4f235c,subType:_0x5b547c})=>_0x58df3d['type']==_0x4f235c&&_0x58df3d['subType']==_0x5b547c),_0x456f26=_0x20560c['findIndex'](({type:_0x33638f,subType:_0x111d22})=>_0x3d517a['type']==_0x33638f&&_0x3d517a['subType']==_0x111d22);if(_0x2fe5a4<0x0||_0x456f26<0x0)return!0x1;const _0x4c11e7=_0x58df3d['getFirstRange'](),_0x304afc=_0x3d517a['getFirstRange']();if((0x0==_0x2fe5a4||0x1==_0x2fe5a4)&&0x2==_0x456f26&&_0x4c11e7['isIntersecting'](_0x304afc))return!0x0;if(0x2==_0x2fe5a4&&0x3==_0x456f26){const _0x1c6325=_0x3a0726['_findSuggestions'](_0x4c11e7,'insertion')['filter'](({suggestion:_0x2b75de,meta:_0x404552})=>_0x404552['isOwn']&&'convertInlineImageToBlock'==_0x2b75de['subType']);if(_0x1c6325['length']>0x1&&_0x304afc['end']['isEqual'](_0x4c11e7['start']))return!0x0;if(0x1==_0x1c6325['length']&&(_0x4c11e7['start']['isEqual'](_0x304afc['end'])||_0x4c11e7['end']['isEqual'](_0x304afc['start'])))return!0x0;}if(0x3==_0x2fe5a4&&0x3==_0x456f26&&_0x4c11e7['start']['isBefore'](_0x304afc['start'])){const _0x2ed903=_0x4c11e7['end']['nodeAfter'],_0x35e67f=_0x304afc['start']['nodeBefore'];return _0x8f886c['isBlockImage'](_0x2ed903)&&_0x2ed903===_0x35e67f;}return!0x1;}function _0x2f042b(_0x1df054,_0x1a26d2){return _0x339730(_0x1df054,_0x1a26d2)?[_0x1df054,_0x1a26d2]:_0x339730(_0x1a26d2,_0x1df054)?[_0x1a26d2,_0x1df054]:null;}_0x24991b['plugins']['has']('ImageResize')&&(_0x3a0726['enableDefaultAttributesIntegration']('resizeImage'),_0x3a0726['registerBlockAttribute']('resizedWidth'),_0x3a0726['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41069e,'FORMAT_IMAGE_SIZE'))),_0x24991b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3a0726['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3a0726['registerBlockAttribute']('alt')),_0x24991b['plugins']['has']('PictureEditing')&&(_0x3a0726['registerBlockAttribute']('sources'),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x5d7fc4=>{if('attribute'!=_0x5d7fc4['type'])return;const {data:_0x1c214a}=_0x5d7fc4;return _0x1c214a&&'sources'==_0x1c214a['key']?{'type':'format','content':''}:void 0x0;})),_0x24991b['plugins']['has']('ImageSizeAttributes')&&(_0x3a0726['registerBlockAttribute']('width'),_0x3a0726['registerBlockAttribute']('height'),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x6e2569=>{if('attribute'!=_0x6e2569['type'])return;const {data:_0xee7b99}=_0x6e2569;return!_0xee7b99||'width'!=_0xee7b99['key']&&'height'!=_0xee7b99['key']?void 0x0:{'type':'format','content':''};})),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x5b6602=>{if(!!_0x20560c['find'](({type:_0x19af7a,subType:_0x52c3fe})=>_0x5b6602['type']==_0x19af7a&&_0x5b6602['subType']==_0x52c3fe))return _0x5b6602['previous']?{}:void 0x0;}),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x17abeb=>{if('insertion'==_0x17abeb['type']||'deletion'==_0x17abeb['type']){const _0x24a884=_0x17abeb['getContainedElement']();if(_0x24a884&&_0x24a884['is']('element','caption'))return{'type':'insertion'==_0x17abeb['type']?'addObject':'removeObject','element':_0x24a884,'quantity':0x1};}}),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x21a223=>'formatBlock'==_0x21a223['type']&&'convertInlineImageToBlock'==_0x21a223['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21a223['type']&&'convertBlockImageToInline'==_0x21a223['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x542873=>{if('attribute'!=_0x542873['type'])return;const {data:_0x5c0d65}=_0x542873;if(!_0x5c0d65||'alt'!=_0x5c0d65['key'])return;const _0x26c1a8=_0x5c0d65['newValue'];return _0x26c1a8?{'type':'format','content':o(_0x41069e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x26c1a8+'\x22')}:{'type':'format','content':o(_0x41069e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56eefa=this['editor'],_0x49d107=_0x56eefa['locale'];_0x56eefa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508dd3=>{if('formatBlock'!=_0x508dd3['type']&&'formatInline'!=_0x508dd3['type'])return;const {data:_0x374f49}=_0x508dd3;if(_0x374f49){if('imageTextAlternative'==_0x374f49['commandName']){const _0x210e13=_0x374f49['commandParams'][0x0]['newValue'];return _0x210e13?{'type':'format','content':o(_0x49d107,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x210e13+'\x22')}:{'type':'format','content':o(_0x49d107,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x374f49['commandName']){const _0x3df690=_0x374f49['commandParams'][0x0]['width'];return _0x3df690?{'type':'format','content':o(_0x49d107,'*Set\x20image\x20width:*\x20%0',_0x3df690)}:{'type':'format','content':o(_0x49d107,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1e588c=this['editor']['locale'],_0x5d54cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d54cd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d54cd['registerBlockAttribute']('src'),_0x5d54cd['descriptionFactory']['registerDescriptionCallback'](_0x34e318=>{if('attribute'!=_0x34e318['type'])return;const {data:_0xee6264}=_0x34e318;return _0xee6264&&'src'==_0xee6264['key']?_0xee6264['newValue']&&_0xee6264['oldValue']?{'type':'format','content':o(_0x1e588c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2736b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2736b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2736b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2736b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2736b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x579e8c=this['editor'],_0x21f4a2=_0x579e8c['locale'];_0x579e8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4208=>{if('formatBlock'!=_0x5a4208['type']&&'formatInline'!=_0x5a4208['type'])return;const {data:_0x4e268e}=_0x5a4208;if(!_0x4e268e||'replaceImageSource'!=_0x4e268e['commandName'])return;return{'type':'format','content':o(_0x21f4a2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3870c0{['afterInit'](){const _0x525b36=this['editor'];if(!_0x525b36['plugins']['has']('ImageStyleEditing'))return;const _0x40a085=_0x525b36['plugins']['get']('TrackChangesEditing'),_0xb52b7a=_0x525b36['plugins']['get']('ImageUtils'),_0x48d506={};_0x40a085['enableCommand']('imageStyle',(_0xa1c98e,_0x3a8117)=>{const _0x215233=_0x525b36['plugins']['get']('Users')['me'],_0x335482=_0x525b36['commands']['get']('imageStyle');let _0x325e36=_0xb52b7a['getClosestSelectedImageElement'](_0x525b36['model']['document']['selection']),_0xf2d71e=_0x525b36['model']['createRangeOn'](_0x325e36),_0x2895cc=_0x335482['value'];if(_0x2895cc==_0x3a8117['value'])return;const _0x1ddad5={'commandName':'imageStyle','commandParams':[_0x3a8117],'formatGroupId':_0x53814c()};_0x525b36['model']['change'](()=>{if(_0x40a085['getSuggestions']()['filter'](_0x5a7465=>_0x5a7465['isInContent']&&_0x215233==_0x5a7465['author']&&('formatBlock'==_0x5a7465['type']||'formatInline'==_0x5a7465['type'])&&('imageStylePreApply'==_0x5a7465['subType']||'imageStylePostApply'==_0x5a7465['subType'])&&_0x5a7465['getFirstRange']()['isEqual'](_0xf2d71e))['forEach'](_0x4eff01=>_0x40a085['discardSuggestion'](_0x4eff01['head'])),_0x325e36=_0xb52b7a['getClosestSelectedImageElement'](_0x525b36['model']['document']['selection']),_0xf2d71e=_0x525b36['model']['createRangeOn'](_0x325e36),_0x335482['refresh'](),_0x525b36['commands']['get']('imageTypeInline')['refresh'](),_0x525b36['commands']['get']('imageTypeBlock')['refresh'](),_0x2895cc=_0x335482['value'],_0x2895cc!=_0x3a8117['value'])return _0xb52b7a['isInlineImage'](_0x325e36)&&_0x335482['shouldConvertImageType'](_0x3a8117['value'],_0x325e36)?(_0xa1c98e({..._0x3a8117,'setImageSizes':!0x1}),_0x325e36=_0xb52b7a['getClosestSelectedImageElement'](_0x525b36['model']['document']['selection']),void _0x40a085['markBlockFormat'](_0x325e36,{..._0x1ddad5,'commandReversedParams':[{'value':_0x2895cc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xb52b7a['isBlockImage'](_0x325e36)?_0x40a085['markBlockFormat'](_0x325e36,_0x1ddad5,[],'imageStylePostApply'):_0x40a085['markInlineFormat'](_0xf2d71e,_0x1ddad5,'imageStylePostApply'));});});for(const _0x3c5682 of _0x525b36['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48d506[_0x3c5682['name']]=_0x3c5682['title']['toLowerCase']();_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2a9830])=>{_0xb52b7a['setImageNaturalSizeAttributes'](_0x2a9830['getContainedElement']());}),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41a4af,_0xfa2d83)=>{_0x40a085['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41a4af,{'commandName':_0xfa2d83['commandName'],'commandParams':_0xfa2d83['commandReversedParams']});}),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x392829,_0x67f3b){if(_0x41a787(_0x392829,_0x67f3b))return[_0x392829,_0x67f3b];if(_0x41a787(_0x67f3b,_0x392829))return[_0x67f3b,_0x392829];return null;});const _0x59e095=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41a787(_0x3b647,_0x525524){const _0x45ff9c=_0x59e095['findIndex'](({type:_0x3e861d,subType:_0x3a6c24})=>_0x3b647['type']==_0x3e861d&&_0x3b647['subType']==_0x3a6c24),_0x29e98f=_0x59e095['findIndex'](({type:_0x510588,subType:_0x36d61b})=>_0x525524['type']==_0x510588&&_0x525524['subType']==_0x36d61b);if(_0x45ff9c<0x0||_0x29e98f<0x0)return!0x1;const _0x9abcff=_0x3b647['getFirstRange'](),_0x27040f=_0x525524['getFirstRange']();if((0x0==_0x45ff9c||0x1==_0x45ff9c)&&0x2==_0x29e98f&&_0x9abcff['isIntersecting'](_0x27040f))return!0x0;if(0x2==_0x45ff9c&&0x3==_0x29e98f){const _0x5e626e=_0x40a085['_findSuggestions'](_0x9abcff,'insertion')['filter'](({suggestion:_0x22212b,meta:_0x11b706})=>_0x11b706['isOwn']&&'convertInlineImageToBlock'==_0x22212b['subType']);if(_0x5e626e['length']>0x1&&_0x27040f['end']['isEqual'](_0x9abcff['start']))return!0x0;if(0x1==_0x5e626e['length']&&(_0x9abcff['start']['isEqual'](_0x27040f['end'])||_0x9abcff['end']['isEqual'](_0x27040f['start'])))return!0x0;}if(0x3==_0x45ff9c&&0x3==_0x29e98f&&_0x9abcff['start']['isBefore'](_0x27040f['start'])){const _0xbca343=_0x9abcff['end']['nodeAfter'],_0x1770ab=_0x27040f['start']['nodeBefore'];return _0xb52b7a['isBlockImage'](_0xbca343)&&_0xbca343===_0x1770ab;}return!0x1;}_0x525b36['model']['document']['registerPostFixer'](()=>{let _0x2ad267=!0x1;const _0x16c0fe=Array['from'](_0x525b36['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b4831,data:_0x40da32}of _0x16c0fe){const {group:_0x479be8,type:_0x5958f0,subType:_0x1bb984,id:_0x17461d}=_0x40a085['_splitMarkerName'](_0x2b4831);if('suggestion'==_0x479be8&&_0x40a085['hasSuggestion'](_0x17461d)){if('formatBlock'==_0x5958f0&&('imageStylePreApply'==_0x1bb984||'imageStylePostApply'==_0x1bb984)){const _0xc599e1=_0x40a085['getSuggestion'](_0x17461d);if(_0x40da32['newRange']){const _0x56be0d=_0xc599e1['getFirstRange']()['getContainedElement']();if(_0xb52b7a['isBlockImage'](_0x56be0d))continue;_0x40a085['discardSuggestion'](_0xc599e1),_0x2ad267=!0x0;}}if('insertion'==_0x5958f0&&'imageCaption'==_0x1bb984&&!_0x40da32['newRange']){const _0xb99779=_0x40a085['getSuggestion'](_0x17461d);_0xb99779['next']&&_0xb99779['next']['isInContent']&&(_0x40a085['discardSuggestion'](_0xb99779['next']),_0x2ad267=!0x0);}}}return _0x2ad267;}),this['_registerLegacyDescription'](_0x48d506);}['_registerLegacyDescription'](_0x519ca2){const _0x251c3b=this['editor'],_0x35b9b2=_0x251c3b['locale'];_0x251c3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1b5c=>{if('formatBlock'!=_0x3e1b5c['type']&&'formatInline'!=_0x3e1b5c['type'])return;const {data:_0x39504e}=_0x3e1b5c;if(!_0x39504e||'imageStyle'!=_0x39504e['commandName'])return;const _0x10f74b=_0x39504e['commandParams'][0x0]['value'];return _0x45af87('side'===_0x10f74b?o(_0x35b9b2,'FORMAT_SIDE_IMAGE'):_0x519ca2[_0x10f74b]||_0x10f74b);function _0x45af87(_0x32e695){return{'type':'format','content':o(_0x35b9b2,'*Format:*\x20%0',_0x32e695)};}});}}class ut extends _0x3870c0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x44f62f){super(_0x44f62f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x51ac5e=this['editor'],_0x39eeae=_0x51ac5e['commands']['get']('importWord'),_0x1aff00=_0x51ac5e['commands']['get']('trackChanges');_0x39eeae&&(_0x39eeae['on']('execute',(_0x1666d2,[,_0x68a25f])=>{this['_trackChangesValueDuringImport']=_0x1aff00['value'],_0x68a25f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x39eeae,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x39eeae,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1aff00['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x51ac5e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5bf87b,_0x1ecd7f){const {suggestions:_0x1733fa}=_0x1ecd7f,_0x2f5f3c=this['editor']['commands']['get']('trackChanges'),_0x2de862=_0x2f5f3c['value'];this['_trackChangesValueDuringImport']!==_0x2de862&&(_0x2f5f3c['execute'](),this['_trackChangesExecuted']=!0x0),_0x1733fa&&_0x1733fa['forEach'](({id:_0x2b5235,type:_0x494ff5,author:_0x3bcac5,created_at:_0x24d664})=>{const _0x6dc97d={'id':_0x2b5235,'type':_0x494ff5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3bcac5,'createdAt':_0x24d664?new Date(_0x24d664):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x6dc97d);});}}class ft extends _0x3870c0{['afterInit'](){const _0x3def53=this['editor'],_0x3b5568=_0x3def53['plugins']['get']('TrackChangesEditing');if(_0x3def53['plugins']['has']('IndentEditing')&&(_0x3b5568['enableCommand']('indent'),_0x3b5568['enableCommand']('outdent')),_0x3def53['plugins']['has']('IndentBlock')){for(const _0x433f9d of['indentBlock','outdentBlock'])_0x3b5568['enableDefaultAttributesIntegration'](_0x433f9d);}const _0x162722=_0x3def53['locale'];_0x3b5568['registerBlockAttribute']('blockIndent'),_0x3b5568['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x162722,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x350b8=this['editor'],_0x29461c=_0x350b8['locale'],_0x12da49=_0x350b8['plugins']['get']('TrackChangesEditing');_0x12da49['descriptionFactory']['registerDescriptionCallback'](_0x1df783=>{if('formatBlock'!=_0x1df783['type'])return;const {data:_0x8c27f7}=_0x1df783;if(!_0x8c27f7)return;if('indentBlock'!=_0x8c27f7['commandName']&&'outdentBlock'!=_0x8c27f7['commandName'])return;const _0x41f4e8=_0x1df783['getItems']()[0x0],_0x2806db=_0x12da49['descriptionFactory']['getItemLabel'](_0x41f4e8);return'indentBlock'==_0x8c27f7['commandName']?{'type':'format','content':o(_0x29461c,'*Indent:*\x20%0',_0x2806db)}:'outdentBlock'==_0x8c27f7['commandName']?{'type':'format','content':o(_0x29461c,'*Outdent:*\x20%0',_0x2806db)}:void 0x0;});}}class ht extends _0x3870c0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3870c0{['afterInit'](){const _0x4a99ab=this['editor'];if(!_0x4a99ab['plugins']['has']('LinkEditing'))return;const _0x175fd6=_0x4a99ab['plugins']['get']('TrackChangesEditing'),_0x27e27f=_0x4a99ab['commands']['get']('link');_0x175fd6['enableDefaultAttributesIntegration']('link'),_0x175fd6['enableDefaultAttributesIntegration']('unlink'),_0x175fd6['registerInlineAttribute']('linkHref');for(const _0x24d974 of _0x27e27f['manualDecorators'])_0x175fd6['registerInlineAttribute'](_0x24d974['id']),_0x175fd6['descriptionFactory']['registerAttributeLabel'](_0x24d974['id'],'link\x20('+_0x24d974['label']['toLowerCase']()+')');_0x175fd6['descriptionFactory']['registerDescriptionCallback'](_0x3d0fc1=>{if('attribute'!=_0x3d0fc1['type'])return;const {data:_0x3cfb2f}=_0x3d0fc1;if(!_0x3cfb2f||'linkHref'!=_0x3cfb2f['key'])return;const _0x124b63=_0x3cfb2f['newValue'],_0x4ad369=_0x4a99ab['locale'];return{'type':'format','content':null==_0x124b63?o(_0x4ad369,'*Remove\x20link*'):o(_0x4ad369,'*Set\x20link:*\x20%0','\x22'+_0x124b63+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb2e63=this['editor'],_0x13b2a0=_0xb2e63['locale'];_0xb2e63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3948d3=>{if('formatInline'!=_0x3948d3['type'])return;const {data:_0x15c934}=_0x3948d3;if(_0x15c934){if('link'==_0x15c934['commandName']){const _0x4ae50a=_0x15c934['commandParams'][0x0];return{'type':'format','content':o(_0x13b2a0,'*Set\x20link:*\x20%0','\x22'+_0x4ae50a+'\x22')};}return'unlink'==_0x15c934['commandName']?{'type':'format','content':o(_0x13b2a0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3870c0{['afterInit'](){const _0x5d4cf1=this['editor'],_0x2950ee=_0x5d4cf1['locale'];if(!_0x5d4cf1['plugins']['has']('LegacyListEditing'))return;const _0x2ac0f1=_0x5d4cf1['plugins']['get']('TrackChangesEditing'),_0x24093c=_0x5d4cf1['plugins']['has']('LegacyTodoListEditing');function _0x555171(_0x71cb){return()=>{const _0x5b2d25=_0x5d4cf1['model']['document']['selection'],_0x3d7335=_0x5d4cf1['commands']['get'](_0x71cb);if(_0x3d7335['value'])return void _0x5d4cf1['execute']('paragraph',{});const _0x11c437=_0x71cb['slice'](0x0,-0x4),_0x18226e=function(_0x240674,_0xcf7d75,_0x4109c8){let _0x40222d=Array['from'](_0x240674)['filter'](_0x66171f=>function(_0x1d63db,_0x2fd2c4){return _0x2fd2c4['checkChild'](_0x1d63db['parent'],'listItem')&&!_0x2fd2c4['isObject'](_0x1d63db);}(_0x66171f,_0x4109c8));_0x40222d=_0x40222d['filter'](_0x28b54b=>!_0x28b54b['is']('element','listItem')||_0x28b54b['getAttribute']('listType')!=_0xcf7d75);const _0x1dd15c=new Set();for(const _0x11d2de of _0x40222d)_0x11d2de['is']('element','listItem')?_0x1dd15c['add'](Le(_0x11d2de)):_0x1dd15c['add'](_0x11d2de);return Array['from'](_0x1dd15c);}(_0x5b2d25['getSelectedBlocks'](),_0x11c437,_0x5d4cf1['model']['schema']);_0x5d4cf1['model']['change'](()=>{for(const _0x4bf710 of _0x18226e)_0x2ac0f1['markBlockFormat'](_0x4bf710,{'commandName':_0x71cb,'commandParams':[{'forceValue':!_0x3d7335['value']}],'formatGroupId':'blockName'},Ee(_0x4bf710));});};}function _0x280f72(_0x5e86bb){return()=>{const _0x51b821=function(_0x162061){let _0x1ba0cb=Array['from'](_0x162061);const _0x408c38=_0x1ba0cb['findIndex'](_0x3f0ae9=>'listItem'!=_0x3f0ae9['name']);return _0x408c38>-0x1&&(_0x1ba0cb=_0x1ba0cb['slice'](0x0,_0x408c38)),_0x1ba0cb;}(_0x5d4cf1['model']['document']['selection']['getSelectedBlocks']()),_0x42f301=_0x5d4cf1['model']['createRange'](_0x5d4cf1['model']['createPositionAt'](_0x51b821[0x0],'before'),_0x5d4cf1['model']['createPositionAt'](_0x51b821[_0x51b821['length']-0x1],'end'));_0x5d4cf1['model']['change'](()=>{_0x2ac0f1['markBlockFormat'](_0x42f301,{'commandName':_0x5e86bb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x128120){const _0x475842=new Set();for(const _0x48cd2b of _0x128120){let _0x1d5412=_0x48cd2b['nextSibling'];for(;_0x1d5412&&_0x1d5412['getAttribute']('listIndent')>_0x48cd2b['getAttribute']('listIndent');)_0x475842['add'](_0x1d5412),_0x1d5412=_0x1d5412['nextSibling'];}return Array['from'](_0x475842);}(_0x51b821));});};}_0x2ac0f1['enableCommand']('numberedList',_0x555171('numberedList')),_0x2ac0f1['enableCommand']('bulletedList',_0x555171('bulletedList')),_0x24093c&&_0x2ac0f1['enableCommand']('todoList',_0x555171('todoList')),_0x2ac0f1['enableCommand']('indentList',_0x280f72('indentList')),_0x2ac0f1['enableCommand']('outdentList',_0x280f72('outdentList')),_0x24093c&&_0x2ac0f1['enableCommand']('checkTodoList',()=>{const _0x225e7c=_0x5d4cf1['commands']['get']('checkTodoList'),_0x3baff7=Array['from'](_0x225e7c['_selectedElements']);_0x3baff7['filter'](_0xfa1ddd=>_0xfa1ddd['getAttribute']('todoListChecked')!=_0x225e7c['value']),_0x5d4cf1['model']['change'](()=>{for(const _0xb2bc6a of _0x3baff7)_0x2ac0f1['markBlockFormat'](_0xb2bc6a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x225e7c['value']}]});});}),_0x2ac0f1['descriptionFactory']['registerElementLabel']('listItem',_0x169a53=>o(_0x2950ee,'ELEMENT_LIST_ITEM',_0x169a53)),_0x2ac0f1['descriptionFactory']['registerDescriptionCallback'](_0x7bbf03=>{if('formatBlock'!=_0x7bbf03['type']&&'formatInline'!=_0x7bbf03['type'])return;const {data:_0x361133}=_0x7bbf03;if(_0x361133){if('numberedList'==_0x361133['commandName']||'bulletedList'==_0x361133['commandName']||'todoList'==_0x361133['commandName'])switch(_0x361133['commandName']['replace']('List','')){case'bulleted':return _0xee5581(o(_0x2950ee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xee5581(o(_0x2950ee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xee5581(o(_0x2950ee,'ELEMENT_TODO_LIST'));}if('indentList'==_0x361133['commandName'])return{'type':'format','content':o(_0x2950ee,'*Indent:*\x20%0',o(_0x2950ee,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x361133['commandName'])return{'type':'format','content':o(_0x2950ee,'*Outdent:*\x20%0',o(_0x2950ee,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x361133['commandName'])return _0x361133['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2950ee,'*Check\x20item*')}:{'type':'format','content':o(_0x2950ee,'*Uncheck\x20item*')};}function _0xee5581(_0x714fc0){return{'type':'format','content':o(_0x2950ee,'*Change\x20to:*\x20%0',_0x714fc0)};}});}}function Le(_0x2aaf91){const _0x4c2416=_0x2aaf91['getAttribute']('listIndent');if(0x0==_0x4c2416)return _0x2aaf91;let _0x4e77ca=_0x2aaf91;for(;_0x2aaf91['previousSibling']&&_0x2aaf91['previousSibling']['is']('element','listItem');){const _0x4a90a6=_0x2aaf91['previousSibling']['getAttribute']('listIndent');if(_0x4a90a6==_0x4c2416)_0x4e77ca=_0x2aaf91['previousSibling'];else{if(_0x4a90a6<_0x4c2416)break;}_0x2aaf91=_0x2aaf91['previousSibling'];}return _0x4e77ca;}function Ee(_0x14556f){const _0x3dceaa=[];if(_0x14556f['is']('element','listItem')&&_0x14556f['getAttribute']('listIndent')>0x0){let _0xbd78a3=_0x14556f['nextSibling'];for(;_0xbd78a3&&'listItem'==_0xbd78a3['name']&&_0xbd78a3['getAttribute']('listIndent')==_0x14556f['getAttribute']('listIndent');)_0x3dceaa['push'](_0xbd78a3),_0xbd78a3=_0xbd78a3['nextSibling'];}return _0x3dceaa;}class Q extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x18bdf6=this['editor']['config']['get']('list.properties'),_0x124b13=this['editor']['plugins']['get']('TrackChangesEditing');_0x18bdf6['styles']&&_0x124b13['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x18bdf6['reversed']&&_0x124b13['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x18bdf6['startIndex']&&_0x124b13['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x124b13['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x66f614,_0x2d9f0d={}){const _0x553ec6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x416cd0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x553ec6['markMultiRangeBlockFormat'](_0x416cd0,{'commandName':'listStyle','commandParams':[{'type':_0x2d9f0d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b04d0,_0xd44c68={}){const _0x2805f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2db950=this['_getSuggestionBlocks'](_0x3625fb=>_0x3625fb['is']('element','listItem')&&'numbered'===_0x3625fb['getAttribute']('listType'));if(_0x2db950['length']<0x1)return;const _0x50e54a=_0x2db950['map'](_0x8d2b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8d2b8,'before'),this['editor']['model']['createPositionAt'](_0x8d2b8,0x0)));this['editor']['model']['change'](()=>{_0x2805f1['markMultiRangeBlockFormat'](_0x50e54a,{'commandName':'listReversed','commandParams':[{'reversed':_0xd44c68['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4e24a3,_0x32ff23={}){const _0x596473=this['editor']['plugins']['get']('TrackChangesEditing'),_0x326931=this['_getSuggestionBlocks'](_0x58b762=>_0x58b762['is']('element','listItem')&&'numbered'===_0x58b762['getAttribute']('listType'));if(_0x326931['length']<0x1)return;const _0x3c853e=_0x326931['map'](_0x34131b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34131b,'before'),this['editor']['model']['createPositionAt'](_0x34131b,0x0)));this['editor']['model']['change'](()=>{_0x596473['markMultiRangeBlockFormat'](_0x3c853e,{'commandName':'listStart','commandParams':[{'startIndex':_0x32ff23['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x59154c){if('formatBlock'!=_0x59154c['type']&&'formatInline'!=_0x59154c['type'])return;const _0x77ddc7=this['editor']['locale'],{data:_0x4a6077}=_0x59154c;if(!_0x4a6077)return;let _0x3f2ff6,_0x369aca;switch(_0x4a6077['commandName']){case'listStyle':_0x3f2ff6='*Change\x20to:*\x20%0',_0x369aca={'type':'format','content':o(_0x77ddc7,_0x3f2ff6,o(_0x77ddc7,this['_getTranslationKeyForListStyle'](_0x4a6077['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f2ff6=_0x4a6077['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x369aca={'type':'format','content':o(_0x77ddc7,_0x3f2ff6)};break;case'listStart':_0x3f2ff6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x369aca={'type':'format','content':o(_0x77ddc7,_0x3f2ff6,_0x4a6077['commandParams'][0x0]['startIndex'])};}return _0x369aca;}['_getSuggestionBlocksForListStyle'](){const _0x5e54e7=this['editor']['plugins']['get']('LegacyListUtils');let _0xfc9d5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xfc9d5a[0x0]?.['is']('element','listItem')&&_0xfc9d5a['unshift'](..._0x5e54e7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xfc9d5a[_0xfc9d5a['length']-0x1]?.['is']('element','listItem')&&_0xfc9d5a['push'](..._0x5e54e7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xfc9d5a=[...new Set(_0xfc9d5a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xfc9d5a=_0xfc9d5a['filter'](_0x298aac=>_0x298aac['is']('element','listItem'))),_0xfc9d5a;}['_getSuggestionBlocks'](_0xbecd3c){const _0x10a9a9=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ad96f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xbecd3c)['map'](_0x1c370d=>{const _0x4ac3bb=this['editor']['model']['createPositionAt'](_0x1c370d,0x0);return[..._0x10a9a9['getSiblingNodes'](_0x4ac3bb,'backward'),..._0x10a9a9['getSiblingNodes'](_0x4ac3bb,'forward')];})['flat']();return _0x3ad96f=[...new Set(_0x3ad96f)],_0x3ad96f;}['_getTranslationKeyForListStyle'](_0xe4142d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe4142d)||'default')['toUpperCase']()+'_LIST_'+_0xe4142d['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3870c0{['afterInit'](){const _0x5a3de5=this['editor'];if(!_0x5a3de5['plugins']['has']('MediaEmbedEditing'))return;const _0x2f5495=_0x5a3de5['plugins']['get']('TrackChangesEditing'),_0x34b235=_0x5a3de5['locale'];_0x2f5495['enableCommand']('mediaEmbed'),_0x2f5495['descriptionFactory']['registerElementLabel']('media',_0x337a4a=>o(_0x34b235,'ELEMENT_MEDIA',_0x337a4a)),_0x5a3de5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x47038b,{writer:_0x3d1371,options:_0x599cfb})=>{if(_0x599cfb['showSuggestionHighlights'])return _0x3d1371['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a3de5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x503be2,_0x2efce6,_0x301b79)=>{_0x301b79['options']['showSuggestionHighlights']&&_0x503be2['stop']();},{'priority':'high'});}}class pt extends _0x3870c0{['afterInit'](){const _0x52a753=this['editor'];_0x52a753['plugins']['has']('MentionEditing')&&_0x52a753['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3870c0{['afterInit'](){const _0x1c3327=this['editor'];if(!_0x1c3327['plugins']['has']('MergeFieldsEditing'))return;const _0x57c1ed=_0x1c3327['plugins']['get']('TrackChangesEditing'),_0x58f33f=_0x1c3327['locale'];_0x57c1ed['enableCommand']('insertMergeField'),_0x57c1ed['enableCommand']('insertMergeFieldBlock'),_0x57c1ed['enableCommand']('insertMergeFieldImage'),_0x57c1ed['descriptionFactory']['registerElementLabel']('mergeField',_0x3af71f=>o(_0x58f33f,'ELEMENT_MERGE_FIELD',_0x3af71f)),_0x57c1ed['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2fdbc5=>o(_0x58f33f,'ELEMENT_MERGE_FIELD',_0x2fdbc5)),_0x57c1ed['descriptionFactory']['registerDescriptionCallback'](_0x381383=>{if('insertion'!=_0x381383['type']&&'deletion'!=_0x381383['type'])return;const _0x2e01cb=_0x381383['getContainedElement']();if(null==_0x2e01cb)return;const _0x36964f=_0x1c3327['plugins']['get']('MergeFieldsEditing');let _0x2c23f7;switch(_0x36964f['getMergeFieldType'](_0x2e01cb)){case null:return;case'image':{const _0x98e718=_0x36964f['unwrapAffixes'](_0x2e01cb['getAttribute']('src'));_0x2c23f7=_0x36964f['getLabel'](_0x98e718)||_0x98e718;break;}default:{const _0x3bc79f=_0x2e01cb['getAttribute']('id');_0x2c23f7=_0x36964f['getLabel'](_0x3bc79f)||_0x3bc79f;break;}}return'insertion'==_0x381383['type']?{'type':'insertion','content':o(_0x58f33f,'*Insert:*\x20%0','\x22'+_0x2c23f7+'\x22\x20'+o(_0x58f33f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58f33f,'*Remove:*\x20%0','\x22'+_0x2c23f7+'\x22\x20'+o(_0x58f33f,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3870c0{['afterInit'](){const _0x283e89=this['editor'],_0x3570da=_0x283e89['plugins']['get']('TrackChangesEditing');_0x283e89['plugins']['has']('MultiLevelList')&&(_0x3570da['enableDefaultAttributesIntegration']('multiLevelList'),_0x3570da['registerBlockAttribute']('listMarkerStyle'),_0x3570da['descriptionFactory']['registerDescriptionCallback'](_0x1cff87=>this['handleDescriptions'](_0x1cff87)));}['handleDescriptions'](_0x44401b){const _0x56dbb9=this['editor']['locale'],{data:_0x47efdc}=_0x44401b,_0xd81d11={'type':'format','content':''};if(_0x47efdc&&'listMarkerStyle'==_0x47efdc['key']){if(!_0x47efdc['oldValue'])return{'type':'format','content':o(_0x56dbb9,'*Set\x20format:*\x20%0',o(_0x56dbb9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47efdc['newValue']+')'};if(!_0x47efdc['newValue']){let _0x3b206b=_0x44401b['head'];for(;_0x3b206b;){if(_0x3b206b['data']&&'listType'==_0x3b206b['data']['key']&&_0x3b206b['data']['newValue'])return _0xd81d11;_0x3b206b=_0x3b206b['next'];}return{'type':'format','content':o(_0x56dbb9,'*Remove\x20format:*\x20%0',o(_0x56dbb9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47efdc['oldValue']+')'};}}}}class bt extends _0x3870c0{['afterInit'](){const _0x4e5e14=this['editor'];if(!_0x4e5e14['plugins']['has']('PageBreakEditing'))return;_0x4e5e14['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5b6882=_0x4e5e14['plugins']['get']('TrackChangesEditing'),_0x465565=_0x4e5e14['locale'];_0x5b6882['descriptionFactory']['registerElementLabel']('pageBreak',_0xdd4636=>o(_0x465565,'ELEMENT_PAGE_BREAK',_0xdd4636));}}class yt extends _0x3870c0{['afterInit'](){const _0xbc3dc3=this['editor'];if(!_0xbc3dc3['plugins']['has']('Paragraph'))return;const _0x2d6ce4=_0xbc3dc3['locale'],_0x80a06c=_0xbc3dc3['plugins']['get']('TrackChangesEditing');_0x80a06c['descriptionFactory']['registerElementLabel']('paragraph',_0x4ba790=>o(_0x2d6ce4,'ELEMENT_PARAGRAPH',_0x4ba790)),_0x80a06c['enableDefaultAttributesIntegration']('paragraph'),_0x80a06c['enableCommand']('insertParagraph'),_0xbc3dc3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xbc3dc3),{'priority':'highest'}),_0xbc3dc3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41a245,_0x4cf86a,_0x586dbd)=>{_0x586dbd['options']['showSuggestionHighlights']&&nr(_0xbc3dc3,{'showActiveMarker':!0x1})(_0x41a245,_0x4cf86a,_0x586dbd);},{'priority':'highest'});const _0x345bfe=_0x80a06c['descriptionFactory'];_0x345bfe['registerDescriptionCallback'](_0x434a14=>{if('insertion'!==_0x434a14['type'])return;const {start:_0x11331f,end:_0x31526a}=_0x434a14['getFirstRange']();if(!_0x11331f['isTouching'](_0x31526a)||!_0x11331f['nodeAfter'])return;const _0x263a7d=_0xbc3dc3['model']['schema'],_0x4c085e=_0x11331f['nodeAfter'];return _0x263a7d['isBlock'](_0x4c085e)&&!_0x263a7d['isLimit'](_0x4c085e)&&_0x263a7d['checkChild'](_0x4c085e,'$text')?{'type':'insertion','content':o(_0x2d6ce4,'*Insert:*\x20%0',_0x345bfe['getItemLabel'](_0x4c085e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47a138=this['editor'],_0x43b56a=_0x47a138['locale'];_0x47a138['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56fb68=>{if('formatBlock'!=_0x56fb68['type'])return;const {data:_0x7bd954}=_0x56fb68;return _0x7bd954&&'paragraph'==_0x7bd954['commandName']?{'type':'format','content':o(_0x43b56a,'*Change\x20to:*\x20%0',o(_0x43b56a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x25f6cc,{showActiveMarker:_0x1516a6=!0x0}={}){return(_0x51e642,_0xad7eb3,_0xc336d1)=>{const _0x4c5d23=_0x25f6cc['plugins']['get']('TrackChangesEditing'),_0x3e5232=_0xad7eb3['markerRange']['start'],_0x400707=_0xad7eb3['markerRange']['end'],_0x17d743=_0x25f6cc['model']['schema'];if(!_0x3e5232['isTouching'](_0x400707)||!_0x3e5232['nodeAfter'])return;const _0x2afd4a=_0x3e5232['nodeAfter'];if(_0x17d743['isBlock'](_0x2afd4a)&&!_0x17d743['isLimit'](_0x2afd4a)&&_0x17d743['checkChild'](_0x2afd4a,'$text')){if(!_0xc336d1['consumable']['consume'](_0xad7eb3['markerRange'],_0x51e642['name']))return;const {authorId:_0x27c1f0}=_0x4c5d23['_splitMarkerName'](_0xad7eb3['markerName']),_0x5c8568=_0xc336d1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x27c1f0}),_0x37b912=_0xc336d1['mapper']['toViewPosition'](_0x400707);_0x1516a6&&_0x4c5d23['activeMarkers']['includes'](_0xad7eb3['markerName'])&&_0xc336d1['writer']['addClass']('ck-suggestion-marker--active',_0x5c8568),_0xc336d1['writer']['insert'](_0x37b912,_0x5c8568),_0xc336d1['mapper']['bindElementToMarker'](_0x5c8568,_0xad7eb3['markerName']);}};}class jt extends _0x3870c0{['afterInit'](){const _0x33b644=this['editor'];_0x33b644['commands']['get']('replaceSource')&&_0x33b644['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3870c0{['afterInit'](){const _0x181749=this['editor'];if(!_0x181749['plugins']['has']('RemoveFormatEditing'))return;_0x181749['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f1639=this['editor'];_0x3f1639['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bacba=>{if('formatBlock'!=_0x4bacba['type']&&'formatInline'!=_0x4bacba['type'])return;const {data:_0x577f55}=_0x4bacba;return _0x577f55&&'removeFormat'==_0x577f55['commandName']?{'type':'format','content':o(_0x3f1639['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3870c0{['afterInit'](){const _0x5543a5=this['editor'];if(!_0x5543a5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3df056=_0x5543a5['plugins']['get']('TrackChangesEditing');_0x3df056['enableCommand']('goToPreviousRestrictedEditingException'),_0x3df056['enableCommand']('goToNextRestrictedEditingException');const _0x1a2f9c=_0x5543a5['plugins']['get']('RestrictedEditingModeEditing');_0x1a2f9c['enableCommand']('trackChanges'),_0x1a2f9c['enableCommand']('acceptSuggestion'),_0x1a2f9c['enableCommand']('discardSuggestion'),_0x1a2f9c['enableCommand']('acceptAllSuggestions'),_0x1a2f9c['enableCommand']('discardAllSuggestions'),_0x1a2f9c['enableCommand']('acceptSelectedSuggestions'),_0x1a2f9c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3870c0{static get['requires'](){return[_0xb156e];}['init'](){const _0x3e863d=this['editor'],_0x47589e=_0x3e863d['plugins']['get']('TrackChangesEditing');_0x47589e['enableCommand']('shiftEnter'),_0x3e863d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3e863d),{'priority':'high'}),_0x3e863d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3e863d),{'priority':'high'}),_0x3e863d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40c404,_0x490df7,_0x439dc)=>{_0x439dc['options']['showSuggestionHighlights']&&je(_0x3e863d,{'showActiveMarker':!0x1})(_0x40c404,_0x490df7,_0x439dc);}),_0x47589e['descriptionFactory']['registerElementLabel']('softBreak',_0x5edbe5=>o(_0x3e863d['locale'],'ELEMENT_LINE_BREAK',_0x5edbe5));}}function je(_0x187b61,{showActiveMarker:_0x169f5f=!0x0}={}){return(_0xa5b41f,_0x5043b6,_0x4d57b4)=>{const _0xcfc2ca=_0x187b61['plugins']['get']('TrackChangesEditing');if(!_0x4d57b4['consumable']['test'](_0x5043b6['markerRange'],_0xa5b41f['name']))return;const _0x15cdc5=_0x187b61['model'];for(const _0x10233b of _0x5043b6['markerRange']['getItems']()){if(!_0x10233b['is']('element','softBreak'))continue;const _0x3a2547='deletion'==_0x5043b6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x349e3b}=_0xcfc2ca['_splitMarkerName'](_0x5043b6['markerName']),_0x59a927=_0x4d57b4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a2547,'data-author-id':_0x349e3b}),_0x5a0e4b=_0x4d57b4['mapper']['toViewPosition'](_0x15cdc5['createPositionBefore'](_0x10233b));_0x169f5f&&_0xcfc2ca['activeMarkers']['includes'](_0x5043b6['markerName'])&&_0x4d57b4['writer']['addClass']('ck-suggestion-marker--active',_0x59a927),_0x4d57b4['writer']['insert'](_0x5a0e4b,_0x59a927),_0x4d57b4['mapper']['bindElementToMarker'](_0x59a927,_0x5043b6['markerName']);}};}class vt extends _0x3870c0{['afterInit'](){const _0x2f08bb=this['editor'],_0x455046=_0x2f08bb['model'],_0x1253d5=_0x2f08bb['locale'];if(!_0x2f08bb['plugins']['has']('StandardEditingModeEditing'))return;const _0x12d6a6=_0x2f08bb['plugins']['get']('TrackChangesEditing'),_0x45ded4='restrictedEditingException',_0x58937c=_0x2f08bb['commands']['get'](_0x45ded4);_0x12d6a6['enableCommand'](_0x45ded4,(_0xa67f4c,_0x80c2ac={})=>{const _0x36a0d6=_0x455046['document']['selection'];if(_0x36a0d6['isCollapsed'])return void _0xa67f4c(_0x80c2ac);const _0x586bce=void 0x0!==_0x80c2ac['forceValue']?_0x80c2ac['forceValue']:!_0x58937c['value'];_0x455046['change'](()=>{const _0x50cc64=Array['from'](_0x36a0d6['getRanges']());for(const _0x52e334 of _0x50cc64){const _0x205de0=_0x586bce?[_0x52e334]:io(_0x45ded4,_0x52e334,_0x455046);for(const _0x729bac of _0x205de0)_0x12d6a6['markInlineFormat'](_0x729bac,{'commandName':_0x45ded4,'commandParams':[{'forceValue':_0x586bce}]});}});}),_0x12d6a6['descriptionFactory']['registerDescriptionCallback'](_0x201269=>{if('formatBlock'!=_0x201269['type']&&'formatInline'!=_0x201269['type'])return;const {data:_0x2eae7c}=_0x201269;return _0x2eae7c&&_0x2eae7c['commandName']==_0x45ded4?_0x2eae7c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1253d5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1253d5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x3870c0{['afterInit'](){const _0x371bf6=this['editor'];if(!_0x371bf6['plugins']['has']('Style')||!_0x371bf6['plugins']['has']('DataSchema'))return;const _0x1867a8=_0x371bf6['plugins']['get']('TrackChangesEditing'),_0x79b953=_0x371bf6['locale'],_0x6e7d78=_0x371bf6['config']['get']('style')||{},_0x1b4b39=_0x371bf6['plugins']['get']('GeneralHtmlSupport'),_0x54e9c1=_0x371bf6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x371bf6['plugins']['get']('DataSchema'),_0x6e7d78['definitions']);_0x1867a8['enableDefaultAttributesIntegration']('style');const _0x78feed=new Set();for(const _0x2732b0 of _0x54e9c1['block']){const _0x2fad10=_0x1b4b39['getGhsAttributeNameForElement'](_0x2732b0['element']);_0x78feed['add'](_0x2fad10);}const _0x96570a=new Set();for(const _0x64f244 of _0x54e9c1['inline']){const _0x950adc=_0x1b4b39['getGhsAttributeNameForElement'](_0x64f244['element']);_0x96570a['add'](_0x950adc);for(const _0x584a07 of _0x64f244['ghsAttributes'])_0x96570a['add'](_0x584a07);}for(const _0x2ae2e2 of _0x78feed)_0x1867a8['registerBlockAttribute'](_0x2ae2e2),_0x1867a8['descriptionFactory']['registerAttributeLabel'](_0x2ae2e2,o(_0x79b953,'FORMAT_STYLE'));for(const _0x510cef of _0x96570a)_0x1867a8['registerInlineAttribute'](_0x510cef),_0x1867a8['descriptionFactory']['registerAttributeLabel'](_0x510cef,o(_0x79b953,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f677=this['editor'],_0x27872c=_0x51f677['locale'];_0x51f677['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x186a11=>{if('formatBlock'!=_0x186a11['type']&&'formatInline'!=_0x186a11['type'])return;const {data:_0x11ba35}=_0x186a11;return _0x11ba35&&'style'===_0x11ba35['commandName']?_0x11ba35['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27872c,'*Set\x20format:*\x20%0',_0x11ba35['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x27872c,'*Remove\x20format:*\x20%0',_0x11ba35['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3870c0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a0fdd){super(_0x3a0fdd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3dbdb3=this['editor'],_0x88a5ff=_0x3dbdb3['model']['document']['selection'];if(!_0x3dbdb3['plugins']['has']('TableEditing'))return;const _0x438443=_0x3dbdb3['locale'],_0xa11a81=_0x3dbdb3['plugins']['get']('TrackChangesEditing'),_0x2af300=_0x3dbdb3['plugins']['get']('TableUtils');_0xa11a81['descriptionFactory']['registerElementLabel']('table',_0x5df3d4=>o(_0x438443,'ELEMENT_TABLE',_0x5df3d4)),this['_setupColumnsRowsFixing'](),_0xa11a81['enableCommand']('insertTable'),_0xa11a81['enableCommand']('selectTableRow'),_0xa11a81['enableCommand']('selectTableColumn');for(const _0x26a965 of['insertTableRowAbove','insertTableRowBelow']){const _0x737ac1=_0x3dbdb3['commands']['get'](_0x26a965);_0xa11a81['enableCommand'](_0x26a965,_0x5ae2c7=>{_0x3dbdb3['model']['change'](_0x263b88=>{_0x5ae2c7();const _0x35f4ac='above'===_0x737ac1['order'],_0x5090bb=_0x2af300['getSelectionAffectedTableCells'](_0x88a5ff),_0x4abc1a=_0x2af300['getRowIndexes'](_0x5090bb),_0x3cee17=_0x35f4ac?_0x4abc1a['first']-0x1:_0x4abc1a['last']+0x1,_0x119ddc=_0x5090bb[0x0]['findAncestor']('table'),_0x3afb48=_0x2af300['createTableWalker'](_0x119ddc,{'startRow':_0x3cee17,'endRow':_0x3cee17}),_0x40a368=Array['from'](_0x3afb48)['map'](_0x1e56f6=>_0x263b88['createRangeOn'](_0x1e56f6['cell']));_0xa11a81['markMultiRangeInsertion'](_0x40a368,'tableRow');});});}for(const _0x5dc3b5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4bd514=_0x3dbdb3['commands']['get'](_0x5dc3b5);_0xa11a81['enableCommand'](_0x5dc3b5,_0xb2ed26=>{_0x3dbdb3['model']['change'](_0x34ccd8=>{_0xb2ed26();const _0x5e5364='left'===_0x4bd514['order'],_0x319701=_0x2af300['getSelectionAffectedTableCells'](_0x88a5ff),_0x2ff409=_0x2af300['getColumnIndexes'](_0x319701),_0x919efb=_0x5e5364?_0x2ff409['first']-0x1:_0x2ff409['last']+0x1,_0x1014e2=_0x319701[0x0]['findAncestor']('table'),_0x2415e7=_0x2af300['createTableWalker'](_0x1014e2,{'startRow':0x0,'column':_0x919efb,'includeAllSlots':!0x1}),_0x408fc5=Array['from'](_0x2415e7)['map'](_0x1f95d4=>_0x34ccd8['createRangeOn'](_0x1f95d4['cell']));_0xa11a81['markMultiRangeInsertion'](_0x408fc5,'tableColumn');});});}for(const _0x397600 of['removeTableRow','removeTableColumn']){const _0x188117=_0x397600['substr'](0xb),_0x2f1998=_0x188117['toLowerCase'](),_0x5b9c2a=_0x2f1998['substr'](0x0,0x3)+'span',_0x1c86f2='table'+_0x188117,_0x3f4ef7='min'+_0x188117,_0x40352c='max'+_0x188117;_0xa11a81['enableCommand'](_0x397600,()=>{_0x3dbdb3['model']['change'](_0x1db791=>{const _0x25af82=_0x2af300['getSelectionAffectedTableCells'](_0x88a5ff),_0x2ca87a=_0x25af82[0x0]['findAncestor']('table');let _0x28ae5a;if('removeTableRow'==_0x397600){const _0x437010=_0x2af300['getRowIndexes'](_0x25af82);_0x28ae5a={'startRow':_0x437010['first'],'endRow':_0x437010['last'],'includeAllSlots':!0x0};}else{const _0x48810e=_0x2af300['getColumnIndexes'](_0x25af82);_0x28ae5a={'startColumn':_0x48810e['first'],'endColumn':_0x48810e['last'],'includeAllSlots':!0x0};}const _0xe11af8=_0x2af300['createTableWalker'](_0x2ca87a,_0x28ae5a),_0x119dd2=Array['from'](_0xe11af8)['map'](({cell:_0x4b7684})=>_0x4b7684),_0x42951d=Ne(_0x119dd2['filter'](_0x2f9205=>_0x2f9205['hasAttribute'](_0x5b9c2a))),_0x2e012d=Ne(_0x119dd2['filter'](_0x552fb1=>!_0x552fb1['hasAttribute'](_0x5b9c2a)))['map'](_0x10026b=>_0x1db791['createRangeOn'](_0x10026b)),_0x2414de=_0xa11a81['markMultiRangeDeletion'](_0x2e012d,_0x1c86f2);if(_0x2414de&&('tableRow'==_0x2414de['subType']||'tableColumn'==_0x2414de['subType'])){const _0x35266e=this['_getSuggestionCoords'](_0x2414de);for(const _0x234643 of _0x42951d){const _0x2c82ca=_0x1db791['createRangeOn'](_0x234643),_0x5d192f=_0x2af300['getCellLocation'](_0x234643),_0x5ac0ee=_0x234643['getAttribute'](_0x5b9c2a)-0x1,_0xc0f86=_0x35266e[_0x3f4ef7],_0xd87f13=_0x35266e[_0x40352c];_0xc0f86<=_0x5d192f[_0x2f1998]&&_0x5d192f[_0x2f1998]+_0x5ac0ee<=_0xd87f13&&_0x2414de['addRange'](_0x2c82ca);}}});});}function _0x65f3a5(_0x36e608){const _0x29d2ef=Array['from'](_0x88a5ff['getRanges']())['map'](_0x419f73=>_0x1abeca['fromRange'](_0x419f73));_0x3dbdb3['model']['change'](_0x325569=>{const _0x399d6a=_0x325569['batch'];_0x36e608=_0x36e608['filter'](_0x4805cf=>'$graveyard'!=_0x4805cf['root']['rootName']),_0x325569['setSelection'](_0x36e608),_0x3dbdb3['commands']['get']('removeTableRow')['refresh'](),_0x3dbdb3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3dbdb3['model']['enqueueChange'](()=>{_0x3dbdb3['model']['enqueueChange'](_0x399d6a,_0x5a752c=>{const _0x580d99=_0x29d2ef['filter'](_0x4920b4=>'$graveyard'!=_0x4920b4['root']['rootName']);_0x580d99['length']>0x0&&_0x5a752c['setSelection'](_0x580d99);for(const _0x4cfcc2 of _0x29d2ef)_0x4cfcc2['detach']();});});});}function _0x3506df(_0x2de034){_0x3dbdb3['model']['change'](_0x4e897d=>{const _0x4d8650=Array['from'](_0x88a5ff['getRanges']())['map'](_0xe6e394=>_0x1abeca['fromRange'](_0xe6e394)),_0x31f73d=[];for(const _0x2fceaa of _0x2de034)for(const _0x391e09 of _0x2fceaa['getItems']({'shallow':!0x0}))_0x31f73d['push'](_0x391e09);for(const _0x238d35 of _0x31f73d)'$graveyard'!=_0x238d35['root']['rootName']&&(_0x4e897d['setSelection'](_0x4e897d['createPositionAt'](_0x238d35,0x0)),_0x3dbdb3['commands']['get']('removeTableColumn')['refresh'](),_0x3dbdb3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2987ba=_0x4d8650['filter'](_0x4ed9b9=>'$graveyard'!=_0x4ed9b9['root']['rootName']);_0x2987ba['length']>0x0&&_0x4e897d['setSelection'](_0x2987ba);for(const _0x22b991 of _0x4d8650)_0x22b991['detach']();});}function _0x3dcb87(_0x4c8575,_0x1095b6){return _0x1095b6['every'](_0x401619=>_0x4c8575['some'](_0x354afc=>_0x354afc['end']['isEqual'](_0x401619['start'])||_0x401619['end']['isEqual'](_0x354afc['start'])));}function _0x274d23(_0x22b664,_0x2c20df){return!_0x22b664['some'](_0x12f5df=>_0x2c20df['some'](_0x33814e=>_0x12f5df['isIntersecting'](_0x33814e)))&&_0x22b664['some'](_0xa90817=>_0x2c20df['some'](_0x50d080=>_0xa90817['end']['isTouching'](_0x50d080['start'])));}_0x3dbdb3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c2c0d,_0x3163b5,_0xb026a0)=>{if(!_0xb026a0['options']['showSuggestionHighlights'])return;const _0x4eebd6=_0x3163b5['item'];if(!_0x4eebd6)return;const _0x4274cf=_0xb026a0['mapper']['toViewElement'](_0x4eebd6);function _0x572554(_0x51c666){return Array['isArray'](_0x51c666)?_0x51c666:[_0x51c666];}_0x4274cf&&'tableCell'===_0x4eebd6['name']&&_0x4f62b8(_0x4274cf,_0xb026a0['writer'],(_0x46f324,_0x4900a4,_0x50d3ac)=>_0x50d3ac['addClass'](_0x572554(_0x4900a4['classes']),_0x46f324),(_0x3d0d98,_0x8ad967,_0x3e53ad)=>_0x3e53ad['removeClass'](_0x572554(_0x8ad967['classes']),_0x3d0d98));},{'priority':'highest'}),_0xa11a81['descriptionFactory']['registerDescriptionCallback'](_0x21e575=>{if('insertion'!=_0x21e575['type']&&'deletion'!=_0x21e575['type'])return;const _0x417fde=_0x21e575['getContainedElement']();if(null!=_0x417fde&&_0x417fde['is']('element','table')){if('insertion'==_0x21e575['type']){const _0x4acd78=_0x21e575['getItems']()['filter'](_0x261837=>_0x261837['is']('$textProxy'))['map'](_0x509e73=>_0x509e73['data']);if(_0x4acd78['length'])return{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4acd78['join']('\x20')+'\x22'))};}if('deletion'==_0x21e575['type']){const _0x4a7f07=_0x21e575['getItems']()['filter'](_0x1cfb2e=>_0x1cfb2e['is']('$textProxy'))['map'](_0x10461a=>_0x10461a['data']);if(_0x4a7f07['length'])return{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a7f07['join']('\x20')+'\x22'))};}}}),_0xa11a81['descriptionFactory']['registerDescriptionCallback'](_0x3715ac=>{if('tableRow'==_0x3715ac['subType']){const _0x15421e=_0x3715ac['getItems']()['filter'](_0x6e55b1=>_0x6e55b1['is']('$textProxy'))['map'](_0x1e48ee=>_0x1e48ee['data']),_0x3a6314=this['_getSuggestionCoords'](_0x3715ac),_0x2967fc=_0x3a6314['maxRow']-_0x3a6314['minRow']+0x1;if('insertion'==_0x3715ac['type'])return _0x15421e['length']?{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2967fc,'\x22'+_0x15421e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW',_0x2967fc))};if('deletion'==_0x3715ac['type'])return _0x15421e['length']?{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2967fc,'\x22'+_0x15421e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW',_0x2967fc))};}if('tableColumn'==_0x3715ac['subType']){const _0x1a8c31=_0x3715ac['getItems']()['filter'](_0xcf6e6c=>_0xcf6e6c['is']('$textProxy'))['map'](_0x5e2590=>_0x5e2590['data']),_0x1a17f2=this['_getSuggestionCoords'](_0x3715ac),_0x3b7f17=_0x1a17f2['maxColumn']-_0x1a17f2['minColumn']+0x1;if('insertion'==_0x3715ac['type'])return _0x1a8c31['length']?{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7f17,'\x22'+_0x1a8c31['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN',_0x3b7f17))};if('deletion'==_0x3715ac['type'])return _0x1a8c31['length']?{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7f17,'\x22'+_0x1a8c31['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN',_0x3b7f17))};}}),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x65f3a5),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x65f3a5),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3506df),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3506df),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3dcb87),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3dcb87),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x274d23),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x274d23);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c9f4e=this['editor'],_0x326825=_0x2c9f4e['model']['document']['selection'];return(_0x49d75c,_0x1a8c44)=>{_0x2c9f4e['model']['change'](_0xb2bfb1=>{const {commandName:_0x216a12,commandParams:_0x498193}=_0x1a8c44;let _0x351fee=_0x49d75c[0x0]['end']['nodeBefore'];_0x498193&&_0x498193[0x0]&&!0x1===_0x498193[0x0]['forceValue']&&(_0x351fee=_0x49d75c[0x0]['start']['nodeAfter']);const _0x3b0407=_0xb2bfb1['createRangeIn'](_0x351fee);if('$graveyard'==_0x3b0407['root']['rootName'])return;const _0x4d8012=Array['from'](_0x326825['getRanges']())['map'](_0xf68750=>_0x1abeca['fromRange'](_0xf68750));_0xb2bfb1['setSelection'](_0x3b0407),_0x2c9f4e['commands']['get'](_0x216a12)['refresh'](),_0x498193['push']({'forceDefaultExecution':!0x0}),_0x2c9f4e['execute'](_0x216a12,..._0x498193);const _0x109e6e=_0x4d8012['filter'](_0x32b259=>'$graveyard'!=_0x32b259['root']['rootName']);_0x109e6e['length']>0x0&&_0xb2bfb1['setSelection'](_0x109e6e);for(const _0xe3f1af of _0x4d8012)_0xe3f1af['detach']();});};}['_getCoordsForCells'](_0x6007b6){const _0x17535a=this['editor']['plugins']['get']('TableUtils');let _0x546260=Number['MAX_SAFE_INTEGER'],_0x46abc2=Number['MIN_SAFE_INTEGER'],_0x37634b=Number['MAX_SAFE_INTEGER'],_0x15833c=Number['MIN_SAFE_INTEGER'];for(const _0x2d0a4a of _0x6007b6){if('$graveyard'==_0x2d0a4a['root']['rootName'])continue;const {row:_0x222535,column:_0x2d2d8c}=_0x17535a['getCellLocation'](_0x2d0a4a),_0x263d1f=_0x2d0a4a['hasAttribute']('rowspan')?_0x2d0a4a['getAttribute']('rowspan')-0x1:0x0,_0x6f400d=_0x2d0a4a['hasAttribute']('colspan')?_0x2d0a4a['getAttribute']('colspan')-0x1:0x0;_0x546260=_0x222535<_0x546260?_0x222535:_0x546260,_0x46abc2=_0x222535+_0x263d1f>_0x46abc2?_0x222535+_0x263d1f:_0x46abc2,_0x37634b=_0x2d2d8c<_0x37634b?_0x2d2d8c:_0x37634b,_0x15833c=_0x2d2d8c+_0x6f400d>_0x15833c?_0x2d2d8c+_0x6f400d:_0x15833c;}return{'minRow':_0x546260,'maxRow':_0x46abc2,'minColumn':_0x37634b,'maxColumn':_0x15833c};}['_setupColumnsRowsFixing'](){const _0x38a546=this['editor'],_0x3548a6=_0x38a546['plugins']['get']('TrackChangesEditing'),_0x2badc7=_0x38a546['plugins']['get']('TableUtils');_0x38a546['model']['document']['on']('change:data',()=>{const _0x1ebd92=Array['from'](_0x38a546['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33e4b9,data:_0x496742}of _0x1ebd92){const {group:_0x29ef46,id:_0x4a3dec,subType:_0x374eea}=_0x3548a6['_splitMarkerName'](_0x33e4b9);if('suggestion'!=_0x29ef46)continue;if(null!=_0x496742['oldRange'])continue;const _0x1d63dd=_0x3548a6['getSuggestion'](_0x4a3dec);this['_tablePostFixingSubtypes']['includes'](_0x374eea)&&this['_tableSuggestions']['add'](_0x1d63dd);}},{'priority':'low'});const _0x363a29=(_0xf59f8e,_0x1ddec6)=>{let _0x196ab6=!0x1;const _0x3c2eb6=_0x1ddec6['createRangeOn'](_0xf59f8e),_0xc224fd=_0xf59f8e['findAncestor']('table'),_0x2fa460=_0x2badc7['getCellLocation'](_0xf59f8e);for(const _0x5a4f0d of this['_tableSuggestions']){const _0x53557f=_0x5a4f0d['subType'],_0x2060a3=_0x53557f['startsWith']('tablePaste'),_0x4a43db=_0x53557f['substr'](_0x2060a3?0xa:0x5),_0x36ccdb=_0x4a43db['toLowerCase'](),_0x47639a=_0x36ccdb['substr'](0x0,0x3)+'span',_0x11125a='min'+_0x4a43db,_0x30aff6='max'+_0x4a43db;if(!_0x5a4f0d['isInContent'])continue;if(_0xc224fd!=_0x5a4f0d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5a4f0d['isIntersectingWithRange'](_0x3c2eb6))continue;const _0x2dc2a5=_0xf59f8e['hasAttribute'](_0x47639a)?_0xf59f8e['getAttribute'](_0x47639a)-0x1:0x0,_0x5ddfe2=this['_getSuggestionCoords'](_0x5a4f0d),_0x5df661=_0x5ddfe2[_0x11125a],_0x1e6317=_0x5ddfe2[_0x30aff6];_0x5df661<=_0x2fa460[_0x36ccdb]&&_0x2fa460[_0x36ccdb]+_0x2dc2a5<=_0x1e6317&&(_0x5a4f0d['addRange'](_0x3c2eb6),_0x196ab6=!0x0);}return _0x196ab6;};_0x38a546['model']['document']['registerPostFixer'](_0x4cd101=>{let _0xbebaef=!0x1;for(const _0x103d12 of _0x38a546['model']['document']['differ']['getChanges']())if('insert'==_0x103d12['type']){if('tableRow'==_0x103d12['name']){for(const _0x5e5c75 of _0x103d12['position']['nodeAfter']['getChildren']())_0xbebaef=_0xbebaef||_0x363a29(_0x5e5c75,_0x4cd101);}else'tableCell'==_0x103d12['name']&&(_0xbebaef=_0xbebaef||_0x363a29(_0x103d12['position']['nodeAfter'],_0x4cd101));}return _0xbebaef;});}['_getSuggestionCoords'](_0x1651ae){return this['_getCoordsForCells'](_0x1651ae['getRanges']()['map'](_0x414008=>_0x414008['start']['nodeAfter']));}}function Ne(_0x11428e){return Array['from'](new Set(_0x11428e)['values']());}class Nt extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0xa020df=this['editor'],_0x4296d4=_0xa020df['model']['document']['selection'],_0xa75113=_0xa020df['locale'];if(!_0xa020df['plugins']['has']('TableEditing'))return;const _0xd04a6=_0xa020df['plugins']['get']('TrackChangesEditing'),_0xa46bef=_0xa020df['plugins']['get']('TableUtils'),_0x48c946=_0xa020df['plugins']['get'](Ct);_0x48c946['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xd04a6['enableCommand']('mergeTableCells',()=>{const _0x50ee92=_0xa46bef['getSelectionAffectedTableCells'](_0xa020df['model']['document']['selection']);_0xa020df['model']['change'](()=>{_0xd04a6['markMultiRangeBlockFormat'](_0x50ee92,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa020df['commands']['get']('mergeTableCells')['on']('execute',(_0xc36b41,_0x5e5fe7)=>{_0xa020df['commands']['get']('trackChanges')['value']&&(_0x5e5fe7['length']>0x0&&_0x5e5fe7[_0x5e5fe7['length']-0x1]&&_0x5e5fe7[_0x5e5fe7['length']-0x1]['forceDefaultExecution']||_0xd04a6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xc36b41['stop']());},{'priority':'highest'});for(const _0x5c1b15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x397f7c=_0xa020df['commands']['get'](_0x5c1b15);_0xd04a6['enableCommand'](_0x5c1b15,()=>{const _0x2fd7cd=_0xa020df['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x568aec=>_0x568aec['is']('element','tableCell')),_0x4be687=_0x397f7c['value'];_0xa020df['model']['change'](()=>{_0xd04a6['markMultiRangeBlockFormat']([_0x2fd7cd,_0x4be687],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5938f4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x26a3a1=_0xa020df['commands']['get'](_0x5938f4);_0xd04a6['enableCommand'](_0x5938f4,()=>{const _0x1021fc=_0xa46bef['getSelectionAffectedTableCells'](_0xa020df['model']['document']['selection'])[0x0],_0xd7e428=_0x1021fc['findAncestor']('table'),{column:_0x5d7736,row:_0x216451}=_0xa46bef['getCellLocation'](_0x1021fc);let _0x1c7b90=[];if('horizontally'==_0x26a3a1['direction']){const _0x48f99e=_0xa46bef['createTableWalker'](_0xd7e428,{'startRow':_0x216451,'endRow':_0x216451,'includeAllSlots':!0x0});_0x1c7b90=Array['from'](_0x48f99e)['map'](_0xef97b0=>_0xef97b0['cell']);}else{const _0x3058ea=_0xa46bef['createTableWalker'](_0xd7e428,{'column':_0x5d7736,'includeAllSlots':!0x0});_0x1c7b90=Array['from'](_0x3058ea)['map'](_0x24b56e=>_0x24b56e['cell']);}_0xa020df['model']['change'](_0x307a44=>{_0xd04a6['markBlockFormat'](_0x307a44['createRangeOn'](_0x1021fc),{'commandName':_0x5938f4,'commandParams':[]},_0x1c7b90,_0x5938f4);});});}_0xd04a6['descriptionFactory']['registerDescriptionCallback'](_0x2dca33=>{if('formatBlock'!=_0x2dca33['type']&&'formatInline'!=_0x2dca33['type'])return;const {data:_0x37dd26}=_0x2dca33;return _0x37dd26&&'mergeTableCells'==_0x37dd26['commandName']?{'type':'format','content':o(_0xa75113,'*Merge\x20cells*')}:void 0x0;}),_0xd04a6['descriptionFactory']['registerDescriptionCallback'](_0x51f709=>{if('formatBlock'!=_0x51f709['type']&&'formatInline'!=_0x51f709['type'])return;const {data:_0x1c437d}=_0x51f709;return _0x1c437d?'splitTableCellVertically'==_0x1c437d['commandName']?{'type':'format','content':o(_0xa75113,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1c437d['commandName']?{'type':'format','content':o(_0xa75113,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2cb6ac=_0x48c946['_acceptFormatSuggestionCallbackFactory']();for(const _0x38a8c0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xd04a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38a8c0,'accept',_0x2cb6ac);for(const _0x4919a0 of['splitTableCellVertically','splitTableCellHorizontally'])_0xd04a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4919a0,'accept',_0x2cb6ac);_0xd04a6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x41741b=>{_0xa020df['model']['change'](_0x5b95c7=>{const _0x206871=Array['from'](_0x4296d4['getRanges']())['map'](_0x1de120=>_0x1abeca['fromRange'](_0x1de120));_0x5b95c7['setSelection'](_0x41741b),_0xa020df['commands']['get']('mergeTableCells')['refresh'](),_0xa020df['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x47d77c=_0x206871['filter'](_0x2d01af=>'$graveyard'!=_0x2d01af['root']['rootName']);_0x47d77c['length']>0x0&&_0x5b95c7['setSelection'](_0x47d77c);for(const _0x18782c of _0x206871)_0x18782c['detach']();});});for(const _0x350e94 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13dd8a=_0xa020df['commands']['get'](_0x350e94);_0x13dd8a['on']('set:isEnabled',(_0x212fcd,_0x58ff52,_0x3dc660)=>{if(_0x3dc660){const _0x181466=_0xa020df['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38ec98=>_0x38ec98['is']('element','tableCell'));this['_areMergableCells'](_0x13dd8a['value'],_0x181466)||(_0x212fcd['return']=!0x1,_0x212fcd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x144584=this['editor']['commands']['get']('mergeTableCells'),_0xd46c6f=this['editor']['plugins']['get']('TableUtils');if(!_0x144584['isEnabled'])return!0x1;const _0x550c99=_0xd46c6f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x214ea1 of _0x550c99)for(const _0x58d76c of _0x550c99)if(_0x214ea1!=_0x58d76c&&!this['_areMergableCells'](_0x214ea1,_0x58d76c))return!0x1;return!0x0;}['_areMergableCells'](_0x3f1126,_0x4c9e65){const _0x4621e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a7067=this['editor']['model']['createRangeOn'](_0x3f1126),_0x474dd5=this['editor']['model']['createRangeOn'](_0x4c9e65),_0x40be07=new Set(),_0x276499=new Set();for(const _0x230d47 of _0x4621e8['getSuggestions']())if(('insertion'==_0x230d47['type']||'deletion'==_0x230d47['type']||'mergeTableCells'==_0x230d47['subType'])&&_0x230d47['isInContent']){for(const _0x5e26c5 of _0x230d47['getRanges']())_0x5e26c5['containsRange'](_0x3a7067,!0x0)&&_0x40be07['add'](_0x230d47['type']+':'+_0x230d47['author']['id']),_0x5e26c5['containsRange'](_0x474dd5,!0x0)&&_0x276499['add'](_0x230d47['type']+':'+_0x230d47['author']['id']);}if(_0x40be07['size']!=_0x276499['size'])return!0x1;for(const _0x211a20 of _0x40be07)if(!_0x276499['has'](_0x211a20))return!0x1;return!0x0;}}class Dt extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0x241ee9=this['editor'];if(!_0x241ee9['plugins']['has']('TableEditing'))return;const _0x4c8444=_0x241ee9['locale'],_0x4c81c8=_0x241ee9['plugins']['get']('TrackChangesEditing');_0x4c81c8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c81c8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c81c8['registerBlockAttribute']('headingRows'),_0x4c81c8['registerBlockAttribute']('headingColumns'),_0x4c81c8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c8444,'FORMAT_HEADER_ROW')),_0x4c81c8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c8444,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b8156=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2af002=this['editor']['plugins']['get']('TableUtils'),_0x508103=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5f100d({showActiveMarker:_0x24645e=!0x0,setDataAttribute:_0x599c0e=!0x0}={}){return(_0x443aeb,_0x2336a3,_0x12fcfb)=>{const {type:_0x4c7849,id:_0x2db370}=_0x4b8156['_splitMarkerName'](_0x2336a3['markerName']),_0x164836=_0x4b8156['getSuggestion'](_0x2db370),_0x3161b9=_0x164836['data'];if('formatBlock'!=_0x164836['type']||!_0x3161b9||'setTableColumnHeader'!=_0x3161b9['commandName'])return;if(_0x2336a3['item'])return void _0x443aeb['stop']();if(!_0x12fcfb['consumable']['consume'](_0x2336a3['markerRange'],_0x443aeb['name']))return;const _0x46765a=_0x2336a3['markerRange']['start']['nodeAfter'],_0x3c3b30=_0x2336a3['markerRange']['end']['nodeBefore'],_0x30d95a=_0x46765a['parent']['parent'],{column:_0xbbd1fa}=_0x2af002['getCellLocation'](_0x46765a),{column:_0x1c8acb}=_0x2af002['getCellLocation'](_0x3c3b30);for(let _0x1a1cdd=_0xbbd1fa;_0x1a1cdd<=_0x1c8acb;_0x1a1cdd++){const _0x203b4b=_0x2af002['createTableWalker'](_0x30d95a,{'column':_0x1a1cdd,'includeAllSlots':!0x1});for(const _0x158bf2 of _0x203b4b){const _0x365dc4=_0x158bf2['cell'],_0x9edd96=_0x12fcfb['mapper']['toViewElement'](_0x365dc4);_0x12fcfb['writer']['addClass']('ck-suggestion-marker-'+_0x4c7849,_0x9edd96),_0x599c0e&&_0x12fcfb['writer']['setAttribute']('data-suggestion',_0x2db370,_0x9edd96),_0x12fcfb['mapper']['bindElementToMarker'](_0x9edd96,_0x2336a3['markerName']),_0x24645e&&(_0x4b8156['activeMarkers']['includes'](_0x2336a3['markerName'])?_0x12fcfb['writer']['addClass']('ck-suggestion-marker--active',_0x9edd96):_0x12fcfb['writer']['removeClass']('ck-suggestion-marker--active',_0x9edd96));}}};}_0x4b8156['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x508103),_0x4b8156['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x508103),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5f100d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf70cdd,_0x36f38f,_0xceff9a)=>{_0xceff9a['options']['showSuggestionHighlights']&&_0x5f100d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf70cdd,_0x36f38f,_0xceff9a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c8e06,_0x4c2fe7,_0x5331a6)=>{const {type:_0x404315,id:_0x3c480f}=_0x4b8156['_splitMarkerName'](_0x4c2fe7['markerName']),_0x447a14=_0x4b8156['getSuggestion'](_0x3c480f),_0x4d6c3b=_0x447a14['data'];if('formatBlock'!=_0x447a14['type']||!_0x4d6c3b||'setTableColumnHeader'!=_0x4d6c3b['commandName'])return;const _0x35c30b=_0x5331a6['mapper']['markerNameToElements'](_0x4c2fe7['markerName']);if(_0x35c30b){for(const _0x5e8547 of _0x35c30b)_0x5331a6['writer']['removeClass']('ck-suggestion-marker-'+_0x404315,_0x5e8547),_0x5331a6['writer']['removeClass']('ck-suggestion-marker--active',_0x5e8547),_0x5331a6['writer']['removeAttribute']('data-suggestion',_0x5e8547),_0x5331a6['mapper']['unbindElementFromMarkerName'](_0x5e8547,_0x4c2fe7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a8598=this['editor'],_0x425d96=_0x5a8598['locale'];function _0x1970b4(_0x146722){return{'type':'format','content':o(_0x425d96,'*Format:*\x20%0',_0x146722)};}_0x5a8598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fd448=>{if('formatBlock'!=_0x3fd448['type'])return;const {data:_0x35f155}=_0x3fd448;if(_0x35f155){if('setTableRowHeader'==_0x35f155['commandName']){const _0x5b4ee7=_0x35f155['commandParams'][0x0]['forceValue'];return _0x1970b4(o(_0x425d96,_0x5b4ee7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x35f155['commandName']){const _0x1b8cec=_0x35f155['commandParams'][0x0]['forceValue'];return _0x1970b4(o(_0x425d96,_0x1b8cec?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x47852f=>[_0x47852f,null]));class Mt extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0x44d0b4=this['editor'];if(!_0x44d0b4['plugins']['has']('TableClipboard'))return;const _0x1f4c05=_0x44d0b4['plugins']['get']('TrackChangesEditing'),_0x28d561=_0x44d0b4['plugins']['get']('TableUtils'),_0x1e3f54=_0x44d0b4['plugins']['get'](Ct),_0x12fdc9=_0x44d0b4['plugins']['get']('TableClipboard');_0x1e3f54['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x44d0b4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x44d0b4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ab5f8=null;_0x44d0b4['model']['on']('insertContent',(_0x4d6473,_0x494e59)=>{const [_0x4ce499,_0x5da767]=_0x494e59,_0x38414c=_0x494e59[_0x494e59['length']-0x1];_0x38414c&&_0x38414c['forceDefaultExecution']||_0x1f4c05['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x37c2bf,_0x24bb5a,_0x580f06,_0x392657,_0x217fb9){if(_0x24bb5a&&!_0x24bb5a['is']('documentSelection'))return!0x1;const _0x4cfb6f=_0x217fb9['getTableIfOnlyTableInContent'](_0x37c2bf,_0x580f06);if(!_0x4cfb6f||!Ue(_0x4cfb6f,void 0x0,_0x392657))return!0x1;const _0x348b7f=_0x392657['getSelectionAffectedTableCells'](_0x580f06['document']['selection']);if(!_0x348b7f['length'])return!0x1;const _0x4974cb=_0x348b7f[0x0]['findAncestor']('table'),_0x596cf0=_0x392657['getRowIndexes'](_0x348b7f),_0x570dc9=_0x392657['getColumnIndexes'](_0x348b7f),_0x30cc6d={'startRow':_0x596cf0['first'],'endRow':_0x596cf0['last'],'startColumn':_0x570dc9['first'],'endColumn':_0x570dc9['last']};return 0x1==_0x348b7f['length']&&(_0x30cc6d['endRow']+=_0x392657['getRows'](_0x4cfb6f)-0x1,_0x30cc6d['endColumn']+=_0x392657['getColumns'](_0x4cfb6f)-0x1),Ue(_0x4974cb,_0x30cc6d,_0x392657);}(_0x4ce499,_0x5da767,_0x44d0b4['model'],_0x28d561,_0x12fdc9)&&(_0x4d6473['stop'](),_0x1ab5f8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x44d0b4['model']['change'](()=>{_0x44d0b4['model']['insertContent'](_0x494e59[0x0],_0x494e59[0x1],_0x494e59[0x2],{'forceDefaultExecution':!0x0});const _0x1ff928=_0x53814c(),{rowInsertionRanges:_0x312937,columnInsertionRanges:_0x31c4cc,insertionRanges:_0x4cd7f2,deletionRanges:_0x423c8e,cells:_0xe2bc16}=_0x1ab5f8;_0x312937['length']&&_0x1f4c05['markMultiRangeInsertion'](_0x312937,'tablePasteRow',{'tablePasteChainId':_0x1ff928}),_0x31c4cc['length']&&_0x1f4c05['markMultiRangeInsertion'](_0x31c4cc,'tablePasteColumn',{'tablePasteChainId':_0x1ff928}),_0x4cd7f2['length']&&(_0x1f4c05['markMultiRangeInsertion'](_0x4cd7f2,'tablePaste',{'tablePasteChainId':_0x1ff928,'skipNestingCheck':!0x0}),_0x4cd7f2['forEach'](_0x26f7bf=>_0x26f7bf['detach']?.())),_0x423c8e['length']&&(_0x1f4c05['markMultiRangeDeletion'](_0x423c8e,'tablePaste',{'tablePasteChainId':_0x1ff928,'skipNestingCheck':!0x0}),_0x423c8e['forEach'](_0x4f9b05=>_0x4f9b05['detach']?.()));const _0x537798=_0x1f4c05['markMultiRangeBlockFormat'](_0xe2bc16['map'](({element:_0x194cce})=>_0x194cce),{'formatGroupId':_0x53814c()},[],'tablePasteCell',{'tablePasteChainId':_0x1ff928});if(_0x537798){const _0x35f632=_0x537798['getMarkers'](),_0xe57c27=[];for(const {element:_0x2299ac,attributes:_0x566018}of _0xe2bc16){if(!_0x566018)continue;const _0x246877=_0x44d0b4['model']['createRangeOn'](_0x2299ac),_0x20faee=_0x35f632['find'](_0x57a684=>_0x57a684['getRange']()['isEqual'](_0x246877));_0x20faee&&_0xe57c27['push']([_0x20faee['name'],_0x566018]);}_0xe57c27['length']&&_0x537798['setAttribute']('markerAttributes',Object['fromEntries'](_0xe57c27));}_0x1ab5f8=null;}));},{'priority':_0x14f8c3['high']+0xa}),_0x44d0b4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x10d703,_0x533aac)=>{const [_0x1aac45,_0x22f01c,,_0x43a30a]=_0x533aac;if(!_0x1ab5f8)return;_0x10d703['stop']();const _0x357dae=_0x1aac45['cell'],_0x2a8be1=_0x22f01c,_0x2a34b1=Oe(_0x357dae),_0x30cfc4=Oe(_0x2a8be1);_0x10d703['return']=_0x357dae;let _0x533317=null,_0x2086d9=null;if(_0x30cfc4||_0x2a34b1){if(_0x2a34b1&&!_0x30cfc4){_0x43a30a['remove'](_0x357dae['getChild'](0x0));for(const _0x4cf545 of Array['from'](_0x2a8be1['getChildren']()))_0x43a30a['insert'](_0x4cf545,_0x357dae,'end');const _0x30e8eb=_0x1ab5f8['rowInsertionIndexes']['includes'](_0x1aac45['row']),_0x19eae9=_0x1ab5f8['columnInsertionIndexes']['includes'](_0x1aac45['column']);_0x30e8eb||_0x19eae9||(_0x533317=_0x1abeca['fromRange'](_0x43a30a['createRangeIn'](_0x357dae)));}else _0x30cfc4&&!_0x2a34b1&&(_0x2086d9=_0x43a30a['createRangeIn'](_0x357dae));}else{const _0x497243=_0x43a30a['createElement']('tableCellSuggestion'),_0x5d5c6f=_0x43a30a['createElement']('tableCellSuggestion');_0x43a30a['wrap'](_0x43a30a['createRangeIn'](_0x357dae),_0x5d5c6f),_0x43a30a['insert'](_0x497243,_0x357dae,0x0);for(const _0x2cff8e of Array['from'](_0x2a8be1['getChildren']()))_0x43a30a['insert'](_0x2cff8e,_0x497243,'end');_0x533317=_0x1abeca['fromRange'](_0x43a30a['createRangeOn'](_0x497243)),_0x2086d9=_0x1abeca['fromRange'](_0x43a30a['createRangeOn'](_0x5d5c6f));}const _0x50a004=Array['from'](_0x2a8be1['getAttributes']())['filter'](([_0x2c4ac4])=>Be['includes'](_0x2c4ac4));_0x1ab5f8['cells']['push']({'element':_0x357dae,'attributes':_0x50a004['length']?Object['fromEntries'](_0x50a004):null}),_0x533317&&_0x1ab5f8['insertionRanges']['push'](_0x533317),_0x2086d9&&_0x1ab5f8['deletionRanges']['push'](_0x2086d9);},{'priority':'high'}),_0x28d561['on']('insertColumns',(_0x1bf8d5,_0x15d5e8)=>{const [_0x3757ef,_0x1ce649={}]=_0x15d5e8;if(!_0x1ab5f8)return;const _0x2d0e2b=_0x1ce649['at']||0x0,_0x25a961=_0x1ce649['columns']||0x1;_0x1ab5f8['columnInsertionIndexes']=new Array(_0x25a961)['fill'](_0x2d0e2b)['map']((_0x29eea6,_0x488de2)=>_0x29eea6+_0x488de2);for(const {cell:_0x1d8386}of _0x28d561['createTableWalker'](_0x3757ef,{'startColumn':_0x2d0e2b,'endColumn':_0x2d0e2b+_0x25a961-0x1}))_0x1ab5f8['columnInsertionRanges']['push'](_0x44d0b4['model']['createRangeOn'](_0x1d8386));},{'priority':'low'}),_0x28d561['on']('insertRows',(_0x35cf59,_0x4a78de)=>{const [_0x9461e5,_0x55a12d={}]=_0x4a78de;if(!_0x1ab5f8)return;const _0x1806b3=_0x55a12d['at']||0x0,_0x3d9164=_0x55a12d['rows']||0x1;_0x1ab5f8['rowInsertionIndexes']=new Array(_0x3d9164)['fill'](_0x1806b3)['map']((_0x105774,_0x3a30ba)=>_0x105774+_0x3a30ba);for(const {cell:_0x35a10b}of _0x28d561['createTableWalker'](_0x9461e5,{'startRow':_0x1806b3,'endRow':_0x1806b3+_0x3d9164-0x1}))_0x1ab5f8['rowInsertionRanges']['push'](_0x44d0b4['model']['createRangeOn'](_0x35a10b));},{'priority':'low'}),_0x1f4c05['descriptionFactory']['registerDescriptionCallback'](_0x30e1c3=>{if(_0x30e1c3['subType']&&_0x30e1c3['subType']['startsWith']('tablePaste'))return _0x30e1c3['previous']?{}:{'type':'insertion','content':o(_0x44d0b4['locale'],'*Replace\x20table\x20cells*')};});const _0x376945=()=>!0x1;for(const _0xc63c1f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f4c05['_suggestionFactory']['registerCustomCallback']('insertion',_0xc63c1f,'join',_0x376945),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('deletion',_0xc63c1f,'join',_0x376945),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc63c1f,'join',_0x376945);_0x1f4c05['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x376945),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x25c1d5,_0x502d34,_0x304ace)=>{const _0x1dab74=_0x25c1d5['map'](_0x198690=>_0x198690['getContainedElement']())['filter'](_0x307292=>_0x307292),_0x233216=new Map(_0x1dab74['map'](_0x572a0a=>[_0x572a0a,null]));if(_0x1ab5f8){for(const {element:_0x366cb8,attributes:_0x31d047}of _0x1ab5f8['cells'])_0x31d047&&_0x233216['set'](_0x366cb8,_0x31d047);}else{if(_0x304ace&&_0x304ace['markerAttributes'])for(const [_0x327f37,_0x5f1d35]of Object['entries'](_0x304ace['markerAttributes'])){const _0x4acda7=_0x44d0b4['model']['markers']['get'](_0x327f37),_0x411e71=_0x4acda7?_0x4acda7['getRange']()['getContainedElement']():null;_0x411e71&&_0x233216['set'](_0x411e71,_0x5f1d35);}}_0x44d0b4['model']['change'](_0x1b2d14=>{for(const [_0x2a28b0,_0x14f10f]of _0x233216)_0x1b2d14['setAttributes']({...xe,..._0x14f10f},_0x2a28b0);});});const _0x1a709e=(_0x23d017,_0x229c53)=>{_0x1f4c05['_suggestionFactory']['registerCustomCallback'](_0x23d017,'tablePaste',_0x229c53,(_0x2933d2,_0x56a38c,_0x33de6c)=>{_0x44d0b4['model']['change'](_0x44d9be=>{const _0x60d363=[];for(const _0x42f1fc of _0x2933d2){const _0x49859c=_0x42f1fc['start']['nodeAfter'];_0x49859c['is']('element','tableCellSuggestion')&&_0x60d363['push'](_0x49859c);}_0x1f4c05['_suggestionFactory']['getSuggestionCallback'](_0x23d017,null,_0x229c53)(_0x2933d2,_0x56a38c,_0x33de6c);for(const _0x5dbb6e of _0x60d363)'$graveyard'!=_0x5dbb6e['root']['rootName']&&_0x44d9be['unwrap'](_0x5dbb6e);});});};_0x1a709e('insertion','accept'),_0x1a709e('insertion','discard'),_0x1a709e('deletion','accept'),_0x1a709e('deletion','discard'),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x163f2f=>{const _0x109a40=_0x163f2f['map'](_0x44d379=>_0x44d379['getContainedElement']()),_0x4ea326=_0x109a40[0x0]['findAncestor']('table'),{minRow:_0x3f8d45,maxRow:_0x236444}=_0x1e3f54['_getCoordsForCells'](_0x109a40);_0x28d561['removeRows'](_0x4ea326,{'at':_0x3f8d45,'rows':_0x236444-_0x3f8d45+0x1});}),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x11f6ba=>{const _0x31c5d4=_0x11f6ba['map'](_0x5e6b62=>_0x5e6b62['getContainedElement']()),_0x49bcde=_0x31c5d4[0x0]['findAncestor']('table'),{minColumn:_0x123da7,maxColumn:_0x5bdd02}=_0x1e3f54['_getCoordsForCells'](_0x31c5d4);_0x28d561['removeColumns'](_0x49bcde,{'at':_0x123da7,'columns':_0x5bdd02-_0x123da7+0x1});});const _0x176efb=(_0x47fbb7,_0x2a5484)=>{if(!_0x2a5484['subType']||!_0x2a5484['subType']['startsWith']('tablePaste'))return;const _0x3b290e=_0x2a5484['attributes']['tablePasteChainId'],_0x2369e2=_0x1f4c05['getSuggestions']()['filter'](_0x326ec=>_0x326ec['isInContent']&&_0x326ec['attributes']&&_0x326ec['attributes']['tablePasteChainId']==_0x3b290e);_0x2369e2['length']&&_0x2a5484['getAllAdjacentSuggestions']()['length']!=_0x2369e2['length']&&_0x2369e2['reduce']((_0x2bfac2,_0x38d48b)=>(_0x2bfac2['next']=_0x38d48b,_0x38d48b['previous']=_0x2bfac2,_0x38d48b));};function _0x18597f(_0x3df0d2,_0x1a0150=!0x0){const {id:_0x3191e8,authorId:_0xa2a499}=_0x1f4c05['_splitMarkerName'](_0x3df0d2['markerName']),_0x1c3137=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2ea18b=_0x1f4c05['activeMarkers']['includes'](_0x3df0d2['markerName']);return _0x2ea18b&&_0x1c3137['push']('ck-suggestion-marker--active'),{'classes':_0x1c3137,'attributes':{'data-suggestion':_0x3191e8,'data-author-id':_0xa2a499},'priority':_0x2ea18b&&_0x1a0150?0xbc2:0xbb8};}_0x1f4c05['on']('suggestionLoaded',_0x176efb,{'priority':'high'}),_0x1f4c05['on']('suggestionUnloaded',_0x176efb,{'priority':'high'}),_0x44d0b4['model']['document']['registerPostFixer'](()=>{let _0x4bb129=!0x1;const _0x462b39=Array['from'](_0x44d0b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x484791,data:_0xc35384}of _0x462b39){const {group:_0x1a6543,type:_0x261fc0,id:_0x351b7b}=_0x1f4c05['_splitMarkerName'](_0x484791);if('suggestion'!=_0x1a6543||'deletion'!=_0x261fc0||_0xc35384['oldRange'])continue;if(!_0x1f4c05['hasSuggestion'](_0x351b7b))continue;const _0x107724=_0x1f4c05['getSuggestion'](_0x351b7b)['getRanges'](),_0x352fb7=_0x44d0b4['plugins']['get']('Users')['me'];for(const _0x2804fc of _0x1f4c05['getSuggestions']()){if(!_0x2804fc['isInContent']||_0x2804fc['author']!=_0x352fb7)continue;if('formatBlock'!=_0x2804fc['type']||'tablePasteCell'!=_0x2804fc['subType'])continue;if(_0x2804fc['getRanges']()['every'](_0x428b9b=>_0x107724['some'](_0x362ab7=>_0x362ab7['containsRange'](_0x428b9b,!0x0)))){for(const _0x52fc33 of _0x2804fc['getAllAdjacentSuggestions']())_0x52fc33['isInContent']&&(_0x52fc33['discard'](),_0x4bb129=!0x0);}}}return _0x4bb129;}),_0x44d0b4['model']['document']['registerPostFixer'](_0x5cd78e=>{const _0x4a49aa=_0x44d0b4['commands']['get']('redo');if(!_0x4a49aa||!_0x4a49aa['_createdBatches']['has'](_0x5cd78e['batch']))return!0x1;let _0x2e67d6=!0x1;const _0x39b577=_0x44d0b4['plugins']['get']('Users')['me'],_0x5e6c4f=_0x44d0b4['model']['document']['differ']['getChanges'](),_0x5aef73=Array['from'](_0x44d0b4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2be1b2,data:_0x510382})=>{const {group:_0x1503a2,subType:_0xb4a3be,authorId:_0x14c6b3}=_0x1f4c05['_splitMarkerName'](_0x2be1b2);return'suggestion'==_0x1503a2&&'tablePaste'==_0xb4a3be&&_0x14c6b3==_0x39b577['id']&&!_0x510382['oldRange'];});for(const _0x5d4e7e of _0x5e6c4f){if('insert'!=_0x5d4e7e['type']||'tableCellSuggestion'!=_0x5d4e7e['name']||0x1!=_0x5d4e7e['length'])continue;const _0x2a1822=_0x5cd78e['createRange'](_0x5d4e7e['position'],_0x5d4e7e['position']['getShiftedBy'](0x1));if(!_0x5aef73['find'](({data:_0x498e37})=>_0x498e37['newRange']['isEqual'](_0x2a1822))){for(const {name:_0x6174e7,data:_0x2229ef}of _0x5aef73)if(_0x2a1822['containsRange'](_0x2229ef['newRange'])){_0x5cd78e['updateMarker'](_0x6174e7,{'range':_0x2a1822}),_0x2e67d6=!0x0;break;}}}return _0x2e67d6;}),_0x44d0b4['model']['document']['registerPostFixer'](_0x16197c=>{let _0x4ec61e=!0x1;const _0x543dfc=_0x44d0b4['plugins']['get']('Users')['me'],_0x4f59e6=_0x1f4c05['getSuggestions']()['filter'](_0x532ee1=>_0x532ee1['isInContent']&&_0x532ee1['author']==_0x543dfc),_0x2bb2d3=new Set(),_0x1d7369=new Set();for(const _0xcfec5f of _0x4f59e6)if('tablePaste'==_0xcfec5f['subType'])for(const _0x1aec88 of _0xcfec5f['getMarkers']()){const _0xf11e64=_0x1aec88['getRange']()['getContainedElement']();if(_0xf11e64){if(_0xf11e64['is']('element','tableCellSuggestion')&&Oe(_0xf11e64)){_0xcfec5f['removeMarker'](_0x1aec88['name']),_0x2bb2d3['add'](_0xf11e64),_0x4ec61e=!0x0;const _0xd3466a=_0xf11e64['nextSibling'],_0x4da64c=_0xf11e64['previousSibling'],_0x190934=_0xd3466a&&_0xd3466a['is']('element','tableCellSuggestion'),_0x207bd5=_0x4da64c&&_0x4da64c['is']('element','tableCellSuggestion');_0x190934&&!_0x2bb2d3['has'](_0xd3466a)&&_0x1d7369['add'](_0xd3466a),_0x207bd5&&!_0x2bb2d3['has'](_0x4da64c)&&_0x1d7369['add'](_0x4da64c);}else _0xf11e64['is']('element','paragraph')&&_0xf11e64['isEmpty']&&(_0xcfec5f['removeMarker'](_0x1aec88['name']),_0x4ec61e=!0x0);}}else{if('tablePasteCell'==_0xcfec5f['subType']){if(!_0xcfec5f['attributes']||!_0xcfec5f['attributes']['tablePasteChainId'])continue;const _0xed7f5c=_0xcfec5f['attributes']['markerAttributes'];if(_0xed7f5c&&Object['keys'](_0xed7f5c)['length'])continue;const _0x40bdf3=_0xcfec5f['attributes']['tablePasteChainId'];let _0x1c8c42=!0x0,_0x3ba49c=!0x0;for(const _0x3d56d5 of _0x4f59e6)if(_0x3d56d5['subType']&&_0x3d56d5['subType']['startsWith']('tablePaste')){if(!_0x3d56d5['attributes']['tablePasteChainId']){_0x3ba49c=!0x1;break;}if(_0x3d56d5['id']!=_0xcfec5f['id']&&_0x3d56d5['attributes']['tablePasteChainId']==_0x40bdf3){_0x1c8c42=!0x1;break;}}_0x3ba49c&&_0x1c8c42&&(_0xcfec5f['removeMarkers'](),_0x4ec61e=!0x0);}}for(const _0x5c9394 of _0x2bb2d3)_0x16197c['remove'](_0x5c9394);for(const _0x48163c of _0x1d7369)_0x16197c['unwrap'](_0x48163c);return _0x4ec61e;}),_0x44d0b4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35dc16=>_0x18597f(_0x35dc16),'converterPriority':'high'}),_0x44d0b4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4950a5,_0x165a0d)=>_0x165a0d['options']['showSuggestionHighlights']?_0x18597f(_0x4950a5,!0x1):null,'converterPriority':'high'});const _0x389592=_0x44d0b4['editing']['view'];this['listenTo'](_0x389592['document'],'clipboardOutput',(_0x501398,_0x1d99d3)=>{const _0x58ca18=[];for(const _0xab66ce of _0x389592['createRangeIn'](_0x1d99d3['content'])['getItems']())_0xab66ce['is']('element','suggestion-td')&&_0x58ca18['push'](_0xab66ce);_0x389592['change'](_0x52966e=>{for(const _0x547a8b of _0x58ca18)_0x52966e['move'](_0x52966e['createRangeIn'](_0x547a8b),_0x52966e['createPositionBefore'](_0x547a8b)),_0x52966e['remove'](_0x547a8b);});});}}function Oe(_0x5a6373){if(_0x5a6373['isEmpty'])return!0x0;const _0x136d49=_0x5a6373['getChild'](0x0);return _0x136d49['is']('element','paragraph')&&_0x136d49['isEmpty'];}function Ue(_0x5bae0e,_0x14c8b3={},_0x3642f7){for(const {isAnchor:_0x29454b,cellHeight:_0x23a5be,cellWidth:_0x248211}of _0x3642f7['createTableWalker'](_0x5bae0e,{'includeAllSlots':!0x0,..._0x14c8b3}))if(!_0x29454b||0x1!=_0x23a5be||0x1!=_0x248211)return!0x1;return!0x0;}class $t extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f6a58=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f6a58['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f6a58['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f6a58['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f6a58['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f6a58['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f6a58['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3bf07c,_0x595d18){const _0x205dcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40478b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf6f9da=_0x595d18['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x29d2b7=_0x40478b['getColumnGroupElement'](_0xf6f9da);let _0x419739=_0x29d2b7?_0x40478b['getTableColumnsWidths'](_0x29d2b7):null,_0x579b4a=_0xf6f9da['getAttribute']('tableWidth')||null;const _0x3cece2=_0x595d18['tableWidth']||_0x579b4a,_0x38a075=_0x595d18['columnWidths']||_0x419739,_0x31b07=this['editor']['plugins']['get']('Users')['me'];for(const _0x39daf9 of _0x205dcd['getSuggestions']()){const _0x4099b5=_0x39daf9['getContainedElement']();if('resizeTable'===_0x39daf9['subType']&&_0x4099b5===_0xf6f9da){_0x39daf9['author']!==_0x31b07&&_0x39daf9['discard']();const _0x4cfb3c=_0x39daf9['data']['commandParams'];_0x579b4a=_0x4cfb3c[0x0]['tableWidth'],_0x419739=_0x4cfb3c[0x0]['columnWidths'];break;}}_0x3bf07c({'table':_0xf6f9da,'tableWidth':_0x3cece2,'columnWidths':_0x38a075}),_0x205dcd['markBlockFormat'](_0xf6f9da,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x579b4a,'columnWidths':_0x419739}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2e5f47){if('formatBlock'!=_0x2e5f47['type']&&'formatInline'!=_0x2e5f47['type'])return;const {data:_0x54ee97}=_0x2e5f47;if(_0x54ee97&&'resizeTable'===_0x54ee97['formatGroupId']){const _0x510920='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x510920)};}}}class Bt extends _0x3870c0{['afterInit'](){const _0xd58e23=this['editor'];_0xd58e23['plugins']['has']('Template')&&_0xd58e23['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3870c0{['afterInit'](){const _0x3e9d3e=this['editor'];if(!_0x3e9d3e['commands']['get']('insertTableOfContents'))return;_0x3e9d3e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x178876=_0x3e9d3e['plugins']['get']('TrackChangesEditing'),_0x2ce01b=_0x3e9d3e['locale'];_0x178876['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14c15c=>o(_0x2ce01b,'ELEMENT_TABLE_OF_CONTENTS',_0x14c15c));}}class Rt extends _0x3870c0{['afterInit'](){const _0x3cfbbb=this['editor'];if(!_0x3cfbbb['plugins']['has']('Title'))return;const _0x1db5e4=_0x3cfbbb['plugins']['get']('TrackChangesEditing');_0x1db5e4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3cfbbb['locale'],'ELEMENT_TITLE')),_0x3cfbbb['model']['document']['registerPostFixer'](_0x4b02f9=>{let _0x579800=!0x1;const _0x1d37b9=Array['from'](_0x3cfbbb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30a96f,data:_0x36408f}of _0x1d37b9){const {group:_0x32aba5}=_0x1db5e4['_splitMarkerName'](_0x30a96f);if('suggestion'!==_0x32aba5||!_0x36408f['newRange'])continue;const _0x522ebb=_0x36408f['newRange'],_0x5a98a9=_0x522ebb['end']['nodeBefore'];if(!_0x5a98a9||!_0x5a98a9['is']('element','title-content'))continue;if(!_0x522ebb['start']['isTouching'](_0x522ebb['end']))continue;const _0x1064d0=_0x3cfbbb['model']['schema']['getNearestSelectionRange'](_0x522ebb['end'],'forward');if(_0x1064d0&&_0x1064d0['isCollapsed']){const _0x4f4150=_0x4b02f9['createRange'](_0x522ebb['start'],_0x1064d0['start']);_0x4f4150['isEqual'](_0x522ebb)||(_0x4b02f9['updateMarker'](_0x30a96f,{'range':_0x4f4150}),_0x579800=!0x0);}_0x579800||(_0x4b02f9['removeMarker'](_0x30a96f),_0x579800=!0x0);}return _0x579800;});}}class Tt extends _0x3870c0{['afterInit'](){const _0x413911=this['editor'],_0x54dd07=_0x413911['plugins']['get']('TrackChangesEditing');_0x413911['plugins']['has']('Uploadcare')&&(_0x54dd07['enableCommand']('uploadcare'),_0x413911['plugins']['has']('UploadcareImageEdit')&&(_0x54dd07['enableCommand']('uploadcareImageEdit'),_0x54dd07['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x54dd07['registerBlockAttribute']('uploadcareImageId'),_0x54dd07['descriptionFactory']['registerDescriptionCallback'](_0x4450ce=>{if('attribute'!=_0x4450ce['type'])return;const {data:_0x4616da}=_0x4450ce;return _0x4616da&&'uploadcareImageId'==_0x4616da['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3870c0{['afterInit'](){const _0x5e72cb=this['editor'],_0x37283c=_0x5e72cb['plugins']['get']('TrackChangesEditing');_0x5e72cb['plugins']['has']('UndoEditing')&&(_0x37283c['enableCommand']('undo'),_0x37283c['enableCommand']('redo'));}}class Et extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0x4e59b4=this['editor'];if(!_0x4e59b4['plugins']['has']('TableCaptionEditing'))return;_0x4e59b4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x3870c0{['tableProperties'];['tableCellProperties'];constructor(_0x456ba8){super(_0x456ba8),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 _0x138b8b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xb37d94 of this['tableProperties'])_0x138b8b['enableCommand'](_0xb37d94,(_0x61b2fc,_0x357b06)=>{const _0x53d591=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xb37d94,[_0x53d591],this['tableProperties'],'tableProperties',_0x61b2fc,_0x357b06);});_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x138b8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d7c97,_0xebe074)=>this['handleDiscardAction'](this['tableProperties'],_0x1d7c97,_0xebe074)),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1ed238 of this['tableCellProperties'])_0x138b8b['enableCommand'](_0x1ed238,(_0x133143,_0x158d66)=>{const _0x6e3b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1ed238,_0x6e3b6,this['tableCellProperties'],'tableCellProperties',_0x133143,_0x158d66);});_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x138b8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2d35b6,_0x4007cf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2d35b6,_0x4007cf)),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x138b8b['descriptionFactory']['registerDescriptionCallback'](_0x2c0a66=>this['handleSuggestionDescription'](_0x2c0a66));}['_handlePropertyChange'](_0x49a287,_0x1f0444,_0x4fc05a,_0x308275,_0x3a8383,_0x3f4b16){const _0x7f14aa=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3f4b16['batch'],()=>{for(const _0x3bf568 of _0x1f0444){if(this['_getSuggestion'](_0x3bf568,_0x308275))_0x3a8383(_0x3f4b16);else{const _0x195343={};for(const _0x21a598 of _0x4fc05a){const _0x2277c0=_0x3bf568['getAttribute'](_0x21a598);void 0x0!==_0x2277c0&&(_0x195343[_0x21a598]=_0x2277c0);}_0x3a8383(_0x3f4b16),_0x7f14aa['markBlockFormat'](_0x3bf568,{'commandParams':[_0x195343]},[],_0x308275);}}});}['handleDiscardAction'](_0x275b2e,_0x47863a,_0x524ab5){const _0x4409a9=_0x47863a[0x0]['start']['nodeAfter'],_0x22c4ec=_0x524ab5['commandParams'][0x0];this['editor']['model']['change'](_0x2e5547=>{for(const _0x2d3280 of _0x275b2e)void 0x0!==_0x22c4ec[_0x2d3280]?_0x2e5547['setAttribute'](_0x2d3280,_0x22c4ec[_0x2d3280],_0x4409a9):_0x2e5547['removeAttribute'](_0x2d3280,_0x4409a9);});}['handleSuggestionDescription'](_0x21a3ba){if(_0x21a3ba['data'])switch(_0x21a3ba['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'](_0x51ab25,_0x1580df){const _0x4fa2cf=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x48743e of _0x4fa2cf['getSuggestions']({'skipNotAttached':!0x0})){const _0x174ecd=_0x48743e['getContainedElement']();if(_0x48743e['subType']===_0x1580df&&_0x174ecd===_0x51ab25)return _0x48743e;}return null;}}const m='$elementName';class p extends _0x3870c0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x19b2a6,_0x691f6b,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(_0x5773de){super(_0x5773de),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x64127b,_0x34a903,_0x5e604a,_0x2511f8)=>{this['_model']['change'](()=>{for(const _0x1d701f of[..._0x2511f8,..._0x5e604a])this['_model']['markers']['has'](_0x1d701f)&&_0x5773de['editing']['reconvertMarker'](_0x1d701f);});}),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']=_0x5773de['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(),_0x5773de['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5773de['config']['get']('trackChanges.trackFormatChanges'),_0x5773de['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5773de['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5773de,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c1c2b=this['editor'],_0x5e3850=(_0x2fb71e,_0x466bfd)=>{if('attribute'!=_0x2fb71e)return'ck-suggestion-marker-'+_0x2fb71e;const _0x2a4615=_0x466bfd['split']('|')[0x0];return this['_isBlockAttribute'](_0x2a4615)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c1c2b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xc10d82=>{const {id:_0x42b50c,authorId:_0x5a8cb2,type:_0x1c9d66,subType:_0x80d127}=this['_splitMarkerName'](_0xc10d82['markerName']),_0x2e7797=['ck-suggestion-marker',_0x5e3850(_0x1c9d66,_0x80d127)];let _0x573002=0xbb8;return this['activeMarkers']['includes'](_0xc10d82['markerName'])&&(_0x2e7797['push']('ck-suggestion-marker--active'),_0x573002=0xbc2),'deletion'==_0x1c9d66&&(_0x573002+=0x5),{'classes':_0x2e7797,'attributes':{'data-suggestion':_0x42b50c,'data-author-id':_0x5a8cb2},'priority':_0x573002};}}),_0x5c1c2b['conversion']['for']('dataDowncast')['add'](_0x1b0264=>{_0x1b0264['on']('addMarker:suggestion',(_0x359610,_0x551a06,_0x55e142)=>{if(!_0x55e142['options']['showSuggestionHighlights'])return;const _0x276db3=_0x551a06['item'];if(!_0x276db3)return;const _0x1bf145=_0x55e142['mapper']['toViewElement'](_0x276db3);_0x5c1c2b['model']['schema']['isObject'](_0x276db3)&&_0x1bf145&&!_0x1bf145['getCustomProperty']('widget')&&_0x1bf145['is']('containerElement')&&_0x50a07e(_0x1bf145,_0x55e142['writer']);},{'priority':'high'});}),_0x5c1c2b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x46c24e,_0x2788b8)=>{if(!_0x2788b8['options']['showSuggestionHighlights'])return null;const {type:_0x17c0a4,subType:_0x2d82a0}=this['_splitMarkerName'](_0x46c24e['markerName']);return{'classes':['ck-suggestion-marker',_0x5e3850(_0x17c0a4,_0x2d82a0)],'priority':0xbb8};}});const _0x313c9c=({showActiveMarkers:_0x4bec73=!0x0,isAttributeSuggestion:_0x2ca179=!0x1}={})=>(_0x56a64c,_0x481ff2,_0x4ef396)=>{if(!_0x481ff2['item'])return;const {id:_0x12a6f8,authorId:_0x551f73}=this['_splitMarkerName'](_0x481ff2['markerName']);if(_0x2ca179){const _0x4883c5=this['_suggestions']['get'](_0x12a6f8),_0x4bdf71=this['_getAttributeKey'](_0x4883c5);if(!this['_isBlockAttribute'](_0x4bdf71))return;}if(_0x481ff2['item']['is']('selection'))return void _0x4ef396['consumable']['consume'](_0x481ff2['item'],_0x56a64c['name']);const _0x58dfa9=_0x4ef396['mapper']['toViewElement'](_0x481ff2['item']);if(_0x481ff2['item']['is']('element')&&_0x5c1c2b['model']['schema']['isBlock'](_0x481ff2['item'])&&!_0x58dfa9['getCustomProperty']('addHighlight')){_0x4ef396['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x58dfa9),_0x4ef396['writer']['setAttribute']('data-suggestion',_0x12a6f8,_0x58dfa9),_0x4ef396['writer']['setAttribute']('data-author-id',_0x551f73,_0x58dfa9),_0x4ef396['mapper']['bindElementToMarker'](_0x58dfa9,_0x481ff2['markerName']),_0x4bec73&&(this['activeMarkers']['includes'](_0x481ff2['markerName'])?_0x4ef396['writer']['addClass']('ck-suggestion-marker--active',_0x58dfa9):_0x4ef396['writer']['removeClass']('ck-suggestion-marker--active',_0x58dfa9));for(const _0x393392 of _0x5c1c2b['model']['createRangeIn'](_0x481ff2['item'])['getItems']())_0x4ef396['consumable']['consume'](_0x393392,_0x56a64c['name']);_0x4ef396['consumable']['consume'](_0x481ff2['item'],_0x56a64c['name']);}};_0x5c1c2b['conversion']['for']('dataDowncast')['add'](_0x8e606c=>{_0x8e606c['on']('addMarker:suggestion:formatBlock',(_0x40d018,_0x33706f,_0x27e0e0)=>{_0x27e0e0['options']['showSuggestionHighlights']&&_0x313c9c({'showActiveMarkers':!0x1})(_0x40d018,_0x33706f,_0x27e0e0);},{'priority':'highest'});}),_0x5c1c2b['conversion']['for']('dataDowncast')['add'](_0x54ddb0=>{_0x54ddb0['on']('addMarker:suggestion:attribute',(_0x291836,_0x548fa3,_0x4ffb40)=>{_0x4ffb40['options']['showSuggestionHighlights']&&_0x313c9c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x291836,_0x548fa3,_0x4ffb40);},{'priority':'highest'});}),_0x5c1c2b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1dcb19,_0xa89541)=>_0xa89541['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1dcb19['substr'](0xb)}}),_0x5c1c2b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42b557,{writer:_0x11c30f})=>{let _0x954004='suggestion:'+_0x42b557['getAttribute']('suggestion-type')+':'+_0x42b557['getAttribute']('id');return _0x42b557['getAttribute']('marker-count')&&(_0x954004+=':'+_0x42b557['getAttribute']('marker-count')),_0x11c30f['createElement']('$marker',{'data-name':_0x954004});}}),_0x5c1c2b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0x25f6c3=>{_0x25f6c3['on']('addMarker:suggestion:formatBlock',_0x313c9c(),{'priority':'high'});}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0xd582b1=>{_0xd582b1['on']('addMarker:suggestion:attribute',_0x313c9c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0x25ccd7=>{_0x25ccd7['on']('removeMarker:suggestion:formatBlock',(_0x1fba35,_0x5a85a8,_0x5ef2a2)=>{const _0x13a656=_0x5ef2a2['mapper']['markerNameToElements'](_0x5a85a8['markerName']);if(_0x13a656){for(const _0x514c6a of _0x13a656)_0x514c6a['getCustomProperty']('addHighlight')||(_0x5ef2a2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x514c6a),_0x5ef2a2['writer']['removeAttribute']('data-suggestion',_0x514c6a),_0x5ef2a2['writer']['removeAttribute']('data-author-id',_0x514c6a),_0x5ef2a2['mapper']['unbindElementFromMarkerName'](_0x514c6a,_0x5a85a8['markerName']));}},{'priority':'high'});}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0x7629ef=>{_0x7629ef['on']('removeMarker:suggestion:attribute',(_0x141658,_0x51dca7,_0x315ea9)=>{const _0xa4ad90=_0x315ea9['mapper']['markerNameToElements'](_0x51dca7['markerName']);if(!_0xa4ad90)return;const {id:_0x463890}=this['_splitMarkerName'](_0x51dca7['markerName']),_0xc9cbec=this['_suggestions']['get'](_0x463890),_0x1b77e2=this['_getAttributeKey'](_0xc9cbec);if(this['_isBlockAttribute'](_0x1b77e2)){for(const _0x2da000 of _0xa4ad90)_0x2da000['getCustomProperty']('addHighlight')||(_0x315ea9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2da000),_0x315ea9['writer']['removeAttribute']('data-suggestion',_0x2da000),_0x315ea9['writer']['removeAttribute']('data-author-id',_0x2da000),_0x315ea9['mapper']['unbindElementFromMarkerName'](_0x2da000,_0x51dca7['markerName']));}},{'priority':'high'});}),_0x5c1c2b['model']['document']['registerPostFixer'](_0x27f0ce=>{let _0x18f337=!0x1;const _0x28a821=Array['from'](_0x5c1c2b['model']['document']['differ']['getChangedMarkers']()),_0xedd80e=new Set();for(const {name:_0x3a1593,data:_0x47a22c}of _0x28a821){const {group:_0x276415,type:_0x2b55bd,subType:_0x3fa116,id:_0x20bb3d}=this['_splitMarkerName'](_0x3a1593);if('suggestion'!==_0x276415)continue;const _0x3fa5a1=this['_suggestions']['get'](_0x20bb3d);if(null!=_0x47a22c['newRange']){'formatInline'==_0x2b55bd&&(_0x18f337=_0x18f337||Lt(_0x47a22c['newRange'],_0x3a1593,_0x27f0ce,_0x5c1c2b['model']['schema']));const _0x3ec6c3='attribute'==_0x2b55bd&&this['_isBlockAttribute'](_0x3fa116['split']('|')[0x0]);if(_0x47a22c['newRange']['isCollapsed']||'$graveyard'==_0x47a22c['newRange']['root']['rootName']||'formatBlock'==_0x2b55bd&&!Ht(_0x47a22c['newRange'])||_0x3ec6c3&&!Ht(_0x47a22c['newRange'])||'deletion'==_0x2b55bd&&!(!Ft(_0x412ddf=_0x47a22c['newRange'])&&!function(_0x25e51f){return _0x25e51f['start']['parent']==_0x25e51f['end']['nodeBefore']&&_0x25e51f['start']['isAtEnd'];}(_0x412ddf)))_0x27f0ce['removeMarker'](_0x3a1593),_0x18f337=!0x0;else{if(!_0x3fa5a1||!_0x3fa5a1['isInContent'])continue;if(_0x47a22c['newRange']&&_0x47a22c['oldRange']&&_0x47a22c['newRange']['isEqual'](_0x47a22c['oldRange']))continue;_0xedd80e['add'](_0x3fa5a1);}}}var _0x412ddf;return _0xedd80e['size']>0x0&&(_0x18f337=!!this['_joinWithAdjacentSuggestions'](_0xedd80e)||_0x18f337),_0x18f337;}),_0x5c1c2b['model']['document']['registerPostFixer'](_0x6a850e=>{let _0x55c104=!0x1;for(const _0x8bb96a of _0x5c1c2b['model']['document']['differ']['getChanges']())if('insert'==_0x8bb96a['type'])for(const _0x279dbb of this['_suggestions']['values']()){if(_0x279dbb['isMultiRange']||!_0x279dbb['isInContent'])continue;const _0x4b132c='formatBlock'==_0x279dbb['type'],_0x5b7200=this['_getAttributeKey'](_0x279dbb),_0x16dbcf=_0x5b7200&&this['_isBlockAttribute'](_0x5b7200);if(!_0x4b132c&&!_0x16dbcf)continue;const _0x368dd2=_0x279dbb['getFirstRange']();if(_0x368dd2['start']['parent']!=_0x368dd2['end']['parent']&&!_0x368dd2['end']['isAtEnd']){const _0x418e3b=_0x5c1c2b['model']['createPositionAt'](_0x368dd2['start']['nodeAfter'],'end'),_0x5d2341=_0x5c1c2b['model']['createRange'](_0x368dd2['start'],_0x418e3b);_0x6a850e['updateMarker'](_0x279dbb['getFirstMarker'](),{'range':_0x5d2341}),_0x55c104=!0x0;}}return _0x55c104;}),_0x5c1c2b['model']['document']['registerPostFixer'](_0x4323ab=>this['_processAttributeChanges'](_0x4323ab)),_0x5c1c2b['model']['document']['registerPostFixer'](_0x3bf8e0=>!_0x3bf8e0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3bf8e0)),_0x5c1c2b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c1c2b['model']['document']['on']('change:data',(_0x200401,_0x5216b8)=>{if(!_0x5216b8['isLocal']||_0x5216b8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f9ad8=_0x5c1c2b['model']['document']['differ']['getChanges']();if(0x0==_0x1f9ad8['length'])return;const _0x19123f=[],_0x1b0492=_0x1f9ad8['filter'](_0x41a381=>'attribute'==_0x41a381['type']),_0x19e089=_0x1f9ad8['filter'](_0x31ed77=>'insert'==_0x31ed77['type']&&'$text'!=_0x31ed77['name']);for(const _0xe79d1f of _0x1b0492)this['_isRegisteredAttribute'](_0xe79d1f['attributeKey'])&&_0x19123f['push']({'key':_0xe79d1f['attributeKey'],'newValue':_0xe79d1f['attributeNewValue'],'oldValue':_0xe79d1f['attributeOldValue'],'range':qt(_0xe79d1f['range'],_0x5c1c2b['model'])});for(const _0x18e4ba of _0x19e089){if('rename'!=_0x18e4ba['action']&&'refresh'!=_0x18e4ba['action'])continue;const _0xd68b47=zt(_0x18e4ba['position']['nodeAfter'],_0x5c1c2b['model']),_0x5e0792=_0x18e4ba['before'];'rename'==_0x18e4ba['action']&&_0x19123f['push']({'key':m,'newValue':_0x18e4ba['name'],'oldValue':_0x5e0792['name'],'range':_0xd68b47});for(const [_0x1820b9,_0x28df00]of _0x5e0792['attributes']){if(!this['_isRegisteredAttribute'](_0x1820b9))continue;const _0x2aec5c=_0x18e4ba['attributes']['get'](_0x1820b9);_0x28df00!==_0x2aec5c&&_0x19123f['push']({'key':_0x1820b9,'newValue':_0x2aec5c,'oldValue':_0x28df00,'range':_0xd68b47});}for(const [_0x243e75,_0x5c1d4e]of _0x18e4ba['attributes'])this['_isRegisteredAttribute'](_0x243e75)&&(_0x5e0792['attributes']['has'](_0x243e75)||_0x19123f['push']({'key':_0x243e75,'newValue':_0x5c1d4e,'oldValue':null,'range':_0xd68b47}));}0x0!=_0x19123f['length']&&_0x5c1c2b['model']['enqueueChange'](_0x5216b8,_0x379cca=>{const _0x13373a=_0x53814c();for(const {range:_0x5093c0,key:_0x2d582c,oldValue:_0x435412,newValue:_0x1694fa}of _0x19123f)this['markAttributeChange'](_0x5093c0,_0x2d582c,_0x435412,_0x1694fa,{'groupId':_0x13373a});this['_reduceExistingSuggestions'](_0x379cca,_0x19123f);});},{'priority':'lowest'}),_0x5c1c2b['model']['markers']['on']('update:suggestion',(_0x101644,_0x8cc9a8,_0x15bf0e)=>{if(null==_0x15bf0e){const {id:_0x4e0dcc}=this['_splitMarkerName'](_0x8cc9a8['name']),_0xafccea=this['_suggestions']['get'](_0x4e0dcc);_0xafccea&&_0xafccea['addMarkerName'](_0x8cc9a8['name']);}}),_0x5c1c2b['model']['document']['on']('change:data',()=>{const _0x39c77d=Array['from'](_0x5c1c2b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x44e8db=>'suggestion'===this['_splitMarkerName'](_0x44e8db['name'])['group']);if(0x0===_0x39c77d['length'])return;_0x39c77d['sort']((_0x2cfec5,_0x29d94a)=>{const _0x2c716c=_0x2cfec5['data']['oldRange'],_0x162b30=_0x29d94a['data']['oldRange'];return null===_0x2c716c&&null===_0x162b30?0x0:null===_0x2c716c&&null!==_0x162b30?-0x1:null!==_0x2c716c&&null===_0x162b30?0x1:_0x2c716c['start']['isBefore'](_0x162b30['start'])?-0x1:0x1;});const _0x56c073=new Set(),_0x3e5b44=new Set();for(const {name:_0x174bb0,data:_0x1ebdf3}of _0x39c77d){const {id:_0x41842b}=this['_splitMarkerName'](_0x174bb0);if(null===_0x1ebdf3['oldRange']){const _0x1a4e42=this['_handleNewSuggestionMarker'](_0x174bb0);_0x3e5b44['add'](_0x1a4e42);}else{const _0x12d848=this['_suggestions']['get'](_0x41842b);null!==_0x1ebdf3['newRange']||_0x12d848['isInContent']?(_0x56c073['add'](_0x12d848['head']),_0x3e5b44['add'](_0x12d848)):this['_removeSuggestion'](_0x12d848);}}_0x3e5b44['size']>0x0&&this['_refreshSuggestionsChain'](_0x3e5b44);for(const _0x21dcad of _0x56c073)this['fire']('suggestionChanged',_0x21dcad);}),_0x5c1c2b['model']['on']('applyOperation',(_0x3456be,_0x1fc2b4)=>{const _0x2340ff=_0x1fc2b4[0x0];if(!this['_suggestions']['size'])return;if(!_0x2340ff['isDocumentOperation'])return;if(_0x2340ff['batch']['isUndo']||!_0x2340ff['batch']['isLocal'])return;let _0x166c50,_0x5032e4;switch(_0x2340ff['type']){case'insert':_0x166c50=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['position']),_0x5032e4=_0x166c50['getShiftedBy'](_0x2340ff['howMany']);break;case'split':_0x166c50=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['splitPosition']),_0x5032e4=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['moveTargetPosition']);break;case'move':_0x166c50=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['targetPosition']),_0x5032e4=_0x166c50['getShiftedBy'](_0x2340ff['howMany']);break;default:return;}const _0xc8bf50=_0x5c1c2b['model']['createRange'](_0x166c50,_0x5032e4);_0x5c1c2b['model']['change'](()=>{for(const {suggestion:_0x40bae9,meta:_0xb08a02}of this['_findSuggestions'](_0xc8bf50)){if(_0x40bae9['isMultiRange'])continue;if('formatInline'==_0x40bae9['type'])continue;const _0x2f626e=this['_getAttributeKey'](_0x40bae9);if(_0x2f626e&&this['_isBlockAttribute'](_0x2f626e)&&'split'!=_0x2340ff['type'])continue;const _0x3e0a65=_0x40bae9['data']&&_0x40bae9['data']['multipleBlocks'];('formatBlock'!=_0x40bae9['type']||'split'==_0x2340ff['type']&&!_0x3e0a65)&&(_0xb08a02['containsRangeInObject']||'insertion'==_0x40bae9['type']&&_0xb08a02['isOwn']||_0x40bae9['getFirstRange']()['containsRange'](_0xc8bf50)&&this['_breakSuggestionMarker'](_0x40bae9,_0x166c50,_0x5032e4));}});},{'priority':'lowest'}),_0x5c1c2b['model']['on']('deleteContent',(_0xa2a551,_0x344eb7)=>{const _0x2e251a=_0x344eb7[0x0],_0x4720ac=_0x344eb7[0x1];if(_0x4720ac&&_0x4720ac['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e251a['isCollapsed'])return;const _0x4015b4=_0x5c1c2b['model']['schema'],{start:_0x29305f,end:_0x13da46}=_0x2e251a['getFirstRange'](),_0x35ff3d=_0x29305f['nodeAfter']&&_0x4015b4['isLimit'](_0x29305f['nodeAfter'])?null:_0x4015b4['getNearestSelectionRange'](_0x29305f,'forward'),_0x2b7d29=_0x13da46['nodeBefore']&&_0x4015b4['isLimit'](_0x13da46['nodeBefore'])?null:_0x4015b4['getNearestSelectionRange'](_0x13da46,'backward'),_0x333c9f=_0x5c1c2b['model']['createRange'](_0x35ff3d?_0x35ff3d['start']:_0x29305f,_0x2b7d29?_0x2b7d29['end']:_0x13da46);_0x5c1c2b['model']['change'](_0x5134ee=>{this['markDeletion'](_0x333c9f);const _0xc9c559=_0x5c1c2b['model']['schema']['getNearestSelectionRange'](_0x333c9f['start']);_0x2e251a['is']('documentSelection')?_0x5134ee['setSelection'](_0xc9c559):_0x2e251a['setTo'](_0xc9c559);}),_0xa2a551['stop']();},{'priority':_0x14f8c3['normal']+0xa}),_0x5c1c2b['model']['on']('insertContent',(_0x1ffcbd,_0x132345)=>{const _0x153c12=_0x132345[_0x132345['length']-0x1];_0x153c12&&_0x153c12['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c1c2b['model']['change'](()=>{let _0x4c1ce2=_0x5c1c2b['model']['insertContent'](_0x132345[0x0],_0x132345[0x1],_0x132345[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c1ce2)return;_0x1ffcbd['return']=_0x4c1ce2['clone']();const _0x20ee9f=_0x4c1ce2['end']['nodeBefore'],_0x45809d=_0x5c1c2b['model']['schema'];_0x20ee9f&&_0x45809d['isBlock'](_0x20ee9f)&&!_0x45809d['isObject'](_0x20ee9f)&&(_0x4c1ce2=_0x5c1c2b['model']['createRange'](_0x4c1ce2['start'],_0x5c1c2b['model']['createPositionAt'](_0x20ee9f,'end'))),this['markInsertion'](_0x4c1ce2);}),_0x1ffcbd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf4635d=new O(_0x5c1c2b,this['_suggestions']);_0x5c1c2b['commands']['add']('acceptSuggestion',_0xf4635d),this['enableCommand']('acceptSuggestion');const _0x545092=new R(_0x5c1c2b,this['_suggestions']);_0x5c1c2b['commands']['add']('discardSuggestion',_0x545092),this['enableCommand']('discardSuggestion'),_0x5c1c2b['commands']['add']('acceptAllSuggestions',new x(_0x5c1c2b,_0xf4635d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c1c2b['commands']['add']('discardAllSuggestions',new x(_0x5c1c2b,_0x545092,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c1c2b['commands']['add']('acceptSelectedSuggestions',new E(_0x5c1c2b,_0xf4635d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c1c2b['commands']['add']('discardSelectedSuggestions',new E(_0x5c1c2b,_0x545092,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3a5a96=_0x5c1c2b['plugins']['get']('CommentsRepository');this['listenTo'](_0x3a5a96,'addComment',(_0x56e4f0,{threadId:_0xa9045f})=>{const _0x50195e=this['_suggestions']['get'](_0xa9045f);_0x50195e&&_0x50195e['commentThread']&&0x1===_0x50195e['commentThread']['length']&&this['_updateSuggestionData'](_0xa9045f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3a5a96,'removeComment',(_0x2d5a90,{threadId:_0x523906})=>{const _0x459d5c=this['_suggestions']['get'](_0x523906);_0x459d5c&&_0x459d5c['commentThread']&&!_0x459d5c['commentThread']['length']&&this['_updateSuggestionData'](_0x523906,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x514653){const _0x31b188=_0xf0ddf2([0x75,0x67,0x61,0x4c,0x52,0x71,0x31,0x58,0x48,0x62,0x4e,0x44,0x46,0x76,0x68,0x79,0x6e,0x54,0x39,0x32,0x57,0x69,0x37,0x34,0x4a,0x70,0x6c,0x6b,0x35,0x4f,0x63,0x41,0x7a,0x33,0x47,0x53,0x64,0x50,0x55,0x49,0x4d,0x38,0x43,0x5a,0x30,0x6f,0x73,0x65,0x42,0x56,0x4b,0x78,0x72,0x74,0x36,0x6a,0x6d,0x59,0x66,0x51,0x45,0x77]),_0x1ad0c0=0x4b0a97e,_0x482a19=0x4b7f6ee^_0x1ad0c0,_0xf3809b=window[_0xf0ddf2([0x44,0x61,0x74,0x65])][_0xf0ddf2([0x6e,0x6f,0x77])](),_0x549eba=_0x514653[_0xf0ddf2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17ba7b=new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a0fd5=>{_0x549eba[_0xf0ddf2([0x6f,0x6e,0x63,0x65])](_0xf0ddf2([0x72,0x65,0x61,0x64,0x79]),_0x1a0fd5);}),_0x411a8e={[_0xf0ddf2([0x6b,0x74,0x79])]:_0xf0ddf2([0x45,0x43]),[_0xf0ddf2([0x75,0x73,0x65])]:_0xf0ddf2([0x73,0x69,0x67]),[_0xf0ddf2([0x63,0x72,0x76])]:_0xf0ddf2([0x50,0x2d,0x32,0x35,0x36]),[_0xf0ddf2([0x78])]:_0xf0ddf2([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]),[_0xf0ddf2([0x79])]:_0xf0ddf2([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]),[_0xf0ddf2([0x61,0x6c,0x67])]:_0xf0ddf2([0x45,0x53,0x32,0x35,0x36])},_0x21b5e2=_0x549eba[_0xf0ddf2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf0ddf2([0x67,0x65,0x74])](_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24219c(){let _0x1cc45e,_0xb90be8=null,_0x39e671=null;try{if(_0x21b5e2==_0xf0ddf2([0x47,0x50,0x4c]))return _0xf0ddf2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cc45e=_0x53c03b(),!_0x1cc45e)return _0xf0ddf2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cc45e[_0xf0ddf2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39e671=_0xb2f8b0(_0x1cc45e[_0xf0ddf2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cc45e[_0xf0ddf2([0x6a,0x74,0x69])])),await _0x44ad6d()?_0x45056b()?_0x4b343c()?_0xf0ddf2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xbba3af()?(_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf0ddf2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb90be8=_0x40ee7c(_0xf0ddf2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf0ddf2([0x74,0x72,0x69,0x61,0x6c])&&(_0xb90be8=_0x40ee7c(_0xf0ddf2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b052a()):_0xf0ddf2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf0ddf2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf0ddf2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39dfb9){return _0xf0ddf2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b343c(){const _0x5a822d=[_0xf0ddf2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf0ddf2([0x74,0x72,0x69,0x61,0x6c])][_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf3809b/0x3e8:0xe10*_0x482a19;return _0x1cc45e[_0xf0ddf2([0x65,0x78,0x70])]<_0x5a822d;}function _0x45056b(){const _0x13bbb4=_0x1cc45e[_0xf0ddf2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13bbb4)return!0x1;if(_0x13bbb4[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x2a])))return!0x0;if(_0x13bbb4[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x54,0x43])))return!0x0;if(_0x13bbb4[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x52,0x54,0x43]))){if(_0x4ce39c())return!0x0;if(_0x2f871d()||_0x3f8778())return!0x0;}return!0x1;}function _0xbba3af(){const _0x1002a8=_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1002a8||0x0==_0x1002a8[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ec339}=new URL(window[_0xf0ddf2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1002a8[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ec339))return!0x0;const _0x11a52d=_0x1ec339[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e]));return _0x1002a8[_0xf0ddf2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36da7e=>_0x36da7e[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x2a])))[_0xf0ddf2([0x6d,0x61,0x70])](_0x2fe042=>_0x2fe042[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e])))[_0xf0ddf2([0x73,0x6f,0x6d,0x65])](_0x24123d=>_0x11a52d[_0xf0ddf2([0x65,0x76,0x65,0x72,0x79])]((_0x3d2fd5,_0x3f0569)=>_0x24123d[_0x3f0569]===_0x3d2fd5||_0x24123d[_0x3f0569]===_0xf0ddf2([0x2a])));}function _0x2b052a(){return _0xb90be8&&_0x39e671?new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23a3a3,_0x5f2d45)=>{_0xb90be8[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x23a3a3,_0x5f2d45),_0x39e671[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x136778=>{_0x136778!=_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64])&&_0x23a3a3(_0x136778);},_0x5f2d45);}):_0xb90be8||_0x39e671||_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb2f8b0(_0x149a3e,_0x9f9fc4){return new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x174d73=>{if(_0x47bd3d())return _0x174d73(_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64]));_0x1c4528(),_0x549eba[_0xf0ddf2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf0ddf2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x303cdc=!0x1;const _0x37a265=_0x53814c();function _0x215eaf(_0x8a3e50){return!!_0x8a3e50&&(typeof _0x8a3e50===_0xf0ddf2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8a3e50===_0xf0ddf2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8a3e50[_0xf0ddf2([0x74,0x68,0x65,0x6e])]===_0xf0ddf2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8a3e50[_0xf0ddf2([0x63,0x61,0x74,0x63,0x68])]===_0xf0ddf2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x367d1b(_0x2e3aac){_0x18bb55(_0x2e3aac)[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x1b2987=>{if(!_0x1b2987||_0x1b2987[_0xf0ddf2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf0ddf2([0x6f,0x6b]))return _0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47b771(_0x1aab15(_0x37a265+_0x9f9fc4))!=_0x1b2987[_0xf0ddf2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64]);})[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x208652=>(_0x4dfeb9(),_0x208652),()=>{const _0x51e3e9=_0x55f95b();return null==_0x51e3e9?(_0x4dfeb9(),_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64])):_0xf0ddf2(_0xf3809b-_0x51e3e9>(0x20bc2d7e^_0x1ad0c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x174d73)[_0xf0ddf2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x174d73(_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59877a=0x48647fe^_0x1ad0c0;function _0x4dfeb9(){const _0x57e7d0=_0xf0ddf2([0x6c,0x6c,0x63,0x74,0x2d])+_0x47b771(_0x1aab15(_0x149a3e)),_0x2c09d=_0x3eb23e(_0x47b771(window[_0xf0ddf2([0x4d,0x61,0x74,0x68])][_0xf0ddf2([0x63,0x65,0x69,0x6c])](_0xf3809b/_0x59877a)));window[_0xf0ddf2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf0ddf2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57e7d0,_0x2c09d);}function _0x55f95b(){const _0x33a79f=_0xf0ddf2([0x6c,0x6c,0x63,0x74,0x2d])+_0x47b771(_0x1aab15(_0x149a3e)),_0x3e8f8c=window[_0xf0ddf2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf0ddf2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33a79f);return _0x3e8f8c?window[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3eb23e(_0x3e8f8c),0x10)*_0x59877a:null;}function _0x18bb55(_0x8627a1){return new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d2c21,_0x443c13)=>{_0x8627a1[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x4d2c21,_0x443c13),window[_0xf0ddf2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x443c13,0x4b17dbe^_0x1ad0c0);});}}_0x549eba[_0xf0ddf2([0x6f,0x6e])](_0xf0ddf2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a1b55,_0x80fc91)=>{if(_0x80fc91[0x0]!=_0x149a3e)return _0x174d73(_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x80fc91[0x1]={..._0x80fc91[0x1],[_0xf0ddf2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37a265};},{[_0xf0ddf2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf0ddf2([0x68,0x69,0x67,0x68])}),_0x549eba[_0xf0ddf2([0x6f,0x6e])](_0xf0ddf2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x128145=>{_0x215eaf(_0x128145[_0xf0ddf2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x303cdc=!0x0,_0x367d1b(_0x128145[_0xf0ddf2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf0ddf2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf0ddf2([0x6c,0x6f,0x77])}),_0x17ba7b[_0xf0ddf2([0x74,0x68,0x65,0x6e])](()=>{_0x303cdc||_0x174d73(_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47bd3d(){return _0x549eba[_0xf0ddf2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf0ddf2([0x76,0x69,0x65,0x77])][_0xf0ddf2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf0ddf2([0x61,0x75,0x74,0x6f]);}function _0x1c4528(){_0x549eba[_0xf0ddf2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf0ddf2([0x76,0x69,0x65,0x77])][_0xf0ddf2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf0ddf2([0x61,0x75,0x74,0x6f]);}}function _0x40ee7c(_0x57c036){const _0x1a8038=[new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c28db=>setTimeout(_0x2c28db,0x4b997b2^_0x1ad0c0)),_0x17ba7b[_0xf0ddf2([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e432=>{let _0x5d35e8=0x0;_0x549eba[_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c])][_0xf0ddf2([0x6f,0x6e])](_0xf0ddf2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a35c1,_0x58f6fc)=>{_0x58f6fc[0x0][_0xf0ddf2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d35e8++,_0x5d35e8==(0x4b0a886^_0x1ad0c0)&&(_0x21e432(),_0x5a35c1[_0xf0ddf2([0x6f,0x66,0x66])]());});}))];return window[_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf0ddf2([0x72,0x61,0x63,0x65])](_0x1a8038)[_0xf0ddf2([0x74,0x68,0x65,0x6e])](()=>_0x57c036);}async function _0x2220ff(){await _0x17ba7b,_0x549eba[_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c])][_0xf0ddf2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd8a9,_0x549eba[_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c])][_0xf0ddf2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd8a9,_0x549eba[_0xf0ddf2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ce39c(){return _0x558f58(_0xf0ddf2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xca5e28(_0xf0ddf2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf0ddf2([0x73,0x74,0x61,0x74,0x65])]==_0xf0ddf2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f871d(){return _0x558f58(_0xf0ddf2([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 _0x3f8778(){return _0x558f58(_0xf0ddf2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x754961(_0x4c31b2){const _0x24596b=_0x1aa8d4();_0x549eba[_0x24596b]=_0xf0ddf2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c31b2,_0x4c31b2!=_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64])&&_0x2220ff();}function _0x1aa8d4(){const _0x2ced8e=window[_0xf0ddf2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf0ddf2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf0ddf2([0x6e,0x6f,0x77])]())[_0xf0ddf2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf0ddf2([0x2e]),'');let _0x2c03e0=_0xf0ddf2([0x75]);for(let _0x2bcaeb=0x0;_0x2bcaeb<_0x2ced8e[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bcaeb+=0x2){let _0x2c9726=window[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ced8e[_0xf0ddf2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bcaeb,_0x2bcaeb+0x2));_0x2c9726>=_0x31b188[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c9726-=_0x31b188[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c03e0+=_0x31b188[_0x2c9726];}return _0x2c03e0;}function _0x53c03b(){const _0x4b48c8=_0x21b5e2[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e]));if(0x3!=_0x4b48c8[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37fd3c(_0x4b48c8[0x1]);function _0x37fd3c(_0x12a118){const _0x3226a2=_0x9d916(_0x12a118);return _0x3226a2&&_0x3644ce()?_0x3226a2:null;function _0x3644ce(){const _0x5dc88a=_0x3226a2[_0xf0ddf2([0x6a,0x74,0x69])],_0xabde56=window[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dc88a[_0xf0ddf2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dc88a[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34a3a0={..._0x3226a2,[_0xf0ddf2([0x6a,0x74,0x69])]:_0x5dc88a[_0xf0ddf2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dc88a[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34a3a0[_0xf0ddf2([0x76,0x63])],_0x1aab15(_0x34a3a0)==_0xabde56;}}}async function _0x44ad6d(){let _0x35db1e=!0x0;try{const _0x45e099=_0x21b5e2[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e])),[_0x2051fc,_0x378dd9,_0x181444]=_0x45e099;return _0x3f4f39(_0x2051fc),await _0xf9b682(_0x2051fc,_0x378dd9,_0x181444),_0x35db1e;}catch(_0x3c226c){return!0x1;}function _0x3f4f39(_0x43a123){const _0x554e26=_0x9d916(_0x43a123);_0x554e26&&_0x554e26[_0xf0ddf2([0x61,0x6c,0x67])]==_0xf0ddf2([0x45,0x53,0x32,0x35,0x36])||(_0x35db1e=!0x1);}async function _0xf9b682(_0x5ef0dc,_0x94f706,_0x37a7a4){const _0x1e994f=window[_0xf0ddf2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf0ddf2([0x66,0x72,0x6f,0x6d])](_0x5ae64e(_0x37a7a4),_0x5983a8=>_0x5983a8[_0xf0ddf2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4777e9=new window[(_0xf0ddf2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf0ddf2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ef0dc+_0xf0ddf2([0x2e])+_0x94f706),_0x3e5149=window[_0xf0ddf2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf0ddf2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e5149)return;const _0x11dd5a=await _0x3e5149[_0xf0ddf2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf0ddf2([0x6a,0x77,0x6b]),_0x411a8e,{[_0xf0ddf2([0x6e,0x61,0x6d,0x65])]:_0xf0ddf2([0x45,0x43,0x44,0x53,0x41]),[_0xf0ddf2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf0ddf2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf0ddf2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e5149[_0xf0ddf2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf0ddf2([0x6e,0x61,0x6d,0x65])]:_0xf0ddf2([0x45,0x43,0x44,0x53,0x41]),[_0xf0ddf2([0x68,0x61,0x73,0x68])]:{[_0xf0ddf2([0x6e,0x61,0x6d,0x65])]:_0xf0ddf2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11dd5a,_0x1e994f,_0x4777e9)||(_0x35db1e=!0x1);}}function _0x9d916(_0x50e484){return _0x50e484[_0xf0ddf2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf0ddf2([0x65,0x79]))?JSON[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65])](_0x5ae64e(_0x50e484)):null;}function _0x5ae64e(_0x44e5e5){return window[_0xf0ddf2([0x61,0x74,0x6f,0x62])](_0x44e5e5[_0xf0ddf2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf0ddf2([0x2b]))[_0xf0ddf2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf0ddf2([0x2f])));}function _0x1aab15(_0x335c0f){let _0xfcfd2e=0x1505;function _0x3c1c26(_0x3197ac){for(let _0x13f5d7=0x0;_0x13f5d7<_0x3197ac[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13f5d7++){const _0xff1cf4=_0x3197ac[_0xf0ddf2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13f5d7);_0xfcfd2e=(_0xfcfd2e<<0x5)+_0xfcfd2e+_0xff1cf4,_0xfcfd2e&=_0xfcfd2e;}}function _0x509f2b(_0xf553ea){Array[_0xf0ddf2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf553ea)?_0xf553ea[_0xf0ddf2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x509f2b):_0xf553ea&&typeof _0xf553ea==_0xf0ddf2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf0ddf2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf553ea)[_0xf0ddf2([0x73,0x6f,0x72,0x74])]()[_0xf0ddf2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b5504,_0x19201e])=>{_0x3c1c26(_0x5b5504),_0x509f2b(_0x19201e);}):_0x3c1c26(window[_0xf0ddf2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf553ea));}return _0x509f2b(_0x335c0f),_0xfcfd2e>>>0x0;}function _0x47b771(_0x57be9a){return _0x57be9a[_0xf0ddf2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf0ddf2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf0ddf2([0x30]));}function _0x3eb23e(_0x512193){return _0x512193[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf0ddf2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf0ddf2([0x6a,0x6f,0x69,0x6e])]('');}function _0x558f58(_0x73241c){return _0x549eba[_0xf0ddf2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf0ddf2([0x68,0x61,0x73])](_0x73241c);}function _0xca5e28(_0x47bb11){return _0x549eba[_0xf0ddf2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf0ddf2([0x67,0x65,0x74])](_0x47bb11);}function _0x5cd8a9(){}function _0xf0ddf2(_0x5a281d){return _0x5a281d['map'](_0xf9bb47=>String['fromCharCode'](_0xf9bb47))['join']('');}_0x754961(await _0x24219c());}(this);}set['adapter'](_0x10ef12){if(this['_adapter'])throw new _0x534bac('track-changes-adapter-already-set',this);this['_adapter']=_0x10ef12;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f31bb=!0x1,toJSON:_0x323c80=!0x1}={}){const _0x124e97=[];for(const _0x540345 of this['_suggestions']['values']())_0x3f31bb&&!_0x540345['isInContent']||_0x124e97['push'](_0x540345);return _0x323c80?_0x124e97['map'](_0x50455c=>_0x50455c['toJSON']()):_0x124e97;}['getSuggestion'](_0x1c86f5){const _0x13ebfa=this['_suggestions']['get'](_0x1c86f5);if(!_0x13ebfa)throw new _0x534bac('track-changes-suggestion-not-found',this);return _0x13ebfa;}['hasSuggestion'](_0x5bf65e){return this['_suggestions']['has'](_0x5bf65e);}['addSuggestionData'](_0x36947f){const {authorId:_0x4ca92e,id:_0x318859,attributes:_0x51a1d3}=_0x36947f,[_0x78d445,_0x3a5849]=_0x36947f['type']['split'](':'),_0x305be8=this['_suggestions']['get'](_0x318859)||this['_createSuggestion'](_0x78d445,_0x3a5849,_0x318859,_0x4ca92e,_0x51a1d3);if(this['_addThreadToSuggestion'](_0x305be8),this['_checkSuggestionCorrectness'](_0x305be8,_0x78d445,_0x3a5849||null,_0x4ca92e),_0x305be8['createdAt']=_0x36947f['createdAt'],_0x305be8['_isDataLoaded']=!0x0,_0x51a1d3&&_0x51a1d3['@external']){const _0x36ae7a=_0x51a1d3['@external'],_0x5be068=this['_getExternalAuthor'](_0x36ae7a['authorName']);_0x305be8['authoredAt']=_0x36ae7a['createdAt'],_0x305be8['author']=_0x5be068,_0x305be8['isExternal']=!0x0;}else _0x305be8['authoredAt']=_0x36947f['createdAt'];switch(_0x36947f['data']&&(_0x305be8['data']=_0x36947f['data']),_0x36947f['attributes']&&(_0x305be8['attributes']=_0x36947f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x305be8['_saved']=!0x0),this['_suggestionState']['get'](_0x305be8)){case'notReady':this['_suggestionState']['set'](_0x305be8,'dataReady');break;case'markerReady':_0x305be8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x305be8])),this['_refreshSuggestionsChain'](new Set([_0x305be8])),this['_suggestionState']['set'](_0x305be8,'ready'),this['fire']('suggestionLoaded',_0x305be8)):this['_suggestionState']['set'](_0x305be8,'removed');}return _0x305be8;}['acceptSuggestion'](_0x4a9357){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42192d of _0x4a9357['getAllAdjacentSuggestions']())_0x42192d['accept']();});});}['discardSuggestion'](_0x238e89){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b1f6d of _0x238e89['getAllAdjacentSuggestions']())_0x2b1f6d['discard']();});});}['enableCommand'](_0x1fb197,_0x36e9e7){const _0x3d5483=this['editor']['commands']['get'](_0x1fb197);if(!_0x3d5483)throw new _0x534bac('track-changes-command-not-found',this,{'commandName':_0x1fb197});if(this['_enabledCommands']['has'](_0x3d5483))throw new _0x534bac('track-changes-enable-command-twice',this,{'commandName':_0x1fb197});this['_enabledCommands']['add'](_0x3d5483),_0x36e9e7&&_0x3d5483['on']('execute',(_0x7c025e,_0xf25f38)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xf25f38['length']>0x0&&_0xf25f38[_0xf25f38['length']-0x1]&&_0xf25f38[_0xf25f38['length']-0x1]['forceDefaultExecution']?_0xf25f38['pop']():(_0x7c025e['return']=_0x36e9e7((..._0x5b8cbe)=>_0x3d5483['execute'](..._0x5b8cbe,{'forceDefaultExecution':!0x0}),..._0xf25f38),_0x7c025e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x29e3fb){let _0x51352c,_0x1e6b43;const _0x46cdfd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51352c=_0x29e3fb();}catch(_0x3f7382){_0x1e6b43=_0x3f7382;}return _0x46cdfd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1e6b43&&_0x534bac['rethrowUnexpectedError'](_0x1e6b43,this),_0x51352c;}['markInsertion'](_0x534032,_0x47081b=null,_0x4a8ccd={}){if(_0x534032['isCollapsed'])return null;const _0x50c638=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x438eb6,meta:_0x3ebbbb}of this['_findSuggestions'](_0x534032,'insertion'))if(_0x3ebbbb['isOwn']){if(!_0x3ebbbb['isNextTo']){if(_0x3ebbbb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x438eb6,_0x4a8ccd))continue;return _0x438eb6;}if(Qt(_0x438eb6,_0x4a8ccd))return _0x438eb6;this['_breakSuggestionMarker'](_0x438eb6,_0x534032['start'],_0x534032['end']);break;}if(_0x47081b==_0x438eb6['subType']&&Qt(_0x438eb6,_0x4a8ccd)){const _0x151e66=_0x438eb6['getFirstRange']();return _0x151e66['start']['isEqual'](_0x534032['end'])?this['_setSuggestionRange'](_0x438eb6,this['_model']['createRange'](_0x534032['start'],_0x151e66['end'])):this['_setSuggestionRange'](_0x438eb6,this['_model']['createRange'](_0x151e66['start'],_0x534032['end'])),_0x438eb6;}}const _0x1bcdc3=_0x53814c(),_0x420886=_0x50c638['id'],_0x1b4f83=_0x47081b?'insertion:'+_0x47081b:'insertion',_0x2f83f8=this['_setSuggestionData']({'id':_0x1bcdc3,'type':_0x1b4f83,'createdAt':new Date(),'authorId':_0x420886,'attributes':_0x4a8ccd});return this['_addSuggestionMarker'](_0x1b4f83,_0x1bcdc3,_0x420886,_0x534032),_0x2f83f8;}['markMultiRangeInsertion'](_0x4a4f81,_0x3bc462='multi',_0x43844a={}){const _0x1b8303=this['editor']['plugins']['get']('Users')['me'],_0x538e0d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3bc462,'join');for(const _0x2b78dc of this['getSuggestions']())if(_0x2b78dc['author']['id']==_0x1b8303['id']&&'insertion'==_0x2b78dc['type']&&_0x2b78dc['subType']==_0x3bc462&&Qt(_0x2b78dc,_0x43844a)&&(_0x538e0d(_0x2b78dc['getRanges'](),_0x4a4f81)||_0x538e0d(_0x4a4f81,_0x2b78dc['getRanges']()))){for(const _0x5e1cb9 of _0x4a4f81)_0x2b78dc['addRange'](_0x5e1cb9);return _0x2b78dc;}for(const {suggestion:_0x4246db,meta:_0x37d5d9}of this['_findSuggestions'](_0x4a4f81,'insertion')){if(!_0x37d5d9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x37d5d9['containsRangeInObject'])continue;if(!Qt(_0x4246db,_0x43844a))continue;let _0x28975b=!0x0;for(const _0x1cb761 of _0x4246db['getRanges']())for(const _0x4a84bd of _0x4a4f81)if(!_0x1cb761['containsRange'](_0x4a84bd)){_0x28975b=!0x1;break;}if(_0x28975b)return _0x4246db;}const _0x215313=_0x53814c(),_0x2704d7=_0x1b8303['id'],_0x49a031='insertion:'+_0x3bc462,_0x227e99=this['_setSuggestionData']({'id':_0x215313,'type':_0x49a031,'createdAt':new Date(),'authorId':_0x2704d7,'attributes':_0x43844a});for(const _0x2586d0 of _0x4a4f81)this['_addSuggestionMarker'](_0x49a031,_0x215313,_0x2704d7,_0x2586d0,u['getMultiRangeId']());return _0x227e99;}['markInlineFormat'](_0x420bae,_0x4daff5,_0x1b5355=null,_0x2a71d6={}){if(_0x1b5355=_0x1b5355||Jt(_0x4daff5),_0x420bae['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x30194b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b5355,'accept');return this['forceDefaultExecution'](()=>_0x30194b([_0x420bae],_0x4daff5,_0x2a71d6)),null;}const _0x7113ca=this['editor']['plugins']['get']('Users')['me'],_0x2cc0ff=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x156ad9,meta:_0x2b8163}of this['_findSuggestions'](_0x420bae,'insertion'))_0x2b8163['isOwn']&&!_0x2b8163['isInsideObject']&&_0x2cc0ff['push'](..._0x156ad9['getRanges']());}const _0x2c8a09=function(_0x2a317d,_0xd29da3){const _0x3efe42=[];for(const _0x10d047 of _0xd29da3){const _0x363dee=_0x2a317d['getIntersection'](_0x10d047);_0x363dee&&_0x3efe42['push'](_0x363dee);}return _0x3efe42;}(_0x420bae,_0x2cc0ff),_0x96f2a2=function(_0x5a6475,_0x5d5f33){const _0x50e31e=[_0x5a6475];for(const _0xb660c4 of _0x5d5f33){let _0x51e5ce=0x0;for(;_0x51e5ce<_0x50e31e['length'];){const _0x5cfe0a=_0x50e31e[_0x51e5ce]['getDifference'](_0xb660c4);_0x50e31e['splice'](_0x51e5ce,0x1,..._0x5cfe0a),_0x51e5ce+=_0x5cfe0a['length'];}}return _0x50e31e;}(_0x420bae,_0x2cc0ff);_0x2c8a09['length']&&this['_model']['change'](()=>{for(const _0xdd0821 of _0x2c8a09){const _0x340c3a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b5355,'accept');this['forceDefaultExecution'](()=>_0x340c3a([_0xdd0821],_0x4daff5,_0x2a71d6));}});for(const _0x1d5b95 of _0x96f2a2){let _0x22e3db=null,_0x281b55=_0x1d5b95['start'],_0xdcc5fe=_0x1d5b95['end'];for(const {suggestion:_0x149093,meta:_0xac5474}of this['_findSuggestions'](_0x1d5b95,'formatInline')){if(!_0xac5474['isOwn'])continue;if(_0x149093['subType']!=_0x1b5355)continue;if(!Qt(_0x149093,_0x2a71d6))continue;const _0x3680f2=_0x149093['getFirstRange']();if(_0x3680f2['containsRange'](_0x1d5b95,!0x0))return null;_0x281b55=_0x281b55['isBefore'](_0x3680f2['start'])?_0x281b55:_0x3680f2['start'],_0xdcc5fe=_0xdcc5fe['isAfter'](_0x3680f2['end'])?_0xdcc5fe:_0x3680f2['end'],_0x22e3db?_0x3680f2['start']['isBefore'](_0x22e3db['getFirstRange']()['start'])?(_0x22e3db['removeMarkers'](),_0x22e3db=_0x149093):_0x149093['removeMarkers']():_0x22e3db=_0x149093;}const _0x227db3=this['_model']['createRange'](_0x281b55,_0xdcc5fe);if(_0x22e3db)this['_setSuggestionRange'](_0x22e3db,_0x227db3);else{const _0x35110c=_0x53814c(),_0x5f2870=_0x7113ca['id'];this['_setSuggestionData']({'id':_0x35110c,'type':'formatInline:'+_0x1b5355,'data':_0x4daff5,'createdAt':new Date(),'authorId':_0x5f2870,'attributes':_0x2a71d6}),this['_addSuggestionMarker']('formatInline:'+_0x1b5355,_0x35110c,_0x5f2870,_0x227db3);}}return null;}['markBlockFormat'](_0x2b9d21,_0x210329,_0x4603f4=[],_0xf822e5=null,_0x1eeaf4={}){_0x210329['formatGroupId']||(_0x210329['formatGroupId']=_0x210329['commandName']),_0x210329['multipleBlocks']=_0x2b9d21['is']('range'),_0xf822e5=_0xf822e5||Jt(_0x210329);const _0x7d4a95=_0x4603f4['map'](_0x54b5c0=>zt(_0x54b5c0,this['_model'])),_0x5375ca=_0x2b9d21['is']('range')?_0x2b9d21:zt(_0x2b9d21,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4e137b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf822e5,'accept');return this['forceDefaultExecution'](()=>_0x4e137b([_0x5375ca],_0x210329,_0x1eeaf4)),null;}_0x7d4a95['push'](_0x5375ca);let _0x3271d4=!0x0;for(const _0x6f2d9e of _0x7d4a95)if(!this['_rangeIsInLocalUserInsertion'](_0x6f2d9e)){_0x3271d4=!0x1;break;}if(_0x3271d4&&'always'!==this['_trackFormatChanges']){const _0x2ef0b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf822e5,'accept');return this['forceDefaultExecution'](()=>_0x2ef0b5([_0x5375ca],_0x210329,_0x1eeaf4)),null;}let _0x210e06=null,_0x499d89=_0x5375ca['start'],_0x36121b=_0x5375ca['end'];for(const {suggestion:_0x79579d,meta:_0x1c867b}of this['_findSuggestions'](_0x5375ca,'formatBlock')){if(!_0x1c867b['isOwn'])continue;if(_0x1c867b['isNextTo']||_0x1c867b['containsRangeInObject']||_0x1c867b['isInsideObject'])continue;if(_0x79579d['data']['formatGroupId']!=_0x210329['formatGroupId'])continue;if(!Qt(_0x79579d,_0x1eeaf4))continue;const _0x3b28be=_0x79579d['getFirstRange']();if(_0x79579d['subType']==_0xf822e5){if(_0x3b28be['containsRange'](_0x5375ca,!0x0))return null;_0x499d89=_0x499d89['isBefore'](_0x3b28be['start'])?_0x499d89:_0x3b28be['start'],_0x36121b=_0x36121b['isAfter'](_0x3b28be['end'])?_0x36121b:_0x3b28be['end'],_0x210e06?_0x3b28be['start']['isBefore'](_0x210e06['getFirstRange']()['start'])?(_0x210e06['removeMarkers'](),_0x210e06=_0x79579d):_0x79579d['removeMarkers']():_0x210e06=_0x79579d;}else{const _0x3f1bdf=_0x5375ca['getIntersection'](_0x3b28be);this['_cutOutSuggestionMarker'](_0x79579d,_0x3f1bdf);}}const _0x53456b=this['editor']['plugins']['get']('Users')['me'],_0x443f3a=_0x53814c(),_0x39a974=_0x53456b['id'];if(_0x210e06)return this['_setSuggestionRange'](_0x210e06,this['_model']['createRange'](_0x499d89,_0x36121b)),_0x210e06;{const _0x154a51=this['_setSuggestionData']({'id':_0x443f3a,'type':'formatBlock:'+_0xf822e5,'data':_0x210329,'createdAt':new Date(),'authorId':_0x39a974,'attributes':_0x1eeaf4});return this['_addSuggestionMarker']('formatBlock:'+_0xf822e5,_0x443f3a,_0x39a974,this['_model']['createRange'](_0x499d89,_0x36121b)),_0x154a51;}}['markMultiRangeBlockFormat'](_0x275460,_0x8bce0f,_0x348421=[],_0x4c6b8e=null,_0x532b6a={}){_0x8bce0f['formatGroupId']||(_0x8bce0f['formatGroupId']=_0x8bce0f['commandName']);const _0x55b8ee=_0x275460[0x0];_0x8bce0f['multipleBlocks']=_0x55b8ee['is']('range'),_0x4c6b8e=_0x4c6b8e||Jt(_0x8bce0f);const _0x167291=_0x348421['map'](_0xb31df6=>zt(_0xb31df6,this['_model'])),_0x5d2efb=_0x55b8ee['is']('range')?_0x275460:_0x275460['map'](_0x1a7df4=>zt(_0x1a7df4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x41a7cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c6b8e,'accept');return this['forceDefaultExecution'](()=>_0x41a7cd(_0x5d2efb,_0x8bce0f,_0x532b6a)),null;}_0x167291['push'](..._0x5d2efb);let _0x492790=!0x0;for(const _0x559982 of _0x167291)if(!this['_rangeIsInLocalUserInsertion'](_0x559982)){_0x492790=!0x1;break;}if(_0x492790&&'always'!==this['_trackFormatChanges']){const _0x10e6ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c6b8e,'accept');return this['forceDefaultExecution'](()=>_0x10e6ed(_0x5d2efb,_0x8bce0f,_0x532b6a)),null;}const _0xebdbec=this['editor']['plugins']['get']('Users')['me'];for(const _0x14f8a3 of this['getSuggestions']()){if(_0x14f8a3['author']['id']!=_0xebdbec['id'])continue;if('formatBlock'!=_0x14f8a3['type']||_0x14f8a3['data']['formatGroupId']!=_0x8bce0f['formatGroupId'])continue;if(!Qt(_0x14f8a3,_0x532b6a))continue;const _0x3aa544=_0x14f8a3['subType']==_0x4c6b8e;for(let _0x2319d3=0x0;_0x2319d3<_0x5d2efb['length'];_0x2319d3++){const _0x1dc947=_0x5d2efb[_0x2319d3];for(const _0x1d0e5e of _0x14f8a3['getMarkers']()){const _0x32aef8=_0x1d0e5e['getRange']();if(_0x1dc947['isEqual'](_0x32aef8)){_0x3aa544?(_0x5d2efb['splice'](_0x2319d3,0x1),_0x2319d3--):_0x14f8a3['removeMarker'](_0x1d0e5e['name']);break;}}}}if(0x0==_0x5d2efb['length'])return null;const _0x1e26d9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c6b8e,'join');for(const _0x34583b of this['getSuggestions']())if(_0x34583b['author']['id']==_0xebdbec['id']&&'formatBlock'==_0x34583b['type']&&_0x34583b['data']['formatGroupId']==_0x8bce0f['formatGroupId']&&_0x34583b['subType']==_0x4c6b8e&&Qt(_0x34583b,_0x532b6a)&&(_0x1e26d9(_0x34583b['getRanges'](),_0x5d2efb)||_0x1e26d9(_0x5d2efb,_0x34583b['getRanges']()))){for(const _0x3937d1 of _0x5d2efb)_0x34583b['addRange'](_0x3937d1);return _0x34583b;}const _0x51d2fb=_0x53814c(),_0x15b287=_0xebdbec['id'],_0x28c137='formatBlock:'+_0x4c6b8e,_0x145c71=this['_setSuggestionData']({'id':_0x51d2fb,'type':_0x28c137,'data':_0x8bce0f,'createdAt':new Date(),'authorId':_0x15b287,'attributes':_0x532b6a});for(const _0x3230c6 of _0x5d2efb)this['_addSuggestionMarker'](_0x28c137,_0x51d2fb,_0x15b287,_0x3230c6,u['getMultiRangeId']());return _0x145c71;}['markDeletion'](_0x5bb0d4,_0x4fbb51=null,_0xe9583e={}){if(_0x5bb0d4['isCollapsed'])return null;const _0x4efe90=this['editor']['plugins']['get']('Users')['me'],_0x2c15c2=new _0x1abeca(_0x5bb0d4['start'],_0x5bb0d4['end']);for(const {suggestion:_0x26d7aa,meta:_0x4890a9}of this['_findSuggestions'](_0x2c15c2,'insertion'))if(_0x4890a9['isOwn']&&!_0x4890a9['isNextTo']){if(_0x26d7aa['isMultiRange']){const _0x1e245c=_0x26d7aa['getRanges']()['filter'](_0x300206=>'$graveyard'!=_0x300206['root']['rootName']);_0x1e245c['every'](_0x4bc180=>_0x2c15c2['containsRange'](_0x4bc180,!0x0))&&_0x26d7aa['discard']();if(_0x1e245c['some'](_0x28b7bb=>_0x28b7bb['containsRange'](_0x2c15c2,!0x0))){const _0x4a3618=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fbb51,'accept');return this['forceDefaultExecution'](()=>_0x4a3618([_0x2c15c2],null,_0xe9583e)),null;}}else{const _0x45a5ff=_0x2c15c2['getIntersection'](_0x26d7aa['getFirstRange']());null!==_0x45a5ff&&_0x26d7aa['_onDiscard']([_0x45a5ff],null,_0xe9583e);}}if(_0x2c15c2['detach'](),_0x2c15c2['isCollapsed']||'$graveyard'==_0x2c15c2['root']['rootName'])return null;let _0x4a3f6b=null,_0xe8ad81=_0x2c15c2['start'],_0x1c6753=_0x2c15c2['end'];const _0x32c23d=this['_findSuggestions'](_0x2c15c2,'deletion');for(const {suggestion:_0x36be9d,meta:_0x273c46}of _0x32c23d){const _0x479ad8=this['_model']['createRange'](_0xe8ad81,_0x1c6753);if(_0x273c46['isOwn']&&(this['_mergeNestedSuggestions']||!_0x273c46['containsRangeInObject']&&!_0x273c46['isInsideObject'])){if(_0x36be9d['isMultiRange']){if(!Qt(_0x36be9d,_0xe9583e))continue;let _0x2e2767=!0x0;for(const _0x5bf66e of _0x36be9d['getRanges']()){if(_0x5bf66e['containsRange'](_0x479ad8,!0x0))return _0x36be9d;_0x479ad8['containsRange'](_0x5bf66e)||(_0x2e2767=!0x1);}_0x2e2767&&_0x36be9d['discard']();}else{const _0x47879f=_0x36be9d['getFirstRange']();if(_0x47879f['containsRange'](_0x479ad8,!0x0))return _0x36be9d;if(!Qt(_0x36be9d,_0xe9583e)){_0x479ad8['containsRange'](_0x47879f)?_0x36be9d['removeMarkers']():_0x47879f['containsPosition'](_0xe8ad81)?_0xe8ad81=_0x47879f['end']:_0x47879f['containsPosition'](_0x1c6753)&&(_0x1c6753=_0x47879f['start']);continue;}_0xe8ad81=_0xe8ad81['isBefore'](_0x47879f['start'])?_0xe8ad81:_0x47879f['start'],_0x1c6753=_0x1c6753['isAfter'](_0x47879f['end'])?_0x1c6753:_0x47879f['end'],_0xe9583e=Object['assign']({},_0x36be9d['attributes']),_0x4a3f6b?_0x47879f['start']['isBefore'](_0x4a3f6b['getFirstRange']()['start'])?(_0x4a3f6b['removeMarkers'](),_0x4a3f6b=_0x36be9d):_0x36be9d['removeMarkers']():_0x4a3f6b=_0x36be9d;}}}if(_0x4a3f6b)return this['_setSuggestionRange'](_0x4a3f6b,this['_model']['createRange'](_0xe8ad81,_0x1c6753)),_0x4a3f6b;{const _0x3ecba2=_0x53814c(),_0x4d3c90=this['_model']['createRange'](_0xe8ad81,_0x1c6753),_0x5268e2=_0x4efe90['id'],_0x4caeb5=_0x4fbb51?'deletion:'+_0x4fbb51:'deletion',_0x129992=this['_setSuggestionData']({'id':_0x3ecba2,'type':_0x4caeb5,'createdAt':new Date(),'authorId':_0x5268e2,'attributes':_0xe9583e});return this['_addSuggestionMarker'](_0x4caeb5,_0x3ecba2,_0x5268e2,_0x4d3c90),_0x129992;}}['markMultiRangeDeletion'](_0x552f7a,_0x53a61c='multi',_0x4fc764={}){const _0x460146=this['editor']['plugins']['get']('Users')['me'],_0x4ceada=_0x552f7a['map'](_0x2b7786=>new _0x1abeca(_0x2b7786['start'],_0x2b7786['end'])),_0x3e933a=new Set();for(const {suggestion:_0x5fff3,meta:_0x2b3f33}of this['_findSuggestions'](_0x4ceada,'insertion'))_0x2b3f33['isOwn']&&!_0x2b3f33['isNextTo']&&_0x3e933a['add'](_0x5fff3);for(const _0x4a4b5d of _0x3e933a)if(_0x4a4b5d['isMultiRange']){const _0x3a4586=_0x4a4b5d['getRanges']();(!_0x4a4b5d['attributes']||!_0x4a4b5d['attributes']['skipNestingCheck'])&&(_0x3a4586['every'](_0x1f3177=>_0x4ceada['some'](_0x4d2846=>_0x4d2846['containsRange'](_0x1f3177,!0x0)))&&_0x4a4b5d['discard']());if(_0x4ceada['every'](_0x1708b6=>_0x3a4586['some'](_0x3978fd=>_0x3978fd['containsRange'](_0x1708b6,!0x0)))){const _0x3e0e05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a61c,'accept');return this['forceDefaultExecution'](()=>_0x3e0e05(_0x552f7a,null,_0x4fc764)),null;}}else{const _0x26b601=_0x4a4b5d['getFirstRange']();_0x4ceada['some'](_0x2f0275=>_0x2f0275['containsRange'](_0x26b601,!0x0))&&_0x4a4b5d['discard']();if(_0x4ceada['every'](_0x11f66d=>_0x26b601['containsRange'](_0x11f66d,!0x0))){const _0x2f51e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a61c,'accept');return this['forceDefaultExecution'](()=>_0x2f51e5(_0x4ceada,null,_0x4fc764)),null;}}const _0x1ef1ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a61c,'join');let _0x426000=null;for(const _0x2b64d7 of this['getSuggestions']())if(_0x2b64d7['author']['id']==_0x460146['id']&&_0x2b64d7['isInContent']&&'deletion'==_0x2b64d7['type']&&_0x2b64d7['subType']==_0x53a61c&&Qt(_0x2b64d7,_0x4fc764)&&(_0x1ef1ce(_0x2b64d7['getRanges'](),_0x4ceada)||_0x1ef1ce(_0x4ceada,_0x2b64d7['getRanges']()))){if(_0x426000){if(_0x2b64d7['commentThread']&&_0x2b64d7['commentThread']['length'])continue;for(const _0x3a0331 of _0x2b64d7['getRanges']())_0x426000['isIntersectingWithRange'](_0x3a0331)||_0x426000['addRange'](_0x3a0331);_0x2b64d7['removeMarkers']();}else{_0x426000=_0x2b64d7;for(const _0x57eb9c of _0x4ceada)_0x2b64d7['isIntersectingWithRange'](_0x57eb9c)||_0x2b64d7['addRange'](_0x57eb9c);}}if(_0x426000)return _0x426000;_0x3e933a['clear']();for(const {suggestion:_0x14c1a3,meta:_0x54c5e0}of this['_findSuggestions'](_0x4ceada,'deletion'))_0x54c5e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54c5e0['containsRangeInObject']&&!_0x54c5e0['isInsideObject'])&&Qt(_0x14c1a3,_0x4fc764)&&_0x3e933a['add'](_0x14c1a3);for(const _0x14248a of _0x3e933a){const _0x291cef=_0x14248a['getRanges']();if(!_0x4fc764||!_0x4fc764['skipNestingCheck']){if(_0x4ceada['every'](_0x3666d7=>_0x291cef['some'](_0x4b15c1=>_0x4b15c1['containsRange'](_0x3666d7,!0x0))))return _0x14248a;}(!_0x14248a['attributes']||!_0x14248a['attributes']['skipNestingCheck'])&&(_0x291cef['every'](_0x34d853=>_0x4ceada['some'](_0x3ac825=>_0x3ac825['containsRange'](_0x34d853,!0x0)))&&_0x14248a['discard']());}const _0x3c0121=_0x53814c(),_0x3af89b=_0x460146['id'],_0xe10b30='deletion:'+_0x53a61c,_0x84612c=this['_setSuggestionData']({'id':_0x3c0121,'type':_0xe10b30,'createdAt':new Date(),'authorId':_0x3af89b,'attributes':_0x4fc764});for(const _0xaa621 of _0x4ceada)_0xaa621['detach'](),_0xaa621['isCollapsed']||'$graveyard'==_0xaa621['root']['rootName']||this['_addSuggestionMarker'](_0xe10b30,_0x3c0121,_0x3af89b,_0xaa621,u['getMultiRangeId']());return _0x84612c;}['markAttributeChange'](_0x1dab46,_0x3eb674,_0x216d3f,_0x158607,_0x3e955e){if(_0x1dab46['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x34efb5=this['editor']['plugins']['get']('Users')['me']['id'],_0x8ffbce=Array['from'](this['_suggestions']['values']())['filter'](_0xc5a290=>'attribute'==_0xc5a290['type']&&_0xc5a290['data']['key']==_0x3eb674&&_0xc5a290['isIntersectingWithRange'](_0x1dab46));if('default'===this['_trackFormatChanges']){const _0x19fc3a=this['_findSuggestions'](_0x1dab46,'insertion')['filter'](({meta:_0x4ee070})=>_0x4ee070['isOwn']&&!_0x4ee070['isInsideObject']&&!_0x4ee070['isNextTo'])['map'](({suggestion:_0x20e3f8})=>_0x20e3f8);_0x8ffbce['unshift'](..._0x19fc3a);}const _0x4bf9d4=new Map([[_0x1dab46,_0x216d3f]]);for(const _0x1a5d33 of _0x8ffbce){const _0x2e47ab='attribute'==_0x1a5d33['type']?_0x1a5d33['data']['oldValue']:void 0x0,_0x5d1efd=_0x1a5d33['getFirstRange'](),_0x2dd211=Array['from'](_0x4bf9d4['keys']())['find'](_0x463627=>_0x463627['isIntersecting'](_0x5d1efd));if(!_0x2dd211)continue;const _0x57ef2e=_0x2dd211['getDifference'](_0x5d1efd);this['_isBlockAttribute'](_0x3eb674)&&'insertion'==_0x1a5d33['type']&&0x0!=_0x57ef2e['length']||(_0x4bf9d4['delete'](_0x2dd211),_0x57ef2e['forEach'](_0x310399=>{_0x4bf9d4['set'](_0x310399,_0x216d3f);}),'insertion'!=_0x1a5d33['type']&&_0x2e47ab!=_0x158607&&_0x4bf9d4['set'](_0x2dd211['getIntersection'](_0x5d1efd),_0x2e47ab));}const _0xb03e7f=[];for(const [_0x383621,_0x357d73]of _0x4bf9d4){const _0x2b8ec0=_0x53814c(),_0x5a186f={'key':_0x3eb674,'oldValue':_0x357d73,'newValue':_0x158607};_0x3eb674['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':_0x3eb674});const _0x20a850=('attribute:'+(_0x3eb674+'|'+Jt({'newValue':_0x158607})))['substring'](0x0,0x3c),_0x25334a=this['_setSuggestionData']({'id':_0x2b8ec0,'type':_0x20a850,'data':_0x5a186f,'createdAt':new Date(),'authorId':_0x34efb5,'attributes':_0x3e955e});_0xb03e7f['push'](_0x25334a),this['_addSuggestionMarker'](_0x20a850,_0x2b8ec0,_0x34efb5,_0x383621);}return _0xb03e7f;}['enableDefaultAttributesIntegration'](_0x529f0a){this['enableCommand'](_0x529f0a,(_0x46b7e2,..._0x19b032)=>{this['_recordAttributeChanges'](()=>{_0x46b7e2(..._0x19b032);});});}['registerBlockAttribute'](_0x59be50){this['_blockAttributeKeys']['add'](_0x59be50);}['registerInlineAttribute'](_0x22b683){this['_inlineAttributeKeys']['add'](_0x22b683);}['_getAttributeKey'](_0x2c63cf){return'attribute'==_0x2c63cf['type']?_0x2c63cf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15dfb0,_0x583397){const _0x1b9972=_0x15dfb0['getFirstMarker']();this['_model']['change'](_0xbfbc36=>{_0xbfbc36['updateMarker'](_0x1b9972,{'range':_0x583397});});}['_addThreadToSuggestion'](_0x50747c){const _0x1f3ca4=_0x50747c['id'],_0x5edf58=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f3ca4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5edf58,'threadId':_0x1f3ca4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f1ae9=this['_commentsRepository']['getCommentThread'](_0x1f3ca4);_0x1f1ae9['unbind']('isRemovable'),_0x1f1ae9['isRemovable']=!0x1,_0x50747c['commentThread']=_0x1f1ae9;}['_checkSuggestionCorrectness'](_0x495cde,_0x4cdb93,_0x34b970,_0x57867f){if(_0x495cde['type']!=_0x4cdb93||_0x495cde['subType']!=_0x34b970||_0x495cde['creator']['id']!=_0x57867f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x534bac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x12ddee,_0x410f04){const _0x266854=_0x12ddee['getFirstRange']();if(_0x410f04['isEqual'](_0x266854))_0x12ddee['removeMarkers']();else{if(_0x266854['containsRange'](_0x410f04)){const _0x4e10d1=this['_model']['createPositionAt'](_0x410f04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12ddee,this['_model']['createRange'](_0x266854['start'],_0x4e10d1));const _0x25b514=_0x53814c(),_0x2bfbb6=_0x12ddee['creator']['id'],_0x25e8d6=_0x12ddee['type']+':'+_0x12ddee['subType'];this['_setSuggestionData']({'id':_0x25b514,'type':_0x25e8d6,'createdAt':new Date(),'authorId':_0x2bfbb6,'data':_0x12ddee['data'],'attributes':_0x12ddee['attributes']});const _0x15263d=this['_model']['createPositionAt'](_0x410f04['end']['parent'],'after'),_0x48f4ef=this['_model']['createRange'](_0x15263d,_0x266854['end']);this['_addSuggestionMarker'](_0x25e8d6,_0x25b514,_0x2bfbb6,_0x48f4ef);}else{if(_0x266854['containsPosition'](_0x410f04['start'])){const _0x1addb2=this['_model']['createPositionAt'](_0x410f04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12ddee,this['_model']['createRange'](_0x266854['start'],_0x1addb2));}else{const _0x1d718a=this['_model']['createPositionAt'](_0x410f04['end']['parent'],'after');this['_setSuggestionRange'](_0x12ddee,this['_model']['createRange'](_0x1d718a,_0x266854['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e00a1){for(const {suggestion:_0x9d72db,meta:_0x1699af}of this['_findSuggestions'](_0x5e00a1,'insertion')){if(!_0x1699af['isOwn'])continue;const _0x47085b=_0x9d72db['getRanges']();for(const _0x4cb0bb of _0x47085b)if(!_0x5e00a1['getDifference'](_0x4cb0bb)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3680cf){const _0x4f932a=this['editor']['plugins']['get']('Users')['getUser'](_0x3680cf);if(!_0x4f932a)throw new _0x534bac('track-changes-user-not-found',this);return _0x4f932a;}['_getExternalAuthor'](_0x6d0db7){const _0x4444b8=this['editor']['plugins']['get']('Users'),_0x135aac=_0x5b8f05('external:'+_0x6d0db7),_0x152fcb=_0x4444b8['getUser'](_0x135aac);return _0x152fcb||_0x4444b8['addUser']({'id':_0x135aac,'name':_0x6d0db7});}['_createSuggestion'](_0x41e125,_0x3dedc1,_0x30462e,_0x2b5654,_0x4db5f0){const _0x501289=this['_getAuthorFromId'](_0x2b5654),_0x265d66=this['_suggestionFactory']['buildSuggestion'](_0x41e125,_0x3dedc1,_0x30462e,_0x501289,_0x4db5f0,_0x6f7744=>{this['_updateSuggestionData'](_0x30462e,{'attributes':_0x6f7744});const _0x39d632=this['getSuggestion'](_0x30462e);this['_joinWithAdjacentSuggestions'](new Set([_0x39d632])),this['_refreshSuggestionsChain'](new Set([_0x39d632]));});return this['listenTo'](_0x265d66,'accept',()=>{this['_updateSuggestionData'](_0x30462e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x265d66,'discard',()=>{this['_updateSuggestionData'](_0x30462e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x30462e,_0x265d66),this['_suggestionState']['set'](_0x265d66,'notReady'),_0x265d66;}['_splitMarkerName'](_0x36d7ce){const _0x4f2e04=_0x36d7ce['split'](':');return{'group':_0x4f2e04[0x0],'type':_0x4f2e04[0x1],'subType':_0x4f2e04['length']>=0x5?_0x4f2e04[0x2]:null,'id':_0x4f2e04['length']<0x5?_0x4f2e04[0x2]:_0x4f2e04[0x3],'authorId':_0x4f2e04['length']<0x5?_0x4f2e04[0x3]:_0x4f2e04[0x4],'markerCount':0x6==_0x4f2e04['length']?_0x4f2e04[0x5]:null};}['_breakSuggestionMarker'](_0x2c656a,_0x55da31,_0x42d516){const _0x3c8934=_0x2c656a['getFirstRange'](),_0x53d5cb=_0x3c8934['start'],_0x45301f=_0x3c8934['end'];this['_setSuggestionRange'](_0x2c656a,this['_model']['createRange'](_0x53d5cb,_0x55da31));const _0x3a4f06=_0x53814c(),_0x2de686=_0x2c656a['creator']['id'],_0x57dc5d=_0x2c656a['type']+(_0x2c656a['subType']?':'+_0x2c656a['subType']:'');this['_setSuggestionData']({'id':_0x3a4f06,'type':_0x57dc5d,'createdAt':new Date(),'authorId':_0x2de686,'originalSuggestionId':_0x2c656a['id'],'attributes':_0x2c656a['attributes'],'data':_0x2c656a['data']});const _0x290d0f=this['_getAttributeKey'](_0x2c656a);('formatBlock'==_0x2c656a['type']||_0x290d0f&&this['_isBlockAttribute'](_0x290d0f))&&(_0x42d516=this['_model']['createPositionBefore'](_0x42d516['parent'])),this['_addSuggestionMarker'](_0x57dc5d,_0x3a4f06,_0x2de686,this['_model']['createRange'](_0x42d516,_0x45301f));}['_findSuggestions'](_0x1f672a,_0x5c9df4=null){const _0x31161b=[],_0x50f074=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1f672a)||(_0x1f672a=[_0x1f672a]);for(const _0x30c8e9 of this['getSuggestions']()){if(!_0x30c8e9['isInContent'])continue;if(_0x5c9df4&&_0x30c8e9['type']!=_0x5c9df4)continue;let _0x432fba=!0x1;for(const _0x2ef0e2 of _0x30c8e9['getRanges']()){for(const _0x368269 of _0x1f672a){const _0x55536f=_0x368269['start']['isEqual'](_0x2ef0e2['end'])||_0x368269['end']['isEqual'](_0x2ef0e2['start']);if(_0x55536f||_0x368269['getIntersection'](_0x2ef0e2)){const _0x1713ba=_0x368269['containsRange'](_0x2ef0e2)&&Gt(this['_model']['schema'],_0x2ef0e2['start'],_0x368269),_0x532d21=_0x2ef0e2['containsRange'](_0x368269)&&Gt(this['_model']['schema'],_0x368269['start'],_0x2ef0e2);_0x31161b['push']({'suggestion':_0x30c8e9,'meta':{'isOwn':_0x50f074==_0x30c8e9['author'],'isNextTo':_0x55536f,'isInsideObject':_0x1713ba,'containsRangeInObject':_0x532d21}}),_0x432fba=!0x0;break;}}if(_0x432fba)break;}}return _0x31161b;}['_addSuggestionMarker'](_0x32cfaf,_0x28fc60,_0x56f3a5,_0x5eec7c,_0x4b3e5a){this['_model']['change'](_0x525b98=>{let _0x26c8a7='suggestion:'+_0x32cfaf+':'+_0x28fc60+':'+_0x56f3a5;_0x4b3e5a&&(_0x26c8a7=_0x26c8a7+':'+_0x4b3e5a),_0x525b98['addMarker'](_0x26c8a7,{'range':_0x5eec7c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x172c20){const _0x1f44ec=_0x172c20['previous'],_0x5d126e=_0x172c20['next'];_0x172c20['previous']=null,_0x172c20['next']=null,null!=_0x1f44ec&&_0x1f44ec['next']==_0x172c20&&(_0x1f44ec['next']=_0x5d126e),null!=_0x5d126e&&_0x5d126e['previous']==_0x172c20&&(_0x5d126e['previous']=_0x1f44ec),'ready'==this['_suggestionState']['get'](_0x172c20)&&(this['_suggestionState']['set'](_0x172c20,'removed'),this['fire']('suggestionUnloaded',_0x172c20,_0x1f44ec,_0x5d126e));}['_setSuggestionData'](_0x596fac){const _0x4c1924=_0x596fac['id'],_0xb2dcc1=this['addSuggestionData'](_0x596fac);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x369782=this['editor']['plugins']['get']('PendingActions'),_0x58f8b9=_0xb2dcc1['hasComments'],_0x5d9095=_0xb2dcc1['subType']?_0xb2dcc1['type']+':'+_0xb2dcc1['subType']:_0xb2dcc1['type'],_0x1afa15=this['editor']['locale'],_0x438a14=_0x369782['add'](o(_0x1afa15,'PENDING_ACTION_SUGGESTION')),_0x38e776={'id':_0x4c1924,'type':_0x5d9095,'hasComments':_0x58f8b9,'data':_0x596fac['data']||null,'originalSuggestionId':_0x596fac['originalSuggestionId']||null,'attributes':_0xb2dcc1['attributes']};this['_adapter']['addSuggestion'](_0x38e776)['then'](_0x80b518=>{_0xb2dcc1['_saved']=!0x0,_0x369782['remove'](_0x438a14),_0x80b518&&_0x80b518['createdAt']&&(this['_suggestions']['get'](_0x4c1924)['createdAt']=_0x80b518['createdAt']);})['catch'](_0x5a1353=>{throw _0x1cd223('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb2dcc1['discard']();}),_0xb2dcc1['stopListening'](),this['_suggestions']['delete'](_0xb2dcc1['id']),this['_suggestionState']['delete'](_0xb2dcc1),_0x5a1353;});}return _0xb2dcc1;}['_isBlockAttribute'](_0x50904d){return this['_blockAttributeKeys']['has'](_0x50904d);}['_updateSuggestionData'](_0x34f2e2,_0xb053c4){const _0x482182=this['editor']['plugins']['get']('PendingActions'),_0x4eb45c=this['getSuggestion'](_0x34f2e2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4eb45c['_saved']){const _0x2e2290=_0x482182['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34f2e2,_0xb053c4)['then'](()=>{_0x482182['remove'](_0x2e2290);});}else _0x4eb45c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34f2e2,_0xb053c4);});}}['_getSuggestionData'](_0x50a5e4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x534bac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50a5e4);}['_handleNewSuggestionMarker'](_0x530cd3){const {id:_0x5078aa,type:_0x21b91a,subType:_0x4248af,authorId:_0xb519}=this['_splitMarkerName'](_0x530cd3),_0x55069b=this['_suggestions']['get'](_0x5078aa)||this['_createSuggestion'](_0x21b91a,_0x4248af,_0x5078aa,_0xb519,{});switch(this['_checkSuggestionCorrectness'](_0x55069b,_0x21b91a,_0x4248af,_0xb519),this['_suggestionState']['get'](_0x55069b)){case'notReady':this['_getSuggestionData'](_0x5078aa)['then'](_0x105acb=>{let _0x37ca0e=Promise['resolve']();_0x105acb['hasComments']&&(_0x37ca0e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5078aa})),_0x37ca0e['then'](()=>{this['addSuggestionData'](_0x105acb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x55069b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5078aa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x55069b,'ready'),this['fire']('suggestionLoaded',_0x55069b);break;case'ready':this['fire']('suggestionChanged',_0x55069b);}return _0x55069b['addMarkerName'](_0x530cd3),_0x55069b;}['_refreshSuggestionsChain'](_0x3c1e2d){const _0x76f5d7=Array['from'](_0x3c1e2d),_0x63ca76=_0x76f5d7['filter'](_0x4d45f6=>'attribute'==_0x4d45f6['type']);this['_refreshAttributeSuggestionsChain'](_0x63ca76);const _0x1fa1ba=_0x76f5d7['filter'](_0x592bdc=>!_0x592bdc['isMultiRange']&&'attribute'!=_0x592bdc['type']),_0x190e88=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x132457=>!_0x132457['isMultiRange']&&'attribute'!=_0x132457['type']),_0x24c35e=_0x190e88['filter'](_0x1c1cd4=>!_0x3c1e2d['has'](_0x1c1cd4)),_0x2a2a00=new Map(_0x190e88['map'](_0x2b2082=>[_0x2b2082,this['_suggestionFactory']['getSuggestionCallback'](_0x2b2082['type'],_0x2b2082['subType'],'chain')])),_0x3c1ddc=new Map(_0x190e88['map'](_0x3ce994=>[_0x3ce994,_0x3ce994['getFirstRange']()])),_0x432ad5=new Set(),_0x4b8c81=new Set();for(let _0x2a3e51=0x0;_0x2a3e51<_0x1fa1ba['length'];_0x2a3e51++)_0x42e1cc(_0x1fa1ba[_0x2a3e51],_0x1fa1ba,_0x2a3e51+0x1);for(let _0x5d2db2=0x0;_0x5d2db2<_0x1fa1ba['length'];_0x5d2db2++)_0x42e1cc(_0x1fa1ba[_0x5d2db2],_0x24c35e,0x0);const _0x80e8ba=new Set();for(let _0x8ed8bc=0x0;_0x8ed8bc<_0x1fa1ba['length'];_0x8ed8bc++){const _0x15035b=_0x1fa1ba[_0x8ed8bc];!_0x4b8c81['has'](_0x15035b)&&_0x15035b['previous']&&(_0x80e8ba['add'](_0x15035b['previous']),_0x15035b['previous']['next']===_0x15035b&&(_0x15035b['previous']['next']=null),_0x15035b['previous']=null),!_0x432ad5['has'](_0x15035b)&&_0x15035b['next']&&(_0x80e8ba['add'](_0x15035b['next']),_0x15035b['next']['previous']===_0x15035b&&(_0x15035b['next']['previous']=null),_0x15035b['next']=null);}function _0x42e1cc(_0x6e24bd,_0x191fc1,_0x55e456){for(let _0x4ecd00=_0x55e456;_0x4ecd00<_0x191fc1['length'];_0x4ecd00++){const _0x6324ba=_0x1a6650(_0x6e24bd,_0x191fc1[_0x4ecd00]);_0x6324ba&&(_0x6324ba[0x0]['next']=_0x6324ba[0x1],_0x6324ba[0x1]['previous']=_0x6324ba[0x0],_0x432ad5['add'](_0x6324ba[0x0]),_0x4b8c81['add'](_0x6324ba[0x1]));}}function _0x1a6650(_0x47a186,_0x566ed5){if(_0x47a186['author']['id']!==_0x566ed5['author']['id'])return null;const _0x47b345=_0x2a2a00['get'](_0x47a186)(_0x47a186,_0x566ed5,_0x3c1ddc['get'](_0x47a186),_0x3c1ddc['get'](_0x566ed5));if(!_0x47b345)return null;return _0x2a2a00['get'](_0x566ed5)(_0x47a186,_0x566ed5,_0x3c1ddc['get'](_0x47a186),_0x3c1ddc['get'](_0x566ed5))?_0x47b345[0x1]['commentThread']&&_0x47b345[0x1]['commentThread']['length']?null:_0x47b345:null;}_0x80e8ba['size']&&this['_refreshSuggestionsChain'](_0x80e8ba);}['_refreshAttributeSuggestionsChain'](_0x53cba0){if(0x0==_0x53cba0['length'])return;const _0x408f68=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x295da6=>'attribute'==_0x295da6['type']&&_0x295da6['_isDataLoaded']),_0x4292d7=[],_0x2e5dc2=new Map();for(const _0x49de56 of _0x408f68){const _0x138ea6=_0x5b8f05(_0x49de56['attributes']);_0x2e5dc2['has'](_0x138ea6)||(_0x2e5dc2['set'](_0x138ea6,_0x4292d7['length']),_0x4292d7['push']([]));const _0x2d2479=_0x2e5dc2['get'](_0x138ea6);_0x4292d7[_0x2d2479]['push'](_0x49de56);}!(function(){_0x4292d7['sort']((_0x4406e3,_0x1bc464)=>{const _0x14e5f8=_0x4406e3[0x0]['createdAt'],_0x341cc1=_0x1bc464[0x0]['createdAt'];return _0x14e5f8==_0x341cc1?_0x4406e3[0x0]['attributes']['groupId']<_0x1bc464[0x0]['attributes']['groupId']?-0x1:0x1:_0x14e5f8<_0x341cc1?-0x1:0x1;});for(const _0x355c71 of _0x4292d7)_0x355c71['sort']((_0x4081b6,_0x12af39)=>_0x4081b6['id']<_0x12af39['id']?-0x1:0x1);}());for(let _0x673895=0x0;_0x673895<_0x4292d7['length'];_0x673895++){if(0x0==_0x4292d7[_0x673895]['length'])continue;const _0x1c996c=[];for(let _0x483865=_0x673895+0x1;_0x483865<_0x4292d7['length'];_0x483865++)0x0!=_0x4292d7[_0x483865]['length']&&_0x2bf176(_0x4292d7[_0x673895],_0x4292d7[_0x483865])&&_0x1c996c['push'](_0x483865);for(const _0x27cc88 of _0x1c996c)_0x4292d7[_0x673895]=_0x4292d7[_0x673895]['concat'](_0x4292d7[_0x27cc88]),_0x4292d7[_0x27cc88]=[];}for(const _0x3e0316 of _0x4292d7)for(let _0x2727b7=0x0;_0x2727b7<_0x3e0316['length'];_0x2727b7++){const _0x4e39f6=_0x3e0316[_0x2727b7+0x1]||null;_0x3e0316[_0x2727b7]['next']!==_0x4e39f6&&(_0x3e0316[_0x2727b7]['next']=_0x4e39f6);}for(const _0x37089d of _0x4292d7)for(let _0x40e907=0x0;_0x40e907<_0x37089d['length'];_0x40e907++){const _0x52b3d0=_0x37089d[_0x40e907-0x1]||null;_0x37089d[_0x40e907]['previous']!==_0x52b3d0&&(_0x37089d[_0x40e907]['previous']=_0x52b3d0);}function _0x2bf176(_0x114c21,_0x12a05b){if(_0x114c21[0x0]['attributes']['groupId']!==_0x12a05b[0x0]['attributes']['groupId']&&_0x114c21[0x0]['author']!==_0x12a05b[0x0]['author'])return!0x1;if(!function(_0xe85b92,_0x4c79dc){if(!_0xe85b92['hasComments']&&!_0x4c79dc['hasComments'])return!0x0;if(_0xe85b92['hasComments']&&_0x4c79dc['hasComments'])return!0x1;if(_0xe85b92['hasComments']&&_0x4c79dc['createdAt']<_0xe85b92['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c79dc['hasComments']&&_0xe85b92['createdAt']<_0x4c79dc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x114c21[0x0],_0x12a05b[0x0]))return!0x1;const _0x287c4a=Vt(_0x114c21[0x0]['attributes'],'groupId'),_0x9e5ebf=Vt(_0x12a05b[0x0]['attributes'],'groupId');if(!_0x5730e9(_0x287c4a,_0x9e5ebf))return!0x1;return!!_0x114c21['every'](_0x175ae2=>_0x12a05b['some'](_0x15a5d8=>_0x175ae2['getFirstRange']()['isEqual'](_0x15a5d8['getFirstRange']())))&&_0x12a05b['every'](_0x52e501=>_0x114c21['some'](_0x1270b9=>_0x52e501['getFirstRange']()['isEqual'](_0x1270b9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x17c292){const _0x4460fe=Array['from'](_0x17c292),_0x4d4277=this['getSuggestions']({'skipNotAttached':!0x0}),_0x46e568=_0x4d4277['filter'](_0x2be45e=>!_0x17c292['has'](_0x2be45e)),_0x4af071=new Map(_0x4460fe['map'](_0x5b4492=>[_0x5b4492,this['_suggestionFactory']['getSuggestionCallback'](_0x5b4492['type'],_0x5b4492['subType'],'join')])),_0x469138=new Map(_0x4d4277['map'](_0x113667=>[_0x113667,_0x113667['getRanges']()]));for(let _0x2423f1=0x0;_0x2423f1<_0x4460fe['length'];_0x2423f1++){if(_0x1ffaa9(this,_0x4460fe[_0x2423f1],_0x4460fe,_0x2423f1+0x1))return!0x0;}for(let _0x2a8f56=0x0;_0x2a8f56<_0x4460fe['length'];_0x2a8f56++){if(_0x1ffaa9(this,_0x4460fe[_0x2a8f56],_0x46e568,0x0))return!0x0;}return!0x1;function _0x1ffaa9(_0x309152,_0x5c06a8,_0x7c3326,_0x3ddbea){for(let _0x11c4c2=_0x3ddbea;_0x11c4c2<_0x7c3326['length'];_0x11c4c2++){const _0x229a26=_0x7c3326[_0x11c4c2];if(_0x229a26['type']!==_0x5c06a8['type']||_0x229a26['author']['id']!==_0x5c06a8['author']['id']||_0x229a26['subType']!==_0x5c06a8['subType'])continue;if(!Wt(_0x5c06a8,_0x229a26))continue;if('attribute'==_0x5c06a8['type']&&_0x5c06a8['data']['oldValue']!=_0x229a26['data']['oldValue'])continue;if('attribute'==_0x5c06a8['type']&&_0x309152['_isBlockAttribute'](_0x5c06a8['data']['key']))continue;if('formatBlock'==_0x5c06a8['type']){const _0x37ac5d=_0x309152['editor']['model'],_0x56abfa=_0x5c06a8['getContainedElement']();if(_0x56abfa&&(_0x37ac5d['schema']['isObject'](_0x56abfa)||_0x37ac5d['schema']['isLimit'](_0x56abfa)))continue;}const _0x189223=_0x4af071['get'](_0x5c06a8),_0x38b761=_0x469138['get'](_0x5c06a8),_0x317888=_0x469138['get'](_0x229a26),_0x75925f=_0x5c06a8['commentThread']&&_0x5c06a8['commentThread']['length'],_0xa83f88=_0x229a26['commentThread']&&_0x229a26['commentThread']['length'];if(!_0x75925f&&_0x189223(_0x317888,_0x38b761))return _0x309152['_joinSuggestions'](_0x229a26,_0x5c06a8),_0x469138['delete'](_0x5c06a8),!0x0;if(!_0xa83f88&&_0x189223(_0x38b761,_0x317888))return _0x309152['_joinSuggestions'](_0x5c06a8,_0x229a26),_0x469138['delete'](_0x229a26),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14067a,_0x35e31d){if(_0x14067a['isMultiRange']){for(const _0x1e617a of _0x35e31d['getRanges']())_0x14067a['addRange'](_0x1e617a);}else{const _0x38b73f=_0x35e31d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14067a,this['_model']['createRange'](_0x14067a['getFirstRange']()['start'],_0x38b73f));}_0x35e31d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x259392,_0x1b0eef,_0x18411d){const _0x29282c=_0x259392['startsWith']('format')||_0x259392['startsWith']('attribute')?'FORMATTING':_0x259392['toUpperCase']();return o(this['editor']['locale'],_0x1b0eef+'_'+_0x29282c+'_SUGGESTION_ANNOUNCEMENT',_0x18411d);}['_initAriaMarkerChangeAnnouncements'](){const _0x2a97c3=this['editor'];if(!_0x2a97c3['ui'])return;const {ariaLiveAnnouncer:_0x53c028}=_0x2a97c3['ui'];_0xedede1(this['_model'],({left:_0x44bbf4,entered:_0x103d49})=>{for(const _0x59663f of _0x44bbf4){const {group:_0x524c12,type:_0x303437}=this['_splitMarkerName'](_0x59663f['name']);if('suggestion'===_0x524c12){_0x53c028['announce'](this['_getMarkerAnnouncementText'](_0x303437,'LEAVE'));break;}}for(const _0x35e5a2 of _0x103d49){const {group:_0x18a3d0,type:_0x1a3e33}=this['_splitMarkerName'](_0x35e5a2['name']);if('suggestion'===_0x18a3d0){_0x53c028['announce'](this['_getMarkerAnnouncementText'](_0x1a3e33,'ENTER',_0x3ab478(_0x5f04f5)));break;}}});}['_processAttributeChanges'](_0x462b8b){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd4b6dc=this['editor'],_0x3c6a1c=_0xd4b6dc['model']['document']['differ']['getChanges']();if(0x0==_0x3c6a1c['length'])return!0x1;const _0x3f9448=[],_0x924b63=_0x3c6a1c['filter'](_0x3e42f9=>'attribute'==_0x3e42f9['type']),_0x47fe63=_0x3c6a1c['filter'](_0x125122=>'insert'==_0x125122['type']&&'$text'!=_0x125122['name']),_0x475fc7=_0x3c6a1c['filter'](_0x4e0a5f=>'remove'==_0x4e0a5f['type']&&'$text'!=_0x4e0a5f['name']);for(const _0x4d5511 of _0x924b63)_0x3f9448['push']({'key':_0x4d5511['attributeKey'],'newValue':_0x4d5511['attributeNewValue'],'oldValue':_0x4d5511['attributeOldValue'],'range':qt(_0x4d5511['range'],_0xd4b6dc['model'])});for(const _0x41ae05 of _0x47fe63){const _0x14e17a=_0x475fc7['find'](_0x634532=>_0x634532['position']['isEqual'](_0x41ae05['position']));_0x14e17a&&_0x3f9448['push']({'key':m,'newValue':_0x41ae05['name'],'oldValue':_0x14e17a['name'],'range':_0xd4b6dc['model']['createRangeOn'](_0x41ae05['position']['nodeAfter'])});}return 0x0!=_0x3f9448['length']&&this['_reduceExistingSuggestions'](_0x462b8b,_0x3f9448);}['_processAttributeSuggestions'](_0x1c816b){let _0x5455ab=!0x1;const _0x3a2d3d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56f670=>_0x56f670['data']['newRange']&&_0x56f670['name']['startsWith']('suggestion:attribute:'));for(const _0x255f5e of _0x3a2d3d){const {subType:_0x5a063f,id:_0x1db92a}=this['_splitMarkerName'](_0x255f5e['name']),_0x4f997e=_0x5a063f['split']('|')[0x0];for(const _0x2ae70e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2ae70e['id']!=_0x1db92a&&'attribute'==_0x2ae70e['type']&&_0x2ae70e['data']&&_0x2ae70e['data']['key']==_0x4f997e&&_0x2ae70e['getFirstRange']()['isIntersecting'](_0x255f5e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2ae70e,_0x255f5e['data']['newRange'],_0x1c816b),_0x5455ab=!0x0);}return _0x5455ab;}['_recordAttributeChanges'](_0x35c30f){this['_recordAttributeSuggestions']=!0x0,_0x35c30f();}['_isRegisteredAttribute'](_0x9aa4a4){const _0x8a3dba=this['_isBlockAttribute'](_0x9aa4a4),_0x552bdb=this['_inlineAttributeKeys']['has'](_0x9aa4a4);return _0x8a3dba||_0x552bdb;}['_reduceExistingSuggestions'](_0x1d7f52,_0x4e2fc1){if(0x0==_0x4e2fc1['length'])return!0x1;let _0x2a3501=!0x1;for(const _0x4f590a of _0x4e2fc1){const _0x2d40dc=this['_findSuggestions'](_0x4f590a['range'],'attribute')['filter'](_0x611d16=>!_0x611d16['meta']['isNextTo'])['map'](_0x3be789=>_0x3be789['suggestion']),_0x4a609a=_0x5b8f05({'newValue':_0x4f590a['newValue']});_0x2d40dc['filter'](_0x2f12c2=>{const [_0x4f3e5a,_0x133f84]=_0x2f12c2['subType']['split']('|');return _0x4f3e5a==_0x4f590a['key']&&_0x133f84!=_0x4a609a;})['forEach'](_0x29e5ce=>{this['_reduceSuggestionAttributeRange'](_0x29e5ce,_0x4f590a['range'],_0x1d7f52),_0x2a3501=!0x0;});}return _0x2a3501;}['_reduceSuggestionAttributeRange'](_0x7a9f85,_0x2e5d27,_0x28ddab){const _0x36577a=_0x7a9f85['getFirstRange']()['getDifference'](_0x2e5d27);0x0!==_0x36577a['length']?0x1!==_0x36577a['length']?this['_breakSuggestionMarker'](_0x7a9f85,_0x2e5d27['start'],_0x2e5d27['end']):this['_setSuggestionRange'](_0x7a9f85,_0x36577a[0x0]):_0x28ddab['removeMarker'](_0x7a9f85['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x271469){this['_editor']=_0x271469,this['_model']=_0x271469['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5baf69,_0x5cefb8,_0x177eed,_0x44afb9,_0x208676,_0x2e61c2){return new u(this['_model'],{'type':_0x5baf69,'subType':_0x5cefb8,'id':_0x177eed,'author':_0x44afb9,'creator':_0x44afb9,'attributes':_0x208676,'onAttributesChange':_0x2e61c2,'onAccept':(..._0xcd9621)=>this['getSuggestionCallback'](_0x5baf69,_0x5cefb8,'accept')(..._0xcd9621),'onDiscard':(..._0x2cf50a)=>this['getSuggestionCallback'](_0x5baf69,_0x5cefb8,'discard')(..._0x2cf50a)});}['registerCustomCallback'](_0x193c42,_0x15a819,_0x23d359,_0x43f980){const _0x4568f2=_0x193c42+':'+_0x15a819+':'+_0x23d359;this['_customCallbacks']['set'](_0x4568f2,_0x43f980);}['getSuggestionCallback'](_0x480fd4,_0x2d7b45,_0x1c707f){const _0x38d237=_0x480fd4+':'+_0x2d7b45+':'+_0x1c707f;return this['_customCallbacks']['get'](_0x38d237)||this['_defaultCallbacks']['get'](_0x480fd4+':'+_0x1c707f);}['_registerDefaultCallbacks'](){const _0x4b756b=()=>!0x1,_0x47f801=_0x2cc015=>{_0x2cc015['sort']((_0x4359fe,_0x52e8fe)=>_0x4359fe['start']['isBefore'](_0x52e8fe['start'])?0x1:-0x1),this['_model']['change'](_0x4fa895=>{for(const _0x51f432 of _0x2cc015){let _0x2638e2;_0x2638e2=_0x51f432['end']['isAtEnd']&&_0x51f432['end']['parent']==_0x51f432['start']['nodeAfter']?_0x4fa895['createSelection'](_0x51f432['start']['nodeAfter'],'on'):_0x4fa895['createSelection'](_0x51f432),this['_model']['deleteContent'](_0x2638e2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x20cd3e=(_0x30aeb8,_0x4e2356)=>{_0x4e2356&&this['_model']['change'](_0x3f471=>{const {commandName:_0x3427ac,commandParams:_0x2c2e95=[]}=_0x4e2356,_0x4d6e89=_0x30aeb8['map'](_0x3e12bb=>(Ft(_0x3e12bb)&&(_0x3e12bb=this['_model']['createRange'](_0x3e12bb['end'])),_0x3e12bb))['filter'](_0x5ec22d=>'$graveyard'!==_0x5ec22d['root']['rootName']);if(_0x4d6e89['length']<0x1)return;const _0x50c911=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e7753=>_0x1abeca['fromRange'](_0x1e7753));_0x3f471['setSelection'](_0x4d6e89);for(const _0x2236d1 of this['_editor']['commands']['commands']())_0x2236d1['refresh']();_0x2c2e95['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3427ac,..._0x2c2e95);const _0x3813e5=_0x50c911['filter'](_0x43dfa9=>'$graveyard'!=_0x43dfa9['root']['rootName']);_0x3813e5['length']>0x0&&_0x3f471['setSelection'](_0x3813e5);for(const _0x29b4ee of _0x50c911)_0x29b4ee['detach']();});},_0x1250ae=(_0x29b2ad,_0x5e3490)=>0x1==_0x29b2ad['length']&&0x1==_0x5e3490['length']&&_0x29b2ad[0x0]['end']['isEqual'](_0x5e3490[0x0]['start']),_0x4f39a3=(_0x3a7b35,_0x2a0511,_0x12a2bc,_0x590c3c)=>Kt(_0x3a7b35,_0x2a0511,_0x12a2bc,_0x590c3c)?[_0x3a7b35,_0x2a0511]:Kt(_0x2a0511,_0x3a7b35,_0x590c3c,_0x12a2bc)?[_0x2a0511,_0x3a7b35]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b756b),this['_defaultCallbacks']['set']('insertion:discard',_0x47f801),this['_defaultCallbacks']['set']('insertion:join',_0x1250ae),this['_defaultCallbacks']['set']('insertion:chain',_0x4f39a3),this['_defaultCallbacks']['set']('deletion:accept',_0x47f801),this['_defaultCallbacks']['set']('deletion:discard',_0x4b756b),this['_defaultCallbacks']['set']('deletion:join',_0x1250ae),this['_defaultCallbacks']['set']('deletion:chain',_0x4f39a3),this['_defaultCallbacks']['set']('formatInline:accept',_0x20cd3e),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b756b),this['_defaultCallbacks']['set']('formatInline:join',_0x1250ae),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b756b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20cd3e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b756b),this['_defaultCallbacks']['set']('formatBlock:join',_0x1250ae),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b756b),this['_defaultCallbacks']['set']('attribute:accept',_0x4b756b),this['_defaultCallbacks']['set']('attribute:discard',(_0x458499,_0x1acc1f)=>{if(!_0x1acc1f)return;const _0x1a58d8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xe530d8=>{if(_0x1acc1f['key']==m)for(const _0x54a4fa of _0x458499){const _0x58d645=_0x54a4fa['start']['nodeAfter'],_0x408918=_0x1acc1f['oldValue'];_0xe530d8['rename'](_0x58d645,_0x408918);}else{if(_0x1a58d8['_isBlockAttribute'](_0x1acc1f['key'])){for(const _0x458a9a of _0x458499)void 0x0!==_0x1acc1f['oldValue']?_0xe530d8['setAttribute'](_0x1acc1f['key'],_0x1acc1f['oldValue'],_0x458a9a['start']['nodeAfter']):_0xe530d8['removeAttribute'](_0x1acc1f['key'],_0x458a9a['start']['nodeAfter']);}else{for(const _0x2dc527 of _0x458499)_0x1acc1f['oldValue']?_0xe530d8['setAttribute'](_0x1acc1f['key'],_0x1acc1f['oldValue'],_0x2dc527):_0xe530d8['removeAttribute'](_0x1acc1f['key'],_0x2dc527);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1250ae);}}function Gt(_0x19b9c8,_0x49456a,_0x1e6bea){for(const _0x6959c4 of _0x49456a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6959c4['root']==_0x6959c4)return!0x1;if(!_0x1e6bea['containsItem'](_0x6959c4))return!0x1;if(_0x19b9c8['isObject'](_0x6959c4)||_0x19b9c8['isLimit'](_0x6959c4))return!0x0;}return!0x1;}function Ft(_0x420c94){return _0x420c94['end']['parent']==_0x420c94['start']['nodeAfter']&&_0x420c94['end']['isAtStart'];}function Lt(_0x31318a,_0x4974c0,_0x4e5b1b,_0x3b2652){const _0x37cd6d=_0x52bf50=>!_0x52bf50['item']['is']('$textProxy')&&!_0x3b2652['isObject'](_0x52bf50['item']),_0x4fdc48=_0x31318a['start']['getLastMatchingPosition'](_0x37cd6d),_0x50df7c=_0x31318a['end']['getLastMatchingPosition'](_0x37cd6d,{'direction':'backward'});return(!_0x31318a['start']['isEqual'](_0x4fdc48)||!_0x31318a['end']['isEqual'](_0x50df7c))&&(_0x4fdc48['isBefore'](_0x50df7c)?_0x4e5b1b['updateMarker'](_0x4974c0,{'range':_0x4e5b1b['createRange'](_0x4fdc48,_0x50df7c)}):_0x4e5b1b['removeMarker'](_0x4974c0),!0x0);}function Jt(_0x3fb4d3){return _0x5b8f05(_0x3fb4d3);}function Ht(_0x2f6f8f){const _0x217156=_0x2f6f8f['start']['nodeAfter'];return _0x217156&&_0x217156['is']('element');}function qt(_0x1b8a03,_0x1670d8){return null==_0x1b8a03['end']['nodeBefore']&&_0x1b8a03['end']['parent']==_0x1b8a03['start']['nodeAfter']?zt(_0x1b8a03['start']['nodeAfter'],_0x1670d8):_0x1b8a03;}function zt(_0x148b2c,_0x277b96){const _0xccd82c=_0x277b96['schema']['isObject'](_0x148b2c)||_0x277b96['schema']['isSelectable'](_0x148b2c);return _0x277b96['createRange'](_0x277b96['createPositionAt'](_0x148b2c,'before'),_0xccd82c?_0x277b96['createPositionAfter'](_0x148b2c):_0x277b96['createPositionAt'](_0x148b2c,'end'));}function Kt(_0x52d9d8,_0x46bc8c,_0xdf0d2d,_0x3ff4ec){return!!Wt(_0x52d9d8,_0x46bc8c)&&_0xdf0d2d['end']['isEqual'](_0x3ff4ec['start']);}function Wt(_0x2e5fc7,_0x3e2ac0){if(!_0x2e5fc7['_isDataLoaded']||!_0x3e2ac0['_isDataLoaded'])return!0x1;const _0x3c4282=new Set(Object['keys'](_0x2e5fc7['attributes'])),_0x6ac291=new Set(Object['keys'](_0x3e2ac0['attributes']));if(_0x3c4282['delete']('groupId'),_0x6ac291['delete']('groupId'),0x0==_0x3c4282['size']&&0x0==_0x6ac291['size'])return!0x0;if(_0x3c4282['size']!=_0x6ac291['size'])return!0x1;const _0x51f90e={..._0x2e5fc7['attributes']},_0x1b93ba={..._0x3e2ac0['attributes']};return delete _0x51f90e['groupId'],delete _0x1b93ba['groupId'],JSON['stringify'](_0x51f90e)==JSON['stringify'](_0x1b93ba);}function Qt(_0x140e92,_0x40bf2c){const _0x26b495=Xt(_0x140e92['attributes']),_0x846537=Xt(_0x40bf2c);if(!_0x140e92['_isDataLoaded'])return!0x1;for(const _0x171042 of Object['keys'](_0x846537))if(!_0x5730e9(_0x26b495[_0x171042],_0x846537[_0x171042]))return!0x1;return!0x0;}function Xt(_0x203cfe){const _0x1fec0f=Object['assign']({},_0x203cfe);return delete _0x1fec0f['skipNestingCheck'],delete _0x1fec0f['tablePasteChainId'],_0x1fec0f;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x28e810(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2cf030,_0x36dafe,_0x178629,_0x5bb46e){super(),this['model']=_0x36dafe,this['view']=_0x178629,this['commentThreadController']=_0x5bb46e,this['_editor']=_0x2cf030,this['_acceptCommand']=_0x2cf030['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2cf030['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4707f3,_0x2301fd)=>_0x4707f3||_0x2301fd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2d19a1=>_0x2d19a1&&this['_editor']['model']['canEditAt'](_0x36dafe['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f251d=>_0x3f251d&&this['_editor']['model']['canEditAt'](_0x36dafe['getRanges']())),this['_pendingAction']=null,_0x178629['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x178629,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x178629,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x178629,'change:isDirty',()=>{_0x178629['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 _0x18314b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x18314b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x16d55d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b32b5,_0x4bc35f,_0x2df4de,_0x4cc0bf){super(_0x5b32b5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x12891d(_0x5b32b5,o(_0x5b32b5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4bc35f['authoredAt']),this['bind']('authoredAt')['to'](_0x4bc35f),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',_0x4bc35f,'authoredAt',this,'descriptionParts',(_0x5ef722,_0x36b680,_0x396ed9)=>{const _0x48d397=_0x396ed9['map'](_0x190c3c=>cs(_0x190c3c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5ef722-0x1,_0x4bc35f['author']['name'],_0x36b680?_0x4cc0bf['formatDateTime'](_0x36b680):'',new DOMParser()['parseFromString'](_0x48d397,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc19ddf(),this['focusTracker']=new _0x4adce5(),this['keystrokes']=new _0x4ab5eb(),this['focusCycler']=new _0x107169({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5ed0cf=>_0x5ed0cf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4bc35f,this['_localUser']=_0x2df4de,this['_config']=_0x4cc0bf,_0x4cc0bf['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x143d1c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3a250f}=this['_config'];this['commentsListView']=new _0x3a250f(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',_0x2a704b=>_0x2a704b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x34104a,_0x2fc05a)=>_0x34104a||!!_0x2fc05a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a819a}=this['_config'],_0x16ad60=new _0x3a819a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d35a6=_0x16ad60['commentInputView'];return _0x16ad60['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d35a6,'value',(_0x4c8bc7,_0x3990cc,_0xbb13b0)=>!!_0xbb13b0||_0x4c8bc7&&!_0x3990cc),_0x5d35a6['on']('submit',(_0x409699,_0x301e7c)=>{this['fire']('addComment',_0x301e7c),_0x5d35a6['editor']['setData']('');}),_0x5d35a6['on']('cancel',()=>this['focus']()),_0x5d35a6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x16ad60;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x39fc45,_0x51c396,_0x2dd2f8,_0x3fe544){super(_0x39fc45,_0x51c396,_0x2dd2f8,_0x3fe544),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x189313=>_0x189313&&_0x189313[0x0]?_0x189313[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1127c6,_0x42e3d9)=>{let _0x4e9437='';for(const _0x35720b of _0x1127c6)_0x4e9437+='<p>'+cs(_0x35720b['content'],_0x35720b['color'])+'</p>';return _0x42e3d9?_0x4e9437:_0xa16176(_0x4e9437,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3fe544['SuggestionView'](_0x39fc45,_0x51c396,{'formatDateTime':_0x3fe544['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 _0x14ac6d=this['bindTemplate'],_0x443e16=[this['suggestionView']];return this['commentsListView']&&_0x443e16['push'](this['commentsListView']),this['commentThreadInputView']&&_0x443e16['push'](this['commentThreadInputView']),_0x443e16['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x14ac6d['if']('isActive','ck-suggestion-wrapper--active'),_0x14ac6d['to']('type',_0x2aa007=>'ck-suggestion-'+_0x2aa007),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':_0x14ac6d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x443e16};}['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 _0x16d55d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x87905,_0x4261c5,_0x283097){super(_0x87905),this['_model']=_0x4261c5,this['_config']=_0x283097,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4261c5),this['acceptButton']=this['_createButton'](o(_0x87905,'Accept\x20suggestion'),_0x33fe73['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x87905,'Discard\x20suggestion'),_0x33fe73['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x793856(_0x87905,_0x4261c5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc19ddf([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4adce5(),this['keystrokes']=new _0x4ab5eb(),this['focusCycler']=new _0x107169({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x345505=>_0x345505['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ec561=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ec561['innerHTML']=this['description'],this['on']('change:description',(_0x3bdd78,_0x34da7e,_0x49e8c9)=>{_0x5ec561['innerHTML']=_0x49e8c9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x12d317=this['bindTemplate'],_0x24c0f6=[{'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':_0x12d317['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x12d317['to']('authoredAt',_0x315bed=>this['_config']['formatDateTime'](_0x315bed))}]}]},{'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']&&_0x24c0f6['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':_0x24c0f6}]};}['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'](_0x110c00,_0x330ba3,_0x165c7e,_0x2e84c6,_0x2f5e63){const _0x3bff37=new _0xd3709b(this['locale']);return _0x3bff37['set']({'label':_0x110c00,'icon':_0x330ba3,'tooltip':!0x0,'tooltipPosition':_0x2f5e63}),_0x3bff37['extendTemplate']({'attributes':{'class':_0x165c7e}}),_0x3bff37['on']('execute',()=>{this['fire'](_0x2e84c6,this['_model']['id']);}),_0x3bff37;}['_setupKeyboardNavigation'](){const _0x24242c=this['element'];this['keystrokes']['listenTo'](_0x24242c);for(const _0x36d860 of this['focusables'])this['focusTracker']['add'](_0x36d860['element']),this['keystrokes']['listenTo'](_0x36d860['element']);this['keystrokes']['set']('enter',(_0x47a9d7,_0x2d4701)=>{_0x24242c===_0x47a9d7['target']&&(this['focusCycler']['focusFirst'](),_0x2d4701());}),this['keystrokes']['set']('esc',(_0x3234d5,_0x97419a)=>{_0x24242c!==_0x3234d5['target']&&(this['focus'](),_0x97419a());});}}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 _0x3870c0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19b2a6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x404d35){super(_0x404d35),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3ea4eb=this['editor']['config'];_0x3ea4eb['define']('trackChanges.SuggestionThreadView',pe),_0x3ea4eb['define']('trackChanges.SuggestionView',fe),_0x3ea4eb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3ea4eb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x609f88,_0x2d7fbb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x500ee4,_0x50ae02]of this['_handleControllerBuffer']){const _0x28b411=this['_suggestionToController']['has'](_0x500ee4);_0x28b411||_0x50ae02?_0x28b411&&_0x50ae02&&this['_destroyController'](_0x500ee4):this['_initializeController'](_0x500ee4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x609f88,_0x2d7fbb);}['init'](){const _0x1c6f7f=this['editor'],_0x2f6daf=_0x1c6f7f['plugins']['get']('TrackChangesEditing'),_0x25e36c=_0x1c6f7f['plugins']['get']('Annotations'),_0x582d89=_0x1c6f7f['plugins']['get']('EditorAnnotations'),_0x41efe4=_0x1c6f7f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x582d89['addSourceCollector'](()=>{const _0xe3733b=[];for(const [_0xaa4940,_0x4af963]of Array['from'](this['_suggestionToController'])){const _0x42a097=_0xaa4940['getAllAdjacentSuggestions'](),_0x2f8561=[];for(const _0x1f7d92 of _0x42a097){if(!_0x1f7d92['isInContent'])continue;if(_0x1f7d92['isMultiRange']){_0x2f8561['push'](..._0x1f7d92['getRanges']());continue;}const _0x82d1ec=_0x1f7d92['getFirstRange']();if(_0x2f8561['length']>0x0){const _0x296828=_0x2f8561[0x0]['getJoined'](_0x82d1ec);if(_0x296828){_0x2f8561[0x0]=_0x296828;continue;}}_0x2f8561['push'](_0x82d1ec);}_0xe3733b['push']([_0x4af963['view'],_0x2f8561]);}return _0xe3733b;}),this['listenTo'](_0x2f6daf,'suggestionLoaded',(_0x52b491,_0x28e1da)=>{this['listenTo'](_0x28e1da,'change:previous',(_0x20a4cb,_0x4d972b,_0x5aada4,_0x18f85e)=>{_0x28e1da['isInContent']&&(null==_0x5aada4?(this['_updateController'](_0x18f85e['head']),this['_handleSuggestionControllerDelayed'](_0x28e1da,!0x1)):(this['_updateController'](_0x5aada4['head']),null==_0x18f85e&&this['_handleSuggestionControllerDelayed'](_0x28e1da,!0x0)));}),null!==_0x28e1da['previous']?this['_updateController'](_0x28e1da['head']):this['_handleSuggestionControllerDelayed'](_0x28e1da,!0x1);}),this['listenTo'](_0x2f6daf,'suggestionUnloaded',(_0x3440f4,_0x363f1e,_0x561565)=>{this['stopListening'](_0x363f1e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x363f1e),this['_suggestionToController']['has'](_0x363f1e)&&this['_destroyController'](_0x363f1e),_0x561565&&this['_updateController'](_0x561565['head']);}),this['listenTo'](_0x2f6daf,'suggestionChanged',(_0x314959,_0x42f5e6)=>{this['_updateController'](_0x42f5e6);}),this['listenTo'](_0x25e36c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41efe4,'addComment',(_0x1756de,{threadId:_0x4c8ca0,isFromAdapter:_0x12beae})=>{if(_0x12beae||!_0x2f6daf['hasSuggestion'](_0x4c8ca0))return;const _0x53e81a=_0x2f6daf['getSuggestion'](_0x4c8ca0);this['_suggestionToController']['get'](_0x53e81a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbd04c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35a8a0;for(const _0x47377a in _0xbd04c4){const _0x1fe39f=_0x47377a,_0x403aeb=_0xbd04c4[_0x1fe39f];if('trackChangesLicenseKeyValid'==_0x403aeb||'trackChangesLicenseKeyInvalid'==_0x403aeb||'trackChangesLicenseKeyExpired'==_0x403aeb||'trackChangesLicenseKeyDomainLimit'==_0x403aeb||'trackChangesLicenseKeyNotAllowed'==_0x403aeb||'trackChangesLicenseKeyEvaluationLimit'==_0x403aeb||'trackChangesLicenseKeyTrialLimit'==_0x403aeb||'trackChangesLicenseKeyUsageLimit'==_0x403aeb){delete _0xbd04c4[_0x1fe39f],_0x35a8a0=_0x403aeb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x34e9a4=this['editor']['plugins']['get']('Annotations'),_0x5e4a80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c707f=Array['from'](_0x34e9a4['activeAnnotations'],_0x386cdc=>_0x386cdc['innerView'])['filter'](_0x3156e1=>this['_viewToController']['has'](_0x3156e1)),_0x1873c6=[];for(const _0x2ec3e3 of _0x3c707f){const _0x2eab4d=this['_viewToController']['get'](_0x2ec3e3)['model']['getAllAdjacentSuggestions']();_0x1873c6['push'](..._0x2eab4d['reduce']((_0xf1a6b8,_0x321108)=>[..._0xf1a6b8,..._0x321108['getMarkerNames']()],[]));}_0x5e4a80['activeMarkers']=_0x1873c6;}['_addUIComponentsToFactory'](){const _0x21178d=this['editor'],_0x6df912=_0x21178d['locale'],_0x43b813=o(_0x6df912,'Track\x20changes'),_0x209e36=new _0x34b401([{'type':'switchbutton','model':new _0x6fd7fd({'withText':!0x0,'isToggleable':!0x0,'label':_0x43b813,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x21178d['plugins']['has']('TrackChangesPreview')&&_0x209e36['addMany']([{'type':'separator'},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5826cd of _0x209e36)if(ke(_0x5826cd)){const _0x466b67=_0x21178d['commands']['get'](_0x5826cd['model']['commandName']);_0x5826cd['model']['bind']('isOn','isEnabled')['to'](_0x466b67,'value','isEnabled');}_0x21178d['ui']['componentFactory']['add']('trackChanges',_0x584d79=>this['_createToolbarButton'](_0x584d79,_0x209e36,_0x43b813)),_0x21178d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x31e2bb=>this['_createMenuBarMenu'](_0x31e2bb,_0x209e36,_0x43b813));}['_createToolbarButton'](_0x3127e6,_0x421ecf,_0x3a614a){const _0x53382a=_0x2b3e30(_0x3127e6,_0x507e81),_0x29e711=this['editor']['commands']['get']('trackChanges');_0x53382a['buttonView']['set']({'tooltip':_0x3a614a,'label':_0x3a614a,'icon':we}),_0x53382a['buttonView']['bind']('isOn')['to'](_0x29e711,'value'),_0x53382a['buttonView']['on']('execute',()=>{_0x29e711['execute'](),this['editor']['editing']['view']['focus']();}),_0x8392e2(_0x53382a,_0x421ecf,{'role':'menu'});const _0x36ab62=[];for(const _0x42d7a7 of _0x421ecf)ke(_0x42d7a7)&&_0x36ab62['push'](this['editor']['commands']['get'](_0x42d7a7['model']['commandName']));const _0xf58ab2=_0x53382a['buttonView'];return _0xf58ab2['actionView']['unbind']('isEnabled'),_0xf58ab2['arrowView']['unbind']('isEnabled'),_0xf58ab2['actionView']['bind']('isEnabled')['to'](_0x29e711,'isEnabled'),_0xf58ab2['arrowView']['bind']('isEnabled')['toMany'](_0x36ab62,'isEnabled',(..._0x799c2b)=>_0x799c2b['some'](_0x174c25=>_0x174c25)),_0x53382a['on']('execute',_0x57bc7f=>{this['editor']['execute'](_0x57bc7f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x53382a;}['_createMenuBarMenu'](_0x10e602,_0x1779d4,_0x13f30d){const _0x270d54=new _0xe7eec8(_0x10e602),_0x43bd44=this['editor']['commands']['get']('trackChanges');_0x270d54['buttonView']['set']({'label':_0x13f30d,'icon':we});const _0x8e1a49=new _0x100061(_0x10e602);for(const _0x3884c4 of _0x1779d4){if('separator'==_0x3884c4['type']){_0x8e1a49['items']['add'](new _0x28bae8(_0x10e602));continue;}const _0x4fdaef=new _0x166fd0(_0x10e602,_0x270d54),_0x58c472=new _0x3aa8a5(_0x10e602),_0x1c5d25=_0x3884c4['model'];_0x58c472['bind'](...Object['keys'](_0x1c5d25))['to'](_0x1c5d25),_0x58c472['delegate']('execute')['to'](_0x270d54),_0x58c472['on']('execute',()=>{this['editor']['execute'](_0x1c5d25['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fdaef['children']['add'](_0x58c472),_0x8e1a49['items']['add'](_0x4fdaef);}return _0x270d54['bind']('isEnabled')['to'](_0x43bd44,'isEnabled'),_0x270d54['panelView']['children']['add'](_0x8e1a49),_0x270d54;}['_initializeController'](_0x446609){const _0x1886c6=this['editor'],_0x5b521d=_0x1886c6['config'],_0x1c9f2d=_0x1886c6['plugins']['get']('Annotations'),_0x3a0f10=_0x1886c6['plugins']['get']('CommentsRepository'),_0x3e30ae=_0x1886c6['plugins']['get']('EditorAnnotations'),_0x31b3fd=_0x1886c6['plugins']['get'](_0x19b2a6)['me'],_0x440063=_0x5b521d['get']('trackChanges')['SuggestionThreadView'],_0x36199f=_0x5b521d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x585d76,CommentThreadInputView:_0x474a0f}=_0x1886c6['plugins']['get']('CommentsUI');let _0x1a0a2d,_0x2c065b,_0x1c23a6;this['_annotationViews']['has'](_0x446609['id'])?(_0x2c065b=this['_annotationViews']['get'](_0x446609['id']),_0x1a0a2d=_0x2c065b['mainView']):(_0x1a0a2d=new _0x440063(_0x1886c6['locale'],_0x446609,_0x31b3fd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5b521d['get']('comments.editorConfig'),'licenseKey':_0x5b521d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5b521d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5b521d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5b521d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x56aa9d(_0x5b521d['get']('locale')),'CommentView':_0x5b521d['get']('comments')['CommentView'],'CommentsListView':_0x585d76,'CommentThreadInputView':_0x474a0f,'SuggestionView':_0x36199f}),_0x1a0a2d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1886c6['editing']['view']['focus']();}),_0x1a0a2d['suggestionView']['discardButton']['on']('execute',()=>{_0x1886c6['editing']['view']['focus']();}),_0x2c065b=_0x1c9f2d['createAnnotationView'](this['editor']['locale'],_0x1a0a2d),_0x2c065b['bind']('isDirty')['to'](_0x1a0a2d,'isDirty'),_0x2c065b['bind']('length')['to'](_0x1a0a2d),_0x2c065b['bind']('type')['to'](_0x1a0a2d,'type',_0x44aab4=>'suggestion-'+_0x44aab4),_0x1a0a2d['on']('escape',()=>{_0x1c23a6['fire']('escape');}),this['_annotationViews']['set'](_0x446609['id'],_0x2c065b));const _0x5432b8=_0x3a0f10['createCommentThreadController'](_0x446609['commentThread'],_0x1a0a2d),_0x3e58bc=new Ce(_0x1886c6,_0x446609,_0x1a0a2d,_0x5432b8),_0x44570e=_0x446609['getAllAdjacentSuggestions']()['filter'](_0x2faa25=>_0x2faa25['isInContent']);_0x1a0a2d['descriptionParts']=_0x1886c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44570e),this['_suggestionToController']['set'](_0x446609,_0x3e58bc),this['_viewToController']['set'](_0x1a0a2d,_0x3e58bc),_0x1c23a6=_0x1c9f2d['createAnnotation']({'view':_0x2c065b,'target':()=>{const _0x5f4bdf=[],_0xa4c83d=_0x446609['getAllAdjacentSuggestions']()['filter'](_0x963ed9=>_0x963ed9['isInContent']);for(const _0x480715 of _0xa4c83d)_0x5f4bdf['push'](..._0x480715['getMarkers']());return _0x32221f(_0x1886c6['editing'],_0x5f4bdf);},'type':()=>'suggestion-'+_0x3e58bc['view']['type']}),_0x3a0f10['_bindAnnotationToEditors'](_0x1a0a2d,_0x1c23a6),_0x1c9f2d['add'](_0x1c23a6),_0x3e30ae['registerAnnotation'](_0x1c23a6);}['_destroyController'](_0x51e417){const _0x1f93a1=this['editor']['plugins']['get']('CommentsRepository'),_0x24fc52=this['editor']['plugins']['get']('Annotations'),_0x4ecefe=this['_suggestionToController']['get'](_0x51e417),_0x3b8504=_0x4ecefe['view'],_0x28177b=_0x24fc52['getByInnerView'](_0x3b8504);_0x1f93a1['_unbindEditors'](_0x3b8504),_0x28177b&&_0x24fc52['remove'](_0x28177b),this['_suggestionToController']['delete'](_0x51e417),this['_viewToController']['delete'](_0x3b8504),_0x4ecefe['destroy']();}['_updateController'](_0x236928){if(!_0x236928['isInContent']||!this['_suggestionToController']['has'](_0x236928))return;const _0x1af166=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47d157=this['_suggestionToController']['get'](_0x236928),_0x5d681d=_0x236928['getAllAdjacentSuggestions']();_0x47d157['view']['descriptionParts']=_0x1af166['descriptionFactory']['getDescriptions'](_0x5d681d);}['destroy'](){for(const _0x3de0f9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3de0f9);for(const _0x176e67 of this['_annotationViews']['values']())_0x176e67['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2f51f8){return'model'in _0x2f51f8;}class k extends _0x3870c0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x43b97e){this['editor']['plugins']['get'](p)['adapter']=_0x43b97e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x528a01){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x528a01);}['getSuggestions']({skipNotAttached:_0x2cfb45=!0x1,toJSON:_0x499610=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2cfb45,'toJSON':_0x499610});}['getSuggestion'](_0x4104b0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4104b0);}}const w=['Pagination'];class T extends _0x3870c0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20befb=this['editor'];if(_0x20befb['config']['define']('trackChangesData.editorCreator',_0x3b9ad8=>{const _0x2da846=_0x20befb['model']['document']['getRootNames']()['reduce']((_0x414bfc,_0x2e9374)=>(_0x414bfc[_0x2e9374]='',_0x414bfc),{});return _0x20befb['constructor']['create'](_0x2da846,_0x3b9ad8);}),'function'!=typeof _0x20befb['config']['get']('trackChangesData')['editorCreator'])throw new _0x534bac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x257d9b){return N(this['editor'],!0x0,_0x257d9b);}['getDataWithDiscardedSuggestions'](_0x419c5f){return N(this['editor'],!0x1,_0x419c5f);}}class D extends _0x3870c0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44ff61){function _0x4c4edf(_0x1ffbc0){return _0x1ffbc0['map'](_0x3f6101=>String['fromCharCode'](_0x3f6101))['join']('');}super(_0x44ff61),this['result']='end',_0x44ff61[_0x4c4edf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4edf([0x76,0x69,0x65,0x77])][_0x4c4edf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c4edf([0x61,0x75,0x74,0x6f]),_0x44ff61[_0x4c4edf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c4edf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c4edf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c4edf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c4edf([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(_0x4e9dd3){return void 0x0!==_0x4e9dd3['getRootsAttributes'];}async function N(_0x360d79,_0x5bd90e,_0x1ced9e){const _0x47f17e=_0x3ea1df(_0x360d79,w);_0x47f17e['plugins']['push'](p,D),_0x47f17e['rootsAttributes']=Fe(_0x360d79)?_0x360d79['getRootsAttributes']():void 0x0;const _0x2ef63f=document['createDocumentFragment'](),_0x293432=_0x360d79['config']['get']('trackChangesData')['editorCreator'],_0x3f8675=await _0x293432(_0x47f17e,()=>function(_0xa54b27){const _0x3d349c=document['createElement']('div');return _0xa54b27['appendChild'](_0x3d349c),_0x3d349c;}(_0x2ef63f));!function(_0x435df1,_0x4cccf4){const _0x38fc05=_0x435df1['model']['document']['getRootNames']()['reduce']((_0x66c65e,_0x4a2b1c)=>(_0x66c65e[_0x4a2b1c]=_0x435df1['data']['get']({'rootName':_0x4a2b1c}),_0x66c65e),{}),_0x12f0e3=_0x435df1['plugins']['get']('Users')['users']['map'](_0x2c8c98=>({'id':_0x2c8c98['id'],'name':_0x2c8c98['name']})),_0x5cc415=_0x435df1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56fe07=_0x435df1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1529a9=_0x4cccf4['plugins']['get']('Users'),_0x2f8c0e=_0x4cccf4['plugins']['get']('TrackChangesEditing'),_0x3ddb37=_0x4cccf4['plugins']['get']('CommentsRepository');for(const _0x383c50 of _0x3ddb37['getCommentThreads']())_0x383c50['remove']();for(const _0x8e3660 of _0x12f0e3)_0x1529a9['getUser'](_0x8e3660['id'])||_0x1529a9['addUser'](_0x8e3660);_0x1529a9['me']||_0x1529a9['useAnonymousUser']();for(const _0x3ef179 of _0x56fe07)_0x3ddb37['addCommentThread'](_0x3ef179);for(const _0x1c9293 of _0x5cc415)_0x2f8c0e['addSuggestionData'](_0x1c9293);_0x4cccf4['data']['set'](_0x38fc05);}(_0x360d79,_0x3f8675),_0x3f8675['execute'](_0x5bd90e?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e820a=Fe(_0x3f8675)?_0x3f8675['getFullData'](_0x1ced9e):_0x3f8675['data']['get'](_0x1ced9e);return await _0x3f8675['destroy'](),_0x5e820a;}class Me extends _0x16d55d{['options'];constructor(_0x4b9ea5,_0x22023f){super(_0x4b9ea5),this['options']=_0x22023f,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'](_0x48034f,_0x4d1588){if(!this['element'])return;const _0x447720=[];for(const [_0x498dcc,_0xe67aa]of _0x48034f){const _0xad74d1=document['createElement']('div');_0xad74d1['setAttribute']('data-ck-root-name',_0x498dcc),_0xad74d1['className']=_0xe67aa['classes']+'\x20ck-track-changes-preview__root-container',_0xad74d1['innerHTML']=_0xe67aa['content'],_0x447720['push'](_0xad74d1);}_0x4d1588(this['element'],_0x447720),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x21acf8){super(_0x21acf8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x220f24=this['editor'],_0xd8a790=_0x220f24['locale'],_0xca3b1=_0x220f24['plugins']['get']('Dialog');let _0x31e9ed;const _0x56ef90=function(_0x464523){const _0x3bc843={};if('editables'in _0x464523['ui']['view']){for(const [_0x57e25b,_0x1888bb]of Object['entries'](_0x464523['ui']['view']['editables']))_0x3bc843[_0x57e25b]=_0x1888bb['element'];}else _0x3bc843[_0x464523['model']['document']['getRootNames']()[0x0]]=_0x464523['ui']['view']['editable']['element'];return _0x3bc843;}(_0x220f24),_0xae3ac0=function(_0x3683a8){let _0x3ccec6=0x0;for(const _0x374c9f of Object['values'](_0x3683a8))_0x3ccec6=Math['max'](_0x3ccec6,_0x374c9f['getBoundingClientRect']()['width']);let _0x4ac7ca=0x0;for(const _0x5d9aa2 of Object['values'](_0x3683a8))_0x4ac7ca+=_0x5d9aa2['getBoundingClientRect']()['height'];const _0x5ad400=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x155132=Math['min'](_0x4ac7ca,_0x5ad400);return{'width':_0x3ccec6,'height':_0x155132};}(_0x56ef90);_0xca3b1['show']({'id':'finalContentPreview','title':o(_0xd8a790,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xd8a790,{'dialogRects':_0xae3ac0}),'onHide':()=>{_0x31e9ed['detachFromDom']();},'onShow':()=>{_0x220f24['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a817d=>{const _0x50446c=this['_standarizeRootsData'](_0x2a817d,_0x220f24,_0x56ef90);_0xca3b1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x50446c,_0x220f24['config']['get']('trackChanges.preview.renderFunction'));}),_0x31e9ed=new _0x3c49d0(_0xd8a790,[_0xca3b1['view']]),_0x31e9ed['attachToDom'](),_0x31e9ed['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x220f24['once']('destroy',()=>{_0x31e9ed['detachFromDom']();});const _0x13e494=_0xca3b1['view']['headerView']['class'];_0xca3b1['view']['headerView']['class']=_0x13e494?_0x13e494+'\x20ck-reset_all':'ck-reset_all',_0xca3b1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xca3b1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x238dee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5b556e=_0x238dee['previewMode'],_0x200096={};if('$labels'===_0x5b556e){for(const _0x342713 of _0x238dee['getMergeFieldsIds']())_0x200096[_0x342713]=_0x238dee['getLabel'](_0x342713)||_0x342713;}else{const _0x1d5618='$defaultValues'===_0x5b556e?_0x238dee['getDefaultValues']():_0x238dee['getDataSetValues'](_0x5b556e,!0x0);for(const _0x2b80e1 of Object['entries'](_0x1d5618)){const [_0x3b3003,_0x238fca]=_0x2b80e1;_0x200096[_0x3b3003]=null!==_0x238fca?_0x238fca:_0x238dee['getLabel'](_0x3b3003)||_0x3b3003;}}return{'mergeFieldsData':_0x200096};}['_standarizeRootsData'](_0x22fb15,_0x565a2a,_0x352e02){let _0x336a5a;if('string'==typeof _0x22fb15){const _0x4da899=_0x565a2a['model']['document']['getRootNames']()[0x0];_0x336a5a={[_0x4da899]:_0x22fb15};}else _0x336a5a=_0x22fb15;const _0x3c1cdb=this['_fixMediaEmbeds'](_0x336a5a,_0x565a2a),_0x42a8fd=function(_0x5475d7,_0x523cd9){for(const [_0x132a0d,_0x232faa]of _0x5475d7)_0x232faa['classes']=_0x523cd9[_0x132a0d]['classList']['value']['replace']('ck-focused','');return _0x5475d7;}(this['_sortRoots'](_0x565a2a)['reduce']((_0xf6772f,_0x4b243a)=>(_0xf6772f['push']([_0x4b243a,{'content':_0x3c1cdb[_0x4b243a],'classes':''}]),_0xf6772f),[]),_0x352e02);return _0x42a8fd;}['_fixMediaEmbeds'](_0x584104,_0x304023){if(!_0x304023['plugins']['has']('MediaEmbedEditing'))return _0x584104;const _0x5c6e7c=_0x304023['plugins']['get']('MediaEmbedEditing');for(const [_0x9b924f,_0x10cea2]of Object['entries'](_0x584104)){const _0x2d25af=document['createElement']('div');_0x2d25af['innerHTML']=_0x10cea2,(_0x2d25af['querySelectorAll']('figure.media')['forEach'](_0x139a10=>{const _0x83e2aa=_0x139a10['querySelector']('oembed');if(_0x83e2aa){const _0x34b8d2=_0x83e2aa['getAttribute']('url');if(_0x34b8d2){const _0x1aff8a=_0x5c6e7c['registry']['getMediaViewElement'](new _0x3530bb(_0x304023['editing']['view']['document']),_0x34b8d2,{'elementName':'','renderForEditingView':!0x0}),_0x3e9c11=document['createElement']('div');_0x3e9c11['classList']['add']('ck-media__wrapper'),_0x1aff8a['render'](_0x3e9c11,_0x304023['editing']['view']['domConverter']),_0x83e2aa['replaceWith'](_0x3e9c11);}}}),_0x584104[_0x9b924f]=_0x2d25af['innerHTML']);}return _0x584104;}['_sortRoots'](_0x52fa03){if(!function(_0x44a72a){return void 0x0!==_0x44a72a['getRootsAttributes'];}(_0x52fa03))return _0x52fa03['model']['document']['getRootNames']();const _0x20e603=[],_0xd58ff9=new Map();for(const _0x34f7d3 of _0x52fa03['model']['document']['getRootNames']()){const _0x5a7847=_0x52fa03['editing']['view']['getDomRoot'](_0x34f7d3)['getClientRects']()['item'](0x0);_0x20e603['push'](_0x34f7d3),_0xd58ff9['set'](_0x34f7d3,_0x5a7847);}return _0x20e603['sort']((_0x252c61,_0x2f26fa)=>{const _0x152fd9=_0xd58ff9['get'](_0x252c61),_0x5b7f79=_0xd58ff9['get'](_0x2f26fa);return _0x152fd9['y']-_0x5b7f79['y']||_0x152fd9['x']-_0x5b7f79['x'];}),_0x20e603;}}class te extends _0x3870c0{static get['requires'](){return[T,_0x6f0cd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a7375){super(_0x4a7375),_0x4a7375['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4a7375['config']['define']('trackChanges.preview.renderFunction',(_0xe6ed35,_0x1ede0e)=>{for(const _0x5f09ea of _0x1ede0e)_0xe6ed35['appendChild'](_0x5f09ea);});}}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};