@ckeditor/ckeditor5-track-changes 44.0.0-alpha.8 → 44.0.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 (218) hide show
  1. package/README.md +2 -2
  2. package/build/track-changes.js +1 -1
  3. package/dist/index.js +3 -3
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +10 -10
  149. package/src/commands/acceptsuggestioncommand.js +1 -1
  150. package/src/commands/discardsuggestioncommand.js +1 -1
  151. package/src/commands/executeonallsuggestionscommand.js +1 -1
  152. package/src/commands/executeonselectedsuggestionscommand.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/entercommand.js +1 -1
  166. package/src/integrations/findandreplace.js +1 -1
  167. package/src/integrations/font.js +1 -1
  168. package/src/integrations/formatpainter.js +1 -1
  169. package/src/integrations/heading.js +1 -1
  170. package/src/integrations/highlight.js +1 -1
  171. package/src/integrations/horizontalline.js +1 -1
  172. package/src/integrations/htmlembed.js +1 -1
  173. package/src/integrations/image.js +1 -1
  174. package/src/integrations/imagereplace.js +1 -1
  175. package/src/integrations/imagestyle.js +1 -1
  176. package/src/integrations/importword.js +1 -1
  177. package/src/integrations/indent.js +1 -1
  178. package/src/integrations/inputcommand.js +1 -1
  179. package/src/integrations/legacylist.js +1 -1
  180. package/src/integrations/legacylistproperties.js +1 -1
  181. package/src/integrations/link.js +1 -1
  182. package/src/integrations/list.js +1 -1
  183. package/src/integrations/listproperties.js +1 -1
  184. package/src/integrations/mediaembed.js +1 -1
  185. package/src/integrations/mention.js +1 -1
  186. package/src/integrations/mergefields.js +1 -1
  187. package/src/integrations/multilevellist.js +1 -1
  188. package/src/integrations/pagebreak.js +1 -1
  189. package/src/integrations/paragraph.js +1 -1
  190. package/src/integrations/removeformat.js +1 -1
  191. package/src/integrations/restrictededitingmode.js +1 -1
  192. package/src/integrations/shiftentercommand.js +1 -1
  193. package/src/integrations/standardeditingmode.js +1 -1
  194. package/src/integrations/style.js +1 -1
  195. package/src/integrations/table.js +1 -1
  196. package/src/integrations/tablecaption.js +1 -1
  197. package/src/integrations/tableclipboard.js +1 -1
  198. package/src/integrations/tablecolumnresize.js +1 -1
  199. package/src/integrations/tableheadings.js +1 -1
  200. package/src/integrations/tablemergesplit.js +1 -1
  201. package/src/integrations/tableofcontents.js +1 -1
  202. package/src/integrations/tableproperties.js +1 -1
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.js +1 -1
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/utils.js +1 -1
  207. package/src/suggestion.js +2 -2
  208. package/src/suggestiondescriptionfactory.js +1 -1
  209. package/src/trackchanges.js +1 -1
  210. package/src/trackchangesdata.js +1 -1
  211. package/src/trackchangesediting.js +1 -1
  212. package/src/trackchangesui.js +1 -1
  213. package/src/ui/suggestioncontroller.js +2 -2
  214. package/src/ui/view/basesuggestionthreadview.js +1 -1
  215. package/src/ui/view/suggestionthreadview.js +1 -1
  216. package/src/ui/view/suggestionview.js +1 -1
  217. package/src/utils/common-translations.js +1 -1
  218. 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 Qt,Plugin as _0x579de7,PendingActions as _0x47000f,icons as _0x4e9ebb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c1a8a,ObservableMixin as _0x40aa80,uid as _0x303cc5,insertToPriorityArray as _0x2d8e7b,priorities as _0x4f4b43,logWarning as _0x2add20,getEnvKeystrokeText as _0x2b5fa3,FocusTracker as _0x5993dc,KeystrokeHandler as _0x5d4bbe,Collection as _0x209e7b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x19c35e,View as _0x288dc8,ViewCollection as _0x292df9,FocusCycler as ts,ViewModel as _0x50aa22,createDropdown as _0xdbafde,SplitButtonView as _0x8c5030,addListToDropdown as te,MenuBarMenuView as _0x2f6eef,MenuBarMenuListView as _0x42666e,ListSeparatorView as _0x144664,MenuBarMenuListItemView as _0x359136,MenuBarMenuListItemButtonView as _0x5753fa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x21ad1e,hashObject as _0x30c346,surroundingMarkersDetector as _0x4cdbd7,FOCUS_ANNOTATION_KEYSTROKE as _0x23baf2,AriaDescriptionView as _0x59ecc7,setupThreadKeyboardNavigation as _0x57f41d,trimHtml as ti,UserView as _0x3a9542,LateFocusButtonView as _0x520a67,getDateTimeFormatter as _0x4b27af,getAllMarkersDomElementsSorted as _0x4f030e,sanitizeEditorConfig as _0x3ec0dd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1ee362,LiveRange as _0x5e91cd,LivePosition as _0x3d6a4a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x53ac15,toWidget as _0x5d2810}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x371996,set as _0x145654,isEqual as _0x3b7fb8,unset as _0x221600,omit as xt}from'lodash-es';import{Delete as _0x4862bc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x19ffea,ShiftEnter as _0x22c03a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x28ed3d,_0x486726){super(_0x28ed3d),this['_enabledCommands']=_0x486726,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 _0x598ff9 of this['editor']['commands']['commands']())_0x598ff9['affectsData']&&!this['_enabledCommands']['has'](_0x598ff9)&&_0x598ff9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x27f969 of this['editor']['commands']['commands']())_0x27f969['affectsData']&&!this['_enabledCommands']['has'](_0x27f969)&&_0x27f969['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x23ff02,_0x3ace0e){super(_0x23ff02),this['_suggestions']=_0x3ace0e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x194e3e){const _0x147330=this['_suggestions']['get'](_0x194e3e);if(!_0x147330)throw new _0x1c1a8a('track-changes-accept-suggestion-not-found',this);const _0x2effa5=_0x147330['getRanges']();this['editor']['model']['canEditAt'](_0x2effa5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x147330);}}class R extends Qt{['_suggestions'];constructor(_0x1b47d9,_0x31e633){super(_0x1b47d9),this['_suggestions']=_0x31e633,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38456f){const _0x311904=this['_suggestions']['get'](_0x38456f);if(!_0x311904)throw new _0x1c1a8a('track-changes-discard-suggestion-not-found',this);const _0x10a73a=_0x311904['getRanges']();this['editor']['model']['canEditAt'](_0x10a73a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x311904);}}function ns(_0x3540a4,_0x1a4e11){let _0x12a399='';return _0x12a399+=_0x3540a4['split']('*')['map']((_0x4e6eda,_0x1de4d5)=>_0x1de4d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4e6eda)+'</span>':nn(_0x4e6eda))['join'](''),_0x1a4e11&&(_0x12a399+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a4e11['value']+'\x22\x20title=\x22'+_0x1a4e11['title']+'\x22></span>'),_0x12a399;}function nn(_0x14a7c4){const _0x2c9bbf=document['createElement']('span');return _0x2c9bbf['innerText']=_0x14a7c4,_0x2c9bbf['innerHTML'];}function Wt(_0x4cfc4f){return _0x4cfc4f['sort']((_0x1b8da6,_0x43dbaa)=>'deletion'==_0x1b8da6['type']&&'deletion'!=_0x43dbaa['type']?-0x1:'deletion'!=_0x1b8da6['type']&&'deletion'==_0x43dbaa['type']?0x1:0x0);}function to(_0x4701fb,_0x397e08){let _0x49a4ca,_0x43e92b=0x0;const _0x69ff1f=[],_0x974bec=_0x397e08['schema'];for(;_0x43e92b<_0x4701fb['length'];){const _0x359d02=_0x4701fb[_0x43e92b],_0x116e7b=_0x4701fb[_0x43e92b+0x1];_0x49a4ca||(_0x49a4ca=_0x397e08['createPositionBefore'](_0x359d02)),on(_0x397e08,_0x359d02,_0x116e7b)||(_0x69ff1f['push'](_0x397e08['createRange'](_0x49a4ca,_0x974bec['isObject'](_0x359d02)?_0x397e08['createPositionAfter'](_0x359d02):_0x397e08['createPositionAt'](_0x359d02,'end'))),_0x49a4ca=null),_0x43e92b++;}return _0x69ff1f;}function on(_0x5aac5d,_0x4b0a55,_0x38fb60){if(!_0x38fb60)return!0x1;const _0x4bdf0b=_0x5aac5d['createPositionAfter'](_0x4b0a55),_0x1feed9=_0x5aac5d['createPositionBefore'](_0x38fb60);return _0x4bdf0b['isTouching'](_0x1feed9);}function Xt(_0x43d7d6,_0x53c26a,_0x23f52b){for(;_0x23f52b['length'];){const _0x13541c=_0x23f52b['splice'](0x0,0x64);_0x43d7d6['change'](()=>{for(const _0x2043d4 of _0x13541c)_0x2043d4['isInContent']&&_0x53c26a['execute'](_0x2043d4['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x551046,_0x1b5041,_0x1fd516){super(_0x551046),this['_command']=_0x1b5041,this['_suggestions']=_0x1fd516,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1477aa=Array['from'](this['_suggestions']['values']())['some'](_0x59282b=>_0x59282b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1477aa;}['execute'](){const _0x304f85=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x21ed10 of _0x304f85){const _0x20bde2=_0x21ed10['getRanges']();if(!this['editor']['model']['canEditAt'](_0x20bde2))return;}Xt(this['editor']['model'],this['_command'],_0x304f85);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x232bac,_0x439ae7,_0x592949){super(_0x232bac),this['_command']=_0x439ae7,this['_suggestions']=_0x592949,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ac740=this['editor']['model']['document']['selection'],_0x23a8c1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x347dff,_0x70808f){const _0xbf3e02=Array['from'](_0x347dff['getRanges']()),_0x4ecf13=new Set();for(const _0x4f7c0a of _0x70808f)if(_0x4f7c0a['isInContent']){for(const _0x26a80f of _0xbf3e02)for(const _0x23236d of _0x4f7c0a['getRanges']())(_0x26a80f['isIntersecting'](_0x23236d)||_0x347dff['isCollapsed']&&!_0x4f7c0a['isMultiRange']&&_0x4f7c0a['next']&&_0x23236d['end']['isTouching'](_0x26a80f['start']))&&_0x4ecf13['add'](_0x4f7c0a);}return _0x4ecf13;}(_0x3ac740,_0x23a8c1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x139ee4=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x276433 of _0x139ee4){const _0x5e2c46=_0x276433['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e2c46))return;}Xt(this['editor']['model'],this['_command'],_0x139ee4);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x40aa80(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x582874,_0x32037d){super(),this['id']=_0x32037d['id'],this['type']=_0x32037d['type'],this['subType']=_0x32037d['subType']||null,this['author']=_0x32037d['author'],this['creator']=_0x32037d['creator']||_0x32037d['author'],this['isExternal']=Boolean(_0x32037d['attributes']&&_0x32037d['attributes']['@external']),this['data']=null,this['_model']=_0x582874,this['_onAccept']=_0x32037d['onAccept'],this['_onDiscard']=_0x32037d['onDiscard'],this['_onAttributesChange']=_0x32037d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x32037d['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 _0x2a732a=this;for(;_0x2a732a['previous'];)_0x2a732a=_0x2a732a['previous'];return _0x2a732a;}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'](_0x1aa853){this['_markerNames']['add'](_0x1aa853);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b62cf=>this['_model']['markers']['get'](_0x2b62cf))['filter'](_0x1082be=>_0x1082be);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34661b=>{for(const _0x30346f of this['getMarkers']())_0x34661b['removeMarker'](_0x30346f);}),this['_markerNames']['clear']();}['removeMarker'](_0x183a66){this['_model']['change'](_0x2138d8=>{_0x2138d8['removeMarker'](_0x183a66);}),this['_markerNames']['delete'](_0x183a66);}['addRange'](_0x36cf89){const _0x6d48bd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x6d48bd),this['_model']['change'](_0x28c6d9=>{_0x28c6d9['addMarker'](_0x6d48bd,{'range':_0x36cf89,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2315e2){for(const _0x252378 of this['getRanges']())if(_0x252378['isIntersecting'](_0x2315e2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47934b=>_0x47934b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42e532,_0x116100)=>[..._0x42e532,..._0x116100['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1f7125=this['getRanges']();if(0x1!=_0x1f7125['length'])return null;const _0x27337f=_0x1f7125[0x0],_0xfe1157=_0x27337f['start']['nodeAfter'],_0x1778db=_0x27337f['end']['nodeBefore'];return _0xfe1157 instanceof _0x1ee362?_0xfe1157!=_0x1778db?null:_0xfe1157: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 _0x4340cd=[];let _0x2dfa9c=this['head'];for(;_0x2dfa9c;)_0x4340cd['push'](_0x2dfa9c),_0x2dfa9c=_0x2dfa9c['next'];return _0x4340cd;}['setAttribute'](_0x4f0a17,_0x2d2623){const _0x1a57e7=_0x371996(this['attributes']);_0x145654(_0x1a57e7,_0x4f0a17,_0x2d2623),_0x3b7fb8(_0x1a57e7,this['attributes'])||(this['attributes']=_0x1a57e7,this['_onAttributesChange'](_0x1a57e7));}['removeAttribute'](_0x167c51){const _0x4dd43c=_0x371996(this['attributes']);_0x221600(_0x4dd43c,_0x167c51),_0x3b7fb8(_0x4dd43c,this['attributes'])||(this['attributes']=_0x4dd43c,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 _0x303cc5()['substr'](0x1,0x5);}}function o(_0x5d1b38,_0x3ae5be,_0x5b1d95){const _0x3fdbd8=_0x5d1b38['t'],t=_0x5d1b38['t'];switch(_0x3ae5be){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5b1d95);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b1d95);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b1d95);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b1d95);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b1d95);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',_0x5b1d95);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b1d95);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b1d95);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b1d95);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b1d95);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b1d95);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b1d95);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b1d95);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5b1d95);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b1d95);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b1d95);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b1d95);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b1d95);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b1d95);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b1d95);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b1d95);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b1d95);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b1d95);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b1d95);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b1d95);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b1d95);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b1d95);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b1d95);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b1d95);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b1d95);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b1d95);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5b1d95);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 _0x3fdbd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5b1d95);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3fdbd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5b1d95);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ae5be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35074d,_0x41d229){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35074d,this['_locale']=_0x41d229;}['getDescriptions'](_0x866129){const _0x237729=[],_0x2c76f2=new Set(),_0x3e662f=new Set();for(let _0x6e95ea=0x0;_0x6e95ea<_0x866129['length'];_0x6e95ea++){const _0x20332e=_0x866129[_0x6e95ea];if(!_0x20332e['isInContent'])continue;const _0x39f68e=this['_handleCustomCallbackDescription'](_0x20332e);if(_0x39f68e){if(null!=_0x20332e['subType']){if(_0x2c76f2['has'](_0x20332e['subType']))continue;_0x2c76f2['add'](_0x20332e['subType']);}_0x237729['push'](_0x39f68e);}else{if('attribute'!=_0x20332e['type'])'insertion'!=_0x20332e['type']&&'deletion'!=_0x20332e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x237729,_0x20332e,_0x866129[_0x6e95ea+0x1]);else{const _0x2db7f8=_0x20332e['data']['key'];if(_0x3e662f['has'](_0x2db7f8))continue;_0x3e662f['add'](_0x20332e['data']['key']),_0x2db7f8==m?this['_handleRenameSuggestionDescription'](_0x237729,_0x20332e):this['_handleAttributeSuggestionDescription'](_0x237729,_0x20332e);}}}return this['_resolveDescriptionItems'](_0x237729);}['registerDescriptionCallback'](_0x109d01){this['_customCallbacks']['push'](_0x109d01);}['registerElementLabel'](_0x4cea08,_0x42c4fe,_0x3ef430=_0x4f4b43['normal']){'function'==typeof _0x4cea08?_0x2d8e7b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4cea08,'label':_0x42c4fe,'priority':_0x3ef430}):this['_itemLabels']['set'](_0x4cea08,_0x42c4fe);}['registerAttributeLabel'](_0x15661d,_0x3af10f){this['_attributeLabels']['set'](_0x15661d,_0x3af10f);}['getItemLabel'](_0x110b7f,_0x117caa=0x1){let _0x5f9acf;for(const _0x3fe90a of this['_itemLabelsCallbacks'])if(_0x3fe90a['matchingCallback'](_0x110b7f)){_0x5f9acf=_0x3fe90a['label'];break;}return _0x5f9acf||(_0x5f9acf=this['_itemLabels']['get'](_0x110b7f['name'])),_0x5f9acf?_0x5f9acf(_0x117caa):0x1!==_0x117caa?_0x117caa+'\x20'+_0x110b7f['name']+'s':''+_0x110b7f['name'];}['_addDescriptionItems'](_0x3bfd5e,_0x186cee){const _0x2acf3a=_0x186cee['getFirstRange']()['getWalker'](),_0x573a3e='insertion'==_0x186cee['type']?'add':'remove';for(const _0x59f281 of _0x2acf3a){const _0x5a7229=_0x59f281['item'],_0x234e0a=_0x3bfd5e[_0x3bfd5e['length']-0x1];if(_0x5a7229['is']('$textProxy'))_0x234e0a&&_0x234e0a['type']['indexOf']('Container')>-0x1&&_0x3bfd5e['pop'](),_0x234e0a&&'text'==_0x234e0a['type']?_0x234e0a[_0x573a3e]+=_0x5a7229['data']:_0x3bfd5e['push']({'type':'text','add':'add'==_0x573a3e?_0x5a7229['data']:'','remove':'remove'==_0x573a3e?_0x5a7229['data']:''});else{if(this['_schema']['isObject'](_0x5a7229)){const _0x22fcc3=_0x5a7229;if(_0x234e0a&&_0x234e0a['type']['indexOf']('Container')>-0x1&&_0x3bfd5e['pop'](),'elementEnd'==_0x59f281['type'])continue;_0x234e0a&&_0x234e0a['type']==_0x573a3e+'Object'&&_0x234e0a['element']['name']==_0x22fcc3['name']?_0x234e0a['quantity']++:_0x3bfd5e['push']({'type':_0x573a3e+'Object','element':_0x22fcc3,'quantity':0x1}),_0x2acf3a['skip'](_0x101833=>!('elementEnd'==_0x101833['type']&&_0x101833['item']==_0x5a7229));}else{if(this['_schema']['checkChild'](_0x5a7229,'$text')||_0x5a7229['is']('element','softBreak')){const _0x512332=_0x5a7229;if('add'==_0x573a3e&&'elementStart'==_0x59f281['type']||'remove'==_0x573a3e&&'elementEnd'==_0x59f281['type'])continue;if(_0x234e0a&&-0x1==_0x234e0a['type']['indexOf']('Container')){'text'==_0x234e0a['type']&&(_0x234e0a[_0x573a3e]+='\x0a');continue;}let _0x40190a;if(_0x40190a='add'==_0x573a3e?_0x512332['nextSibling']&&!this['_schema']['isObject'](_0x512332['nextSibling'])?_0x512332['nextSibling']:null:_0x512332['previousSibling']&&!this['_schema']['isObject'](_0x512332['previousSibling'])?_0x512332['previousSibling']:null,_0x512332['isEmpty']||_0x40190a&&_0x40190a['isEmpty']){const _0x1d6f51=_0x40190a&&_0x40190a['isEmpty']?_0x40190a:_0x512332;_0x234e0a&&_0x234e0a['type']==_0x573a3e+'EmptyContainer'&&_0x234e0a['element']['name']==_0x1d6f51['name']?_0x234e0a['quantity']++:_0x3bfd5e['push']({'type':_0x573a3e+'EmptyContainer','element':_0x1d6f51,'quantity':0x1});}else _0x3bfd5e['push']({'type':_0x573a3e+'Container','element':_0x512332});}}}}}['_resolveDescriptionItems'](_0x27757f){const _0x57dd07=this['_locale'],_0x3a303b=[],_0xd74e24=[],_0x510c71=[];for(const _0x4f45ed of _0x27757f)switch(_0x4f45ed['type']){case'text':if(_0x4f45ed['add']=_0x4f45ed['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f45ed['remove']=_0x4f45ed['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f45ed['add']&&''!=_0x4f45ed['remove']){_0x3a303b['push']({'type':'replace','content':o(_0x57dd07,'REPLACE_TEXT',['\x22'+_0x4f45ed['remove']+'\x22','\x22'+_0x4f45ed['add']+'\x22'])});continue;}if(null!=_0x4f45ed['add']['match'](/^ +$/)){_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0',o(_0x57dd07,'ELEMENT_SPACE',_0x4f45ed['add']['length']))});continue;}if(null!=_0x4f45ed['remove']['match'](/^ +$/)){_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0',o(_0x57dd07,'ELEMENT_SPACE',_0x4f45ed['remove']['length']))});continue;}if(''!=_0x4f45ed['add']){_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0','\x22'+_0x4f45ed['add']+'\x22')});continue;}_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0','\x22'+_0x4f45ed['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'addContainer':_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Split:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'removeContainer':_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Merge:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'addFormat':_0xd74e24['push'](_0x4f45ed['key']);continue;case'removeFormat':_0x510c71['push'](_0x4f45ed['key']);continue;default:_0x3a303b['push'](_0x4f45ed);}if(_0xd74e24['length']){const _0x559c75=_0xd74e24['map'](_0x4bf19f=>this['_attributeLabels']['has'](_0x4bf19f)?this['_attributeLabels']['get'](_0x4bf19f):_0x4bf19f)['join'](',\x20');_0x3a303b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x559c75)});}if(_0x510c71['length']){const _0x3a1f4f=_0x510c71['map'](_0x1f86be=>this['_attributeLabels']['has'](_0x1f86be)?this['_attributeLabels']['get'](_0x1f86be):_0x1f86be)['join'](',\x20');_0x3a303b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3a1f4f)});}return _0x3a303b;}['_handleCustomCallbackDescription'](_0x9f33c9){for(const _0x56772a of this['_customCallbacks']){const _0x569bb7=_0x56772a(_0x9f33c9);if(_0x569bb7&&'type'in _0x569bb7)return _0x569bb7;}}['_handleAttributeSuggestionDescription'](_0xa0d25,_0x135da1){const _0xe09d83=_0x135da1['data'],_0x45bbb3=void 0x0===_0xe09d83['newValue']?'removeFormat':'addFormat';_0xa0d25['push']({'type':_0x45bbb3,'key':_0xe09d83['key']});}['_handleRenameSuggestionDescription'](_0x49f32b,_0x465d9b){_0x49f32b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465d9b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x555ed0,_0x3d1aa3,_0x3a5e59){if(this['_addDescriptionItems'](_0x555ed0,_0x3d1aa3),_0x3a5e59&&_0x3a5e59['getFirstRange']()&&!_0x3d1aa3['getFirstRange']()['end']['isEqual'](_0x3a5e59['getFirstRange']()['start'])){const _0x1e16bc=_0x555ed0[_0x555ed0['length']-0x1],_0x42947b='insertion'==_0x3d1aa3['type']?'add':'remove';_0x1e16bc&&'text'==_0x1e16bc['type']&&(_0x1e16bc[_0x42947b]+='\x0a');}}}class U extends _0x579de7{['afterInit'](){const _0x2cd68e=this['editor'],_0x5cf3dd=_0x2cd68e['plugins']['get']('TrackChangesEditing');_0x2cd68e['commands']['get']('showAIAssistant')&&_0x5cf3dd['enableCommand']('showAIAssistant');}}class V extends _0x579de7{['afterInit'](){const _0x3bcca2=this['editor'],_0x14211c=_0x3bcca2['locale'];if(!_0x3bcca2['plugins']['has']('AlignmentEditing'))return;const _0x2a2b61=_0x3bcca2['plugins']['get']('TrackChangesEditing');_0x2a2b61['enableDefaultAttributesIntegration']('alignment'),_0x2a2b61['registerBlockAttribute']('alignment'),_0x2a2b61['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x14211c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3abc0c=this['editor'],_0x52028f=_0x3abc0c['locale'];_0x3abc0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f26ef=>{if('formatBlock'!=_0x5f26ef['type'])return;const {data:_0x2fa891}=_0x5f26ef;if(_0x2fa891&&'alignment'==_0x2fa891['commandName']){const _0x23502b=_0x2fa891['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52028f,'*Format:*\x20%0',function(_0x67cb6e){switch(_0x67cb6e){case'left':return o(_0x52028f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52028f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52028f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52028f,'FORMAT_JUSTIFY_TEXT');}}(_0x23502b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x579de7{['afterInit'](){const _0x42ef5b=this['editor'],_0x187e9d=_0x42ef5b['plugins']['get']('TrackChangesEditing'),_0x1f45fe=_0x42ef5b['locale'];for(const _0xb6d5e2 of Zt){if(!_0x42ef5b['plugins']['has'](_0xb6d5e2))continue;const _0x43bf50=_0xb6d5e2['slice'](0x0,-0x7)['toLowerCase'](),_0x5f03d7='FORMAT_'+_0x43bf50['toUpperCase']();_0x187e9d['enableDefaultAttributesIntegration'](_0x43bf50),_0x187e9d['registerInlineAttribute'](_0x43bf50),_0x187e9d['descriptionFactory']['registerAttributeLabel'](_0x43bf50,o(_0x1f45fe,_0x5f03d7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c9de=this['editor'],_0x903730=_0x44c9de['locale'],_0x35d122=_0x44c9de['plugins']['get']('TrackChangesEditing');function _0x4408f4(_0x10beca,_0x198441){_0x35d122['descriptionFactory']['registerDescriptionCallback'](_0x509023=>{if('formatInline'!=_0x509023['type'])return;const {data:_0x3483c2}=_0x509023;return _0x3483c2&&_0x3483c2['commandName']===_0x10beca?_0x3483c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x903730,'*Format:*\x20%0',_0x198441)}:{'type':'format','content':o(_0x903730,'*Remove\x20format:*\x20%0',_0x198441)}:void 0x0;});}_0x4408f4('bold',o(_0x903730,'FORMAT_BOLD')),_0x4408f4('italic',o(_0x903730,'FORMAT_ITALIC')),_0x4408f4('underline',o(_0x903730,'FORMAT_UNDERLINE')),_0x4408f4('code',o(_0x903730,'FORMAT_CODE')),_0x4408f4('strikethrough',o(_0x903730,'FORMAT_STRIKETHROUGH')),_0x4408f4('subscript',o(_0x903730,'FORMAT_SUBSCRIPT')),_0x4408f4('superscript',o(_0x903730,'FORMAT_SUPERSCRIPT'));}}class F extends _0x579de7{['afterInit'](){const _0x2e3d4e=this['editor'],_0x47522d=_0x2e3d4e['locale'];if(!_0x2e3d4e['plugins']['has']('BlockQuoteEditing'))return;const _0x19013b=_0x2e3d4e['plugins']['get']('TrackChangesEditing'),_0xc83881=this['editor']['commands']['get']('blockQuote');_0x19013b['enableCommand']('blockQuote',(_0x1bdd5c,_0x462a93={})=>{const _0x45e32b=this['editor']['model']['document']['selection'],_0x5efc76=_0x462a93&&void 0x0!==_0x462a93['forceValue']?_0x462a93['forceValue']:!_0xc83881['value'];let _0x2b1a26=[];if(_0x5efc76){const _0x2ca7a4=Array['from'](_0x45e32b['getSelectedBlocks']())['filter'](_0x27a8de=>oo(_0x27a8de)||function(_0x13135f,_0x251a45){const _0x4a8cb8=_0x251a45['checkChild'](_0x13135f['parent'],'blockQuote'),_0x5245d9=_0x251a45['checkChild'](['$root','blockQuote'],_0x13135f);return _0x4a8cb8&&_0x5245d9;}(_0x27a8de,this['editor']['model']['schema']));_0x2b1a26=to(_0x2ca7a4,_0x2e3d4e['model']);}else{const _0x8a0dec=Array['from'](_0x45e32b['getSelectedBlocks']())['filter'](_0x21e2a1=>oo(_0x21e2a1));_0x2b1a26=to(_0x8a0dec,_0x2e3d4e['model']);}_0x2e3d4e['model']['change'](()=>{for(const _0x9f6e6f of _0x2b1a26)_0x19013b['markBlockFormat'](_0x9f6e6f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5efc76}]});});}),_0x19013b['descriptionFactory']['registerDescriptionCallback'](_0x50bcde=>{const {data:_0x13faf0}=_0x50bcde;if(_0x13faf0&&'blockQuote'==_0x13faf0['commandName']){const _0x10662d=o(_0x47522d,'ELEMENT_BLOCK_QUOTE');return _0x13faf0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47522d,'*Set\x20format:*\x20%0',_0x10662d)}:{'type':'format','content':o(_0x47522d,'*Remove\x20format:*\x20%0',_0x10662d)};}});}}function oo(_0x3a6ca7){return'blockQuote'==_0x3a6ca7['parent']['name'];}class L extends _0x579de7{['afterInit'](){const _0x4a3814=this['editor'],_0x29ef2c=_0x4a3814['locale'],_0x57ee97=_0x4a3814['plugins']['get']('TrackChangesEditing');_0x4a3814['plugins']['has']('BookmarkEditing')&&(_0x57ee97['enableCommand']('insertBookmark'),_0x57ee97['enableDefaultAttributesIntegration']('updateBookmark'),_0x57ee97['registerBlockAttribute']('bookmarkId'),_0x57ee97['descriptionFactory']['registerDescriptionCallback'](_0x4afb7a=>{if('insertion'!=_0x4afb7a['type']&&'deletion'!=_0x4afb7a['type']&&'attribute'!=_0x4afb7a['type'])return;const _0x344afc=_0x4afb7a['getContainedElement']();if(null==_0x344afc)return;if(!_0x344afc['is']('element','bookmark'))return;const _0x1ce6a5=_0x344afc['getAttribute']('bookmarkId');if('insertion'==_0x4afb7a['type'])return{'type':'insertion','content':o(_0x29ef2c,'*Insert:*\x20%0','\x22'+_0x1ce6a5+'\x22\x20'+o(_0x29ef2c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4afb7a['type'])return{'type':'deletion','content':o(_0x29ef2c,'*Remove:*\x20%0','\x22'+_0x1ce6a5+'\x22\x20'+o(_0x29ef2c,'ELEMENT_BOOKMARK'))};const {data:_0x26f706}=_0x4afb7a;if(!_0x26f706||'bookmarkId'!=_0x26f706['key'])return;return{'type':'format','content':o(_0x29ef2c,'*Set\x20bookmark:*\x20%0','\x22'+_0x26f706['newValue']+'\x22')};}));}}class J extends _0x579de7{['afterInit'](){const _0x5d49e9=this['editor'];_0x5d49e9['plugins']['has']('CaseChange')&&(_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x579de7{['afterInit'](){const _0x47c39b=this['editor'];_0x47c39b['commands']['get']('ckbox')&&_0x47c39b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x579de7{['afterInit'](){const _0x3004cb=this['editor'];if(!_0x3004cb['plugins']['has']('CodeBlock'))return;const _0x3f8988=_0x3004cb['plugins']['get']('TrackChangesEditing'),_0x4d39c4=_0x3004cb['locale'],_0x3816ce=_0x3004cb['config']['get']('codeBlock')['languages'],_0x5b16d2=_0x3004cb['commands']['get']('codeBlock');_0x3f8988['enableCommand']('indentCodeBlock'),_0x3f8988['enableCommand']('outdentCodeBlock'),_0x3f8988['enableCommand']('codeBlock',(_0x1976a0,_0x1986d7={})=>{const _0x527cca=_0x3004cb['model'],_0x224be6=_0x3004cb['model']['document']['selection'],_0xeb176b=_0x1986d7&&void 0x0!==_0x1986d7['forceValue']?_0x1986d7['forceValue']:!_0x5b16d2['value'];let _0x2a66e1;_0x1986d7['language']||(_0x1986d7['language']=_0x3816ce[0x0]['language']),_0x2a66e1=_0xeb176b?Array['from'](_0x224be6['getSelectedBlocks']())['filter'](_0x2bb76d=>eo(_0x2bb76d)||function(_0x235cb6,_0xb0f900){if(_0x235cb6['is']('rootElement')||_0xb0f900['isLimit'](_0x235cb6))return!0x1;return _0xb0f900['checkChild'](_0x235cb6['parent'],'codeBlock');}(_0x2bb76d,_0x527cca['schema'])):Array['from'](_0x224be6['getSelectedBlocks']())['filter'](_0x382011=>eo(_0x382011));const _0x226bfb=to(_0x2a66e1,_0x527cca);_0x527cca['change'](()=>{for(const _0x472764 of _0x226bfb)_0x3f8988['markBlockFormat'](_0x472764,{'commandName':'codeBlock','commandParams':[{..._0x1986d7,'forceValue':_0xeb176b}],'formatGroupId':'blockName'});});}),(_0x3f8988['descriptionFactory']['registerElementLabel']('codeBlock',_0x224db9=>o(_0x4d39c4,'ELEMENT_CODE_BLOCK',_0x224db9)),_0x3f8988['descriptionFactory']['registerDescriptionCallback'](_0x4d2b42=>{if('formatBlock'!=_0x4d2b42['type'])return;const _0x252268=_0x4d39c4['t'],{data:_0x62e45c}=_0x4d2b42;if(!_0x62e45c||'codeBlock'!=_0x62e45c['commandName'])return;const _0x281d3e=_0x62e45c['commandParams'][0x0]['language'],_0x37b749=_0x252268(_0x3816ce['find'](_0x5de346=>_0x5de346['language']===_0x281d3e)['label'])['toLowerCase']();return _0x62e45c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d39c4,'*Set\x20format:*\x20%0',o(_0x4d39c4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37b749+')')}:{'type':'format','content':o(_0x4d39c4,'*Remove\x20format:*\x20%0',o(_0x4d39c4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x58dccd){return'codeBlock'==_0x58dccd['name'];}class z extends _0x579de7{['afterInit'](){const _0x229656=this['editor'];if(!_0x229656['plugins']['has']('CommentsEditing'))return;_0x229656['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5a8cd0,_0x19fc7b,_0x5f1434){const _0x397f4c=[];for(const _0x1c8fc8 of _0x19fc7b['getItems']())_0x1c8fc8['hasAttribute'](_0x5a8cd0)&&_0x397f4c['push'](_0x5f1434['createRangeOn'](_0x1c8fc8));return _0x397f4c;}function Ne(_0x35fb9e,_0x470897,{showActiveMarker:_0x1abe54=!0x0}={}){const _0x2de2d9=_0x35fb9e['plugins']['get']('TrackChangesEditing');return(_0x4816ab,_0x28b33c,_0xb9d4e6)=>{if(!_0xb9d4e6['consumable']['test'](_0x28b33c['markerRange'],_0x4816ab['name']))return;const _0xdfc31a=_0x28b33c['markerRange']['getWalker'](),_0x1b2eed=_0x28b33c['markerRange']['start'],_0x468d50=_0x35fb9e['model']['schema'];let _0x26ac90=null,_0x3db11e=null,_0x5846fa=!0x1,_0x2f6d6a=!0x1;for(const _0x5dd96f of _0xdfc31a){const _0x9bbe10=_0x5dd96f['item'];_0x5846fa=_0x5846fa||_0x468d50['isContent'](_0x9bbe10);const _0x24a087=_0xb9d4e6['mapper']['toViewElement'](_0x9bbe10);if(_0x24a087&&_0x24a087['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dd96f['type']&&(_0x468d50['isBlock'](_0x9bbe10)&&!_0x468d50['isLimit'](_0x9bbe10)&&(_0x9bbe10['nextSibling']||_0x1b2eed['isAtEnd']?_0x26ac90&&_0x26ac90['parent']==_0x9bbe10||(_0x26ac90=_0x9bbe10,_0x175bc0(_0x5dd96f['previousPosition']),_0x2f6d6a=!0x0):_0x3db11e=_0x3db11e||_0x5dd96f['previousPosition']));}function _0x175bc0(_0x76bde0){const {authorId:_0x37cff0}=_0x2de2d9['_splitMarkerName'](_0x28b33c['markerName']),_0x4e07ba=_0xb9d4e6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x470897,'data-author-id':_0x37cff0}),_0x269a93=_0xb9d4e6['mapper']['toViewPosition'](_0x76bde0);_0x1abe54&&_0x2de2d9['activeMarkers']['includes'](_0x28b33c['markerName'])&&_0xb9d4e6['writer']['addClass']('ck-suggestion-marker--active',_0x4e07ba),_0xb9d4e6['writer']['insert'](_0x269a93,_0x4e07ba),_0xb9d4e6['mapper']['bindElementToMarker'](_0x4e07ba,_0x28b33c['markerName']);}_0x5846fa||_0x2f6d6a||!_0x3db11e||_0x175bc0(_0x3db11e);};}class K extends _0x579de7{static get['requires'](){return[_0x4862bc];}['init'](){const _0x4d1a21=this['editor'],_0x11105b=_0x4d1a21['plugins']['get']('TrackChangesEditing');_0x11105b['enableCommand']('delete');const _0x1a9edc=_0x4d1a21['commands']['get']('deleteForward');_0x11105b['enableCommand']('deleteForward',(_0x45c24a,_0x18d943={})=>{const _0x1195ae=_0x4d1a21['model']['createSelection'](_0x4d1a21['model']['document']['selection']);_0x1195ae['isCollapsed']&&_0x4d1a21['model']['modifySelection'](_0x1195ae,{'direction':'forward','unit':_0x18d943['unit']});const _0x1df52a=_0x1195ae['getFirstRange'](),_0x18414b=_0x5e91cd['fromRange'](_0x1df52a);let _0x5026ef;_0x45c24a(_0x18d943),_0x5026ef='$graveyard'==_0x18414b['root']['rootName']?_0x4d1a21['model']['createRange'](_0x1df52a['start']):_0x4d1a21['model']['createRange'](_0x18414b['start'],_0x18414b['end']),_0x18414b['detach'](),_0x4d1a21['model']['enqueueChange'](_0x1a9edc['buffer']['batch'],_0x381ef8=>{_0x1a9edc['buffer']['lock'](),_0x381ef8['setSelection'](_0x381ef8['createRange'](_0x5026ef['end'])),_0x1a9edc['buffer']['unlock']();});}),_0x4d1a21['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x4d1a21,'merge'),{'priority':'high'}),_0x4d1a21['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x445af1,_0x24b1dc,_0x1a6c50)=>{_0x1a6c50['options']['showSuggestionHighlights']&&Ne(_0x4d1a21,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x445af1,_0x24b1dc,_0x1a6c50);},{'priority':'high'}),_0x4d1a21['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x20262d,_0x4b14e9,_0x205b50)=>{const _0x4fd84f=_0x205b50['mapper']['markerNameToElements'](_0x4b14e9['markerName']);if(_0x4fd84f){for(const _0x53db1a of _0x4fd84f)_0x53db1a['is']('uiElement')&&(_0x205b50['mapper']['unbindElementFromMarkerName'](_0x53db1a,_0x4b14e9['markerName']),_0x205b50['writer']['remove'](_0x53db1a));}},{'priority':'high'});}}class W extends _0x579de7{['afterInit'](){const _0x1bd2c7=this['editor'];if(!_0x1bd2c7['plugins']['has']('ListEditing'))return;const _0x33c53b=_0x1bd2c7['locale'],_0x3daed7=_0x1bd2c7['plugins']['get']('TrackChangesEditing'),_0xaf266f=_0x1bd2c7['plugins']['has']('TodoListEditing'),_0x1a7592=!!_0x1bd2c7['config']['get']('list.multiBlock');function _0x5d0258(_0x4a7e67){return{'type':'format','content':''+o(_0x33c53b,'*Set\x20format:*\x20%0',_0x4a7e67)};}function _0x435383(_0x10fc55){return{'type':'format','content':''+o(_0x33c53b,'*Remove\x20format:*\x20%0',_0x10fc55)};}_0x3daed7['enableDefaultAttributesIntegration']('numberedList'),_0x3daed7['enableDefaultAttributesIntegration']('bulletedList'),_0x3daed7['enableDefaultAttributesIntegration']('customNumberedList'),_0x3daed7['enableDefaultAttributesIntegration']('customBulletedList'),_0x3daed7['enableDefaultAttributesIntegration']('indentList'),_0x3daed7['enableDefaultAttributesIntegration']('outdentList'),_0x3daed7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3daed7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3daed7['registerBlockAttribute']('listItemId'),_0x3daed7['registerBlockAttribute']('listType'),_0x3daed7['registerBlockAttribute']('listIndent'),_0x1a7592&&(_0x3daed7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3daed7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xaf266f&&(_0x3daed7['enableDefaultAttributesIntegration']('todoList'),_0x3daed7['enableDefaultAttributesIntegration']('checkTodoList'),_0x3daed7['registerBlockAttribute']('todoListChecked'),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0xa2dc21=>{const {data:_0x36cbc6}=_0xa2dc21;if(_0x36cbc6&&'todoListChecked'==_0x36cbc6['key'])return{'type':'format','content':_0x36cbc6['newValue']?o(_0x33c53b,'*Check\x20item*'):o(_0x33c53b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ff359=>{if(_0x2ff359['batch']['isUndo'])return!0x1;let _0x1da922=!0x1;const _0x52a90b=_0x3daed7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e47df=>'todoListChecked'===_0x3daed7['_getAttributeKey'](_0x4e47df));for(const _0x407aa5 of _0x52a90b){'todo'!=_0x407aa5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3daed7['_findSuggestions'](_0x407aa5['getFirstRange'](),'attribute')['find'](_0x36b7cb=>'listType'===_0x3daed7['_getAttributeKey'](_0x36b7cb['suggestion']))||(_0x2ff359['removeMarker'](_0x407aa5['getFirstMarker']()),_0x1da922=!0x0));}return _0x1da922;})),_0x3daed7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x33c53b,'FORMAT_INDENT'));const _0x449c12={'type':'format','content':''};_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x5bee1d=>{const {data:_0x498ea1}=_0x5bee1d;if(!_0x498ea1||'listType'!=_0x498ea1['key'])return;let _0x13b265=_0x5bee1d['head'];for(;_0x13b265;){if(_0x13b265['data']&&(('listStyle'==_0x13b265['data']['key']||'listMarkerStyle'==_0x13b265['data']['key'])&&(_0x13b265['data']['newValue']&&'default'!=_0x13b265['data']['newValue']||'default'!=_0x13b265['data']['oldValue']&&!_0x498ea1['newValue'])||!_0x1a7592&&_0x13b265['data']['key']==m))return _0x449c12;_0x13b265=_0x13b265['next'];}if(null==_0x498ea1['newValue'])switch(_0x498ea1['oldValue']){case'bulleted':return _0x435383(o(_0x33c53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x435383(o(_0x33c53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x435383(o(_0x33c53b,'ELEMENT_TODO_LIST'));}switch(_0x498ea1['newValue']){case'bulleted':return _0x5d0258(o(_0x33c53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d0258(o(_0x33c53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d0258(o(_0x33c53b,'ELEMENT_TODO_LIST'));}}),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x311532=>{const {data:_0x2ecac0}=_0x311532;if(_0x2ecac0&&'listIndent'==_0x2ecac0['key'])return null==_0x2ecac0['newValue']||null==_0x2ecac0['oldValue']&&0x0==_0x2ecac0['newValue']?_0x449c12:void 0x0;}),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x55f55f=>{if('attribute'!=_0x55f55f['type'])return;const {data:_0x28ede8}=_0x55f55f;if(!_0x28ede8||'listItemId'!=_0x28ede8['key'])return;const _0x598d54=Te(_0x55f55f);return'newValue'==_0x598d54?{'type':'format','content':o(_0x33c53b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x598d54?{'type':'format','content':o(_0x33c53b,'*Split:*\x20list\x20item')}:_0x449c12;}),_0x1bd2c7['model']['document']['registerPostFixer'](_0x495dc8=>this['listItemIdFixer'](_0x495dc8)),_0x1bd2c7['model']['document']['registerPostFixer'](_0x34ec1d=>this['noTrackChangesFixer'](_0x34ec1d)),_0x1bd2c7['model']['document']['on']('change:data',(_0x2fa89d,_0x2c25e8)=>{if(_0x2c25e8['isUndo']||!_0x2c25e8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2ddf16){if(_0x2ddf16['batch']['isUndo']||!_0x2ddf16['batch']['isLocal'])return!0x1;let _0x3c2be0=!0x1;const _0x110014=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x566ad5=>_0x566ad5['data']&&'listItemId'==_0x566ad5['data']['key'])['filter'](_0xd42f21=>_0xd42f21['data']['newValue']&&_0xd42f21['data']['oldValue']);for(const _0x46c704 of _0x110014)Te(_0x46c704)||(_0x2ddf16['removeMarker'](_0x46c704['getFirstMarker']()),_0x3c2be0=!0x0);return _0x3c2be0;}['noTrackChangesFixer'](_0x575c1f){if(_0x575c1f['batch']['isUndo']||!_0x575c1f['batch']['isLocal'])return!0x1;const _0x25da56=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x25da56['trackChangesCommand']['value'])return!0x1;let _0x4dd85c=!0x1;const _0x454934=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x58985d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x515b4f=>'attribute'==_0x515b4f['type'])['filter'](_0x35acf8=>_0x454934['includes'](_0x35acf8['attributeKey']));if(0x0==_0x58985d['length'])return _0x4dd85c;for(const _0x48cc37 of _0x58985d){const _0x1dd54a=_0x25da56['_findSuggestions'](_0x48cc37['range'],'attribute')['filter'](_0x337de9=>!_0x337de9['meta']['isNextTo'])['map'](_0x49211d=>_0x49211d['suggestion'])['filter'](_0x157d70=>{const _0x463f29=_0x25da56['_getAttributeKey'](_0x157d70);return _0x454934['includes'](_0x463f29);});if(_0x1dd54a['length']){for(const _0x2bddb6 of _0x1dd54a)_0x575c1f['removeMarker'](_0x2bddb6['getFirstMarker']());_0x4dd85c=!0x0;}}return _0x4dd85c;}['assureChains'](){const _0x181fb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13aa60=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4fbd13;const _0x2a4ad8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x117cf9=>{if(_0x117cf9['data']['oldRange']||!_0x117cf9['data']['newRange'])return null;if(!_0x117cf9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x591cf8}=_0x181fb1['_splitMarkerName'](_0x117cf9['name']);if(!_0x181fb1['hasSuggestion'](_0x591cf8))return null;const _0x287800=_0x181fb1['getSuggestion'](_0x591cf8);return _0x13aa60['includes'](_0x287800['data']['key']);})['map'](_0x392b89=>{const {id:_0x29e646}=_0x181fb1['_splitMarkerName'](_0x392b89['name']),_0x49cf78=_0x181fb1['getSuggestion'](_0x29e646);return _0x4fbd13=_0x49cf78['attributes']['groupId'],_0x49cf78['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a4ad8['size'])return;const _0x21e700=_0x181fb1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x278c5d=>'attribute'==_0x278c5d['type']&&_0x278c5d['data']&&_0x13aa60['includes'](_0x278c5d['data']['key'])&&_0x278c5d['attributes']['groupId']!=_0x4fbd13)['map'](_0x2d69d0=>({'listItem':_0x2d69d0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2d69d0['attributes']['groupId']})),_0xa89d49=new Set();for(const {groupId:_0xe96c29,listItem:_0x168e62}of _0x21e700)_0x2a4ad8['has'](_0x168e62)&&_0xa89d49['add'](_0xe96c29);for(const _0x1dc22b of _0x181fb1['getSuggestions']())_0xa89d49['has'](_0x1dc22b['attributes']['groupId'])&&_0x1dc22b['setAttribute']('groupId',_0x4fbd13);}['_supportLegacySuggestions'](){const _0x8d0dfa=this['editor'],_0x19e48d=_0x8d0dfa['locale'],_0x1e96ba=_0x8d0dfa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e96ba['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45f7e3,_0xbfd3d1){const _0x2e4362=[];for(let _0x173f98 of _0x45f7e3)_0x173f98['start']['nodeAfter']===_0x173f98['end']['parent']&&(_0x173f98=_0x8d0dfa['model']['createRange'](_0x8d0dfa['model']['createPositionAt'](_0x173f98['start']['nodeAfter'],0x0))),_0x2e4362['push'](_0x173f98);_0x8d0dfa['model']['change'](_0x17a8ef=>{const _0x259b7c=_0x8d0dfa['model']['document']['selection'],_0x141c65=Array['from'](_0x259b7c['getRanges']())['map'](_0x2d4555=>_0x5e91cd['fromRange'](_0x2d4555));_0x17a8ef['setSelection'](_0x2e4362),_0x8d0dfa['commands']['get'](_0xbfd3d1['commandName'])['refresh'](),_0xbfd3d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8d0dfa['execute'](_0xbfd3d1['commandName'],..._0xbfd3d1['commandParams']),_0x17a8ef['setSelection'](_0x141c65);for(const _0x23e071 of _0x141c65)_0x23e071['detach']();});}),_0x1e96ba['descriptionFactory']['registerElementLabel'](function(_0x365dc2){const _0x2e9e10=!_0x8d0dfa['model']['schema']['isObject'](_0x365dc2),_0x8478de=_0x365dc2['previousSibling'],_0x196afb=_0x365dc2['nextSibling'],_0x3fddaa=_0x365dc2['getAttribute']('listItemId'),_0xa91497=!_0x8478de||_0x8478de['getAttribute']('listItemId')!==_0x3fddaa,_0x3e5fc2=!_0x196afb||_0x196afb['getAttribute']('listItemId')!==_0x3fddaa;return _0x2e9e10&&Boolean(_0x3fddaa)&&_0xa91497&&_0x3e5fc2;},_0x173b5c=>o(_0x19e48d,'ELEMENT_LIST_ITEM',_0x173b5c));}['_registerLegacyDescription'](){const _0x3115de=this['editor'],_0x1a0413=_0x3115de['locale'];function _0x5a8d72(_0x244a6a){const _0x54b399=_0x3115de['commands']['get']('bulletedList')['value'],_0x457957=_0x3115de['commands']['get']('numberedList')['value'];return'numberedList'===_0x244a6a?_0x54b399:_0x457957;}_0x3115de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2552a5){if('formatBlock'!=_0x2552a5['type'])return;const {data:_0x159e23}=_0x2552a5;if(!_0x159e23)return;let _0x150dd1,_0x34a259,_0x18ee3c,_0x3c69d3;switch(_0x159e23['commandName']){case'bulletedList':_0x18ee3c=_0x159e23['commandParams'][0x0]['forceValue'],_0x3c69d3=_0x5a8d72(_0x159e23['commandName']),_0x150dd1=_0x18ee3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c69d3&&_0x3115de['config']['get']('list.multiBlock')||(_0x150dd1='*Change\x20to:*\x20%0'),_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18ee3c=_0x159e23['commandParams'][0x0]['forceValue'],_0x3c69d3=_0x5a8d72(_0x159e23['commandName']),_0x150dd1=_0x18ee3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c69d3&&_0x3115de['config']['get']('list.multiBlock')||(_0x150dd1='*Change\x20to:*\x20%0'),_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x150dd1='*Indent:*\x20%0',_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x150dd1=function(_0x14a313){const _0x3edcb7=_0x14a313['getFirstRange']();let _0x385ef5=_0x3edcb7['start']['nodeAfter'];for(;_0x385ef5&&_0x3edcb7['containsItem'](_0x385ef5);){if(_0x385ef5['getAttribute']('listIndent')>0x0)return!0x1;_0x385ef5=_0x385ef5['nextSibling'];}return!0x0;}(_0x2552a5)?o(_0x1a0413,'*Format:*\x20remove\x20from\x20%0',o(_0x1a0413,function(_0xac488e){return'ELEMENT_'+_0xac488e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2552a5))):o(_0x1a0413,'*Outdent:*\x20%0',o(_0x1a0413,'ELEMENT_LIST_ITEM')),_0x34a259={'type':'format','content':_0x150dd1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x159e23['multipleBlocks']&&(_0x150dd1='*Merge:*\x20%0',_0x34a259={'type':'deletion','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_LIST_ITEM'))});}return _0x34a259;});}}function Te(_0x5211f4){let _0x33ad89=_0x5211f4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33ad89;){const _0x258164=_0x33ad89['getAttribute']('listItemId');if(!_0x258164)return!0x1;if(_0x258164==_0x5211f4['data']['newValue'])return'newValue';if(_0x258164==_0x5211f4['data']['oldValue'])return'oldValue';_0x33ad89=_0x33ad89['previousSibling'];}return!0x1;}class ye extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3148c5=this['editor']['config']['get']('list.properties'),_0x1ce606=this['editor']['plugins']['get']('TrackChangesEditing');_0x3148c5['styles']&&(_0x1ce606['enableDefaultAttributesIntegration']('listStyle'),_0x1ce606['registerBlockAttribute']('listStyle')),_0x3148c5['reversed']&&(_0x1ce606['enableDefaultAttributesIntegration']('listReversed'),_0x1ce606['registerBlockAttribute']('listReversed')),_0x3148c5['startIndex']&&(_0x1ce606['enableDefaultAttributesIntegration']('listStart'),_0x1ce606['registerBlockAttribute']('listStart'));const _0x2ada55={'type':'format','content':''};_0x1ce606['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b7fc9=this['editor']['locale'];_0x1ce606['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b7fc9,'FORMAT_LIST_REVERSED')),_0x1ce606['descriptionFactory']['registerDescriptionCallback'](_0x54ad5e=>{const {data:_0x338e2b}=_0x54ad5e;if(_0x338e2b&&'listReversed'==_0x338e2b['key'])return null==_0x338e2b['newValue']||0x0==_0x338e2b['newValue']&&null==_0x338e2b['oldValue']?_0x2ada55:void 0x0;}),_0x1ce606['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b7fc9,'FORMAT_LIST_START')),_0x1ce606['descriptionFactory']['registerDescriptionCallback'](_0x2ffefe=>{const {data:_0x44071b}=_0x2ffefe;if(_0x44071b&&'listStart'==_0x44071b['key'])return null==_0x44071b['newValue']||0x1==_0x44071b['newValue']&&null==_0x44071b['oldValue']?_0x2ada55:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x332206=>{if(_0x332206['batch']['isUndo'])return!0x1;let _0x2fe870=!0x1;const _0x303236=_0x1ce606['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c4502=>{const _0x1b5c16=_0x1ce606['_getAttributeKey'](_0x3c4502);return'listStart'==_0x1b5c16||'listReversed'==_0x1b5c16;});for(const _0x384ff9 of _0x303236){const _0x12f7c8=_0x384ff9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x12f7c8||'customNumbered'==_0x12f7c8)continue;_0x1ce606['_findSuggestions'](_0x384ff9['getFirstRange'](),'attribute')['find'](_0x57edbf=>'listType'==_0x1ce606['_getAttributeKey'](_0x57edbf['suggestion']))||(_0x332206['removeMarker'](_0x384ff9['getFirstMarker']()),_0x2fe870=!0x0);}return _0x2fe870;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b4b95){const _0x1f07d8=this['editor']['locale'],{data:_0x25089d}=_0x5b4b95,_0x2cb4ab={'type':'format','content':''};if(!_0x25089d||'listStyle'!=_0x25089d['key'])return;if(!_0x25089d['oldValue'])return'default'==_0x25089d['newValue']?_0x2cb4ab:{'type':'format','content':''+o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['newValue'])))};if(!_0x25089d['newValue']){if('default'==_0x25089d['oldValue'])return _0x2cb4ab;let _0x163a3c=_0x5b4b95['head'];for(;_0x163a3c;){if(_0x163a3c['data']&&'listType'==_0x163a3c['data']['key']&&_0x163a3c['data']['newValue'])return _0x2cb4ab;_0x163a3c=_0x163a3c['next'];}return{'type':'format','content':''+o(_0x1f07d8,'*Remove\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['oldValue'])))};}if('default'!=_0x25089d['newValue'])return{'type':'format','content':''+o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['newValue'])))};let _0x501eff=_0x5b4b95['head'];for(;_0x501eff;){if(_0x501eff['data']&&'listType'==_0x501eff['data']['key']&&_0x501eff['data']['newValue']&&_0x501eff['data']['oldValue'])return _0x2cb4ab;_0x501eff=_0x501eff['next'];}return{'type':'format','content':o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,'ELEMENT_'+_0x5b4b95['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x239a18=this['editor'],_0x1ede25=_0x239a18['locale'];_0x239a18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e2095=>{if('formatBlock'!=_0x7e2095['type'])return;const {data:_0x35e6a5}=_0x7e2095;if(!_0x35e6a5)return;let _0x152961,_0x24713c;switch(_0x35e6a5['commandName']){case'listStyle':_0x152961='*Change\x20to:*\x20%0',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961,o(_0x1ede25,this['_getTranslationKeyForListStyle'](_0x35e6a5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x152961=_0x35e6a5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961)};break;case'listStart':_0x152961='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961,_0x35e6a5['commandParams'][0x0]['startIndex'])};}return _0x24713c;});}['_getTranslationKeyForListStyle'](_0x340a96){return'ELEMENT_'+function(_0x29b636){if(Se['includes'](_0x29b636))return'bulleted';if(_e['includes'](_0x29b636))return'numbered';return null;}(_0x340a96)['toUpperCase']()+'_LIST_'+_0x340a96['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x579de7{static get['requires'](){return[_0x19ffea];}['init'](){const _0x2d3b61=this['editor'],_0x42e11e=_0x2d3b61['plugins']['get']('TrackChangesEditing'),_0x9dcf9a=_0x2d3b61['commands']['get']('enter');_0x42e11e['enableCommand']('enter',()=>{_0x2d3b61['model']['change'](_0x473e51=>{const _0x1886ce=_0x2d3b61['model']['document']['selection'],_0x3dbc85=_0x1886ce['getFirstPosition'](),_0x251bc4=_0x5e91cd['fromRange'](_0x1886ce['getFirstRange']());if(_0x9dcf9a['enterBlock'](_0x473e51)){const _0x564c4b=_0x2d3b61['model']['createPositionAt'](_0x3dbc85['parent']['nextSibling'],0x0),_0x25a893=_0x473e51['createRange'](_0x3dbc85,_0x564c4b);_0x42e11e['markInsertion'](_0x25a893);}else _0x473e51['setSelection'](_0x473e51['createRange'](_0x251bc4['end']));_0x251bc4['detach'](),_0x9dcf9a['fire']('afterExecute',{'writer':_0x473e51});});}),_0x2d3b61['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x2d3b61,'split'),{'priority':'high'}),_0x2d3b61['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b8a11,_0x232e09,_0x39b06d)=>{const _0x365870=_0x39b06d['mapper']['markerNameToElements'](_0x232e09['markerName']);if(_0x365870){for(const _0x3a8fc5 of _0x365870)_0x3a8fc5['hasClass']('ck-suggestion-marker-split')&&(_0x39b06d['mapper']['unbindElementFromMarkerName'](_0x3a8fc5,_0x232e09['markerName']),_0x39b06d['writer']['remove'](_0x3a8fc5));}},{'priority':'high'}),_0x2d3b61['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e20c8,_0x1c7768,_0x44e8e0)=>{_0x44e8e0['options']['showSuggestionHighlights']&&Ne(_0x2d3b61,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e20c8,_0x1c7768,_0x44e8e0);},{'priority':'high'});}}class Y extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x229717=this['editor']['plugins']['get']('TrackChangesEditing');_0x229717['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x229717['enableCommand']('findNext'),_0x229717['enableCommand']('findPrevious'),_0x229717['enableCommand']('replace'),_0x229717['enableCommand']('replaceAll');}['handleFindCommand'](_0x424299,_0x8acb70,_0x5da707={}){const _0x4f8207=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x424299(_0x337b1a=>{let _0x459488=('string'==typeof _0x8acb70?_0x4f8207['findByTextCallback'](_0x8acb70,_0x5da707):_0x8acb70)(_0x337b1a);Array['isArray'](_0x459488)&&(_0x459488={'results':_0x459488,'searchText':'string'==typeof _0x8acb70?_0x8acb70:''});const _0x45bbff=_0x459488['results']['filter'](_0x3acfa8=>!0x1===this['_isInDeletionRange'](_0x3acfa8,_0x337b1a['item']));return{..._0x459488,'results':_0x45bbff};},_0x5da707);}['_isInDeletionRange'](_0x41eef6,_0x38328c){const _0x2acd0f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38328c,_0x41eef6['start']),this['editor']['model']['createPositionAt'](_0x38328c,_0x41eef6['end']));for(const _0x11bbe7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2acd0f['getIntersection'](_0x11bbe7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x579de7{['afterInit'](){const _0x11fa92=this['editor']['locale'],_0x4a7a85=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ca2fa,commandName:_0x1e6121}of ro)this['editor']['plugins']['has'](_0x2ca2fa)&&(_0x4a7a85['enableDefaultAttributesIntegration'](_0x1e6121),_0x4a7a85['registerInlineAttribute'](_0x1e6121));_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11fa92,'FORMAT_FONT_SIZE')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11fa92,'FORMAT_FONT_FAMILY')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11fa92,'FORMAT_FONT_COLOR')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11fa92,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a49b2=this['editor'],_0x4d4e48=_0x4a49b2['locale'];_0x4a49b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329c96=>{const _0x528b9e=_0x4d4e48['t'];if('formatInline'!=_0x329c96['type'])return;const {data:_0x385ef2}=_0x329c96;if(null!=_0x385ef2){if('fontSize'==_0x385ef2['commandName']){const _0xb738f9=_0x385ef2['commandParams'][0x0]['value'];if(_0xb738f9){const _0x1986e0=_0x528b9e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4732e0=>_0x4732e0['model']==_0xb738f9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20size:*\x20%0',_0x1986e0)};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x385ef2['commandName']){const _0x352b69=_0x385ef2['commandParams'][0x0]['value'];return _0x352b69?{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20family:*\x20%0',_0x352b69)}:{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x385ef2['commandName']){const _0x547be4=_0x385ef2['commandParams'][0x0]['value'];if(_0x547be4){const _0x132a85=_0x19c35e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5dc76e=>_0x5dc76e['model']==_0x547be4);let _0x30d899=_0x547be4,_0x1af5a5='';return _0x132a85&&(_0x30d899=_0x132a85['label'],_0x1af5a5=_0x528b9e(_0x30d899)['toLowerCase']()),{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20color:*\x20%0',_0x1af5a5)['trim'](),'color':{'value':_0x547be4,'title':_0x1af5a5||_0x30d899}};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x385ef2['commandName']){const _0x4b102b=_0x385ef2['commandParams'][0x0]['value'];if(_0x4b102b){const _0x552b23=_0x19c35e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa0ba13=>_0xa0ba13['model']==_0x4b102b);let _0x547e1b=_0x4b102b,_0x4283cb='';return _0x552b23&&(_0x547e1b=_0x552b23['label'],_0x4283cb=_0x528b9e(_0x547e1b)['toLowerCase']()),{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20background\x20color:*\x20%0',_0x4283cb)['trim'](),'color':{'value':_0x4b102b,'title':_0x4283cb||_0x547e1b}};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x579de7{['afterInit'](){const _0x57ffe7=this['editor'],_0x27fa79=_0x57ffe7['plugins']['get']('TrackChangesEditing'),_0x4411ad=_0x57ffe7['commands']['get']('copyFormat'),_0x1668fc=_0x57ffe7['commands']['get']('pasteFormat');_0x4411ad&&_0x1668fc&&(_0x27fa79['enableDefaultAttributesIntegration']('pasteFormat'),_0x27fa79['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3d9953=this['editor'],_0x280be2=_0x3d9953['locale'];_0x3d9953['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31523a=>{if('formatBlock'!=_0x31523a['type']&&'formatInline'!=_0x31523a['type'])return;const {data:_0x2cb1ee}=_0x31523a;if(_0x2cb1ee&&'pasteFormat'===_0x2cb1ee['commandName']){const _0x5ea53d=[],_0x12ceb8=_0x2cb1ee['commandParams'][0x0];for(const [_0x263ff0,_0x9a6a38]of Object['entries'](_0x12ceb8))_0x5ea53d['push'](so(_0x3d9953,_0x263ff0,_0x9a6a38));return _0x5ea53d['length']?{'type':'format','content':o(_0x280be2,'*Set\x20format\x20to:*\x20%0',_0x5ea53d['join'](',\x20'))}:{'type':'format','content':o(_0x280be2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x31c6ae,_0x462388,_0x1f523f){const _0x3fe8d1=_0x31c6ae['locale']['t'],_0x27f141=_0x462388['split'](/(?=[A-Z])/)['join']('\x20'),_0x429810=_0x3fe8d1(_0x27f141['charAt'](0x0)['toUpperCase']()+_0x27f141['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1f523f)return _0x429810;if('fontColor'===_0x462388||'fontBackgroundColor'===_0x462388){const _0x254cee=_0x19c35e(_0x31c6ae['config']['get']('fontColor.colors'))['find'](_0x3635fb=>_0x3635fb['model']==_0x1f523f);return _0x429810+'\x20('+(_0x254cee?_0x3fe8d1(_0x254cee['label'])['toLowerCase']():_0x1f523f)+')';}if('fontSize'===_0x462388&&isNaN(parseFloat(_0x1f523f))){const _0x360f00=_0x31c6ae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x31c6ae['config']['get']('fontSize.options'))['find'](_0x5ed066=>_0x5ed066['model']==_0x1f523f);return _0x429810+'\x20('+(_0x360f00?_0x3fe8d1(_0x360f00['title'])['toLowerCase']():_0x1f523f)+')';}return _0x429810+'\x20('+_0x1f523f+')';}class nt extends _0x579de7{['_headingOptions'];['afterInit'](){const _0x5d65d3=this['editor'];if(!_0x5d65d3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d65d3['config']['get']('heading.options');const _0x2e63d=_0x5d65d3['locale'],_0x2f0316=_0x5d65d3['plugins']['get']('TrackChangesEditing');_0x2f0316['enableDefaultAttributesIntegration']('heading');for(const _0x46386e of this['_headingOptions'])'paragraph'!=_0x46386e['model']&&_0x2f0316['descriptionFactory']['registerElementLabel'](_0x46386e['model'],_0x410448=>{const _0x1a38ef=this['_getHeadingLevel'](_0x46386e['model']);return null!==_0x1a38ef?_0x4f0e97(_0x410448,_0x1a38ef):_0x514086(_0x410448,_0x46386e['title']);});function _0x4f0e97(_0x47ea47,_0x235224){return o(_0x2e63d,'ELEMENT_HEADING',[_0x47ea47,_0x235224]);}function _0x514086(_0x2e44b6,_0x204a99){return o(_0x2e63d,'ELEMENT_HEADING_CUSTOM',[_0x2e44b6,_0x204a99]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2734=this['editor'],_0x41f600=_0x3f2734['locale'];function _0x50df12(_0x399af6,_0x2ae914){return o(_0x41f600,'ELEMENT_HEADING_CUSTOM',[_0x399af6,_0x2ae914]);}_0x3f2734['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4abc6b=>{if('formatBlock'!=_0x4abc6b['type'])return;const {data:_0x29780f}=_0x4abc6b;if(_0x29780f&&'heading'==_0x29780f['commandName']){const _0x416293=_0x29780f['commandParams'][0x0]['value'],_0x2022ad=this['_getHeadingLevel'](_0x416293);if(null!==_0x2022ad)return{'type':'format','content':o(_0x41f600,'*Change\x20to:*\x20%0',(_0x3b15cd=0x1,_0x30ae11=_0x2022ad,o(_0x41f600,'ELEMENT_HEADING',[_0x3b15cd,_0x30ae11])))};const _0x2600e4=this['_headingOptions']['find'](_0x10ee86=>_0x10ee86['model']===_0x416293)['title'];return{'type':'format','content':o(_0x41f600,'*Change\x20to:*\x20%0',_0x50df12(0x1,_0x2600e4))};}var _0x3b15cd,_0x30ae11;});}['_getHeadingLevel'](_0x316cb5){const _0x877eda=_0x316cb5['match'](/^heading(\d+)/);if(_0x877eda)return _0x877eda[0x1];const _0x10f41f=this['_headingOptions']?.['find'](_0x426a47=>_0x426a47['model']==_0x316cb5);if(_0x10f41f&&_0x10f41f['view']){const _0x8270a5=_0x10f41f['view'],_0x526e56=(_0x8270a5['name']??_0x8270a5)['match'](/^h(\d+)/);if(_0x526e56)return _0x526e56[0x1];}return null;}}class it extends _0x579de7{['afterInit'](){const _0x2f0dcc=this['editor'];if(!_0x2f0dcc['plugins']['has']('HighlightEditing'))return;const _0x13a7c4=_0x2f0dcc['plugins']['get']('TrackChangesEditing'),_0x32dd9a=_0x2f0dcc['locale'];_0x13a7c4['enableDefaultAttributesIntegration']('highlight'),_0x13a7c4['registerInlineAttribute']('highlight'),_0x13a7c4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x32dd9a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485e7e=this['editor'],_0x4c459e=_0x485e7e['locale'];_0x485e7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc65612=>{if('formatInline'!=_0xc65612['type'])return;const {data:_0x21823e}=_0xc65612;if(_0x21823e&&'highlight'==_0x21823e['commandName']){const _0x5b9ac9=_0x4c459e['t'],_0x181372=_0x21823e['commandParams'][0x0]['value'];if(_0x181372){const _0x9e41ff=_0x485e7e['config']['get']('highlight.options')['find'](_0x279915=>_0x279915['model']==_0x181372),_0x2a96ff=_0x5b9ac9(_0x9e41ff['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c459e,'*Set\x20highlight:*\x20%0',_0x2a96ff),'color':{'value':_0x9e41ff['color'],'title':_0x9e41ff['title']}};}return{'type':'format','content':o(_0x4c459e,'*Remove\x20highlight*',o(_0x4c459e,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x579de7{['afterInit'](){const _0x2943da=this['editor'];if(!_0x2943da['plugins']['has']('HorizontalLineEditing'))return;_0x2943da['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1ea714=_0x2943da['plugins']['get']('TrackChangesEditing'),_0x41a33f=_0x2943da['locale'];_0x1ea714['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d4302=>o(_0x41a33f,'ELEMENT_HORIZONTAL_LINE',_0x4d4302)),_0x2943da['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f01fe,{writer:_0x262222,options:_0x54c6a7})=>{if(!_0x54c6a7['showSuggestionHighlights'])return null;const _0x2c9c56=_0x262222['createContainerElement']('div'),_0x3452af=_0x262222['createEmptyElement']('hr');return _0x262222['addClass']('ck-horizontal-line',_0x2c9c56),_0x262222['insert'](_0x262222['createPositionAt'](_0x2c9c56,0x0),_0x3452af),_0x2c9c56;},'converterPriority':'high'});}}class st extends _0x579de7{['afterInit'](){const _0x5b705a=this['editor'];if(!_0x5b705a['plugins']['has']('HtmlEmbed'))return;const _0x422a1f=_0x5b705a['plugins']['get']('TrackChangesEditing'),_0x3682a6=_0x5b705a['locale'];_0x422a1f['descriptionFactory']['registerElementLabel']('rawHtml',_0x523681=>o(_0x3682a6,'ELEMENT_HTML_EMBED',_0x523681)),_0x422a1f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x422a1f['registerBlockAttribute']('value'),_0x422a1f['descriptionFactory']['registerDescriptionCallback'](_0x4ef504=>{if('attribute'!=_0x4ef504['type'])return;const {data:_0x5e6fd4}=_0x4ef504;if(_0x5e6fd4&&'value'==_0x5e6fd4['key']&&_0x4ef504['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x9391f4=o(_0x3682a6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3682a6,'*Change\x20%0\x20content*',_0x9391f4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x326bfd=this['editor'],_0x20a465=_0x326bfd['locale'];_0x326bfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d0cda=>{if('formatBlock'!=_0x6d0cda['type'])return;const {data:_0x3c43c5}=_0x6d0cda;if(_0x3c43c5&&'htmlEmbed'==_0x3c43c5['commandName']){const _0xef5d97=o(_0x20a465,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x20a465,'*Change\x20%0\x20content*',_0xef5d97)};}});}}class ot extends _0x579de7{['afterInit'](){const _0x2102be=this['editor'];if(!_0x2102be['plugins']['has']('ImageEditing'))return;const _0x248b20=_0x2102be['plugins']['get']('TrackChangesEditing'),_0x2801aa=_0x2102be['plugins']['get']('ImageUtils'),_0x301877=_0x2102be['locale'];_0x248b20['enableCommand']('insertImage'),_0x248b20['descriptionFactory']['registerElementLabel']('imageBlock',_0x31f36c=>o(_0x301877,'ELEMENT_IMAGE',_0x31f36c)),_0x248b20['descriptionFactory']['registerElementLabel']('imageInline',_0xdf206d=>o(_0x301877,'ELEMENT_INLINE_IMAGE',_0xdf206d)),_0x248b20['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x301877,'ELEMENT_CAPTION')),_0x2102be['plugins']['has']('ImageUploadEditing')&&_0x248b20['enableCommand']('uploadImage'),_0x2102be['plugins']['has']('ImageBlockEditing')&&_0x2102be['plugins']['has']('ImageInlineEditing')&&(_0x248b20['enableCommand']('imageTypeInline',(_0x59d0de,_0x3f8db2)=>{const _0x17deb7=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']);_0x2102be['model']['change'](()=>{_0x248b20['markBlockFormat'](_0x17deb7,{'commandName':'imageTypeInline','commandParams':[_0x3f8db2]},[],'convertBlockImageToInline');});}),_0x248b20['enableCommand']('imageTypeBlock',(_0x17ea9e,_0x56646f)=>{_0x2102be['model']['change'](_0x539881=>{let _0x7f91db=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x4011b4=_0x539881['createRangeOn'](_0x7f91db);const _0x3f40fe=_0x3d6a4a['fromPosition'](_0x4011b4['start'],'toPrevious'),_0x15153f=_0x3d6a4a['fromPosition'](_0x4011b4['end'],'toNext');_0x248b20['forceDefaultExecution'](()=>_0x17ea9e(_0x56646f)),_0x7f91db=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x4011b4=_0x539881['createRangeOn'](_0x7f91db);const _0x4e7f32=_0x539881['createRange'](_0x3f40fe,_0x15153f);_0x3f40fe['detach'](),_0x15153f['detach'](),_0x248b20['markBlockFormat'](_0x7f91db,{'commandName':'imageTypeInline','commandParams':[_0x56646f]},[],'convertInlineImageToBlock'),_0x4e7f32['start']['isBefore'](_0x4011b4['start'])&&_0x248b20['markInsertion'](_0x539881['createRange'](_0x4e7f32['start'],_0x4011b4['start']),'convertInlineImageToBlock'),_0x4011b4['end']['isBefore'](_0x4e7f32['end'])&&_0x248b20['markInsertion'](_0x539881['createRange'](_0x4011b4['end'],_0x4e7f32['end']),'convertInlineImageToBlock');});}),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x248b20['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5242c2])=>{const _0x3ded7b=_0x248b20['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x57eae2=_0x5242c2['start'],_0x31caf2=_0x5242c2['end'];const _0x1c85b1=_0x2102be['model']['schema']['getNearestSelectionRange'](_0x57eae2,'backward'),_0x4a9c9c=_0x2102be['model']['schema']['getNearestSelectionRange'](_0x31caf2,'forward');_0x1c85b1['isCollapsed']&&(_0x57eae2=_0x1c85b1['start']),_0x4a9c9c['isCollapsed']&&(_0x31caf2=_0x4a9c9c['end']),_0x3ded7b([_0x2102be['model']['createRange'](_0x57eae2,_0x31caf2)]);}),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x289a89),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x289a89)),_0x2102be['plugins']['has']('ImageCaptionEditing')&&(_0x248b20['enableCommand']('toggleImageCaption',(_0x4a9a90,_0x14e04e)=>{const _0x4d66a1=_0x2102be['plugins']['get']('ImageCaptionUtils');let _0x3922e2=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x217c82=_0x4d66a1['getCaptionFromImageModelElement'](_0x3922e2);_0x2102be['model']['change'](()=>{if(_0x217c82)return void _0x248b20['markDeletion'](_0x2102be['model']['createRangeOn'](_0x217c82));const _0x4cc84a=_0x2801aa['isBlockImage'](_0x3922e2);_0x4a9a90(_0x14e04e),_0x3922e2=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x217c82=_0x4d66a1['getCaptionFromImageModelElement'](_0x3922e2),_0x248b20['markInsertion'](_0x2102be['model']['createRangeOn'](_0x217c82),_0x4cc84a?null:'imageCaption');});}),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x289a89));const _0x593ee7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3eb4d5(_0x48a97d,_0x5dd9e5){const _0x30a056=_0x593ee7['findIndex'](({type:_0x49af06,subType:_0x183986})=>_0x48a97d['type']==_0x49af06&&_0x48a97d['subType']==_0x183986),_0x5cac49=_0x593ee7['findIndex'](({type:_0x4ccffd,subType:_0x5c2acf})=>_0x5dd9e5['type']==_0x4ccffd&&_0x5dd9e5['subType']==_0x5c2acf);if(_0x30a056<0x0||_0x5cac49<0x0)return!0x1;const _0x470858=_0x48a97d['getFirstRange'](),_0xb1a9ce=_0x5dd9e5['getFirstRange']();if((0x0==_0x30a056||0x1==_0x30a056)&&0x2==_0x5cac49&&_0x470858['isIntersecting'](_0xb1a9ce))return!0x0;if(0x2==_0x30a056&&0x3==_0x5cac49){const _0x1d5dce=_0x248b20['_findSuggestions'](_0x470858,'insertion')['filter'](({suggestion:_0x112fbe,meta:_0x215cc3})=>_0x215cc3['isOwn']&&'convertInlineImageToBlock'==_0x112fbe['subType']);if(_0x1d5dce['length']>0x1&&_0xb1a9ce['end']['isEqual'](_0x470858['start']))return!0x0;if(0x1==_0x1d5dce['length']&&(_0x470858['start']['isEqual'](_0xb1a9ce['end'])||_0x470858['end']['isEqual'](_0xb1a9ce['start'])))return!0x0;}if(0x3==_0x30a056&&0x3==_0x5cac49&&_0x470858['start']['isBefore'](_0xb1a9ce['start'])){const _0x136769=_0x470858['end']['nodeAfter'],_0x2e4b4b=_0xb1a9ce['start']['nodeBefore'];return _0x2801aa['isBlockImage'](_0x136769)&&_0x136769===_0x2e4b4b;}return!0x1;}function _0x289a89(_0x19a5b7,_0x332326){return _0x3eb4d5(_0x19a5b7,_0x332326)?[_0x19a5b7,_0x332326]:_0x3eb4d5(_0x332326,_0x19a5b7)?[_0x332326,_0x19a5b7]:null;}_0x2102be['plugins']['has']('ImageResize')&&(_0x248b20['enableDefaultAttributesIntegration']('resizeImage'),_0x248b20['registerBlockAttribute']('resizedWidth'),_0x248b20['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x301877,'FORMAT_IMAGE_SIZE'))),_0x2102be['plugins']['has']('ImageTextAlternativeEditing')&&(_0x248b20['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x248b20['registerBlockAttribute']('alt')),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0xa96711=>{if(!!_0x593ee7['find'](({type:_0x3a991d,subType:_0x11f9ce})=>_0xa96711['type']==_0x3a991d&&_0xa96711['subType']==_0x11f9ce))return _0xa96711['previous']?{}:void 0x0;}),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x542e47=>{if('insertion'==_0x542e47['type']||'deletion'==_0x542e47['type']){const _0x3e4bc6=_0x542e47['getContainedElement']();if(_0x3e4bc6&&_0x3e4bc6['is']('element','caption'))return{'type':'insertion'==_0x542e47['type']?'addObject':'removeObject','element':_0x3e4bc6,'quantity':0x1};}}),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x450651=>'formatBlock'==_0x450651['type']&&'convertInlineImageToBlock'==_0x450651['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x450651['type']&&'convertBlockImageToInline'==_0x450651['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x4e7809=>{if('attribute'!=_0x4e7809['type'])return;const {data:_0x10c3c3}=_0x4e7809;if(!_0x10c3c3||'alt'!=_0x10c3c3['key'])return;const _0x1134e8=_0x10c3c3['newValue'];return _0x1134e8?{'type':'format','content':o(_0x301877,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1134e8+'\x22')}:{'type':'format','content':o(_0x301877,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf59d=this['editor'],_0x3c12c4=_0x4cf59d['locale'];_0x4cf59d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9171=>{if('formatBlock'!=_0x2a9171['type']&&'formatInline'!=_0x2a9171['type'])return;const {data:_0x372021}=_0x2a9171;if(_0x372021){if('imageTextAlternative'==_0x372021['commandName']){const _0x33f862=_0x372021['commandParams'][0x0]['newValue'];return _0x33f862?{'type':'format','content':o(_0x3c12c4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33f862+'\x22')}:{'type':'format','content':o(_0x3c12c4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x372021['commandName']){const _0x33bdf6=_0x372021['commandParams'][0x0]['width'];return _0x33bdf6?{'type':'format','content':o(_0x3c12c4,'*Set\x20image\x20width:*\x20%0',_0x33bdf6)}:{'type':'format','content':o(_0x3c12c4,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x482312=this['editor']['locale'],_0x4c0091=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c0091['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c0091['registerBlockAttribute']('src'),_0x4c0091['descriptionFactory']['registerDescriptionCallback'](_0x51d7eb=>{if('attribute'!=_0x51d7eb['type'])return;const {data:_0x38e045}=_0x51d7eb;return _0x38e045&&'src'==_0x38e045['key']?_0x38e045['newValue']&&_0x38e045['oldValue']?{'type':'format','content':o(_0x482312,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32fc8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x32fc8b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x32fc8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32fc8b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x32fc8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3195d5=this['editor'],_0xaca96f=_0x3195d5['locale'];_0x3195d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414ce2=>{if('formatBlock'!=_0x414ce2['type']&&'formatInline'!=_0x414ce2['type'])return;const {data:_0x351f18}=_0x414ce2;if(!_0x351f18||'replaceImageSource'!=_0x351f18['commandName'])return;return{'type':'format','content':o(_0xaca96f,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x579de7{['afterInit'](){const _0x519672=this['editor'];if(!_0x519672['plugins']['has']('ImageStyleEditing'))return;const _0x169c8b=_0x519672['plugins']['get']('TrackChangesEditing'),_0x21b507=_0x519672['plugins']['get']('ImageUtils'),_0x36355b={};_0x169c8b['enableCommand']('imageStyle',(_0x2d363b,_0x4a10fc)=>{const _0x4e7493=_0x519672['plugins']['get']('Users')['me'],_0x37e13a=_0x519672['commands']['get']('imageStyle');let _0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),_0x30beff=_0x519672['model']['createRangeOn'](_0x267c08),_0x26a249=_0x37e13a['value'];if(_0x26a249==_0x4a10fc['value'])return;const _0x1e5531={'commandName':'imageStyle','commandParams':[_0x4a10fc],'formatGroupId':_0x303cc5()};_0x519672['model']['change'](()=>{if(_0x169c8b['getSuggestions']()['filter'](_0x1508d1=>_0x1508d1['isInContent']&&_0x4e7493==_0x1508d1['author']&&('formatBlock'==_0x1508d1['type']||'formatInline'==_0x1508d1['type'])&&('imageStylePreApply'==_0x1508d1['subType']||'imageStylePostApply'==_0x1508d1['subType'])&&_0x1508d1['getFirstRange']()['isEqual'](_0x30beff))['forEach'](_0x15fd5d=>_0x169c8b['discardSuggestion'](_0x15fd5d['head'])),_0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),_0x30beff=_0x519672['model']['createRangeOn'](_0x267c08),_0x37e13a['refresh'](),_0x519672['commands']['get']('imageTypeInline')['refresh'](),_0x519672['commands']['get']('imageTypeBlock')['refresh'](),_0x26a249=_0x37e13a['value'],_0x26a249!=_0x4a10fc['value'])return _0x21b507['isInlineImage'](_0x267c08)&&_0x37e13a['shouldConvertImageType'](_0x4a10fc['value'],_0x267c08)?(_0x2d363b({..._0x4a10fc,'setImageSizes':!0x1}),_0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),void _0x169c8b['markBlockFormat'](_0x267c08,{..._0x1e5531,'commandReversedParams':[{'value':_0x26a249||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21b507['isBlockImage'](_0x267c08)?_0x169c8b['markBlockFormat'](_0x267c08,_0x1e5531,[],'imageStylePostApply'):_0x169c8b['markInlineFormat'](_0x30beff,_0x1e5531,'imageStylePostApply'));});});for(const _0x403f76 of _0x519672['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x36355b[_0x403f76['name']]=_0x403f76['title']['toLowerCase']();_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47f4aa])=>{_0x21b507['setImageNaturalSizeAttributes'](_0x47f4aa['getContainedElement']());}),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b56a8,_0x2750f4)=>{_0x169c8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b56a8,{'commandName':_0x2750f4['commandName'],'commandParams':_0x2750f4['commandReversedParams']});}),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d5c8d,_0x328667){if(_0x2e0689(_0x2d5c8d,_0x328667))return[_0x2d5c8d,_0x328667];if(_0x2e0689(_0x328667,_0x2d5c8d))return[_0x328667,_0x2d5c8d];return null;});const _0x424232=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e0689(_0x38522,_0x1784f5){const _0x5b6fd4=_0x424232['findIndex'](({type:_0x5b3d16,subType:_0x353ef3})=>_0x38522['type']==_0x5b3d16&&_0x38522['subType']==_0x353ef3),_0x8828d5=_0x424232['findIndex'](({type:_0x36c766,subType:_0xd66c83})=>_0x1784f5['type']==_0x36c766&&_0x1784f5['subType']==_0xd66c83);if(_0x5b6fd4<0x0||_0x8828d5<0x0)return!0x1;const _0x11e368=_0x38522['getFirstRange'](),_0x2b9c7d=_0x1784f5['getFirstRange']();if((0x0==_0x5b6fd4||0x1==_0x5b6fd4)&&0x2==_0x8828d5&&_0x11e368['isIntersecting'](_0x2b9c7d))return!0x0;if(0x2==_0x5b6fd4&&0x3==_0x8828d5){const _0x163847=_0x169c8b['_findSuggestions'](_0x11e368,'insertion')['filter'](({suggestion:_0x5b9e31,meta:_0x566b97})=>_0x566b97['isOwn']&&'convertInlineImageToBlock'==_0x5b9e31['subType']);if(_0x163847['length']>0x1&&_0x2b9c7d['end']['isEqual'](_0x11e368['start']))return!0x0;if(0x1==_0x163847['length']&&(_0x11e368['start']['isEqual'](_0x2b9c7d['end'])||_0x11e368['end']['isEqual'](_0x2b9c7d['start'])))return!0x0;}if(0x3==_0x5b6fd4&&0x3==_0x8828d5&&_0x11e368['start']['isBefore'](_0x2b9c7d['start'])){const _0xdff2d7=_0x11e368['end']['nodeAfter'],_0x410c28=_0x2b9c7d['start']['nodeBefore'];return _0x21b507['isBlockImage'](_0xdff2d7)&&_0xdff2d7===_0x410c28;}return!0x1;}_0x519672['model']['document']['registerPostFixer'](()=>{let _0x5bbbb3=!0x1;const _0x2f940d=Array['from'](_0x519672['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d7cd2,data:_0x1a78fd}of _0x2f940d){const {group:_0x42fe9b,type:_0x33acca,subType:_0x573591,id:_0x7f717d}=_0x169c8b['_splitMarkerName'](_0x4d7cd2);if('suggestion'==_0x42fe9b&&_0x169c8b['hasSuggestion'](_0x7f717d)){if('formatBlock'==_0x33acca&&('imageStylePreApply'==_0x573591||'imageStylePostApply'==_0x573591)){const _0x2ad58f=_0x169c8b['getSuggestion'](_0x7f717d);if(_0x1a78fd['newRange']){const _0x215565=_0x2ad58f['getFirstRange']()['getContainedElement']();if(_0x21b507['isBlockImage'](_0x215565))continue;_0x169c8b['discardSuggestion'](_0x2ad58f),_0x5bbbb3=!0x0;}}if('insertion'==_0x33acca&&'imageCaption'==_0x573591&&!_0x1a78fd['newRange']){const _0x19bda7=_0x169c8b['getSuggestion'](_0x7f717d);_0x19bda7['next']&&_0x19bda7['next']['isInContent']&&(_0x169c8b['discardSuggestion'](_0x19bda7['next']),_0x5bbbb3=!0x0);}}}return _0x5bbbb3;}),this['_registerLegacyDescription'](_0x36355b);}['_registerLegacyDescription'](_0x1398e7){const _0x5d3261=this['editor'],_0x306652=_0x5d3261['locale'];_0x5d3261['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2e09=>{if('formatBlock'!=_0x1b2e09['type']&&'formatInline'!=_0x1b2e09['type'])return;const {data:_0x3c7e49}=_0x1b2e09;if(!_0x3c7e49||'imageStyle'!=_0x3c7e49['commandName'])return;const _0x46b3a6=_0x3c7e49['commandParams'][0x0]['value'];return _0x3f76cc('side'===_0x46b3a6?o(_0x306652,'FORMAT_SIDE_IMAGE'):_0x1398e7[_0x46b3a6]||_0x46b3a6);function _0x3f76cc(_0x1763f4){return{'type':'format','content':o(_0x306652,'*Format:*\x20%0',_0x1763f4)};}});}}class ct extends _0x579de7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x36c340){super(_0x36c340),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2bf7d2=this['editor'],_0x10d2e8=_0x2bf7d2['commands']['get']('importWord'),_0xbd0568=_0x2bf7d2['commands']['get']('trackChanges');_0x10d2e8&&(_0x10d2e8['on']('execute',(_0x449ad4,[,_0x4e04ff])=>{this['_trackChangesValueDuringImport']=_0xbd0568['value'],_0x4e04ff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x10d2e8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x10d2e8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xbd0568['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bf7d2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x400444,_0x4f9b6a){const {suggestions:_0x35e1cd}=_0x4f9b6a,_0x25f720=this['editor']['commands']['get']('trackChanges'),_0xbf0392=_0x25f720['value'];this['_trackChangesValueDuringImport']!==_0xbf0392&&(_0x25f720['execute'](),this['_trackChangesExecuted']=!0x0),_0x35e1cd&&_0x35e1cd['forEach'](({id:_0x991ff2,type:_0x1aa074,author:_0x156909,created_at:_0x120051})=>{const _0x3cf88c={'id':_0x991ff2,'type':_0x1aa074,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x156909,'createdAt':_0x120051?new Date(_0x120051):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3cf88c);});}}class ut extends _0x579de7{['afterInit'](){const _0x2b90a0=this['editor'],_0x1fdb29=_0x2b90a0['plugins']['get']('TrackChangesEditing');if(_0x2b90a0['plugins']['has']('IndentEditing')&&(_0x1fdb29['enableCommand']('indent'),_0x1fdb29['enableCommand']('outdent')),_0x2b90a0['plugins']['has']('IndentBlock')){for(const _0x4b7147 of['indentBlock','outdentBlock'])_0x1fdb29['enableDefaultAttributesIntegration'](_0x4b7147);}const _0x5bbc0d=_0x2b90a0['locale'];_0x1fdb29['registerBlockAttribute']('blockIndent'),_0x1fdb29['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5bbc0d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x412cdf=this['editor'],_0x346a2c=_0x412cdf['locale'],_0x1743a2=_0x412cdf['plugins']['get']('TrackChangesEditing');_0x1743a2['descriptionFactory']['registerDescriptionCallback'](_0x56cf1a=>{if('formatBlock'!=_0x56cf1a['type'])return;const {data:_0x3c7ba0}=_0x56cf1a;if(!_0x3c7ba0)return;if('indentBlock'!=_0x3c7ba0['commandName']&&'outdentBlock'!=_0x3c7ba0['commandName'])return;const _0x2ef085=_0x56cf1a['getItems']()[0x0],_0x2fbdae=_0x1743a2['descriptionFactory']['getItemLabel'](_0x2ef085);return'indentBlock'==_0x3c7ba0['commandName']?{'type':'format','content':o(_0x346a2c,'*Indent:*\x20%0',_0x2fbdae)}:'outdentBlock'==_0x3c7ba0['commandName']?{'type':'format','content':o(_0x346a2c,'*Outdent:*\x20%0',_0x2fbdae)}:void 0x0;});}}class ft extends _0x579de7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x579de7{['afterInit'](){const _0x5c651c=this['editor'];if(!_0x5c651c['plugins']['has']('LinkEditing'))return;const _0x52f964=_0x5c651c['plugins']['get']('TrackChangesEditing'),_0x768c9b=_0x5c651c['commands']['get']('link');_0x52f964['enableDefaultAttributesIntegration']('link'),_0x52f964['enableDefaultAttributesIntegration']('unlink'),_0x52f964['registerInlineAttribute']('linkHref');for(const _0x340d8b of _0x768c9b['manualDecorators'])_0x52f964['registerInlineAttribute'](_0x340d8b['id']),_0x52f964['descriptionFactory']['registerAttributeLabel'](_0x340d8b['id'],'link\x20('+_0x340d8b['label']['toLowerCase']()+')');_0x52f964['descriptionFactory']['registerDescriptionCallback'](_0x48fd8e=>{if('attribute'!=_0x48fd8e['type'])return;const {data:_0x14aec5}=_0x48fd8e;if(!_0x14aec5||'linkHref'!=_0x14aec5['key'])return;const _0x183d32=_0x14aec5['newValue'],_0x3892e3=_0x5c651c['locale'];return{'type':'format','content':null==_0x183d32?o(_0x3892e3,'*Remove\x20link*'):o(_0x3892e3,'*Set\x20link:*\x20%0','\x22'+_0x183d32+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f1558=this['editor'],_0x2a7830=_0x1f1558['locale'];_0x1f1558['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cae48=>{if('formatInline'!=_0x2cae48['type'])return;const {data:_0x4d617c}=_0x2cae48;if(_0x4d617c){if('link'==_0x4d617c['commandName']){const _0x3d9db4=_0x4d617c['commandParams'][0x0];return{'type':'format','content':o(_0x2a7830,'*Set\x20link:*\x20%0','\x22'+_0x3d9db4+'\x22')};}return'unlink'==_0x4d617c['commandName']?{'type':'format','content':o(_0x2a7830,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x579de7{['afterInit'](){const _0x59fcea=this['editor'],_0x51fd13=_0x59fcea['locale'];if(!_0x59fcea['plugins']['has']('LegacyListEditing'))return;const _0x5c554a=_0x59fcea['plugins']['get']('TrackChangesEditing'),_0x8b7950=_0x59fcea['plugins']['has']('LegacyTodoListEditing');function _0x599c4e(_0xdb7136){return()=>{const _0x583baf=_0x59fcea['model']['document']['selection'],_0x5c3de1=_0x59fcea['commands']['get'](_0xdb7136);if(_0x5c3de1['value'])return void _0x59fcea['execute']('paragraph',{});const _0x31a3ae=_0xdb7136['slice'](0x0,-0x4),_0x58c688=function(_0x13e1e9,_0x5a7d11,_0x58776c){let _0x2f1f35=Array['from'](_0x13e1e9)['filter'](_0x4b313d=>function(_0xb16c31,_0xd0b87){return _0xd0b87['checkChild'](_0xb16c31['parent'],'listItem')&&!_0xd0b87['isObject'](_0xb16c31);}(_0x4b313d,_0x58776c));_0x2f1f35=_0x2f1f35['filter'](_0x31ebee=>!_0x31ebee['is']('element','listItem')||_0x31ebee['getAttribute']('listType')!=_0x5a7d11);const _0x35028a=new Set();for(const _0xe2fce5 of _0x2f1f35)_0xe2fce5['is']('element','listItem')?_0x35028a['add'](Le(_0xe2fce5)):_0x35028a['add'](_0xe2fce5);return Array['from'](_0x35028a);}(_0x583baf['getSelectedBlocks'](),_0x31a3ae,_0x59fcea['model']['schema']);_0x59fcea['model']['change'](()=>{for(const _0x2b5557 of _0x58c688)_0x5c554a['markBlockFormat'](_0x2b5557,{'commandName':_0xdb7136,'commandParams':[{'forceValue':!_0x5c3de1['value']}],'formatGroupId':'blockName'},Ee(_0x2b5557));});};}function _0x506f43(_0x104503){return()=>{const _0xee33b6=function(_0x38e3d9){let _0x2263fe=Array['from'](_0x38e3d9);const _0x1dfae3=_0x2263fe['findIndex'](_0x32e7a1=>'listItem'!=_0x32e7a1['name']);return _0x1dfae3>-0x1&&(_0x2263fe=_0x2263fe['slice'](0x0,_0x1dfae3)),_0x2263fe;}(_0x59fcea['model']['document']['selection']['getSelectedBlocks']()),_0x465e36=_0x59fcea['model']['createRange'](_0x59fcea['model']['createPositionAt'](_0xee33b6[0x0],'before'),_0x59fcea['model']['createPositionAt'](_0xee33b6[_0xee33b6['length']-0x1],'end'));_0x59fcea['model']['change'](()=>{_0x5c554a['markBlockFormat'](_0x465e36,{'commandName':_0x104503,'commandParams':[],'formatGroupId':'listIndent'},function(_0x58f541){const _0x3cdb49=new Set();for(const _0x5e4227 of _0x58f541){let _0x5ae8c7=_0x5e4227['nextSibling'];for(;_0x5ae8c7&&_0x5ae8c7['getAttribute']('listIndent')>_0x5e4227['getAttribute']('listIndent');)_0x3cdb49['add'](_0x5ae8c7),_0x5ae8c7=_0x5ae8c7['nextSibling'];}return Array['from'](_0x3cdb49);}(_0xee33b6));});};}_0x5c554a['enableCommand']('numberedList',_0x599c4e('numberedList')),_0x5c554a['enableCommand']('bulletedList',_0x599c4e('bulletedList')),_0x8b7950&&_0x5c554a['enableCommand']('todoList',_0x599c4e('todoList')),_0x5c554a['enableCommand']('indentList',_0x506f43('indentList')),_0x5c554a['enableCommand']('outdentList',_0x506f43('outdentList')),_0x8b7950&&_0x5c554a['enableCommand']('checkTodoList',()=>{const _0x36d1d0=_0x59fcea['commands']['get']('checkTodoList'),_0x1fcec7=Array['from'](_0x36d1d0['_selectedElements']);_0x1fcec7['filter'](_0x2217a2=>_0x2217a2['getAttribute']('todoListChecked')!=_0x36d1d0['value']),_0x59fcea['model']['change'](()=>{for(const _0x235cc1 of _0x1fcec7)_0x5c554a['markBlockFormat'](_0x235cc1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x36d1d0['value']}]});});}),_0x5c554a['descriptionFactory']['registerElementLabel']('listItem',_0x3296d3=>o(_0x51fd13,'ELEMENT_LIST_ITEM',_0x3296d3)),_0x5c554a['descriptionFactory']['registerDescriptionCallback'](_0x2db6c5=>{if('formatBlock'!=_0x2db6c5['type']&&'formatInline'!=_0x2db6c5['type'])return;const {data:_0x406f1f}=_0x2db6c5;if(_0x406f1f){if('numberedList'==_0x406f1f['commandName']||'bulletedList'==_0x406f1f['commandName']||'todoList'==_0x406f1f['commandName'])switch(_0x406f1f['commandName']['replace']('List','')){case'bulleted':return _0x15b245(o(_0x51fd13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15b245(o(_0x51fd13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15b245(o(_0x51fd13,'ELEMENT_TODO_LIST'));}if('indentList'==_0x406f1f['commandName'])return{'type':'format','content':o(_0x51fd13,'*Indent:*\x20%0',o(_0x51fd13,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x406f1f['commandName'])return{'type':'format','content':o(_0x51fd13,'*Outdent:*\x20%0',o(_0x51fd13,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x406f1f['commandName'])return _0x406f1f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51fd13,'*Check\x20item*')}:{'type':'format','content':o(_0x51fd13,'*Uncheck\x20item*')};}function _0x15b245(_0x555919){return{'type':'format','content':o(_0x51fd13,'*Change\x20to:*\x20%0',_0x555919)};}});}}function Le(_0x30c070){const _0x116b7e=_0x30c070['getAttribute']('listIndent');if(0x0==_0x116b7e)return _0x30c070;let _0x467458=_0x30c070;for(;_0x30c070['previousSibling']&&_0x30c070['previousSibling']['is']('element','listItem');){const _0x5d7683=_0x30c070['previousSibling']['getAttribute']('listIndent');if(_0x5d7683==_0x116b7e)_0x467458=_0x30c070['previousSibling'];else{if(_0x5d7683<_0x116b7e)break;}_0x30c070=_0x30c070['previousSibling'];}return _0x467458;}function Ee(_0x1e22a2){const _0x5d86e9=[];if(_0x1e22a2['is']('element','listItem')&&_0x1e22a2['getAttribute']('listIndent')>0x0){let _0x4ff374=_0x1e22a2['nextSibling'];for(;_0x4ff374&&'listItem'==_0x4ff374['name']&&_0x4ff374['getAttribute']('listIndent')==_0x1e22a2['getAttribute']('listIndent');)_0x5d86e9['push'](_0x4ff374),_0x4ff374=_0x4ff374['nextSibling'];}return _0x5d86e9;}class Q extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f0f69=this['editor']['config']['get']('list.properties'),_0x38d82e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f0f69['styles']&&_0x38d82e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f0f69['reversed']&&_0x38d82e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f0f69['startIndex']&&_0x38d82e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x38d82e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe9e919,_0x53b177={}){const _0x953a9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c7f41=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x953a9b['markMultiRangeBlockFormat'](_0x3c7f41,{'commandName':'listStyle','commandParams':[{'type':_0x53b177['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x386826,_0x5c153d={}){const _0x3a6cf1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x180253=this['_getSuggestionBlocks'](_0x50f82e=>_0x50f82e['is']('element','listItem')&&'numbered'===_0x50f82e['getAttribute']('listType'));if(_0x180253['length']<0x1)return;const _0x185495=_0x180253['map'](_0x103cb5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x103cb5,'before'),this['editor']['model']['createPositionAt'](_0x103cb5,0x0)));this['editor']['model']['change'](()=>{_0x3a6cf1['markMultiRangeBlockFormat'](_0x185495,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c153d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x147301,_0x211ba3={}){const _0x4c13e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5357ab=this['_getSuggestionBlocks'](_0x3af212=>_0x3af212['is']('element','listItem')&&'numbered'===_0x3af212['getAttribute']('listType'));if(_0x5357ab['length']<0x1)return;const _0x4dade7=_0x5357ab['map'](_0x596902=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x596902,'before'),this['editor']['model']['createPositionAt'](_0x596902,0x0)));this['editor']['model']['change'](()=>{_0x4c13e0['markMultiRangeBlockFormat'](_0x4dade7,{'commandName':'listStart','commandParams':[{'startIndex':_0x211ba3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3348cf){if('formatBlock'!=_0x3348cf['type']&&'formatInline'!=_0x3348cf['type'])return;const _0x43eb73=this['editor']['locale'],{data:_0x206116}=_0x3348cf;if(!_0x206116)return;let _0x388c29,_0x3db304;switch(_0x206116['commandName']){case'listStyle':_0x388c29='*Change\x20to:*\x20%0',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29,o(_0x43eb73,this['_getTranslationKeyForListStyle'](_0x206116['commandParams'][0x0]['type'])))};break;case'listReversed':_0x388c29=_0x206116['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29)};break;case'listStart':_0x388c29='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29,_0x206116['commandParams'][0x0]['startIndex'])};}return _0x3db304;}['_getSuggestionBlocksForListStyle'](){const _0xa70435=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c9cb8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c9cb8[0x0]?.['is']('element','listItem')&&_0x3c9cb8['unshift'](..._0xa70435['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c9cb8[_0x3c9cb8['length']-0x1]?.['is']('element','listItem')&&_0x3c9cb8['push'](..._0xa70435['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c9cb8=[...new Set(_0x3c9cb8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c9cb8=_0x3c9cb8['filter'](_0x443088=>_0x443088['is']('element','listItem'))),_0x3c9cb8;}['_getSuggestionBlocks'](_0x1e32ab){const _0x34ccd6=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ae9b6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1e32ab)['map'](_0x1dc088=>{const _0x45a248=this['editor']['model']['createPositionAt'](_0x1dc088,0x0);return[..._0x34ccd6['getSiblingNodes'](_0x45a248,'backward'),..._0x34ccd6['getSiblingNodes'](_0x45a248,'forward')];})['flat']();return _0x3ae9b6=[...new Set(_0x3ae9b6)],_0x3ae9b6;}['_getTranslationKeyForListStyle'](_0x5d2f18){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d2f18)||'default')['toUpperCase']()+'_LIST_'+_0x5d2f18['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x579de7{['afterInit'](){const _0x336a28=this['editor'];if(!_0x336a28['plugins']['has']('MediaEmbedEditing'))return;const _0x5702a5=_0x336a28['plugins']['get']('TrackChangesEditing'),_0x5b6d2a=_0x336a28['locale'];_0x5702a5['enableCommand']('mediaEmbed'),_0x5702a5['descriptionFactory']['registerElementLabel']('media',_0x3c52e8=>o(_0x5b6d2a,'ELEMENT_MEDIA',_0x3c52e8)),_0x336a28['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24ef61,{writer:_0x4b2a2c,options:_0xba7f54})=>{if(_0xba7f54['showSuggestionHighlights'])return _0x4b2a2c['createEmptyElement']('div');},'converterPriority':'high'}),_0x336a28['data']['downcastDispatcher']['on']('attribute:url:media',(_0x493282,_0x1917d8,_0x36d695)=>{_0x36d695['options']['showSuggestionHighlights']&&_0x493282['stop']();},{'priority':'high'});}}class mt extends _0x579de7{['afterInit'](){const _0xfb6099=this['editor'];_0xfb6099['plugins']['has']('MentionEditing')&&_0xfb6099['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x579de7{['afterInit'](){const _0x8bb664=this['editor'];if(!_0x8bb664['plugins']['has']('MergeFieldsEditing'))return;_0x8bb664['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x8bb664['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x8b2ecb=_0x8bb664['plugins']['get']('TrackChangesEditing'),_0x4c6bd9=_0x8bb664['locale'];_0x8b2ecb['descriptionFactory']['registerElementLabel']('mergeField',_0x284cf1=>o(_0x4c6bd9,'ELEMENT_MERGE_FIELD',_0x284cf1)),_0x8b2ecb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xd20855=>o(_0x4c6bd9,'ELEMENT_MERGE_FIELD',_0xd20855)),_0x8b2ecb['descriptionFactory']['registerDescriptionCallback'](_0x3bdf99=>{if('insertion'!=_0x3bdf99['type']&&'deletion'!=_0x3bdf99['type'])return;const _0xe1b437=_0x3bdf99['getContainedElement']();if(null==_0xe1b437)return;if(!_0xe1b437['is']('element','mergeField')&&!_0xe1b437['is']('element','mergeFieldBlock'))return;const _0x274b2d=_0x8bb664['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xe1b437['getAttribute']('id'));return'insertion'==_0x3bdf99['type']?{'type':'insertion','content':o(_0x4c6bd9,'*Insert:*\x20%0','\x22'+_0x274b2d+'\x22\x20'+o(_0x4c6bd9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4c6bd9,'*Remove:*\x20%0','\x22'+_0x274b2d+'\x22\x20'+o(_0x4c6bd9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x579de7{['afterInit'](){const _0x3a58eb=this['editor'],_0xdd43bc=_0x3a58eb['plugins']['get']('TrackChangesEditing');_0x3a58eb['plugins']['has']('MultiLevelList')&&(_0xdd43bc['enableDefaultAttributesIntegration']('multiLevelList'),_0xdd43bc['registerBlockAttribute']('listMarkerStyle'),_0xdd43bc['descriptionFactory']['registerDescriptionCallback'](_0x54f44a=>this['handleDescriptions'](_0x54f44a)));}['handleDescriptions'](_0x32f6b3){const _0x21e605=this['editor']['locale'],{data:_0x3f9963}=_0x32f6b3,_0x1edbdf={'type':'format','content':''};if(_0x3f9963&&'listMarkerStyle'==_0x3f9963['key']){if(!_0x3f9963['oldValue'])return{'type':'format','content':o(_0x21e605,'*Set\x20format:*\x20%0',o(_0x21e605,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f9963['newValue']+')'};if(!_0x3f9963['newValue']){let _0x3589df=_0x32f6b3['head'];for(;_0x3589df;){if(_0x3589df['data']&&'listType'==_0x3589df['data']['key']&&_0x3589df['data']['newValue'])return _0x1edbdf;_0x3589df=_0x3589df['next'];}return{'type':'format','content':o(_0x21e605,'*Remove\x20format:*\x20%0',o(_0x21e605,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f9963['oldValue']+')'};}}}}class kt extends _0x579de7{['afterInit'](){const _0x499214=this['editor'];if(!_0x499214['plugins']['has']('PageBreakEditing'))return;_0x499214['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x219d6c=_0x499214['plugins']['get']('TrackChangesEditing'),_0x3855e9=_0x499214['locale'];_0x219d6c['descriptionFactory']['registerElementLabel']('pageBreak',_0x51a81d=>o(_0x3855e9,'ELEMENT_PAGE_BREAK',_0x51a81d));}}class bt extends _0x579de7{['afterInit'](){const _0x5f3331=this['editor'];if(!_0x5f3331['plugins']['has']('Paragraph'))return;const _0x44bc37=_0x5f3331['locale'],_0x90bafb=_0x5f3331['plugins']['get']('TrackChangesEditing');_0x90bafb['descriptionFactory']['registerElementLabel']('paragraph',_0x123ae6=>o(_0x44bc37,'ELEMENT_PARAGRAPH',_0x123ae6)),_0x90bafb['enableDefaultAttributesIntegration']('paragraph'),_0x90bafb['enableCommand']('insertParagraph'),_0x5f3331['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5f3331),{'priority':'highest'}),_0x5f3331['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ce722,_0x590488,_0x2e8af4)=>{_0x2e8af4['options']['showSuggestionHighlights']&&nr(_0x5f3331,{'showActiveMarker':!0x1})(_0x3ce722,_0x590488,_0x2e8af4);},{'priority':'highest'});const _0x5f58d0=_0x90bafb['descriptionFactory'];_0x5f58d0['registerDescriptionCallback'](_0xabcd2c=>{if('insertion'!==_0xabcd2c['type'])return;const {start:_0x1f6a77,end:_0x503ab0}=_0xabcd2c['getFirstRange']();if(!_0x1f6a77['isTouching'](_0x503ab0)||!_0x1f6a77['nodeAfter'])return;const _0x50d0f9=_0x5f3331['model']['schema'],_0x23c647=_0x1f6a77['nodeAfter'];return _0x50d0f9['isBlock'](_0x23c647)&&!_0x50d0f9['isLimit'](_0x23c647)&&_0x50d0f9['checkChild'](_0x23c647,'$text')?{'type':'insertion','content':o(_0x44bc37,'*Insert:*\x20%0',_0x5f58d0['getItemLabel'](_0x23c647,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbf5f8=this['editor'],_0x1209df=_0xbf5f8['locale'];_0xbf5f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400a07=>{if('formatBlock'!=_0x400a07['type'])return;const {data:_0x60d3bd}=_0x400a07;return _0x60d3bd&&'paragraph'==_0x60d3bd['commandName']?{'type':'format','content':o(_0x1209df,'*Change\x20to:*\x20%0',o(_0x1209df,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1da0a1,{showActiveMarker:_0x245988=!0x0}={}){return(_0x35273d,_0x4607b1,_0x39d7d0)=>{const _0x4a5242=_0x1da0a1['plugins']['get']('TrackChangesEditing'),_0x43d290=_0x4607b1['markerRange']['start'],_0x453c95=_0x4607b1['markerRange']['end'],_0x908d6b=_0x1da0a1['model']['schema'];if(!_0x43d290['isTouching'](_0x453c95)||!_0x43d290['nodeAfter'])return;const _0xc6dd17=_0x43d290['nodeAfter'];if(_0x908d6b['isBlock'](_0xc6dd17)&&!_0x908d6b['isLimit'](_0xc6dd17)&&_0x908d6b['checkChild'](_0xc6dd17,'$text')){if(!_0x39d7d0['consumable']['consume'](_0x4607b1['markerRange'],_0x35273d['name']))return;const {authorId:_0x5c8c3b}=_0x4a5242['_splitMarkerName'](_0x4607b1['markerName']),_0x4809fb=_0x39d7d0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5c8c3b}),_0x103b79=_0x39d7d0['mapper']['toViewPosition'](_0x453c95);_0x245988&&_0x4a5242['activeMarkers']['includes'](_0x4607b1['markerName'])&&_0x39d7d0['writer']['addClass']('ck-suggestion-marker--active',_0x4809fb),_0x39d7d0['writer']['insert'](_0x103b79,_0x4809fb),_0x39d7d0['mapper']['bindElementToMarker'](_0x4809fb,_0x4607b1['markerName']);}};}class yt extends _0x579de7{['afterInit'](){const _0x434d17=this['editor'];if(!_0x434d17['plugins']['has']('RemoveFormatEditing'))return;_0x434d17['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x526b24=this['editor'];_0x526b24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x156130=>{if('formatBlock'!=_0x156130['type']&&'formatInline'!=_0x156130['type'])return;const {data:_0x109ea9}=_0x156130;return _0x109ea9&&'removeFormat'==_0x109ea9['commandName']?{'type':'format','content':o(_0x526b24['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x579de7{['afterInit'](){const _0x1b6ea0=this['editor'];if(!_0x1b6ea0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x42a2c6=_0x1b6ea0['plugins']['get']('TrackChangesEditing');_0x42a2c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x42a2c6['enableCommand']('goToNextRestrictedEditingException');const _0x2ae19d=_0x1b6ea0['plugins']['get']('RestrictedEditingModeEditing');_0x2ae19d['enableCommand']('trackChanges'),_0x2ae19d['enableCommand']('acceptSuggestion'),_0x2ae19d['enableCommand']('discardSuggestion'),_0x2ae19d['enableCommand']('acceptAllSuggestions'),_0x2ae19d['enableCommand']('discardAllSuggestions'),_0x2ae19d['enableCommand']('acceptSelectedSuggestions'),_0x2ae19d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x579de7{static get['requires'](){return[_0x22c03a];}['init'](){const _0x1d1618=this['editor'],_0x23e71a=_0x1d1618['plugins']['get']('TrackChangesEditing');_0x23e71a['enableCommand']('shiftEnter'),_0x1d1618['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1d1618),{'priority':'high'}),_0x1d1618['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1d1618),{'priority':'high'}),_0x1d1618['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xed1b59,_0x5d5bd4,_0xf131ce)=>{_0xf131ce['options']['showSuggestionHighlights']&&ke(_0x1d1618,{'showActiveMarker':!0x1})(_0xed1b59,_0x5d5bd4,_0xf131ce);}),_0x23e71a['descriptionFactory']['registerElementLabel']('softBreak',_0x4ddfab=>o(_0x1d1618['locale'],'ELEMENT_LINE_BREAK',_0x4ddfab));}}function ke(_0x33997d,{showActiveMarker:_0x1b0e02=!0x0}={}){return(_0xf82f32,_0x5e4266,_0x1295e5)=>{const _0x5377aa=_0x33997d['plugins']['get']('TrackChangesEditing');if(!_0x1295e5['consumable']['test'](_0x5e4266['markerRange'],_0xf82f32['name']))return;const _0x1edc46=_0x33997d['model'];for(const _0x493c5f of _0x5e4266['markerRange']['getItems']()){if(!_0x493c5f['is']('element','softBreak'))continue;const _0x1c8c0b='deletion'==_0x5e4266['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2aa59a}=_0x5377aa['_splitMarkerName'](_0x5e4266['markerName']),_0x224abe=_0x1295e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c8c0b,'data-author-id':_0x2aa59a}),_0x3e916b=_0x1295e5['mapper']['toViewPosition'](_0x1edc46['createPositionBefore'](_0x493c5f));_0x1b0e02&&_0x5377aa['activeMarkers']['includes'](_0x5e4266['markerName'])&&_0x1295e5['writer']['addClass']('ck-suggestion-marker--active',_0x224abe),_0x1295e5['writer']['insert'](_0x3e916b,_0x224abe),_0x1295e5['mapper']['bindElementToMarker'](_0x224abe,_0x5e4266['markerName']);}};}class At extends _0x579de7{['afterInit'](){const _0x2bf44c=this['editor'],_0x5df169=_0x2bf44c['model'],_0x4f6a9d=_0x2bf44c['locale'];if(!_0x2bf44c['plugins']['has']('StandardEditingModeEditing'))return;const _0xf64fd9=_0x2bf44c['plugins']['get']('TrackChangesEditing'),_0x56b4ca='restrictedEditingException',_0x37e464=_0x2bf44c['commands']['get'](_0x56b4ca);_0xf64fd9['enableCommand'](_0x56b4ca,(_0x38c611,_0xde7152={})=>{const _0x442326=_0x5df169['document']['selection'];if(_0x442326['isCollapsed'])return void _0x38c611(_0xde7152);const _0x5f1b55=void 0x0!==_0xde7152['forceValue']?_0xde7152['forceValue']:!_0x37e464['value'];_0x5df169['change'](()=>{const _0x128b1a=Array['from'](_0x442326['getRanges']());for(const _0x5d311f of _0x128b1a){const _0xa62f49=_0x5f1b55?[_0x5d311f]:io(_0x56b4ca,_0x5d311f,_0x5df169);for(const _0x425863 of _0xa62f49)_0xf64fd9['markInlineFormat'](_0x425863,{'commandName':_0x56b4ca,'commandParams':[{'forceValue':_0x5f1b55}]});}});}),_0xf64fd9['descriptionFactory']['registerDescriptionCallback'](_0x481c53=>{if('formatBlock'!=_0x481c53['type']&&'formatInline'!=_0x481c53['type'])return;const {data:_0x1edc3e}=_0x481c53;return _0x1edc3e&&_0x1edc3e['commandName']==_0x56b4ca?_0x1edc3e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f6a9d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4f6a9d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x579de7{['afterInit'](){const _0x1c4746=this['editor'];if(!_0x1c4746['plugins']['has']('Style')||!_0x1c4746['plugins']['has']('DataSchema'))return;const _0x5094a4=_0x1c4746['plugins']['get']('TrackChangesEditing'),_0x381117=_0x1c4746['locale'],_0x17f3cd=_0x1c4746['config']['get']('style')||{},_0xae34d9=_0x1c4746['plugins']['get']('GeneralHtmlSupport'),_0x5a7b45=_0x1c4746['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1c4746['plugins']['get']('DataSchema'),_0x17f3cd['definitions']);_0x5094a4['enableDefaultAttributesIntegration']('style');const _0x15180b=new Set();for(const _0x531023 of _0x5a7b45['block']){const _0x1721ea=_0xae34d9['getGhsAttributeNameForElement'](_0x531023['element']);_0x15180b['add'](_0x1721ea);}const _0x52a060=new Set();for(const _0x2b1fc2 of _0x5a7b45['inline']){const _0x527399=_0xae34d9['getGhsAttributeNameForElement'](_0x2b1fc2['element']);_0x52a060['add'](_0x527399);for(const _0x5b48b of _0x2b1fc2['ghsAttributes'])_0x52a060['add'](_0x5b48b);}for(const _0xea4a31 of _0x15180b)_0x5094a4['registerBlockAttribute'](_0xea4a31),_0x5094a4['descriptionFactory']['registerAttributeLabel'](_0xea4a31,o(_0x381117,'FORMAT_STYLE'));for(const _0x17c6e6 of _0x52a060)_0x5094a4['registerInlineAttribute'](_0x17c6e6),_0x5094a4['descriptionFactory']['registerAttributeLabel'](_0x17c6e6,o(_0x381117,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40416d=this['editor'],_0x7b744=_0x40416d['locale'];_0x40416d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41f768=>{if('formatBlock'!=_0x41f768['type']&&'formatInline'!=_0x41f768['type'])return;const {data:_0x3b4e76}=_0x41f768;return _0x3b4e76&&'style'===_0x3b4e76['commandName']?_0x3b4e76['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7b744,'*Set\x20format:*\x20%0',_0x3b4e76['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x7b744,'*Remove\x20format:*\x20%0',_0x3b4e76['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x579de7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x58fbc0){super(_0x58fbc0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ed3da=this['editor'],_0x3fddad=_0x3ed3da['model']['document']['selection'];if(!_0x3ed3da['plugins']['has']('TableEditing'))return;const _0x18fa71=_0x3ed3da['locale'],_0xb179ac=_0x3ed3da['plugins']['get']('TrackChangesEditing'),_0x152084=_0x3ed3da['plugins']['get']('TableUtils');_0xb179ac['descriptionFactory']['registerElementLabel']('table',_0x562469=>o(_0x18fa71,'ELEMENT_TABLE',_0x562469)),this['_setupColumnsRowsFixing'](),_0xb179ac['enableCommand']('insertTable'),_0xb179ac['enableCommand']('selectTableRow'),_0xb179ac['enableCommand']('selectTableColumn');for(const _0x6546e3 of['insertTableRowAbove','insertTableRowBelow']){const _0x78e2a7=_0x3ed3da['commands']['get'](_0x6546e3);_0xb179ac['enableCommand'](_0x6546e3,_0x24f782=>{_0x3ed3da['model']['change'](_0x4e776e=>{_0x24f782();const _0x492d68='above'===_0x78e2a7['order'],_0x269140=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x39b496=_0x152084['getRowIndexes'](_0x269140),_0x3b6bcc=_0x492d68?_0x39b496['first']-0x1:_0x39b496['last']+0x1,_0xd2f2c3=_0x269140[0x0]['findAncestor']('table'),_0x4162c3=_0x152084['createTableWalker'](_0xd2f2c3,{'startRow':_0x3b6bcc,'endRow':_0x3b6bcc}),_0x388ed1=Array['from'](_0x4162c3)['map'](_0x479a1f=>_0x4e776e['createRangeOn'](_0x479a1f['cell']));_0xb179ac['markMultiRangeInsertion'](_0x388ed1,'tableRow');});});}for(const _0xc75344 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d8e11=_0x3ed3da['commands']['get'](_0xc75344);_0xb179ac['enableCommand'](_0xc75344,_0x4d1f26=>{_0x3ed3da['model']['change'](_0x991893=>{_0x4d1f26();const _0x4bc485='left'===_0x3d8e11['order'],_0x550070=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x550972=_0x152084['getColumnIndexes'](_0x550070),_0xa52ee0=_0x4bc485?_0x550972['first']-0x1:_0x550972['last']+0x1,_0x281cac=_0x550070[0x0]['findAncestor']('table'),_0x6a16f7=_0x152084['createTableWalker'](_0x281cac,{'startRow':0x0,'column':_0xa52ee0,'includeAllSlots':!0x1}),_0x3ff68a=Array['from'](_0x6a16f7)['map'](_0xff83f6=>_0x991893['createRangeOn'](_0xff83f6['cell']));_0xb179ac['markMultiRangeInsertion'](_0x3ff68a,'tableColumn');});});}for(const _0x24f37c of['removeTableRow','removeTableColumn']){const _0x5652e6=_0x24f37c['substr'](0xb),_0x5df17a=_0x5652e6['toLowerCase'](),_0x3bafa9=_0x5df17a['substr'](0x0,0x3)+'span',_0x45e58a='table'+_0x5652e6,_0x449bd2='min'+_0x5652e6,_0x54ca8c='max'+_0x5652e6;_0xb179ac['enableCommand'](_0x24f37c,()=>{_0x3ed3da['model']['change'](_0x18d837=>{const _0x18a2b1=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x2d86a2=_0x18a2b1[0x0]['findAncestor']('table');let _0x170e3c;if('removeTableRow'==_0x24f37c){const _0x34f665=_0x152084['getRowIndexes'](_0x18a2b1);_0x170e3c={'startRow':_0x34f665['first'],'endRow':_0x34f665['last'],'includeAllSlots':!0x0};}else{const _0x4740bb=_0x152084['getColumnIndexes'](_0x18a2b1);_0x170e3c={'startColumn':_0x4740bb['first'],'endColumn':_0x4740bb['last'],'includeAllSlots':!0x0};}const _0x472f46=_0x152084['createTableWalker'](_0x2d86a2,_0x170e3c),_0x7edb66=Array['from'](_0x472f46)['map'](({cell:_0x3dbb13})=>_0x3dbb13),_0x525d34=Re(_0x7edb66['filter'](_0x3707e2=>_0x3707e2['hasAttribute'](_0x3bafa9))),_0x403028=Re(_0x7edb66['filter'](_0x391681=>!_0x391681['hasAttribute'](_0x3bafa9)))['map'](_0x36188a=>_0x18d837['createRangeOn'](_0x36188a)),_0x551ee2=_0xb179ac['markMultiRangeDeletion'](_0x403028,_0x45e58a);if(_0x551ee2&&('tableRow'==_0x551ee2['subType']||'tableColumn'==_0x551ee2['subType'])){const _0x25e4de=this['_getSuggestionCoords'](_0x551ee2);for(const _0x437294 of _0x525d34){const _0x2d75b6=_0x18d837['createRangeOn'](_0x437294),_0x41d487=_0x152084['getCellLocation'](_0x437294),_0x5d54f8=_0x437294['getAttribute'](_0x3bafa9)-0x1,_0x70fa9c=_0x25e4de[_0x449bd2],_0x493004=_0x25e4de[_0x54ca8c];_0x70fa9c<=_0x41d487[_0x5df17a]&&_0x41d487[_0x5df17a]+_0x5d54f8<=_0x493004&&_0x551ee2['addRange'](_0x2d75b6);}}});});}function _0x5ba5cd(_0x39a239){const _0x596d48=Array['from'](_0x3fddad['getRanges']())['map'](_0xd780f9=>_0x5e91cd['fromRange'](_0xd780f9));_0x3ed3da['model']['change'](_0x2013f1=>{const _0x59d744=_0x2013f1['batch'];_0x39a239=_0x39a239['filter'](_0x35bbee=>'$graveyard'!=_0x35bbee['root']['rootName']),_0x2013f1['setSelection'](_0x39a239),_0x3ed3da['commands']['get']('removeTableRow')['refresh'](),_0x3ed3da['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ed3da['model']['enqueueChange'](()=>{_0x3ed3da['model']['enqueueChange'](_0x59d744,_0x4358b8=>{const _0x402e90=_0x596d48['filter'](_0xa1120b=>'$graveyard'!=_0xa1120b['root']['rootName']);_0x402e90['length']>0x0&&_0x4358b8['setSelection'](_0x402e90);for(const _0x15ffb7 of _0x596d48)_0x15ffb7['detach']();});});});}function _0x414c38(_0xc2eeab){_0x3ed3da['model']['change'](_0x1bd99b=>{const _0x4c297f=Array['from'](_0x3fddad['getRanges']())['map'](_0x54d0bf=>_0x5e91cd['fromRange'](_0x54d0bf)),_0x2915f4=[];for(const _0x380e84 of _0xc2eeab)for(const _0x490814 of _0x380e84['getItems']({'shallow':!0x0}))_0x2915f4['push'](_0x490814);for(const _0x56942d of _0x2915f4)'$graveyard'!=_0x56942d['root']['rootName']&&(_0x1bd99b['setSelection'](_0x1bd99b['createPositionAt'](_0x56942d,0x0)),_0x3ed3da['commands']['get']('removeTableColumn')['refresh'](),_0x3ed3da['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5656b5=_0x4c297f['filter'](_0x2a8773=>'$graveyard'!=_0x2a8773['root']['rootName']);_0x5656b5['length']>0x0&&_0x1bd99b['setSelection'](_0x5656b5);for(const _0x112677 of _0x4c297f)_0x112677['detach']();});}function _0x59ecd7(_0x88d009,_0x1ece6c){return _0x1ece6c['every'](_0xe1dd73=>_0x88d009['some'](_0x15eb90=>_0x15eb90['end']['isEqual'](_0xe1dd73['start'])||_0xe1dd73['end']['isEqual'](_0x15eb90['start'])));}function _0x196789(_0x4cb7e1,_0x40e6eb){return!_0x4cb7e1['some'](_0x1f821d=>_0x40e6eb['some'](_0x293342=>_0x1f821d['isIntersecting'](_0x293342)))&&_0x4cb7e1['some'](_0x2c8157=>_0x40e6eb['some'](_0x52555f=>_0x2c8157['end']['isTouching'](_0x52555f['start'])));}_0x3ed3da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x589fc0,_0x4cd6c0,_0x2dc74a)=>{if(!_0x2dc74a['options']['showSuggestionHighlights'])return;const _0x2e9b15=_0x4cd6c0['item'];if(!_0x2e9b15)return;const _0x4885fc=_0x2dc74a['mapper']['toViewElement'](_0x2e9b15);function _0x5b27bb(_0x2c1bdb){return Array['isArray'](_0x2c1bdb)?_0x2c1bdb:[_0x2c1bdb];}_0x4885fc&&'tableCell'===_0x2e9b15['name']&&_0x53ac15(_0x4885fc,_0x2dc74a['writer'],(_0x13062e,_0x184c87,_0x231f47)=>_0x231f47['addClass'](_0x5b27bb(_0x184c87['classes']),_0x13062e),(_0x163013,_0x3cec07,_0x522470)=>_0x522470['removeClass'](_0x5b27bb(_0x3cec07['classes']),_0x163013));},{'priority':'highest'}),_0xb179ac['descriptionFactory']['registerDescriptionCallback'](_0x34f90=>{if('insertion'!=_0x34f90['type']&&'deletion'!=_0x34f90['type'])return;const _0xfbaabc=_0x34f90['getContainedElement']();if(null!=_0xfbaabc&&_0xfbaabc['is']('element','table')){if('insertion'==_0x34f90['type']){const _0x12d109=_0x34f90['getItems']()['filter'](_0x11af87=>_0x11af87['is']('$textProxy'))['map'](_0x42575c=>_0x42575c['data']);if(_0x12d109['length'])return{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12d109['join']('\x20')+'\x22'))};}if('deletion'==_0x34f90['type']){const _0x3a172c=_0x34f90['getItems']()['filter'](_0x4d7efa=>_0x4d7efa['is']('$textProxy'))['map'](_0x162b77=>_0x162b77['data']);if(_0x3a172c['length'])return{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a172c['join']('\x20')+'\x22'))};}}}),_0xb179ac['descriptionFactory']['registerDescriptionCallback'](_0x4b6838=>{if('tableRow'==_0x4b6838['subType']){const _0x3de8c1=_0x4b6838['getItems']()['filter'](_0x3a1771=>_0x3a1771['is']('$textProxy'))['map'](_0x52a8f0=>_0x52a8f0['data']),_0x22733e=this['_getSuggestionCoords'](_0x4b6838),_0x8bbf8a=_0x22733e['maxRow']-_0x22733e['minRow']+0x1;if('insertion'==_0x4b6838['type'])return _0x3de8c1['length']?{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8bbf8a,'\x22'+_0x3de8c1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW',_0x8bbf8a))};if('deletion'==_0x4b6838['type'])return _0x3de8c1['length']?{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8bbf8a,'\x22'+_0x3de8c1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW',_0x8bbf8a))};}if('tableColumn'==_0x4b6838['subType']){const _0xc54752=_0x4b6838['getItems']()['filter'](_0x592cec=>_0x592cec['is']('$textProxy'))['map'](_0x5457d4=>_0x5457d4['data']),_0x5483a1=this['_getSuggestionCoords'](_0x4b6838),_0x34ad2b=_0x5483a1['maxColumn']-_0x5483a1['minColumn']+0x1;if('insertion'==_0x4b6838['type'])return _0xc54752['length']?{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ad2b,'\x22'+_0xc54752['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN',_0x34ad2b))};if('deletion'==_0x4b6838['type'])return _0xc54752['length']?{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ad2b,'\x22'+_0xc54752['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN',_0x34ad2b))};}}),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ba5cd),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ba5cd),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x414c38),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x414c38),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x59ecd7),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x59ecd7),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x196789),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x196789);}['_acceptFormatSuggestionCallbackFactory'](){const _0x38e915=this['editor'],_0x1858a3=_0x38e915['model']['document']['selection'];return(_0x1f4b88,_0x42661a)=>{_0x38e915['model']['change'](_0x36e197=>{const {commandName:_0x53ca97,commandParams:_0xb5f735}=_0x42661a;let _0xf9c213=_0x1f4b88[0x0]['end']['nodeBefore'];_0xb5f735&&_0xb5f735[0x0]&&!0x1===_0xb5f735[0x0]['forceValue']&&(_0xf9c213=_0x1f4b88[0x0]['start']['nodeAfter']);const _0x2d479a=_0x36e197['createRangeIn'](_0xf9c213);if('$graveyard'==_0x2d479a['root']['rootName'])return;const _0x573a40=Array['from'](_0x1858a3['getRanges']())['map'](_0x3b4257=>_0x5e91cd['fromRange'](_0x3b4257));_0x36e197['setSelection'](_0x2d479a),_0x38e915['commands']['get'](_0x53ca97)['refresh'](),_0xb5f735['push']({'forceDefaultExecution':!0x0}),_0x38e915['execute'](_0x53ca97,..._0xb5f735);const _0x48fb82=_0x573a40['filter'](_0x1ea063=>'$graveyard'!=_0x1ea063['root']['rootName']);_0x48fb82['length']>0x0&&_0x36e197['setSelection'](_0x48fb82);for(const _0x294051 of _0x573a40)_0x294051['detach']();});};}['_getCoordsForCells'](_0x5b8751){const _0xfdf0ea=this['editor']['plugins']['get']('TableUtils');let _0x446710=Number['MAX_SAFE_INTEGER'],_0x4d27c5=Number['MIN_SAFE_INTEGER'],_0x2f4843=Number['MAX_SAFE_INTEGER'],_0x5923f4=Number['MIN_SAFE_INTEGER'];for(const _0x299a0a of _0x5b8751){if('$graveyard'==_0x299a0a['root']['rootName'])continue;const {row:_0x2ca9a1,column:_0x31464e}=_0xfdf0ea['getCellLocation'](_0x299a0a),_0x534431=_0x299a0a['hasAttribute']('rowspan')?_0x299a0a['getAttribute']('rowspan')-0x1:0x0,_0x97b6a0=_0x299a0a['hasAttribute']('colspan')?_0x299a0a['getAttribute']('colspan')-0x1:0x0;_0x446710=_0x2ca9a1<_0x446710?_0x2ca9a1:_0x446710,_0x4d27c5=_0x2ca9a1+_0x534431>_0x4d27c5?_0x2ca9a1+_0x534431:_0x4d27c5,_0x2f4843=_0x31464e<_0x2f4843?_0x31464e:_0x2f4843,_0x5923f4=_0x31464e+_0x97b6a0>_0x5923f4?_0x31464e+_0x97b6a0:_0x5923f4;}return{'minRow':_0x446710,'maxRow':_0x4d27c5,'minColumn':_0x2f4843,'maxColumn':_0x5923f4};}['_setupColumnsRowsFixing'](){const _0x1edf8a=this['editor'],_0x5aa5c9=_0x1edf8a['plugins']['get']('TrackChangesEditing'),_0x4b3e8b=_0x1edf8a['plugins']['get']('TableUtils');_0x1edf8a['model']['document']['on']('change:data',()=>{const _0x12ba7d=Array['from'](_0x1edf8a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x465bd6,data:_0x18fd12}of _0x12ba7d){const {group:_0x35e217,id:_0x4324d0,subType:_0x53b820}=_0x5aa5c9['_splitMarkerName'](_0x465bd6);if('suggestion'!=_0x35e217)continue;if(null!=_0x18fd12['oldRange'])continue;const _0x531423=_0x5aa5c9['getSuggestion'](_0x4324d0);this['_tablePostFixingSubtypes']['includes'](_0x53b820)&&this['_tableSuggestions']['add'](_0x531423);}},{'priority':'low'});const _0x9e42b7=(_0x89cd2b,_0x44a2ce)=>{let _0x5cf122=!0x1;const _0x4d85f7=_0x44a2ce['createRangeOn'](_0x89cd2b),_0x443ecd=_0x89cd2b['findAncestor']('table'),_0x1cf3e2=_0x4b3e8b['getCellLocation'](_0x89cd2b);for(const _0x363d70 of this['_tableSuggestions']){const _0x5dae6c=_0x363d70['subType'],_0x1ba0ca=_0x5dae6c['startsWith']('tablePaste'),_0x1d1ad5=_0x5dae6c['substr'](_0x1ba0ca?0xa:0x5),_0x552887=_0x1d1ad5['toLowerCase'](),_0x991b3a=_0x552887['substr'](0x0,0x3)+'span',_0x1937d5='min'+_0x1d1ad5,_0x526a66='max'+_0x1d1ad5;if(!_0x363d70['isInContent'])continue;if(_0x443ecd!=_0x363d70['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x363d70['isIntersectingWithRange'](_0x4d85f7))continue;const _0x3ed9f7=_0x89cd2b['hasAttribute'](_0x991b3a)?_0x89cd2b['getAttribute'](_0x991b3a)-0x1:0x0,_0x449661=this['_getSuggestionCoords'](_0x363d70),_0x570708=_0x449661[_0x1937d5],_0x4fed15=_0x449661[_0x526a66];_0x570708<=_0x1cf3e2[_0x552887]&&_0x1cf3e2[_0x552887]+_0x3ed9f7<=_0x4fed15&&(_0x363d70['addRange'](_0x4d85f7),_0x5cf122=!0x0);}return _0x5cf122;};_0x1edf8a['model']['document']['registerPostFixer'](_0x273854=>{let _0x15bfdf=!0x1;for(const _0x2ff640 of _0x1edf8a['model']['document']['differ']['getChanges']())if('insert'==_0x2ff640['type']){if('tableRow'==_0x2ff640['name']){for(const _0x129893 of _0x2ff640['position']['nodeAfter']['getChildren']())_0x15bfdf=_0x15bfdf||_0x9e42b7(_0x129893,_0x273854);}else'tableCell'==_0x2ff640['name']&&(_0x15bfdf=_0x15bfdf||_0x9e42b7(_0x2ff640['position']['nodeAfter'],_0x273854));}return _0x15bfdf;});}['_getSuggestionCoords'](_0x11bf20){return this['_getCoordsForCells'](_0x11bf20['getRanges']()['map'](_0x212a66=>_0x212a66['start']['nodeAfter']));}}function Re(_0x5e61d3){return Array['from'](new Set(_0x5e61d3)['values']());}class _t extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x5afe80=this['editor'],_0x43f61e=_0x5afe80['model']['document']['selection'],_0xc2e28c=_0x5afe80['locale'];if(!_0x5afe80['plugins']['has']('TableEditing'))return;const _0x5a0022=_0x5afe80['plugins']['get']('TrackChangesEditing'),_0x59fc43=_0x5afe80['plugins']['get']('TableUtils'),_0x513e4a=_0x5afe80['plugins']['get'](vt);_0x513e4a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a0022['enableCommand']('mergeTableCells',()=>{const _0x408770=_0x59fc43['getSelectionAffectedTableCells'](_0x5afe80['model']['document']['selection']);_0x5afe80['model']['change'](()=>{_0x5a0022['markMultiRangeBlockFormat'](_0x408770,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5afe80['commands']['get']('mergeTableCells')['on']('execute',(_0x2f5ac7,_0x9ef97d)=>{_0x5afe80['commands']['get']('trackChanges')['value']&&(_0x9ef97d['length']>0x0&&_0x9ef97d[_0x9ef97d['length']-0x1]&&_0x9ef97d[_0x9ef97d['length']-0x1]['forceDefaultExecution']||_0x5a0022['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f5ac7['stop']());},{'priority':'highest'});for(const _0x89bf86 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x14f209=_0x5afe80['commands']['get'](_0x89bf86);_0x5a0022['enableCommand'](_0x89bf86,()=>{const _0xb52a3b=_0x5afe80['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbf65fa=>_0xbf65fa['is']('element','tableCell')),_0x149cd8=_0x14f209['value'];_0x5afe80['model']['change'](()=>{_0x5a0022['markMultiRangeBlockFormat']([_0xb52a3b,_0x149cd8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2f9289 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2a3d13=_0x5afe80['commands']['get'](_0x2f9289);_0x5a0022['enableCommand'](_0x2f9289,()=>{const _0x594e3a=_0x59fc43['getSelectionAffectedTableCells'](_0x5afe80['model']['document']['selection'])[0x0],_0x3976d1=_0x594e3a['findAncestor']('table'),{column:_0x35c07a,row:_0x17d8e6}=_0x59fc43['getCellLocation'](_0x594e3a);let _0x152dbd=[];if('horizontally'==_0x2a3d13['direction']){const _0x38fe65=_0x59fc43['createTableWalker'](_0x3976d1,{'startRow':_0x17d8e6,'endRow':_0x17d8e6,'includeAllSlots':!0x0});_0x152dbd=Array['from'](_0x38fe65)['map'](_0x32a223=>_0x32a223['cell']);}else{const _0x399faa=_0x59fc43['createTableWalker'](_0x3976d1,{'column':_0x35c07a,'includeAllSlots':!0x0});_0x152dbd=Array['from'](_0x399faa)['map'](_0x2bd892=>_0x2bd892['cell']);}_0x5afe80['model']['change'](_0x1c1c7=>{_0x5a0022['markBlockFormat'](_0x1c1c7['createRangeOn'](_0x594e3a),{'commandName':_0x2f9289,'commandParams':[]},_0x152dbd,_0x2f9289);});});}_0x5a0022['descriptionFactory']['registerDescriptionCallback'](_0x3c1bcc=>{if('formatBlock'!=_0x3c1bcc['type']&&'formatInline'!=_0x3c1bcc['type'])return;const {data:_0x48123e}=_0x3c1bcc;return _0x48123e&&'mergeTableCells'==_0x48123e['commandName']?{'type':'format','content':o(_0xc2e28c,'*Merge\x20cells*')}:void 0x0;}),_0x5a0022['descriptionFactory']['registerDescriptionCallback'](_0xbfc9e1=>{if('formatBlock'!=_0xbfc9e1['type']&&'formatInline'!=_0xbfc9e1['type'])return;const {data:_0x314a00}=_0xbfc9e1;return _0x314a00?'splitTableCellVertically'==_0x314a00['commandName']?{'type':'format','content':o(_0xc2e28c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x314a00['commandName']?{'type':'format','content':o(_0xc2e28c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xba5b61=_0x513e4a['_acceptFormatSuggestionCallbackFactory']();for(const _0x42f0fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42f0fd,'accept',_0xba5b61);for(const _0xba88dd of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xba88dd,'accept',_0xba5b61);_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3bc351=>{_0x5afe80['model']['change'](_0x3d141e=>{const _0xe54810=Array['from'](_0x43f61e['getRanges']())['map'](_0x501b5d=>_0x5e91cd['fromRange'](_0x501b5d));_0x3d141e['setSelection'](_0x3bc351),_0x5afe80['commands']['get']('mergeTableCells')['refresh'](),_0x5afe80['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x40517f=_0xe54810['filter'](_0x27ae36=>'$graveyard'!=_0x27ae36['root']['rootName']);_0x40517f['length']>0x0&&_0x3d141e['setSelection'](_0x40517f);for(const _0x52bb48 of _0xe54810)_0x52bb48['detach']();});});for(const _0x2c4f87 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49b28f=_0x5afe80['commands']['get'](_0x2c4f87);_0x49b28f['on']('set:isEnabled',(_0x1d5cee,_0x54f662,_0xc83353)=>{if(_0xc83353){const _0x5298d6=_0x5afe80['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x188635=>_0x188635['is']('element','tableCell'));this['_areMergableCells'](_0x49b28f['value'],_0x5298d6)||(_0x1d5cee['return']=!0x1,_0x1d5cee['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf2faab=this['editor']['commands']['get']('mergeTableCells'),_0x52b01a=this['editor']['plugins']['get']('TableUtils');if(!_0xf2faab['isEnabled'])return!0x1;const _0x473385=_0x52b01a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4666e4 of _0x473385)for(const _0x5dde2c of _0x473385)if(_0x4666e4!=_0x5dde2c&&!this['_areMergableCells'](_0x4666e4,_0x5dde2c))return!0x1;return!0x0;}['_areMergableCells'](_0x376f3a,_0x50e41f){const _0x10ab3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x592a8d=this['editor']['model']['createRangeOn'](_0x376f3a),_0x5ada4a=this['editor']['model']['createRangeOn'](_0x50e41f),_0x3c48d9=new Set(),_0xb7b1e=new Set();for(const _0x254c36 of _0x10ab3d['getSuggestions']())if(('insertion'==_0x254c36['type']||'deletion'==_0x254c36['type']||'mergeTableCells'==_0x254c36['subType'])&&_0x254c36['isInContent']){for(const _0x4ef340 of _0x254c36['getRanges']())_0x4ef340['containsRange'](_0x592a8d,!0x0)&&_0x3c48d9['add'](_0x254c36['type']+':'+_0x254c36['author']['id']),_0x4ef340['containsRange'](_0x5ada4a,!0x0)&&_0xb7b1e['add'](_0x254c36['type']+':'+_0x254c36['author']['id']);}if(_0x3c48d9['size']!=_0xb7b1e['size'])return!0x1;for(const _0x50f95c of _0x3c48d9)if(!_0xb7b1e['has'](_0x50f95c))return!0x1;return!0x0;}}class Ct extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x5db61a=this['editor'];if(!_0x5db61a['plugins']['has']('TableEditing'))return;const _0x405d75=_0x5db61a['locale'],_0x1f41b6=_0x5db61a['plugins']['get']('TrackChangesEditing');_0x1f41b6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1f41b6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1f41b6['registerBlockAttribute']('headingRows'),_0x1f41b6['registerBlockAttribute']('headingColumns'),_0x1f41b6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x405d75,'FORMAT_HEADER_ROW')),_0x1f41b6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x405d75,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d99bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x131e03=this['editor']['plugins']['get']('TableUtils'),_0x502afc=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x29cdc9({showActiveMarker:_0x213ef7=!0x0,setDataAttribute:_0xe52ad1=!0x0}={}){return(_0x1f497a,_0x3515e2,_0x31052d)=>{const {type:_0x55d958,id:_0x27e447}=_0x1d99bf['_splitMarkerName'](_0x3515e2['markerName']),_0x51bf1c=_0x1d99bf['getSuggestion'](_0x27e447),_0x2ff4f2=_0x51bf1c['data'];if('formatBlock'!=_0x51bf1c['type']||!_0x2ff4f2||'setTableColumnHeader'!=_0x2ff4f2['commandName'])return;if(_0x3515e2['item'])return void _0x1f497a['stop']();if(!_0x31052d['consumable']['consume'](_0x3515e2['markerRange'],_0x1f497a['name']))return;const _0x9daf0=_0x3515e2['markerRange']['start']['nodeAfter'],_0xff5198=_0x3515e2['markerRange']['end']['nodeBefore'],_0x177ea1=_0x9daf0['parent']['parent'],{column:_0x196df8}=_0x131e03['getCellLocation'](_0x9daf0),{column:_0x4a7460}=_0x131e03['getCellLocation'](_0xff5198);for(let _0x158f40=_0x196df8;_0x158f40<=_0x4a7460;_0x158f40++){const _0x2fc26c=_0x131e03['createTableWalker'](_0x177ea1,{'column':_0x158f40,'includeAllSlots':!0x1});for(const _0x33f248 of _0x2fc26c){const _0x2b9e72=_0x33f248['cell'],_0x3d2ae3=_0x31052d['mapper']['toViewElement'](_0x2b9e72);_0x31052d['writer']['addClass']('ck-suggestion-marker-'+_0x55d958,_0x3d2ae3),_0xe52ad1&&_0x31052d['writer']['setAttribute']('data-suggestion',_0x27e447,_0x3d2ae3),_0x31052d['mapper']['bindElementToMarker'](_0x3d2ae3,_0x3515e2['markerName']),_0x213ef7&&(_0x1d99bf['activeMarkers']['includes'](_0x3515e2['markerName'])?_0x31052d['writer']['addClass']('ck-suggestion-marker--active',_0x3d2ae3):_0x31052d['writer']['removeClass']('ck-suggestion-marker--active',_0x3d2ae3));}}};}_0x1d99bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x502afc),_0x1d99bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x502afc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x29cdc9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7624,_0x3ba538,_0x4308cc)=>{_0x4308cc['options']['showSuggestionHighlights']&&_0x29cdc9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7624,_0x3ba538,_0x4308cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x363a46,_0x29eab8,_0xa37025)=>{const {type:_0x5ea44b,id:_0x4fa48e}=_0x1d99bf['_splitMarkerName'](_0x29eab8['markerName']),_0x208390=_0x1d99bf['getSuggestion'](_0x4fa48e),_0x1d63da=_0x208390['data'];if('formatBlock'!=_0x208390['type']||!_0x1d63da||'setTableColumnHeader'!=_0x1d63da['commandName'])return;const _0x43247a=_0xa37025['mapper']['markerNameToElements'](_0x29eab8['markerName']);if(_0x43247a){for(const _0x111c3f of _0x43247a)_0xa37025['writer']['removeClass']('ck-suggestion-marker-'+_0x5ea44b,_0x111c3f),_0xa37025['writer']['removeClass']('ck-suggestion-marker--active',_0x111c3f),_0xa37025['writer']['removeAttribute']('data-suggestion',_0x111c3f),_0xa37025['mapper']['unbindElementFromMarkerName'](_0x111c3f,_0x29eab8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2539ae=this['editor'],_0xad06e5=_0x2539ae['locale'];function _0x5ed0fe(_0x1c94d1){return{'type':'format','content':o(_0xad06e5,'*Format:*\x20%0',_0x1c94d1)};}_0x2539ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c44cf=>{if('formatBlock'!=_0x2c44cf['type'])return;const {data:_0x330c41}=_0x2c44cf;if(_0x330c41){if('setTableRowHeader'==_0x330c41['commandName']){const _0x434ff8=_0x330c41['commandParams'][0x0]['forceValue'];return _0x5ed0fe(o(_0xad06e5,_0x434ff8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x330c41['commandName']){const _0x5b702b=_0x330c41['commandParams'][0x0]['forceValue'];return _0x5ed0fe(o(_0xad06e5,_0x5b702b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x52ca71=>[_0x52ca71,null]));class Nt extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x2ff07=this['editor'];if(!_0x2ff07['plugins']['has']('TableClipboard'))return;const _0x16cb15=_0x2ff07['plugins']['get']('TrackChangesEditing'),_0x2eae8=_0x2ff07['plugins']['get']('TableUtils'),_0x964c88=_0x2ff07['plugins']['get'](vt),_0x2201cc=_0x2ff07['plugins']['get']('TableClipboard');_0x964c88['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2ff07['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2ff07['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x452eb9=null;_0x2ff07['model']['on']('insertContent',(_0x457050,_0x44f0e4)=>{const [_0x2fe519,_0x3ac89b]=_0x44f0e4,_0x3241d2=_0x44f0e4[_0x44f0e4['length']-0x1];_0x3241d2&&_0x3241d2['forceDefaultExecution']||_0x16cb15['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5a8b20,_0x542aa4,_0x58f834,_0x43f5a7,_0x2eea1d){if(_0x542aa4&&!_0x542aa4['is']('documentSelection'))return!0x1;const _0xc5e2f=_0x2eea1d['getTableIfOnlyTableInContent'](_0x5a8b20,_0x58f834);if(!_0xc5e2f||!Ae(_0xc5e2f,void 0x0,_0x43f5a7))return!0x1;const _0x58d4d5=_0x43f5a7['getSelectionAffectedTableCells'](_0x58f834['document']['selection']);if(!_0x58d4d5['length'])return!0x1;const _0x5b6b03=_0x58d4d5[0x0]['findAncestor']('table'),_0x4ba231=_0x43f5a7['getRowIndexes'](_0x58d4d5),_0x5df624=_0x43f5a7['getColumnIndexes'](_0x58d4d5),_0x37d296={'startRow':_0x4ba231['first'],'endRow':_0x4ba231['last'],'startColumn':_0x5df624['first'],'endColumn':_0x5df624['last']};return 0x1==_0x58d4d5['length']&&(_0x37d296['endRow']+=_0x43f5a7['getRows'](_0xc5e2f)-0x1,_0x37d296['endColumn']+=_0x43f5a7['getColumns'](_0xc5e2f)-0x1),Ae(_0x5b6b03,_0x37d296,_0x43f5a7);}(_0x2fe519,_0x3ac89b,_0x2ff07['model'],_0x2eae8,_0x2201cc)&&(_0x457050['stop'](),_0x452eb9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ff07['model']['change'](()=>{_0x2ff07['model']['insertContent'](_0x44f0e4[0x0],_0x44f0e4[0x1],_0x44f0e4[0x2],{'forceDefaultExecution':!0x0});const _0x4f2613=_0x303cc5(),{rowInsertionRanges:_0x968b6b,columnInsertionRanges:_0x315f93,insertionRanges:_0x3ca6f2,deletionRanges:_0x43bb67,cells:_0xc3f5e9}=_0x452eb9;_0x968b6b['length']&&_0x16cb15['markMultiRangeInsertion'](_0x968b6b,'tablePasteRow',{'tablePasteChainId':_0x4f2613}),_0x315f93['length']&&_0x16cb15['markMultiRangeInsertion'](_0x315f93,'tablePasteColumn',{'tablePasteChainId':_0x4f2613}),_0x3ca6f2['length']&&(_0x16cb15['markMultiRangeInsertion'](_0x3ca6f2,'tablePaste',{'tablePasteChainId':_0x4f2613,'skipNestingCheck':!0x0}),_0x3ca6f2['forEach'](_0x780fe8=>_0x780fe8['detach']?.())),_0x43bb67['length']&&(_0x16cb15['markMultiRangeDeletion'](_0x43bb67,'tablePaste',{'tablePasteChainId':_0x4f2613,'skipNestingCheck':!0x0}),_0x43bb67['forEach'](_0x5b1b73=>_0x5b1b73['detach']?.()));const _0x54751a=_0x16cb15['markMultiRangeBlockFormat'](_0xc3f5e9['map'](({element:_0x2206aa})=>_0x2206aa),{'formatGroupId':_0x303cc5()},[],'tablePasteCell',{'tablePasteChainId':_0x4f2613});if(_0x54751a){const _0x5bbe5c=_0x54751a['getMarkers'](),_0x64d063=[];for(const {element:_0x4c180d,attributes:_0xb8617b}of _0xc3f5e9){if(!_0xb8617b)continue;const _0x1841d2=_0x2ff07['model']['createRangeOn'](_0x4c180d),_0x557aa9=_0x5bbe5c['find'](_0x27e3b4=>_0x27e3b4['getRange']()['isEqual'](_0x1841d2));_0x557aa9&&_0x64d063['push']([_0x557aa9['name'],_0xb8617b]);}_0x64d063['length']&&_0x54751a['setAttribute']('markerAttributes',Object['fromEntries'](_0x64d063));}_0x452eb9=null;}));},{'priority':_0x4f4b43['high']+0xa}),_0x2ff07['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf6859f,_0x47b543)=>{const [_0x14dd7d,_0x3c69b,,_0x3168ee]=_0x47b543;if(!_0x452eb9)return;_0xf6859f['stop']();const _0xb0ba80=_0x14dd7d['cell'],_0x5b67e4=_0x3c69b,_0x5488a6=je(_0xb0ba80),_0x3263dc=je(_0x5b67e4);_0xf6859f['return']=_0xb0ba80;let _0x7bd035=null,_0x1b55c1=null;if(_0x3263dc||_0x5488a6){if(_0x5488a6&&!_0x3263dc){_0x3168ee['remove'](_0xb0ba80['getChild'](0x0));for(const _0x167556 of Array['from'](_0x5b67e4['getChildren']()))_0x3168ee['insert'](_0x167556,_0xb0ba80,'end');const _0x213b1e=_0x452eb9['rowInsertionIndexes']['includes'](_0x14dd7d['row']),_0x26dc2d=_0x452eb9['columnInsertionIndexes']['includes'](_0x14dd7d['column']);_0x213b1e||_0x26dc2d||(_0x7bd035=_0x5e91cd['fromRange'](_0x3168ee['createRangeIn'](_0xb0ba80)));}else _0x3263dc&&!_0x5488a6&&(_0x1b55c1=_0x3168ee['createRangeIn'](_0xb0ba80));}else{const _0x389170=_0x3168ee['createElement']('tableCellSuggestion'),_0x42b744=_0x3168ee['createElement']('tableCellSuggestion');_0x3168ee['wrap'](_0x3168ee['createRangeIn'](_0xb0ba80),_0x42b744),_0x3168ee['insert'](_0x389170,_0xb0ba80,0x0);for(const _0x364872 of Array['from'](_0x5b67e4['getChildren']()))_0x3168ee['insert'](_0x364872,_0x389170,'end');_0x7bd035=_0x5e91cd['fromRange'](_0x3168ee['createRangeOn'](_0x389170)),_0x1b55c1=_0x5e91cd['fromRange'](_0x3168ee['createRangeOn'](_0x42b744));}const _0x319968=Array['from'](_0x5b67e4['getAttributes']())['filter'](([_0xa5805])=>we['includes'](_0xa5805));_0x452eb9['cells']['push']({'element':_0xb0ba80,'attributes':_0x319968['length']?Object['fromEntries'](_0x319968):null}),_0x7bd035&&_0x452eb9['insertionRanges']['push'](_0x7bd035),_0x1b55c1&&_0x452eb9['deletionRanges']['push'](_0x1b55c1);},{'priority':'high'}),_0x2eae8['on']('insertColumns',(_0x1197d7,_0x5f987a)=>{const [_0x2d4e1f,_0x25b441={}]=_0x5f987a;if(!_0x452eb9)return;const _0x27c8a8=_0x25b441['at']||0x0,_0x23e3cd=_0x25b441['columns']||0x1;_0x452eb9['columnInsertionIndexes']=new Array(_0x23e3cd)['fill'](_0x27c8a8)['map']((_0x63e090,_0xc73252)=>_0x63e090+_0xc73252);for(const {cell:_0x10f9f2}of _0x2eae8['createTableWalker'](_0x2d4e1f,{'startColumn':_0x27c8a8,'endColumn':_0x27c8a8+_0x23e3cd-0x1}))_0x452eb9['columnInsertionRanges']['push'](_0x2ff07['model']['createRangeOn'](_0x10f9f2));},{'priority':'low'}),_0x2eae8['on']('insertRows',(_0x11288b,_0x7d7f53)=>{const [_0x13800d,_0x5d4af2={}]=_0x7d7f53;if(!_0x452eb9)return;const _0x21ffe2=_0x5d4af2['at']||0x0,_0x1027e3=_0x5d4af2['rows']||0x1;_0x452eb9['rowInsertionIndexes']=new Array(_0x1027e3)['fill'](_0x21ffe2)['map']((_0x457eda,_0x5f3835)=>_0x457eda+_0x5f3835);for(const {cell:_0x2d0706}of _0x2eae8['createTableWalker'](_0x13800d,{'startRow':_0x21ffe2,'endRow':_0x21ffe2+_0x1027e3-0x1}))_0x452eb9['rowInsertionRanges']['push'](_0x2ff07['model']['createRangeOn'](_0x2d0706));},{'priority':'low'}),_0x16cb15['descriptionFactory']['registerDescriptionCallback'](_0x4d31c8=>{if(_0x4d31c8['subType']&&_0x4d31c8['subType']['startsWith']('tablePaste'))return _0x4d31c8['previous']?{}:{'type':'insertion','content':o(_0x2ff07['locale'],'*Replace\x20table\x20cells*')};});const _0x4e5093=()=>!0x1;for(const _0x13b68f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion',_0x13b68f,'join',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('deletion',_0x13b68f,'join',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13b68f,'join',_0x4e5093);_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36a19f,_0xb2bc09,_0x49846a)=>{const _0x56deaf=_0x36a19f['map'](_0x490f7e=>_0x490f7e['getContainedElement']())['filter'](_0x3deb06=>_0x3deb06),_0xd2b7ec=new Map(_0x56deaf['map'](_0x1a8b87=>[_0x1a8b87,null]));if(_0x452eb9){for(const {element:_0x49f4c1,attributes:_0x13e4c7}of _0x452eb9['cells'])_0x13e4c7&&_0xd2b7ec['set'](_0x49f4c1,_0x13e4c7);}else{if(_0x49846a&&_0x49846a['markerAttributes'])for(const [_0x4ef9bf,_0x14fc00]of Object['entries'](_0x49846a['markerAttributes'])){const _0x4471fa=_0x2ff07['model']['markers']['get'](_0x4ef9bf),_0x515fb8=_0x4471fa?_0x4471fa['getRange']()['getContainedElement']():null;_0x515fb8&&_0xd2b7ec['set'](_0x515fb8,_0x14fc00);}}_0x2ff07['model']['change'](_0x45bb4d=>{for(const [_0x23779e,_0x3c1bf0]of _0xd2b7ec)_0x45bb4d['setAttributes']({...ve,..._0x3c1bf0},_0x23779e);});});const _0x220e3f=(_0x4f5a76,_0x54825)=>{_0x16cb15['_suggestionFactory']['registerCustomCallback'](_0x4f5a76,'tablePaste',_0x54825,(_0x36fcb8,_0x329b0a,_0x27cd02)=>{_0x2ff07['model']['change'](_0xcf9b31=>{const _0x269bdf=[];for(const _0x1e7166 of _0x36fcb8){const _0x8f800=_0x1e7166['start']['nodeAfter'];_0x8f800['is']('element','tableCellSuggestion')&&_0x269bdf['push'](_0x8f800);}_0x16cb15['_suggestionFactory']['getSuggestionCallback'](_0x4f5a76,null,_0x54825)(_0x36fcb8,_0x329b0a,_0x27cd02);for(const _0x4e4058 of _0x269bdf)'$graveyard'!=_0x4e4058['root']['rootName']&&_0xcf9b31['unwrap'](_0x4e4058);});});};_0x220e3f('insertion','accept'),_0x220e3f('insertion','discard'),_0x220e3f('deletion','accept'),_0x220e3f('deletion','discard'),_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55f06d=>{const _0x5a333f=_0x55f06d['map'](_0x32cdce=>_0x32cdce['getContainedElement']()),_0x515bad=_0x5a333f[0x0]['findAncestor']('table'),{minRow:_0x40c009,maxRow:_0x3a3eb4}=_0x964c88['_getCoordsForCells'](_0x5a333f);_0x2eae8['removeRows'](_0x515bad,{'at':_0x40c009,'rows':_0x3a3eb4-_0x40c009+0x1});}),_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14681f=>{const _0x2a5fe6=_0x14681f['map'](_0xcbff80=>_0xcbff80['getContainedElement']()),_0x14833c=_0x2a5fe6[0x0]['findAncestor']('table'),{minColumn:_0x40732c,maxColumn:_0xf345ad}=_0x964c88['_getCoordsForCells'](_0x2a5fe6);_0x2eae8['removeColumns'](_0x14833c,{'at':_0x40732c,'columns':_0xf345ad-_0x40732c+0x1});});const _0xe5b99e=(_0x2bb387,_0x4ab027)=>{if(!_0x4ab027['subType']||!_0x4ab027['subType']['startsWith']('tablePaste'))return;const _0x38763b=_0x4ab027['attributes']['tablePasteChainId'],_0x3471d3=_0x16cb15['getSuggestions']()['filter'](_0x1370e8=>_0x1370e8['isInContent']&&_0x1370e8['attributes']&&_0x1370e8['attributes']['tablePasteChainId']==_0x38763b);_0x3471d3['length']&&_0x4ab027['getAllAdjacentSuggestions']()['length']!=_0x3471d3['length']&&_0x3471d3['reduce']((_0x1295b8,_0x3f97db)=>(_0x1295b8['next']=_0x3f97db,_0x3f97db['previous']=_0x1295b8,_0x3f97db));};function _0x3246bf(_0x5140a6,_0x33a5cf=!0x0){const {id:_0x1f7c8b,authorId:_0x152a09}=_0x16cb15['_splitMarkerName'](_0x5140a6['markerName']),_0x8b14b0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d321e=_0x16cb15['activeMarkers']['includes'](_0x5140a6['markerName']);return _0x2d321e&&_0x8b14b0['push']('ck-suggestion-marker--active'),{'classes':_0x8b14b0,'attributes':{'data-suggestion':_0x1f7c8b,'data-author-id':_0x152a09},'priority':_0x2d321e&&_0x33a5cf?0xbc2:0xbb8};}_0x16cb15['on']('suggestionLoaded',_0xe5b99e,{'priority':'high'}),_0x16cb15['on']('suggestionUnloaded',_0xe5b99e,{'priority':'high'}),_0x2ff07['model']['document']['registerPostFixer'](()=>{let _0x34830c=!0x1;const _0x31b780=Array['from'](_0x2ff07['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x559c40,data:_0x51aa0f}of _0x31b780){const {group:_0x14d9fd,type:_0x1b6d11,id:_0x1ba9b7}=_0x16cb15['_splitMarkerName'](_0x559c40);if('suggestion'!=_0x14d9fd||'deletion'!=_0x1b6d11||_0x51aa0f['oldRange'])continue;if(!_0x16cb15['hasSuggestion'](_0x1ba9b7))continue;const _0x3d1822=_0x16cb15['getSuggestion'](_0x1ba9b7)['getRanges'](),_0x48bab8=_0x2ff07['plugins']['get']('Users')['me'];for(const _0x16db4a of _0x16cb15['getSuggestions']()){if(!_0x16db4a['isInContent']||_0x16db4a['author']!=_0x48bab8)continue;if('formatBlock'!=_0x16db4a['type']||'tablePasteCell'!=_0x16db4a['subType'])continue;if(_0x16db4a['getRanges']()['every'](_0x59f345=>_0x3d1822['some'](_0x3bed05=>_0x3bed05['containsRange'](_0x59f345,!0x0)))){for(const _0x59f09f of _0x16db4a['getAllAdjacentSuggestions']())_0x59f09f['isInContent']&&(_0x59f09f['discard'](),_0x34830c=!0x0);}}}return _0x34830c;}),_0x2ff07['model']['document']['registerPostFixer'](_0x299001=>{const _0x2ba28c=_0x2ff07['commands']['get']('redo');if(!_0x2ba28c||!_0x2ba28c['_createdBatches']['has'](_0x299001['batch']))return!0x1;let _0x56d9eb=!0x1;const _0xdf7d4f=_0x2ff07['plugins']['get']('Users')['me'],_0x516892=_0x2ff07['model']['document']['differ']['getChanges'](),_0x10774d=Array['from'](_0x2ff07['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x57ba6c,data:_0x3f6e66})=>{const {group:_0x5bcd19,subType:_0x57d999,authorId:_0x7c53a5}=_0x16cb15['_splitMarkerName'](_0x57ba6c);return'suggestion'==_0x5bcd19&&'tablePaste'==_0x57d999&&_0x7c53a5==_0xdf7d4f['id']&&!_0x3f6e66['oldRange'];});for(const _0x1bbc35 of _0x516892){if('insert'!=_0x1bbc35['type']||'tableCellSuggestion'!=_0x1bbc35['name']||0x1!=_0x1bbc35['length'])continue;const _0x25a1ba=_0x299001['createRange'](_0x1bbc35['position'],_0x1bbc35['position']['getShiftedBy'](0x1));if(!_0x10774d['find'](({data:_0x29c696})=>_0x29c696['newRange']['isEqual'](_0x25a1ba))){for(const {name:_0x18e83,data:_0xfece87}of _0x10774d)if(_0x25a1ba['containsRange'](_0xfece87['newRange'])){_0x299001['updateMarker'](_0x18e83,{'range':_0x25a1ba}),_0x56d9eb=!0x0;break;}}}return _0x56d9eb;}),_0x2ff07['model']['document']['registerPostFixer'](_0x5aa028=>{let _0x369b61=!0x1;const _0x2bc5e8=_0x2ff07['plugins']['get']('Users')['me'],_0x249a42=_0x16cb15['getSuggestions']()['filter'](_0x3c3992=>_0x3c3992['isInContent']&&_0x3c3992['author']==_0x2bc5e8),_0x376d33=new Set(),_0x2159b4=new Set();for(const _0x1ecd58 of _0x249a42)if('tablePaste'==_0x1ecd58['subType'])for(const _0x2d571b of _0x1ecd58['getMarkers']()){const _0x59d2a0=_0x2d571b['getRange']()['getContainedElement']();if(_0x59d2a0){if(_0x59d2a0['is']('element','tableCellSuggestion')&&je(_0x59d2a0)){_0x1ecd58['removeMarker'](_0x2d571b['name']),_0x376d33['add'](_0x59d2a0),_0x369b61=!0x0;const _0x20e930=_0x59d2a0['nextSibling'],_0x2b6677=_0x59d2a0['previousSibling'],_0x3cf813=_0x20e930&&_0x20e930['is']('element','tableCellSuggestion'),_0x5df4c2=_0x2b6677&&_0x2b6677['is']('element','tableCellSuggestion');_0x3cf813&&!_0x376d33['has'](_0x20e930)&&_0x2159b4['add'](_0x20e930),_0x5df4c2&&!_0x376d33['has'](_0x2b6677)&&_0x2159b4['add'](_0x2b6677);}else _0x59d2a0['is']('element','paragraph')&&_0x59d2a0['isEmpty']&&(_0x1ecd58['removeMarker'](_0x2d571b['name']),_0x369b61=!0x0);}}else{if('tablePasteCell'==_0x1ecd58['subType']){if(!_0x1ecd58['attributes']||!_0x1ecd58['attributes']['tablePasteChainId'])continue;const _0x3a156c=_0x1ecd58['attributes']['markerAttributes'];if(_0x3a156c&&Object['keys'](_0x3a156c)['length'])continue;const _0x5d0c51=_0x1ecd58['attributes']['tablePasteChainId'];let _0x2b30ed=!0x0,_0x115058=!0x0;for(const _0x10e3e1 of _0x249a42)if(_0x10e3e1['subType']&&_0x10e3e1['subType']['startsWith']('tablePaste')){if(!_0x10e3e1['attributes']['tablePasteChainId']){_0x115058=!0x1;break;}if(_0x10e3e1['id']!=_0x1ecd58['id']&&_0x10e3e1['attributes']['tablePasteChainId']==_0x5d0c51){_0x2b30ed=!0x1;break;}}_0x115058&&_0x2b30ed&&(_0x1ecd58['removeMarkers'](),_0x369b61=!0x0);}}for(const _0x1708b6 of _0x376d33)_0x5aa028['remove'](_0x1708b6);for(const _0x23f46c of _0x2159b4)_0x5aa028['unwrap'](_0x23f46c);return _0x369b61;}),_0x2ff07['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x48c8d4=>_0x3246bf(_0x48c8d4),'converterPriority':'high'}),_0x2ff07['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x456e6f,_0x2808e2)=>_0x2808e2['options']['showSuggestionHighlights']?_0x3246bf(_0x456e6f,!0x1):null,'converterPriority':'high'});const _0x2780db=_0x2ff07['editing']['view'];this['listenTo'](_0x2780db['document'],'clipboardOutput',(_0x5446a5,_0x187c58)=>{const _0x521c7e=[];for(const _0x1ad5cb of _0x2780db['createRangeIn'](_0x187c58['content'])['getItems']())_0x1ad5cb['is']('element','suggestion-td')&&_0x521c7e['push'](_0x1ad5cb);_0x2780db['change'](_0x393b4a=>{for(const _0x49000d of _0x521c7e)_0x393b4a['move'](_0x393b4a['createRangeIn'](_0x49000d),_0x393b4a['createPositionBefore'](_0x49000d)),_0x393b4a['remove'](_0x49000d);});});}}function je(_0x5f4e4a){if(_0x5f4e4a['isEmpty'])return!0x0;const _0x426dc0=_0x5f4e4a['getChild'](0x0);return _0x426dc0['is']('element','paragraph')&&_0x426dc0['isEmpty'];}function Ae(_0x2e3de2,_0x261c51={},_0x1ab246){for(const {isAnchor:_0x2ca3d6,cellHeight:_0x29a25d,cellWidth:_0x10f401}of _0x1ab246['createTableWalker'](_0x2e3de2,{'includeAllSlots':!0x0,..._0x261c51}))if(!_0x2ca3d6||0x1!=_0x29a25d||0x1!=_0x10f401)return!0x1;return!0x0;}class Dt extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ebd39=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ebd39['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ebd39['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ebd39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ebd39['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ebd39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ebd39['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x34f205,_0x342152){const _0x54be6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x464f8e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x87fc5e=_0x342152['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x443e6f=_0x464f8e['getColumnGroupElement'](_0x87fc5e);let _0x53be65=_0x443e6f?_0x464f8e['getTableColumnsWidths'](_0x443e6f):null,_0x4b3056=_0x87fc5e['getAttribute']('tableWidth')||null;const _0x1619b1=_0x342152['tableWidth']||_0x4b3056,_0x12a38b=_0x342152['columnWidths']||_0x53be65,_0x295dce=this['editor']['plugins']['get']('Users')['me'];for(const _0x50d9e0 of _0x54be6f['getSuggestions']()){const _0x5daf03=_0x50d9e0['getContainedElement']();if('resizeTable'===_0x50d9e0['subType']&&_0x5daf03===_0x87fc5e){_0x50d9e0['author']!==_0x295dce&&_0x50d9e0['discard']();const _0x5c5f62=_0x50d9e0['data']['commandParams'];_0x4b3056=_0x5c5f62[0x0]['tableWidth'],_0x53be65=_0x5c5f62[0x0]['columnWidths'];break;}}_0x34f205({'table':_0x87fc5e,'tableWidth':_0x1619b1,'columnWidths':_0x12a38b}),_0x54be6f['markBlockFormat'](_0x87fc5e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b3056,'columnWidths':_0x53be65}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10e042){if('formatBlock'!=_0x10e042['type']&&'formatInline'!=_0x10e042['type'])return;const {data:_0x31dc5f}=_0x10e042;if(_0x31dc5f&&'resizeTable'===_0x31dc5f['formatGroupId']){const _0x4e1275='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4e1275)};}}}class Mt extends _0x579de7{['afterInit'](){const _0x1e8a54=this['editor'];_0x1e8a54['plugins']['has']('Template')&&_0x1e8a54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x579de7{['afterInit'](){const _0xd319e4=this['editor'];if(!_0xd319e4['commands']['get']('insertTableOfContents'))return;_0xd319e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x462713=_0xd319e4['plugins']['get']('TrackChangesEditing'),_0x2f16a0=_0xd319e4['locale'];_0x462713['descriptionFactory']['registerElementLabel']('tableOfContents',_0x66a682=>o(_0x2f16a0,'ELEMENT_TABLE_OF_CONTENTS',_0x66a682));}}class Bt extends _0x579de7{['afterInit'](){const _0x208662=this['editor'];if(!_0x208662['plugins']['has']('Title'))return;const _0x20ab25=_0x208662['plugins']['get']('TrackChangesEditing');_0x20ab25['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x208662['locale'],'ELEMENT_TITLE')),_0x208662['model']['document']['registerPostFixer'](_0x1fdf03=>{let _0x418480=!0x1;const _0x2fa859=Array['from'](_0x208662['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58566f,data:_0x20477c}of _0x2fa859){const {group:_0x52a76c}=_0x20ab25['_splitMarkerName'](_0x58566f);if('suggestion'!==_0x52a76c||!_0x20477c['newRange'])continue;const _0x4066ef=_0x20477c['newRange'],_0x22dc7b=_0x4066ef['end']['nodeBefore'];if(!_0x22dc7b||!_0x22dc7b['is']('element','title-content'))continue;if(!_0x4066ef['start']['isTouching'](_0x4066ef['end']))continue;const _0x2b6c34=_0x208662['model']['schema']['getNearestSelectionRange'](_0x4066ef['end'],'forward');if(_0x2b6c34&&_0x2b6c34['isCollapsed']){const _0x7bb82=_0x1fdf03['createRange'](_0x4066ef['start'],_0x2b6c34['start']);_0x7bb82['isEqual'](_0x4066ef)||(_0x1fdf03['updateMarker'](_0x58566f,{'range':_0x7bb82}),_0x418480=!0x0);}_0x418480||(_0x1fdf03['removeMarker'](_0x58566f),_0x418480=!0x0);}return _0x418480;});}}class Ot extends _0x579de7{['afterInit'](){const _0x248e3e=this['editor'],_0x33224a=_0x248e3e['plugins']['get']('TrackChangesEditing');_0x248e3e['plugins']['has']('UndoEditing')&&(_0x33224a['enableCommand']('undo'),_0x33224a['enableCommand']('redo'));}}class Rt extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x512ace=this['editor'];if(!_0x512ace['plugins']['has']('TableCaptionEditing'))return;_0x512ace['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x579de7{['tableProperties'];['tableCellProperties'];constructor(_0x11dc8b){super(_0x11dc8b),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 _0x4c0ca0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x190d97 of this['tableProperties'])_0x4c0ca0['enableCommand'](_0x190d97,(_0x385db4,_0x3d3812)=>{const _0x4e6e93=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x190d97,[_0x4e6e93],this['tableProperties'],'tableProperties',_0x385db4,_0x3d3812);});_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c0ca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x15a8ed,_0x1bbe6c)=>this['handleDiscardAction'](this['tableProperties'],_0x15a8ed,_0x1bbe6c)),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa483dd of this['tableCellProperties'])_0x4c0ca0['enableCommand'](_0xa483dd,(_0x17f002,_0x198ff5)=>{const _0x62d20f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa483dd,_0x62d20f,this['tableCellProperties'],'tableCellProperties',_0x17f002,_0x198ff5);});_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c0ca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x12c592,_0x5599e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x12c592,_0x5599e4)),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c0ca0['descriptionFactory']['registerDescriptionCallback'](_0x1b2c81=>this['handleSuggestionDescription'](_0x1b2c81));}['_handlePropertyChange'](_0x2d1c8e,_0x4dc0dd,_0x40587f,_0x3136ab,_0x214a5f,_0x33b4f0){const _0x1dee1e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x33b4f0['batch'],()=>{for(const _0x272976 of _0x4dc0dd){if(this['_getSuggestion'](_0x272976,_0x3136ab))_0x214a5f(_0x33b4f0);else{const _0x1d9f3c={};for(const _0x5074ef of _0x40587f){const _0x12d2a3=_0x272976['getAttribute'](_0x5074ef);void 0x0!==_0x12d2a3&&(_0x1d9f3c[_0x5074ef]=_0x12d2a3);}_0x214a5f(_0x33b4f0),_0x1dee1e['markBlockFormat'](_0x272976,{'commandParams':[_0x1d9f3c]},[],_0x3136ab);}}});}['handleDiscardAction'](_0x2679ca,_0x339d93,_0x53182d){const _0xed8f8a=_0x339d93[0x0]['start']['nodeAfter'],_0x4c264a=_0x53182d['commandParams'][0x0];this['editor']['model']['change'](_0x3b1bd4=>{for(const _0x5d25bc of _0x2679ca)void 0x0!==_0x4c264a[_0x5d25bc]?_0x3b1bd4['setAttribute'](_0x5d25bc,_0x4c264a[_0x5d25bc],_0xed8f8a):_0x3b1bd4['removeAttribute'](_0x5d25bc,_0xed8f8a);});}['handleSuggestionDescription'](_0xd00a3){if(_0xd00a3['data'])switch(_0xd00a3['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'](_0x46d81d,_0x2d9b30){const _0x1fc257=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x575ee5 of _0x1fc257['getSuggestions']({'skipNotAttached':!0x0})){const _0xcbc798=_0x575ee5['getContainedElement']();if(_0x575ee5['subType']===_0x2d9b30&&_0xcbc798===_0x46d81d)return _0x575ee5;}return null;}}const m='$elementName';class p extends _0x579de7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21ad1e,_0x47000f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb363a){super(_0xeb363a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x331b60,_0x1e1f2f,_0x583b9a,_0x21db5a)=>{this['_model']['change'](()=>{for(const _0x75392e of[..._0x21db5a,..._0x583b9a])this['_model']['markers']['has'](_0x75392e)&&_0xeb363a['editing']['reconvertMarker'](_0x75392e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xeb363a['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(),_0xeb363a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xeb363a['config']['get']('trackChanges.trackFormatChanges'),_0xeb363a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xeb363a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xeb363a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4e4709=this['editor'],_0x42220d=(_0x5ab193,_0x21073c)=>{if('attribute'!=_0x5ab193)return'ck-suggestion-marker-'+_0x5ab193;const _0x57d788=_0x21073c['split']('|')[0x0];return this['_isBlockAttribute'](_0x57d788)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e4709['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5c934f=>{const {id:_0x1b2097,authorId:_0xee52c1,type:_0x418d74,subType:_0x5b060a}=this['_splitMarkerName'](_0x5c934f['markerName']),_0x1a0bbd=['ck-suggestion-marker',_0x42220d(_0x418d74,_0x5b060a)];let _0x2ffbf1=0xbb8;return this['activeMarkers']['includes'](_0x5c934f['markerName'])&&(_0x1a0bbd['push']('ck-suggestion-marker--active'),_0x2ffbf1=0xbc2),'deletion'==_0x418d74&&(_0x2ffbf1+=0x5),{'classes':_0x1a0bbd,'attributes':{'data-suggestion':_0x1b2097,'data-author-id':_0xee52c1},'priority':_0x2ffbf1};}}),_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x2ae98b=>{_0x2ae98b['on']('addMarker:suggestion',(_0x229431,_0x12698a,_0x630c53)=>{if(!_0x630c53['options']['showSuggestionHighlights'])return;const _0x342454=_0x12698a['item'];if(!_0x342454)return;const _0x1e6809=_0x630c53['mapper']['toViewElement'](_0x342454);_0x4e4709['model']['schema']['isObject'](_0x342454)&&_0x1e6809&&!_0x1e6809['getCustomProperty']('widget')&&_0x1e6809['is']('containerElement')&&_0x5d2810(_0x1e6809,_0x630c53['writer']);},{'priority':'high'});}),_0x4e4709['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x313694,_0x189867)=>{if(!_0x189867['options']['showSuggestionHighlights'])return null;const {type:_0x5471d4,subType:_0x566719}=this['_splitMarkerName'](_0x313694['markerName']);return{'classes':['ck-suggestion-marker',_0x42220d(_0x5471d4,_0x566719)],'priority':0xbb8};}});const _0x41d6e4=({showActiveMarkers:_0x2084f8=!0x0,isAttributeSuggestion:_0x242203=!0x1}={})=>(_0x54cec0,_0x45329f,_0x578b6d)=>{if(!_0x45329f['item'])return;const {id:_0x9deffe,authorId:_0x431d7c}=this['_splitMarkerName'](_0x45329f['markerName']);if(_0x242203){const _0x117cc3=this['_suggestions']['get'](_0x9deffe),_0x513bf7=this['_getAttributeKey'](_0x117cc3);if(!this['_isBlockAttribute'](_0x513bf7))return;}if(_0x45329f['item']['is']('selection'))return void _0x578b6d['consumable']['consume'](_0x45329f['item'],_0x54cec0['name']);const _0x2782c7=_0x578b6d['mapper']['toViewElement'](_0x45329f['item']);if(_0x45329f['item']['is']('element')&&_0x4e4709['model']['schema']['isBlock'](_0x45329f['item'])&&!_0x2782c7['getCustomProperty']('addHighlight')){_0x578b6d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2782c7),_0x578b6d['writer']['setAttribute']('data-suggestion',_0x9deffe,_0x2782c7),_0x578b6d['writer']['setAttribute']('data-author-id',_0x431d7c,_0x2782c7),_0x578b6d['mapper']['bindElementToMarker'](_0x2782c7,_0x45329f['markerName']),_0x2084f8&&(this['activeMarkers']['includes'](_0x45329f['markerName'])?_0x578b6d['writer']['addClass']('ck-suggestion-marker--active',_0x2782c7):_0x578b6d['writer']['removeClass']('ck-suggestion-marker--active',_0x2782c7));for(const _0x471e5b of _0x4e4709['model']['createRangeIn'](_0x45329f['item'])['getItems']())_0x578b6d['consumable']['consume'](_0x471e5b,_0x54cec0['name']);_0x578b6d['consumable']['consume'](_0x45329f['item'],_0x54cec0['name']);}};_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x290238=>{_0x290238['on']('addMarker:suggestion:formatBlock',(_0x236e71,_0x51c182,_0x220f90)=>{_0x220f90['options']['showSuggestionHighlights']&&_0x41d6e4({'showActiveMarkers':!0x1})(_0x236e71,_0x51c182,_0x220f90);},{'priority':'highest'});}),_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x532a70=>{_0x532a70['on']('addMarker:suggestion:attribute',(_0x2b9816,_0x5591b4,_0x910a16)=>{_0x910a16['options']['showSuggestionHighlights']&&_0x41d6e4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b9816,_0x5591b4,_0x910a16);},{'priority':'highest'});}),_0x4e4709['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e0bdc,_0xdd943b)=>_0xdd943b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e0bdc['substr'](0xb)}}),_0x4e4709['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5144fd,{writer:_0x60e8b4})=>{let _0x2f7bf2='suggestion:'+_0x5144fd['getAttribute']('suggestion-type')+':'+_0x5144fd['getAttribute']('id');return _0x5144fd['getAttribute']('marker-count')&&(_0x2f7bf2+=':'+_0x5144fd['getAttribute']('marker-count')),_0x60e8b4['createElement']('$marker',{'data-name':_0x2f7bf2});}}),_0x4e4709['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x4c6bb2=>{_0x4c6bb2['on']('addMarker:suggestion:formatBlock',_0x41d6e4(),{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x27df63=>{_0x27df63['on']('addMarker:suggestion:attribute',_0x41d6e4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x1e7c15=>{_0x1e7c15['on']('removeMarker:suggestion:formatBlock',(_0x1ebe77,_0x37d548,_0x2e4590)=>{const _0x35e839=_0x2e4590['mapper']['markerNameToElements'](_0x37d548['markerName']);if(_0x35e839){for(const _0x19cea8 of _0x35e839)_0x19cea8['getCustomProperty']('addHighlight')||(_0x2e4590['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19cea8),_0x2e4590['writer']['removeAttribute']('data-suggestion',_0x19cea8),_0x2e4590['writer']['removeAttribute']('data-author-id',_0x19cea8),_0x2e4590['mapper']['unbindElementFromMarkerName'](_0x19cea8,_0x37d548['markerName']));}},{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x1b768c=>{_0x1b768c['on']('removeMarker:suggestion:attribute',(_0x1252f1,_0x5a67cd,_0x18eeab)=>{const _0xc46ff3=_0x18eeab['mapper']['markerNameToElements'](_0x5a67cd['markerName']);if(!_0xc46ff3)return;const {id:_0x49c41a}=this['_splitMarkerName'](_0x5a67cd['markerName']),_0x509435=this['_suggestions']['get'](_0x49c41a),_0x4e39c8=this['_getAttributeKey'](_0x509435);if(this['_isBlockAttribute'](_0x4e39c8)){for(const _0x1e63cf of _0xc46ff3)_0x1e63cf['getCustomProperty']('addHighlight')||(_0x18eeab['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e63cf),_0x18eeab['writer']['removeAttribute']('data-suggestion',_0x1e63cf),_0x18eeab['writer']['removeAttribute']('data-author-id',_0x1e63cf),_0x18eeab['mapper']['unbindElementFromMarkerName'](_0x1e63cf,_0x5a67cd['markerName']));}},{'priority':'high'});}),_0x4e4709['model']['document']['registerPostFixer'](_0x24d553=>{let _0x19e657=!0x1;const _0xb128a0=Array['from'](_0x4e4709['model']['document']['differ']['getChangedMarkers']()),_0x389bdf=new Set();for(const {name:_0x37f6a8,data:_0x1dd7c8}of _0xb128a0){const {group:_0x2be0bb,type:_0x1878f4,subType:_0x4bbeac,id:_0x48925e}=this['_splitMarkerName'](_0x37f6a8);if('suggestion'!==_0x2be0bb)continue;const _0x531242=this['_suggestions']['get'](_0x48925e);if(null!=_0x1dd7c8['newRange']){'formatInline'==_0x1878f4&&(_0x19e657=_0x19e657||Pt(_0x1dd7c8['newRange'],_0x37f6a8,_0x24d553,_0x4e4709['model']['schema']));const _0x5d03fa='attribute'==_0x1878f4&&this['_isBlockAttribute'](_0x4bbeac['split']('|')[0x0]);if(_0x1dd7c8['newRange']['isCollapsed']||'$graveyard'==_0x1dd7c8['newRange']['root']['rootName']||'formatBlock'==_0x1878f4&&!Ft(_0x1dd7c8['newRange'])||_0x5d03fa&&!Ft(_0x1dd7c8['newRange'])||'deletion'==_0x1878f4&&!(!Vt(_0x48d9db=_0x1dd7c8['newRange'])&&!function(_0x21ca12){return _0x21ca12['start']['parent']==_0x21ca12['end']['nodeBefore']&&_0x21ca12['start']['isAtEnd'];}(_0x48d9db)))_0x24d553['removeMarker'](_0x37f6a8),_0x19e657=!0x0;else{if(!_0x531242||!_0x531242['isInContent'])continue;if(_0x1dd7c8['newRange']&&_0x1dd7c8['oldRange']&&_0x1dd7c8['newRange']['isEqual'](_0x1dd7c8['oldRange']))continue;_0x389bdf['add'](_0x531242);}}}var _0x48d9db;return _0x389bdf['size']>0x0&&(_0x19e657=!!this['_joinWithAdjacentSuggestions'](_0x389bdf)||_0x19e657),_0x19e657;}),_0x4e4709['model']['document']['registerPostFixer'](_0x343648=>{let _0xf70457=!0x1;for(const _0x38a75b of _0x4e4709['model']['document']['differ']['getChanges']())if('insert'==_0x38a75b['type'])for(const _0x5d6222 of this['_suggestions']['values']()){if(_0x5d6222['isMultiRange']||!_0x5d6222['isInContent'])continue;const _0x78dda9='formatBlock'==_0x5d6222['type'],_0x4911f9=this['_getAttributeKey'](_0x5d6222),_0x4f6adf=_0x4911f9&&this['_isBlockAttribute'](_0x4911f9);if(!_0x78dda9&&!_0x4f6adf)continue;const _0x510293=_0x5d6222['getFirstRange']();if(_0x510293['start']['parent']!=_0x510293['end']['parent']&&!_0x510293['end']['isAtEnd']){const _0x55e509=_0x4e4709['model']['createPositionAt'](_0x510293['start']['nodeAfter'],'end'),_0x327599=_0x4e4709['model']['createRange'](_0x510293['start'],_0x55e509);_0x343648['updateMarker'](_0x5d6222['getFirstMarker'](),{'range':_0x327599}),_0xf70457=!0x0;}}return _0xf70457;}),_0x4e4709['model']['document']['registerPostFixer'](_0x1cbe14=>this['_processAttributeChanges'](_0x1cbe14)),_0x4e4709['model']['document']['registerPostFixer'](_0x56b0cd=>!_0x56b0cd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56b0cd)),_0x4e4709['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e4709['model']['document']['on']('change:data',(_0x4da6ff,_0x5e1c10)=>{if(!_0x5e1c10['isLocal']||_0x5e1c10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x282b06=_0x4e4709['model']['document']['differ']['getChanges']();if(0x0==_0x282b06['length'])return;const _0x9b837c=[],_0x192005=_0x282b06['filter'](_0x286432=>'attribute'==_0x286432['type']),_0x5a1635=_0x282b06['filter'](_0x2e2616=>'insert'==_0x2e2616['type']&&'$text'!=_0x2e2616['name']);for(const _0xd006d4 of _0x192005)this['_isRegisteredAttribute'](_0xd006d4['attributeKey'])&&_0x9b837c['push']({'key':_0xd006d4['attributeKey'],'newValue':_0xd006d4['attributeNewValue'],'oldValue':_0xd006d4['attributeOldValue'],'range':Lt(_0xd006d4['range'],_0x4e4709['model'])});for(const _0x4acffa of _0x5a1635){if('rename'!=_0x4acffa['action']&&'refresh'!=_0x4acffa['action'])continue;const _0x13b445=Jt(_0x4acffa['position']['nodeAfter'],_0x4e4709['model']),_0x2b29a8=_0x4acffa['before'];'rename'==_0x4acffa['action']&&_0x9b837c['push']({'key':m,'newValue':_0x4acffa['name'],'oldValue':_0x2b29a8['name'],'range':_0x13b445});for(const [_0x513077,_0x35363d]of _0x2b29a8['attributes']){if(!this['_isRegisteredAttribute'](_0x513077))continue;const _0x47cb11=_0x4acffa['attributes']['get'](_0x513077);_0x35363d!==_0x47cb11&&_0x9b837c['push']({'key':_0x513077,'newValue':_0x47cb11,'oldValue':_0x35363d,'range':_0x13b445});}for(const [_0xbf99fc,_0x2b10f3]of _0x4acffa['attributes'])this['_isRegisteredAttribute'](_0xbf99fc)&&(_0x2b29a8['attributes']['has'](_0xbf99fc)||_0x9b837c['push']({'key':_0xbf99fc,'newValue':_0x2b10f3,'oldValue':null,'range':_0x13b445}));}0x0!=_0x9b837c['length']&&_0x4e4709['model']['enqueueChange'](_0x5e1c10,_0x184c8e=>{const _0x2c9faa=_0x303cc5();for(const {range:_0x445d91,key:_0x4eae64,oldValue:_0x4281e8,newValue:_0x540b2d}of _0x9b837c)this['markAttributeChange'](_0x445d91,_0x4eae64,_0x4281e8,_0x540b2d,{'groupId':_0x2c9faa});this['_reduceExistingSuggestions'](_0x184c8e,_0x9b837c);});},{'priority':'lowest'}),_0x4e4709['model']['markers']['on']('update:suggestion',(_0x243910,_0x1d06bc,_0x3d1085)=>{if(null==_0x3d1085){const {id:_0x415ac2}=this['_splitMarkerName'](_0x1d06bc['name']),_0x37349c=this['_suggestions']['get'](_0x415ac2);_0x37349c&&_0x37349c['addMarkerName'](_0x1d06bc['name']);}}),_0x4e4709['model']['document']['on']('change:data',()=>{const _0x1af29c=Array['from'](_0x4e4709['model']['document']['differ']['getChangedMarkers']())['filter'](_0x373835=>'suggestion'===this['_splitMarkerName'](_0x373835['name'])['group']);if(0x0===_0x1af29c['length'])return;_0x1af29c['sort']((_0x5400a4,_0x49238e)=>{const _0x171fa0=_0x5400a4['data']['oldRange'],_0x4594cb=_0x49238e['data']['oldRange'];return null===_0x171fa0&&null===_0x4594cb?0x0:null===_0x171fa0&&null!==_0x4594cb?-0x1:null!==_0x171fa0&&null===_0x4594cb?0x1:_0x171fa0['start']['isBefore'](_0x4594cb['start'])?-0x1:0x1;});const _0x41e0c1=new Set(),_0x4a4d7f=new Set();for(const {name:_0x117d8d,data:_0x1bcb8f}of _0x1af29c){const {id:_0x5e057b}=this['_splitMarkerName'](_0x117d8d);if(null===_0x1bcb8f['oldRange']){const _0x47b8b6=this['_handleNewSuggestionMarker'](_0x117d8d);_0x4a4d7f['add'](_0x47b8b6);}else{const _0x2d1195=this['_suggestions']['get'](_0x5e057b);null!==_0x1bcb8f['newRange']||_0x2d1195['isInContent']?(_0x41e0c1['add'](_0x2d1195['head']),_0x4a4d7f['add'](_0x2d1195)):this['_removeSuggestion'](_0x2d1195);}}_0x4a4d7f['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a4d7f);for(const _0x53c08c of _0x41e0c1)this['fire']('suggestionChanged',_0x53c08c);}),_0x4e4709['model']['on']('applyOperation',(_0x481ba2,_0x25746a)=>{const _0x3c5f46=_0x25746a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3c5f46['isDocumentOperation'])return;if(_0x3c5f46['batch']['isUndo']||!_0x3c5f46['batch']['isLocal'])return;let _0x2e7ad2,_0x41f401;switch(_0x3c5f46['type']){case'insert':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['position']),_0x41f401=_0x2e7ad2['getShiftedBy'](_0x3c5f46['howMany']);break;case'split':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['splitPosition']),_0x41f401=_0x4e4709['model']['createPositionAt'](_0x3c5f46['moveTargetPosition']);break;case'move':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['targetPosition']),_0x41f401=_0x2e7ad2['getShiftedBy'](_0x3c5f46['howMany']);break;default:return;}const _0x5af75f=_0x4e4709['model']['createRange'](_0x2e7ad2,_0x41f401);_0x4e4709['model']['change'](()=>{for(const {suggestion:_0x28737b,meta:_0x2a8b50}of this['_findSuggestions'](_0x5af75f)){if(_0x28737b['isMultiRange'])continue;if('formatInline'==_0x28737b['type'])continue;const _0x4411f4=this['_getAttributeKey'](_0x28737b);if(_0x4411f4&&this['_isBlockAttribute'](_0x4411f4)&&'split'!=_0x3c5f46['type'])continue;const _0x558a91=_0x28737b['data']&&_0x28737b['data']['multipleBlocks'];('formatBlock'!=_0x28737b['type']||'split'==_0x3c5f46['type']&&!_0x558a91)&&(_0x2a8b50['containsRangeInObject']||'insertion'==_0x28737b['type']&&_0x2a8b50['isOwn']||_0x28737b['getFirstRange']()['containsRange'](_0x5af75f)&&this['_breakSuggestionMarker'](_0x28737b,_0x2e7ad2,_0x41f401));}});},{'priority':'lowest'}),_0x4e4709['model']['on']('deleteContent',(_0x50e776,_0x2c0c6f)=>{const _0x26cb72=_0x2c0c6f[0x0],_0x221d8c=_0x2c0c6f[0x1];if(_0x221d8c&&_0x221d8c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26cb72['isCollapsed'])return;const _0x56c902=_0x4e4709['model']['schema'],{start:_0x1ae96b,end:_0x50f3dc}=_0x26cb72['getFirstRange'](),_0x1d7cb3=_0x1ae96b['nodeAfter']&&_0x56c902['isLimit'](_0x1ae96b['nodeAfter'])?null:_0x56c902['getNearestSelectionRange'](_0x1ae96b,'forward'),_0x2e849c=_0x50f3dc['nodeBefore']&&_0x56c902['isLimit'](_0x50f3dc['nodeBefore'])?null:_0x56c902['getNearestSelectionRange'](_0x50f3dc,'backward'),_0x1753cd=_0x4e4709['model']['createRange'](_0x1d7cb3?_0x1d7cb3['start']:_0x1ae96b,_0x2e849c?_0x2e849c['end']:_0x50f3dc);_0x4e4709['model']['change'](_0x1ef78d=>{this['markDeletion'](_0x1753cd);const _0x3a297a=_0x4e4709['model']['schema']['getNearestSelectionRange'](_0x1753cd['start']);_0x26cb72['is']('documentSelection')?_0x1ef78d['setSelection'](_0x3a297a):_0x26cb72['setTo'](_0x3a297a);}),_0x50e776['stop']();},{'priority':_0x4f4b43['normal']+0xa}),_0x4e4709['model']['on']('insertContent',(_0x2d1139,_0x1e9390)=>{const _0x1877a1=_0x1e9390[_0x1e9390['length']-0x1];_0x1877a1&&_0x1877a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e4709['model']['change'](()=>{let _0x1dbb04=_0x4e4709['model']['insertContent'](_0x1e9390[0x0],_0x1e9390[0x1],_0x1e9390[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dbb04)return;_0x2d1139['return']=_0x1dbb04['clone']();const _0xbbf45b=_0x1dbb04['end']['nodeBefore'],_0x336291=_0x4e4709['model']['schema'];_0xbbf45b&&_0x336291['isBlock'](_0xbbf45b)&&!_0x336291['isObject'](_0xbbf45b)&&(_0x1dbb04=_0x4e4709['model']['createRange'](_0x1dbb04['start'],_0x4e4709['model']['createPositionAt'](_0xbbf45b,'end'))),this['markInsertion'](_0x1dbb04);}),_0x2d1139['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1949d7=new O(_0x4e4709,this['_suggestions']);_0x4e4709['commands']['add']('acceptSuggestion',_0x1949d7),this['enableCommand']('acceptSuggestion');const _0x4117c4=new R(_0x4e4709,this['_suggestions']);_0x4e4709['commands']['add']('discardSuggestion',_0x4117c4),this['enableCommand']('discardSuggestion'),_0x4e4709['commands']['add']('acceptAllSuggestions',new x(_0x4e4709,_0x1949d7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e4709['commands']['add']('discardAllSuggestions',new x(_0x4e4709,_0x4117c4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e4709['commands']['add']('acceptSelectedSuggestions',new E(_0x4e4709,_0x1949d7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e4709['commands']['add']('discardSelectedSuggestions',new E(_0x4e4709,_0x4117c4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b2851=_0x4e4709['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b2851,'addComment',(_0x5190c5,{threadId:_0x2fbbb1})=>{const _0x13c042=this['_suggestions']['get'](_0x2fbbb1);_0x13c042&&_0x13c042['commentThread']&&0x1===_0x13c042['commentThread']['length']&&this['_updateSuggestionData'](_0x2fbbb1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b2851,'removeComment',(_0x2575e0,{threadId:_0x31e9ec})=>{const _0x534f7e=this['_suggestions']['get'](_0x31e9ec);_0x534f7e&&_0x534f7e['commentThread']&&!_0x534f7e['commentThread']['length']&&this['_updateSuggestionData'](_0x31e9ec,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4cfc1a){const _0x45c7a5=_0x5eaa86([0x62,0x4e,0x6d,0x6a,0x68,0x5a,0x6f,0x6b,0x42,0x53,0x4d,0x56,0x4f,0x4c,0x70,0x49,0x36,0x51,0x41,0x34,0x7a,0x52,0x71,0x69,0x44,0x30,0x75,0x6c,0x32,0x74,0x45,0x72,0x55,0x59,0x46,0x57,0x43,0x4b,0x78,0x58,0x48,0x31,0x50,0x73,0x67,0x76,0x33,0x37,0x4a,0x47,0x66,0x39,0x77,0x35,0x65,0x61,0x6e,0x63,0x38,0x64,0x54,0x79]),_0x5ffedb=0x573cc558,_0x4fe33a=0x573b9d70^_0x5ffedb,_0x3d83fa=window[_0x5eaa86([0x44,0x61,0x74,0x65])][_0x5eaa86([0x6e,0x6f,0x77])](),_0x517ac0=_0x4cfc1a[_0x5eaa86([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x585472=new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187813=>{_0x517ac0[_0x5eaa86([0x6f,0x6e,0x63,0x65])](_0x5eaa86([0x72,0x65,0x61,0x64,0x79]),_0x187813);}),_0x48b267={[_0x5eaa86([0x6b,0x74,0x79])]:_0x5eaa86([0x45,0x43]),[_0x5eaa86([0x75,0x73,0x65])]:_0x5eaa86([0x73,0x69,0x67]),[_0x5eaa86([0x63,0x72,0x76])]:_0x5eaa86([0x50,0x2d,0x32,0x35,0x36]),[_0x5eaa86([0x78])]:_0x5eaa86([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]),[_0x5eaa86([0x79])]:_0x5eaa86([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]),[_0x5eaa86([0x61,0x6c,0x67])]:_0x5eaa86([0x45,0x53,0x32,0x35,0x36])},_0x3f4835=_0x517ac0[_0x5eaa86([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5eaa86([0x67,0x65,0x74])](_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41f207(){let _0x33acb0,_0x236490=null,_0x137fb1=null;try{if(_0x3f4835==_0x5eaa86([0x47,0x50,0x4c]))return _0x5eaa86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33acb0=_0x5410d1(),!_0x33acb0)return _0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33acb0[_0x5eaa86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x137fb1=_0x591869(_0x33acb0[_0x5eaa86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33acb0[_0x5eaa86([0x6a,0x74,0x69])])),await _0x27a884()?_0x519ff6()?_0x58263d()?_0x5eaa86([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26b6d3()?(_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x236490=_0x35a924(_0x5eaa86([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x74,0x72,0x69,0x61,0x6c])&&(_0x236490=_0x35a924(_0x5eaa86([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x236490=_0x35a924(_0x5eaa86([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36d0c1()):_0x5eaa86([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5eaa86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b71c1){return _0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58263d(){const _0x409d0e=[_0x5eaa86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5eaa86([0x74,0x72,0x69,0x61,0x6c])][_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d83fa/0x3e8:0xe10*_0x4fe33a;return _0x33acb0[_0x5eaa86([0x65,0x78,0x70])]<_0x409d0e;}function _0x519ff6(){const _0x5a09c4=_0x33acb0[_0x5eaa86([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5a09c4&&(!!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x2a]))||(!!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x54,0x43]))||!(!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x52,0x54,0x43]))||!_0x28c48d())));}function _0x26b6d3(){const _0x31ff6d=_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31ff6d||0x0==_0x31ff6d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x71ab3e}=new URL(window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31ff6d[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71ab3e))return!0x0;const _0x4f835a=_0x71ab3e[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e]));return _0x31ff6d[_0x5eaa86([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33c632=>_0x33c632[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x2a])))[_0x5eaa86([0x6d,0x61,0x70])](_0x4622dd=>_0x4622dd[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e])))[_0x5eaa86([0x73,0x6f,0x6d,0x65])](_0x292f5a=>_0x4f835a[_0x5eaa86([0x65,0x76,0x65,0x72,0x79])]((_0x355606,_0x33d10e)=>_0x292f5a[_0x33d10e]===_0x355606||_0x292f5a[_0x33d10e]===_0x5eaa86([0x2a])));}function _0x36d0c1(){return _0x236490&&_0x137fb1?new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b71ce,_0x30018e)=>{_0x236490[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x5b71ce,_0x30018e),_0x137fb1[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x548132=>{_0x548132!=_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])&&_0x5b71ce(_0x548132);},_0x30018e);}):_0x236490||_0x137fb1||_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]);}}function _0x591869(_0x49b147,_0x1fda81){return new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x484c25=>{if(_0x4ad6d7())return _0x484c25(_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]));_0x523624(),_0x517ac0[_0x5eaa86([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4645e5=!0x1;const _0x552dd1=_0x303cc5();function _0x21babc(_0x51595e){return!!_0x51595e&&(typeof _0x51595e===_0x5eaa86([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51595e===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51595e[_0x5eaa86([0x74,0x68,0x65,0x6e])]===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51595e[_0x5eaa86([0x63,0x61,0x74,0x63,0x68])]===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5db7a0(_0x83f634){_0x279937(_0x83f634)[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2ce63f=>{if(!_0x2ce63f||_0x2ce63f[_0x5eaa86([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5eaa86([0x6f,0x6b]))return _0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x109f22(_0x51bd56(_0x552dd1+_0x1fda81))!=_0x2ce63f[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]);})[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2c9565=>(_0x49e575(),_0x2c9565),()=>{const _0x552a81=_0x2504f5();return null==_0x552a81?(_0x49e575(),_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])):_0x5eaa86(_0x3d83fa-_0x552a81>(0x73304158^_0x5ffedb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x484c25)[_0x5eaa86([0x63,0x61,0x74,0x63,0x68])](()=>{_0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37efa4=0x570a2bd8^_0x5ffedb;function _0x49e575(){const _0x4bdf19=_0x5eaa86([0x6c,0x6c,0x63,0x74,0x2d])+_0x109f22(_0x51bd56(_0x49b147)),_0x376355=_0x3dd064(_0x109f22(window[_0x5eaa86([0x4d,0x61,0x74,0x68])][_0x5eaa86([0x63,0x65,0x69,0x6c])](_0x3d83fa/_0x37efa4)));window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eaa86([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bdf19,_0x376355);}function _0x2504f5(){const _0xeb875a=_0x5eaa86([0x6c,0x6c,0x63,0x74,0x2d])+_0x109f22(_0x51bd56(_0x49b147)),_0x44a46d=window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eaa86([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeb875a);return _0x44a46d?window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd064(_0x44a46d),0x10)*_0x37efa4:null;}function _0x279937(_0x15f7be){return new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c50a3,_0x2a06bd)=>{_0x15f7be[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2c50a3,_0x2a06bd),window[_0x5eaa86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a06bd,0x573d1198^_0x5ffedb);});}}_0x517ac0[_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a16df,_0x35f885)=>{if(_0x35f885[0x0]!=_0x49b147)return _0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35f885[0x1]={..._0x35f885[0x1],[_0x5eaa86([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x552dd1};},{[_0x5eaa86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eaa86([0x68,0x69,0x67,0x68])}),_0x517ac0[_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a69bc=>{_0x21babc(_0x1a69bc[_0x5eaa86([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4645e5=!0x0,_0x5db7a0(_0x1a69bc[_0x5eaa86([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5eaa86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eaa86([0x6c,0x6f,0x77])}),_0x585472[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>{_0x4645e5||_0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ad6d7(){return _0x517ac0[_0x5eaa86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eaa86([0x76,0x69,0x65,0x77])][_0x5eaa86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5eaa86([0x61,0x75,0x74,0x6f]);}function _0x523624(){_0x517ac0[_0x5eaa86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eaa86([0x76,0x69,0x65,0x77])][_0x5eaa86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5eaa86([0x61,0x75,0x74,0x6f]);}}function _0x35a924(_0x5d3978){const _0x5bdec2=[new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x414009=>setTimeout(_0x414009,0x5735fb94^_0x5ffedb)),_0x585472[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e67c0=>{let _0x14c192=0x0;_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd65dc2,_0x5c8de3)=>{_0x5c8de3[0x0][_0x5eaa86([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14c192++,_0x14c192==(0x573cc4a0^_0x5ffedb)&&(_0x3e67c0(),_0xd65dc2[_0x5eaa86([0x6f,0x66,0x66])]());});}))];return window[_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5eaa86([0x72,0x61,0x63,0x65])](_0x5bdec2)[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>_0x5d3978);}async function _0x57dcf5(){await _0x585472,_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x307c0f,_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x307c0f,_0x517ac0[_0x5eaa86([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28c48d(){return _0x4b6f58(_0x5eaa86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29a8e6(_0x5eaa86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5eaa86([0x73,0x74,0x61,0x74,0x65])]==_0x5eaa86([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x923eff(_0xe95e6){const _0x2d11b7=_0x63ce69();_0x517ac0[_0x2d11b7]=_0x5eaa86([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe95e6,_0xe95e6!=_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])&&_0x57dcf5();}function _0x63ce69(){const _0x290245=window[_0x5eaa86([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5eaa86([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5eaa86([0x6e,0x6f,0x77])]())[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5eaa86([0x2e]),'');let _0x2da454=_0x5eaa86([0x62]);for(let _0x99fc36=0x0;_0x99fc36<_0x290245[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x99fc36+=0x2){let _0x40867e=window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x290245[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x99fc36,_0x99fc36+0x2));_0x40867e>=_0x45c7a5[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40867e-=_0x45c7a5[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2da454+=_0x45c7a5[_0x40867e];}return _0x2da454;}function _0x5410d1(){const _0x586b31=_0x3f4835[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e]));if(0x3!=_0x586b31[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8149a4(_0x586b31[0x1]);function _0x8149a4(_0x2d1be9){const _0x5b5890=_0x58463a(_0x2d1be9);return _0x5b5890&&_0x1da8f0()?_0x5b5890:null;function _0x1da8f0(){const _0x22a06d=_0x5b5890[_0x5eaa86([0x6a,0x74,0x69])],_0x329f9f=window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22a06d[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22a06d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5571db={..._0x5b5890,[_0x5eaa86([0x6a,0x74,0x69])]:_0x22a06d[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22a06d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5571db[_0x5eaa86([0x76,0x63])],_0x51bd56(_0x5571db)==_0x329f9f;}}}async function _0x27a884(){let _0x296544=!0x0;try{const _0x473e4=_0x3f4835[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e])),[_0x59b872,_0x260457,_0x3f22f1]=_0x473e4;return _0x2dcb7f(_0x59b872),await _0x1b397a(_0x59b872,_0x260457,_0x3f22f1),_0x296544;}catch(_0x531f1f){return!0x1;}function _0x2dcb7f(_0x12e27a){const _0x353863=_0x58463a(_0x12e27a);_0x353863&&_0x353863[_0x5eaa86([0x61,0x6c,0x67])]==_0x5eaa86([0x45,0x53,0x32,0x35,0x36])||(_0x296544=!0x1);}async function _0x1b397a(_0x392b4d,_0x219cfe,_0x346e7c){const _0xf94005=window[_0x5eaa86([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5eaa86([0x66,0x72,0x6f,0x6d])](_0x154722(_0x346e7c),_0x3a8a7c=>_0x3a8a7c[_0x5eaa86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b9455=new window[(_0x5eaa86([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5eaa86([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392b4d+_0x5eaa86([0x2e])+_0x219cfe),_0x4887b2=window[_0x5eaa86([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5eaa86([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4887b2)return;const _0x70cba3=await _0x4887b2[_0x5eaa86([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5eaa86([0x6a,0x77,0x6b]),_0x48b267,{[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x45,0x43,0x44,0x53,0x41]),[_0x5eaa86([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5eaa86([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4887b2[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x45,0x43,0x44,0x53,0x41]),[_0x5eaa86([0x68,0x61,0x73,0x68])]:{[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x70cba3,_0xf94005,_0x5b9455)||(_0x296544=!0x1);}}function _0x58463a(_0x2bfc7c){return _0x2bfc7c[_0x5eaa86([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5eaa86([0x65,0x79]))?JSON[_0x5eaa86([0x70,0x61,0x72,0x73,0x65])](_0x154722(_0x2bfc7c)):null;}function _0x154722(_0x3e4157){return window[_0x5eaa86([0x61,0x74,0x6f,0x62])](_0x3e4157[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5eaa86([0x2b]))[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5eaa86([0x2f])));}function _0x51bd56(_0x4b01ef){let _0x15ed66=0x1505;function _0x51fd92(_0x228901){for(let _0x19d45e=0x0;_0x19d45e<_0x228901[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19d45e++){const _0x576daa=_0x228901[_0x5eaa86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19d45e);_0x15ed66=(_0x15ed66<<0x5)+_0x15ed66+_0x576daa,_0x15ed66&=_0x15ed66;}}function _0xfc89ec(_0x48a1fb){Array[_0x5eaa86([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48a1fb)?_0x48a1fb[_0x5eaa86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfc89ec):_0x48a1fb&&typeof _0x48a1fb==_0x5eaa86([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5eaa86([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48a1fb)[_0x5eaa86([0x73,0x6f,0x72,0x74])]()[_0x5eaa86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa70a5e,_0x2aa9ce])=>{_0x51fd92(_0xa70a5e),_0xfc89ec(_0x2aa9ce);}):_0x51fd92(window[_0x5eaa86([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48a1fb));}return _0xfc89ec(_0x4b01ef),_0x15ed66>>>0x0;}function _0x109f22(_0x2b05d1){return _0x2b05d1[_0x5eaa86([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5eaa86([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5eaa86([0x30]));}function _0x3dd064(_0x872270){return _0x872270[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5eaa86([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5eaa86([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b6f58(_0x31c026){return _0x517ac0[_0x5eaa86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5eaa86([0x68,0x61,0x73])](_0x31c026);}function _0x29a8e6(_0x163951){return _0x517ac0[_0x5eaa86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5eaa86([0x67,0x65,0x74])](_0x163951);}function _0x307c0f(){}function _0x5eaa86(_0x4be25e){return _0x4be25e['map'](_0x346184=>String['fromCharCode'](_0x346184))['join']('');}_0x923eff(await _0x41f207());}(this);}set['adapter'](_0x1f4a03){if(this['_adapter'])throw new _0x1c1a8a('track-changes-adapter-already-set',this);this['_adapter']=_0x1f4a03;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3652eb=!0x1,toJSON:_0x3bfd6b=!0x1}={}){const _0x4d3c8c=[];for(const _0x3326c3 of this['_suggestions']['values']())_0x3652eb&&!_0x3326c3['isInContent']||_0x4d3c8c['push'](_0x3326c3);return _0x3bfd6b?_0x4d3c8c['map'](_0x16b8ad=>_0x16b8ad['toJSON']()):_0x4d3c8c;}['getSuggestion'](_0xc2d820){const _0x1c8873=this['_suggestions']['get'](_0xc2d820);if(!_0x1c8873)throw new _0x1c1a8a('track-changes-suggestion-not-found',this);return _0x1c8873;}['hasSuggestion'](_0x2e0f2e){return this['_suggestions']['has'](_0x2e0f2e);}['addSuggestionData'](_0x3b9b54){const {authorId:_0x7df99f,id:_0x18abce,attributes:_0x293089}=_0x3b9b54,[_0xb219ca,_0x1af11f]=_0x3b9b54['type']['split'](':'),_0x16798b=this['_suggestions']['get'](_0x18abce)||this['_createSuggestion'](_0xb219ca,_0x1af11f,_0x18abce,_0x7df99f,_0x293089);if(this['_addThreadToSuggestion'](_0x16798b),this['_checkSuggestionCorrectness'](_0x16798b,_0xb219ca,_0x1af11f||null,_0x7df99f),_0x16798b['createdAt']=_0x3b9b54['createdAt'],_0x16798b['_isDataLoaded']=!0x0,_0x293089&&_0x293089['@external']){const _0x59fe25=_0x293089['@external'],_0x7eb034=this['_getExternalAuthor'](_0x59fe25['authorName']);_0x16798b['authoredAt']=_0x59fe25['createdAt'],_0x16798b['author']=_0x7eb034,_0x16798b['isExternal']=!0x0;}else _0x16798b['authoredAt']=_0x3b9b54['createdAt'];switch(_0x3b9b54['data']&&(_0x16798b['data']=_0x3b9b54['data']),_0x3b9b54['attributes']&&(_0x16798b['attributes']=_0x3b9b54['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16798b['_saved']=!0x0),this['_suggestionState']['get'](_0x16798b)){case'notReady':this['_suggestionState']['set'](_0x16798b,'dataReady');break;case'markerReady':_0x16798b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16798b])),this['_refreshSuggestionsChain'](new Set([_0x16798b])),this['_suggestionState']['set'](_0x16798b,'ready'),this['fire']('suggestionLoaded',_0x16798b)):this['_suggestionState']['set'](_0x16798b,'removed');}return _0x16798b;}['acceptSuggestion'](_0x4a299a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12cfa6 of _0x4a299a['getAllAdjacentSuggestions']())_0x12cfa6['accept']();});});}['discardSuggestion'](_0x58478f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4822dc of _0x58478f['getAllAdjacentSuggestions']())_0x4822dc['discard']();});});}['enableCommand'](_0x4b7d3c,_0x5d0248){const _0x1408d3=this['editor']['commands']['get'](_0x4b7d3c);if(!_0x1408d3)throw new _0x1c1a8a('track-changes-command-not-found',this,{'commandName':_0x4b7d3c});if(this['_enabledCommands']['has'](_0x1408d3))throw new _0x1c1a8a('track-changes-enable-command-twice',this,{'commandName':_0x4b7d3c});this['_enabledCommands']['add'](_0x1408d3),_0x5d0248&&_0x1408d3['on']('execute',(_0x295deb,_0x57ba70)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x57ba70['length']>0x0&&_0x57ba70[_0x57ba70['length']-0x1]&&_0x57ba70[_0x57ba70['length']-0x1]['forceDefaultExecution']?_0x57ba70['pop']():(_0x295deb['return']=_0x5d0248((..._0x272a75)=>_0x1408d3['execute'](..._0x272a75,{'forceDefaultExecution':!0x0}),..._0x57ba70),_0x295deb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x524073){let _0x33e355,_0x560821;const _0x22addd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33e355=_0x524073();}catch(_0x4dcf63){_0x560821=_0x4dcf63;}return _0x22addd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x560821&&_0x1c1a8a['rethrowUnexpectedError'](_0x560821,this),_0x33e355;}['markInsertion'](_0x268fd9,_0x2c8e7d=null,_0x33da49={}){if(_0x268fd9['isCollapsed'])return null;const _0x15536a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xc7db73,meta:_0x20c61b}of this['_findSuggestions'](_0x268fd9,'insertion'))if(_0x20c61b['isOwn']){if(!_0x20c61b['isNextTo']){if(_0x20c61b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xc7db73,_0x33da49))continue;return _0xc7db73;}if(zt(_0xc7db73,_0x33da49))return _0xc7db73;this['_breakSuggestionMarker'](_0xc7db73,_0x268fd9['start'],_0x268fd9['end']);break;}if(_0x2c8e7d==_0xc7db73['subType']&&zt(_0xc7db73,_0x33da49)){const _0x253961=_0xc7db73['getFirstRange']();return _0x253961['start']['isEqual'](_0x268fd9['end'])?this['_setSuggestionRange'](_0xc7db73,this['_model']['createRange'](_0x268fd9['start'],_0x253961['end'])):this['_setSuggestionRange'](_0xc7db73,this['_model']['createRange'](_0x253961['start'],_0x268fd9['end'])),_0xc7db73;}}const _0x5a8877=_0x303cc5(),_0x4f65c5=_0x15536a['id'],_0x51884d=_0x2c8e7d?'insertion:'+_0x2c8e7d:'insertion',_0x29de19=this['_setSuggestionData']({'id':_0x5a8877,'type':_0x51884d,'createdAt':new Date(),'authorId':_0x4f65c5,'attributes':_0x33da49});return this['_addSuggestionMarker'](_0x51884d,_0x5a8877,_0x4f65c5,_0x268fd9),_0x29de19;}['markMultiRangeInsertion'](_0x2ecb2e,_0xae2eeb='multi',_0x25145d={}){const _0x102422=this['editor']['plugins']['get']('Users')['me'],_0x41ce2c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xae2eeb,'join');for(const _0x23de7f of this['getSuggestions']())if(_0x23de7f['author']['id']==_0x102422['id']&&'insertion'==_0x23de7f['type']&&_0x23de7f['subType']==_0xae2eeb&&zt(_0x23de7f,_0x25145d)&&(_0x41ce2c(_0x23de7f['getRanges'](),_0x2ecb2e)||_0x41ce2c(_0x2ecb2e,_0x23de7f['getRanges']()))){for(const _0x312bfe of _0x2ecb2e)_0x23de7f['addRange'](_0x312bfe);return _0x23de7f;}for(const {suggestion:_0x1ec8f0,meta:_0x590db9}of this['_findSuggestions'](_0x2ecb2e,'insertion')){if(!_0x590db9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x590db9['containsRangeInObject'])continue;if(!zt(_0x1ec8f0,_0x25145d))continue;let _0x1ad5bf=!0x0;for(const _0x7c105e of _0x1ec8f0['getRanges']())for(const _0x481913 of _0x2ecb2e)if(!_0x7c105e['containsRange'](_0x481913)){_0x1ad5bf=!0x1;break;}if(_0x1ad5bf)return _0x1ec8f0;}const _0x350f86=_0x303cc5(),_0x22ff73=_0x102422['id'],_0x2de18c='insertion:'+_0xae2eeb,_0x19a14f=this['_setSuggestionData']({'id':_0x350f86,'type':_0x2de18c,'createdAt':new Date(),'authorId':_0x22ff73,'attributes':_0x25145d});for(const _0x2ee494 of _0x2ecb2e)this['_addSuggestionMarker'](_0x2de18c,_0x350f86,_0x22ff73,_0x2ee494,u['getMultiRangeId']());return _0x19a14f;}['markInlineFormat'](_0x293454,_0x402297,_0x141f04=null,_0x365e56={}){if(_0x141f04=_0x141f04||Gt(_0x402297),_0x293454['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3d3239=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x141f04,'accept');return this['forceDefaultExecution'](()=>_0x3d3239([_0x293454],_0x402297,_0x365e56)),null;}const _0x1a843d=this['editor']['plugins']['get']('Users')['me'],_0x2f0fbe=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x128637,meta:_0x5b2411}of this['_findSuggestions'](_0x293454,'insertion'))_0x5b2411['isOwn']&&!_0x5b2411['isInsideObject']&&_0x2f0fbe['push'](..._0x128637['getRanges']());}const _0x3a8de5=function(_0x3b08e1,_0x15c062){const _0x514a4b=[];for(const _0x45222b of _0x15c062){const _0x21c5f5=_0x3b08e1['getIntersection'](_0x45222b);_0x21c5f5&&_0x514a4b['push'](_0x21c5f5);}return _0x514a4b;}(_0x293454,_0x2f0fbe),_0x5e8b57=function(_0x549221,_0x73e337){const _0x5edd48=[_0x549221];for(const _0x1eb194 of _0x73e337){let _0x5a793f=0x0;for(;_0x5a793f<_0x5edd48['length'];){const _0x51f6fe=_0x5edd48[_0x5a793f]['getDifference'](_0x1eb194);_0x5edd48['splice'](_0x5a793f,0x1,..._0x51f6fe),_0x5a793f+=_0x51f6fe['length'];}}return _0x5edd48;}(_0x293454,_0x2f0fbe);_0x3a8de5['length']&&this['_model']['change'](()=>{for(const _0x25cd2b of _0x3a8de5){const _0x4979a7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x141f04,'accept');this['forceDefaultExecution'](()=>_0x4979a7([_0x25cd2b],_0x402297,_0x365e56));}});for(const _0x1d6286 of _0x5e8b57){let _0x229f72=null,_0x3ffdfd=_0x1d6286['start'],_0x9e03e3=_0x1d6286['end'];for(const {suggestion:_0x326a70,meta:_0x4d89ba}of this['_findSuggestions'](_0x1d6286,'formatInline')){if(!_0x4d89ba['isOwn'])continue;if(_0x326a70['subType']!=_0x141f04)continue;if(!zt(_0x326a70,_0x365e56))continue;const _0x1ae497=_0x326a70['getFirstRange']();if(_0x1ae497['containsRange'](_0x1d6286,!0x0))return null;_0x3ffdfd=_0x3ffdfd['isBefore'](_0x1ae497['start'])?_0x3ffdfd:_0x1ae497['start'],_0x9e03e3=_0x9e03e3['isAfter'](_0x1ae497['end'])?_0x9e03e3:_0x1ae497['end'],_0x229f72?_0x1ae497['start']['isBefore'](_0x229f72['getFirstRange']()['start'])?(_0x229f72['removeMarkers'](),_0x229f72=_0x326a70):_0x326a70['removeMarkers']():_0x229f72=_0x326a70;}const _0xc5c01f=this['_model']['createRange'](_0x3ffdfd,_0x9e03e3);if(_0x229f72)this['_setSuggestionRange'](_0x229f72,_0xc5c01f);else{const _0x363f3f=_0x303cc5(),_0xa3ab3a=_0x1a843d['id'];this['_setSuggestionData']({'id':_0x363f3f,'type':'formatInline:'+_0x141f04,'data':_0x402297,'createdAt':new Date(),'authorId':_0xa3ab3a,'attributes':_0x365e56}),this['_addSuggestionMarker']('formatInline:'+_0x141f04,_0x363f3f,_0xa3ab3a,_0xc5c01f);}}return null;}['markBlockFormat'](_0xfbaa62,_0x2f5836,_0xd1f3b3=[],_0x1b977b=null,_0x3f334a={}){_0x2f5836['formatGroupId']||(_0x2f5836['formatGroupId']=_0x2f5836['commandName']),_0x2f5836['multipleBlocks']=_0xfbaa62['is']('range'),_0x1b977b=_0x1b977b||Gt(_0x2f5836);const _0x2a435f=_0xd1f3b3['map'](_0xdc8a87=>Jt(_0xdc8a87,this['_model'])),_0x13f349=_0xfbaa62['is']('range')?_0xfbaa62:Jt(_0xfbaa62,this['_model']);if('never'===this['_trackFormatChanges']){const _0xa10d0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b977b,'accept');return this['forceDefaultExecution'](()=>_0xa10d0b([_0x13f349],_0x2f5836,_0x3f334a)),null;}_0x2a435f['push'](_0x13f349);let _0x289f1a=!0x0;for(const _0x286c28 of _0x2a435f)if(!this['_rangeIsInLocalUserInsertion'](_0x286c28)){_0x289f1a=!0x1;break;}if(_0x289f1a&&'always'!==this['_trackFormatChanges']){const _0x142c80=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b977b,'accept');return this['forceDefaultExecution'](()=>_0x142c80([_0x13f349],_0x2f5836,_0x3f334a)),null;}let _0x378191=null,_0x5b280c=_0x13f349['start'],_0x4695f0=_0x13f349['end'];for(const {suggestion:_0x68b2c9,meta:_0x59e8ef}of this['_findSuggestions'](_0x13f349,'formatBlock')){if(!_0x59e8ef['isOwn'])continue;if(_0x59e8ef['isNextTo']||_0x59e8ef['containsRangeInObject']||_0x59e8ef['isInsideObject'])continue;if(_0x68b2c9['data']['formatGroupId']!=_0x2f5836['formatGroupId'])continue;if(!zt(_0x68b2c9,_0x3f334a))continue;const _0x115e55=_0x68b2c9['getFirstRange']();if(_0x68b2c9['subType']==_0x1b977b){if(_0x115e55['containsRange'](_0x13f349,!0x0))return null;_0x5b280c=_0x5b280c['isBefore'](_0x115e55['start'])?_0x5b280c:_0x115e55['start'],_0x4695f0=_0x4695f0['isAfter'](_0x115e55['end'])?_0x4695f0:_0x115e55['end'],_0x378191?_0x115e55['start']['isBefore'](_0x378191['getFirstRange']()['start'])?(_0x378191['removeMarkers'](),_0x378191=_0x68b2c9):_0x68b2c9['removeMarkers']():_0x378191=_0x68b2c9;}else{const _0xae7753=_0x13f349['getIntersection'](_0x115e55);this['_cutOutSuggestionMarker'](_0x68b2c9,_0xae7753);}}const _0x375820=this['editor']['plugins']['get']('Users')['me'],_0x4505d3=_0x303cc5(),_0x1dc4b0=_0x375820['id'];if(_0x378191)return this['_setSuggestionRange'](_0x378191,this['_model']['createRange'](_0x5b280c,_0x4695f0)),_0x378191;{const _0x45ed2f=this['_setSuggestionData']({'id':_0x4505d3,'type':'formatBlock:'+_0x1b977b,'data':_0x2f5836,'createdAt':new Date(),'authorId':_0x1dc4b0,'attributes':_0x3f334a});return this['_addSuggestionMarker']('formatBlock:'+_0x1b977b,_0x4505d3,_0x1dc4b0,this['_model']['createRange'](_0x5b280c,_0x4695f0)),_0x45ed2f;}}['markMultiRangeBlockFormat'](_0x5e2390,_0x20b138,_0xbbf4a6=[],_0x1fab1b=null,_0x421b16={}){_0x20b138['formatGroupId']||(_0x20b138['formatGroupId']=_0x20b138['commandName']);const _0x23c6ec=_0x5e2390[0x0];_0x20b138['multipleBlocks']=_0x23c6ec['is']('range'),_0x1fab1b=_0x1fab1b||Gt(_0x20b138);const _0x566a9e=_0xbbf4a6['map'](_0x366d5c=>Jt(_0x366d5c,this['_model'])),_0x471608=_0x23c6ec['is']('range')?_0x5e2390:_0x5e2390['map'](_0x9cbd17=>Jt(_0x9cbd17,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2f936b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'accept');return this['forceDefaultExecution'](()=>_0x2f936b(_0x471608,_0x20b138,_0x421b16)),null;}_0x566a9e['push'](..._0x471608);let _0x2100c5=!0x0;for(const _0xf26024 of _0x566a9e)if(!this['_rangeIsInLocalUserInsertion'](_0xf26024)){_0x2100c5=!0x1;break;}if(_0x2100c5&&'always'!==this['_trackFormatChanges']){const _0xc239b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'accept');return this['forceDefaultExecution'](()=>_0xc239b(_0x471608,_0x20b138,_0x421b16)),null;}const _0x3d21d9=this['editor']['plugins']['get']('Users')['me'];for(const _0x1615c5 of this['getSuggestions']()){if(_0x1615c5['author']['id']!=_0x3d21d9['id'])continue;if('formatBlock'!=_0x1615c5['type']||_0x1615c5['data']['formatGroupId']!=_0x20b138['formatGroupId'])continue;if(!zt(_0x1615c5,_0x421b16))continue;const _0x18b62a=_0x1615c5['subType']==_0x1fab1b;for(let _0x36b9d1=0x0;_0x36b9d1<_0x471608['length'];_0x36b9d1++){const _0x4a03f4=_0x471608[_0x36b9d1];for(const _0x4c1551 of _0x1615c5['getMarkers']()){const _0x796d88=_0x4c1551['getRange']();if(_0x4a03f4['isEqual'](_0x796d88)){_0x18b62a?(_0x471608['splice'](_0x36b9d1,0x1),_0x36b9d1--):_0x1615c5['removeMarker'](_0x4c1551['name']);break;}}}}if(0x0==_0x471608['length'])return null;const _0x460728=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'join');for(const _0x509719 of this['getSuggestions']())if(_0x509719['author']['id']==_0x3d21d9['id']&&'formatBlock'==_0x509719['type']&&_0x509719['data']['formatGroupId']==_0x20b138['formatGroupId']&&_0x509719['subType']==_0x1fab1b&&zt(_0x509719,_0x421b16)&&(_0x460728(_0x509719['getRanges'](),_0x471608)||_0x460728(_0x471608,_0x509719['getRanges']()))){for(const _0x2e9455 of _0x471608)_0x509719['addRange'](_0x2e9455);return _0x509719;}const _0x1152a1=_0x303cc5(),_0x28465f=_0x3d21d9['id'],_0x4bae26='formatBlock:'+_0x1fab1b,_0xe3b58=this['_setSuggestionData']({'id':_0x1152a1,'type':_0x4bae26,'data':_0x20b138,'createdAt':new Date(),'authorId':_0x28465f,'attributes':_0x421b16});for(const _0x396e07 of _0x471608)this['_addSuggestionMarker'](_0x4bae26,_0x1152a1,_0x28465f,_0x396e07,u['getMultiRangeId']());return _0xe3b58;}['markDeletion'](_0x6a2a4,_0x375844=null,_0x487f89={}){if(_0x6a2a4['isCollapsed'])return null;const _0x546e2b=this['editor']['plugins']['get']('Users')['me'],_0x5cb099=new _0x5e91cd(_0x6a2a4['start'],_0x6a2a4['end']);for(const {suggestion:_0xe0b775,meta:_0x2ea8fc}of this['_findSuggestions'](_0x5cb099,'insertion'))if(_0x2ea8fc['isOwn']&&!_0x2ea8fc['isNextTo']){if(_0xe0b775['isMultiRange']){const _0x4cfe01=_0xe0b775['getRanges']()['filter'](_0x13dbae=>'$graveyard'!=_0x13dbae['root']['rootName']);_0x4cfe01['every'](_0xa4cd68=>_0x5cb099['containsRange'](_0xa4cd68,!0x0))&&_0xe0b775['discard']();if(_0x4cfe01['some'](_0x4676c0=>_0x4676c0['containsRange'](_0x5cb099,!0x0))){const _0x3c3e68=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x375844,'accept');return this['forceDefaultExecution'](()=>_0x3c3e68([_0x5cb099],null,_0x487f89)),null;}}else{const _0x436166=_0x5cb099['getIntersection'](_0xe0b775['getFirstRange']());null!==_0x436166&&_0xe0b775['_onDiscard']([_0x436166],null,_0x487f89);}}if(_0x5cb099['detach'](),_0x5cb099['isCollapsed']||'$graveyard'==_0x5cb099['root']['rootName'])return null;let _0x375357=null,_0x186c94=_0x5cb099['start'],_0x2d314a=_0x5cb099['end'];const _0x43f240=this['_findSuggestions'](_0x5cb099,'deletion');for(const {suggestion:_0x44fda8,meta:_0x9b7a9d}of _0x43f240){const _0x1fd49f=this['_model']['createRange'](_0x186c94,_0x2d314a);if(_0x9b7a9d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9b7a9d['containsRangeInObject']&&!_0x9b7a9d['isInsideObject'])){if(_0x44fda8['isMultiRange']){if(!zt(_0x44fda8,_0x487f89))continue;let _0x1f627d=!0x0;for(const _0x4eb49b of _0x44fda8['getRanges']()){if(_0x4eb49b['containsRange'](_0x1fd49f,!0x0))return _0x44fda8;_0x1fd49f['containsRange'](_0x4eb49b)||(_0x1f627d=!0x1);}_0x1f627d&&_0x44fda8['discard']();}else{const _0x51edbc=_0x44fda8['getFirstRange']();if(_0x51edbc['containsRange'](_0x1fd49f,!0x0))return _0x44fda8;if(!zt(_0x44fda8,_0x487f89)){_0x1fd49f['containsRange'](_0x51edbc)?_0x44fda8['removeMarkers']():_0x51edbc['containsPosition'](_0x186c94)?_0x186c94=_0x51edbc['end']:_0x51edbc['containsPosition'](_0x2d314a)&&(_0x2d314a=_0x51edbc['start']);continue;}_0x186c94=_0x186c94['isBefore'](_0x51edbc['start'])?_0x186c94:_0x51edbc['start'],_0x2d314a=_0x2d314a['isAfter'](_0x51edbc['end'])?_0x2d314a:_0x51edbc['end'],_0x487f89=Object['assign']({},_0x44fda8['attributes']),_0x375357?_0x51edbc['start']['isBefore'](_0x375357['getFirstRange']()['start'])?(_0x375357['removeMarkers'](),_0x375357=_0x44fda8):_0x44fda8['removeMarkers']():_0x375357=_0x44fda8;}}}if(_0x375357)return this['_setSuggestionRange'](_0x375357,this['_model']['createRange'](_0x186c94,_0x2d314a)),_0x375357;{const _0x543f06=_0x303cc5(),_0x1f5391=this['_model']['createRange'](_0x186c94,_0x2d314a),_0x50382e=_0x546e2b['id'],_0x353e3b=_0x375844?'deletion:'+_0x375844:'deletion',_0x3c391f=this['_setSuggestionData']({'id':_0x543f06,'type':_0x353e3b,'createdAt':new Date(),'authorId':_0x50382e,'attributes':_0x487f89});return this['_addSuggestionMarker'](_0x353e3b,_0x543f06,_0x50382e,_0x1f5391),_0x3c391f;}}['markMultiRangeDeletion'](_0x161c18,_0x528a62='multi',_0x3c0502={}){const _0xb93c3c=this['editor']['plugins']['get']('Users')['me'],_0x416fc2=_0x161c18['map'](_0x175f56=>new _0x5e91cd(_0x175f56['start'],_0x175f56['end'])),_0x369f09=new Set();for(const {suggestion:_0x205d16,meta:_0x3cfced}of this['_findSuggestions'](_0x416fc2,'insertion'))_0x3cfced['isOwn']&&!_0x3cfced['isNextTo']&&_0x369f09['add'](_0x205d16);for(const _0x2e3a1e of _0x369f09)if(_0x2e3a1e['isMultiRange']){const _0x469ac3=_0x2e3a1e['getRanges']();(!_0x2e3a1e['attributes']||!_0x2e3a1e['attributes']['skipNestingCheck'])&&(_0x469ac3['every'](_0x3a6c18=>_0x416fc2['some'](_0x2537ca=>_0x2537ca['containsRange'](_0x3a6c18,!0x0)))&&_0x2e3a1e['discard']());if(_0x416fc2['every'](_0x52f16c=>_0x469ac3['some'](_0xe53eb1=>_0xe53eb1['containsRange'](_0x52f16c,!0x0)))){const _0x2681f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'accept');return this['forceDefaultExecution'](()=>_0x2681f0(_0x161c18,null,_0x3c0502)),null;}}else{const _0x157161=_0x2e3a1e['getFirstRange']();_0x416fc2['some'](_0x1790c2=>_0x1790c2['containsRange'](_0x157161,!0x0))&&_0x2e3a1e['discard']();if(_0x416fc2['every'](_0x378148=>_0x157161['containsRange'](_0x378148,!0x0))){const _0x55d098=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'accept');return this['forceDefaultExecution'](()=>_0x55d098(_0x416fc2,null,_0x3c0502)),null;}}const _0x337a14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'join');let _0x5cbdb4=null;for(const _0x53ebdf of this['getSuggestions']())if(_0x53ebdf['author']['id']==_0xb93c3c['id']&&_0x53ebdf['isInContent']&&'deletion'==_0x53ebdf['type']&&_0x53ebdf['subType']==_0x528a62&&zt(_0x53ebdf,_0x3c0502)&&(_0x337a14(_0x53ebdf['getRanges'](),_0x416fc2)||_0x337a14(_0x416fc2,_0x53ebdf['getRanges']()))){if(_0x5cbdb4){if(_0x53ebdf['commentThread']&&_0x53ebdf['commentThread']['length'])continue;for(const _0x2b1532 of _0x53ebdf['getRanges']())_0x5cbdb4['isIntersectingWithRange'](_0x2b1532)||_0x5cbdb4['addRange'](_0x2b1532);_0x53ebdf['removeMarkers']();}else{_0x5cbdb4=_0x53ebdf;for(const _0x1a422f of _0x416fc2)_0x53ebdf['isIntersectingWithRange'](_0x1a422f)||_0x53ebdf['addRange'](_0x1a422f);}}if(_0x5cbdb4)return _0x5cbdb4;_0x369f09['clear']();for(const {suggestion:_0x1a11be,meta:_0x5cbb46}of this['_findSuggestions'](_0x416fc2,'deletion'))_0x5cbb46['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cbb46['containsRangeInObject']&&!_0x5cbb46['isInsideObject'])&&zt(_0x1a11be,_0x3c0502)&&_0x369f09['add'](_0x1a11be);for(const _0x3be8fc of _0x369f09){const _0x211176=_0x3be8fc['getRanges']();if(!_0x3c0502||!_0x3c0502['skipNestingCheck']){if(_0x416fc2['every'](_0x3eea41=>_0x211176['some'](_0x384f33=>_0x384f33['containsRange'](_0x3eea41,!0x0))))return _0x3be8fc;}(!_0x3be8fc['attributes']||!_0x3be8fc['attributes']['skipNestingCheck'])&&(_0x211176['every'](_0x35bfd4=>_0x416fc2['some'](_0x90fa52=>_0x90fa52['containsRange'](_0x35bfd4,!0x0)))&&_0x3be8fc['discard']());}const _0x209f97=_0x303cc5(),_0x16cb42=_0xb93c3c['id'],_0x59f637='deletion:'+_0x528a62,_0x598dff=this['_setSuggestionData']({'id':_0x209f97,'type':_0x59f637,'createdAt':new Date(),'authorId':_0x16cb42,'attributes':_0x3c0502});for(const _0x44030a of _0x416fc2)_0x44030a['detach'](),_0x44030a['isCollapsed']||'$graveyard'==_0x44030a['root']['rootName']||this['_addSuggestionMarker'](_0x59f637,_0x209f97,_0x16cb42,_0x44030a,u['getMultiRangeId']());return _0x598dff;}['markAttributeChange'](_0x3fcdbd,_0x5e3cb8,_0x53fc3c,_0x4f4993,_0x27ccf0){if(_0x3fcdbd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x483264=this['editor']['plugins']['get']('Users')['me']['id'],_0x27f416=Array['from'](this['_suggestions']['values']())['filter'](_0x3131d5=>'attribute'==_0x3131d5['type']&&_0x3131d5['data']['key']==_0x5e3cb8&&_0x3131d5['isIntersectingWithRange'](_0x3fcdbd));if('default'===this['_trackFormatChanges']){const _0x4e1416=this['_findSuggestions'](_0x3fcdbd,'insertion')['filter'](({meta:_0x4e43c9})=>_0x4e43c9['isOwn']&&!_0x4e43c9['isInsideObject']&&!_0x4e43c9['isNextTo'])['map'](({suggestion:_0x39792d})=>_0x39792d);_0x27f416['unshift'](..._0x4e1416);}const _0x1da76e=new Map([[_0x3fcdbd,_0x53fc3c]]);for(const _0x3228f1 of _0x27f416){const _0x20978c='attribute'==_0x3228f1['type']?_0x3228f1['data']['oldValue']:void 0x0,_0x132aac=_0x3228f1['getFirstRange'](),_0x54010a=Array['from'](_0x1da76e['keys']())['find'](_0x3c612a=>_0x3c612a['isIntersecting'](_0x132aac));if(!_0x54010a)continue;const _0x61f48e=_0x54010a['getDifference'](_0x132aac);this['_isBlockAttribute'](_0x5e3cb8)&&'insertion'==_0x3228f1['type']&&0x0!=_0x61f48e['length']||(_0x1da76e['delete'](_0x54010a),_0x61f48e['forEach'](_0x2813a4=>{_0x1da76e['set'](_0x2813a4,_0x53fc3c);}),'insertion'!=_0x3228f1['type']&&_0x20978c!=_0x4f4993&&_0x1da76e['set'](_0x54010a['getIntersection'](_0x132aac),_0x20978c));}const _0x3323d6=[];for(const [_0x1844e3,_0x506cc4]of _0x1da76e){const _0x3d0d00=_0x303cc5(),_0x53022f={'key':_0x5e3cb8,'oldValue':_0x506cc4,'newValue':_0x4f4993};_0x5e3cb8['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':_0x5e3cb8});const _0x561bbd=('attribute:'+(_0x5e3cb8+'|'+Gt({'newValue':_0x4f4993})))['substring'](0x0,0x3c),_0x1c849e=this['_setSuggestionData']({'id':_0x3d0d00,'type':_0x561bbd,'data':_0x53022f,'createdAt':new Date(),'authorId':_0x483264,'attributes':_0x27ccf0});_0x3323d6['push'](_0x1c849e),this['_addSuggestionMarker'](_0x561bbd,_0x3d0d00,_0x483264,_0x1844e3);}return _0x3323d6;}['enableDefaultAttributesIntegration'](_0x77bc13){this['enableCommand'](_0x77bc13,(_0x253236,..._0x58101d)=>{this['_recordAttributeChanges'](()=>{_0x253236(..._0x58101d);});});}['registerBlockAttribute'](_0x237040){this['_blockAttributeKeys']['add'](_0x237040);}['registerInlineAttribute'](_0x32601d){this['_inlineAttributeKeys']['add'](_0x32601d);}['_getAttributeKey'](_0x25eaca){return'attribute'==_0x25eaca['type']?_0x25eaca['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x255c15,_0x2fdda1){const _0xf44b07=_0x255c15['getFirstMarker']();this['_model']['change'](_0x172400=>{_0x172400['updateMarker'](_0xf44b07,{'range':_0x2fdda1});});}['_addThreadToSuggestion'](_0x550331){const _0x4c5e88=_0x550331['id'],_0x12eb82=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4c5e88)||this['_commentsRepository']['addCommentThread']({'channelId':_0x12eb82,'threadId':_0x4c5e88,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x314b69=this['_commentsRepository']['getCommentThread'](_0x4c5e88);_0x314b69['unbind']('isRemovable'),_0x314b69['isRemovable']=!0x1,_0x550331['commentThread']=_0x314b69;}['_checkSuggestionCorrectness'](_0x225a3e,_0x489e52,_0x220602,_0x571154){if(_0x225a3e['type']!=_0x489e52||_0x225a3e['subType']!=_0x220602||_0x225a3e['creator']['id']!=_0x571154)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c1a8a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47191d,_0x502993){const _0x579b81=_0x47191d['getFirstRange']();if(_0x502993['isEqual'](_0x579b81))_0x47191d['removeMarkers']();else{if(_0x579b81['containsRange'](_0x502993)){const _0x54cfa9=this['_model']['createPositionAt'](_0x502993['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x579b81['start'],_0x54cfa9));const _0x1d0fd5=_0x303cc5(),_0x1ba61d=_0x47191d['creator']['id'],_0x2488fb=_0x47191d['type']+':'+_0x47191d['subType'];this['_setSuggestionData']({'id':_0x1d0fd5,'type':_0x2488fb,'createdAt':new Date(),'authorId':_0x1ba61d,'data':_0x47191d['data'],'attributes':_0x47191d['attributes']});const _0x5207b8=this['_model']['createPositionAt'](_0x502993['end']['parent'],'after'),_0x270d28=this['_model']['createRange'](_0x5207b8,_0x579b81['end']);this['_addSuggestionMarker'](_0x2488fb,_0x1d0fd5,_0x1ba61d,_0x270d28);}else{if(_0x579b81['containsPosition'](_0x502993['start'])){const _0x341d87=this['_model']['createPositionAt'](_0x502993['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x579b81['start'],_0x341d87));}else{const _0x219546=this['_model']['createPositionAt'](_0x502993['end']['parent'],'after');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x219546,_0x579b81['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1472c5){for(const {suggestion:_0x6e06c,meta:_0x39e880}of this['_findSuggestions'](_0x1472c5,'insertion')){if(!_0x39e880['isOwn'])continue;const _0xb9cf5a=_0x6e06c['getRanges']();for(const _0x30ba91 of _0xb9cf5a)if(!_0x1472c5['getDifference'](_0x30ba91)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x40220a){const _0x3ef0ff=this['editor']['plugins']['get']('Users')['getUser'](_0x40220a);if(!_0x3ef0ff)throw new _0x1c1a8a('track-changes-user-not-found',this);return _0x3ef0ff;}['_getExternalAuthor'](_0x5328e5){const _0x565fec=this['editor']['plugins']['get']('Users'),_0x49a06a=_0x30c346('external:'+_0x5328e5),_0x4ec1d8=_0x565fec['getUser'](_0x49a06a);return _0x4ec1d8||_0x565fec['addUser']({'id':_0x49a06a,'name':_0x5328e5});}['_createSuggestion'](_0x4f5fda,_0x50fc36,_0x1e85ba,_0x22cb6a,_0x339c7a){const _0x3c006f=this['_getAuthorFromId'](_0x22cb6a),_0x4484ae=this['_suggestionFactory']['buildSuggestion'](_0x4f5fda,_0x50fc36,_0x1e85ba,_0x3c006f,_0x339c7a,_0x496cb7=>{this['_updateSuggestionData'](_0x1e85ba,{'attributes':_0x496cb7});const _0x583cd3=this['getSuggestion'](_0x1e85ba);this['_joinWithAdjacentSuggestions'](new Set([_0x583cd3])),this['_refreshSuggestionsChain'](new Set([_0x583cd3]));});return this['listenTo'](_0x4484ae,'accept',()=>{this['_updateSuggestionData'](_0x1e85ba,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4484ae,'discard',()=>{this['_updateSuggestionData'](_0x1e85ba,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e85ba,_0x4484ae),this['_suggestionState']['set'](_0x4484ae,'notReady'),_0x4484ae;}['_splitMarkerName'](_0x3b76f0){const _0x3fc975=_0x3b76f0['split'](':');return{'group':_0x3fc975[0x0],'type':_0x3fc975[0x1],'subType':_0x3fc975['length']>=0x5?_0x3fc975[0x2]:null,'id':_0x3fc975['length']<0x5?_0x3fc975[0x2]:_0x3fc975[0x3],'authorId':_0x3fc975['length']<0x5?_0x3fc975[0x3]:_0x3fc975[0x4],'markerCount':0x6==_0x3fc975['length']?_0x3fc975[0x5]:null};}['_breakSuggestionMarker'](_0x1c7ef6,_0x246592,_0x2e6143){const _0x3392ed=_0x1c7ef6['getFirstRange'](),_0x234adc=_0x3392ed['start'],_0x2984f0=_0x3392ed['end'];this['_setSuggestionRange'](_0x1c7ef6,this['_model']['createRange'](_0x234adc,_0x246592));const _0x59f52d=_0x303cc5(),_0x2af2aa=_0x1c7ef6['creator']['id'],_0x515df9=_0x1c7ef6['type']+(_0x1c7ef6['subType']?':'+_0x1c7ef6['subType']:'');this['_setSuggestionData']({'id':_0x59f52d,'type':_0x515df9,'createdAt':new Date(),'authorId':_0x2af2aa,'originalSuggestionId':_0x1c7ef6['id'],'attributes':_0x1c7ef6['attributes'],'data':_0x1c7ef6['data']});const _0x3404fa=this['_getAttributeKey'](_0x1c7ef6);('formatBlock'==_0x1c7ef6['type']||_0x3404fa&&this['_isBlockAttribute'](_0x3404fa))&&(_0x2e6143=this['_model']['createPositionBefore'](_0x2e6143['parent'])),this['_addSuggestionMarker'](_0x515df9,_0x59f52d,_0x2af2aa,this['_model']['createRange'](_0x2e6143,_0x2984f0));}['_findSuggestions'](_0x540aa4,_0x431807=null){const _0x3278ef=[],_0x21fd03=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x540aa4)||(_0x540aa4=[_0x540aa4]);for(const _0x5d2db9 of this['getSuggestions']()){if(!_0x5d2db9['isInContent'])continue;if(_0x431807&&_0x5d2db9['type']!=_0x431807)continue;let _0x11b354=!0x1;for(const _0x50ec51 of _0x5d2db9['getRanges']()){for(const _0x15fccf of _0x540aa4){const _0x33ba88=_0x15fccf['start']['isEqual'](_0x50ec51['end'])||_0x15fccf['end']['isEqual'](_0x50ec51['start']);if(_0x33ba88||_0x15fccf['getIntersection'](_0x50ec51)){const _0x1dbd1d=_0x15fccf['containsRange'](_0x50ec51)&&Ut(this['_model']['schema'],_0x50ec51['start'],_0x15fccf),_0x3ff314=_0x50ec51['containsRange'](_0x15fccf)&&Ut(this['_model']['schema'],_0x15fccf['start'],_0x50ec51);_0x3278ef['push']({'suggestion':_0x5d2db9,'meta':{'isOwn':_0x21fd03==_0x5d2db9['author'],'isNextTo':_0x33ba88,'isInsideObject':_0x1dbd1d,'containsRangeInObject':_0x3ff314}}),_0x11b354=!0x0;break;}}if(_0x11b354)break;}}return _0x3278ef;}['_addSuggestionMarker'](_0x38960a,_0xdc3210,_0x1b118f,_0x37aa32,_0x74e42f){this['_model']['change'](_0x4d0496=>{let _0xd15000='suggestion:'+_0x38960a+':'+_0xdc3210+':'+_0x1b118f;_0x74e42f&&(_0xd15000=_0xd15000+':'+_0x74e42f),_0x4d0496['addMarker'](_0xd15000,{'range':_0x37aa32,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x46e7b2){const _0x470f26=_0x46e7b2['previous'],_0xcf9b=_0x46e7b2['next'];_0x46e7b2['previous']=null,_0x46e7b2['next']=null,null!=_0x470f26&&_0x470f26['next']==_0x46e7b2&&(_0x470f26['next']=_0xcf9b),null!=_0xcf9b&&_0xcf9b['previous']==_0x46e7b2&&(_0xcf9b['previous']=_0x470f26),'ready'==this['_suggestionState']['get'](_0x46e7b2)&&(this['_suggestionState']['set'](_0x46e7b2,'removed'),this['fire']('suggestionUnloaded',_0x46e7b2,_0x470f26,_0xcf9b));}['_setSuggestionData'](_0x46e24f){const _0x68094=_0x46e24f['id'],_0x39a2a3=this['addSuggestionData'](_0x46e24f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xef4bb1=this['editor']['plugins']['get']('PendingActions'),_0x50f268=_0x39a2a3['hasComments'],_0x5e5b11=_0x39a2a3['subType']?_0x39a2a3['type']+':'+_0x39a2a3['subType']:_0x39a2a3['type'],_0x13672b=this['editor']['locale'],_0x19fdc4=_0xef4bb1['add'](o(_0x13672b,'PENDING_ACTION_SUGGESTION')),_0x5870f9={'id':_0x68094,'type':_0x5e5b11,'hasComments':_0x50f268,'data':_0x46e24f['data']||null,'originalSuggestionId':_0x46e24f['originalSuggestionId']||null,'attributes':_0x39a2a3['attributes']};this['_adapter']['addSuggestion'](_0x5870f9)['then'](_0x19203d=>{_0x39a2a3['_saved']=!0x0,_0xef4bb1['remove'](_0x19fdc4),_0x19203d&&_0x19203d['createdAt']&&(this['_suggestions']['get'](_0x68094)['createdAt']=_0x19203d['createdAt']);})['catch'](_0x410053=>{throw _0x2add20('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x39a2a3['discard']();}),_0x39a2a3['stopListening'](),this['_suggestions']['delete'](_0x39a2a3['id']),this['_suggestionState']['delete'](_0x39a2a3),_0x410053;});}return _0x39a2a3;}['_isBlockAttribute'](_0x4d4cea){return this['_blockAttributeKeys']['has'](_0x4d4cea);}['_updateSuggestionData'](_0x184958,_0x27c3a7){const _0x20d089=this['editor']['plugins']['get']('PendingActions'),_0xefc78=this['getSuggestion'](_0x184958);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xefc78['_saved']){const _0x5e280a=_0x20d089['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x184958,_0x27c3a7)['then'](()=>{_0x20d089['remove'](_0x5e280a);});}else _0xefc78['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x184958,_0x27c3a7);});}}['_getSuggestionData'](_0x488f63){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c1a8a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x488f63);}['_handleNewSuggestionMarker'](_0x18c58e){const {id:_0x244ee,type:_0x38b33c,subType:_0x5c1371,authorId:_0x20f6ca}=this['_splitMarkerName'](_0x18c58e),_0x3cd73f=this['_suggestions']['get'](_0x244ee)||this['_createSuggestion'](_0x38b33c,_0x5c1371,_0x244ee,_0x20f6ca,{});switch(this['_checkSuggestionCorrectness'](_0x3cd73f,_0x38b33c,_0x5c1371,_0x20f6ca),this['_suggestionState']['get'](_0x3cd73f)){case'notReady':this['_getSuggestionData'](_0x244ee)['then'](_0x5d355f=>{let _0x5aa099=Promise['resolve']();_0x5d355f['hasComments']&&(_0x5aa099=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x244ee})),_0x5aa099['then'](()=>{this['addSuggestionData'](_0x5d355f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3cd73f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x244ee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3cd73f,'ready'),this['fire']('suggestionLoaded',_0x3cd73f);break;case'ready':this['fire']('suggestionChanged',_0x3cd73f);}return _0x3cd73f['addMarkerName'](_0x18c58e),_0x3cd73f;}['_refreshSuggestionsChain'](_0x2f3b15){const _0x677b80=Array['from'](_0x2f3b15),_0x377aa1=_0x677b80['filter'](_0x50bb66=>'attribute'==_0x50bb66['type']);this['_refreshAttributeSuggestionsChain'](_0x377aa1);const _0x45c26a=_0x677b80['filter'](_0x4d395b=>!_0x4d395b['isMultiRange']&&'attribute'!=_0x4d395b['type']),_0xec3125=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f4686=>!_0x4f4686['isMultiRange']&&'attribute'!=_0x4f4686['type']),_0x11586e=_0xec3125['filter'](_0x3094e4=>!_0x2f3b15['has'](_0x3094e4)),_0x13caf1=new Map(_0xec3125['map'](_0x590d43=>[_0x590d43,this['_suggestionFactory']['getSuggestionCallback'](_0x590d43['type'],_0x590d43['subType'],'chain')])),_0x3bcdf2=new Map(_0xec3125['map'](_0x50eb1f=>[_0x50eb1f,_0x50eb1f['getFirstRange']()])),_0x1fddba=new Set(),_0x592c6b=new Set();for(let _0x5756b6=0x0;_0x5756b6<_0x45c26a['length'];_0x5756b6++)_0x54be8d(_0x45c26a[_0x5756b6],_0x45c26a,_0x5756b6+0x1);for(let _0x51dcee=0x0;_0x51dcee<_0x45c26a['length'];_0x51dcee++)_0x54be8d(_0x45c26a[_0x51dcee],_0x11586e,0x0);const _0x2512d4=new Set();for(let _0x5f2a10=0x0;_0x5f2a10<_0x45c26a['length'];_0x5f2a10++){const _0x35e286=_0x45c26a[_0x5f2a10];!_0x592c6b['has'](_0x35e286)&&_0x35e286['previous']&&(_0x2512d4['add'](_0x35e286['previous']),_0x35e286['previous']['next']===_0x35e286&&(_0x35e286['previous']['next']=null),_0x35e286['previous']=null),!_0x1fddba['has'](_0x35e286)&&_0x35e286['next']&&(_0x2512d4['add'](_0x35e286['next']),_0x35e286['next']['previous']===_0x35e286&&(_0x35e286['next']['previous']=null),_0x35e286['next']=null);}function _0x54be8d(_0x447aaa,_0x41c654,_0x2fe755){for(let _0x5cf8d3=_0x2fe755;_0x5cf8d3<_0x41c654['length'];_0x5cf8d3++){const _0x31ef02=_0x20f49e(_0x447aaa,_0x41c654[_0x5cf8d3]);_0x31ef02&&(_0x31ef02[0x0]['next']=_0x31ef02[0x1],_0x31ef02[0x1]['previous']=_0x31ef02[0x0],_0x1fddba['add'](_0x31ef02[0x0]),_0x592c6b['add'](_0x31ef02[0x1]));}}function _0x20f49e(_0x447e74,_0x22a928){if(_0x447e74['author']['id']!==_0x22a928['author']['id'])return null;const _0x1a6ff3=_0x13caf1['get'](_0x447e74)(_0x447e74,_0x22a928,_0x3bcdf2['get'](_0x447e74),_0x3bcdf2['get'](_0x22a928));if(!_0x1a6ff3)return null;return _0x13caf1['get'](_0x22a928)(_0x447e74,_0x22a928,_0x3bcdf2['get'](_0x447e74),_0x3bcdf2['get'](_0x22a928))?_0x1a6ff3[0x1]['commentThread']&&_0x1a6ff3[0x1]['commentThread']['length']?null:_0x1a6ff3:null;}_0x2512d4['size']&&this['_refreshSuggestionsChain'](_0x2512d4);}['_refreshAttributeSuggestionsChain'](_0x98a4da){if(0x0==_0x98a4da['length'])return;const _0x169941=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8f5438=>'attribute'==_0x8f5438['type']&&_0x8f5438['_isDataLoaded']),_0x29d7b8=[],_0x59b0a3=new Map();for(const _0x257484 of _0x169941){const _0x45f2ec=_0x30c346(_0x257484['attributes']);_0x59b0a3['has'](_0x45f2ec)||(_0x59b0a3['set'](_0x45f2ec,_0x29d7b8['length']),_0x29d7b8['push']([]));const _0x111d33=_0x59b0a3['get'](_0x45f2ec);_0x29d7b8[_0x111d33]['push'](_0x257484);}!(function(){_0x29d7b8['sort']((_0x17ad19,_0x868187)=>{const _0x10a8fa=_0x17ad19[0x0]['createdAt'],_0x3059ee=_0x868187[0x0]['createdAt'];return _0x10a8fa==_0x3059ee?_0x17ad19[0x0]['attributes']['groupId']<_0x868187[0x0]['attributes']['groupId']?-0x1:0x1:_0x10a8fa<_0x3059ee?-0x1:0x1;});for(const _0x125836 of _0x29d7b8)_0x125836['sort']((_0x136eb6,_0x29ba12)=>_0x136eb6['id']<_0x29ba12['id']?-0x1:0x1);}());for(let _0x10dfaa=0x0;_0x10dfaa<_0x29d7b8['length'];_0x10dfaa++){if(0x0==_0x29d7b8[_0x10dfaa]['length'])continue;const _0x408805=[];for(let _0x36a7e3=_0x10dfaa+0x1;_0x36a7e3<_0x29d7b8['length'];_0x36a7e3++)0x0!=_0x29d7b8[_0x36a7e3]['length']&&_0xccf100(_0x29d7b8[_0x10dfaa],_0x29d7b8[_0x36a7e3])&&_0x408805['push'](_0x36a7e3);for(const _0x25e77a of _0x408805)_0x29d7b8[_0x10dfaa]=_0x29d7b8[_0x10dfaa]['concat'](_0x29d7b8[_0x25e77a]),_0x29d7b8[_0x25e77a]=[];}for(const _0x404f66 of _0x29d7b8)for(let _0x57db4a=0x0;_0x57db4a<_0x404f66['length'];_0x57db4a++){const _0x5bb7b7=_0x404f66[_0x57db4a+0x1]||null;_0x404f66[_0x57db4a]['next']!==_0x5bb7b7&&(_0x404f66[_0x57db4a]['next']=_0x5bb7b7);}for(const _0x31e0bf of _0x29d7b8)for(let _0x20d7ce=0x0;_0x20d7ce<_0x31e0bf['length'];_0x20d7ce++){const _0x39bcb8=_0x31e0bf[_0x20d7ce-0x1]||null;_0x31e0bf[_0x20d7ce]['previous']!==_0x39bcb8&&(_0x31e0bf[_0x20d7ce]['previous']=_0x39bcb8);}function _0xccf100(_0x2d5014,_0x1771f5){if(_0x2d5014[0x0]['attributes']['groupId']!==_0x1771f5[0x0]['attributes']['groupId']&&_0x2d5014[0x0]['author']!==_0x1771f5[0x0]['author'])return!0x1;if(!function(_0x1013a5,_0x5c5bf5){if(!_0x1013a5['hasComments']&&!_0x5c5bf5['hasComments'])return!0x0;if(_0x1013a5['hasComments']&&_0x5c5bf5['hasComments'])return!0x1;if(_0x1013a5['hasComments']&&_0x5c5bf5['createdAt']<_0x1013a5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c5bf5['hasComments']&&_0x1013a5['createdAt']<_0x5c5bf5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d5014[0x0],_0x1771f5[0x0]))return!0x1;const _0x5c23e7=xt(_0x2d5014[0x0]['attributes'],'groupId'),_0x111f2d=xt(_0x1771f5[0x0]['attributes'],'groupId');if(!_0x3b7fb8(_0x5c23e7,_0x111f2d))return!0x1;return!!_0x2d5014['every'](_0x542d15=>_0x1771f5['some'](_0x3405d2=>_0x542d15['getFirstRange']()['isEqual'](_0x3405d2['getFirstRange']())))&&_0x1771f5['every'](_0x367fca=>_0x2d5014['some'](_0x441a6d=>_0x367fca['getFirstRange']()['isEqual'](_0x441a6d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x18a082){const _0x5bdbc4=Array['from'](_0x18a082),_0x39448f=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe49bd5=_0x39448f['filter'](_0x36387b=>!_0x18a082['has'](_0x36387b)),_0x5b406a=new Map(_0x5bdbc4['map'](_0x5efd8f=>[_0x5efd8f,this['_suggestionFactory']['getSuggestionCallback'](_0x5efd8f['type'],_0x5efd8f['subType'],'join')])),_0x4c6599=new Map(_0x39448f['map'](_0x535660=>[_0x535660,_0x535660['getRanges']()]));for(let _0x5bef11=0x0;_0x5bef11<_0x5bdbc4['length'];_0x5bef11++){if(_0x5f28ea(this,_0x5bdbc4[_0x5bef11],_0x5bdbc4,_0x5bef11+0x1))return!0x0;}for(let _0x473ff3=0x0;_0x473ff3<_0x5bdbc4['length'];_0x473ff3++){if(_0x5f28ea(this,_0x5bdbc4[_0x473ff3],_0xe49bd5,0x0))return!0x0;}return!0x1;function _0x5f28ea(_0xc1154c,_0x9521dd,_0x59b7af,_0x1a9d4f){for(let _0x21c614=_0x1a9d4f;_0x21c614<_0x59b7af['length'];_0x21c614++){const _0x5b4696=_0x59b7af[_0x21c614];if(_0x5b4696['type']!==_0x9521dd['type']||_0x5b4696['author']['id']!==_0x9521dd['author']['id']||_0x5b4696['subType']!==_0x9521dd['subType'])continue;if(!qt(_0x9521dd,_0x5b4696))continue;if('attribute'==_0x9521dd['type']&&_0x9521dd['data']['oldValue']!=_0x5b4696['data']['oldValue'])continue;if('attribute'==_0x9521dd['type']&&_0xc1154c['_isBlockAttribute'](_0x9521dd['data']['key']))continue;if('formatBlock'==_0x9521dd['type']){const _0x5acbaf=_0xc1154c['editor']['model'],_0x17c75d=_0x9521dd['getContainedElement']();if(_0x17c75d&&(_0x5acbaf['schema']['isObject'](_0x17c75d)||_0x5acbaf['schema']['isLimit'](_0x17c75d)))continue;}const _0x3e02b2=_0x5b406a['get'](_0x9521dd),_0x1dcfb0=_0x4c6599['get'](_0x9521dd),_0x2e546e=_0x4c6599['get'](_0x5b4696),_0x217708=_0x9521dd['commentThread']&&_0x9521dd['commentThread']['length'],_0x23fb8c=_0x5b4696['commentThread']&&_0x5b4696['commentThread']['length'];if(!_0x217708&&_0x3e02b2(_0x2e546e,_0x1dcfb0))return _0xc1154c['_joinSuggestions'](_0x5b4696,_0x9521dd),_0x4c6599['delete'](_0x9521dd),!0x0;if(!_0x23fb8c&&_0x3e02b2(_0x1dcfb0,_0x2e546e))return _0xc1154c['_joinSuggestions'](_0x9521dd,_0x5b4696),_0x4c6599['delete'](_0x5b4696),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5813d9,_0x5a133a){if(_0x5813d9['isMultiRange']){for(const _0x133254 of _0x5a133a['getRanges']())_0x5813d9['addRange'](_0x133254);}else{const _0x3ef56d=_0x5a133a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5813d9,this['_model']['createRange'](_0x5813d9['getFirstRange']()['start'],_0x3ef56d));}_0x5a133a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11cb49,_0x4d7af0,_0x45dc3b){const _0x1fac75=_0x11cb49['startsWith']('format')||_0x11cb49['startsWith']('attribute')?'FORMATTING':_0x11cb49['toUpperCase']();return o(this['editor']['locale'],_0x4d7af0+'_'+_0x1fac75+'_SUGGESTION_ANNOUNCEMENT',_0x45dc3b);}['_initAriaMarkerChangeAnnouncements'](){const _0x54e792=this['editor'];if(!_0x54e792['ui'])return;const {ariaLiveAnnouncer:_0x4377c6}=_0x54e792['ui'];_0x4cdbd7(this['_model'],({left:_0x63b50,entered:_0x32957f})=>{for(const _0x27b580 of _0x63b50){const {group:_0x17d3ab,type:_0x191d29}=this['_splitMarkerName'](_0x27b580['name']);if('suggestion'===_0x17d3ab){_0x4377c6['announce'](this['_getMarkerAnnouncementText'](_0x191d29,'LEAVE'));break;}}for(const _0xcff1ee of _0x32957f){const {group:_0x367792,type:_0x3b225b}=this['_splitMarkerName'](_0xcff1ee['name']);if('suggestion'===_0x367792){_0x4377c6['announce'](this['_getMarkerAnnouncementText'](_0x3b225b,'ENTER',_0x2b5fa3(_0x23baf2)));break;}}});}['_processAttributeChanges'](_0x1c5088){if(this['_recordAttributeSuggestions'])return!0x1;const _0x463c83=this['editor'],_0x3fd4e9=_0x463c83['model']['document']['differ']['getChanges']();if(0x0==_0x3fd4e9['length'])return!0x1;const _0x42f1d5=[],_0x40a125=_0x3fd4e9['filter'](_0x2fdbc0=>'attribute'==_0x2fdbc0['type']),_0x4e99a0=_0x3fd4e9['filter'](_0x1bb376=>'insert'==_0x1bb376['type']&&'$text'!=_0x1bb376['name']),_0x57c852=_0x3fd4e9['filter'](_0x1d6644=>'remove'==_0x1d6644['type']&&'$text'!=_0x1d6644['name']);for(const _0x13f22f of _0x40a125)_0x42f1d5['push']({'key':_0x13f22f['attributeKey'],'newValue':_0x13f22f['attributeNewValue'],'oldValue':_0x13f22f['attributeOldValue'],'range':Lt(_0x13f22f['range'],_0x463c83['model'])});for(const _0x54a57c of _0x4e99a0){const _0x513edb=_0x57c852['find'](_0x21ff28=>_0x21ff28['position']['isEqual'](_0x54a57c['position']));_0x513edb&&_0x42f1d5['push']({'key':m,'newValue':_0x54a57c['name'],'oldValue':_0x513edb['name'],'range':_0x463c83['model']['createRangeOn'](_0x54a57c['position']['nodeAfter'])});}return 0x0!=_0x42f1d5['length']&&this['_reduceExistingSuggestions'](_0x1c5088,_0x42f1d5);}['_processAttributeSuggestions'](_0x38d837){let _0x2d5008=!0x1;const _0x48a5e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x836783=>_0x836783['data']['newRange']&&_0x836783['name']['startsWith']('suggestion:attribute:'));for(const _0x33d4f5 of _0x48a5e0){const {subType:_0x499f15,id:_0x1c0f96}=this['_splitMarkerName'](_0x33d4f5['name']),_0x8cbab=_0x499f15['split']('|')[0x0];for(const _0x120b4e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x120b4e['id']!=_0x1c0f96&&'attribute'==_0x120b4e['type']&&_0x120b4e['data']&&_0x120b4e['data']['key']==_0x8cbab&&_0x120b4e['getFirstRange']()['isIntersecting'](_0x33d4f5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x120b4e,_0x33d4f5['data']['newRange'],_0x38d837),_0x2d5008=!0x0);}return _0x2d5008;}['_recordAttributeChanges'](_0x1adcfc){this['_recordAttributeSuggestions']=!0x0,_0x1adcfc();}['_isRegisteredAttribute'](_0x130aa4){const _0x23df11=this['_isBlockAttribute'](_0x130aa4),_0x4d35c8=this['_inlineAttributeKeys']['has'](_0x130aa4);return _0x23df11||_0x4d35c8;}['_reduceExistingSuggestions'](_0xe16ed8,_0xb05a84){if(0x0==_0xb05a84['length'])return!0x1;let _0x15c41f=!0x1;for(const _0x2461a6 of _0xb05a84){const _0x429661=this['_findSuggestions'](_0x2461a6['range'],'attribute')['filter'](_0x5e51d9=>!_0x5e51d9['meta']['isNextTo'])['map'](_0x5d345a=>_0x5d345a['suggestion']),_0x4b87e2=_0x30c346({'newValue':_0x2461a6['newValue']});_0x429661['filter'](_0x9ee793=>{const [_0x27225b,_0x18a3ef]=_0x9ee793['subType']['split']('|');return _0x27225b==_0x2461a6['key']&&_0x18a3ef!=_0x4b87e2;})['forEach'](_0x44b8c5=>{this['_reduceSuggestionAttributeRange'](_0x44b8c5,_0x2461a6['range'],_0xe16ed8),_0x15c41f=!0x0;});}return _0x15c41f;}['_reduceSuggestionAttributeRange'](_0x5b7063,_0x196eaf,_0x49a149){const _0x2b8105=_0x5b7063['getFirstRange']()['getDifference'](_0x196eaf);0x0!==_0x2b8105['length']?0x1!==_0x2b8105['length']?this['_breakSuggestionMarker'](_0x5b7063,_0x196eaf['start'],_0x196eaf['end']):this['_setSuggestionRange'](_0x5b7063,_0x2b8105[0x0]):_0x49a149['removeMarker'](_0x5b7063['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x296201){this['_editor']=_0x296201,this['_model']=_0x296201['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57265a,_0x3396a0,_0x19418b,_0x59d019,_0x59bb3d,_0x24582e){return new u(this['_model'],{'type':_0x57265a,'subType':_0x3396a0,'id':_0x19418b,'author':_0x59d019,'creator':_0x59d019,'attributes':_0x59bb3d,'onAttributesChange':_0x24582e,'onAccept':(..._0x436656)=>this['getSuggestionCallback'](_0x57265a,_0x3396a0,'accept')(..._0x436656),'onDiscard':(..._0x47a2cf)=>this['getSuggestionCallback'](_0x57265a,_0x3396a0,'discard')(..._0x47a2cf)});}['registerCustomCallback'](_0x11c02d,_0x3167e6,_0x3728d9,_0x4eb4ac){const _0x4597b0=_0x11c02d+':'+_0x3167e6+':'+_0x3728d9;this['_customCallbacks']['set'](_0x4597b0,_0x4eb4ac);}['getSuggestionCallback'](_0x6882ee,_0x5c215c,_0x1e8fe2){const _0x4d42c5=_0x6882ee+':'+_0x5c215c+':'+_0x1e8fe2;return this['_customCallbacks']['get'](_0x4d42c5)||this['_defaultCallbacks']['get'](_0x6882ee+':'+_0x1e8fe2);}['_registerDefaultCallbacks'](){const _0xd4176c=()=>!0x1,_0x1435e6=_0x502b06=>{_0x502b06['sort']((_0x10f723,_0x2c77a3)=>_0x10f723['start']['isBefore'](_0x2c77a3['start'])?0x1:-0x1),this['_model']['change'](_0x2a6294=>{for(const _0x455357 of _0x502b06){let _0x5ac3ed;_0x5ac3ed=_0x455357['end']['isAtEnd']&&_0x455357['end']['parent']==_0x455357['start']['nodeAfter']?_0x2a6294['createSelection'](_0x455357['start']['nodeAfter'],'on'):_0x2a6294['createSelection'](_0x455357),this['_model']['deleteContent'](_0x5ac3ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x480f66=(_0x2a9b51,_0x2be70d)=>{_0x2be70d&&this['_model']['change'](_0x170aa8=>{const {commandName:_0x58c684,commandParams:_0x1f6272=[]}=_0x2be70d,_0x48ea2c=_0x2a9b51['map'](_0xea4515=>(Vt(_0xea4515)&&(_0xea4515=this['_model']['createRange'](_0xea4515['end'])),_0xea4515))['filter'](_0x5d4565=>'$graveyard'!==_0x5d4565['root']['rootName']);if(_0x48ea2c['length']<0x1)return;const _0x34aea1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b8dab=>_0x5e91cd['fromRange'](_0x5b8dab));_0x170aa8['setSelection'](_0x48ea2c);for(const _0x38314a of this['_editor']['commands']['commands']())_0x38314a['refresh']();_0x1f6272['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x58c684,..._0x1f6272);const _0x171fd6=_0x34aea1['filter'](_0x557c97=>'$graveyard'!=_0x557c97['root']['rootName']);_0x171fd6['length']>0x0&&_0x170aa8['setSelection'](_0x171fd6);for(const _0x11dfc9 of _0x34aea1)_0x11dfc9['detach']();});},_0x4e4d01=(_0x4f640f,_0x5ef2fc)=>0x1==_0x4f640f['length']&&0x1==_0x5ef2fc['length']&&_0x4f640f[0x0]['end']['isEqual'](_0x5ef2fc[0x0]['start']),_0x5f8216=(_0x37027b,_0x27ee06,_0x4bfdc3,_0x107574)=>Ht(_0x37027b,_0x27ee06,_0x4bfdc3,_0x107574)?[_0x37027b,_0x27ee06]:Ht(_0x27ee06,_0x37027b,_0x107574,_0x4bfdc3)?[_0x27ee06,_0x37027b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd4176c),this['_defaultCallbacks']['set']('insertion:discard',_0x1435e6),this['_defaultCallbacks']['set']('insertion:join',_0x4e4d01),this['_defaultCallbacks']['set']('insertion:chain',_0x5f8216),this['_defaultCallbacks']['set']('deletion:accept',_0x1435e6),this['_defaultCallbacks']['set']('deletion:discard',_0xd4176c),this['_defaultCallbacks']['set']('deletion:join',_0x4e4d01),this['_defaultCallbacks']['set']('deletion:chain',_0x5f8216),this['_defaultCallbacks']['set']('formatInline:accept',_0x480f66),this['_defaultCallbacks']['set']('formatInline:discard',_0xd4176c),this['_defaultCallbacks']['set']('formatInline:join',_0x4e4d01),this['_defaultCallbacks']['set']('formatInline:chain',_0xd4176c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x480f66),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd4176c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e4d01),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd4176c),this['_defaultCallbacks']['set']('attribute:accept',_0xd4176c),this['_defaultCallbacks']['set']('attribute:discard',(_0x2ef649,_0x2fe196)=>{if(!_0x2fe196)return;const _0xaf9941=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x289194=>{if(_0x2fe196['key']==m)for(const _0x23e18a of _0x2ef649){const _0x5b1582=_0x23e18a['start']['nodeAfter'],_0x3dea74=_0x2fe196['oldValue'];_0x289194['rename'](_0x5b1582,_0x3dea74);}else{if(_0xaf9941['_isBlockAttribute'](_0x2fe196['key'])){for(const _0x5a9e81 of _0x2ef649)void 0x0!==_0x2fe196['oldValue']?_0x289194['setAttribute'](_0x2fe196['key'],_0x2fe196['oldValue'],_0x5a9e81['start']['nodeAfter']):_0x289194['removeAttribute'](_0x2fe196['key'],_0x5a9e81['start']['nodeAfter']);}else{for(const _0x546bcb of _0x2ef649)_0x2fe196['oldValue']?_0x289194['setAttribute'](_0x2fe196['key'],_0x2fe196['oldValue'],_0x546bcb):_0x289194['removeAttribute'](_0x2fe196['key'],_0x546bcb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e4d01);}}function Ut(_0x469699,_0xb30f4,_0x52424b){for(const _0x123a2f of _0xb30f4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x123a2f['root']==_0x123a2f)return!0x1;if(!_0x52424b['containsItem'](_0x123a2f))return!0x1;if(_0x469699['isObject'](_0x123a2f)||_0x469699['isLimit'](_0x123a2f))return!0x0;}return!0x1;}function Vt(_0x157836){return _0x157836['end']['parent']==_0x157836['start']['nodeAfter']&&_0x157836['end']['isAtStart'];}function Pt(_0x2b030b,_0x548c93,_0x575122,_0xa83b35){const _0x1425c4=_0x25c982=>!_0x25c982['item']['is']('$textProxy')&&!_0xa83b35['isObject'](_0x25c982['item']),_0x1bf51e=_0x2b030b['start']['getLastMatchingPosition'](_0x1425c4),_0x45746d=_0x2b030b['end']['getLastMatchingPosition'](_0x1425c4,{'direction':'backward'});return(!_0x2b030b['start']['isEqual'](_0x1bf51e)||!_0x2b030b['end']['isEqual'](_0x45746d))&&(_0x1bf51e['isBefore'](_0x45746d)?_0x575122['updateMarker'](_0x548c93,{'range':_0x575122['createRange'](_0x1bf51e,_0x45746d)}):_0x575122['removeMarker'](_0x548c93),!0x0);}function Gt(_0x530f42){return _0x30c346(_0x530f42);}function Ft(_0x8e6b64){const _0x14f4d1=_0x8e6b64['start']['nodeAfter'];return _0x14f4d1&&_0x14f4d1['is']('element');}function Lt(_0x4d2ee8,_0x2c36f2){return null==_0x4d2ee8['end']['nodeBefore']&&_0x4d2ee8['end']['parent']==_0x4d2ee8['start']['nodeAfter']?Jt(_0x4d2ee8['start']['nodeAfter'],_0x2c36f2):_0x4d2ee8;}function Jt(_0x1387f7,_0x1cdfc5){const _0x56d5c8=_0x1cdfc5['schema']['isObject'](_0x1387f7)||_0x1cdfc5['schema']['isSelectable'](_0x1387f7);return _0x1cdfc5['createRange'](_0x1cdfc5['createPositionAt'](_0x1387f7,'before'),_0x56d5c8?_0x1cdfc5['createPositionAfter'](_0x1387f7):_0x1cdfc5['createPositionAt'](_0x1387f7,'end'));}function Ht(_0x361c05,_0x3e50c2,_0x4712b3,_0x4bf8a9){return!!qt(_0x361c05,_0x3e50c2)&&_0x4712b3['end']['isEqual'](_0x4bf8a9['start']);}function qt(_0x401545,_0x418fc5){if(!_0x401545['_isDataLoaded']||!_0x418fc5['_isDataLoaded'])return!0x1;const _0x30f871=new Set(Object['keys'](_0x401545['attributes'])),_0x33c534=new Set(Object['keys'](_0x418fc5['attributes']));if(_0x30f871['delete']('groupId'),_0x33c534['delete']('groupId'),0x0==_0x30f871['size']&&0x0==_0x33c534['size'])return!0x0;if(_0x30f871['size']!=_0x33c534['size'])return!0x1;const _0x2860f6={..._0x401545['attributes']},_0x15e7de={..._0x418fc5['attributes']};return delete _0x2860f6['groupId'],delete _0x15e7de['groupId'],JSON['stringify'](_0x2860f6)==JSON['stringify'](_0x15e7de);}function zt(_0x37b126,_0x203d8f){const _0x2d12c6=Kt(_0x37b126['attributes']),_0x133e85=Kt(_0x203d8f);if(!_0x37b126['_isDataLoaded'])return!0x1;for(const _0x4d2662 of Object['keys'](_0x133e85))if(!_0x3b7fb8(_0x2d12c6[_0x4d2662],_0x133e85[_0x4d2662]))return!0x1;return!0x0;}function Kt(_0x456d61){const _0x759648=Object['assign']({},_0x456d61);return delete _0x759648['skipNestingCheck'],delete _0x759648['tablePasteChainId'],_0x759648;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x40aa80(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x135ba5,_0x302a21,_0x3aab80,_0x310a52){super(),this['model']=_0x302a21,this['view']=_0x3aab80,this['commentThreadController']=_0x310a52,this['_editor']=_0x135ba5,this['_acceptCommand']=_0x135ba5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x135ba5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x34b0bf,_0x6449b6)=>_0x34b0bf||_0x6449b6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x51b8db=>_0x51b8db&&this['_editor']['model']['canEditAt'](_0x302a21['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x159d75=>_0x159d75&&this['_editor']['model']['canEditAt'](_0x302a21['getRanges']())),this['_pendingAction']=null,_0x3aab80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3aab80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3aab80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3aab80,'change:isDirty',()=>{_0x3aab80['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 _0x58e37c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58e37c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x288dc8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x432273,_0x51b78b,_0x49f5bb,_0x49b8f2){super(_0x432273),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x59ecc7(_0x432273,o(_0x432273,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51b78b['authoredAt']),this['bind']('authoredAt')['to'](_0x51b78b),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',_0x51b78b,'authoredAt',this,'descriptionParts',(_0x5bf165,_0x2fd39b,_0x13419c)=>{const _0x1253c2=_0x13419c['map'](_0x105fa8=>ns(_0x105fa8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5bf165-0x1,_0x51b78b['author']['name'],_0x2fd39b?_0x49b8f2['formatDateTime'](_0x2fd39b):'',new DOMParser()['parseFromString'](_0x1253c2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x292df9(),this['focusTracker']=new _0x5993dc(),this['keystrokes']=new _0x5d4bbe(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x376390=>_0x376390['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51b78b,this['_localUser']=_0x49f5bb,this['_config']=_0x49b8f2,_0x49b8f2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x57f41d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2014ab}=this['_config'];this['commentsListView']=new _0x2014ab(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',_0x12b1a7=>_0x12b1a7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x410d95,_0x1fe980)=>_0x410d95||!!_0x1fe980);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36a41a}=this['_config'],_0x2c9b29=new _0x36a41a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x366766=_0x2c9b29['commentInputView'];return _0x2c9b29['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x366766,'value',(_0x461294,_0x2e9fca,_0x5467e2)=>!!_0x5467e2||_0x461294&&!_0x2e9fca),_0x366766['on']('submit',(_0xf60dc4,_0x37bd79)=>{this['fire']('addComment',_0x37bd79),_0x366766['editor']['setData']('');}),_0x366766['on']('cancel',()=>this['focus']()),_0x366766['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2c9b29;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0xcd70cd,_0x14132e,_0x237b62,_0x260b6b){super(_0xcd70cd,_0x14132e,_0x237b62,_0x260b6b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48b46b=>_0x48b46b&&_0x48b46b[0x0]?_0x48b46b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4870f5,_0x41d721)=>{let _0x89869e='';for(const _0x4d0c6e of _0x4870f5)_0x89869e+='<p>'+ns(_0x4d0c6e['content'],_0x4d0c6e['color'])+'</p>';return _0x41d721?_0x89869e:ti(_0x89869e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x260b6b['SuggestionView'](_0xcd70cd,_0x14132e,{'formatDateTime':_0x260b6b['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 _0x236ded=this['bindTemplate'],_0x1cc75e=[this['suggestionView']];return this['commentsListView']&&_0x1cc75e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1cc75e['push'](this['commentThreadInputView']),_0x1cc75e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x236ded['if']('isActive','ck-suggestion-wrapper--active'),_0x236ded['to']('type',_0xd48bc5=>'ck-suggestion-'+_0xd48bc5),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':_0x236ded['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1cc75e};}['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 ue extends _0x288dc8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa499df,_0x563bd7,_0x21f711){super(_0xa499df),this['_model']=_0x563bd7,this['_config']=_0x21f711,this['set']('description',''),this['bind']('authoredAt')['to'](_0x563bd7),this['acceptButton']=this['_createButton'](o(_0xa499df,'Accept\x20suggestion'),_0x4e9ebb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa499df,'Discard\x20suggestion'),_0x4e9ebb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3a9542(_0xa499df,_0x563bd7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x292df9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5993dc(),this['keystrokes']=new _0x5d4bbe(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ab69e=>_0x1ab69e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x503f30=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x503f30['innerHTML']=this['description'],this['on']('change:description',(_0x53086b,_0x3191c2,_0x3c9e23)=>{_0x503f30['innerHTML']=_0x3c9e23;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1d8e3d=this['bindTemplate'],_0x3e1730=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1d8e3d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1d8e3d['to']('authoredAt',_0x466250=>this['_config']['formatDateTime'](_0x466250))}]}]},{'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']&&_0x3e1730['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':_0x3e1730}]};}['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'](_0x5a740b,_0x33073d,_0x2a5719,_0x592428,_0x414e8c){const _0x5b6580=new _0x520a67(this['locale']);return _0x5b6580['set']({'label':_0x5a740b,'icon':_0x33073d,'tooltip':!0x0,'tooltipPosition':_0x414e8c}),_0x5b6580['extendTemplate']({'attributes':{'class':_0x2a5719}}),_0x5b6580['on']('execute',()=>{this['fire'](_0x592428,this['_model']['id']);}),_0x5b6580;}['_setupKeyboardNavigation'](){const _0x5c024f=this['element'];this['keystrokes']['listenTo'](_0x5c024f);for(const _0x3b2518 of this['focusables'])this['focusTracker']['add'](_0x3b2518['element']),this['keystrokes']['listenTo'](_0x3b2518['element']);this['keystrokes']['set']('enter',(_0x14fb7f,_0xe86c05)=>{_0x5c024f===_0x14fb7f['target']&&(this['focusCycler']['focusFirst'](),_0xe86c05());}),this['keystrokes']['set']('esc',(_0xa5a268,_0xfd9fb4)=>{_0x5c024f!==_0xa5a268['target']&&(this['focus'](),_0xfd9fb4());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x579de7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21ad1e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x366c27){super(_0x366c27),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2919b3=this['editor']['config'];_0x2919b3['define']('trackChanges.SuggestionThreadView',de),_0x2919b3['define']('trackChanges.SuggestionView',ue),_0x2919b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2919b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x110fa2,_0x2f3e0f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1aace0,_0x25d945]of this['_handleControllerBuffer']){const _0x342555=this['_suggestionToController']['has'](_0x1aace0);_0x342555||_0x25d945?_0x342555&&_0x25d945&&this['_destroyController'](_0x1aace0):this['_initializeController'](_0x1aace0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x110fa2,_0x2f3e0f);}['init'](){const _0x263ce3=this['editor'],_0x2b9842=_0x263ce3['plugins']['get']('TrackChangesEditing'),_0x4cbd02=_0x263ce3['plugins']['get']('Annotations'),_0x1950be=_0x263ce3['plugins']['get']('EditorAnnotations'),_0x50cf52=_0x263ce3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1950be['addSourceCollector'](()=>{const _0x135297=[];for(const [_0x454a5d,_0x362b4c]of Array['from'](this['_suggestionToController'])){const _0x1ab78a=_0x454a5d['getAllAdjacentSuggestions'](),_0xeb3329=[];for(const _0x38c371 of _0x1ab78a){if(!_0x38c371['isInContent'])continue;if(_0x38c371['isMultiRange']){_0xeb3329['push'](..._0x38c371['getRanges']());continue;}const _0x54e488=_0x38c371['getFirstRange']();if(_0xeb3329['length']>0x0){const _0x34101e=_0xeb3329[0x0]['getJoined'](_0x54e488);if(_0x34101e){_0xeb3329[0x0]=_0x34101e;continue;}}_0xeb3329['push'](_0x54e488);}_0x135297['push']([_0x362b4c['view'],_0xeb3329]);}return _0x135297;}),this['listenTo'](_0x2b9842,'suggestionLoaded',(_0x585567,_0x2ce596)=>{this['listenTo'](_0x2ce596,'change:previous',(_0x299e9e,_0x3419e2,_0x3223f1,_0x2ab6b6)=>{_0x2ce596['isInContent']&&(null==_0x3223f1?(this['_updateController'](_0x2ab6b6['head']),this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x1)):(this['_updateController'](_0x3223f1['head']),null==_0x2ab6b6&&this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x0)));}),null!==_0x2ce596['previous']?this['_updateController'](_0x2ce596['head']):this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x1);}),this['listenTo'](_0x2b9842,'suggestionUnloaded',(_0x2acc4d,_0x399482,_0x1c4ed4)=>{this['stopListening'](_0x399482,'change:previous'),this['_handleControllerBuffer']['delete'](_0x399482),this['_suggestionToController']['has'](_0x399482)&&this['_destroyController'](_0x399482),_0x1c4ed4&&this['_updateController'](_0x1c4ed4['head']);}),this['listenTo'](_0x2b9842,'suggestionChanged',(_0x2191c9,_0x19cc45)=>{this['_updateController'](_0x19cc45);}),this['listenTo'](_0x4cbd02,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50cf52,'addComment',(_0x195090,{threadId:_0x3c1604,isFromAdapter:_0x4dfb4f})=>{if(_0x4dfb4f||!_0x2b9842['hasSuggestion'](_0x3c1604))return;const _0x201962=_0x2b9842['getSuggestion'](_0x3c1604);this['_suggestionToController']['get'](_0x201962)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24620f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24d8d2;for(const _0x451609 in _0x24620f){const _0x1a293e=_0x451609,_0x56535c=_0x24620f[_0x1a293e];if('trackChangesLicenseKeyValid'==_0x56535c||'trackChangesLicenseKeyInvalid'==_0x56535c||'trackChangesLicenseKeyExpired'==_0x56535c||'trackChangesLicenseKeyDomainLimit'==_0x56535c||'trackChangesLicenseKeyNotAllowed'==_0x56535c||'trackChangesLicenseKeyEvaluationLimit'==_0x56535c||'trackChangesLicenseKeyTrialLimit'==_0x56535c||'trackChangesLicenseKeyDevelopmentLimit'==_0x56535c||'trackChangesLicenseKeyUsageLimit'==_0x56535c){delete _0x24620f[_0x1a293e],_0x24d8d2=_0x56535c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24d8d2&&_0x24620f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24d8d2&&_0x24620f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24d8d2&&_0x24620f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x322e15=this['editor']['plugins']['get']('Annotations'),_0x11367d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x209d41=Array['from'](_0x322e15['activeAnnotations'],_0xc99b9b=>_0xc99b9b['innerView'])['filter'](_0x2d5494=>this['_viewToController']['has'](_0x2d5494)),_0xe95d9f=[];for(const _0x26d9de of _0x209d41){const _0x1914e6=this['_viewToController']['get'](_0x26d9de)['model']['getAllAdjacentSuggestions']();_0xe95d9f['push'](..._0x1914e6['reduce']((_0x3129eb,_0x39bb3a)=>[..._0x3129eb,..._0x39bb3a['getMarkerNames']()],[]));}_0x11367d['activeMarkers']=_0xe95d9f;}['_addUIComponentsToFactory'](){const _0x3b34bb=this['editor'],_0x346c33=_0x3b34bb['locale'],_0x8eb13a=o(_0x346c33,'Track\x20changes'),_0x4e6784=new _0x209e7b([{'type':'switchbutton','model':new _0x50aa22({'withText':!0x0,'isToggleable':!0x0,'label':_0x8eb13a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x13c3cd of _0x4e6784)if(pe(_0x13c3cd)){const _0x5cc2ed=_0x3b34bb['commands']['get'](_0x13c3cd['model']['commandName']);_0x13c3cd['model']['bind']('isOn','isEnabled')['to'](_0x5cc2ed,'value','isEnabled');}_0x3b34bb['ui']['componentFactory']['add']('trackChanges',_0x36946e=>this['_createToolbarButton'](_0x36946e,_0x4e6784,_0x8eb13a)),_0x3b34bb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x16b177=>this['_createMenuBarMenu'](_0x16b177,_0x4e6784,_0x8eb13a));}['_createToolbarButton'](_0x9666bb,_0x452ae5,_0x2b27fc){const _0x124523=_0xdbafde(_0x9666bb,_0x8c5030),_0x35a889=this['editor']['commands']['get']('trackChanges');_0x124523['buttonView']['set']({'tooltip':_0x2b27fc,'label':_0x2b27fc,'icon':Ce}),_0x124523['buttonView']['bind']('isOn')['to'](_0x35a889,'value'),_0x124523['buttonView']['on']('execute',()=>{_0x35a889['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x124523,_0x452ae5,{'role':'menu'});const _0x4a66d1=[];for(const _0x4b760e of _0x452ae5)pe(_0x4b760e)&&_0x4a66d1['push'](this['editor']['commands']['get'](_0x4b760e['model']['commandName']));const _0x3dc9e3=_0x124523['buttonView'];return _0x3dc9e3['actionView']['unbind']('isEnabled'),_0x3dc9e3['arrowView']['unbind']('isEnabled'),_0x3dc9e3['actionView']['bind']('isEnabled')['to'](_0x35a889,'isEnabled'),_0x3dc9e3['arrowView']['bind']('isEnabled')['toMany'](_0x4a66d1,'isEnabled',(..._0x180689)=>_0x180689['some'](_0x4311e4=>_0x4311e4)),_0x124523['on']('execute',_0x22e0da=>{this['editor']['execute'](_0x22e0da['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x124523;}['_createMenuBarMenu'](_0x402cbe,_0x4ddd16,_0x2442a9){const _0xcc28b6=new _0x2f6eef(_0x402cbe),_0x3515ee=this['editor']['commands']['get']('trackChanges');_0xcc28b6['buttonView']['set']({'label':_0x2442a9,'icon':Ce});const _0x44c349=new _0x42666e(_0x402cbe);for(const _0x218f21 of _0x4ddd16){if('separator'==_0x218f21['type']){_0x44c349['items']['add'](new _0x144664(_0x402cbe));continue;}const _0x145262=new _0x359136(_0x402cbe,_0xcc28b6),_0x32fc09=new _0x5753fa(_0x402cbe),_0x4f4df5=_0x218f21['model'];_0x32fc09['bind'](...Object['keys'](_0x4f4df5))['to'](_0x4f4df5),_0x32fc09['delegate']('execute')['to'](_0xcc28b6),_0x32fc09['on']('execute',()=>{this['editor']['execute'](_0x4f4df5['commandName']),this['editor']['editing']['view']['focus']();}),_0x145262['children']['add'](_0x32fc09),_0x44c349['items']['add'](_0x145262);}return _0xcc28b6['bind']('isEnabled')['to'](_0x3515ee,'isEnabled'),_0xcc28b6['panelView']['children']['add'](_0x44c349),_0xcc28b6;}['_initializeController'](_0x2dab2f){const _0x15f9b3=this['editor'],_0x52f0e1=_0x15f9b3['config'],_0x93fdb5=_0x15f9b3['plugins']['get']('Annotations'),_0xa568b5=_0x15f9b3['plugins']['get']('CommentsRepository'),_0x2cbe32=_0x15f9b3['plugins']['get']('EditorAnnotations'),_0x4f3b50=_0x15f9b3['plugins']['get'](_0x21ad1e)['me'],_0x257487=_0x52f0e1['get']('trackChanges')['SuggestionThreadView'],_0x58ca1c=_0x52f0e1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x591086,CommentThreadInputView:_0x19882e}=_0x15f9b3['plugins']['get']('CommentsUI');let _0x48e185,_0x1a112c,_0x573e72;this['_annotationViews']['has'](_0x2dab2f['id'])?(_0x1a112c=this['_annotationViews']['get'](_0x2dab2f['id']),_0x48e185=_0x1a112c['mainView']):(_0x48e185=new _0x257487(_0x15f9b3['locale'],_0x2dab2f,_0x4f3b50,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52f0e1['get']('comments.editorConfig'),'licenseKey':_0x52f0e1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52f0e1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52f0e1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52f0e1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b27af(_0x52f0e1['get']('locale')),'CommentView':_0x52f0e1['get']('comments')['CommentView'],'CommentsListView':_0x591086,'CommentThreadInputView':_0x19882e,'SuggestionView':_0x58ca1c}),_0x48e185['suggestionView']['acceptButton']['on']('execute',()=>{_0x15f9b3['editing']['view']['focus']();}),_0x48e185['suggestionView']['discardButton']['on']('execute',()=>{_0x15f9b3['editing']['view']['focus']();}),_0x1a112c=_0x93fdb5['createAnnotationView'](this['editor']['locale'],_0x48e185),_0x1a112c['bind']('isDirty')['to'](_0x48e185,'isDirty'),_0x1a112c['bind']('length')['to'](_0x48e185),_0x1a112c['bind']('type')['to'](_0x48e185,'type',_0x5a10c9=>'suggestion-'+_0x5a10c9),_0x48e185['on']('escape',()=>{_0x573e72['fire']('escape');}),this['_annotationViews']['set'](_0x2dab2f['id'],_0x1a112c));const _0x26399b=_0xa568b5['createCommentThreadController'](_0x2dab2f['commentThread'],_0x48e185),_0x946a02=new ge(_0x15f9b3,_0x2dab2f,_0x48e185,_0x26399b),_0x3cfb0b=_0x2dab2f['getAllAdjacentSuggestions']()['filter'](_0x37e70e=>_0x37e70e['isInContent']);_0x48e185['descriptionParts']=_0x15f9b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3cfb0b),this['_suggestionToController']['set'](_0x2dab2f,_0x946a02),this['_viewToController']['set'](_0x48e185,_0x946a02),_0x573e72=_0x93fdb5['createAnnotation']({'view':_0x1a112c,'target':()=>{const _0x2a6ce5=[],_0x18100a=_0x2dab2f['getAllAdjacentSuggestions']()['filter'](_0x14a519=>_0x14a519['isInContent']);for(const _0x36144e of _0x18100a)_0x2a6ce5['push'](..._0x36144e['getMarkers']());return _0x4f030e(_0x15f9b3['editing'],_0x2a6ce5);},'type':()=>'suggestion-'+_0x946a02['view']['type']}),_0xa568b5['_bindAnnotationToEditors'](_0x48e185,_0x573e72),_0x93fdb5['add'](_0x573e72),_0x2cbe32['registerAnnotation'](_0x573e72);}['_destroyController'](_0xb812a8){const _0x343b8e=this['editor']['plugins']['get']('CommentsRepository'),_0x402be9=this['editor']['plugins']['get']('Annotations'),_0x5c9689=this['_suggestionToController']['get'](_0xb812a8),_0x136f6e=_0x5c9689['view'],_0x6ac019=_0x402be9['getByInnerView'](_0x136f6e);_0x343b8e['_unbindEditors'](_0x136f6e),_0x6ac019&&_0x402be9['remove'](_0x6ac019),this['_suggestionToController']['delete'](_0xb812a8),this['_viewToController']['delete'](_0x136f6e),_0x5c9689['destroy']();}['_updateController'](_0x10f4fc){if(!_0x10f4fc['isInContent']||!this['_suggestionToController']['has'](_0x10f4fc))return;const _0x3754ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44614c=this['_suggestionToController']['get'](_0x10f4fc),_0x1ef12e=_0x10f4fc['getAllAdjacentSuggestions']();_0x44614c['view']['descriptionParts']=_0x3754ba['descriptionFactory']['getDescriptions'](_0x1ef12e);}['destroy'](){for(const _0x42a887 of this['_suggestionToController']['keys']())this['_destroyController'](_0x42a887);for(const _0x4d0538 of this['_annotationViews']['values']())_0x4d0538['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x3a06ac){return'model'in _0x3a06ac;}class k extends _0x579de7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7610aa){this['editor']['plugins']['get'](p)['adapter']=_0x7610aa;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xa8572e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xa8572e);}['getSuggestions']({skipNotAttached:_0x3f52af=!0x1,toJSON:_0x111947=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f52af,'toJSON':_0x111947});}['getSuggestion'](_0x87f548){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x87f548);}}const w=['Pagination'];class T extends _0x579de7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x50a9f7=this['editor'];if(_0x50a9f7['config']['define']('trackChangesData.editorCreator',_0x5c938c=>{const _0x31c62f=_0x50a9f7['model']['document']['getRootNames']()['reduce']((_0x139bb4,_0x4a6417)=>(_0x139bb4[_0x4a6417]='',_0x139bb4),{});return _0x50a9f7['constructor']['create'](_0x31c62f,_0x5c938c);}),'function'!=typeof _0x50a9f7['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c1a8a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29961b){return N(this['editor'],!0x0,_0x29961b);}['getDataWithDiscardedSuggestions'](_0x14791d){return N(this['editor'],!0x1,_0x14791d);}}class D extends _0x579de7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3040ae){function _0x5fbf8f(_0x1229ac){return _0x1229ac['map'](_0x25a852=>String['fromCharCode'](_0x25a852))['join']('');}super(_0x3040ae),this['result']='end',_0x3040ae[_0x5fbf8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5fbf8f([0x76,0x69,0x65,0x77])][_0x5fbf8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5fbf8f([0x61,0x75,0x74,0x6f]),_0x3040ae[_0x5fbf8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5fbf8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5fbf8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5fbf8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5fbf8f([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 v(_0x4cf350){return void 0x0!==_0x4cf350['getRootsAttributes'];}async function N(_0x3a38ce,_0x1e6af8,_0xdadf3a){const _0x4bc1d3=_0x3ec0dd(_0x3a38ce,w);_0x4bc1d3['plugins']['push'](p,D),_0x4bc1d3['rootsAttributes']=v(_0x3a38ce)?_0x3a38ce['getRootsAttributes']():void 0x0;const _0x4c9708=document['createDocumentFragment'](),_0x3b0306=_0x3a38ce['config']['get']('trackChangesData')['editorCreator'],_0x2d3b6b=await _0x3b0306(_0x4bc1d3,()=>function(_0x16e0b0){const _0x8bc12f=document['createElement']('div');return _0x16e0b0['appendChild'](_0x8bc12f),_0x8bc12f;}(_0x4c9708));!function(_0x5a29c8,_0x58db1c){const _0x1783a2=_0x5a29c8['model']['document']['getRootNames']()['reduce']((_0x22a1fb,_0x3a87cc)=>(_0x22a1fb[_0x3a87cc]=_0x5a29c8['data']['get']({'rootName':_0x3a87cc}),_0x22a1fb),{}),_0x215b23=_0x5a29c8['plugins']['get']('Users')['users']['map'](_0x569816=>({'id':_0x569816['id'],'name':_0x569816['name']})),_0x101866=_0x5a29c8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b763c=_0x5a29c8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55c369=_0x58db1c['plugins']['get']('Users'),_0x44479a=_0x58db1c['plugins']['get']('TrackChangesEditing'),_0x266a7b=_0x58db1c['plugins']['get']('CommentsRepository');for(const _0x5a5879 of _0x266a7b['getCommentThreads']())_0x5a5879['remove']();for(const _0x299e06 of _0x215b23)_0x55c369['getUser'](_0x299e06['id'])||_0x55c369['addUser'](_0x299e06);_0x55c369['me']||_0x55c369['useAnonymousUser']();for(const _0x4211be of _0x1b763c)_0x266a7b['addCommentThread'](_0x4211be);for(const _0x416098 of _0x101866)_0x44479a['addSuggestionData'](_0x416098);_0x58db1c['data']['set'](_0x1783a2);}(_0x3a38ce,_0x2d3b6b),_0x2d3b6b['execute'](_0x1e6af8?'acceptAllSuggestions':'discardAllSuggestions');const _0x3f37f2=v(_0x2d3b6b)?_0x2d3b6b['getFullData'](_0xdadf3a):_0x2d3b6b['data']['get'](_0xdadf3a);return await _0x2d3b6b['destroy'](),_0x3f37f2;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0x52e26d,PendingActions as _0x30ea16,icons as _0x40f511}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x452bbc,ObservableMixin as _0x2d8665,uid as _0x38bf2c,insertToPriorityArray as _0xf43554,priorities as _0x4a9384,logWarning as _0x193b5d,getEnvKeystrokeText as _0x10560b,FocusTracker as _0x4dcb1d,KeystrokeHandler as _0x78215b,Collection as _0x86ed9c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4ff1e3,View as _0x539973,ViewCollection as _0x18c616,FocusCycler as ts,ViewModel as _0x2ad93e,createDropdown as _0x2749d9,SplitButtonView as _0x1a251c,addListToDropdown as te,MenuBarMenuView as _0xbfd5ec,MenuBarMenuListView as _0x29fe6e,ListSeparatorView as _0x3b7718,MenuBarMenuListItemView as _0x2fde7e,MenuBarMenuListItemButtonView as _0x3fe85d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3883fc,hashObject as _0x349e80,surroundingMarkersDetector as _0x3b18b3,FOCUS_ANNOTATION_KEYSTROKE as _0xea7965,AriaDescriptionView as _0x4f4dcd,setupThreadKeyboardNavigation as _0x31ef07,trimHtml as ti,UserView as _0x15dd6c,LateFocusButtonView as _0x1fe835,getDateTimeFormatter as _0x31f354,getAllMarkersDomElementsSorted as _0xdbe148,sanitizeEditorConfig as _0x40ca02}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5a8687,LiveRange as _0x5a7b90,LivePosition as _0x511c0a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ae452,toWidget as _0x5ab63a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x22fde8,set as _0x31d153,isEqual as _0x16b617,unset as _0x1ee607,omit as xt}from'lodash-es';import{Delete as _0x486e06,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x542673,ShiftEnter as _0x29d2e5}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x2766be,_0x5865bb){super(_0x2766be),this['_enabledCommands']=_0x5865bb,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 _0x5bfd03 of this['editor']['commands']['commands']())_0x5bfd03['affectsData']&&!this['_enabledCommands']['has'](_0x5bfd03)&&_0x5bfd03['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2cf0d4 of this['editor']['commands']['commands']())_0x2cf0d4['affectsData']&&!this['_enabledCommands']['has'](_0x2cf0d4)&&_0x2cf0d4['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x593a48,_0x12368f){super(_0x593a48),this['_suggestions']=_0x12368f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x27ec15){const _0x562be9=this['_suggestions']['get'](_0x27ec15);if(!_0x562be9)throw new _0x452bbc('track-changes-accept-suggestion-not-found',this);const _0x4b19b2=_0x562be9['getRanges']();this['editor']['model']['canEditAt'](_0x4b19b2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x562be9);}}class R extends Qt{['_suggestions'];constructor(_0x541887,_0x5a4f99){super(_0x541887),this['_suggestions']=_0x5a4f99,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x548c02){const _0x8cc911=this['_suggestions']['get'](_0x548c02);if(!_0x8cc911)throw new _0x452bbc('track-changes-discard-suggestion-not-found',this);const _0x3d8dc2=_0x8cc911['getRanges']();this['editor']['model']['canEditAt'](_0x3d8dc2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x8cc911);}}function ns(_0x3f6f1d,_0x2ebf8c){let _0x4ef2c5='';return _0x4ef2c5+=_0x3f6f1d['split']('*')['map']((_0x12c24d,_0x4b99e2)=>_0x4b99e2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x12c24d)+'</span>':nn(_0x12c24d))['join'](''),_0x2ebf8c&&(_0x4ef2c5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ebf8c['value']+'\x22\x20title=\x22'+_0x2ebf8c['title']+'\x22></span>'),_0x4ef2c5;}function nn(_0xa43bfb){const _0x3bc68f=document['createElement']('span');return _0x3bc68f['innerText']=_0xa43bfb,_0x3bc68f['innerHTML'];}function Wt(_0x570ba1){return _0x570ba1['sort']((_0x19b0fc,_0x2580fc)=>'deletion'==_0x19b0fc['type']&&'deletion'!=_0x2580fc['type']?-0x1:'deletion'!=_0x19b0fc['type']&&'deletion'==_0x2580fc['type']?0x1:0x0);}function to(_0x3b86be,_0x428fbd){let _0x42b4d0,_0x47dd05=0x0;const _0xf82d20=[],_0x537158=_0x428fbd['schema'];for(;_0x47dd05<_0x3b86be['length'];){const _0x39314c=_0x3b86be[_0x47dd05],_0x28363a=_0x3b86be[_0x47dd05+0x1];_0x42b4d0||(_0x42b4d0=_0x428fbd['createPositionBefore'](_0x39314c)),on(_0x428fbd,_0x39314c,_0x28363a)||(_0xf82d20['push'](_0x428fbd['createRange'](_0x42b4d0,_0x537158['isObject'](_0x39314c)?_0x428fbd['createPositionAfter'](_0x39314c):_0x428fbd['createPositionAt'](_0x39314c,'end'))),_0x42b4d0=null),_0x47dd05++;}return _0xf82d20;}function on(_0x21e5d3,_0x32007c,_0x57d2da){if(!_0x57d2da)return!0x1;const _0x237177=_0x21e5d3['createPositionAfter'](_0x32007c),_0x6131da=_0x21e5d3['createPositionBefore'](_0x57d2da);return _0x237177['isTouching'](_0x6131da);}function Xt(_0x337e49,_0x58bd46,_0x408d5c){for(;_0x408d5c['length'];){const _0x5743c6=_0x408d5c['splice'](0x0,0x64);_0x337e49['change'](()=>{for(const _0x46b366 of _0x5743c6)_0x46b366['isInContent']&&_0x58bd46['execute'](_0x46b366['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x22812e,_0x371b07,_0x20c755){super(_0x22812e),this['_command']=_0x371b07,this['_suggestions']=_0x20c755,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x264cc6=Array['from'](this['_suggestions']['values']())['some'](_0x1bd286=>_0x1bd286['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x264cc6;}['execute'](){const _0x5d5649=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x5b88f2 of _0x5d5649){const _0x13cb76=_0x5b88f2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13cb76))return;}Xt(this['editor']['model'],this['_command'],_0x5d5649);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x20bf76,_0x12a16b,_0x8d569){super(_0x20bf76),this['_command']=_0x12a16b,this['_suggestions']=_0x8d569,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ca148=this['editor']['model']['document']['selection'],_0x3a6046=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2a7f94,_0x11fa94){const _0x4fe961=Array['from'](_0x2a7f94['getRanges']()),_0x4117e8=new Set();for(const _0x3c19fd of _0x11fa94)if(_0x3c19fd['isInContent']){for(const _0x474e01 of _0x4fe961)for(const _0x243261 of _0x3c19fd['getRanges']())(_0x474e01['isIntersecting'](_0x243261)||_0x2a7f94['isCollapsed']&&!_0x3c19fd['isMultiRange']&&_0x3c19fd['next']&&_0x243261['end']['isTouching'](_0x474e01['start']))&&_0x4117e8['add'](_0x3c19fd);}return _0x4117e8;}(_0x1ca148,_0x3a6046),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x134cd3=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x5d10b2 of _0x134cd3){const _0x16b7ba=_0x5d10b2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16b7ba))return;}Xt(this['editor']['model'],this['_command'],_0x134cd3);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2d8665(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x493896,_0x366f23){super(),this['id']=_0x366f23['id'],this['type']=_0x366f23['type'],this['subType']=_0x366f23['subType']||null,this['author']=_0x366f23['author'],this['creator']=_0x366f23['creator']||_0x366f23['author'],this['isExternal']=Boolean(_0x366f23['attributes']&&_0x366f23['attributes']['@external']),this['data']=null,this['_model']=_0x493896,this['_onAccept']=_0x366f23['onAccept'],this['_onDiscard']=_0x366f23['onDiscard'],this['_onAttributesChange']=_0x366f23['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x366f23['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 _0x3fbf8d=this;for(;_0x3fbf8d['previous'];)_0x3fbf8d=_0x3fbf8d['previous'];return _0x3fbf8d;}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'](_0x33de8b){this['_markerNames']['add'](_0x33de8b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2df1b3=>this['_model']['markers']['get'](_0x2df1b3))['filter'](_0x5c1481=>_0x5c1481);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54dbde=>{for(const _0xc5949c of this['getMarkers']())_0x54dbde['removeMarker'](_0xc5949c);}),this['_markerNames']['clear']();}['removeMarker'](_0x3e6abb){this['_model']['change'](_0x4cb3ec=>{_0x4cb3ec['removeMarker'](_0x3e6abb);}),this['_markerNames']['delete'](_0x3e6abb);}['addRange'](_0x48b729){const _0x1248f2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1248f2),this['_model']['change'](_0x53d040=>{_0x53d040['addMarker'](_0x1248f2,{'range':_0x48b729,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29063d){for(const _0x4dfc5e of this['getRanges']())if(_0x4dfc5e['isIntersecting'](_0x29063d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4777cb=>_0x4777cb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x49361a,_0x482bbd)=>[..._0x49361a,..._0x482bbd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x362e2e=this['getRanges']();if(0x1!=_0x362e2e['length'])return null;const _0x2970e5=_0x362e2e[0x0],_0x3fdbdb=_0x2970e5['start']['nodeAfter'],_0x30f929=_0x2970e5['end']['nodeBefore'];return _0x3fdbdb instanceof _0x5a8687?_0x3fdbdb!=_0x30f929?null:_0x3fdbdb: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 _0x159371=[];let _0x2c88fd=this['head'];for(;_0x2c88fd;)_0x159371['push'](_0x2c88fd),_0x2c88fd=_0x2c88fd['next'];return _0x159371;}['setAttribute'](_0x2d753c,_0x133d28){const _0x248949=_0x22fde8(this['attributes']);_0x31d153(_0x248949,_0x2d753c,_0x133d28),_0x16b617(_0x248949,this['attributes'])||(this['attributes']=_0x248949,this['_onAttributesChange'](_0x248949));}['removeAttribute'](_0x57f03b){const _0xe96d24=_0x22fde8(this['attributes']);_0x1ee607(_0xe96d24,_0x57f03b),_0x16b617(_0xe96d24,this['attributes'])||(this['attributes']=_0xe96d24,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 _0x38bf2c()['substr'](0x1,0x5);}}function o(_0x22742b,_0x10184b,_0x9fc5a0){const _0x39b05e=_0x22742b['t'],t=_0x22742b['t'];switch(_0x10184b){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x9fc5a0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9fc5a0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9fc5a0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9fc5a0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9fc5a0);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',_0x9fc5a0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9fc5a0);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9fc5a0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9fc5a0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9fc5a0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9fc5a0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9fc5a0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9fc5a0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x9fc5a0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9fc5a0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9fc5a0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9fc5a0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9fc5a0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9fc5a0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9fc5a0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9fc5a0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9fc5a0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9fc5a0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9fc5a0);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'},_0x9fc5a0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9fc5a0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9fc5a0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9fc5a0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9fc5a0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9fc5a0);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'},_0x9fc5a0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9fc5a0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9fc5a0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9fc5a0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9fc5a0);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'},_0x9fc5a0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9fc5a0);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'},_0x9fc5a0);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'},_0x9fc5a0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9fc5a0);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'},_0x9fc5a0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9fc5a0);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'},_0x9fc5a0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9fc5a0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9fc5a0);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'},_0x9fc5a0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x9fc5a0);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 _0x39b05e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x9fc5a0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x39b05e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x9fc5a0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x9fc5a0);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'},_0x9fc5a0);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'},_0x9fc5a0);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'},_0x9fc5a0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x10184b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x263ea6,_0x3fb761){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x263ea6,this['_locale']=_0x3fb761;}['getDescriptions'](_0xad1cd4){const _0x167c91=[],_0x40f8ee=new Set(),_0x16123=new Set();for(let _0x334e07=0x0;_0x334e07<_0xad1cd4['length'];_0x334e07++){const _0x5ba0a8=_0xad1cd4[_0x334e07];if(!_0x5ba0a8['isInContent'])continue;const _0x5d7f54=this['_handleCustomCallbackDescription'](_0x5ba0a8);if(_0x5d7f54){if(null!=_0x5ba0a8['subType']){if(_0x40f8ee['has'](_0x5ba0a8['subType']))continue;_0x40f8ee['add'](_0x5ba0a8['subType']);}_0x167c91['push'](_0x5d7f54);}else{if('attribute'!=_0x5ba0a8['type'])'insertion'!=_0x5ba0a8['type']&&'deletion'!=_0x5ba0a8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x167c91,_0x5ba0a8,_0xad1cd4[_0x334e07+0x1]);else{const _0x3941bb=_0x5ba0a8['data']['key'];if(_0x16123['has'](_0x3941bb))continue;_0x16123['add'](_0x5ba0a8['data']['key']),_0x3941bb==m?this['_handleRenameSuggestionDescription'](_0x167c91,_0x5ba0a8):this['_handleAttributeSuggestionDescription'](_0x167c91,_0x5ba0a8);}}}return this['_resolveDescriptionItems'](_0x167c91);}['registerDescriptionCallback'](_0xf7379a){this['_customCallbacks']['push'](_0xf7379a);}['registerElementLabel'](_0x2d55b7,_0x503d65,_0x52a7ce=_0x4a9384['normal']){'function'==typeof _0x2d55b7?_0xf43554(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2d55b7,'label':_0x503d65,'priority':_0x52a7ce}):this['_itemLabels']['set'](_0x2d55b7,_0x503d65);}['registerAttributeLabel'](_0x4dbeb9,_0x5963ce){this['_attributeLabels']['set'](_0x4dbeb9,_0x5963ce);}['getItemLabel'](_0xcf1904,_0x446dc1=0x1){let _0x873e5;for(const _0x19d26d of this['_itemLabelsCallbacks'])if(_0x19d26d['matchingCallback'](_0xcf1904)){_0x873e5=_0x19d26d['label'];break;}return _0x873e5||(_0x873e5=this['_itemLabels']['get'](_0xcf1904['name'])),_0x873e5?_0x873e5(_0x446dc1):0x1!==_0x446dc1?_0x446dc1+'\x20'+_0xcf1904['name']+'s':''+_0xcf1904['name'];}['_addDescriptionItems'](_0x3a5096,_0x429fdf){const _0x427e8c=_0x429fdf['getFirstRange']()['getWalker'](),_0x5de973='insertion'==_0x429fdf['type']?'add':'remove';for(const _0x24e27e of _0x427e8c){const _0x134a00=_0x24e27e['item'],_0x1fe861=_0x3a5096[_0x3a5096['length']-0x1];if(_0x134a00['is']('$textProxy'))_0x1fe861&&_0x1fe861['type']['indexOf']('Container')>-0x1&&_0x3a5096['pop'](),_0x1fe861&&'text'==_0x1fe861['type']?_0x1fe861[_0x5de973]+=_0x134a00['data']:_0x3a5096['push']({'type':'text','add':'add'==_0x5de973?_0x134a00['data']:'','remove':'remove'==_0x5de973?_0x134a00['data']:''});else{if(this['_schema']['isObject'](_0x134a00)){const _0x1a666b=_0x134a00;if(_0x1fe861&&_0x1fe861['type']['indexOf']('Container')>-0x1&&_0x3a5096['pop'](),'elementEnd'==_0x24e27e['type'])continue;_0x1fe861&&_0x1fe861['type']==_0x5de973+'Object'&&_0x1fe861['element']['name']==_0x1a666b['name']?_0x1fe861['quantity']++:_0x3a5096['push']({'type':_0x5de973+'Object','element':_0x1a666b,'quantity':0x1}),_0x427e8c['skip'](_0xb73d7f=>!('elementEnd'==_0xb73d7f['type']&&_0xb73d7f['item']==_0x134a00));}else{if(this['_schema']['checkChild'](_0x134a00,'$text')||_0x134a00['is']('element','softBreak')){const _0x4e8f69=_0x134a00;if('add'==_0x5de973&&'elementStart'==_0x24e27e['type']||'remove'==_0x5de973&&'elementEnd'==_0x24e27e['type'])continue;if(_0x1fe861&&-0x1==_0x1fe861['type']['indexOf']('Container')){'text'==_0x1fe861['type']&&(_0x1fe861[_0x5de973]+='\x0a');continue;}let _0x464670;if(_0x464670='add'==_0x5de973?_0x4e8f69['nextSibling']&&!this['_schema']['isObject'](_0x4e8f69['nextSibling'])?_0x4e8f69['nextSibling']:null:_0x4e8f69['previousSibling']&&!this['_schema']['isObject'](_0x4e8f69['previousSibling'])?_0x4e8f69['previousSibling']:null,_0x4e8f69['isEmpty']||_0x464670&&_0x464670['isEmpty']){const _0x2395dc=_0x464670&&_0x464670['isEmpty']?_0x464670:_0x4e8f69;_0x1fe861&&_0x1fe861['type']==_0x5de973+'EmptyContainer'&&_0x1fe861['element']['name']==_0x2395dc['name']?_0x1fe861['quantity']++:_0x3a5096['push']({'type':_0x5de973+'EmptyContainer','element':_0x2395dc,'quantity':0x1});}else _0x3a5096['push']({'type':_0x5de973+'Container','element':_0x4e8f69});}}}}}['_resolveDescriptionItems'](_0x5cfc90){const _0x50118c=this['_locale'],_0x464408=[],_0x49e16f=[],_0x3ab0b9=[];for(const _0x2988d8 of _0x5cfc90)switch(_0x2988d8['type']){case'text':if(_0x2988d8['add']=_0x2988d8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2988d8['remove']=_0x2988d8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2988d8['add']&&''!=_0x2988d8['remove']){_0x464408['push']({'type':'replace','content':o(_0x50118c,'REPLACE_TEXT',['\x22'+_0x2988d8['remove']+'\x22','\x22'+_0x2988d8['add']+'\x22'])});continue;}if(null!=_0x2988d8['add']['match'](/^ +$/)){_0x464408['push']({'type':'insertion','content':o(_0x50118c,'*Insert:*\x20%0',o(_0x50118c,'ELEMENT_SPACE',_0x2988d8['add']['length']))});continue;}if(null!=_0x2988d8['remove']['match'](/^ +$/)){_0x464408['push']({'type':'deletion','content':o(_0x50118c,'*Remove:*\x20%0',o(_0x50118c,'ELEMENT_SPACE',_0x2988d8['remove']['length']))});continue;}if(''!=_0x2988d8['add']){_0x464408['push']({'type':'insertion','content':o(_0x50118c,'*Insert:*\x20%0','\x22'+_0x2988d8['add']+'\x22')});continue;}_0x464408['push']({'type':'deletion','content':o(_0x50118c,'*Remove:*\x20%0','\x22'+_0x2988d8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x464408['push']({'type':'insertion','content':o(_0x50118c,'*Insert:*\x20%0',this['getItemLabel'](_0x2988d8['element'],_0x2988d8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x464408['push']({'type':'deletion','content':o(_0x50118c,'*Remove:*\x20%0',this['getItemLabel'](_0x2988d8['element'],_0x2988d8['quantity']))});continue;case'addContainer':_0x464408['push']({'type':'insertion','content':o(_0x50118c,'*Split:*\x20%0',this['getItemLabel'](_0x2988d8['element'],_0x2988d8['quantity']))});continue;case'removeContainer':_0x464408['push']({'type':'deletion','content':o(_0x50118c,'*Merge:*\x20%0',this['getItemLabel'](_0x2988d8['element'],_0x2988d8['quantity']))});continue;case'addFormat':_0x49e16f['push'](_0x2988d8['key']);continue;case'removeFormat':_0x3ab0b9['push'](_0x2988d8['key']);continue;default:_0x464408['push'](_0x2988d8);}if(_0x49e16f['length']){const _0x1fc6d8=_0x49e16f['map'](_0x24b95b=>this['_attributeLabels']['has'](_0x24b95b)?this['_attributeLabels']['get'](_0x24b95b):_0x24b95b)['join'](',\x20');_0x464408['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1fc6d8)});}if(_0x3ab0b9['length']){const _0x429974=_0x3ab0b9['map'](_0x2cd49b=>this['_attributeLabels']['has'](_0x2cd49b)?this['_attributeLabels']['get'](_0x2cd49b):_0x2cd49b)['join'](',\x20');_0x464408['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x429974)});}return _0x464408;}['_handleCustomCallbackDescription'](_0x133983){for(const _0x4d9b09 of this['_customCallbacks']){const _0x1529b2=_0x4d9b09(_0x133983);if(_0x1529b2&&'type'in _0x1529b2)return _0x1529b2;}}['_handleAttributeSuggestionDescription'](_0x28d373,_0x3f1c01){const _0x3b8b15=_0x3f1c01['data'],_0x3734d6=void 0x0===_0x3b8b15['newValue']?'removeFormat':'addFormat';_0x28d373['push']({'type':_0x3734d6,'key':_0x3b8b15['key']});}['_handleRenameSuggestionDescription'](_0x2f1946,_0x15c2e8){_0x2f1946['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x15c2e8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x7cc638,_0x14d85a,_0x4f9526){if(this['_addDescriptionItems'](_0x7cc638,_0x14d85a),_0x4f9526&&_0x4f9526['getFirstRange']()&&!_0x14d85a['getFirstRange']()['end']['isEqual'](_0x4f9526['getFirstRange']()['start'])){const _0x1f8cce=_0x7cc638[_0x7cc638['length']-0x1],_0x49c0ae='insertion'==_0x14d85a['type']?'add':'remove';_0x1f8cce&&'text'==_0x1f8cce['type']&&(_0x1f8cce[_0x49c0ae]+='\x0a');}}}class U extends _0x52e26d{['afterInit'](){const _0x4c73e8=this['editor'],_0x5531d9=_0x4c73e8['plugins']['get']('TrackChangesEditing');_0x4c73e8['commands']['get']('showAIAssistant')&&_0x5531d9['enableCommand']('showAIAssistant');}}class V extends _0x52e26d{['afterInit'](){const _0x487aa8=this['editor'],_0x1694ee=_0x487aa8['locale'];if(!_0x487aa8['plugins']['has']('AlignmentEditing'))return;const _0x2983a6=_0x487aa8['plugins']['get']('TrackChangesEditing');_0x2983a6['enableDefaultAttributesIntegration']('alignment'),_0x2983a6['registerBlockAttribute']('alignment'),_0x2983a6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1694ee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22b54c=this['editor'],_0x2fba89=_0x22b54c['locale'];_0x22b54c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x68430e=>{if('formatBlock'!=_0x68430e['type'])return;const {data:_0x508d15}=_0x68430e;if(_0x508d15&&'alignment'==_0x508d15['commandName']){const _0xdcb0bf=_0x508d15['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2fba89,'*Format:*\x20%0',function(_0x2913b4){switch(_0x2913b4){case'left':return o(_0x2fba89,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2fba89,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2fba89,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2fba89,'FORMAT_JUSTIFY_TEXT');}}(_0xdcb0bf))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x52e26d{['afterInit'](){const _0x37b9b6=this['editor'],_0x52f0c8=_0x37b9b6['plugins']['get']('TrackChangesEditing'),_0x434c9a=_0x37b9b6['locale'];for(const _0x432613 of Zt){if(!_0x37b9b6['plugins']['has'](_0x432613))continue;const _0x3e877e=_0x432613['slice'](0x0,-0x7)['toLowerCase'](),_0x23b36e='FORMAT_'+_0x3e877e['toUpperCase']();_0x52f0c8['enableDefaultAttributesIntegration'](_0x3e877e),_0x52f0c8['registerInlineAttribute'](_0x3e877e),_0x52f0c8['descriptionFactory']['registerAttributeLabel'](_0x3e877e,o(_0x434c9a,_0x23b36e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3db8c7=this['editor'],_0x1fb7d=_0x3db8c7['locale'],_0x1af702=_0x3db8c7['plugins']['get']('TrackChangesEditing');function _0x851794(_0x329cbe,_0x57995c){_0x1af702['descriptionFactory']['registerDescriptionCallback'](_0x445ad4=>{if('formatInline'!=_0x445ad4['type'])return;const {data:_0x236681}=_0x445ad4;return _0x236681&&_0x236681['commandName']===_0x329cbe?_0x236681['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fb7d,'*Format:*\x20%0',_0x57995c)}:{'type':'format','content':o(_0x1fb7d,'*Remove\x20format:*\x20%0',_0x57995c)}:void 0x0;});}_0x851794('bold',o(_0x1fb7d,'FORMAT_BOLD')),_0x851794('italic',o(_0x1fb7d,'FORMAT_ITALIC')),_0x851794('underline',o(_0x1fb7d,'FORMAT_UNDERLINE')),_0x851794('code',o(_0x1fb7d,'FORMAT_CODE')),_0x851794('strikethrough',o(_0x1fb7d,'FORMAT_STRIKETHROUGH')),_0x851794('subscript',o(_0x1fb7d,'FORMAT_SUBSCRIPT')),_0x851794('superscript',o(_0x1fb7d,'FORMAT_SUPERSCRIPT'));}}class F extends _0x52e26d{['afterInit'](){const _0x6ab223=this['editor'],_0x3db38f=_0x6ab223['locale'];if(!_0x6ab223['plugins']['has']('BlockQuoteEditing'))return;const _0xd423b6=_0x6ab223['plugins']['get']('TrackChangesEditing'),_0x5af418=this['editor']['commands']['get']('blockQuote');_0xd423b6['enableCommand']('blockQuote',(_0x1c9756,_0xc30c8a={})=>{const _0x402b4b=this['editor']['model']['document']['selection'],_0x5e9f97=_0xc30c8a&&void 0x0!==_0xc30c8a['forceValue']?_0xc30c8a['forceValue']:!_0x5af418['value'];let _0x50ad83=[];if(_0x5e9f97){const _0x27b47f=Array['from'](_0x402b4b['getSelectedBlocks']())['filter'](_0xcf1468=>oo(_0xcf1468)||function(_0x7946bc,_0x3b53ef){const _0x2b63f6=_0x3b53ef['checkChild'](_0x7946bc['parent'],'blockQuote'),_0x272140=_0x3b53ef['checkChild'](['$root','blockQuote'],_0x7946bc);return _0x2b63f6&&_0x272140;}(_0xcf1468,this['editor']['model']['schema']));_0x50ad83=to(_0x27b47f,_0x6ab223['model']);}else{const _0x1fcc6c=Array['from'](_0x402b4b['getSelectedBlocks']())['filter'](_0x515109=>oo(_0x515109));_0x50ad83=to(_0x1fcc6c,_0x6ab223['model']);}_0x6ab223['model']['change'](()=>{for(const _0x558545 of _0x50ad83)_0xd423b6['markBlockFormat'](_0x558545,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5e9f97}]});});}),_0xd423b6['descriptionFactory']['registerDescriptionCallback'](_0xb391c1=>{const {data:_0xe9f3f3}=_0xb391c1;if(_0xe9f3f3&&'blockQuote'==_0xe9f3f3['commandName']){const _0x1243bf=o(_0x3db38f,'ELEMENT_BLOCK_QUOTE');return _0xe9f3f3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3db38f,'*Set\x20format:*\x20%0',_0x1243bf)}:{'type':'format','content':o(_0x3db38f,'*Remove\x20format:*\x20%0',_0x1243bf)};}});}}function oo(_0x5073a9){return'blockQuote'==_0x5073a9['parent']['name'];}class L extends _0x52e26d{['afterInit'](){const _0x3f17da=this['editor'],_0x269747=_0x3f17da['locale'],_0x4480a6=_0x3f17da['plugins']['get']('TrackChangesEditing');_0x3f17da['plugins']['has']('BookmarkEditing')&&(_0x4480a6['enableCommand']('insertBookmark'),_0x4480a6['enableDefaultAttributesIntegration']('updateBookmark'),_0x4480a6['registerBlockAttribute']('bookmarkId'),_0x4480a6['descriptionFactory']['registerDescriptionCallback'](_0x2b7c16=>{if('insertion'!=_0x2b7c16['type']&&'deletion'!=_0x2b7c16['type']&&'attribute'!=_0x2b7c16['type'])return;const _0x24f6bb=_0x2b7c16['getContainedElement']();if(null==_0x24f6bb)return;if(!_0x24f6bb['is']('element','bookmark'))return;const _0x236dd8=_0x24f6bb['getAttribute']('bookmarkId');if('insertion'==_0x2b7c16['type'])return{'type':'insertion','content':o(_0x269747,'*Insert:*\x20%0','\x22'+_0x236dd8+'\x22\x20'+o(_0x269747,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b7c16['type'])return{'type':'deletion','content':o(_0x269747,'*Remove:*\x20%0','\x22'+_0x236dd8+'\x22\x20'+o(_0x269747,'ELEMENT_BOOKMARK'))};const {data:_0x354816}=_0x2b7c16;if(!_0x354816||'bookmarkId'!=_0x354816['key'])return;return{'type':'format','content':o(_0x269747,'*Set\x20bookmark:*\x20%0','\x22'+_0x354816['newValue']+'\x22')};}));}}class J extends _0x52e26d{['afterInit'](){const _0x56ca7f=this['editor'];_0x56ca7f['plugins']['has']('CaseChange')&&(_0x56ca7f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x56ca7f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x56ca7f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x52e26d{['afterInit'](){const _0x208c3d=this['editor'];_0x208c3d['commands']['get']('ckbox')&&_0x208c3d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x52e26d{['afterInit'](){const _0x55b8d0=this['editor'];if(!_0x55b8d0['plugins']['has']('CodeBlock'))return;const _0x21e4de=_0x55b8d0['plugins']['get']('TrackChangesEditing'),_0x1f6a68=_0x55b8d0['locale'],_0x73995c=_0x55b8d0['config']['get']('codeBlock')['languages'],_0x13c426=_0x55b8d0['commands']['get']('codeBlock');_0x21e4de['enableCommand']('indentCodeBlock'),_0x21e4de['enableCommand']('outdentCodeBlock'),_0x21e4de['enableCommand']('codeBlock',(_0x32291f,_0x373cab={})=>{const _0x369655=_0x55b8d0['model'],_0x1de76b=_0x55b8d0['model']['document']['selection'],_0x4dd117=_0x373cab&&void 0x0!==_0x373cab['forceValue']?_0x373cab['forceValue']:!_0x13c426['value'];let _0x45cafb;_0x373cab['language']||(_0x373cab['language']=_0x73995c[0x0]['language']),_0x45cafb=_0x4dd117?Array['from'](_0x1de76b['getSelectedBlocks']())['filter'](_0x3b1b40=>eo(_0x3b1b40)||function(_0xb12857,_0x8ad148){if(_0xb12857['is']('rootElement')||_0x8ad148['isLimit'](_0xb12857))return!0x1;return _0x8ad148['checkChild'](_0xb12857['parent'],'codeBlock');}(_0x3b1b40,_0x369655['schema'])):Array['from'](_0x1de76b['getSelectedBlocks']())['filter'](_0x2ec0a6=>eo(_0x2ec0a6));const _0x4126be=to(_0x45cafb,_0x369655);_0x369655['change'](()=>{for(const _0x341164 of _0x4126be)_0x21e4de['markBlockFormat'](_0x341164,{'commandName':'codeBlock','commandParams':[{..._0x373cab,'forceValue':_0x4dd117}],'formatGroupId':'blockName'});});}),(_0x21e4de['descriptionFactory']['registerElementLabel']('codeBlock',_0x1bdb48=>o(_0x1f6a68,'ELEMENT_CODE_BLOCK',_0x1bdb48)),_0x21e4de['descriptionFactory']['registerDescriptionCallback'](_0xe50824=>{if('formatBlock'!=_0xe50824['type'])return;const _0x51026a=_0x1f6a68['t'],{data:_0x181030}=_0xe50824;if(!_0x181030||'codeBlock'!=_0x181030['commandName'])return;const _0x2260ce=_0x181030['commandParams'][0x0]['language'],_0x136c58=_0x51026a(_0x73995c['find'](_0x5d3a1e=>_0x5d3a1e['language']===_0x2260ce)['label'])['toLowerCase']();return _0x181030['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f6a68,'*Set\x20format:*\x20%0',o(_0x1f6a68,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x136c58+')')}:{'type':'format','content':o(_0x1f6a68,'*Remove\x20format:*\x20%0',o(_0x1f6a68,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x343370){return'codeBlock'==_0x343370['name'];}class z extends _0x52e26d{['afterInit'](){const _0x417554=this['editor'];if(!_0x417554['plugins']['has']('CommentsEditing'))return;_0x417554['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe9c7bc,_0x975fb3,_0x554029){const _0x566dcc=[];for(const _0xf3d647 of _0x975fb3['getItems']())_0xf3d647['hasAttribute'](_0xe9c7bc)&&_0x566dcc['push'](_0x554029['createRangeOn'](_0xf3d647));return _0x566dcc;}function Ne(_0x5ccec1,_0x3bd050,{showActiveMarker:_0x5d1568=!0x0}={}){const _0x199f66=_0x5ccec1['plugins']['get']('TrackChangesEditing');return(_0x521dee,_0x1b4512,_0x12aa04)=>{if(!_0x12aa04['consumable']['test'](_0x1b4512['markerRange'],_0x521dee['name']))return;const _0x5f348b=_0x1b4512['markerRange']['getWalker'](),_0x4333e4=_0x1b4512['markerRange']['start'],_0x440eb9=_0x5ccec1['model']['schema'];let _0x558936=null,_0x5a6730=null,_0x5b042=!0x1,_0x184f10=!0x1;for(const _0x42de86 of _0x5f348b){const _0x5e74c2=_0x42de86['item'];_0x5b042=_0x5b042||_0x440eb9['isContent'](_0x5e74c2);const _0xcc1499=_0x12aa04['mapper']['toViewElement'](_0x5e74c2);if(_0xcc1499&&_0xcc1499['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42de86['type']&&(_0x440eb9['isBlock'](_0x5e74c2)&&!_0x440eb9['isLimit'](_0x5e74c2)&&(_0x5e74c2['nextSibling']||_0x4333e4['isAtEnd']?_0x558936&&_0x558936['parent']==_0x5e74c2||(_0x558936=_0x5e74c2,_0x2ce0fb(_0x42de86['previousPosition']),_0x184f10=!0x0):_0x5a6730=_0x5a6730||_0x42de86['previousPosition']));}function _0x2ce0fb(_0x3eb27d){const {authorId:_0x2a3f83}=_0x199f66['_splitMarkerName'](_0x1b4512['markerName']),_0x926d81=_0x12aa04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3bd050,'data-author-id':_0x2a3f83}),_0x4d5717=_0x12aa04['mapper']['toViewPosition'](_0x3eb27d);_0x5d1568&&_0x199f66['activeMarkers']['includes'](_0x1b4512['markerName'])&&_0x12aa04['writer']['addClass']('ck-suggestion-marker--active',_0x926d81),_0x12aa04['writer']['insert'](_0x4d5717,_0x926d81),_0x12aa04['mapper']['bindElementToMarker'](_0x926d81,_0x1b4512['markerName']);}_0x5b042||_0x184f10||!_0x5a6730||_0x2ce0fb(_0x5a6730);};}class K extends _0x52e26d{static get['requires'](){return[_0x486e06];}['init'](){const _0x5c942f=this['editor'],_0x4f76f1=_0x5c942f['plugins']['get']('TrackChangesEditing');_0x4f76f1['enableCommand']('delete');const _0x24c39b=_0x5c942f['commands']['get']('deleteForward');_0x4f76f1['enableCommand']('deleteForward',(_0x29f40f,_0x324130={})=>{const _0x595d85=_0x5c942f['model']['createSelection'](_0x5c942f['model']['document']['selection']);_0x595d85['isCollapsed']&&_0x5c942f['model']['modifySelection'](_0x595d85,{'direction':'forward','unit':_0x324130['unit']});const _0x1736df=_0x595d85['getFirstRange'](),_0x3bc389=_0x5a7b90['fromRange'](_0x1736df);let _0xecbdf1;_0x29f40f(_0x324130),_0xecbdf1='$graveyard'==_0x3bc389['root']['rootName']?_0x5c942f['model']['createRange'](_0x1736df['start']):_0x5c942f['model']['createRange'](_0x3bc389['start'],_0x3bc389['end']),_0x3bc389['detach'](),_0x5c942f['model']['enqueueChange'](_0x24c39b['buffer']['batch'],_0x24e57c=>{_0x24c39b['buffer']['lock'](),_0x24e57c['setSelection'](_0x24e57c['createRange'](_0xecbdf1['end'])),_0x24c39b['buffer']['unlock']();});}),_0x5c942f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x5c942f,'merge'),{'priority':'high'}),_0x5c942f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x32a8d6,_0x5c160f,_0x445b8d)=>{_0x445b8d['options']['showSuggestionHighlights']&&Ne(_0x5c942f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x32a8d6,_0x5c160f,_0x445b8d);},{'priority':'high'}),_0x5c942f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x428d36,_0x32b2ed,_0x4fb844)=>{const _0x1f4bf0=_0x4fb844['mapper']['markerNameToElements'](_0x32b2ed['markerName']);if(_0x1f4bf0){for(const _0x5e3a01 of _0x1f4bf0)_0x5e3a01['is']('uiElement')&&(_0x4fb844['mapper']['unbindElementFromMarkerName'](_0x5e3a01,_0x32b2ed['markerName']),_0x4fb844['writer']['remove'](_0x5e3a01));}},{'priority':'high'});}}class W extends _0x52e26d{['afterInit'](){const _0x42b5b3=this['editor'];if(!_0x42b5b3['plugins']['has']('ListEditing'))return;const _0x1cf086=_0x42b5b3['locale'],_0x22963b=_0x42b5b3['plugins']['get']('TrackChangesEditing'),_0xb7af6f=_0x42b5b3['plugins']['has']('TodoListEditing'),_0x51963d=!!_0x42b5b3['config']['get']('list.multiBlock');function _0x29c5c8(_0x585463){return{'type':'format','content':''+o(_0x1cf086,'*Set\x20format:*\x20%0',_0x585463)};}function _0x820b93(_0x148f94){return{'type':'format','content':''+o(_0x1cf086,'*Remove\x20format:*\x20%0',_0x148f94)};}_0x22963b['enableDefaultAttributesIntegration']('numberedList'),_0x22963b['enableDefaultAttributesIntegration']('bulletedList'),_0x22963b['enableDefaultAttributesIntegration']('customNumberedList'),_0x22963b['enableDefaultAttributesIntegration']('customBulletedList'),_0x22963b['enableDefaultAttributesIntegration']('indentList'),_0x22963b['enableDefaultAttributesIntegration']('outdentList'),_0x22963b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x22963b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x22963b['registerBlockAttribute']('listItemId'),_0x22963b['registerBlockAttribute']('listType'),_0x22963b['registerBlockAttribute']('listIndent'),_0x51963d&&(_0x22963b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x22963b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb7af6f&&(_0x22963b['enableDefaultAttributesIntegration']('todoList'),_0x22963b['enableDefaultAttributesIntegration']('checkTodoList'),_0x22963b['registerBlockAttribute']('todoListChecked'),_0x22963b['descriptionFactory']['registerDescriptionCallback'](_0x2a9cf0=>{const {data:_0x2a40af}=_0x2a9cf0;if(_0x2a40af&&'todoListChecked'==_0x2a40af['key'])return{'type':'format','content':_0x2a40af['newValue']?o(_0x1cf086,'*Check\x20item*'):o(_0x1cf086,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x428224=>{if(_0x428224['batch']['isUndo'])return!0x1;let _0x12e52b=!0x1;const _0x58accb=_0x22963b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34d01a=>'todoListChecked'===_0x22963b['_getAttributeKey'](_0x34d01a));for(const _0x5be721 of _0x58accb){'todo'!=_0x5be721['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x22963b['_findSuggestions'](_0x5be721['getFirstRange'](),'attribute')['find'](_0x4e2b3f=>'listType'===_0x22963b['_getAttributeKey'](_0x4e2b3f['suggestion']))||(_0x428224['removeMarker'](_0x5be721['getFirstMarker']()),_0x12e52b=!0x0));}return _0x12e52b;})),_0x22963b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1cf086,'FORMAT_INDENT'));const _0x48610={'type':'format','content':''};_0x22963b['descriptionFactory']['registerDescriptionCallback'](_0x508042=>{const {data:_0x513978}=_0x508042;if(!_0x513978||'listType'!=_0x513978['key'])return;let _0x2a8b2c=_0x508042['head'];for(;_0x2a8b2c;){if(_0x2a8b2c['data']&&(('listStyle'==_0x2a8b2c['data']['key']||'listMarkerStyle'==_0x2a8b2c['data']['key'])&&(_0x2a8b2c['data']['newValue']&&'default'!=_0x2a8b2c['data']['newValue']||'default'!=_0x2a8b2c['data']['oldValue']&&!_0x513978['newValue'])||!_0x51963d&&_0x2a8b2c['data']['key']==m))return _0x48610;_0x2a8b2c=_0x2a8b2c['next'];}if(null==_0x513978['newValue'])switch(_0x513978['oldValue']){case'bulleted':return _0x820b93(o(_0x1cf086,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x820b93(o(_0x1cf086,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x820b93(o(_0x1cf086,'ELEMENT_TODO_LIST'));}switch(_0x513978['newValue']){case'bulleted':return _0x29c5c8(o(_0x1cf086,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x29c5c8(o(_0x1cf086,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x29c5c8(o(_0x1cf086,'ELEMENT_TODO_LIST'));}}),_0x22963b['descriptionFactory']['registerDescriptionCallback'](_0x4442b5=>{const {data:_0x52fb5f}=_0x4442b5;if(_0x52fb5f&&'listIndent'==_0x52fb5f['key'])return null==_0x52fb5f['newValue']||null==_0x52fb5f['oldValue']&&0x0==_0x52fb5f['newValue']?_0x48610:void 0x0;}),_0x22963b['descriptionFactory']['registerDescriptionCallback'](_0x31b932=>{if('attribute'!=_0x31b932['type'])return;const {data:_0x302294}=_0x31b932;if(!_0x302294||'listItemId'!=_0x302294['key'])return;const _0x1f6ad7=Te(_0x31b932);return'newValue'==_0x1f6ad7?{'type':'format','content':o(_0x1cf086,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1f6ad7?{'type':'format','content':o(_0x1cf086,'*Split:*\x20list\x20item')}:_0x48610;}),_0x42b5b3['model']['document']['registerPostFixer'](_0x4d91dd=>this['listItemIdFixer'](_0x4d91dd)),_0x42b5b3['model']['document']['registerPostFixer'](_0x4a4f3b=>this['noTrackChangesFixer'](_0x4a4f3b)),_0x42b5b3['model']['document']['on']('change:data',(_0x41dc27,_0x1603b3)=>{if(_0x1603b3['isUndo']||!_0x1603b3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x39fa0c){if(_0x39fa0c['batch']['isUndo']||!_0x39fa0c['batch']['isLocal'])return!0x1;let _0x4b7892=!0x1;const _0x45af5d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x481919=>_0x481919['data']&&'listItemId'==_0x481919['data']['key'])['filter'](_0x2f8ff4=>_0x2f8ff4['data']['newValue']&&_0x2f8ff4['data']['oldValue']);for(const _0x25283c of _0x45af5d)Te(_0x25283c)||(_0x39fa0c['removeMarker'](_0x25283c['getFirstMarker']()),_0x4b7892=!0x0);return _0x4b7892;}['noTrackChangesFixer'](_0x546ae1){if(_0x546ae1['batch']['isUndo']||!_0x546ae1['batch']['isLocal'])return!0x1;const _0x4c769d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c769d['trackChangesCommand']['value'])return!0x1;let _0x462568=!0x1;const _0x5deb39=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x11f9bb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xbc50f1=>'attribute'==_0xbc50f1['type'])['filter'](_0x563375=>_0x5deb39['includes'](_0x563375['attributeKey']));if(0x0==_0x11f9bb['length'])return _0x462568;for(const _0x3eb1d6 of _0x11f9bb){const _0x2a816e=_0x4c769d['_findSuggestions'](_0x3eb1d6['range'],'attribute')['filter'](_0xdd6bc1=>!_0xdd6bc1['meta']['isNextTo'])['map'](_0x108514=>_0x108514['suggestion'])['filter'](_0x13207b=>{const _0x589296=_0x4c769d['_getAttributeKey'](_0x13207b);return _0x5deb39['includes'](_0x589296);});if(_0x2a816e['length']){for(const _0x2fa6a3 of _0x2a816e)_0x546ae1['removeMarker'](_0x2fa6a3['getFirstMarker']());_0x462568=!0x0;}}return _0x462568;}['assureChains'](){const _0x116b78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1be339=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe01abc;const _0x21c673=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4737b9=>{if(_0x4737b9['data']['oldRange']||!_0x4737b9['data']['newRange'])return null;if(!_0x4737b9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x23e7cf}=_0x116b78['_splitMarkerName'](_0x4737b9['name']);if(!_0x116b78['hasSuggestion'](_0x23e7cf))return null;const _0x587bfc=_0x116b78['getSuggestion'](_0x23e7cf);return _0x1be339['includes'](_0x587bfc['data']['key']);})['map'](_0x1dc76b=>{const {id:_0x1e0acc}=_0x116b78['_splitMarkerName'](_0x1dc76b['name']),_0x48b1c5=_0x116b78['getSuggestion'](_0x1e0acc);return _0xe01abc=_0x48b1c5['attributes']['groupId'],_0x48b1c5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x21c673['size'])return;const _0x42a2c5=_0x116b78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfa2104=>'attribute'==_0xfa2104['type']&&_0xfa2104['data']&&_0x1be339['includes'](_0xfa2104['data']['key'])&&_0xfa2104['attributes']['groupId']!=_0xe01abc)['map'](_0x2092b3=>({'listItem':_0x2092b3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2092b3['attributes']['groupId']})),_0x5832a4=new Set();for(const {groupId:_0x593349,listItem:_0x473304}of _0x42a2c5)_0x21c673['has'](_0x473304)&&_0x5832a4['add'](_0x593349);for(const _0x2ae36a of _0x116b78['getSuggestions']())_0x5832a4['has'](_0x2ae36a['attributes']['groupId'])&&_0x2ae36a['setAttribute']('groupId',_0xe01abc);}['_supportLegacySuggestions'](){const _0x1aaa97=this['editor'],_0x2d1d16=_0x1aaa97['locale'],_0x517f24=_0x1aaa97['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x517f24['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4512b2,_0x2b4303){const _0x2d45d5=[];for(let _0x3c6d59 of _0x4512b2)_0x3c6d59['start']['nodeAfter']===_0x3c6d59['end']['parent']&&(_0x3c6d59=_0x1aaa97['model']['createRange'](_0x1aaa97['model']['createPositionAt'](_0x3c6d59['start']['nodeAfter'],0x0))),_0x2d45d5['push'](_0x3c6d59);_0x1aaa97['model']['change'](_0x229811=>{const _0x1c6ad9=_0x1aaa97['model']['document']['selection'],_0x57b880=Array['from'](_0x1c6ad9['getRanges']())['map'](_0x583829=>_0x5a7b90['fromRange'](_0x583829));_0x229811['setSelection'](_0x2d45d5),_0x1aaa97['commands']['get'](_0x2b4303['commandName'])['refresh'](),_0x2b4303['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1aaa97['execute'](_0x2b4303['commandName'],..._0x2b4303['commandParams']),_0x229811['setSelection'](_0x57b880);for(const _0x2cd01f of _0x57b880)_0x2cd01f['detach']();});}),_0x517f24['descriptionFactory']['registerElementLabel'](function(_0x5ece66){const _0x36e044=!_0x1aaa97['model']['schema']['isObject'](_0x5ece66),_0x3d7f82=_0x5ece66['previousSibling'],_0xe4868d=_0x5ece66['nextSibling'],_0x329ef5=_0x5ece66['getAttribute']('listItemId'),_0xcb31f2=!_0x3d7f82||_0x3d7f82['getAttribute']('listItemId')!==_0x329ef5,_0x6d022f=!_0xe4868d||_0xe4868d['getAttribute']('listItemId')!==_0x329ef5;return _0x36e044&&Boolean(_0x329ef5)&&_0xcb31f2&&_0x6d022f;},_0x285157=>o(_0x2d1d16,'ELEMENT_LIST_ITEM',_0x285157));}['_registerLegacyDescription'](){const _0x4dabd1=this['editor'],_0xb57779=_0x4dabd1['locale'];function _0x1ee03d(_0xe6a575){const _0x2a18f8=_0x4dabd1['commands']['get']('bulletedList')['value'],_0x438e1e=_0x4dabd1['commands']['get']('numberedList')['value'];return'numberedList'===_0xe6a575?_0x2a18f8:_0x438e1e;}_0x4dabd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x45568d){if('formatBlock'!=_0x45568d['type'])return;const {data:_0x23a519}=_0x45568d;if(!_0x23a519)return;let _0x55843a,_0x37b811,_0x14557,_0x33c0a7;switch(_0x23a519['commandName']){case'bulletedList':_0x14557=_0x23a519['commandParams'][0x0]['forceValue'],_0x33c0a7=_0x1ee03d(_0x23a519['commandName']),_0x55843a=_0x14557?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33c0a7&&_0x4dabd1['config']['get']('list.multiBlock')||(_0x55843a='*Change\x20to:*\x20%0'),_0x37b811={'type':'format','content':o(_0xb57779,_0x55843a,o(_0xb57779,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x14557=_0x23a519['commandParams'][0x0]['forceValue'],_0x33c0a7=_0x1ee03d(_0x23a519['commandName']),_0x55843a=_0x14557?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33c0a7&&_0x4dabd1['config']['get']('list.multiBlock')||(_0x55843a='*Change\x20to:*\x20%0'),_0x37b811={'type':'format','content':o(_0xb57779,_0x55843a,o(_0xb57779,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x55843a='*Indent:*\x20%0',_0x37b811={'type':'format','content':o(_0xb57779,_0x55843a,o(_0xb57779,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x55843a=function(_0x3f1c8f){const _0x2b7136=_0x3f1c8f['getFirstRange']();let _0x2a8492=_0x2b7136['start']['nodeAfter'];for(;_0x2a8492&&_0x2b7136['containsItem'](_0x2a8492);){if(_0x2a8492['getAttribute']('listIndent')>0x0)return!0x1;_0x2a8492=_0x2a8492['nextSibling'];}return!0x0;}(_0x45568d)?o(_0xb57779,'*Format:*\x20remove\x20from\x20%0',o(_0xb57779,function(_0x49e544){return'ELEMENT_'+_0x49e544['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45568d))):o(_0xb57779,'*Outdent:*\x20%0',o(_0xb57779,'ELEMENT_LIST_ITEM')),_0x37b811={'type':'format','content':_0x55843a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x23a519['multipleBlocks']&&(_0x55843a='*Merge:*\x20%0',_0x37b811={'type':'deletion','content':o(_0xb57779,_0x55843a,o(_0xb57779,'ELEMENT_LIST_ITEM'))});}return _0x37b811;});}}function Te(_0x642936){let _0x617e18=_0x642936['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x617e18;){const _0x1f56ad=_0x617e18['getAttribute']('listItemId');if(!_0x1f56ad)return!0x1;if(_0x1f56ad==_0x642936['data']['newValue'])return'newValue';if(_0x1f56ad==_0x642936['data']['oldValue'])return'oldValue';_0x617e18=_0x617e18['previousSibling'];}return!0x1;}class ye extends _0x52e26d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x63bc28=this['editor']['config']['get']('list.properties'),_0x57ce39=this['editor']['plugins']['get']('TrackChangesEditing');_0x63bc28['styles']&&(_0x57ce39['enableDefaultAttributesIntegration']('listStyle'),_0x57ce39['registerBlockAttribute']('listStyle')),_0x63bc28['reversed']&&(_0x57ce39['enableDefaultAttributesIntegration']('listReversed'),_0x57ce39['registerBlockAttribute']('listReversed')),_0x63bc28['startIndex']&&(_0x57ce39['enableDefaultAttributesIntegration']('listStart'),_0x57ce39['registerBlockAttribute']('listStart'));const _0x156908={'type':'format','content':''};_0x57ce39['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x230d64=this['editor']['locale'];_0x57ce39['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x230d64,'FORMAT_LIST_REVERSED')),_0x57ce39['descriptionFactory']['registerDescriptionCallback'](_0x2728b5=>{const {data:_0x5b166b}=_0x2728b5;if(_0x5b166b&&'listReversed'==_0x5b166b['key'])return null==_0x5b166b['newValue']||0x0==_0x5b166b['newValue']&&null==_0x5b166b['oldValue']?_0x156908:void 0x0;}),_0x57ce39['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x230d64,'FORMAT_LIST_START')),_0x57ce39['descriptionFactory']['registerDescriptionCallback'](_0x220a73=>{const {data:_0x49aa5b}=_0x220a73;if(_0x49aa5b&&'listStart'==_0x49aa5b['key'])return null==_0x49aa5b['newValue']||0x1==_0x49aa5b['newValue']&&null==_0x49aa5b['oldValue']?_0x156908:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4d18c2=>{if(_0x4d18c2['batch']['isUndo'])return!0x1;let _0x194d3d=!0x1;const _0x3b7c01=_0x57ce39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4875b0=>{const _0x1d0710=_0x57ce39['_getAttributeKey'](_0x4875b0);return'listStart'==_0x1d0710||'listReversed'==_0x1d0710;});for(const _0x1c5fea of _0x3b7c01){const _0x228368=_0x1c5fea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x228368||'customNumbered'==_0x228368)continue;_0x57ce39['_findSuggestions'](_0x1c5fea['getFirstRange'](),'attribute')['find'](_0x286bee=>'listType'==_0x57ce39['_getAttributeKey'](_0x286bee['suggestion']))||(_0x4d18c2['removeMarker'](_0x1c5fea['getFirstMarker']()),_0x194d3d=!0x0);}return _0x194d3d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2002e){const _0x2f0a47=this['editor']['locale'],{data:_0x364373}=_0x2002e,_0x5c2695={'type':'format','content':''};if(!_0x364373||'listStyle'!=_0x364373['key'])return;if(!_0x364373['oldValue'])return'default'==_0x364373['newValue']?_0x5c2695:{'type':'format','content':''+o(_0x2f0a47,'*Set\x20format:*\x20%0',o(_0x2f0a47,this['_getTranslationKeyForListStyle'](_0x364373['newValue'])))};if(!_0x364373['newValue']){if('default'==_0x364373['oldValue'])return _0x5c2695;let _0x15fbce=_0x2002e['head'];for(;_0x15fbce;){if(_0x15fbce['data']&&'listType'==_0x15fbce['data']['key']&&_0x15fbce['data']['newValue'])return _0x5c2695;_0x15fbce=_0x15fbce['next'];}return{'type':'format','content':''+o(_0x2f0a47,'*Remove\x20format:*\x20%0',o(_0x2f0a47,this['_getTranslationKeyForListStyle'](_0x364373['oldValue'])))};}if('default'!=_0x364373['newValue'])return{'type':'format','content':''+o(_0x2f0a47,'*Set\x20format:*\x20%0',o(_0x2f0a47,this['_getTranslationKeyForListStyle'](_0x364373['newValue'])))};let _0x4cb548=_0x2002e['head'];for(;_0x4cb548;){if(_0x4cb548['data']&&'listType'==_0x4cb548['data']['key']&&_0x4cb548['data']['newValue']&&_0x4cb548['data']['oldValue'])return _0x5c2695;_0x4cb548=_0x4cb548['next'];}return{'type':'format','content':o(_0x2f0a47,'*Set\x20format:*\x20%0',o(_0x2f0a47,'ELEMENT_'+_0x2002e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5a5a57=this['editor'],_0x34822a=_0x5a5a57['locale'];_0x5a5a57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b8f01=>{if('formatBlock'!=_0x1b8f01['type'])return;const {data:_0x3e3399}=_0x1b8f01;if(!_0x3e3399)return;let _0x106a83,_0x24d646;switch(_0x3e3399['commandName']){case'listStyle':_0x106a83='*Change\x20to:*\x20%0',_0x24d646={'type':'format','content':o(_0x34822a,_0x106a83,o(_0x34822a,this['_getTranslationKeyForListStyle'](_0x3e3399['commandParams'][0x0]['type'])))};break;case'listReversed':_0x106a83=_0x3e3399['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24d646={'type':'format','content':o(_0x34822a,_0x106a83)};break;case'listStart':_0x106a83='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24d646={'type':'format','content':o(_0x34822a,_0x106a83,_0x3e3399['commandParams'][0x0]['startIndex'])};}return _0x24d646;});}['_getTranslationKeyForListStyle'](_0x47027f){return'ELEMENT_'+function(_0x17b51c){if(Se['includes'](_0x17b51c))return'bulleted';if(_e['includes'](_0x17b51c))return'numbered';return null;}(_0x47027f)['toUpperCase']()+'_LIST_'+_0x47027f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x52e26d{static get['requires'](){return[_0x542673];}['init'](){const _0x4f737e=this['editor'],_0x3f01c0=_0x4f737e['plugins']['get']('TrackChangesEditing'),_0x583e81=_0x4f737e['commands']['get']('enter');_0x3f01c0['enableCommand']('enter',()=>{_0x4f737e['model']['change'](_0x277967=>{const _0x5daa8f=_0x4f737e['model']['document']['selection'],_0x1d82ff=_0x5daa8f['getFirstPosition'](),_0x5a4de9=_0x5a7b90['fromRange'](_0x5daa8f['getFirstRange']());if(_0x583e81['enterBlock'](_0x277967)){const _0x15decb=_0x4f737e['model']['createPositionAt'](_0x1d82ff['parent']['nextSibling'],0x0),_0x4b5e6b=_0x277967['createRange'](_0x1d82ff,_0x15decb);_0x3f01c0['markInsertion'](_0x4b5e6b);}else _0x277967['setSelection'](_0x277967['createRange'](_0x5a4de9['end']));_0x5a4de9['detach'](),_0x583e81['fire']('afterExecute',{'writer':_0x277967});});}),_0x4f737e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4f737e,'split'),{'priority':'high'}),_0x4f737e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5a4a85,_0x334c85,_0x3a72bc)=>{const _0x2ca02b=_0x3a72bc['mapper']['markerNameToElements'](_0x334c85['markerName']);if(_0x2ca02b){for(const _0x17c5a6 of _0x2ca02b)_0x17c5a6['hasClass']('ck-suggestion-marker-split')&&(_0x3a72bc['mapper']['unbindElementFromMarkerName'](_0x17c5a6,_0x334c85['markerName']),_0x3a72bc['writer']['remove'](_0x17c5a6));}},{'priority':'high'}),_0x4f737e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x90306e,_0x54e871,_0x4ddcf2)=>{_0x4ddcf2['options']['showSuggestionHighlights']&&Ne(_0x4f737e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x90306e,_0x54e871,_0x4ddcf2);},{'priority':'high'});}}class Y extends _0x52e26d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x45b20f=this['editor']['plugins']['get']('TrackChangesEditing');_0x45b20f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x45b20f['enableCommand']('findNext'),_0x45b20f['enableCommand']('findPrevious'),_0x45b20f['enableCommand']('replace'),_0x45b20f['enableCommand']('replaceAll');}['handleFindCommand'](_0x1fc0c7,_0x490843,_0x46e919={}){const _0x2ce1f7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1fc0c7(_0x5da542=>{let _0xd31f9a=('string'==typeof _0x490843?_0x2ce1f7['findByTextCallback'](_0x490843,_0x46e919):_0x490843)(_0x5da542);Array['isArray'](_0xd31f9a)&&(_0xd31f9a={'results':_0xd31f9a,'searchText':'string'==typeof _0x490843?_0x490843:''});const _0x1a5d56=_0xd31f9a['results']['filter'](_0x2d525f=>!0x1===this['_isInDeletionRange'](_0x2d525f,_0x5da542['item']));return{..._0xd31f9a,'results':_0x1a5d56};},_0x46e919);}['_isInDeletionRange'](_0x2ae939,_0xfd8377){const _0x36a9dc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfd8377,_0x2ae939['start']),this['editor']['model']['createPositionAt'](_0xfd8377,_0x2ae939['end']));for(const _0x1ca0e6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x36a9dc['getIntersection'](_0x1ca0e6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x52e26d{['afterInit'](){const _0x4faeca=this['editor']['locale'],_0x32bb86=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3f56d5,commandName:_0xee7abf}of ro)this['editor']['plugins']['has'](_0x3f56d5)&&(_0x32bb86['enableDefaultAttributesIntegration'](_0xee7abf),_0x32bb86['registerInlineAttribute'](_0xee7abf));_0x32bb86['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4faeca,'FORMAT_FONT_SIZE')),_0x32bb86['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4faeca,'FORMAT_FONT_FAMILY')),_0x32bb86['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4faeca,'FORMAT_FONT_COLOR')),_0x32bb86['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4faeca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x253b6a=this['editor'],_0xbfee74=_0x253b6a['locale'];_0x253b6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0bfb=>{const _0x2049a8=_0xbfee74['t'];if('formatInline'!=_0x5e0bfb['type'])return;const {data:_0x559bfd}=_0x5e0bfb;if(null!=_0x559bfd){if('fontSize'==_0x559bfd['commandName']){const _0x294bd3=_0x559bfd['commandParams'][0x0]['value'];if(_0x294bd3){const _0x2a279f=_0x2049a8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x59d552=>_0x59d552['model']==_0x294bd3)['title'])['toLowerCase']();return{'type':'format','content':o(_0xbfee74,'*Set\x20font\x20size:*\x20%0',_0x2a279f)};}return{'type':'format','content':o(_0xbfee74,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x559bfd['commandName']){const _0x2d1d0e=_0x559bfd['commandParams'][0x0]['value'];return _0x2d1d0e?{'type':'format','content':o(_0xbfee74,'*Set\x20font\x20family:*\x20%0',_0x2d1d0e)}:{'type':'format','content':o(_0xbfee74,'*Reset\x20font\x20family*')};}if('fontColor'==_0x559bfd['commandName']){const _0x3aa0f9=_0x559bfd['commandParams'][0x0]['value'];if(_0x3aa0f9){const _0x480f3b=_0x4ff1e3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x59b5e8=>_0x59b5e8['model']==_0x3aa0f9);let _0xb9d936=_0x3aa0f9,_0x520c5d='';return _0x480f3b&&(_0xb9d936=_0x480f3b['label'],_0x520c5d=_0x2049a8(_0xb9d936)['toLowerCase']()),{'type':'format','content':o(_0xbfee74,'*Set\x20font\x20color:*\x20%0',_0x520c5d)['trim'](),'color':{'value':_0x3aa0f9,'title':_0x520c5d||_0xb9d936}};}return{'type':'format','content':o(_0xbfee74,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x559bfd['commandName']){const _0x4c17c9=_0x559bfd['commandParams'][0x0]['value'];if(_0x4c17c9){const _0x1bdc5e=_0x4ff1e3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x96214a=>_0x96214a['model']==_0x4c17c9);let _0x2c1790=_0x4c17c9,_0x2281f2='';return _0x1bdc5e&&(_0x2c1790=_0x1bdc5e['label'],_0x2281f2=_0x2049a8(_0x2c1790)['toLowerCase']()),{'type':'format','content':o(_0xbfee74,'*Set\x20font\x20background\x20color:*\x20%0',_0x2281f2)['trim'](),'color':{'value':_0x4c17c9,'title':_0x2281f2||_0x2c1790}};}return{'type':'format','content':o(_0xbfee74,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x52e26d{['afterInit'](){const _0x512fd7=this['editor'],_0x5080e9=_0x512fd7['plugins']['get']('TrackChangesEditing'),_0x1689fb=_0x512fd7['commands']['get']('copyFormat'),_0x4321ed=_0x512fd7['commands']['get']('pasteFormat');_0x1689fb&&_0x4321ed&&(_0x5080e9['enableDefaultAttributesIntegration']('pasteFormat'),_0x5080e9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4afe2b=this['editor'],_0x1180fa=_0x4afe2b['locale'];_0x4afe2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bb8b0=>{if('formatBlock'!=_0x4bb8b0['type']&&'formatInline'!=_0x4bb8b0['type'])return;const {data:_0x167db8}=_0x4bb8b0;if(_0x167db8&&'pasteFormat'===_0x167db8['commandName']){const _0x3addf8=[],_0x5c184e=_0x167db8['commandParams'][0x0];for(const [_0x1f78ff,_0x1e9fef]of Object['entries'](_0x5c184e))_0x3addf8['push'](so(_0x4afe2b,_0x1f78ff,_0x1e9fef));return _0x3addf8['length']?{'type':'format','content':o(_0x1180fa,'*Set\x20format\x20to:*\x20%0',_0x3addf8['join'](',\x20'))}:{'type':'format','content':o(_0x1180fa,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1ac645,_0x569c74,_0x41cdb3){const _0x209325=_0x1ac645['locale']['t'],_0x2f1057=_0x569c74['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e6058=_0x209325(_0x2f1057['charAt'](0x0)['toUpperCase']()+_0x2f1057['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x41cdb3)return _0x5e6058;if('fontColor'===_0x569c74||'fontBackgroundColor'===_0x569c74){const _0x1017a8=_0x4ff1e3(_0x1ac645['config']['get']('fontColor.colors'))['find'](_0x25a758=>_0x25a758['model']==_0x41cdb3);return _0x5e6058+'\x20('+(_0x1017a8?_0x209325(_0x1017a8['label'])['toLowerCase']():_0x41cdb3)+')';}if('fontSize'===_0x569c74&&isNaN(parseFloat(_0x41cdb3))){const _0xc2e7dd=_0x1ac645['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1ac645['config']['get']('fontSize.options'))['find'](_0x32c549=>_0x32c549['model']==_0x41cdb3);return _0x5e6058+'\x20('+(_0xc2e7dd?_0x209325(_0xc2e7dd['title'])['toLowerCase']():_0x41cdb3)+')';}return _0x5e6058+'\x20('+_0x41cdb3+')';}class nt extends _0x52e26d{['_headingOptions'];['afterInit'](){const _0x3b2f23=this['editor'];if(!_0x3b2f23['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b2f23['config']['get']('heading.options');const _0x3cfc14=_0x3b2f23['locale'],_0x265ec0=_0x3b2f23['plugins']['get']('TrackChangesEditing');_0x265ec0['enableDefaultAttributesIntegration']('heading');for(const _0x5aa10e of this['_headingOptions'])'paragraph'!=_0x5aa10e['model']&&_0x265ec0['descriptionFactory']['registerElementLabel'](_0x5aa10e['model'],_0x278e32=>{const _0xfab146=this['_getHeadingLevel'](_0x5aa10e['model']);return null!==_0xfab146?_0x20617a(_0x278e32,_0xfab146):_0x2e4b61(_0x278e32,_0x5aa10e['title']);});function _0x20617a(_0x19c2aa,_0x98d040){return o(_0x3cfc14,'ELEMENT_HEADING',[_0x19c2aa,_0x98d040]);}function _0x2e4b61(_0x44ddfc,_0x314d71){return o(_0x3cfc14,'ELEMENT_HEADING_CUSTOM',[_0x44ddfc,_0x314d71]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e23df=this['editor'],_0x140aea=_0x3e23df['locale'];function _0x306764(_0x50d301,_0x63c04a){return o(_0x140aea,'ELEMENT_HEADING_CUSTOM',[_0x50d301,_0x63c04a]);}_0x3e23df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x223201=>{if('formatBlock'!=_0x223201['type'])return;const {data:_0x11b898}=_0x223201;if(_0x11b898&&'heading'==_0x11b898['commandName']){const _0x2fa334=_0x11b898['commandParams'][0x0]['value'],_0x469c3e=this['_getHeadingLevel'](_0x2fa334);if(null!==_0x469c3e)return{'type':'format','content':o(_0x140aea,'*Change\x20to:*\x20%0',(_0x31eee4=0x1,_0x40fbc8=_0x469c3e,o(_0x140aea,'ELEMENT_HEADING',[_0x31eee4,_0x40fbc8])))};const _0x1ee384=this['_headingOptions']['find'](_0x4c17d2=>_0x4c17d2['model']===_0x2fa334)['title'];return{'type':'format','content':o(_0x140aea,'*Change\x20to:*\x20%0',_0x306764(0x1,_0x1ee384))};}var _0x31eee4,_0x40fbc8;});}['_getHeadingLevel'](_0x1d6429){const _0x22da1d=_0x1d6429['match'](/^heading(\d+)/);if(_0x22da1d)return _0x22da1d[0x1];const _0x4a5952=this['_headingOptions']?.['find'](_0x137829=>_0x137829['model']==_0x1d6429);if(_0x4a5952&&_0x4a5952['view']){const _0x14f249=_0x4a5952['view'],_0x3bea25=(_0x14f249['name']??_0x14f249)['match'](/^h(\d+)/);if(_0x3bea25)return _0x3bea25[0x1];}return null;}}class it extends _0x52e26d{['afterInit'](){const _0x4dd8c2=this['editor'];if(!_0x4dd8c2['plugins']['has']('HighlightEditing'))return;const _0x44d4ee=_0x4dd8c2['plugins']['get']('TrackChangesEditing'),_0x13a371=_0x4dd8c2['locale'];_0x44d4ee['enableDefaultAttributesIntegration']('highlight'),_0x44d4ee['registerInlineAttribute']('highlight'),_0x44d4ee['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x13a371,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf573=this['editor'],_0x489be9=_0x2bf573['locale'];_0x2bf573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf54fc9=>{if('formatInline'!=_0xf54fc9['type'])return;const {data:_0x11166a}=_0xf54fc9;if(_0x11166a&&'highlight'==_0x11166a['commandName']){const _0x5ed908=_0x489be9['t'],_0x98fa34=_0x11166a['commandParams'][0x0]['value'];if(_0x98fa34){const _0x50b879=_0x2bf573['config']['get']('highlight.options')['find'](_0x18b91a=>_0x18b91a['model']==_0x98fa34),_0x378052=_0x5ed908(_0x50b879['title'])['toLowerCase']();return{'type':'format','content':o(_0x489be9,'*Set\x20highlight:*\x20%0',_0x378052),'color':{'value':_0x50b879['color'],'title':_0x50b879['title']}};}return{'type':'format','content':o(_0x489be9,'*Remove\x20highlight*',o(_0x489be9,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x52e26d{['afterInit'](){const _0x3f58e2=this['editor'];if(!_0x3f58e2['plugins']['has']('HorizontalLineEditing'))return;_0x3f58e2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2b1f25=_0x3f58e2['plugins']['get']('TrackChangesEditing'),_0x5d26c0=_0x3f58e2['locale'];_0x2b1f25['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5996c8=>o(_0x5d26c0,'ELEMENT_HORIZONTAL_LINE',_0x5996c8)),_0x3f58e2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x52f116,{writer:_0x46ed56,options:_0xca9a9})=>{if(!_0xca9a9['showSuggestionHighlights'])return null;const _0x55c8f5=_0x46ed56['createContainerElement']('div'),_0x5889f7=_0x46ed56['createEmptyElement']('hr');return _0x46ed56['addClass']('ck-horizontal-line',_0x55c8f5),_0x46ed56['insert'](_0x46ed56['createPositionAt'](_0x55c8f5,0x0),_0x5889f7),_0x55c8f5;},'converterPriority':'high'});}}class st extends _0x52e26d{['afterInit'](){const _0x28e484=this['editor'];if(!_0x28e484['plugins']['has']('HtmlEmbed'))return;const _0x4f49c8=_0x28e484['plugins']['get']('TrackChangesEditing'),_0x1dac2c=_0x28e484['locale'];_0x4f49c8['descriptionFactory']['registerElementLabel']('rawHtml',_0x2b5ac3=>o(_0x1dac2c,'ELEMENT_HTML_EMBED',_0x2b5ac3)),_0x4f49c8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4f49c8['registerBlockAttribute']('value'),_0x4f49c8['descriptionFactory']['registerDescriptionCallback'](_0x4c09dc=>{if('attribute'!=_0x4c09dc['type'])return;const {data:_0x57ba41}=_0x4c09dc;if(_0x57ba41&&'value'==_0x57ba41['key']&&_0x4c09dc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2d1f7a=o(_0x1dac2c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1dac2c,'*Change\x20%0\x20content*',_0x2d1f7a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26f7df=this['editor'],_0x5d716a=_0x26f7df['locale'];_0x26f7df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba033=>{if('formatBlock'!=_0x2ba033['type'])return;const {data:_0x37f332}=_0x2ba033;if(_0x37f332&&'htmlEmbed'==_0x37f332['commandName']){const _0x52d3a6=o(_0x5d716a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d716a,'*Change\x20%0\x20content*',_0x52d3a6)};}});}}class ot extends _0x52e26d{['afterInit'](){const _0x413760=this['editor'];if(!_0x413760['plugins']['has']('ImageEditing'))return;const _0x381aa8=_0x413760['plugins']['get']('TrackChangesEditing'),_0x3eb44c=_0x413760['plugins']['get']('ImageUtils'),_0x5d5ef1=_0x413760['locale'];_0x381aa8['enableCommand']('insertImage'),_0x381aa8['descriptionFactory']['registerElementLabel']('imageBlock',_0x38fc8b=>o(_0x5d5ef1,'ELEMENT_IMAGE',_0x38fc8b)),_0x381aa8['descriptionFactory']['registerElementLabel']('imageInline',_0xcdd4b1=>o(_0x5d5ef1,'ELEMENT_INLINE_IMAGE',_0xcdd4b1)),_0x381aa8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5d5ef1,'ELEMENT_CAPTION')),_0x413760['plugins']['has']('ImageUploadEditing')&&_0x381aa8['enableCommand']('uploadImage'),_0x413760['plugins']['has']('ImageBlockEditing')&&_0x413760['plugins']['has']('ImageInlineEditing')&&(_0x381aa8['enableCommand']('imageTypeInline',(_0x2cc0cb,_0x4a1187)=>{const _0x71b054=_0x3eb44c['getClosestSelectedImageElement'](_0x413760['model']['document']['selection']);_0x413760['model']['change'](()=>{_0x381aa8['markBlockFormat'](_0x71b054,{'commandName':'imageTypeInline','commandParams':[_0x4a1187]},[],'convertBlockImageToInline');});}),_0x381aa8['enableCommand']('imageTypeBlock',(_0x276123,_0x2a2ef6)=>{_0x413760['model']['change'](_0x323306=>{let _0x74d3b9=_0x3eb44c['getClosestSelectedImageElement'](_0x413760['model']['document']['selection']),_0x866e2b=_0x323306['createRangeOn'](_0x74d3b9);const _0x649ed9=_0x511c0a['fromPosition'](_0x866e2b['start'],'toPrevious'),_0xa582fd=_0x511c0a['fromPosition'](_0x866e2b['end'],'toNext');_0x381aa8['forceDefaultExecution'](()=>_0x276123(_0x2a2ef6)),_0x74d3b9=_0x3eb44c['getClosestSelectedImageElement'](_0x413760['model']['document']['selection']),_0x866e2b=_0x323306['createRangeOn'](_0x74d3b9);const _0x4dd004=_0x323306['createRange'](_0x649ed9,_0xa582fd);_0x649ed9['detach'](),_0xa582fd['detach'](),_0x381aa8['markBlockFormat'](_0x74d3b9,{'commandName':'imageTypeInline','commandParams':[_0x2a2ef6]},[],'convertInlineImageToBlock'),_0x4dd004['start']['isBefore'](_0x866e2b['start'])&&_0x381aa8['markInsertion'](_0x323306['createRange'](_0x4dd004['start'],_0x866e2b['start']),'convertInlineImageToBlock'),_0x866e2b['end']['isBefore'](_0x4dd004['end'])&&_0x381aa8['markInsertion'](_0x323306['createRange'](_0x866e2b['end'],_0x4dd004['end']),'convertInlineImageToBlock');});}),_0x381aa8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x381aa8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x381aa8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x381aa8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x381aa8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x381aa8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xa520fd])=>{const _0x45f012=_0x381aa8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x50e166=_0xa520fd['start'],_0x6107ed=_0xa520fd['end'];const _0xb71f42=_0x413760['model']['schema']['getNearestSelectionRange'](_0x50e166,'backward'),_0x18d687=_0x413760['model']['schema']['getNearestSelectionRange'](_0x6107ed,'forward');_0xb71f42['isCollapsed']&&(_0x50e166=_0xb71f42['start']),_0x18d687['isCollapsed']&&(_0x6107ed=_0x18d687['end']),_0x45f012([_0x413760['model']['createRange'](_0x50e166,_0x6107ed)]);}),_0x381aa8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x250a05),_0x381aa8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x250a05)),_0x413760['plugins']['has']('ImageCaptionEditing')&&(_0x381aa8['enableCommand']('toggleImageCaption',(_0x22f6af,_0xedccba)=>{const _0xe2207d=_0x413760['plugins']['get']('ImageCaptionUtils');let _0xa60010=_0x3eb44c['getClosestSelectedImageElement'](_0x413760['model']['document']['selection']),_0x4cc5c8=_0xe2207d['getCaptionFromImageModelElement'](_0xa60010);_0x413760['model']['change'](()=>{if(_0x4cc5c8)return void _0x381aa8['markDeletion'](_0x413760['model']['createRangeOn'](_0x4cc5c8));const _0x43c332=_0x3eb44c['isBlockImage'](_0xa60010);_0x22f6af(_0xedccba),_0xa60010=_0x3eb44c['getClosestSelectedImageElement'](_0x413760['model']['document']['selection']),_0x4cc5c8=_0xe2207d['getCaptionFromImageModelElement'](_0xa60010),_0x381aa8['markInsertion'](_0x413760['model']['createRangeOn'](_0x4cc5c8),_0x43c332?null:'imageCaption');});}),_0x381aa8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x250a05));const _0xdb3e8c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e98f7(_0x4b5140,_0x27103b){const _0x33741e=_0xdb3e8c['findIndex'](({type:_0x8ff7ff,subType:_0x5e87f3})=>_0x4b5140['type']==_0x8ff7ff&&_0x4b5140['subType']==_0x5e87f3),_0x5699b2=_0xdb3e8c['findIndex'](({type:_0xe37b19,subType:_0x3dbd8b})=>_0x27103b['type']==_0xe37b19&&_0x27103b['subType']==_0x3dbd8b);if(_0x33741e<0x0||_0x5699b2<0x0)return!0x1;const _0x1fa805=_0x4b5140['getFirstRange'](),_0x4d9275=_0x27103b['getFirstRange']();if((0x0==_0x33741e||0x1==_0x33741e)&&0x2==_0x5699b2&&_0x1fa805['isIntersecting'](_0x4d9275))return!0x0;if(0x2==_0x33741e&&0x3==_0x5699b2){const _0x31ce8b=_0x381aa8['_findSuggestions'](_0x1fa805,'insertion')['filter'](({suggestion:_0x352668,meta:_0x4bdf73})=>_0x4bdf73['isOwn']&&'convertInlineImageToBlock'==_0x352668['subType']);if(_0x31ce8b['length']>0x1&&_0x4d9275['end']['isEqual'](_0x1fa805['start']))return!0x0;if(0x1==_0x31ce8b['length']&&(_0x1fa805['start']['isEqual'](_0x4d9275['end'])||_0x1fa805['end']['isEqual'](_0x4d9275['start'])))return!0x0;}if(0x3==_0x33741e&&0x3==_0x5699b2&&_0x1fa805['start']['isBefore'](_0x4d9275['start'])){const _0x443471=_0x1fa805['end']['nodeAfter'],_0x3232bb=_0x4d9275['start']['nodeBefore'];return _0x3eb44c['isBlockImage'](_0x443471)&&_0x443471===_0x3232bb;}return!0x1;}function _0x250a05(_0x4a5dbd,_0x38b18d){return _0x4e98f7(_0x4a5dbd,_0x38b18d)?[_0x4a5dbd,_0x38b18d]:_0x4e98f7(_0x38b18d,_0x4a5dbd)?[_0x38b18d,_0x4a5dbd]:null;}_0x413760['plugins']['has']('ImageResize')&&(_0x381aa8['enableDefaultAttributesIntegration']('resizeImage'),_0x381aa8['registerBlockAttribute']('resizedWidth'),_0x381aa8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5d5ef1,'FORMAT_IMAGE_SIZE'))),_0x413760['plugins']['has']('ImageTextAlternativeEditing')&&(_0x381aa8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x381aa8['registerBlockAttribute']('alt')),_0x381aa8['descriptionFactory']['registerDescriptionCallback'](_0xb9f48=>{if(!!_0xdb3e8c['find'](({type:_0x241d90,subType:_0x48dc5c})=>_0xb9f48['type']==_0x241d90&&_0xb9f48['subType']==_0x48dc5c))return _0xb9f48['previous']?{}:void 0x0;}),_0x381aa8['descriptionFactory']['registerDescriptionCallback'](_0x47f063=>{if('insertion'==_0x47f063['type']||'deletion'==_0x47f063['type']){const _0x38f4b6=_0x47f063['getContainedElement']();if(_0x38f4b6&&_0x38f4b6['is']('element','caption'))return{'type':'insertion'==_0x47f063['type']?'addObject':'removeObject','element':_0x38f4b6,'quantity':0x1};}}),_0x381aa8['descriptionFactory']['registerDescriptionCallback'](_0x322286=>'formatBlock'==_0x322286['type']&&'convertInlineImageToBlock'==_0x322286['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x322286['type']&&'convertBlockImageToInline'==_0x322286['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x381aa8['descriptionFactory']['registerDescriptionCallback'](_0x5751c9=>{if('attribute'!=_0x5751c9['type'])return;const {data:_0x304615}=_0x5751c9;if(!_0x304615||'alt'!=_0x304615['key'])return;const _0x50e7e7=_0x304615['newValue'];return _0x50e7e7?{'type':'format','content':o(_0x5d5ef1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50e7e7+'\x22')}:{'type':'format','content':o(_0x5d5ef1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbed8d1=this['editor'],_0x1b4a01=_0xbed8d1['locale'];_0xbed8d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34c761=>{if('formatBlock'!=_0x34c761['type']&&'formatInline'!=_0x34c761['type'])return;const {data:_0x524821}=_0x34c761;if(_0x524821){if('imageTextAlternative'==_0x524821['commandName']){const _0x2485ff=_0x524821['commandParams'][0x0]['newValue'];return _0x2485ff?{'type':'format','content':o(_0x1b4a01,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2485ff+'\x22')}:{'type':'format','content':o(_0x1b4a01,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x524821['commandName']){const _0x12333a=_0x524821['commandParams'][0x0]['width'];return _0x12333a?{'type':'format','content':o(_0x1b4a01,'*Set\x20image\x20width:*\x20%0',_0x12333a)}:{'type':'format','content':o(_0x1b4a01,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x52e26d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x116945=this['editor']['locale'],_0x1b3229=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b3229['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b3229['registerBlockAttribute']('src'),_0x1b3229['descriptionFactory']['registerDescriptionCallback'](_0x1d6ac8=>{if('attribute'!=_0x1d6ac8['type'])return;const {data:_0x296e30}=_0x1d6ac8;return _0x296e30&&'src'==_0x296e30['key']?_0x296e30['newValue']&&_0x296e30['oldValue']?{'type':'format','content':o(_0x116945,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x285bba=this['editor']['plugins']['get']('TrackChangesEditing');_0x285bba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x285bba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x285bba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x285bba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22e836=this['editor'],_0x4c9902=_0x22e836['locale'];_0x22e836['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3854c0=>{if('formatBlock'!=_0x3854c0['type']&&'formatInline'!=_0x3854c0['type'])return;const {data:_0x28f79c}=_0x3854c0;if(!_0x28f79c||'replaceImageSource'!=_0x28f79c['commandName'])return;return{'type':'format','content':o(_0x4c9902,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x52e26d{['afterInit'](){const _0x48d4a2=this['editor'];if(!_0x48d4a2['plugins']['has']('ImageStyleEditing'))return;const _0x4f739b=_0x48d4a2['plugins']['get']('TrackChangesEditing'),_0x1d2118=_0x48d4a2['plugins']['get']('ImageUtils'),_0x5671e9={};_0x4f739b['enableCommand']('imageStyle',(_0x94b151,_0x1f730a)=>{const _0x8035a1=_0x48d4a2['plugins']['get']('Users')['me'],_0x320c02=_0x48d4a2['commands']['get']('imageStyle');let _0x1bc2e0=_0x1d2118['getClosestSelectedImageElement'](_0x48d4a2['model']['document']['selection']),_0x586000=_0x48d4a2['model']['createRangeOn'](_0x1bc2e0),_0x12f99e=_0x320c02['value'];if(_0x12f99e==_0x1f730a['value'])return;const _0x32ada2={'commandName':'imageStyle','commandParams':[_0x1f730a],'formatGroupId':_0x38bf2c()};_0x48d4a2['model']['change'](()=>{if(_0x4f739b['getSuggestions']()['filter'](_0x31e6b8=>_0x31e6b8['isInContent']&&_0x8035a1==_0x31e6b8['author']&&('formatBlock'==_0x31e6b8['type']||'formatInline'==_0x31e6b8['type'])&&('imageStylePreApply'==_0x31e6b8['subType']||'imageStylePostApply'==_0x31e6b8['subType'])&&_0x31e6b8['getFirstRange']()['isEqual'](_0x586000))['forEach'](_0x53d3af=>_0x4f739b['discardSuggestion'](_0x53d3af['head'])),_0x1bc2e0=_0x1d2118['getClosestSelectedImageElement'](_0x48d4a2['model']['document']['selection']),_0x586000=_0x48d4a2['model']['createRangeOn'](_0x1bc2e0),_0x320c02['refresh'](),_0x48d4a2['commands']['get']('imageTypeInline')['refresh'](),_0x48d4a2['commands']['get']('imageTypeBlock')['refresh'](),_0x12f99e=_0x320c02['value'],_0x12f99e!=_0x1f730a['value'])return _0x1d2118['isInlineImage'](_0x1bc2e0)&&_0x320c02['shouldConvertImageType'](_0x1f730a['value'],_0x1bc2e0)?(_0x94b151({..._0x1f730a,'setImageSizes':!0x1}),_0x1bc2e0=_0x1d2118['getClosestSelectedImageElement'](_0x48d4a2['model']['document']['selection']),void _0x4f739b['markBlockFormat'](_0x1bc2e0,{..._0x32ada2,'commandReversedParams':[{'value':_0x12f99e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1d2118['isBlockImage'](_0x1bc2e0)?_0x4f739b['markBlockFormat'](_0x1bc2e0,_0x32ada2,[],'imageStylePostApply'):_0x4f739b['markInlineFormat'](_0x586000,_0x32ada2,'imageStylePostApply'));});});for(const _0x2ef3cb of _0x48d4a2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5671e9[_0x2ef3cb['name']]=_0x2ef3cb['title']['toLowerCase']();_0x4f739b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4f739b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4f739b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4f739b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9e669e])=>{_0x1d2118['setImageNaturalSizeAttributes'](_0x9e669e['getContainedElement']());}),_0x4f739b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x247583,_0x59fd89)=>{_0x4f739b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x247583,{'commandName':_0x59fd89['commandName'],'commandParams':_0x59fd89['commandReversedParams']});}),_0x4f739b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x50d147,_0x4a5f77){if(_0x18473a(_0x50d147,_0x4a5f77))return[_0x50d147,_0x4a5f77];if(_0x18473a(_0x4a5f77,_0x50d147))return[_0x4a5f77,_0x50d147];return null;});const _0x3e18a0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x18473a(_0x56158d,_0x4761e6){const _0x262aa4=_0x3e18a0['findIndex'](({type:_0x1c0fca,subType:_0x26c7fe})=>_0x56158d['type']==_0x1c0fca&&_0x56158d['subType']==_0x26c7fe),_0x5577d8=_0x3e18a0['findIndex'](({type:_0x3e7018,subType:_0xb4f418})=>_0x4761e6['type']==_0x3e7018&&_0x4761e6['subType']==_0xb4f418);if(_0x262aa4<0x0||_0x5577d8<0x0)return!0x1;const _0x2a7760=_0x56158d['getFirstRange'](),_0x1f87ed=_0x4761e6['getFirstRange']();if((0x0==_0x262aa4||0x1==_0x262aa4)&&0x2==_0x5577d8&&_0x2a7760['isIntersecting'](_0x1f87ed))return!0x0;if(0x2==_0x262aa4&&0x3==_0x5577d8){const _0x51951a=_0x4f739b['_findSuggestions'](_0x2a7760,'insertion')['filter'](({suggestion:_0x534b71,meta:_0x468af6})=>_0x468af6['isOwn']&&'convertInlineImageToBlock'==_0x534b71['subType']);if(_0x51951a['length']>0x1&&_0x1f87ed['end']['isEqual'](_0x2a7760['start']))return!0x0;if(0x1==_0x51951a['length']&&(_0x2a7760['start']['isEqual'](_0x1f87ed['end'])||_0x2a7760['end']['isEqual'](_0x1f87ed['start'])))return!0x0;}if(0x3==_0x262aa4&&0x3==_0x5577d8&&_0x2a7760['start']['isBefore'](_0x1f87ed['start'])){const _0x5be957=_0x2a7760['end']['nodeAfter'],_0x5296de=_0x1f87ed['start']['nodeBefore'];return _0x1d2118['isBlockImage'](_0x5be957)&&_0x5be957===_0x5296de;}return!0x1;}_0x48d4a2['model']['document']['registerPostFixer'](()=>{let _0x3cd2a8=!0x1;const _0x19b1a2=Array['from'](_0x48d4a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2dbc6e,data:_0x521251}of _0x19b1a2){const {group:_0x54ae52,type:_0x31efee,subType:_0x39af34,id:_0x442e46}=_0x4f739b['_splitMarkerName'](_0x2dbc6e);if('suggestion'==_0x54ae52&&_0x4f739b['hasSuggestion'](_0x442e46)){if('formatBlock'==_0x31efee&&('imageStylePreApply'==_0x39af34||'imageStylePostApply'==_0x39af34)){const _0x3fcdaf=_0x4f739b['getSuggestion'](_0x442e46);if(_0x521251['newRange']){const _0x3c0445=_0x3fcdaf['getFirstRange']()['getContainedElement']();if(_0x1d2118['isBlockImage'](_0x3c0445))continue;_0x4f739b['discardSuggestion'](_0x3fcdaf),_0x3cd2a8=!0x0;}}if('insertion'==_0x31efee&&'imageCaption'==_0x39af34&&!_0x521251['newRange']){const _0x1f6d63=_0x4f739b['getSuggestion'](_0x442e46);_0x1f6d63['next']&&_0x1f6d63['next']['isInContent']&&(_0x4f739b['discardSuggestion'](_0x1f6d63['next']),_0x3cd2a8=!0x0);}}}return _0x3cd2a8;}),this['_registerLegacyDescription'](_0x5671e9);}['_registerLegacyDescription'](_0x17f39a){const _0x4b8f69=this['editor'],_0x850ab1=_0x4b8f69['locale'];_0x4b8f69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c6a9d=>{if('formatBlock'!=_0x4c6a9d['type']&&'formatInline'!=_0x4c6a9d['type'])return;const {data:_0x28822e}=_0x4c6a9d;if(!_0x28822e||'imageStyle'!=_0x28822e['commandName'])return;const _0x1e78ba=_0x28822e['commandParams'][0x0]['value'];return _0x11fb86('side'===_0x1e78ba?o(_0x850ab1,'FORMAT_SIDE_IMAGE'):_0x17f39a[_0x1e78ba]||_0x1e78ba);function _0x11fb86(_0x4abc50){return{'type':'format','content':o(_0x850ab1,'*Format:*\x20%0',_0x4abc50)};}});}}class ct extends _0x52e26d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8b033c){super(_0x8b033c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f40d2=this['editor'],_0x2edb60=_0x1f40d2['commands']['get']('importWord'),_0x3afbba=_0x1f40d2['commands']['get']('trackChanges');_0x2edb60&&(_0x2edb60['on']('execute',(_0x561784,[,_0x954a36])=>{this['_trackChangesValueDuringImport']=_0x3afbba['value'],_0x954a36['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2edb60,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2edb60,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3afbba['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f40d2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x21a9e9,_0x219d31){const {suggestions:_0x4d279f}=_0x219d31,_0x30b200=this['editor']['commands']['get']('trackChanges'),_0x36c672=_0x30b200['value'];this['_trackChangesValueDuringImport']!==_0x36c672&&(_0x30b200['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d279f&&_0x4d279f['forEach'](({id:_0x11256f,type:_0x4bc10,author:_0x238e8b,created_at:_0x56135f})=>{const _0x2c1a30={'id':_0x11256f,'type':_0x4bc10,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x238e8b,'createdAt':_0x56135f?new Date(_0x56135f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2c1a30);});}}class ut extends _0x52e26d{['afterInit'](){const _0x5b4036=this['editor'],_0x1264cd=_0x5b4036['plugins']['get']('TrackChangesEditing');if(_0x5b4036['plugins']['has']('IndentEditing')&&(_0x1264cd['enableCommand']('indent'),_0x1264cd['enableCommand']('outdent')),_0x5b4036['plugins']['has']('IndentBlock')){for(const _0x2b7a0b of['indentBlock','outdentBlock'])_0x1264cd['enableDefaultAttributesIntegration'](_0x2b7a0b);}const _0x110db5=_0x5b4036['locale'];_0x1264cd['registerBlockAttribute']('blockIndent'),_0x1264cd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x110db5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183a63=this['editor'],_0x326aa9=_0x183a63['locale'],_0x453aea=_0x183a63['plugins']['get']('TrackChangesEditing');_0x453aea['descriptionFactory']['registerDescriptionCallback'](_0x16b62e=>{if('formatBlock'!=_0x16b62e['type'])return;const {data:_0x19e3b6}=_0x16b62e;if(!_0x19e3b6)return;if('indentBlock'!=_0x19e3b6['commandName']&&'outdentBlock'!=_0x19e3b6['commandName'])return;const _0x4aa68e=_0x16b62e['getItems']()[0x0],_0x5a2ed6=_0x453aea['descriptionFactory']['getItemLabel'](_0x4aa68e);return'indentBlock'==_0x19e3b6['commandName']?{'type':'format','content':o(_0x326aa9,'*Indent:*\x20%0',_0x5a2ed6)}:'outdentBlock'==_0x19e3b6['commandName']?{'type':'format','content':o(_0x326aa9,'*Outdent:*\x20%0',_0x5a2ed6)}:void 0x0;});}}class ft extends _0x52e26d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x52e26d{['afterInit'](){const _0x3d7e68=this['editor'];if(!_0x3d7e68['plugins']['has']('LinkEditing'))return;const _0x5cc849=_0x3d7e68['plugins']['get']('TrackChangesEditing'),_0x39a83e=_0x3d7e68['commands']['get']('link');_0x5cc849['enableDefaultAttributesIntegration']('link'),_0x5cc849['enableDefaultAttributesIntegration']('unlink'),_0x5cc849['registerInlineAttribute']('linkHref');for(const _0x11c9a9 of _0x39a83e['manualDecorators'])_0x5cc849['registerInlineAttribute'](_0x11c9a9['id']),_0x5cc849['descriptionFactory']['registerAttributeLabel'](_0x11c9a9['id'],'link\x20('+_0x11c9a9['label']['toLowerCase']()+')');_0x5cc849['descriptionFactory']['registerDescriptionCallback'](_0x55cf85=>{if('attribute'!=_0x55cf85['type'])return;const {data:_0x531bcc}=_0x55cf85;if(!_0x531bcc||'linkHref'!=_0x531bcc['key'])return;const _0x1b0a14=_0x531bcc['newValue'],_0x541d90=_0x3d7e68['locale'];return{'type':'format','content':null==_0x1b0a14?o(_0x541d90,'*Remove\x20link*'):o(_0x541d90,'*Set\x20link:*\x20%0','\x22'+_0x1b0a14+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f3f97=this['editor'],_0x4181d0=_0x2f3f97['locale'];_0x2f3f97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x291038=>{if('formatInline'!=_0x291038['type'])return;const {data:_0x2b7d58}=_0x291038;if(_0x2b7d58){if('link'==_0x2b7d58['commandName']){const _0x20394d=_0x2b7d58['commandParams'][0x0];return{'type':'format','content':o(_0x4181d0,'*Set\x20link:*\x20%0','\x22'+_0x20394d+'\x22')};}return'unlink'==_0x2b7d58['commandName']?{'type':'format','content':o(_0x4181d0,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x52e26d{['afterInit'](){const _0x40d0da=this['editor'],_0x456e4f=_0x40d0da['locale'];if(!_0x40d0da['plugins']['has']('LegacyListEditing'))return;const _0x27f3a7=_0x40d0da['plugins']['get']('TrackChangesEditing'),_0x4cf5c3=_0x40d0da['plugins']['has']('LegacyTodoListEditing');function _0xb012dc(_0x12ec5a){return()=>{const _0x24fdfd=_0x40d0da['model']['document']['selection'],_0x1359b1=_0x40d0da['commands']['get'](_0x12ec5a);if(_0x1359b1['value'])return void _0x40d0da['execute']('paragraph',{});const _0x447a79=_0x12ec5a['slice'](0x0,-0x4),_0x3840d3=function(_0x32b9dc,_0x3232fd,_0x2b2e05){let _0x3847e7=Array['from'](_0x32b9dc)['filter'](_0x290937=>function(_0x5aa09d,_0x1752d7){return _0x1752d7['checkChild'](_0x5aa09d['parent'],'listItem')&&!_0x1752d7['isObject'](_0x5aa09d);}(_0x290937,_0x2b2e05));_0x3847e7=_0x3847e7['filter'](_0xa1500b=>!_0xa1500b['is']('element','listItem')||_0xa1500b['getAttribute']('listType')!=_0x3232fd);const _0x66d5b1=new Set();for(const _0x7c3325 of _0x3847e7)_0x7c3325['is']('element','listItem')?_0x66d5b1['add'](Le(_0x7c3325)):_0x66d5b1['add'](_0x7c3325);return Array['from'](_0x66d5b1);}(_0x24fdfd['getSelectedBlocks'](),_0x447a79,_0x40d0da['model']['schema']);_0x40d0da['model']['change'](()=>{for(const _0xe683d9 of _0x3840d3)_0x27f3a7['markBlockFormat'](_0xe683d9,{'commandName':_0x12ec5a,'commandParams':[{'forceValue':!_0x1359b1['value']}],'formatGroupId':'blockName'},Ee(_0xe683d9));});};}function _0x4a8599(_0x40b2ea){return()=>{const _0x1fee2b=function(_0x2c78e3){let _0x40ed56=Array['from'](_0x2c78e3);const _0x20f8d5=_0x40ed56['findIndex'](_0x2ed777=>'listItem'!=_0x2ed777['name']);return _0x20f8d5>-0x1&&(_0x40ed56=_0x40ed56['slice'](0x0,_0x20f8d5)),_0x40ed56;}(_0x40d0da['model']['document']['selection']['getSelectedBlocks']()),_0x116be8=_0x40d0da['model']['createRange'](_0x40d0da['model']['createPositionAt'](_0x1fee2b[0x0],'before'),_0x40d0da['model']['createPositionAt'](_0x1fee2b[_0x1fee2b['length']-0x1],'end'));_0x40d0da['model']['change'](()=>{_0x27f3a7['markBlockFormat'](_0x116be8,{'commandName':_0x40b2ea,'commandParams':[],'formatGroupId':'listIndent'},function(_0x339cfa){const _0x596d2c=new Set();for(const _0x2bb79f of _0x339cfa){let _0x1ac1d9=_0x2bb79f['nextSibling'];for(;_0x1ac1d9&&_0x1ac1d9['getAttribute']('listIndent')>_0x2bb79f['getAttribute']('listIndent');)_0x596d2c['add'](_0x1ac1d9),_0x1ac1d9=_0x1ac1d9['nextSibling'];}return Array['from'](_0x596d2c);}(_0x1fee2b));});};}_0x27f3a7['enableCommand']('numberedList',_0xb012dc('numberedList')),_0x27f3a7['enableCommand']('bulletedList',_0xb012dc('bulletedList')),_0x4cf5c3&&_0x27f3a7['enableCommand']('todoList',_0xb012dc('todoList')),_0x27f3a7['enableCommand']('indentList',_0x4a8599('indentList')),_0x27f3a7['enableCommand']('outdentList',_0x4a8599('outdentList')),_0x4cf5c3&&_0x27f3a7['enableCommand']('checkTodoList',()=>{const _0xb767c0=_0x40d0da['commands']['get']('checkTodoList'),_0x369303=Array['from'](_0xb767c0['_selectedElements']);_0x369303['filter'](_0x2bda67=>_0x2bda67['getAttribute']('todoListChecked')!=_0xb767c0['value']),_0x40d0da['model']['change'](()=>{for(const _0x1f4885 of _0x369303)_0x27f3a7['markBlockFormat'](_0x1f4885,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xb767c0['value']}]});});}),_0x27f3a7['descriptionFactory']['registerElementLabel']('listItem',_0x4e4bed=>o(_0x456e4f,'ELEMENT_LIST_ITEM',_0x4e4bed)),_0x27f3a7['descriptionFactory']['registerDescriptionCallback'](_0xddc64c=>{if('formatBlock'!=_0xddc64c['type']&&'formatInline'!=_0xddc64c['type'])return;const {data:_0x327024}=_0xddc64c;if(_0x327024){if('numberedList'==_0x327024['commandName']||'bulletedList'==_0x327024['commandName']||'todoList'==_0x327024['commandName'])switch(_0x327024['commandName']['replace']('List','')){case'bulleted':return _0x3b38d1(o(_0x456e4f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b38d1(o(_0x456e4f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b38d1(o(_0x456e4f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x327024['commandName'])return{'type':'format','content':o(_0x456e4f,'*Indent:*\x20%0',o(_0x456e4f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x327024['commandName'])return{'type':'format','content':o(_0x456e4f,'*Outdent:*\x20%0',o(_0x456e4f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x327024['commandName'])return _0x327024['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x456e4f,'*Check\x20item*')}:{'type':'format','content':o(_0x456e4f,'*Uncheck\x20item*')};}function _0x3b38d1(_0x2b7d76){return{'type':'format','content':o(_0x456e4f,'*Change\x20to:*\x20%0',_0x2b7d76)};}});}}function Le(_0x2c34be){const _0x3055d0=_0x2c34be['getAttribute']('listIndent');if(0x0==_0x3055d0)return _0x2c34be;let _0x341c5b=_0x2c34be;for(;_0x2c34be['previousSibling']&&_0x2c34be['previousSibling']['is']('element','listItem');){const _0x487ff5=_0x2c34be['previousSibling']['getAttribute']('listIndent');if(_0x487ff5==_0x3055d0)_0x341c5b=_0x2c34be['previousSibling'];else{if(_0x487ff5<_0x3055d0)break;}_0x2c34be=_0x2c34be['previousSibling'];}return _0x341c5b;}function Ee(_0x20798c){const _0x3f18d9=[];if(_0x20798c['is']('element','listItem')&&_0x20798c['getAttribute']('listIndent')>0x0){let _0x1d2957=_0x20798c['nextSibling'];for(;_0x1d2957&&'listItem'==_0x1d2957['name']&&_0x1d2957['getAttribute']('listIndent')==_0x20798c['getAttribute']('listIndent');)_0x3f18d9['push'](_0x1d2957),_0x1d2957=_0x1d2957['nextSibling'];}return _0x3f18d9;}class Q extends _0x52e26d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3a2c4a=this['editor']['config']['get']('list.properties'),_0x15dcfb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a2c4a['styles']&&_0x15dcfb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3a2c4a['reversed']&&_0x15dcfb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3a2c4a['startIndex']&&_0x15dcfb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x15dcfb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f815d,_0x1b1beb={}){const _0x325ab5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25113f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x325ab5['markMultiRangeBlockFormat'](_0x25113f,{'commandName':'listStyle','commandParams':[{'type':_0x1b1beb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x238dbe,_0x47b84b={}){const _0x19e010=this['editor']['plugins']['get']('TrackChangesEditing'),_0x96d1a1=this['_getSuggestionBlocks'](_0x4e9428=>_0x4e9428['is']('element','listItem')&&'numbered'===_0x4e9428['getAttribute']('listType'));if(_0x96d1a1['length']<0x1)return;const _0xa8ac80=_0x96d1a1['map'](_0x4f5432=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f5432,'before'),this['editor']['model']['createPositionAt'](_0x4f5432,0x0)));this['editor']['model']['change'](()=>{_0x19e010['markMultiRangeBlockFormat'](_0xa8ac80,{'commandName':'listReversed','commandParams':[{'reversed':_0x47b84b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5d3077,_0x49bde1={}){const _0x7765fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x271703=this['_getSuggestionBlocks'](_0x3a79bb=>_0x3a79bb['is']('element','listItem')&&'numbered'===_0x3a79bb['getAttribute']('listType'));if(_0x271703['length']<0x1)return;const _0x50c9d6=_0x271703['map'](_0x2fd69d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fd69d,'before'),this['editor']['model']['createPositionAt'](_0x2fd69d,0x0)));this['editor']['model']['change'](()=>{_0x7765fc['markMultiRangeBlockFormat'](_0x50c9d6,{'commandName':'listStart','commandParams':[{'startIndex':_0x49bde1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x38592b){if('formatBlock'!=_0x38592b['type']&&'formatInline'!=_0x38592b['type'])return;const _0x5512ae=this['editor']['locale'],{data:_0x3f2b30}=_0x38592b;if(!_0x3f2b30)return;let _0x4c0657,_0x48c1fb;switch(_0x3f2b30['commandName']){case'listStyle':_0x4c0657='*Change\x20to:*\x20%0',_0x48c1fb={'type':'format','content':o(_0x5512ae,_0x4c0657,o(_0x5512ae,this['_getTranslationKeyForListStyle'](_0x3f2b30['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c0657=_0x3f2b30['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x48c1fb={'type':'format','content':o(_0x5512ae,_0x4c0657)};break;case'listStart':_0x4c0657='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x48c1fb={'type':'format','content':o(_0x5512ae,_0x4c0657,_0x3f2b30['commandParams'][0x0]['startIndex'])};}return _0x48c1fb;}['_getSuggestionBlocksForListStyle'](){const _0x5744e0=this['editor']['plugins']['get']('LegacyListUtils');let _0x5873a9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5873a9[0x0]?.['is']('element','listItem')&&_0x5873a9['unshift'](..._0x5744e0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5873a9[_0x5873a9['length']-0x1]?.['is']('element','listItem')&&_0x5873a9['push'](..._0x5744e0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5873a9=[...new Set(_0x5873a9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5873a9=_0x5873a9['filter'](_0x82f0d3=>_0x82f0d3['is']('element','listItem'))),_0x5873a9;}['_getSuggestionBlocks'](_0x5a73bc){const _0xd427af=this['editor']['plugins']['get']('LegacyListUtils');let _0x326af2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a73bc)['map'](_0x566761=>{const _0xe8dfb7=this['editor']['model']['createPositionAt'](_0x566761,0x0);return[..._0xd427af['getSiblingNodes'](_0xe8dfb7,'backward'),..._0xd427af['getSiblingNodes'](_0xe8dfb7,'forward')];})['flat']();return _0x326af2=[...new Set(_0x326af2)],_0x326af2;}['_getTranslationKeyForListStyle'](_0x209964){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x209964)||'default')['toUpperCase']()+'_LIST_'+_0x209964['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x52e26d{['afterInit'](){const _0x45475e=this['editor'];if(!_0x45475e['plugins']['has']('MediaEmbedEditing'))return;const _0xef34c5=_0x45475e['plugins']['get']('TrackChangesEditing'),_0x1b191c=_0x45475e['locale'];_0xef34c5['enableCommand']('mediaEmbed'),_0xef34c5['descriptionFactory']['registerElementLabel']('media',_0x465831=>o(_0x1b191c,'ELEMENT_MEDIA',_0x465831)),_0x45475e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x54cc8e,{writer:_0x626f7a,options:_0x29dea9})=>{if(_0x29dea9['showSuggestionHighlights'])return _0x626f7a['createEmptyElement']('div');},'converterPriority':'high'}),_0x45475e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f0d69,_0x32d156,_0x8d2fbd)=>{_0x8d2fbd['options']['showSuggestionHighlights']&&_0x1f0d69['stop']();},{'priority':'high'});}}class mt extends _0x52e26d{['afterInit'](){const _0x4dffd8=this['editor'];_0x4dffd8['plugins']['has']('MentionEditing')&&_0x4dffd8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x52e26d{['afterInit'](){const _0x45dd25=this['editor'];if(!_0x45dd25['plugins']['has']('MergeFieldsEditing'))return;_0x45dd25['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x45dd25['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x33261b=_0x45dd25['plugins']['get']('TrackChangesEditing'),_0x560281=_0x45dd25['locale'];_0x33261b['descriptionFactory']['registerElementLabel']('mergeField',_0x1262d6=>o(_0x560281,'ELEMENT_MERGE_FIELD',_0x1262d6)),_0x33261b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c534b=>o(_0x560281,'ELEMENT_MERGE_FIELD',_0x5c534b)),_0x33261b['descriptionFactory']['registerDescriptionCallback'](_0x222def=>{if('insertion'!=_0x222def['type']&&'deletion'!=_0x222def['type'])return;const _0x56696e=_0x222def['getContainedElement']();if(null==_0x56696e)return;if(!_0x56696e['is']('element','mergeField')&&!_0x56696e['is']('element','mergeFieldBlock'))return;const _0x153feb=_0x45dd25['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x56696e['getAttribute']('id'));return'insertion'==_0x222def['type']?{'type':'insertion','content':o(_0x560281,'*Insert:*\x20%0','\x22'+_0x153feb+'\x22\x20'+o(_0x560281,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x560281,'*Remove:*\x20%0','\x22'+_0x153feb+'\x22\x20'+o(_0x560281,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x52e26d{['afterInit'](){const _0x36162a=this['editor'],_0x121396=_0x36162a['plugins']['get']('TrackChangesEditing');_0x36162a['plugins']['has']('MultiLevelList')&&(_0x121396['enableDefaultAttributesIntegration']('multiLevelList'),_0x121396['registerBlockAttribute']('listMarkerStyle'),_0x121396['descriptionFactory']['registerDescriptionCallback'](_0x50f327=>this['handleDescriptions'](_0x50f327)));}['handleDescriptions'](_0x45c44c){const _0x1528df=this['editor']['locale'],{data:_0x31dd1c}=_0x45c44c,_0x3f978c={'type':'format','content':''};if(_0x31dd1c&&'listMarkerStyle'==_0x31dd1c['key']){if(!_0x31dd1c['oldValue'])return{'type':'format','content':o(_0x1528df,'*Set\x20format:*\x20%0',o(_0x1528df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31dd1c['newValue']+')'};if(!_0x31dd1c['newValue']){let _0x45cac5=_0x45c44c['head'];for(;_0x45cac5;){if(_0x45cac5['data']&&'listType'==_0x45cac5['data']['key']&&_0x45cac5['data']['newValue'])return _0x3f978c;_0x45cac5=_0x45cac5['next'];}return{'type':'format','content':o(_0x1528df,'*Remove\x20format:*\x20%0',o(_0x1528df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31dd1c['oldValue']+')'};}}}}class kt extends _0x52e26d{['afterInit'](){const _0x571d57=this['editor'];if(!_0x571d57['plugins']['has']('PageBreakEditing'))return;_0x571d57['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x34a29b=_0x571d57['plugins']['get']('TrackChangesEditing'),_0x5af71d=_0x571d57['locale'];_0x34a29b['descriptionFactory']['registerElementLabel']('pageBreak',_0x371497=>o(_0x5af71d,'ELEMENT_PAGE_BREAK',_0x371497));}}class bt extends _0x52e26d{['afterInit'](){const _0x1af604=this['editor'];if(!_0x1af604['plugins']['has']('Paragraph'))return;const _0xd36b68=_0x1af604['locale'],_0x3613ab=_0x1af604['plugins']['get']('TrackChangesEditing');_0x3613ab['descriptionFactory']['registerElementLabel']('paragraph',_0x10bb8=>o(_0xd36b68,'ELEMENT_PARAGRAPH',_0x10bb8)),_0x3613ab['enableDefaultAttributesIntegration']('paragraph'),_0x3613ab['enableCommand']('insertParagraph'),_0x1af604['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1af604),{'priority':'highest'}),_0x1af604['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x67c04,_0x1bbe0d,_0x59f947)=>{_0x59f947['options']['showSuggestionHighlights']&&nr(_0x1af604,{'showActiveMarker':!0x1})(_0x67c04,_0x1bbe0d,_0x59f947);},{'priority':'highest'});const _0x1123cf=_0x3613ab['descriptionFactory'];_0x1123cf['registerDescriptionCallback'](_0x2907fc=>{if('insertion'!==_0x2907fc['type'])return;const {start:_0x25042a,end:_0x556290}=_0x2907fc['getFirstRange']();if(!_0x25042a['isTouching'](_0x556290)||!_0x25042a['nodeAfter'])return;const _0x257a34=_0x1af604['model']['schema'],_0x525f75=_0x25042a['nodeAfter'];return _0x257a34['isBlock'](_0x525f75)&&!_0x257a34['isLimit'](_0x525f75)&&_0x257a34['checkChild'](_0x525f75,'$text')?{'type':'insertion','content':o(_0xd36b68,'*Insert:*\x20%0',_0x1123cf['getItemLabel'](_0x525f75,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe28090=this['editor'],_0x12afa1=_0xe28090['locale'];_0xe28090['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54a209=>{if('formatBlock'!=_0x54a209['type'])return;const {data:_0x11bb0d}=_0x54a209;return _0x11bb0d&&'paragraph'==_0x11bb0d['commandName']?{'type':'format','content':o(_0x12afa1,'*Change\x20to:*\x20%0',o(_0x12afa1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4e68a7,{showActiveMarker:_0x4abb97=!0x0}={}){return(_0x1b3312,_0x433207,_0xd94942)=>{const _0x4f5005=_0x4e68a7['plugins']['get']('TrackChangesEditing'),_0x666bdc=_0x433207['markerRange']['start'],_0x421bae=_0x433207['markerRange']['end'],_0x428df9=_0x4e68a7['model']['schema'];if(!_0x666bdc['isTouching'](_0x421bae)||!_0x666bdc['nodeAfter'])return;const _0x161e26=_0x666bdc['nodeAfter'];if(_0x428df9['isBlock'](_0x161e26)&&!_0x428df9['isLimit'](_0x161e26)&&_0x428df9['checkChild'](_0x161e26,'$text')){if(!_0xd94942['consumable']['consume'](_0x433207['markerRange'],_0x1b3312['name']))return;const {authorId:_0x192a0f}=_0x4f5005['_splitMarkerName'](_0x433207['markerName']),_0x340ed8=_0xd94942['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x192a0f}),_0x53b0aa=_0xd94942['mapper']['toViewPosition'](_0x421bae);_0x4abb97&&_0x4f5005['activeMarkers']['includes'](_0x433207['markerName'])&&_0xd94942['writer']['addClass']('ck-suggestion-marker--active',_0x340ed8),_0xd94942['writer']['insert'](_0x53b0aa,_0x340ed8),_0xd94942['mapper']['bindElementToMarker'](_0x340ed8,_0x433207['markerName']);}};}class yt extends _0x52e26d{['afterInit'](){const _0x1182c5=this['editor'];if(!_0x1182c5['plugins']['has']('RemoveFormatEditing'))return;_0x1182c5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27054f=this['editor'];_0x27054f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d79ba=>{if('formatBlock'!=_0x2d79ba['type']&&'formatInline'!=_0x2d79ba['type'])return;const {data:_0x47cb0d}=_0x2d79ba;return _0x47cb0d&&'removeFormat'==_0x47cb0d['commandName']?{'type':'format','content':o(_0x27054f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x52e26d{['afterInit'](){const _0x55372d=this['editor'];if(!_0x55372d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1cb3c7=_0x55372d['plugins']['get']('TrackChangesEditing');_0x1cb3c7['enableCommand']('goToPreviousRestrictedEditingException'),_0x1cb3c7['enableCommand']('goToNextRestrictedEditingException');const _0x4026c1=_0x55372d['plugins']['get']('RestrictedEditingModeEditing');_0x4026c1['enableCommand']('trackChanges'),_0x4026c1['enableCommand']('acceptSuggestion'),_0x4026c1['enableCommand']('discardSuggestion'),_0x4026c1['enableCommand']('acceptAllSuggestions'),_0x4026c1['enableCommand']('discardAllSuggestions'),_0x4026c1['enableCommand']('acceptSelectedSuggestions'),_0x4026c1['enableCommand']('discardSelectedSuggestions');}}class St extends _0x52e26d{static get['requires'](){return[_0x29d2e5];}['init'](){const _0xacd6b2=this['editor'],_0x53aab3=_0xacd6b2['plugins']['get']('TrackChangesEditing');_0x53aab3['enableCommand']('shiftEnter'),_0xacd6b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0xacd6b2),{'priority':'high'}),_0xacd6b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0xacd6b2),{'priority':'high'}),_0xacd6b2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x103571,_0x53e51c,_0x201818)=>{_0x201818['options']['showSuggestionHighlights']&&ke(_0xacd6b2,{'showActiveMarker':!0x1})(_0x103571,_0x53e51c,_0x201818);}),_0x53aab3['descriptionFactory']['registerElementLabel']('softBreak',_0x1878d0=>o(_0xacd6b2['locale'],'ELEMENT_LINE_BREAK',_0x1878d0));}}function ke(_0x4a306d,{showActiveMarker:_0x93cc30=!0x0}={}){return(_0x400754,_0x322012,_0x5002c8)=>{const _0x4f6a73=_0x4a306d['plugins']['get']('TrackChangesEditing');if(!_0x5002c8['consumable']['test'](_0x322012['markerRange'],_0x400754['name']))return;const _0x476197=_0x4a306d['model'];for(const _0x48f681 of _0x322012['markerRange']['getItems']()){if(!_0x48f681['is']('element','softBreak'))continue;const _0x501529='deletion'==_0x322012['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xd53687}=_0x4f6a73['_splitMarkerName'](_0x322012['markerName']),_0x3f3fb6=_0x5002c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x501529,'data-author-id':_0xd53687}),_0x19b5bd=_0x5002c8['mapper']['toViewPosition'](_0x476197['createPositionBefore'](_0x48f681));_0x93cc30&&_0x4f6a73['activeMarkers']['includes'](_0x322012['markerName'])&&_0x5002c8['writer']['addClass']('ck-suggestion-marker--active',_0x3f3fb6),_0x5002c8['writer']['insert'](_0x19b5bd,_0x3f3fb6),_0x5002c8['mapper']['bindElementToMarker'](_0x3f3fb6,_0x322012['markerName']);}};}class At extends _0x52e26d{['afterInit'](){const _0x37b379=this['editor'],_0xddcb55=_0x37b379['model'],_0x38b74a=_0x37b379['locale'];if(!_0x37b379['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d5479=_0x37b379['plugins']['get']('TrackChangesEditing'),_0x7400d8='restrictedEditingException',_0x4b3573=_0x37b379['commands']['get'](_0x7400d8);_0x5d5479['enableCommand'](_0x7400d8,(_0x5ba764,_0x559d1f={})=>{const _0x544383=_0xddcb55['document']['selection'];if(_0x544383['isCollapsed'])return void _0x5ba764(_0x559d1f);const _0x295385=void 0x0!==_0x559d1f['forceValue']?_0x559d1f['forceValue']:!_0x4b3573['value'];_0xddcb55['change'](()=>{const _0x2a00a8=Array['from'](_0x544383['getRanges']());for(const _0x9682f2 of _0x2a00a8){const _0x4c7656=_0x295385?[_0x9682f2]:io(_0x7400d8,_0x9682f2,_0xddcb55);for(const _0x40dd77 of _0x4c7656)_0x5d5479['markInlineFormat'](_0x40dd77,{'commandName':_0x7400d8,'commandParams':[{'forceValue':_0x295385}]});}});}),_0x5d5479['descriptionFactory']['registerDescriptionCallback'](_0x18cc60=>{if('formatBlock'!=_0x18cc60['type']&&'formatInline'!=_0x18cc60['type'])return;const {data:_0x5a59aa}=_0x18cc60;return _0x5a59aa&&_0x5a59aa['commandName']==_0x7400d8?_0x5a59aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38b74a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x38b74a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x52e26d{['afterInit'](){const _0x4c40ce=this['editor'];if(!_0x4c40ce['plugins']['has']('Style')||!_0x4c40ce['plugins']['has']('DataSchema'))return;const _0x57a9a8=_0x4c40ce['plugins']['get']('TrackChangesEditing'),_0x13bd31=_0x4c40ce['locale'],_0x3f8e71=_0x4c40ce['config']['get']('style')||{},_0xaffea3=_0x4c40ce['plugins']['get']('GeneralHtmlSupport'),_0x2f4cf=_0x4c40ce['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4c40ce['plugins']['get']('DataSchema'),_0x3f8e71['definitions']);_0x57a9a8['enableDefaultAttributesIntegration']('style');const _0x3d5edf=new Set();for(const _0x12011c of _0x2f4cf['block']){const _0x22c918=_0xaffea3['getGhsAttributeNameForElement'](_0x12011c['element']);_0x3d5edf['add'](_0x22c918);}const _0x4712e1=new Set();for(const _0x584711 of _0x2f4cf['inline']){const _0x6da788=_0xaffea3['getGhsAttributeNameForElement'](_0x584711['element']);_0x4712e1['add'](_0x6da788);for(const _0x3322fa of _0x584711['ghsAttributes'])_0x4712e1['add'](_0x3322fa);}for(const _0x4fc513 of _0x3d5edf)_0x57a9a8['registerBlockAttribute'](_0x4fc513),_0x57a9a8['descriptionFactory']['registerAttributeLabel'](_0x4fc513,o(_0x13bd31,'FORMAT_STYLE'));for(const _0x207865 of _0x4712e1)_0x57a9a8['registerInlineAttribute'](_0x207865),_0x57a9a8['descriptionFactory']['registerAttributeLabel'](_0x207865,o(_0x13bd31,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bc5e7=this['editor'],_0x9cd037=_0x2bc5e7['locale'];_0x2bc5e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97a611=>{if('formatBlock'!=_0x97a611['type']&&'formatInline'!=_0x97a611['type'])return;const {data:_0x4045c4}=_0x97a611;return _0x4045c4&&'style'===_0x4045c4['commandName']?_0x4045c4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9cd037,'*Set\x20format:*\x20%0',_0x4045c4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x9cd037,'*Remove\x20format:*\x20%0',_0x4045c4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x52e26d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x24eb72){super(_0x24eb72),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x54edca=this['editor'],_0x10a51a=_0x54edca['model']['document']['selection'];if(!_0x54edca['plugins']['has']('TableEditing'))return;const _0x3ee90d=_0x54edca['locale'],_0x5b04c2=_0x54edca['plugins']['get']('TrackChangesEditing'),_0x35e24b=_0x54edca['plugins']['get']('TableUtils');_0x5b04c2['descriptionFactory']['registerElementLabel']('table',_0x22ab8a=>o(_0x3ee90d,'ELEMENT_TABLE',_0x22ab8a)),this['_setupColumnsRowsFixing'](),_0x5b04c2['enableCommand']('insertTable'),_0x5b04c2['enableCommand']('selectTableRow'),_0x5b04c2['enableCommand']('selectTableColumn');for(const _0x378d4a of['insertTableRowAbove','insertTableRowBelow']){const _0x405705=_0x54edca['commands']['get'](_0x378d4a);_0x5b04c2['enableCommand'](_0x378d4a,_0x409740=>{_0x54edca['model']['change'](_0xc421ed=>{_0x409740();const _0xbbd688='above'===_0x405705['order'],_0x254d34=_0x35e24b['getSelectionAffectedTableCells'](_0x10a51a),_0x36eab5=_0x35e24b['getRowIndexes'](_0x254d34),_0x161aa2=_0xbbd688?_0x36eab5['first']-0x1:_0x36eab5['last']+0x1,_0x3497c9=_0x254d34[0x0]['findAncestor']('table'),_0x1cac08=_0x35e24b['createTableWalker'](_0x3497c9,{'startRow':_0x161aa2,'endRow':_0x161aa2}),_0x2df564=Array['from'](_0x1cac08)['map'](_0x151311=>_0xc421ed['createRangeOn'](_0x151311['cell']));_0x5b04c2['markMultiRangeInsertion'](_0x2df564,'tableRow');});});}for(const _0x26d068 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2eda16=_0x54edca['commands']['get'](_0x26d068);_0x5b04c2['enableCommand'](_0x26d068,_0x4a5288=>{_0x54edca['model']['change'](_0x3d10f=>{_0x4a5288();const _0x301526='left'===_0x2eda16['order'],_0x841f3=_0x35e24b['getSelectionAffectedTableCells'](_0x10a51a),_0x146528=_0x35e24b['getColumnIndexes'](_0x841f3),_0x1df720=_0x301526?_0x146528['first']-0x1:_0x146528['last']+0x1,_0x49a9a4=_0x841f3[0x0]['findAncestor']('table'),_0x1eeb39=_0x35e24b['createTableWalker'](_0x49a9a4,{'startRow':0x0,'column':_0x1df720,'includeAllSlots':!0x1}),_0x512169=Array['from'](_0x1eeb39)['map'](_0x1c5b79=>_0x3d10f['createRangeOn'](_0x1c5b79['cell']));_0x5b04c2['markMultiRangeInsertion'](_0x512169,'tableColumn');});});}for(const _0x46a71b of['removeTableRow','removeTableColumn']){const _0xac6ed1=_0x46a71b['substr'](0xb),_0x4ff163=_0xac6ed1['toLowerCase'](),_0x4a74e0=_0x4ff163['substr'](0x0,0x3)+'span',_0x18417a='table'+_0xac6ed1,_0x231394='min'+_0xac6ed1,_0x39f482='max'+_0xac6ed1;_0x5b04c2['enableCommand'](_0x46a71b,()=>{_0x54edca['model']['change'](_0x1b2569=>{const _0x3f1d75=_0x35e24b['getSelectionAffectedTableCells'](_0x10a51a),_0x1da0cd=_0x3f1d75[0x0]['findAncestor']('table');let _0x1e28f7;if('removeTableRow'==_0x46a71b){const _0x5aa7f=_0x35e24b['getRowIndexes'](_0x3f1d75);_0x1e28f7={'startRow':_0x5aa7f['first'],'endRow':_0x5aa7f['last'],'includeAllSlots':!0x0};}else{const _0x1f815e=_0x35e24b['getColumnIndexes'](_0x3f1d75);_0x1e28f7={'startColumn':_0x1f815e['first'],'endColumn':_0x1f815e['last'],'includeAllSlots':!0x0};}const _0x5ae08d=_0x35e24b['createTableWalker'](_0x1da0cd,_0x1e28f7),_0x48d05e=Array['from'](_0x5ae08d)['map'](({cell:_0x323e62})=>_0x323e62),_0x59bebe=Re(_0x48d05e['filter'](_0x69569=>_0x69569['hasAttribute'](_0x4a74e0))),_0x2e5308=Re(_0x48d05e['filter'](_0x5e4374=>!_0x5e4374['hasAttribute'](_0x4a74e0)))['map'](_0x25278e=>_0x1b2569['createRangeOn'](_0x25278e)),_0x337086=_0x5b04c2['markMultiRangeDeletion'](_0x2e5308,_0x18417a);if(_0x337086&&('tableRow'==_0x337086['subType']||'tableColumn'==_0x337086['subType'])){const _0x50cd08=this['_getSuggestionCoords'](_0x337086);for(const _0x3db625 of _0x59bebe){const _0x51f974=_0x1b2569['createRangeOn'](_0x3db625),_0x2592cb=_0x35e24b['getCellLocation'](_0x3db625),_0x37f001=_0x3db625['getAttribute'](_0x4a74e0)-0x1,_0x2b217a=_0x50cd08[_0x231394],_0x22e52b=_0x50cd08[_0x39f482];_0x2b217a<=_0x2592cb[_0x4ff163]&&_0x2592cb[_0x4ff163]+_0x37f001<=_0x22e52b&&_0x337086['addRange'](_0x51f974);}}});});}function _0x30b88e(_0x289fc1){const _0x2bb8f1=Array['from'](_0x10a51a['getRanges']())['map'](_0xc6e0bb=>_0x5a7b90['fromRange'](_0xc6e0bb));_0x54edca['model']['change'](_0x3efecf=>{const _0x19e877=_0x3efecf['batch'];_0x289fc1=_0x289fc1['filter'](_0x21d48b=>'$graveyard'!=_0x21d48b['root']['rootName']),_0x3efecf['setSelection'](_0x289fc1),_0x54edca['commands']['get']('removeTableRow')['refresh'](),_0x54edca['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x54edca['model']['enqueueChange'](()=>{_0x54edca['model']['enqueueChange'](_0x19e877,_0x541d88=>{const _0x4b97eb=_0x2bb8f1['filter'](_0x7c228=>'$graveyard'!=_0x7c228['root']['rootName']);_0x4b97eb['length']>0x0&&_0x541d88['setSelection'](_0x4b97eb);for(const _0x23d5a7 of _0x2bb8f1)_0x23d5a7['detach']();});});});}function _0x58056f(_0x14ead0){_0x54edca['model']['change'](_0x342cde=>{const _0x332a17=Array['from'](_0x10a51a['getRanges']())['map'](_0x18afda=>_0x5a7b90['fromRange'](_0x18afda)),_0x3ffa86=[];for(const _0x137d31 of _0x14ead0)for(const _0x1681a7 of _0x137d31['getItems']({'shallow':!0x0}))_0x3ffa86['push'](_0x1681a7);for(const _0xf60586 of _0x3ffa86)'$graveyard'!=_0xf60586['root']['rootName']&&(_0x342cde['setSelection'](_0x342cde['createPositionAt'](_0xf60586,0x0)),_0x54edca['commands']['get']('removeTableColumn')['refresh'](),_0x54edca['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x37e3c2=_0x332a17['filter'](_0xbb7668=>'$graveyard'!=_0xbb7668['root']['rootName']);_0x37e3c2['length']>0x0&&_0x342cde['setSelection'](_0x37e3c2);for(const _0xd3c12e of _0x332a17)_0xd3c12e['detach']();});}function _0x411dba(_0x17d479,_0x59c6c6){return _0x59c6c6['every'](_0x2086e0=>_0x17d479['some'](_0x40c4e2=>_0x40c4e2['end']['isEqual'](_0x2086e0['start'])||_0x2086e0['end']['isEqual'](_0x40c4e2['start'])));}function _0x271a9a(_0x268d5a,_0x5688c0){return!_0x268d5a['some'](_0x5c57d3=>_0x5688c0['some'](_0x5b8956=>_0x5c57d3['isIntersecting'](_0x5b8956)))&&_0x268d5a['some'](_0x3bfb7f=>_0x5688c0['some'](_0x2e366d=>_0x3bfb7f['end']['isTouching'](_0x2e366d['start'])));}_0x54edca['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x477638,_0x1dc386,_0x582848)=>{if(!_0x582848['options']['showSuggestionHighlights'])return;const _0x6c66bb=_0x1dc386['item'];if(!_0x6c66bb)return;const _0x7daef3=_0x582848['mapper']['toViewElement'](_0x6c66bb);function _0x32016e(_0x2101c2){return Array['isArray'](_0x2101c2)?_0x2101c2:[_0x2101c2];}_0x7daef3&&'tableCell'===_0x6c66bb['name']&&_0x3ae452(_0x7daef3,_0x582848['writer'],(_0x3236d0,_0x59f5c4,_0x3211c3)=>_0x3211c3['addClass'](_0x32016e(_0x59f5c4['classes']),_0x3236d0),(_0x594d99,_0x6ffdde,_0x45a4a4)=>_0x45a4a4['removeClass'](_0x32016e(_0x6ffdde['classes']),_0x594d99));},{'priority':'highest'}),_0x5b04c2['descriptionFactory']['registerDescriptionCallback'](_0x6fe7a0=>{if('insertion'!=_0x6fe7a0['type']&&'deletion'!=_0x6fe7a0['type'])return;const _0x605457=_0x6fe7a0['getContainedElement']();if(null!=_0x605457&&_0x605457['is']('element','table')){if('insertion'==_0x6fe7a0['type']){const _0x36f7bb=_0x6fe7a0['getItems']()['filter'](_0x1a5c69=>_0x1a5c69['is']('$textProxy'))['map'](_0x2874da=>_0x2874da['data']);if(_0x36f7bb['length'])return{'type':'insertion','content':o(_0x3ee90d,'*Insert:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36f7bb['join']('\x20')+'\x22'))};}if('deletion'==_0x6fe7a0['type']){const _0x378ae2=_0x6fe7a0['getItems']()['filter'](_0x1cc798=>_0x1cc798['is']('$textProxy'))['map'](_0x4cc8c0=>_0x4cc8c0['data']);if(_0x378ae2['length'])return{'type':'deletion','content':o(_0x3ee90d,'*Remove:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x378ae2['join']('\x20')+'\x22'))};}}}),_0x5b04c2['descriptionFactory']['registerDescriptionCallback'](_0x5a2f6d=>{if('tableRow'==_0x5a2f6d['subType']){const _0x42bd25=_0x5a2f6d['getItems']()['filter'](_0x1e6fac=>_0x1e6fac['is']('$textProxy'))['map'](_0x11a555=>_0x11a555['data']),_0x418158=this['_getSuggestionCoords'](_0x5a2f6d),_0x12f320=_0x418158['maxRow']-_0x418158['minRow']+0x1;if('insertion'==_0x5a2f6d['type'])return _0x42bd25['length']?{'type':'insertion','content':o(_0x3ee90d,'*Insert:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12f320,'\x22'+_0x42bd25['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ee90d,'*Insert:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_ROW',_0x12f320))};if('deletion'==_0x5a2f6d['type'])return _0x42bd25['length']?{'type':'deletion','content':o(_0x3ee90d,'*Remove:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12f320,'\x22'+_0x42bd25['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ee90d,'*Remove:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_ROW',_0x12f320))};}if('tableColumn'==_0x5a2f6d['subType']){const _0x309301=_0x5a2f6d['getItems']()['filter'](_0x43c1b3=>_0x43c1b3['is']('$textProxy'))['map'](_0xde6e93=>_0xde6e93['data']),_0x2dece5=this['_getSuggestionCoords'](_0x5a2f6d),_0x12d71f=_0x2dece5['maxColumn']-_0x2dece5['minColumn']+0x1;if('insertion'==_0x5a2f6d['type'])return _0x309301['length']?{'type':'insertion','content':o(_0x3ee90d,'*Insert:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12d71f,'\x22'+_0x309301['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ee90d,'*Insert:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_COLUMN',_0x12d71f))};if('deletion'==_0x5a2f6d['type'])return _0x309301['length']?{'type':'deletion','content':o(_0x3ee90d,'*Remove:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12d71f,'\x22'+_0x309301['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ee90d,'*Remove:*\x20%0',o(_0x3ee90d,'ELEMENT_TABLE_COLUMN',_0x12d71f))};}}),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x30b88e),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x30b88e),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x58056f),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x58056f),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x411dba),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x411dba),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x271a9a),_0x5b04c2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x271a9a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5da7ca=this['editor'],_0x15f790=_0x5da7ca['model']['document']['selection'];return(_0x3603ec,_0x16da10)=>{_0x5da7ca['model']['change'](_0x5294ef=>{const {commandName:_0x208061,commandParams:_0x74ece6}=_0x16da10;let _0x41d8f5=_0x3603ec[0x0]['end']['nodeBefore'];_0x74ece6&&_0x74ece6[0x0]&&!0x1===_0x74ece6[0x0]['forceValue']&&(_0x41d8f5=_0x3603ec[0x0]['start']['nodeAfter']);const _0x19d397=_0x5294ef['createRangeIn'](_0x41d8f5);if('$graveyard'==_0x19d397['root']['rootName'])return;const _0x1156e8=Array['from'](_0x15f790['getRanges']())['map'](_0x2dd557=>_0x5a7b90['fromRange'](_0x2dd557));_0x5294ef['setSelection'](_0x19d397),_0x5da7ca['commands']['get'](_0x208061)['refresh'](),_0x74ece6['push']({'forceDefaultExecution':!0x0}),_0x5da7ca['execute'](_0x208061,..._0x74ece6);const _0x3a2642=_0x1156e8['filter'](_0x250e05=>'$graveyard'!=_0x250e05['root']['rootName']);_0x3a2642['length']>0x0&&_0x5294ef['setSelection'](_0x3a2642);for(const _0x19b10e of _0x1156e8)_0x19b10e['detach']();});};}['_getCoordsForCells'](_0x96d23a){const _0x79bea2=this['editor']['plugins']['get']('TableUtils');let _0x11b72a=Number['MAX_SAFE_INTEGER'],_0x55c129=Number['MIN_SAFE_INTEGER'],_0x4e69c5=Number['MAX_SAFE_INTEGER'],_0x5f32db=Number['MIN_SAFE_INTEGER'];for(const _0x50d17f of _0x96d23a){if('$graveyard'==_0x50d17f['root']['rootName'])continue;const {row:_0x1bde37,column:_0x4535a5}=_0x79bea2['getCellLocation'](_0x50d17f),_0x5f4650=_0x50d17f['hasAttribute']('rowspan')?_0x50d17f['getAttribute']('rowspan')-0x1:0x0,_0x2f6741=_0x50d17f['hasAttribute']('colspan')?_0x50d17f['getAttribute']('colspan')-0x1:0x0;_0x11b72a=_0x1bde37<_0x11b72a?_0x1bde37:_0x11b72a,_0x55c129=_0x1bde37+_0x5f4650>_0x55c129?_0x1bde37+_0x5f4650:_0x55c129,_0x4e69c5=_0x4535a5<_0x4e69c5?_0x4535a5:_0x4e69c5,_0x5f32db=_0x4535a5+_0x2f6741>_0x5f32db?_0x4535a5+_0x2f6741:_0x5f32db;}return{'minRow':_0x11b72a,'maxRow':_0x55c129,'minColumn':_0x4e69c5,'maxColumn':_0x5f32db};}['_setupColumnsRowsFixing'](){const _0x445237=this['editor'],_0x591600=_0x445237['plugins']['get']('TrackChangesEditing'),_0x2353a7=_0x445237['plugins']['get']('TableUtils');_0x445237['model']['document']['on']('change:data',()=>{const _0x51e6ad=Array['from'](_0x445237['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2dea68,data:_0x2c6d6e}of _0x51e6ad){const {group:_0x4cbeb3,id:_0x512294,subType:_0x5b4678}=_0x591600['_splitMarkerName'](_0x2dea68);if('suggestion'!=_0x4cbeb3)continue;if(null!=_0x2c6d6e['oldRange'])continue;const _0x5dafb2=_0x591600['getSuggestion'](_0x512294);this['_tablePostFixingSubtypes']['includes'](_0x5b4678)&&this['_tableSuggestions']['add'](_0x5dafb2);}},{'priority':'low'});const _0x5cecdd=(_0x2550d8,_0x34d6b2)=>{let _0x90be40=!0x1;const _0x114c7c=_0x34d6b2['createRangeOn'](_0x2550d8),_0x148b3c=_0x2550d8['findAncestor']('table'),_0x985624=_0x2353a7['getCellLocation'](_0x2550d8);for(const _0x476695 of this['_tableSuggestions']){const _0x31ee1d=_0x476695['subType'],_0x10c744=_0x31ee1d['startsWith']('tablePaste'),_0x15e781=_0x31ee1d['substr'](_0x10c744?0xa:0x5),_0x34c53b=_0x15e781['toLowerCase'](),_0x5eaa16=_0x34c53b['substr'](0x0,0x3)+'span',_0x26b7b4='min'+_0x15e781,_0x20904c='max'+_0x15e781;if(!_0x476695['isInContent'])continue;if(_0x148b3c!=_0x476695['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x476695['isIntersectingWithRange'](_0x114c7c))continue;const _0x22c068=_0x2550d8['hasAttribute'](_0x5eaa16)?_0x2550d8['getAttribute'](_0x5eaa16)-0x1:0x0,_0x2e1243=this['_getSuggestionCoords'](_0x476695),_0x3ada37=_0x2e1243[_0x26b7b4],_0x381640=_0x2e1243[_0x20904c];_0x3ada37<=_0x985624[_0x34c53b]&&_0x985624[_0x34c53b]+_0x22c068<=_0x381640&&(_0x476695['addRange'](_0x114c7c),_0x90be40=!0x0);}return _0x90be40;};_0x445237['model']['document']['registerPostFixer'](_0x5efec8=>{let _0xe765eb=!0x1;for(const _0x1c17e6 of _0x445237['model']['document']['differ']['getChanges']())if('insert'==_0x1c17e6['type']){if('tableRow'==_0x1c17e6['name']){for(const _0x2777bc of _0x1c17e6['position']['nodeAfter']['getChildren']())_0xe765eb=_0xe765eb||_0x5cecdd(_0x2777bc,_0x5efec8);}else'tableCell'==_0x1c17e6['name']&&(_0xe765eb=_0xe765eb||_0x5cecdd(_0x1c17e6['position']['nodeAfter'],_0x5efec8));}return _0xe765eb;});}['_getSuggestionCoords'](_0x5c2cc8){return this['_getCoordsForCells'](_0x5c2cc8['getRanges']()['map'](_0x184adb=>_0x184adb['start']['nodeAfter']));}}function Re(_0x491a83){return Array['from'](new Set(_0x491a83)['values']());}class _t extends _0x52e26d{static get['requires'](){return[vt];}['afterInit'](){const _0x5ae3f1=this['editor'],_0x312d35=_0x5ae3f1['model']['document']['selection'],_0x16818b=_0x5ae3f1['locale'];if(!_0x5ae3f1['plugins']['has']('TableEditing'))return;const _0x5a5ba1=_0x5ae3f1['plugins']['get']('TrackChangesEditing'),_0x2a920f=_0x5ae3f1['plugins']['get']('TableUtils'),_0x173bae=_0x5ae3f1['plugins']['get'](vt);_0x173bae['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a5ba1['enableCommand']('mergeTableCells',()=>{const _0x55b69f=_0x2a920f['getSelectionAffectedTableCells'](_0x5ae3f1['model']['document']['selection']);_0x5ae3f1['model']['change'](()=>{_0x5a5ba1['markMultiRangeBlockFormat'](_0x55b69f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5ae3f1['commands']['get']('mergeTableCells')['on']('execute',(_0x3a5ae1,_0x3b593b)=>{_0x5ae3f1['commands']['get']('trackChanges')['value']&&(_0x3b593b['length']>0x0&&_0x3b593b[_0x3b593b['length']-0x1]&&_0x3b593b[_0x3b593b['length']-0x1]['forceDefaultExecution']||_0x5a5ba1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a5ae1['stop']());},{'priority':'highest'});for(const _0x5764d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2cf8de=_0x5ae3f1['commands']['get'](_0x5764d);_0x5a5ba1['enableCommand'](_0x5764d,()=>{const _0xb01ad3=_0x5ae3f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x584377=>_0x584377['is']('element','tableCell')),_0x5c27e8=_0x2cf8de['value'];_0x5ae3f1['model']['change'](()=>{_0x5a5ba1['markMultiRangeBlockFormat']([_0xb01ad3,_0x5c27e8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x49730f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x144905=_0x5ae3f1['commands']['get'](_0x49730f);_0x5a5ba1['enableCommand'](_0x49730f,()=>{const _0x40da9d=_0x2a920f['getSelectionAffectedTableCells'](_0x5ae3f1['model']['document']['selection'])[0x0],_0x2781bf=_0x40da9d['findAncestor']('table'),{column:_0x20fd63,row:_0x2b2c4c}=_0x2a920f['getCellLocation'](_0x40da9d);let _0x11ee1a=[];if('horizontally'==_0x144905['direction']){const _0x1b6146=_0x2a920f['createTableWalker'](_0x2781bf,{'startRow':_0x2b2c4c,'endRow':_0x2b2c4c,'includeAllSlots':!0x0});_0x11ee1a=Array['from'](_0x1b6146)['map'](_0x3b997f=>_0x3b997f['cell']);}else{const _0x547fb3=_0x2a920f['createTableWalker'](_0x2781bf,{'column':_0x20fd63,'includeAllSlots':!0x0});_0x11ee1a=Array['from'](_0x547fb3)['map'](_0x9c3005=>_0x9c3005['cell']);}_0x5ae3f1['model']['change'](_0x526395=>{_0x5a5ba1['markBlockFormat'](_0x526395['createRangeOn'](_0x40da9d),{'commandName':_0x49730f,'commandParams':[]},_0x11ee1a,_0x49730f);});});}_0x5a5ba1['descriptionFactory']['registerDescriptionCallback'](_0x5311ca=>{if('formatBlock'!=_0x5311ca['type']&&'formatInline'!=_0x5311ca['type'])return;const {data:_0x3674f4}=_0x5311ca;return _0x3674f4&&'mergeTableCells'==_0x3674f4['commandName']?{'type':'format','content':o(_0x16818b,'*Merge\x20cells*')}:void 0x0;}),_0x5a5ba1['descriptionFactory']['registerDescriptionCallback'](_0x4c150e=>{if('formatBlock'!=_0x4c150e['type']&&'formatInline'!=_0x4c150e['type'])return;const {data:_0x5ad4bd}=_0x4c150e;return _0x5ad4bd?'splitTableCellVertically'==_0x5ad4bd['commandName']?{'type':'format','content':o(_0x16818b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5ad4bd['commandName']?{'type':'format','content':o(_0x16818b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1f139d=_0x173bae['_acceptFormatSuggestionCallbackFactory']();for(const _0x27af7b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a5ba1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27af7b,'accept',_0x1f139d);for(const _0x52d04e of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a5ba1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52d04e,'accept',_0x1f139d);_0x5a5ba1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1e493c=>{_0x5ae3f1['model']['change'](_0x3c513b=>{const _0x1395d4=Array['from'](_0x312d35['getRanges']())['map'](_0x2bab4d=>_0x5a7b90['fromRange'](_0x2bab4d));_0x3c513b['setSelection'](_0x1e493c),_0x5ae3f1['commands']['get']('mergeTableCells')['refresh'](),_0x5ae3f1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x21cbba=_0x1395d4['filter'](_0x3cc7c5=>'$graveyard'!=_0x3cc7c5['root']['rootName']);_0x21cbba['length']>0x0&&_0x3c513b['setSelection'](_0x21cbba);for(const _0x2c151c of _0x1395d4)_0x2c151c['detach']();});});for(const _0x523452 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1fb7bf=_0x5ae3f1['commands']['get'](_0x523452);_0x1fb7bf['on']('set:isEnabled',(_0x267bb7,_0x18f971,_0x3e2894)=>{if(_0x3e2894){const _0x51617a=_0x5ae3f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x30e94d=>_0x30e94d['is']('element','tableCell'));this['_areMergableCells'](_0x1fb7bf['value'],_0x51617a)||(_0x267bb7['return']=!0x1,_0x267bb7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2329ee=this['editor']['commands']['get']('mergeTableCells'),_0x2888ac=this['editor']['plugins']['get']('TableUtils');if(!_0x2329ee['isEnabled'])return!0x1;const _0x42e274=_0x2888ac['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2336b5 of _0x42e274)for(const _0x13e3ac of _0x42e274)if(_0x2336b5!=_0x13e3ac&&!this['_areMergableCells'](_0x2336b5,_0x13e3ac))return!0x1;return!0x0;}['_areMergableCells'](_0x4176e2,_0xdebf07){const _0x3ca66b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ec58=this['editor']['model']['createRangeOn'](_0x4176e2),_0x4bfeb0=this['editor']['model']['createRangeOn'](_0xdebf07),_0x144329=new Set(),_0x4b2b47=new Set();for(const _0x52b952 of _0x3ca66b['getSuggestions']())if(('insertion'==_0x52b952['type']||'deletion'==_0x52b952['type']||'mergeTableCells'==_0x52b952['subType'])&&_0x52b952['isInContent']){for(const _0x5312f2 of _0x52b952['getRanges']())_0x5312f2['containsRange'](_0x35ec58,!0x0)&&_0x144329['add'](_0x52b952['type']+':'+_0x52b952['author']['id']),_0x5312f2['containsRange'](_0x4bfeb0,!0x0)&&_0x4b2b47['add'](_0x52b952['type']+':'+_0x52b952['author']['id']);}if(_0x144329['size']!=_0x4b2b47['size'])return!0x1;for(const _0x38f6bd of _0x144329)if(!_0x4b2b47['has'](_0x38f6bd))return!0x1;return!0x0;}}class Ct extends _0x52e26d{static get['requires'](){return[vt];}['afterInit'](){const _0x518b1c=this['editor'];if(!_0x518b1c['plugins']['has']('TableEditing'))return;const _0x54014d=_0x518b1c['locale'],_0x1dd87d=_0x518b1c['plugins']['get']('TrackChangesEditing');_0x1dd87d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dd87d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dd87d['registerBlockAttribute']('headingRows'),_0x1dd87d['registerBlockAttribute']('headingColumns'),_0x1dd87d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x54014d,'FORMAT_HEADER_ROW')),_0x1dd87d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x54014d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x438a60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4afca8=this['editor']['plugins']['get']('TableUtils'),_0x2609d7=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x5c0dc1({showActiveMarker:_0x309bb0=!0x0,setDataAttribute:_0x2f90d8=!0x0}={}){return(_0x43a501,_0x5aa510,_0x517226)=>{const {type:_0x5ee7d2,id:_0x26a0a8}=_0x438a60['_splitMarkerName'](_0x5aa510['markerName']),_0x4fb889=_0x438a60['getSuggestion'](_0x26a0a8),_0x4ec5b7=_0x4fb889['data'];if('formatBlock'!=_0x4fb889['type']||!_0x4ec5b7||'setTableColumnHeader'!=_0x4ec5b7['commandName'])return;if(_0x5aa510['item'])return void _0x43a501['stop']();if(!_0x517226['consumable']['consume'](_0x5aa510['markerRange'],_0x43a501['name']))return;const _0x4a5275=_0x5aa510['markerRange']['start']['nodeAfter'],_0x49a85f=_0x5aa510['markerRange']['end']['nodeBefore'],_0x15b1c9=_0x4a5275['parent']['parent'],{column:_0x150c21}=_0x4afca8['getCellLocation'](_0x4a5275),{column:_0x5d8d34}=_0x4afca8['getCellLocation'](_0x49a85f);for(let _0x30e746=_0x150c21;_0x30e746<=_0x5d8d34;_0x30e746++){const _0x3d5af8=_0x4afca8['createTableWalker'](_0x15b1c9,{'column':_0x30e746,'includeAllSlots':!0x1});for(const _0x126b88 of _0x3d5af8){const _0xc2922d=_0x126b88['cell'],_0x42593e=_0x517226['mapper']['toViewElement'](_0xc2922d);_0x517226['writer']['addClass']('ck-suggestion-marker-'+_0x5ee7d2,_0x42593e),_0x2f90d8&&_0x517226['writer']['setAttribute']('data-suggestion',_0x26a0a8,_0x42593e),_0x517226['mapper']['bindElementToMarker'](_0x42593e,_0x5aa510['markerName']),_0x309bb0&&(_0x438a60['activeMarkers']['includes'](_0x5aa510['markerName'])?_0x517226['writer']['addClass']('ck-suggestion-marker--active',_0x42593e):_0x517226['writer']['removeClass']('ck-suggestion-marker--active',_0x42593e));}}};}_0x438a60['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2609d7),_0x438a60['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2609d7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c0dc1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x394df0,_0x442516,_0x6d877)=>{_0x6d877['options']['showSuggestionHighlights']&&_0x5c0dc1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x394df0,_0x442516,_0x6d877);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x43b65a,_0x5604dd,_0x3a430b)=>{const {type:_0x3dd946,id:_0x52cbb7}=_0x438a60['_splitMarkerName'](_0x5604dd['markerName']),_0x34fb63=_0x438a60['getSuggestion'](_0x52cbb7),_0x56b85b=_0x34fb63['data'];if('formatBlock'!=_0x34fb63['type']||!_0x56b85b||'setTableColumnHeader'!=_0x56b85b['commandName'])return;const _0xd6bf41=_0x3a430b['mapper']['markerNameToElements'](_0x5604dd['markerName']);if(_0xd6bf41){for(const _0x302e9a of _0xd6bf41)_0x3a430b['writer']['removeClass']('ck-suggestion-marker-'+_0x3dd946,_0x302e9a),_0x3a430b['writer']['removeClass']('ck-suggestion-marker--active',_0x302e9a),_0x3a430b['writer']['removeAttribute']('data-suggestion',_0x302e9a),_0x3a430b['mapper']['unbindElementFromMarkerName'](_0x302e9a,_0x5604dd['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x285359=this['editor'],_0x45b6ca=_0x285359['locale'];function _0x397789(_0x57d4ae){return{'type':'format','content':o(_0x45b6ca,'*Format:*\x20%0',_0x57d4ae)};}_0x285359['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5419dd=>{if('formatBlock'!=_0x5419dd['type'])return;const {data:_0x389905}=_0x5419dd;if(_0x389905){if('setTableRowHeader'==_0x389905['commandName']){const _0x14c6aa=_0x389905['commandParams'][0x0]['forceValue'];return _0x397789(o(_0x45b6ca,_0x14c6aa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x389905['commandName']){const _0x29ddb3=_0x389905['commandParams'][0x0]['forceValue'];return _0x397789(o(_0x45b6ca,_0x29ddb3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x65b49=>[_0x65b49,null]));class Nt extends _0x52e26d{static get['requires'](){return[vt];}['afterInit'](){const _0x3a3a06=this['editor'];if(!_0x3a3a06['plugins']['has']('TableClipboard'))return;const _0x2666d4=_0x3a3a06['plugins']['get']('TrackChangesEditing'),_0xcb710f=_0x3a3a06['plugins']['get']('TableUtils'),_0x412ed7=_0x3a3a06['plugins']['get'](vt),_0x2c0edc=_0x3a3a06['plugins']['get']('TableClipboard');_0x412ed7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a3a06['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a3a06['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a836f=null;_0x3a3a06['model']['on']('insertContent',(_0x4129ac,_0x1418dd)=>{const [_0xdb3bae,_0x206672]=_0x1418dd,_0x57f2ad=_0x1418dd[_0x1418dd['length']-0x1];_0x57f2ad&&_0x57f2ad['forceDefaultExecution']||_0x2666d4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x231177,_0x41906f,_0x32bbae,_0x1d15f7,_0x29a4ab){if(_0x41906f&&!_0x41906f['is']('documentSelection'))return!0x1;const _0x4f01e7=_0x29a4ab['getTableIfOnlyTableInContent'](_0x231177,_0x32bbae);if(!_0x4f01e7||!Ae(_0x4f01e7,void 0x0,_0x1d15f7))return!0x1;const _0x21a7a9=_0x1d15f7['getSelectionAffectedTableCells'](_0x32bbae['document']['selection']);if(!_0x21a7a9['length'])return!0x1;const _0x99761e=_0x21a7a9[0x0]['findAncestor']('table'),_0x121aa4=_0x1d15f7['getRowIndexes'](_0x21a7a9),_0x7970e8=_0x1d15f7['getColumnIndexes'](_0x21a7a9),_0xd74550={'startRow':_0x121aa4['first'],'endRow':_0x121aa4['last'],'startColumn':_0x7970e8['first'],'endColumn':_0x7970e8['last']};return 0x1==_0x21a7a9['length']&&(_0xd74550['endRow']+=_0x1d15f7['getRows'](_0x4f01e7)-0x1,_0xd74550['endColumn']+=_0x1d15f7['getColumns'](_0x4f01e7)-0x1),Ae(_0x99761e,_0xd74550,_0x1d15f7);}(_0xdb3bae,_0x206672,_0x3a3a06['model'],_0xcb710f,_0x2c0edc)&&(_0x4129ac['stop'](),_0x3a836f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a3a06['model']['change'](()=>{_0x3a3a06['model']['insertContent'](_0x1418dd[0x0],_0x1418dd[0x1],_0x1418dd[0x2],{'forceDefaultExecution':!0x0});const _0x3b2877=_0x38bf2c(),{rowInsertionRanges:_0x46a63,columnInsertionRanges:_0x3b7a09,insertionRanges:_0x475060,deletionRanges:_0xfe8e6,cells:_0x3711d8}=_0x3a836f;_0x46a63['length']&&_0x2666d4['markMultiRangeInsertion'](_0x46a63,'tablePasteRow',{'tablePasteChainId':_0x3b2877}),_0x3b7a09['length']&&_0x2666d4['markMultiRangeInsertion'](_0x3b7a09,'tablePasteColumn',{'tablePasteChainId':_0x3b2877}),_0x475060['length']&&(_0x2666d4['markMultiRangeInsertion'](_0x475060,'tablePaste',{'tablePasteChainId':_0x3b2877,'skipNestingCheck':!0x0}),_0x475060['forEach'](_0x55c633=>_0x55c633['detach']?.())),_0xfe8e6['length']&&(_0x2666d4['markMultiRangeDeletion'](_0xfe8e6,'tablePaste',{'tablePasteChainId':_0x3b2877,'skipNestingCheck':!0x0}),_0xfe8e6['forEach'](_0x583ed9=>_0x583ed9['detach']?.()));const _0x27be94=_0x2666d4['markMultiRangeBlockFormat'](_0x3711d8['map'](({element:_0x349e01})=>_0x349e01),{'formatGroupId':_0x38bf2c()},[],'tablePasteCell',{'tablePasteChainId':_0x3b2877});if(_0x27be94){const _0x501599=_0x27be94['getMarkers'](),_0x263277=[];for(const {element:_0x1ce0a4,attributes:_0x173dd}of _0x3711d8){if(!_0x173dd)continue;const _0x1d02e1=_0x3a3a06['model']['createRangeOn'](_0x1ce0a4),_0x349c34=_0x501599['find'](_0x4e49e7=>_0x4e49e7['getRange']()['isEqual'](_0x1d02e1));_0x349c34&&_0x263277['push']([_0x349c34['name'],_0x173dd]);}_0x263277['length']&&_0x27be94['setAttribute']('markerAttributes',Object['fromEntries'](_0x263277));}_0x3a836f=null;}));},{'priority':_0x4a9384['high']+0xa}),_0x3a3a06['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a5db3,_0x2dcde9)=>{const [_0x32cbfe,_0x527d95,,_0x47a4cf]=_0x2dcde9;if(!_0x3a836f)return;_0x2a5db3['stop']();const _0x30444c=_0x32cbfe['cell'],_0x130862=_0x527d95,_0x3dc4d8=je(_0x30444c),_0x297b17=je(_0x130862);_0x2a5db3['return']=_0x30444c;let _0x32cf44=null,_0x536488=null;if(_0x297b17||_0x3dc4d8){if(_0x3dc4d8&&!_0x297b17){_0x47a4cf['remove'](_0x30444c['getChild'](0x0));for(const _0x340bee of Array['from'](_0x130862['getChildren']()))_0x47a4cf['insert'](_0x340bee,_0x30444c,'end');const _0x4a6ea4=_0x3a836f['rowInsertionIndexes']['includes'](_0x32cbfe['row']),_0x292cbd=_0x3a836f['columnInsertionIndexes']['includes'](_0x32cbfe['column']);_0x4a6ea4||_0x292cbd||(_0x32cf44=_0x5a7b90['fromRange'](_0x47a4cf['createRangeIn'](_0x30444c)));}else _0x297b17&&!_0x3dc4d8&&(_0x536488=_0x47a4cf['createRangeIn'](_0x30444c));}else{const _0x50b95b=_0x47a4cf['createElement']('tableCellSuggestion'),_0x43dcd1=_0x47a4cf['createElement']('tableCellSuggestion');_0x47a4cf['wrap'](_0x47a4cf['createRangeIn'](_0x30444c),_0x43dcd1),_0x47a4cf['insert'](_0x50b95b,_0x30444c,0x0);for(const _0x576b59 of Array['from'](_0x130862['getChildren']()))_0x47a4cf['insert'](_0x576b59,_0x50b95b,'end');_0x32cf44=_0x5a7b90['fromRange'](_0x47a4cf['createRangeOn'](_0x50b95b)),_0x536488=_0x5a7b90['fromRange'](_0x47a4cf['createRangeOn'](_0x43dcd1));}const _0x51c532=Array['from'](_0x130862['getAttributes']())['filter'](([_0x53769a])=>we['includes'](_0x53769a));_0x3a836f['cells']['push']({'element':_0x30444c,'attributes':_0x51c532['length']?Object['fromEntries'](_0x51c532):null}),_0x32cf44&&_0x3a836f['insertionRanges']['push'](_0x32cf44),_0x536488&&_0x3a836f['deletionRanges']['push'](_0x536488);},{'priority':'high'}),_0xcb710f['on']('insertColumns',(_0x20cffb,_0x4c7b47)=>{const [_0x445868,_0x9bed78={}]=_0x4c7b47;if(!_0x3a836f)return;const _0x15a6ef=_0x9bed78['at']||0x0,_0x3209cd=_0x9bed78['columns']||0x1;_0x3a836f['columnInsertionIndexes']=new Array(_0x3209cd)['fill'](_0x15a6ef)['map']((_0x3bee9c,_0x3067be)=>_0x3bee9c+_0x3067be);for(const {cell:_0x254961}of _0xcb710f['createTableWalker'](_0x445868,{'startColumn':_0x15a6ef,'endColumn':_0x15a6ef+_0x3209cd-0x1}))_0x3a836f['columnInsertionRanges']['push'](_0x3a3a06['model']['createRangeOn'](_0x254961));},{'priority':'low'}),_0xcb710f['on']('insertRows',(_0x44227d,_0x19a1a8)=>{const [_0x43f22e,_0x48d909={}]=_0x19a1a8;if(!_0x3a836f)return;const _0x203b0f=_0x48d909['at']||0x0,_0x7a187d=_0x48d909['rows']||0x1;_0x3a836f['rowInsertionIndexes']=new Array(_0x7a187d)['fill'](_0x203b0f)['map']((_0xb0f733,_0x468672)=>_0xb0f733+_0x468672);for(const {cell:_0x216cdc}of _0xcb710f['createTableWalker'](_0x43f22e,{'startRow':_0x203b0f,'endRow':_0x203b0f+_0x7a187d-0x1}))_0x3a836f['rowInsertionRanges']['push'](_0x3a3a06['model']['createRangeOn'](_0x216cdc));},{'priority':'low'}),_0x2666d4['descriptionFactory']['registerDescriptionCallback'](_0x2ad41c=>{if(_0x2ad41c['subType']&&_0x2ad41c['subType']['startsWith']('tablePaste'))return _0x2ad41c['previous']?{}:{'type':'insertion','content':o(_0x3a3a06['locale'],'*Replace\x20table\x20cells*')};});const _0x5d4854=()=>!0x1;for(const _0x59b895 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2666d4['_suggestionFactory']['registerCustomCallback']('insertion',_0x59b895,'join',_0x5d4854),_0x2666d4['_suggestionFactory']['registerCustomCallback']('deletion',_0x59b895,'join',_0x5d4854),_0x2666d4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59b895,'join',_0x5d4854);_0x2666d4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d4854),_0x2666d4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4c63e9,_0x51f1b4,_0x2b5371)=>{const _0x362f33=_0x4c63e9['map'](_0x443054=>_0x443054['getContainedElement']())['filter'](_0x3c100e=>_0x3c100e),_0x304f74=new Map(_0x362f33['map'](_0x23e80d=>[_0x23e80d,null]));if(_0x3a836f){for(const {element:_0x18f92d,attributes:_0x3144c2}of _0x3a836f['cells'])_0x3144c2&&_0x304f74['set'](_0x18f92d,_0x3144c2);}else{if(_0x2b5371&&_0x2b5371['markerAttributes'])for(const [_0xc9f9eb,_0x56c001]of Object['entries'](_0x2b5371['markerAttributes'])){const _0x2b83fe=_0x3a3a06['model']['markers']['get'](_0xc9f9eb),_0x34c7e6=_0x2b83fe?_0x2b83fe['getRange']()['getContainedElement']():null;_0x34c7e6&&_0x304f74['set'](_0x34c7e6,_0x56c001);}}_0x3a3a06['model']['change'](_0x56bac3=>{for(const [_0x28f050,_0x39cba7]of _0x304f74)_0x56bac3['setAttributes']({...ve,..._0x39cba7},_0x28f050);});});const _0x970c83=(_0x2b6cae,_0x5eec02)=>{_0x2666d4['_suggestionFactory']['registerCustomCallback'](_0x2b6cae,'tablePaste',_0x5eec02,(_0x27737f,_0x30c2c6,_0x424e59)=>{_0x3a3a06['model']['change'](_0x25eb6d=>{const _0x505438=[];for(const _0x3c7322 of _0x27737f){const _0x2f60fa=_0x3c7322['start']['nodeAfter'];_0x2f60fa['is']('element','tableCellSuggestion')&&_0x505438['push'](_0x2f60fa);}_0x2666d4['_suggestionFactory']['getSuggestionCallback'](_0x2b6cae,null,_0x5eec02)(_0x27737f,_0x30c2c6,_0x424e59);for(const _0x3e5a80 of _0x505438)'$graveyard'!=_0x3e5a80['root']['rootName']&&_0x25eb6d['unwrap'](_0x3e5a80);});});};_0x970c83('insertion','accept'),_0x970c83('insertion','discard'),_0x970c83('deletion','accept'),_0x970c83('deletion','discard'),_0x2666d4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xb9f92b=>{const _0x2cc868=_0xb9f92b['map'](_0x14dbfe=>_0x14dbfe['getContainedElement']()),_0x15dd92=_0x2cc868[0x0]['findAncestor']('table'),{minRow:_0x2471a7,maxRow:_0x52eb8f}=_0x412ed7['_getCoordsForCells'](_0x2cc868);_0xcb710f['removeRows'](_0x15dd92,{'at':_0x2471a7,'rows':_0x52eb8f-_0x2471a7+0x1});}),_0x2666d4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x122f59=>{const _0x44e349=_0x122f59['map'](_0xd05a83=>_0xd05a83['getContainedElement']()),_0x18f01b=_0x44e349[0x0]['findAncestor']('table'),{minColumn:_0x28e23e,maxColumn:_0x3c876b}=_0x412ed7['_getCoordsForCells'](_0x44e349);_0xcb710f['removeColumns'](_0x18f01b,{'at':_0x28e23e,'columns':_0x3c876b-_0x28e23e+0x1});});const _0x7fa5e5=(_0x490b08,_0x5d78b3)=>{if(!_0x5d78b3['subType']||!_0x5d78b3['subType']['startsWith']('tablePaste'))return;const _0x287420=_0x5d78b3['attributes']['tablePasteChainId'],_0x506d5b=_0x2666d4['getSuggestions']()['filter'](_0x442f0f=>_0x442f0f['isInContent']&&_0x442f0f['attributes']&&_0x442f0f['attributes']['tablePasteChainId']==_0x287420);_0x506d5b['length']&&_0x5d78b3['getAllAdjacentSuggestions']()['length']!=_0x506d5b['length']&&_0x506d5b['reduce']((_0x162b56,_0x5777a2)=>(_0x162b56['next']=_0x5777a2,_0x5777a2['previous']=_0x162b56,_0x5777a2));};function _0x2df003(_0x3f315f,_0x2fe625=!0x0){const {id:_0xc93fa2,authorId:_0x193dfc}=_0x2666d4['_splitMarkerName'](_0x3f315f['markerName']),_0x5526d7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3745d6=_0x2666d4['activeMarkers']['includes'](_0x3f315f['markerName']);return _0x3745d6&&_0x5526d7['push']('ck-suggestion-marker--active'),{'classes':_0x5526d7,'attributes':{'data-suggestion':_0xc93fa2,'data-author-id':_0x193dfc},'priority':_0x3745d6&&_0x2fe625?0xbc2:0xbb8};}_0x2666d4['on']('suggestionLoaded',_0x7fa5e5,{'priority':'high'}),_0x2666d4['on']('suggestionUnloaded',_0x7fa5e5,{'priority':'high'}),_0x3a3a06['model']['document']['registerPostFixer'](()=>{let _0x2fe798=!0x1;const _0x483d94=Array['from'](_0x3a3a06['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30f621,data:_0x3707ff}of _0x483d94){const {group:_0x3861ec,type:_0x2a5e52,id:_0x34887b}=_0x2666d4['_splitMarkerName'](_0x30f621);if('suggestion'!=_0x3861ec||'deletion'!=_0x2a5e52||_0x3707ff['oldRange'])continue;if(!_0x2666d4['hasSuggestion'](_0x34887b))continue;const _0x1bb571=_0x2666d4['getSuggestion'](_0x34887b)['getRanges'](),_0x482226=_0x3a3a06['plugins']['get']('Users')['me'];for(const _0x19457f of _0x2666d4['getSuggestions']()){if(!_0x19457f['isInContent']||_0x19457f['author']!=_0x482226)continue;if('formatBlock'!=_0x19457f['type']||'tablePasteCell'!=_0x19457f['subType'])continue;if(_0x19457f['getRanges']()['every'](_0x38f7f8=>_0x1bb571['some'](_0x274c88=>_0x274c88['containsRange'](_0x38f7f8,!0x0)))){for(const _0x51cd19 of _0x19457f['getAllAdjacentSuggestions']())_0x51cd19['isInContent']&&(_0x51cd19['discard'](),_0x2fe798=!0x0);}}}return _0x2fe798;}),_0x3a3a06['model']['document']['registerPostFixer'](_0x1ded1b=>{const _0x857f12=_0x3a3a06['commands']['get']('redo');if(!_0x857f12||!_0x857f12['_createdBatches']['has'](_0x1ded1b['batch']))return!0x1;let _0x40b502=!0x1;const _0x76222f=_0x3a3a06['plugins']['get']('Users')['me'],_0x52b4c2=_0x3a3a06['model']['document']['differ']['getChanges'](),_0x242d29=Array['from'](_0x3a3a06['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4b1e22,data:_0x20b6bb})=>{const {group:_0x5ae1c6,subType:_0x41e64c,authorId:_0x2577bb}=_0x2666d4['_splitMarkerName'](_0x4b1e22);return'suggestion'==_0x5ae1c6&&'tablePaste'==_0x41e64c&&_0x2577bb==_0x76222f['id']&&!_0x20b6bb['oldRange'];});for(const _0x5ae7e7 of _0x52b4c2){if('insert'!=_0x5ae7e7['type']||'tableCellSuggestion'!=_0x5ae7e7['name']||0x1!=_0x5ae7e7['length'])continue;const _0x7abd7f=_0x1ded1b['createRange'](_0x5ae7e7['position'],_0x5ae7e7['position']['getShiftedBy'](0x1));if(!_0x242d29['find'](({data:_0x36faa8})=>_0x36faa8['newRange']['isEqual'](_0x7abd7f))){for(const {name:_0x71d335,data:_0x345d9c}of _0x242d29)if(_0x7abd7f['containsRange'](_0x345d9c['newRange'])){_0x1ded1b['updateMarker'](_0x71d335,{'range':_0x7abd7f}),_0x40b502=!0x0;break;}}}return _0x40b502;}),_0x3a3a06['model']['document']['registerPostFixer'](_0x385ee7=>{let _0x30f1fa=!0x1;const _0x54f305=_0x3a3a06['plugins']['get']('Users')['me'],_0x1aa69e=_0x2666d4['getSuggestions']()['filter'](_0x43c497=>_0x43c497['isInContent']&&_0x43c497['author']==_0x54f305),_0x589ca0=new Set(),_0x5380b5=new Set();for(const _0x1ece01 of _0x1aa69e)if('tablePaste'==_0x1ece01['subType'])for(const _0x4745cd of _0x1ece01['getMarkers']()){const _0x4385c6=_0x4745cd['getRange']()['getContainedElement']();if(_0x4385c6){if(_0x4385c6['is']('element','tableCellSuggestion')&&je(_0x4385c6)){_0x1ece01['removeMarker'](_0x4745cd['name']),_0x589ca0['add'](_0x4385c6),_0x30f1fa=!0x0;const _0x3ba8d3=_0x4385c6['nextSibling'],_0x596090=_0x4385c6['previousSibling'],_0x54d4c7=_0x3ba8d3&&_0x3ba8d3['is']('element','tableCellSuggestion'),_0x4c034a=_0x596090&&_0x596090['is']('element','tableCellSuggestion');_0x54d4c7&&!_0x589ca0['has'](_0x3ba8d3)&&_0x5380b5['add'](_0x3ba8d3),_0x4c034a&&!_0x589ca0['has'](_0x596090)&&_0x5380b5['add'](_0x596090);}else _0x4385c6['is']('element','paragraph')&&_0x4385c6['isEmpty']&&(_0x1ece01['removeMarker'](_0x4745cd['name']),_0x30f1fa=!0x0);}}else{if('tablePasteCell'==_0x1ece01['subType']){if(!_0x1ece01['attributes']||!_0x1ece01['attributes']['tablePasteChainId'])continue;const _0x199aa6=_0x1ece01['attributes']['markerAttributes'];if(_0x199aa6&&Object['keys'](_0x199aa6)['length'])continue;const _0x2bfcff=_0x1ece01['attributes']['tablePasteChainId'];let _0x425805=!0x0,_0x1e2ca1=!0x0;for(const _0x35e624 of _0x1aa69e)if(_0x35e624['subType']&&_0x35e624['subType']['startsWith']('tablePaste')){if(!_0x35e624['attributes']['tablePasteChainId']){_0x1e2ca1=!0x1;break;}if(_0x35e624['id']!=_0x1ece01['id']&&_0x35e624['attributes']['tablePasteChainId']==_0x2bfcff){_0x425805=!0x1;break;}}_0x1e2ca1&&_0x425805&&(_0x1ece01['removeMarkers'](),_0x30f1fa=!0x0);}}for(const _0x1e5237 of _0x589ca0)_0x385ee7['remove'](_0x1e5237);for(const _0x4cb2ea of _0x5380b5)_0x385ee7['unwrap'](_0x4cb2ea);return _0x30f1fa;}),_0x3a3a06['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2c2e2f=>_0x2df003(_0x2c2e2f),'converterPriority':'high'}),_0x3a3a06['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5ab329,_0x5181b8)=>_0x5181b8['options']['showSuggestionHighlights']?_0x2df003(_0x5ab329,!0x1):null,'converterPriority':'high'});const _0x1cb5b2=_0x3a3a06['editing']['view'];this['listenTo'](_0x1cb5b2['document'],'clipboardOutput',(_0x35d641,_0xed3de8)=>{const _0x5b5792=[];for(const _0x52441c of _0x1cb5b2['createRangeIn'](_0xed3de8['content'])['getItems']())_0x52441c['is']('element','suggestion-td')&&_0x5b5792['push'](_0x52441c);_0x1cb5b2['change'](_0x586f35=>{for(const _0x2fa6c of _0x5b5792)_0x586f35['move'](_0x586f35['createRangeIn'](_0x2fa6c),_0x586f35['createPositionBefore'](_0x2fa6c)),_0x586f35['remove'](_0x2fa6c);});});}}function je(_0xc9e406){if(_0xc9e406['isEmpty'])return!0x0;const _0xfdbbb1=_0xc9e406['getChild'](0x0);return _0xfdbbb1['is']('element','paragraph')&&_0xfdbbb1['isEmpty'];}function Ae(_0x46de38,_0x3e5fa3={},_0x4c9937){for(const {isAnchor:_0x20d05c,cellHeight:_0x346d04,cellWidth:_0x4e321c}of _0x4c9937['createTableWalker'](_0x46de38,{'includeAllSlots':!0x0,..._0x3e5fa3}))if(!_0x20d05c||0x1!=_0x346d04||0x1!=_0x4e321c)return!0x1;return!0x0;}class Dt extends _0x52e26d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x495d02=this['editor']['plugins']['get']('TrackChangesEditing');_0x495d02['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x495d02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x495d02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x495d02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x495d02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x495d02['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x308448,_0xd9188f){const _0x3d24d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x414d6d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2187b8=_0xd9188f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58f563=_0x414d6d['getColumnGroupElement'](_0x2187b8);let _0x55ea03=_0x58f563?_0x414d6d['getTableColumnsWidths'](_0x58f563):null,_0x45ae44=_0x2187b8['getAttribute']('tableWidth')||null;const _0x4351c1=_0xd9188f['tableWidth']||_0x45ae44,_0xe523bc=_0xd9188f['columnWidths']||_0x55ea03,_0x2c4117=this['editor']['plugins']['get']('Users')['me'];for(const _0x193b86 of _0x3d24d2['getSuggestions']()){const _0x1027aa=_0x193b86['getContainedElement']();if('resizeTable'===_0x193b86['subType']&&_0x1027aa===_0x2187b8){_0x193b86['author']!==_0x2c4117&&_0x193b86['discard']();const _0x1ecc53=_0x193b86['data']['commandParams'];_0x45ae44=_0x1ecc53[0x0]['tableWidth'],_0x55ea03=_0x1ecc53[0x0]['columnWidths'];break;}}_0x308448({'table':_0x2187b8,'tableWidth':_0x4351c1,'columnWidths':_0xe523bc}),_0x3d24d2['markBlockFormat'](_0x2187b8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x45ae44,'columnWidths':_0x55ea03}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e12cf){if('formatBlock'!=_0x4e12cf['type']&&'formatInline'!=_0x4e12cf['type'])return;const {data:_0x17e470}=_0x4e12cf;if(_0x17e470&&'resizeTable'===_0x17e470['formatGroupId']){const _0x1f5775='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f5775)};}}}class Mt extends _0x52e26d{['afterInit'](){const _0x168cac=this['editor'];_0x168cac['plugins']['has']('Template')&&_0x168cac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x52e26d{['afterInit'](){const _0x4dc867=this['editor'];if(!_0x4dc867['commands']['get']('insertTableOfContents'))return;_0x4dc867['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x8fc360=_0x4dc867['plugins']['get']('TrackChangesEditing'),_0xb07182=_0x4dc867['locale'];_0x8fc360['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4bed61=>o(_0xb07182,'ELEMENT_TABLE_OF_CONTENTS',_0x4bed61));}}class Bt extends _0x52e26d{['afterInit'](){const _0x123504=this['editor'];if(!_0x123504['plugins']['has']('Title'))return;const _0x47b5fa=_0x123504['plugins']['get']('TrackChangesEditing');_0x47b5fa['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x123504['locale'],'ELEMENT_TITLE')),_0x123504['model']['document']['registerPostFixer'](_0x5914b9=>{let _0x996f4d=!0x1;const _0x4be6b5=Array['from'](_0x123504['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22c267,data:_0xb3e0b0}of _0x4be6b5){const {group:_0x1039c3}=_0x47b5fa['_splitMarkerName'](_0x22c267);if('suggestion'!==_0x1039c3||!_0xb3e0b0['newRange'])continue;const _0x480266=_0xb3e0b0['newRange'],_0x3834a9=_0x480266['end']['nodeBefore'];if(!_0x3834a9||!_0x3834a9['is']('element','title-content'))continue;if(!_0x480266['start']['isTouching'](_0x480266['end']))continue;const _0x550109=_0x123504['model']['schema']['getNearestSelectionRange'](_0x480266['end'],'forward');if(_0x550109&&_0x550109['isCollapsed']){const _0x51c8c5=_0x5914b9['createRange'](_0x480266['start'],_0x550109['start']);_0x51c8c5['isEqual'](_0x480266)||(_0x5914b9['updateMarker'](_0x22c267,{'range':_0x51c8c5}),_0x996f4d=!0x0);}_0x996f4d||(_0x5914b9['removeMarker'](_0x22c267),_0x996f4d=!0x0);}return _0x996f4d;});}}class Ot extends _0x52e26d{['afterInit'](){const _0x4f99e7=this['editor'],_0x1461d2=_0x4f99e7['plugins']['get']('TrackChangesEditing');_0x4f99e7['plugins']['has']('UndoEditing')&&(_0x1461d2['enableCommand']('undo'),_0x1461d2['enableCommand']('redo'));}}class Rt extends _0x52e26d{static get['requires'](){return[vt];}['afterInit'](){const _0x5aca5a=this['editor'];if(!_0x5aca5a['plugins']['has']('TableCaptionEditing'))return;_0x5aca5a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x52e26d{['tableProperties'];['tableCellProperties'];constructor(_0x190bfe){super(_0x190bfe),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 _0x12027a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3da84a of this['tableProperties'])_0x12027a['enableCommand'](_0x3da84a,(_0x793eb,_0x8dfb81)=>{const _0x3b2640=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3da84a,[_0x3b2640],this['tableProperties'],'tableProperties',_0x793eb,_0x8dfb81);});_0x12027a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x12027a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12027a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26832a,_0x289f78)=>this['handleDiscardAction'](this['tableProperties'],_0x26832a,_0x289f78)),_0x12027a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x17bb16 of this['tableCellProperties'])_0x12027a['enableCommand'](_0x17bb16,(_0x245d17,_0x3f788a)=>{const _0x3d803b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x17bb16,_0x3d803b,this['tableCellProperties'],'tableCellProperties',_0x245d17,_0x3f788a);});_0x12027a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x12027a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12027a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x26c0da,_0x3cbeaa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x26c0da,_0x3cbeaa)),_0x12027a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x12027a['descriptionFactory']['registerDescriptionCallback'](_0x54af28=>this['handleSuggestionDescription'](_0x54af28));}['_handlePropertyChange'](_0x4090ee,_0x3db740,_0x57c107,_0x5e8096,_0x223b75,_0x3fa736){const _0x3d7562=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3fa736['batch'],()=>{for(const _0x269aec of _0x3db740){if(this['_getSuggestion'](_0x269aec,_0x5e8096))_0x223b75(_0x3fa736);else{const _0x4d068a={};for(const _0x269024 of _0x57c107){const _0x57adbe=_0x269aec['getAttribute'](_0x269024);void 0x0!==_0x57adbe&&(_0x4d068a[_0x269024]=_0x57adbe);}_0x223b75(_0x3fa736),_0x3d7562['markBlockFormat'](_0x269aec,{'commandParams':[_0x4d068a]},[],_0x5e8096);}}});}['handleDiscardAction'](_0x2f478a,_0x4e1ed7,_0x4af64b){const _0x2cfa15=_0x4e1ed7[0x0]['start']['nodeAfter'],_0x3e530c=_0x4af64b['commandParams'][0x0];this['editor']['model']['change'](_0x3465da=>{for(const _0x4e15ee of _0x2f478a)void 0x0!==_0x3e530c[_0x4e15ee]?_0x3465da['setAttribute'](_0x4e15ee,_0x3e530c[_0x4e15ee],_0x2cfa15):_0x3465da['removeAttribute'](_0x4e15ee,_0x2cfa15);});}['handleSuggestionDescription'](_0x532c08){if(_0x532c08['data'])switch(_0x532c08['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'](_0x2d5a32,_0x35f615){const _0x5d87bd=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x487cf9 of _0x5d87bd['getSuggestions']({'skipNotAttached':!0x0})){const _0x273a79=_0x487cf9['getContainedElement']();if(_0x487cf9['subType']===_0x35f615&&_0x273a79===_0x2d5a32)return _0x487cf9;}return null;}}const m='$elementName';class p extends _0x52e26d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3883fc,_0x30ea16,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bea34){super(_0x3bea34),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2694d9,_0x4175df,_0x1a16e5,_0xce4ee5)=>{this['_model']['change'](()=>{for(const _0x1d8ba0 of[..._0xce4ee5,..._0x1a16e5])this['_model']['markers']['has'](_0x1d8ba0)&&_0x3bea34['editing']['reconvertMarker'](_0x1d8ba0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3bea34['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(),_0x3bea34['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3bea34['config']['get']('trackChanges.trackFormatChanges'),_0x3bea34['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3bea34['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3bea34,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5d2747=this['editor'],_0x2569f2=(_0x421de2,_0x103acc)=>{if('attribute'!=_0x421de2)return'ck-suggestion-marker-'+_0x421de2;const _0x508fa6=_0x103acc['split']('|')[0x0];return this['_isBlockAttribute'](_0x508fa6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5d2747['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x126e6d=>{const {id:_0x47fe14,authorId:_0x15f857,type:_0x26be87,subType:_0x333184}=this['_splitMarkerName'](_0x126e6d['markerName']),_0x417871=['ck-suggestion-marker',_0x2569f2(_0x26be87,_0x333184)];let _0x353ad9=0xbb8;return this['activeMarkers']['includes'](_0x126e6d['markerName'])&&(_0x417871['push']('ck-suggestion-marker--active'),_0x353ad9=0xbc2),'deletion'==_0x26be87&&(_0x353ad9+=0x5),{'classes':_0x417871,'attributes':{'data-suggestion':_0x47fe14,'data-author-id':_0x15f857},'priority':_0x353ad9};}}),_0x5d2747['conversion']['for']('dataDowncast')['add'](_0x47a82=>{_0x47a82['on']('addMarker:suggestion',(_0xc487bf,_0x1be815,_0x419585)=>{if(!_0x419585['options']['showSuggestionHighlights'])return;const _0x55a91d=_0x1be815['item'];if(!_0x55a91d)return;const _0x4fd41a=_0x419585['mapper']['toViewElement'](_0x55a91d);_0x5d2747['model']['schema']['isObject'](_0x55a91d)&&_0x4fd41a&&!_0x4fd41a['getCustomProperty']('widget')&&_0x4fd41a['is']('containerElement')&&_0x5ab63a(_0x4fd41a,_0x419585['writer']);},{'priority':'high'});}),_0x5d2747['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x24b322,_0x95a1a)=>{if(!_0x95a1a['options']['showSuggestionHighlights'])return null;const {type:_0x5dc2b,subType:_0x2a1f68}=this['_splitMarkerName'](_0x24b322['markerName']);return{'classes':['ck-suggestion-marker',_0x2569f2(_0x5dc2b,_0x2a1f68)],'priority':0xbb8};}});const _0x39f10c=({showActiveMarkers:_0x2a6746=!0x0,isAttributeSuggestion:_0x46f216=!0x1}={})=>(_0x5b7088,_0x2974cd,_0x54e7bc)=>{if(!_0x2974cd['item'])return;const {id:_0x564605,authorId:_0x30f793}=this['_splitMarkerName'](_0x2974cd['markerName']);if(_0x46f216){const _0x428589=this['_suggestions']['get'](_0x564605),_0x2e02c1=this['_getAttributeKey'](_0x428589);if(!this['_isBlockAttribute'](_0x2e02c1))return;}if(_0x2974cd['item']['is']('selection'))return void _0x54e7bc['consumable']['consume'](_0x2974cd['item'],_0x5b7088['name']);const _0x122cb2=_0x54e7bc['mapper']['toViewElement'](_0x2974cd['item']);if(_0x2974cd['item']['is']('element')&&_0x5d2747['model']['schema']['isBlock'](_0x2974cd['item'])&&!_0x122cb2['getCustomProperty']('addHighlight')){_0x54e7bc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x122cb2),_0x54e7bc['writer']['setAttribute']('data-suggestion',_0x564605,_0x122cb2),_0x54e7bc['writer']['setAttribute']('data-author-id',_0x30f793,_0x122cb2),_0x54e7bc['mapper']['bindElementToMarker'](_0x122cb2,_0x2974cd['markerName']),_0x2a6746&&(this['activeMarkers']['includes'](_0x2974cd['markerName'])?_0x54e7bc['writer']['addClass']('ck-suggestion-marker--active',_0x122cb2):_0x54e7bc['writer']['removeClass']('ck-suggestion-marker--active',_0x122cb2));for(const _0x3c4282 of _0x5d2747['model']['createRangeIn'](_0x2974cd['item'])['getItems']())_0x54e7bc['consumable']['consume'](_0x3c4282,_0x5b7088['name']);_0x54e7bc['consumable']['consume'](_0x2974cd['item'],_0x5b7088['name']);}};_0x5d2747['conversion']['for']('dataDowncast')['add'](_0x5e0aa3=>{_0x5e0aa3['on']('addMarker:suggestion:formatBlock',(_0x19766c,_0x1ff581,_0x1b946b)=>{_0x1b946b['options']['showSuggestionHighlights']&&_0x39f10c({'showActiveMarkers':!0x1})(_0x19766c,_0x1ff581,_0x1b946b);},{'priority':'highest'});}),_0x5d2747['conversion']['for']('dataDowncast')['add'](_0xd3b847=>{_0xd3b847['on']('addMarker:suggestion:attribute',(_0x543510,_0x201568,_0x5e056d)=>{_0x5e056d['options']['showSuggestionHighlights']&&_0x39f10c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x543510,_0x201568,_0x5e056d);},{'priority':'highest'});}),_0x5d2747['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x667305,_0xe16fa3)=>_0xe16fa3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x667305['substr'](0xb)}}),_0x5d2747['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x43de7b,{writer:_0x424bf0})=>{let _0x142fff='suggestion:'+_0x43de7b['getAttribute']('suggestion-type')+':'+_0x43de7b['getAttribute']('id');return _0x43de7b['getAttribute']('marker-count')&&(_0x142fff+=':'+_0x43de7b['getAttribute']('marker-count')),_0x424bf0['createElement']('$marker',{'data-name':_0x142fff});}}),_0x5d2747['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5d2747['conversion']['for']('editingDowncast')['add'](_0x335d0d=>{_0x335d0d['on']('addMarker:suggestion:formatBlock',_0x39f10c(),{'priority':'high'});}),_0x5d2747['conversion']['for']('editingDowncast')['add'](_0x1eac22=>{_0x1eac22['on']('addMarker:suggestion:attribute',_0x39f10c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5d2747['conversion']['for']('editingDowncast')['add'](_0x586a0d=>{_0x586a0d['on']('removeMarker:suggestion:formatBlock',(_0x49beaf,_0x1edf74,_0xb37259)=>{const _0x3d4be5=_0xb37259['mapper']['markerNameToElements'](_0x1edf74['markerName']);if(_0x3d4be5){for(const _0x9ac13e of _0x3d4be5)_0x9ac13e['getCustomProperty']('addHighlight')||(_0xb37259['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9ac13e),_0xb37259['writer']['removeAttribute']('data-suggestion',_0x9ac13e),_0xb37259['writer']['removeAttribute']('data-author-id',_0x9ac13e),_0xb37259['mapper']['unbindElementFromMarkerName'](_0x9ac13e,_0x1edf74['markerName']));}},{'priority':'high'});}),_0x5d2747['conversion']['for']('editingDowncast')['add'](_0x417493=>{_0x417493['on']('removeMarker:suggestion:attribute',(_0x477a9f,_0x4c70f0,_0x19b686)=>{const _0x473acf=_0x19b686['mapper']['markerNameToElements'](_0x4c70f0['markerName']);if(!_0x473acf)return;const {id:_0x56f634}=this['_splitMarkerName'](_0x4c70f0['markerName']),_0x52119d=this['_suggestions']['get'](_0x56f634),_0x1204d5=this['_getAttributeKey'](_0x52119d);if(this['_isBlockAttribute'](_0x1204d5)){for(const _0xd59dd4 of _0x473acf)_0xd59dd4['getCustomProperty']('addHighlight')||(_0x19b686['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd59dd4),_0x19b686['writer']['removeAttribute']('data-suggestion',_0xd59dd4),_0x19b686['writer']['removeAttribute']('data-author-id',_0xd59dd4),_0x19b686['mapper']['unbindElementFromMarkerName'](_0xd59dd4,_0x4c70f0['markerName']));}},{'priority':'high'});}),_0x5d2747['model']['document']['registerPostFixer'](_0x3cc153=>{let _0x43c581=!0x1;const _0x1d2036=Array['from'](_0x5d2747['model']['document']['differ']['getChangedMarkers']()),_0x40ffd1=new Set();for(const {name:_0xc2f718,data:_0x5091b0}of _0x1d2036){const {group:_0x5a14a7,type:_0x3bcea4,subType:_0x109cda,id:_0x50596b}=this['_splitMarkerName'](_0xc2f718);if('suggestion'!==_0x5a14a7)continue;const _0x1e4354=this['_suggestions']['get'](_0x50596b);if(null!=_0x5091b0['newRange']){'formatInline'==_0x3bcea4&&(_0x43c581=_0x43c581||Pt(_0x5091b0['newRange'],_0xc2f718,_0x3cc153,_0x5d2747['model']['schema']));const _0x2ec1a8='attribute'==_0x3bcea4&&this['_isBlockAttribute'](_0x109cda['split']('|')[0x0]);if(_0x5091b0['newRange']['isCollapsed']||'$graveyard'==_0x5091b0['newRange']['root']['rootName']||'formatBlock'==_0x3bcea4&&!Ft(_0x5091b0['newRange'])||_0x2ec1a8&&!Ft(_0x5091b0['newRange'])||'deletion'==_0x3bcea4&&!(!Vt(_0x3e8671=_0x5091b0['newRange'])&&!function(_0x3c14d3){return _0x3c14d3['start']['parent']==_0x3c14d3['end']['nodeBefore']&&_0x3c14d3['start']['isAtEnd'];}(_0x3e8671)))_0x3cc153['removeMarker'](_0xc2f718),_0x43c581=!0x0;else{if(!_0x1e4354||!_0x1e4354['isInContent'])continue;if(_0x5091b0['newRange']&&_0x5091b0['oldRange']&&_0x5091b0['newRange']['isEqual'](_0x5091b0['oldRange']))continue;_0x40ffd1['add'](_0x1e4354);}}}var _0x3e8671;return _0x40ffd1['size']>0x0&&(_0x43c581=!!this['_joinWithAdjacentSuggestions'](_0x40ffd1)||_0x43c581),_0x43c581;}),_0x5d2747['model']['document']['registerPostFixer'](_0x15f73e=>{let _0x1da47b=!0x1;for(const _0x1ae87e of _0x5d2747['model']['document']['differ']['getChanges']())if('insert'==_0x1ae87e['type'])for(const _0x51727c of this['_suggestions']['values']()){if(_0x51727c['isMultiRange']||!_0x51727c['isInContent'])continue;const _0x220d44='formatBlock'==_0x51727c['type'],_0x2aea5b=this['_getAttributeKey'](_0x51727c),_0xe6251e=_0x2aea5b&&this['_isBlockAttribute'](_0x2aea5b);if(!_0x220d44&&!_0xe6251e)continue;const _0x5b8c4c=_0x51727c['getFirstRange']();if(_0x5b8c4c['start']['parent']!=_0x5b8c4c['end']['parent']&&!_0x5b8c4c['end']['isAtEnd']){const _0x1b12f5=_0x5d2747['model']['createPositionAt'](_0x5b8c4c['start']['nodeAfter'],'end'),_0x19bc9a=_0x5d2747['model']['createRange'](_0x5b8c4c['start'],_0x1b12f5);_0x15f73e['updateMarker'](_0x51727c['getFirstMarker'](),{'range':_0x19bc9a}),_0x1da47b=!0x0;}}return _0x1da47b;}),_0x5d2747['model']['document']['registerPostFixer'](_0x42567c=>this['_processAttributeChanges'](_0x42567c)),_0x5d2747['model']['document']['registerPostFixer'](_0x4ef442=>!_0x4ef442['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4ef442)),_0x5d2747['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5d2747['model']['document']['on']('change:data',(_0x591a3a,_0x1075e6)=>{if(!_0x1075e6['isLocal']||_0x1075e6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x165d49=_0x5d2747['model']['document']['differ']['getChanges']();if(0x0==_0x165d49['length'])return;const _0x2cd8c3=[],_0x28d43e=_0x165d49['filter'](_0x15e9d0=>'attribute'==_0x15e9d0['type']),_0x47405f=_0x165d49['filter'](_0x37879e=>'insert'==_0x37879e['type']&&'$text'!=_0x37879e['name']);for(const _0x21ef55 of _0x28d43e)this['_isRegisteredAttribute'](_0x21ef55['attributeKey'])&&_0x2cd8c3['push']({'key':_0x21ef55['attributeKey'],'newValue':_0x21ef55['attributeNewValue'],'oldValue':_0x21ef55['attributeOldValue'],'range':Lt(_0x21ef55['range'],_0x5d2747['model'])});for(const _0x3a191b of _0x47405f){if('rename'!=_0x3a191b['action']&&'refresh'!=_0x3a191b['action'])continue;const _0x50b0bf=Jt(_0x3a191b['position']['nodeAfter'],_0x5d2747['model']),_0x457d9f=_0x3a191b['before'];'rename'==_0x3a191b['action']&&_0x2cd8c3['push']({'key':m,'newValue':_0x3a191b['name'],'oldValue':_0x457d9f['name'],'range':_0x50b0bf});for(const [_0x3418e1,_0x5ef7be]of _0x457d9f['attributes']){if(!this['_isRegisteredAttribute'](_0x3418e1))continue;const _0x43332c=_0x3a191b['attributes']['get'](_0x3418e1);_0x5ef7be!==_0x43332c&&_0x2cd8c3['push']({'key':_0x3418e1,'newValue':_0x43332c,'oldValue':_0x5ef7be,'range':_0x50b0bf});}for(const [_0x11bc5a,_0x44373b]of _0x3a191b['attributes'])this['_isRegisteredAttribute'](_0x11bc5a)&&(_0x457d9f['attributes']['has'](_0x11bc5a)||_0x2cd8c3['push']({'key':_0x11bc5a,'newValue':_0x44373b,'oldValue':null,'range':_0x50b0bf}));}0x0!=_0x2cd8c3['length']&&_0x5d2747['model']['enqueueChange'](_0x1075e6,_0x37ea9c=>{const _0x1c41ea=_0x38bf2c();for(const {range:_0x2ea442,key:_0x5b807f,oldValue:_0xd84138,newValue:_0x874eb0}of _0x2cd8c3)this['markAttributeChange'](_0x2ea442,_0x5b807f,_0xd84138,_0x874eb0,{'groupId':_0x1c41ea});this['_reduceExistingSuggestions'](_0x37ea9c,_0x2cd8c3);});},{'priority':'lowest'}),_0x5d2747['model']['markers']['on']('update:suggestion',(_0x3afef0,_0x539867,_0x58ad39)=>{if(null==_0x58ad39){const {id:_0x136be2}=this['_splitMarkerName'](_0x539867['name']),_0xc94de8=this['_suggestions']['get'](_0x136be2);_0xc94de8&&_0xc94de8['addMarkerName'](_0x539867['name']);}}),_0x5d2747['model']['document']['on']('change:data',()=>{const _0x4c03db=Array['from'](_0x5d2747['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4dd234=>'suggestion'===this['_splitMarkerName'](_0x4dd234['name'])['group']);if(0x0===_0x4c03db['length'])return;_0x4c03db['sort']((_0x398b36,_0x33f530)=>{const _0x51652c=_0x398b36['data']['oldRange'],_0x508929=_0x33f530['data']['oldRange'];return null===_0x51652c&&null===_0x508929?0x0:null===_0x51652c&&null!==_0x508929?-0x1:null!==_0x51652c&&null===_0x508929?0x1:_0x51652c['start']['isBefore'](_0x508929['start'])?-0x1:0x1;});const _0x16bf33=new Set(),_0x2accd4=new Set();for(const {name:_0x1b07c4,data:_0x5888fa}of _0x4c03db){const {id:_0x4fe60c}=this['_splitMarkerName'](_0x1b07c4);if(null===_0x5888fa['oldRange']){const _0x509270=this['_handleNewSuggestionMarker'](_0x1b07c4);_0x2accd4['add'](_0x509270);}else{const _0x1f5781=this['_suggestions']['get'](_0x4fe60c);null!==_0x5888fa['newRange']||_0x1f5781['isInContent']?(_0x16bf33['add'](_0x1f5781['head']),_0x2accd4['add'](_0x1f5781)):this['_removeSuggestion'](_0x1f5781);}}_0x2accd4['size']>0x0&&this['_refreshSuggestionsChain'](_0x2accd4);for(const _0x1af885 of _0x16bf33)this['fire']('suggestionChanged',_0x1af885);}),_0x5d2747['model']['on']('applyOperation',(_0x5d9f4f,_0x948772)=>{const _0x4958ee=_0x948772[0x0];if(!this['_suggestions']['size'])return;if(!_0x4958ee['isDocumentOperation'])return;if(_0x4958ee['batch']['isUndo']||!_0x4958ee['batch']['isLocal'])return;let _0x5a0870,_0x1db3ba;switch(_0x4958ee['type']){case'insert':_0x5a0870=_0x5d2747['model']['createPositionAt'](_0x4958ee['position']),_0x1db3ba=_0x5a0870['getShiftedBy'](_0x4958ee['howMany']);break;case'split':_0x5a0870=_0x5d2747['model']['createPositionAt'](_0x4958ee['splitPosition']),_0x1db3ba=_0x5d2747['model']['createPositionAt'](_0x4958ee['moveTargetPosition']);break;case'move':_0x5a0870=_0x5d2747['model']['createPositionAt'](_0x4958ee['targetPosition']),_0x1db3ba=_0x5a0870['getShiftedBy'](_0x4958ee['howMany']);break;default:return;}const _0x1dff47=_0x5d2747['model']['createRange'](_0x5a0870,_0x1db3ba);_0x5d2747['model']['change'](()=>{for(const {suggestion:_0x4e2ad5,meta:_0x4ff45d}of this['_findSuggestions'](_0x1dff47)){if(_0x4e2ad5['isMultiRange'])continue;if('formatInline'==_0x4e2ad5['type'])continue;const _0x3f0f42=this['_getAttributeKey'](_0x4e2ad5);if(_0x3f0f42&&this['_isBlockAttribute'](_0x3f0f42)&&'split'!=_0x4958ee['type'])continue;const _0xfb2586=_0x4e2ad5['data']&&_0x4e2ad5['data']['multipleBlocks'];('formatBlock'!=_0x4e2ad5['type']||'split'==_0x4958ee['type']&&!_0xfb2586)&&(_0x4ff45d['containsRangeInObject']||'insertion'==_0x4e2ad5['type']&&_0x4ff45d['isOwn']||_0x4e2ad5['getFirstRange']()['containsRange'](_0x1dff47)&&this['_breakSuggestionMarker'](_0x4e2ad5,_0x5a0870,_0x1db3ba));}});},{'priority':'lowest'}),_0x5d2747['model']['on']('deleteContent',(_0xb5d6ee,_0x19ed18)=>{const _0x258bd6=_0x19ed18[0x0],_0x1a73b0=_0x19ed18[0x1];if(_0x1a73b0&&_0x1a73b0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x258bd6['isCollapsed'])return;const _0x1d9799=_0x5d2747['model']['schema'],{start:_0x54e566,end:_0x348a56}=_0x258bd6['getFirstRange'](),_0x2c49b9=_0x54e566['nodeAfter']&&_0x1d9799['isLimit'](_0x54e566['nodeAfter'])?null:_0x1d9799['getNearestSelectionRange'](_0x54e566,'forward'),_0x3c38be=_0x348a56['nodeBefore']&&_0x1d9799['isLimit'](_0x348a56['nodeBefore'])?null:_0x1d9799['getNearestSelectionRange'](_0x348a56,'backward'),_0x3948f3=_0x5d2747['model']['createRange'](_0x2c49b9?_0x2c49b9['start']:_0x54e566,_0x3c38be?_0x3c38be['end']:_0x348a56);_0x5d2747['model']['change'](_0x5d4837=>{this['markDeletion'](_0x3948f3);const _0x1990bd=_0x5d2747['model']['schema']['getNearestSelectionRange'](_0x3948f3['start']);_0x258bd6['is']('documentSelection')?_0x5d4837['setSelection'](_0x1990bd):_0x258bd6['setTo'](_0x1990bd);}),_0xb5d6ee['stop']();},{'priority':_0x4a9384['normal']+0xa}),_0x5d2747['model']['on']('insertContent',(_0x3a17a5,_0x3738d4)=>{const _0xe4454e=_0x3738d4[_0x3738d4['length']-0x1];_0xe4454e&&_0xe4454e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5d2747['model']['change'](()=>{let _0x2bd30a=_0x5d2747['model']['insertContent'](_0x3738d4[0x0],_0x3738d4[0x1],_0x3738d4[0x2],{'forceDefaultExecution':!0x0});if(!_0x2bd30a)return;_0x3a17a5['return']=_0x2bd30a['clone']();const _0x838a7d=_0x2bd30a['end']['nodeBefore'],_0x365709=_0x5d2747['model']['schema'];_0x838a7d&&_0x365709['isBlock'](_0x838a7d)&&!_0x365709['isObject'](_0x838a7d)&&(_0x2bd30a=_0x5d2747['model']['createRange'](_0x2bd30a['start'],_0x5d2747['model']['createPositionAt'](_0x838a7d,'end'))),this['markInsertion'](_0x2bd30a);}),_0x3a17a5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x18453d=new O(_0x5d2747,this['_suggestions']);_0x5d2747['commands']['add']('acceptSuggestion',_0x18453d),this['enableCommand']('acceptSuggestion');const _0x568405=new R(_0x5d2747,this['_suggestions']);_0x5d2747['commands']['add']('discardSuggestion',_0x568405),this['enableCommand']('discardSuggestion'),_0x5d2747['commands']['add']('acceptAllSuggestions',new x(_0x5d2747,_0x18453d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5d2747['commands']['add']('discardAllSuggestions',new x(_0x5d2747,_0x568405,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5d2747['commands']['add']('acceptSelectedSuggestions',new E(_0x5d2747,_0x18453d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5d2747['commands']['add']('discardSelectedSuggestions',new E(_0x5d2747,_0x568405,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x304dda=_0x5d2747['plugins']['get']('CommentsRepository');this['listenTo'](_0x304dda,'addComment',(_0x3173ae,{threadId:_0x3d73d9})=>{const _0x50e543=this['_suggestions']['get'](_0x3d73d9);_0x50e543&&_0x50e543['commentThread']&&0x1===_0x50e543['commentThread']['length']&&this['_updateSuggestionData'](_0x3d73d9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x304dda,'removeComment',(_0x561b2d,{threadId:_0x2044b3})=>{const _0x5a418e=this['_suggestions']['get'](_0x2044b3);_0x5a418e&&_0x5a418e['commentThread']&&!_0x5a418e['commentThread']['length']&&this['_updateSuggestionData'](_0x2044b3,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4accbb){const _0x384816=_0x53e5c7([0x46,0x70,0x4a,0x66,0x6e,0x4b,0x34,0x64,0x56,0x77,0x59,0x51,0x4d,0x62,0x48,0x4f,0x4e,0x6a,0x75,0x52,0x79,0x73,0x67,0x6b,0x42,0x47,0x68,0x44,0x36,0x50,0x6c,0x69,0x7a,0x65,0x39,0x43,0x5a,0x37,0x6d,0x57,0x55,0x49,0x6f,0x63,0x31,0x61,0x53,0x78,0x30,0x76,0x74,0x38,0x71,0x4c,0x33,0x45,0x54,0x32,0x72,0x58,0x35,0x41]),_0x2de20b=0x4330cf7,_0x172bf8=0x434547f^_0x2de20b,_0x102ca9=window[_0x53e5c7([0x44,0x61,0x74,0x65])][_0x53e5c7([0x6e,0x6f,0x77])](),_0x2b3d76=_0x4accbb[_0x53e5c7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x327dda=new window[(_0x53e5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xed8e4e=>{_0x2b3d76[_0x53e5c7([0x6f,0x6e,0x63,0x65])](_0x53e5c7([0x72,0x65,0x61,0x64,0x79]),_0xed8e4e);}),_0x30729f={[_0x53e5c7([0x6b,0x74,0x79])]:_0x53e5c7([0x45,0x43]),[_0x53e5c7([0x75,0x73,0x65])]:_0x53e5c7([0x73,0x69,0x67]),[_0x53e5c7([0x63,0x72,0x76])]:_0x53e5c7([0x50,0x2d,0x32,0x35,0x36]),[_0x53e5c7([0x78])]:_0x53e5c7([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]),[_0x53e5c7([0x79])]:_0x53e5c7([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]),[_0x53e5c7([0x61,0x6c,0x67])]:_0x53e5c7([0x45,0x53,0x32,0x35,0x36])},_0x113557=_0x2b3d76[_0x53e5c7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53e5c7([0x67,0x65,0x74])](_0x53e5c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc76cf3(){let _0xa3c6f0,_0xd027c6=null,_0x2d3d55=null;try{if(_0x113557==_0x53e5c7([0x47,0x50,0x4c]))return _0x53e5c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa3c6f0=_0xf0a259(),!_0xa3c6f0)return _0x53e5c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa3c6f0[_0x53e5c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d3d55=_0x5a7c1d(_0xa3c6f0[_0x53e5c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa3c6f0[_0x53e5c7([0x6a,0x74,0x69])])),await _0x4a3fac()?_0x5212f8()?_0x317dd8()?_0x53e5c7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xac4746()?(_0xa3c6f0[_0x53e5c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e5c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd027c6=_0x434a05(_0x53e5c7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3c6f0[_0x53e5c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e5c7([0x74,0x72,0x69,0x61,0x6c])&&(_0xd027c6=_0x434a05(_0x53e5c7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3c6f0[_0x53e5c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e5c7([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xd027c6=_0x434a05(_0x53e5c7([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45d497()):_0x53e5c7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53e5c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53e5c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57019b){return _0x53e5c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x317dd8(){const _0x42f2e5=[_0x53e5c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53e5c7([0x74,0x72,0x69,0x61,0x6c])][_0x53e5c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3c6f0[_0x53e5c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102ca9/0x3e8:0xe10*_0x172bf8;return _0xa3c6f0[_0x53e5c7([0x65,0x78,0x70])]<_0x42f2e5;}function _0x5212f8(){const _0x4683a4=_0xa3c6f0[_0x53e5c7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4683a4)return!0x1;if(_0x4683a4[_0x53e5c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e5c7([0x2a])))return!0x0;if(_0x4683a4[_0x53e5c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e5c7([0x54,0x43])))return!0x0;if(_0x4683a4[_0x53e5c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e5c7([0x52,0x54,0x43]))){if(_0x4007c2())return!0x0;if(_0x164a33()||_0x380174())return!0x0;}return!0x1;}function _0xac4746(){const _0x119d89=_0xa3c6f0[_0x53e5c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x119d89||0x0==_0x119d89[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e7319}=new URL(window[_0x53e5c7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x119d89[_0x53e5c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7319))return!0x0;const _0x75f5c9=_0x5e7319[_0x53e5c7([0x73,0x70,0x6c,0x69,0x74])](_0x53e5c7([0x2e]));return _0x119d89[_0x53e5c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f3fc9=>_0x4f3fc9[_0x53e5c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e5c7([0x2a])))[_0x53e5c7([0x6d,0x61,0x70])](_0x5ea1b3=>_0x5ea1b3[_0x53e5c7([0x73,0x70,0x6c,0x69,0x74])](_0x53e5c7([0x2e])))[_0x53e5c7([0x73,0x6f,0x6d,0x65])](_0x582a5a=>_0x75f5c9[_0x53e5c7([0x65,0x76,0x65,0x72,0x79])]((_0x2ba4cc,_0x3f9fe2)=>_0x582a5a[_0x3f9fe2]===_0x2ba4cc||_0x582a5a[_0x3f9fe2]===_0x53e5c7([0x2a])));}function _0x45d497(){return _0xd027c6&&_0x2d3d55?new window[(_0x53e5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdab0d9,_0x53f19c)=>{_0xd027c6[_0x53e5c7([0x74,0x68,0x65,0x6e])](_0xdab0d9,_0x53f19c),_0x2d3d55[_0x53e5c7([0x74,0x68,0x65,0x6e])](_0x3f3861=>{_0x3f3861!=_0x53e5c7([0x56,0x61,0x6c,0x69,0x64])&&_0xdab0d9(_0x3f3861);},_0x53f19c);}):_0xd027c6||_0x2d3d55||_0x53e5c7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a7c1d(_0x56b30e,_0x34c83d){return new window[(_0x53e5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c86a8=>{if(_0x5cbed0())return _0x3c86a8(_0x53e5c7([0x56,0x61,0x6c,0x69,0x64]));_0x4932a3(),_0x2b3d76[_0x53e5c7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53e5c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a5a08=!0x1;const _0x43e0da=_0x38bf2c();function _0x5a1e3c(_0x37c721){return!!_0x37c721&&(typeof _0x37c721===_0x53e5c7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37c721===_0x53e5c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37c721[_0x53e5c7([0x74,0x68,0x65,0x6e])]===_0x53e5c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37c721[_0x53e5c7([0x63,0x61,0x74,0x63,0x68])]===_0x53e5c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x144a4b(_0x49045c){_0x583de3(_0x49045c)[_0x53e5c7([0x74,0x68,0x65,0x6e])](_0x5c1a10=>{if(!_0x5c1a10||_0x5c1a10[_0x53e5c7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53e5c7([0x6f,0x6b]))return _0x53e5c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1690bf(_0x3a95c5(_0x43e0da+_0x34c83d))!=_0x5c1a10[_0x53e5c7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53e5c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53e5c7([0x56,0x61,0x6c,0x69,0x64]);})[_0x53e5c7([0x74,0x68,0x65,0x6e])](_0x5bc388=>(_0x1f9277(),_0x5bc388),()=>{const _0x3b594a=_0x167b66();return null==_0x3b594a?(_0x1f9277(),_0x53e5c7([0x56,0x61,0x6c,0x69,0x64])):_0x53e5c7(_0x102ca9-_0x3b594a>(0x203f88f7^_0x2de20b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53e5c7([0x74,0x68,0x65,0x6e])](_0x3c86a8)[_0x53e5c7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c86a8(_0x53e5c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d357e=0x405e277^_0x2de20b;function _0x1f9277(){const _0x47b3e5=_0x53e5c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1690bf(_0x3a95c5(_0x56b30e)),_0x669786=_0x1ad08f(_0x1690bf(window[_0x53e5c7([0x4d,0x61,0x74,0x68])][_0x53e5c7([0x63,0x65,0x69,0x6c])](_0x102ca9/_0x4d357e)));window[_0x53e5c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e5c7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47b3e5,_0x669786);}function _0x167b66(){const _0x1613ce=_0x53e5c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1690bf(_0x3a95c5(_0x56b30e)),_0x288d0f=window[_0x53e5c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e5c7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1613ce);return _0x288d0f?window[_0x53e5c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad08f(_0x288d0f),0x10)*_0x4d357e:null;}function _0x583de3(_0xc508b){return new window[(_0x53e5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58e0c8,_0x4ee32f)=>{_0xc508b[_0x53e5c7([0x74,0x68,0x65,0x6e])](_0x58e0c8,_0x4ee32f),window[_0x53e5c7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ee32f,0x432d837^_0x2de20b);});}}_0x2b3d76[_0x53e5c7([0x6f,0x6e])](_0x53e5c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32ad4d,_0x4a68f1)=>{if(_0x4a68f1[0x0]!=_0x56b30e)return _0x3c86a8(_0x53e5c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a68f1[0x1]={..._0x4a68f1[0x1],[_0x53e5c7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43e0da};},{[_0x53e5c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e5c7([0x68,0x69,0x67,0x68])}),_0x2b3d76[_0x53e5c7([0x6f,0x6e])](_0x53e5c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x509b1b=>{_0x5a1e3c(_0x509b1b[_0x53e5c7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a5a08=!0x0,_0x144a4b(_0x509b1b[_0x53e5c7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53e5c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e5c7([0x6c,0x6f,0x77])}),_0x327dda[_0x53e5c7([0x74,0x68,0x65,0x6e])](()=>{_0x1a5a08||_0x3c86a8(_0x53e5c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cbed0(){return _0x2b3d76[_0x53e5c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e5c7([0x76,0x69,0x65,0x77])][_0x53e5c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53e5c7([0x61,0x75,0x74,0x6f]);}function _0x4932a3(){_0x2b3d76[_0x53e5c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e5c7([0x76,0x69,0x65,0x77])][_0x53e5c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53e5c7([0x61,0x75,0x74,0x6f]);}}function _0x434a05(_0x30c61b){const _0x327a0e=[new window[(_0x53e5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ec7db=>setTimeout(_0x4ec7db,0x43a323b^_0x2de20b)),_0x327dda[_0x53e5c7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53e5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc87772=>{let _0x5dbe86=0x0;_0x2b3d76[_0x53e5c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e5c7([0x6f,0x6e])](_0x53e5c7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x298586,_0x4905bb)=>{_0x4905bb[0x0][_0x53e5c7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dbe86++,_0x5dbe86==(0x4330d0f^_0x2de20b)&&(_0xc87772(),_0x298586[_0x53e5c7([0x6f,0x66,0x66])]());});}))];return window[_0x53e5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53e5c7([0x72,0x61,0x63,0x65])](_0x327a0e)[_0x53e5c7([0x74,0x68,0x65,0x6e])](()=>_0x30c61b);}async function _0x28d786(){await _0x327dda,_0x2b3d76[_0x53e5c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e5c7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1da42b,_0x2b3d76[_0x53e5c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e5c7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1da42b,_0x2b3d76[_0x53e5c7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53e5c7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4007c2(){return _0x21e37b(_0x53e5c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x459460(_0x53e5c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x53e5c7([0x73,0x74,0x61,0x74,0x65])]==_0x53e5c7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x164a33(){return _0x21e37b(_0x53e5c7([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 _0x380174(){return _0x21e37b(_0x53e5c7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x59af3f(_0x2099f6){const _0x5ec60a=_0x13bccd();_0x2b3d76[_0x5ec60a]=_0x53e5c7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2099f6,_0x2099f6!=_0x53e5c7([0x56,0x61,0x6c,0x69,0x64])&&_0x28d786();}function _0x13bccd(){const _0x4491aa=window[_0x53e5c7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53e5c7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53e5c7([0x6e,0x6f,0x77])]())[_0x53e5c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53e5c7([0x2e]),'');let _0x58144e=_0x53e5c7([0x46]);for(let _0x4a53f7=0x0;_0x4a53f7<_0x4491aa[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a53f7+=0x2){let _0x348a6f=window[_0x53e5c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4491aa[_0x53e5c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a53f7,_0x4a53f7+0x2));_0x348a6f>=_0x384816[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x348a6f-=_0x384816[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58144e+=_0x384816[_0x348a6f];}return _0x58144e;}function _0xf0a259(){const _0x20a836=_0x113557[_0x53e5c7([0x73,0x70,0x6c,0x69,0x74])](_0x53e5c7([0x2e]));if(0x3!=_0x20a836[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x139c33(_0x20a836[0x1]);function _0x139c33(_0xf940ac){const _0x254dd4=_0x16e74e(_0xf940ac);return _0x254dd4&&_0x259a3f()?_0x254dd4:null;function _0x259a3f(){const _0x3daede=_0x254dd4[_0x53e5c7([0x6a,0x74,0x69])],_0x15b630=window[_0x53e5c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3daede[_0x53e5c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3daede[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1463cb={..._0x254dd4,[_0x53e5c7([0x6a,0x74,0x69])]:_0x3daede[_0x53e5c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3daede[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1463cb[_0x53e5c7([0x76,0x63])],_0x3a95c5(_0x1463cb)==_0x15b630;}}}async function _0x4a3fac(){let _0x2dddc1=!0x0;try{const _0x515c32=_0x113557[_0x53e5c7([0x73,0x70,0x6c,0x69,0x74])](_0x53e5c7([0x2e])),[_0x234860,_0x3652c1,_0x217d38]=_0x515c32;return _0x2b764c(_0x234860),await _0x5703ba(_0x234860,_0x3652c1,_0x217d38),_0x2dddc1;}catch(_0x1f21d9){return!0x1;}function _0x2b764c(_0x4ddd32){const _0x30a1b4=_0x16e74e(_0x4ddd32);_0x30a1b4&&_0x30a1b4[_0x53e5c7([0x61,0x6c,0x67])]==_0x53e5c7([0x45,0x53,0x32,0x35,0x36])||(_0x2dddc1=!0x1);}async function _0x5703ba(_0x25bb48,_0x4299cd,_0x22feec){const _0x209e43=window[_0x53e5c7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53e5c7([0x66,0x72,0x6f,0x6d])](_0x198bfa(_0x22feec),_0x5890d8=>_0x5890d8[_0x53e5c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d833f=new window[(_0x53e5c7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53e5c7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25bb48+_0x53e5c7([0x2e])+_0x4299cd),_0x4a0c94=window[_0x53e5c7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53e5c7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a0c94)return;const _0x1af886=await _0x4a0c94[_0x53e5c7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53e5c7([0x6a,0x77,0x6b]),_0x30729f,{[_0x53e5c7([0x6e,0x61,0x6d,0x65])]:_0x53e5c7([0x45,0x43,0x44,0x53,0x41]),[_0x53e5c7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53e5c7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53e5c7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a0c94[_0x53e5c7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53e5c7([0x6e,0x61,0x6d,0x65])]:_0x53e5c7([0x45,0x43,0x44,0x53,0x41]),[_0x53e5c7([0x68,0x61,0x73,0x68])]:{[_0x53e5c7([0x6e,0x61,0x6d,0x65])]:_0x53e5c7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1af886,_0x209e43,_0x1d833f)||(_0x2dddc1=!0x1);}}function _0x16e74e(_0x4923df){return _0x4923df[_0x53e5c7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53e5c7([0x65,0x79]))?JSON[_0x53e5c7([0x70,0x61,0x72,0x73,0x65])](_0x198bfa(_0x4923df)):null;}function _0x198bfa(_0xaf8b2d){return window[_0x53e5c7([0x61,0x74,0x6f,0x62])](_0xaf8b2d[_0x53e5c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53e5c7([0x2b]))[_0x53e5c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53e5c7([0x2f])));}function _0x3a95c5(_0x333149){let _0x472e1d=0x1505;function _0x3629c6(_0x306d5b){for(let _0x554c7c=0x0;_0x554c7c<_0x306d5b[_0x53e5c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x554c7c++){const _0x1563b6=_0x306d5b[_0x53e5c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x554c7c);_0x472e1d=(_0x472e1d<<0x5)+_0x472e1d+_0x1563b6,_0x472e1d&=_0x472e1d;}}function _0x2e06f6(_0x32f4ed){Array[_0x53e5c7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32f4ed)?_0x32f4ed[_0x53e5c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e06f6):_0x32f4ed&&typeof _0x32f4ed==_0x53e5c7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53e5c7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32f4ed)[_0x53e5c7([0x73,0x6f,0x72,0x74])]()[_0x53e5c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59fc41,_0x650067])=>{_0x3629c6(_0x59fc41),_0x2e06f6(_0x650067);}):_0x3629c6(window[_0x53e5c7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32f4ed));}return _0x2e06f6(_0x333149),_0x472e1d>>>0x0;}function _0x1690bf(_0x1add57){return _0x1add57[_0x53e5c7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53e5c7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53e5c7([0x30]));}function _0x1ad08f(_0x91f6b2){return _0x91f6b2[_0x53e5c7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53e5c7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53e5c7([0x6a,0x6f,0x69,0x6e])]('');}function _0x21e37b(_0x2d015d){return _0x2b3d76[_0x53e5c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x53e5c7([0x68,0x61,0x73])](_0x2d015d);}function _0x459460(_0x358f97){return _0x2b3d76[_0x53e5c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x53e5c7([0x67,0x65,0x74])](_0x358f97);}function _0x1da42b(){}function _0x53e5c7(_0x51c7a3){return _0x51c7a3['map'](_0x10b42a=>String['fromCharCode'](_0x10b42a))['join']('');}_0x59af3f(await _0xc76cf3());}(this);}set['adapter'](_0x46b015){if(this['_adapter'])throw new _0x452bbc('track-changes-adapter-already-set',this);this['_adapter']=_0x46b015;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4cd50b=!0x1,toJSON:_0x49c1da=!0x1}={}){const _0x9e2b9b=[];for(const _0x54d82a of this['_suggestions']['values']())_0x4cd50b&&!_0x54d82a['isInContent']||_0x9e2b9b['push'](_0x54d82a);return _0x49c1da?_0x9e2b9b['map'](_0x55b9dd=>_0x55b9dd['toJSON']()):_0x9e2b9b;}['getSuggestion'](_0x511b94){const _0x2a90ca=this['_suggestions']['get'](_0x511b94);if(!_0x2a90ca)throw new _0x452bbc('track-changes-suggestion-not-found',this);return _0x2a90ca;}['hasSuggestion'](_0x138eda){return this['_suggestions']['has'](_0x138eda);}['addSuggestionData'](_0x2e8c31){const {authorId:_0x5f218d,id:_0x1748b5,attributes:_0x20d84f}=_0x2e8c31,[_0x486a9d,_0x3fab1f]=_0x2e8c31['type']['split'](':'),_0x49b7ae=this['_suggestions']['get'](_0x1748b5)||this['_createSuggestion'](_0x486a9d,_0x3fab1f,_0x1748b5,_0x5f218d,_0x20d84f);if(this['_addThreadToSuggestion'](_0x49b7ae),this['_checkSuggestionCorrectness'](_0x49b7ae,_0x486a9d,_0x3fab1f||null,_0x5f218d),_0x49b7ae['createdAt']=_0x2e8c31['createdAt'],_0x49b7ae['_isDataLoaded']=!0x0,_0x20d84f&&_0x20d84f['@external']){const _0x3a9ab2=_0x20d84f['@external'],_0x3a1a67=this['_getExternalAuthor'](_0x3a9ab2['authorName']);_0x49b7ae['authoredAt']=_0x3a9ab2['createdAt'],_0x49b7ae['author']=_0x3a1a67,_0x49b7ae['isExternal']=!0x0;}else _0x49b7ae['authoredAt']=_0x2e8c31['createdAt'];switch(_0x2e8c31['data']&&(_0x49b7ae['data']=_0x2e8c31['data']),_0x2e8c31['attributes']&&(_0x49b7ae['attributes']=_0x2e8c31['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x49b7ae['_saved']=!0x0),this['_suggestionState']['get'](_0x49b7ae)){case'notReady':this['_suggestionState']['set'](_0x49b7ae,'dataReady');break;case'markerReady':_0x49b7ae['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x49b7ae])),this['_refreshSuggestionsChain'](new Set([_0x49b7ae])),this['_suggestionState']['set'](_0x49b7ae,'ready'),this['fire']('suggestionLoaded',_0x49b7ae)):this['_suggestionState']['set'](_0x49b7ae,'removed');}return _0x49b7ae;}['acceptSuggestion'](_0x7cf8cd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3795cc of _0x7cf8cd['getAllAdjacentSuggestions']())_0x3795cc['accept']();});});}['discardSuggestion'](_0x3f7284){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a74aa of _0x3f7284['getAllAdjacentSuggestions']())_0x4a74aa['discard']();});});}['enableCommand'](_0x5582e5,_0x2fd829){const _0x16ec96=this['editor']['commands']['get'](_0x5582e5);if(!_0x16ec96)throw new _0x452bbc('track-changes-command-not-found',this,{'commandName':_0x5582e5});if(this['_enabledCommands']['has'](_0x16ec96))throw new _0x452bbc('track-changes-enable-command-twice',this,{'commandName':_0x5582e5});this['_enabledCommands']['add'](_0x16ec96),_0x2fd829&&_0x16ec96['on']('execute',(_0x5d7c8d,_0x2f7461)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2f7461['length']>0x0&&_0x2f7461[_0x2f7461['length']-0x1]&&_0x2f7461[_0x2f7461['length']-0x1]['forceDefaultExecution']?_0x2f7461['pop']():(_0x5d7c8d['return']=_0x2fd829((..._0x2ca166)=>_0x16ec96['execute'](..._0x2ca166,{'forceDefaultExecution':!0x0}),..._0x2f7461),_0x5d7c8d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x379d23){let _0x2f6024,_0x263282;const _0xcf1754=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2f6024=_0x379d23();}catch(_0x588e7e){_0x263282=_0x588e7e;}return _0xcf1754||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x263282&&_0x452bbc['rethrowUnexpectedError'](_0x263282,this),_0x2f6024;}['markInsertion'](_0x4fb145,_0x49f8b3=null,_0x19dd70={}){if(_0x4fb145['isCollapsed'])return null;const _0xa88b8e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3109f2,meta:_0x57666b}of this['_findSuggestions'](_0x4fb145,'insertion'))if(_0x57666b['isOwn']){if(!_0x57666b['isNextTo']){if(_0x57666b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3109f2,_0x19dd70))continue;return _0x3109f2;}if(zt(_0x3109f2,_0x19dd70))return _0x3109f2;this['_breakSuggestionMarker'](_0x3109f2,_0x4fb145['start'],_0x4fb145['end']);break;}if(_0x49f8b3==_0x3109f2['subType']&&zt(_0x3109f2,_0x19dd70)){const _0x3739e1=_0x3109f2['getFirstRange']();return _0x3739e1['start']['isEqual'](_0x4fb145['end'])?this['_setSuggestionRange'](_0x3109f2,this['_model']['createRange'](_0x4fb145['start'],_0x3739e1['end'])):this['_setSuggestionRange'](_0x3109f2,this['_model']['createRange'](_0x3739e1['start'],_0x4fb145['end'])),_0x3109f2;}}const _0x31d27c=_0x38bf2c(),_0x21da02=_0xa88b8e['id'],_0x993ea=_0x49f8b3?'insertion:'+_0x49f8b3:'insertion',_0x163070=this['_setSuggestionData']({'id':_0x31d27c,'type':_0x993ea,'createdAt':new Date(),'authorId':_0x21da02,'attributes':_0x19dd70});return this['_addSuggestionMarker'](_0x993ea,_0x31d27c,_0x21da02,_0x4fb145),_0x163070;}['markMultiRangeInsertion'](_0x34d1fd,_0x38d4a4='multi',_0x1c359b={}){const _0x34f214=this['editor']['plugins']['get']('Users')['me'],_0x3770c7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x38d4a4,'join');for(const _0x2dd606 of this['getSuggestions']())if(_0x2dd606['author']['id']==_0x34f214['id']&&'insertion'==_0x2dd606['type']&&_0x2dd606['subType']==_0x38d4a4&&zt(_0x2dd606,_0x1c359b)&&(_0x3770c7(_0x2dd606['getRanges'](),_0x34d1fd)||_0x3770c7(_0x34d1fd,_0x2dd606['getRanges']()))){for(const _0x1a0e2f of _0x34d1fd)_0x2dd606['addRange'](_0x1a0e2f);return _0x2dd606;}for(const {suggestion:_0x21f3e2,meta:_0x239aa0}of this['_findSuggestions'](_0x34d1fd,'insertion')){if(!_0x239aa0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x239aa0['containsRangeInObject'])continue;if(!zt(_0x21f3e2,_0x1c359b))continue;let _0x4e2059=!0x0;for(const _0x2b8d2d of _0x21f3e2['getRanges']())for(const _0x2deb90 of _0x34d1fd)if(!_0x2b8d2d['containsRange'](_0x2deb90)){_0x4e2059=!0x1;break;}if(_0x4e2059)return _0x21f3e2;}const _0x18ec05=_0x38bf2c(),_0x1e4b1a=_0x34f214['id'],_0x1a714f='insertion:'+_0x38d4a4,_0x27a8b3=this['_setSuggestionData']({'id':_0x18ec05,'type':_0x1a714f,'createdAt':new Date(),'authorId':_0x1e4b1a,'attributes':_0x1c359b});for(const _0x577ad3 of _0x34d1fd)this['_addSuggestionMarker'](_0x1a714f,_0x18ec05,_0x1e4b1a,_0x577ad3,u['getMultiRangeId']());return _0x27a8b3;}['markInlineFormat'](_0x583bbb,_0x408d6a,_0x570caa=null,_0x5c9c5d={}){if(_0x570caa=_0x570caa||Gt(_0x408d6a),_0x583bbb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4c03e1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x570caa,'accept');return this['forceDefaultExecution'](()=>_0x4c03e1([_0x583bbb],_0x408d6a,_0x5c9c5d)),null;}const _0x525f2a=this['editor']['plugins']['get']('Users')['me'],_0x5d368a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3344f0,meta:_0xa35a03}of this['_findSuggestions'](_0x583bbb,'insertion'))_0xa35a03['isOwn']&&!_0xa35a03['isInsideObject']&&_0x5d368a['push'](..._0x3344f0['getRanges']());}const _0x4865ba=function(_0xde9c67,_0x458a07){const _0x4ff7ef=[];for(const _0x56be26 of _0x458a07){const _0x3cf965=_0xde9c67['getIntersection'](_0x56be26);_0x3cf965&&_0x4ff7ef['push'](_0x3cf965);}return _0x4ff7ef;}(_0x583bbb,_0x5d368a),_0x47f611=function(_0x1b4200,_0x5e1a07){const _0x1f70e6=[_0x1b4200];for(const _0x1123da of _0x5e1a07){let _0x3c98b3=0x0;for(;_0x3c98b3<_0x1f70e6['length'];){const _0x119741=_0x1f70e6[_0x3c98b3]['getDifference'](_0x1123da);_0x1f70e6['splice'](_0x3c98b3,0x1,..._0x119741),_0x3c98b3+=_0x119741['length'];}}return _0x1f70e6;}(_0x583bbb,_0x5d368a);_0x4865ba['length']&&this['_model']['change'](()=>{for(const _0x325aa6 of _0x4865ba){const _0x3bb763=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x570caa,'accept');this['forceDefaultExecution'](()=>_0x3bb763([_0x325aa6],_0x408d6a,_0x5c9c5d));}});for(const _0x5b3f64 of _0x47f611){let _0xc6ade4=null,_0x11c90b=_0x5b3f64['start'],_0x4253d9=_0x5b3f64['end'];for(const {suggestion:_0x12d0a8,meta:_0x17fdb7}of this['_findSuggestions'](_0x5b3f64,'formatInline')){if(!_0x17fdb7['isOwn'])continue;if(_0x12d0a8['subType']!=_0x570caa)continue;if(!zt(_0x12d0a8,_0x5c9c5d))continue;const _0x4fafdb=_0x12d0a8['getFirstRange']();if(_0x4fafdb['containsRange'](_0x5b3f64,!0x0))return null;_0x11c90b=_0x11c90b['isBefore'](_0x4fafdb['start'])?_0x11c90b:_0x4fafdb['start'],_0x4253d9=_0x4253d9['isAfter'](_0x4fafdb['end'])?_0x4253d9:_0x4fafdb['end'],_0xc6ade4?_0x4fafdb['start']['isBefore'](_0xc6ade4['getFirstRange']()['start'])?(_0xc6ade4['removeMarkers'](),_0xc6ade4=_0x12d0a8):_0x12d0a8['removeMarkers']():_0xc6ade4=_0x12d0a8;}const _0x2e3be9=this['_model']['createRange'](_0x11c90b,_0x4253d9);if(_0xc6ade4)this['_setSuggestionRange'](_0xc6ade4,_0x2e3be9);else{const _0x384854=_0x38bf2c(),_0x1ddb82=_0x525f2a['id'];this['_setSuggestionData']({'id':_0x384854,'type':'formatInline:'+_0x570caa,'data':_0x408d6a,'createdAt':new Date(),'authorId':_0x1ddb82,'attributes':_0x5c9c5d}),this['_addSuggestionMarker']('formatInline:'+_0x570caa,_0x384854,_0x1ddb82,_0x2e3be9);}}return null;}['markBlockFormat'](_0x14d20f,_0x58e36d,_0x5156e5=[],_0x52f723=null,_0x2f7d3a={}){_0x58e36d['formatGroupId']||(_0x58e36d['formatGroupId']=_0x58e36d['commandName']),_0x58e36d['multipleBlocks']=_0x14d20f['is']('range'),_0x52f723=_0x52f723||Gt(_0x58e36d);const _0x302a9a=_0x5156e5['map'](_0x4fb383=>Jt(_0x4fb383,this['_model'])),_0x17a599=_0x14d20f['is']('range')?_0x14d20f:Jt(_0x14d20f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1e202c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52f723,'accept');return this['forceDefaultExecution'](()=>_0x1e202c([_0x17a599],_0x58e36d,_0x2f7d3a)),null;}_0x302a9a['push'](_0x17a599);let _0x5638c4=!0x0;for(const _0x46ae12 of _0x302a9a)if(!this['_rangeIsInLocalUserInsertion'](_0x46ae12)){_0x5638c4=!0x1;break;}if(_0x5638c4&&'always'!==this['_trackFormatChanges']){const _0x185afc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52f723,'accept');return this['forceDefaultExecution'](()=>_0x185afc([_0x17a599],_0x58e36d,_0x2f7d3a)),null;}let _0x3297c7=null,_0x2629dd=_0x17a599['start'],_0x10c108=_0x17a599['end'];for(const {suggestion:_0x1fa0bb,meta:_0x434243}of this['_findSuggestions'](_0x17a599,'formatBlock')){if(!_0x434243['isOwn'])continue;if(_0x434243['isNextTo']||_0x434243['containsRangeInObject']||_0x434243['isInsideObject'])continue;if(_0x1fa0bb['data']['formatGroupId']!=_0x58e36d['formatGroupId'])continue;if(!zt(_0x1fa0bb,_0x2f7d3a))continue;const _0x15b7d9=_0x1fa0bb['getFirstRange']();if(_0x1fa0bb['subType']==_0x52f723){if(_0x15b7d9['containsRange'](_0x17a599,!0x0))return null;_0x2629dd=_0x2629dd['isBefore'](_0x15b7d9['start'])?_0x2629dd:_0x15b7d9['start'],_0x10c108=_0x10c108['isAfter'](_0x15b7d9['end'])?_0x10c108:_0x15b7d9['end'],_0x3297c7?_0x15b7d9['start']['isBefore'](_0x3297c7['getFirstRange']()['start'])?(_0x3297c7['removeMarkers'](),_0x3297c7=_0x1fa0bb):_0x1fa0bb['removeMarkers']():_0x3297c7=_0x1fa0bb;}else{const _0x50d019=_0x17a599['getIntersection'](_0x15b7d9);this['_cutOutSuggestionMarker'](_0x1fa0bb,_0x50d019);}}const _0x37d8f3=this['editor']['plugins']['get']('Users')['me'],_0x1ea2b8=_0x38bf2c(),_0x280907=_0x37d8f3['id'];if(_0x3297c7)return this['_setSuggestionRange'](_0x3297c7,this['_model']['createRange'](_0x2629dd,_0x10c108)),_0x3297c7;{const _0x25351c=this['_setSuggestionData']({'id':_0x1ea2b8,'type':'formatBlock:'+_0x52f723,'data':_0x58e36d,'createdAt':new Date(),'authorId':_0x280907,'attributes':_0x2f7d3a});return this['_addSuggestionMarker']('formatBlock:'+_0x52f723,_0x1ea2b8,_0x280907,this['_model']['createRange'](_0x2629dd,_0x10c108)),_0x25351c;}}['markMultiRangeBlockFormat'](_0x1d50e9,_0x267c2d,_0x229983=[],_0x48c55e=null,_0x1c3bc4={}){_0x267c2d['formatGroupId']||(_0x267c2d['formatGroupId']=_0x267c2d['commandName']);const _0x15a165=_0x1d50e9[0x0];_0x267c2d['multipleBlocks']=_0x15a165['is']('range'),_0x48c55e=_0x48c55e||Gt(_0x267c2d);const _0x2e191d=_0x229983['map'](_0x4e85af=>Jt(_0x4e85af,this['_model'])),_0x27cb6a=_0x15a165['is']('range')?_0x1d50e9:_0x1d50e9['map'](_0x5545d6=>Jt(_0x5545d6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x20a542=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c55e,'accept');return this['forceDefaultExecution'](()=>_0x20a542(_0x27cb6a,_0x267c2d,_0x1c3bc4)),null;}_0x2e191d['push'](..._0x27cb6a);let _0x59a93c=!0x0;for(const _0x355f7c of _0x2e191d)if(!this['_rangeIsInLocalUserInsertion'](_0x355f7c)){_0x59a93c=!0x1;break;}if(_0x59a93c&&'always'!==this['_trackFormatChanges']){const _0x501a95=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c55e,'accept');return this['forceDefaultExecution'](()=>_0x501a95(_0x27cb6a,_0x267c2d,_0x1c3bc4)),null;}const _0x4302b7=this['editor']['plugins']['get']('Users')['me'];for(const _0x561743 of this['getSuggestions']()){if(_0x561743['author']['id']!=_0x4302b7['id'])continue;if('formatBlock'!=_0x561743['type']||_0x561743['data']['formatGroupId']!=_0x267c2d['formatGroupId'])continue;if(!zt(_0x561743,_0x1c3bc4))continue;const _0x3e924c=_0x561743['subType']==_0x48c55e;for(let _0x38a7f3=0x0;_0x38a7f3<_0x27cb6a['length'];_0x38a7f3++){const _0x29d56f=_0x27cb6a[_0x38a7f3];for(const _0x3754e7 of _0x561743['getMarkers']()){const _0x1ec17d=_0x3754e7['getRange']();if(_0x29d56f['isEqual'](_0x1ec17d)){_0x3e924c?(_0x27cb6a['splice'](_0x38a7f3,0x1),_0x38a7f3--):_0x561743['removeMarker'](_0x3754e7['name']);break;}}}}if(0x0==_0x27cb6a['length'])return null;const _0x47a43b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c55e,'join');for(const _0x36dde4 of this['getSuggestions']())if(_0x36dde4['author']['id']==_0x4302b7['id']&&'formatBlock'==_0x36dde4['type']&&_0x36dde4['data']['formatGroupId']==_0x267c2d['formatGroupId']&&_0x36dde4['subType']==_0x48c55e&&zt(_0x36dde4,_0x1c3bc4)&&(_0x47a43b(_0x36dde4['getRanges'](),_0x27cb6a)||_0x47a43b(_0x27cb6a,_0x36dde4['getRanges']()))){for(const _0x51ddd2 of _0x27cb6a)_0x36dde4['addRange'](_0x51ddd2);return _0x36dde4;}const _0x3a97a4=_0x38bf2c(),_0x21974f=_0x4302b7['id'],_0x459bea='formatBlock:'+_0x48c55e,_0x256109=this['_setSuggestionData']({'id':_0x3a97a4,'type':_0x459bea,'data':_0x267c2d,'createdAt':new Date(),'authorId':_0x21974f,'attributes':_0x1c3bc4});for(const _0x36a6a7 of _0x27cb6a)this['_addSuggestionMarker'](_0x459bea,_0x3a97a4,_0x21974f,_0x36a6a7,u['getMultiRangeId']());return _0x256109;}['markDeletion'](_0x153f5a,_0x5bc823=null,_0x26ded2={}){if(_0x153f5a['isCollapsed'])return null;const _0xa66c2=this['editor']['plugins']['get']('Users')['me'],_0x44db2a=new _0x5a7b90(_0x153f5a['start'],_0x153f5a['end']);for(const {suggestion:_0x4283df,meta:_0x3ae7b4}of this['_findSuggestions'](_0x44db2a,'insertion'))if(_0x3ae7b4['isOwn']&&!_0x3ae7b4['isNextTo']){if(_0x4283df['isMultiRange']){const _0x32ec6a=_0x4283df['getRanges']()['filter'](_0x2aeb6e=>'$graveyard'!=_0x2aeb6e['root']['rootName']);_0x32ec6a['every'](_0x5455eb=>_0x44db2a['containsRange'](_0x5455eb,!0x0))&&_0x4283df['discard']();if(_0x32ec6a['some'](_0x2b8be3=>_0x2b8be3['containsRange'](_0x44db2a,!0x0))){const _0x2bd555=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bc823,'accept');return this['forceDefaultExecution'](()=>_0x2bd555([_0x44db2a],null,_0x26ded2)),null;}}else{const _0x1cb54c=_0x44db2a['getIntersection'](_0x4283df['getFirstRange']());null!==_0x1cb54c&&_0x4283df['_onDiscard']([_0x1cb54c],null,_0x26ded2);}}if(_0x44db2a['detach'](),_0x44db2a['isCollapsed']||'$graveyard'==_0x44db2a['root']['rootName'])return null;let _0x1fd5f8=null,_0x19248e=_0x44db2a['start'],_0x39445b=_0x44db2a['end'];const _0x9a3787=this['_findSuggestions'](_0x44db2a,'deletion');for(const {suggestion:_0x1e172d,meta:_0x2cc1d1}of _0x9a3787){const _0x903ccf=this['_model']['createRange'](_0x19248e,_0x39445b);if(_0x2cc1d1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2cc1d1['containsRangeInObject']&&!_0x2cc1d1['isInsideObject'])){if(_0x1e172d['isMultiRange']){if(!zt(_0x1e172d,_0x26ded2))continue;let _0x112864=!0x0;for(const _0x3c9112 of _0x1e172d['getRanges']()){if(_0x3c9112['containsRange'](_0x903ccf,!0x0))return _0x1e172d;_0x903ccf['containsRange'](_0x3c9112)||(_0x112864=!0x1);}_0x112864&&_0x1e172d['discard']();}else{const _0x40471f=_0x1e172d['getFirstRange']();if(_0x40471f['containsRange'](_0x903ccf,!0x0))return _0x1e172d;if(!zt(_0x1e172d,_0x26ded2)){_0x903ccf['containsRange'](_0x40471f)?_0x1e172d['removeMarkers']():_0x40471f['containsPosition'](_0x19248e)?_0x19248e=_0x40471f['end']:_0x40471f['containsPosition'](_0x39445b)&&(_0x39445b=_0x40471f['start']);continue;}_0x19248e=_0x19248e['isBefore'](_0x40471f['start'])?_0x19248e:_0x40471f['start'],_0x39445b=_0x39445b['isAfter'](_0x40471f['end'])?_0x39445b:_0x40471f['end'],_0x26ded2=Object['assign']({},_0x1e172d['attributes']),_0x1fd5f8?_0x40471f['start']['isBefore'](_0x1fd5f8['getFirstRange']()['start'])?(_0x1fd5f8['removeMarkers'](),_0x1fd5f8=_0x1e172d):_0x1e172d['removeMarkers']():_0x1fd5f8=_0x1e172d;}}}if(_0x1fd5f8)return this['_setSuggestionRange'](_0x1fd5f8,this['_model']['createRange'](_0x19248e,_0x39445b)),_0x1fd5f8;{const _0x13f426=_0x38bf2c(),_0x59d699=this['_model']['createRange'](_0x19248e,_0x39445b),_0x5cf5de=_0xa66c2['id'],_0x4db977=_0x5bc823?'deletion:'+_0x5bc823:'deletion',_0xfe01a3=this['_setSuggestionData']({'id':_0x13f426,'type':_0x4db977,'createdAt':new Date(),'authorId':_0x5cf5de,'attributes':_0x26ded2});return this['_addSuggestionMarker'](_0x4db977,_0x13f426,_0x5cf5de,_0x59d699),_0xfe01a3;}}['markMultiRangeDeletion'](_0x52a34c,_0xc39e2a='multi',_0xdd2faa={}){const _0x27de7b=this['editor']['plugins']['get']('Users')['me'],_0x4d13d4=_0x52a34c['map'](_0x586528=>new _0x5a7b90(_0x586528['start'],_0x586528['end'])),_0x52009f=new Set();for(const {suggestion:_0xb1488e,meta:_0x3fad1b}of this['_findSuggestions'](_0x4d13d4,'insertion'))_0x3fad1b['isOwn']&&!_0x3fad1b['isNextTo']&&_0x52009f['add'](_0xb1488e);for(const _0x1ba4dd of _0x52009f)if(_0x1ba4dd['isMultiRange']){const _0x13a8e4=_0x1ba4dd['getRanges']();(!_0x1ba4dd['attributes']||!_0x1ba4dd['attributes']['skipNestingCheck'])&&(_0x13a8e4['every'](_0x33797e=>_0x4d13d4['some'](_0x32ef40=>_0x32ef40['containsRange'](_0x33797e,!0x0)))&&_0x1ba4dd['discard']());if(_0x4d13d4['every'](_0x34c118=>_0x13a8e4['some'](_0x5449ab=>_0x5449ab['containsRange'](_0x34c118,!0x0)))){const _0x3e9160=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc39e2a,'accept');return this['forceDefaultExecution'](()=>_0x3e9160(_0x52a34c,null,_0xdd2faa)),null;}}else{const _0x23c3c0=_0x1ba4dd['getFirstRange']();_0x4d13d4['some'](_0x2b37e4=>_0x2b37e4['containsRange'](_0x23c3c0,!0x0))&&_0x1ba4dd['discard']();if(_0x4d13d4['every'](_0x3359e2=>_0x23c3c0['containsRange'](_0x3359e2,!0x0))){const _0xce617b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc39e2a,'accept');return this['forceDefaultExecution'](()=>_0xce617b(_0x4d13d4,null,_0xdd2faa)),null;}}const _0x560d0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc39e2a,'join');let _0x3307f3=null;for(const _0x4aa19c of this['getSuggestions']())if(_0x4aa19c['author']['id']==_0x27de7b['id']&&_0x4aa19c['isInContent']&&'deletion'==_0x4aa19c['type']&&_0x4aa19c['subType']==_0xc39e2a&&zt(_0x4aa19c,_0xdd2faa)&&(_0x560d0e(_0x4aa19c['getRanges'](),_0x4d13d4)||_0x560d0e(_0x4d13d4,_0x4aa19c['getRanges']()))){if(_0x3307f3){if(_0x4aa19c['commentThread']&&_0x4aa19c['commentThread']['length'])continue;for(const _0x6d205d of _0x4aa19c['getRanges']())_0x3307f3['isIntersectingWithRange'](_0x6d205d)||_0x3307f3['addRange'](_0x6d205d);_0x4aa19c['removeMarkers']();}else{_0x3307f3=_0x4aa19c;for(const _0x457c49 of _0x4d13d4)_0x4aa19c['isIntersectingWithRange'](_0x457c49)||_0x4aa19c['addRange'](_0x457c49);}}if(_0x3307f3)return _0x3307f3;_0x52009f['clear']();for(const {suggestion:_0x4e55c1,meta:_0xda5563}of this['_findSuggestions'](_0x4d13d4,'deletion'))_0xda5563['isOwn']&&(this['_mergeNestedSuggestions']||!_0xda5563['containsRangeInObject']&&!_0xda5563['isInsideObject'])&&zt(_0x4e55c1,_0xdd2faa)&&_0x52009f['add'](_0x4e55c1);for(const _0x17a765 of _0x52009f){const _0x17262f=_0x17a765['getRanges']();if(!_0xdd2faa||!_0xdd2faa['skipNestingCheck']){if(_0x4d13d4['every'](_0x5a2b89=>_0x17262f['some'](_0x575567=>_0x575567['containsRange'](_0x5a2b89,!0x0))))return _0x17a765;}(!_0x17a765['attributes']||!_0x17a765['attributes']['skipNestingCheck'])&&(_0x17262f['every'](_0x368a7a=>_0x4d13d4['some'](_0x5e919d=>_0x5e919d['containsRange'](_0x368a7a,!0x0)))&&_0x17a765['discard']());}const _0xbaf33d=_0x38bf2c(),_0x22d3ca=_0x27de7b['id'],_0x351e88='deletion:'+_0xc39e2a,_0x47a711=this['_setSuggestionData']({'id':_0xbaf33d,'type':_0x351e88,'createdAt':new Date(),'authorId':_0x22d3ca,'attributes':_0xdd2faa});for(const _0x11c58d of _0x4d13d4)_0x11c58d['detach'](),_0x11c58d['isCollapsed']||'$graveyard'==_0x11c58d['root']['rootName']||this['_addSuggestionMarker'](_0x351e88,_0xbaf33d,_0x22d3ca,_0x11c58d,u['getMultiRangeId']());return _0x47a711;}['markAttributeChange'](_0x2a3b14,_0x2e569,_0x2b1ddb,_0x4e5b4a,_0x1b57ae){if(_0x2a3b14['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x461ae7=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ab3f7=Array['from'](this['_suggestions']['values']())['filter'](_0x29dbeb=>'attribute'==_0x29dbeb['type']&&_0x29dbeb['data']['key']==_0x2e569&&_0x29dbeb['isIntersectingWithRange'](_0x2a3b14));if('default'===this['_trackFormatChanges']){const _0x1244f1=this['_findSuggestions'](_0x2a3b14,'insertion')['filter'](({meta:_0x56b300})=>_0x56b300['isOwn']&&!_0x56b300['isInsideObject']&&!_0x56b300['isNextTo'])['map'](({suggestion:_0x38f672})=>_0x38f672);_0x5ab3f7['unshift'](..._0x1244f1);}const _0x146a09=new Map([[_0x2a3b14,_0x2b1ddb]]);for(const _0x2a2be2 of _0x5ab3f7){const _0x81d915='attribute'==_0x2a2be2['type']?_0x2a2be2['data']['oldValue']:void 0x0,_0x2e129e=_0x2a2be2['getFirstRange'](),_0x149ee8=Array['from'](_0x146a09['keys']())['find'](_0xd75b7=>_0xd75b7['isIntersecting'](_0x2e129e));if(!_0x149ee8)continue;const _0x353496=_0x149ee8['getDifference'](_0x2e129e);this['_isBlockAttribute'](_0x2e569)&&'insertion'==_0x2a2be2['type']&&0x0!=_0x353496['length']||(_0x146a09['delete'](_0x149ee8),_0x353496['forEach'](_0x4d42f4=>{_0x146a09['set'](_0x4d42f4,_0x2b1ddb);}),'insertion'!=_0x2a2be2['type']&&_0x81d915!=_0x4e5b4a&&_0x146a09['set'](_0x149ee8['getIntersection'](_0x2e129e),_0x81d915));}const _0x2ade41=[];for(const [_0x532596,_0x251cd7]of _0x146a09){const _0x38e0de=_0x38bf2c(),_0x422e69={'key':_0x2e569,'oldValue':_0x251cd7,'newValue':_0x4e5b4a};_0x2e569['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':_0x2e569});const _0x3a8f35=('attribute:'+(_0x2e569+'|'+Gt({'newValue':_0x4e5b4a})))['substring'](0x0,0x3c),_0x7d7868=this['_setSuggestionData']({'id':_0x38e0de,'type':_0x3a8f35,'data':_0x422e69,'createdAt':new Date(),'authorId':_0x461ae7,'attributes':_0x1b57ae});_0x2ade41['push'](_0x7d7868),this['_addSuggestionMarker'](_0x3a8f35,_0x38e0de,_0x461ae7,_0x532596);}return _0x2ade41;}['enableDefaultAttributesIntegration'](_0x345340){this['enableCommand'](_0x345340,(_0xfcc4b2,..._0x39589b)=>{this['_recordAttributeChanges'](()=>{_0xfcc4b2(..._0x39589b);});});}['registerBlockAttribute'](_0x233035){this['_blockAttributeKeys']['add'](_0x233035);}['registerInlineAttribute'](_0x4077c0){this['_inlineAttributeKeys']['add'](_0x4077c0);}['_getAttributeKey'](_0x4b9ad3){return'attribute'==_0x4b9ad3['type']?_0x4b9ad3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xfbac08,_0x57d23d){const _0x4ae5de=_0xfbac08['getFirstMarker']();this['_model']['change'](_0x1e5056=>{_0x1e5056['updateMarker'](_0x4ae5de,{'range':_0x57d23d});});}['_addThreadToSuggestion'](_0x34a1e6){const _0x203d00=_0x34a1e6['id'],_0x1915a8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x203d00)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1915a8,'threadId':_0x203d00,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x99d33c=this['_commentsRepository']['getCommentThread'](_0x203d00);_0x99d33c['unbind']('isRemovable'),_0x99d33c['isRemovable']=!0x1,_0x34a1e6['commentThread']=_0x99d33c;}['_checkSuggestionCorrectness'](_0x46dcc7,_0x42e397,_0x13e5a6,_0x1fefbf){if(_0x46dcc7['type']!=_0x42e397||_0x46dcc7['subType']!=_0x13e5a6||_0x46dcc7['creator']['id']!=_0x1fefbf)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x452bbc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a1631,_0x38e2e4){const _0x2639d8=_0x5a1631['getFirstRange']();if(_0x38e2e4['isEqual'](_0x2639d8))_0x5a1631['removeMarkers']();else{if(_0x2639d8['containsRange'](_0x38e2e4)){const _0x44a4fd=this['_model']['createPositionAt'](_0x38e2e4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a1631,this['_model']['createRange'](_0x2639d8['start'],_0x44a4fd));const _0x191a97=_0x38bf2c(),_0x43d8b2=_0x5a1631['creator']['id'],_0x5c168d=_0x5a1631['type']+':'+_0x5a1631['subType'];this['_setSuggestionData']({'id':_0x191a97,'type':_0x5c168d,'createdAt':new Date(),'authorId':_0x43d8b2,'data':_0x5a1631['data'],'attributes':_0x5a1631['attributes']});const _0x5408e3=this['_model']['createPositionAt'](_0x38e2e4['end']['parent'],'after'),_0x5c0315=this['_model']['createRange'](_0x5408e3,_0x2639d8['end']);this['_addSuggestionMarker'](_0x5c168d,_0x191a97,_0x43d8b2,_0x5c0315);}else{if(_0x2639d8['containsPosition'](_0x38e2e4['start'])){const _0x4910a8=this['_model']['createPositionAt'](_0x38e2e4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a1631,this['_model']['createRange'](_0x2639d8['start'],_0x4910a8));}else{const _0x16415b=this['_model']['createPositionAt'](_0x38e2e4['end']['parent'],'after');this['_setSuggestionRange'](_0x5a1631,this['_model']['createRange'](_0x16415b,_0x2639d8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x54cb11){for(const {suggestion:_0x28ed0e,meta:_0x261a35}of this['_findSuggestions'](_0x54cb11,'insertion')){if(!_0x261a35['isOwn'])continue;const _0x172f03=_0x28ed0e['getRanges']();for(const _0x554ea9 of _0x172f03)if(!_0x54cb11['getDifference'](_0x554ea9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x58512e){const _0x4d8af8=this['editor']['plugins']['get']('Users')['getUser'](_0x58512e);if(!_0x4d8af8)throw new _0x452bbc('track-changes-user-not-found',this);return _0x4d8af8;}['_getExternalAuthor'](_0x2060f0){const _0x2da804=this['editor']['plugins']['get']('Users'),_0x34e55f=_0x349e80('external:'+_0x2060f0),_0x7f2489=_0x2da804['getUser'](_0x34e55f);return _0x7f2489||_0x2da804['addUser']({'id':_0x34e55f,'name':_0x2060f0});}['_createSuggestion'](_0x5bee9f,_0x4e7b9c,_0x23d7be,_0x836540,_0x4972bc){const _0x4cfe84=this['_getAuthorFromId'](_0x836540),_0x5940bd=this['_suggestionFactory']['buildSuggestion'](_0x5bee9f,_0x4e7b9c,_0x23d7be,_0x4cfe84,_0x4972bc,_0x55254e=>{this['_updateSuggestionData'](_0x23d7be,{'attributes':_0x55254e});const _0x4ccc7c=this['getSuggestion'](_0x23d7be);this['_joinWithAdjacentSuggestions'](new Set([_0x4ccc7c])),this['_refreshSuggestionsChain'](new Set([_0x4ccc7c]));});return this['listenTo'](_0x5940bd,'accept',()=>{this['_updateSuggestionData'](_0x23d7be,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5940bd,'discard',()=>{this['_updateSuggestionData'](_0x23d7be,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x23d7be,_0x5940bd),this['_suggestionState']['set'](_0x5940bd,'notReady'),_0x5940bd;}['_splitMarkerName'](_0xd9e276){const _0xbe23af=_0xd9e276['split'](':');return{'group':_0xbe23af[0x0],'type':_0xbe23af[0x1],'subType':_0xbe23af['length']>=0x5?_0xbe23af[0x2]:null,'id':_0xbe23af['length']<0x5?_0xbe23af[0x2]:_0xbe23af[0x3],'authorId':_0xbe23af['length']<0x5?_0xbe23af[0x3]:_0xbe23af[0x4],'markerCount':0x6==_0xbe23af['length']?_0xbe23af[0x5]:null};}['_breakSuggestionMarker'](_0x1b399a,_0x2c9215,_0x1ad4b5){const _0xf8752f=_0x1b399a['getFirstRange'](),_0x4b4dc1=_0xf8752f['start'],_0x23b6ab=_0xf8752f['end'];this['_setSuggestionRange'](_0x1b399a,this['_model']['createRange'](_0x4b4dc1,_0x2c9215));const _0x4d1821=_0x38bf2c(),_0x3549d2=_0x1b399a['creator']['id'],_0x5b2353=_0x1b399a['type']+(_0x1b399a['subType']?':'+_0x1b399a['subType']:'');this['_setSuggestionData']({'id':_0x4d1821,'type':_0x5b2353,'createdAt':new Date(),'authorId':_0x3549d2,'originalSuggestionId':_0x1b399a['id'],'attributes':_0x1b399a['attributes'],'data':_0x1b399a['data']});const _0x2b70ad=this['_getAttributeKey'](_0x1b399a);('formatBlock'==_0x1b399a['type']||_0x2b70ad&&this['_isBlockAttribute'](_0x2b70ad))&&(_0x1ad4b5=this['_model']['createPositionBefore'](_0x1ad4b5['parent'])),this['_addSuggestionMarker'](_0x5b2353,_0x4d1821,_0x3549d2,this['_model']['createRange'](_0x1ad4b5,_0x23b6ab));}['_findSuggestions'](_0x11142c,_0x2408b5=null){const _0x2cc117=[],_0x289a6c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x11142c)||(_0x11142c=[_0x11142c]);for(const _0x5c3ed4 of this['getSuggestions']()){if(!_0x5c3ed4['isInContent'])continue;if(_0x2408b5&&_0x5c3ed4['type']!=_0x2408b5)continue;let _0x3c4fac=!0x1;for(const _0x4ef875 of _0x5c3ed4['getRanges']()){for(const _0x30d36b of _0x11142c){const _0x3fc4ef=_0x30d36b['start']['isEqual'](_0x4ef875['end'])||_0x30d36b['end']['isEqual'](_0x4ef875['start']);if(_0x3fc4ef||_0x30d36b['getIntersection'](_0x4ef875)){const _0x2351d1=_0x30d36b['containsRange'](_0x4ef875)&&Ut(this['_model']['schema'],_0x4ef875['start'],_0x30d36b),_0x266438=_0x4ef875['containsRange'](_0x30d36b)&&Ut(this['_model']['schema'],_0x30d36b['start'],_0x4ef875);_0x2cc117['push']({'suggestion':_0x5c3ed4,'meta':{'isOwn':_0x289a6c==_0x5c3ed4['author'],'isNextTo':_0x3fc4ef,'isInsideObject':_0x2351d1,'containsRangeInObject':_0x266438}}),_0x3c4fac=!0x0;break;}}if(_0x3c4fac)break;}}return _0x2cc117;}['_addSuggestionMarker'](_0xe1e1cd,_0x52277c,_0x3e55ba,_0x283046,_0x2848f5){this['_model']['change'](_0x3ce15f=>{let _0xd035a7='suggestion:'+_0xe1e1cd+':'+_0x52277c+':'+_0x3e55ba;_0x2848f5&&(_0xd035a7=_0xd035a7+':'+_0x2848f5),_0x3ce15f['addMarker'](_0xd035a7,{'range':_0x283046,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x194e35){const _0x3b04a5=_0x194e35['previous'],_0x3a2b51=_0x194e35['next'];_0x194e35['previous']=null,_0x194e35['next']=null,null!=_0x3b04a5&&_0x3b04a5['next']==_0x194e35&&(_0x3b04a5['next']=_0x3a2b51),null!=_0x3a2b51&&_0x3a2b51['previous']==_0x194e35&&(_0x3a2b51['previous']=_0x3b04a5),'ready'==this['_suggestionState']['get'](_0x194e35)&&(this['_suggestionState']['set'](_0x194e35,'removed'),this['fire']('suggestionUnloaded',_0x194e35,_0x3b04a5,_0x3a2b51));}['_setSuggestionData'](_0x46b89f){const _0x242688=_0x46b89f['id'],_0x28eae9=this['addSuggestionData'](_0x46b89f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f341e=this['editor']['plugins']['get']('PendingActions'),_0x159d75=_0x28eae9['hasComments'],_0x1acf3a=_0x28eae9['subType']?_0x28eae9['type']+':'+_0x28eae9['subType']:_0x28eae9['type'],_0xc05b29=this['editor']['locale'],_0x32cdfb=_0x2f341e['add'](o(_0xc05b29,'PENDING_ACTION_SUGGESTION')),_0x4874b2={'id':_0x242688,'type':_0x1acf3a,'hasComments':_0x159d75,'data':_0x46b89f['data']||null,'originalSuggestionId':_0x46b89f['originalSuggestionId']||null,'attributes':_0x28eae9['attributes']};this['_adapter']['addSuggestion'](_0x4874b2)['then'](_0x38dd64=>{_0x28eae9['_saved']=!0x0,_0x2f341e['remove'](_0x32cdfb),_0x38dd64&&_0x38dd64['createdAt']&&(this['_suggestions']['get'](_0x242688)['createdAt']=_0x38dd64['createdAt']);})['catch'](_0x3d7322=>{throw _0x193b5d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x28eae9['discard']();}),_0x28eae9['stopListening'](),this['_suggestions']['delete'](_0x28eae9['id']),this['_suggestionState']['delete'](_0x28eae9),_0x3d7322;});}return _0x28eae9;}['_isBlockAttribute'](_0x58c80e){return this['_blockAttributeKeys']['has'](_0x58c80e);}['_updateSuggestionData'](_0x352e83,_0x57acf2){const _0x44c244=this['editor']['plugins']['get']('PendingActions'),_0x3bfdf5=this['getSuggestion'](_0x352e83);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3bfdf5['_saved']){const _0x3fcfdd=_0x44c244['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x352e83,_0x57acf2)['then'](()=>{_0x44c244['remove'](_0x3fcfdd);});}else _0x3bfdf5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x352e83,_0x57acf2);});}}['_getSuggestionData'](_0x5cb7f6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x452bbc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5cb7f6);}['_handleNewSuggestionMarker'](_0x1871f8){const {id:_0x31db49,type:_0x2fcd87,subType:_0x1f933f,authorId:_0x5cafb7}=this['_splitMarkerName'](_0x1871f8),_0x533afa=this['_suggestions']['get'](_0x31db49)||this['_createSuggestion'](_0x2fcd87,_0x1f933f,_0x31db49,_0x5cafb7,{});switch(this['_checkSuggestionCorrectness'](_0x533afa,_0x2fcd87,_0x1f933f,_0x5cafb7),this['_suggestionState']['get'](_0x533afa)){case'notReady':this['_getSuggestionData'](_0x31db49)['then'](_0x1eaa15=>{let _0x4e3f5f=Promise['resolve']();_0x1eaa15['hasComments']&&(_0x4e3f5f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x31db49})),_0x4e3f5f['then'](()=>{this['addSuggestionData'](_0x1eaa15)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x533afa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x31db49,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x533afa,'ready'),this['fire']('suggestionLoaded',_0x533afa);break;case'ready':this['fire']('suggestionChanged',_0x533afa);}return _0x533afa['addMarkerName'](_0x1871f8),_0x533afa;}['_refreshSuggestionsChain'](_0x1ab613){const _0xd7e5ca=Array['from'](_0x1ab613),_0x4baa04=_0xd7e5ca['filter'](_0x5ef4b7=>'attribute'==_0x5ef4b7['type']);this['_refreshAttributeSuggestionsChain'](_0x4baa04);const _0x4adbba=_0xd7e5ca['filter'](_0x5b8e21=>!_0x5b8e21['isMultiRange']&&'attribute'!=_0x5b8e21['type']),_0x4243c7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1336be=>!_0x1336be['isMultiRange']&&'attribute'!=_0x1336be['type']),_0x5d553d=_0x4243c7['filter'](_0xec7a9b=>!_0x1ab613['has'](_0xec7a9b)),_0x16317f=new Map(_0x4243c7['map'](_0x58d918=>[_0x58d918,this['_suggestionFactory']['getSuggestionCallback'](_0x58d918['type'],_0x58d918['subType'],'chain')])),_0x169e1b=new Map(_0x4243c7['map'](_0x233a28=>[_0x233a28,_0x233a28['getFirstRange']()])),_0x5b0243=new Set(),_0x2766ee=new Set();for(let _0x575e49=0x0;_0x575e49<_0x4adbba['length'];_0x575e49++)_0x3b4fef(_0x4adbba[_0x575e49],_0x4adbba,_0x575e49+0x1);for(let _0x4dd559=0x0;_0x4dd559<_0x4adbba['length'];_0x4dd559++)_0x3b4fef(_0x4adbba[_0x4dd559],_0x5d553d,0x0);const _0x41c7a6=new Set();for(let _0x18d1a7=0x0;_0x18d1a7<_0x4adbba['length'];_0x18d1a7++){const _0x20a62f=_0x4adbba[_0x18d1a7];!_0x2766ee['has'](_0x20a62f)&&_0x20a62f['previous']&&(_0x41c7a6['add'](_0x20a62f['previous']),_0x20a62f['previous']['next']===_0x20a62f&&(_0x20a62f['previous']['next']=null),_0x20a62f['previous']=null),!_0x5b0243['has'](_0x20a62f)&&_0x20a62f['next']&&(_0x41c7a6['add'](_0x20a62f['next']),_0x20a62f['next']['previous']===_0x20a62f&&(_0x20a62f['next']['previous']=null),_0x20a62f['next']=null);}function _0x3b4fef(_0x253106,_0x5ad5c7,_0x3ca39c){for(let _0x3e8d39=_0x3ca39c;_0x3e8d39<_0x5ad5c7['length'];_0x3e8d39++){const _0x45e7ab=_0x24c0e9(_0x253106,_0x5ad5c7[_0x3e8d39]);_0x45e7ab&&(_0x45e7ab[0x0]['next']=_0x45e7ab[0x1],_0x45e7ab[0x1]['previous']=_0x45e7ab[0x0],_0x5b0243['add'](_0x45e7ab[0x0]),_0x2766ee['add'](_0x45e7ab[0x1]));}}function _0x24c0e9(_0x49e229,_0x240201){if(_0x49e229['author']['id']!==_0x240201['author']['id'])return null;const _0x39edbe=_0x16317f['get'](_0x49e229)(_0x49e229,_0x240201,_0x169e1b['get'](_0x49e229),_0x169e1b['get'](_0x240201));if(!_0x39edbe)return null;return _0x16317f['get'](_0x240201)(_0x49e229,_0x240201,_0x169e1b['get'](_0x49e229),_0x169e1b['get'](_0x240201))?_0x39edbe[0x1]['commentThread']&&_0x39edbe[0x1]['commentThread']['length']?null:_0x39edbe:null;}_0x41c7a6['size']&&this['_refreshSuggestionsChain'](_0x41c7a6);}['_refreshAttributeSuggestionsChain'](_0x37bdc4){if(0x0==_0x37bdc4['length'])return;const _0x5837d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x557e47=>'attribute'==_0x557e47['type']&&_0x557e47['_isDataLoaded']),_0x308880=[],_0x304efb=new Map();for(const _0x4b6a04 of _0x5837d9){const _0x409adc=_0x349e80(_0x4b6a04['attributes']);_0x304efb['has'](_0x409adc)||(_0x304efb['set'](_0x409adc,_0x308880['length']),_0x308880['push']([]));const _0x4804fe=_0x304efb['get'](_0x409adc);_0x308880[_0x4804fe]['push'](_0x4b6a04);}!(function(){_0x308880['sort']((_0x48d120,_0x566599)=>{const _0x13dcb6=_0x48d120[0x0]['createdAt'],_0x2c9e01=_0x566599[0x0]['createdAt'];return _0x13dcb6==_0x2c9e01?_0x48d120[0x0]['attributes']['groupId']<_0x566599[0x0]['attributes']['groupId']?-0x1:0x1:_0x13dcb6<_0x2c9e01?-0x1:0x1;});for(const _0x5ae3f2 of _0x308880)_0x5ae3f2['sort']((_0x4cc6bc,_0x48b685)=>_0x4cc6bc['id']<_0x48b685['id']?-0x1:0x1);}());for(let _0x294a58=0x0;_0x294a58<_0x308880['length'];_0x294a58++){if(0x0==_0x308880[_0x294a58]['length'])continue;const _0x469ddf=[];for(let _0x18bf7c=_0x294a58+0x1;_0x18bf7c<_0x308880['length'];_0x18bf7c++)0x0!=_0x308880[_0x18bf7c]['length']&&_0x1e121a(_0x308880[_0x294a58],_0x308880[_0x18bf7c])&&_0x469ddf['push'](_0x18bf7c);for(const _0x47aec6 of _0x469ddf)_0x308880[_0x294a58]=_0x308880[_0x294a58]['concat'](_0x308880[_0x47aec6]),_0x308880[_0x47aec6]=[];}for(const _0x2bea94 of _0x308880)for(let _0x16e35c=0x0;_0x16e35c<_0x2bea94['length'];_0x16e35c++){const _0x2bb8fc=_0x2bea94[_0x16e35c+0x1]||null;_0x2bea94[_0x16e35c]['next']!==_0x2bb8fc&&(_0x2bea94[_0x16e35c]['next']=_0x2bb8fc);}for(const _0x430ac3 of _0x308880)for(let _0x2d38a8=0x0;_0x2d38a8<_0x430ac3['length'];_0x2d38a8++){const _0x554847=_0x430ac3[_0x2d38a8-0x1]||null;_0x430ac3[_0x2d38a8]['previous']!==_0x554847&&(_0x430ac3[_0x2d38a8]['previous']=_0x554847);}function _0x1e121a(_0x4d3730,_0x3484dc){if(_0x4d3730[0x0]['attributes']['groupId']!==_0x3484dc[0x0]['attributes']['groupId']&&_0x4d3730[0x0]['author']!==_0x3484dc[0x0]['author'])return!0x1;if(!function(_0x1de322,_0x3ae187){if(!_0x1de322['hasComments']&&!_0x3ae187['hasComments'])return!0x0;if(_0x1de322['hasComments']&&_0x3ae187['hasComments'])return!0x1;if(_0x1de322['hasComments']&&_0x3ae187['createdAt']<_0x1de322['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ae187['hasComments']&&_0x1de322['createdAt']<_0x3ae187['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4d3730[0x0],_0x3484dc[0x0]))return!0x1;const _0x28cfa4=xt(_0x4d3730[0x0]['attributes'],'groupId'),_0x280106=xt(_0x3484dc[0x0]['attributes'],'groupId');if(!_0x16b617(_0x28cfa4,_0x280106))return!0x1;return!!_0x4d3730['every'](_0x146c12=>_0x3484dc['some'](_0x47cc13=>_0x146c12['getFirstRange']()['isEqual'](_0x47cc13['getFirstRange']())))&&_0x3484dc['every'](_0x3a9779=>_0x4d3730['some'](_0x425be1=>_0x3a9779['getFirstRange']()['isEqual'](_0x425be1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2f7bed){const _0x175ed6=Array['from'](_0x2f7bed),_0x1b4dc8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x35f989=_0x1b4dc8['filter'](_0x397ed3=>!_0x2f7bed['has'](_0x397ed3)),_0x20a774=new Map(_0x175ed6['map'](_0x432074=>[_0x432074,this['_suggestionFactory']['getSuggestionCallback'](_0x432074['type'],_0x432074['subType'],'join')])),_0xc53e16=new Map(_0x1b4dc8['map'](_0x389c16=>[_0x389c16,_0x389c16['getRanges']()]));for(let _0x207982=0x0;_0x207982<_0x175ed6['length'];_0x207982++){if(_0x52e239(this,_0x175ed6[_0x207982],_0x175ed6,_0x207982+0x1))return!0x0;}for(let _0x1c17cc=0x0;_0x1c17cc<_0x175ed6['length'];_0x1c17cc++){if(_0x52e239(this,_0x175ed6[_0x1c17cc],_0x35f989,0x0))return!0x0;}return!0x1;function _0x52e239(_0x35587c,_0x2c1124,_0x5141ba,_0x42d55a){for(let _0x4f9c41=_0x42d55a;_0x4f9c41<_0x5141ba['length'];_0x4f9c41++){const _0x1340b8=_0x5141ba[_0x4f9c41];if(_0x1340b8['type']!==_0x2c1124['type']||_0x1340b8['author']['id']!==_0x2c1124['author']['id']||_0x1340b8['subType']!==_0x2c1124['subType'])continue;if(!qt(_0x2c1124,_0x1340b8))continue;if('attribute'==_0x2c1124['type']&&_0x2c1124['data']['oldValue']!=_0x1340b8['data']['oldValue'])continue;if('attribute'==_0x2c1124['type']&&_0x35587c['_isBlockAttribute'](_0x2c1124['data']['key']))continue;if('formatBlock'==_0x2c1124['type']){const _0x4ea195=_0x35587c['editor']['model'],_0x39d8c0=_0x2c1124['getContainedElement']();if(_0x39d8c0&&(_0x4ea195['schema']['isObject'](_0x39d8c0)||_0x4ea195['schema']['isLimit'](_0x39d8c0)))continue;}const _0x3f4a1c=_0x20a774['get'](_0x2c1124),_0x1b2123=_0xc53e16['get'](_0x2c1124),_0x9d89fb=_0xc53e16['get'](_0x1340b8),_0x1237fa=_0x2c1124['commentThread']&&_0x2c1124['commentThread']['length'],_0x55f9d8=_0x1340b8['commentThread']&&_0x1340b8['commentThread']['length'];if(!_0x1237fa&&_0x3f4a1c(_0x9d89fb,_0x1b2123))return _0x35587c['_joinSuggestions'](_0x1340b8,_0x2c1124),_0xc53e16['delete'](_0x2c1124),!0x0;if(!_0x55f9d8&&_0x3f4a1c(_0x1b2123,_0x9d89fb))return _0x35587c['_joinSuggestions'](_0x2c1124,_0x1340b8),_0xc53e16['delete'](_0x1340b8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4dfdf4,_0x499c61){if(_0x4dfdf4['isMultiRange']){for(const _0x1246a0 of _0x499c61['getRanges']())_0x4dfdf4['addRange'](_0x1246a0);}else{const _0x11d0b1=_0x499c61['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4dfdf4,this['_model']['createRange'](_0x4dfdf4['getFirstRange']()['start'],_0x11d0b1));}_0x499c61['removeMarkers']();}['_getMarkerAnnouncementText'](_0x587577,_0x4eb55d,_0x155bfa){const _0x3a7820=_0x587577['startsWith']('format')||_0x587577['startsWith']('attribute')?'FORMATTING':_0x587577['toUpperCase']();return o(this['editor']['locale'],_0x4eb55d+'_'+_0x3a7820+'_SUGGESTION_ANNOUNCEMENT',_0x155bfa);}['_initAriaMarkerChangeAnnouncements'](){const _0x4b43cf=this['editor'];if(!_0x4b43cf['ui'])return;const {ariaLiveAnnouncer:_0x26c186}=_0x4b43cf['ui'];_0x3b18b3(this['_model'],({left:_0x53ab43,entered:_0x4fbe9f})=>{for(const _0x25adb1 of _0x53ab43){const {group:_0x4750b7,type:_0x3c6f99}=this['_splitMarkerName'](_0x25adb1['name']);if('suggestion'===_0x4750b7){_0x26c186['announce'](this['_getMarkerAnnouncementText'](_0x3c6f99,'LEAVE'));break;}}for(const _0x51ef07 of _0x4fbe9f){const {group:_0x4f4e32,type:_0x20aadf}=this['_splitMarkerName'](_0x51ef07['name']);if('suggestion'===_0x4f4e32){_0x26c186['announce'](this['_getMarkerAnnouncementText'](_0x20aadf,'ENTER',_0x10560b(_0xea7965)));break;}}});}['_processAttributeChanges'](_0x4a29d4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4deea9=this['editor'],_0x598b62=_0x4deea9['model']['document']['differ']['getChanges']();if(0x0==_0x598b62['length'])return!0x1;const _0x393b09=[],_0x4a5b70=_0x598b62['filter'](_0x23eee3=>'attribute'==_0x23eee3['type']),_0x100eda=_0x598b62['filter'](_0x569a9c=>'insert'==_0x569a9c['type']&&'$text'!=_0x569a9c['name']),_0xd769c=_0x598b62['filter'](_0x37da58=>'remove'==_0x37da58['type']&&'$text'!=_0x37da58['name']);for(const _0x3e8372 of _0x4a5b70)_0x393b09['push']({'key':_0x3e8372['attributeKey'],'newValue':_0x3e8372['attributeNewValue'],'oldValue':_0x3e8372['attributeOldValue'],'range':Lt(_0x3e8372['range'],_0x4deea9['model'])});for(const _0x2029ce of _0x100eda){const _0x4c2eed=_0xd769c['find'](_0x2cf527=>_0x2cf527['position']['isEqual'](_0x2029ce['position']));_0x4c2eed&&_0x393b09['push']({'key':m,'newValue':_0x2029ce['name'],'oldValue':_0x4c2eed['name'],'range':_0x4deea9['model']['createRangeOn'](_0x2029ce['position']['nodeAfter'])});}return 0x0!=_0x393b09['length']&&this['_reduceExistingSuggestions'](_0x4a29d4,_0x393b09);}['_processAttributeSuggestions'](_0x51f32a){let _0x51a021=!0x1;const _0x53db9e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48eac5=>_0x48eac5['data']['newRange']&&_0x48eac5['name']['startsWith']('suggestion:attribute:'));for(const _0x58c5ad of _0x53db9e){const {subType:_0x2b564c,id:_0x573ccc}=this['_splitMarkerName'](_0x58c5ad['name']),_0x208499=_0x2b564c['split']('|')[0x0];for(const _0x59990f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59990f['id']!=_0x573ccc&&'attribute'==_0x59990f['type']&&_0x59990f['data']&&_0x59990f['data']['key']==_0x208499&&_0x59990f['getFirstRange']()['isIntersecting'](_0x58c5ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59990f,_0x58c5ad['data']['newRange'],_0x51f32a),_0x51a021=!0x0);}return _0x51a021;}['_recordAttributeChanges'](_0x2a47c9){this['_recordAttributeSuggestions']=!0x0,_0x2a47c9();}['_isRegisteredAttribute'](_0x95cf5d){const _0x46811c=this['_isBlockAttribute'](_0x95cf5d),_0x1a55df=this['_inlineAttributeKeys']['has'](_0x95cf5d);return _0x46811c||_0x1a55df;}['_reduceExistingSuggestions'](_0x3caa94,_0x219e4e){if(0x0==_0x219e4e['length'])return!0x1;let _0x1888fc=!0x1;for(const _0x46223 of _0x219e4e){const _0x503ec9=this['_findSuggestions'](_0x46223['range'],'attribute')['filter'](_0x534f4f=>!_0x534f4f['meta']['isNextTo'])['map'](_0x595f6a=>_0x595f6a['suggestion']),_0x41c803=_0x349e80({'newValue':_0x46223['newValue']});_0x503ec9['filter'](_0x25d638=>{const [_0x367542,_0x58f149]=_0x25d638['subType']['split']('|');return _0x367542==_0x46223['key']&&_0x58f149!=_0x41c803;})['forEach'](_0x30f1de=>{this['_reduceSuggestionAttributeRange'](_0x30f1de,_0x46223['range'],_0x3caa94),_0x1888fc=!0x0;});}return _0x1888fc;}['_reduceSuggestionAttributeRange'](_0x5cba2d,_0x5302a0,_0x288d2d){const _0x4c5f7f=_0x5cba2d['getFirstRange']()['getDifference'](_0x5302a0);0x0!==_0x4c5f7f['length']?0x1!==_0x4c5f7f['length']?this['_breakSuggestionMarker'](_0x5cba2d,_0x5302a0['start'],_0x5302a0['end']):this['_setSuggestionRange'](_0x5cba2d,_0x4c5f7f[0x0]):_0x288d2d['removeMarker'](_0x5cba2d['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x454a25){this['_editor']=_0x454a25,this['_model']=_0x454a25['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x608647,_0x42c98b,_0x2324ba,_0x2e8f38,_0x149b85,_0x2c121c){return new u(this['_model'],{'type':_0x608647,'subType':_0x42c98b,'id':_0x2324ba,'author':_0x2e8f38,'creator':_0x2e8f38,'attributes':_0x149b85,'onAttributesChange':_0x2c121c,'onAccept':(..._0x3a4287)=>this['getSuggestionCallback'](_0x608647,_0x42c98b,'accept')(..._0x3a4287),'onDiscard':(..._0x5d9173)=>this['getSuggestionCallback'](_0x608647,_0x42c98b,'discard')(..._0x5d9173)});}['registerCustomCallback'](_0x5b1440,_0x36d145,_0x3615bb,_0x4206c6){const _0x3ba66b=_0x5b1440+':'+_0x36d145+':'+_0x3615bb;this['_customCallbacks']['set'](_0x3ba66b,_0x4206c6);}['getSuggestionCallback'](_0x5a71ca,_0x19c6cf,_0x1f83ec){const _0x5a9608=_0x5a71ca+':'+_0x19c6cf+':'+_0x1f83ec;return this['_customCallbacks']['get'](_0x5a9608)||this['_defaultCallbacks']['get'](_0x5a71ca+':'+_0x1f83ec);}['_registerDefaultCallbacks'](){const _0x5f4ce1=()=>!0x1,_0x2c7e19=_0x58582d=>{_0x58582d['sort']((_0x3e2215,_0x543e10)=>_0x3e2215['start']['isBefore'](_0x543e10['start'])?0x1:-0x1),this['_model']['change'](_0x277c70=>{for(const _0x8a897e of _0x58582d){let _0x405244;_0x405244=_0x8a897e['end']['isAtEnd']&&_0x8a897e['end']['parent']==_0x8a897e['start']['nodeAfter']?_0x277c70['createSelection'](_0x8a897e['start']['nodeAfter'],'on'):_0x277c70['createSelection'](_0x8a897e),this['_model']['deleteContent'](_0x405244,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x241587=(_0x42a7dc,_0x108250)=>{_0x108250&&this['_model']['change'](_0x1c2a1b=>{const {commandName:_0x5f1e28,commandParams:_0x2ddd85=[]}=_0x108250,_0x30519a=_0x42a7dc['map'](_0x13995f=>(Vt(_0x13995f)&&(_0x13995f=this['_model']['createRange'](_0x13995f['end'])),_0x13995f))['filter'](_0x4b2f43=>'$graveyard'!==_0x4b2f43['root']['rootName']);if(_0x30519a['length']<0x1)return;const _0x4d98cd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e7d5a=>_0x5a7b90['fromRange'](_0x1e7d5a));_0x1c2a1b['setSelection'](_0x30519a);for(const _0x4e7e24 of this['_editor']['commands']['commands']())_0x4e7e24['refresh']();_0x2ddd85['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5f1e28,..._0x2ddd85);const _0x239e5f=_0x4d98cd['filter'](_0x4dd8dc=>'$graveyard'!=_0x4dd8dc['root']['rootName']);_0x239e5f['length']>0x0&&_0x1c2a1b['setSelection'](_0x239e5f);for(const _0x351635 of _0x4d98cd)_0x351635['detach']();});},_0x1d7a6d=(_0x2fc653,_0x1d5f4c)=>0x1==_0x2fc653['length']&&0x1==_0x1d5f4c['length']&&_0x2fc653[0x0]['end']['isEqual'](_0x1d5f4c[0x0]['start']),_0x5585ba=(_0x1302be,_0x1fc3ce,_0x444a3b,_0x373ffc)=>Ht(_0x1302be,_0x1fc3ce,_0x444a3b,_0x373ffc)?[_0x1302be,_0x1fc3ce]:Ht(_0x1fc3ce,_0x1302be,_0x373ffc,_0x444a3b)?[_0x1fc3ce,_0x1302be]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5f4ce1),this['_defaultCallbacks']['set']('insertion:discard',_0x2c7e19),this['_defaultCallbacks']['set']('insertion:join',_0x1d7a6d),this['_defaultCallbacks']['set']('insertion:chain',_0x5585ba),this['_defaultCallbacks']['set']('deletion:accept',_0x2c7e19),this['_defaultCallbacks']['set']('deletion:discard',_0x5f4ce1),this['_defaultCallbacks']['set']('deletion:join',_0x1d7a6d),this['_defaultCallbacks']['set']('deletion:chain',_0x5585ba),this['_defaultCallbacks']['set']('formatInline:accept',_0x241587),this['_defaultCallbacks']['set']('formatInline:discard',_0x5f4ce1),this['_defaultCallbacks']['set']('formatInline:join',_0x1d7a6d),this['_defaultCallbacks']['set']('formatInline:chain',_0x5f4ce1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x241587),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5f4ce1),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d7a6d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5f4ce1),this['_defaultCallbacks']['set']('attribute:accept',_0x5f4ce1),this['_defaultCallbacks']['set']('attribute:discard',(_0x45faf2,_0x2a90ba)=>{if(!_0x2a90ba)return;const _0x13443a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1c1aa0=>{if(_0x2a90ba['key']==m)for(const _0x30e9c5 of _0x45faf2){const _0x5618c9=_0x30e9c5['start']['nodeAfter'],_0x4fd6bf=_0x2a90ba['oldValue'];_0x1c1aa0['rename'](_0x5618c9,_0x4fd6bf);}else{if(_0x13443a['_isBlockAttribute'](_0x2a90ba['key'])){for(const _0xef8ff5 of _0x45faf2)void 0x0!==_0x2a90ba['oldValue']?_0x1c1aa0['setAttribute'](_0x2a90ba['key'],_0x2a90ba['oldValue'],_0xef8ff5['start']['nodeAfter']):_0x1c1aa0['removeAttribute'](_0x2a90ba['key'],_0xef8ff5['start']['nodeAfter']);}else{for(const _0x146a0a of _0x45faf2)_0x2a90ba['oldValue']?_0x1c1aa0['setAttribute'](_0x2a90ba['key'],_0x2a90ba['oldValue'],_0x146a0a):_0x1c1aa0['removeAttribute'](_0x2a90ba['key'],_0x146a0a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d7a6d);}}function Ut(_0x439855,_0x49717f,_0x1456bf){for(const _0x4eef99 of _0x49717f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4eef99['root']==_0x4eef99)return!0x1;if(!_0x1456bf['containsItem'](_0x4eef99))return!0x1;if(_0x439855['isObject'](_0x4eef99)||_0x439855['isLimit'](_0x4eef99))return!0x0;}return!0x1;}function Vt(_0x237be4){return _0x237be4['end']['parent']==_0x237be4['start']['nodeAfter']&&_0x237be4['end']['isAtStart'];}function Pt(_0x724ea9,_0x1e19e7,_0x3d7fd6,_0xc2627a){const _0xa6f3c4=_0x4d84db=>!_0x4d84db['item']['is']('$textProxy')&&!_0xc2627a['isObject'](_0x4d84db['item']),_0x56314e=_0x724ea9['start']['getLastMatchingPosition'](_0xa6f3c4),_0x556f41=_0x724ea9['end']['getLastMatchingPosition'](_0xa6f3c4,{'direction':'backward'});return(!_0x724ea9['start']['isEqual'](_0x56314e)||!_0x724ea9['end']['isEqual'](_0x556f41))&&(_0x56314e['isBefore'](_0x556f41)?_0x3d7fd6['updateMarker'](_0x1e19e7,{'range':_0x3d7fd6['createRange'](_0x56314e,_0x556f41)}):_0x3d7fd6['removeMarker'](_0x1e19e7),!0x0);}function Gt(_0x4b8e47){return _0x349e80(_0x4b8e47);}function Ft(_0x47bf8c){const _0x49afba=_0x47bf8c['start']['nodeAfter'];return _0x49afba&&_0x49afba['is']('element');}function Lt(_0xca631c,_0x586379){return null==_0xca631c['end']['nodeBefore']&&_0xca631c['end']['parent']==_0xca631c['start']['nodeAfter']?Jt(_0xca631c['start']['nodeAfter'],_0x586379):_0xca631c;}function Jt(_0x59098c,_0x2e818a){const _0x2aec60=_0x2e818a['schema']['isObject'](_0x59098c)||_0x2e818a['schema']['isSelectable'](_0x59098c);return _0x2e818a['createRange'](_0x2e818a['createPositionAt'](_0x59098c,'before'),_0x2aec60?_0x2e818a['createPositionAfter'](_0x59098c):_0x2e818a['createPositionAt'](_0x59098c,'end'));}function Ht(_0x114258,_0x413203,_0x23af36,_0x2c619f){return!!qt(_0x114258,_0x413203)&&_0x23af36['end']['isEqual'](_0x2c619f['start']);}function qt(_0x303ce2,_0x4e85f3){if(!_0x303ce2['_isDataLoaded']||!_0x4e85f3['_isDataLoaded'])return!0x1;const _0x2bea26=new Set(Object['keys'](_0x303ce2['attributes'])),_0x46747f=new Set(Object['keys'](_0x4e85f3['attributes']));if(_0x2bea26['delete']('groupId'),_0x46747f['delete']('groupId'),0x0==_0x2bea26['size']&&0x0==_0x46747f['size'])return!0x0;if(_0x2bea26['size']!=_0x46747f['size'])return!0x1;const _0x5208f1={..._0x303ce2['attributes']},_0x472ca5={..._0x4e85f3['attributes']};return delete _0x5208f1['groupId'],delete _0x472ca5['groupId'],JSON['stringify'](_0x5208f1)==JSON['stringify'](_0x472ca5);}function zt(_0x806790,_0x5d3a41){const _0x380555=Kt(_0x806790['attributes']),_0x51a430=Kt(_0x5d3a41);if(!_0x806790['_isDataLoaded'])return!0x1;for(const _0x26adda of Object['keys'](_0x51a430))if(!_0x16b617(_0x380555[_0x26adda],_0x51a430[_0x26adda]))return!0x1;return!0x0;}function Kt(_0x4e306e){const _0x4ed196=Object['assign']({},_0x4e306e);return delete _0x4ed196['skipNestingCheck'],delete _0x4ed196['tablePasteChainId'],_0x4ed196;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x2d8665(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x10154f,_0x40c3ed,_0x52041e,_0x2276ae){super(),this['model']=_0x40c3ed,this['view']=_0x52041e,this['commentThreadController']=_0x2276ae,this['_editor']=_0x10154f,this['_acceptCommand']=_0x10154f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x10154f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x46a43b,_0x311838)=>_0x46a43b||_0x311838),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a15c1=>_0x2a15c1&&this['_editor']['model']['canEditAt'](_0x40c3ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x674511=>_0x674511&&this['_editor']['model']['canEditAt'](_0x40c3ed['getRanges']())),this['_pendingAction']=null,_0x52041e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52041e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52041e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52041e,'change:isDirty',()=>{_0x52041e['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 _0xf9b44c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xf9b44c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x539973{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x28b6ce,_0x202bb7,_0x10d6dd,_0x2a0305){super(_0x28b6ce),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4f4dcd(_0x28b6ce,o(_0x28b6ce,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x202bb7['authoredAt']),this['bind']('authoredAt')['to'](_0x202bb7),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',_0x202bb7,'authoredAt',this,'descriptionParts',(_0x380b80,_0x5c0e19,_0x45be39)=>{const _0x3c172a=_0x45be39['map'](_0x4f9f03=>ns(_0x4f9f03['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x380b80-0x1,_0x202bb7['author']['name'],_0x5c0e19?_0x2a0305['formatDateTime'](_0x5c0e19):'',new DOMParser()['parseFromString'](_0x3c172a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x18c616(),this['focusTracker']=new _0x4dcb1d(),this['keystrokes']=new _0x78215b(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11ae6f=>_0x11ae6f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x202bb7,this['_localUser']=_0x10d6dd,this['_config']=_0x2a0305,_0x2a0305['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x31ef07(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5f0b09}=this['_config'];this['commentsListView']=new _0x5f0b09(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',_0x4f7775=>_0x4f7775+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xe5ba2e,_0x215d75)=>_0xe5ba2e||!!_0x215d75);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36f45f}=this['_config'],_0x2320c0=new _0x36f45f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x506fc9=_0x2320c0['commentInputView'];return _0x2320c0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x506fc9,'value',(_0x11c881,_0x4dc34c,_0x4d725a)=>!!_0x4d725a||_0x11c881&&!_0x4dc34c),_0x506fc9['on']('submit',(_0x321d99,_0x5746e0)=>{this['fire']('addComment',_0x5746e0),_0x506fc9['editor']['setData']('');}),_0x506fc9['on']('cancel',()=>this['focus']()),_0x506fc9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2320c0;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3f95df,_0x36f215,_0x520278,_0x406f1b){super(_0x3f95df,_0x36f215,_0x520278,_0x406f1b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x56675a=>_0x56675a&&_0x56675a[0x0]?_0x56675a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x55cb75,_0x392e44)=>{let _0x28c618='';for(const _0x3f0ea6 of _0x55cb75)_0x28c618+='<p>'+ns(_0x3f0ea6['content'],_0x3f0ea6['color'])+'</p>';return _0x392e44?_0x28c618:ti(_0x28c618,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x406f1b['SuggestionView'](_0x3f95df,_0x36f215,{'formatDateTime':_0x406f1b['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 _0x5ede0d=this['bindTemplate'],_0x1ea939=[this['suggestionView']];return this['commentsListView']&&_0x1ea939['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1ea939['push'](this['commentThreadInputView']),_0x1ea939['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ede0d['if']('isActive','ck-suggestion-wrapper--active'),_0x5ede0d['to']('type',_0x89f427=>'ck-suggestion-'+_0x89f427),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':_0x5ede0d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1ea939};}['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 ue extends _0x539973{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23ff1f,_0x2e878b,_0x531dcc){super(_0x23ff1f),this['_model']=_0x2e878b,this['_config']=_0x531dcc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2e878b),this['acceptButton']=this['_createButton'](o(_0x23ff1f,'Accept\x20suggestion'),_0x40f511['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x23ff1f,'Discard\x20suggestion'),_0x40f511['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15dd6c(_0x23ff1f,_0x2e878b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x18c616([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4dcb1d(),this['keystrokes']=new _0x78215b(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x44936b=>_0x44936b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x234354=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x234354['innerHTML']=this['description'],this['on']('change:description',(_0x18972f,_0x330b18,_0x553f80)=>{_0x234354['innerHTML']=_0x553f80;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x43787e=this['bindTemplate'],_0x43becd=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x43787e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x43787e['to']('authoredAt',_0x27a21c=>this['_config']['formatDateTime'](_0x27a21c))}]}]},{'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']&&_0x43becd['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':_0x43becd}]};}['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'](_0x18e49a,_0xc78fd2,_0x5e9543,_0x398543,_0x5dab26){const _0xe206d6=new _0x1fe835(this['locale']);return _0xe206d6['set']({'label':_0x18e49a,'icon':_0xc78fd2,'tooltip':!0x0,'tooltipPosition':_0x5dab26}),_0xe206d6['extendTemplate']({'attributes':{'class':_0x5e9543}}),_0xe206d6['on']('execute',()=>{this['fire'](_0x398543,this['_model']['id']);}),_0xe206d6;}['_setupKeyboardNavigation'](){const _0x3fd4cb=this['element'];this['keystrokes']['listenTo'](_0x3fd4cb);for(const _0x5743b8 of this['focusables'])this['focusTracker']['add'](_0x5743b8['element']),this['keystrokes']['listenTo'](_0x5743b8['element']);this['keystrokes']['set']('enter',(_0x350bba,_0x469632)=>{_0x3fd4cb===_0x350bba['target']&&(this['focusCycler']['focusFirst'](),_0x469632());}),this['keystrokes']['set']('esc',(_0x33cb20,_0x33af80)=>{_0x3fd4cb!==_0x33cb20['target']&&(this['focus'](),_0x33af80());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x52e26d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3883fc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b066e){super(_0x3b066e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5baebc=this['editor']['config'];_0x5baebc['define']('trackChanges.SuggestionThreadView',de),_0x5baebc['define']('trackChanges.SuggestionView',ue),_0x5baebc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5baebc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4909af,_0x547f1b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5bdb60,_0x410096]of this['_handleControllerBuffer']){const _0x13aa2d=this['_suggestionToController']['has'](_0x5bdb60);_0x13aa2d||_0x410096?_0x13aa2d&&_0x410096&&this['_destroyController'](_0x5bdb60):this['_initializeController'](_0x5bdb60);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4909af,_0x547f1b);}['init'](){const _0x3177b9=this['editor'],_0x1c3be2=_0x3177b9['plugins']['get']('TrackChangesEditing'),_0x2d7b7a=_0x3177b9['plugins']['get']('Annotations'),_0x162d2f=_0x3177b9['plugins']['get']('EditorAnnotations'),_0x2c627a=_0x3177b9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x162d2f['addSourceCollector'](()=>{const _0x423e36=[];for(const [_0xaa9988,_0x410241]of Array['from'](this['_suggestionToController'])){const _0x44ce7b=_0xaa9988['getAllAdjacentSuggestions'](),_0x5d4659=[];for(const _0x2d0b2d of _0x44ce7b){if(!_0x2d0b2d['isInContent'])continue;if(_0x2d0b2d['isMultiRange']){_0x5d4659['push'](..._0x2d0b2d['getRanges']());continue;}const _0x47607e=_0x2d0b2d['getFirstRange']();if(_0x5d4659['length']>0x0){const _0x30d39e=_0x5d4659[0x0]['getJoined'](_0x47607e);if(_0x30d39e){_0x5d4659[0x0]=_0x30d39e;continue;}}_0x5d4659['push'](_0x47607e);}_0x423e36['push']([_0x410241['view'],_0x5d4659]);}return _0x423e36;}),this['listenTo'](_0x1c3be2,'suggestionLoaded',(_0x198523,_0x2a787d)=>{this['listenTo'](_0x2a787d,'change:previous',(_0x2e7f85,_0x4d6e5d,_0x5df330,_0x4b2d56)=>{_0x2a787d['isInContent']&&(null==_0x5df330?(this['_updateController'](_0x4b2d56['head']),this['_handleSuggestionControllerDelayed'](_0x2a787d,!0x1)):(this['_updateController'](_0x5df330['head']),null==_0x4b2d56&&this['_handleSuggestionControllerDelayed'](_0x2a787d,!0x0)));}),null!==_0x2a787d['previous']?this['_updateController'](_0x2a787d['head']):this['_handleSuggestionControllerDelayed'](_0x2a787d,!0x1);}),this['listenTo'](_0x1c3be2,'suggestionUnloaded',(_0x6967c7,_0x2e1f6e,_0x2f2bc0)=>{this['stopListening'](_0x2e1f6e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e1f6e),this['_suggestionToController']['has'](_0x2e1f6e)&&this['_destroyController'](_0x2e1f6e),_0x2f2bc0&&this['_updateController'](_0x2f2bc0['head']);}),this['listenTo'](_0x1c3be2,'suggestionChanged',(_0x4f43ff,_0x578808)=>{this['_updateController'](_0x578808);}),this['listenTo'](_0x2d7b7a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2c627a,'addComment',(_0x296d7e,{threadId:_0x54a587,isFromAdapter:_0x2db90f})=>{if(_0x2db90f||!_0x1c3be2['hasSuggestion'](_0x54a587))return;const _0x1f4b2a=_0x1c3be2['getSuggestion'](_0x54a587);this['_suggestionToController']['get'](_0x1f4b2a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x320530=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38fc4f;for(const _0x49ec14 in _0x320530){const _0x83948=_0x49ec14,_0xde4a64=_0x320530[_0x83948];if('trackChangesLicenseKeyValid'==_0xde4a64||'trackChangesLicenseKeyInvalid'==_0xde4a64||'trackChangesLicenseKeyExpired'==_0xde4a64||'trackChangesLicenseKeyDomainLimit'==_0xde4a64||'trackChangesLicenseKeyNotAllowed'==_0xde4a64||'trackChangesLicenseKeyEvaluationLimit'==_0xde4a64||'trackChangesLicenseKeyTrialLimit'==_0xde4a64||'trackChangesLicenseKeyDevelopmentLimit'==_0xde4a64||'trackChangesLicenseKeyUsageLimit'==_0xde4a64){delete _0x320530[_0x83948],_0x38fc4f=_0xde4a64,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x38fc4f&&_0x320530['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x38fc4f&&_0x320530['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x38fc4f&&_0x320530['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x38fc4f&&_0x320530['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x38fc4f&&_0x320530['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x38fc4f&&_0x320530['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x38fc4f&&_0x320530['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x38fc4f&&_0x320530['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x31981a=this['editor']['plugins']['get']('Annotations'),_0x5fe2d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26acab=Array['from'](_0x31981a['activeAnnotations'],_0x288274=>_0x288274['innerView'])['filter'](_0x383c7a=>this['_viewToController']['has'](_0x383c7a)),_0x4015cd=[];for(const _0xcbedd2 of _0x26acab){const _0x41aae6=this['_viewToController']['get'](_0xcbedd2)['model']['getAllAdjacentSuggestions']();_0x4015cd['push'](..._0x41aae6['reduce']((_0x3cbec4,_0x942371)=>[..._0x3cbec4,..._0x942371['getMarkerNames']()],[]));}_0x5fe2d7['activeMarkers']=_0x4015cd;}['_addUIComponentsToFactory'](){const _0x4ac50e=this['editor'],_0xdf2516=_0x4ac50e['locale'],_0x795e86=o(_0xdf2516,'Track\x20changes'),_0x33b4cb=new _0x86ed9c([{'type':'switchbutton','model':new _0x2ad93e({'withText':!0x0,'isToggleable':!0x0,'label':_0x795e86,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ad93e({'withText':!0x0,'label':o(_0xdf2516,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad93e({'withText':!0x0,'label':o(_0xdf2516,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad93e({'withText':!0x0,'label':o(_0xdf2516,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad93e({'withText':!0x0,'label':o(_0xdf2516,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3a2701 of _0x33b4cb)if(pe(_0x3a2701)){const _0xba6c9=_0x4ac50e['commands']['get'](_0x3a2701['model']['commandName']);_0x3a2701['model']['bind']('isOn','isEnabled')['to'](_0xba6c9,'value','isEnabled');}_0x4ac50e['ui']['componentFactory']['add']('trackChanges',_0x265488=>this['_createToolbarButton'](_0x265488,_0x33b4cb,_0x795e86)),_0x4ac50e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x212cf5=>this['_createMenuBarMenu'](_0x212cf5,_0x33b4cb,_0x795e86));}['_createToolbarButton'](_0x461454,_0x559239,_0x592f56){const _0x2684b4=_0x2749d9(_0x461454,_0x1a251c),_0x478839=this['editor']['commands']['get']('trackChanges');_0x2684b4['buttonView']['set']({'tooltip':_0x592f56,'label':_0x592f56,'icon':Ce}),_0x2684b4['buttonView']['bind']('isOn')['to'](_0x478839,'value'),_0x2684b4['buttonView']['on']('execute',()=>{_0x478839['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x2684b4,_0x559239,{'role':'menu'});const _0x1f442e=[];for(const _0x2f79ab of _0x559239)pe(_0x2f79ab)&&_0x1f442e['push'](this['editor']['commands']['get'](_0x2f79ab['model']['commandName']));const _0x14c1a3=_0x2684b4['buttonView'];return _0x14c1a3['actionView']['unbind']('isEnabled'),_0x14c1a3['arrowView']['unbind']('isEnabled'),_0x14c1a3['actionView']['bind']('isEnabled')['to'](_0x478839,'isEnabled'),_0x14c1a3['arrowView']['bind']('isEnabled')['toMany'](_0x1f442e,'isEnabled',(..._0x279a81)=>_0x279a81['some'](_0x3d1e1a=>_0x3d1e1a)),_0x2684b4['on']('execute',_0x24fc2f=>{this['editor']['execute'](_0x24fc2f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2684b4;}['_createMenuBarMenu'](_0x338042,_0x43f3aa,_0x1a693e){const _0x3bf380=new _0xbfd5ec(_0x338042),_0x24a78b=this['editor']['commands']['get']('trackChanges');_0x3bf380['buttonView']['set']({'label':_0x1a693e,'icon':Ce});const _0x7cbfe2=new _0x29fe6e(_0x338042);for(const _0x5baedb of _0x43f3aa){if('separator'==_0x5baedb['type']){_0x7cbfe2['items']['add'](new _0x3b7718(_0x338042));continue;}const _0x581686=new _0x2fde7e(_0x338042,_0x3bf380),_0x116937=new _0x3fe85d(_0x338042),_0x5a71e8=_0x5baedb['model'];_0x116937['bind'](...Object['keys'](_0x5a71e8))['to'](_0x5a71e8),_0x116937['delegate']('execute')['to'](_0x3bf380),_0x116937['on']('execute',()=>{this['editor']['execute'](_0x5a71e8['commandName']),this['editor']['editing']['view']['focus']();}),_0x581686['children']['add'](_0x116937),_0x7cbfe2['items']['add'](_0x581686);}return _0x3bf380['bind']('isEnabled')['to'](_0x24a78b,'isEnabled'),_0x3bf380['panelView']['children']['add'](_0x7cbfe2),_0x3bf380;}['_initializeController'](_0x1ddadb){const _0xbc744a=this['editor'],_0x397885=_0xbc744a['config'],_0x2c9dc8=_0xbc744a['plugins']['get']('Annotations'),_0x2dc1d1=_0xbc744a['plugins']['get']('CommentsRepository'),_0x24ad1c=_0xbc744a['plugins']['get']('EditorAnnotations'),_0x264312=_0xbc744a['plugins']['get'](_0x3883fc)['me'],_0x3fa8f0=_0x397885['get']('trackChanges')['SuggestionThreadView'],_0x45ff5d=_0x397885['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x380323,CommentThreadInputView:_0x42d403}=_0xbc744a['plugins']['get']('CommentsUI');let _0x5bd5fb,_0xd0e3df,_0x204e47;this['_annotationViews']['has'](_0x1ddadb['id'])?(_0xd0e3df=this['_annotationViews']['get'](_0x1ddadb['id']),_0x5bd5fb=_0xd0e3df['mainView']):(_0x5bd5fb=new _0x3fa8f0(_0xbc744a['locale'],_0x1ddadb,_0x264312,{'disableComments':this['_disableComments'],'editorConfig':{..._0x397885['get']('comments.editorConfig'),'licenseKey':_0x397885['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x397885['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x397885['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x397885['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31f354(_0x397885['get']('locale')),'CommentView':_0x397885['get']('comments')['CommentView'],'CommentsListView':_0x380323,'CommentThreadInputView':_0x42d403,'SuggestionView':_0x45ff5d}),_0x5bd5fb['suggestionView']['acceptButton']['on']('execute',()=>{_0xbc744a['editing']['view']['focus']();}),_0x5bd5fb['suggestionView']['discardButton']['on']('execute',()=>{_0xbc744a['editing']['view']['focus']();}),_0xd0e3df=_0x2c9dc8['createAnnotationView'](this['editor']['locale'],_0x5bd5fb),_0xd0e3df['bind']('isDirty')['to'](_0x5bd5fb,'isDirty'),_0xd0e3df['bind']('length')['to'](_0x5bd5fb),_0xd0e3df['bind']('type')['to'](_0x5bd5fb,'type',_0x4e1d6a=>'suggestion-'+_0x4e1d6a),_0x5bd5fb['on']('escape',()=>{_0x204e47['fire']('escape');}),this['_annotationViews']['set'](_0x1ddadb['id'],_0xd0e3df));const _0x1ae33a=_0x2dc1d1['createCommentThreadController'](_0x1ddadb['commentThread'],_0x5bd5fb),_0x14ec07=new ge(_0xbc744a,_0x1ddadb,_0x5bd5fb,_0x1ae33a),_0x3da896=_0x1ddadb['getAllAdjacentSuggestions']()['filter'](_0x3a19bd=>_0x3a19bd['isInContent']);_0x5bd5fb['descriptionParts']=_0xbc744a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3da896),this['_suggestionToController']['set'](_0x1ddadb,_0x14ec07),this['_viewToController']['set'](_0x5bd5fb,_0x14ec07),_0x204e47=_0x2c9dc8['createAnnotation']({'view':_0xd0e3df,'target':()=>{const _0x4dc988=[],_0x1df162=_0x1ddadb['getAllAdjacentSuggestions']()['filter'](_0x58897f=>_0x58897f['isInContent']);for(const _0x331e63 of _0x1df162)_0x4dc988['push'](..._0x331e63['getMarkers']());return _0xdbe148(_0xbc744a['editing'],_0x4dc988);},'type':()=>'suggestion-'+_0x14ec07['view']['type']}),_0x2dc1d1['_bindAnnotationToEditors'](_0x5bd5fb,_0x204e47),_0x2c9dc8['add'](_0x204e47),_0x24ad1c['registerAnnotation'](_0x204e47);}['_destroyController'](_0x4d68d4){const _0x139dc9=this['editor']['plugins']['get']('CommentsRepository'),_0x3c2864=this['editor']['plugins']['get']('Annotations'),_0x388461=this['_suggestionToController']['get'](_0x4d68d4),_0x3f7b0a=_0x388461['view'],_0x4c4882=_0x3c2864['getByInnerView'](_0x3f7b0a);_0x139dc9['_unbindEditors'](_0x3f7b0a),_0x4c4882&&_0x3c2864['remove'](_0x4c4882),this['_suggestionToController']['delete'](_0x4d68d4),this['_viewToController']['delete'](_0x3f7b0a),_0x388461['destroy']();}['_updateController'](_0x53fa63){if(!_0x53fa63['isInContent']||!this['_suggestionToController']['has'](_0x53fa63))return;const _0x178ac0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b5b8=this['_suggestionToController']['get'](_0x53fa63),_0x2eb692=_0x53fa63['getAllAdjacentSuggestions']();_0x26b5b8['view']['descriptionParts']=_0x178ac0['descriptionFactory']['getDescriptions'](_0x2eb692);}['destroy'](){for(const _0x1e0760 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e0760);for(const _0x43256a of this['_annotationViews']['values']())_0x43256a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0xaed9d5){return'model'in _0xaed9d5;}class k extends _0x52e26d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x221c65){this['editor']['plugins']['get'](p)['adapter']=_0x221c65;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2e53b3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2e53b3);}['getSuggestions']({skipNotAttached:_0x20d13d=!0x1,toJSON:_0x3ff642=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x20d13d,'toJSON':_0x3ff642});}['getSuggestion'](_0x285a6c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x285a6c);}}const w=['Pagination'];class T extends _0x52e26d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b963b=this['editor'];if(_0x2b963b['config']['define']('trackChangesData.editorCreator',_0x331577=>{const _0x4fa4e1=_0x2b963b['model']['document']['getRootNames']()['reduce']((_0x2aa358,_0x2f65a8)=>(_0x2aa358[_0x2f65a8]='',_0x2aa358),{});return _0x2b963b['constructor']['create'](_0x4fa4e1,_0x331577);}),'function'!=typeof _0x2b963b['config']['get']('trackChangesData')['editorCreator'])throw new _0x452bbc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5856cc){return N(this['editor'],!0x0,_0x5856cc);}['getDataWithDiscardedSuggestions'](_0x4ed973){return N(this['editor'],!0x1,_0x4ed973);}}class D extends _0x52e26d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2de2fd){function _0x205523(_0x21660a){return _0x21660a['map'](_0xc1d3d8=>String['fromCharCode'](_0xc1d3d8))['join']('');}super(_0x2de2fd),this['result']='end',_0x2de2fd[_0x205523([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x205523([0x76,0x69,0x65,0x77])][_0x205523([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x205523([0x61,0x75,0x74,0x6f]),_0x2de2fd[_0x205523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x205523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x205523([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x205523([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x205523([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 v(_0x2d81d5){return void 0x0!==_0x2d81d5['getRootsAttributes'];}async function N(_0x30a819,_0x27ff6e,_0x4f81b3){const _0x5eaf66=_0x40ca02(_0x30a819,w);_0x5eaf66['plugins']['push'](p,D),_0x5eaf66['rootsAttributes']=v(_0x30a819)?_0x30a819['getRootsAttributes']():void 0x0;const _0x5994ae=document['createDocumentFragment'](),_0x1c6c47=_0x30a819['config']['get']('trackChangesData')['editorCreator'],_0x419499=await _0x1c6c47(_0x5eaf66,()=>function(_0x4826f0){const _0x51c527=document['createElement']('div');return _0x4826f0['appendChild'](_0x51c527),_0x51c527;}(_0x5994ae));!function(_0x35e728,_0xa82498){const _0x435449=_0x35e728['model']['document']['getRootNames']()['reduce']((_0x1ef7d1,_0x4f5295)=>(_0x1ef7d1[_0x4f5295]=_0x35e728['data']['get']({'rootName':_0x4f5295}),_0x1ef7d1),{}),_0x20aa73=_0x35e728['plugins']['get']('Users')['users']['map'](_0x39cff8=>({'id':_0x39cff8['id'],'name':_0x39cff8['name']})),_0x45a783=_0x35e728['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x183fb6=_0x35e728['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xcc05ec=_0xa82498['plugins']['get']('Users'),_0x5a3db1=_0xa82498['plugins']['get']('TrackChangesEditing'),_0x8e2150=_0xa82498['plugins']['get']('CommentsRepository');for(const _0x51f008 of _0x8e2150['getCommentThreads']())_0x51f008['remove']();for(const _0x4b8fb3 of _0x20aa73)_0xcc05ec['getUser'](_0x4b8fb3['id'])||_0xcc05ec['addUser'](_0x4b8fb3);_0xcc05ec['me']||_0xcc05ec['useAnonymousUser']();for(const _0x14e720 of _0x183fb6)_0x8e2150['addCommentThread'](_0x14e720);for(const _0x2473f9 of _0x45a783)_0x5a3db1['addSuggestionData'](_0x2473f9);_0xa82498['data']['set'](_0x435449);}(_0x30a819,_0x419499),_0x419499['execute'](_0x27ff6e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4a5b20=v(_0x419499)?_0x419499['getFullData'](_0x4f81b3):_0x419499['data']['get'](_0x4f81b3);return await _0x419499['destroy'](),_0x4a5b20;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};