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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +1 -1
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x787654,Plugin as _0x2b8ff3,PendingActions as _0x20ee0c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59c5ca,ObservableMixin as _0xa5c451,uid as _0x400c1f,priorities as _0x135e08,insertToPriorityArray as _0x4cd0c9,logWarning as _0xcb85da,getEnvKeystrokeText as _0x3f0ee7,FocusTracker as _0x11c925,KeystrokeHandler as _0x39654c,Collection as _0x172b74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e2255,IconCancel as _0x4abf8b,IconTrackChanges as _0x1298aa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1cc541,View as _0x4fd8ab,ViewCollection as _0xba4523,FocusCycler as _0x14de0a,ViewModel as _0x481447,createDropdown as _0x1460c2,SplitButtonView as _0x56ac4e,addListToDropdown as _0x3bad70,MenuBarMenuView as _0x26c85b,MenuBarMenuListView as _0x2dbc9c,ListSeparatorView as _0x45be5d,MenuBarMenuListItemView as _0x387ac3,MenuBarMenuListItemButtonView as _0x353757,BodyCollection as _0x156097,Dialog as _0x473705}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x26a833,hashObject as _0x294053,surroundingMarkersDetector as _0x2280f7,FOCUS_ANNOTATION_KEYSTROKE as _0x197c55,AriaDescriptionView as _0x16d209,setupThreadKeyboardNavigation as _0x2faa6e,trimHtml as ti,UserView as _0x4db76f,LateFocusButtonView as _0x21660b,getDateTimeFormatter as _0x5a4ba6,getAllMarkersDomElementsSorted as _0x928d14,sanitizeEditorConfig as _0x115059}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x34db47,LiveRange as _0x2346b0,LivePosition as _0x54fce4,DowncastWriter as _0x231e73}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x25aee8,toWidget as _0x3a9147}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x313f26,set as _0x2e39ab,isEqual as _0xd0b6fb,unset as _0x16ceb0,omit as Ft}from'es-toolkit/compat';import{Delete as _0xb3f168,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x11c59c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x24226c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x787654{['_enabledCommands'];constructor(_0x541999,_0x29d1bf){super(_0x541999),this['_enabledCommands']=_0x29d1bf,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x569903 of this['editor']['commands']['commands']())_0x569903['affectsData']&&!this['_enabledCommands']['has'](_0x569903)&&_0x569903['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1bd325 of this['editor']['commands']['commands']())_0x1bd325['affectsData']&&!this['_enabledCommands']['has'](_0x1bd325)&&_0x1bd325['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x787654{['_suggestions'];constructor(_0x12c381,_0x2382ba){super(_0x12c381),this['_suggestions']=_0x2382ba,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x504907){const _0x31b8d6=this['_suggestions']['get'](_0x504907);if(!_0x31b8d6)throw new _0x59c5ca('track-changes-accept-suggestion-not-found',this);const _0x55f26b=_0x31b8d6['getRanges']();this['editor']['model']['canEditAt'](_0x55f26b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x31b8d6);}}class R extends _0x787654{['_suggestions'];constructor(_0xd5d73d,_0x42dadc){super(_0xd5d73d),this['_suggestions']=_0x42dadc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c5d51){const _0x2577de=this['_suggestions']['get'](_0x5c5d51);if(!_0x2577de)throw new _0x59c5ca('track-changes-discard-suggestion-not-found',this);const _0x408ea1=_0x2577de['getRanges']();this['editor']['model']['canEditAt'](_0x408ea1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2577de);}}function ls(_0x235e25,_0x29dde7){let _0xba47d0='';return _0xba47d0+=_0x235e25['split']('*')['map']((_0x1027de,_0x556c43)=>_0x556c43%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1027de)+'</span>':nn(_0x1027de))['join'](''),_0x29dde7&&(_0xba47d0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x29dde7['value']+'\x22\x20title=\x22'+_0x29dde7['title']+'\x22></span>'),_0xba47d0;}function nn(_0x1e229e){const _0x19ba39=document['createElement']('span');return _0x19ba39['innerText']=_0x1e229e,_0x19ba39['innerHTML'];}function ts(_0x33be64){return _0x33be64['sort']((_0x1ee23b,_0x24133f)=>'deletion'==_0x1ee23b['type']&&'deletion'!=_0x24133f['type']?-0x1:'deletion'!=_0x1ee23b['type']&&'deletion'==_0x24133f['type']?0x1:0x0);}function to(_0x562d0d,_0x3f318e){let _0x245167,_0x438ad1=0x0;const _0x43913a=[],_0x59a088=_0x3f318e['schema'];for(;_0x438ad1<_0x562d0d['length'];){const _0x2d7d63=_0x562d0d[_0x438ad1],_0xf76fbb=_0x562d0d[_0x438ad1+0x1];_0x245167||(_0x245167=_0x3f318e['createPositionBefore'](_0x2d7d63)),on(_0x3f318e,_0x2d7d63,_0xf76fbb)||(_0x43913a['push'](_0x3f318e['createRange'](_0x245167,_0x59a088['isObject'](_0x2d7d63)?_0x3f318e['createPositionAfter'](_0x2d7d63):_0x3f318e['createPositionAt'](_0x2d7d63,'end'))),_0x245167=null),_0x438ad1++;}return _0x43913a;}function on(_0x2d9c73,_0x291c05,_0x25f8c0){if(!_0x25f8c0)return!0x1;const _0x470e4c=_0x2d9c73['createPositionAfter'](_0x291c05),_0x28cd33=_0x2d9c73['createPositionBefore'](_0x25f8c0);return _0x470e4c['isTouching'](_0x28cd33);}function rs(_0x325bd5,_0x89c165,_0x417608){for(;_0x417608['length'];){const _0x385989=_0x417608['splice'](0x0,0x64);_0x325bd5['change'](()=>{for(const _0x5e057f of _0x385989)_0x5e057f['isInContent']&&_0x89c165['execute'](_0x5e057f['id']);});}}class x extends _0x787654{['_command'];['_suggestions'];constructor(_0x4e179d,_0x252a84,_0x290916){super(_0x4e179d),this['_command']=_0x252a84,this['_suggestions']=_0x290916,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54619b=Array['from'](this['_suggestions']['values']())['some'](_0xaf91f9=>_0xaf91f9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x54619b;}['execute'](){const _0x1e2cc7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x261f2c of _0x1e2cc7){const _0x4572eb=_0x261f2c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4572eb))return;}rs(this['editor']['model'],this['_command'],_0x1e2cc7);}}class E extends _0x787654{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4323d7,_0x5abbf7,_0x442296){super(_0x4323d7),this['_command']=_0x5abbf7,this['_suggestions']=_0x442296,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52db0a=this['editor']['model']['document']['selection'],_0x425478=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x417386,_0x1c0867){const _0x10d93c=Array['from'](_0x417386['getRanges']()),_0x408f3a=new Set();for(const _0x200343 of _0x1c0867)if(_0x200343['isInContent']){for(const _0x4f9a95 of _0x10d93c)for(const _0xb59c1c of _0x200343['getRanges']())(_0x4f9a95['isIntersecting'](_0xb59c1c)||_0x417386['isCollapsed']&&!_0x200343['isMultiRange']&&_0x200343['next']&&_0xb59c1c['end']['isTouching'](_0x4f9a95['start']))&&_0x408f3a['add'](_0x200343);}return _0x408f3a;}(_0x52db0a,_0x425478),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xcd9995=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4485d6 of _0xcd9995){const _0x118855=_0x4485d6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x118855))return;}rs(this['editor']['model'],this['_command'],_0xcd9995);}}class o extends/* #__PURE__ -- @preserve */
24
- _0xa5c451(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x12cac6,_0xbb9552){super(),this['id']=_0xbb9552['id'],this['type']=_0xbb9552['type'],this['subType']=_0xbb9552['subType']||null,this['author']=_0xbb9552['author'],this['creator']=_0xbb9552['creator']||_0xbb9552['author'],this['isExternal']=Boolean(_0xbb9552['attributes']&&_0xbb9552['attributes']['@external']),this['data']=null,this['_model']=_0x12cac6,this['_onAccept']=_0xbb9552['onAccept'],this['_onDiscard']=_0xbb9552['onDiscard'],this['_onAttributesChange']=_0xbb9552['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xbb9552['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x2a09cf=this;for(;_0x2a09cf['previous'];)_0x2a09cf=_0x2a09cf['previous'];return _0x2a09cf;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3e470a){this['_markerNames']['add'](_0x3e470a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x165394=>this['_model']['markers']['get'](_0x165394))['filter'](_0x32a667=>_0x32a667);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32d3e6=>{for(const _0x655ecc of this['getMarkers']())_0x32d3e6['removeMarker'](_0x655ecc);}),this['_markerNames']['clear']();}['removeMarker'](_0x459bc3){this['_model']['change'](_0x8295fd=>{_0x8295fd['removeMarker'](_0x459bc3);}),this['_markerNames']['delete'](_0x459bc3);}['addRange'](_0x36884d){const _0x195f76='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x195f76),this['_model']['change'](_0xab03dd=>{_0xab03dd['addMarker'](_0x195f76,{'range':_0x36884d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2f65bf){for(const _0x232c77 of this['getRanges']())if(_0x232c77['isIntersecting'](_0x2f65bf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x297200=>_0x297200['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xaa605d,_0x5b53cb)=>[..._0xaa605d,..._0x5b53cb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ba4d3=this['getRanges']();if(0x1!=_0x2ba4d3['length'])return null;const _0x532871=_0x2ba4d3[0x0],_0xb10ff6=_0x532871['start']['nodeAfter'],_0x94b234=_0x532871['end']['nodeBefore'];return _0xb10ff6 instanceof _0x34db47?_0xb10ff6!=_0x94b234?null:_0xb10ff6:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x291aae=[];let _0x47e424=this['head'];for(;_0x47e424;)_0x291aae['push'](_0x47e424),_0x47e424=_0x47e424['next'];return _0x291aae;}['setAttribute'](_0x127520,_0x214a8a){const _0x7a184=_0x313f26(this['attributes']);_0x2e39ab(_0x7a184,_0x127520,_0x214a8a),_0xd0b6fb(_0x7a184,this['attributes'])||(this['attributes']=_0x7a184,this['_onAttributesChange'](_0x7a184));}['removeAttribute'](_0x18579b){const _0x31b00f=_0x313f26(this['attributes']);_0x16ceb0(_0x31b00f,_0x18579b),_0xd0b6fb(_0x31b00f,this['attributes'])||(this['attributes']=_0x31b00f,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x400c1f()['substr'](0x1,0x5);}}function c(_0x2e0809,_0x52c6b5,_0x1bd9bd){const _0x493c3d=_0x2e0809['t'],t=_0x2e0809['t'];switch(_0x52c6b5){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1bd9bd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1bd9bd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1bd9bd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1bd9bd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1bd9bd);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x1bd9bd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1bd9bd);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1bd9bd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1bd9bd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1bd9bd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1bd9bd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1bd9bd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1bd9bd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1bd9bd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1bd9bd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1bd9bd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1bd9bd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1bd9bd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1bd9bd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1bd9bd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1bd9bd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1bd9bd);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x1bd9bd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1bd9bd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1bd9bd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1bd9bd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1bd9bd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1bd9bd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1bd9bd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1bd9bd);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1bd9bd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1bd9bd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1bd9bd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1bd9bd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1bd9bd);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1bd9bd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1bd9bd);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x1bd9bd);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1bd9bd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1bd9bd);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x1bd9bd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1bd9bd);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x1bd9bd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1bd9bd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1bd9bd);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x1bd9bd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1bd9bd);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x493c3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1bd9bd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x493c3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1bd9bd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1bd9bd);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x1bd9bd);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x1bd9bd);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x1bd9bd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x52c6b5;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2bcc7d,_0x558af6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2bcc7d,this['_locale']=_0x558af6;}['getDescriptions'](_0x2764f9){const _0x4fb019=[],_0x102fc7=new Set(),_0xc209e8=new Set();for(let _0x57111a=0x0;_0x57111a<_0x2764f9['length'];_0x57111a++){const _0x2df106=_0x2764f9[_0x57111a];if(!_0x2df106['isInContent'])continue;const _0x25c862=this['_handleCustomCallbackDescription'](_0x2df106);if(_0x25c862){if(null!=_0x2df106['subType']){if(_0x102fc7['has'](_0x2df106['subType']))continue;_0x102fc7['add'](_0x2df106['subType']);}_0x4fb019['push'](_0x25c862);}else{if('attribute'!=_0x2df106['type'])'insertion'!=_0x2df106['type']&&'deletion'!=_0x2df106['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4fb019,_0x2df106,_0x2764f9[_0x57111a+0x1]);else{const _0x17746e=_0x2df106['data']['key'];if(_0xc209e8['has'](_0x17746e))continue;_0xc209e8['add'](_0x2df106['data']['key']),_0x17746e==u?this['_handleRenameSuggestionDescription'](_0x4fb019,_0x2df106):this['_handleAttributeSuggestionDescription'](_0x4fb019,_0x2df106);}}}return this['_resolveDescriptionItems'](_0x4fb019);}['registerDescriptionCallback'](_0x399d9b){this['_customCallbacks']['push'](_0x399d9b);}['registerElementLabel'](_0xa7dbc6,_0x1b9b84,_0x3292a4=_0x135e08['normal']){'function'==typeof _0xa7dbc6?_0x4cd0c9(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa7dbc6,'label':_0x1b9b84,'priority':_0x3292a4}):this['_itemLabels']['set'](_0xa7dbc6,_0x1b9b84);}['registerAttributeLabel'](_0x3e5a10,_0x339c66){this['_attributeLabels']['set'](_0x3e5a10,_0x339c66);}['getItemLabel'](_0x17ecb9,_0x4bf0f9=0x1){let _0x18e78f;for(const _0x2ecefe of this['_itemLabelsCallbacks'])if(_0x2ecefe['matchingCallback'](_0x17ecb9)){_0x18e78f=_0x2ecefe['label'];break;}return _0x18e78f||(_0x18e78f=this['_itemLabels']['get'](_0x17ecb9['name'])),_0x18e78f?_0x18e78f(_0x4bf0f9):0x1!==_0x4bf0f9?_0x4bf0f9+'\x20'+_0x17ecb9['name']+'s':''+_0x17ecb9['name'];}['_addDescriptionItems'](_0x4710c8,_0x294496){const _0x2d7719=_0x294496['getFirstRange']()['getWalker'](),_0x57b268='insertion'==_0x294496['type']?'add':'remove';for(const _0x523a34 of _0x2d7719){const _0x19dd0f=_0x523a34['item'],_0x2b11a8=_0x4710c8[_0x4710c8['length']-0x1];if(_0x19dd0f['is']('$textProxy'))_0x2b11a8&&_0x2b11a8['type']['indexOf']('Container')>-0x1&&_0x4710c8['pop'](),_0x2b11a8&&'text'==_0x2b11a8['type']?_0x2b11a8[_0x57b268]+=_0x19dd0f['data']:_0x4710c8['push']({'type':'text','add':'add'==_0x57b268?_0x19dd0f['data']:'','remove':'remove'==_0x57b268?_0x19dd0f['data']:''});else{if(this['_schema']['isObject'](_0x19dd0f)){const _0x2185a6=_0x19dd0f;if(_0x2b11a8&&_0x2b11a8['type']['indexOf']('Container')>-0x1&&_0x4710c8['pop'](),'elementEnd'==_0x523a34['type'])continue;_0x2b11a8&&_0x2b11a8['type']==_0x57b268+'Object'&&_0x2b11a8['element']['name']==_0x2185a6['name']?_0x2b11a8['quantity']++:_0x4710c8['push']({'type':_0x57b268+'Object','element':_0x2185a6,'quantity':0x1}),_0x2d7719['skip'](_0x20d2bb=>!('elementEnd'==_0x20d2bb['type']&&_0x20d2bb['item']==_0x19dd0f));}else{if(this['_schema']['checkChild'](_0x19dd0f,'$text')||_0x19dd0f['is']('element','softBreak')){const _0xcc2a14=_0x19dd0f;if('add'==_0x57b268&&'elementStart'==_0x523a34['type']||'remove'==_0x57b268&&'elementEnd'==_0x523a34['type'])continue;if(_0x2b11a8&&-0x1==_0x2b11a8['type']['indexOf']('Container')){'text'==_0x2b11a8['type']&&(_0x2b11a8[_0x57b268]+='\x0a');continue;}let _0x3591da;if(_0x3591da='add'==_0x57b268?_0xcc2a14['nextSibling']&&!this['_schema']['isObject'](_0xcc2a14['nextSibling'])?_0xcc2a14['nextSibling']:null:_0xcc2a14['previousSibling']&&!this['_schema']['isObject'](_0xcc2a14['previousSibling'])?_0xcc2a14['previousSibling']:null,_0xcc2a14['isEmpty']||_0x3591da&&_0x3591da['isEmpty']){const _0x2f0278=_0x3591da&&_0x3591da['isEmpty']?_0x3591da:_0xcc2a14;_0x2b11a8&&_0x2b11a8['type']==_0x57b268+'EmptyContainer'&&_0x2b11a8['element']['name']==_0x2f0278['name']?_0x2b11a8['quantity']++:_0x4710c8['push']({'type':_0x57b268+'EmptyContainer','element':_0x2f0278,'quantity':0x1});}else _0x4710c8['push']({'type':_0x57b268+'Container','element':_0xcc2a14});}}}}}['_resolveDescriptionItems'](_0xa70615){const _0x19d76c=this['_locale'],_0x34ac36=[],_0x49366b=[],_0xb893e4=[];for(const _0x2daf6c of _0xa70615)switch(_0x2daf6c['type']){case'text':if(_0x2daf6c['add']=_0x2daf6c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2daf6c['remove']=_0x2daf6c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2daf6c['add']&&''!=_0x2daf6c['remove']){_0x34ac36['push']({'type':'replace','content':c(_0x19d76c,'REPLACE_TEXT',['\x22'+_0x2daf6c['remove']+'\x22','\x22'+_0x2daf6c['add']+'\x22'])});continue;}if(null!=_0x2daf6c['add']['match'](/^ +$/)){_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Insert:*\x20%0',c(_0x19d76c,'ELEMENT_SPACE',_0x2daf6c['add']['length']))});continue;}if(null!=_0x2daf6c['remove']['match'](/^ +$/)){_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Remove:*\x20%0',c(_0x19d76c,'ELEMENT_SPACE',_0x2daf6c['remove']['length']))});continue;}if(''!=_0x2daf6c['add']){_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Insert:*\x20%0','\x22'+_0x2daf6c['add']+'\x22')});continue;}_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Remove:*\x20%0','\x22'+_0x2daf6c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Insert:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Remove:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'addContainer':_0x34ac36['push']({'type':'insertion','content':c(_0x19d76c,'*Split:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'removeContainer':_0x34ac36['push']({'type':'deletion','content':c(_0x19d76c,'*Merge:*\x20%0',this['getItemLabel'](_0x2daf6c['element'],_0x2daf6c['quantity']))});continue;case'addFormat':_0x49366b['push'](_0x2daf6c['key']);continue;case'removeFormat':_0xb893e4['push'](_0x2daf6c['key']);continue;default:_0x34ac36['push'](_0x2daf6c);}if(_0x49366b['length']){const _0x2acc04=_0x49366b['map'](_0x245cab=>this['_attributeLabels']['has'](_0x245cab)?this['_attributeLabels']['get'](_0x245cab):_0x245cab)['join'](',\x20');_0x34ac36['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2acc04)});}if(_0xb893e4['length']){const _0x529362=_0xb893e4['map'](_0x57d236=>this['_attributeLabels']['has'](_0x57d236)?this['_attributeLabels']['get'](_0x57d236):_0x57d236)['join'](',\x20');_0x34ac36['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x529362)});}return _0x34ac36;}['_handleCustomCallbackDescription'](_0x1e5b01){for(const _0x3f714a of this['_customCallbacks']){const _0x41c9fe=_0x3f714a(_0x1e5b01);if(_0x41c9fe&&'type'in _0x41c9fe)return _0x41c9fe;}}['_handleAttributeSuggestionDescription'](_0x3395e8,_0x314a60){const _0x100fe2=_0x314a60['data'],_0x58c316=void 0x0===_0x100fe2['newValue']?'removeFormat':'addFormat';_0x3395e8['push']({'type':_0x58c316,'key':_0x100fe2['key']});}['_handleRenameSuggestionDescription'](_0x2fcaaa,_0x3b8f4a){_0x2fcaaa['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3b8f4a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x32c2ce,_0x3b481f,_0x21cc25){if(this['_addDescriptionItems'](_0x32c2ce,_0x3b481f),_0x21cc25&&_0x21cc25['getFirstRange']()&&!_0x3b481f['getFirstRange']()['end']['isEqual'](_0x21cc25['getFirstRange']()['start'])){const _0x2a68e5=_0x32c2ce[_0x32c2ce['length']-0x1],_0x519faa='insertion'==_0x3b481f['type']?'add':'remove';_0x2a68e5&&'text'==_0x2a68e5['type']&&(_0x2a68e5[_0x519faa]+='\x0a');}}}class U extends _0x2b8ff3{['afterInit'](){const _0x503fe9=this['editor'],_0x497835=_0x503fe9['plugins']['get']('TrackChangesEditing');_0x503fe9['commands']['get']('showAIAssistant')&&_0x497835['enableCommand']('showAIAssistant');}}class V extends _0x2b8ff3{['afterInit'](){const _0x56d31b=this['editor'],_0x4d7865=_0x56d31b['locale'];if(!_0x56d31b['plugins']['has']('AlignmentEditing'))return;const _0x5e2313=_0x56d31b['plugins']['get']('TrackChangesEditing');_0x5e2313['enableDefaultAttributesIntegration']('alignment'),_0x5e2313['registerBlockAttribute']('alignment'),_0x5e2313['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4d7865,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x428a12=this['editor'],_0x3a0c1d=_0x428a12['locale'];_0x428a12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34cb25=>{if('formatBlock'!=_0x34cb25['type'])return;const {data:_0x4c68ed}=_0x34cb25;if(_0x4c68ed&&'alignment'==_0x4c68ed['commandName']){const _0x3478e9=_0x4c68ed['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3a0c1d,'*Format:*\x20%0',function(_0x3f6512){switch(_0x3f6512){case'left':return c(_0x3a0c1d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3a0c1d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3a0c1d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3a0c1d,'FORMAT_JUSTIFY_TEXT');}}(_0x3478e9))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2b8ff3{['afterInit'](){const _0x5741b9=this['editor'],_0x3c1520=_0x5741b9['plugins']['get']('TrackChangesEditing'),_0x51db55=_0x5741b9['locale'];for(const _0x10f04e of Zt){if(!_0x5741b9['plugins']['has'](_0x10f04e))continue;const _0x449bab=_0x10f04e['slice'](0x0,-0x7)['toLowerCase'](),_0x512c11='FORMAT_'+_0x449bab['toUpperCase']();_0x3c1520['enableDefaultAttributesIntegration'](_0x449bab),_0x3c1520['registerInlineAttribute'](_0x449bab),_0x3c1520['descriptionFactory']['registerAttributeLabel'](_0x449bab,c(_0x51db55,_0x512c11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5de908=this['editor'],_0x5ac4db=_0x5de908['locale'],_0x4196fa=_0x5de908['plugins']['get']('TrackChangesEditing');function _0x2cadbc(_0x522aa1,_0x5e6fdf){_0x4196fa['descriptionFactory']['registerDescriptionCallback'](_0x1f2c2a=>{if('formatInline'!=_0x1f2c2a['type'])return;const {data:_0x2a3030}=_0x1f2c2a;return _0x2a3030&&_0x2a3030['commandName']===_0x522aa1?_0x2a3030['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5ac4db,'*Format:*\x20%0',_0x5e6fdf)}:{'type':'format','content':c(_0x5ac4db,'*Remove\x20format:*\x20%0',_0x5e6fdf)}:void 0x0;});}_0x2cadbc('bold',c(_0x5ac4db,'FORMAT_BOLD')),_0x2cadbc('italic',c(_0x5ac4db,'FORMAT_ITALIC')),_0x2cadbc('underline',c(_0x5ac4db,'FORMAT_UNDERLINE')),_0x2cadbc('code',c(_0x5ac4db,'FORMAT_CODE')),_0x2cadbc('strikethrough',c(_0x5ac4db,'FORMAT_STRIKETHROUGH')),_0x2cadbc('subscript',c(_0x5ac4db,'FORMAT_SUBSCRIPT')),_0x2cadbc('superscript',c(_0x5ac4db,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2b8ff3{['afterInit'](){const _0x1c5c2b=this['editor'],_0x216a46=_0x1c5c2b['locale'];if(!_0x1c5c2b['plugins']['has']('BlockQuoteEditing'))return;const _0x152ba5=_0x1c5c2b['plugins']['get']('TrackChangesEditing'),_0x10af6f=this['editor']['commands']['get']('blockQuote');_0x152ba5['enableCommand']('blockQuote',(_0x265888,_0x30c2fe={})=>{const _0x4eb1ab=this['editor']['model']['document']['selection'],_0x28b1cd=_0x30c2fe&&void 0x0!==_0x30c2fe['forceValue']?_0x30c2fe['forceValue']:!_0x10af6f['value'];let _0x5ae6e6=[];if(_0x28b1cd){const _0x5dc24a=Array['from'](_0x4eb1ab['getSelectedBlocks']())['filter'](_0x43b67c=>oo(_0x43b67c)||function(_0xfdf9d,_0x3939f4){const _0x3696d8=_0x3939f4['checkChild'](_0xfdf9d['parent'],'blockQuote'),_0x1aa552=_0x3939f4['checkChild'](['$root','blockQuote'],_0xfdf9d);return _0x3696d8&&_0x1aa552;}(_0x43b67c,this['editor']['model']['schema']));_0x5ae6e6=to(_0x5dc24a,_0x1c5c2b['model']);}else{const _0x9dfa30=Array['from'](_0x4eb1ab['getSelectedBlocks']())['filter'](_0x21c8cc=>oo(_0x21c8cc));_0x5ae6e6=to(_0x9dfa30,_0x1c5c2b['model']);}_0x1c5c2b['model']['change'](()=>{for(const _0x18af97 of _0x5ae6e6)_0x152ba5['markBlockFormat'](_0x18af97,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x28b1cd}]});});}),_0x152ba5['descriptionFactory']['registerDescriptionCallback'](_0x2ba940=>{const {data:_0x12d085}=_0x2ba940;if(_0x12d085&&'blockQuote'==_0x12d085['commandName']){const _0x21085e=c(_0x216a46,'ELEMENT_BLOCK_QUOTE');return _0x12d085['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x216a46,'*Set\x20format:*\x20%0',_0x21085e)}:{'type':'format','content':c(_0x216a46,'*Remove\x20format:*\x20%0',_0x21085e)};}});}}function oo(_0x1a12df){return'blockQuote'==_0x1a12df['parent']['name'];}class L extends _0x2b8ff3{['afterInit'](){const _0x942de2=this['editor'],_0x571e18=_0x942de2['locale'],_0x76489e=_0x942de2['plugins']['get']('TrackChangesEditing');_0x942de2['plugins']['has']('BookmarkEditing')&&(_0x76489e['enableCommand']('insertBookmark'),_0x76489e['enableDefaultAttributesIntegration']('updateBookmark'),_0x76489e['registerBlockAttribute']('bookmarkId'),_0x76489e['descriptionFactory']['registerDescriptionCallback'](_0x376217=>{if('insertion'!=_0x376217['type']&&'deletion'!=_0x376217['type']&&'attribute'!=_0x376217['type'])return;const _0x3e26f2=_0x376217['getContainedElement']();if(null==_0x3e26f2)return;if(!_0x3e26f2['is']('element','bookmark'))return;const _0x29ac8f=_0x3e26f2['getAttribute']('bookmarkId');if('insertion'==_0x376217['type'])return{'type':'insertion','content':c(_0x571e18,'*Insert:*\x20%0','\x22'+_0x29ac8f+'\x22\x20'+c(_0x571e18,'ELEMENT_BOOKMARK'))};if('deletion'==_0x376217['type'])return{'type':'deletion','content':c(_0x571e18,'*Remove:*\x20%0','\x22'+_0x29ac8f+'\x22\x20'+c(_0x571e18,'ELEMENT_BOOKMARK'))};const {data:_0x4a4836}=_0x376217;if(!_0x4a4836||'bookmarkId'!=_0x4a4836['key'])return;return{'type':'format','content':c(_0x571e18,'*Set\x20bookmark:*\x20%0','\x22'+_0x4a4836['newValue']+'\x22')};}));}}class J extends _0x2b8ff3{['afterInit'](){const _0x51bcbf=this['editor'];_0x51bcbf['plugins']['has']('CaseChange')&&(_0x51bcbf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51bcbf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51bcbf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2b8ff3{['afterInit'](){const _0xa4e198=this['editor'];_0xa4e198['commands']['get']('ckbox')&&_0xa4e198['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2b8ff3{['afterInit'](){const _0x5ee517=this['editor'];if(!_0x5ee517['plugins']['has']('CodeBlock'))return;const _0x588ab4=_0x5ee517['plugins']['get']('TrackChangesEditing'),_0x58d91d=_0x5ee517['locale'],_0x202e1f=_0x5ee517['config']['get']('codeBlock')['languages'],_0x64bc49=_0x5ee517['commands']['get']('codeBlock');_0x588ab4['enableCommand']('indentCodeBlock'),_0x588ab4['enableCommand']('outdentCodeBlock'),_0x588ab4['enableCommand']('codeBlock',(_0x40b4be,_0xcaaec9={})=>{const _0x19c154=_0x5ee517['model'],_0x134609=_0x5ee517['model']['document']['selection'],_0x176bca=_0xcaaec9&&void 0x0!==_0xcaaec9['forceValue']?_0xcaaec9['forceValue']:!_0x64bc49['value'];let _0x4d8152;_0xcaaec9['language']||(_0xcaaec9['language']=_0x202e1f[0x0]['language']),_0x4d8152=_0x176bca?Array['from'](_0x134609['getSelectedBlocks']())['filter'](_0x5c162f=>eo(_0x5c162f)||function(_0x5a6939,_0x3113cf){if(_0x5a6939['is']('rootElement')||_0x3113cf['isLimit'](_0x5a6939))return!0x1;return _0x3113cf['checkChild'](_0x5a6939['parent'],'codeBlock');}(_0x5c162f,_0x19c154['schema'])):Array['from'](_0x134609['getSelectedBlocks']())['filter'](_0x2d6f55=>eo(_0x2d6f55));const _0x30e4c4=to(_0x4d8152,_0x19c154);_0x19c154['change'](()=>{for(const _0xe68d32 of _0x30e4c4)_0x588ab4['markBlockFormat'](_0xe68d32,{'commandName':'codeBlock','commandParams':[{..._0xcaaec9,'forceValue':_0x176bca}],'formatGroupId':'blockName'});});}),(_0x588ab4['descriptionFactory']['registerElementLabel']('codeBlock',_0x1de948=>c(_0x58d91d,'ELEMENT_CODE_BLOCK',_0x1de948)),_0x588ab4['descriptionFactory']['registerDescriptionCallback'](_0x19c31c=>{if('formatBlock'!=_0x19c31c['type'])return;const _0x118d05=_0x58d91d['t'],{data:_0x239460}=_0x19c31c;if(!_0x239460||'codeBlock'!=_0x239460['commandName'])return;const _0x1e8509=_0x239460['commandParams'][0x0]['language'],_0x877996=_0x118d05(_0x202e1f['find'](_0x62f0f7=>_0x62f0f7['language']===_0x1e8509)['label'])['toLowerCase']();return _0x239460['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58d91d,'*Set\x20format:*\x20%0',c(_0x58d91d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x877996+')')}:{'type':'format','content':c(_0x58d91d,'*Remove\x20format:*\x20%0',c(_0x58d91d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3cbc92){return'codeBlock'==_0x3cbc92['name'];}class q extends _0x2b8ff3{['afterInit'](){const _0x1d4a86=this['editor'];if(!_0x1d4a86['plugins']['has']('CommentsEditing'))return;_0x1d4a86['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11fbce,_0x1cf9a9,_0x1b5355){const _0x3e8518=[];for(const _0x42ca1a of _0x1cf9a9['getItems']())_0x42ca1a['hasAttribute'](_0x11fbce)&&_0x3e8518['push'](_0x1b5355['createRangeOn'](_0x42ca1a));return _0x3e8518;}function Fe(_0x22a068,_0x4fbbd6,{showActiveMarker:_0x196811=!0x0}={}){const _0x1b5944=_0x22a068['plugins']['get']('TrackChangesEditing');return(_0x205e88,_0x48acd1,_0x480c19)=>{if(!_0x480c19['consumable']['test'](_0x48acd1['markerRange'],_0x205e88['name']))return;const _0x279fb7=_0x48acd1['markerRange']['getWalker'](),_0x3f177d=_0x48acd1['markerRange']['start'],_0xb55da7=_0x22a068['model']['schema'];let _0x190500=null,_0x446842=null,_0x3b4472=!0x1,_0x511dab=!0x1;for(const _0x267f63 of _0x279fb7){const _0x494ad7=_0x267f63['item'];_0x3b4472=_0x3b4472||_0xb55da7['isContent'](_0x494ad7);const _0x19c5d1=_0x480c19['mapper']['toViewElement'](_0x494ad7);if(_0x19c5d1&&_0x19c5d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x267f63['type']&&(_0xb55da7['isBlock'](_0x494ad7)&&!_0xb55da7['isLimit'](_0x494ad7)&&(_0x494ad7['nextSibling']||_0x3f177d['isAtEnd']?_0x190500&&_0x190500['parent']==_0x494ad7||(_0x190500=_0x494ad7,_0x40dd1e(_0x267f63['previousPosition']),_0x511dab=!0x0):_0x446842=_0x446842||_0x267f63['previousPosition']));}function _0x40dd1e(_0x44be87){const {authorId:_0x34330e}=_0x1b5944['_splitMarkerName'](_0x48acd1['markerName']),_0x4af9ac=_0x480c19['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fbbd6,'data-author-id':_0x34330e}),_0x3adbbb=_0x480c19['mapper']['toViewPosition'](_0x44be87);_0x196811&&_0x1b5944['activeMarkers']['includes'](_0x48acd1['markerName'])&&_0x480c19['writer']['addClass']('ck-suggestion-marker--active',_0x4af9ac),_0x480c19['writer']['insert'](_0x3adbbb,_0x4af9ac),_0x480c19['mapper']['bindElementToMarker'](_0x4af9ac,_0x48acd1['markerName']);}_0x3b4472||_0x511dab||!_0x446842||_0x40dd1e(_0x446842);};}class z extends _0x2b8ff3{static get['requires'](){return[_0xb3f168];}['init'](){const _0x101d7e=this['editor'],_0x15b0c9=_0x101d7e['plugins']['get']('TrackChangesEditing');_0x15b0c9['enableCommand']('delete');const _0x3ae427=_0x101d7e['commands']['get']('deleteForward');_0x15b0c9['enableCommand']('deleteForward',(_0xa2c835,_0x289a26={})=>{const _0x3dd370=_0x101d7e['model']['createSelection'](_0x101d7e['model']['document']['selection']);_0x3dd370['isCollapsed']&&_0x101d7e['model']['modifySelection'](_0x3dd370,{'direction':'forward','unit':_0x289a26['unit']});const _0x55f0bb=_0x3dd370['getFirstRange'](),_0x37c5a4=_0x2346b0['fromRange'](_0x55f0bb);let _0x421518;_0xa2c835(_0x289a26),_0x421518='$graveyard'==_0x37c5a4['root']['rootName']?_0x101d7e['model']['createRange'](_0x55f0bb['start']):_0x101d7e['model']['createRange'](_0x37c5a4['start'],_0x37c5a4['end']),_0x37c5a4['detach'](),_0x101d7e['model']['enqueueChange'](_0x3ae427['buffer']['batch'],_0x1dc1b1=>{_0x3ae427['buffer']['lock'](),_0x1dc1b1['setSelection'](_0x1dc1b1['createRange'](_0x421518['end'])),_0x3ae427['buffer']['unlock']();});}),_0x101d7e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x101d7e,'merge'),{'priority':'high'}),_0x101d7e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xcbec44,_0x1cdc3d,_0x3d22ae)=>{_0x3d22ae['options']['showSuggestionHighlights']&&Fe(_0x101d7e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xcbec44,_0x1cdc3d,_0x3d22ae);},{'priority':'high'}),_0x101d7e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3a8872,_0x4efa5c,_0x4d6656)=>{const _0x1027b1=_0x4d6656['mapper']['markerNameToElements'](_0x4efa5c['markerName']);if(_0x1027b1){for(const _0x13d125 of _0x1027b1)_0x13d125['is']('uiElement')&&(_0x4d6656['mapper']['unbindElementFromMarkerName'](_0x13d125,_0x4efa5c['markerName']),_0x4d6656['writer']['remove'](_0x13d125));}},{'priority':'high'});}}class W extends _0x2b8ff3{['afterInit'](){const _0x468cc8=this['editor'];if(!_0x468cc8['plugins']['has']('ListEditing'))return;const _0x232140=_0x468cc8['locale'],_0x208e83=_0x468cc8['plugins']['get']('TrackChangesEditing'),_0x3e5aa1=_0x468cc8['plugins']['has']('TodoListEditing'),_0x3349bb=!!_0x468cc8['config']['get']('list.multiBlock');function _0x17e8c3(_0x132a13){return{'type':'format','content':''+c(_0x232140,'*Set\x20format:*\x20%0',_0x132a13)};}function _0x4de30a(_0x5aaf2f){return{'type':'format','content':''+c(_0x232140,'*Remove\x20format:*\x20%0',_0x5aaf2f)};}_0x208e83['enableDefaultAttributesIntegration']('numberedList'),_0x208e83['enableDefaultAttributesIntegration']('bulletedList'),_0x208e83['enableDefaultAttributesIntegration']('customNumberedList'),_0x208e83['enableDefaultAttributesIntegration']('customBulletedList'),_0x208e83['enableDefaultAttributesIntegration']('indentList'),_0x208e83['enableDefaultAttributesIntegration']('outdentList'),_0x208e83['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x208e83['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x208e83['registerBlockAttribute']('listItemId'),_0x208e83['registerBlockAttribute']('listType'),_0x208e83['registerBlockAttribute']('listIndent'),_0x3349bb&&(_0x208e83['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x208e83['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3e5aa1&&(_0x208e83['enableDefaultAttributesIntegration']('todoList'),_0x208e83['enableDefaultAttributesIntegration']('checkTodoList'),_0x208e83['registerBlockAttribute']('todoListChecked'),_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x2c4820=>{const {data:_0x4c7ddc}=_0x2c4820;if(_0x4c7ddc&&'todoListChecked'==_0x4c7ddc['key'])return{'type':'format','content':_0x4c7ddc['newValue']?c(_0x232140,'*Check\x20item*'):c(_0x232140,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d3d48=>{if(_0x2d3d48['batch']['isUndo'])return!0x1;let _0x418758=!0x1;const _0x2d4e75=_0x208e83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd0da=>'todoListChecked'===_0x208e83['_getAttributeKey'](_0x1fd0da));for(const _0x29c619 of _0x2d4e75){'todo'!=_0x29c619['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x208e83['_findSuggestions'](_0x29c619['getFirstRange'](),'attribute')['find'](_0x1b98de=>'listType'===_0x208e83['_getAttributeKey'](_0x1b98de['suggestion']))||(_0x2d3d48['removeMarker'](_0x29c619['getFirstMarker']()),_0x418758=!0x0));}return _0x418758;})),_0x208e83['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x232140,'FORMAT_INDENT'));const _0x4462c9={'type':'format','content':''};_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x27c030=>{const {data:_0x4b4fa5}=_0x27c030;if(!_0x4b4fa5||'listType'!=_0x4b4fa5['key'])return;let _0x11e019=_0x27c030['head'];for(;_0x11e019;){if(_0x11e019['data']&&(('listStyle'==_0x11e019['data']['key']||'listMarkerStyle'==_0x11e019['data']['key'])&&(_0x11e019['data']['newValue']&&'default'!=_0x11e019['data']['newValue']||'default'!=_0x11e019['data']['oldValue']&&!_0x4b4fa5['newValue'])||!_0x3349bb&&_0x11e019['data']['key']==u))return _0x4462c9;_0x11e019=_0x11e019['next'];}if(null==_0x4b4fa5['newValue'])switch(_0x4b4fa5['oldValue']){case'bulleted':return _0x4de30a(c(_0x232140,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4de30a(c(_0x232140,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4de30a(c(_0x232140,'ELEMENT_TODO_LIST'));}switch(_0x4b4fa5['newValue']){case'bulleted':return _0x17e8c3(c(_0x232140,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17e8c3(c(_0x232140,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17e8c3(c(_0x232140,'ELEMENT_TODO_LIST'));}}),_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x49bfa7=>{const {data:_0x2832b7}=_0x49bfa7;if(_0x2832b7&&'listIndent'==_0x2832b7['key'])return null==_0x2832b7['newValue']||null==_0x2832b7['oldValue']&&0x0==_0x2832b7['newValue']?_0x4462c9:void 0x0;}),_0x208e83['descriptionFactory']['registerDescriptionCallback'](_0x3e254b=>{if('attribute'!=_0x3e254b['type'])return;const {data:_0x5b9a9c}=_0x3e254b;if(!_0x5b9a9c||'listItemId'!=_0x5b9a9c['key'])return;const _0x1ea080=Te(_0x3e254b);return'newValue'==_0x1ea080?{'type':'format','content':c(_0x232140,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ea080?{'type':'format','content':c(_0x232140,'*Split:*\x20list\x20item')}:_0x4462c9;}),_0x468cc8['model']['document']['registerPostFixer'](_0x2949aa=>this['listItemIdFixer'](_0x2949aa)),_0x468cc8['model']['document']['registerPostFixer'](_0x12f86c=>this['noTrackChangesFixer'](_0x12f86c)),_0x468cc8['model']['document']['on']('change:data',(_0x4175c6,_0x3ed9c4)=>{if(_0x3ed9c4['isUndo']||!_0x3ed9c4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e1975){if(_0x2e1975['batch']['isUndo']||!_0x2e1975['batch']['isLocal'])return!0x1;let _0xc7ab79=!0x1;const _0x122895=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ea496=>_0x5ea496['data']&&'listItemId'==_0x5ea496['data']['key'])['filter'](_0x40a94c=>_0x40a94c['data']['newValue']&&_0x40a94c['data']['oldValue']);for(const _0x567c81 of _0x122895)Te(_0x567c81)||(_0x2e1975['removeMarker'](_0x567c81['getFirstMarker']()),_0xc7ab79=!0x0);return _0xc7ab79;}['noTrackChangesFixer'](_0x5ef6d3){if(_0x5ef6d3['batch']['isUndo']||!_0x5ef6d3['batch']['isLocal'])return!0x1;const _0x533014=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x533014['trackChangesCommand']['value'])return!0x1;let _0x291138=!0x1;const _0x254945=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x35395a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x435961=>'attribute'==_0x435961['type'])['filter'](_0xf61393=>_0x254945['includes'](_0xf61393['attributeKey']));if(0x0==_0x35395a['length'])return _0x291138;for(const _0x5a704b of _0x35395a){const _0x4a15e0=_0x533014['_findSuggestions'](_0x5a704b['range'],'attribute')['filter'](_0x114319=>!_0x114319['meta']['isNextTo'])['map'](_0x44a729=>_0x44a729['suggestion'])['filter'](_0x390c9a=>{const _0x160dea=_0x533014['_getAttributeKey'](_0x390c9a);return _0x254945['includes'](_0x160dea);});if(_0x4a15e0['length']){for(const _0x51f748 of _0x4a15e0)_0x5ef6d3['removeMarker'](_0x51f748['getFirstMarker']());_0x291138=!0x0;}}return _0x291138;}['assureChains'](){const _0x16826e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13a000=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x204166;const _0x3af909=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13c1e4=>{if(_0x13c1e4['data']['oldRange']||!_0x13c1e4['data']['newRange'])return null;if(!_0x13c1e4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x17f3d1}=_0x16826e['_splitMarkerName'](_0x13c1e4['name']);if(!_0x16826e['hasSuggestion'](_0x17f3d1))return null;const _0x58ba36=_0x16826e['getSuggestion'](_0x17f3d1);return _0x13a000['includes'](_0x58ba36['data']['key']);})['map'](_0x308d0a=>{const {id:_0x43cda3}=_0x16826e['_splitMarkerName'](_0x308d0a['name']),_0x234856=_0x16826e['getSuggestion'](_0x43cda3);return _0x204166=_0x234856['attributes']['groupId'],_0x234856['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3af909['size'])return;const _0x20f658=_0x16826e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c23f1=>'attribute'==_0x3c23f1['type']&&_0x3c23f1['data']&&_0x13a000['includes'](_0x3c23f1['data']['key'])&&_0x3c23f1['attributes']['groupId']!=_0x204166)['map'](_0x4ea1b0=>({'listItem':_0x4ea1b0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ea1b0['attributes']['groupId']})),_0x44c10b=new Set();for(const {groupId:_0x3e721c,listItem:_0x57667b}of _0x20f658)_0x3af909['has'](_0x57667b)&&_0x44c10b['add'](_0x3e721c);for(const _0x5f0b5f of _0x16826e['getSuggestions']())_0x44c10b['has'](_0x5f0b5f['attributes']['groupId'])&&_0x5f0b5f['setAttribute']('groupId',_0x204166);}['_supportLegacySuggestions'](){const _0x493025=this['editor'],_0xdc312e=_0x493025['locale'],_0x1ef551=_0x493025['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1ef551['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x524a28,_0x3ef27f){const _0x5a846e=[];for(let _0x455805 of _0x524a28)_0x455805['start']['nodeAfter']===_0x455805['end']['parent']&&(_0x455805=_0x493025['model']['createRange'](_0x493025['model']['createPositionAt'](_0x455805['start']['nodeAfter'],0x0))),_0x5a846e['push'](_0x455805);_0x493025['model']['change'](_0x25ca15=>{const _0x49aaf5=_0x493025['model']['document']['selection'],_0x2fd584=Array['from'](_0x49aaf5['getRanges']())['map'](_0x49a580=>_0x2346b0['fromRange'](_0x49a580));_0x25ca15['setSelection'](_0x5a846e),_0x493025['commands']['get'](_0x3ef27f['commandName'])['refresh'](),_0x3ef27f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x493025['execute'](_0x3ef27f['commandName'],..._0x3ef27f['commandParams']),_0x25ca15['setSelection'](_0x2fd584);for(const _0x148720 of _0x2fd584)_0x148720['detach']();});}),_0x1ef551['descriptionFactory']['registerElementLabel'](function(_0x1a78af){const _0x104972=!_0x493025['model']['schema']['isObject'](_0x1a78af),_0x2f8c10=_0x1a78af['previousSibling'],_0x29ada5=_0x1a78af['nextSibling'],_0x5acfa7=_0x1a78af['getAttribute']('listItemId'),_0x4f098d=!_0x2f8c10||_0x2f8c10['getAttribute']('listItemId')!==_0x5acfa7,_0x2170cb=!_0x29ada5||_0x29ada5['getAttribute']('listItemId')!==_0x5acfa7;return _0x104972&&Boolean(_0x5acfa7)&&_0x4f098d&&_0x2170cb;},_0x27bb2=>c(_0xdc312e,'ELEMENT_LIST_ITEM',_0x27bb2));}['_registerLegacyDescription'](){const _0x49c162=this['editor'],_0x3734aa=_0x49c162['locale'];function _0x2c1a8d(_0x1aa172){const _0x3f8f64=_0x49c162['commands']['get']('bulletedList')['value'],_0x5534a6=_0x49c162['commands']['get']('numberedList')['value'];return'numberedList'===_0x1aa172?_0x3f8f64:_0x5534a6;}_0x49c162['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4655db){if('formatBlock'!=_0x4655db['type'])return;const {data:_0x3a5df2}=_0x4655db;if(!_0x3a5df2)return;let _0xeec0d,_0x2013b7,_0x3a4699,_0x41fd51;switch(_0x3a5df2['commandName']){case'bulletedList':_0x3a4699=_0x3a5df2['commandParams'][0x0]['forceValue'],_0x41fd51=_0x2c1a8d(_0x3a5df2['commandName']),_0xeec0d=_0x3a4699?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41fd51&&_0x49c162['config']['get']('list.multiBlock')||(_0xeec0d='*Change\x20to:*\x20%0'),_0x2013b7={'type':'format','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a4699=_0x3a5df2['commandParams'][0x0]['forceValue'],_0x41fd51=_0x2c1a8d(_0x3a5df2['commandName']),_0xeec0d=_0x3a4699?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41fd51&&_0x49c162['config']['get']('list.multiBlock')||(_0xeec0d='*Change\x20to:*\x20%0'),_0x2013b7={'type':'format','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xeec0d='*Indent:*\x20%0',_0x2013b7={'type':'format','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xeec0d=function(_0x3af20f){const _0xe049b1=_0x3af20f['getFirstRange']();let _0x5e1904=_0xe049b1['start']['nodeAfter'];for(;_0x5e1904&&_0xe049b1['containsItem'](_0x5e1904);){if(_0x5e1904['getAttribute']('listIndent')>0x0)return!0x1;_0x5e1904=_0x5e1904['nextSibling'];}return!0x0;}(_0x4655db)?c(_0x3734aa,'*Format:*\x20remove\x20from\x20%0',c(_0x3734aa,function(_0x300a09){return'ELEMENT_'+_0x300a09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4655db))):c(_0x3734aa,'*Outdent:*\x20%0',c(_0x3734aa,'ELEMENT_LIST_ITEM')),_0x2013b7={'type':'format','content':_0xeec0d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3a5df2['multipleBlocks']&&(_0xeec0d='*Merge:*\x20%0',_0x2013b7={'type':'deletion','content':c(_0x3734aa,_0xeec0d,c(_0x3734aa,'ELEMENT_LIST_ITEM'))});}return _0x2013b7;});}}function Te(_0x2e318b){let _0x1393f4=_0x2e318b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1393f4;){const _0x717f53=_0x1393f4['getAttribute']('listItemId');if(!_0x717f53)return!0x1;if(_0x717f53==_0x2e318b['data']['newValue'])return'newValue';if(_0x717f53==_0x2e318b['data']['oldValue'])return'oldValue';_0x1393f4=_0x1393f4['previousSibling'];}return!0x1;}class Se extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c7c89=this['editor']['config']['get']('list.properties'),_0x4950de=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c7c89['styles']&&(_0x4950de['enableDefaultAttributesIntegration']('listStyle'),_0x4950de['registerBlockAttribute']('listStyle')),_0x1c7c89['reversed']&&(_0x4950de['enableDefaultAttributesIntegration']('listReversed'),_0x4950de['registerBlockAttribute']('listReversed')),_0x1c7c89['startIndex']&&(_0x4950de['enableDefaultAttributesIntegration']('listStart'),_0x4950de['registerBlockAttribute']('listStart'));const _0x11247e={'type':'format','content':''};_0x4950de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53f699=this['editor']['locale'];_0x4950de['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x53f699,'FORMAT_LIST_REVERSED')),_0x4950de['descriptionFactory']['registerDescriptionCallback'](_0x27cbd1=>{const {data:_0xb265ca}=_0x27cbd1;if(_0xb265ca&&'listReversed'==_0xb265ca['key'])return null==_0xb265ca['newValue']||0x0==_0xb265ca['newValue']&&null==_0xb265ca['oldValue']?_0x11247e:void 0x0;}),_0x4950de['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x53f699,'FORMAT_LIST_START')),_0x4950de['descriptionFactory']['registerDescriptionCallback'](_0x24627e=>{const {data:_0x4501c7}=_0x24627e;if(_0x4501c7&&'listStart'==_0x4501c7['key'])return null==_0x4501c7['newValue']||0x1==_0x4501c7['newValue']&&null==_0x4501c7['oldValue']?_0x11247e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x19830a=>{if(_0x19830a['batch']['isUndo'])return!0x1;let _0x572661=!0x1;const _0x26fb4d=_0x4950de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5730ef=>{const _0x64d46f=_0x4950de['_getAttributeKey'](_0x5730ef);return'listStart'==_0x64d46f||'listReversed'==_0x64d46f;});for(const _0x182290 of _0x26fb4d){const _0x550237=_0x182290['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x550237||'customNumbered'==_0x550237)continue;_0x4950de['_findSuggestions'](_0x182290['getFirstRange'](),'attribute')['find'](_0x32f7b8=>'listType'==_0x4950de['_getAttributeKey'](_0x32f7b8['suggestion']))||(_0x19830a['removeMarker'](_0x182290['getFirstMarker']()),_0x572661=!0x0);}return _0x572661;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x48a66d){const _0x4d82f2=this['editor']['locale'],{data:_0x4e8a5c}=_0x48a66d,_0x5e95b7={'type':'format','content':''};if(!_0x4e8a5c||'listStyle'!=_0x4e8a5c['key'])return;if(!_0x4e8a5c['oldValue'])return'default'==_0x4e8a5c['newValue']?_0x5e95b7:{'type':'format','content':''+c(_0x4d82f2,'*Set\x20format:*\x20%0',c(_0x4d82f2,this['_getTranslationKeyForListStyle'](_0x4e8a5c['newValue'])))};if(!_0x4e8a5c['newValue']){if('default'==_0x4e8a5c['oldValue'])return _0x5e95b7;let _0x39314d=_0x48a66d['head'];for(;_0x39314d;){if(_0x39314d['data']&&'listType'==_0x39314d['data']['key']&&_0x39314d['data']['newValue'])return _0x5e95b7;_0x39314d=_0x39314d['next'];}return{'type':'format','content':''+c(_0x4d82f2,'*Remove\x20format:*\x20%0',c(_0x4d82f2,this['_getTranslationKeyForListStyle'](_0x4e8a5c['oldValue'])))};}if('default'!=_0x4e8a5c['newValue'])return{'type':'format','content':''+c(_0x4d82f2,'*Set\x20format:*\x20%0',c(_0x4d82f2,this['_getTranslationKeyForListStyle'](_0x4e8a5c['newValue'])))};let _0x46060b=_0x48a66d['head'];for(;_0x46060b;){if(_0x46060b['data']&&'listType'==_0x46060b['data']['key']&&_0x46060b['data']['newValue']&&_0x46060b['data']['oldValue'])return _0x5e95b7;_0x46060b=_0x46060b['next'];}return{'type':'format','content':c(_0x4d82f2,'*Set\x20format:*\x20%0',c(_0x4d82f2,'ELEMENT_'+_0x48a66d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x569878=this['editor'],_0x4e4afd=_0x569878['locale'];_0x569878['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x588f0e=>{if('formatBlock'!=_0x588f0e['type'])return;const {data:_0x1de301}=_0x588f0e;if(!_0x1de301)return;let _0x47a1b5,_0x217133;switch(_0x1de301['commandName']){case'listStyle':_0x47a1b5='*Change\x20to:*\x20%0',_0x217133={'type':'format','content':c(_0x4e4afd,_0x47a1b5,c(_0x4e4afd,this['_getTranslationKeyForListStyle'](_0x1de301['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47a1b5=_0x1de301['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x217133={'type':'format','content':c(_0x4e4afd,_0x47a1b5)};break;case'listStart':_0x47a1b5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x217133={'type':'format','content':c(_0x4e4afd,_0x47a1b5,_0x1de301['commandParams'][0x0]['startIndex'])};}return _0x217133;});}['_getTranslationKeyForListStyle'](_0x5af289){return'ELEMENT_'+function(_0x4b5a57){if(_e['includes'](_0x4b5a57))return'bulleted';if(Re['includes'](_0x4b5a57))return'numbered';return null;}(_0x5af289)['toUpperCase']()+'_LIST_'+_0x5af289['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2b8ff3{['afterInit'](){const _0x4acc2b=this['editor'];_0x4acc2b['commands']['get']('emoji')&&_0x4acc2b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2b8ff3{static get['requires'](){return[_0x11c59c];}['init'](){const _0x598e2c=this['editor'],_0x362da3=_0x598e2c['plugins']['get']('TrackChangesEditing'),_0x1dc105=_0x598e2c['commands']['get']('enter');_0x362da3['enableCommand']('enter',()=>{_0x598e2c['model']['change'](_0x3bef7f=>{const _0x1479d8=_0x598e2c['model']['document']['selection'],_0x242408=_0x1479d8['getFirstPosition'](),_0xb7d626=_0x2346b0['fromRange'](_0x1479d8['getFirstRange']());if(_0x1dc105['enterBlock'](_0x3bef7f)){const _0x975f99=_0x598e2c['model']['createPositionAt'](_0x242408['parent']['nextSibling'],0x0),_0x3e4a46=_0x3bef7f['createRange'](_0x242408,_0x975f99);_0x362da3['markInsertion'](_0x3e4a46);}else _0x3bef7f['setSelection'](_0x3bef7f['createRange'](_0xb7d626['end']));_0xb7d626['detach'](),_0x1dc105['fire']('afterExecute',{'writer':_0x3bef7f});});}),_0x598e2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x598e2c,'split'),{'priority':'high'}),_0x598e2c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x149397,_0xa2e6fa,_0x4ac371)=>{const _0x5b1583=_0x4ac371['mapper']['markerNameToElements'](_0xa2e6fa['markerName']);if(_0x5b1583){for(const _0x425d10 of _0x5b1583)_0x425d10['hasClass']('ck-suggestion-marker-split')&&(_0x4ac371['mapper']['unbindElementFromMarkerName'](_0x425d10,_0xa2e6fa['markerName']),_0x4ac371['writer']['remove'](_0x425d10));}},{'priority':'high'}),_0x598e2c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c90c0,_0x1aa06a,_0x396fe8)=>{_0x396fe8['options']['showSuggestionHighlights']&&Fe(_0x598e2c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3c90c0,_0x1aa06a,_0x396fe8);},{'priority':'high'});}}class Z extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2eb0d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2eb0d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2eb0d4['enableCommand']('findNext'),_0x2eb0d4['enableCommand']('findPrevious'),_0x2eb0d4['enableCommand']('replace'),_0x2eb0d4['enableCommand']('replaceAll');}['handleFindCommand'](_0xc74ec1,_0x2b5fcd,_0x5a901c={}){const _0x21a52a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xc74ec1(_0x18461b=>{let _0x555634=('string'==typeof _0x2b5fcd?_0x21a52a['findByTextCallback'](_0x2b5fcd,_0x5a901c):_0x2b5fcd)(_0x18461b);Array['isArray'](_0x555634)&&(_0x555634={'results':_0x555634,'searchText':'string'==typeof _0x2b5fcd?_0x2b5fcd:''});const _0x288569=_0x555634['results']['filter'](_0x4be881=>!0x1===this['_isInDeletionRange'](_0x4be881,_0x18461b['item']));return{..._0x555634,'results':_0x288569};},_0x5a901c);}['_isInDeletionRange'](_0x72d441,_0x10db5e){const _0x3c9d9b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10db5e,_0x72d441['start']),this['editor']['model']['createPositionAt'](_0x10db5e,_0x72d441['end']));for(const _0x14c605 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3c9d9b['getIntersection'](_0x14c605['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2b8ff3{['afterInit'](){const _0x23bc48=this['editor']['locale'],_0x4d5c8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49734d,commandName:_0x1d49d5}of ro)this['editor']['plugins']['has'](_0x49734d)&&(_0x4d5c8d['enableDefaultAttributesIntegration'](_0x1d49d5),_0x4d5c8d['registerInlineAttribute'](_0x1d49d5));_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x23bc48,'FORMAT_FONT_SIZE')),_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x23bc48,'FORMAT_FONT_FAMILY')),_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x23bc48,'FORMAT_FONT_COLOR')),_0x4d5c8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x23bc48,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521133=this['editor'],_0x4b6493=_0x521133['locale'];_0x521133['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbbb97e=>{const _0x523dba=_0x4b6493['t'];if('formatInline'!=_0xbbb97e['type'])return;const {data:_0x32a82b}=_0xbbb97e;if(null!=_0x32a82b){if('fontSize'==_0x32a82b['commandName']){const _0x2eddc8=_0x32a82b['commandParams'][0x0]['value'];if(_0x2eddc8){const _0x322fd7=_0x523dba(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x78fac3=>_0x78fac3['model']==_0x2eddc8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20size:*\x20%0',_0x322fd7)};}return{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32a82b['commandName']){const _0x526637=_0x32a82b['commandParams'][0x0]['value'];return _0x526637?{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20family:*\x20%0',_0x526637)}:{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32a82b['commandName']){const _0x545c22=_0x32a82b['commandParams'][0x0]['value'];if(_0x545c22){const _0x2a3eb3=_0x1cc541(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ac434=>_0x5ac434['model']==_0x545c22);let _0x4bd5d4=_0x545c22,_0x1fd145='';return _0x2a3eb3&&(_0x4bd5d4=_0x2a3eb3['label'],_0x1fd145=_0x523dba(_0x4bd5d4)['toLowerCase']()),{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20color:*\x20%0',_0x1fd145)['trim'](),'color':{'value':_0x545c22,'title':_0x1fd145||_0x4bd5d4}};}return{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32a82b['commandName']){const _0x52166a=_0x32a82b['commandParams'][0x0]['value'];if(_0x52166a){const _0x1c2c3a=_0x1cc541(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x479299=>_0x479299['model']==_0x52166a);let _0x2e1173=_0x52166a,_0x1130bc='';return _0x1c2c3a&&(_0x2e1173=_0x1c2c3a['label'],_0x1130bc=_0x523dba(_0x2e1173)['toLowerCase']()),{'type':'format','content':c(_0x4b6493,'*Set\x20font\x20background\x20color:*\x20%0',_0x1130bc)['trim'](),'color':{'value':_0x52166a,'title':_0x1130bc||_0x2e1173}};}return{'type':'format','content':c(_0x4b6493,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2b8ff3{['afterInit'](){const _0x5c4820=this['editor'],_0x59681f=_0x5c4820['plugins']['get']('TrackChangesEditing'),_0x1f28d8=_0x5c4820['commands']['get']('copyFormat'),_0x243bf0=_0x5c4820['commands']['get']('pasteFormat');_0x1f28d8&&_0x243bf0&&(_0x59681f['enableDefaultAttributesIntegration']('pasteFormat'),_0x59681f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x141304=this['editor'],_0x2f8da7=_0x141304['locale'];_0x141304['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5abf5f=>{if('formatBlock'!=_0x5abf5f['type']&&'formatInline'!=_0x5abf5f['type'])return;const {data:_0x1b52cb}=_0x5abf5f;if(_0x1b52cb&&'pasteFormat'===_0x1b52cb['commandName']){const _0x1ac7a9=[],_0x558ec2=_0x1b52cb['commandParams'][0x0];for(const [_0x36c427,_0x51f5ea]of Object['entries'](_0x558ec2))_0x1ac7a9['push'](so(_0x141304,_0x36c427,_0x51f5ea));return _0x1ac7a9['length']?{'type':'format','content':c(_0x2f8da7,'*Set\x20format\x20to:*\x20%0',_0x1ac7a9['join'](',\x20'))}:{'type':'format','content':c(_0x2f8da7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x9fb440,_0x46c49b,_0x303ad0){const _0x46441f=_0x9fb440['locale']['t'],_0x17e891=_0x46c49b['split'](/(?=[A-Z])/)['join']('\x20'),_0x2dff6f=_0x46441f(_0x17e891['charAt'](0x0)['toUpperCase']()+_0x17e891['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x303ad0)return _0x2dff6f;if('fontColor'===_0x46c49b||'fontBackgroundColor'===_0x46c49b){const _0x3c93a1=_0x1cc541(_0x9fb440['config']['get']('fontColor.colors'))['find'](_0x5a82f9=>_0x5a82f9['model']==_0x303ad0);return _0x2dff6f+'\x20('+(_0x3c93a1?_0x46441f(_0x3c93a1['label'])['toLowerCase']():_0x303ad0)+')';}if('fontSize'===_0x46c49b&&isNaN(parseFloat(_0x303ad0))){const _0x2a2ff1=_0x9fb440['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x9fb440['config']['get']('fontSize.options'))['find'](_0x46b7a4=>_0x46b7a4['model']==_0x303ad0);return _0x2dff6f+'\x20('+(_0x2a2ff1?_0x46441f(_0x2a2ff1['title'])['toLowerCase']():_0x303ad0)+')';}return _0x2dff6f+'\x20('+_0x303ad0+')';}class nt extends _0x2b8ff3{['_headingOptions'];['afterInit'](){const _0xb9ccd7=this['editor'];if(!_0xb9ccd7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb9ccd7['config']['get']('heading.options');const _0x51cdf3=_0xb9ccd7['locale'],_0x25e1d6=_0xb9ccd7['plugins']['get']('TrackChangesEditing');_0x25e1d6['enableDefaultAttributesIntegration']('heading');for(const _0x5e46b4 of this['_headingOptions'])'paragraph'!=_0x5e46b4['model']&&_0x25e1d6['descriptionFactory']['registerElementLabel'](_0x5e46b4['model'],_0x144a5f=>{const _0x5b708a=this['_getHeadingLevel'](_0x5e46b4['model']);return null!==_0x5b708a?_0x502b03(_0x144a5f,_0x5b708a):_0x43950e(_0x144a5f,_0x5e46b4['title']);});function _0x502b03(_0x572ca4,_0x2879a4){return c(_0x51cdf3,'ELEMENT_HEADING',[_0x572ca4,_0x2879a4]);}function _0x43950e(_0x5d0315,_0x292349){return c(_0x51cdf3,'ELEMENT_HEADING_CUSTOM',[_0x5d0315,_0x292349]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca130=this['editor'],_0x29a129=_0x5ca130['locale'];function _0xbef5ea(_0x5b9f3f,_0x24f5a8){return c(_0x29a129,'ELEMENT_HEADING_CUSTOM',[_0x5b9f3f,_0x24f5a8]);}_0x5ca130['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ab389=>{if('formatBlock'!=_0x4ab389['type'])return;const {data:_0x5cb2fa}=_0x4ab389;if(_0x5cb2fa&&'heading'==_0x5cb2fa['commandName']){const _0x2a73b7=_0x5cb2fa['commandParams'][0x0]['value'],_0x4670a8=this['_getHeadingLevel'](_0x2a73b7);if(null!==_0x4670a8)return{'type':'format','content':c(_0x29a129,'*Change\x20to:*\x20%0',(_0x19657d=0x1,_0x3760=_0x4670a8,c(_0x29a129,'ELEMENT_HEADING',[_0x19657d,_0x3760])))};const _0x32d5dc=this['_headingOptions']['find'](_0x2bdb75=>_0x2bdb75['model']===_0x2a73b7)['title'];return{'type':'format','content':c(_0x29a129,'*Change\x20to:*\x20%0',_0xbef5ea(0x1,_0x32d5dc))};}var _0x19657d,_0x3760;});}['_getHeadingLevel'](_0x6f2dd3){const _0x3a2e2c=_0x6f2dd3['match'](/^heading(\d+)/);if(_0x3a2e2c)return _0x3a2e2c[0x1];const _0x44e057=this['_headingOptions']?.['find'](_0x3642c1=>_0x3642c1['model']==_0x6f2dd3);if(_0x44e057&&_0x44e057['view']){const _0x1622cb=_0x44e057['view'],_0x414d91=(_0x1622cb['name']??_0x1622cb)['match'](/^h(\d+)/);if(_0x414d91)return _0x414d91[0x1];}return null;}}class it extends _0x2b8ff3{['afterInit'](){const _0x3d9421=this['editor'];if(!_0x3d9421['plugins']['has']('HighlightEditing'))return;const _0xb50a28=_0x3d9421['plugins']['get']('TrackChangesEditing'),_0x535831=_0x3d9421['locale'];_0xb50a28['enableDefaultAttributesIntegration']('highlight'),_0xb50a28['registerInlineAttribute']('highlight'),_0xb50a28['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x535831,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x133591=this['editor'],_0x262522=_0x133591['locale'];_0x133591['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c3af3=>{if('formatInline'!=_0x4c3af3['type'])return;const {data:_0x5b4670}=_0x4c3af3;if(_0x5b4670&&'highlight'==_0x5b4670['commandName']){const _0xca7795=_0x262522['t'],_0x24b1ea=_0x5b4670['commandParams'][0x0]['value'];if(_0x24b1ea){const _0x395894=_0x133591['config']['get']('highlight.options')['find'](_0x4d7d90=>_0x4d7d90['model']==_0x24b1ea),_0x53052b=_0xca7795(_0x395894['title'])['toLowerCase']();return{'type':'format','content':c(_0x262522,'*Set\x20highlight:*\x20%0',_0x53052b),'color':{'value':_0x395894['color'],'title':_0x395894['title']}};}return{'type':'format','content':c(_0x262522,'*Remove\x20highlight*',c(_0x262522,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2b8ff3{['afterInit'](){const _0x5e4a7f=this['editor'];if(!_0x5e4a7f['plugins']['has']('HorizontalLineEditing'))return;_0x5e4a7f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1be23a=_0x5e4a7f['plugins']['get']('TrackChangesEditing'),_0x365c8f=_0x5e4a7f['locale'];_0x1be23a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x271212=>c(_0x365c8f,'ELEMENT_HORIZONTAL_LINE',_0x271212)),_0x5e4a7f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b9fae,{writer:_0x14c405,options:_0x16a377})=>{if(!_0x16a377['showSuggestionHighlights'])return null;const _0x14c239=_0x14c405['createContainerElement']('div'),_0x3d52df=_0x14c405['createEmptyElement']('hr');return _0x14c405['addClass']('ck-horizontal-line',_0x14c239),_0x14c405['insert'](_0x14c405['createPositionAt'](_0x14c239,0x0),_0x3d52df),_0x14c239;},'converterPriority':'high'});}}class ot extends _0x2b8ff3{['afterInit'](){const _0x3eaa39=this['editor'];if(!_0x3eaa39['plugins']['has']('HtmlEmbed'))return;const _0x30332a=_0x3eaa39['plugins']['get']('TrackChangesEditing'),_0x22b029=_0x3eaa39['locale'];_0x30332a['descriptionFactory']['registerElementLabel']('rawHtml',_0x45b2d7=>c(_0x22b029,'ELEMENT_HTML_EMBED',_0x45b2d7)),_0x30332a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x30332a['registerBlockAttribute']('value'),_0x30332a['descriptionFactory']['registerDescriptionCallback'](_0x732fff=>{if('attribute'!=_0x732fff['type'])return;const {data:_0x9d67ee}=_0x732fff;if(_0x9d67ee&&'value'==_0x9d67ee['key']&&_0x732fff['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xd35ec1=c(_0x22b029,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x22b029,'*Change\x20%0\x20content*',_0xd35ec1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34618c=this['editor'],_0x261cef=_0x34618c['locale'];_0x34618c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b3f5e=>{if('formatBlock'!=_0x1b3f5e['type'])return;const {data:_0x5a7b7b}=_0x1b3f5e;if(_0x5a7b7b&&'htmlEmbed'==_0x5a7b7b['commandName']){const _0x41d723=c(_0x261cef,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x261cef,'*Change\x20%0\x20content*',_0x41d723)};}});}}class rt extends _0x2b8ff3{['afterInit'](){const _0x3cbd9a=this['editor'];if(!_0x3cbd9a['plugins']['has']('ImageEditing'))return;const _0x2c2b49=_0x3cbd9a['plugins']['get']('TrackChangesEditing'),_0x7ffcc0=_0x3cbd9a['plugins']['get']('ImageUtils'),_0x3fccf8=_0x3cbd9a['locale'];_0x2c2b49['enableCommand']('insertImage'),_0x2c2b49['descriptionFactory']['registerElementLabel']('imageBlock',_0x414939=>c(_0x3fccf8,'ELEMENT_IMAGE',_0x414939)),_0x2c2b49['descriptionFactory']['registerElementLabel']('imageInline',_0x5ba07c=>c(_0x3fccf8,'ELEMENT_INLINE_IMAGE',_0x5ba07c)),_0x2c2b49['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3fccf8,'ELEMENT_CAPTION')),_0x3cbd9a['plugins']['has']('ImageUploadEditing')&&_0x2c2b49['enableCommand']('uploadImage'),_0x3cbd9a['plugins']['has']('ImageBlockEditing')&&_0x3cbd9a['plugins']['has']('ImageInlineEditing')&&(_0x2c2b49['enableCommand']('imageTypeInline',(_0x2fbffe,_0x352f9c)=>{const _0x555109=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']);_0x3cbd9a['model']['change'](()=>{_0x2c2b49['markBlockFormat'](_0x555109,{'commandName':'imageTypeInline','commandParams':[_0x352f9c]},[],'convertBlockImageToInline');});}),_0x2c2b49['enableCommand']('imageTypeBlock',(_0x29cf80,_0x1c07ca)=>{_0x3cbd9a['model']['change'](_0x130a9e=>{let _0x156547=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0xfa3ce4=_0x130a9e['createRangeOn'](_0x156547);const _0x3d381e=_0x54fce4['fromPosition'](_0xfa3ce4['start'],'toPrevious'),_0xcd5fb1=_0x54fce4['fromPosition'](_0xfa3ce4['end'],'toNext');_0x2c2b49['forceDefaultExecution'](()=>_0x29cf80(_0x1c07ca)),_0x156547=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0xfa3ce4=_0x130a9e['createRangeOn'](_0x156547);const _0x4ce4fc=_0x130a9e['createRange'](_0x3d381e,_0xcd5fb1);_0x3d381e['detach'](),_0xcd5fb1['detach'](),_0x2c2b49['markBlockFormat'](_0x156547,{'commandName':'imageTypeInline','commandParams':[_0x1c07ca]},[],'convertInlineImageToBlock'),_0x4ce4fc['start']['isBefore'](_0xfa3ce4['start'])&&_0x2c2b49['markInsertion'](_0x130a9e['createRange'](_0x4ce4fc['start'],_0xfa3ce4['start']),'convertInlineImageToBlock'),_0xfa3ce4['end']['isBefore'](_0x4ce4fc['end'])&&_0x2c2b49['markInsertion'](_0x130a9e['createRange'](_0xfa3ce4['end'],_0x4ce4fc['end']),'convertInlineImageToBlock');});}),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2c2b49['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b883e])=>{const _0x3c7fb0=_0x2c2b49['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5ad441=_0x3b883e['start'],_0x37913a=_0x3b883e['end'];const _0x6820dc=_0x3cbd9a['model']['schema']['getNearestSelectionRange'](_0x5ad441,'backward'),_0x24eeeb=_0x3cbd9a['model']['schema']['getNearestSelectionRange'](_0x37913a,'forward');_0x6820dc['isCollapsed']&&(_0x5ad441=_0x6820dc['start']),_0x24eeeb['isCollapsed']&&(_0x37913a=_0x24eeeb['end']),_0x3c7fb0([_0x3cbd9a['model']['createRange'](_0x5ad441,_0x37913a)]);}),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3bfa2d),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3bfa2d)),_0x3cbd9a['plugins']['has']('ImageCaptionEditing')&&(_0x2c2b49['enableCommand']('toggleImageCaption',(_0x1eebee,_0x187685)=>{const _0x33a6b7=_0x3cbd9a['plugins']['get']('ImageCaptionUtils');let _0x520537=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0x3b340a=_0x33a6b7['getCaptionFromImageModelElement'](_0x520537);_0x3cbd9a['model']['change'](()=>{if(_0x3b340a)return void _0x2c2b49['markDeletion'](_0x3cbd9a['model']['createRangeOn'](_0x3b340a));const _0x113095=_0x7ffcc0['isBlockImage'](_0x520537);_0x1eebee(_0x187685),_0x520537=_0x7ffcc0['getClosestSelectedImageElement'](_0x3cbd9a['model']['document']['selection']),_0x3b340a=_0x33a6b7['getCaptionFromImageModelElement'](_0x520537),_0x2c2b49['markInsertion'](_0x3cbd9a['model']['createRangeOn'](_0x3b340a),_0x113095?null:'imageCaption');});}),_0x2c2b49['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3bfa2d));const _0x21e999=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40a728(_0x5ec0cb,_0x197ff9){const _0x4d881c=_0x21e999['findIndex'](({type:_0xe16b8f,subType:_0x18886f})=>_0x5ec0cb['type']==_0xe16b8f&&_0x5ec0cb['subType']==_0x18886f),_0x48d850=_0x21e999['findIndex'](({type:_0x13c0f6,subType:_0x26f7c1})=>_0x197ff9['type']==_0x13c0f6&&_0x197ff9['subType']==_0x26f7c1);if(_0x4d881c<0x0||_0x48d850<0x0)return!0x1;const _0x5f12a4=_0x5ec0cb['getFirstRange'](),_0x4c3d36=_0x197ff9['getFirstRange']();if((0x0==_0x4d881c||0x1==_0x4d881c)&&0x2==_0x48d850&&_0x5f12a4['isIntersecting'](_0x4c3d36))return!0x0;if(0x2==_0x4d881c&&0x3==_0x48d850){const _0x1e8a6d=_0x2c2b49['_findSuggestions'](_0x5f12a4,'insertion')['filter'](({suggestion:_0x33e80c,meta:_0x5bc8cb})=>_0x5bc8cb['isOwn']&&'convertInlineImageToBlock'==_0x33e80c['subType']);if(_0x1e8a6d['length']>0x1&&_0x4c3d36['end']['isEqual'](_0x5f12a4['start']))return!0x0;if(0x1==_0x1e8a6d['length']&&(_0x5f12a4['start']['isEqual'](_0x4c3d36['end'])||_0x5f12a4['end']['isEqual'](_0x4c3d36['start'])))return!0x0;}if(0x3==_0x4d881c&&0x3==_0x48d850&&_0x5f12a4['start']['isBefore'](_0x4c3d36['start'])){const _0x3595f3=_0x5f12a4['end']['nodeAfter'],_0x3ca584=_0x4c3d36['start']['nodeBefore'];return _0x7ffcc0['isBlockImage'](_0x3595f3)&&_0x3595f3===_0x3ca584;}return!0x1;}function _0x3bfa2d(_0x144d50,_0x590091){return _0x40a728(_0x144d50,_0x590091)?[_0x144d50,_0x590091]:_0x40a728(_0x590091,_0x144d50)?[_0x590091,_0x144d50]:null;}_0x3cbd9a['plugins']['has']('ImageResize')&&(_0x2c2b49['enableDefaultAttributesIntegration']('resizeImage'),_0x2c2b49['registerBlockAttribute']('resizedWidth'),_0x2c2b49['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3fccf8,'FORMAT_IMAGE_SIZE'))),_0x3cbd9a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2c2b49['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c2b49['registerBlockAttribute']('alt')),_0x3cbd9a['plugins']['has']('PictureEditing')&&(_0x2c2b49['registerBlockAttribute']('sources'),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x1d8bba=>{if('attribute'!=_0x1d8bba['type'])return;const {data:_0x3f5dda}=_0x1d8bba;return _0x3f5dda&&'sources'==_0x3f5dda['key']?{'type':'format','content':''}:void 0x0;})),_0x3cbd9a['plugins']['has']('ImageSizeAttributes')&&(_0x2c2b49['registerBlockAttribute']('width'),_0x2c2b49['registerBlockAttribute']('height'),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0xa005d=>{if('attribute'!=_0xa005d['type'])return;const {data:_0x52daea}=_0xa005d;return!_0x52daea||'width'!=_0x52daea['key']&&'height'!=_0x52daea['key']?void 0x0:{'type':'format','content':''};})),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x140d15=>{if(!!_0x21e999['find'](({type:_0x23aed5,subType:_0x5f3b27})=>_0x140d15['type']==_0x23aed5&&_0x140d15['subType']==_0x5f3b27))return _0x140d15['previous']?{}:void 0x0;}),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x314e32=>{if('insertion'==_0x314e32['type']||'deletion'==_0x314e32['type']){const _0xd0cacf=_0x314e32['getContainedElement']();if(_0xd0cacf&&_0xd0cacf['is']('element','caption'))return{'type':'insertion'==_0x314e32['type']?'addObject':'removeObject','element':_0xd0cacf,'quantity':0x1};}}),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x5e582a=>'formatBlock'==_0x5e582a['type']&&'convertInlineImageToBlock'==_0x5e582a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e582a['type']&&'convertBlockImageToInline'==_0x5e582a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2c2b49['descriptionFactory']['registerDescriptionCallback'](_0x33dce6=>{if('attribute'!=_0x33dce6['type'])return;const {data:_0x19b8a7}=_0x33dce6;if(!_0x19b8a7||'alt'!=_0x19b8a7['key'])return;const _0x3d383d=_0x19b8a7['newValue'];return _0x3d383d?{'type':'format','content':c(_0x3fccf8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d383d+'\x22')}:{'type':'format','content':c(_0x3fccf8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47675f=this['editor'],_0x35baa5=_0x47675f['locale'];_0x47675f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x86470e=>{if('formatBlock'!=_0x86470e['type']&&'formatInline'!=_0x86470e['type'])return;const {data:_0x477398}=_0x86470e;if(_0x477398){if('imageTextAlternative'==_0x477398['commandName']){const _0x35ebeb=_0x477398['commandParams'][0x0]['newValue'];return _0x35ebeb?{'type':'format','content':c(_0x35baa5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35ebeb+'\x22')}:{'type':'format','content':c(_0x35baa5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x477398['commandName']){const _0x1e8efe=_0x477398['commandParams'][0x0]['width'];return _0x1e8efe?{'type':'format','content':c(_0x35baa5,'*Set\x20image\x20width:*\x20%0',_0x1e8efe)}:{'type':'format','content':c(_0x35baa5,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d9980=this['editor']['locale'],_0x46dce7=this['editor']['plugins']['get']('TrackChangesEditing');_0x46dce7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x46dce7['registerBlockAttribute']('src'),_0x46dce7['descriptionFactory']['registerDescriptionCallback'](_0x195daf=>{if('attribute'!=_0x195daf['type'])return;const {data:_0x20b28a}=_0x195daf;return _0x20b28a&&'src'==_0x20b28a['key']?_0x20b28a['newValue']&&_0x20b28a['oldValue']?{'type':'format','content':c(_0x1d9980,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e779b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e779b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3e779b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e779b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3e779b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54289d=this['editor'],_0x155db5=_0x54289d['locale'];_0x54289d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ede36=>{if('formatBlock'!=_0x3ede36['type']&&'formatInline'!=_0x3ede36['type'])return;const {data:_0x39f24b}=_0x3ede36;if(!_0x39f24b||'replaceImageSource'!=_0x39f24b['commandName'])return;return{'type':'format','content':c(_0x155db5,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2b8ff3{['afterInit'](){const _0x529186=this['editor'];if(!_0x529186['plugins']['has']('ImageStyleEditing'))return;const _0x3509b7=_0x529186['plugins']['get']('TrackChangesEditing'),_0x61b9c4=_0x529186['plugins']['get']('ImageUtils'),_0x38208c={};_0x3509b7['enableCommand']('imageStyle',(_0x9cde2c,_0x14d718)=>{const _0x165100=_0x529186['plugins']['get']('Users')['me'],_0x44778e=_0x529186['commands']['get']('imageStyle');let _0x2da56d=_0x61b9c4['getClosestSelectedImageElement'](_0x529186['model']['document']['selection']),_0x527989=_0x529186['model']['createRangeOn'](_0x2da56d),_0x42964b=_0x44778e['value'];if(_0x42964b==_0x14d718['value'])return;const _0x33851c={'commandName':'imageStyle','commandParams':[_0x14d718],'formatGroupId':_0x400c1f()};_0x529186['model']['change'](()=>{if(_0x3509b7['getSuggestions']()['filter'](_0x3e8fa9=>_0x3e8fa9['isInContent']&&_0x165100==_0x3e8fa9['author']&&('formatBlock'==_0x3e8fa9['type']||'formatInline'==_0x3e8fa9['type'])&&('imageStylePreApply'==_0x3e8fa9['subType']||'imageStylePostApply'==_0x3e8fa9['subType'])&&_0x3e8fa9['getFirstRange']()['isEqual'](_0x527989))['forEach'](_0x18ecf5=>_0x3509b7['discardSuggestion'](_0x18ecf5['head'])),_0x2da56d=_0x61b9c4['getClosestSelectedImageElement'](_0x529186['model']['document']['selection']),_0x527989=_0x529186['model']['createRangeOn'](_0x2da56d),_0x44778e['refresh'](),_0x529186['commands']['get']('imageTypeInline')['refresh'](),_0x529186['commands']['get']('imageTypeBlock')['refresh'](),_0x42964b=_0x44778e['value'],_0x42964b!=_0x14d718['value'])return _0x61b9c4['isInlineImage'](_0x2da56d)&&_0x44778e['shouldConvertImageType'](_0x14d718['value'],_0x2da56d)?(_0x9cde2c({..._0x14d718,'setImageSizes':!0x1}),_0x2da56d=_0x61b9c4['getClosestSelectedImageElement'](_0x529186['model']['document']['selection']),void _0x3509b7['markBlockFormat'](_0x2da56d,{..._0x33851c,'commandReversedParams':[{'value':_0x42964b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x61b9c4['isBlockImage'](_0x2da56d)?_0x3509b7['markBlockFormat'](_0x2da56d,_0x33851c,[],'imageStylePostApply'):_0x3509b7['markInlineFormat'](_0x527989,_0x33851c,'imageStylePostApply'));});});for(const _0x1d65b4 of _0x529186['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x38208c[_0x1d65b4['name']]=_0x1d65b4['title']['toLowerCase']();_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x56cc10])=>{_0x61b9c4['setImageNaturalSizeAttributes'](_0x56cc10['getContainedElement']());}),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x29a362,_0x4a7969)=>{_0x3509b7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x29a362,{'commandName':_0x4a7969['commandName'],'commandParams':_0x4a7969['commandReversedParams']});}),_0x3509b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4243f0,_0x41e83f){if(_0x3b2502(_0x4243f0,_0x41e83f))return[_0x4243f0,_0x41e83f];if(_0x3b2502(_0x41e83f,_0x4243f0))return[_0x41e83f,_0x4243f0];return null;});const _0x129387=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3b2502(_0x5e34d4,_0x3e9534){const _0x276dc1=_0x129387['findIndex'](({type:_0x137e95,subType:_0x1be2bf})=>_0x5e34d4['type']==_0x137e95&&_0x5e34d4['subType']==_0x1be2bf),_0x326460=_0x129387['findIndex'](({type:_0x112360,subType:_0x44d7a8})=>_0x3e9534['type']==_0x112360&&_0x3e9534['subType']==_0x44d7a8);if(_0x276dc1<0x0||_0x326460<0x0)return!0x1;const _0x175e4f=_0x5e34d4['getFirstRange'](),_0x56a55c=_0x3e9534['getFirstRange']();if((0x0==_0x276dc1||0x1==_0x276dc1)&&0x2==_0x326460&&_0x175e4f['isIntersecting'](_0x56a55c))return!0x0;if(0x2==_0x276dc1&&0x3==_0x326460){const _0x4636e0=_0x3509b7['_findSuggestions'](_0x175e4f,'insertion')['filter'](({suggestion:_0x19b79c,meta:_0x244369})=>_0x244369['isOwn']&&'convertInlineImageToBlock'==_0x19b79c['subType']);if(_0x4636e0['length']>0x1&&_0x56a55c['end']['isEqual'](_0x175e4f['start']))return!0x0;if(0x1==_0x4636e0['length']&&(_0x175e4f['start']['isEqual'](_0x56a55c['end'])||_0x175e4f['end']['isEqual'](_0x56a55c['start'])))return!0x0;}if(0x3==_0x276dc1&&0x3==_0x326460&&_0x175e4f['start']['isBefore'](_0x56a55c['start'])){const _0x18d11d=_0x175e4f['end']['nodeAfter'],_0x547946=_0x56a55c['start']['nodeBefore'];return _0x61b9c4['isBlockImage'](_0x18d11d)&&_0x18d11d===_0x547946;}return!0x1;}_0x529186['model']['document']['registerPostFixer'](()=>{let _0x3cd109=!0x1;const _0x497262=Array['from'](_0x529186['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x545093,data:_0x44fbd7}of _0x497262){const {group:_0x3247b0,type:_0x50eaf5,subType:_0x1c0eb2,id:_0x3e0515}=_0x3509b7['_splitMarkerName'](_0x545093);if('suggestion'==_0x3247b0&&_0x3509b7['hasSuggestion'](_0x3e0515)){if('formatBlock'==_0x50eaf5&&('imageStylePreApply'==_0x1c0eb2||'imageStylePostApply'==_0x1c0eb2)){const _0x17f71a=_0x3509b7['getSuggestion'](_0x3e0515);if(_0x44fbd7['newRange']){const _0x341608=_0x17f71a['getFirstRange']()['getContainedElement']();if(_0x61b9c4['isBlockImage'](_0x341608))continue;_0x3509b7['discardSuggestion'](_0x17f71a),_0x3cd109=!0x0;}}if('insertion'==_0x50eaf5&&'imageCaption'==_0x1c0eb2&&!_0x44fbd7['newRange']){const _0x2982ef=_0x3509b7['getSuggestion'](_0x3e0515);_0x2982ef['next']&&_0x2982ef['next']['isInContent']&&(_0x3509b7['discardSuggestion'](_0x2982ef['next']),_0x3cd109=!0x0);}}}return _0x3cd109;}),this['_registerLegacyDescription'](_0x38208c);}['_registerLegacyDescription'](_0xd7752d){const _0x16669a=this['editor'],_0xe20e3a=_0x16669a['locale'];_0x16669a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ef376=>{if('formatBlock'!=_0x1ef376['type']&&'formatInline'!=_0x1ef376['type'])return;const {data:_0x2d2f7c}=_0x1ef376;if(!_0x2d2f7c||'imageStyle'!=_0x2d2f7c['commandName'])return;const _0x373d24=_0x2d2f7c['commandParams'][0x0]['value'];return _0x3cedee('side'===_0x373d24?c(_0xe20e3a,'FORMAT_SIDE_IMAGE'):_0xd7752d[_0x373d24]||_0x373d24);function _0x3cedee(_0x3137b8){return{'type':'format','content':c(_0xe20e3a,'*Format:*\x20%0',_0x3137b8)};}});}}class ut extends _0x2b8ff3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x920073){super(_0x920073),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x416f71=this['editor'],_0x574587=_0x416f71['commands']['get']('importWord'),_0x1b9bc2=_0x416f71['commands']['get']('trackChanges');_0x574587&&(_0x574587['on']('execute',(_0x30b4a5,[,_0x373c58])=>{this['_trackChangesValueDuringImport']=_0x1b9bc2['value'],_0x373c58['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x574587,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x574587,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b9bc2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x416f71['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x531db8,_0x5882c9){const {suggestions:_0x1ba1ab}=_0x5882c9,_0x2b2984=this['editor']['commands']['get']('trackChanges'),_0x4fdf55=_0x2b2984['value'];this['_trackChangesValueDuringImport']!==_0x4fdf55&&(_0x2b2984['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ba1ab&&_0x1ba1ab['forEach'](({id:_0x5c3d89,type:_0x57b2be,author:_0x22d78d,created_at:_0x1ba7e4})=>{const _0x202fc0={'id':_0x5c3d89,'type':_0x57b2be,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x22d78d,'createdAt':_0x1ba7e4?new Date(_0x1ba7e4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x202fc0);});}}class ft extends _0x2b8ff3{['afterInit'](){const _0x4a0271=this['editor'],_0x2ab9ec=_0x4a0271['plugins']['get']('TrackChangesEditing');if(_0x4a0271['plugins']['has']('IndentEditing')&&(_0x2ab9ec['enableCommand']('indent'),_0x2ab9ec['enableCommand']('outdent')),_0x4a0271['plugins']['has']('IndentBlock')){for(const _0x578671 of['indentBlock','outdentBlock'])_0x2ab9ec['enableDefaultAttributesIntegration'](_0x578671);}const _0x11386f=_0x4a0271['locale'];_0x2ab9ec['registerBlockAttribute']('blockIndent'),_0x2ab9ec['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x11386f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5375ae=this['editor'],_0x9a4838=_0x5375ae['locale'],_0x501ad9=_0x5375ae['plugins']['get']('TrackChangesEditing');_0x501ad9['descriptionFactory']['registerDescriptionCallback'](_0x2b64bf=>{if('formatBlock'!=_0x2b64bf['type'])return;const {data:_0x5e70d7}=_0x2b64bf;if(!_0x5e70d7)return;if('indentBlock'!=_0x5e70d7['commandName']&&'outdentBlock'!=_0x5e70d7['commandName'])return;const _0x37f95d=_0x2b64bf['getItems']()[0x0],_0x348d7b=_0x501ad9['descriptionFactory']['getItemLabel'](_0x37f95d);return'indentBlock'==_0x5e70d7['commandName']?{'type':'format','content':c(_0x9a4838,'*Indent:*\x20%0',_0x348d7b)}:'outdentBlock'==_0x5e70d7['commandName']?{'type':'format','content':c(_0x9a4838,'*Outdent:*\x20%0',_0x348d7b)}:void 0x0;});}}class ht extends _0x2b8ff3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2b8ff3{['afterInit'](){const _0x23a5db=this['editor'];if(!_0x23a5db['plugins']['has']('LinkEditing'))return;const _0x40143d=_0x23a5db['plugins']['get']('TrackChangesEditing'),_0x1c7cd7=_0x23a5db['commands']['get']('link');_0x40143d['enableDefaultAttributesIntegration']('link'),_0x40143d['enableDefaultAttributesIntegration']('unlink'),_0x40143d['registerInlineAttribute']('linkHref');for(const _0x1238b7 of _0x1c7cd7['manualDecorators'])_0x40143d['registerInlineAttribute'](_0x1238b7['id']),_0x40143d['descriptionFactory']['registerAttributeLabel'](_0x1238b7['id'],'link\x20('+_0x1238b7['label']['toLowerCase']()+')');_0x40143d['descriptionFactory']['registerDescriptionCallback'](_0x587e16=>{if('attribute'!=_0x587e16['type'])return;const {data:_0x2532e6}=_0x587e16;if(!_0x2532e6||'linkHref'!=_0x2532e6['key'])return;const _0x4d8585=_0x2532e6['newValue'],_0xf3addf=_0x23a5db['locale'];return{'type':'format','content':null==_0x4d8585?c(_0xf3addf,'*Remove\x20link*'):c(_0xf3addf,'*Set\x20link:*\x20%0','\x22'+_0x4d8585+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd8dc=this['editor'],_0x5468d2=_0x1cd8dc['locale'];_0x1cd8dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ba9db=>{if('formatInline'!=_0x4ba9db['type'])return;const {data:_0x2f3c8e}=_0x4ba9db;if(_0x2f3c8e){if('link'==_0x2f3c8e['commandName']){const _0x2cc0f5=_0x2f3c8e['commandParams'][0x0];return{'type':'format','content':c(_0x5468d2,'*Set\x20link:*\x20%0','\x22'+_0x2cc0f5+'\x22')};}return'unlink'==_0x2f3c8e['commandName']?{'type':'format','content':c(_0x5468d2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2b8ff3{['afterInit'](){const _0xdf1de=this['editor'],_0x5b6360=_0xdf1de['locale'];if(!_0xdf1de['plugins']['has']('LegacyListEditing'))return;const _0x1f0ef6=_0xdf1de['plugins']['get']('TrackChangesEditing'),_0x52bbd2=_0xdf1de['plugins']['has']('LegacyTodoListEditing');function _0x52d426(_0x8c7026){return()=>{const _0x1f4bf8=_0xdf1de['model']['document']['selection'],_0x5b21e7=_0xdf1de['commands']['get'](_0x8c7026);if(_0x5b21e7['value'])return void _0xdf1de['execute']('paragraph',{});const _0x16ac8c=_0x8c7026['slice'](0x0,-0x4),_0x3acf30=function(_0x46154f,_0x5e7401,_0x1dcafb){let _0x58b44f=Array['from'](_0x46154f)['filter'](_0x7003c4=>function(_0x35fa5e,_0x179984){return _0x179984['checkChild'](_0x35fa5e['parent'],'listItem')&&!_0x179984['isObject'](_0x35fa5e);}(_0x7003c4,_0x1dcafb));_0x58b44f=_0x58b44f['filter'](_0x2dad78=>!_0x2dad78['is']('element','listItem')||_0x2dad78['getAttribute']('listType')!=_0x5e7401);const _0x1e186c=new Set();for(const _0x3cda86 of _0x58b44f)_0x3cda86['is']('element','listItem')?_0x1e186c['add'](Le(_0x3cda86)):_0x1e186c['add'](_0x3cda86);return Array['from'](_0x1e186c);}(_0x1f4bf8['getSelectedBlocks'](),_0x16ac8c,_0xdf1de['model']['schema']);_0xdf1de['model']['change'](()=>{for(const _0x4dd857 of _0x3acf30)_0x1f0ef6['markBlockFormat'](_0x4dd857,{'commandName':_0x8c7026,'commandParams':[{'forceValue':!_0x5b21e7['value']}],'formatGroupId':'blockName'},Ee(_0x4dd857));});};}function _0x4243ac(_0x171f36){return()=>{const _0x1770f0=function(_0x385dec){let _0x2189fc=Array['from'](_0x385dec);const _0x5e221b=_0x2189fc['findIndex'](_0x386ae6=>'listItem'!=_0x386ae6['name']);return _0x5e221b>-0x1&&(_0x2189fc=_0x2189fc['slice'](0x0,_0x5e221b)),_0x2189fc;}(_0xdf1de['model']['document']['selection']['getSelectedBlocks']()),_0x248cba=_0xdf1de['model']['createRange'](_0xdf1de['model']['createPositionAt'](_0x1770f0[0x0],'before'),_0xdf1de['model']['createPositionAt'](_0x1770f0[_0x1770f0['length']-0x1],'end'));_0xdf1de['model']['change'](()=>{_0x1f0ef6['markBlockFormat'](_0x248cba,{'commandName':_0x171f36,'commandParams':[],'formatGroupId':'listIndent'},function(_0x757538){const _0x417fcd=new Set();for(const _0x417995 of _0x757538){let _0x2e4432=_0x417995['nextSibling'];for(;_0x2e4432&&_0x2e4432['getAttribute']('listIndent')>_0x417995['getAttribute']('listIndent');)_0x417fcd['add'](_0x2e4432),_0x2e4432=_0x2e4432['nextSibling'];}return Array['from'](_0x417fcd);}(_0x1770f0));});};}_0x1f0ef6['enableCommand']('numberedList',_0x52d426('numberedList')),_0x1f0ef6['enableCommand']('bulletedList',_0x52d426('bulletedList')),_0x52bbd2&&_0x1f0ef6['enableCommand']('todoList',_0x52d426('todoList')),_0x1f0ef6['enableCommand']('indentList',_0x4243ac('indentList')),_0x1f0ef6['enableCommand']('outdentList',_0x4243ac('outdentList')),_0x52bbd2&&_0x1f0ef6['enableCommand']('checkTodoList',()=>{const _0x181aa4=_0xdf1de['commands']['get']('checkTodoList'),_0x50f5bf=Array['from'](_0x181aa4['_selectedElements']);_0x50f5bf['filter'](_0x5783e6=>_0x5783e6['getAttribute']('todoListChecked')!=_0x181aa4['value']),_0xdf1de['model']['change'](()=>{for(const _0x541b3a of _0x50f5bf)_0x1f0ef6['markBlockFormat'](_0x541b3a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x181aa4['value']}]});});}),_0x1f0ef6['descriptionFactory']['registerElementLabel']('listItem',_0x30e076=>c(_0x5b6360,'ELEMENT_LIST_ITEM',_0x30e076)),_0x1f0ef6['descriptionFactory']['registerDescriptionCallback'](_0x41c25b=>{if('formatBlock'!=_0x41c25b['type']&&'formatInline'!=_0x41c25b['type'])return;const {data:_0x142d84}=_0x41c25b;if(_0x142d84){if('numberedList'==_0x142d84['commandName']||'bulletedList'==_0x142d84['commandName']||'todoList'==_0x142d84['commandName'])switch(_0x142d84['commandName']['replace']('List','')){case'bulleted':return _0x64cd1(c(_0x5b6360,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x64cd1(c(_0x5b6360,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x64cd1(c(_0x5b6360,'ELEMENT_TODO_LIST'));}if('indentList'==_0x142d84['commandName'])return{'type':'format','content':c(_0x5b6360,'*Indent:*\x20%0',c(_0x5b6360,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x142d84['commandName'])return{'type':'format','content':c(_0x5b6360,'*Outdent:*\x20%0',c(_0x5b6360,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x142d84['commandName'])return _0x142d84['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5b6360,'*Check\x20item*')}:{'type':'format','content':c(_0x5b6360,'*Uncheck\x20item*')};}function _0x64cd1(_0x2957a0){return{'type':'format','content':c(_0x5b6360,'*Change\x20to:*\x20%0',_0x2957a0)};}});}}function Le(_0x5bafdc){const _0x44cf1f=_0x5bafdc['getAttribute']('listIndent');if(0x0==_0x44cf1f)return _0x5bafdc;let _0x491183=_0x5bafdc;for(;_0x5bafdc['previousSibling']&&_0x5bafdc['previousSibling']['is']('element','listItem');){const _0x4aee1f=_0x5bafdc['previousSibling']['getAttribute']('listIndent');if(_0x4aee1f==_0x44cf1f)_0x491183=_0x5bafdc['previousSibling'];else{if(_0x4aee1f<_0x44cf1f)break;}_0x5bafdc=_0x5bafdc['previousSibling'];}return _0x491183;}function Ee(_0x55cc38){const _0x2019ce=[];if(_0x55cc38['is']('element','listItem')&&_0x55cc38['getAttribute']('listIndent')>0x0){let _0x4b3dc5=_0x55cc38['nextSibling'];for(;_0x4b3dc5&&'listItem'==_0x4b3dc5['name']&&_0x4b3dc5['getAttribute']('listIndent')==_0x55cc38['getAttribute']('listIndent');)_0x2019ce['push'](_0x4b3dc5),_0x4b3dc5=_0x4b3dc5['nextSibling'];}return _0x2019ce;}class Q extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x84f2ad=this['editor']['config']['get']('list.properties'),_0x55f23b=this['editor']['plugins']['get']('TrackChangesEditing');_0x84f2ad['styles']&&_0x55f23b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x84f2ad['reversed']&&_0x55f23b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x84f2ad['startIndex']&&_0x55f23b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x55f23b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x58d9e6,_0xf0a148={}){const _0x32fb29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c15f6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x32fb29['markMultiRangeBlockFormat'](_0x1c15f6,{'commandName':'listStyle','commandParams':[{'type':_0xf0a148['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5a3910,_0x2f2999={}){const _0x508e22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x138c16=this['_getSuggestionBlocks'](_0x3f808d=>_0x3f808d['is']('element','listItem')&&'numbered'===_0x3f808d['getAttribute']('listType'));if(_0x138c16['length']<0x1)return;const _0x17571b=_0x138c16['map'](_0xeeb77e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xeeb77e,'before'),this['editor']['model']['createPositionAt'](_0xeeb77e,0x0)));this['editor']['model']['change'](()=>{_0x508e22['markMultiRangeBlockFormat'](_0x17571b,{'commandName':'listReversed','commandParams':[{'reversed':_0x2f2999['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xcf6b3e,_0x4c5e7a={}){const _0x198200=this['editor']['plugins']['get']('TrackChangesEditing'),_0x468d88=this['_getSuggestionBlocks'](_0x15fb54=>_0x15fb54['is']('element','listItem')&&'numbered'===_0x15fb54['getAttribute']('listType'));if(_0x468d88['length']<0x1)return;const _0x124dfc=_0x468d88['map'](_0x50bea1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50bea1,'before'),this['editor']['model']['createPositionAt'](_0x50bea1,0x0)));this['editor']['model']['change'](()=>{_0x198200['markMultiRangeBlockFormat'](_0x124dfc,{'commandName':'listStart','commandParams':[{'startIndex':_0x4c5e7a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4ff7d5){if('formatBlock'!=_0x4ff7d5['type']&&'formatInline'!=_0x4ff7d5['type'])return;const _0xff7be9=this['editor']['locale'],{data:_0x3b4126}=_0x4ff7d5;if(!_0x3b4126)return;let _0x4e2ab4,_0x242853;switch(_0x3b4126['commandName']){case'listStyle':_0x4e2ab4='*Change\x20to:*\x20%0',_0x242853={'type':'format','content':c(_0xff7be9,_0x4e2ab4,c(_0xff7be9,this['_getTranslationKeyForListStyle'](_0x3b4126['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e2ab4=_0x3b4126['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x242853={'type':'format','content':c(_0xff7be9,_0x4e2ab4)};break;case'listStart':_0x4e2ab4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x242853={'type':'format','content':c(_0xff7be9,_0x4e2ab4,_0x3b4126['commandParams'][0x0]['startIndex'])};}return _0x242853;}['_getSuggestionBlocksForListStyle'](){const _0x2e0441=this['editor']['plugins']['get']('LegacyListUtils');let _0x2a1380=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2a1380[0x0]?.['is']('element','listItem')&&_0x2a1380['unshift'](..._0x2e0441['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2a1380[_0x2a1380['length']-0x1]?.['is']('element','listItem')&&_0x2a1380['push'](..._0x2e0441['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2a1380=[...new Set(_0x2a1380)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2a1380=_0x2a1380['filter'](_0x26579f=>_0x26579f['is']('element','listItem'))),_0x2a1380;}['_getSuggestionBlocks'](_0x1b4497){const _0x533033=this['editor']['plugins']['get']('LegacyListUtils');let _0x59f351=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b4497)['map'](_0x2268b1=>{const _0x45c125=this['editor']['model']['createPositionAt'](_0x2268b1,0x0);return[..._0x533033['getSiblingNodes'](_0x45c125,'backward'),..._0x533033['getSiblingNodes'](_0x45c125,'forward')];})['flat']();return _0x59f351=[...new Set(_0x59f351)],_0x59f351;}['_getTranslationKeyForListStyle'](_0x12229c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x12229c)||'default')['toUpperCase']()+'_LIST_'+_0x12229c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2b8ff3{['afterInit'](){const _0x2ba7e1=this['editor'];if(!_0x2ba7e1['plugins']['has']('MediaEmbedEditing'))return;const _0x5cc250=_0x2ba7e1['plugins']['get']('TrackChangesEditing'),_0x5822bb=_0x2ba7e1['locale'];_0x5cc250['enableCommand']('mediaEmbed'),_0x5cc250['descriptionFactory']['registerElementLabel']('media',_0x385f54=>c(_0x5822bb,'ELEMENT_MEDIA',_0x385f54)),_0x2ba7e1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3efb19,{writer:_0x1b65d1,options:_0x2dee54})=>{if(_0x2dee54['showSuggestionHighlights'])return _0x1b65d1['createEmptyElement']('div');},'converterPriority':'high'}),_0x2ba7e1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x21b571,_0x4a69ab,_0x2ed310)=>{_0x2ed310['options']['showSuggestionHighlights']&&_0x21b571['stop']();},{'priority':'high'});}}class pt extends _0x2b8ff3{['afterInit'](){const _0x3c5e54=this['editor'];_0x3c5e54['plugins']['has']('MentionEditing')&&_0x3c5e54['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2b8ff3{['afterInit'](){const _0x3a7578=this['editor'];if(!_0x3a7578['plugins']['has']('MergeFieldsEditing'))return;const _0x221baf=_0x3a7578['plugins']['get']('TrackChangesEditing'),_0x47d49b=_0x3a7578['locale'];_0x221baf['enableCommand']('insertMergeField'),_0x221baf['enableCommand']('insertMergeFieldBlock'),_0x221baf['enableCommand']('insertMergeFieldImage'),_0x221baf['descriptionFactory']['registerElementLabel']('mergeField',_0x30bf8d=>c(_0x47d49b,'ELEMENT_MERGE_FIELD',_0x30bf8d)),_0x221baf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2cef0d=>c(_0x47d49b,'ELEMENT_MERGE_FIELD',_0x2cef0d)),_0x221baf['descriptionFactory']['registerDescriptionCallback'](_0x4b0b92=>{if('insertion'!=_0x4b0b92['type']&&'deletion'!=_0x4b0b92['type'])return;const _0x5b596e=_0x4b0b92['getContainedElement']();if(null==_0x5b596e)return;const _0x3df95c=_0x3a7578['plugins']['get']('MergeFieldsEditing');let _0x56a937;switch(_0x3df95c['getMergeFieldType'](_0x5b596e)){case null:return;case'image':{const _0x5b1466=_0x3df95c['unwrapAffixes'](_0x5b596e['getAttribute']('src'));_0x56a937=_0x3df95c['getLabel'](_0x5b1466)||_0x5b1466;break;}default:{const _0x2390bb=_0x5b596e['getAttribute']('id');_0x56a937=_0x3df95c['getLabel'](_0x2390bb)||_0x2390bb;break;}}return'insertion'==_0x4b0b92['type']?{'type':'insertion','content':c(_0x47d49b,'*Insert:*\x20%0','\x22'+_0x56a937+'\x22\x20'+c(_0x47d49b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x47d49b,'*Remove:*\x20%0','\x22'+_0x56a937+'\x22\x20'+c(_0x47d49b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2b8ff3{['afterInit'](){const _0x69c206=this['editor'],_0x3602aa=_0x69c206['plugins']['get']('TrackChangesEditing');_0x69c206['plugins']['has']('MultiLevelList')&&(_0x3602aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x3602aa['registerBlockAttribute']('listMarkerStyle'),_0x3602aa['descriptionFactory']['registerDescriptionCallback'](_0xddb8c2=>this['handleDescriptions'](_0xddb8c2)));}['handleDescriptions'](_0x3fcf2a){const _0x4880f5=this['editor']['locale'],{data:_0x30eb70}=_0x3fcf2a,_0x105f74={'type':'format','content':''};if(_0x30eb70&&'listMarkerStyle'==_0x30eb70['key']){if(!_0x30eb70['oldValue'])return{'type':'format','content':c(_0x4880f5,'*Set\x20format:*\x20%0',c(_0x4880f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30eb70['newValue']+')'};if(!_0x30eb70['newValue']){let _0x3bb336=_0x3fcf2a['head'];for(;_0x3bb336;){if(_0x3bb336['data']&&'listType'==_0x3bb336['data']['key']&&_0x3bb336['data']['newValue'])return _0x105f74;_0x3bb336=_0x3bb336['next'];}return{'type':'format','content':c(_0x4880f5,'*Remove\x20format:*\x20%0',c(_0x4880f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30eb70['oldValue']+')'};}}}}class bt extends _0x2b8ff3{['afterInit'](){const _0x333b23=this['editor'];if(!_0x333b23['plugins']['has']('PageBreakEditing'))return;_0x333b23['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x135920=_0x333b23['plugins']['get']('TrackChangesEditing'),_0x19c47d=_0x333b23['locale'];_0x135920['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c0f7c=>c(_0x19c47d,'ELEMENT_PAGE_BREAK',_0x2c0f7c));}}class yt extends _0x2b8ff3{['afterInit'](){const _0x16b9b5=this['editor'];if(!_0x16b9b5['plugins']['has']('Paragraph'))return;const _0x2550cb=_0x16b9b5['locale'],_0x160eb2=_0x16b9b5['plugins']['get']('TrackChangesEditing');_0x160eb2['descriptionFactory']['registerElementLabel']('paragraph',_0x3896fc=>c(_0x2550cb,'ELEMENT_PARAGRAPH',_0x3896fc)),_0x160eb2['enableDefaultAttributesIntegration']('paragraph'),_0x160eb2['enableCommand']('insertParagraph'),_0x16b9b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16b9b5),{'priority':'highest'}),_0x16b9b5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c4fef,_0x2a5525,_0x494a19)=>{_0x494a19['options']['showSuggestionHighlights']&&nr(_0x16b9b5,{'showActiveMarker':!0x1})(_0x5c4fef,_0x2a5525,_0x494a19);},{'priority':'highest'});const _0x2ee8c6=_0x160eb2['descriptionFactory'];_0x2ee8c6['registerDescriptionCallback'](_0x24af4c=>{if('insertion'!==_0x24af4c['type'])return;const {start:_0x2b08ff,end:_0x241e53}=_0x24af4c['getFirstRange']();if(!_0x2b08ff['isTouching'](_0x241e53)||!_0x2b08ff['nodeAfter'])return;const _0x33fe81=_0x16b9b5['model']['schema'],_0x149940=_0x2b08ff['nodeAfter'];return _0x33fe81['isBlock'](_0x149940)&&!_0x33fe81['isLimit'](_0x149940)&&_0x33fe81['checkChild'](_0x149940,'$text')?{'type':'insertion','content':c(_0x2550cb,'*Insert:*\x20%0',_0x2ee8c6['getItemLabel'](_0x149940,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdee050=this['editor'],_0x3253fb=_0xdee050['locale'];_0xdee050['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6503f=>{if('formatBlock'!=_0xc6503f['type'])return;const {data:_0x137ced}=_0xc6503f;return _0x137ced&&'paragraph'==_0x137ced['commandName']?{'type':'format','content':c(_0x3253fb,'*Change\x20to:*\x20%0',c(_0x3253fb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5ed6b7,{showActiveMarker:_0x571db1=!0x0}={}){return(_0x4a81ea,_0x4943a5,_0x2e0fda)=>{const _0x205eb1=_0x5ed6b7['plugins']['get']('TrackChangesEditing'),_0x616ca8=_0x4943a5['markerRange']['start'],_0x1502c0=_0x4943a5['markerRange']['end'],_0x19cdb6=_0x5ed6b7['model']['schema'];if(!_0x616ca8['isTouching'](_0x1502c0)||!_0x616ca8['nodeAfter'])return;const _0x2a4c95=_0x616ca8['nodeAfter'];if(_0x19cdb6['isBlock'](_0x2a4c95)&&!_0x19cdb6['isLimit'](_0x2a4c95)&&_0x19cdb6['checkChild'](_0x2a4c95,'$text')){if(!_0x2e0fda['consumable']['consume'](_0x4943a5['markerRange'],_0x4a81ea['name']))return;const {authorId:_0x137026}=_0x205eb1['_splitMarkerName'](_0x4943a5['markerName']),_0x4fec56=_0x2e0fda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x137026}),_0x3587f3=_0x2e0fda['mapper']['toViewPosition'](_0x1502c0);_0x571db1&&_0x205eb1['activeMarkers']['includes'](_0x4943a5['markerName'])&&_0x2e0fda['writer']['addClass']('ck-suggestion-marker--active',_0x4fec56),_0x2e0fda['writer']['insert'](_0x3587f3,_0x4fec56),_0x2e0fda['mapper']['bindElementToMarker'](_0x4fec56,_0x4943a5['markerName']);}};}class jt extends _0x2b8ff3{['afterInit'](){const _0x437ffc=this['editor'];_0x437ffc['commands']['get']('replaceSource')&&_0x437ffc['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2b8ff3{['afterInit'](){const _0x437a8b=this['editor'];if(!_0x437a8b['plugins']['has']('RemoveFormatEditing'))return;_0x437a8b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fb589=this['editor'];_0x1fb589['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae458=>{if('formatBlock'!=_0x1ae458['type']&&'formatInline'!=_0x1ae458['type'])return;const {data:_0x4d6279}=_0x1ae458;return _0x4d6279&&'removeFormat'==_0x4d6279['commandName']?{'type':'format','content':c(_0x1fb589['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2b8ff3{['afterInit'](){const _0x49f252=this['editor'];if(!_0x49f252['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x55f82c=_0x49f252['plugins']['get']('TrackChangesEditing');_0x55f82c['enableCommand']('goToPreviousRestrictedEditingException'),_0x55f82c['enableCommand']('goToNextRestrictedEditingException');const _0x2274c1=_0x49f252['plugins']['get']('RestrictedEditingModeEditing');_0x2274c1['enableCommand']('trackChanges'),_0x2274c1['enableCommand']('acceptSuggestion'),_0x2274c1['enableCommand']('discardSuggestion'),_0x2274c1['enableCommand']('acceptAllSuggestions'),_0x2274c1['enableCommand']('discardAllSuggestions'),_0x2274c1['enableCommand']('acceptSelectedSuggestions'),_0x2274c1['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2b8ff3{['afterInit'](){const _0x3bd434=this['editor'];if(!_0x3bd434['plugins']['has']('ShiftEnter'))return;const _0x514bb0=_0x3bd434['plugins']['get']('TrackChangesEditing');_0x514bb0['enableCommand']('shiftEnter'),_0x3bd434['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3bd434),{'priority':'high'}),_0x3bd434['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3bd434),{'priority':'high'}),_0x3bd434['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5460ba,_0x34cf0e,_0x384c77)=>{_0x384c77['options']['showSuggestionHighlights']&&je(_0x3bd434,{'showActiveMarker':!0x1})(_0x5460ba,_0x34cf0e,_0x384c77);}),_0x514bb0['descriptionFactory']['registerElementLabel']('softBreak',_0x435694=>c(_0x3bd434['locale'],'ELEMENT_LINE_BREAK',_0x435694));}}function je(_0x22b6a3,{showActiveMarker:_0x49fa03=!0x0}={}){return(_0x107dfb,_0x5408be,_0x44e2f7)=>{const _0x555f4a=_0x22b6a3['plugins']['get']('TrackChangesEditing');if(!_0x44e2f7['consumable']['test'](_0x5408be['markerRange'],_0x107dfb['name']))return;const _0x22d6fe=_0x22b6a3['model'];for(const _0x28c723 of _0x5408be['markerRange']['getItems']()){if(!_0x28c723['is']('element','softBreak'))continue;const _0xbc1077='deletion'==_0x5408be['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x104bc0}=_0x555f4a['_splitMarkerName'](_0x5408be['markerName']),_0x2e55b3=_0x44e2f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbc1077,'data-author-id':_0x104bc0}),_0x2a4f7b=_0x44e2f7['mapper']['toViewPosition'](_0x22d6fe['createPositionBefore'](_0x28c723));_0x49fa03&&_0x555f4a['activeMarkers']['includes'](_0x5408be['markerName'])&&_0x44e2f7['writer']['addClass']('ck-suggestion-marker--active',_0x2e55b3),_0x44e2f7['writer']['insert'](_0x2a4f7b,_0x2e55b3),_0x44e2f7['mapper']['bindElementToMarker'](_0x2e55b3,_0x5408be['markerName']);}};}class _t extends _0x2b8ff3{['afterInit'](){const _0x504726=this['editor'],_0x33a51a=_0x504726['model'],_0x105562=_0x504726['locale'];if(!_0x504726['plugins']['has']('StandardEditingModeEditing'))return;const _0x21395e=_0x504726['plugins']['get']('TrackChangesEditing'),_0xdcbc='restrictedEditingException',_0xd4b584=_0x504726['commands']['get'](_0xdcbc);_0x21395e['enableCommand'](_0xdcbc,(_0x27be40,_0x1958d9={})=>{const _0x14857b=_0x33a51a['document']['selection'];if(_0x14857b['isCollapsed'])return void _0x27be40(_0x1958d9);const _0x85b2cd=void 0x0!==_0x1958d9['forceValue']?_0x1958d9['forceValue']:!_0xd4b584['value'];_0x33a51a['change'](()=>{const _0x36b257=Array['from'](_0x14857b['getRanges']());for(const _0x51ba24 of _0x36b257){const _0x471a60=_0x85b2cd?[_0x51ba24]:io(_0xdcbc,_0x51ba24,_0x33a51a);for(const _0x1c513b of _0x471a60)_0x21395e['markInlineFormat'](_0x1c513b,{'commandName':_0xdcbc,'commandParams':[{'forceValue':_0x85b2cd}]});}});}),_0x21395e['descriptionFactory']['registerDescriptionCallback'](_0x354702=>{if('formatBlock'!=_0x354702['type']&&'formatInline'!=_0x354702['type'])return;const {data:_0x551c21}=_0x354702;return _0x551c21&&_0x551c21['commandName']==_0xdcbc?_0x551c21['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x105562,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x105562,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2b8ff3{['afterInit'](){const _0x7ed146=this['editor'];if(!_0x7ed146['plugins']['has']('Style')||!_0x7ed146['plugins']['has']('DataSchema'))return;const _0x4a1986=_0x7ed146['plugins']['get']('TrackChangesEditing'),_0x51f6ef=_0x7ed146['locale'],_0x3fcbfb=_0x7ed146['config']['get']('style')||{},_0x2acf7b=_0x7ed146['plugins']['get']('GeneralHtmlSupport'),_0x483db4=_0x7ed146['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7ed146['plugins']['get']('DataSchema'),_0x3fcbfb['definitions']);_0x4a1986['enableDefaultAttributesIntegration']('style');const _0x1f8f3c=new Set();for(const _0x380a38 of _0x483db4['block']){const _0x161842=_0x2acf7b['getGhsAttributeNameForElement'](_0x380a38['element']);_0x1f8f3c['add'](_0x161842);}const _0x368876=new Set();for(const _0xd02cc4 of _0x483db4['inline']){const _0x7b658c=_0x2acf7b['getGhsAttributeNameForElement'](_0xd02cc4['element']);_0x368876['add'](_0x7b658c);for(const _0x235a61 of _0xd02cc4['ghsAttributes'])_0x368876['add'](_0x235a61);}for(const _0x2423fe of _0x1f8f3c)_0x4a1986['registerBlockAttribute'](_0x2423fe),_0x4a1986['descriptionFactory']['registerAttributeLabel'](_0x2423fe,c(_0x51f6ef,'FORMAT_STYLE'));for(const _0x534a9b of _0x368876)_0x4a1986['registerInlineAttribute'](_0x534a9b),_0x4a1986['descriptionFactory']['registerAttributeLabel'](_0x534a9b,c(_0x51f6ef,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d711c=this['editor'],_0x42074f=_0x3d711c['locale'];_0x3d711c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9f1b=>{if('formatBlock'!=_0x1d9f1b['type']&&'formatInline'!=_0x1d9f1b['type'])return;const {data:_0x3153b9}=_0x1d9f1b;return _0x3153b9&&'style'===_0x3153b9['commandName']?_0x3153b9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x42074f,'*Set\x20format:*\x20%0',_0x3153b9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x42074f,'*Remove\x20format:*\x20%0',_0x3153b9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2b8ff3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4bfb99){super(_0x4bfb99),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x107312=this['editor'],_0x33e576=_0x107312['model']['document']['selection'];if(!_0x107312['plugins']['has']('TableEditing'))return;const _0x3bdb29=_0x107312['locale'],_0x1d7706=_0x107312['plugins']['get']('TrackChangesEditing'),_0x5e4041=_0x107312['plugins']['get']('TableUtils');_0x1d7706['descriptionFactory']['registerElementLabel']('table',_0x118a92=>c(_0x3bdb29,'ELEMENT_TABLE',_0x118a92)),this['_setupColumnsRowsFixing'](),_0x1d7706['enableCommand']('insertTable'),_0x1d7706['enableCommand']('selectTableRow'),_0x1d7706['enableCommand']('selectTableColumn');for(const _0x5a5e58 of['insertTableRowAbove','insertTableRowBelow']){const _0x1e40b4=_0x107312['commands']['get'](_0x5a5e58);_0x1d7706['enableCommand'](_0x5a5e58,_0x196530=>{_0x107312['model']['change'](_0x46c36c=>{_0x196530();const _0x21d747='above'===_0x1e40b4['order'],_0x3fc9aa=_0x5e4041['getSelectionAffectedTableCells'](_0x33e576),_0x5cb6b9=_0x5e4041['getRowIndexes'](_0x3fc9aa),_0x5d0eb7=_0x21d747?_0x5cb6b9['first']-0x1:_0x5cb6b9['last']+0x1,_0x2b246b=_0x3fc9aa[0x0]['findAncestor']('table'),_0x687cc8=_0x5e4041['createTableWalker'](_0x2b246b,{'startRow':_0x5d0eb7,'endRow':_0x5d0eb7}),_0x2c3dce=Array['from'](_0x687cc8)['map'](_0x99c937=>_0x46c36c['createRangeOn'](_0x99c937['cell']));_0x1d7706['markMultiRangeInsertion'](_0x2c3dce,'tableRow');});});}for(const _0x23ca9e of['insertTableColumnLeft','insertTableColumnRight']){const _0x3029d5=_0x107312['commands']['get'](_0x23ca9e);_0x1d7706['enableCommand'](_0x23ca9e,_0x13488=>{_0x107312['model']['change'](_0x50cb11=>{_0x13488();const _0x5d43b6='left'===_0x3029d5['order'],_0x306eb4=_0x5e4041['getSelectionAffectedTableCells'](_0x33e576),_0x4859b6=_0x5e4041['getColumnIndexes'](_0x306eb4),_0x590b47=_0x5d43b6?_0x4859b6['first']-0x1:_0x4859b6['last']+0x1,_0x5a3eb1=_0x306eb4[0x0]['findAncestor']('table'),_0x55266e=_0x5e4041['createTableWalker'](_0x5a3eb1,{'startRow':0x0,'column':_0x590b47,'includeAllSlots':!0x1}),_0x2a6820=Array['from'](_0x55266e)['map'](_0x2ba2a6=>_0x50cb11['createRangeOn'](_0x2ba2a6['cell']));_0x1d7706['markMultiRangeInsertion'](_0x2a6820,'tableColumn');});});}for(const _0x230820 of['removeTableRow','removeTableColumn']){const _0x5b60b6=_0x230820['substr'](0xb),_0x2708a8=_0x5b60b6['toLowerCase'](),_0x1191af=_0x2708a8['substr'](0x0,0x3)+'span',_0x35cfdc='table'+_0x5b60b6,_0x48faf8='min'+_0x5b60b6,_0x18335d='max'+_0x5b60b6;_0x1d7706['enableCommand'](_0x230820,()=>{_0x107312['model']['change'](_0x13a693=>{const _0xf63651=_0x5e4041['getSelectionAffectedTableCells'](_0x33e576),_0x210575=_0xf63651[0x0]['findAncestor']('table');let _0x567119;if('removeTableRow'==_0x230820){const _0x3b700c=_0x5e4041['getRowIndexes'](_0xf63651);_0x567119={'startRow':_0x3b700c['first'],'endRow':_0x3b700c['last'],'includeAllSlots':!0x0};}else{const _0x591288=_0x5e4041['getColumnIndexes'](_0xf63651);_0x567119={'startColumn':_0x591288['first'],'endColumn':_0x591288['last'],'includeAllSlots':!0x0};}const _0x55cf41=_0x5e4041['createTableWalker'](_0x210575,_0x567119),_0x5878ed=Array['from'](_0x55cf41)['map'](({cell:_0x46dd9f})=>_0x46dd9f),_0x4e04f4=Ne(_0x5878ed['filter'](_0x222f90=>_0x222f90['hasAttribute'](_0x1191af))),_0x2dac67=Ne(_0x5878ed['filter'](_0x1a87d6=>!_0x1a87d6['hasAttribute'](_0x1191af)))['map'](_0x312fa1=>_0x13a693['createRangeOn'](_0x312fa1)),_0x52d9ed=_0x1d7706['markMultiRangeDeletion'](_0x2dac67,_0x35cfdc);if(_0x52d9ed&&('tableRow'==_0x52d9ed['subType']||'tableColumn'==_0x52d9ed['subType'])){const _0x326c85=this['_getSuggestionCoords'](_0x52d9ed);for(const _0x11e60d of _0x4e04f4){const _0x5f13af=_0x13a693['createRangeOn'](_0x11e60d),_0xf5b25a=_0x5e4041['getCellLocation'](_0x11e60d),_0x184e74=_0x11e60d['getAttribute'](_0x1191af)-0x1,_0x463c4d=_0x326c85[_0x48faf8],_0x42292b=_0x326c85[_0x18335d];_0x463c4d<=_0xf5b25a[_0x2708a8]&&_0xf5b25a[_0x2708a8]+_0x184e74<=_0x42292b&&_0x52d9ed['addRange'](_0x5f13af);}}});});}function _0x4b99ac(_0xea3dd6){const _0x28ed37=Array['from'](_0x33e576['getRanges']())['map'](_0x4d2659=>_0x2346b0['fromRange'](_0x4d2659));_0x107312['model']['change'](_0xf239d8=>{const _0x159df6=_0xf239d8['batch'];_0xea3dd6=_0xea3dd6['filter'](_0x5c7cf6=>'$graveyard'!=_0x5c7cf6['root']['rootName']),_0xf239d8['setSelection'](_0xea3dd6),_0x107312['commands']['get']('removeTableRow')['refresh'](),_0x107312['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x107312['model']['enqueueChange'](()=>{_0x107312['model']['enqueueChange'](_0x159df6,_0x5b5de4=>{const _0x5e692f=_0x28ed37['filter'](_0x1971fa=>'$graveyard'!=_0x1971fa['root']['rootName']);_0x5e692f['length']>0x0&&_0x5b5de4['setSelection'](_0x5e692f);for(const _0x13cf2d of _0x28ed37)_0x13cf2d['detach']();});});});}function _0x21eeaf(_0x5541d8){_0x107312['model']['change'](_0x4f8c37=>{const _0x3d4be6=Array['from'](_0x33e576['getRanges']())['map'](_0x11ae3d=>_0x2346b0['fromRange'](_0x11ae3d)),_0x2b48c8=[];for(const _0x140218 of _0x5541d8)for(const _0x5c8fb9 of _0x140218['getItems']({'shallow':!0x0}))_0x2b48c8['push'](_0x5c8fb9);for(const _0x502fce of _0x2b48c8)'$graveyard'!=_0x502fce['root']['rootName']&&(_0x4f8c37['setSelection'](_0x4f8c37['createPositionAt'](_0x502fce,0x0)),_0x107312['commands']['get']('removeTableColumn')['refresh'](),_0x107312['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1c9375=_0x3d4be6['filter'](_0x5d0d5c=>'$graveyard'!=_0x5d0d5c['root']['rootName']);_0x1c9375['length']>0x0&&_0x4f8c37['setSelection'](_0x1c9375);for(const _0x579830 of _0x3d4be6)_0x579830['detach']();});}function _0xa77b35(_0x53b143,_0x2153e6){return _0x2153e6['every'](_0x36781e=>_0x53b143['some'](_0x1d8181=>_0x1d8181['end']['isEqual'](_0x36781e['start'])||_0x36781e['end']['isEqual'](_0x1d8181['start'])));}function _0xc15ad3(_0x3eedcb,_0x33550d){return!_0x3eedcb['some'](_0x102c86=>_0x33550d['some'](_0x202624=>_0x102c86['isIntersecting'](_0x202624)))&&_0x3eedcb['some'](_0x556d68=>_0x33550d['some'](_0x4e52e0=>_0x556d68['end']['isTouching'](_0x4e52e0['start'])));}_0x107312['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x92ea16,_0x5b967b,_0x2ce46d)=>{if(!_0x2ce46d['options']['showSuggestionHighlights'])return;const _0x99b9b6=_0x5b967b['item'];if(!_0x99b9b6)return;const _0x5c9a3f=_0x2ce46d['mapper']['toViewElement'](_0x99b9b6);function _0x446e97(_0xbd68af){return Array['isArray'](_0xbd68af)?_0xbd68af:[_0xbd68af];}_0x5c9a3f&&'tableCell'===_0x99b9b6['name']&&_0x25aee8(_0x5c9a3f,_0x2ce46d['writer'],(_0x35c033,_0x32b720,_0x35d227)=>_0x35d227['addClass'](_0x446e97(_0x32b720['classes']),_0x35c033),(_0x174d78,_0x20c2f5,_0x5d33be)=>_0x5d33be['removeClass'](_0x446e97(_0x20c2f5['classes']),_0x174d78));},{'priority':'highest'}),_0x1d7706['descriptionFactory']['registerDescriptionCallback'](_0xaa32c=>{if('insertion'!=_0xaa32c['type']&&'deletion'!=_0xaa32c['type'])return;const _0x9a11f4=_0xaa32c['getContainedElement']();if(null!=_0x9a11f4&&_0x9a11f4['is']('element','table')){if('insertion'==_0xaa32c['type']){const _0x1289c3=_0xaa32c['getItems']()['filter'](_0x5e76f7=>_0x5e76f7['is']('$textProxy'))['map'](_0x14636f=>_0x14636f['data']);if(_0x1289c3['length'])return{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1289c3['join']('\x20')+'\x22'))};}if('deletion'==_0xaa32c['type']){const _0x30abd0=_0xaa32c['getItems']()['filter'](_0x4d7b4b=>_0x4d7b4b['is']('$textProxy'))['map'](_0x5c514c=>_0x5c514c['data']);if(_0x30abd0['length'])return{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30abd0['join']('\x20')+'\x22'))};}}}),_0x1d7706['descriptionFactory']['registerDescriptionCallback'](_0x3322ba=>{if('tableRow'==_0x3322ba['subType']){const _0x50d082=_0x3322ba['getItems']()['filter'](_0x10890e=>_0x10890e['is']('$textProxy'))['map'](_0x3ae672=>_0x3ae672['data']),_0x38eb18=this['_getSuggestionCoords'](_0x3322ba),_0x2fae1f=_0x38eb18['maxRow']-_0x38eb18['minRow']+0x1;if('insertion'==_0x3322ba['type'])return _0x50d082['length']?{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fae1f,'\x22'+_0x50d082['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW',_0x2fae1f))};if('deletion'==_0x3322ba['type'])return _0x50d082['length']?{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fae1f,'\x22'+_0x50d082['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_ROW',_0x2fae1f))};}if('tableColumn'==_0x3322ba['subType']){const _0x3e1502=_0x3322ba['getItems']()['filter'](_0x3f3e36=>_0x3f3e36['is']('$textProxy'))['map'](_0x5cc53b=>_0x5cc53b['data']),_0x4dd8e1=this['_getSuggestionCoords'](_0x3322ba),_0x174a39=_0x4dd8e1['maxColumn']-_0x4dd8e1['minColumn']+0x1;if('insertion'==_0x3322ba['type'])return _0x3e1502['length']?{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x174a39,'\x22'+_0x3e1502['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3bdb29,'*Insert:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN',_0x174a39))};if('deletion'==_0x3322ba['type'])return _0x3e1502['length']?{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x174a39,'\x22'+_0x3e1502['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3bdb29,'*Remove:*\x20%0',c(_0x3bdb29,'ELEMENT_TABLE_COLUMN',_0x174a39))};}}),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4b99ac),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4b99ac),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x21eeaf),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x21eeaf),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xa77b35),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xa77b35),_0x1d7706['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xc15ad3),_0x1d7706['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xc15ad3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x10bb9c=this['editor'],_0xfa4665=_0x10bb9c['model']['document']['selection'];return(_0x1a60b0,_0x5dcea4)=>{_0x10bb9c['model']['change'](_0x3edc0d=>{const {commandName:_0x43565a,commandParams:_0x3464ba}=_0x5dcea4;let _0x5bb869=_0x1a60b0[0x0]['end']['nodeBefore'];_0x3464ba&&_0x3464ba[0x0]&&!0x1===_0x3464ba[0x0]['forceValue']&&(_0x5bb869=_0x1a60b0[0x0]['start']['nodeAfter']);const _0x4a9fb4=_0x3edc0d['createRangeIn'](_0x5bb869);if('$graveyard'==_0x4a9fb4['root']['rootName'])return;const _0x6f9ba9=Array['from'](_0xfa4665['getRanges']())['map'](_0x36730b=>_0x2346b0['fromRange'](_0x36730b));_0x3edc0d['setSelection'](_0x4a9fb4),_0x10bb9c['commands']['get'](_0x43565a)['refresh'](),_0x3464ba['push']({'forceDefaultExecution':!0x0}),_0x10bb9c['execute'](_0x43565a,..._0x3464ba);const _0x25602e=_0x6f9ba9['filter'](_0x1b3d09=>'$graveyard'!=_0x1b3d09['root']['rootName']);_0x25602e['length']>0x0&&_0x3edc0d['setSelection'](_0x25602e);for(const _0x183205 of _0x6f9ba9)_0x183205['detach']();});};}['_getCoordsForCells'](_0x1c60f4){const _0x2dbaec=this['editor']['plugins']['get']('TableUtils');let _0x181d8e=Number['MAX_SAFE_INTEGER'],_0x1fa2c3=Number['MIN_SAFE_INTEGER'],_0x4d5116=Number['MAX_SAFE_INTEGER'],_0x5f2775=Number['MIN_SAFE_INTEGER'];for(const _0x7a5554 of _0x1c60f4){if('$graveyard'==_0x7a5554['root']['rootName'])continue;const {row:_0x182974,column:_0x1ab786}=_0x2dbaec['getCellLocation'](_0x7a5554),_0x5374a3=_0x7a5554['hasAttribute']('rowspan')?_0x7a5554['getAttribute']('rowspan')-0x1:0x0,_0xb4e925=_0x7a5554['hasAttribute']('colspan')?_0x7a5554['getAttribute']('colspan')-0x1:0x0;_0x181d8e=_0x182974<_0x181d8e?_0x182974:_0x181d8e,_0x1fa2c3=_0x182974+_0x5374a3>_0x1fa2c3?_0x182974+_0x5374a3:_0x1fa2c3,_0x4d5116=_0x1ab786<_0x4d5116?_0x1ab786:_0x4d5116,_0x5f2775=_0x1ab786+_0xb4e925>_0x5f2775?_0x1ab786+_0xb4e925:_0x5f2775;}return{'minRow':_0x181d8e,'maxRow':_0x1fa2c3,'minColumn':_0x4d5116,'maxColumn':_0x5f2775};}['_setupColumnsRowsFixing'](){const _0x5471ad=this['editor'],_0x301722=_0x5471ad['plugins']['get']('TrackChangesEditing'),_0xc27644=_0x5471ad['plugins']['get']('TableUtils');_0x5471ad['model']['document']['on']('change:data',()=>{const _0x144a57=Array['from'](_0x5471ad['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47f985,data:_0x33ed6e}of _0x144a57){const {group:_0x42673d,id:_0x213f67,subType:_0x31ca81}=_0x301722['_splitMarkerName'](_0x47f985);if('suggestion'!=_0x42673d)continue;if(null!=_0x33ed6e['oldRange'])continue;const _0x1fda95=_0x301722['getSuggestion'](_0x213f67);this['_tablePostFixingSubtypes']['includes'](_0x31ca81)&&this['_tableSuggestions']['add'](_0x1fda95);}},{'priority':'low'});const _0x5688da=(_0x25f66c,_0x4e5510)=>{let _0x5252c4=!0x1;const _0x586c96=_0x4e5510['createRangeOn'](_0x25f66c),_0x4d1638=_0x25f66c['findAncestor']('table'),_0x11a094=_0xc27644['getCellLocation'](_0x25f66c);for(const _0x2d2ba0 of this['_tableSuggestions']){const _0x32019d=_0x2d2ba0['subType'],_0x4c1faa=_0x32019d['startsWith']('tablePaste'),_0x3feb10=_0x32019d['substr'](_0x4c1faa?0xa:0x5),_0x372f27=_0x3feb10['toLowerCase'](),_0x499584=_0x372f27['substr'](0x0,0x3)+'span',_0x5362e1='min'+_0x3feb10,_0x3182c3='max'+_0x3feb10;if(!_0x2d2ba0['isInContent'])continue;if(_0x4d1638!=_0x2d2ba0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d2ba0['isIntersectingWithRange'](_0x586c96))continue;const _0x21082b=_0x25f66c['hasAttribute'](_0x499584)?_0x25f66c['getAttribute'](_0x499584)-0x1:0x0,_0x51837a=this['_getSuggestionCoords'](_0x2d2ba0),_0x4d4b79=_0x51837a[_0x5362e1],_0x208be5=_0x51837a[_0x3182c3];_0x4d4b79<=_0x11a094[_0x372f27]&&_0x11a094[_0x372f27]+_0x21082b<=_0x208be5&&(_0x2d2ba0['addRange'](_0x586c96),_0x5252c4=!0x0);}return _0x5252c4;};_0x5471ad['model']['document']['registerPostFixer'](_0x57476a=>{let _0x10d734=!0x1;for(const _0x3e59ce of _0x5471ad['model']['document']['differ']['getChanges']())if('insert'==_0x3e59ce['type']){if('tableRow'==_0x3e59ce['name']){for(const _0xe0b241 of _0x3e59ce['position']['nodeAfter']['getChildren']())_0x10d734=_0x10d734||_0x5688da(_0xe0b241,_0x57476a);}else'tableCell'==_0x3e59ce['name']&&(_0x10d734=_0x10d734||_0x5688da(_0x3e59ce['position']['nodeAfter'],_0x57476a));}return _0x10d734;});}['_getSuggestionCoords'](_0x497cb5){return this['_getCoordsForCells'](_0x497cb5['getRanges']()['map'](_0xd9c875=>_0xd9c875['start']['nodeAfter']));}}function Ne(_0x5b6023){return Array['from'](new Set(_0x5b6023)['values']());}class Nt extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x56cb28=this['editor'],_0x33905d=_0x56cb28['model']['document']['selection'],_0x2787dc=_0x56cb28['locale'];if(!_0x56cb28['plugins']['has']('TableEditing'))return;const _0x327019=_0x56cb28['plugins']['get']('TrackChangesEditing'),_0x550e15=_0x56cb28['plugins']['get']('TableUtils'),_0x14c1ea=_0x56cb28['plugins']['get'](Ct);_0x14c1ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x327019['enableCommand']('mergeTableCells',()=>{const _0x10a516=_0x550e15['getSelectionAffectedTableCells'](_0x56cb28['model']['document']['selection']);_0x56cb28['model']['change'](()=>{_0x327019['markMultiRangeBlockFormat'](_0x10a516,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56cb28['commands']['get']('mergeTableCells')['on']('execute',(_0x566e84,_0xbd11e)=>{_0x56cb28['commands']['get']('trackChanges')['value']&&(_0xbd11e['length']>0x0&&_0xbd11e[_0xbd11e['length']-0x1]&&_0xbd11e[_0xbd11e['length']-0x1]['forceDefaultExecution']||_0x327019['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x566e84['stop']());},{'priority':'highest'});for(const _0x2f9f0f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x56e609=_0x56cb28['commands']['get'](_0x2f9f0f);_0x327019['enableCommand'](_0x2f9f0f,()=>{const _0x58b087=_0x56cb28['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd5f183=>_0xd5f183['is']('element','tableCell')),_0x4bcf9f=_0x56e609['value'];_0x56cb28['model']['change'](()=>{_0x327019['markMultiRangeBlockFormat']([_0x58b087,_0x4bcf9f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41792d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2dbc13=_0x56cb28['commands']['get'](_0x41792d);_0x327019['enableCommand'](_0x41792d,()=>{const _0x314688=_0x550e15['getSelectionAffectedTableCells'](_0x56cb28['model']['document']['selection'])[0x0],_0x353013=_0x314688['findAncestor']('table'),{column:_0x58b5a8,row:_0x10f2ed}=_0x550e15['getCellLocation'](_0x314688);let _0x1e84fc=[];if('horizontally'==_0x2dbc13['direction']){const _0x4aed70=_0x550e15['createTableWalker'](_0x353013,{'startRow':_0x10f2ed,'endRow':_0x10f2ed,'includeAllSlots':!0x0});_0x1e84fc=Array['from'](_0x4aed70)['map'](_0x572308=>_0x572308['cell']);}else{const _0x4e3452=_0x550e15['createTableWalker'](_0x353013,{'column':_0x58b5a8,'includeAllSlots':!0x0});_0x1e84fc=Array['from'](_0x4e3452)['map'](_0xb472b=>_0xb472b['cell']);}_0x56cb28['model']['change'](_0x4163b7=>{_0x327019['markBlockFormat'](_0x4163b7['createRangeOn'](_0x314688),{'commandName':_0x41792d,'commandParams':[]},_0x1e84fc,_0x41792d);});});}_0x327019['descriptionFactory']['registerDescriptionCallback'](_0x32474f=>{if('formatBlock'!=_0x32474f['type']&&'formatInline'!=_0x32474f['type'])return;const {data:_0x22c694}=_0x32474f;return _0x22c694&&'mergeTableCells'==_0x22c694['commandName']?{'type':'format','content':c(_0x2787dc,'*Merge\x20cells*')}:void 0x0;}),_0x327019['descriptionFactory']['registerDescriptionCallback'](_0x5dc61c=>{if('formatBlock'!=_0x5dc61c['type']&&'formatInline'!=_0x5dc61c['type'])return;const {data:_0x2469e8}=_0x5dc61c;return _0x2469e8?'splitTableCellVertically'==_0x2469e8['commandName']?{'type':'format','content':c(_0x2787dc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2469e8['commandName']?{'type':'format','content':c(_0x2787dc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4004fa=_0x14c1ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x496b9e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x327019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x496b9e,'accept',_0x4004fa);for(const _0xd39114 of['splitTableCellVertically','splitTableCellHorizontally'])_0x327019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd39114,'accept',_0x4004fa);_0x327019['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x185b7c=>{_0x56cb28['model']['change'](_0x320a46=>{const _0x242a5a=Array['from'](_0x33905d['getRanges']())['map'](_0x371331=>_0x2346b0['fromRange'](_0x371331));_0x320a46['setSelection'](_0x185b7c),_0x56cb28['commands']['get']('mergeTableCells')['refresh'](),_0x56cb28['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2e8948=_0x242a5a['filter'](_0xb98901=>'$graveyard'!=_0xb98901['root']['rootName']);_0x2e8948['length']>0x0&&_0x320a46['setSelection'](_0x2e8948);for(const _0x210df4 of _0x242a5a)_0x210df4['detach']();});});for(const _0xeba154 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x47e401=_0x56cb28['commands']['get'](_0xeba154);_0x47e401['on']('set:isEnabled',(_0x1d3be0,_0x57a084,_0x5d7ce6)=>{if(_0x5d7ce6){const _0x2477f0=_0x56cb28['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29461c=>_0x29461c['is']('element','tableCell'));this['_areMergableCells'](_0x47e401['value'],_0x2477f0)||(_0x1d3be0['return']=!0x1,_0x1d3be0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x415b66=this['editor']['commands']['get']('mergeTableCells'),_0x4a0834=this['editor']['plugins']['get']('TableUtils');if(!_0x415b66['isEnabled'])return!0x1;const _0x7a6a4=_0x4a0834['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x400ff2 of _0x7a6a4)for(const _0x1617b9 of _0x7a6a4)if(_0x400ff2!=_0x1617b9&&!this['_areMergableCells'](_0x400ff2,_0x1617b9))return!0x1;return!0x0;}['_areMergableCells'](_0x5d8f2d,_0x12aba7){const _0x221796=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58ee93=this['editor']['model']['createRangeOn'](_0x5d8f2d),_0x2f6c7a=this['editor']['model']['createRangeOn'](_0x12aba7),_0x4cf443=new Set(),_0x5c7a37=new Set();for(const _0x11b023 of _0x221796['getSuggestions']())if(('insertion'==_0x11b023['type']||'deletion'==_0x11b023['type']||'mergeTableCells'==_0x11b023['subType'])&&_0x11b023['isInContent']){for(const _0x32d416 of _0x11b023['getRanges']())_0x32d416['containsRange'](_0x58ee93,!0x0)&&_0x4cf443['add'](_0x11b023['type']+':'+_0x11b023['author']['id']),_0x32d416['containsRange'](_0x2f6c7a,!0x0)&&_0x5c7a37['add'](_0x11b023['type']+':'+_0x11b023['author']['id']);}if(_0x4cf443['size']!=_0x5c7a37['size'])return!0x1;for(const _0x4d97e9 of _0x4cf443)if(!_0x5c7a37['has'](_0x4d97e9))return!0x1;return!0x0;}}class Dt extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ea11e=this['editor'];if(!_0x5ea11e['plugins']['has']('TableEditing'))return;const _0x4b35ac=_0x5ea11e['locale'],_0x5909b5=_0x5ea11e['plugins']['get']('TrackChangesEditing');_0x5909b5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5909b5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5909b5['registerBlockAttribute']('headingRows'),_0x5909b5['registerBlockAttribute']('headingColumns'),_0x5909b5['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4b35ac,'FORMAT_HEADER_ROW')),_0x5909b5['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4b35ac,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19a940=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2708dd=this['editor']['plugins']['get']('TableUtils'),_0x409642=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1f2f02({showActiveMarker:_0x5373e1=!0x0,setDataAttribute:_0x2e6f20=!0x0}={}){return(_0x792f81,_0x194e5d,_0x36cb50)=>{const {type:_0x10d3ad,id:_0x3aea8a}=_0x19a940['_splitMarkerName'](_0x194e5d['markerName']),_0x3c21b9=_0x19a940['getSuggestion'](_0x3aea8a),_0x4bd47d=_0x3c21b9['data'];if('formatBlock'!=_0x3c21b9['type']||!_0x4bd47d||'setTableColumnHeader'!=_0x4bd47d['commandName'])return;if(_0x194e5d['item'])return void _0x792f81['stop']();if(!_0x36cb50['consumable']['consume'](_0x194e5d['markerRange'],_0x792f81['name']))return;const _0x2c8953=_0x194e5d['markerRange']['start']['nodeAfter'],_0x194ad2=_0x194e5d['markerRange']['end']['nodeBefore'],_0xcd1981=_0x2c8953['parent']['parent'],{column:_0x37d445}=_0x2708dd['getCellLocation'](_0x2c8953),{column:_0x2eb83a}=_0x2708dd['getCellLocation'](_0x194ad2);for(let _0x40e4b4=_0x37d445;_0x40e4b4<=_0x2eb83a;_0x40e4b4++){const _0x3d2822=_0x2708dd['createTableWalker'](_0xcd1981,{'column':_0x40e4b4,'includeAllSlots':!0x1});for(const _0x2ef721 of _0x3d2822){const _0x2b72e8=_0x2ef721['cell'],_0x320bac=_0x36cb50['mapper']['toViewElement'](_0x2b72e8);_0x36cb50['writer']['addClass']('ck-suggestion-marker-'+_0x10d3ad,_0x320bac),_0x2e6f20&&_0x36cb50['writer']['setAttribute']('data-suggestion',_0x3aea8a,_0x320bac),_0x36cb50['mapper']['bindElementToMarker'](_0x320bac,_0x194e5d['markerName']),_0x5373e1&&(_0x19a940['activeMarkers']['includes'](_0x194e5d['markerName'])?_0x36cb50['writer']['addClass']('ck-suggestion-marker--active',_0x320bac):_0x36cb50['writer']['removeClass']('ck-suggestion-marker--active',_0x320bac));}}};}_0x19a940['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x409642),_0x19a940['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x409642),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1f2f02(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35c3d2,_0x2981f1,_0x11e8db)=>{_0x11e8db['options']['showSuggestionHighlights']&&_0x1f2f02({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x35c3d2,_0x2981f1,_0x11e8db);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x352866,_0x2e5f3d,_0x354c1e)=>{const {type:_0x43397e,id:_0x40aa97}=_0x19a940['_splitMarkerName'](_0x2e5f3d['markerName']),_0x537b04=_0x19a940['getSuggestion'](_0x40aa97),_0x69a370=_0x537b04['data'];if('formatBlock'!=_0x537b04['type']||!_0x69a370||'setTableColumnHeader'!=_0x69a370['commandName'])return;const _0x47a3c5=_0x354c1e['mapper']['markerNameToElements'](_0x2e5f3d['markerName']);if(_0x47a3c5){for(const _0xc09019 of _0x47a3c5)_0x354c1e['writer']['removeClass']('ck-suggestion-marker-'+_0x43397e,_0xc09019),_0x354c1e['writer']['removeClass']('ck-suggestion-marker--active',_0xc09019),_0x354c1e['writer']['removeAttribute']('data-suggestion',_0xc09019),_0x354c1e['mapper']['unbindElementFromMarkerName'](_0xc09019,_0x2e5f3d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcddf48=this['editor'],_0x557680=_0xcddf48['locale'];function _0x4fe04e(_0x3d1356){return{'type':'format','content':c(_0x557680,'*Format:*\x20%0',_0x3d1356)};}_0xcddf48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e401a=>{if('formatBlock'!=_0x5e401a['type'])return;const {data:_0x45c1f0}=_0x5e401a;if(_0x45c1f0){if('setTableRowHeader'==_0x45c1f0['commandName']){const _0x4bd28a=_0x45c1f0['commandParams'][0x0]['forceValue'];return _0x4fe04e(c(_0x557680,_0x4bd28a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x45c1f0['commandName']){const _0x17d5fc=_0x45c1f0['commandParams'][0x0]['forceValue'];return _0x4fe04e(c(_0x557680,_0x17d5fc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x2b8ff3{['afterInit'](){const _0xbffcac=this['editor'],_0x3c0abc=_0xbffcac['locale'],_0x5a0f61=_0xbffcac['plugins']['get']('TrackChangesEditing');function _0x5f0f21(_0x1550e5){return{'type':'format','content':''+c(_0x3c0abc,'*Set\x20table\x20type:*\x20%0',_0x1550e5)};}_0xbffcac['plugins']['has']('TableLayout')&&(_0x5a0f61['enableCommand']('insertTableLayout'),_0x5a0f61['enableDefaultAttributesIntegration']('tableType'),_0x5a0f61['registerBlockAttribute']('tableType'),_0x5a0f61['descriptionFactory']['registerElementLabel'](_0x516aa9=>_0x516aa9['is']('element','table')&&'layout'===_0x516aa9['getAttribute']('tableType'),_0xbf6302=>c(_0x3c0abc,'ELEMENT_LAYOUT_TABLE',_0xbf6302)),_0x5a0f61['descriptionFactory']['registerDescriptionCallback'](_0x57a8ca=>{const {data:_0x3ab741}=_0x57a8ca;if(_0x3ab741&&'tableType'==_0x3ab741['key'])switch(_0x3ab741['newValue']){case'layout':return _0x5f0f21(c(_0x3c0abc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5f0f21(c(_0x3c0abc,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x596e4c=>[_0x596e4c,null]));class $t extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x18d1b5=this['editor'];if(!_0x18d1b5['plugins']['has']('TableClipboard'))return;const _0x58729a=_0x18d1b5['plugins']['get']('TrackChangesEditing'),_0x2fda8d=_0x18d1b5['plugins']['get']('TableUtils'),_0xc942cf=_0x18d1b5['plugins']['get'](Ct),_0x259819=_0x18d1b5['plugins']['get']('TableClipboard'),_0x1d5952=_0x18d1b5['plugins']['get']('TableSelection'),_0x1c3482=_0x18d1b5['plugins']['get'](_0x24226c);_0xc942cf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x18d1b5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x18d1b5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2acf33=null,_0x42df9e=!0x1;_0x1c3482['on']('contentInsertion',(_0x3d419b,_0x40830d)=>{_0x42df9e='paste'===_0x40830d['method'];}),_0x18d1b5['model']['on']('insertContent',(_0x23c3d7,_0x281b7f)=>{if(!_0x42df9e&&null===_0x1d5952['getSelectedTableCells']())return;const [_0x39631c,_0x420260]=_0x281b7f,_0x32a7cd=_0x281b7f[_0x281b7f['length']-0x1];_0x32a7cd&&_0x32a7cd['forceDefaultExecution']||_0x58729a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1ee6fc,_0x56f92d,_0x1560a4,_0x1c153b,_0x455af6){if(_0x56f92d&&!_0x56f92d['is']('documentSelection'))return!0x1;const _0x5bcd42=_0x455af6['getTableIfOnlyTableInContent'](_0x1ee6fc,_0x1560a4);if(!_0x5bcd42||!De(_0x5bcd42,void 0x0,_0x1c153b))return!0x1;const _0xcedd31=_0x1c153b['getSelectionAffectedTableCells'](_0x1560a4['document']['selection']);if(!_0xcedd31['length'])return!0x1;const _0xcd358d=_0xcedd31[0x0]['findAncestor']('table'),_0x40bca6=_0x1c153b['getRowIndexes'](_0xcedd31),_0x75a41=_0x1c153b['getColumnIndexes'](_0xcedd31),_0x4191a0={'startRow':_0x40bca6['first'],'endRow':_0x40bca6['last'],'startColumn':_0x75a41['first'],'endColumn':_0x75a41['last']};return 0x1==_0xcedd31['length']&&(_0x4191a0['endRow']+=_0x1c153b['getRows'](_0x5bcd42)-0x1,_0x4191a0['endColumn']+=_0x1c153b['getColumns'](_0x5bcd42)-0x1),De(_0xcd358d,_0x4191a0,_0x1c153b);}(_0x39631c,_0x420260,_0x18d1b5['model'],_0x2fda8d,_0x259819)&&(_0x23c3d7['stop'](),_0x2acf33={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x18d1b5['model']['change'](()=>{_0x18d1b5['model']['insertContent'](_0x281b7f[0x0],_0x281b7f[0x1],_0x281b7f[0x2],{'forceDefaultExecution':!0x0});const _0x2ad008=_0x400c1f(),{rowInsertionRanges:_0xb9f421,columnInsertionRanges:_0x21caed,insertionRanges:_0x10e4b8,deletionRanges:_0x3e3721,cells:_0x53e286}=_0x2acf33;_0xb9f421['length']&&_0x58729a['markMultiRangeInsertion'](_0xb9f421,'tablePasteRow',{'tablePasteChainId':_0x2ad008}),_0x21caed['length']&&_0x58729a['markMultiRangeInsertion'](_0x21caed,'tablePasteColumn',{'tablePasteChainId':_0x2ad008}),_0x10e4b8['length']&&(_0x58729a['markMultiRangeInsertion'](_0x10e4b8,'tablePaste',{'tablePasteChainId':_0x2ad008,'skipNestingCheck':!0x0}),_0x10e4b8['forEach'](_0x36e83a=>_0x36e83a['detach']?.())),_0x3e3721['length']&&(_0x58729a['markMultiRangeDeletion'](_0x3e3721,'tablePaste',{'tablePasteChainId':_0x2ad008,'skipNestingCheck':!0x0}),_0x3e3721['forEach'](_0x1b2d3d=>_0x1b2d3d['detach']?.()));const _0x163cb4=_0x58729a['markMultiRangeBlockFormat'](_0x53e286['map'](({element:_0x39bd36})=>_0x39bd36),{'formatGroupId':_0x400c1f()},[],'tablePasteCell',{'tablePasteChainId':_0x2ad008});if(_0x163cb4){const _0x56006c=_0x163cb4['getMarkers'](),_0xd3cc05=[];for(const {element:_0x3dd870,attributes:_0x3d49dc}of _0x53e286){if(!_0x3d49dc)continue;const _0x22456f=_0x18d1b5['model']['createRangeOn'](_0x3dd870),_0x3d97fd=_0x56006c['find'](_0x542fb0=>_0x542fb0['getRange']()['isEqual'](_0x22456f));_0x3d97fd&&_0xd3cc05['push']([_0x3d97fd['name'],_0x3d49dc]);}_0xd3cc05['length']&&_0x163cb4['setAttribute']('markerAttributes',Object['fromEntries'](_0xd3cc05));}_0x2acf33=null;}));},{'priority':_0x135e08['high']+0xa}),_0x1c3482['on']('contentInsertion',()=>{_0x42df9e=!0x1;},{'priority':'lowest'}),_0x18d1b5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x523e18,_0x261395)=>{const [_0x31e2a9,_0x3c15f8,,_0x3e4491]=_0x261395;if(!_0x2acf33)return;_0x523e18['stop']();const _0x27f8e5=_0x31e2a9['cell'],_0x2c081e=_0x3c15f8,_0x465b28=Ue(_0x27f8e5),_0x3ee082=Ue(_0x2c081e);_0x523e18['return']=_0x27f8e5;let _0x49f1ea=null,_0x14e892=null;if(_0x3ee082||_0x465b28){if(_0x465b28&&!_0x3ee082){_0x3e4491['remove'](_0x27f8e5['getChild'](0x0));for(const _0x1b7ec2 of Array['from'](_0x2c081e['getChildren']()))_0x3e4491['insert'](_0x1b7ec2,_0x27f8e5,'end');const _0x443281=_0x2acf33['rowInsertionIndexes']['includes'](_0x31e2a9['row']),_0xfbde86=_0x2acf33['columnInsertionIndexes']['includes'](_0x31e2a9['column']);_0x443281||_0xfbde86||(_0x49f1ea=_0x2346b0['fromRange'](_0x3e4491['createRangeIn'](_0x27f8e5)));}else _0x3ee082&&!_0x465b28&&(_0x14e892=_0x3e4491['createRangeIn'](_0x27f8e5));}else{const _0x7cc3cf=_0x3e4491['createElement']('tableCellSuggestion'),_0x3671f2=_0x3e4491['createElement']('tableCellSuggestion');_0x3e4491['wrap'](_0x3e4491['createRangeIn'](_0x27f8e5),_0x3671f2),_0x3e4491['insert'](_0x7cc3cf,_0x27f8e5,0x0);for(const _0x5d81e1 of Array['from'](_0x2c081e['getChildren']()))_0x3e4491['insert'](_0x5d81e1,_0x7cc3cf,'end');_0x49f1ea=_0x2346b0['fromRange'](_0x3e4491['createRangeOn'](_0x7cc3cf)),_0x14e892=_0x2346b0['fromRange'](_0x3e4491['createRangeOn'](_0x3671f2));}const _0x2ddd28=Array['from'](_0x2c081e['getAttributes']())['filter'](([_0x1caff2])=>xe['includes'](_0x1caff2));_0x2acf33['cells']['push']({'element':_0x27f8e5,'attributes':_0x2ddd28['length']?Object['fromEntries'](_0x2ddd28):null}),_0x49f1ea&&_0x2acf33['insertionRanges']['push'](_0x49f1ea),_0x14e892&&_0x2acf33['deletionRanges']['push'](_0x14e892);},{'priority':'high'}),_0x2fda8d['on']('insertColumns',(_0x655a10,_0x2089c6)=>{const [_0x5b5693,_0x4e3da1={}]=_0x2089c6;if(!_0x2acf33)return;const _0x14d97b=_0x4e3da1['at']||0x0,_0x3b9899=_0x4e3da1['columns']||0x1;_0x2acf33['columnInsertionIndexes']=new Array(_0x3b9899)['fill'](_0x14d97b)['map']((_0x4c15b7,_0x2a3ff7)=>_0x4c15b7+_0x2a3ff7);for(const {cell:_0xf541fa}of _0x2fda8d['createTableWalker'](_0x5b5693,{'startColumn':_0x14d97b,'endColumn':_0x14d97b+_0x3b9899-0x1}))_0x2acf33['columnInsertionRanges']['push'](_0x18d1b5['model']['createRangeOn'](_0xf541fa));},{'priority':'low'}),_0x2fda8d['on']('insertRows',(_0x4485ef,_0x2227a2)=>{const [_0x5f28ab,_0x20ed25={}]=_0x2227a2;if(!_0x2acf33)return;const _0x1eb783=_0x20ed25['at']||0x0,_0x19cf31=_0x20ed25['rows']||0x1;_0x2acf33['rowInsertionIndexes']=new Array(_0x19cf31)['fill'](_0x1eb783)['map']((_0x30dce0,_0x119139)=>_0x30dce0+_0x119139);for(const {cell:_0x3c9ea6}of _0x2fda8d['createTableWalker'](_0x5f28ab,{'startRow':_0x1eb783,'endRow':_0x1eb783+_0x19cf31-0x1}))_0x2acf33['rowInsertionRanges']['push'](_0x18d1b5['model']['createRangeOn'](_0x3c9ea6));},{'priority':'low'}),_0x58729a['descriptionFactory']['registerDescriptionCallback'](_0x3e12fe=>{if(_0x3e12fe['subType']&&_0x3e12fe['subType']['startsWith']('tablePaste'))return _0x3e12fe['previous']?{}:{'type':'insertion','content':c(_0x18d1b5['locale'],'*Replace\x20table\x20cells*')};});const _0x124eeb=()=>!0x1;for(const _0x168b4e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x58729a['_suggestionFactory']['registerCustomCallback']('insertion',_0x168b4e,'join',_0x124eeb),_0x58729a['_suggestionFactory']['registerCustomCallback']('deletion',_0x168b4e,'join',_0x124eeb),_0x58729a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x168b4e,'join',_0x124eeb);_0x58729a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x124eeb),_0x58729a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a7d63,_0x59dfad,_0x45cf8a)=>{const _0x507c5b=_0x4a7d63['map'](_0x255b58=>_0x255b58['getContainedElement']())['filter'](_0x490c2e=>_0x490c2e),_0x13a640=new Map(_0x507c5b['map'](_0x4fcdb1=>[_0x4fcdb1,null]));if(_0x2acf33){for(const {element:_0x3b9528,attributes:_0x1a7e04}of _0x2acf33['cells'])_0x1a7e04&&_0x13a640['set'](_0x3b9528,_0x1a7e04);}else{if(_0x45cf8a&&_0x45cf8a['markerAttributes'])for(const [_0x2fcdf5,_0x2da93a]of Object['entries'](_0x45cf8a['markerAttributes'])){const _0x5b5105=_0x18d1b5['model']['markers']['get'](_0x2fcdf5),_0x2ca179=_0x5b5105?_0x5b5105['getRange']()['getContainedElement']():null;_0x2ca179&&_0x13a640['set'](_0x2ca179,_0x2da93a);}}_0x18d1b5['model']['change'](_0x9b3a62=>{for(const [_0x4eb4ab,_0xb6ab61]of _0x13a640)_0x9b3a62['setAttributes']({...Oe,..._0xb6ab61},_0x4eb4ab);});});const _0x32274e=(_0x20e9e3,_0x21b205)=>{_0x58729a['_suggestionFactory']['registerCustomCallback'](_0x20e9e3,'tablePaste',_0x21b205,(_0x547b0e,_0x102cc2,_0x43c6c1)=>{_0x18d1b5['model']['change'](_0x3f8727=>{const _0x255e4d=[];for(const _0x142eb7 of _0x547b0e){const _0x4d147e=_0x142eb7['start']['nodeAfter'];_0x4d147e['is']('element','tableCellSuggestion')&&_0x255e4d['push'](_0x4d147e);}_0x58729a['_suggestionFactory']['getSuggestionCallback'](_0x20e9e3,null,_0x21b205)(_0x547b0e,_0x102cc2,_0x43c6c1);for(const _0x25b88f of _0x255e4d)'$graveyard'!=_0x25b88f['root']['rootName']&&_0x3f8727['unwrap'](_0x25b88f);});});};_0x32274e('insertion','accept'),_0x32274e('insertion','discard'),_0x32274e('deletion','accept'),_0x32274e('deletion','discard'),_0x58729a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ab3a5=>{const _0x40a472=_0x1ab3a5['map'](_0x4ac0c7=>_0x4ac0c7['getContainedElement']()),_0x37f77b=_0x40a472[0x0]['findAncestor']('table'),{minRow:_0x91f3d5,maxRow:_0x2fa26e}=_0xc942cf['_getCoordsForCells'](_0x40a472);_0x2fda8d['removeRows'](_0x37f77b,{'at':_0x91f3d5,'rows':_0x2fa26e-_0x91f3d5+0x1});}),_0x58729a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14a4c8=>{const _0x440645=_0x14a4c8['map'](_0x41bee5=>_0x41bee5['getContainedElement']()),_0x1e6ae7=_0x440645[0x0]['findAncestor']('table'),{minColumn:_0x5228ca,maxColumn:_0x28df9c}=_0xc942cf['_getCoordsForCells'](_0x440645);_0x2fda8d['removeColumns'](_0x1e6ae7,{'at':_0x5228ca,'columns':_0x28df9c-_0x5228ca+0x1});});const _0x5824bf=(_0x4bba40,_0x57b2a0)=>{if(!_0x57b2a0['subType']||!_0x57b2a0['subType']['startsWith']('tablePaste'))return;const _0x4e0a3c=_0x57b2a0['attributes']['tablePasteChainId'],_0x35683f=_0x58729a['getSuggestions']()['filter'](_0x2185fc=>_0x2185fc['isInContent']&&_0x2185fc['attributes']&&_0x2185fc['attributes']['tablePasteChainId']==_0x4e0a3c);_0x35683f['length']&&_0x57b2a0['getAllAdjacentSuggestions']()['length']!=_0x35683f['length']&&_0x35683f['reduce']((_0x1b8196,_0x41e4ed)=>(_0x1b8196['next']=_0x41e4ed,_0x41e4ed['previous']=_0x1b8196,_0x41e4ed));};function _0x85c966(_0x200212,_0x404913=!0x0){const {id:_0x18ee25,authorId:_0x15bf3e}=_0x58729a['_splitMarkerName'](_0x200212['markerName']),_0x1002ed=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x52a8b5=_0x58729a['activeMarkers']['includes'](_0x200212['markerName']);return _0x52a8b5&&_0x1002ed['push']('ck-suggestion-marker--active'),{'classes':_0x1002ed,'attributes':{'data-suggestion':_0x18ee25,'data-author-id':_0x15bf3e},'priority':_0x52a8b5&&_0x404913?0xbc2:0xbb8};}_0x58729a['on']('suggestionLoaded',_0x5824bf,{'priority':'high'}),_0x58729a['on']('suggestionUnloaded',_0x5824bf,{'priority':'high'}),_0x18d1b5['model']['document']['registerPostFixer'](()=>{let _0x10fb71=!0x1;const _0x10c189=Array['from'](_0x18d1b5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53f005,data:_0x4f9c4a}of _0x10c189){const {group:_0x3e0ced,type:_0x1a11b2,id:_0x5a121c}=_0x58729a['_splitMarkerName'](_0x53f005);if('suggestion'!=_0x3e0ced||'deletion'!=_0x1a11b2||_0x4f9c4a['oldRange'])continue;if(!_0x58729a['hasSuggestion'](_0x5a121c))continue;const _0x341d8e=_0x58729a['getSuggestion'](_0x5a121c)['getRanges'](),_0x268359=_0x18d1b5['plugins']['get']('Users')['me'];for(const _0x14b8f0 of _0x58729a['getSuggestions']()){if(!_0x14b8f0['isInContent']||_0x14b8f0['author']!=_0x268359)continue;if('formatBlock'!=_0x14b8f0['type']||'tablePasteCell'!=_0x14b8f0['subType'])continue;if(_0x14b8f0['getRanges']()['every'](_0x292379=>_0x341d8e['some'](_0x2e0a0c=>_0x2e0a0c['containsRange'](_0x292379,!0x0)))){for(const _0x2ec07a of _0x14b8f0['getAllAdjacentSuggestions']())_0x2ec07a['isInContent']&&(_0x2ec07a['discard'](),_0x10fb71=!0x0);}}}return _0x10fb71;}),_0x18d1b5['model']['document']['registerPostFixer'](_0x17ceda=>{const _0x22e192=_0x18d1b5['commands']['get']('redo');if(!_0x22e192||!_0x22e192['_createdBatches']['has'](_0x17ceda['batch']))return!0x1;let _0x3deea1=!0x1;const _0x868462=_0x18d1b5['plugins']['get']('Users')['me'],_0x1a8517=_0x18d1b5['model']['document']['differ']['getChanges'](),_0x187dd6=Array['from'](_0x18d1b5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x18c596,data:_0x563f3d})=>{const {group:_0x4e06f3,subType:_0x4f828c,authorId:_0x87f145}=_0x58729a['_splitMarkerName'](_0x18c596);return'suggestion'==_0x4e06f3&&'tablePaste'==_0x4f828c&&_0x87f145==_0x868462['id']&&!_0x563f3d['oldRange'];});for(const _0x2702d1 of _0x1a8517){if('insert'!=_0x2702d1['type']||'tableCellSuggestion'!=_0x2702d1['name']||0x1!=_0x2702d1['length'])continue;const _0x12dd47=_0x17ceda['createRange'](_0x2702d1['position'],_0x2702d1['position']['getShiftedBy'](0x1));if(!_0x187dd6['find'](({data:_0xdf0884})=>_0xdf0884['newRange']['isEqual'](_0x12dd47))){for(const {name:_0x3d8fcc,data:_0x2dfbec}of _0x187dd6)if(_0x12dd47['containsRange'](_0x2dfbec['newRange'])){_0x17ceda['updateMarker'](_0x3d8fcc,{'range':_0x12dd47}),_0x3deea1=!0x0;break;}}}return _0x3deea1;}),_0x18d1b5['model']['document']['registerPostFixer'](_0x57cbaf=>{let _0x198af3=!0x1;const _0x52aadd=_0x18d1b5['plugins']['get']('Users')['me'],_0x4cd180=_0x58729a['getSuggestions']()['filter'](_0x3c50ab=>_0x3c50ab['isInContent']&&_0x3c50ab['author']==_0x52aadd),_0x11a16a=new Set(),_0x4bc46b=new Set();for(const _0x18efa9 of _0x4cd180)if('tablePaste'==_0x18efa9['subType'])for(const _0xe71ea6 of _0x18efa9['getMarkers']()){const _0x249119=_0xe71ea6['getRange']()['getContainedElement']();if(_0x249119){if(_0x249119['is']('element','tableCellSuggestion')&&Ue(_0x249119)){_0x18efa9['removeMarker'](_0xe71ea6['name']),_0x11a16a['add'](_0x249119),_0x198af3=!0x0;const _0x45dbe2=_0x249119['nextSibling'],_0x461e06=_0x249119['previousSibling'],_0x1a4ba2=_0x45dbe2&&_0x45dbe2['is']('element','tableCellSuggestion'),_0x5145f6=_0x461e06&&_0x461e06['is']('element','tableCellSuggestion');_0x1a4ba2&&!_0x11a16a['has'](_0x45dbe2)&&_0x4bc46b['add'](_0x45dbe2),_0x5145f6&&!_0x11a16a['has'](_0x461e06)&&_0x4bc46b['add'](_0x461e06);}else _0x249119['is']('element','paragraph')&&_0x249119['isEmpty']&&(_0x18efa9['removeMarker'](_0xe71ea6['name']),_0x198af3=!0x0);}}else{if('tablePasteCell'==_0x18efa9['subType']){if(!_0x18efa9['attributes']||!_0x18efa9['attributes']['tablePasteChainId'])continue;const _0xe30506=_0x18efa9['attributes']['markerAttributes'];if(_0xe30506&&Object['keys'](_0xe30506)['length'])continue;const _0x24e289=_0x18efa9['attributes']['tablePasteChainId'];let _0x32d68c=!0x0,_0x532121=!0x0;for(const _0x285560 of _0x4cd180)if(_0x285560['subType']&&_0x285560['subType']['startsWith']('tablePaste')){if(!_0x285560['attributes']['tablePasteChainId']){_0x532121=!0x1;break;}if(_0x285560['id']!=_0x18efa9['id']&&_0x285560['attributes']['tablePasteChainId']==_0x24e289){_0x32d68c=!0x1;break;}}_0x532121&&_0x32d68c&&(_0x18efa9['removeMarkers'](),_0x198af3=!0x0);}}for(const _0x3bc710 of _0x11a16a)_0x57cbaf['remove'](_0x3bc710);for(const _0x258140 of _0x4bc46b)_0x57cbaf['unwrap'](_0x258140);return _0x198af3;}),_0x18d1b5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x56ebd1=>_0x85c966(_0x56ebd1),'converterPriority':'high'}),_0x18d1b5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4551e9,_0xfa24cc)=>_0xfa24cc['options']['showSuggestionHighlights']?_0x85c966(_0x4551e9,!0x1):null,'converterPriority':'high'});const _0x51a79e=_0x18d1b5['editing']['view'];this['listenTo'](_0x51a79e['document'],'clipboardOutput',(_0x2aa474,_0xfabc7f)=>{const _0x3b8c27=[];for(const _0x449e74 of _0x51a79e['createRangeIn'](_0xfabc7f['content'])['getItems']())_0x449e74['is']('element','suggestion-td')&&_0x3b8c27['push'](_0x449e74);_0x51a79e['change'](_0x48d6fa=>{for(const _0x258643 of _0x3b8c27)_0x48d6fa['move'](_0x48d6fa['createRangeIn'](_0x258643),_0x48d6fa['createPositionBefore'](_0x258643)),_0x48d6fa['remove'](_0x258643);});});}}function Ue(_0x2996be){if(_0x2996be['isEmpty'])return!0x0;const _0x383f2a=_0x2996be['getChild'](0x0);return _0x383f2a['is']('element','paragraph')&&_0x383f2a['isEmpty'];}function De(_0x4c38ce,_0x14dcd={},_0x568428){for(const {isAnchor:_0x4069d7,cellHeight:_0x5e9617,cellWidth:_0x294192}of _0x568428['createTableWalker'](_0x4c38ce,{'includeAllSlots':!0x0,..._0x14dcd}))if(!_0x4069d7||0x1!=_0x5e9617||0x1!=_0x294192)return!0x1;return!0x0;}class Bt extends _0x2b8ff3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xe1bf8=this['editor']['plugins']['get']('TrackChangesEditing');_0xe1bf8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xe1bf8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xe1bf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe1bf8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xe1bf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xe1bf8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x78be96,_0x4166c4){const _0x3c4157=this['editor']['plugins']['get']('TrackChangesEditing'),_0x563a37=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x583786=_0x4166c4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x23b0ca=_0x563a37['getColumnGroupElement'](_0x583786);let _0x35c4b7=_0x23b0ca?_0x563a37['getTableColumnsWidths'](_0x23b0ca):null,_0x38a75f=_0x583786['getAttribute']('tableWidth')||null;const _0x3ed407=_0x4166c4['tableWidth']||_0x38a75f,_0x34832d=_0x4166c4['columnWidths']||_0x35c4b7,_0x8d7f84=this['editor']['plugins']['get']('Users')['me'];for(const _0x1859d0 of _0x3c4157['getSuggestions']()){const _0x561618=_0x1859d0['getContainedElement']();if('resizeTable'===_0x1859d0['subType']&&_0x561618===_0x583786){_0x1859d0['author']!==_0x8d7f84&&_0x1859d0['discard']();const _0x2653ed=_0x1859d0['data']['commandParams'];_0x38a75f=_0x2653ed[0x0]['tableWidth'],_0x35c4b7=_0x2653ed[0x0]['columnWidths'];break;}}_0x78be96({'table':_0x583786,'tableWidth':_0x3ed407,'columnWidths':_0x34832d}),_0x3c4157['markBlockFormat'](_0x583786,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x38a75f,'columnWidths':_0x35c4b7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x23bd71){if('formatBlock'!=_0x23bd71['type']&&'formatInline'!=_0x23bd71['type'])return;const {data:_0x1dcde3}=_0x23bd71;if(_0x1dcde3&&'resizeTable'===_0x1dcde3['formatGroupId']){const _0x38dc90='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x38dc90)};}}}class Ot extends _0x2b8ff3{['afterInit'](){const _0x56d9de=this['editor'];_0x56d9de['plugins']['has']('Template')&&_0x56d9de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x2b8ff3{['afterInit'](){const _0x11e4d9=this['editor'];if(!_0x11e4d9['commands']['get']('insertTableOfContents'))return;_0x11e4d9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x338225=_0x11e4d9['plugins']['get']('TrackChangesEditing'),_0x33294d=_0x11e4d9['locale'];_0x338225['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3e16a3=>c(_0x33294d,'ELEMENT_TABLE_OF_CONTENTS',_0x3e16a3));}}class xt extends _0x2b8ff3{['afterInit'](){const _0x4ae745=this['editor'];if(!_0x4ae745['plugins']['has']('Title'))return;const _0x13c0b0=_0x4ae745['plugins']['get']('TrackChangesEditing');_0x13c0b0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4ae745['locale'],'ELEMENT_TITLE')),_0x4ae745['model']['document']['registerPostFixer'](_0x4ae739=>{let _0x5342d9=!0x1;const _0x3da1d4=Array['from'](_0x4ae745['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a816e,data:_0x4776b4}of _0x3da1d4){const {group:_0x548402}=_0x13c0b0['_splitMarkerName'](_0x4a816e);if('suggestion'!==_0x548402||!_0x4776b4['newRange'])continue;const _0x1f3ec6=_0x4776b4['newRange'],_0x46bfb4=_0x1f3ec6['end']['nodeBefore'];if(!_0x46bfb4||!_0x46bfb4['is']('element','title-content'))continue;if(!_0x1f3ec6['start']['isTouching'](_0x1f3ec6['end']))continue;const _0x4221a2=_0x4ae745['model']['schema']['getNearestSelectionRange'](_0x1f3ec6['end'],'forward');if(_0x4221a2&&_0x4221a2['isCollapsed']){const _0x5947e3=_0x4ae739['createRange'](_0x1f3ec6['start'],_0x4221a2['start']);_0x5947e3['isEqual'](_0x1f3ec6)||(_0x4ae739['updateMarker'](_0x4a816e,{'range':_0x5947e3}),_0x5342d9=!0x0);}_0x5342d9||(_0x4ae739['removeMarker'](_0x4a816e),_0x5342d9=!0x0);}return _0x5342d9;});}}class Tt extends _0x2b8ff3{['afterInit'](){const _0x27f104=this['editor'],_0x94b0b5=_0x27f104['plugins']['get']('TrackChangesEditing');_0x27f104['plugins']['has']('Uploadcare')&&(_0x94b0b5['enableCommand']('uploadcare'),_0x27f104['plugins']['has']('UploadcareImageEdit')&&(_0x94b0b5['enableCommand']('uploadcareImageEdit'),_0x94b0b5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x94b0b5['registerBlockAttribute']('uploadcareImageId'),_0x94b0b5['descriptionFactory']['registerDescriptionCallback'](_0x414c9b=>{if('attribute'!=_0x414c9b['type'])return;const {data:_0x164b72}=_0x414c9b;return _0x164b72&&'uploadcareImageId'==_0x164b72['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2b8ff3{['afterInit'](){const _0x10f72e=this['editor'],_0x24ef63=_0x10f72e['plugins']['get']('TrackChangesEditing');_0x10f72e['plugins']['has']('UndoEditing')&&(_0x24ef63['enableCommand']('undo'),_0x24ef63['enableCommand']('redo'));}}class Ut extends _0x2b8ff3{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ba1fe=this['editor'];if(!_0x5ba1fe['plugins']['has']('TableCaptionEditing'))return;_0x5ba1fe['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2b8ff3{['tableProperties'];['tableCellProperties'];constructor(_0x348892){super(_0x348892),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5c637b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x47af6f of this['tableProperties'])_0x5c637b['enableCommand'](_0x47af6f,(_0x4a9d02,_0x4408a7)=>{const _0x419a0e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x47af6f,[_0x419a0e],this['tableProperties'],'tableProperties',_0x4a9d02,_0x4408a7);});_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c637b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2891a2,_0x3160e0)=>this['handleDiscardAction'](this['tableProperties'],_0x2891a2,_0x3160e0)),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5bfed0 of this['tableCellProperties'])_0x5c637b['enableCommand'](_0x5bfed0,(_0x538f88,_0x1abd80)=>{const _0x28023c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5bfed0,_0x28023c,this['tableCellProperties'],'tableCellProperties',_0x538f88,_0x1abd80);});_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c637b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5ed04d,_0x5ca990)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5ed04d,_0x5ca990)),_0x5c637b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c637b['descriptionFactory']['registerDescriptionCallback'](_0x25d474=>this['handleSuggestionDescription'](_0x25d474));}['_handlePropertyChange'](_0x3b6efd,_0x4bb550,_0x3e1fa1,_0x5124d3,_0xf7e32f,_0x2f9276){const _0x42c65e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f9276['batch'],()=>{for(const _0xc75842 of _0x4bb550){if(this['_getSuggestion'](_0xc75842,_0x5124d3))_0xf7e32f(_0x2f9276);else{const _0x573ed5={};for(const _0x1bfbdc of _0x3e1fa1){const _0x69d59=_0xc75842['getAttribute'](_0x1bfbdc);void 0x0!==_0x69d59&&(_0x573ed5[_0x1bfbdc]=_0x69d59);}_0xf7e32f(_0x2f9276),_0x42c65e['markBlockFormat'](_0xc75842,{'commandParams':[_0x573ed5]},[],_0x5124d3);}}});}['handleDiscardAction'](_0x2aae64,_0x6f2928,_0x37de64){const _0x2a9cfb=_0x6f2928[0x0]['start']['nodeAfter'],_0x175cfc=_0x37de64['commandParams'][0x0];this['editor']['model']['change'](_0x4b8a5a=>{for(const _0x5c1c2a of _0x2aae64)void 0x0!==_0x175cfc[_0x5c1c2a]?_0x4b8a5a['setAttribute'](_0x5c1c2a,_0x175cfc[_0x5c1c2a],_0x2a9cfb):_0x4b8a5a['removeAttribute'](_0x5c1c2a,_0x2a9cfb);});}['handleSuggestionDescription'](_0x584712){if(_0x584712['data'])switch(_0x584712['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x58167d,_0x7c646d){const _0x44c90e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x380466 of _0x44c90e['getSuggestions']({'skipNotAttached':!0x0})){const _0x2298db=_0x380466['getContainedElement']();if(_0x380466['subType']===_0x7c646d&&_0x2298db===_0x58167d)return _0x380466;}return null;}}const u='$elementName';class p extends _0x2b8ff3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x26a833,_0x20ee0c,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x378f6d){super(_0x378f6d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x21953b,_0x29ddfb,_0x35a522,_0x4c48e2)=>{this['_model']['change'](()=>{for(const _0x547c34 of[..._0x4c48e2,..._0x35a522])this['_model']['markers']['has'](_0x547c34)&&_0x378f6d['editing']['reconvertMarker'](_0x547c34);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x378f6d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x378f6d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x378f6d['config']['get']('trackChanges.trackFormatChanges'),_0x378f6d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x378f6d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x378f6d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x238bc0=this['editor'],_0x3f7d38=(_0x27dc8b,_0x18a79a)=>{if('attribute'!=_0x27dc8b)return'ck-suggestion-marker-'+_0x27dc8b;const _0x421029=_0x18a79a['split']('|')[0x0];return this['_isBlockAttribute'](_0x421029)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x238bc0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x38e23f=>{const {id:_0x12d030,authorId:_0xebd6ee,type:_0x5d36c3,subType:_0x3f467b}=this['_splitMarkerName'](_0x38e23f['markerName']),_0x218fc2=['ck-suggestion-marker',_0x3f7d38(_0x5d36c3,_0x3f467b)];let _0x27de12=0xbb8;return this['activeMarkers']['includes'](_0x38e23f['markerName'])&&(_0x218fc2['push']('ck-suggestion-marker--active'),_0x27de12=0xbc2),'deletion'==_0x5d36c3&&(_0x27de12+=0x5),{'classes':_0x218fc2,'attributes':{'data-suggestion':_0x12d030,'data-author-id':_0xebd6ee},'priority':_0x27de12};}}),_0x238bc0['conversion']['for']('dataDowncast')['add'](_0xfb643f=>{_0xfb643f['on']('addMarker:suggestion',(_0x6a8c4e,_0x52644f,_0x54b139)=>{if(!_0x54b139['options']['showSuggestionHighlights'])return;const _0x38a12f=_0x52644f['item'];if(!_0x38a12f)return;const _0x1362c0=_0x54b139['mapper']['toViewElement'](_0x38a12f);_0x238bc0['model']['schema']['isObject'](_0x38a12f)&&_0x1362c0&&!_0x1362c0['getCustomProperty']('widget')&&_0x1362c0['is']('containerElement')&&_0x3a9147(_0x1362c0,_0x54b139['writer']);},{'priority':'high'});}),_0x238bc0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x233872,_0x313860)=>{if(!_0x313860['options']['showSuggestionHighlights'])return null;const {type:_0x21d570,subType:_0xe41be8}=this['_splitMarkerName'](_0x233872['markerName']);return{'classes':['ck-suggestion-marker',_0x3f7d38(_0x21d570,_0xe41be8)],'priority':0xbb8};}});const _0x49bc56=({showActiveMarkers:_0x360a67=!0x0,isAttributeSuggestion:_0x1c1592=!0x1}={})=>(_0x487c69,_0x1dca95,_0x42929e)=>{if(!_0x1dca95['item'])return;const {id:_0x5279c6,authorId:_0x4d3f52}=this['_splitMarkerName'](_0x1dca95['markerName']);if(_0x1c1592){const _0x56874a=this['_suggestions']['get'](_0x5279c6),_0x12ee38=this['_getAttributeKey'](_0x56874a);if(!this['_isBlockAttribute'](_0x12ee38))return;}if(_0x1dca95['item']['is']('selection'))return void _0x42929e['consumable']['consume'](_0x1dca95['item'],_0x487c69['name']);const _0x85aef=_0x42929e['mapper']['toViewElement'](_0x1dca95['item']);if(_0x1dca95['item']['is']('element')&&_0x238bc0['model']['schema']['isBlock'](_0x1dca95['item'])&&!_0x85aef['getCustomProperty']('addHighlight')){_0x42929e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x85aef),_0x42929e['writer']['setAttribute']('data-suggestion',_0x5279c6,_0x85aef),_0x42929e['writer']['setAttribute']('data-author-id',_0x4d3f52,_0x85aef),_0x42929e['mapper']['bindElementToMarker'](_0x85aef,_0x1dca95['markerName']),_0x360a67&&(this['activeMarkers']['includes'](_0x1dca95['markerName'])?_0x42929e['writer']['addClass']('ck-suggestion-marker--active',_0x85aef):_0x42929e['writer']['removeClass']('ck-suggestion-marker--active',_0x85aef));for(const _0x448795 of _0x238bc0['model']['createRangeIn'](_0x1dca95['item'])['getItems']())_0x42929e['consumable']['consume'](_0x448795,_0x487c69['name']);_0x42929e['consumable']['consume'](_0x1dca95['item'],_0x487c69['name']);}};_0x238bc0['conversion']['for']('dataDowncast')['add'](_0x412d85=>{_0x412d85['on']('addMarker:suggestion:formatBlock',(_0x2a630c,_0x4a15b5,_0xf3def1)=>{_0xf3def1['options']['showSuggestionHighlights']&&_0x49bc56({'showActiveMarkers':!0x1})(_0x2a630c,_0x4a15b5,_0xf3def1);},{'priority':'highest'});}),_0x238bc0['conversion']['for']('dataDowncast')['add'](_0x4ac6e1=>{_0x4ac6e1['on']('addMarker:suggestion:attribute',(_0x5ee152,_0x495569,_0x3aee5e)=>{_0x3aee5e['options']['showSuggestionHighlights']&&_0x49bc56({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5ee152,_0x495569,_0x3aee5e);},{'priority':'highest'});}),_0x238bc0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3a51d3,_0x5388ad)=>_0x5388ad['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3a51d3['substr'](0xb)}}),_0x238bc0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x160f6e,{writer:_0x580bf6})=>{let _0x34b1b3='suggestion:'+_0x160f6e['getAttribute']('suggestion-type')+':'+_0x160f6e['getAttribute']('id');return _0x160f6e['getAttribute']('marker-count')&&(_0x34b1b3+=':'+_0x160f6e['getAttribute']('marker-count')),_0x580bf6['createElement']('$marker',{'data-name':_0x34b1b3});}}),_0x238bc0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x30a985=>{_0x30a985['on']('addMarker:suggestion:formatBlock',_0x49bc56(),{'priority':'high'});}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x5e9d0f=>{_0x5e9d0f['on']('addMarker:suggestion:attribute',_0x49bc56({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x4cdaae=>{_0x4cdaae['on']('removeMarker:suggestion:formatBlock',(_0x20c39c,_0x6006c4,_0x22d024)=>{const _0x2c8187=_0x22d024['mapper']['markerNameToElements'](_0x6006c4['markerName']);if(_0x2c8187){for(const _0x319858 of _0x2c8187)_0x319858['getCustomProperty']('addHighlight')||(_0x22d024['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x319858),_0x22d024['writer']['removeAttribute']('data-suggestion',_0x319858),_0x22d024['writer']['removeAttribute']('data-author-id',_0x319858),_0x22d024['mapper']['unbindElementFromMarkerName'](_0x319858,_0x6006c4['markerName']));}},{'priority':'high'});}),_0x238bc0['conversion']['for']('editingDowncast')['add'](_0x51b9c=>{_0x51b9c['on']('removeMarker:suggestion:attribute',(_0x25c98c,_0x5da9a1,_0x2fff15)=>{const _0x4ac9bb=_0x2fff15['mapper']['markerNameToElements'](_0x5da9a1['markerName']);if(!_0x4ac9bb)return;const {id:_0x11a1d5}=this['_splitMarkerName'](_0x5da9a1['markerName']),_0x58abb2=this['_suggestions']['get'](_0x11a1d5),_0x43e1d8=this['_getAttributeKey'](_0x58abb2);if(this['_isBlockAttribute'](_0x43e1d8)){for(const _0x450b8b of _0x4ac9bb)_0x450b8b['getCustomProperty']('addHighlight')||(_0x2fff15['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x450b8b),_0x2fff15['writer']['removeAttribute']('data-suggestion',_0x450b8b),_0x2fff15['writer']['removeAttribute']('data-author-id',_0x450b8b),_0x2fff15['mapper']['unbindElementFromMarkerName'](_0x450b8b,_0x5da9a1['markerName']));}},{'priority':'high'});}),_0x238bc0['model']['document']['registerPostFixer'](_0x79eeb5=>{let _0x3b55b8=!0x1;const _0x3b1687=Array['from'](_0x238bc0['model']['document']['differ']['getChangedMarkers']()),_0x40b3a0=new Set();for(const {name:_0x1ba9b2,data:_0x529cdf}of _0x3b1687){const {group:_0x5653de,type:_0x4d4ba6,subType:_0x320c17,id:_0x5cf7a4}=this['_splitMarkerName'](_0x1ba9b2);if('suggestion'!==_0x5653de)continue;const _0x3cf9ed=this['_suggestions']['get'](_0x5cf7a4);if(null!=_0x529cdf['newRange']){'formatInline'==_0x4d4ba6&&(_0x3b55b8=_0x3b55b8||Jt(_0x529cdf['newRange'],_0x1ba9b2,_0x79eeb5,_0x238bc0['model']['schema']));const _0x7fdc9='attribute'==_0x4d4ba6&&this['_isBlockAttribute'](_0x320c17['split']('|')[0x0]);if(_0x529cdf['newRange']['isCollapsed']||'$graveyard'==_0x529cdf['newRange']['root']['rootName']||'formatBlock'==_0x4d4ba6&&!Ht(_0x529cdf['newRange'])||_0x7fdc9&&!Ht(_0x529cdf['newRange'])||'deletion'==_0x4d4ba6&&!(!Lt(_0x2a8d0d=_0x529cdf['newRange'])&&!function(_0x41727e){return _0x41727e['start']['parent']==_0x41727e['end']['nodeBefore']&&_0x41727e['start']['isAtEnd'];}(_0x2a8d0d)))_0x79eeb5['removeMarker'](_0x1ba9b2),_0x3b55b8=!0x0;else{if(!_0x3cf9ed||!_0x3cf9ed['isInContent'])continue;if(_0x529cdf['newRange']&&_0x529cdf['oldRange']&&_0x529cdf['newRange']['isEqual'](_0x529cdf['oldRange']))continue;_0x40b3a0['add'](_0x3cf9ed);}}}var _0x2a8d0d;return _0x40b3a0['size']>0x0&&(_0x3b55b8=!!this['_joinWithAdjacentSuggestions'](_0x40b3a0)||_0x3b55b8),_0x3b55b8;}),_0x238bc0['model']['document']['registerPostFixer'](_0x13a616=>{let _0x2f52e5=!0x1;for(const _0x3546db of _0x238bc0['model']['document']['differ']['getChanges']())if('insert'==_0x3546db['type'])for(const _0xb4ffda of this['_suggestions']['values']()){if(_0xb4ffda['isMultiRange']||!_0xb4ffda['isInContent'])continue;const _0x11f16e='formatBlock'==_0xb4ffda['type'],_0x451731=this['_getAttributeKey'](_0xb4ffda),_0x2d09f9=_0x451731&&this['_isBlockAttribute'](_0x451731);if(!_0x11f16e&&!_0x2d09f9)continue;const _0x4f659a=_0xb4ffda['getFirstRange']();if(_0x4f659a['start']['parent']!=_0x4f659a['end']['parent']&&!_0x4f659a['end']['isAtEnd']){const _0x12d4c4=_0x238bc0['model']['createPositionAt'](_0x4f659a['start']['nodeAfter'],'end'),_0x48fff1=_0x238bc0['model']['createRange'](_0x4f659a['start'],_0x12d4c4);_0x13a616['updateMarker'](_0xb4ffda['getFirstMarker'](),{'range':_0x48fff1}),_0x2f52e5=!0x0;}}return _0x2f52e5;}),_0x238bc0['model']['document']['registerPostFixer'](_0x1bf1a1=>this['_processAttributeChanges'](_0x1bf1a1)),_0x238bc0['model']['document']['registerPostFixer'](_0x20db02=>!_0x20db02['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x20db02)),_0x238bc0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x238bc0['model']['document']['on']('change:data',(_0x43afa7,_0x3d5ef2)=>{if(!_0x3d5ef2['isLocal']||_0x3d5ef2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4c1be8=_0x238bc0['model']['document']['differ']['getChanges']();if(0x0==_0x4c1be8['length'])return;const _0x6a21ed=[],_0x286dff=_0x4c1be8['filter'](_0x616b0c=>'attribute'==_0x616b0c['type']),_0x3921e7=_0x4c1be8['filter'](_0x3027d6=>'insert'==_0x3027d6['type']&&'$text'!=_0x3027d6['name']);for(const _0x37356f of _0x286dff)this['_isRegisteredAttribute'](_0x37356f['attributeKey'])&&_0x6a21ed['push']({'key':_0x37356f['attributeKey'],'newValue':_0x37356f['attributeNewValue'],'oldValue':_0x37356f['attributeOldValue'],'range':qt(_0x37356f['range'],_0x238bc0['model'])});for(const _0x5d2aa2 of _0x3921e7){if('rename'!=_0x5d2aa2['action']&&'refresh'!=_0x5d2aa2['action'])continue;const _0x2e7627=zt(_0x5d2aa2['position']['nodeAfter'],_0x238bc0['model']),_0x544c80=_0x5d2aa2['before'];'rename'==_0x5d2aa2['action']&&_0x6a21ed['push']({'key':u,'newValue':_0x5d2aa2['name'],'oldValue':_0x544c80['name'],'range':_0x2e7627});for(const [_0x16ea1b,_0x5cb541]of _0x544c80['attributes']){if(!this['_isRegisteredAttribute'](_0x16ea1b))continue;const _0x1242c2=_0x5d2aa2['attributes']['get'](_0x16ea1b);_0x5cb541!==_0x1242c2&&_0x6a21ed['push']({'key':_0x16ea1b,'newValue':_0x1242c2,'oldValue':_0x5cb541,'range':_0x2e7627});}for(const [_0x44ebaa,_0xb4a63]of _0x5d2aa2['attributes'])this['_isRegisteredAttribute'](_0x44ebaa)&&(_0x544c80['attributes']['has'](_0x44ebaa)||_0x6a21ed['push']({'key':_0x44ebaa,'newValue':_0xb4a63,'oldValue':null,'range':_0x2e7627}));}0x0!=_0x6a21ed['length']&&_0x238bc0['model']['enqueueChange'](_0x3d5ef2,_0x3d2e27=>{const _0x4f5f2a=_0x400c1f();for(const {range:_0x34a46c,key:_0x3ce2b7,oldValue:_0x4bea51,newValue:_0x481898}of _0x6a21ed)this['markAttributeChange'](_0x34a46c,_0x3ce2b7,_0x4bea51,_0x481898,{'groupId':_0x4f5f2a});this['_reduceExistingSuggestions'](_0x3d2e27,_0x6a21ed);});},{'priority':'lowest'}),_0x238bc0['model']['markers']['on']('update:suggestion',(_0x14db10,_0x2485db,_0x614c18)=>{if(null==_0x614c18){const {id:_0x79b4d1}=this['_splitMarkerName'](_0x2485db['name']),_0x3fe38e=this['_suggestions']['get'](_0x79b4d1);_0x3fe38e&&_0x3fe38e['addMarkerName'](_0x2485db['name']);}}),_0x238bc0['model']['document']['on']('change:data',()=>{const _0x476782=Array['from'](_0x238bc0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2fa5d4=>'suggestion'===this['_splitMarkerName'](_0x2fa5d4['name'])['group']);if(0x0===_0x476782['length'])return;_0x476782['sort']((_0x4d02a3,_0x6a8abc)=>{const _0x56541a=_0x4d02a3['data']['oldRange'],_0x1d0a1f=_0x6a8abc['data']['oldRange'];return null===_0x56541a&&null===_0x1d0a1f?0x0:null===_0x56541a&&null!==_0x1d0a1f?-0x1:null!==_0x56541a&&null===_0x1d0a1f?0x1:_0x56541a['start']['isBefore'](_0x1d0a1f['start'])?-0x1:0x1;});const _0x219c4f=new Set(),_0x3cc881=new Set();for(const {name:_0x376da5,data:_0x555dbb}of _0x476782){const {id:_0x13dc6e}=this['_splitMarkerName'](_0x376da5);if(null===_0x555dbb['oldRange']){const _0x1f9ec1=this['_handleNewSuggestionMarker'](_0x376da5);_0x3cc881['add'](_0x1f9ec1);}else{const _0x26b9e5=this['_suggestions']['get'](_0x13dc6e);null!==_0x555dbb['newRange']||_0x26b9e5['isInContent']?(_0x219c4f['add'](_0x26b9e5['head']),_0x3cc881['add'](_0x26b9e5)):this['_removeSuggestion'](_0x26b9e5);}}_0x3cc881['size']>0x0&&this['_refreshSuggestionsChain'](_0x3cc881);for(const _0xb4a50e of _0x219c4f)this['fire']('suggestionChanged',_0xb4a50e);}),_0x238bc0['model']['on']('applyOperation',(_0x5580bf,_0x3fdd8f)=>{const _0x5efc71=_0x3fdd8f[0x0];if(!this['_suggestions']['size'])return;if(!_0x5efc71['isDocumentOperation'])return;if(_0x5efc71['batch']['isUndo']||!_0x5efc71['batch']['isLocal'])return;let _0x33506d,_0xa6fcee;switch(_0x5efc71['type']){case'insert':_0x33506d=_0x238bc0['model']['createPositionAt'](_0x5efc71['position']),_0xa6fcee=_0x33506d['getShiftedBy'](_0x5efc71['howMany']);break;case'split':_0x33506d=_0x238bc0['model']['createPositionAt'](_0x5efc71['splitPosition']),_0xa6fcee=_0x238bc0['model']['createPositionAt'](_0x5efc71['moveTargetPosition']);break;case'move':_0x33506d=_0x238bc0['model']['createPositionAt'](_0x5efc71['targetPosition']),_0xa6fcee=_0x33506d['getShiftedBy'](_0x5efc71['howMany']);break;default:return;}const _0xbeef4=_0x238bc0['model']['createRange'](_0x33506d,_0xa6fcee);_0x238bc0['model']['change'](()=>{for(const {suggestion:_0x270328,meta:_0x5441f7}of this['_findSuggestions'](_0xbeef4)){if(_0x270328['isMultiRange'])continue;if('formatInline'==_0x270328['type'])continue;const _0x4ae499=this['_getAttributeKey'](_0x270328);if(_0x4ae499&&this['_isBlockAttribute'](_0x4ae499)&&'split'!=_0x5efc71['type'])continue;const _0x4bdbc3=_0x270328['data']&&_0x270328['data']['multipleBlocks'];('formatBlock'!=_0x270328['type']||'split'==_0x5efc71['type']&&!_0x4bdbc3)&&(_0x5441f7['containsRangeInObject']||'insertion'==_0x270328['type']&&_0x5441f7['isOwn']||_0x270328['getFirstRange']()['containsRange'](_0xbeef4)&&this['_breakSuggestionMarker'](_0x270328,_0x33506d,_0xa6fcee));}});},{'priority':'lowest'}),_0x238bc0['model']['on']('deleteContent',(_0x3872f7,_0x1a3a85)=>{const _0x536f6f=_0x1a3a85[0x0],_0x341d61=_0x1a3a85[0x1];if(_0x341d61&&_0x341d61['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x536f6f['isCollapsed'])return;const _0x448c7d=_0x238bc0['model']['schema'],{start:_0x1b762b,end:_0x281833}=_0x536f6f['getFirstRange'](),_0x41779b=_0x1b762b['nodeAfter']&&_0x448c7d['isLimit'](_0x1b762b['nodeAfter'])?null:_0x448c7d['getNearestSelectionRange'](_0x1b762b,'forward'),_0x15683f=_0x281833['nodeBefore']&&_0x448c7d['isLimit'](_0x281833['nodeBefore'])?null:_0x448c7d['getNearestSelectionRange'](_0x281833,'backward'),_0xf40b9c=_0x238bc0['model']['createRange'](_0x41779b?_0x41779b['start']:_0x1b762b,_0x15683f?_0x15683f['end']:_0x281833);_0x238bc0['model']['change'](_0x54c0e5=>{this['markDeletion'](_0xf40b9c);const _0x1098f2=_0x238bc0['model']['schema']['getNearestSelectionRange'](_0xf40b9c['start']);_0x536f6f['is']('documentSelection')?_0x54c0e5['setSelection'](_0x1098f2):_0x536f6f['setTo'](_0x1098f2);}),_0x3872f7['stop']();},{'priority':_0x135e08['normal']+0xa}),_0x238bc0['model']['on']('insertContent',(_0x2eafb1,_0x49d3f1)=>{const _0x5d636b=_0x49d3f1[_0x49d3f1['length']-0x1];_0x5d636b&&_0x5d636b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x238bc0['model']['change'](()=>{let _0x3f32f7=_0x238bc0['model']['insertContent'](_0x49d3f1[0x0],_0x49d3f1[0x1],_0x49d3f1[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f32f7)return;_0x2eafb1['return']=_0x3f32f7['clone']();const _0x3264c6=_0x3f32f7['end']['nodeBefore'],_0xb7bc4a=_0x238bc0['model']['schema'];_0x3264c6&&_0xb7bc4a['isBlock'](_0x3264c6)&&!_0xb7bc4a['isObject'](_0x3264c6)&&(_0x3f32f7=_0x238bc0['model']['createRange'](_0x3f32f7['start'],_0x238bc0['model']['createPositionAt'](_0x3264c6,'end'))),this['markInsertion'](_0x3f32f7);}),_0x2eafb1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x581a43=new O(_0x238bc0,this['_suggestions']);_0x238bc0['commands']['add']('acceptSuggestion',_0x581a43),this['enableCommand']('acceptSuggestion');const _0xe80f65=new R(_0x238bc0,this['_suggestions']);_0x238bc0['commands']['add']('discardSuggestion',_0xe80f65),this['enableCommand']('discardSuggestion'),_0x238bc0['commands']['add']('acceptAllSuggestions',new x(_0x238bc0,_0x581a43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x238bc0['commands']['add']('discardAllSuggestions',new x(_0x238bc0,_0xe80f65,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x238bc0['commands']['add']('acceptSelectedSuggestions',new E(_0x238bc0,_0x581a43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x238bc0['commands']['add']('discardSelectedSuggestions',new E(_0x238bc0,_0xe80f65,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x22c311=_0x238bc0['plugins']['get']('CommentsRepository');this['listenTo'](_0x22c311,'addComment',(_0x1acfd2,{threadId:_0x6ab9ed})=>{const _0x21d848=this['_suggestions']['get'](_0x6ab9ed);_0x21d848&&_0x21d848['commentThread']&&0x1===_0x21d848['commentThread']['length']&&this['_updateSuggestionData'](_0x6ab9ed,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x22c311,'removeComment',(_0x3adc52,{threadId:_0x14157d})=>{const _0x535661=this['_suggestions']['get'](_0x14157d);_0x535661&&_0x535661['commentThread']&&!_0x535661['commentThread']['length']&&this['_updateSuggestionData'](_0x14157d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a3b0e){const _0x4ee42a=_0xf1e62f([0x48,0x65,0x6b,0x46,0x77,0x59,0x71,0x55,0x57,0x72,0x5a,0x33,0x36,0x30,0x76,0x56,0x42,0x73,0x4f,0x4a,0x58,0x34,0x50,0x44,0x4c,0x51,0x6c,0x75,0x69,0x54,0x62,0x38,0x6e,0x4b,0x45,0x52,0x47,0x6a,0x64,0x70,0x78,0x74,0x37,0x6d,0x63,0x49,0x68,0x31,0x4e,0x53,0x41,0x79,0x66,0x4d,0x32,0x35,0x67,0x7a,0x43,0x39,0x6f,0x61]),_0x4ff9f5=0x28f7e34a,_0x40e4a9=0x28f08082^_0x4ff9f5,_0x540f09=window[_0xf1e62f([0x44,0x61,0x74,0x65])][_0xf1e62f([0x6e,0x6f,0x77])](),_0x24b5b6=_0x3a3b0e[_0xf1e62f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb1a665=new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412ece=>{_0x24b5b6[_0xf1e62f([0x6f,0x6e,0x63,0x65])](_0xf1e62f([0x72,0x65,0x61,0x64,0x79]),_0x412ece);}),_0x53469b={[_0xf1e62f([0x6b,0x74,0x79])]:_0xf1e62f([0x45,0x43]),[_0xf1e62f([0x75,0x73,0x65])]:_0xf1e62f([0x73,0x69,0x67]),[_0xf1e62f([0x63,0x72,0x76])]:_0xf1e62f([0x50,0x2d,0x32,0x35,0x36]),[_0xf1e62f([0x78])]:_0xf1e62f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xf1e62f([0x79])]:_0xf1e62f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xf1e62f([0x61,0x6c,0x67])]:_0xf1e62f([0x45,0x53,0x32,0x35,0x36])},_0x595a31=_0x24b5b6[_0xf1e62f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf1e62f([0x67,0x65,0x74])](_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x60b4f(){let _0x320f2d,_0xbdcd4e=null,_0x4cba0c=null;try{if(_0x595a31==_0xf1e62f([0x47,0x50,0x4c]))return _0xf1e62f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x320f2d=_0xe06f90(),!_0x320f2d)return _0xf1e62f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x320f2d[_0xf1e62f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cba0c=_0x1de574(_0x320f2d[_0xf1e62f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x320f2d[_0xf1e62f([0x6a,0x74,0x69])])),await _0x31a0e4()?_0x3f8575()?_0x1e2266()?_0xf1e62f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40b5cd()?(_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf1e62f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbdcd4e=_0x3a19a5(_0xf1e62f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf1e62f([0x74,0x72,0x69,0x61,0x6c])&&(_0xbdcd4e=_0x3a19a5(_0xf1e62f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x432980()):_0xf1e62f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf1e62f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf1e62f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x15858f){return _0xf1e62f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e2266(){const _0x554fb2=[_0xf1e62f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf1e62f([0x74,0x72,0x69,0x61,0x6c])][_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x540f09/0x3e8:0xe10*_0x40e4a9;return _0x320f2d[_0xf1e62f([0x65,0x78,0x70])]<_0x554fb2;}function _0x3f8575(){const _0xb756ce=_0x320f2d[_0xf1e62f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xb756ce)return!0x1;if(_0xb756ce[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x2a])))return!0x0;if(_0xb756ce[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x54,0x43])))return!0x0;if(_0xb756ce[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x52,0x54,0x43]))){if(_0x5271a5())return!0x0;if(_0x5416bf()||_0xc35586())return!0x0;}return!0x1;}function _0x40b5cd(){const _0x1c9811=_0x320f2d[_0xf1e62f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c9811||0x0==_0x1c9811[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc55a72}=new URL(window[_0xf1e62f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c9811[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc55a72))return!0x0;const _0x4c9ee2=_0xc55a72[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e]));return _0x1c9811[_0xf1e62f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46847b=>_0x46847b[_0xf1e62f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1e62f([0x2a])))[_0xf1e62f([0x6d,0x61,0x70])](_0x284abc=>_0x284abc[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e])))[_0xf1e62f([0x73,0x6f,0x6d,0x65])](_0x30a379=>_0x4c9ee2[_0xf1e62f([0x65,0x76,0x65,0x72,0x79])]((_0x126e2b,_0x5baf27)=>_0x30a379[_0x5baf27]===_0x126e2b||_0x30a379[_0x5baf27]===_0xf1e62f([0x2a])));}function _0x432980(){return _0xbdcd4e&&_0x4cba0c?new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d0fdd,_0x1069e6)=>{_0xbdcd4e[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x3d0fdd,_0x1069e6),_0x4cba0c[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x3d6130=>{_0x3d6130!=_0xf1e62f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d0fdd(_0x3d6130);},_0x1069e6);}):_0xbdcd4e||_0x4cba0c||_0xf1e62f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1de574(_0x2245ce,_0x29e07a){return new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f341=>{if(_0x4f87fb())return _0x24f341(_0xf1e62f([0x56,0x61,0x6c,0x69,0x64]));_0xfc6fb6(),_0x24b5b6[_0xf1e62f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf1e62f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d1f3f=!0x1;const _0x59979d=_0x400c1f();function _0x50d639(_0x2467a3){return!!_0x2467a3&&(typeof _0x2467a3===_0xf1e62f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2467a3===_0xf1e62f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2467a3[_0xf1e62f([0x74,0x68,0x65,0x6e])]===_0xf1e62f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2467a3[_0xf1e62f([0x63,0x61,0x74,0x63,0x68])]===_0xf1e62f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bce86(_0x1e0789){_0x16642e(_0x1e0789)[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x3a37d1=>{if(!_0x3a37d1||_0x3a37d1[_0xf1e62f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf1e62f([0x6f,0x6b]))return _0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e96cc(_0x42d8e1(_0x59979d+_0x29e07a))!=_0x3a37d1[_0xf1e62f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf1e62f([0x56,0x61,0x6c,0x69,0x64]);})[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x13287b=>(_0x197dd6(),_0x13287b),()=>{const _0x26ee4d=_0x3f73aa();return null==_0x26ee4d?(_0x197dd6(),_0xf1e62f([0x56,0x61,0x6c,0x69,0x64])):_0xf1e62f(_0x540f09-_0x26ee4d>(0xcfb674a^_0x4ff9f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x24f341)[_0xf1e62f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24f341(_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a866c=0x28c10dca^_0x4ff9f5;function _0x197dd6(){const _0x2448b5=_0xf1e62f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e96cc(_0x42d8e1(_0x2245ce)),_0x3429ef=_0xe4ccdc(_0x3e96cc(window[_0xf1e62f([0x4d,0x61,0x74,0x68])][_0xf1e62f([0x63,0x65,0x69,0x6c])](_0x540f09/_0x4a866c)));window[_0xf1e62f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf1e62f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2448b5,_0x3429ef);}function _0x3f73aa(){const _0x2b3496=_0xf1e62f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e96cc(_0x42d8e1(_0x2245ce)),_0x278ae4=window[_0xf1e62f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf1e62f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b3496);return _0x278ae4?window[_0xf1e62f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe4ccdc(_0x278ae4),0x10)*_0x4a866c:null;}function _0x16642e(_0x528dc2){return new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5da071,_0x2393ef)=>{_0x528dc2[_0xf1e62f([0x74,0x68,0x65,0x6e])](_0x5da071,_0x2393ef),window[_0xf1e62f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2393ef,0x28f6378a^_0x4ff9f5);});}}_0x24b5b6[_0xf1e62f([0x6f,0x6e])](_0xf1e62f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x187af8,_0x292520)=>{if(_0x292520[0x0]!=_0x2245ce)return _0x24f341(_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x292520[0x1]={..._0x292520[0x1],[_0xf1e62f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59979d};},{[_0xf1e62f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf1e62f([0x68,0x69,0x67,0x68])}),_0x24b5b6[_0xf1e62f([0x6f,0x6e])](_0xf1e62f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33835e=>{_0x50d639(_0x33835e[_0xf1e62f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d1f3f=!0x0,_0x4bce86(_0x33835e[_0xf1e62f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf1e62f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf1e62f([0x6c,0x6f,0x77])}),_0xb1a665[_0xf1e62f([0x74,0x68,0x65,0x6e])](()=>{_0x3d1f3f||_0x24f341(_0xf1e62f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f87fb(){return _0x24b5b6[_0xf1e62f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf1e62f([0x76,0x69,0x65,0x77])][_0xf1e62f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf1e62f([0x61,0x75,0x74,0x6f]);}function _0xfc6fb6(){_0x24b5b6[_0xf1e62f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf1e62f([0x76,0x69,0x65,0x77])][_0xf1e62f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf1e62f([0x61,0x75,0x74,0x6f]);}}function _0x3a19a5(_0x5081fd){const _0x27bedf=[new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ed12=>setTimeout(_0x52ed12,0x28fedd86^_0x4ff9f5)),_0xb1a665[_0xf1e62f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e67d=>{let _0xceb7b0=0x0;_0x24b5b6[_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c])][_0xf1e62f([0x6f,0x6e])](_0xf1e62f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a77db,_0x1cc489)=>{_0x1cc489[0x0][_0xf1e62f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xceb7b0++,_0xceb7b0==(0x28f7e2b2^_0x4ff9f5)&&(_0x57e67d(),_0x2a77db[_0xf1e62f([0x6f,0x66,0x66])]());});}))];return window[_0xf1e62f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf1e62f([0x72,0x61,0x63,0x65])](_0x27bedf)[_0xf1e62f([0x74,0x68,0x65,0x6e])](()=>_0x5081fd);}async function _0x4bb64e(){await _0xb1a665,_0x24b5b6[_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c])][_0xf1e62f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ddeec,_0x24b5b6[_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c])][_0xf1e62f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ddeec,_0x24b5b6[_0xf1e62f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf1e62f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5271a5(){return _0x381cf1(_0xf1e62f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x340e60(_0xf1e62f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf1e62f([0x73,0x74,0x61,0x74,0x65])]==_0xf1e62f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5416bf(){return _0x381cf1(_0xf1e62f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xc35586(){return _0x381cf1(_0xf1e62f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x394a(_0xdf68c0){const _0x195b37=_0x46f5b7();_0x24b5b6[_0x195b37]=_0xf1e62f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdf68c0,_0xdf68c0!=_0xf1e62f([0x56,0x61,0x6c,0x69,0x64])&&_0x4bb64e();}function _0x46f5b7(){const _0x5a7b6d=window[_0xf1e62f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf1e62f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf1e62f([0x6e,0x6f,0x77])]())[_0xf1e62f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf1e62f([0x2e]),'');let _0x5ac22b=_0xf1e62f([0x48]);for(let _0x2659bf=0x0;_0x2659bf<_0x5a7b6d[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2659bf+=0x2){let _0x1e75e1=window[_0xf1e62f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a7b6d[_0xf1e62f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2659bf,_0x2659bf+0x2));_0x1e75e1>=_0x4ee42a[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e75e1-=_0x4ee42a[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ac22b+=_0x4ee42a[_0x1e75e1];}return _0x5ac22b;}function _0xe06f90(){const _0x22dbce=_0x595a31[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e]));if(0x3!=_0x22dbce[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45bab5(_0x22dbce[0x1]);function _0x45bab5(_0x275df9){const _0x5261d4=_0x104fd3(_0x275df9);return _0x5261d4&&_0x366bd2()?_0x5261d4:null;function _0x366bd2(){const _0x2c2692=_0x5261d4[_0xf1e62f([0x6a,0x74,0x69])],_0x158018=window[_0xf1e62f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c2692[_0xf1e62f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c2692[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc46ac0={..._0x5261d4,[_0xf1e62f([0x6a,0x74,0x69])]:_0x2c2692[_0xf1e62f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c2692[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc46ac0[_0xf1e62f([0x76,0x63])],_0x42d8e1(_0xc46ac0)==_0x158018;}}}async function _0x31a0e4(){let _0x52eafb=!0x0;try{const _0x42d3e9=_0x595a31[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])](_0xf1e62f([0x2e])),[_0x3b8a7c,_0x5acd48,_0x2ea930]=_0x42d3e9;return _0x48ca30(_0x3b8a7c),await _0x3a8dc3(_0x3b8a7c,_0x5acd48,_0x2ea930),_0x52eafb;}catch(_0x598f49){return!0x1;}function _0x48ca30(_0x34b589){const _0x46a490=_0x104fd3(_0x34b589);_0x46a490&&_0x46a490[_0xf1e62f([0x61,0x6c,0x67])]==_0xf1e62f([0x45,0x53,0x32,0x35,0x36])||(_0x52eafb=!0x1);}async function _0x3a8dc3(_0x31baa2,_0x3370d6,_0x233688){const _0x26f78b=window[_0xf1e62f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf1e62f([0x66,0x72,0x6f,0x6d])](_0x3a0b7a(_0x233688),_0x31a662=>_0x31a662[_0xf1e62f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35d487=new window[(_0xf1e62f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf1e62f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31baa2+_0xf1e62f([0x2e])+_0x3370d6),_0x13e2ea=window[_0xf1e62f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf1e62f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13e2ea)return;const _0x305878=await _0x13e2ea[_0xf1e62f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf1e62f([0x6a,0x77,0x6b]),_0x53469b,{[_0xf1e62f([0x6e,0x61,0x6d,0x65])]:_0xf1e62f([0x45,0x43,0x44,0x53,0x41]),[_0xf1e62f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf1e62f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf1e62f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13e2ea[_0xf1e62f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf1e62f([0x6e,0x61,0x6d,0x65])]:_0xf1e62f([0x45,0x43,0x44,0x53,0x41]),[_0xf1e62f([0x68,0x61,0x73,0x68])]:{[_0xf1e62f([0x6e,0x61,0x6d,0x65])]:_0xf1e62f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x305878,_0x26f78b,_0x35d487)||(_0x52eafb=!0x1);}}function _0x104fd3(_0x2572b4){return _0x2572b4[_0xf1e62f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf1e62f([0x65,0x79]))?JSON[_0xf1e62f([0x70,0x61,0x72,0x73,0x65])](_0x3a0b7a(_0x2572b4)):null;}function _0x3a0b7a(_0x218b7e){return window[_0xf1e62f([0x61,0x74,0x6f,0x62])](_0x218b7e[_0xf1e62f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf1e62f([0x2b]))[_0xf1e62f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf1e62f([0x2f])));}function _0x42d8e1(_0x84ebc){let _0x55ac3f=0x1505;function _0x271090(_0x540ed6){for(let _0x43400d=0x0;_0x43400d<_0x540ed6[_0xf1e62f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43400d++){const _0x137fc0=_0x540ed6[_0xf1e62f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43400d);_0x55ac3f=(_0x55ac3f<<0x5)+_0x55ac3f+_0x137fc0,_0x55ac3f&=_0x55ac3f;}}function _0x5c3602(_0x5d69fb){Array[_0xf1e62f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d69fb)?_0x5d69fb[_0xf1e62f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3602):_0x5d69fb&&typeof _0x5d69fb==_0xf1e62f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf1e62f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d69fb)[_0xf1e62f([0x73,0x6f,0x72,0x74])]()[_0xf1e62f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x569fe6,_0x29aac3])=>{_0x271090(_0x569fe6),_0x5c3602(_0x29aac3);}):_0x271090(window[_0xf1e62f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d69fb));}return _0x5c3602(_0x84ebc),_0x55ac3f>>>0x0;}function _0x3e96cc(_0x364a23){return _0x364a23[_0xf1e62f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf1e62f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf1e62f([0x30]));}function _0xe4ccdc(_0x24fb84){return _0x24fb84[_0xf1e62f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf1e62f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf1e62f([0x6a,0x6f,0x69,0x6e])]('');}function _0x381cf1(_0x86ae67){return _0x24b5b6[_0xf1e62f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf1e62f([0x68,0x61,0x73])](_0x86ae67);}function _0x340e60(_0x1aec12){return _0x24b5b6[_0xf1e62f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf1e62f([0x67,0x65,0x74])](_0x1aec12);}function _0x4ddeec(){}function _0xf1e62f(_0x2e3cec){return _0x2e3cec['map'](_0x3b8b97=>String['fromCharCode'](_0x3b8b97))['join']('');}_0x394a(await _0x60b4f());}(this);}set['adapter'](_0x38989c){if(this['_adapter'])throw new _0x59c5ca('track-changes-adapter-already-set',this);this['_adapter']=_0x38989c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5566a7=!0x1,toJSON:_0x1e5154=!0x1}={}){const _0x36c3e2=[];for(const _0x1a8672 of this['_suggestions']['values']())_0x5566a7&&!_0x1a8672['isInContent']||_0x36c3e2['push'](_0x1a8672);return _0x1e5154?_0x36c3e2['map'](_0x1796dd=>_0x1796dd['toJSON']()):_0x36c3e2;}['getSuggestion'](_0x585b82){const _0xc34566=this['_suggestions']['get'](_0x585b82);if(!_0xc34566)throw new _0x59c5ca('track-changes-suggestion-not-found',this);return _0xc34566;}['hasSuggestion'](_0x10c507){return this['_suggestions']['has'](_0x10c507);}['addSuggestionData'](_0x38d6c7){const {authorId:_0x3a7471,id:_0x17fd7a,attributes:_0x112026}=_0x38d6c7,[_0x36bb99,_0x54816a]=_0x38d6c7['type']['split'](':'),_0x3f714e=this['_suggestions']['get'](_0x17fd7a)||this['_createSuggestion'](_0x36bb99,_0x54816a,_0x17fd7a,_0x3a7471,_0x112026);if(this['_addThreadToSuggestion'](_0x3f714e),this['_checkSuggestionCorrectness'](_0x3f714e,_0x36bb99,_0x54816a||null,_0x3a7471),_0x3f714e['createdAt']=_0x38d6c7['createdAt'],_0x3f714e['_isDataLoaded']=!0x0,_0x112026&&_0x112026['@external']){const _0x1758dc=_0x112026['@external'],_0x7c7331=this['_getExternalAuthor'](_0x1758dc['authorName']);_0x3f714e['authoredAt']=_0x1758dc['createdAt'],_0x3f714e['author']=_0x7c7331,_0x3f714e['isExternal']=!0x0;}else _0x3f714e['authoredAt']=_0x38d6c7['createdAt'];switch(_0x38d6c7['data']&&(_0x3f714e['data']=_0x38d6c7['data']),_0x38d6c7['attributes']&&(_0x3f714e['attributes']=_0x38d6c7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f714e['_saved']=!0x0),this['_suggestionState']['get'](_0x3f714e)){case'notReady':this['_suggestionState']['set'](_0x3f714e,'dataReady');break;case'markerReady':_0x3f714e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f714e])),this['_refreshSuggestionsChain'](new Set([_0x3f714e])),this['_suggestionState']['set'](_0x3f714e,'ready'),this['fire']('suggestionLoaded',_0x3f714e)):this['_suggestionState']['set'](_0x3f714e,'removed');}return _0x3f714e;}['acceptSuggestion'](_0xfb3650){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f5c34 of _0xfb3650['getAllAdjacentSuggestions']())_0x4f5c34['accept']();});});}['discardSuggestion'](_0x4e132e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c770b of _0x4e132e['getAllAdjacentSuggestions']())_0x2c770b['discard']();});});}['enableCommand'](_0x434b79,_0x33785e){const _0x342d48=this['editor']['commands']['get'](_0x434b79);if(!_0x342d48)throw new _0x59c5ca('track-changes-command-not-found',this,{'commandName':_0x434b79});if(this['_enabledCommands']['has'](_0x342d48))throw new _0x59c5ca('track-changes-enable-command-twice',this,{'commandName':_0x434b79});this['_enabledCommands']['add'](_0x342d48),_0x33785e&&_0x342d48['on']('execute',(_0x2647ef,_0x208c4a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x208c4a['length']>0x0&&_0x208c4a[_0x208c4a['length']-0x1]&&_0x208c4a[_0x208c4a['length']-0x1]['forceDefaultExecution']?_0x208c4a['pop']():(_0x2647ef['return']=_0x33785e((..._0x55eb8f)=>_0x342d48['execute'](..._0x55eb8f,{'forceDefaultExecution':!0x0}),..._0x208c4a),_0x2647ef['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x409918){let _0x94384f,_0x514a5f;const _0x5ca4fc=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x94384f=_0x409918();}catch(_0xb4586){_0x514a5f=_0xb4586;}return _0x5ca4fc||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x514a5f&&_0x59c5ca['rethrowUnexpectedError'](_0x514a5f,this),_0x94384f;}['markInsertion'](_0xe64176,_0x24d0fd=null,_0x43fba1={}){if(_0xe64176['isCollapsed'])return null;const _0x20ad65=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xe8cef1,meta:_0x3a2fe1}of this['_findSuggestions'](_0xe64176,'insertion'))if(_0x3a2fe1['isOwn']){if(!_0x3a2fe1['isNextTo']){if(_0x3a2fe1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xe8cef1,_0x43fba1))continue;return _0xe8cef1;}if(Xt(_0xe8cef1,_0x43fba1))return _0xe8cef1;this['_breakSuggestionMarker'](_0xe8cef1,_0xe64176['start'],_0xe64176['end']);break;}if(_0x24d0fd==_0xe8cef1['subType']&&Xt(_0xe8cef1,_0x43fba1)){const _0x26a280=_0xe8cef1['getFirstRange']();return _0x26a280['start']['isEqual'](_0xe64176['end'])?this['_setSuggestionRange'](_0xe8cef1,this['_model']['createRange'](_0xe64176['start'],_0x26a280['end'])):this['_setSuggestionRange'](_0xe8cef1,this['_model']['createRange'](_0x26a280['start'],_0xe64176['end'])),_0xe8cef1;}}const _0x2cb924=_0x400c1f(),_0x357762=_0x20ad65['id'],_0x177216=_0x24d0fd?'insertion:'+_0x24d0fd:'insertion',_0x7b1ad9=this['_setSuggestionData']({'id':_0x2cb924,'type':_0x177216,'createdAt':new Date(),'authorId':_0x357762,'attributes':_0x43fba1});return this['_addSuggestionMarker'](_0x177216,_0x2cb924,_0x357762,_0xe64176),_0x7b1ad9;}['markMultiRangeInsertion'](_0x341e0c,_0x413410='multi',_0x23b14a={}){const _0x251978=this['editor']['plugins']['get']('Users')['me'],_0x262e67=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x413410,'join');for(const _0x25119a of this['getSuggestions']())if(_0x25119a['author']['id']==_0x251978['id']&&'insertion'==_0x25119a['type']&&_0x25119a['subType']==_0x413410&&Xt(_0x25119a,_0x23b14a)&&(_0x262e67(_0x25119a['getRanges'](),_0x341e0c)||_0x262e67(_0x341e0c,_0x25119a['getRanges']()))){for(const _0x334803 of _0x341e0c)_0x25119a['addRange'](_0x334803);return _0x25119a;}for(const {suggestion:_0xc2a7b,meta:_0x2e80a9}of this['_findSuggestions'](_0x341e0c,'insertion')){if(!_0x2e80a9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e80a9['containsRangeInObject'])continue;if(!Xt(_0xc2a7b,_0x23b14a))continue;let _0x19bb83=!0x0;for(const _0x43b321 of _0xc2a7b['getRanges']())for(const _0x11d6fe of _0x341e0c)if(!_0x43b321['containsRange'](_0x11d6fe)){_0x19bb83=!0x1;break;}if(_0x19bb83)return _0xc2a7b;}const _0x3b9bf4=_0x400c1f(),_0x25dfbf=_0x251978['id'],_0x39a8af='insertion:'+_0x413410,_0x164031=this['_setSuggestionData']({'id':_0x3b9bf4,'type':_0x39a8af,'createdAt':new Date(),'authorId':_0x25dfbf,'attributes':_0x23b14a});for(const _0x277659 of _0x341e0c)this['_addSuggestionMarker'](_0x39a8af,_0x3b9bf4,_0x25dfbf,_0x277659,o['getMultiRangeId']());return _0x164031;}['markInlineFormat'](_0x4dc522,_0x1f032d,_0x5a649a=null,_0x468eab={}){if(_0x5a649a=_0x5a649a||Kt(_0x1f032d),_0x4dc522['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x25b33e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a649a,'accept');return this['forceDefaultExecution'](()=>_0x25b33e([_0x4dc522],_0x1f032d,_0x468eab)),null;}const _0x1ddb2d=this['editor']['plugins']['get']('Users')['me'],_0x120f67=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x21580a,meta:_0x2f0395}of this['_findSuggestions'](_0x4dc522,'insertion'))_0x2f0395['isOwn']&&!_0x2f0395['isInsideObject']&&_0x120f67['push'](..._0x21580a['getRanges']());}const _0x3dadb4=function(_0x15ed5b,_0x5c585b){const _0xd00369=[];for(const _0x28e16f of _0x5c585b){const _0x5246b5=_0x15ed5b['getIntersection'](_0x28e16f);_0x5246b5&&_0xd00369['push'](_0x5246b5);}return _0xd00369;}(_0x4dc522,_0x120f67),_0x16c600=function(_0x183b0b,_0x1f5159){const _0x1ed1c1=[_0x183b0b];for(const _0x49ca2f of _0x1f5159){let _0x3ac8a5=0x0;for(;_0x3ac8a5<_0x1ed1c1['length'];){const _0x5eac44=_0x1ed1c1[_0x3ac8a5]['getDifference'](_0x49ca2f);_0x1ed1c1['splice'](_0x3ac8a5,0x1,..._0x5eac44),_0x3ac8a5+=_0x5eac44['length'];}}return _0x1ed1c1;}(_0x4dc522,_0x120f67);_0x3dadb4['length']&&this['_model']['change'](()=>{for(const _0x1659c1 of _0x3dadb4){const _0x5503d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a649a,'accept');this['forceDefaultExecution'](()=>_0x5503d8([_0x1659c1],_0x1f032d,_0x468eab));}});for(const _0x582dc9 of _0x16c600){let _0x121062=null,_0x4ed8c8=_0x582dc9['start'],_0x574d3a=_0x582dc9['end'];for(const {suggestion:_0x38ece9,meta:_0x201644}of this['_findSuggestions'](_0x582dc9,'formatInline')){if(!_0x201644['isOwn'])continue;if(_0x38ece9['subType']!=_0x5a649a)continue;if(!Xt(_0x38ece9,_0x468eab))continue;const _0x53945a=_0x38ece9['getFirstRange']();if(_0x53945a['containsRange'](_0x582dc9,!0x0))return null;_0x4ed8c8=_0x4ed8c8['isBefore'](_0x53945a['start'])?_0x4ed8c8:_0x53945a['start'],_0x574d3a=_0x574d3a['isAfter'](_0x53945a['end'])?_0x574d3a:_0x53945a['end'],_0x121062?_0x53945a['start']['isBefore'](_0x121062['getFirstRange']()['start'])?(_0x121062['removeMarkers'](),_0x121062=_0x38ece9):_0x38ece9['removeMarkers']():_0x121062=_0x38ece9;}const _0x261371=this['_model']['createRange'](_0x4ed8c8,_0x574d3a);if(_0x121062)this['_setSuggestionRange'](_0x121062,_0x261371);else{const _0x1617c7=_0x400c1f(),_0x594e1f=_0x1ddb2d['id'];this['_setSuggestionData']({'id':_0x1617c7,'type':'formatInline:'+_0x5a649a,'data':_0x1f032d,'createdAt':new Date(),'authorId':_0x594e1f,'attributes':_0x468eab}),this['_addSuggestionMarker']('formatInline:'+_0x5a649a,_0x1617c7,_0x594e1f,_0x261371);}}return null;}['markBlockFormat'](_0x4de523,_0x4318f0,_0xa92181=[],_0x44ca55=null,_0x18dcfe={}){_0x4318f0['formatGroupId']||(_0x4318f0['formatGroupId']=_0x4318f0['commandName']),_0x4318f0['multipleBlocks']=_0x4de523['is']('range'),_0x44ca55=_0x44ca55||Kt(_0x4318f0);const _0x32ffe0=_0xa92181['map'](_0x2b8a9b=>zt(_0x2b8a9b,this['_model'])),_0x113373=_0x4de523['is']('range')?_0x4de523:zt(_0x4de523,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1137da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44ca55,'accept');return this['forceDefaultExecution'](()=>_0x1137da([_0x113373],_0x4318f0,_0x18dcfe)),null;}_0x32ffe0['push'](_0x113373);let _0x5de486=!0x0;for(const _0x1791f0 of _0x32ffe0)if(!this['_rangeIsInLocalUserInsertion'](_0x1791f0)){_0x5de486=!0x1;break;}if(_0x5de486&&'always'!==this['_trackFormatChanges']){const _0x4f6981=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44ca55,'accept');return this['forceDefaultExecution'](()=>_0x4f6981([_0x113373],_0x4318f0,_0x18dcfe)),null;}let _0x2a8b39=null,_0x27354d=_0x113373['start'],_0x5e7a64=_0x113373['end'];for(const {suggestion:_0x38400e,meta:_0x15824b}of this['_findSuggestions'](_0x113373,'formatBlock')){if(!_0x15824b['isOwn'])continue;if(_0x15824b['isNextTo']||_0x15824b['containsRangeInObject']||_0x15824b['isInsideObject'])continue;if(_0x38400e['data']['formatGroupId']!=_0x4318f0['formatGroupId'])continue;if(!Xt(_0x38400e,_0x18dcfe))continue;const _0x32f659=_0x38400e['getFirstRange']();if(_0x38400e['subType']==_0x44ca55){if(_0x32f659['containsRange'](_0x113373,!0x0))return null;_0x27354d=_0x27354d['isBefore'](_0x32f659['start'])?_0x27354d:_0x32f659['start'],_0x5e7a64=_0x5e7a64['isAfter'](_0x32f659['end'])?_0x5e7a64:_0x32f659['end'],_0x2a8b39?_0x32f659['start']['isBefore'](_0x2a8b39['getFirstRange']()['start'])?(_0x2a8b39['removeMarkers'](),_0x2a8b39=_0x38400e):_0x38400e['removeMarkers']():_0x2a8b39=_0x38400e;}else{const _0x6f63c6=_0x113373['getIntersection'](_0x32f659);this['_cutOutSuggestionMarker'](_0x38400e,_0x6f63c6);}}const _0x33a23a=this['editor']['plugins']['get']('Users')['me'],_0x2b059e=_0x400c1f(),_0x4ef6f6=_0x33a23a['id'];if(_0x2a8b39)return this['_setSuggestionRange'](_0x2a8b39,this['_model']['createRange'](_0x27354d,_0x5e7a64)),_0x2a8b39;{const _0x4ea115=this['_setSuggestionData']({'id':_0x2b059e,'type':'formatBlock:'+_0x44ca55,'data':_0x4318f0,'createdAt':new Date(),'authorId':_0x4ef6f6,'attributes':_0x18dcfe});return this['_addSuggestionMarker']('formatBlock:'+_0x44ca55,_0x2b059e,_0x4ef6f6,this['_model']['createRange'](_0x27354d,_0x5e7a64)),_0x4ea115;}}['markMultiRangeBlockFormat'](_0xb68c36,_0x2563a0,_0x452f77=[],_0x26dac0=null,_0x172256={}){_0x2563a0['formatGroupId']||(_0x2563a0['formatGroupId']=_0x2563a0['commandName']);const _0x304a30=_0xb68c36[0x0];_0x2563a0['multipleBlocks']=_0x304a30['is']('range'),_0x26dac0=_0x26dac0||Kt(_0x2563a0);const _0x6f1a0=_0x452f77['map'](_0x4d66a7=>zt(_0x4d66a7,this['_model'])),_0x3a2707=_0x304a30['is']('range')?_0xb68c36:_0xb68c36['map'](_0x3323d1=>zt(_0x3323d1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4576ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26dac0,'accept');return this['forceDefaultExecution'](()=>_0x4576ca(_0x3a2707,_0x2563a0,_0x172256)),null;}_0x6f1a0['push'](..._0x3a2707);let _0x249d56=!0x0;for(const _0xe687d6 of _0x6f1a0)if(!this['_rangeIsInLocalUserInsertion'](_0xe687d6)){_0x249d56=!0x1;break;}if(_0x249d56&&'always'!==this['_trackFormatChanges']){const _0x4e790f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26dac0,'accept');return this['forceDefaultExecution'](()=>_0x4e790f(_0x3a2707,_0x2563a0,_0x172256)),null;}const _0x2baf1d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f21fd of this['getSuggestions']()){if(_0x2f21fd['author']['id']!=_0x2baf1d['id'])continue;if('formatBlock'!=_0x2f21fd['type']||_0x2f21fd['data']['formatGroupId']!=_0x2563a0['formatGroupId'])continue;if(!Xt(_0x2f21fd,_0x172256))continue;const _0x7ff995=_0x2f21fd['subType']==_0x26dac0;for(let _0x497600=0x0;_0x497600<_0x3a2707['length'];_0x497600++){const _0x4ecad5=_0x3a2707[_0x497600];for(const _0x279034 of _0x2f21fd['getMarkers']()){const _0xa0fb4b=_0x279034['getRange']();if(_0x4ecad5['isEqual'](_0xa0fb4b)){_0x7ff995?(_0x3a2707['splice'](_0x497600,0x1),_0x497600--):_0x2f21fd['removeMarker'](_0x279034['name']);break;}}}}if(0x0==_0x3a2707['length'])return null;const _0x331d81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26dac0,'join');for(const _0x4f4e66 of this['getSuggestions']())if(_0x4f4e66['author']['id']==_0x2baf1d['id']&&'formatBlock'==_0x4f4e66['type']&&_0x4f4e66['data']['formatGroupId']==_0x2563a0['formatGroupId']&&_0x4f4e66['subType']==_0x26dac0&&Xt(_0x4f4e66,_0x172256)&&(_0x331d81(_0x4f4e66['getRanges'](),_0x3a2707)||_0x331d81(_0x3a2707,_0x4f4e66['getRanges']()))){for(const _0xbbb88e of _0x3a2707)_0x4f4e66['addRange'](_0xbbb88e);return _0x4f4e66;}const _0x66918c=_0x400c1f(),_0xc2c5bc=_0x2baf1d['id'],_0x56b72d='formatBlock:'+_0x26dac0,_0xba1009=this['_setSuggestionData']({'id':_0x66918c,'type':_0x56b72d,'data':_0x2563a0,'createdAt':new Date(),'authorId':_0xc2c5bc,'attributes':_0x172256});for(const _0xdfc20d of _0x3a2707)this['_addSuggestionMarker'](_0x56b72d,_0x66918c,_0xc2c5bc,_0xdfc20d,o['getMultiRangeId']());return _0xba1009;}['markDeletion'](_0x4ec403,_0x17e0c6=null,_0x1fa682={}){if(_0x4ec403['isCollapsed'])return null;const _0x59f45c=this['editor']['plugins']['get']('Users')['me'],_0x3efa5f=new _0x2346b0(_0x4ec403['start'],_0x4ec403['end']);for(const {suggestion:_0x10e7c5,meta:_0x2f4a5a}of this['_findSuggestions'](_0x3efa5f,'insertion'))if(_0x2f4a5a['isOwn']&&!_0x2f4a5a['isNextTo']){if(_0x10e7c5['isMultiRange']){const _0x14eaa3=_0x10e7c5['getRanges']()['filter'](_0x36321d=>'$graveyard'!=_0x36321d['root']['rootName']);_0x14eaa3['every'](_0x1031f6=>_0x3efa5f['containsRange'](_0x1031f6,!0x0))&&_0x10e7c5['discard']();if(_0x14eaa3['some'](_0x2449a3=>_0x2449a3['containsRange'](_0x3efa5f,!0x0))){const _0x3d98b9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17e0c6,'accept');return this['forceDefaultExecution'](()=>_0x3d98b9([_0x3efa5f],null,_0x1fa682)),null;}}else{const _0x4dd0e1=_0x3efa5f['getIntersection'](_0x10e7c5['getFirstRange']());null!==_0x4dd0e1&&_0x10e7c5['_onDiscard']([_0x4dd0e1],null,_0x1fa682);}}if(_0x3efa5f['detach'](),_0x3efa5f['isCollapsed']||'$graveyard'==_0x3efa5f['root']['rootName'])return null;let _0x21ca13=null,_0x595f0b=_0x3efa5f['start'],_0x3601f8=_0x3efa5f['end'];const _0x5a3029=this['_findSuggestions'](_0x3efa5f,'deletion');for(const {suggestion:_0x528b40,meta:_0x1b07e3}of _0x5a3029){const _0x3a0c57=this['_model']['createRange'](_0x595f0b,_0x3601f8);if(_0x1b07e3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b07e3['containsRangeInObject']&&!_0x1b07e3['isInsideObject'])){if(_0x528b40['isMultiRange']){if(!Xt(_0x528b40,_0x1fa682))continue;let _0x24df14=!0x0;for(const _0x48b575 of _0x528b40['getRanges']()){if(_0x48b575['containsRange'](_0x3a0c57,!0x0))return _0x528b40;_0x3a0c57['containsRange'](_0x48b575)||(_0x24df14=!0x1);}_0x24df14&&_0x528b40['discard']();}else{const _0x33adc2=_0x528b40['getFirstRange']();if(_0x33adc2['containsRange'](_0x3a0c57,!0x0))return _0x528b40;if(!Xt(_0x528b40,_0x1fa682)){_0x3a0c57['containsRange'](_0x33adc2)?_0x528b40['removeMarkers']():_0x33adc2['containsPosition'](_0x595f0b)?_0x595f0b=_0x33adc2['end']:_0x33adc2['containsPosition'](_0x3601f8)&&(_0x3601f8=_0x33adc2['start']);continue;}_0x595f0b=_0x595f0b['isBefore'](_0x33adc2['start'])?_0x595f0b:_0x33adc2['start'],_0x3601f8=_0x3601f8['isAfter'](_0x33adc2['end'])?_0x3601f8:_0x33adc2['end'],_0x1fa682=Object['assign']({},_0x528b40['attributes']),_0x21ca13?_0x33adc2['start']['isBefore'](_0x21ca13['getFirstRange']()['start'])?(_0x21ca13['removeMarkers'](),_0x21ca13=_0x528b40):_0x528b40['removeMarkers']():_0x21ca13=_0x528b40;}}}if(_0x21ca13)return this['_setSuggestionRange'](_0x21ca13,this['_model']['createRange'](_0x595f0b,_0x3601f8)),_0x21ca13;{const _0x5ae8f7=_0x400c1f(),_0x3abfde=this['_model']['createRange'](_0x595f0b,_0x3601f8),_0x4d667b=_0x59f45c['id'],_0x5ebab3=_0x17e0c6?'deletion:'+_0x17e0c6:'deletion',_0x257c7a=this['_setSuggestionData']({'id':_0x5ae8f7,'type':_0x5ebab3,'createdAt':new Date(),'authorId':_0x4d667b,'attributes':_0x1fa682});return this['_addSuggestionMarker'](_0x5ebab3,_0x5ae8f7,_0x4d667b,_0x3abfde),_0x257c7a;}}['markMultiRangeDeletion'](_0x381765,_0x41bdca='multi',_0x4dd190={}){const _0x5bc8de=this['editor']['plugins']['get']('Users')['me'],_0x2dd779=_0x381765['map'](_0x443dda=>new _0x2346b0(_0x443dda['start'],_0x443dda['end'])),_0x5537e6=new Set();for(const {suggestion:_0x1090f4,meta:_0x4482ae}of this['_findSuggestions'](_0x2dd779,'insertion'))_0x4482ae['isOwn']&&!_0x4482ae['isNextTo']&&_0x5537e6['add'](_0x1090f4);for(const _0x1a95ac of _0x5537e6)if(_0x1a95ac['isMultiRange']){const _0x58e4e6=_0x1a95ac['getRanges']();(!_0x1a95ac['attributes']||!_0x1a95ac['attributes']['skipNestingCheck'])&&(_0x58e4e6['every'](_0xf09155=>_0x2dd779['some'](_0x48547c=>_0x48547c['containsRange'](_0xf09155,!0x0)))&&_0x1a95ac['discard']());if(_0x2dd779['every'](_0x3240b0=>_0x58e4e6['some'](_0xf3aae0=>_0xf3aae0['containsRange'](_0x3240b0,!0x0)))){const _0x142de2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41bdca,'accept');return this['forceDefaultExecution'](()=>_0x142de2(_0x381765,null,_0x4dd190)),null;}}else{const _0x56d0c0=_0x1a95ac['getFirstRange']();_0x2dd779['some'](_0x1cc815=>_0x1cc815['containsRange'](_0x56d0c0,!0x0))&&_0x1a95ac['discard']();if(_0x2dd779['every'](_0x4d44b6=>_0x56d0c0['containsRange'](_0x4d44b6,!0x0))){const _0x5e08f7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41bdca,'accept');return this['forceDefaultExecution'](()=>_0x5e08f7(_0x2dd779,null,_0x4dd190)),null;}}const _0x5e840c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41bdca,'join');let _0x200dd2=null;for(const _0x37ef05 of this['getSuggestions']())if(_0x37ef05['author']['id']==_0x5bc8de['id']&&_0x37ef05['isInContent']&&'deletion'==_0x37ef05['type']&&_0x37ef05['subType']==_0x41bdca&&Xt(_0x37ef05,_0x4dd190)&&(_0x5e840c(_0x37ef05['getRanges'](),_0x2dd779)||_0x5e840c(_0x2dd779,_0x37ef05['getRanges']()))){if(_0x200dd2){if(_0x37ef05['commentThread']&&_0x37ef05['commentThread']['length'])continue;for(const _0x5b8d3c of _0x37ef05['getRanges']())_0x200dd2['isIntersectingWithRange'](_0x5b8d3c)||_0x200dd2['addRange'](_0x5b8d3c);_0x37ef05['removeMarkers']();}else{_0x200dd2=_0x37ef05;for(const _0x1e651c of _0x2dd779)_0x37ef05['isIntersectingWithRange'](_0x1e651c)||_0x37ef05['addRange'](_0x1e651c);}}if(_0x200dd2)return _0x200dd2;_0x5537e6['clear']();for(const {suggestion:_0x37c965,meta:_0x5ef185}of this['_findSuggestions'](_0x2dd779,'deletion'))_0x5ef185['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ef185['containsRangeInObject']&&!_0x5ef185['isInsideObject'])&&Xt(_0x37c965,_0x4dd190)&&_0x5537e6['add'](_0x37c965);for(const _0x37caf7 of _0x5537e6){const _0x1d1083=_0x37caf7['getRanges']();if(!_0x4dd190||!_0x4dd190['skipNestingCheck']){if(_0x2dd779['every'](_0x31ae78=>_0x1d1083['some'](_0xfb4c13=>_0xfb4c13['containsRange'](_0x31ae78,!0x0))))return _0x37caf7;}(!_0x37caf7['attributes']||!_0x37caf7['attributes']['skipNestingCheck'])&&(_0x1d1083['every'](_0x5bc600=>_0x2dd779['some'](_0x3d0e77=>_0x3d0e77['containsRange'](_0x5bc600,!0x0)))&&_0x37caf7['discard']());}const _0x5f3ce2=_0x400c1f(),_0x4148fc=_0x5bc8de['id'],_0x38e4ff='deletion:'+_0x41bdca,_0x1ff885=this['_setSuggestionData']({'id':_0x5f3ce2,'type':_0x38e4ff,'createdAt':new Date(),'authorId':_0x4148fc,'attributes':_0x4dd190});for(const _0x233608 of _0x2dd779)_0x233608['detach'](),_0x233608['isCollapsed']||'$graveyard'==_0x233608['root']['rootName']||this['_addSuggestionMarker'](_0x38e4ff,_0x5f3ce2,_0x4148fc,_0x233608,o['getMultiRangeId']());return _0x1ff885;}['markAttributeChange'](_0x4e1964,_0x1f0ff5,_0x3a2130,_0x4454d2,_0xd7e96a){if(_0x4e1964['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cfe89=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c5f71=Array['from'](this['_suggestions']['values']())['filter'](_0x5a49a2=>'attribute'==_0x5a49a2['type']&&_0x5a49a2['data']['key']==_0x1f0ff5&&_0x5a49a2['isIntersectingWithRange'](_0x4e1964));if('default'===this['_trackFormatChanges']){const _0x183160=this['_findSuggestions'](_0x4e1964,'insertion')['filter'](({meta:_0x27f4b4})=>_0x27f4b4['isOwn']&&!_0x27f4b4['isInsideObject']&&!_0x27f4b4['isNextTo'])['map'](({suggestion:_0x4cae27})=>_0x4cae27);_0x3c5f71['unshift'](..._0x183160);}const _0x2a56e5=new Map([[_0x4e1964,_0x3a2130]]);for(const _0x39988a of _0x3c5f71){const _0x260a2c='attribute'==_0x39988a['type']?_0x39988a['data']['oldValue']:void 0x0,_0x291715=_0x39988a['getFirstRange'](),_0x13192c=Array['from'](_0x2a56e5['keys']())['find'](_0x5ccf91=>_0x5ccf91['isIntersecting'](_0x291715));if(!_0x13192c)continue;const _0x33b850=_0x13192c['getDifference'](_0x291715);this['_isBlockAttribute'](_0x1f0ff5)&&'insertion'==_0x39988a['type']&&0x0!=_0x33b850['length']||(_0x2a56e5['delete'](_0x13192c),_0x33b850['forEach'](_0x3b5f65=>{_0x2a56e5['set'](_0x3b5f65,_0x3a2130);}),'insertion'!=_0x39988a['type']&&_0x260a2c!=_0x4454d2&&_0x2a56e5['set'](_0x13192c['getIntersection'](_0x291715),_0x260a2c));}const _0x151cb2=[];for(const [_0x1ce26d,_0x534062]of _0x2a56e5){const _0x51a8d0=_0x400c1f(),_0x15caf8={'key':_0x1f0ff5,'oldValue':_0x534062,'newValue':_0x4454d2};_0x1f0ff5['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x1f0ff5});const _0x216f8a=('attribute:'+(_0x1f0ff5+'|'+Kt({'newValue':_0x4454d2})))['substring'](0x0,0x3c),_0x5a2cbe=this['_setSuggestionData']({'id':_0x51a8d0,'type':_0x216f8a,'data':_0x15caf8,'createdAt':new Date(),'authorId':_0x2cfe89,'attributes':_0xd7e96a});_0x151cb2['push'](_0x5a2cbe),this['_addSuggestionMarker'](_0x216f8a,_0x51a8d0,_0x2cfe89,_0x1ce26d);}return _0x151cb2;}['enableDefaultAttributesIntegration'](_0x1ad7cc){this['enableCommand'](_0x1ad7cc,(_0x5be081,..._0x5e672d)=>{this['_recordAttributeChanges'](()=>{_0x5be081(..._0x5e672d);});});}['registerBlockAttribute'](_0x396fbd){this['_blockAttributeKeys']['add'](_0x396fbd);}['registerInlineAttribute'](_0x1319cd){this['_inlineAttributeKeys']['add'](_0x1319cd);}['_getAttributeKey'](_0x1c42e8){return'attribute'==_0x1c42e8['type']?_0x1c42e8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x123f39,_0x58da3c){const _0x54f81f=_0x123f39['getFirstMarker']();this['_model']['change'](_0x24525c=>{_0x24525c['updateMarker'](_0x54f81f,{'range':_0x58da3c});});}['_addThreadToSuggestion'](_0x2d9df9){const _0x583a96=_0x2d9df9['id'],_0x5bceb5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x583a96)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bceb5,'threadId':_0x583a96,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x399d1c=this['_commentsRepository']['getCommentThread'](_0x583a96);_0x399d1c['unbind']('isRemovable'),_0x399d1c['isRemovable']=!0x1,_0x2d9df9['commentThread']=_0x399d1c;}['_checkSuggestionCorrectness'](_0x1c704b,_0x4b14ea,_0x46d1de,_0x1ec5cb){if(_0x1c704b['type']!=_0x4b14ea||_0x1c704b['subType']!=_0x46d1de||_0x1c704b['creator']['id']!=_0x1ec5cb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59c5ca('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x138c25,_0x3a009f){const _0x4f7751=_0x138c25['getFirstRange']();if(_0x3a009f['isEqual'](_0x4f7751))_0x138c25['removeMarkers']();else{if(_0x4f7751['containsRange'](_0x3a009f)){const _0x3faab7=this['_model']['createPositionAt'](_0x3a009f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x138c25,this['_model']['createRange'](_0x4f7751['start'],_0x3faab7));const _0x399450=_0x400c1f(),_0x2cc9f9=_0x138c25['creator']['id'],_0x34267c=_0x138c25['type']+':'+_0x138c25['subType'];this['_setSuggestionData']({'id':_0x399450,'type':_0x34267c,'createdAt':new Date(),'authorId':_0x2cc9f9,'data':_0x138c25['data'],'attributes':_0x138c25['attributes']});const _0x11bb13=this['_model']['createPositionAt'](_0x3a009f['end']['parent'],'after'),_0x24a73c=this['_model']['createRange'](_0x11bb13,_0x4f7751['end']);this['_addSuggestionMarker'](_0x34267c,_0x399450,_0x2cc9f9,_0x24a73c);}else{if(_0x4f7751['containsPosition'](_0x3a009f['start'])){const _0x590bd8=this['_model']['createPositionAt'](_0x3a009f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x138c25,this['_model']['createRange'](_0x4f7751['start'],_0x590bd8));}else{const _0x9962c=this['_model']['createPositionAt'](_0x3a009f['end']['parent'],'after');this['_setSuggestionRange'](_0x138c25,this['_model']['createRange'](_0x9962c,_0x4f7751['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x702ff){for(const {suggestion:_0x5022f0,meta:_0x305d6d}of this['_findSuggestions'](_0x702ff,'insertion')){if(!_0x305d6d['isOwn'])continue;const _0x12baa0=_0x5022f0['getRanges']();for(const _0x58f519 of _0x12baa0)if(!_0x702ff['getDifference'](_0x58f519)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x556df6){const _0x31dbe9=this['editor']['plugins']['get']('Users')['getUser'](_0x556df6);if(!_0x31dbe9)throw new _0x59c5ca('track-changes-user-not-found',this);return _0x31dbe9;}['_getExternalAuthor'](_0x1eaa50){const _0x19c567=this['editor']['plugins']['get']('Users'),_0x457973=_0x294053('external:'+_0x1eaa50),_0x464d38=_0x19c567['getUser'](_0x457973);return _0x464d38||_0x19c567['addUser']({'id':_0x457973,'name':_0x1eaa50});}['_createSuggestion'](_0x13b1d4,_0x311f63,_0x10bc67,_0x4e0ac2,_0x3f5d2c){const _0x54cb74=this['_getAuthorFromId'](_0x4e0ac2),_0x23381f=this['_suggestionFactory']['buildSuggestion'](_0x13b1d4,_0x311f63,_0x10bc67,_0x54cb74,_0x3f5d2c,_0x4a6ee2=>{this['_updateSuggestionData'](_0x10bc67,{'attributes':_0x4a6ee2});const _0x3194c2=this['getSuggestion'](_0x10bc67);this['_joinWithAdjacentSuggestions'](new Set([_0x3194c2])),this['_refreshSuggestionsChain'](new Set([_0x3194c2]));});return this['listenTo'](_0x23381f,'accept',()=>{this['_updateSuggestionData'](_0x10bc67,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x23381f,'discard',()=>{this['_updateSuggestionData'](_0x10bc67,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x10bc67,_0x23381f),this['_suggestionState']['set'](_0x23381f,'notReady'),_0x23381f;}['_splitMarkerName'](_0x250d50){const _0x2dec04=_0x250d50['split'](':');return{'group':_0x2dec04[0x0],'type':_0x2dec04[0x1],'subType':_0x2dec04['length']>=0x5?_0x2dec04[0x2]:null,'id':_0x2dec04['length']<0x5?_0x2dec04[0x2]:_0x2dec04[0x3],'authorId':_0x2dec04['length']<0x5?_0x2dec04[0x3]:_0x2dec04[0x4],'markerCount':0x6==_0x2dec04['length']?_0x2dec04[0x5]:null};}['_breakSuggestionMarker'](_0x178d1b,_0x4a440f,_0x1dcd1c){const _0x58ecff=_0x178d1b['getFirstRange'](),_0x33809e=_0x58ecff['start'],_0xed9929=_0x58ecff['end'];this['_setSuggestionRange'](_0x178d1b,this['_model']['createRange'](_0x33809e,_0x4a440f));const _0x28bd33=_0x400c1f(),_0x439488=_0x178d1b['creator']['id'],_0x4cf2a3=_0x178d1b['type']+(_0x178d1b['subType']?':'+_0x178d1b['subType']:'');this['_setSuggestionData']({'id':_0x28bd33,'type':_0x4cf2a3,'createdAt':new Date(),'authorId':_0x439488,'originalSuggestionId':_0x178d1b['id'],'attributes':_0x178d1b['attributes'],'data':_0x178d1b['data']});const _0x3ce346=this['_getAttributeKey'](_0x178d1b);('formatBlock'==_0x178d1b['type']||_0x3ce346&&this['_isBlockAttribute'](_0x3ce346))&&(_0x1dcd1c=this['_model']['createPositionBefore'](_0x1dcd1c['parent'])),this['_addSuggestionMarker'](_0x4cf2a3,_0x28bd33,_0x439488,this['_model']['createRange'](_0x1dcd1c,_0xed9929));}['_findSuggestions'](_0x39ffdd,_0xd9f2c3=null){const _0x48a4f9=[],_0x479c4d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x39ffdd)||(_0x39ffdd=[_0x39ffdd]);for(const _0x502709 of this['getSuggestions']()){if(!_0x502709['isInContent'])continue;if(_0xd9f2c3&&_0x502709['type']!=_0xd9f2c3)continue;let _0x2be305=!0x1;for(const _0x539a74 of _0x502709['getRanges']()){for(const _0x1d9edb of _0x39ffdd){const _0x1fff10=_0x1d9edb['start']['isEqual'](_0x539a74['end'])||_0x1d9edb['end']['isEqual'](_0x539a74['start']);if(_0x1fff10||_0x1d9edb['getIntersection'](_0x539a74)){const _0x48d988=_0x1d9edb['containsRange'](_0x539a74)&&Gt(this['_model']['schema'],_0x539a74['start'],_0x1d9edb),_0x393adb=_0x539a74['containsRange'](_0x1d9edb)&&Gt(this['_model']['schema'],_0x1d9edb['start'],_0x539a74);_0x48a4f9['push']({'suggestion':_0x502709,'meta':{'isOwn':_0x479c4d==_0x502709['author'],'isNextTo':_0x1fff10,'isInsideObject':_0x48d988,'containsRangeInObject':_0x393adb}}),_0x2be305=!0x0;break;}}if(_0x2be305)break;}}return _0x48a4f9;}['_addSuggestionMarker'](_0x440f1e,_0x16f513,_0x454ca4,_0x3e13ff,_0x494e28){this['_model']['change'](_0x3034f8=>{let _0x20d4ed='suggestion:'+_0x440f1e+':'+_0x16f513+':'+_0x454ca4;_0x494e28&&(_0x20d4ed=_0x20d4ed+':'+_0x494e28),_0x3034f8['addMarker'](_0x20d4ed,{'range':_0x3e13ff,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x470244){const _0x24cb67=_0x470244['previous'],_0x5b407a=_0x470244['next'];_0x470244['previous']=null,_0x470244['next']=null,null!=_0x24cb67&&_0x24cb67['next']==_0x470244&&(_0x24cb67['next']=_0x5b407a),null!=_0x5b407a&&_0x5b407a['previous']==_0x470244&&(_0x5b407a['previous']=_0x24cb67),'ready'==this['_suggestionState']['get'](_0x470244)&&(this['_suggestionState']['set'](_0x470244,'removed'),this['fire']('suggestionUnloaded',_0x470244,_0x24cb67,_0x5b407a));}['_setSuggestionData'](_0xc99df2){const _0x1393d3=_0xc99df2['id'],_0x106aae=this['addSuggestionData'](_0xc99df2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x41d964=this['editor']['plugins']['get']('PendingActions'),_0x40c789=_0x106aae['hasComments'],_0x4cd9e1=_0x106aae['subType']?_0x106aae['type']+':'+_0x106aae['subType']:_0x106aae['type'],_0x38bd56=this['editor']['locale'],_0x467412=_0x41d964['add'](c(_0x38bd56,'PENDING_ACTION_SUGGESTION')),_0x5cb390={'id':_0x1393d3,'type':_0x4cd9e1,'hasComments':_0x40c789,'data':_0xc99df2['data']||null,'originalSuggestionId':_0xc99df2['originalSuggestionId']||null,'attributes':_0x106aae['attributes']};this['_adapter']['addSuggestion'](_0x5cb390)['then'](_0x8a23ca=>{_0x106aae['_saved']=!0x0,_0x41d964['remove'](_0x467412),_0x8a23ca&&_0x8a23ca['createdAt']&&(this['_suggestions']['get'](_0x1393d3)['createdAt']=_0x8a23ca['createdAt']);})['catch'](_0x3b9bad=>{throw _0xcb85da('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x106aae['discard']();}),_0x106aae['stopListening'](),this['_suggestions']['delete'](_0x106aae['id']),this['_suggestionState']['delete'](_0x106aae),_0x3b9bad;});}return _0x106aae;}['_isBlockAttribute'](_0x14fa77){return this['_blockAttributeKeys']['has'](_0x14fa77);}['_updateSuggestionData'](_0x4af92e,_0x1866bb){const _0xd3e1fd=this['editor']['plugins']['get']('PendingActions'),_0x1d0465=this['getSuggestion'](_0x4af92e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d0465['_saved']){const _0x506c81=_0xd3e1fd['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4af92e,_0x1866bb)['then'](()=>{_0xd3e1fd['remove'](_0x506c81);});}else _0x1d0465['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4af92e,_0x1866bb);});}}['_getSuggestionData'](_0x22704d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59c5ca('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22704d);}['_handleNewSuggestionMarker'](_0x3ab53f){const {id:_0x8ce18f,type:_0x41555f,subType:_0x168580,authorId:_0x10d54b}=this['_splitMarkerName'](_0x3ab53f),_0x178318=this['_suggestions']['get'](_0x8ce18f)||this['_createSuggestion'](_0x41555f,_0x168580,_0x8ce18f,_0x10d54b,{});switch(this['_checkSuggestionCorrectness'](_0x178318,_0x41555f,_0x168580,_0x10d54b),this['_suggestionState']['get'](_0x178318)){case'notReady':this['_getSuggestionData'](_0x8ce18f)['then'](_0x3131b1=>{let _0x59a83b=Promise['resolve']();_0x3131b1['hasComments']&&(_0x59a83b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x8ce18f})),_0x59a83b['then'](()=>{this['addSuggestionData'](_0x3131b1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x178318,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x8ce18f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x178318,'ready'),this['fire']('suggestionLoaded',_0x178318);break;case'ready':this['fire']('suggestionChanged',_0x178318);}return _0x178318['addMarkerName'](_0x3ab53f),_0x178318;}['_refreshSuggestionsChain'](_0x18abec){const _0x2c35e8=Array['from'](_0x18abec),_0x506838=_0x2c35e8['filter'](_0x5995eb=>'attribute'==_0x5995eb['type']);this['_refreshAttributeSuggestionsChain'](_0x506838);const _0x3455ac=_0x2c35e8['filter'](_0x48bd39=>!_0x48bd39['isMultiRange']&&'attribute'!=_0x48bd39['type']),_0x2f7222=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e5de1=>!_0x2e5de1['isMultiRange']&&'attribute'!=_0x2e5de1['type']),_0x52d41b=_0x2f7222['filter'](_0x4184d3=>!_0x18abec['has'](_0x4184d3)),_0x123047=new Map(_0x2f7222['map'](_0x446673=>[_0x446673,this['_suggestionFactory']['getSuggestionCallback'](_0x446673['type'],_0x446673['subType'],'chain')])),_0x3c3027=new Map(_0x2f7222['map'](_0x2a11ef=>[_0x2a11ef,_0x2a11ef['getFirstRange']()])),_0x3c429e=new Set(),_0x474c45=new Set();for(let _0x25031e=0x0;_0x25031e<_0x3455ac['length'];_0x25031e++)_0x12516f(_0x3455ac[_0x25031e],_0x3455ac,_0x25031e+0x1);for(let _0x37b39a=0x0;_0x37b39a<_0x3455ac['length'];_0x37b39a++)_0x12516f(_0x3455ac[_0x37b39a],_0x52d41b,0x0);const _0x459fd1=new Set();for(let _0x4b3303=0x0;_0x4b3303<_0x3455ac['length'];_0x4b3303++){const _0x1dcc28=_0x3455ac[_0x4b3303];!_0x474c45['has'](_0x1dcc28)&&_0x1dcc28['previous']&&(_0x459fd1['add'](_0x1dcc28['previous']),_0x1dcc28['previous']['next']===_0x1dcc28&&(_0x1dcc28['previous']['next']=null),_0x1dcc28['previous']=null),!_0x3c429e['has'](_0x1dcc28)&&_0x1dcc28['next']&&(_0x459fd1['add'](_0x1dcc28['next']),_0x1dcc28['next']['previous']===_0x1dcc28&&(_0x1dcc28['next']['previous']=null),_0x1dcc28['next']=null);}function _0x12516f(_0x228096,_0x1cc11e,_0x2442c5){for(let _0x55736e=_0x2442c5;_0x55736e<_0x1cc11e['length'];_0x55736e++){const _0x1e3112=_0x274224(_0x228096,_0x1cc11e[_0x55736e]);_0x1e3112&&(_0x1e3112[0x0]['next']=_0x1e3112[0x1],_0x1e3112[0x1]['previous']=_0x1e3112[0x0],_0x3c429e['add'](_0x1e3112[0x0]),_0x474c45['add'](_0x1e3112[0x1]));}}function _0x274224(_0xea2a55,_0x312191){if(_0xea2a55['author']['id']!==_0x312191['author']['id'])return null;const _0x35d841=_0x123047['get'](_0xea2a55)(_0xea2a55,_0x312191,_0x3c3027['get'](_0xea2a55),_0x3c3027['get'](_0x312191));if(!_0x35d841)return null;return _0x123047['get'](_0x312191)(_0xea2a55,_0x312191,_0x3c3027['get'](_0xea2a55),_0x3c3027['get'](_0x312191))?_0x35d841[0x1]['commentThread']&&_0x35d841[0x1]['commentThread']['length']?null:_0x35d841:null;}_0x459fd1['size']&&this['_refreshSuggestionsChain'](_0x459fd1);}['_refreshAttributeSuggestionsChain'](_0x2ea8ba){if(0x0==_0x2ea8ba['length'])return;const _0x2c5eda=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d3dd4=>'attribute'==_0x3d3dd4['type']&&_0x3d3dd4['_isDataLoaded']),_0xbe18c1=[],_0x42b43d=new Map();for(const _0xbf31e7 of _0x2c5eda){const _0x2df0e7=_0x294053(_0xbf31e7['attributes']);_0x42b43d['has'](_0x2df0e7)||(_0x42b43d['set'](_0x2df0e7,_0xbe18c1['length']),_0xbe18c1['push']([]));const _0x5c1a84=_0x42b43d['get'](_0x2df0e7);_0xbe18c1[_0x5c1a84]['push'](_0xbf31e7);}!(function(){_0xbe18c1['sort']((_0x2b0a59,_0x7ae5d8)=>{const _0x5ab78f=_0x2b0a59[0x0]['createdAt'],_0x2efa6c=_0x7ae5d8[0x0]['createdAt'];return _0x5ab78f==_0x2efa6c?_0x2b0a59[0x0]['attributes']['groupId']<_0x7ae5d8[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ab78f<_0x2efa6c?-0x1:0x1;});for(const _0x3733a2 of _0xbe18c1)_0x3733a2['sort']((_0x147d6f,_0x289681)=>_0x147d6f['id']<_0x289681['id']?-0x1:0x1);}());for(let _0x3464b9=0x0;_0x3464b9<_0xbe18c1['length'];_0x3464b9++){if(0x0==_0xbe18c1[_0x3464b9]['length'])continue;const _0x171ad0=[];for(let _0x49df50=_0x3464b9+0x1;_0x49df50<_0xbe18c1['length'];_0x49df50++)0x0!=_0xbe18c1[_0x49df50]['length']&&_0x2edb53(_0xbe18c1[_0x3464b9],_0xbe18c1[_0x49df50])&&_0x171ad0['push'](_0x49df50);for(const _0x1abd96 of _0x171ad0)_0xbe18c1[_0x3464b9]=_0xbe18c1[_0x3464b9]['concat'](_0xbe18c1[_0x1abd96]),_0xbe18c1[_0x1abd96]=[];}for(const _0x527193 of _0xbe18c1)for(let _0x169063=0x0;_0x169063<_0x527193['length'];_0x169063++){const _0x12fc67=_0x527193[_0x169063+0x1]||null;_0x527193[_0x169063]['next']!==_0x12fc67&&(_0x527193[_0x169063]['next']=_0x12fc67);}for(const _0xef6177 of _0xbe18c1)for(let _0x21e186=0x0;_0x21e186<_0xef6177['length'];_0x21e186++){const _0x192abd=_0xef6177[_0x21e186-0x1]||null;_0xef6177[_0x21e186]['previous']!==_0x192abd&&(_0xef6177[_0x21e186]['previous']=_0x192abd);}function _0x2edb53(_0x5b08b3,_0x32c2a0){if(_0x5b08b3[0x0]['attributes']['groupId']!==_0x32c2a0[0x0]['attributes']['groupId']&&_0x5b08b3[0x0]['author']!==_0x32c2a0[0x0]['author'])return!0x1;if(!function(_0x79ab01,_0x2c0e88){if(!_0x79ab01['hasComments']&&!_0x2c0e88['hasComments'])return!0x0;if(_0x79ab01['hasComments']&&_0x2c0e88['hasComments'])return!0x1;if(_0x79ab01['hasComments']&&_0x2c0e88['createdAt']<_0x79ab01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c0e88['hasComments']&&_0x79ab01['createdAt']<_0x2c0e88['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b08b3[0x0],_0x32c2a0[0x0]))return!0x1;const _0x201b83=Ft(_0x5b08b3[0x0]['attributes'],'groupId'),_0x1fcc82=Ft(_0x32c2a0[0x0]['attributes'],'groupId');if(!_0xd0b6fb(_0x201b83,_0x1fcc82))return!0x1;return!!_0x5b08b3['every'](_0x4749e6=>_0x32c2a0['some'](_0x39d236=>_0x4749e6['getFirstRange']()['isEqual'](_0x39d236['getFirstRange']())))&&_0x32c2a0['every'](_0x881fb7=>_0x5b08b3['some'](_0xd632f3=>_0x881fb7['getFirstRange']()['isEqual'](_0xd632f3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x20c5d5){const _0x1e574f=Array['from'](_0x20c5d5),_0xbe2f00=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2a78cd=_0xbe2f00['filter'](_0x393399=>!_0x20c5d5['has'](_0x393399)),_0x2f4036=new Map(_0x1e574f['map'](_0x1e58a8=>[_0x1e58a8,this['_suggestionFactory']['getSuggestionCallback'](_0x1e58a8['type'],_0x1e58a8['subType'],'join')])),_0x5d6743=new Map(_0xbe2f00['map'](_0x232ded=>[_0x232ded,_0x232ded['getRanges']()]));for(let _0x1ef5a3=0x0;_0x1ef5a3<_0x1e574f['length'];_0x1ef5a3++){if(_0x53419d(this,_0x1e574f[_0x1ef5a3],_0x1e574f,_0x1ef5a3+0x1))return!0x0;}for(let _0x75823a=0x0;_0x75823a<_0x1e574f['length'];_0x75823a++){if(_0x53419d(this,_0x1e574f[_0x75823a],_0x2a78cd,0x0))return!0x0;}return!0x1;function _0x53419d(_0x4d0595,_0x16206f,_0x5815b2,_0x33d4fe){for(let _0x45d1fe=_0x33d4fe;_0x45d1fe<_0x5815b2['length'];_0x45d1fe++){const _0x1bfd65=_0x5815b2[_0x45d1fe];if(_0x1bfd65['type']!==_0x16206f['type']||_0x1bfd65['author']['id']!==_0x16206f['author']['id']||_0x1bfd65['subType']!==_0x16206f['subType'])continue;if(!Qt(_0x16206f,_0x1bfd65))continue;if('attribute'==_0x16206f['type']&&_0x16206f['data']['oldValue']!=_0x1bfd65['data']['oldValue'])continue;if('attribute'==_0x16206f['type']&&_0x4d0595['_isBlockAttribute'](_0x16206f['data']['key']))continue;if('formatBlock'==_0x16206f['type']){const _0x1c1d67=_0x4d0595['editor']['model'],_0x35c5b4=_0x16206f['getContainedElement']();if(_0x35c5b4&&(_0x1c1d67['schema']['isObject'](_0x35c5b4)||_0x1c1d67['schema']['isLimit'](_0x35c5b4)))continue;}const _0x487147=_0x2f4036['get'](_0x16206f),_0x2226c9=_0x5d6743['get'](_0x16206f),_0x1ba868=_0x5d6743['get'](_0x1bfd65),_0x21cf95=_0x16206f['commentThread']&&_0x16206f['commentThread']['length'],_0x494d28=_0x1bfd65['commentThread']&&_0x1bfd65['commentThread']['length'];if(!_0x21cf95&&_0x487147(_0x1ba868,_0x2226c9))return _0x4d0595['_joinSuggestions'](_0x1bfd65,_0x16206f),_0x5d6743['delete'](_0x16206f),!0x0;if(!_0x494d28&&_0x487147(_0x2226c9,_0x1ba868))return _0x4d0595['_joinSuggestions'](_0x16206f,_0x1bfd65),_0x5d6743['delete'](_0x1bfd65),!0x0;}return!0x1;}}['_joinSuggestions'](_0x98660b,_0x2bf4a5){if(_0x98660b['isMultiRange']){for(const _0x25cadc of _0x2bf4a5['getRanges']())_0x98660b['addRange'](_0x25cadc);}else{const _0x59ede8=_0x2bf4a5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x98660b,this['_model']['createRange'](_0x98660b['getFirstRange']()['start'],_0x59ede8));}_0x2bf4a5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x19cab6,_0x402d55,_0x15f908){const _0x2e857b=_0x19cab6['startsWith']('format')||_0x19cab6['startsWith']('attribute')?'FORMATTING':_0x19cab6['toUpperCase']();return c(this['editor']['locale'],_0x402d55+'_'+_0x2e857b+'_SUGGESTION_ANNOUNCEMENT',_0x15f908);}['_initAriaMarkerChangeAnnouncements'](){const _0x317586=this['editor'];if(!_0x317586['ui'])return;const {ariaLiveAnnouncer:_0x418064}=_0x317586['ui'];_0x2280f7(this['_model'],({left:_0x150601,entered:_0x16d9da})=>{for(const _0x3497ce of _0x150601){const {group:_0x299702,type:_0x148edf}=this['_splitMarkerName'](_0x3497ce['name']);if('suggestion'===_0x299702){_0x418064['announce'](this['_getMarkerAnnouncementText'](_0x148edf,'LEAVE'));break;}}for(const _0x1b09b7 of _0x16d9da){const {group:_0x4585a6,type:_0x472234}=this['_splitMarkerName'](_0x1b09b7['name']);if('suggestion'===_0x4585a6){_0x418064['announce'](this['_getMarkerAnnouncementText'](_0x472234,'ENTER',_0x3f0ee7(_0x197c55)));break;}}});}['_processAttributeChanges'](_0xeb1689){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4660c9=this['editor'],_0x3a05ad=_0x4660c9['model']['document']['differ']['getChanges']();if(0x0==_0x3a05ad['length'])return!0x1;const _0xd1a1b4=[],_0x28c7da=_0x3a05ad['filter'](_0x549aff=>'attribute'==_0x549aff['type']),_0x37a095=_0x3a05ad['filter'](_0x57d53f=>'insert'==_0x57d53f['type']&&'$text'!=_0x57d53f['name']),_0xdb1c5a=_0x3a05ad['filter'](_0x54138b=>'remove'==_0x54138b['type']&&'$text'!=_0x54138b['name']);for(const _0x5e47a6 of _0x28c7da)_0xd1a1b4['push']({'key':_0x5e47a6['attributeKey'],'newValue':_0x5e47a6['attributeNewValue'],'oldValue':_0x5e47a6['attributeOldValue'],'range':qt(_0x5e47a6['range'],_0x4660c9['model'])});for(const _0xf14036 of _0x37a095){const _0x553366=_0xdb1c5a['find'](_0x5ee103=>_0x5ee103['position']['isEqual'](_0xf14036['position']));_0x553366&&_0xd1a1b4['push']({'key':u,'newValue':_0xf14036['name'],'oldValue':_0x553366['name'],'range':_0x4660c9['model']['createRangeOn'](_0xf14036['position']['nodeAfter'])});}return 0x0!=_0xd1a1b4['length']&&this['_reduceExistingSuggestions'](_0xeb1689,_0xd1a1b4);}['_processAttributeSuggestions'](_0x1b3ce0){let _0x232a51=!0x1;const _0x5e7da8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f2a6f=>_0x1f2a6f['data']['newRange']&&_0x1f2a6f['name']['startsWith']('suggestion:attribute:'));for(const _0xae531e of _0x5e7da8){const {subType:_0x66df77,id:_0x5b7a79}=this['_splitMarkerName'](_0xae531e['name']),_0x1390af=_0x66df77['split']('|')[0x0];for(const _0x2f75e2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f75e2['id']!=_0x5b7a79&&'attribute'==_0x2f75e2['type']&&_0x2f75e2['data']&&_0x2f75e2['data']['key']==_0x1390af&&_0x2f75e2['getFirstRange']()['isIntersecting'](_0xae531e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f75e2,_0xae531e['data']['newRange'],_0x1b3ce0),_0x232a51=!0x0);}return _0x232a51;}['_recordAttributeChanges'](_0x5af370){this['_recordAttributeSuggestions']=!0x0,_0x5af370();}['_isRegisteredAttribute'](_0xd1303c){const _0x3b5944=this['_isBlockAttribute'](_0xd1303c),_0x32cd58=this['_inlineAttributeKeys']['has'](_0xd1303c);return _0x3b5944||_0x32cd58;}['_reduceExistingSuggestions'](_0x5b4938,_0x28d111){if(0x0==_0x28d111['length'])return!0x1;let _0x268412=!0x1;for(const _0x45e43c of _0x28d111){const _0x4a28f9=this['_findSuggestions'](_0x45e43c['range'],'attribute')['filter'](_0x24b546=>!_0x24b546['meta']['isNextTo'])['map'](_0x157f62=>_0x157f62['suggestion']),_0x403a2c=_0x294053({'newValue':_0x45e43c['newValue']});_0x4a28f9['filter'](_0x4e9c7a=>{const [_0x4f986a,_0x566846]=_0x4e9c7a['subType']['split']('|');return _0x4f986a==_0x45e43c['key']&&_0x566846!=_0x403a2c;})['forEach'](_0x12a6e6=>{this['_reduceSuggestionAttributeRange'](_0x12a6e6,_0x45e43c['range'],_0x5b4938),_0x268412=!0x0;});}return _0x268412;}['_reduceSuggestionAttributeRange'](_0x6142eb,_0x4ed3f5,_0x3cd9aa){const _0x3f0a31=_0x6142eb['getFirstRange']()['getDifference'](_0x4ed3f5);0x0!==_0x3f0a31['length']?0x1!==_0x3f0a31['length']?this['_breakSuggestionMarker'](_0x6142eb,_0x4ed3f5['start'],_0x4ed3f5['end']):this['_setSuggestionRange'](_0x6142eb,_0x3f0a31[0x0]):_0x3cd9aa['removeMarker'](_0x6142eb['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x300141){this['_editor']=_0x300141,this['_model']=_0x300141['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4507a4,_0x3431c0,_0x22a8a1,_0x1ad1a8,_0x551470,_0x2a1041){return new o(this['_model'],{'type':_0x4507a4,'subType':_0x3431c0,'id':_0x22a8a1,'author':_0x1ad1a8,'creator':_0x1ad1a8,'attributes':_0x551470,'onAttributesChange':_0x2a1041,'onAccept':(..._0x323ccf)=>this['getSuggestionCallback'](_0x4507a4,_0x3431c0,'accept')(..._0x323ccf),'onDiscard':(..._0x120366)=>this['getSuggestionCallback'](_0x4507a4,_0x3431c0,'discard')(..._0x120366)});}['registerCustomCallback'](_0x48410b,_0x3850b1,_0x58970b,_0x5cad7f){const _0x5e2063=_0x48410b+':'+_0x3850b1+':'+_0x58970b;this['_customCallbacks']['set'](_0x5e2063,_0x5cad7f);}['getSuggestionCallback'](_0x19b84b,_0x69b5d8,_0x2275f2){const _0x20feac=_0x19b84b+':'+_0x69b5d8+':'+_0x2275f2;return this['_customCallbacks']['get'](_0x20feac)||this['_defaultCallbacks']['get'](_0x19b84b+':'+_0x2275f2);}['_registerDefaultCallbacks'](){const _0x2c11a6=()=>!0x1,_0xf61f13=_0xa2c10d=>{_0xa2c10d['sort']((_0x2d48fa,_0x15790d)=>_0x2d48fa['start']['isBefore'](_0x15790d['start'])?0x1:-0x1),this['_model']['change'](_0x59ce4a=>{for(const _0x1bb7a0 of _0xa2c10d){let _0x222314;_0x222314=_0x1bb7a0['end']['isAtEnd']&&_0x1bb7a0['end']['parent']==_0x1bb7a0['start']['nodeAfter']?_0x59ce4a['createSelection'](_0x1bb7a0['start']['nodeAfter'],'on'):_0x59ce4a['createSelection'](_0x1bb7a0),this['_model']['deleteContent'](_0x222314,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x44b7d1=(_0x145d05,_0x3157c3)=>{_0x3157c3&&this['_model']['change'](_0x52309c=>{const {commandName:_0x410b31,commandParams:_0x103c92=[]}=_0x3157c3,_0x9de85b=_0x145d05['map'](_0x4d9363=>(Lt(_0x4d9363)&&(_0x4d9363=this['_model']['createRange'](_0x4d9363['end'])),_0x4d9363))['filter'](_0x43f389=>'$graveyard'!==_0x43f389['root']['rootName']);if(_0x9de85b['length']<0x1)return;const _0x15a710=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x54e896=>_0x2346b0['fromRange'](_0x54e896));_0x52309c['setSelection'](_0x9de85b);for(const _0x4aca9c of this['_editor']['commands']['commands']())_0x4aca9c['refresh']();_0x103c92['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x410b31,..._0x103c92);const _0x151a49=_0x15a710['filter'](_0x6f73b2=>'$graveyard'!=_0x6f73b2['root']['rootName']);_0x151a49['length']>0x0&&_0x52309c['setSelection'](_0x151a49);for(const _0x30a299 of _0x15a710)_0x30a299['detach']();});},_0x44eced=(_0x2e328a,_0x20f5f7)=>0x1==_0x2e328a['length']&&0x1==_0x20f5f7['length']&&_0x2e328a[0x0]['end']['isEqual'](_0x20f5f7[0x0]['start']),_0x1a1fd0=(_0x30b1f9,_0x12fbef,_0x183a9e,_0x217b3a)=>Wt(_0x30b1f9,_0x12fbef,_0x183a9e,_0x217b3a)?[_0x30b1f9,_0x12fbef]:Wt(_0x12fbef,_0x30b1f9,_0x217b3a,_0x183a9e)?[_0x12fbef,_0x30b1f9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c11a6),this['_defaultCallbacks']['set']('insertion:discard',_0xf61f13),this['_defaultCallbacks']['set']('insertion:join',_0x44eced),this['_defaultCallbacks']['set']('insertion:chain',_0x1a1fd0),this['_defaultCallbacks']['set']('deletion:accept',_0xf61f13),this['_defaultCallbacks']['set']('deletion:discard',_0x2c11a6),this['_defaultCallbacks']['set']('deletion:join',_0x44eced),this['_defaultCallbacks']['set']('deletion:chain',_0x1a1fd0),this['_defaultCallbacks']['set']('formatInline:accept',_0x44b7d1),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c11a6),this['_defaultCallbacks']['set']('formatInline:join',_0x44eced),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c11a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x44b7d1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c11a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x44eced),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c11a6),this['_defaultCallbacks']['set']('attribute:accept',_0x2c11a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x93d38d,_0x42d8d5)=>{if(!_0x42d8d5)return;const _0x5d97a2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5036b4=>{if(_0x42d8d5['key']==u)for(const _0x42a0b0 of _0x93d38d){const _0x2f1d0a=_0x42a0b0['start']['nodeAfter'],_0x3362d0=_0x42d8d5['oldValue'];_0x5036b4['rename'](_0x2f1d0a,_0x3362d0);}else{if(_0x5d97a2['_isBlockAttribute'](_0x42d8d5['key'])){for(const _0x22946e of _0x93d38d)void 0x0!==_0x42d8d5['oldValue']?_0x5036b4['setAttribute'](_0x42d8d5['key'],_0x42d8d5['oldValue'],_0x22946e['start']['nodeAfter']):_0x5036b4['removeAttribute'](_0x42d8d5['key'],_0x22946e['start']['nodeAfter']);}else{for(const _0x2806da of _0x93d38d)_0x42d8d5['oldValue']?_0x5036b4['setAttribute'](_0x42d8d5['key'],_0x42d8d5['oldValue'],_0x2806da):_0x5036b4['removeAttribute'](_0x42d8d5['key'],_0x2806da);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44eced);}}function Gt(_0x397aa8,_0x55806b,_0x245465){for(const _0x5e2b7b of _0x55806b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e2b7b['root']==_0x5e2b7b)return!0x1;if(!_0x245465['containsItem'](_0x5e2b7b))return!0x1;if(_0x397aa8['isObject'](_0x5e2b7b)||_0x397aa8['isLimit'](_0x5e2b7b))return!0x0;}return!0x1;}function Lt(_0x5cf6e8){return _0x5cf6e8['end']['parent']==_0x5cf6e8['start']['nodeAfter']&&_0x5cf6e8['end']['isAtStart'];}function Jt(_0x218dd2,_0xa008d5,_0x30afd2,_0x2a81f7){const _0x3e9d53=_0x55cf02=>!_0x55cf02['item']['is']('$textProxy')&&!_0x2a81f7['isObject'](_0x55cf02['item']),_0x80a937=_0x218dd2['start']['getLastMatchingPosition'](_0x3e9d53),_0x5aff12=_0x218dd2['end']['getLastMatchingPosition'](_0x3e9d53,{'direction':'backward'});return(!_0x218dd2['start']['isEqual'](_0x80a937)||!_0x218dd2['end']['isEqual'](_0x5aff12))&&(_0x80a937['isBefore'](_0x5aff12)?_0x30afd2['updateMarker'](_0xa008d5,{'range':_0x30afd2['createRange'](_0x80a937,_0x5aff12)}):_0x30afd2['removeMarker'](_0xa008d5),!0x0);}function Kt(_0x3662fb){return _0x294053(_0x3662fb);}function Ht(_0x4cb200){const _0x11da20=_0x4cb200['start']['nodeAfter'];return _0x11da20&&_0x11da20['is']('element');}function qt(_0x273958,_0x4c3e14){return null==_0x273958['end']['nodeBefore']&&_0x273958['end']['parent']==_0x273958['start']['nodeAfter']?zt(_0x273958['start']['nodeAfter'],_0x4c3e14):_0x273958;}function zt(_0x49da7d,_0x13a203){const _0x43235b=_0x13a203['schema']['isObject'](_0x49da7d)||_0x13a203['schema']['isSelectable'](_0x49da7d);return _0x13a203['createRange'](_0x13a203['createPositionAt'](_0x49da7d,'before'),_0x43235b?_0x13a203['createPositionAfter'](_0x49da7d):_0x13a203['createPositionAt'](_0x49da7d,'end'));}function Wt(_0x2a4e40,_0x3629f2,_0x25fec9,_0x14afed){return!!Qt(_0x2a4e40,_0x3629f2)&&_0x25fec9['end']['isEqual'](_0x14afed['start']);}function Qt(_0x209729,_0x3e5c31){if(!_0x209729['_isDataLoaded']||!_0x3e5c31['_isDataLoaded'])return!0x1;const _0x243211=new Set(Object['keys'](_0x209729['attributes'])),_0x2627c9=new Set(Object['keys'](_0x3e5c31['attributes']));if(_0x243211['delete']('groupId'),_0x2627c9['delete']('groupId'),0x0==_0x243211['size']&&0x0==_0x2627c9['size'])return!0x0;if(_0x243211['size']!=_0x2627c9['size'])return!0x1;const _0x29e175={..._0x209729['attributes']},_0x59eafb={..._0x3e5c31['attributes']};return delete _0x29e175['groupId'],delete _0x59eafb['groupId'],JSON['stringify'](_0x29e175)==JSON['stringify'](_0x59eafb);}function Xt(_0x38f0cd,_0x4eb131){const _0x3ac7e9=Yt(_0x38f0cd['attributes']),_0x3a1c04=Yt(_0x4eb131);if(!_0x38f0cd['_isDataLoaded'])return!0x1;for(const _0x50e65d of Object['keys'](_0x3a1c04))if(!_0xd0b6fb(_0x3ac7e9[_0x50e65d],_0x3a1c04[_0x50e65d]))return!0x1;return!0x0;}function Yt(_0x3472b8){const _0x5ce2fe=Object['assign']({},_0x3472b8);return delete _0x5ce2fe['skipNestingCheck'],delete _0x5ce2fe['tablePasteChainId'],_0x5ce2fe;}class pe extends/* #__PURE__ -- @preserve */
25
- _0xa5c451(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2504d1,_0x5d8b49,_0x10de17,_0x4a275b){super(),this['model']=_0x5d8b49,this['view']=_0x10de17,this['commentThreadController']=_0x4a275b,this['_editor']=_0x2504d1,this['_acceptCommand']=_0x2504d1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2504d1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x58fbb5,_0x304c7f)=>_0x58fbb5||_0x304c7f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x24f743=>_0x24f743&&this['_editor']['model']['canEditAt'](_0x5d8b49['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41c7ac=>_0x41c7ac&&this['_editor']['model']['canEditAt'](_0x5d8b49['getRanges']())),this['_pendingAction']=null,_0x10de17['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x10de17,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x10de17,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x10de17,'change:isDirty',()=>{_0x10de17['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x5e5527=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5e5527);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4fd8ab{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xd2e804,_0x4908ac,_0x2d603a,_0x3cd404){super(_0xd2e804),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x16d209(_0xd2e804,c(_0xd2e804,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4908ac['authoredAt']),this['bind']('authoredAt')['to'](_0x4908ac),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x4908ac,'authoredAt',this,'descriptionParts',(_0x174218,_0x51d616,_0x48326d)=>{const _0x53d409=_0x48326d['map'](_0x534e77=>ls(_0x534e77['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x174218-0x1,_0x4908ac['author']['name'],_0x51d616?_0x3cd404['formatDateTime'](_0x51d616):'',new DOMParser()['parseFromString'](_0x53d409,'text/html')['body']['textContent']]);}),this['focusables']=new _0xba4523(),this['focusTracker']=new _0x11c925(),this['keystrokes']=new _0x39654c(),this['focusCycler']=new _0x14de0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x36d71d=>_0x36d71d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4908ac,this['_localUser']=_0x2d603a,this['_config']=_0x3cd404,_0x3cd404['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2faa6e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e2725}=this['_config'];this['commentsListView']=new _0x1e2725(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x204105=>_0x204105+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x116082,_0x5608c4)=>_0x116082||!!_0x5608c4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x21e053}=this['_config'],_0x5aae31=new _0x21e053(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32ae66=_0x5aae31['commentInputView'];return _0x5aae31['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32ae66,'value',(_0x10deef,_0x2d9b43,_0x5eb99b)=>!!_0x5eb99b||_0x10deef&&!_0x2d9b43),_0x32ae66['on']('submit',(_0x15bf76,_0x279906)=>{this['fire']('addComment',_0x279906),_0x32ae66['editor']['setData']('');}),_0x32ae66['on']('cancel',()=>this['focus']()),_0x32ae66['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5aae31;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x361abc,_0x186c36,_0xe8570a,_0x584eac){super(_0x361abc,_0x186c36,_0xe8570a,_0x584eac),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3c886d=>_0x3c886d&&_0x3c886d[0x0]?_0x3c886d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20e58b,_0x1eb341)=>{let _0x305832='';for(const _0x5cc30a of _0x20e58b)_0x305832+='<p>'+ls(_0x5cc30a['content'],_0x5cc30a['color'])+'</p>';return _0x1eb341?_0x305832:ti(_0x305832,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x584eac['SuggestionView'](_0x361abc,_0x186c36,{'formatDateTime':_0x584eac['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3f650b=this['bindTemplate'],_0x1e8494=[this['suggestionView']];return this['commentsListView']&&_0x1e8494['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1e8494['push'](this['commentThreadInputView']),_0x1e8494['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3f650b['if']('isActive','ck-suggestion-wrapper--active'),_0x3f650b['to']('type',_0x9a0bd8=>'ck-suggestion-'+_0x9a0bd8),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3f650b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1e8494};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4fd8ab{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4b120f,_0x33f90c,_0x5da042){super(_0x4b120f),this['_model']=_0x33f90c,this['_config']=_0x5da042,this['set']('description',''),this['bind']('authoredAt')['to'](_0x33f90c),this['acceptButton']=this['_createButton'](c(_0x4b120f,'Accept\x20suggestion'),_0x2e2255,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4b120f,'Discard\x20suggestion'),_0x4abf8b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4db76f(_0x4b120f,_0x33f90c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xba4523([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x11c925(),this['keystrokes']=new _0x39654c(),this['focusCycler']=new _0x14de0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e71ff=>_0x2e71ff['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4128df=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4128df['innerHTML']=this['description'],this['on']('change:description',(_0x2ede9f,_0x477d88,_0x467de2)=>{_0x4128df['innerHTML']=_0x467de2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5d3bb8=this['bindTemplate'],_0x450d9c=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5d3bb8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5d3bb8['to']('authoredAt',_0x5c6ff9=>this['_config']['formatDateTime'](_0x5c6ff9))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x450d9c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x450d9c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1650bf,_0x11d046,_0x1b1986,_0x25af5d,_0x30e8df){const _0x378e3c=new _0x21660b(this['locale']);return _0x378e3c['set']({'label':_0x1650bf,'icon':_0x11d046,'tooltip':!0x0,'tooltipPosition':_0x30e8df}),_0x378e3c['extendTemplate']({'attributes':{'class':_0x1b1986}}),_0x378e3c['on']('execute',()=>{this['fire'](_0x25af5d,this['_model']['id']);}),_0x378e3c;}['_setupKeyboardNavigation'](){const _0x27278c=this['element'];this['keystrokes']['listenTo'](_0x27278c);for(const _0x3c6781 of this['focusables'])this['focusTracker']['add'](_0x3c6781['element']),this['keystrokes']['listenTo'](_0x3c6781['element']);this['keystrokes']['set']('enter',(_0xcc37a4,_0x458ee3)=>{_0x27278c===_0xcc37a4['target']&&(this['focusCycler']['focusFirst'](),_0x458ee3());}),this['keystrokes']['set']('esc',(_0x2d0a25,_0x3d0482)=>{_0x27278c!==_0x2d0a25['target']&&(this['focus'](),_0x3d0482());});}}class d extends _0x2b8ff3{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x26a833,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38c879){super(_0x38c879),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2394dc=this['editor']['config'];_0x2394dc['define']('trackChanges.SuggestionThreadView',fe),_0x2394dc['define']('trackChanges.SuggestionView',we),_0x2394dc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2394dc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a7040,_0x11292f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a1ecd,_0x1c4c0a]of this['_handleControllerBuffer']){const _0x168b04=this['_suggestionToController']['has'](_0x1a1ecd);_0x168b04||_0x1c4c0a?_0x168b04&&_0x1c4c0a&&this['_destroyController'](_0x1a1ecd):this['_initializeController'](_0x1a1ecd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a7040,_0x11292f);}['init'](){const _0x5e1767=this['editor'],_0x1c9ff9=_0x5e1767['plugins']['get']('TrackChangesEditing'),_0xb92ea=_0x5e1767['plugins']['get']('Annotations'),_0x3d5a97=_0x5e1767['plugins']['get']('EditorAnnotations'),_0x438c31=_0x5e1767['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3d5a97['addSourceCollector'](()=>{const _0x14d3d4=[];for(const [_0x18ae39,_0x3e8a79]of Array['from'](this['_suggestionToController'])){const _0x287d4d=_0x18ae39['getAllAdjacentSuggestions'](),_0x3cc814=[];for(const _0x194d40 of _0x287d4d){if(!_0x194d40['isInContent'])continue;if(_0x194d40['isMultiRange']){_0x3cc814['push'](..._0x194d40['getRanges']());continue;}const _0x5eb3f3=_0x194d40['getFirstRange']();if(_0x3cc814['length']>0x0){const _0xdd258e=_0x3cc814[0x0]['getJoined'](_0x5eb3f3);if(_0xdd258e){_0x3cc814[0x0]=_0xdd258e;continue;}}_0x3cc814['push'](_0x5eb3f3);}_0x14d3d4['push']([_0x3e8a79['view'],_0x3cc814]);}return _0x14d3d4;}),this['listenTo'](_0x1c9ff9,'suggestionLoaded',(_0x46a108,_0x37dcb7)=>{this['listenTo'](_0x37dcb7,'change:previous',(_0x14d254,_0x41e429,_0x313437,_0x355c3d)=>{_0x37dcb7['isInContent']&&(null==_0x313437?(this['_updateController'](_0x355c3d['head']),this['_handleSuggestionControllerDelayed'](_0x37dcb7,!0x1)):(this['_updateController'](_0x313437['head']),null==_0x355c3d&&this['_handleSuggestionControllerDelayed'](_0x37dcb7,!0x0)));}),null!==_0x37dcb7['previous']?this['_updateController'](_0x37dcb7['head']):this['_handleSuggestionControllerDelayed'](_0x37dcb7,!0x1);}),this['listenTo'](_0x1c9ff9,'suggestionUnloaded',(_0x1dc559,_0xf28079,_0x4c3e3a)=>{this['stopListening'](_0xf28079,'change:previous'),this['_handleControllerBuffer']['delete'](_0xf28079),this['_suggestionToController']['has'](_0xf28079)&&this['_destroyController'](_0xf28079),_0x4c3e3a&&this['_updateController'](_0x4c3e3a['head']);}),this['listenTo'](_0x1c9ff9,'suggestionChanged',(_0x4d7f35,_0x1388ae)=>{this['_updateController'](_0x1388ae);}),this['listenTo'](_0xb92ea,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x438c31,'addComment',(_0x12e5d3,{threadId:_0x1c360c,isFromAdapter:_0x534a41})=>{if(_0x534a41||!_0x1c9ff9['hasSuggestion'](_0x1c360c))return;const _0x19339d=_0x1c9ff9['getSuggestion'](_0x1c360c);this['_suggestionToController']['get'](_0x19339d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b86b1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4baf7a;for(const _0xc139f6 in _0x3b86b1){const _0x36696c=_0xc139f6,_0x4fd666=_0x3b86b1[_0x36696c];if('trackChangesLicenseKeyValid'==_0x4fd666||'trackChangesLicenseKeyInvalid'==_0x4fd666||'trackChangesLicenseKeyExpired'==_0x4fd666||'trackChangesLicenseKeyDomainLimit'==_0x4fd666||'trackChangesLicenseKeyNotAllowed'==_0x4fd666||'trackChangesLicenseKeyEvaluationLimit'==_0x4fd666||'trackChangesLicenseKeyTrialLimit'==_0x4fd666||'trackChangesLicenseKeyUsageLimit'==_0x4fd666){delete _0x3b86b1[_0x36696c],_0x4baf7a=_0x4fd666,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4baf7a&&_0x3b86b1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x50cad7=this['editor']['plugins']['get']('Annotations'),_0x3632d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x316055=Array['from'](_0x50cad7['activeAnnotations'],_0x2245aa=>_0x2245aa['innerView'])['filter'](_0x544786=>this['_viewToController']['has'](_0x544786)),_0xbe2bd1=[];for(const _0xb8d1cd of _0x316055){const _0x4b3b33=this['_viewToController']['get'](_0xb8d1cd)['model']['getAllAdjacentSuggestions']();_0xbe2bd1['push'](..._0x4b3b33['reduce']((_0x36fc0d,_0x47931e)=>[..._0x36fc0d,..._0x47931e['getMarkerNames']()],[]));}_0x3632d8['activeMarkers']=_0xbe2bd1;}['_addUIComponentsToFactory'](){const _0x217e44=this['editor'],_0x527c5d=_0x217e44['locale'],_0x501669=c(_0x527c5d,'Track\x20changes'),_0x201f4d=new _0x172b74([{'type':'switchbutton','model':new _0x481447({'withText':!0x0,'isToggleable':!0x0,'label':_0x501669,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x217e44['plugins']['has']('TrackChangesPreview')&&_0x201f4d['addMany']([{'type':'separator'},{'type':'button','model':new _0x481447({'withText':!0x0,'label':c(_0x527c5d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5226eb of _0x201f4d)if(ke(_0x5226eb)){const _0x3a3cca=_0x217e44['commands']['get'](_0x5226eb['model']['commandName']);_0x5226eb['model']['bind']('isOn','isEnabled')['to'](_0x3a3cca,'value','isEnabled');}_0x217e44['ui']['componentFactory']['add']('trackChanges',_0x19096e=>this['_createToolbarButton'](_0x19096e,_0x201f4d,_0x501669)),_0x217e44['ui']['componentFactory']['add']('menuBar:trackChanges',_0x499f39=>this['_createMenuBarMenu'](_0x499f39,_0x201f4d,_0x501669));}['_createToolbarButton'](_0x3bf6e5,_0x1bf970,_0x47b577){const _0x44f6fa=_0x1460c2(_0x3bf6e5,_0x56ac4e),_0x55de1b=this['editor']['commands']['get']('trackChanges');_0x44f6fa['buttonView']['set']({'tooltip':_0x47b577,'label':_0x47b577,'icon':_0x1298aa}),_0x44f6fa['buttonView']['bind']('isOn')['to'](_0x55de1b,'value'),_0x44f6fa['buttonView']['on']('execute',()=>{_0x55de1b['execute'](),this['editor']['editing']['view']['focus']();}),_0x3bad70(_0x44f6fa,_0x1bf970,{'role':'menu'});const _0x22ee9f=[];for(const _0x350c42 of _0x1bf970)ke(_0x350c42)&&_0x22ee9f['push'](this['editor']['commands']['get'](_0x350c42['model']['commandName']));const _0x2f2281=_0x44f6fa['buttonView'];return _0x2f2281['actionView']['unbind']('isEnabled'),_0x2f2281['arrowView']['unbind']('isEnabled'),_0x2f2281['actionView']['bind']('isEnabled')['to'](_0x55de1b,'isEnabled'),_0x2f2281['arrowView']['bind']('isEnabled')['toMany'](_0x22ee9f,'isEnabled',(..._0x1698d3)=>_0x1698d3['some'](_0x1e18a8=>_0x1e18a8)),_0x44f6fa['on']('execute',_0x33522a=>{this['editor']['execute'](_0x33522a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x44f6fa;}['_createMenuBarMenu'](_0x5e989a,_0x17d0c2,_0x26419a){const _0x5d2de0=new _0x26c85b(_0x5e989a),_0x13b88c=this['editor']['commands']['get']('trackChanges');_0x5d2de0['buttonView']['set']({'label':_0x26419a,'icon':_0x1298aa});const _0x258c41=new _0x2dbc9c(_0x5e989a);for(const _0x4a8bca of _0x17d0c2){if('separator'==_0x4a8bca['type']){_0x258c41['items']['add'](new _0x45be5d(_0x5e989a));continue;}const _0x1af7bc=new _0x387ac3(_0x5e989a,_0x5d2de0),_0x164a3f=new _0x353757(_0x5e989a),_0x2e756d=_0x4a8bca['model'];_0x164a3f['bind'](...Object['keys'](_0x2e756d))['to'](_0x2e756d),_0x164a3f['delegate']('execute')['to'](_0x5d2de0),_0x164a3f['on']('execute',()=>{this['editor']['execute'](_0x2e756d['commandName']),this['editor']['editing']['view']['focus']();}),_0x1af7bc['children']['add'](_0x164a3f),_0x258c41['items']['add'](_0x1af7bc);}return _0x5d2de0['bind']('isEnabled')['to'](_0x13b88c,'isEnabled'),_0x5d2de0['panelView']['children']['add'](_0x258c41),_0x5d2de0;}['_initializeController'](_0x15ae27){const _0x27fb20=this['editor'],_0x52fc68=_0x27fb20['config'],_0xf8d4c5=_0x27fb20['plugins']['get']('Annotations'),_0x8fde30=_0x27fb20['plugins']['get']('CommentsRepository'),_0xd7d683=_0x27fb20['plugins']['get']('EditorAnnotations'),_0x4e2deb=_0x27fb20['plugins']['get'](_0x26a833)['me'],_0x29aa8d=_0x52fc68['get']('trackChanges')['SuggestionThreadView'],_0x5d86a0=_0x52fc68['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x30deb2,CommentThreadInputView:_0x11f0b5}=_0x27fb20['plugins']['get']('CommentsUI');let _0x5c5f54,_0xbd651,_0x3b214c;this['_annotationViews']['has'](_0x15ae27['id'])?(_0xbd651=this['_annotationViews']['get'](_0x15ae27['id']),_0x5c5f54=_0xbd651['mainView']):(_0x5c5f54=new _0x29aa8d(_0x27fb20['locale'],_0x15ae27,_0x4e2deb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52fc68['get']('comments.editorConfig'),'licenseKey':_0x52fc68['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52fc68['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52fc68['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52fc68['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a4ba6(_0x52fc68['get']('locale'),_0x27fb20['locale']),'CommentView':_0x52fc68['get']('comments')['CommentView'],'CommentsListView':_0x30deb2,'CommentThreadInputView':_0x11f0b5,'SuggestionView':_0x5d86a0}),_0x5c5f54['suggestionView']['acceptButton']['on']('execute',()=>{_0x27fb20['editing']['view']['focus']();}),_0x5c5f54['suggestionView']['discardButton']['on']('execute',()=>{_0x27fb20['editing']['view']['focus']();}),_0xbd651=_0xf8d4c5['createAnnotationView'](this['editor']['locale'],_0x5c5f54),_0xbd651['bind']('isDirty')['to'](_0x5c5f54,'isDirty'),_0xbd651['bind']('length')['to'](_0x5c5f54),_0xbd651['bind']('type')['to'](_0x5c5f54,'type',_0x2f03e4=>'suggestion-'+_0x2f03e4),_0x5c5f54['on']('escape',()=>{_0x3b214c['fire']('escape');}),this['_annotationViews']['set'](_0x15ae27['id'],_0xbd651));const _0xccdfe5=_0x8fde30['createCommentThreadController'](_0x15ae27['commentThread'],_0x5c5f54),_0x1fddf8=new pe(_0x27fb20,_0x15ae27,_0x5c5f54,_0xccdfe5),_0x1a90be=_0x15ae27['getAllAdjacentSuggestions']()['filter'](_0x155b44=>_0x155b44['isInContent']);_0x5c5f54['descriptionParts']=_0x27fb20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a90be),this['_suggestionToController']['set'](_0x15ae27,_0x1fddf8),this['_viewToController']['set'](_0x5c5f54,_0x1fddf8),_0x3b214c=_0xf8d4c5['createAnnotation']({'view':_0xbd651,'target':()=>{const _0x36b5be=[],_0x4ad136=_0x15ae27['getAllAdjacentSuggestions']()['filter'](_0x3f83b1=>_0x3f83b1['isInContent']);for(const _0x4208df of _0x4ad136)_0x36b5be['push'](..._0x4208df['getMarkers']());return _0x928d14(_0x27fb20['editing'],_0x36b5be);},'type':()=>'suggestion-'+_0x1fddf8['view']['type']}),_0x8fde30['_bindAnnotationToEditors'](_0x5c5f54,_0x3b214c),_0xf8d4c5['add'](_0x3b214c),_0xd7d683['registerAnnotation'](_0x3b214c);}['_destroyController'](_0x204683){const _0x45cc8d=this['editor']['plugins']['get']('CommentsRepository'),_0x197e83=this['editor']['plugins']['get']('Annotations'),_0xaec6f5=this['_suggestionToController']['get'](_0x204683),_0x47ea28=_0xaec6f5['view'],_0x29abb9=_0x197e83['getByInnerView'](_0x47ea28);_0x45cc8d['_unbindEditors'](_0x47ea28),_0x29abb9&&_0x197e83['remove'](_0x29abb9),this['_suggestionToController']['delete'](_0x204683),this['_viewToController']['delete'](_0x47ea28),_0xaec6f5['destroy']();}['_updateController'](_0x406171){if(!_0x406171['isInContent']||!this['_suggestionToController']['has'](_0x406171))return;const _0x4f19f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d8918=this['_suggestionToController']['get'](_0x406171),_0x384584=_0x406171['getAllAdjacentSuggestions']();_0x4d8918['view']['descriptionParts']=_0x4f19f3['descriptionFactory']['getDescriptions'](_0x384584);}['destroy'](){for(const _0x18393f of this['_suggestionToController']['keys']())this['_destroyController'](_0x18393f);for(const _0x13fc97 of this['_annotationViews']['values']())_0x13fc97['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x169cff){return'model'in _0x169cff;}class k extends _0x2b8ff3{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4be24b){this['editor']['plugins']['get'](p)['adapter']=_0x4be24b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xda7104){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xda7104);}['getSuggestions']({skipNotAttached:_0x63b082=!0x1,toJSON:_0x4b231a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x63b082,'toJSON':_0x4b231a});}['getSuggestion'](_0x27585c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x27585c);}}const w=['Pagination'];class T extends _0x2b8ff3{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x25361a=this['editor'];if(_0x25361a['config']['define']('trackChangesData.editorCreator',_0x3a8c00=>{const _0x2af53f=_0x25361a['model']['document']['getRootNames']()['reduce']((_0x540f92,_0x4d9e94)=>(_0x540f92[_0x4d9e94]='',_0x540f92),{});return _0x25361a['constructor']['create'](_0x2af53f,_0x3a8c00);}),'function'!=typeof _0x25361a['config']['get']('trackChangesData')['editorCreator'])throw new _0x59c5ca('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x369140){return N(this['editor'],!0x0,_0x369140);}['getDataWithDiscardedSuggestions'](_0x23b64d){return N(this['editor'],!0x1,_0x23b64d);}}class D extends _0x2b8ff3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4be18f){function _0x3dc440(_0xbdc95b){return _0xbdc95b['map'](_0x12df64=>String['fromCharCode'](_0x12df64))['join']('');}super(_0x4be18f),this['result']='end',_0x4be18f[_0x3dc440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dc440([0x76,0x69,0x65,0x77])][_0x3dc440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dc440([0x61,0x75,0x74,0x6f]),_0x4be18f[_0x3dc440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3dc440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dc440([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3dc440([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3dc440([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x11e05d){return void 0x0!==_0x11e05d['getRootsAttributes'];}async function N(_0x6e62d8,_0x1a0ac2,_0x1a0be4){const _0xe0e8ee=_0x115059(_0x6e62d8,w);_0xe0e8ee['plugins']['push'](p,D),_0xe0e8ee['rootsAttributes']=Ge(_0x6e62d8)?_0x6e62d8['getRootsAttributes']():void 0x0;const _0x2a75f9=document['createDocumentFragment'](),_0x55c817=_0x6e62d8['config']['get']('trackChangesData')['editorCreator'],_0x11d84e=await _0x55c817(_0xe0e8ee,()=>function(_0x260ca2){const _0x2685e2=document['createElement']('div');return _0x260ca2['appendChild'](_0x2685e2),_0x2685e2;}(_0x2a75f9));!function(_0x16b977,_0x2a1531){const _0x319dd1=_0x16b977['model']['document']['getRootNames']()['reduce']((_0xcf2d2e,_0x12a183)=>(_0xcf2d2e[_0x12a183]=_0x16b977['data']['get']({'rootName':_0x12a183}),_0xcf2d2e),{}),_0x53ba75=_0x16b977['plugins']['get']('Users')['users']['map'](_0x1d9d58=>({'id':_0x1d9d58['id'],'name':_0x1d9d58['name']})),_0x5e3ef4=_0x16b977['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15e0b8=_0x16b977['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5d8a74=_0x2a1531['plugins']['get']('Users'),_0x41e46e=_0x2a1531['plugins']['get']('TrackChangesEditing'),_0x27f8d4=_0x2a1531['plugins']['get']('CommentsRepository');for(const _0xf475a5 of _0x27f8d4['getCommentThreads']())_0xf475a5['remove']();for(const _0x1d2c86 of _0x53ba75)_0x5d8a74['getUser'](_0x1d2c86['id'])||_0x5d8a74['addUser'](_0x1d2c86);_0x5d8a74['me']||_0x5d8a74['useAnonymousUser']();for(const _0x5147cf of _0x15e0b8)_0x27f8d4['addCommentThread'](_0x5147cf);for(const _0x496e4d of _0x5e3ef4)_0x41e46e['addSuggestionData'](_0x496e4d);_0x2a1531['data']['set'](_0x319dd1);}(_0x6e62d8,_0x11d84e),_0x11d84e['execute'](_0x1a0ac2?'acceptAllSuggestions':'discardAllSuggestions');const _0x185e35=Ge(_0x11d84e)?_0x11d84e['getFullData'](_0x1a0be4):_0x11d84e['data']['get'](_0x1a0be4);return await _0x11d84e['destroy'](),_0x185e35;}class Me extends _0x4fd8ab{['options'];constructor(_0xd723ee,_0x5f50a6){super(_0xd723ee),this['options']=_0x5f50a6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x31ba79,_0x533c27){if(!this['element'])return;const _0x2bd8ab=[];for(const [_0x2c7b40,_0x166512]of _0x31ba79){const _0xb64fcd=document['createElement']('div');_0xb64fcd['setAttribute']('data-ck-root-name',_0x2c7b40),_0xb64fcd['className']=_0x166512['classes']+'\x20ck-track-changes-preview__root-container',_0xb64fcd['innerHTML']=_0x166512['content'],_0x2bd8ab['push'](_0xb64fcd);}_0x533c27(this['element'],_0x2bd8ab),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x787654{constructor(_0x40f03f){super(_0x40f03f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3335bb=this['editor'],_0x35916e=_0x3335bb['locale'],_0x36dfe1=_0x3335bb['plugins']['get']('Dialog');let _0x430803;const _0x1c3aef=function(_0x3701de){const _0x34d19c={};if('editables'in _0x3701de['ui']['view']){for(const [_0xe319b4,_0x2d59dd]of Object['entries'](_0x3701de['ui']['view']['editables']))_0x34d19c[_0xe319b4]=_0x2d59dd['element'];}else _0x34d19c[_0x3701de['model']['document']['getRootNames']()[0x0]]=_0x3701de['ui']['view']['editable']['element'];return _0x34d19c;}(_0x3335bb),_0xb0958=function(_0x4c3af1){let _0x307bc9=0x0;for(const _0x4d452c of Object['values'](_0x4c3af1))_0x307bc9=Math['max'](_0x307bc9,_0x4d452c['getBoundingClientRect']()['width']);let _0x27b556=0x0;for(const _0x54305a of Object['values'](_0x4c3af1))_0x27b556+=_0x54305a['getBoundingClientRect']()['height'];const _0x2ddd93=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3f6db7=Math['min'](_0x27b556,_0x2ddd93);return{'width':_0x307bc9,'height':_0x3f6db7};}(_0x1c3aef);_0x36dfe1['show']({'id':'finalContentPreview','title':c(_0x35916e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x35916e,{'dialogRects':_0xb0958}),'onHide':()=>{_0x430803['detachFromDom']();},'onShow':()=>{_0x3335bb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x43316c=>{const _0x5666c4=this['_standarizeRootsData'](_0x43316c,_0x3335bb,_0x1c3aef);_0x36dfe1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5666c4,_0x3335bb['config']['get']('trackChanges.preview.renderFunction'));}),_0x430803=new _0x156097(_0x35916e,[_0x36dfe1['view']]),_0x430803['attachToDom'](),_0x430803['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3335bb['once']('destroy',()=>{_0x430803['detachFromDom']();});const _0x3f485a=_0x36dfe1['view']['headerView']['class'];_0x36dfe1['view']['headerView']['class']=_0x3f485a?_0x3f485a+'\x20ck-reset_all':'ck-reset_all',_0x36dfe1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x36dfe1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x45a034=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x35b243=_0x45a034['previewMode'],_0x1ff62e={};if('$labels'===_0x35b243){for(const _0x2b056b of _0x45a034['getMergeFieldsIds']())_0x1ff62e[_0x2b056b]=_0x45a034['getLabel'](_0x2b056b)||_0x2b056b;}else{const _0x2a22e8='$defaultValues'===_0x35b243?_0x45a034['getDefaultValues']():_0x45a034['getDataSetValues'](_0x35b243,!0x0);for(const _0x21055f of Object['entries'](_0x2a22e8)){const [_0x29b6c8,_0x42bb49]=_0x21055f;_0x1ff62e[_0x29b6c8]=null!==_0x42bb49?_0x42bb49:_0x45a034['getLabel'](_0x29b6c8)||_0x29b6c8;}}return{'mergeFieldsData':_0x1ff62e};}['_standarizeRootsData'](_0x5b3a03,_0x19e779,_0xf8ab61){let _0xfcd833;if('string'==typeof _0x5b3a03){const _0x404232=_0x19e779['model']['document']['getRootNames']()[0x0];_0xfcd833={[_0x404232]:_0x5b3a03};}else _0xfcd833=_0x5b3a03;const _0x27968c=this['_fixMediaEmbeds'](_0xfcd833,_0x19e779),_0x479f59=function(_0x11e0a7,_0x4cb859){for(const [_0x96ebe9,_0x453883]of _0x11e0a7)_0x453883['classes']=_0x4cb859[_0x96ebe9]['classList']['value']['replace']('ck-focused','');return _0x11e0a7;}(this['_sortRoots'](_0x19e779)['reduce']((_0x394f51,_0x20434d)=>(_0x394f51['push']([_0x20434d,{'content':_0x27968c[_0x20434d],'classes':''}]),_0x394f51),[]),_0xf8ab61);return _0x479f59;}['_fixMediaEmbeds'](_0x403135,_0x3f2917){if(!_0x3f2917['plugins']['has']('MediaEmbedEditing'))return _0x403135;const _0x2125c4=_0x3f2917['plugins']['get']('MediaEmbedEditing');for(const [_0x1a6b56,_0x52e141]of Object['entries'](_0x403135)){const _0x486934=document['createElement']('div');_0x486934['innerHTML']=_0x52e141,(_0x486934['querySelectorAll']('figure.media')['forEach'](_0x20543c=>{const _0x3ea2e1=_0x20543c['querySelector']('oembed');if(_0x3ea2e1){const _0x1491c1=_0x3ea2e1['getAttribute']('url');if(_0x1491c1){const _0x5a313d=_0x2125c4['registry']['getMediaViewElement'](new _0x231e73(_0x3f2917['editing']['view']['document']),_0x1491c1,{'elementName':'','renderForEditingView':!0x0}),_0x2e26ff=document['createElement']('div');_0x2e26ff['classList']['add']('ck-media__wrapper'),_0x5a313d['render'](_0x2e26ff,_0x3f2917['editing']['view']['domConverter']),_0x3ea2e1['replaceWith'](_0x2e26ff);}}}),_0x403135[_0x1a6b56]=_0x486934['innerHTML']);}return _0x403135;}['_sortRoots'](_0x2a98e3){if(!function(_0x16a6a6){return void 0x0!==_0x16a6a6['getRootsAttributes'];}(_0x2a98e3))return _0x2a98e3['model']['document']['getRootNames']();const _0x9bf9a7=[],_0x67b7ff=new Map();for(const _0x49db78 of _0x2a98e3['model']['document']['getRootNames']()){const _0x3cbecf=_0x2a98e3['editing']['view']['getDomRoot'](_0x49db78)['getClientRects']()['item'](0x0);_0x9bf9a7['push'](_0x49db78),_0x67b7ff['set'](_0x49db78,_0x3cbecf);}return _0x9bf9a7['sort']((_0x26758e,_0x5eb58c)=>{const _0x339f0c=_0x67b7ff['get'](_0x26758e),_0x1c4b61=_0x67b7ff['get'](_0x5eb58c);return _0x339f0c['y']-_0x1c4b61['y']||_0x339f0c['x']-_0x1c4b61['x'];}),_0x9bf9a7;}}class te extends _0x2b8ff3{static get['requires'](){return[T,_0x473705];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10c116){super(_0x10c116),_0x10c116['commands']['add']('previewFinalContent',new re(this['editor'])),_0x10c116['config']['define']('trackChanges.preview.renderFunction',(_0x59c9ac,_0x45543a)=>{for(const _0x530d4a of _0x45543a)_0x59c9ac['appendChild'](_0x530d4a);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x3f75d3,Plugin as _0x49d3a0,PendingActions as _0x45c9db}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ed8a5,ObservableMixin as _0x55eb28,uid as _0x261f54,priorities as _0xbe5b8f,insertToPriorityArray as _0x3c77c3,logWarning as _0x4b42ad,getEnvKeystrokeText as _0x307200,FocusTracker as _0x1ce46a,KeystrokeHandler as _0x2983da,Collection as _0x2469a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5d4ded,IconCancel as _0x3aaccb,IconTrackChanges as _0x2ead64}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x678eb7,View as _0x2de829,ViewCollection as _0x5e3fca,FocusCycler as _0x4e7d3a,ViewModel as _0x2e39d6,createDropdown as _0x47b20b,SplitButtonView as _0x510b2d,addListToDropdown as _0x302778,MenuBarMenuView as _0x27ca8d,MenuBarMenuListView as _0x3bd327,ListSeparatorView as _0x4b9123,MenuBarMenuListItemView as _0x38df9a,MenuBarMenuListItemButtonView as _0xea57e4,BodyCollection as _0x3ac2df,Dialog as _0x9c557b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x23fc75,hashObject as _0x6bcbd8,surroundingMarkersDetector as _0x2a5fde,FOCUS_ANNOTATION_KEYSTROKE as _0x16187e,AriaDescriptionView as _0x5f14c1,setupThreadKeyboardNavigation as _0x2bcf38,trimHtml as ti,UserView as _0x2faec1,LateFocusButtonView as _0x902b03,getDateTimeFormatter as _0x2ddcb8,getAllMarkersDomElementsSorted as _0x4c97e0,sanitizeEditorConfig as _0x1c3c87}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4e6e40,LiveRange as _0x5702ff,LivePosition as _0x5b7900,DowncastWriter as _0x21a1eb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x409f06,toWidget as _0x28944c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x31a6b5,set as _0x1eeebf,isEqual as _0x2949db,unset as _0x31e314,omit as Ft}from'es-toolkit/compat';import{Delete as _0x140200,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xfef883}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xa18438}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3f75d3{['_enabledCommands'];constructor(_0x50de8e,_0x360d32){super(_0x50de8e),this['_enabledCommands']=_0x360d32,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 _0x55e79a of this['editor']['commands']['commands']())_0x55e79a['affectsData']&&!this['_enabledCommands']['has'](_0x55e79a)&&_0x55e79a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5f3daa of this['editor']['commands']['commands']())_0x5f3daa['affectsData']&&!this['_enabledCommands']['has'](_0x5f3daa)&&_0x5f3daa['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x3f75d3{['_suggestions'];constructor(_0x40e878,_0x17df4d){super(_0x40e878),this['_suggestions']=_0x17df4d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x53350c){const _0x2d6f19=this['_suggestions']['get'](_0x53350c);if(!_0x2d6f19)throw new _0x1ed8a5('track-changes-accept-suggestion-not-found',this);const _0x2d50d7=_0x2d6f19['getRanges']();this['editor']['model']['canEditAt'](_0x2d50d7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2d6f19);}}class R extends _0x3f75d3{['_suggestions'];constructor(_0x292a3c,_0x5878e4){super(_0x292a3c),this['_suggestions']=_0x5878e4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x398e35){const _0x1573a0=this['_suggestions']['get'](_0x398e35);if(!_0x1573a0)throw new _0x1ed8a5('track-changes-discard-suggestion-not-found',this);const _0x402c26=_0x1573a0['getRanges']();this['editor']['model']['canEditAt'](_0x402c26)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1573a0);}}function ls(_0x804672,_0x218594){let _0x477875='';return _0x477875+=_0x804672['split']('*')['map']((_0x446c9d,_0x71650b)=>_0x71650b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x446c9d)+'</span>':nn(_0x446c9d))['join'](''),_0x218594&&(_0x477875+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x218594['value']+'\x22\x20title=\x22'+_0x218594['title']+'\x22></span>'),_0x477875;}function nn(_0x2de087){const _0x40ed63=document['createElement']('span');return _0x40ed63['innerText']=_0x2de087,_0x40ed63['innerHTML'];}function ts(_0x428aad){return _0x428aad['sort']((_0x1a6755,_0x1f7dee)=>'deletion'==_0x1a6755['type']&&'deletion'!=_0x1f7dee['type']?-0x1:'deletion'!=_0x1a6755['type']&&'deletion'==_0x1f7dee['type']?0x1:0x0);}function to(_0x54847f,_0x56d327){let _0x38e915,_0x3f1123=0x0;const _0x4120e5=[],_0x35644b=_0x56d327['schema'];for(;_0x3f1123<_0x54847f['length'];){const _0x456325=_0x54847f[_0x3f1123],_0x3b787b=_0x54847f[_0x3f1123+0x1];_0x38e915||(_0x38e915=_0x56d327['createPositionBefore'](_0x456325)),on(_0x56d327,_0x456325,_0x3b787b)||(_0x4120e5['push'](_0x56d327['createRange'](_0x38e915,_0x35644b['isObject'](_0x456325)?_0x56d327['createPositionAfter'](_0x456325):_0x56d327['createPositionAt'](_0x456325,'end'))),_0x38e915=null),_0x3f1123++;}return _0x4120e5;}function on(_0x154c72,_0x540c13,_0x34856b){if(!_0x34856b)return!0x1;const _0x571a9e=_0x154c72['createPositionAfter'](_0x540c13),_0x281003=_0x154c72['createPositionBefore'](_0x34856b);return _0x571a9e['isTouching'](_0x281003);}function rs(_0x438c7d,_0x1d140c,_0x3f85d5){for(;_0x3f85d5['length'];){const _0x4229a0=_0x3f85d5['splice'](0x0,0x64);_0x438c7d['change'](()=>{for(const _0x2a7f7 of _0x4229a0)_0x2a7f7['isInContent']&&_0x1d140c['execute'](_0x2a7f7['id']);});}}class x extends _0x3f75d3{['_command'];['_suggestions'];constructor(_0x53f471,_0x1a0176,_0x426994){super(_0x53f471),this['_command']=_0x1a0176,this['_suggestions']=_0x426994,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x55cbad=Array['from'](this['_suggestions']['values']())['some'](_0x5897b6=>_0x5897b6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x55cbad;}['execute'](){const _0x4755a3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x26cf00 of _0x4755a3){const _0x5e6c0c=_0x26cf00['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e6c0c))return;}rs(this['editor']['model'],this['_command'],_0x4755a3);}}class E extends _0x3f75d3{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x588dc5,_0x3e9d27,_0x5db07b){super(_0x588dc5),this['_command']=_0x3e9d27,this['_suggestions']=_0x5db07b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3c1ad3=this['editor']['model']['document']['selection'],_0x1b50f5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x340abc,_0x284c2d){const _0x122ee7=Array['from'](_0x340abc['getRanges']()),_0x57e56b=new Set();for(const _0x4e4a9b of _0x284c2d)if(_0x4e4a9b['isInContent']){for(const _0x5d6894 of _0x122ee7)for(const _0x30fcb1 of _0x4e4a9b['getRanges']())(_0x5d6894['isIntersecting'](_0x30fcb1)||_0x340abc['isCollapsed']&&!_0x4e4a9b['isMultiRange']&&_0x4e4a9b['next']&&_0x30fcb1['end']['isTouching'](_0x5d6894['start']))&&_0x57e56b['add'](_0x4e4a9b);}return _0x57e56b;}(_0x3c1ad3,_0x1b50f5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1873c4=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1dffbd of _0x1873c4){const _0xaa04cc=_0x1dffbd['getRanges']();if(!this['editor']['model']['canEditAt'](_0xaa04cc))return;}rs(this['editor']['model'],this['_command'],_0x1873c4);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x55eb28(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2ed68f,_0x40763f){super(),this['id']=_0x40763f['id'],this['type']=_0x40763f['type'],this['subType']=_0x40763f['subType']||null,this['author']=_0x40763f['author'],this['creator']=_0x40763f['creator']||_0x40763f['author'],this['isExternal']=Boolean(_0x40763f['attributes']&&_0x40763f['attributes']['@external']),this['data']=null,this['_model']=_0x2ed68f,this['_onAccept']=_0x40763f['onAccept'],this['_onDiscard']=_0x40763f['onDiscard'],this['_onAttributesChange']=_0x40763f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x40763f['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 _0x1fda6c=this;for(;_0x1fda6c['previous'];)_0x1fda6c=_0x1fda6c['previous'];return _0x1fda6c;}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'](_0x41339e){this['_markerNames']['add'](_0x41339e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x68ee18=>this['_model']['markers']['get'](_0x68ee18))['filter'](_0x236ed8=>_0x236ed8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c7b7a=>{for(const _0x4b29ab of this['getMarkers']())_0x4c7b7a['removeMarker'](_0x4b29ab);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c02bf){this['_model']['change'](_0x4fc9f0=>{_0x4fc9f0['removeMarker'](_0x4c02bf);}),this['_markerNames']['delete'](_0x4c02bf);}['addRange'](_0x8450e6){const _0x1ef4fe='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ef4fe),this['_model']['change'](_0x2838d0=>{_0x2838d0['addMarker'](_0x1ef4fe,{'range':_0x8450e6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2840fa){for(const _0x248c0a of this['getRanges']())if(_0x248c0a['isIntersecting'](_0x2840fa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4bf19d=>_0x4bf19d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x39a7e2,_0x38ea10)=>[..._0x39a7e2,..._0x38ea10['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x221b34=this['getRanges']();if(0x1!=_0x221b34['length'])return null;const _0x4ca08d=_0x221b34[0x0],_0x2e9238=_0x4ca08d['start']['nodeAfter'],_0x1c0f7d=_0x4ca08d['end']['nodeBefore'];return _0x2e9238 instanceof _0x4e6e40?_0x2e9238!=_0x1c0f7d?null:_0x2e9238: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 _0x19596e=[];let _0x3912d8=this['head'];for(;_0x3912d8;)_0x19596e['push'](_0x3912d8),_0x3912d8=_0x3912d8['next'];return _0x19596e;}['setAttribute'](_0xa8e3e9,_0xe6cd88){const _0x3e9de9=_0x31a6b5(this['attributes']);_0x1eeebf(_0x3e9de9,_0xa8e3e9,_0xe6cd88),_0x2949db(_0x3e9de9,this['attributes'])||(this['attributes']=_0x3e9de9,this['_onAttributesChange'](_0x3e9de9));}['removeAttribute'](_0x2d4611){const _0x4781c5=_0x31a6b5(this['attributes']);_0x31e314(_0x4781c5,_0x2d4611),_0x2949db(_0x4781c5,this['attributes'])||(this['attributes']=_0x4781c5,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 _0x261f54()['substr'](0x1,0x5);}}function c(_0x41446f,_0x4e62e4,_0x33bb5d){const _0x40d3ce=_0x41446f['t'],t=_0x41446f['t'];switch(_0x4e62e4){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x33bb5d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33bb5d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33bb5d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33bb5d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33bb5d);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',_0x33bb5d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33bb5d);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x33bb5d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33bb5d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33bb5d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33bb5d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33bb5d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33bb5d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33bb5d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33bb5d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33bb5d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33bb5d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33bb5d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33bb5d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33bb5d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33bb5d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33bb5d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33bb5d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33bb5d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x33bb5d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x33bb5d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33bb5d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33bb5d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33bb5d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33bb5d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33bb5d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33bb5d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33bb5d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33bb5d);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'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33bb5d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33bb5d);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'},_0x33bb5d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33bb5d);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 _0x40d3ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33bb5d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x40d3ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33bb5d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33bb5d);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'},_0x33bb5d);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'},_0x33bb5d);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'},_0x33bb5d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4e62e4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29e129,_0x3e28f2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29e129,this['_locale']=_0x3e28f2;}['getDescriptions'](_0x1d97b2){const _0x1e212c=[],_0x3a1ed1=new Set(),_0x5edf0f=new Set();for(let _0x72ba10=0x0;_0x72ba10<_0x1d97b2['length'];_0x72ba10++){const _0x11a032=_0x1d97b2[_0x72ba10];if(!_0x11a032['isInContent'])continue;const _0x3cc615=this['_handleCustomCallbackDescription'](_0x11a032);if(_0x3cc615){if(null!=_0x11a032['subType']){if(_0x3a1ed1['has'](_0x11a032['subType']))continue;_0x3a1ed1['add'](_0x11a032['subType']);}_0x1e212c['push'](_0x3cc615);}else{if('attribute'!=_0x11a032['type'])'insertion'!=_0x11a032['type']&&'deletion'!=_0x11a032['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1e212c,_0x11a032,_0x1d97b2[_0x72ba10+0x1]);else{const _0x15098b=_0x11a032['data']['key'];if(_0x5edf0f['has'](_0x15098b))continue;_0x5edf0f['add'](_0x11a032['data']['key']),_0x15098b==u?this['_handleRenameSuggestionDescription'](_0x1e212c,_0x11a032):this['_handleAttributeSuggestionDescription'](_0x1e212c,_0x11a032);}}}return this['_resolveDescriptionItems'](_0x1e212c);}['registerDescriptionCallback'](_0xdce4de){this['_customCallbacks']['push'](_0xdce4de);}['registerElementLabel'](_0x44ad53,_0x3c2b2d,_0x4804ef=_0xbe5b8f['normal']){'function'==typeof _0x44ad53?_0x3c77c3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44ad53,'label':_0x3c2b2d,'priority':_0x4804ef}):this['_itemLabels']['set'](_0x44ad53,_0x3c2b2d);}['registerAttributeLabel'](_0x4fa405,_0x4d60c2){this['_attributeLabels']['set'](_0x4fa405,_0x4d60c2);}['getItemLabel'](_0x78fd9e,_0x4e692a=0x1){let _0x4da99a;for(const _0x29abb7 of this['_itemLabelsCallbacks'])if(_0x29abb7['matchingCallback'](_0x78fd9e)){_0x4da99a=_0x29abb7['label'];break;}return _0x4da99a||(_0x4da99a=this['_itemLabels']['get'](_0x78fd9e['name'])),_0x4da99a?_0x4da99a(_0x4e692a):0x1!==_0x4e692a?_0x4e692a+'\x20'+_0x78fd9e['name']+'s':''+_0x78fd9e['name'];}['_addDescriptionItems'](_0x33c215,_0x10571b){const _0x5acdc8=_0x10571b['getFirstRange']()['getWalker'](),_0x1588c3='insertion'==_0x10571b['type']?'add':'remove';for(const _0x522737 of _0x5acdc8){const _0x44e1aa=_0x522737['item'],_0x37d8cf=_0x33c215[_0x33c215['length']-0x1];if(_0x44e1aa['is']('$textProxy'))_0x37d8cf&&_0x37d8cf['type']['indexOf']('Container')>-0x1&&_0x33c215['pop'](),_0x37d8cf&&'text'==_0x37d8cf['type']?_0x37d8cf[_0x1588c3]+=_0x44e1aa['data']:_0x33c215['push']({'type':'text','add':'add'==_0x1588c3?_0x44e1aa['data']:'','remove':'remove'==_0x1588c3?_0x44e1aa['data']:''});else{if(this['_schema']['isObject'](_0x44e1aa)){const _0x27d84b=_0x44e1aa;if(_0x37d8cf&&_0x37d8cf['type']['indexOf']('Container')>-0x1&&_0x33c215['pop'](),'elementEnd'==_0x522737['type'])continue;_0x37d8cf&&_0x37d8cf['type']==_0x1588c3+'Object'&&_0x37d8cf['element']['name']==_0x27d84b['name']?_0x37d8cf['quantity']++:_0x33c215['push']({'type':_0x1588c3+'Object','element':_0x27d84b,'quantity':0x1}),_0x5acdc8['skip'](_0x371734=>!('elementEnd'==_0x371734['type']&&_0x371734['item']==_0x44e1aa));}else{if(this['_schema']['checkChild'](_0x44e1aa,'$text')||_0x44e1aa['is']('element','softBreak')){const _0x182622=_0x44e1aa;if('add'==_0x1588c3&&'elementStart'==_0x522737['type']||'remove'==_0x1588c3&&'elementEnd'==_0x522737['type'])continue;if(_0x37d8cf&&-0x1==_0x37d8cf['type']['indexOf']('Container')){'text'==_0x37d8cf['type']&&(_0x37d8cf[_0x1588c3]+='\x0a');continue;}let _0x21549b;if(_0x21549b='add'==_0x1588c3?_0x182622['nextSibling']&&!this['_schema']['isObject'](_0x182622['nextSibling'])?_0x182622['nextSibling']:null:_0x182622['previousSibling']&&!this['_schema']['isObject'](_0x182622['previousSibling'])?_0x182622['previousSibling']:null,_0x182622['isEmpty']||_0x21549b&&_0x21549b['isEmpty']){const _0x3c3d1d=_0x21549b&&_0x21549b['isEmpty']?_0x21549b:_0x182622;_0x37d8cf&&_0x37d8cf['type']==_0x1588c3+'EmptyContainer'&&_0x37d8cf['element']['name']==_0x3c3d1d['name']?_0x37d8cf['quantity']++:_0x33c215['push']({'type':_0x1588c3+'EmptyContainer','element':_0x3c3d1d,'quantity':0x1});}else _0x33c215['push']({'type':_0x1588c3+'Container','element':_0x182622});}}}}}['_resolveDescriptionItems'](_0x5109a3){const _0x41417e=this['_locale'],_0x5e372c=[],_0x17fad8=[],_0x3cf62e=[];for(const _0x301470 of _0x5109a3)switch(_0x301470['type']){case'text':if(_0x301470['add']=_0x301470['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x301470['remove']=_0x301470['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x301470['add']&&''!=_0x301470['remove']){_0x5e372c['push']({'type':'replace','content':c(_0x41417e,'REPLACE_TEXT',['\x22'+_0x301470['remove']+'\x22','\x22'+_0x301470['add']+'\x22'])});continue;}if(null!=_0x301470['add']['match'](/^ +$/)){_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Insert:*\x20%0',c(_0x41417e,'ELEMENT_SPACE',_0x301470['add']['length']))});continue;}if(null!=_0x301470['remove']['match'](/^ +$/)){_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Remove:*\x20%0',c(_0x41417e,'ELEMENT_SPACE',_0x301470['remove']['length']))});continue;}if(''!=_0x301470['add']){_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Insert:*\x20%0','\x22'+_0x301470['add']+'\x22')});continue;}_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Remove:*\x20%0','\x22'+_0x301470['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Insert:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Remove:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'addContainer':_0x5e372c['push']({'type':'insertion','content':c(_0x41417e,'*Split:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'removeContainer':_0x5e372c['push']({'type':'deletion','content':c(_0x41417e,'*Merge:*\x20%0',this['getItemLabel'](_0x301470['element'],_0x301470['quantity']))});continue;case'addFormat':_0x17fad8['push'](_0x301470['key']);continue;case'removeFormat':_0x3cf62e['push'](_0x301470['key']);continue;default:_0x5e372c['push'](_0x301470);}if(_0x17fad8['length']){const _0x7954b1=_0x17fad8['map'](_0x28fb2b=>this['_attributeLabels']['has'](_0x28fb2b)?this['_attributeLabels']['get'](_0x28fb2b):_0x28fb2b)['join'](',\x20');_0x5e372c['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x7954b1)});}if(_0x3cf62e['length']){const _0x242073=_0x3cf62e['map'](_0x5e8795=>this['_attributeLabels']['has'](_0x5e8795)?this['_attributeLabels']['get'](_0x5e8795):_0x5e8795)['join'](',\x20');_0x5e372c['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x242073)});}return _0x5e372c;}['_handleCustomCallbackDescription'](_0x442b95){for(const _0xa274a9 of this['_customCallbacks']){const _0x2a66d9=_0xa274a9(_0x442b95);if(_0x2a66d9&&'type'in _0x2a66d9)return _0x2a66d9;}}['_handleAttributeSuggestionDescription'](_0x5b1a17,_0x28d183){const _0x415ccf=_0x28d183['data'],_0x526223=void 0x0===_0x415ccf['newValue']?'removeFormat':'addFormat';_0x5b1a17['push']({'type':_0x526223,'key':_0x415ccf['key']});}['_handleRenameSuggestionDescription'](_0x43103b,_0x33c57c){_0x43103b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33c57c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x489d94,_0x53f611,_0x32e763){if(this['_addDescriptionItems'](_0x489d94,_0x53f611),_0x32e763&&_0x32e763['getFirstRange']()&&!_0x53f611['getFirstRange']()['end']['isEqual'](_0x32e763['getFirstRange']()['start'])){const _0x5b9fcc=_0x489d94[_0x489d94['length']-0x1],_0x5a3270='insertion'==_0x53f611['type']?'add':'remove';_0x5b9fcc&&'text'==_0x5b9fcc['type']&&(_0x5b9fcc[_0x5a3270]+='\x0a');}}}class U extends _0x49d3a0{['afterInit'](){const _0xfd315c=this['editor'],_0x47e3c1=_0xfd315c['plugins']['get']('TrackChangesEditing');_0xfd315c['commands']['get']('showAIAssistant')&&_0x47e3c1['enableCommand']('showAIAssistant');}}class V extends _0x49d3a0{['afterInit'](){const _0x2bf102=this['editor'],_0x159774=_0x2bf102['locale'];if(!_0x2bf102['plugins']['has']('AlignmentEditing'))return;const _0x10b556=_0x2bf102['plugins']['get']('TrackChangesEditing');_0x10b556['enableDefaultAttributesIntegration']('alignment'),_0x10b556['registerBlockAttribute']('alignment'),_0x10b556['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x159774,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500755=this['editor'],_0x1799a5=_0x500755['locale'];_0x500755['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1271ab=>{if('formatBlock'!=_0x1271ab['type'])return;const {data:_0x4b9482}=_0x1271ab;if(_0x4b9482&&'alignment'==_0x4b9482['commandName']){const _0x4c95a9=_0x4b9482['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1799a5,'*Format:*\x20%0',function(_0x38109f){switch(_0x38109f){case'left':return c(_0x1799a5,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1799a5,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1799a5,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1799a5,'FORMAT_JUSTIFY_TEXT');}}(_0x4c95a9))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x49d3a0{['afterInit'](){const _0x2dd5c9=this['editor'],_0x6a7d03=_0x2dd5c9['plugins']['get']('TrackChangesEditing'),_0x4cb79f=_0x2dd5c9['locale'];for(const _0x38ac23 of Zt){if(!_0x2dd5c9['plugins']['has'](_0x38ac23))continue;const _0x203b46=_0x38ac23['slice'](0x0,-0x7)['toLowerCase'](),_0x2c8701='FORMAT_'+_0x203b46['toUpperCase']();_0x6a7d03['enableDefaultAttributesIntegration'](_0x203b46),_0x6a7d03['registerInlineAttribute'](_0x203b46),_0x6a7d03['descriptionFactory']['registerAttributeLabel'](_0x203b46,c(_0x4cb79f,_0x2c8701));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e45f4=this['editor'],_0x509f94=_0x3e45f4['locale'],_0x1ef9e9=_0x3e45f4['plugins']['get']('TrackChangesEditing');function _0x50d072(_0x3f37a1,_0xd2b63a){_0x1ef9e9['descriptionFactory']['registerDescriptionCallback'](_0x27edc8=>{if('formatInline'!=_0x27edc8['type'])return;const {data:_0x5f0553}=_0x27edc8;return _0x5f0553&&_0x5f0553['commandName']===_0x3f37a1?_0x5f0553['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x509f94,'*Format:*\x20%0',_0xd2b63a)}:{'type':'format','content':c(_0x509f94,'*Remove\x20format:*\x20%0',_0xd2b63a)}:void 0x0;});}_0x50d072('bold',c(_0x509f94,'FORMAT_BOLD')),_0x50d072('italic',c(_0x509f94,'FORMAT_ITALIC')),_0x50d072('underline',c(_0x509f94,'FORMAT_UNDERLINE')),_0x50d072('code',c(_0x509f94,'FORMAT_CODE')),_0x50d072('strikethrough',c(_0x509f94,'FORMAT_STRIKETHROUGH')),_0x50d072('subscript',c(_0x509f94,'FORMAT_SUBSCRIPT')),_0x50d072('superscript',c(_0x509f94,'FORMAT_SUPERSCRIPT'));}}class G extends _0x49d3a0{['afterInit'](){const _0x365f02=this['editor'],_0x14170d=_0x365f02['locale'];if(!_0x365f02['plugins']['has']('BlockQuoteEditing'))return;const _0x5364e0=_0x365f02['plugins']['get']('TrackChangesEditing'),_0x259276=this['editor']['commands']['get']('blockQuote');_0x5364e0['enableCommand']('blockQuote',(_0x5111e4,_0x571b4f={})=>{const _0xf6654e=this['editor']['model']['document']['selection'],_0x3298a6=_0x571b4f&&void 0x0!==_0x571b4f['forceValue']?_0x571b4f['forceValue']:!_0x259276['value'];let _0x3696d2=[];if(_0x3298a6){const _0x387494=Array['from'](_0xf6654e['getSelectedBlocks']())['filter'](_0xdd9b2c=>oo(_0xdd9b2c)||function(_0x9f7183,_0x540863){const _0x146e0c=_0x540863['checkChild'](_0x9f7183['parent'],'blockQuote'),_0x323c79=_0x540863['checkChild'](['$root','blockQuote'],_0x9f7183);return _0x146e0c&&_0x323c79;}(_0xdd9b2c,this['editor']['model']['schema']));_0x3696d2=to(_0x387494,_0x365f02['model']);}else{const _0x3ca749=Array['from'](_0xf6654e['getSelectedBlocks']())['filter'](_0x3674f4=>oo(_0x3674f4));_0x3696d2=to(_0x3ca749,_0x365f02['model']);}_0x365f02['model']['change'](()=>{for(const _0x2e4068 of _0x3696d2)_0x5364e0['markBlockFormat'](_0x2e4068,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3298a6}]});});}),_0x5364e0['descriptionFactory']['registerDescriptionCallback'](_0x2c3fd4=>{const {data:_0x49601f}=_0x2c3fd4;if(_0x49601f&&'blockQuote'==_0x49601f['commandName']){const _0x440327=c(_0x14170d,'ELEMENT_BLOCK_QUOTE');return _0x49601f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14170d,'*Set\x20format:*\x20%0',_0x440327)}:{'type':'format','content':c(_0x14170d,'*Remove\x20format:*\x20%0',_0x440327)};}});}}function oo(_0xf6b46){return'blockQuote'==_0xf6b46['parent']['name'];}class L extends _0x49d3a0{['afterInit'](){const _0x3e09cb=this['editor'],_0x513cda=_0x3e09cb['locale'],_0x245708=_0x3e09cb['plugins']['get']('TrackChangesEditing');_0x3e09cb['plugins']['has']('BookmarkEditing')&&(_0x245708['enableCommand']('insertBookmark'),_0x245708['enableDefaultAttributesIntegration']('updateBookmark'),_0x245708['registerBlockAttribute']('bookmarkId'),_0x245708['descriptionFactory']['registerDescriptionCallback'](_0x718942=>{if('insertion'!=_0x718942['type']&&'deletion'!=_0x718942['type']&&'attribute'!=_0x718942['type'])return;const _0x33fd35=_0x718942['getContainedElement']();if(null==_0x33fd35)return;if(!_0x33fd35['is']('element','bookmark'))return;const _0x48975d=_0x33fd35['getAttribute']('bookmarkId');if('insertion'==_0x718942['type'])return{'type':'insertion','content':c(_0x513cda,'*Insert:*\x20%0','\x22'+_0x48975d+'\x22\x20'+c(_0x513cda,'ELEMENT_BOOKMARK'))};if('deletion'==_0x718942['type'])return{'type':'deletion','content':c(_0x513cda,'*Remove:*\x20%0','\x22'+_0x48975d+'\x22\x20'+c(_0x513cda,'ELEMENT_BOOKMARK'))};const {data:_0x3f4bbf}=_0x718942;if(!_0x3f4bbf||'bookmarkId'!=_0x3f4bbf['key'])return;return{'type':'format','content':c(_0x513cda,'*Set\x20bookmark:*\x20%0','\x22'+_0x3f4bbf['newValue']+'\x22')};}));}}class J extends _0x49d3a0{['afterInit'](){const _0x395365=this['editor'];_0x395365['plugins']['has']('CaseChange')&&(_0x395365['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x395365['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x395365['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x49d3a0{['afterInit'](){const _0x31c51d=this['editor'];_0x31c51d['commands']['get']('ckbox')&&_0x31c51d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x49d3a0{['afterInit'](){const _0x25452b=this['editor'];if(!_0x25452b['plugins']['has']('CodeBlock'))return;const _0x953c39=_0x25452b['plugins']['get']('TrackChangesEditing'),_0x5bbd7b=_0x25452b['locale'],_0xc9782f=_0x25452b['config']['get']('codeBlock')['languages'],_0xa4b7d5=_0x25452b['commands']['get']('codeBlock');_0x953c39['enableCommand']('indentCodeBlock'),_0x953c39['enableCommand']('outdentCodeBlock'),_0x953c39['enableCommand']('codeBlock',(_0x2dac41,_0x3a5651={})=>{const _0x57f7b6=_0x25452b['model'],_0x1f8178=_0x25452b['model']['document']['selection'],_0x278bcc=_0x3a5651&&void 0x0!==_0x3a5651['forceValue']?_0x3a5651['forceValue']:!_0xa4b7d5['value'];let _0x87b7b0;_0x3a5651['language']||(_0x3a5651['language']=_0xc9782f[0x0]['language']),_0x87b7b0=_0x278bcc?Array['from'](_0x1f8178['getSelectedBlocks']())['filter'](_0x5d414e=>eo(_0x5d414e)||function(_0x19b915,_0x2c4ff4){if(_0x19b915['is']('rootElement')||_0x2c4ff4['isLimit'](_0x19b915))return!0x1;return _0x2c4ff4['checkChild'](_0x19b915['parent'],'codeBlock');}(_0x5d414e,_0x57f7b6['schema'])):Array['from'](_0x1f8178['getSelectedBlocks']())['filter'](_0x444981=>eo(_0x444981));const _0x4f7201=to(_0x87b7b0,_0x57f7b6);_0x57f7b6['change'](()=>{for(const _0xe6c593 of _0x4f7201)_0x953c39['markBlockFormat'](_0xe6c593,{'commandName':'codeBlock','commandParams':[{..._0x3a5651,'forceValue':_0x278bcc}],'formatGroupId':'blockName'});});}),(_0x953c39['descriptionFactory']['registerElementLabel']('codeBlock',_0x268c27=>c(_0x5bbd7b,'ELEMENT_CODE_BLOCK',_0x268c27)),_0x953c39['descriptionFactory']['registerDescriptionCallback'](_0x10cd78=>{if('formatBlock'!=_0x10cd78['type'])return;const _0x24be31=_0x5bbd7b['t'],{data:_0x4c2aa0}=_0x10cd78;if(!_0x4c2aa0||'codeBlock'!=_0x4c2aa0['commandName'])return;const _0x5d8bd7=_0x4c2aa0['commandParams'][0x0]['language'],_0x305da2=_0x24be31(_0xc9782f['find'](_0x4d3eeb=>_0x4d3eeb['language']===_0x5d8bd7)['label'])['toLowerCase']();return _0x4c2aa0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bbd7b,'*Set\x20format:*\x20%0',c(_0x5bbd7b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x305da2+')')}:{'type':'format','content':c(_0x5bbd7b,'*Remove\x20format:*\x20%0',c(_0x5bbd7b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4bfece){return'codeBlock'==_0x4bfece['name'];}class q extends _0x49d3a0{['afterInit'](){const _0x25f545=this['editor'];if(!_0x25f545['plugins']['has']('CommentsEditing'))return;_0x25f545['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x15d548,_0x2f8f5d,_0x5f0d98){const _0x25c400=[];for(const _0x50c246 of _0x2f8f5d['getItems']())_0x50c246['hasAttribute'](_0x15d548)&&_0x25c400['push'](_0x5f0d98['createRangeOn'](_0x50c246));return _0x25c400;}function Fe(_0x4505da,_0x512e52,{showActiveMarker:_0xf65cbd=!0x0}={}){const _0x401b4b=_0x4505da['plugins']['get']('TrackChangesEditing');return(_0x3a0cd7,_0x2f0448,_0x51e894)=>{if(!_0x51e894['consumable']['test'](_0x2f0448['markerRange'],_0x3a0cd7['name']))return;const _0x5e5e6d=_0x2f0448['markerRange']['getWalker'](),_0xdcad37=_0x2f0448['markerRange']['start'],_0x1db37c=_0x4505da['model']['schema'];let _0x18e40f=null,_0x5c591e=null,_0x441ee6=!0x1,_0x38bba4=!0x1;for(const _0x443418 of _0x5e5e6d){const _0x3c706f=_0x443418['item'];_0x441ee6=_0x441ee6||_0x1db37c['isContent'](_0x3c706f);const _0x51fdef=_0x51e894['mapper']['toViewElement'](_0x3c706f);if(_0x51fdef&&_0x51fdef['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x443418['type']&&(_0x1db37c['isBlock'](_0x3c706f)&&!_0x1db37c['isLimit'](_0x3c706f)&&(_0x3c706f['nextSibling']||_0xdcad37['isAtEnd']?_0x18e40f&&_0x18e40f['parent']==_0x3c706f||(_0x18e40f=_0x3c706f,_0xf98bbd(_0x443418['previousPosition']),_0x38bba4=!0x0):_0x5c591e=_0x5c591e||_0x443418['previousPosition']));}function _0xf98bbd(_0x14eb9e){const {authorId:_0x4cedb9}=_0x401b4b['_splitMarkerName'](_0x2f0448['markerName']),_0x5d0a45=_0x51e894['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x512e52,'data-author-id':_0x4cedb9}),_0x134879=_0x51e894['mapper']['toViewPosition'](_0x14eb9e);_0xf65cbd&&_0x401b4b['activeMarkers']['includes'](_0x2f0448['markerName'])&&_0x51e894['writer']['addClass']('ck-suggestion-marker--active',_0x5d0a45),_0x51e894['writer']['insert'](_0x134879,_0x5d0a45),_0x51e894['mapper']['bindElementToMarker'](_0x5d0a45,_0x2f0448['markerName']);}_0x441ee6||_0x38bba4||!_0x5c591e||_0xf98bbd(_0x5c591e);};}class z extends _0x49d3a0{static get['requires'](){return[_0x140200];}['init'](){const _0x69efea=this['editor'],_0xdd195e=_0x69efea['plugins']['get']('TrackChangesEditing');_0xdd195e['enableCommand']('delete');const _0x444226=_0x69efea['commands']['get']('deleteForward');_0xdd195e['enableCommand']('deleteForward',(_0x22d440,_0x1f3dba={})=>{const _0x4c5099=_0x69efea['model']['createSelection'](_0x69efea['model']['document']['selection']);_0x4c5099['isCollapsed']&&_0x69efea['model']['modifySelection'](_0x4c5099,{'direction':'forward','unit':_0x1f3dba['unit']});const _0x17183f=_0x4c5099['getFirstRange'](),_0x5ed71c=_0x5702ff['fromRange'](_0x17183f);let _0x44ce51;_0x22d440(_0x1f3dba),_0x44ce51='$graveyard'==_0x5ed71c['root']['rootName']?_0x69efea['model']['createRange'](_0x17183f['start']):_0x69efea['model']['createRange'](_0x5ed71c['start'],_0x5ed71c['end']),_0x5ed71c['detach'](),_0x69efea['model']['enqueueChange'](_0x444226['buffer']['batch'],_0x1cb987=>{_0x444226['buffer']['lock'](),_0x1cb987['setSelection'](_0x1cb987['createRange'](_0x44ce51['end'])),_0x444226['buffer']['unlock']();});}),_0x69efea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x69efea,'merge'),{'priority':'high'}),_0x69efea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3693d6,_0x1ed42b,_0x1f1316)=>{_0x1f1316['options']['showSuggestionHighlights']&&Fe(_0x69efea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3693d6,_0x1ed42b,_0x1f1316);},{'priority':'high'}),_0x69efea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x326be0,_0x3ec395,_0x58e3db)=>{const _0x3ec84b=_0x58e3db['mapper']['markerNameToElements'](_0x3ec395['markerName']);if(_0x3ec84b){for(const _0x5047bd of _0x3ec84b)_0x5047bd['is']('uiElement')&&(_0x58e3db['mapper']['unbindElementFromMarkerName'](_0x5047bd,_0x3ec395['markerName']),_0x58e3db['writer']['remove'](_0x5047bd));}},{'priority':'high'});}}class W extends _0x49d3a0{['afterInit'](){const _0x570b91=this['editor'];if(!_0x570b91['plugins']['has']('ListEditing'))return;const _0x554b70=_0x570b91['locale'],_0x35def5=_0x570b91['plugins']['get']('TrackChangesEditing'),_0x5e5de7=_0x570b91['plugins']['has']('TodoListEditing'),_0x5e1873=!!_0x570b91['config']['get']('list.multiBlock');function _0x4615aa(_0x51627b){return{'type':'format','content':''+c(_0x554b70,'*Set\x20format:*\x20%0',_0x51627b)};}function _0x35dba2(_0x472a93){return{'type':'format','content':''+c(_0x554b70,'*Remove\x20format:*\x20%0',_0x472a93)};}_0x35def5['enableDefaultAttributesIntegration']('numberedList'),_0x35def5['enableDefaultAttributesIntegration']('bulletedList'),_0x35def5['enableDefaultAttributesIntegration']('customNumberedList'),_0x35def5['enableDefaultAttributesIntegration']('customBulletedList'),_0x35def5['enableDefaultAttributesIntegration']('indentList'),_0x35def5['enableDefaultAttributesIntegration']('outdentList'),_0x35def5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x35def5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x35def5['registerBlockAttribute']('listItemId'),_0x35def5['registerBlockAttribute']('listType'),_0x35def5['registerBlockAttribute']('listIndent'),_0x5e1873&&(_0x35def5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x35def5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e5de7&&(_0x35def5['enableDefaultAttributesIntegration']('todoList'),_0x35def5['enableDefaultAttributesIntegration']('checkTodoList'),_0x35def5['registerBlockAttribute']('todoListChecked'),_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x287d28=>{const {data:_0x30cb50}=_0x287d28;if(_0x30cb50&&'todoListChecked'==_0x30cb50['key'])return{'type':'format','content':_0x30cb50['newValue']?c(_0x554b70,'*Check\x20item*'):c(_0x554b70,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x318e26=>{if(_0x318e26['batch']['isUndo'])return!0x1;let _0x5dfe56=!0x1;const _0x5f2c13=_0x35def5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d90c=>'todoListChecked'===_0x35def5['_getAttributeKey'](_0x20d90c));for(const _0x5c99df of _0x5f2c13){'todo'!=_0x5c99df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x35def5['_findSuggestions'](_0x5c99df['getFirstRange'](),'attribute')['find'](_0x3f1fc6=>'listType'===_0x35def5['_getAttributeKey'](_0x3f1fc6['suggestion']))||(_0x318e26['removeMarker'](_0x5c99df['getFirstMarker']()),_0x5dfe56=!0x0));}return _0x5dfe56;})),_0x35def5['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x554b70,'FORMAT_INDENT'));const _0x245cd6={'type':'format','content':''};_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x6a1bae=>{const {data:_0x52e267}=_0x6a1bae;if(!_0x52e267||'listType'!=_0x52e267['key'])return;let _0x44796f=_0x6a1bae['head'];for(;_0x44796f;){if(_0x44796f['data']&&(('listStyle'==_0x44796f['data']['key']||'listMarkerStyle'==_0x44796f['data']['key'])&&(_0x44796f['data']['newValue']&&'default'!=_0x44796f['data']['newValue']||'default'!=_0x44796f['data']['oldValue']&&!_0x52e267['newValue'])||!_0x5e1873&&_0x44796f['data']['key']==u))return _0x245cd6;_0x44796f=_0x44796f['next'];}if(null==_0x52e267['newValue'])switch(_0x52e267['oldValue']){case'bulleted':return _0x35dba2(c(_0x554b70,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35dba2(c(_0x554b70,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35dba2(c(_0x554b70,'ELEMENT_TODO_LIST'));}switch(_0x52e267['newValue']){case'bulleted':return _0x4615aa(c(_0x554b70,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4615aa(c(_0x554b70,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4615aa(c(_0x554b70,'ELEMENT_TODO_LIST'));}}),_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x3dce22=>{const {data:_0x53c3bd}=_0x3dce22;if(_0x53c3bd&&'listIndent'==_0x53c3bd['key'])return null==_0x53c3bd['newValue']||null==_0x53c3bd['oldValue']&&0x0==_0x53c3bd['newValue']?_0x245cd6:void 0x0;}),_0x35def5['descriptionFactory']['registerDescriptionCallback'](_0x43fe8a=>{if('attribute'!=_0x43fe8a['type'])return;const {data:_0x51855e}=_0x43fe8a;if(!_0x51855e||'listItemId'!=_0x51855e['key'])return;const _0x2a482f=Te(_0x43fe8a);return'newValue'==_0x2a482f?{'type':'format','content':c(_0x554b70,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a482f?{'type':'format','content':c(_0x554b70,'*Split:*\x20list\x20item')}:_0x245cd6;}),_0x570b91['model']['document']['registerPostFixer'](_0x2b133c=>this['listItemIdFixer'](_0x2b133c)),_0x570b91['model']['document']['registerPostFixer'](_0x518ae1=>this['noTrackChangesFixer'](_0x518ae1)),_0x570b91['model']['document']['on']('change:data',(_0x1f3a14,_0x3d6779)=>{if(_0x3d6779['isUndo']||!_0x3d6779['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x41d6a2){if(_0x41d6a2['batch']['isUndo']||!_0x41d6a2['batch']['isLocal'])return!0x1;let _0x1b607=!0x1;const _0x4b6fdd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x427346=>_0x427346['data']&&'listItemId'==_0x427346['data']['key'])['filter'](_0x1baeee=>_0x1baeee['data']['newValue']&&_0x1baeee['data']['oldValue']);for(const _0x23c825 of _0x4b6fdd)Te(_0x23c825)||(_0x41d6a2['removeMarker'](_0x23c825['getFirstMarker']()),_0x1b607=!0x0);return _0x1b607;}['noTrackChangesFixer'](_0x5bfaea){if(_0x5bfaea['batch']['isUndo']||!_0x5bfaea['batch']['isLocal'])return!0x1;const _0x7c9229=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7c9229['trackChangesCommand']['value'])return!0x1;let _0x5448ea=!0x1;const _0x1daaaf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d33fa=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1cb38c=>'attribute'==_0x1cb38c['type'])['filter'](_0x2602b0=>_0x1daaaf['includes'](_0x2602b0['attributeKey']));if(0x0==_0x2d33fa['length'])return _0x5448ea;for(const _0x208f07 of _0x2d33fa){const _0x374dd7=_0x7c9229['_findSuggestions'](_0x208f07['range'],'attribute')['filter'](_0xbe6ee4=>!_0xbe6ee4['meta']['isNextTo'])['map'](_0xff67ce=>_0xff67ce['suggestion'])['filter'](_0x124abf=>{const _0x12cb44=_0x7c9229['_getAttributeKey'](_0x124abf);return _0x1daaaf['includes'](_0x12cb44);});if(_0x374dd7['length']){for(const _0x217bf3 of _0x374dd7)_0x5bfaea['removeMarker'](_0x217bf3['getFirstMarker']());_0x5448ea=!0x0;}}return _0x5448ea;}['assureChains'](){const _0x11a06f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x447be2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f4499;const _0x372855=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7f316f=>{if(_0x7f316f['data']['oldRange']||!_0x7f316f['data']['newRange'])return null;if(!_0x7f316f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x23efce}=_0x11a06f['_splitMarkerName'](_0x7f316f['name']);if(!_0x11a06f['hasSuggestion'](_0x23efce))return null;const _0x4dca97=_0x11a06f['getSuggestion'](_0x23efce);return _0x447be2['includes'](_0x4dca97['data']['key']);})['map'](_0x252279=>{const {id:_0x1f5bd5}=_0x11a06f['_splitMarkerName'](_0x252279['name']),_0x4a9ce2=_0x11a06f['getSuggestion'](_0x1f5bd5);return _0x4f4499=_0x4a9ce2['attributes']['groupId'],_0x4a9ce2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x372855['size'])return;const _0x3524ad=_0x11a06f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x274231=>'attribute'==_0x274231['type']&&_0x274231['data']&&_0x447be2['includes'](_0x274231['data']['key'])&&_0x274231['attributes']['groupId']!=_0x4f4499)['map'](_0x49153c=>({'listItem':_0x49153c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x49153c['attributes']['groupId']})),_0x4e61a7=new Set();for(const {groupId:_0x4d3c06,listItem:_0x49e5b7}of _0x3524ad)_0x372855['has'](_0x49e5b7)&&_0x4e61a7['add'](_0x4d3c06);for(const _0x4fba96 of _0x11a06f['getSuggestions']())_0x4e61a7['has'](_0x4fba96['attributes']['groupId'])&&_0x4fba96['setAttribute']('groupId',_0x4f4499);}['_supportLegacySuggestions'](){const _0x2ba4f1=this['editor'],_0x3ceed2=_0x2ba4f1['locale'],_0x3e6fbb=_0x2ba4f1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3e6fbb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5cde8e,_0x38eb91){const _0x250d9c=[];for(let _0x4fe4f9 of _0x5cde8e)_0x4fe4f9['start']['nodeAfter']===_0x4fe4f9['end']['parent']&&(_0x4fe4f9=_0x2ba4f1['model']['createRange'](_0x2ba4f1['model']['createPositionAt'](_0x4fe4f9['start']['nodeAfter'],0x0))),_0x250d9c['push'](_0x4fe4f9);_0x2ba4f1['model']['change'](_0x281812=>{const _0x5b8f8d=_0x2ba4f1['model']['document']['selection'],_0x783a5a=Array['from'](_0x5b8f8d['getRanges']())['map'](_0x4b60fc=>_0x5702ff['fromRange'](_0x4b60fc));_0x281812['setSelection'](_0x250d9c),_0x2ba4f1['commands']['get'](_0x38eb91['commandName'])['refresh'](),_0x38eb91['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2ba4f1['execute'](_0x38eb91['commandName'],..._0x38eb91['commandParams']),_0x281812['setSelection'](_0x783a5a);for(const _0x36751d of _0x783a5a)_0x36751d['detach']();});}),_0x3e6fbb['descriptionFactory']['registerElementLabel'](function(_0x27f6cd){const _0x536bee=!_0x2ba4f1['model']['schema']['isObject'](_0x27f6cd),_0x196132=_0x27f6cd['previousSibling'],_0x5b3d75=_0x27f6cd['nextSibling'],_0x28a6f5=_0x27f6cd['getAttribute']('listItemId'),_0x8ccd15=!_0x196132||_0x196132['getAttribute']('listItemId')!==_0x28a6f5,_0x3e5d03=!_0x5b3d75||_0x5b3d75['getAttribute']('listItemId')!==_0x28a6f5;return _0x536bee&&Boolean(_0x28a6f5)&&_0x8ccd15&&_0x3e5d03;},_0x6d9fcf=>c(_0x3ceed2,'ELEMENT_LIST_ITEM',_0x6d9fcf));}['_registerLegacyDescription'](){const _0x4d918f=this['editor'],_0x19ad54=_0x4d918f['locale'];function _0x1a52b2(_0x11ea6c){const _0x38d058=_0x4d918f['commands']['get']('bulletedList')['value'],_0xf08ed2=_0x4d918f['commands']['get']('numberedList')['value'];return'numberedList'===_0x11ea6c?_0x38d058:_0xf08ed2;}_0x4d918f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d7a19){if('formatBlock'!=_0x4d7a19['type'])return;const {data:_0x128e98}=_0x4d7a19;if(!_0x128e98)return;let _0x3d38b0,_0x3f101f,_0x4fd453,_0x3c9613;switch(_0x128e98['commandName']){case'bulletedList':_0x4fd453=_0x128e98['commandParams'][0x0]['forceValue'],_0x3c9613=_0x1a52b2(_0x128e98['commandName']),_0x3d38b0=_0x4fd453?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c9613&&_0x4d918f['config']['get']('list.multiBlock')||(_0x3d38b0='*Change\x20to:*\x20%0'),_0x3f101f={'type':'format','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4fd453=_0x128e98['commandParams'][0x0]['forceValue'],_0x3c9613=_0x1a52b2(_0x128e98['commandName']),_0x3d38b0=_0x4fd453?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c9613&&_0x4d918f['config']['get']('list.multiBlock')||(_0x3d38b0='*Change\x20to:*\x20%0'),_0x3f101f={'type':'format','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d38b0='*Indent:*\x20%0',_0x3f101f={'type':'format','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d38b0=function(_0x24d34e){const _0x114804=_0x24d34e['getFirstRange']();let _0x557a35=_0x114804['start']['nodeAfter'];for(;_0x557a35&&_0x114804['containsItem'](_0x557a35);){if(_0x557a35['getAttribute']('listIndent')>0x0)return!0x1;_0x557a35=_0x557a35['nextSibling'];}return!0x0;}(_0x4d7a19)?c(_0x19ad54,'*Format:*\x20remove\x20from\x20%0',c(_0x19ad54,function(_0x3341d8){return'ELEMENT_'+_0x3341d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d7a19))):c(_0x19ad54,'*Outdent:*\x20%0',c(_0x19ad54,'ELEMENT_LIST_ITEM')),_0x3f101f={'type':'format','content':_0x3d38b0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x128e98['multipleBlocks']&&(_0x3d38b0='*Merge:*\x20%0',_0x3f101f={'type':'deletion','content':c(_0x19ad54,_0x3d38b0,c(_0x19ad54,'ELEMENT_LIST_ITEM'))});}return _0x3f101f;});}}function Te(_0x300195){let _0x35bc0a=_0x300195['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x35bc0a;){const _0x4d6fd8=_0x35bc0a['getAttribute']('listItemId');if(!_0x4d6fd8)return!0x1;if(_0x4d6fd8==_0x300195['data']['newValue'])return'newValue';if(_0x4d6fd8==_0x300195['data']['oldValue'])return'oldValue';_0x35bc0a=_0x35bc0a['previousSibling'];}return!0x1;}class Se extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ce186=this['editor']['config']['get']('list.properties'),_0x1861de=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ce186['styles']&&(_0x1861de['enableDefaultAttributesIntegration']('listStyle'),_0x1861de['registerBlockAttribute']('listStyle')),_0x2ce186['reversed']&&(_0x1861de['enableDefaultAttributesIntegration']('listReversed'),_0x1861de['registerBlockAttribute']('listReversed')),_0x2ce186['startIndex']&&(_0x1861de['enableDefaultAttributesIntegration']('listStart'),_0x1861de['registerBlockAttribute']('listStart'));const _0xd3c718={'type':'format','content':''};_0x1861de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1580f6=this['editor']['locale'];_0x1861de['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x1580f6,'FORMAT_LIST_REVERSED')),_0x1861de['descriptionFactory']['registerDescriptionCallback'](_0x4860d4=>{const {data:_0x2569b6}=_0x4860d4;if(_0x2569b6&&'listReversed'==_0x2569b6['key'])return null==_0x2569b6['newValue']||0x0==_0x2569b6['newValue']&&null==_0x2569b6['oldValue']?_0xd3c718:void 0x0;}),_0x1861de['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x1580f6,'FORMAT_LIST_START')),_0x1861de['descriptionFactory']['registerDescriptionCallback'](_0x979a64=>{const {data:_0x4e4e92}=_0x979a64;if(_0x4e4e92&&'listStart'==_0x4e4e92['key'])return null==_0x4e4e92['newValue']||0x1==_0x4e4e92['newValue']&&null==_0x4e4e92['oldValue']?_0xd3c718:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x298988=>{if(_0x298988['batch']['isUndo'])return!0x1;let _0x35d69c=!0x1;const _0x273002=_0x1861de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56e233=>{const _0x4284dc=_0x1861de['_getAttributeKey'](_0x56e233);return'listStart'==_0x4284dc||'listReversed'==_0x4284dc;});for(const _0x28fa25 of _0x273002){const _0x185f56=_0x28fa25['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x185f56||'customNumbered'==_0x185f56)continue;_0x1861de['_findSuggestions'](_0x28fa25['getFirstRange'](),'attribute')['find'](_0x5c34c3=>'listType'==_0x1861de['_getAttributeKey'](_0x5c34c3['suggestion']))||(_0x298988['removeMarker'](_0x28fa25['getFirstMarker']()),_0x35d69c=!0x0);}return _0x35d69c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a0015){const _0x7ea143=this['editor']['locale'],{data:_0x1126f2}=_0x3a0015,_0xc48e1a={'type':'format','content':''};if(!_0x1126f2||'listStyle'!=_0x1126f2['key'])return;if(!_0x1126f2['oldValue'])return'default'==_0x1126f2['newValue']?_0xc48e1a:{'type':'format','content':''+c(_0x7ea143,'*Set\x20format:*\x20%0',c(_0x7ea143,this['_getTranslationKeyForListStyle'](_0x1126f2['newValue'])))};if(!_0x1126f2['newValue']){if('default'==_0x1126f2['oldValue'])return _0xc48e1a;let _0x52267c=_0x3a0015['head'];for(;_0x52267c;){if(_0x52267c['data']&&'listType'==_0x52267c['data']['key']&&_0x52267c['data']['newValue'])return _0xc48e1a;_0x52267c=_0x52267c['next'];}return{'type':'format','content':''+c(_0x7ea143,'*Remove\x20format:*\x20%0',c(_0x7ea143,this['_getTranslationKeyForListStyle'](_0x1126f2['oldValue'])))};}if('default'!=_0x1126f2['newValue'])return{'type':'format','content':''+c(_0x7ea143,'*Set\x20format:*\x20%0',c(_0x7ea143,this['_getTranslationKeyForListStyle'](_0x1126f2['newValue'])))};let _0x5f1245=_0x3a0015['head'];for(;_0x5f1245;){if(_0x5f1245['data']&&'listType'==_0x5f1245['data']['key']&&_0x5f1245['data']['newValue']&&_0x5f1245['data']['oldValue'])return _0xc48e1a;_0x5f1245=_0x5f1245['next'];}return{'type':'format','content':c(_0x7ea143,'*Set\x20format:*\x20%0',c(_0x7ea143,'ELEMENT_'+_0x3a0015['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1132b5=this['editor'],_0xa455f=_0x1132b5['locale'];_0x1132b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xccb53a=>{if('formatBlock'!=_0xccb53a['type'])return;const {data:_0x18f739}=_0xccb53a;if(!_0x18f739)return;let _0x939ac9,_0x57c2a9;switch(_0x18f739['commandName']){case'listStyle':_0x939ac9='*Change\x20to:*\x20%0',_0x57c2a9={'type':'format','content':c(_0xa455f,_0x939ac9,c(_0xa455f,this['_getTranslationKeyForListStyle'](_0x18f739['commandParams'][0x0]['type'])))};break;case'listReversed':_0x939ac9=_0x18f739['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57c2a9={'type':'format','content':c(_0xa455f,_0x939ac9)};break;case'listStart':_0x939ac9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57c2a9={'type':'format','content':c(_0xa455f,_0x939ac9,_0x18f739['commandParams'][0x0]['startIndex'])};}return _0x57c2a9;});}['_getTranslationKeyForListStyle'](_0x2f9337){return'ELEMENT_'+function(_0xf43307){if(_e['includes'](_0xf43307))return'bulleted';if(Re['includes'](_0xf43307))return'numbered';return null;}(_0x2f9337)['toUpperCase']()+'_LIST_'+_0x2f9337['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x49d3a0{['afterInit'](){const _0x410e90=this['editor'];_0x410e90['commands']['get']('emoji')&&_0x410e90['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x49d3a0{static get['requires'](){return[_0xfef883];}['init'](){const _0x255187=this['editor'],_0x49120e=_0x255187['plugins']['get']('TrackChangesEditing'),_0x4ff9aa=_0x255187['commands']['get']('enter');_0x49120e['enableCommand']('enter',()=>{_0x255187['model']['change'](_0x5e2267=>{const _0x119731=_0x255187['model']['document']['selection'],_0x4b3812=_0x119731['getFirstPosition'](),_0x52b311=_0x5702ff['fromRange'](_0x119731['getFirstRange']());if(_0x4ff9aa['enterBlock'](_0x5e2267)){const _0x12050f=_0x255187['model']['createPositionAt'](_0x4b3812['parent']['nextSibling'],0x0),_0x50133f=_0x5e2267['createRange'](_0x4b3812,_0x12050f);_0x49120e['markInsertion'](_0x50133f);}else _0x5e2267['setSelection'](_0x5e2267['createRange'](_0x52b311['end']));_0x52b311['detach'](),_0x4ff9aa['fire']('afterExecute',{'writer':_0x5e2267});});}),_0x255187['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x255187,'split'),{'priority':'high'}),_0x255187['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xf8d578,_0x33334e,_0x169102)=>{const _0x2f874f=_0x169102['mapper']['markerNameToElements'](_0x33334e['markerName']);if(_0x2f874f){for(const _0x2258bf of _0x2f874f)_0x2258bf['hasClass']('ck-suggestion-marker-split')&&(_0x169102['mapper']['unbindElementFromMarkerName'](_0x2258bf,_0x33334e['markerName']),_0x169102['writer']['remove'](_0x2258bf));}},{'priority':'high'}),_0x255187['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4d8a5c,_0x5c8a34,_0x2fe55d)=>{_0x2fe55d['options']['showSuggestionHighlights']&&Fe(_0x255187,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4d8a5c,_0x5c8a34,_0x2fe55d);},{'priority':'high'});}}class Z extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x247ac8=this['editor']['plugins']['get']('TrackChangesEditing');_0x247ac8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x247ac8['enableCommand']('findNext'),_0x247ac8['enableCommand']('findPrevious'),_0x247ac8['enableCommand']('replace'),_0x247ac8['enableCommand']('replaceAll');}['handleFindCommand'](_0x5aa0e9,_0xf28e52,_0x47515f={}){const _0x568ec5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5aa0e9(_0x51c534=>{let _0x51ce22=('string'==typeof _0xf28e52?_0x568ec5['findByTextCallback'](_0xf28e52,_0x47515f):_0xf28e52)(_0x51c534);Array['isArray'](_0x51ce22)&&(_0x51ce22={'results':_0x51ce22,'searchText':'string'==typeof _0xf28e52?_0xf28e52:''});const _0x2d78b8=_0x51ce22['results']['filter'](_0x2f98b6=>!0x1===this['_isInDeletionRange'](_0x2f98b6,_0x51c534['item']));return{..._0x51ce22,'results':_0x2d78b8};},_0x47515f);}['_isInDeletionRange'](_0x3764c4,_0x1651a0){const _0x1bc95e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1651a0,_0x3764c4['start']),this['editor']['model']['createPositionAt'](_0x1651a0,_0x3764c4['end']));for(const _0x52225f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1bc95e['getIntersection'](_0x52225f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x49d3a0{['afterInit'](){const _0x53d64f=this['editor']['locale'],_0x10a82d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2063fb,commandName:_0x6481f}of ro)this['editor']['plugins']['has'](_0x2063fb)&&(_0x10a82d['enableDefaultAttributesIntegration'](_0x6481f),_0x10a82d['registerInlineAttribute'](_0x6481f));_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x53d64f,'FORMAT_FONT_SIZE')),_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x53d64f,'FORMAT_FONT_FAMILY')),_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x53d64f,'FORMAT_FONT_COLOR')),_0x10a82d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x53d64f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55224e=this['editor'],_0x2fcede=_0x55224e['locale'];_0x55224e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8599=>{const _0x36949d=_0x2fcede['t'];if('formatInline'!=_0x3b8599['type'])return;const {data:_0x23639a}=_0x3b8599;if(null!=_0x23639a){if('fontSize'==_0x23639a['commandName']){const _0x47ba21=_0x23639a['commandParams'][0x0]['value'];if(_0x47ba21){const _0x12975e=_0x36949d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fb50d=>_0x2fb50d['model']==_0x47ba21)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20size:*\x20%0',_0x12975e)};}return{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x23639a['commandName']){const _0x57a2c5=_0x23639a['commandParams'][0x0]['value'];return _0x57a2c5?{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20family:*\x20%0',_0x57a2c5)}:{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20family*')};}if('fontColor'==_0x23639a['commandName']){const _0x36d0c5=_0x23639a['commandParams'][0x0]['value'];if(_0x36d0c5){const _0x1d95ca=_0x678eb7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x99cd4c=>_0x99cd4c['model']==_0x36d0c5);let _0x5f3e4e=_0x36d0c5,_0x12fe36='';return _0x1d95ca&&(_0x5f3e4e=_0x1d95ca['label'],_0x12fe36=_0x36949d(_0x5f3e4e)['toLowerCase']()),{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20color:*\x20%0',_0x12fe36)['trim'](),'color':{'value':_0x36d0c5,'title':_0x12fe36||_0x5f3e4e}};}return{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x23639a['commandName']){const _0x24e030=_0x23639a['commandParams'][0x0]['value'];if(_0x24e030){const _0x52da70=_0x678eb7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x31be78=>_0x31be78['model']==_0x24e030);let _0x4b71bc=_0x24e030,_0x784d1d='';return _0x52da70&&(_0x4b71bc=_0x52da70['label'],_0x784d1d=_0x36949d(_0x4b71bc)['toLowerCase']()),{'type':'format','content':c(_0x2fcede,'*Set\x20font\x20background\x20color:*\x20%0',_0x784d1d)['trim'](),'color':{'value':_0x24e030,'title':_0x784d1d||_0x4b71bc}};}return{'type':'format','content':c(_0x2fcede,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x49d3a0{['afterInit'](){const _0x5726cb=this['editor'],_0x1eaf92=_0x5726cb['plugins']['get']('TrackChangesEditing'),_0x5aa27c=_0x5726cb['commands']['get']('copyFormat'),_0x28cfd4=_0x5726cb['commands']['get']('pasteFormat');_0x5aa27c&&_0x28cfd4&&(_0x1eaf92['enableDefaultAttributesIntegration']('pasteFormat'),_0x1eaf92['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1725f2=this['editor'],_0x5100d8=_0x1725f2['locale'];_0x1725f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38df2c=>{if('formatBlock'!=_0x38df2c['type']&&'formatInline'!=_0x38df2c['type'])return;const {data:_0x342bba}=_0x38df2c;if(_0x342bba&&'pasteFormat'===_0x342bba['commandName']){const _0x3c07cf=[],_0x5a4e3e=_0x342bba['commandParams'][0x0];for(const [_0x4d67cd,_0x3c90fa]of Object['entries'](_0x5a4e3e))_0x3c07cf['push'](so(_0x1725f2,_0x4d67cd,_0x3c90fa));return _0x3c07cf['length']?{'type':'format','content':c(_0x5100d8,'*Set\x20format\x20to:*\x20%0',_0x3c07cf['join'](',\x20'))}:{'type':'format','content':c(_0x5100d8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x8a56c7,_0x5521ea,_0x28ce4d){const _0x4191ec=_0x8a56c7['locale']['t'],_0x155621=_0x5521ea['split'](/(?=[A-Z])/)['join']('\x20'),_0x16b0c0=_0x4191ec(_0x155621['charAt'](0x0)['toUpperCase']()+_0x155621['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x28ce4d)return _0x16b0c0;if('fontColor'===_0x5521ea||'fontBackgroundColor'===_0x5521ea){const _0x52da51=_0x678eb7(_0x8a56c7['config']['get']('fontColor.colors'))['find'](_0x1e67b=>_0x1e67b['model']==_0x28ce4d);return _0x16b0c0+'\x20('+(_0x52da51?_0x4191ec(_0x52da51['label'])['toLowerCase']():_0x28ce4d)+')';}if('fontSize'===_0x5521ea&&isNaN(parseFloat(_0x28ce4d))){const _0xce34f=_0x8a56c7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x8a56c7['config']['get']('fontSize.options'))['find'](_0x5412b8=>_0x5412b8['model']==_0x28ce4d);return _0x16b0c0+'\x20('+(_0xce34f?_0x4191ec(_0xce34f['title'])['toLowerCase']():_0x28ce4d)+')';}return _0x16b0c0+'\x20('+_0x28ce4d+')';}class nt extends _0x49d3a0{['_headingOptions'];['afterInit'](){const _0x4d1ee5=this['editor'];if(!_0x4d1ee5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4d1ee5['config']['get']('heading.options');const _0x25ddde=_0x4d1ee5['locale'],_0x1a1cd9=_0x4d1ee5['plugins']['get']('TrackChangesEditing');_0x1a1cd9['enableDefaultAttributesIntegration']('heading');for(const _0x8668bb of this['_headingOptions'])'paragraph'!=_0x8668bb['model']&&_0x1a1cd9['descriptionFactory']['registerElementLabel'](_0x8668bb['model'],_0x5ed0a8=>{const _0x195fc=this['_getHeadingLevel'](_0x8668bb['model']);return null!==_0x195fc?_0x25f06c(_0x5ed0a8,_0x195fc):_0x3522f9(_0x5ed0a8,_0x8668bb['title']);});function _0x25f06c(_0x915336,_0x3d1c3a){return c(_0x25ddde,'ELEMENT_HEADING',[_0x915336,_0x3d1c3a]);}function _0x3522f9(_0x308fd6,_0x2a5f85){return c(_0x25ddde,'ELEMENT_HEADING_CUSTOM',[_0x308fd6,_0x2a5f85]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ac7cc=this['editor'],_0x2cf1f8=_0x4ac7cc['locale'];function _0x410ed2(_0x544ca4,_0x1f9e3a){return c(_0x2cf1f8,'ELEMENT_HEADING_CUSTOM',[_0x544ca4,_0x1f9e3a]);}_0x4ac7cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f43cd=>{if('formatBlock'!=_0x5f43cd['type'])return;const {data:_0x37042a}=_0x5f43cd;if(_0x37042a&&'heading'==_0x37042a['commandName']){const _0x2a0eb6=_0x37042a['commandParams'][0x0]['value'],_0x5a1e67=this['_getHeadingLevel'](_0x2a0eb6);if(null!==_0x5a1e67)return{'type':'format','content':c(_0x2cf1f8,'*Change\x20to:*\x20%0',(_0x1a1405=0x1,_0x45f92f=_0x5a1e67,c(_0x2cf1f8,'ELEMENT_HEADING',[_0x1a1405,_0x45f92f])))};const _0x17366e=this['_headingOptions']['find'](_0x3437a2=>_0x3437a2['model']===_0x2a0eb6)['title'];return{'type':'format','content':c(_0x2cf1f8,'*Change\x20to:*\x20%0',_0x410ed2(0x1,_0x17366e))};}var _0x1a1405,_0x45f92f;});}['_getHeadingLevel'](_0x14c472){const _0x12deab=_0x14c472['match'](/^heading(\d+)/);if(_0x12deab)return _0x12deab[0x1];const _0xb9b441=this['_headingOptions']?.['find'](_0xf41cb7=>_0xf41cb7['model']==_0x14c472);if(_0xb9b441&&_0xb9b441['view']){const _0x573ed5=_0xb9b441['view'],_0x1647bb=(_0x573ed5['name']??_0x573ed5)['match'](/^h(\d+)/);if(_0x1647bb)return _0x1647bb[0x1];}return null;}}class it extends _0x49d3a0{['afterInit'](){const _0x29e8fb=this['editor'];if(!_0x29e8fb['plugins']['has']('HighlightEditing'))return;const _0x181fbe=_0x29e8fb['plugins']['get']('TrackChangesEditing'),_0xb29132=_0x29e8fb['locale'];_0x181fbe['enableDefaultAttributesIntegration']('highlight'),_0x181fbe['registerInlineAttribute']('highlight'),_0x181fbe['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xb29132,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f2a53=this['editor'],_0x434e50=_0x4f2a53['locale'];_0x4f2a53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x71cc54=>{if('formatInline'!=_0x71cc54['type'])return;const {data:_0x2ef124}=_0x71cc54;if(_0x2ef124&&'highlight'==_0x2ef124['commandName']){const _0x8df69d=_0x434e50['t'],_0x3ec981=_0x2ef124['commandParams'][0x0]['value'];if(_0x3ec981){const _0x3c2a0d=_0x4f2a53['config']['get']('highlight.options')['find'](_0x1a9788=>_0x1a9788['model']==_0x3ec981),_0x259d7f=_0x8df69d(_0x3c2a0d['title'])['toLowerCase']();return{'type':'format','content':c(_0x434e50,'*Set\x20highlight:*\x20%0',_0x259d7f),'color':{'value':_0x3c2a0d['color'],'title':_0x3c2a0d['title']}};}return{'type':'format','content':c(_0x434e50,'*Remove\x20highlight*',c(_0x434e50,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x49d3a0{['afterInit'](){const _0x35a9b8=this['editor'];if(!_0x35a9b8['plugins']['has']('HorizontalLineEditing'))return;_0x35a9b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x91ab2c=_0x35a9b8['plugins']['get']('TrackChangesEditing'),_0x50e49f=_0x35a9b8['locale'];_0x91ab2c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x399839=>c(_0x50e49f,'ELEMENT_HORIZONTAL_LINE',_0x399839)),_0x35a9b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x126020,{writer:_0x2064fd,options:_0x39e7a6})=>{if(!_0x39e7a6['showSuggestionHighlights'])return null;const _0x5f34a5=_0x2064fd['createContainerElement']('div'),_0x3f70c7=_0x2064fd['createEmptyElement']('hr');return _0x2064fd['addClass']('ck-horizontal-line',_0x5f34a5),_0x2064fd['insert'](_0x2064fd['createPositionAt'](_0x5f34a5,0x0),_0x3f70c7),_0x5f34a5;},'converterPriority':'high'});}}class ot extends _0x49d3a0{['afterInit'](){const _0xae00fa=this['editor'];if(!_0xae00fa['plugins']['has']('HtmlEmbed'))return;const _0x2d5913=_0xae00fa['plugins']['get']('TrackChangesEditing'),_0x37c0ec=_0xae00fa['locale'];_0x2d5913['descriptionFactory']['registerElementLabel']('rawHtml',_0x1113c8=>c(_0x37c0ec,'ELEMENT_HTML_EMBED',_0x1113c8)),_0x2d5913['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d5913['registerBlockAttribute']('value'),_0x2d5913['descriptionFactory']['registerDescriptionCallback'](_0xa70df9=>{if('attribute'!=_0xa70df9['type'])return;const {data:_0x249e0d}=_0xa70df9;if(_0x249e0d&&'value'==_0x249e0d['key']&&_0xa70df9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xf047f0=c(_0x37c0ec,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x37c0ec,'*Change\x20%0\x20content*',_0xf047f0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d642b=this['editor'],_0x373c5f=_0x4d642b['locale'];_0x4d642b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26c4a1=>{if('formatBlock'!=_0x26c4a1['type'])return;const {data:_0x5cb978}=_0x26c4a1;if(_0x5cb978&&'htmlEmbed'==_0x5cb978['commandName']){const _0x3d882c=c(_0x373c5f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x373c5f,'*Change\x20%0\x20content*',_0x3d882c)};}});}}class rt extends _0x49d3a0{['afterInit'](){const _0x42dd12=this['editor'];if(!_0x42dd12['plugins']['has']('ImageEditing'))return;const _0x550871=_0x42dd12['plugins']['get']('TrackChangesEditing'),_0x1e73ba=_0x42dd12['plugins']['get']('ImageUtils'),_0x32ce42=_0x42dd12['locale'];_0x550871['enableCommand']('insertImage'),_0x550871['descriptionFactory']['registerElementLabel']('imageBlock',_0x5c389e=>c(_0x32ce42,'ELEMENT_IMAGE',_0x5c389e)),_0x550871['descriptionFactory']['registerElementLabel']('imageInline',_0x27d510=>c(_0x32ce42,'ELEMENT_INLINE_IMAGE',_0x27d510)),_0x550871['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x32ce42,'ELEMENT_CAPTION')),_0x42dd12['plugins']['has']('ImageUploadEditing')&&_0x550871['enableCommand']('uploadImage'),_0x42dd12['plugins']['has']('ImageBlockEditing')&&_0x42dd12['plugins']['has']('ImageInlineEditing')&&(_0x550871['enableCommand']('imageTypeInline',(_0x13c4d9,_0x371633)=>{const _0x5981ce=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']);_0x42dd12['model']['change'](()=>{_0x550871['markBlockFormat'](_0x5981ce,{'commandName':'imageTypeInline','commandParams':[_0x371633]},[],'convertBlockImageToInline');});}),_0x550871['enableCommand']('imageTypeBlock',(_0x8f3d56,_0x4df57f)=>{_0x42dd12['model']['change'](_0x2fe410=>{let _0x1351c1=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x3ef351=_0x2fe410['createRangeOn'](_0x1351c1);const _0x351aef=_0x5b7900['fromPosition'](_0x3ef351['start'],'toPrevious'),_0x219e45=_0x5b7900['fromPosition'](_0x3ef351['end'],'toNext');_0x550871['forceDefaultExecution'](()=>_0x8f3d56(_0x4df57f)),_0x1351c1=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x3ef351=_0x2fe410['createRangeOn'](_0x1351c1);const _0x159659=_0x2fe410['createRange'](_0x351aef,_0x219e45);_0x351aef['detach'](),_0x219e45['detach'](),_0x550871['markBlockFormat'](_0x1351c1,{'commandName':'imageTypeInline','commandParams':[_0x4df57f]},[],'convertInlineImageToBlock'),_0x159659['start']['isBefore'](_0x3ef351['start'])&&_0x550871['markInsertion'](_0x2fe410['createRange'](_0x159659['start'],_0x3ef351['start']),'convertInlineImageToBlock'),_0x3ef351['end']['isBefore'](_0x159659['end'])&&_0x550871['markInsertion'](_0x2fe410['createRange'](_0x3ef351['end'],_0x159659['end']),'convertInlineImageToBlock');});}),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x550871['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2551a7])=>{const _0x186282=_0x550871['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x48e186=_0x2551a7['start'],_0x25d4a6=_0x2551a7['end'];const _0x219a8f=_0x42dd12['model']['schema']['getNearestSelectionRange'](_0x48e186,'backward'),_0x5b30ff=_0x42dd12['model']['schema']['getNearestSelectionRange'](_0x25d4a6,'forward');_0x219a8f['isCollapsed']&&(_0x48e186=_0x219a8f['start']),_0x5b30ff['isCollapsed']&&(_0x25d4a6=_0x5b30ff['end']),_0x186282([_0x42dd12['model']['createRange'](_0x48e186,_0x25d4a6)]);}),_0x550871['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28c34d),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28c34d)),_0x42dd12['plugins']['has']('ImageCaptionEditing')&&(_0x550871['enableCommand']('toggleImageCaption',(_0x252627,_0x516dbe)=>{const _0x23572a=_0x42dd12['plugins']['get']('ImageCaptionUtils');let _0x90da5c=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x49e67b=_0x23572a['getCaptionFromImageModelElement'](_0x90da5c);_0x42dd12['model']['change'](()=>{if(_0x49e67b)return void _0x550871['markDeletion'](_0x42dd12['model']['createRangeOn'](_0x49e67b));const _0x40aca7=_0x1e73ba['isBlockImage'](_0x90da5c);_0x252627(_0x516dbe),_0x90da5c=_0x1e73ba['getClosestSelectedImageElement'](_0x42dd12['model']['document']['selection']),_0x49e67b=_0x23572a['getCaptionFromImageModelElement'](_0x90da5c),_0x550871['markInsertion'](_0x42dd12['model']['createRangeOn'](_0x49e67b),_0x40aca7?null:'imageCaption');});}),_0x550871['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28c34d));const _0x518f89=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30af9e(_0x2392d2,_0x6964b7){const _0x4ceb3c=_0x518f89['findIndex'](({type:_0x2d09ab,subType:_0xe2cb60})=>_0x2392d2['type']==_0x2d09ab&&_0x2392d2['subType']==_0xe2cb60),_0x5a52a0=_0x518f89['findIndex'](({type:_0x2443b1,subType:_0x50a5b3})=>_0x6964b7['type']==_0x2443b1&&_0x6964b7['subType']==_0x50a5b3);if(_0x4ceb3c<0x0||_0x5a52a0<0x0)return!0x1;const _0x4c45d9=_0x2392d2['getFirstRange'](),_0x4c7b26=_0x6964b7['getFirstRange']();if((0x0==_0x4ceb3c||0x1==_0x4ceb3c)&&0x2==_0x5a52a0&&_0x4c45d9['isIntersecting'](_0x4c7b26))return!0x0;if(0x2==_0x4ceb3c&&0x3==_0x5a52a0){const _0x13d132=_0x550871['_findSuggestions'](_0x4c45d9,'insertion')['filter'](({suggestion:_0x9fed2b,meta:_0x400de5})=>_0x400de5['isOwn']&&'convertInlineImageToBlock'==_0x9fed2b['subType']);if(_0x13d132['length']>0x1&&_0x4c7b26['end']['isEqual'](_0x4c45d9['start']))return!0x0;if(0x1==_0x13d132['length']&&(_0x4c45d9['start']['isEqual'](_0x4c7b26['end'])||_0x4c45d9['end']['isEqual'](_0x4c7b26['start'])))return!0x0;}if(0x3==_0x4ceb3c&&0x3==_0x5a52a0&&_0x4c45d9['start']['isBefore'](_0x4c7b26['start'])){const _0x45639b=_0x4c45d9['end']['nodeAfter'],_0x529831=_0x4c7b26['start']['nodeBefore'];return _0x1e73ba['isBlockImage'](_0x45639b)&&_0x45639b===_0x529831;}return!0x1;}function _0x28c34d(_0x13df5a,_0x4f4fca){return _0x30af9e(_0x13df5a,_0x4f4fca)?[_0x13df5a,_0x4f4fca]:_0x30af9e(_0x4f4fca,_0x13df5a)?[_0x4f4fca,_0x13df5a]:null;}_0x42dd12['plugins']['has']('ImageResize')&&(_0x550871['enableDefaultAttributesIntegration']('resizeImage'),_0x550871['registerBlockAttribute']('resizedWidth'),_0x550871['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x32ce42,'FORMAT_IMAGE_SIZE'))),_0x42dd12['plugins']['has']('ImageTextAlternativeEditing')&&(_0x550871['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x550871['registerBlockAttribute']('alt')),_0x42dd12['plugins']['has']('PictureEditing')&&(_0x550871['registerBlockAttribute']('sources'),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x4c3456=>{if('attribute'!=_0x4c3456['type'])return;const {data:_0x501b0b}=_0x4c3456;return _0x501b0b&&'sources'==_0x501b0b['key']?{'type':'format','content':''}:void 0x0;})),_0x42dd12['plugins']['has']('ImageSizeAttributes')&&(_0x550871['registerBlockAttribute']('width'),_0x550871['registerBlockAttribute']('height'),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x31c842=>{if('attribute'!=_0x31c842['type'])return;const {data:_0x407cbc}=_0x31c842;return!_0x407cbc||'width'!=_0x407cbc['key']&&'height'!=_0x407cbc['key']?void 0x0:{'type':'format','content':''};})),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x299e30=>{if(!!_0x518f89['find'](({type:_0x1d4de9,subType:_0x451603})=>_0x299e30['type']==_0x1d4de9&&_0x299e30['subType']==_0x451603))return _0x299e30['previous']?{}:void 0x0;}),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x2b4f03=>{if('insertion'==_0x2b4f03['type']||'deletion'==_0x2b4f03['type']){const _0xf4f5ac=_0x2b4f03['getContainedElement']();if(_0xf4f5ac&&_0xf4f5ac['is']('element','caption'))return{'type':'insertion'==_0x2b4f03['type']?'addObject':'removeObject','element':_0xf4f5ac,'quantity':0x1};}}),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x30f6b9=>'formatBlock'==_0x30f6b9['type']&&'convertInlineImageToBlock'==_0x30f6b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x30f6b9['type']&&'convertBlockImageToInline'==_0x30f6b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x550871['descriptionFactory']['registerDescriptionCallback'](_0x4571e2=>{if('attribute'!=_0x4571e2['type'])return;const {data:_0x34d374}=_0x4571e2;if(!_0x34d374||'alt'!=_0x34d374['key'])return;const _0x5e662f=_0x34d374['newValue'];return _0x5e662f?{'type':'format','content':c(_0x32ce42,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e662f+'\x22')}:{'type':'format','content':c(_0x32ce42,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547e17=this['editor'],_0x740ff0=_0x547e17['locale'];_0x547e17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b867=>{if('formatBlock'!=_0x37b867['type']&&'formatInline'!=_0x37b867['type'])return;const {data:_0x33b639}=_0x37b867;if(_0x33b639){if('imageTextAlternative'==_0x33b639['commandName']){const _0x1af855=_0x33b639['commandParams'][0x0]['newValue'];return _0x1af855?{'type':'format','content':c(_0x740ff0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1af855+'\x22')}:{'type':'format','content':c(_0x740ff0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x33b639['commandName']){const _0x2540cf=_0x33b639['commandParams'][0x0]['width'];return _0x2540cf?{'type':'format','content':c(_0x740ff0,'*Set\x20image\x20width:*\x20%0',_0x2540cf)}:{'type':'format','content':c(_0x740ff0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2e1af4=this['editor']['locale'],_0x5425b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5425b3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5425b3['registerBlockAttribute']('src'),_0x5425b3['descriptionFactory']['registerDescriptionCallback'](_0x2c4fc5=>{if('attribute'!=_0x2c4fc5['type'])return;const {data:_0x1b979a}=_0x2c4fc5;return _0x1b979a&&'src'==_0x1b979a['key']?_0x1b979a['newValue']&&_0x1b979a['oldValue']?{'type':'format','content':c(_0x2e1af4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4accee=this['editor']['plugins']['get']('TrackChangesEditing');_0x4accee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4accee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4accee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4accee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x109c08=this['editor'],_0x58dd67=_0x109c08['locale'];_0x109c08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338987=>{if('formatBlock'!=_0x338987['type']&&'formatInline'!=_0x338987['type'])return;const {data:_0x16f2d0}=_0x338987;if(!_0x16f2d0||'replaceImageSource'!=_0x16f2d0['commandName'])return;return{'type':'format','content':c(_0x58dd67,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x49d3a0{['afterInit'](){const _0x4f0832=this['editor'];if(!_0x4f0832['plugins']['has']('ImageStyleEditing'))return;const _0x29d68c=_0x4f0832['plugins']['get']('TrackChangesEditing'),_0x21b32e=_0x4f0832['plugins']['get']('ImageUtils'),_0x2300ea={};_0x29d68c['enableCommand']('imageStyle',(_0x291702,_0x365330)=>{const _0x542d85=_0x4f0832['plugins']['get']('Users')['me'],_0x59a7e8=_0x4f0832['commands']['get']('imageStyle');let _0xed8cc3=_0x21b32e['getClosestSelectedImageElement'](_0x4f0832['model']['document']['selection']),_0x14070d=_0x4f0832['model']['createRangeOn'](_0xed8cc3),_0xda7438=_0x59a7e8['value'];if(_0xda7438==_0x365330['value'])return;const _0x1bf394={'commandName':'imageStyle','commandParams':[_0x365330],'formatGroupId':_0x261f54()};_0x4f0832['model']['change'](()=>{if(_0x29d68c['getSuggestions']()['filter'](_0x45a230=>_0x45a230['isInContent']&&_0x542d85==_0x45a230['author']&&('formatBlock'==_0x45a230['type']||'formatInline'==_0x45a230['type'])&&('imageStylePreApply'==_0x45a230['subType']||'imageStylePostApply'==_0x45a230['subType'])&&_0x45a230['getFirstRange']()['isEqual'](_0x14070d))['forEach'](_0x519fb0=>_0x29d68c['discardSuggestion'](_0x519fb0['head'])),_0xed8cc3=_0x21b32e['getClosestSelectedImageElement'](_0x4f0832['model']['document']['selection']),_0x14070d=_0x4f0832['model']['createRangeOn'](_0xed8cc3),_0x59a7e8['refresh'](),_0x4f0832['commands']['get']('imageTypeInline')['refresh'](),_0x4f0832['commands']['get']('imageTypeBlock')['refresh'](),_0xda7438=_0x59a7e8['value'],_0xda7438!=_0x365330['value'])return _0x21b32e['isInlineImage'](_0xed8cc3)&&_0x59a7e8['shouldConvertImageType'](_0x365330['value'],_0xed8cc3)?(_0x291702({..._0x365330,'setImageSizes':!0x1}),_0xed8cc3=_0x21b32e['getClosestSelectedImageElement'](_0x4f0832['model']['document']['selection']),void _0x29d68c['markBlockFormat'](_0xed8cc3,{..._0x1bf394,'commandReversedParams':[{'value':_0xda7438||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21b32e['isBlockImage'](_0xed8cc3)?_0x29d68c['markBlockFormat'](_0xed8cc3,_0x1bf394,[],'imageStylePostApply'):_0x29d68c['markInlineFormat'](_0x14070d,_0x1bf394,'imageStylePostApply'));});});for(const _0x1b3b18 of _0x4f0832['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2300ea[_0x1b3b18['name']]=_0x1b3b18['title']['toLowerCase']();_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x182df2])=>{_0x21b32e['setImageNaturalSizeAttributes'](_0x182df2['getContainedElement']());}),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x18d4b7,_0x2c90e4)=>{_0x29d68c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x18d4b7,{'commandName':_0x2c90e4['commandName'],'commandParams':_0x2c90e4['commandReversedParams']});}),_0x29d68c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21fd52,_0x41da62){if(_0x14786a(_0x21fd52,_0x41da62))return[_0x21fd52,_0x41da62];if(_0x14786a(_0x41da62,_0x21fd52))return[_0x41da62,_0x21fd52];return null;});const _0x31ec9a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x14786a(_0x86384e,_0xcf51a3){const _0x277917=_0x31ec9a['findIndex'](({type:_0x34f4a4,subType:_0x5cf235})=>_0x86384e['type']==_0x34f4a4&&_0x86384e['subType']==_0x5cf235),_0x246ff3=_0x31ec9a['findIndex'](({type:_0x3ef1fd,subType:_0x5d8008})=>_0xcf51a3['type']==_0x3ef1fd&&_0xcf51a3['subType']==_0x5d8008);if(_0x277917<0x0||_0x246ff3<0x0)return!0x1;const _0x435309=_0x86384e['getFirstRange'](),_0x4480df=_0xcf51a3['getFirstRange']();if((0x0==_0x277917||0x1==_0x277917)&&0x2==_0x246ff3&&_0x435309['isIntersecting'](_0x4480df))return!0x0;if(0x2==_0x277917&&0x3==_0x246ff3){const _0x5e9105=_0x29d68c['_findSuggestions'](_0x435309,'insertion')['filter'](({suggestion:_0x128e26,meta:_0x40914b})=>_0x40914b['isOwn']&&'convertInlineImageToBlock'==_0x128e26['subType']);if(_0x5e9105['length']>0x1&&_0x4480df['end']['isEqual'](_0x435309['start']))return!0x0;if(0x1==_0x5e9105['length']&&(_0x435309['start']['isEqual'](_0x4480df['end'])||_0x435309['end']['isEqual'](_0x4480df['start'])))return!0x0;}if(0x3==_0x277917&&0x3==_0x246ff3&&_0x435309['start']['isBefore'](_0x4480df['start'])){const _0x50fc2d=_0x435309['end']['nodeAfter'],_0x3919dc=_0x4480df['start']['nodeBefore'];return _0x21b32e['isBlockImage'](_0x50fc2d)&&_0x50fc2d===_0x3919dc;}return!0x1;}_0x4f0832['model']['document']['registerPostFixer'](()=>{let _0x223852=!0x1;const _0xd4742c=Array['from'](_0x4f0832['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44cbb2,data:_0x4a8832}of _0xd4742c){const {group:_0x5e2bef,type:_0x26f31c,subType:_0x5640d7,id:_0x3031c0}=_0x29d68c['_splitMarkerName'](_0x44cbb2);if('suggestion'==_0x5e2bef&&_0x29d68c['hasSuggestion'](_0x3031c0)){if('formatBlock'==_0x26f31c&&('imageStylePreApply'==_0x5640d7||'imageStylePostApply'==_0x5640d7)){const _0x1f8938=_0x29d68c['getSuggestion'](_0x3031c0);if(_0x4a8832['newRange']){const _0x38c53a=_0x1f8938['getFirstRange']()['getContainedElement']();if(_0x21b32e['isBlockImage'](_0x38c53a))continue;_0x29d68c['discardSuggestion'](_0x1f8938),_0x223852=!0x0;}}if('insertion'==_0x26f31c&&'imageCaption'==_0x5640d7&&!_0x4a8832['newRange']){const _0x517565=_0x29d68c['getSuggestion'](_0x3031c0);_0x517565['next']&&_0x517565['next']['isInContent']&&(_0x29d68c['discardSuggestion'](_0x517565['next']),_0x223852=!0x0);}}}return _0x223852;}),this['_registerLegacyDescription'](_0x2300ea);}['_registerLegacyDescription'](_0x9aeadd){const _0x402966=this['editor'],_0x634a7c=_0x402966['locale'];_0x402966['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea4a0=>{if('formatBlock'!=_0x1ea4a0['type']&&'formatInline'!=_0x1ea4a0['type'])return;const {data:_0x3875fe}=_0x1ea4a0;if(!_0x3875fe||'imageStyle'!=_0x3875fe['commandName'])return;const _0x141b79=_0x3875fe['commandParams'][0x0]['value'];return _0x3480e2('side'===_0x141b79?c(_0x634a7c,'FORMAT_SIDE_IMAGE'):_0x9aeadd[_0x141b79]||_0x141b79);function _0x3480e2(_0x2e07a5){return{'type':'format','content':c(_0x634a7c,'*Format:*\x20%0',_0x2e07a5)};}});}}class ut extends _0x49d3a0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x342bee){super(_0x342bee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56333f=this['editor'],_0x256592=_0x56333f['commands']['get']('importWord'),_0x1c80c4=_0x56333f['commands']['get']('trackChanges');_0x256592&&(_0x256592['on']('execute',(_0x413eee,[,_0x507545])=>{this['_trackChangesValueDuringImport']=_0x1c80c4['value'],_0x507545['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x256592,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x256592,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1c80c4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56333f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4019d4,_0x2d980e){const {suggestions:_0x15f030}=_0x2d980e,_0x309138=this['editor']['commands']['get']('trackChanges'),_0x4577ff=_0x309138['value'];this['_trackChangesValueDuringImport']!==_0x4577ff&&(_0x309138['execute'](),this['_trackChangesExecuted']=!0x0),_0x15f030&&_0x15f030['forEach'](({id:_0xd8ad2d,type:_0x12c3ce,author:_0x558d2e,created_at:_0x54f1ed})=>{const _0x31c4a4={'id':_0xd8ad2d,'type':_0x12c3ce,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x558d2e,'createdAt':_0x54f1ed?new Date(_0x54f1ed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31c4a4);});}}class ft extends _0x49d3a0{['afterInit'](){const _0x572e74=this['editor'],_0x334e57=_0x572e74['plugins']['get']('TrackChangesEditing');if(_0x572e74['plugins']['has']('IndentEditing')&&(_0x334e57['enableCommand']('indent'),_0x334e57['enableCommand']('outdent')),_0x572e74['plugins']['has']('IndentBlock')){for(const _0x22539c of['indentBlock','outdentBlock'])_0x334e57['enableDefaultAttributesIntegration'](_0x22539c);}const _0x229e10=_0x572e74['locale'];_0x334e57['registerBlockAttribute']('blockIndent'),_0x334e57['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x229e10,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba6a4=this['editor'],_0x96a415=_0x1ba6a4['locale'],_0x557022=_0x1ba6a4['plugins']['get']('TrackChangesEditing');_0x557022['descriptionFactory']['registerDescriptionCallback'](_0x47c5fa=>{if('formatBlock'!=_0x47c5fa['type'])return;const {data:_0x9214d1}=_0x47c5fa;if(!_0x9214d1)return;if('indentBlock'!=_0x9214d1['commandName']&&'outdentBlock'!=_0x9214d1['commandName'])return;const _0x4888b8=_0x47c5fa['getItems']()[0x0],_0x1b6756=_0x557022['descriptionFactory']['getItemLabel'](_0x4888b8);return'indentBlock'==_0x9214d1['commandName']?{'type':'format','content':c(_0x96a415,'*Indent:*\x20%0',_0x1b6756)}:'outdentBlock'==_0x9214d1['commandName']?{'type':'format','content':c(_0x96a415,'*Outdent:*\x20%0',_0x1b6756)}:void 0x0;});}}class ht extends _0x49d3a0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x49d3a0{['afterInit'](){const _0x488870=this['editor'];if(!_0x488870['plugins']['has']('LinkEditing'))return;const _0x32ae60=_0x488870['plugins']['get']('TrackChangesEditing'),_0x1593eb=_0x488870['commands']['get']('link');_0x32ae60['enableDefaultAttributesIntegration']('link'),_0x32ae60['enableDefaultAttributesIntegration']('unlink'),_0x32ae60['registerInlineAttribute']('linkHref');for(const _0x31f460 of _0x1593eb['manualDecorators'])_0x32ae60['registerInlineAttribute'](_0x31f460['id']),_0x32ae60['descriptionFactory']['registerAttributeLabel'](_0x31f460['id'],'link\x20('+_0x31f460['label']['toLowerCase']()+')');_0x32ae60['descriptionFactory']['registerDescriptionCallback'](_0x59bf75=>{if('attribute'!=_0x59bf75['type'])return;const {data:_0x126ea0}=_0x59bf75;if(!_0x126ea0||'linkHref'!=_0x126ea0['key'])return;const _0x482e26=_0x126ea0['newValue'],_0x2062d8=_0x488870['locale'];return{'type':'format','content':null==_0x482e26?c(_0x2062d8,'*Remove\x20link*'):c(_0x2062d8,'*Set\x20link:*\x20%0','\x22'+_0x482e26+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312787=this['editor'],_0x22d53d=_0x312787['locale'];_0x312787['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8d4e14=>{if('formatInline'!=_0x8d4e14['type'])return;const {data:_0x35a031}=_0x8d4e14;if(_0x35a031){if('link'==_0x35a031['commandName']){const _0x43c0d3=_0x35a031['commandParams'][0x0];return{'type':'format','content':c(_0x22d53d,'*Set\x20link:*\x20%0','\x22'+_0x43c0d3+'\x22')};}return'unlink'==_0x35a031['commandName']?{'type':'format','content':c(_0x22d53d,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x49d3a0{['afterInit'](){const _0x4ef50c=this['editor'],_0x59fb34=_0x4ef50c['locale'];if(!_0x4ef50c['plugins']['has']('LegacyListEditing'))return;const _0x118919=_0x4ef50c['plugins']['get']('TrackChangesEditing'),_0x19ddcd=_0x4ef50c['plugins']['has']('LegacyTodoListEditing');function _0xd62343(_0x12ed86){return()=>{const _0xa729b8=_0x4ef50c['model']['document']['selection'],_0x4786ac=_0x4ef50c['commands']['get'](_0x12ed86);if(_0x4786ac['value'])return void _0x4ef50c['execute']('paragraph',{});const _0x17dcad=_0x12ed86['slice'](0x0,-0x4),_0x457cac=function(_0x2fe290,_0x37ffe7,_0x5a7aa1){let _0x1a3af5=Array['from'](_0x2fe290)['filter'](_0x5d5014=>function(_0x3792f0,_0x13aa6c){return _0x13aa6c['checkChild'](_0x3792f0['parent'],'listItem')&&!_0x13aa6c['isObject'](_0x3792f0);}(_0x5d5014,_0x5a7aa1));_0x1a3af5=_0x1a3af5['filter'](_0x2fc517=>!_0x2fc517['is']('element','listItem')||_0x2fc517['getAttribute']('listType')!=_0x37ffe7);const _0x4ab604=new Set();for(const _0x56bcde of _0x1a3af5)_0x56bcde['is']('element','listItem')?_0x4ab604['add'](Le(_0x56bcde)):_0x4ab604['add'](_0x56bcde);return Array['from'](_0x4ab604);}(_0xa729b8['getSelectedBlocks'](),_0x17dcad,_0x4ef50c['model']['schema']);_0x4ef50c['model']['change'](()=>{for(const _0x539786 of _0x457cac)_0x118919['markBlockFormat'](_0x539786,{'commandName':_0x12ed86,'commandParams':[{'forceValue':!_0x4786ac['value']}],'formatGroupId':'blockName'},Ee(_0x539786));});};}function _0xa0ac95(_0x3ebcf5){return()=>{const _0x3b8df1=function(_0x589650){let _0x351a8e=Array['from'](_0x589650);const _0x406879=_0x351a8e['findIndex'](_0xcc1a76=>'listItem'!=_0xcc1a76['name']);return _0x406879>-0x1&&(_0x351a8e=_0x351a8e['slice'](0x0,_0x406879)),_0x351a8e;}(_0x4ef50c['model']['document']['selection']['getSelectedBlocks']()),_0x4976ba=_0x4ef50c['model']['createRange'](_0x4ef50c['model']['createPositionAt'](_0x3b8df1[0x0],'before'),_0x4ef50c['model']['createPositionAt'](_0x3b8df1[_0x3b8df1['length']-0x1],'end'));_0x4ef50c['model']['change'](()=>{_0x118919['markBlockFormat'](_0x4976ba,{'commandName':_0x3ebcf5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x40427f){const _0x5d8467=new Set();for(const _0x464014 of _0x40427f){let _0x20967d=_0x464014['nextSibling'];for(;_0x20967d&&_0x20967d['getAttribute']('listIndent')>_0x464014['getAttribute']('listIndent');)_0x5d8467['add'](_0x20967d),_0x20967d=_0x20967d['nextSibling'];}return Array['from'](_0x5d8467);}(_0x3b8df1));});};}_0x118919['enableCommand']('numberedList',_0xd62343('numberedList')),_0x118919['enableCommand']('bulletedList',_0xd62343('bulletedList')),_0x19ddcd&&_0x118919['enableCommand']('todoList',_0xd62343('todoList')),_0x118919['enableCommand']('indentList',_0xa0ac95('indentList')),_0x118919['enableCommand']('outdentList',_0xa0ac95('outdentList')),_0x19ddcd&&_0x118919['enableCommand']('checkTodoList',()=>{const _0x1bdff4=_0x4ef50c['commands']['get']('checkTodoList'),_0x2f3634=Array['from'](_0x1bdff4['_selectedElements']);_0x2f3634['filter'](_0x4a8a64=>_0x4a8a64['getAttribute']('todoListChecked')!=_0x1bdff4['value']),_0x4ef50c['model']['change'](()=>{for(const _0x533e02 of _0x2f3634)_0x118919['markBlockFormat'](_0x533e02,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1bdff4['value']}]});});}),_0x118919['descriptionFactory']['registerElementLabel']('listItem',_0x14bf6d=>c(_0x59fb34,'ELEMENT_LIST_ITEM',_0x14bf6d)),_0x118919['descriptionFactory']['registerDescriptionCallback'](_0x5efdea=>{if('formatBlock'!=_0x5efdea['type']&&'formatInline'!=_0x5efdea['type'])return;const {data:_0x279f5f}=_0x5efdea;if(_0x279f5f){if('numberedList'==_0x279f5f['commandName']||'bulletedList'==_0x279f5f['commandName']||'todoList'==_0x279f5f['commandName'])switch(_0x279f5f['commandName']['replace']('List','')){case'bulleted':return _0x3afd6e(c(_0x59fb34,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3afd6e(c(_0x59fb34,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3afd6e(c(_0x59fb34,'ELEMENT_TODO_LIST'));}if('indentList'==_0x279f5f['commandName'])return{'type':'format','content':c(_0x59fb34,'*Indent:*\x20%0',c(_0x59fb34,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x279f5f['commandName'])return{'type':'format','content':c(_0x59fb34,'*Outdent:*\x20%0',c(_0x59fb34,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x279f5f['commandName'])return _0x279f5f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59fb34,'*Check\x20item*')}:{'type':'format','content':c(_0x59fb34,'*Uncheck\x20item*')};}function _0x3afd6e(_0xad4b7f){return{'type':'format','content':c(_0x59fb34,'*Change\x20to:*\x20%0',_0xad4b7f)};}});}}function Le(_0x4c6510){const _0x2adcdf=_0x4c6510['getAttribute']('listIndent');if(0x0==_0x2adcdf)return _0x4c6510;let _0x54a403=_0x4c6510;for(;_0x4c6510['previousSibling']&&_0x4c6510['previousSibling']['is']('element','listItem');){const _0x276790=_0x4c6510['previousSibling']['getAttribute']('listIndent');if(_0x276790==_0x2adcdf)_0x54a403=_0x4c6510['previousSibling'];else{if(_0x276790<_0x2adcdf)break;}_0x4c6510=_0x4c6510['previousSibling'];}return _0x54a403;}function Ee(_0x2e6d7b){const _0x287499=[];if(_0x2e6d7b['is']('element','listItem')&&_0x2e6d7b['getAttribute']('listIndent')>0x0){let _0x109e61=_0x2e6d7b['nextSibling'];for(;_0x109e61&&'listItem'==_0x109e61['name']&&_0x109e61['getAttribute']('listIndent')==_0x2e6d7b['getAttribute']('listIndent');)_0x287499['push'](_0x109e61),_0x109e61=_0x109e61['nextSibling'];}return _0x287499;}class Q extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f8287=this['editor']['config']['get']('list.properties'),_0x1e68b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f8287['styles']&&_0x1e68b2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f8287['reversed']&&_0x1e68b2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f8287['startIndex']&&_0x1e68b2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e68b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x564a61,_0x46338c={}){const _0x5b0212=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ee2fb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5b0212['markMultiRangeBlockFormat'](_0x1ee2fb,{'commandName':'listStyle','commandParams':[{'type':_0x46338c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2d29df,_0x4fa592={}){const _0x29184b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c9a94=this['_getSuggestionBlocks'](_0x2d8075=>_0x2d8075['is']('element','listItem')&&'numbered'===_0x2d8075['getAttribute']('listType'));if(_0x3c9a94['length']<0x1)return;const _0x12a3ad=_0x3c9a94['map'](_0x34a898=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34a898,'before'),this['editor']['model']['createPositionAt'](_0x34a898,0x0)));this['editor']['model']['change'](()=>{_0x29184b['markMultiRangeBlockFormat'](_0x12a3ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x4fa592['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2de06b,_0x5e9e14={}){const _0x2f43e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x465220=this['_getSuggestionBlocks'](_0x4a9d9a=>_0x4a9d9a['is']('element','listItem')&&'numbered'===_0x4a9d9a['getAttribute']('listType'));if(_0x465220['length']<0x1)return;const _0x3003f8=_0x465220['map'](_0xa3fbb3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa3fbb3,'before'),this['editor']['model']['createPositionAt'](_0xa3fbb3,0x0)));this['editor']['model']['change'](()=>{_0x2f43e0['markMultiRangeBlockFormat'](_0x3003f8,{'commandName':'listStart','commandParams':[{'startIndex':_0x5e9e14['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53fc03){if('formatBlock'!=_0x53fc03['type']&&'formatInline'!=_0x53fc03['type'])return;const _0x538762=this['editor']['locale'],{data:_0xd1b00c}=_0x53fc03;if(!_0xd1b00c)return;let _0x492250,_0x18f0b8;switch(_0xd1b00c['commandName']){case'listStyle':_0x492250='*Change\x20to:*\x20%0',_0x18f0b8={'type':'format','content':c(_0x538762,_0x492250,c(_0x538762,this['_getTranslationKeyForListStyle'](_0xd1b00c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x492250=_0xd1b00c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18f0b8={'type':'format','content':c(_0x538762,_0x492250)};break;case'listStart':_0x492250='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18f0b8={'type':'format','content':c(_0x538762,_0x492250,_0xd1b00c['commandParams'][0x0]['startIndex'])};}return _0x18f0b8;}['_getSuggestionBlocksForListStyle'](){const _0x1a3df4=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ef9b0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ef9b0[0x0]?.['is']('element','listItem')&&_0x3ef9b0['unshift'](..._0x1a3df4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ef9b0[_0x3ef9b0['length']-0x1]?.['is']('element','listItem')&&_0x3ef9b0['push'](..._0x1a3df4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ef9b0=[...new Set(_0x3ef9b0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ef9b0=_0x3ef9b0['filter'](_0x3cac26=>_0x3cac26['is']('element','listItem'))),_0x3ef9b0;}['_getSuggestionBlocks'](_0x3c94e7){const _0x310d1d=this['editor']['plugins']['get']('LegacyListUtils');let _0x2067df=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c94e7)['map'](_0x2c0e20=>{const _0xd2a6f=this['editor']['model']['createPositionAt'](_0x2c0e20,0x0);return[..._0x310d1d['getSiblingNodes'](_0xd2a6f,'backward'),..._0x310d1d['getSiblingNodes'](_0xd2a6f,'forward')];})['flat']();return _0x2067df=[...new Set(_0x2067df)],_0x2067df;}['_getTranslationKeyForListStyle'](_0x35ac8e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x35ac8e)||'default')['toUpperCase']()+'_LIST_'+_0x35ac8e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x49d3a0{['afterInit'](){const _0x3244dc=this['editor'];if(!_0x3244dc['plugins']['has']('MediaEmbedEditing'))return;const _0x1f8eb0=_0x3244dc['plugins']['get']('TrackChangesEditing'),_0x42d2d8=_0x3244dc['locale'];_0x1f8eb0['enableCommand']('mediaEmbed'),_0x1f8eb0['descriptionFactory']['registerElementLabel']('media',_0x5935e9=>c(_0x42d2d8,'ELEMENT_MEDIA',_0x5935e9)),_0x3244dc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2137a6,{writer:_0xa72f7b,options:_0x4b6472})=>{if(_0x4b6472['showSuggestionHighlights'])return _0xa72f7b['createEmptyElement']('div');},'converterPriority':'high'}),_0x3244dc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4d122c,_0x75d09,_0x2346b0)=>{_0x2346b0['options']['showSuggestionHighlights']&&_0x4d122c['stop']();},{'priority':'high'});}}class pt extends _0x49d3a0{['afterInit'](){const _0x481fc4=this['editor'];_0x481fc4['plugins']['has']('MentionEditing')&&_0x481fc4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x49d3a0{['afterInit'](){const _0x59d7ba=this['editor'];if(!_0x59d7ba['plugins']['has']('MergeFieldsEditing'))return;const _0x168c81=_0x59d7ba['plugins']['get']('TrackChangesEditing'),_0x391eb4=_0x59d7ba['locale'];_0x168c81['enableCommand']('insertMergeField'),_0x168c81['enableCommand']('insertMergeFieldBlock'),_0x168c81['enableCommand']('insertMergeFieldImage'),_0x168c81['descriptionFactory']['registerElementLabel']('mergeField',_0x7b7d46=>c(_0x391eb4,'ELEMENT_MERGE_FIELD',_0x7b7d46)),_0x168c81['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4928fc=>c(_0x391eb4,'ELEMENT_MERGE_FIELD',_0x4928fc)),_0x168c81['descriptionFactory']['registerDescriptionCallback'](_0x579048=>{if('insertion'!=_0x579048['type']&&'deletion'!=_0x579048['type'])return;const _0x198322=_0x579048['getContainedElement']();if(null==_0x198322)return;const _0x5a0fa8=_0x59d7ba['plugins']['get']('MergeFieldsEditing');let _0x1adb1a;switch(_0x5a0fa8['getMergeFieldType'](_0x198322)){case null:return;case'image':{const _0xe1810e=_0x5a0fa8['unwrapAffixes'](_0x198322['getAttribute']('src'));_0x1adb1a=_0x5a0fa8['getLabel'](_0xe1810e)||_0xe1810e;break;}default:{const _0x9fcb13=_0x198322['getAttribute']('id');_0x1adb1a=_0x5a0fa8['getLabel'](_0x9fcb13)||_0x9fcb13;break;}}return'insertion'==_0x579048['type']?{'type':'insertion','content':c(_0x391eb4,'*Insert:*\x20%0','\x22'+_0x1adb1a+'\x22\x20'+c(_0x391eb4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x391eb4,'*Remove:*\x20%0','\x22'+_0x1adb1a+'\x22\x20'+c(_0x391eb4,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x49d3a0{['afterInit'](){const _0x119417=this['editor'],_0x140f74=_0x119417['plugins']['get']('TrackChangesEditing');_0x119417['plugins']['has']('MultiLevelList')&&(_0x140f74['enableDefaultAttributesIntegration']('multiLevelList'),_0x140f74['registerBlockAttribute']('listMarkerStyle'),_0x140f74['descriptionFactory']['registerDescriptionCallback'](_0x342cfd=>this['handleDescriptions'](_0x342cfd)));}['handleDescriptions'](_0x3ec87a){const _0x502654=this['editor']['locale'],{data:_0x12e24f}=_0x3ec87a,_0x4f17fb={'type':'format','content':''};if(_0x12e24f&&'listMarkerStyle'==_0x12e24f['key']){if(!_0x12e24f['oldValue'])return{'type':'format','content':c(_0x502654,'*Set\x20format:*\x20%0',c(_0x502654,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e24f['newValue']+')'};if(!_0x12e24f['newValue']){let _0x36f7ba=_0x3ec87a['head'];for(;_0x36f7ba;){if(_0x36f7ba['data']&&'listType'==_0x36f7ba['data']['key']&&_0x36f7ba['data']['newValue'])return _0x4f17fb;_0x36f7ba=_0x36f7ba['next'];}return{'type':'format','content':c(_0x502654,'*Remove\x20format:*\x20%0',c(_0x502654,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e24f['oldValue']+')'};}}}}class bt extends _0x49d3a0{['afterInit'](){const _0x405f36=this['editor'];if(!_0x405f36['plugins']['has']('PageBreakEditing'))return;_0x405f36['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x53a021=_0x405f36['plugins']['get']('TrackChangesEditing'),_0x2a44a1=_0x405f36['locale'];_0x53a021['descriptionFactory']['registerElementLabel']('pageBreak',_0x76c9f3=>c(_0x2a44a1,'ELEMENT_PAGE_BREAK',_0x76c9f3));}}class yt extends _0x49d3a0{['afterInit'](){const _0xaf3819=this['editor'];if(!_0xaf3819['plugins']['has']('Paragraph'))return;const _0x23a117=_0xaf3819['locale'],_0x55be95=_0xaf3819['plugins']['get']('TrackChangesEditing');_0x55be95['descriptionFactory']['registerElementLabel']('paragraph',_0x366def=>c(_0x23a117,'ELEMENT_PARAGRAPH',_0x366def)),_0x55be95['enableDefaultAttributesIntegration']('paragraph'),_0x55be95['enableCommand']('insertParagraph'),_0xaf3819['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xaf3819),{'priority':'highest'}),_0xaf3819['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3621d9,_0x155b61,_0x17aa56)=>{_0x17aa56['options']['showSuggestionHighlights']&&nr(_0xaf3819,{'showActiveMarker':!0x1})(_0x3621d9,_0x155b61,_0x17aa56);},{'priority':'highest'});const _0x3300f3=_0x55be95['descriptionFactory'];_0x3300f3['registerDescriptionCallback'](_0x435688=>{if('insertion'!==_0x435688['type'])return;const {start:_0x269b50,end:_0x281a63}=_0x435688['getFirstRange']();if(!_0x269b50['isTouching'](_0x281a63)||!_0x269b50['nodeAfter'])return;const _0x5bf5f6=_0xaf3819['model']['schema'],_0x33f961=_0x269b50['nodeAfter'];return _0x5bf5f6['isBlock'](_0x33f961)&&!_0x5bf5f6['isLimit'](_0x33f961)&&_0x5bf5f6['checkChild'](_0x33f961,'$text')?{'type':'insertion','content':c(_0x23a117,'*Insert:*\x20%0',_0x3300f3['getItemLabel'](_0x33f961,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59149d=this['editor'],_0x1d399c=_0x59149d['locale'];_0x59149d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f8abe=>{if('formatBlock'!=_0x2f8abe['type'])return;const {data:_0x99a3cf}=_0x2f8abe;return _0x99a3cf&&'paragraph'==_0x99a3cf['commandName']?{'type':'format','content':c(_0x1d399c,'*Change\x20to:*\x20%0',c(_0x1d399c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x353468,{showActiveMarker:_0x2ea02c=!0x0}={}){return(_0x50207f,_0x5ee6c7,_0x5adc32)=>{const _0x538455=_0x353468['plugins']['get']('TrackChangesEditing'),_0x40206d=_0x5ee6c7['markerRange']['start'],_0x4f8766=_0x5ee6c7['markerRange']['end'],_0x10d15e=_0x353468['model']['schema'];if(!_0x40206d['isTouching'](_0x4f8766)||!_0x40206d['nodeAfter'])return;const _0x543bc0=_0x40206d['nodeAfter'];if(_0x10d15e['isBlock'](_0x543bc0)&&!_0x10d15e['isLimit'](_0x543bc0)&&_0x10d15e['checkChild'](_0x543bc0,'$text')){if(!_0x5adc32['consumable']['consume'](_0x5ee6c7['markerRange'],_0x50207f['name']))return;const {authorId:_0x4dee2c}=_0x538455['_splitMarkerName'](_0x5ee6c7['markerName']),_0x4430b5=_0x5adc32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4dee2c}),_0x283afa=_0x5adc32['mapper']['toViewPosition'](_0x4f8766);_0x2ea02c&&_0x538455['activeMarkers']['includes'](_0x5ee6c7['markerName'])&&_0x5adc32['writer']['addClass']('ck-suggestion-marker--active',_0x4430b5),_0x5adc32['writer']['insert'](_0x283afa,_0x4430b5),_0x5adc32['mapper']['bindElementToMarker'](_0x4430b5,_0x5ee6c7['markerName']);}};}class jt extends _0x49d3a0{['afterInit'](){const _0x4bb518=this['editor'];_0x4bb518['commands']['get']('replaceSource')&&_0x4bb518['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x49d3a0{['afterInit'](){const _0x5406cf=this['editor'];if(!_0x5406cf['plugins']['has']('RemoveFormatEditing'))return;_0x5406cf['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49112b=this['editor'];_0x49112b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x134b26=>{if('formatBlock'!=_0x134b26['type']&&'formatInline'!=_0x134b26['type'])return;const {data:_0x282a02}=_0x134b26;return _0x282a02&&'removeFormat'==_0x282a02['commandName']?{'type':'format','content':c(_0x49112b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x49d3a0{['afterInit'](){const _0x55fd55=this['editor'];if(!_0x55fd55['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1d734b=_0x55fd55['plugins']['get']('TrackChangesEditing');_0x1d734b['enableCommand']('goToPreviousRestrictedEditingException'),_0x1d734b['enableCommand']('goToNextRestrictedEditingException');const _0x5289e6=_0x55fd55['plugins']['get']('RestrictedEditingModeEditing');_0x5289e6['enableCommand']('trackChanges'),_0x5289e6['enableCommand']('acceptSuggestion'),_0x5289e6['enableCommand']('discardSuggestion'),_0x5289e6['enableCommand']('acceptAllSuggestions'),_0x5289e6['enableCommand']('discardAllSuggestions'),_0x5289e6['enableCommand']('acceptSelectedSuggestions'),_0x5289e6['enableCommand']('discardSelectedSuggestions');}}class It extends _0x49d3a0{['afterInit'](){const _0x11aed4=this['editor'];if(!_0x11aed4['plugins']['has']('ShiftEnter'))return;const _0x3d15ba=_0x11aed4['plugins']['get']('TrackChangesEditing');_0x3d15ba['enableCommand']('shiftEnter'),_0x11aed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x11aed4),{'priority':'high'}),_0x11aed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x11aed4),{'priority':'high'}),_0x11aed4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x169afd,_0x167f03,_0x46d338)=>{_0x46d338['options']['showSuggestionHighlights']&&je(_0x11aed4,{'showActiveMarker':!0x1})(_0x169afd,_0x167f03,_0x46d338);}),_0x3d15ba['descriptionFactory']['registerElementLabel']('softBreak',_0x12338e=>c(_0x11aed4['locale'],'ELEMENT_LINE_BREAK',_0x12338e));}}function je(_0x170856,{showActiveMarker:_0x4bfc60=!0x0}={}){return(_0x4deda8,_0x51c023,_0x5b16cf)=>{const _0x45bc4c=_0x170856['plugins']['get']('TrackChangesEditing');if(!_0x5b16cf['consumable']['test'](_0x51c023['markerRange'],_0x4deda8['name']))return;const _0x3376ce=_0x170856['model'];for(const _0x395d5f of _0x51c023['markerRange']['getItems']()){if(!_0x395d5f['is']('element','softBreak'))continue;const _0x4c37cb='deletion'==_0x51c023['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xea7eae}=_0x45bc4c['_splitMarkerName'](_0x51c023['markerName']),_0xdc3539=_0x5b16cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c37cb,'data-author-id':_0xea7eae}),_0x3677d9=_0x5b16cf['mapper']['toViewPosition'](_0x3376ce['createPositionBefore'](_0x395d5f));_0x4bfc60&&_0x45bc4c['activeMarkers']['includes'](_0x51c023['markerName'])&&_0x5b16cf['writer']['addClass']('ck-suggestion-marker--active',_0xdc3539),_0x5b16cf['writer']['insert'](_0x3677d9,_0xdc3539),_0x5b16cf['mapper']['bindElementToMarker'](_0xdc3539,_0x51c023['markerName']);}};}class _t extends _0x49d3a0{['afterInit'](){const _0x2a185f=this['editor'],_0x14b88f=_0x2a185f['model'],_0x4ac256=_0x2a185f['locale'];if(!_0x2a185f['plugins']['has']('StandardEditingModeEditing'))return;const _0x54dfa0=_0x2a185f['plugins']['get']('TrackChangesEditing'),_0x495615='restrictedEditingException',_0x3d15cc=_0x2a185f['commands']['get'](_0x495615);_0x54dfa0['enableCommand'](_0x495615,(_0x5e2a9f,_0x57d7e5={})=>{const _0x466ec9=_0x14b88f['document']['selection'];if(_0x466ec9['isCollapsed'])return void _0x5e2a9f(_0x57d7e5);const _0x44260a=void 0x0!==_0x57d7e5['forceValue']?_0x57d7e5['forceValue']:!_0x3d15cc['value'];_0x14b88f['change'](()=>{const _0x2fe689=Array['from'](_0x466ec9['getRanges']());for(const _0xf8b787 of _0x2fe689){const _0x415a82=_0x44260a?[_0xf8b787]:io(_0x495615,_0xf8b787,_0x14b88f);for(const _0x2774d2 of _0x415a82)_0x54dfa0['markInlineFormat'](_0x2774d2,{'commandName':_0x495615,'commandParams':[{'forceValue':_0x44260a}]});}});}),_0x54dfa0['descriptionFactory']['registerDescriptionCallback'](_0x4aaf20=>{if('formatBlock'!=_0x4aaf20['type']&&'formatInline'!=_0x4aaf20['type'])return;const {data:_0x52aedb}=_0x4aaf20;return _0x52aedb&&_0x52aedb['commandName']==_0x495615?_0x52aedb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ac256,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4ac256,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x49d3a0{['afterInit'](){const _0x4fad31=this['editor'];if(!_0x4fad31['plugins']['has']('Style')||!_0x4fad31['plugins']['has']('DataSchema'))return;const _0x3f1c27=_0x4fad31['plugins']['get']('TrackChangesEditing'),_0x3cfdcc=_0x4fad31['locale'],_0x4e3e29=_0x4fad31['config']['get']('style')||{},_0x3dda47=_0x4fad31['plugins']['get']('GeneralHtmlSupport'),_0x517b7f=_0x4fad31['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4fad31['plugins']['get']('DataSchema'),_0x4e3e29['definitions']);_0x3f1c27['enableDefaultAttributesIntegration']('style');const _0x49c3d1=new Set();for(const _0x4befd2 of _0x517b7f['block']){const _0x33fef7=_0x3dda47['getGhsAttributeNameForElement'](_0x4befd2['element']);_0x49c3d1['add'](_0x33fef7);}const _0x55fc70=new Set();for(const _0x3d3577 of _0x517b7f['inline']){const _0x39e217=_0x3dda47['getGhsAttributeNameForElement'](_0x3d3577['element']);_0x55fc70['add'](_0x39e217);for(const _0x27fb08 of _0x3d3577['ghsAttributes'])_0x55fc70['add'](_0x27fb08);}for(const _0x412f7a of _0x49c3d1)_0x3f1c27['registerBlockAttribute'](_0x412f7a),_0x3f1c27['descriptionFactory']['registerAttributeLabel'](_0x412f7a,c(_0x3cfdcc,'FORMAT_STYLE'));for(const _0x268440 of _0x55fc70)_0x3f1c27['registerInlineAttribute'](_0x268440),_0x3f1c27['descriptionFactory']['registerAttributeLabel'](_0x268440,c(_0x3cfdcc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37c5c4=this['editor'],_0x18ec56=_0x37c5c4['locale'];_0x37c5c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e70c=>{if('formatBlock'!=_0x47e70c['type']&&'formatInline'!=_0x47e70c['type'])return;const {data:_0x57a970}=_0x47e70c;return _0x57a970&&'style'===_0x57a970['commandName']?_0x57a970['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x18ec56,'*Set\x20format:*\x20%0',_0x57a970['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x18ec56,'*Remove\x20format:*\x20%0',_0x57a970['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x49d3a0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x418863){super(_0x418863),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x26372e=this['editor'],_0x13f4b2=_0x26372e['model']['document']['selection'];if(!_0x26372e['plugins']['has']('TableEditing'))return;const _0x372370=_0x26372e['locale'],_0x197b83=_0x26372e['plugins']['get']('TrackChangesEditing'),_0x4cd192=_0x26372e['plugins']['get']('TableUtils');_0x197b83['descriptionFactory']['registerElementLabel']('table',_0x155649=>c(_0x372370,'ELEMENT_TABLE',_0x155649)),this['_setupColumnsRowsFixing'](),_0x197b83['enableCommand']('insertTable'),_0x197b83['enableCommand']('selectTableRow'),_0x197b83['enableCommand']('selectTableColumn');for(const _0x597b58 of['insertTableRowAbove','insertTableRowBelow']){const _0x23e20f=_0x26372e['commands']['get'](_0x597b58);_0x197b83['enableCommand'](_0x597b58,_0x48cf1a=>{_0x26372e['model']['change'](_0x2d26cf=>{_0x48cf1a();const _0x135a0b='above'===_0x23e20f['order'],_0x11e8e4=_0x4cd192['getSelectionAffectedTableCells'](_0x13f4b2),_0xbe64f2=_0x4cd192['getRowIndexes'](_0x11e8e4),_0x4f2e64=_0x135a0b?_0xbe64f2['first']-0x1:_0xbe64f2['last']+0x1,_0x23e621=_0x11e8e4[0x0]['findAncestor']('table'),_0x5bee37=_0x4cd192['createTableWalker'](_0x23e621,{'startRow':_0x4f2e64,'endRow':_0x4f2e64}),_0x48987b=Array['from'](_0x5bee37)['map'](_0x1aec44=>_0x2d26cf['createRangeOn'](_0x1aec44['cell']));_0x197b83['markMultiRangeInsertion'](_0x48987b,'tableRow');});});}for(const _0x4d81bf of['insertTableColumnLeft','insertTableColumnRight']){const _0x439483=_0x26372e['commands']['get'](_0x4d81bf);_0x197b83['enableCommand'](_0x4d81bf,_0x3dbee5=>{_0x26372e['model']['change'](_0x3c27eb=>{_0x3dbee5();const _0x47d9be='left'===_0x439483['order'],_0x31234d=_0x4cd192['getSelectionAffectedTableCells'](_0x13f4b2),_0x384c86=_0x4cd192['getColumnIndexes'](_0x31234d),_0x4ba584=_0x47d9be?_0x384c86['first']-0x1:_0x384c86['last']+0x1,_0x5c93be=_0x31234d[0x0]['findAncestor']('table'),_0x26f6dc=_0x4cd192['createTableWalker'](_0x5c93be,{'startRow':0x0,'column':_0x4ba584,'includeAllSlots':!0x1}),_0x5eec04=Array['from'](_0x26f6dc)['map'](_0x4f3bc6=>_0x3c27eb['createRangeOn'](_0x4f3bc6['cell']));_0x197b83['markMultiRangeInsertion'](_0x5eec04,'tableColumn');});});}for(const _0x1dca32 of['removeTableRow','removeTableColumn']){const _0x4ced54=_0x1dca32['substr'](0xb),_0x10b332=_0x4ced54['toLowerCase'](),_0x48e13d=_0x10b332['substr'](0x0,0x3)+'span',_0x519e91='table'+_0x4ced54,_0x9b673d='min'+_0x4ced54,_0x1a118a='max'+_0x4ced54;_0x197b83['enableCommand'](_0x1dca32,()=>{_0x26372e['model']['change'](_0x3740fa=>{const _0x1c90c0=_0x4cd192['getSelectionAffectedTableCells'](_0x13f4b2),_0x41d5ad=_0x1c90c0[0x0]['findAncestor']('table');let _0x2e7704;if('removeTableRow'==_0x1dca32){const _0x36668c=_0x4cd192['getRowIndexes'](_0x1c90c0);_0x2e7704={'startRow':_0x36668c['first'],'endRow':_0x36668c['last'],'includeAllSlots':!0x0};}else{const _0x354c2d=_0x4cd192['getColumnIndexes'](_0x1c90c0);_0x2e7704={'startColumn':_0x354c2d['first'],'endColumn':_0x354c2d['last'],'includeAllSlots':!0x0};}const _0x4537ea=_0x4cd192['createTableWalker'](_0x41d5ad,_0x2e7704),_0x1ce7b1=Array['from'](_0x4537ea)['map'](({cell:_0x526876})=>_0x526876),_0x10c977=Ne(_0x1ce7b1['filter'](_0x432e4a=>_0x432e4a['hasAttribute'](_0x48e13d))),_0xaf3290=Ne(_0x1ce7b1['filter'](_0x36c67c=>!_0x36c67c['hasAttribute'](_0x48e13d)))['map'](_0x195cb2=>_0x3740fa['createRangeOn'](_0x195cb2)),_0x38da10=_0x197b83['markMultiRangeDeletion'](_0xaf3290,_0x519e91);if(_0x38da10&&('tableRow'==_0x38da10['subType']||'tableColumn'==_0x38da10['subType'])){const _0x4c9108=this['_getSuggestionCoords'](_0x38da10);for(const _0x1176ab of _0x10c977){const _0x5801e8=_0x3740fa['createRangeOn'](_0x1176ab),_0x11885a=_0x4cd192['getCellLocation'](_0x1176ab),_0x5f3894=_0x1176ab['getAttribute'](_0x48e13d)-0x1,_0x4b33e4=_0x4c9108[_0x9b673d],_0x297778=_0x4c9108[_0x1a118a];_0x4b33e4<=_0x11885a[_0x10b332]&&_0x11885a[_0x10b332]+_0x5f3894<=_0x297778&&_0x38da10['addRange'](_0x5801e8);}}});});}function _0xe8565c(_0x28fe24){const _0x254091=Array['from'](_0x13f4b2['getRanges']())['map'](_0x5607ab=>_0x5702ff['fromRange'](_0x5607ab));_0x26372e['model']['change'](_0x2b0e31=>{const _0x508846=_0x2b0e31['batch'];_0x28fe24=_0x28fe24['filter'](_0x2f76ef=>'$graveyard'!=_0x2f76ef['root']['rootName']),_0x2b0e31['setSelection'](_0x28fe24),_0x26372e['commands']['get']('removeTableRow')['refresh'](),_0x26372e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x26372e['model']['enqueueChange'](()=>{_0x26372e['model']['enqueueChange'](_0x508846,_0x3531f8=>{const _0x1a9a43=_0x254091['filter'](_0x4e5030=>'$graveyard'!=_0x4e5030['root']['rootName']);_0x1a9a43['length']>0x0&&_0x3531f8['setSelection'](_0x1a9a43);for(const _0x25de40 of _0x254091)_0x25de40['detach']();});});});}function _0x14c7cc(_0x1c79d2){_0x26372e['model']['change'](_0x401680=>{const _0x4d871a=Array['from'](_0x13f4b2['getRanges']())['map'](_0x2cbb91=>_0x5702ff['fromRange'](_0x2cbb91)),_0x4ccf80=[];for(const _0x1920c5 of _0x1c79d2)for(const _0x57aa8b of _0x1920c5['getItems']({'shallow':!0x0}))_0x4ccf80['push'](_0x57aa8b);for(const _0x2b0cf0 of _0x4ccf80)'$graveyard'!=_0x2b0cf0['root']['rootName']&&(_0x401680['setSelection'](_0x401680['createPositionAt'](_0x2b0cf0,0x0)),_0x26372e['commands']['get']('removeTableColumn')['refresh'](),_0x26372e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c47b4=_0x4d871a['filter'](_0x8f5de7=>'$graveyard'!=_0x8f5de7['root']['rootName']);_0x5c47b4['length']>0x0&&_0x401680['setSelection'](_0x5c47b4);for(const _0x18de03 of _0x4d871a)_0x18de03['detach']();});}function _0x3e1f6f(_0x221b23,_0x19e6a6){return _0x19e6a6['every'](_0xdc6390=>_0x221b23['some'](_0x487228=>_0x487228['end']['isEqual'](_0xdc6390['start'])||_0xdc6390['end']['isEqual'](_0x487228['start'])));}function _0x4c46a8(_0x136408,_0x3cce35){return!_0x136408['some'](_0x396e0b=>_0x3cce35['some'](_0xb94350=>_0x396e0b['isIntersecting'](_0xb94350)))&&_0x136408['some'](_0x199640=>_0x3cce35['some'](_0x47ac67=>_0x199640['end']['isTouching'](_0x47ac67['start'])));}_0x26372e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5547a6,_0x5eb0e7,_0x283231)=>{if(!_0x283231['options']['showSuggestionHighlights'])return;const _0x5e0508=_0x5eb0e7['item'];if(!_0x5e0508)return;const _0x5400aa=_0x283231['mapper']['toViewElement'](_0x5e0508);function _0x53d0a9(_0xe5720d){return Array['isArray'](_0xe5720d)?_0xe5720d:[_0xe5720d];}_0x5400aa&&'tableCell'===_0x5e0508['name']&&_0x409f06(_0x5400aa,_0x283231['writer'],(_0xfaee20,_0x43a62a,_0x553bb5)=>_0x553bb5['addClass'](_0x53d0a9(_0x43a62a['classes']),_0xfaee20),(_0x541dce,_0x2136f8,_0x55326d)=>_0x55326d['removeClass'](_0x53d0a9(_0x2136f8['classes']),_0x541dce));},{'priority':'highest'}),_0x197b83['descriptionFactory']['registerDescriptionCallback'](_0x191079=>{if('insertion'!=_0x191079['type']&&'deletion'!=_0x191079['type'])return;const _0x1a62d5=_0x191079['getContainedElement']();if(null!=_0x1a62d5&&_0x1a62d5['is']('element','table')){if('insertion'==_0x191079['type']){const _0x1562c1=_0x191079['getItems']()['filter'](_0x5defae=>_0x5defae['is']('$textProxy'))['map'](_0x29896a=>_0x29896a['data']);if(_0x1562c1['length'])return{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1562c1['join']('\x20')+'\x22'))};}if('deletion'==_0x191079['type']){const _0x2c69e2=_0x191079['getItems']()['filter'](_0xf6f49e=>_0xf6f49e['is']('$textProxy'))['map'](_0x4419b7=>_0x4419b7['data']);if(_0x2c69e2['length'])return{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c69e2['join']('\x20')+'\x22'))};}}}),_0x197b83['descriptionFactory']['registerDescriptionCallback'](_0x1ef374=>{if('tableRow'==_0x1ef374['subType']){const _0x134780=_0x1ef374['getItems']()['filter'](_0x2ff8db=>_0x2ff8db['is']('$textProxy'))['map'](_0x349f27=>_0x349f27['data']),_0x59f26b=this['_getSuggestionCoords'](_0x1ef374),_0x47224d=_0x59f26b['maxRow']-_0x59f26b['minRow']+0x1;if('insertion'==_0x1ef374['type'])return _0x134780['length']?{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47224d,'\x22'+_0x134780['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW',_0x47224d))};if('deletion'==_0x1ef374['type'])return _0x134780['length']?{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47224d,'\x22'+_0x134780['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_ROW',_0x47224d))};}if('tableColumn'==_0x1ef374['subType']){const _0x4b9f4b=_0x1ef374['getItems']()['filter'](_0x100546=>_0x100546['is']('$textProxy'))['map'](_0x506621=>_0x506621['data']),_0x2fb35a=this['_getSuggestionCoords'](_0x1ef374),_0x4552b8=_0x2fb35a['maxColumn']-_0x2fb35a['minColumn']+0x1;if('insertion'==_0x1ef374['type'])return _0x4b9f4b['length']?{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4552b8,'\x22'+_0x4b9f4b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x372370,'*Insert:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN',_0x4552b8))};if('deletion'==_0x1ef374['type'])return _0x4b9f4b['length']?{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4552b8,'\x22'+_0x4b9f4b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x372370,'*Remove:*\x20%0',c(_0x372370,'ELEMENT_TABLE_COLUMN',_0x4552b8))};}}),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe8565c),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe8565c),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x14c7cc),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x14c7cc),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e1f6f),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e1f6f),_0x197b83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4c46a8),_0x197b83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4c46a8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5ef310=this['editor'],_0xb8985c=_0x5ef310['model']['document']['selection'];return(_0x16fcb8,_0x2b4b58)=>{_0x5ef310['model']['change'](_0x50760b=>{const {commandName:_0x504e31,commandParams:_0x47235b}=_0x2b4b58;let _0x5e941e=_0x16fcb8[0x0]['end']['nodeBefore'];_0x47235b&&_0x47235b[0x0]&&!0x1===_0x47235b[0x0]['forceValue']&&(_0x5e941e=_0x16fcb8[0x0]['start']['nodeAfter']);const _0x4436e1=_0x50760b['createRangeIn'](_0x5e941e);if('$graveyard'==_0x4436e1['root']['rootName'])return;const _0x3f0fa1=Array['from'](_0xb8985c['getRanges']())['map'](_0x41503e=>_0x5702ff['fromRange'](_0x41503e));_0x50760b['setSelection'](_0x4436e1),_0x5ef310['commands']['get'](_0x504e31)['refresh'](),_0x47235b['push']({'forceDefaultExecution':!0x0}),_0x5ef310['execute'](_0x504e31,..._0x47235b);const _0xc95ce7=_0x3f0fa1['filter'](_0x437f83=>'$graveyard'!=_0x437f83['root']['rootName']);_0xc95ce7['length']>0x0&&_0x50760b['setSelection'](_0xc95ce7);for(const _0x39ae38 of _0x3f0fa1)_0x39ae38['detach']();});};}['_getCoordsForCells'](_0xaf6840){const _0x1e7031=this['editor']['plugins']['get']('TableUtils');let _0x490583=Number['MAX_SAFE_INTEGER'],_0x51c339=Number['MIN_SAFE_INTEGER'],_0x539d46=Number['MAX_SAFE_INTEGER'],_0x189669=Number['MIN_SAFE_INTEGER'];for(const _0x4eabc0 of _0xaf6840){if('$graveyard'==_0x4eabc0['root']['rootName'])continue;const {row:_0x2fe905,column:_0x225fd0}=_0x1e7031['getCellLocation'](_0x4eabc0),_0x44931d=_0x4eabc0['hasAttribute']('rowspan')?_0x4eabc0['getAttribute']('rowspan')-0x1:0x0,_0x46469c=_0x4eabc0['hasAttribute']('colspan')?_0x4eabc0['getAttribute']('colspan')-0x1:0x0;_0x490583=_0x2fe905<_0x490583?_0x2fe905:_0x490583,_0x51c339=_0x2fe905+_0x44931d>_0x51c339?_0x2fe905+_0x44931d:_0x51c339,_0x539d46=_0x225fd0<_0x539d46?_0x225fd0:_0x539d46,_0x189669=_0x225fd0+_0x46469c>_0x189669?_0x225fd0+_0x46469c:_0x189669;}return{'minRow':_0x490583,'maxRow':_0x51c339,'minColumn':_0x539d46,'maxColumn':_0x189669};}['_setupColumnsRowsFixing'](){const _0x79c5c7=this['editor'],_0x1ef3b2=_0x79c5c7['plugins']['get']('TrackChangesEditing'),_0x1bb38a=_0x79c5c7['plugins']['get']('TableUtils');_0x79c5c7['model']['document']['on']('change:data',()=>{const _0x312f2d=Array['from'](_0x79c5c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e9e05,data:_0xd7896}of _0x312f2d){const {group:_0x4b769b,id:_0x3b2415,subType:_0x46c956}=_0x1ef3b2['_splitMarkerName'](_0x3e9e05);if('suggestion'!=_0x4b769b)continue;if(null!=_0xd7896['oldRange'])continue;const _0x254ab7=_0x1ef3b2['getSuggestion'](_0x3b2415);this['_tablePostFixingSubtypes']['includes'](_0x46c956)&&this['_tableSuggestions']['add'](_0x254ab7);}},{'priority':'low'});const _0x2414da=(_0x157e7c,_0x52476d)=>{let _0x2969c3=!0x1;const _0x133ad5=_0x52476d['createRangeOn'](_0x157e7c),_0x4b830b=_0x157e7c['findAncestor']('table'),_0x20391e=_0x1bb38a['getCellLocation'](_0x157e7c);for(const _0x2b9c89 of this['_tableSuggestions']){const _0x5e0fad=_0x2b9c89['subType'],_0x2a187e=_0x5e0fad['startsWith']('tablePaste'),_0xde12d=_0x5e0fad['substr'](_0x2a187e?0xa:0x5),_0x570dc3=_0xde12d['toLowerCase'](),_0x5e75d1=_0x570dc3['substr'](0x0,0x3)+'span',_0x1ff892='min'+_0xde12d,_0x2d9bee='max'+_0xde12d;if(!_0x2b9c89['isInContent'])continue;if(_0x4b830b!=_0x2b9c89['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2b9c89['isIntersectingWithRange'](_0x133ad5))continue;const _0x1c85c1=_0x157e7c['hasAttribute'](_0x5e75d1)?_0x157e7c['getAttribute'](_0x5e75d1)-0x1:0x0,_0x4d11dc=this['_getSuggestionCoords'](_0x2b9c89),_0xd48f2c=_0x4d11dc[_0x1ff892],_0xc91693=_0x4d11dc[_0x2d9bee];_0xd48f2c<=_0x20391e[_0x570dc3]&&_0x20391e[_0x570dc3]+_0x1c85c1<=_0xc91693&&(_0x2b9c89['addRange'](_0x133ad5),_0x2969c3=!0x0);}return _0x2969c3;};_0x79c5c7['model']['document']['registerPostFixer'](_0x440aa7=>{let _0x3bea03=!0x1;for(const _0x167bfc of _0x79c5c7['model']['document']['differ']['getChanges']())if('insert'==_0x167bfc['type']){if('tableRow'==_0x167bfc['name']){for(const _0x35b4ae of _0x167bfc['position']['nodeAfter']['getChildren']())_0x3bea03=_0x3bea03||_0x2414da(_0x35b4ae,_0x440aa7);}else'tableCell'==_0x167bfc['name']&&(_0x3bea03=_0x3bea03||_0x2414da(_0x167bfc['position']['nodeAfter'],_0x440aa7));}return _0x3bea03;});}['_getSuggestionCoords'](_0x3abc36){return this['_getCoordsForCells'](_0x3abc36['getRanges']()['map'](_0x28d0c7=>_0x28d0c7['start']['nodeAfter']));}}function Ne(_0x47d2c9){return Array['from'](new Set(_0x47d2c9)['values']());}class Nt extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x3320d2=this['editor'],_0x24b3ae=_0x3320d2['model']['document']['selection'],_0x32ead4=_0x3320d2['locale'];if(!_0x3320d2['plugins']['has']('TableEditing'))return;const _0x5c6d29=_0x3320d2['plugins']['get']('TrackChangesEditing'),_0x1dad19=_0x3320d2['plugins']['get']('TableUtils'),_0x4a03fb=_0x3320d2['plugins']['get'](Ct);_0x4a03fb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c6d29['enableCommand']('mergeTableCells',()=>{const _0x36fb0e=_0x1dad19['getSelectionAffectedTableCells'](_0x3320d2['model']['document']['selection']);_0x3320d2['model']['change'](()=>{_0x5c6d29['markMultiRangeBlockFormat'](_0x36fb0e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3320d2['commands']['get']('mergeTableCells')['on']('execute',(_0x5b7b2b,_0x8cfd51)=>{_0x3320d2['commands']['get']('trackChanges')['value']&&(_0x8cfd51['length']>0x0&&_0x8cfd51[_0x8cfd51['length']-0x1]&&_0x8cfd51[_0x8cfd51['length']-0x1]['forceDefaultExecution']||_0x5c6d29['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5b7b2b['stop']());},{'priority':'highest'});for(const _0x36ae26 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b65cf=_0x3320d2['commands']['get'](_0x36ae26);_0x5c6d29['enableCommand'](_0x36ae26,()=>{const _0x2a5fb0=_0x3320d2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x575bc8=>_0x575bc8['is']('element','tableCell')),_0x256336=_0x5b65cf['value'];_0x3320d2['model']['change'](()=>{_0x5c6d29['markMultiRangeBlockFormat']([_0x2a5fb0,_0x256336],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x51ecdf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x483c6a=_0x3320d2['commands']['get'](_0x51ecdf);_0x5c6d29['enableCommand'](_0x51ecdf,()=>{const _0x31e1fd=_0x1dad19['getSelectionAffectedTableCells'](_0x3320d2['model']['document']['selection'])[0x0],_0x30a8f8=_0x31e1fd['findAncestor']('table'),{column:_0x42cdfa,row:_0x5e23c0}=_0x1dad19['getCellLocation'](_0x31e1fd);let _0x3d3077=[];if('horizontally'==_0x483c6a['direction']){const _0x1cef32=_0x1dad19['createTableWalker'](_0x30a8f8,{'startRow':_0x5e23c0,'endRow':_0x5e23c0,'includeAllSlots':!0x0});_0x3d3077=Array['from'](_0x1cef32)['map'](_0x42a0e7=>_0x42a0e7['cell']);}else{const _0x3bbddf=_0x1dad19['createTableWalker'](_0x30a8f8,{'column':_0x42cdfa,'includeAllSlots':!0x0});_0x3d3077=Array['from'](_0x3bbddf)['map'](_0x137351=>_0x137351['cell']);}_0x3320d2['model']['change'](_0x2b2543=>{_0x5c6d29['markBlockFormat'](_0x2b2543['createRangeOn'](_0x31e1fd),{'commandName':_0x51ecdf,'commandParams':[]},_0x3d3077,_0x51ecdf);});});}_0x5c6d29['descriptionFactory']['registerDescriptionCallback'](_0x5cd88e=>{if('formatBlock'!=_0x5cd88e['type']&&'formatInline'!=_0x5cd88e['type'])return;const {data:_0x5b1005}=_0x5cd88e;return _0x5b1005&&'mergeTableCells'==_0x5b1005['commandName']?{'type':'format','content':c(_0x32ead4,'*Merge\x20cells*')}:void 0x0;}),_0x5c6d29['descriptionFactory']['registerDescriptionCallback'](_0x2aa6a9=>{if('formatBlock'!=_0x2aa6a9['type']&&'formatInline'!=_0x2aa6a9['type'])return;const {data:_0x3e6150}=_0x2aa6a9;return _0x3e6150?'splitTableCellVertically'==_0x3e6150['commandName']?{'type':'format','content':c(_0x32ead4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3e6150['commandName']?{'type':'format','content':c(_0x32ead4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46fc0d=_0x4a03fb['_acceptFormatSuggestionCallbackFactory']();for(const _0x584d39 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c6d29['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x584d39,'accept',_0x46fc0d);for(const _0x236a79 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c6d29['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x236a79,'accept',_0x46fc0d);_0x5c6d29['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1cd896=>{_0x3320d2['model']['change'](_0x2457d4=>{const _0x593a4a=Array['from'](_0x24b3ae['getRanges']())['map'](_0x3e353a=>_0x5702ff['fromRange'](_0x3e353a));_0x2457d4['setSelection'](_0x1cd896),_0x3320d2['commands']['get']('mergeTableCells')['refresh'](),_0x3320d2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d42b9=_0x593a4a['filter'](_0x415581=>'$graveyard'!=_0x415581['root']['rootName']);_0x1d42b9['length']>0x0&&_0x2457d4['setSelection'](_0x1d42b9);for(const _0x1e3fb9 of _0x593a4a)_0x1e3fb9['detach']();});});for(const _0xfb9799 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x167789=_0x3320d2['commands']['get'](_0xfb9799);_0x167789['on']('set:isEnabled',(_0x307366,_0x5adcb3,_0x13a271)=>{if(_0x13a271){const _0x147835=_0x3320d2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f9478=>_0x4f9478['is']('element','tableCell'));this['_areMergableCells'](_0x167789['value'],_0x147835)||(_0x307366['return']=!0x1,_0x307366['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1e28e2=this['editor']['commands']['get']('mergeTableCells'),_0x365b42=this['editor']['plugins']['get']('TableUtils');if(!_0x1e28e2['isEnabled'])return!0x1;const _0x28e587=_0x365b42['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15b520 of _0x28e587)for(const _0x3fba01 of _0x28e587)if(_0x15b520!=_0x3fba01&&!this['_areMergableCells'](_0x15b520,_0x3fba01))return!0x1;return!0x0;}['_areMergableCells'](_0x315703,_0x47bcfe){const _0x1d96d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214475=this['editor']['model']['createRangeOn'](_0x315703),_0x547df2=this['editor']['model']['createRangeOn'](_0x47bcfe),_0x16a973=new Set(),_0xb35ab5=new Set();for(const _0xb6f6cb of _0x1d96d2['getSuggestions']())if(('insertion'==_0xb6f6cb['type']||'deletion'==_0xb6f6cb['type']||'mergeTableCells'==_0xb6f6cb['subType'])&&_0xb6f6cb['isInContent']){for(const _0xc2c3ac of _0xb6f6cb['getRanges']())_0xc2c3ac['containsRange'](_0x214475,!0x0)&&_0x16a973['add'](_0xb6f6cb['type']+':'+_0xb6f6cb['author']['id']),_0xc2c3ac['containsRange'](_0x547df2,!0x0)&&_0xb35ab5['add'](_0xb6f6cb['type']+':'+_0xb6f6cb['author']['id']);}if(_0x16a973['size']!=_0xb35ab5['size'])return!0x1;for(const _0x179d50 of _0x16a973)if(!_0xb35ab5['has'](_0x179d50))return!0x1;return!0x0;}}class Dt extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x238883=this['editor'];if(!_0x238883['plugins']['has']('TableEditing'))return;const _0x2756c8=_0x238883['locale'],_0x494a00=_0x238883['plugins']['get']('TrackChangesEditing');_0x494a00['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x494a00['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x494a00['registerBlockAttribute']('headingRows'),_0x494a00['registerBlockAttribute']('headingColumns'),_0x494a00['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2756c8,'FORMAT_HEADER_ROW')),_0x494a00['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2756c8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x194471=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3367fb=this['editor']['plugins']['get']('TableUtils'),_0x5b572a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3502b9({showActiveMarker:_0x49eda5=!0x0,setDataAttribute:_0x36aaf3=!0x0}={}){return(_0x360622,_0x270bb6,_0x5240c6)=>{const {type:_0x1cea49,id:_0x19b6fe}=_0x194471['_splitMarkerName'](_0x270bb6['markerName']),_0x486725=_0x194471['getSuggestion'](_0x19b6fe),_0x53e0c6=_0x486725['data'];if('formatBlock'!=_0x486725['type']||!_0x53e0c6||'setTableColumnHeader'!=_0x53e0c6['commandName'])return;if(_0x270bb6['item'])return void _0x360622['stop']();if(!_0x5240c6['consumable']['consume'](_0x270bb6['markerRange'],_0x360622['name']))return;const _0x413eeb=_0x270bb6['markerRange']['start']['nodeAfter'],_0x42e5d0=_0x270bb6['markerRange']['end']['nodeBefore'],_0x236094=_0x413eeb['parent']['parent'],{column:_0x202fba}=_0x3367fb['getCellLocation'](_0x413eeb),{column:_0x2fefdc}=_0x3367fb['getCellLocation'](_0x42e5d0);for(let _0x585fbb=_0x202fba;_0x585fbb<=_0x2fefdc;_0x585fbb++){const _0x4ef9d4=_0x3367fb['createTableWalker'](_0x236094,{'column':_0x585fbb,'includeAllSlots':!0x1});for(const _0x29c92c of _0x4ef9d4){const _0xfe82d5=_0x29c92c['cell'],_0x4cbaaf=_0x5240c6['mapper']['toViewElement'](_0xfe82d5);_0x5240c6['writer']['addClass']('ck-suggestion-marker-'+_0x1cea49,_0x4cbaaf),_0x36aaf3&&_0x5240c6['writer']['setAttribute']('data-suggestion',_0x19b6fe,_0x4cbaaf),_0x5240c6['mapper']['bindElementToMarker'](_0x4cbaaf,_0x270bb6['markerName']),_0x49eda5&&(_0x194471['activeMarkers']['includes'](_0x270bb6['markerName'])?_0x5240c6['writer']['addClass']('ck-suggestion-marker--active',_0x4cbaaf):_0x5240c6['writer']['removeClass']('ck-suggestion-marker--active',_0x4cbaaf));}}};}_0x194471['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b572a),_0x194471['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b572a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3502b9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206876,_0x114bbf,_0x101d62)=>{_0x101d62['options']['showSuggestionHighlights']&&_0x3502b9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x206876,_0x114bbf,_0x101d62);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x36beb1,_0x427931,_0x44366a)=>{const {type:_0x4aec90,id:_0x2b221b}=_0x194471['_splitMarkerName'](_0x427931['markerName']),_0x3510c8=_0x194471['getSuggestion'](_0x2b221b),_0x19151c=_0x3510c8['data'];if('formatBlock'!=_0x3510c8['type']||!_0x19151c||'setTableColumnHeader'!=_0x19151c['commandName'])return;const _0x15bd45=_0x44366a['mapper']['markerNameToElements'](_0x427931['markerName']);if(_0x15bd45){for(const _0x508a09 of _0x15bd45)_0x44366a['writer']['removeClass']('ck-suggestion-marker-'+_0x4aec90,_0x508a09),_0x44366a['writer']['removeClass']('ck-suggestion-marker--active',_0x508a09),_0x44366a['writer']['removeAttribute']('data-suggestion',_0x508a09),_0x44366a['mapper']['unbindElementFromMarkerName'](_0x508a09,_0x427931['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cef47=this['editor'],_0x4464f1=_0x1cef47['locale'];function _0x39c7fd(_0xadcb33){return{'type':'format','content':c(_0x4464f1,'*Format:*\x20%0',_0xadcb33)};}_0x1cef47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37427f=>{if('formatBlock'!=_0x37427f['type'])return;const {data:_0x12eb41}=_0x37427f;if(_0x12eb41){if('setTableRowHeader'==_0x12eb41['commandName']){const _0x4fc624=_0x12eb41['commandParams'][0x0]['forceValue'];return _0x39c7fd(c(_0x4464f1,_0x4fc624?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x12eb41['commandName']){const _0x639870=_0x12eb41['commandParams'][0x0]['forceValue'];return _0x39c7fd(c(_0x4464f1,_0x639870?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x49d3a0{['afterInit'](){const _0x4f0908=this['editor'],_0x47460f=_0x4f0908['locale'],_0xa01942=_0x4f0908['plugins']['get']('TrackChangesEditing');function _0x5d46ad(_0x18f24b){return{'type':'format','content':''+c(_0x47460f,'*Set\x20table\x20type:*\x20%0',_0x18f24b)};}_0x4f0908['plugins']['has']('TableLayout')&&(_0xa01942['enableCommand']('insertTableLayout'),_0xa01942['enableDefaultAttributesIntegration']('tableType'),_0xa01942['registerBlockAttribute']('tableType'),_0xa01942['descriptionFactory']['registerElementLabel'](_0x3453bf=>_0x3453bf['is']('element','table')&&'layout'===_0x3453bf['getAttribute']('tableType'),_0x2a15d2=>c(_0x47460f,'ELEMENT_LAYOUT_TABLE',_0x2a15d2)),_0xa01942['descriptionFactory']['registerDescriptionCallback'](_0x1ca207=>{const {data:_0x109cb8}=_0x1ca207;if(_0x109cb8&&'tableType'==_0x109cb8['key'])switch(_0x109cb8['newValue']){case'layout':return _0x5d46ad(c(_0x47460f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5d46ad(c(_0x47460f,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x98ec0e=>[_0x98ec0e,null]));class $t extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x2d7237=this['editor'];if(!_0x2d7237['plugins']['has']('TableClipboard'))return;const _0x2f73e7=_0x2d7237['plugins']['get']('TrackChangesEditing'),_0x14d209=_0x2d7237['plugins']['get']('TableUtils'),_0x477a98=_0x2d7237['plugins']['get'](Ct),_0x4afc98=_0x2d7237['plugins']['get']('TableClipboard'),_0x49b77b=_0x2d7237['plugins']['get']('TableSelection'),_0x312883=_0x2d7237['plugins']['get'](_0xa18438);_0x477a98['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2d7237['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2d7237['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3879cc=null,_0x51e1d5=!0x1;_0x312883['on']('contentInsertion',(_0x59f5e2,_0x596733)=>{_0x51e1d5='paste'===_0x596733['method'];}),_0x2d7237['model']['on']('insertContent',(_0x316fb2,_0x2414d1)=>{if(!_0x51e1d5&&null===_0x49b77b['getSelectedTableCells']())return;const [_0x14fa37,_0x47f812]=_0x2414d1,_0x1c6aae=_0x2414d1[_0x2414d1['length']-0x1];_0x1c6aae&&_0x1c6aae['forceDefaultExecution']||_0x2f73e7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x39d2de,_0x385055,_0x788144,_0x31c43a,_0x39e7c2){if(_0x385055&&!_0x385055['is']('documentSelection'))return!0x1;const _0x2e7f53=_0x39e7c2['getTableIfOnlyTableInContent'](_0x39d2de,_0x788144);if(!_0x2e7f53||!De(_0x2e7f53,void 0x0,_0x31c43a))return!0x1;const _0x3e4fe6=_0x31c43a['getSelectionAffectedTableCells'](_0x788144['document']['selection']);if(!_0x3e4fe6['length'])return!0x1;const _0x41d682=_0x3e4fe6[0x0]['findAncestor']('table'),_0x4c112e=_0x31c43a['getRowIndexes'](_0x3e4fe6),_0x5905e6=_0x31c43a['getColumnIndexes'](_0x3e4fe6),_0x403c7d={'startRow':_0x4c112e['first'],'endRow':_0x4c112e['last'],'startColumn':_0x5905e6['first'],'endColumn':_0x5905e6['last']};return 0x1==_0x3e4fe6['length']&&(_0x403c7d['endRow']+=_0x31c43a['getRows'](_0x2e7f53)-0x1,_0x403c7d['endColumn']+=_0x31c43a['getColumns'](_0x2e7f53)-0x1),De(_0x41d682,_0x403c7d,_0x31c43a);}(_0x14fa37,_0x47f812,_0x2d7237['model'],_0x14d209,_0x4afc98)&&(_0x316fb2['stop'](),_0x3879cc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d7237['model']['change'](()=>{_0x2d7237['model']['insertContent'](_0x2414d1[0x0],_0x2414d1[0x1],_0x2414d1[0x2],{'forceDefaultExecution':!0x0});const _0x455099=_0x261f54(),{rowInsertionRanges:_0x150379,columnInsertionRanges:_0x5a536a,insertionRanges:_0x5f5b31,deletionRanges:_0x40c4d3,cells:_0x5401a9}=_0x3879cc;_0x150379['length']&&_0x2f73e7['markMultiRangeInsertion'](_0x150379,'tablePasteRow',{'tablePasteChainId':_0x455099}),_0x5a536a['length']&&_0x2f73e7['markMultiRangeInsertion'](_0x5a536a,'tablePasteColumn',{'tablePasteChainId':_0x455099}),_0x5f5b31['length']&&(_0x2f73e7['markMultiRangeInsertion'](_0x5f5b31,'tablePaste',{'tablePasteChainId':_0x455099,'skipNestingCheck':!0x0}),_0x5f5b31['forEach'](_0x2f67d8=>_0x2f67d8['detach']?.())),_0x40c4d3['length']&&(_0x2f73e7['markMultiRangeDeletion'](_0x40c4d3,'tablePaste',{'tablePasteChainId':_0x455099,'skipNestingCheck':!0x0}),_0x40c4d3['forEach'](_0x127f64=>_0x127f64['detach']?.()));const _0x49b27c=_0x2f73e7['markMultiRangeBlockFormat'](_0x5401a9['map'](({element:_0x183eb2})=>_0x183eb2),{'formatGroupId':_0x261f54()},[],'tablePasteCell',{'tablePasteChainId':_0x455099});if(_0x49b27c){const _0x34dc34=_0x49b27c['getMarkers'](),_0x201c48=[];for(const {element:_0x5c28ca,attributes:_0x4736fd}of _0x5401a9){if(!_0x4736fd)continue;const _0x5968d3=_0x2d7237['model']['createRangeOn'](_0x5c28ca),_0x45464e=_0x34dc34['find'](_0x445f9d=>_0x445f9d['getRange']()['isEqual'](_0x5968d3));_0x45464e&&_0x201c48['push']([_0x45464e['name'],_0x4736fd]);}_0x201c48['length']&&_0x49b27c['setAttribute']('markerAttributes',Object['fromEntries'](_0x201c48));}_0x3879cc=null;}));},{'priority':_0xbe5b8f['high']+0xa}),_0x312883['on']('contentInsertion',()=>{_0x51e1d5=!0x1;},{'priority':'lowest'}),_0x2d7237['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe92e89,_0x5d8a99)=>{const [_0x4258f9,_0x30bf63,,_0x290eb0]=_0x5d8a99;if(!_0x3879cc)return;_0xe92e89['stop']();const _0x3dc174=_0x4258f9['cell'],_0x5aded5=_0x30bf63,_0x5a08be=Ue(_0x3dc174),_0x894afd=Ue(_0x5aded5);_0xe92e89['return']=_0x3dc174;let _0x27051e=null,_0x3121c1=null;if(_0x894afd||_0x5a08be){if(_0x5a08be&&!_0x894afd){_0x290eb0['remove'](_0x3dc174['getChild'](0x0));for(const _0x263c4c of Array['from'](_0x5aded5['getChildren']()))_0x290eb0['insert'](_0x263c4c,_0x3dc174,'end');const _0x3b0615=_0x3879cc['rowInsertionIndexes']['includes'](_0x4258f9['row']),_0x7c4220=_0x3879cc['columnInsertionIndexes']['includes'](_0x4258f9['column']);_0x3b0615||_0x7c4220||(_0x27051e=_0x5702ff['fromRange'](_0x290eb0['createRangeIn'](_0x3dc174)));}else _0x894afd&&!_0x5a08be&&(_0x3121c1=_0x290eb0['createRangeIn'](_0x3dc174));}else{const _0x4d2e24=_0x290eb0['createElement']('tableCellSuggestion'),_0x5c8539=_0x290eb0['createElement']('tableCellSuggestion');_0x290eb0['wrap'](_0x290eb0['createRangeIn'](_0x3dc174),_0x5c8539),_0x290eb0['insert'](_0x4d2e24,_0x3dc174,0x0);for(const _0x4f6be3 of Array['from'](_0x5aded5['getChildren']()))_0x290eb0['insert'](_0x4f6be3,_0x4d2e24,'end');_0x27051e=_0x5702ff['fromRange'](_0x290eb0['createRangeOn'](_0x4d2e24)),_0x3121c1=_0x5702ff['fromRange'](_0x290eb0['createRangeOn'](_0x5c8539));}const _0x3872eb=Array['from'](_0x5aded5['getAttributes']())['filter'](([_0x183dcf])=>xe['includes'](_0x183dcf));_0x3879cc['cells']['push']({'element':_0x3dc174,'attributes':_0x3872eb['length']?Object['fromEntries'](_0x3872eb):null}),_0x27051e&&_0x3879cc['insertionRanges']['push'](_0x27051e),_0x3121c1&&_0x3879cc['deletionRanges']['push'](_0x3121c1);},{'priority':'high'}),_0x14d209['on']('insertColumns',(_0x2b0a92,_0x69adb3)=>{const [_0x3db352,_0x4ce51f={}]=_0x69adb3;if(!_0x3879cc)return;const _0x446e5f=_0x4ce51f['at']||0x0,_0x5cafcd=_0x4ce51f['columns']||0x1;_0x3879cc['columnInsertionIndexes']=new Array(_0x5cafcd)['fill'](_0x446e5f)['map']((_0x396087,_0x5ef862)=>_0x396087+_0x5ef862);for(const {cell:_0x5d6244}of _0x14d209['createTableWalker'](_0x3db352,{'startColumn':_0x446e5f,'endColumn':_0x446e5f+_0x5cafcd-0x1}))_0x3879cc['columnInsertionRanges']['push'](_0x2d7237['model']['createRangeOn'](_0x5d6244));},{'priority':'low'}),_0x14d209['on']('insertRows',(_0x37ab58,_0x221240)=>{const [_0x107d85,_0x2e9874={}]=_0x221240;if(!_0x3879cc)return;const _0x1c5ca8=_0x2e9874['at']||0x0,_0x319a28=_0x2e9874['rows']||0x1;_0x3879cc['rowInsertionIndexes']=new Array(_0x319a28)['fill'](_0x1c5ca8)['map']((_0x201325,_0x4f1953)=>_0x201325+_0x4f1953);for(const {cell:_0x36ec84}of _0x14d209['createTableWalker'](_0x107d85,{'startRow':_0x1c5ca8,'endRow':_0x1c5ca8+_0x319a28-0x1}))_0x3879cc['rowInsertionRanges']['push'](_0x2d7237['model']['createRangeOn'](_0x36ec84));},{'priority':'low'}),_0x2f73e7['descriptionFactory']['registerDescriptionCallback'](_0x1055a3=>{if(_0x1055a3['subType']&&_0x1055a3['subType']['startsWith']('tablePaste'))return _0x1055a3['previous']?{}:{'type':'insertion','content':c(_0x2d7237['locale'],'*Replace\x20table\x20cells*')};});const _0x5dec8a=()=>!0x1;for(const _0x3a80dd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2f73e7['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a80dd,'join',_0x5dec8a),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a80dd,'join',_0x5dec8a),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a80dd,'join',_0x5dec8a);_0x2f73e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5dec8a),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5b2d64,_0x1e565e,_0x56c91b)=>{const _0x56aefc=_0x5b2d64['map'](_0x880bf4=>_0x880bf4['getContainedElement']())['filter'](_0x31235e=>_0x31235e),_0x21fb7c=new Map(_0x56aefc['map'](_0x17afeb=>[_0x17afeb,null]));if(_0x3879cc){for(const {element:_0x17f771,attributes:_0x13ee0c}of _0x3879cc['cells'])_0x13ee0c&&_0x21fb7c['set'](_0x17f771,_0x13ee0c);}else{if(_0x56c91b&&_0x56c91b['markerAttributes'])for(const [_0x2216e4,_0x5c6619]of Object['entries'](_0x56c91b['markerAttributes'])){const _0x1f6571=_0x2d7237['model']['markers']['get'](_0x2216e4),_0x3a4872=_0x1f6571?_0x1f6571['getRange']()['getContainedElement']():null;_0x3a4872&&_0x21fb7c['set'](_0x3a4872,_0x5c6619);}}_0x2d7237['model']['change'](_0x38fe1b=>{for(const [_0x2656c8,_0x45c969]of _0x21fb7c)_0x38fe1b['setAttributes']({...Oe,..._0x45c969},_0x2656c8);});});const _0x5caaa1=(_0x4446df,_0x55f9ff)=>{_0x2f73e7['_suggestionFactory']['registerCustomCallback'](_0x4446df,'tablePaste',_0x55f9ff,(_0x1963d1,_0x1206d3,_0x1212c7)=>{_0x2d7237['model']['change'](_0x5b772e=>{const _0x24808e=[];for(const _0x2f4458 of _0x1963d1){const _0x43a87b=_0x2f4458['start']['nodeAfter'];_0x43a87b['is']('element','tableCellSuggestion')&&_0x24808e['push'](_0x43a87b);}_0x2f73e7['_suggestionFactory']['getSuggestionCallback'](_0x4446df,null,_0x55f9ff)(_0x1963d1,_0x1206d3,_0x1212c7);for(const _0x5aa4be of _0x24808e)'$graveyard'!=_0x5aa4be['root']['rootName']&&_0x5b772e['unwrap'](_0x5aa4be);});});};_0x5caaa1('insertion','accept'),_0x5caaa1('insertion','discard'),_0x5caaa1('deletion','accept'),_0x5caaa1('deletion','discard'),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4685c2=>{const _0x3b65aa=_0x4685c2['map'](_0xd1760d=>_0xd1760d['getContainedElement']()),_0x453520=_0x3b65aa[0x0]['findAncestor']('table'),{minRow:_0x3d078c,maxRow:_0x809ad4}=_0x477a98['_getCoordsForCells'](_0x3b65aa);_0x14d209['removeRows'](_0x453520,{'at':_0x3d078c,'rows':_0x809ad4-_0x3d078c+0x1});}),_0x2f73e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xfed2a8=>{const _0x84a2a5=_0xfed2a8['map'](_0x2414db=>_0x2414db['getContainedElement']()),_0x2295a4=_0x84a2a5[0x0]['findAncestor']('table'),{minColumn:_0x5ba7b4,maxColumn:_0xa3e9c5}=_0x477a98['_getCoordsForCells'](_0x84a2a5);_0x14d209['removeColumns'](_0x2295a4,{'at':_0x5ba7b4,'columns':_0xa3e9c5-_0x5ba7b4+0x1});});const _0x3e4a53=(_0x18a0cb,_0x4c5a24)=>{if(!_0x4c5a24['subType']||!_0x4c5a24['subType']['startsWith']('tablePaste'))return;const _0x4bfe97=_0x4c5a24['attributes']['tablePasteChainId'],_0x4704e0=_0x2f73e7['getSuggestions']()['filter'](_0x365050=>_0x365050['isInContent']&&_0x365050['attributes']&&_0x365050['attributes']['tablePasteChainId']==_0x4bfe97);_0x4704e0['length']&&_0x4c5a24['getAllAdjacentSuggestions']()['length']!=_0x4704e0['length']&&_0x4704e0['reduce']((_0x342533,_0x21e1c4)=>(_0x342533['next']=_0x21e1c4,_0x21e1c4['previous']=_0x342533,_0x21e1c4));};function _0x4b599b(_0x4b1dbb,_0x8963d9=!0x0){const {id:_0x49a22e,authorId:_0x33c499}=_0x2f73e7['_splitMarkerName'](_0x4b1dbb['markerName']),_0x1c047b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x413677=_0x2f73e7['activeMarkers']['includes'](_0x4b1dbb['markerName']);return _0x413677&&_0x1c047b['push']('ck-suggestion-marker--active'),{'classes':_0x1c047b,'attributes':{'data-suggestion':_0x49a22e,'data-author-id':_0x33c499},'priority':_0x413677&&_0x8963d9?0xbc2:0xbb8};}_0x2f73e7['on']('suggestionLoaded',_0x3e4a53,{'priority':'high'}),_0x2f73e7['on']('suggestionUnloaded',_0x3e4a53,{'priority':'high'}),_0x2d7237['model']['document']['registerPostFixer'](()=>{let _0x264ea6=!0x1;const _0x3055da=Array['from'](_0x2d7237['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c724e,data:_0x3d2a07}of _0x3055da){const {group:_0xcd5381,type:_0x44b2e5,id:_0x3d0a68}=_0x2f73e7['_splitMarkerName'](_0x3c724e);if('suggestion'!=_0xcd5381||'deletion'!=_0x44b2e5||_0x3d2a07['oldRange'])continue;if(!_0x2f73e7['hasSuggestion'](_0x3d0a68))continue;const _0x129df3=_0x2f73e7['getSuggestion'](_0x3d0a68)['getRanges'](),_0x22ce01=_0x2d7237['plugins']['get']('Users')['me'];for(const _0x2f1f2a of _0x2f73e7['getSuggestions']()){if(!_0x2f1f2a['isInContent']||_0x2f1f2a['author']!=_0x22ce01)continue;if('formatBlock'!=_0x2f1f2a['type']||'tablePasteCell'!=_0x2f1f2a['subType'])continue;if(_0x2f1f2a['getRanges']()['every'](_0x3b9ce3=>_0x129df3['some'](_0x4a47ab=>_0x4a47ab['containsRange'](_0x3b9ce3,!0x0)))){for(const _0x4a5af3 of _0x2f1f2a['getAllAdjacentSuggestions']())_0x4a5af3['isInContent']&&(_0x4a5af3['discard'](),_0x264ea6=!0x0);}}}return _0x264ea6;}),_0x2d7237['model']['document']['registerPostFixer'](_0x2fa15f=>{const _0x2eca85=_0x2d7237['commands']['get']('redo');if(!_0x2eca85||!_0x2eca85['_createdBatches']['has'](_0x2fa15f['batch']))return!0x1;let _0x57a58e=!0x1;const _0x3b04a7=_0x2d7237['plugins']['get']('Users')['me'],_0x26d523=_0x2d7237['model']['document']['differ']['getChanges'](),_0x5d29f6=Array['from'](_0x2d7237['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x7da636,data:_0x4573c4})=>{const {group:_0x5bc6a3,subType:_0x35e8e3,authorId:_0x4b200e}=_0x2f73e7['_splitMarkerName'](_0x7da636);return'suggestion'==_0x5bc6a3&&'tablePaste'==_0x35e8e3&&_0x4b200e==_0x3b04a7['id']&&!_0x4573c4['oldRange'];});for(const _0x2ac32f of _0x26d523){if('insert'!=_0x2ac32f['type']||'tableCellSuggestion'!=_0x2ac32f['name']||0x1!=_0x2ac32f['length'])continue;const _0x3a3b9f=_0x2fa15f['createRange'](_0x2ac32f['position'],_0x2ac32f['position']['getShiftedBy'](0x1));if(!_0x5d29f6['find'](({data:_0x2fec4c})=>_0x2fec4c['newRange']['isEqual'](_0x3a3b9f))){for(const {name:_0x255fb4,data:_0x2a27a2}of _0x5d29f6)if(_0x3a3b9f['containsRange'](_0x2a27a2['newRange'])){_0x2fa15f['updateMarker'](_0x255fb4,{'range':_0x3a3b9f}),_0x57a58e=!0x0;break;}}}return _0x57a58e;}),_0x2d7237['model']['document']['registerPostFixer'](_0x4f1cb5=>{let _0x327602=!0x1;const _0x340fcc=_0x2d7237['plugins']['get']('Users')['me'],_0x6a99f3=_0x2f73e7['getSuggestions']()['filter'](_0x5201d6=>_0x5201d6['isInContent']&&_0x5201d6['author']==_0x340fcc),_0xd7c9fb=new Set(),_0x17c198=new Set();for(const _0x52f6c1 of _0x6a99f3)if('tablePaste'==_0x52f6c1['subType'])for(const _0xacd387 of _0x52f6c1['getMarkers']()){const _0x1b2560=_0xacd387['getRange']()['getContainedElement']();if(_0x1b2560){if(_0x1b2560['is']('element','tableCellSuggestion')&&Ue(_0x1b2560)){_0x52f6c1['removeMarker'](_0xacd387['name']),_0xd7c9fb['add'](_0x1b2560),_0x327602=!0x0;const _0x4767d7=_0x1b2560['nextSibling'],_0x220f52=_0x1b2560['previousSibling'],_0x2c81d7=_0x4767d7&&_0x4767d7['is']('element','tableCellSuggestion'),_0x3cca4e=_0x220f52&&_0x220f52['is']('element','tableCellSuggestion');_0x2c81d7&&!_0xd7c9fb['has'](_0x4767d7)&&_0x17c198['add'](_0x4767d7),_0x3cca4e&&!_0xd7c9fb['has'](_0x220f52)&&_0x17c198['add'](_0x220f52);}else _0x1b2560['is']('element','paragraph')&&_0x1b2560['isEmpty']&&(_0x52f6c1['removeMarker'](_0xacd387['name']),_0x327602=!0x0);}}else{if('tablePasteCell'==_0x52f6c1['subType']){if(!_0x52f6c1['attributes']||!_0x52f6c1['attributes']['tablePasteChainId'])continue;const _0x53d735=_0x52f6c1['attributes']['markerAttributes'];if(_0x53d735&&Object['keys'](_0x53d735)['length'])continue;const _0x512e37=_0x52f6c1['attributes']['tablePasteChainId'];let _0x3ccdf2=!0x0,_0x2b0387=!0x0;for(const _0x2b3442 of _0x6a99f3)if(_0x2b3442['subType']&&_0x2b3442['subType']['startsWith']('tablePaste')){if(!_0x2b3442['attributes']['tablePasteChainId']){_0x2b0387=!0x1;break;}if(_0x2b3442['id']!=_0x52f6c1['id']&&_0x2b3442['attributes']['tablePasteChainId']==_0x512e37){_0x3ccdf2=!0x1;break;}}_0x2b0387&&_0x3ccdf2&&(_0x52f6c1['removeMarkers'](),_0x327602=!0x0);}}for(const _0x345c23 of _0xd7c9fb)_0x4f1cb5['remove'](_0x345c23);for(const _0x1cfa7d of _0x17c198)_0x4f1cb5['unwrap'](_0x1cfa7d);return _0x327602;}),_0x2d7237['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fbd75=>_0x4b599b(_0x4fbd75),'converterPriority':'high'}),_0x2d7237['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a32e4,_0x20a4a2)=>_0x20a4a2['options']['showSuggestionHighlights']?_0x4b599b(_0x5a32e4,!0x1):null,'converterPriority':'high'});const _0x4eabad=_0x2d7237['editing']['view'];this['listenTo'](_0x4eabad['document'],'clipboardOutput',(_0x47a5f4,_0x325839)=>{const _0x1d8778=[];for(const _0x1d849b of _0x4eabad['createRangeIn'](_0x325839['content'])['getItems']())_0x1d849b['is']('element','suggestion-td')&&_0x1d8778['push'](_0x1d849b);_0x4eabad['change'](_0x1a9b45=>{for(const _0x2a6c2b of _0x1d8778)_0x1a9b45['move'](_0x1a9b45['createRangeIn'](_0x2a6c2b),_0x1a9b45['createPositionBefore'](_0x2a6c2b)),_0x1a9b45['remove'](_0x2a6c2b);});});}}function Ue(_0x13b0fc){if(_0x13b0fc['isEmpty'])return!0x0;const _0x36bf87=_0x13b0fc['getChild'](0x0);return _0x36bf87['is']('element','paragraph')&&_0x36bf87['isEmpty'];}function De(_0x42911f,_0x3840a0={},_0xf6d3c4){for(const {isAnchor:_0x70a987,cellHeight:_0x3068e9,cellWidth:_0x2d638e}of _0xf6d3c4['createTableWalker'](_0x42911f,{'includeAllSlots':!0x0,..._0x3840a0}))if(!_0x70a987||0x1!=_0x3068e9||0x1!=_0x2d638e)return!0x1;return!0x0;}class Bt extends _0x49d3a0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x945793=this['editor']['plugins']['get']('TrackChangesEditing');_0x945793['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x945793['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x945793['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x945793['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x945793['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x945793['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10369f,_0x59317a){const _0x106c6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd387ff=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x473e2c=_0x59317a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1616e9=_0xd387ff['getColumnGroupElement'](_0x473e2c);let _0x580465=_0x1616e9?_0xd387ff['getTableColumnsWidths'](_0x1616e9):null,_0x9e52a7=_0x473e2c['getAttribute']('tableWidth')||null;const _0x52e49b=_0x59317a['tableWidth']||_0x9e52a7,_0xf9874d=_0x59317a['columnWidths']||_0x580465,_0x2fd04c=this['editor']['plugins']['get']('Users')['me'];for(const _0x33537e of _0x106c6a['getSuggestions']()){const _0x101f02=_0x33537e['getContainedElement']();if('resizeTable'===_0x33537e['subType']&&_0x101f02===_0x473e2c){_0x33537e['author']!==_0x2fd04c&&_0x33537e['discard']();const _0x4c312b=_0x33537e['data']['commandParams'];_0x9e52a7=_0x4c312b[0x0]['tableWidth'],_0x580465=_0x4c312b[0x0]['columnWidths'];break;}}_0x10369f({'table':_0x473e2c,'tableWidth':_0x52e49b,'columnWidths':_0xf9874d}),_0x106c6a['markBlockFormat'](_0x473e2c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x9e52a7,'columnWidths':_0x580465}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2020dc){if('formatBlock'!=_0x2020dc['type']&&'formatInline'!=_0x2020dc['type'])return;const {data:_0x138af8}=_0x2020dc;if(_0x138af8&&'resizeTable'===_0x138af8['formatGroupId']){const _0x2d2a63='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2d2a63)};}}}class Ot extends _0x49d3a0{['afterInit'](){const _0x44850a=this['editor'];_0x44850a['plugins']['has']('Template')&&_0x44850a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x49d3a0{['afterInit'](){const _0x58b053=this['editor'];if(!_0x58b053['commands']['get']('insertTableOfContents'))return;_0x58b053['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x41365e=_0x58b053['plugins']['get']('TrackChangesEditing'),_0x49aa4f=_0x58b053['locale'];_0x41365e['descriptionFactory']['registerElementLabel']('tableOfContents',_0xd17c6e=>c(_0x49aa4f,'ELEMENT_TABLE_OF_CONTENTS',_0xd17c6e));}}class xt extends _0x49d3a0{['afterInit'](){const _0x54b453=this['editor'];if(!_0x54b453['plugins']['has']('Title'))return;const _0x5acfd3=_0x54b453['plugins']['get']('TrackChangesEditing');_0x5acfd3['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x54b453['locale'],'ELEMENT_TITLE')),_0x54b453['model']['document']['registerPostFixer'](_0x3eef6e=>{let _0x4218e1=!0x1;const _0x117a95=Array['from'](_0x54b453['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22f070,data:_0x45b81c}of _0x117a95){const {group:_0x3b6d87}=_0x5acfd3['_splitMarkerName'](_0x22f070);if('suggestion'!==_0x3b6d87||!_0x45b81c['newRange'])continue;const _0x546690=_0x45b81c['newRange'],_0x2c72e3=_0x546690['end']['nodeBefore'];if(!_0x2c72e3||!_0x2c72e3['is']('element','title-content'))continue;if(!_0x546690['start']['isTouching'](_0x546690['end']))continue;const _0x4b4659=_0x54b453['model']['schema']['getNearestSelectionRange'](_0x546690['end'],'forward');if(_0x4b4659&&_0x4b4659['isCollapsed']){const _0x279be0=_0x3eef6e['createRange'](_0x546690['start'],_0x4b4659['start']);_0x279be0['isEqual'](_0x546690)||(_0x3eef6e['updateMarker'](_0x22f070,{'range':_0x279be0}),_0x4218e1=!0x0);}_0x4218e1||(_0x3eef6e['removeMarker'](_0x22f070),_0x4218e1=!0x0);}return _0x4218e1;});}}class Tt extends _0x49d3a0{['afterInit'](){const _0x4bcc05=this['editor'],_0x48cf31=_0x4bcc05['plugins']['get']('TrackChangesEditing');_0x4bcc05['plugins']['has']('Uploadcare')&&(_0x48cf31['enableCommand']('uploadcare'),_0x4bcc05['plugins']['has']('UploadcareImageEdit')&&(_0x48cf31['enableCommand']('uploadcareImageEdit'),_0x48cf31['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x48cf31['registerBlockAttribute']('uploadcareImageId'),_0x48cf31['descriptionFactory']['registerDescriptionCallback'](_0x35dbe4=>{if('attribute'!=_0x35dbe4['type'])return;const {data:_0x5af445}=_0x35dbe4;return _0x5af445&&'uploadcareImageId'==_0x5af445['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x49d3a0{['afterInit'](){const _0x21a97e=this['editor'],_0x24a5dc=_0x21a97e['plugins']['get']('TrackChangesEditing');_0x21a97e['plugins']['has']('UndoEditing')&&(_0x24a5dc['enableCommand']('undo'),_0x24a5dc['enableCommand']('redo'));}}class Ut extends _0x49d3a0{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c1f66=this['editor'];if(!_0x5c1f66['plugins']['has']('TableCaptionEditing'))return;_0x5c1f66['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x49d3a0{['tableProperties'];['tableCellProperties'];constructor(_0x46921c){super(_0x46921c),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 _0x2257f6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d0e95 of this['tableProperties'])_0x2257f6['enableCommand'](_0x4d0e95,(_0x422489,_0x2e38dd)=>{const _0xfd625a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d0e95,[_0xfd625a],this['tableProperties'],'tableProperties',_0x422489,_0x2e38dd);});_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2257f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c019f,_0x3bc279)=>this['handleDiscardAction'](this['tableProperties'],_0x5c019f,_0x3bc279)),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x566d84 of this['tableCellProperties'])_0x2257f6['enableCommand'](_0x566d84,(_0x3ca7c3,_0x450f1d)=>{const _0x40b4f7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x566d84,_0x40b4f7,this['tableCellProperties'],'tableCellProperties',_0x3ca7c3,_0x450f1d);});_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2257f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2ca26b,_0x48c197)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2ca26b,_0x48c197)),_0x2257f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2257f6['descriptionFactory']['registerDescriptionCallback'](_0x4d715f=>this['handleSuggestionDescription'](_0x4d715f));}['_handlePropertyChange'](_0x24b3d4,_0x11422e,_0x3e7777,_0xbb630a,_0x2d370f,_0x343f56){const _0x574550=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x343f56['batch'],()=>{for(const _0x25568f of _0x11422e){if(this['_getSuggestion'](_0x25568f,_0xbb630a))_0x2d370f(_0x343f56);else{const _0x1c6d2a={};for(const _0x5eea15 of _0x3e7777){const _0xb33eac=_0x25568f['getAttribute'](_0x5eea15);void 0x0!==_0xb33eac&&(_0x1c6d2a[_0x5eea15]=_0xb33eac);}_0x2d370f(_0x343f56),_0x574550['markBlockFormat'](_0x25568f,{'commandParams':[_0x1c6d2a]},[],_0xbb630a);}}});}['handleDiscardAction'](_0x51c928,_0x50d156,_0x3a8bbb){const _0x5e5c4a=_0x50d156[0x0]['start']['nodeAfter'],_0x39a334=_0x3a8bbb['commandParams'][0x0];this['editor']['model']['change'](_0x2ccad3=>{for(const _0x2015b8 of _0x51c928)void 0x0!==_0x39a334[_0x2015b8]?_0x2ccad3['setAttribute'](_0x2015b8,_0x39a334[_0x2015b8],_0x5e5c4a):_0x2ccad3['removeAttribute'](_0x2015b8,_0x5e5c4a);});}['handleSuggestionDescription'](_0xae90dd){if(_0xae90dd['data'])switch(_0xae90dd['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x23e6b8,_0x3ed41f){const _0x1c8cc0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1d64ac of _0x1c8cc0['getSuggestions']({'skipNotAttached':!0x0})){const _0xa69d23=_0x1d64ac['getContainedElement']();if(_0x1d64ac['subType']===_0x3ed41f&&_0xa69d23===_0x23e6b8)return _0x1d64ac;}return null;}}const u='$elementName';class p extends _0x49d3a0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x23fc75,_0x45c9db,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b4442){super(_0x1b4442),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2fe606,_0x10ff34,_0x5724bf,_0x163056)=>{this['_model']['change'](()=>{for(const _0x21faac of[..._0x163056,..._0x5724bf])this['_model']['markers']['has'](_0x21faac)&&_0x1b4442['editing']['reconvertMarker'](_0x21faac);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1b4442['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x1b4442['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b4442['config']['get']('trackChanges.trackFormatChanges'),_0x1b4442['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b4442['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1b4442,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x15fe82=this['editor'],_0x1689a9=(_0x26a4c8,_0x2b6fbf)=>{if('attribute'!=_0x26a4c8)return'ck-suggestion-marker-'+_0x26a4c8;const _0x583199=_0x2b6fbf['split']('|')[0x0];return this['_isBlockAttribute'](_0x583199)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x15fe82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2a9dfd=>{const {id:_0x2b7d89,authorId:_0x1cf0ab,type:_0x3a548b,subType:_0x10fd20}=this['_splitMarkerName'](_0x2a9dfd['markerName']),_0x171d36=['ck-suggestion-marker',_0x1689a9(_0x3a548b,_0x10fd20)];let _0x1578a3=0xbb8;return this['activeMarkers']['includes'](_0x2a9dfd['markerName'])&&(_0x171d36['push']('ck-suggestion-marker--active'),_0x1578a3=0xbc2),'deletion'==_0x3a548b&&(_0x1578a3+=0x5),{'classes':_0x171d36,'attributes':{'data-suggestion':_0x2b7d89,'data-author-id':_0x1cf0ab},'priority':_0x1578a3};}}),_0x15fe82['conversion']['for']('dataDowncast')['add'](_0x5542ec=>{_0x5542ec['on']('addMarker:suggestion',(_0x447a74,_0x3d464f,_0x448208)=>{if(!_0x448208['options']['showSuggestionHighlights'])return;const _0x540b31=_0x3d464f['item'];if(!_0x540b31)return;const _0x1407f9=_0x448208['mapper']['toViewElement'](_0x540b31);_0x15fe82['model']['schema']['isObject'](_0x540b31)&&_0x1407f9&&!_0x1407f9['getCustomProperty']('widget')&&_0x1407f9['is']('containerElement')&&_0x28944c(_0x1407f9,_0x448208['writer']);},{'priority':'high'});}),_0x15fe82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x291a3b,_0x596317)=>{if(!_0x596317['options']['showSuggestionHighlights'])return null;const {type:_0x2718cc,subType:_0x540c70}=this['_splitMarkerName'](_0x291a3b['markerName']);return{'classes':['ck-suggestion-marker',_0x1689a9(_0x2718cc,_0x540c70)],'priority':0xbb8};}});const _0x29bddc=({showActiveMarkers:_0x1d7d64=!0x0,isAttributeSuggestion:_0x20f60d=!0x1}={})=>(_0x1e2f66,_0x54177f,_0x45fe6b)=>{if(!_0x54177f['item'])return;const {id:_0x2b8c86,authorId:_0x4b4462}=this['_splitMarkerName'](_0x54177f['markerName']);if(_0x20f60d){const _0x462e3c=this['_suggestions']['get'](_0x2b8c86),_0x1daf5a=this['_getAttributeKey'](_0x462e3c);if(!this['_isBlockAttribute'](_0x1daf5a))return;}if(_0x54177f['item']['is']('selection'))return void _0x45fe6b['consumable']['consume'](_0x54177f['item'],_0x1e2f66['name']);const _0x17529d=_0x45fe6b['mapper']['toViewElement'](_0x54177f['item']);if(_0x54177f['item']['is']('element')&&_0x15fe82['model']['schema']['isBlock'](_0x54177f['item'])&&!_0x17529d['getCustomProperty']('addHighlight')){_0x45fe6b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17529d),_0x45fe6b['writer']['setAttribute']('data-suggestion',_0x2b8c86,_0x17529d),_0x45fe6b['writer']['setAttribute']('data-author-id',_0x4b4462,_0x17529d),_0x45fe6b['mapper']['bindElementToMarker'](_0x17529d,_0x54177f['markerName']),_0x1d7d64&&(this['activeMarkers']['includes'](_0x54177f['markerName'])?_0x45fe6b['writer']['addClass']('ck-suggestion-marker--active',_0x17529d):_0x45fe6b['writer']['removeClass']('ck-suggestion-marker--active',_0x17529d));for(const _0x702d4f of _0x15fe82['model']['createRangeIn'](_0x54177f['item'])['getItems']())_0x45fe6b['consumable']['consume'](_0x702d4f,_0x1e2f66['name']);_0x45fe6b['consumable']['consume'](_0x54177f['item'],_0x1e2f66['name']);}};_0x15fe82['conversion']['for']('dataDowncast')['add'](_0x48c82b=>{_0x48c82b['on']('addMarker:suggestion:formatBlock',(_0x387df1,_0xb1699e,_0x41c2aa)=>{_0x41c2aa['options']['showSuggestionHighlights']&&_0x29bddc({'showActiveMarkers':!0x1})(_0x387df1,_0xb1699e,_0x41c2aa);},{'priority':'highest'});}),_0x15fe82['conversion']['for']('dataDowncast')['add'](_0xfc93e3=>{_0xfc93e3['on']('addMarker:suggestion:attribute',(_0x2d0692,_0x56bd7a,_0x560b24)=>{_0x560b24['options']['showSuggestionHighlights']&&_0x29bddc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d0692,_0x56bd7a,_0x560b24);},{'priority':'highest'});}),_0x15fe82['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x22c69c,_0x3ab636)=>_0x3ab636['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x22c69c['substr'](0xb)}}),_0x15fe82['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ac3fc,{writer:_0x837683})=>{let _0x436e1d='suggestion:'+_0x2ac3fc['getAttribute']('suggestion-type')+':'+_0x2ac3fc['getAttribute']('id');return _0x2ac3fc['getAttribute']('marker-count')&&(_0x436e1d+=':'+_0x2ac3fc['getAttribute']('marker-count')),_0x837683['createElement']('$marker',{'data-name':_0x436e1d});}}),_0x15fe82['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0x1f6ab9=>{_0x1f6ab9['on']('addMarker:suggestion:formatBlock',_0x29bddc(),{'priority':'high'});}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0x3cd908=>{_0x3cd908['on']('addMarker:suggestion:attribute',_0x29bddc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0x41d92a=>{_0x41d92a['on']('removeMarker:suggestion:formatBlock',(_0x380332,_0x36c3e8,_0x5a82c6)=>{const _0x512b90=_0x5a82c6['mapper']['markerNameToElements'](_0x36c3e8['markerName']);if(_0x512b90){for(const _0x2bb4f6 of _0x512b90)_0x2bb4f6['getCustomProperty']('addHighlight')||(_0x5a82c6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2bb4f6),_0x5a82c6['writer']['removeAttribute']('data-suggestion',_0x2bb4f6),_0x5a82c6['writer']['removeAttribute']('data-author-id',_0x2bb4f6),_0x5a82c6['mapper']['unbindElementFromMarkerName'](_0x2bb4f6,_0x36c3e8['markerName']));}},{'priority':'high'});}),_0x15fe82['conversion']['for']('editingDowncast')['add'](_0xccae94=>{_0xccae94['on']('removeMarker:suggestion:attribute',(_0x415a35,_0x3f063f,_0x3d29e5)=>{const _0x3a87a0=_0x3d29e5['mapper']['markerNameToElements'](_0x3f063f['markerName']);if(!_0x3a87a0)return;const {id:_0x4da312}=this['_splitMarkerName'](_0x3f063f['markerName']),_0x2c201e=this['_suggestions']['get'](_0x4da312),_0xc4cfca=this['_getAttributeKey'](_0x2c201e);if(this['_isBlockAttribute'](_0xc4cfca)){for(const _0x359a14 of _0x3a87a0)_0x359a14['getCustomProperty']('addHighlight')||(_0x3d29e5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x359a14),_0x3d29e5['writer']['removeAttribute']('data-suggestion',_0x359a14),_0x3d29e5['writer']['removeAttribute']('data-author-id',_0x359a14),_0x3d29e5['mapper']['unbindElementFromMarkerName'](_0x359a14,_0x3f063f['markerName']));}},{'priority':'high'});}),_0x15fe82['model']['document']['registerPostFixer'](_0xd6ab45=>{let _0xe64e7a=!0x1;const _0x16b64b=Array['from'](_0x15fe82['model']['document']['differ']['getChangedMarkers']()),_0xf421ee=new Set();for(const {name:_0x1d5686,data:_0x45d34b}of _0x16b64b){const {group:_0x4b87aa,type:_0x4f24ac,subType:_0x4c5a39,id:_0x3fc15b}=this['_splitMarkerName'](_0x1d5686);if('suggestion'!==_0x4b87aa)continue;const _0x3a7c9a=this['_suggestions']['get'](_0x3fc15b);if(null!=_0x45d34b['newRange']){'formatInline'==_0x4f24ac&&(_0xe64e7a=_0xe64e7a||Jt(_0x45d34b['newRange'],_0x1d5686,_0xd6ab45,_0x15fe82['model']['schema']));const _0x29ef28='attribute'==_0x4f24ac&&this['_isBlockAttribute'](_0x4c5a39['split']('|')[0x0]);if(_0x45d34b['newRange']['isCollapsed']||'$graveyard'==_0x45d34b['newRange']['root']['rootName']||'formatBlock'==_0x4f24ac&&!Ht(_0x45d34b['newRange'])||_0x29ef28&&!Ht(_0x45d34b['newRange'])||'deletion'==_0x4f24ac&&!(!Lt(_0x2c70cf=_0x45d34b['newRange'])&&!function(_0x3bcc35){return _0x3bcc35['start']['parent']==_0x3bcc35['end']['nodeBefore']&&_0x3bcc35['start']['isAtEnd'];}(_0x2c70cf)))_0xd6ab45['removeMarker'](_0x1d5686),_0xe64e7a=!0x0;else{if(!_0x3a7c9a||!_0x3a7c9a['isInContent'])continue;if(_0x45d34b['newRange']&&_0x45d34b['oldRange']&&_0x45d34b['newRange']['isEqual'](_0x45d34b['oldRange']))continue;_0xf421ee['add'](_0x3a7c9a);}}}var _0x2c70cf;return _0xf421ee['size']>0x0&&(_0xe64e7a=!!this['_joinWithAdjacentSuggestions'](_0xf421ee)||_0xe64e7a),_0xe64e7a;}),_0x15fe82['model']['document']['registerPostFixer'](_0x22fb2e=>{let _0x59860b=!0x1;for(const _0x4b6d15 of _0x15fe82['model']['document']['differ']['getChanges']())if('insert'==_0x4b6d15['type'])for(const _0x356f6d of this['_suggestions']['values']()){if(_0x356f6d['isMultiRange']||!_0x356f6d['isInContent'])continue;const _0x448f9f='formatBlock'==_0x356f6d['type'],_0x22a2ed=this['_getAttributeKey'](_0x356f6d),_0x542009=_0x22a2ed&&this['_isBlockAttribute'](_0x22a2ed);if(!_0x448f9f&&!_0x542009)continue;const _0x43ffcc=_0x356f6d['getFirstRange']();if(_0x43ffcc['start']['parent']!=_0x43ffcc['end']['parent']&&!_0x43ffcc['end']['isAtEnd']){const _0x9f7273=_0x15fe82['model']['createPositionAt'](_0x43ffcc['start']['nodeAfter'],'end'),_0x2111d3=_0x15fe82['model']['createRange'](_0x43ffcc['start'],_0x9f7273);_0x22fb2e['updateMarker'](_0x356f6d['getFirstMarker'](),{'range':_0x2111d3}),_0x59860b=!0x0;}}return _0x59860b;}),_0x15fe82['model']['document']['registerPostFixer'](_0x57e03f=>this['_processAttributeChanges'](_0x57e03f)),_0x15fe82['model']['document']['registerPostFixer'](_0x119fb8=>!_0x119fb8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x119fb8)),_0x15fe82['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15fe82['model']['document']['on']('change:data',(_0x554000,_0x1018d6)=>{if(!_0x1018d6['isLocal']||_0x1018d6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5d8742=_0x15fe82['model']['document']['differ']['getChanges']();if(0x0==_0x5d8742['length'])return;const _0x5e7e9d=[],_0x438915=_0x5d8742['filter'](_0x865a0e=>'attribute'==_0x865a0e['type']),_0x4faa00=_0x5d8742['filter'](_0x4c4088=>'insert'==_0x4c4088['type']&&'$text'!=_0x4c4088['name']);for(const _0xfd9791 of _0x438915)this['_isRegisteredAttribute'](_0xfd9791['attributeKey'])&&_0x5e7e9d['push']({'key':_0xfd9791['attributeKey'],'newValue':_0xfd9791['attributeNewValue'],'oldValue':_0xfd9791['attributeOldValue'],'range':qt(_0xfd9791['range'],_0x15fe82['model'])});for(const _0x1a6233 of _0x4faa00){if('rename'!=_0x1a6233['action']&&'refresh'!=_0x1a6233['action'])continue;const _0x364bcc=zt(_0x1a6233['position']['nodeAfter'],_0x15fe82['model']),_0x37be8c=_0x1a6233['before'];'rename'==_0x1a6233['action']&&_0x5e7e9d['push']({'key':u,'newValue':_0x1a6233['name'],'oldValue':_0x37be8c['name'],'range':_0x364bcc});for(const [_0x2ccf22,_0x974d63]of _0x37be8c['attributes']){if(!this['_isRegisteredAttribute'](_0x2ccf22))continue;const _0x491a83=_0x1a6233['attributes']['get'](_0x2ccf22);_0x974d63!==_0x491a83&&_0x5e7e9d['push']({'key':_0x2ccf22,'newValue':_0x491a83,'oldValue':_0x974d63,'range':_0x364bcc});}for(const [_0x18577a,_0x5d1a99]of _0x1a6233['attributes'])this['_isRegisteredAttribute'](_0x18577a)&&(_0x37be8c['attributes']['has'](_0x18577a)||_0x5e7e9d['push']({'key':_0x18577a,'newValue':_0x5d1a99,'oldValue':null,'range':_0x364bcc}));}0x0!=_0x5e7e9d['length']&&_0x15fe82['model']['enqueueChange'](_0x1018d6,_0x134ad3=>{const _0x339667=_0x261f54();for(const {range:_0x1e42f4,key:_0x51d4ec,oldValue:_0x15e156,newValue:_0x5ddd91}of _0x5e7e9d)this['markAttributeChange'](_0x1e42f4,_0x51d4ec,_0x15e156,_0x5ddd91,{'groupId':_0x339667});this['_reduceExistingSuggestions'](_0x134ad3,_0x5e7e9d);});},{'priority':'lowest'}),_0x15fe82['model']['markers']['on']('update:suggestion',(_0x4224b7,_0x493cf1,_0x4586f8)=>{if(null==_0x4586f8){const {id:_0x4a6547}=this['_splitMarkerName'](_0x493cf1['name']),_0x1a2b08=this['_suggestions']['get'](_0x4a6547);_0x1a2b08&&_0x1a2b08['addMarkerName'](_0x493cf1['name']);}}),_0x15fe82['model']['document']['on']('change:data',()=>{const _0xb83643=Array['from'](_0x15fe82['model']['document']['differ']['getChangedMarkers']())['filter'](_0x367be1=>'suggestion'===this['_splitMarkerName'](_0x367be1['name'])['group']);if(0x0===_0xb83643['length'])return;_0xb83643['sort']((_0xd5374b,_0x49f7e7)=>{const _0x4fc48=_0xd5374b['data']['oldRange'],_0x2346d0=_0x49f7e7['data']['oldRange'];return null===_0x4fc48&&null===_0x2346d0?0x0:null===_0x4fc48&&null!==_0x2346d0?-0x1:null!==_0x4fc48&&null===_0x2346d0?0x1:_0x4fc48['start']['isBefore'](_0x2346d0['start'])?-0x1:0x1;});const _0x3d3b5f=new Set(),_0x7de7ef=new Set();for(const {name:_0x28642a,data:_0x35a769}of _0xb83643){const {id:_0x4dc188}=this['_splitMarkerName'](_0x28642a);if(null===_0x35a769['oldRange']){const _0x3bb690=this['_handleNewSuggestionMarker'](_0x28642a);_0x7de7ef['add'](_0x3bb690);}else{const _0x354492=this['_suggestions']['get'](_0x4dc188);null!==_0x35a769['newRange']||_0x354492['isInContent']?(_0x3d3b5f['add'](_0x354492['head']),_0x7de7ef['add'](_0x354492)):this['_removeSuggestion'](_0x354492);}}_0x7de7ef['size']>0x0&&this['_refreshSuggestionsChain'](_0x7de7ef);for(const _0x3f8c76 of _0x3d3b5f)this['fire']('suggestionChanged',_0x3f8c76);}),_0x15fe82['model']['on']('applyOperation',(_0x296fe9,_0x1aca2e)=>{const _0x2d55eb=_0x1aca2e[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d55eb['isDocumentOperation'])return;if(_0x2d55eb['batch']['isUndo']||!_0x2d55eb['batch']['isLocal'])return;let _0x108776,_0x3fcba0;switch(_0x2d55eb['type']){case'insert':_0x108776=_0x15fe82['model']['createPositionAt'](_0x2d55eb['position']),_0x3fcba0=_0x108776['getShiftedBy'](_0x2d55eb['howMany']);break;case'split':_0x108776=_0x15fe82['model']['createPositionAt'](_0x2d55eb['splitPosition']),_0x3fcba0=_0x15fe82['model']['createPositionAt'](_0x2d55eb['moveTargetPosition']);break;case'move':_0x108776=_0x15fe82['model']['createPositionAt'](_0x2d55eb['targetPosition']),_0x3fcba0=_0x108776['getShiftedBy'](_0x2d55eb['howMany']);break;default:return;}const _0x3f7858=_0x15fe82['model']['createRange'](_0x108776,_0x3fcba0);_0x15fe82['model']['change'](()=>{for(const {suggestion:_0x30a748,meta:_0x5d6f66}of this['_findSuggestions'](_0x3f7858)){if(_0x30a748['isMultiRange'])continue;if('formatInline'==_0x30a748['type'])continue;const _0x204ac4=this['_getAttributeKey'](_0x30a748);if(_0x204ac4&&this['_isBlockAttribute'](_0x204ac4)&&'split'!=_0x2d55eb['type'])continue;const _0x517f94=_0x30a748['data']&&_0x30a748['data']['multipleBlocks'];('formatBlock'!=_0x30a748['type']||'split'==_0x2d55eb['type']&&!_0x517f94)&&(_0x5d6f66['containsRangeInObject']||'insertion'==_0x30a748['type']&&_0x5d6f66['isOwn']||_0x30a748['getFirstRange']()['containsRange'](_0x3f7858)&&this['_breakSuggestionMarker'](_0x30a748,_0x108776,_0x3fcba0));}});},{'priority':'lowest'}),_0x15fe82['model']['on']('deleteContent',(_0x4561fd,_0xf45388)=>{const _0x205e36=_0xf45388[0x0],_0x49440e=_0xf45388[0x1];if(_0x49440e&&_0x49440e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x205e36['isCollapsed'])return;const _0x3c7a70=_0x15fe82['model']['schema'],{start:_0x2a9a18,end:_0xa36449}=_0x205e36['getFirstRange'](),_0x246f3f=_0x2a9a18['nodeAfter']&&_0x3c7a70['isLimit'](_0x2a9a18['nodeAfter'])?null:_0x3c7a70['getNearestSelectionRange'](_0x2a9a18,'forward'),_0x2db5ab=_0xa36449['nodeBefore']&&_0x3c7a70['isLimit'](_0xa36449['nodeBefore'])?null:_0x3c7a70['getNearestSelectionRange'](_0xa36449,'backward'),_0x576d48=_0x15fe82['model']['createRange'](_0x246f3f?_0x246f3f['start']:_0x2a9a18,_0x2db5ab?_0x2db5ab['end']:_0xa36449);_0x15fe82['model']['change'](_0x55af62=>{this['markDeletion'](_0x576d48);const _0x5cdf82=_0x15fe82['model']['schema']['getNearestSelectionRange'](_0x576d48['start']);_0x205e36['is']('documentSelection')?_0x55af62['setSelection'](_0x5cdf82):_0x205e36['setTo'](_0x5cdf82);}),_0x4561fd['stop']();},{'priority':_0xbe5b8f['normal']+0xa}),_0x15fe82['model']['on']('insertContent',(_0x162f10,_0x30d0c4)=>{const _0x507285=_0x30d0c4[_0x30d0c4['length']-0x1];_0x507285&&_0x507285['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x15fe82['model']['change'](()=>{let _0x585753=_0x15fe82['model']['insertContent'](_0x30d0c4[0x0],_0x30d0c4[0x1],_0x30d0c4[0x2],{'forceDefaultExecution':!0x0});if(!_0x585753)return;_0x162f10['return']=_0x585753['clone']();const _0x536184=_0x585753['end']['nodeBefore'],_0x12d923=_0x15fe82['model']['schema'];_0x536184&&_0x12d923['isBlock'](_0x536184)&&!_0x12d923['isObject'](_0x536184)&&(_0x585753=_0x15fe82['model']['createRange'](_0x585753['start'],_0x15fe82['model']['createPositionAt'](_0x536184,'end'))),this['markInsertion'](_0x585753);}),_0x162f10['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x50a324=new O(_0x15fe82,this['_suggestions']);_0x15fe82['commands']['add']('acceptSuggestion',_0x50a324),this['enableCommand']('acceptSuggestion');const _0x29ef41=new R(_0x15fe82,this['_suggestions']);_0x15fe82['commands']['add']('discardSuggestion',_0x29ef41),this['enableCommand']('discardSuggestion'),_0x15fe82['commands']['add']('acceptAllSuggestions',new x(_0x15fe82,_0x50a324,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x15fe82['commands']['add']('discardAllSuggestions',new x(_0x15fe82,_0x29ef41,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x15fe82['commands']['add']('acceptSelectedSuggestions',new E(_0x15fe82,_0x50a324,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x15fe82['commands']['add']('discardSelectedSuggestions',new E(_0x15fe82,_0x29ef41,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5335e5=_0x15fe82['plugins']['get']('CommentsRepository');this['listenTo'](_0x5335e5,'addComment',(_0xb1651d,{threadId:_0x246a24})=>{const _0x25a524=this['_suggestions']['get'](_0x246a24);_0x25a524&&_0x25a524['commentThread']&&0x1===_0x25a524['commentThread']['length']&&this['_updateSuggestionData'](_0x246a24,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5335e5,'removeComment',(_0x175a3e,{threadId:_0x309db7})=>{const _0x22bf3b=this['_suggestions']['get'](_0x309db7);_0x22bf3b&&_0x22bf3b['commentThread']&&!_0x22bf3b['commentThread']['length']&&this['_updateSuggestionData'](_0x309db7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x6f6cc9){const _0x5680aa=_0x3f5d26([0x78,0x68,0x59,0x55,0x33,0x41,0x31,0x74,0x43,0x6b,0x69,0x4e,0x50,0x38,0x44,0x73,0x4b,0x71,0x61,0x6e,0x53,0x4f,0x5a,0x79,0x46,0x6d,0x30,0x6f,0x70,0x32,0x54,0x45,0x39,0x76,0x4a,0x72,0x63,0x35,0x37,0x66,0x64,0x67,0x62,0x49,0x6a,0x4d,0x7a,0x42,0x58,0x52,0x36,0x57,0x51,0x65,0x48,0x77,0x34,0x6c,0x56,0x4c,0x75,0x47]),_0x21f9ed=0x18aa55d9,_0x4b0448=0x18ad3639^_0x21f9ed,_0xc08375=window[_0x3f5d26([0x44,0x61,0x74,0x65])][_0x3f5d26([0x6e,0x6f,0x77])](),_0x5d7d61=_0x6f6cc9[_0x3f5d26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17ffa3=new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x770910=>{_0x5d7d61[_0x3f5d26([0x6f,0x6e,0x63,0x65])](_0x3f5d26([0x72,0x65,0x61,0x64,0x79]),_0x770910);}),_0x2b9e5f={[_0x3f5d26([0x6b,0x74,0x79])]:_0x3f5d26([0x45,0x43]),[_0x3f5d26([0x75,0x73,0x65])]:_0x3f5d26([0x73,0x69,0x67]),[_0x3f5d26([0x63,0x72,0x76])]:_0x3f5d26([0x50,0x2d,0x32,0x35,0x36]),[_0x3f5d26([0x78])]:_0x3f5d26([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]),[_0x3f5d26([0x79])]:_0x3f5d26([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]),[_0x3f5d26([0x61,0x6c,0x67])]:_0x3f5d26([0x45,0x53,0x32,0x35,0x36])},_0x25a00f=_0x5d7d61[_0x3f5d26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f5d26([0x67,0x65,0x74])](_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21b094(){let _0x3b8ab7,_0x5c0983=null,_0x40c8da=null;try{if(_0x25a00f==_0x3f5d26([0x47,0x50,0x4c]))return _0x3f5d26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b8ab7=_0x4b4e29(),!_0x3b8ab7)return _0x3f5d26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b8ab7[_0x3f5d26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40c8da=_0x190b9e(_0x3b8ab7[_0x3f5d26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b8ab7[_0x3f5d26([0x6a,0x74,0x69])])),await _0x4fe20e()?_0x281f5a()?_0x4d6b8e()?_0x3f5d26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4248e1()?(_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5d26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c0983=_0x5c64bf(_0x3f5d26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5d26([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c0983=_0x5c64bf(_0x3f5d26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59f58c()):_0x3f5d26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5d26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f5d26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11667a){return _0x3f5d26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d6b8e(){const _0x5b8b44=[_0x3f5d26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f5d26([0x74,0x72,0x69,0x61,0x6c])][_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc08375/0x3e8:0xe10*_0x4b0448;return _0x3b8ab7[_0x3f5d26([0x65,0x78,0x70])]<_0x5b8b44;}function _0x281f5a(){const _0x109e77=_0x3b8ab7[_0x3f5d26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x109e77)return!0x1;if(_0x109e77[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x2a])))return!0x0;if(_0x109e77[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x54,0x43])))return!0x0;if(_0x109e77[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x52,0x54,0x43]))){if(_0x4aee96())return!0x0;if(_0x16fee6()||_0x33a8ee())return!0x0;}return!0x1;}function _0x4248e1(){const _0xb0187b=_0x3b8ab7[_0x3f5d26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb0187b||0x0==_0xb0187b[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43c5dd}=new URL(window[_0x3f5d26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb0187b[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c5dd))return!0x0;const _0x2bfe82=_0x43c5dd[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e]));return _0xb0187b[_0x3f5d26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f5c96=>_0x4f5c96[_0x3f5d26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5d26([0x2a])))[_0x3f5d26([0x6d,0x61,0x70])](_0x5efb5e=>_0x5efb5e[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e])))[_0x3f5d26([0x73,0x6f,0x6d,0x65])](_0x5b5875=>_0x2bfe82[_0x3f5d26([0x65,0x76,0x65,0x72,0x79])]((_0x21050b,_0x3b5668)=>_0x5b5875[_0x3b5668]===_0x21050b||_0x5b5875[_0x3b5668]===_0x3f5d26([0x2a])));}function _0x59f58c(){return _0x5c0983&&_0x40c8da?new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e3d37,_0x10bca2)=>{_0x5c0983[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x4e3d37,_0x10bca2),_0x40c8da[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x88705e=>{_0x88705e!=_0x3f5d26([0x56,0x61,0x6c,0x69,0x64])&&_0x4e3d37(_0x88705e);},_0x10bca2);}):_0x5c0983||_0x40c8da||_0x3f5d26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x190b9e(_0x17758d,_0xff7068){return new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16c0a0=>{if(_0x1adebd())return _0x16c0a0(_0x3f5d26([0x56,0x61,0x6c,0x69,0x64]));_0x1d6095(),_0x5d7d61[_0x3f5d26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f5d26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3db8a3=!0x1;const _0x4659bf=_0x261f54();function _0x48298a(_0xcbc765){return!!_0xcbc765&&(typeof _0xcbc765===_0x3f5d26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcbc765===_0x3f5d26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcbc765[_0x3f5d26([0x74,0x68,0x65,0x6e])]===_0x3f5d26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcbc765[_0x3f5d26([0x63,0x61,0x74,0x63,0x68])]===_0x3f5d26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a418f(_0x3b894a){_0x43cb39(_0x3b894a)[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x30ad72=>{if(!_0x30ad72||_0x30ad72[_0x3f5d26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f5d26([0x6f,0x6b]))return _0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x515e57(_0x34ec7b(_0x4659bf+_0xff7068))!=_0x30ad72[_0x3f5d26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5d26([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x48de77=>(_0x17e364(),_0x48de77),()=>{const _0x4914a2=_0x392579();return null==_0x4914a2?(_0x17e364(),_0x3f5d26([0x56,0x61,0x6c,0x69,0x64])):_0x3f5d26(_0xc08375-_0x4914a2>(0x3ca6d1d9^_0x21f9ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x16c0a0)[_0x3f5d26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16c0a0(_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e900c=0x189cbb59^_0x21f9ed;function _0x17e364(){const _0x3ce8b2=_0x3f5d26([0x6c,0x6c,0x63,0x74,0x2d])+_0x515e57(_0x34ec7b(_0x17758d)),_0xa4263a=_0x36441a(_0x515e57(window[_0x3f5d26([0x4d,0x61,0x74,0x68])][_0x3f5d26([0x63,0x65,0x69,0x6c])](_0xc08375/_0x1e900c)));window[_0x3f5d26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5d26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ce8b2,_0xa4263a);}function _0x392579(){const _0x10686d=_0x3f5d26([0x6c,0x6c,0x63,0x74,0x2d])+_0x515e57(_0x34ec7b(_0x17758d)),_0x575fc7=window[_0x3f5d26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5d26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10686d);return _0x575fc7?window[_0x3f5d26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36441a(_0x575fc7),0x10)*_0x1e900c:null;}function _0x43cb39(_0x124198){return new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7b8935,_0x53e89a)=>{_0x124198[_0x3f5d26([0x74,0x68,0x65,0x6e])](_0x7b8935,_0x53e89a),window[_0x3f5d26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53e89a,0x18ab8119^_0x21f9ed);});}}_0x5d7d61[_0x3f5d26([0x6f,0x6e])](_0x3f5d26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1538f0,_0x17f5c4)=>{if(_0x17f5c4[0x0]!=_0x17758d)return _0x16c0a0(_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17f5c4[0x1]={..._0x17f5c4[0x1],[_0x3f5d26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4659bf};},{[_0x3f5d26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5d26([0x68,0x69,0x67,0x68])}),_0x5d7d61[_0x3f5d26([0x6f,0x6e])](_0x3f5d26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4291c7=>{_0x48298a(_0x4291c7[_0x3f5d26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3db8a3=!0x0,_0x1a418f(_0x4291c7[_0x3f5d26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f5d26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5d26([0x6c,0x6f,0x77])}),_0x17ffa3[_0x3f5d26([0x74,0x68,0x65,0x6e])](()=>{_0x3db8a3||_0x16c0a0(_0x3f5d26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1adebd(){return _0x5d7d61[_0x3f5d26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5d26([0x76,0x69,0x65,0x77])][_0x3f5d26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f5d26([0x61,0x75,0x74,0x6f]);}function _0x1d6095(){_0x5d7d61[_0x3f5d26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5d26([0x76,0x69,0x65,0x77])][_0x3f5d26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f5d26([0x61,0x75,0x74,0x6f]);}}function _0x5c64bf(_0x592eb8){const _0x71e98=[new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19df40=>setTimeout(_0x19df40,0x18a36b15^_0x21f9ed)),_0x17ffa3[_0x3f5d26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ada8=>{let _0x4a5852=0x0;_0x5d7d61[_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5d26([0x6f,0x6e])](_0x3f5d26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4042d5,_0x515e3a)=>{_0x515e3a[0x0][_0x3f5d26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5852++,_0x4a5852==(0x18aa5421^_0x21f9ed)&&(_0x48ada8(),_0x4042d5[_0x3f5d26([0x6f,0x66,0x66])]());});}))];return window[_0x3f5d26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f5d26([0x72,0x61,0x63,0x65])](_0x71e98)[_0x3f5d26([0x74,0x68,0x65,0x6e])](()=>_0x592eb8);}async function _0x33a2da(){await _0x17ffa3,_0x5d7d61[_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5d26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3232ed,_0x5d7d61[_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5d26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3232ed,_0x5d7d61[_0x3f5d26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f5d26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4aee96(){return _0x1f3698(_0x3f5d26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54f907(_0x3f5d26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3f5d26([0x73,0x74,0x61,0x74,0x65])]==_0x3f5d26([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x16fee6(){return _0x1f3698(_0x3f5d26([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 _0x33a8ee(){return _0x1f3698(_0x3f5d26([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa81994(_0x1e2a3d){const _0x54d131=_0x44f99a();_0x5d7d61[_0x54d131]=_0x3f5d26([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e2a3d,_0x1e2a3d!=_0x3f5d26([0x56,0x61,0x6c,0x69,0x64])&&_0x33a2da();}function _0x44f99a(){const _0x2eb94c=window[_0x3f5d26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f5d26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f5d26([0x6e,0x6f,0x77])]())[_0x3f5d26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f5d26([0x2e]),'');let _0x245e94=_0x3f5d26([0x78]);for(let _0x16dc65=0x0;_0x16dc65<_0x2eb94c[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16dc65+=0x2){let _0x32a04b=window[_0x3f5d26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eb94c[_0x3f5d26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16dc65,_0x16dc65+0x2));_0x32a04b>=_0x5680aa[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32a04b-=_0x5680aa[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x245e94+=_0x5680aa[_0x32a04b];}return _0x245e94;}function _0x4b4e29(){const _0xa19cea=_0x25a00f[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e]));if(0x3!=_0xa19cea[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf9c805(_0xa19cea[0x1]);function _0xf9c805(_0x39c695){const _0x5dbd49=_0x516cf2(_0x39c695);return _0x5dbd49&&_0x9781f6()?_0x5dbd49:null;function _0x9781f6(){const _0x509be4=_0x5dbd49[_0x3f5d26([0x6a,0x74,0x69])],_0x37701b=window[_0x3f5d26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x509be4[_0x3f5d26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x509be4[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fa100={..._0x5dbd49,[_0x3f5d26([0x6a,0x74,0x69])]:_0x509be4[_0x3f5d26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x509be4[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fa100[_0x3f5d26([0x76,0x63])],_0x34ec7b(_0x4fa100)==_0x37701b;}}}async function _0x4fe20e(){let _0x192457=!0x0;try{const _0x242a62=_0x25a00f[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])](_0x3f5d26([0x2e])),[_0x569036,_0x3a1ad6,_0x5a8d0f]=_0x242a62;return _0x19ab92(_0x569036),await _0x2d94be(_0x569036,_0x3a1ad6,_0x5a8d0f),_0x192457;}catch(_0x5ef962){return!0x1;}function _0x19ab92(_0x38be1a){const _0x176b7=_0x516cf2(_0x38be1a);_0x176b7&&_0x176b7[_0x3f5d26([0x61,0x6c,0x67])]==_0x3f5d26([0x45,0x53,0x32,0x35,0x36])||(_0x192457=!0x1);}async function _0x2d94be(_0x5b4752,_0x42a658,_0x4db3a1){const _0x2b1e42=window[_0x3f5d26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f5d26([0x66,0x72,0x6f,0x6d])](_0x326202(_0x4db3a1),_0x5f0dd4=>_0x5f0dd4[_0x3f5d26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x334f4f=new window[(_0x3f5d26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f5d26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b4752+_0x3f5d26([0x2e])+_0x42a658),_0x1c552a=window[_0x3f5d26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f5d26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c552a)return;const _0x1d8624=await _0x1c552a[_0x3f5d26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f5d26([0x6a,0x77,0x6b]),_0x2b9e5f,{[_0x3f5d26([0x6e,0x61,0x6d,0x65])]:_0x3f5d26([0x45,0x43,0x44,0x53,0x41]),[_0x3f5d26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f5d26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f5d26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c552a[_0x3f5d26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f5d26([0x6e,0x61,0x6d,0x65])]:_0x3f5d26([0x45,0x43,0x44,0x53,0x41]),[_0x3f5d26([0x68,0x61,0x73,0x68])]:{[_0x3f5d26([0x6e,0x61,0x6d,0x65])]:_0x3f5d26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d8624,_0x2b1e42,_0x334f4f)||(_0x192457=!0x1);}}function _0x516cf2(_0x2e04d4){return _0x2e04d4[_0x3f5d26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f5d26([0x65,0x79]))?JSON[_0x3f5d26([0x70,0x61,0x72,0x73,0x65])](_0x326202(_0x2e04d4)):null;}function _0x326202(_0x2ba9aa){return window[_0x3f5d26([0x61,0x74,0x6f,0x62])](_0x2ba9aa[_0x3f5d26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f5d26([0x2b]))[_0x3f5d26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f5d26([0x2f])));}function _0x34ec7b(_0x492846){let _0x2dfee9=0x1505;function _0x493c8d(_0x2defce){for(let _0x77bd23=0x0;_0x77bd23<_0x2defce[_0x3f5d26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x77bd23++){const _0x1d0a94=_0x2defce[_0x3f5d26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x77bd23);_0x2dfee9=(_0x2dfee9<<0x5)+_0x2dfee9+_0x1d0a94,_0x2dfee9&=_0x2dfee9;}}function _0x1c67c9(_0x28db50){Array[_0x3f5d26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28db50)?_0x28db50[_0x3f5d26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c67c9):_0x28db50&&typeof _0x28db50==_0x3f5d26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f5d26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28db50)[_0x3f5d26([0x73,0x6f,0x72,0x74])]()[_0x3f5d26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7ed53,_0x55a58b])=>{_0x493c8d(_0x7ed53),_0x1c67c9(_0x55a58b);}):_0x493c8d(window[_0x3f5d26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28db50));}return _0x1c67c9(_0x492846),_0x2dfee9>>>0x0;}function _0x515e57(_0x116306){return _0x116306[_0x3f5d26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f5d26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f5d26([0x30]));}function _0x36441a(_0x5e18a1){return _0x5e18a1[_0x3f5d26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f5d26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f5d26([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f3698(_0xcd744){return _0x5d7d61[_0x3f5d26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f5d26([0x68,0x61,0x73])](_0xcd744);}function _0x54f907(_0x4973bd){return _0x5d7d61[_0x3f5d26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f5d26([0x67,0x65,0x74])](_0x4973bd);}function _0x3232ed(){}function _0x3f5d26(_0x4651c1){return _0x4651c1['map'](_0x52e861=>String['fromCharCode'](_0x52e861))['join']('');}_0xa81994(await _0x21b094());}(this);}set['adapter'](_0x5d2b0d){if(this['_adapter'])throw new _0x1ed8a5('track-changes-adapter-already-set',this);this['_adapter']=_0x5d2b0d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5016b1=!0x1,toJSON:_0x341a7e=!0x1}={}){const _0x4a80f8=[];for(const _0x3660d8 of this['_suggestions']['values']())_0x5016b1&&!_0x3660d8['isInContent']||_0x4a80f8['push'](_0x3660d8);return _0x341a7e?_0x4a80f8['map'](_0x545b4b=>_0x545b4b['toJSON']()):_0x4a80f8;}['getSuggestion'](_0x5d04c3){const _0x5200f4=this['_suggestions']['get'](_0x5d04c3);if(!_0x5200f4)throw new _0x1ed8a5('track-changes-suggestion-not-found',this);return _0x5200f4;}['hasSuggestion'](_0x9ba3ac){return this['_suggestions']['has'](_0x9ba3ac);}['addSuggestionData'](_0x121585){const {authorId:_0x473911,id:_0x155602,attributes:_0x2cb13e}=_0x121585,[_0x41736a,_0x4aa38a]=_0x121585['type']['split'](':'),_0x570386=this['_suggestions']['get'](_0x155602)||this['_createSuggestion'](_0x41736a,_0x4aa38a,_0x155602,_0x473911,_0x2cb13e);if(this['_addThreadToSuggestion'](_0x570386),this['_checkSuggestionCorrectness'](_0x570386,_0x41736a,_0x4aa38a||null,_0x473911),_0x570386['createdAt']=_0x121585['createdAt'],_0x570386['_isDataLoaded']=!0x0,_0x2cb13e&&_0x2cb13e['@external']){const _0x44adbc=_0x2cb13e['@external'],_0x5c1301=this['_getExternalAuthor'](_0x44adbc['authorName']);_0x570386['authoredAt']=_0x44adbc['createdAt'],_0x570386['author']=_0x5c1301,_0x570386['isExternal']=!0x0;}else _0x570386['authoredAt']=_0x121585['createdAt'];switch(_0x121585['data']&&(_0x570386['data']=_0x121585['data']),_0x121585['attributes']&&(_0x570386['attributes']=_0x121585['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x570386['_saved']=!0x0),this['_suggestionState']['get'](_0x570386)){case'notReady':this['_suggestionState']['set'](_0x570386,'dataReady');break;case'markerReady':_0x570386['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x570386])),this['_refreshSuggestionsChain'](new Set([_0x570386])),this['_suggestionState']['set'](_0x570386,'ready'),this['fire']('suggestionLoaded',_0x570386)):this['_suggestionState']['set'](_0x570386,'removed');}return _0x570386;}['acceptSuggestion'](_0x441cd3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb1a249 of _0x441cd3['getAllAdjacentSuggestions']())_0xb1a249['accept']();});});}['discardSuggestion'](_0x33feb1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55fd05 of _0x33feb1['getAllAdjacentSuggestions']())_0x55fd05['discard']();});});}['enableCommand'](_0x465fde,_0x2589c3){const _0x479106=this['editor']['commands']['get'](_0x465fde);if(!_0x479106)throw new _0x1ed8a5('track-changes-command-not-found',this,{'commandName':_0x465fde});if(this['_enabledCommands']['has'](_0x479106))throw new _0x1ed8a5('track-changes-enable-command-twice',this,{'commandName':_0x465fde});this['_enabledCommands']['add'](_0x479106),_0x2589c3&&_0x479106['on']('execute',(_0x12c48c,_0x199fd4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x199fd4['length']>0x0&&_0x199fd4[_0x199fd4['length']-0x1]&&_0x199fd4[_0x199fd4['length']-0x1]['forceDefaultExecution']?_0x199fd4['pop']():(_0x12c48c['return']=_0x2589c3((..._0x2d7e9a)=>_0x479106['execute'](..._0x2d7e9a,{'forceDefaultExecution':!0x0}),..._0x199fd4),_0x12c48c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x47152c){let _0x7f0291,_0x258202;const _0x46ea75=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7f0291=_0x47152c();}catch(_0x25cb21){_0x258202=_0x25cb21;}return _0x46ea75||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x258202&&_0x1ed8a5['rethrowUnexpectedError'](_0x258202,this),_0x7f0291;}['markInsertion'](_0x363ffb,_0x146bb1=null,_0x1814e2={}){if(_0x363ffb['isCollapsed'])return null;const _0x34cb62=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x56a912,meta:_0x4aa124}of this['_findSuggestions'](_0x363ffb,'insertion'))if(_0x4aa124['isOwn']){if(!_0x4aa124['isNextTo']){if(_0x4aa124['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x56a912,_0x1814e2))continue;return _0x56a912;}if(Xt(_0x56a912,_0x1814e2))return _0x56a912;this['_breakSuggestionMarker'](_0x56a912,_0x363ffb['start'],_0x363ffb['end']);break;}if(_0x146bb1==_0x56a912['subType']&&Xt(_0x56a912,_0x1814e2)){const _0x349c82=_0x56a912['getFirstRange']();return _0x349c82['start']['isEqual'](_0x363ffb['end'])?this['_setSuggestionRange'](_0x56a912,this['_model']['createRange'](_0x363ffb['start'],_0x349c82['end'])):this['_setSuggestionRange'](_0x56a912,this['_model']['createRange'](_0x349c82['start'],_0x363ffb['end'])),_0x56a912;}}const _0x2fca6c=_0x261f54(),_0x1a423f=_0x34cb62['id'],_0x33a2ae=_0x146bb1?'insertion:'+_0x146bb1:'insertion',_0xe7c181=this['_setSuggestionData']({'id':_0x2fca6c,'type':_0x33a2ae,'createdAt':new Date(),'authorId':_0x1a423f,'attributes':_0x1814e2});return this['_addSuggestionMarker'](_0x33a2ae,_0x2fca6c,_0x1a423f,_0x363ffb),_0xe7c181;}['markMultiRangeInsertion'](_0x5be7fb,_0xfaacb6='multi',_0x36750e={}){const _0x519186=this['editor']['plugins']['get']('Users')['me'],_0xe67d69=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xfaacb6,'join');for(const _0x284d03 of this['getSuggestions']())if(_0x284d03['author']['id']==_0x519186['id']&&'insertion'==_0x284d03['type']&&_0x284d03['subType']==_0xfaacb6&&Xt(_0x284d03,_0x36750e)&&(_0xe67d69(_0x284d03['getRanges'](),_0x5be7fb)||_0xe67d69(_0x5be7fb,_0x284d03['getRanges']()))){for(const _0x270884 of _0x5be7fb)_0x284d03['addRange'](_0x270884);return _0x284d03;}for(const {suggestion:_0x35830b,meta:_0x47d5d2}of this['_findSuggestions'](_0x5be7fb,'insertion')){if(!_0x47d5d2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47d5d2['containsRangeInObject'])continue;if(!Xt(_0x35830b,_0x36750e))continue;let _0x2e5ba0=!0x0;for(const _0x3d1045 of _0x35830b['getRanges']())for(const _0x10a9a7 of _0x5be7fb)if(!_0x3d1045['containsRange'](_0x10a9a7)){_0x2e5ba0=!0x1;break;}if(_0x2e5ba0)return _0x35830b;}const _0x5916c3=_0x261f54(),_0x109150=_0x519186['id'],_0x5e7c7d='insertion:'+_0xfaacb6,_0x915d8d=this['_setSuggestionData']({'id':_0x5916c3,'type':_0x5e7c7d,'createdAt':new Date(),'authorId':_0x109150,'attributes':_0x36750e});for(const _0x123455 of _0x5be7fb)this['_addSuggestionMarker'](_0x5e7c7d,_0x5916c3,_0x109150,_0x123455,o['getMultiRangeId']());return _0x915d8d;}['markInlineFormat'](_0x1ef56c,_0x22f425,_0x185417=null,_0x5b18f9={}){if(_0x185417=_0x185417||Kt(_0x22f425),_0x1ef56c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4f2b39=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x185417,'accept');return this['forceDefaultExecution'](()=>_0x4f2b39([_0x1ef56c],_0x22f425,_0x5b18f9)),null;}const _0x443e52=this['editor']['plugins']['get']('Users')['me'],_0x2d5b32=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x483e9d,meta:_0x5a71b3}of this['_findSuggestions'](_0x1ef56c,'insertion'))_0x5a71b3['isOwn']&&!_0x5a71b3['isInsideObject']&&_0x2d5b32['push'](..._0x483e9d['getRanges']());}const _0x34c781=function(_0x531bd1,_0x262c10){const _0x43472a=[];for(const _0xd9456 of _0x262c10){const _0x37648e=_0x531bd1['getIntersection'](_0xd9456);_0x37648e&&_0x43472a['push'](_0x37648e);}return _0x43472a;}(_0x1ef56c,_0x2d5b32),_0xcd1bf=function(_0xe3cbe7,_0x443c02){const _0x2690a8=[_0xe3cbe7];for(const _0x45947c of _0x443c02){let _0x19719d=0x0;for(;_0x19719d<_0x2690a8['length'];){const _0x537ade=_0x2690a8[_0x19719d]['getDifference'](_0x45947c);_0x2690a8['splice'](_0x19719d,0x1,..._0x537ade),_0x19719d+=_0x537ade['length'];}}return _0x2690a8;}(_0x1ef56c,_0x2d5b32);_0x34c781['length']&&this['_model']['change'](()=>{for(const _0x52db24 of _0x34c781){const _0x3aecaf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x185417,'accept');this['forceDefaultExecution'](()=>_0x3aecaf([_0x52db24],_0x22f425,_0x5b18f9));}});for(const _0x4c5f67 of _0xcd1bf){let _0x261434=null,_0x27ef9a=_0x4c5f67['start'],_0x31e444=_0x4c5f67['end'];for(const {suggestion:_0x387bc9,meta:_0xfb3824}of this['_findSuggestions'](_0x4c5f67,'formatInline')){if(!_0xfb3824['isOwn'])continue;if(_0x387bc9['subType']!=_0x185417)continue;if(!Xt(_0x387bc9,_0x5b18f9))continue;const _0x3a33b5=_0x387bc9['getFirstRange']();if(_0x3a33b5['containsRange'](_0x4c5f67,!0x0))return null;_0x27ef9a=_0x27ef9a['isBefore'](_0x3a33b5['start'])?_0x27ef9a:_0x3a33b5['start'],_0x31e444=_0x31e444['isAfter'](_0x3a33b5['end'])?_0x31e444:_0x3a33b5['end'],_0x261434?_0x3a33b5['start']['isBefore'](_0x261434['getFirstRange']()['start'])?(_0x261434['removeMarkers'](),_0x261434=_0x387bc9):_0x387bc9['removeMarkers']():_0x261434=_0x387bc9;}const _0x5c7914=this['_model']['createRange'](_0x27ef9a,_0x31e444);if(_0x261434)this['_setSuggestionRange'](_0x261434,_0x5c7914);else{const _0x1cc804=_0x261f54(),_0x96078c=_0x443e52['id'];this['_setSuggestionData']({'id':_0x1cc804,'type':'formatInline:'+_0x185417,'data':_0x22f425,'createdAt':new Date(),'authorId':_0x96078c,'attributes':_0x5b18f9}),this['_addSuggestionMarker']('formatInline:'+_0x185417,_0x1cc804,_0x96078c,_0x5c7914);}}return null;}['markBlockFormat'](_0x3ec7c4,_0x2ccde8,_0x282878=[],_0x34d19f=null,_0x5ed8e8={}){_0x2ccde8['formatGroupId']||(_0x2ccde8['formatGroupId']=_0x2ccde8['commandName']),_0x2ccde8['multipleBlocks']=_0x3ec7c4['is']('range'),_0x34d19f=_0x34d19f||Kt(_0x2ccde8);const _0x431a25=_0x282878['map'](_0x4c6779=>zt(_0x4c6779,this['_model'])),_0x392804=_0x3ec7c4['is']('range')?_0x3ec7c4:zt(_0x3ec7c4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5f2f88=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34d19f,'accept');return this['forceDefaultExecution'](()=>_0x5f2f88([_0x392804],_0x2ccde8,_0x5ed8e8)),null;}_0x431a25['push'](_0x392804);let _0x10eb46=!0x0;for(const _0x34f0d4 of _0x431a25)if(!this['_rangeIsInLocalUserInsertion'](_0x34f0d4)){_0x10eb46=!0x1;break;}if(_0x10eb46&&'always'!==this['_trackFormatChanges']){const _0x1fb4be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34d19f,'accept');return this['forceDefaultExecution'](()=>_0x1fb4be([_0x392804],_0x2ccde8,_0x5ed8e8)),null;}let _0x4e4508=null,_0x27aa1f=_0x392804['start'],_0x4c8044=_0x392804['end'];for(const {suggestion:_0x46f43f,meta:_0x4aeb0d}of this['_findSuggestions'](_0x392804,'formatBlock')){if(!_0x4aeb0d['isOwn'])continue;if(_0x4aeb0d['isNextTo']||_0x4aeb0d['containsRangeInObject']||_0x4aeb0d['isInsideObject'])continue;if(_0x46f43f['data']['formatGroupId']!=_0x2ccde8['formatGroupId'])continue;if(!Xt(_0x46f43f,_0x5ed8e8))continue;const _0x1dbe84=_0x46f43f['getFirstRange']();if(_0x46f43f['subType']==_0x34d19f){if(_0x1dbe84['containsRange'](_0x392804,!0x0))return null;_0x27aa1f=_0x27aa1f['isBefore'](_0x1dbe84['start'])?_0x27aa1f:_0x1dbe84['start'],_0x4c8044=_0x4c8044['isAfter'](_0x1dbe84['end'])?_0x4c8044:_0x1dbe84['end'],_0x4e4508?_0x1dbe84['start']['isBefore'](_0x4e4508['getFirstRange']()['start'])?(_0x4e4508['removeMarkers'](),_0x4e4508=_0x46f43f):_0x46f43f['removeMarkers']():_0x4e4508=_0x46f43f;}else{const _0x59a6a4=_0x392804['getIntersection'](_0x1dbe84);this['_cutOutSuggestionMarker'](_0x46f43f,_0x59a6a4);}}const _0x2680c5=this['editor']['plugins']['get']('Users')['me'],_0x36c373=_0x261f54(),_0x1eb44f=_0x2680c5['id'];if(_0x4e4508)return this['_setSuggestionRange'](_0x4e4508,this['_model']['createRange'](_0x27aa1f,_0x4c8044)),_0x4e4508;{const _0xadd289=this['_setSuggestionData']({'id':_0x36c373,'type':'formatBlock:'+_0x34d19f,'data':_0x2ccde8,'createdAt':new Date(),'authorId':_0x1eb44f,'attributes':_0x5ed8e8});return this['_addSuggestionMarker']('formatBlock:'+_0x34d19f,_0x36c373,_0x1eb44f,this['_model']['createRange'](_0x27aa1f,_0x4c8044)),_0xadd289;}}['markMultiRangeBlockFormat'](_0x97769a,_0x5b9295,_0x5230f0=[],_0x30ac1c=null,_0x263de6={}){_0x5b9295['formatGroupId']||(_0x5b9295['formatGroupId']=_0x5b9295['commandName']);const _0x3655e4=_0x97769a[0x0];_0x5b9295['multipleBlocks']=_0x3655e4['is']('range'),_0x30ac1c=_0x30ac1c||Kt(_0x5b9295);const _0xe29e9f=_0x5230f0['map'](_0x146fa4=>zt(_0x146fa4,this['_model'])),_0x4d222d=_0x3655e4['is']('range')?_0x97769a:_0x97769a['map'](_0x54fffc=>zt(_0x54fffc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x560cd7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ac1c,'accept');return this['forceDefaultExecution'](()=>_0x560cd7(_0x4d222d,_0x5b9295,_0x263de6)),null;}_0xe29e9f['push'](..._0x4d222d);let _0x4197e9=!0x0;for(const _0xb25d99 of _0xe29e9f)if(!this['_rangeIsInLocalUserInsertion'](_0xb25d99)){_0x4197e9=!0x1;break;}if(_0x4197e9&&'always'!==this['_trackFormatChanges']){const _0x53de37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ac1c,'accept');return this['forceDefaultExecution'](()=>_0x53de37(_0x4d222d,_0x5b9295,_0x263de6)),null;}const _0x90998=this['editor']['plugins']['get']('Users')['me'];for(const _0x6239a6 of this['getSuggestions']()){if(_0x6239a6['author']['id']!=_0x90998['id'])continue;if('formatBlock'!=_0x6239a6['type']||_0x6239a6['data']['formatGroupId']!=_0x5b9295['formatGroupId'])continue;if(!Xt(_0x6239a6,_0x263de6))continue;const _0x18a608=_0x6239a6['subType']==_0x30ac1c;for(let _0x35cc3d=0x0;_0x35cc3d<_0x4d222d['length'];_0x35cc3d++){const _0x59c8b8=_0x4d222d[_0x35cc3d];for(const _0x17ad3 of _0x6239a6['getMarkers']()){const _0x2b1833=_0x17ad3['getRange']();if(_0x59c8b8['isEqual'](_0x2b1833)){_0x18a608?(_0x4d222d['splice'](_0x35cc3d,0x1),_0x35cc3d--):_0x6239a6['removeMarker'](_0x17ad3['name']);break;}}}}if(0x0==_0x4d222d['length'])return null;const _0x48518e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ac1c,'join');for(const _0x1c6b65 of this['getSuggestions']())if(_0x1c6b65['author']['id']==_0x90998['id']&&'formatBlock'==_0x1c6b65['type']&&_0x1c6b65['data']['formatGroupId']==_0x5b9295['formatGroupId']&&_0x1c6b65['subType']==_0x30ac1c&&Xt(_0x1c6b65,_0x263de6)&&(_0x48518e(_0x1c6b65['getRanges'](),_0x4d222d)||_0x48518e(_0x4d222d,_0x1c6b65['getRanges']()))){for(const _0x555e25 of _0x4d222d)_0x1c6b65['addRange'](_0x555e25);return _0x1c6b65;}const _0x2b8698=_0x261f54(),_0x1f028a=_0x90998['id'],_0x292ab7='formatBlock:'+_0x30ac1c,_0x41c160=this['_setSuggestionData']({'id':_0x2b8698,'type':_0x292ab7,'data':_0x5b9295,'createdAt':new Date(),'authorId':_0x1f028a,'attributes':_0x263de6});for(const _0x58b9e6 of _0x4d222d)this['_addSuggestionMarker'](_0x292ab7,_0x2b8698,_0x1f028a,_0x58b9e6,o['getMultiRangeId']());return _0x41c160;}['markDeletion'](_0x438da0,_0x6dff35=null,_0x4e0f9c={}){if(_0x438da0['isCollapsed'])return null;const _0x2fbe4a=this['editor']['plugins']['get']('Users')['me'],_0x23db16=new _0x5702ff(_0x438da0['start'],_0x438da0['end']);for(const {suggestion:_0x190b19,meta:_0x91def6}of this['_findSuggestions'](_0x23db16,'insertion'))if(_0x91def6['isOwn']&&!_0x91def6['isNextTo']){if(_0x190b19['isMultiRange']){const _0x30c1db=_0x190b19['getRanges']()['filter'](_0x182b43=>'$graveyard'!=_0x182b43['root']['rootName']);_0x30c1db['every'](_0x243430=>_0x23db16['containsRange'](_0x243430,!0x0))&&_0x190b19['discard']();if(_0x30c1db['some'](_0x36da4b=>_0x36da4b['containsRange'](_0x23db16,!0x0))){const _0x1f4880=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6dff35,'accept');return this['forceDefaultExecution'](()=>_0x1f4880([_0x23db16],null,_0x4e0f9c)),null;}}else{const _0x336667=_0x23db16['getIntersection'](_0x190b19['getFirstRange']());null!==_0x336667&&_0x190b19['_onDiscard']([_0x336667],null,_0x4e0f9c);}}if(_0x23db16['detach'](),_0x23db16['isCollapsed']||'$graveyard'==_0x23db16['root']['rootName'])return null;let _0x46f4cb=null,_0x38bc78=_0x23db16['start'],_0x370f9d=_0x23db16['end'];const _0x31be17=this['_findSuggestions'](_0x23db16,'deletion');for(const {suggestion:_0xf902e9,meta:_0x1fe485}of _0x31be17){const _0x9d59e=this['_model']['createRange'](_0x38bc78,_0x370f9d);if(_0x1fe485['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1fe485['containsRangeInObject']&&!_0x1fe485['isInsideObject'])){if(_0xf902e9['isMultiRange']){if(!Xt(_0xf902e9,_0x4e0f9c))continue;let _0x5dc7c9=!0x0;for(const _0x45b3eb of _0xf902e9['getRanges']()){if(_0x45b3eb['containsRange'](_0x9d59e,!0x0))return _0xf902e9;_0x9d59e['containsRange'](_0x45b3eb)||(_0x5dc7c9=!0x1);}_0x5dc7c9&&_0xf902e9['discard']();}else{const _0x393286=_0xf902e9['getFirstRange']();if(_0x393286['containsRange'](_0x9d59e,!0x0))return _0xf902e9;if(!Xt(_0xf902e9,_0x4e0f9c)){_0x9d59e['containsRange'](_0x393286)?_0xf902e9['removeMarkers']():_0x393286['containsPosition'](_0x38bc78)?_0x38bc78=_0x393286['end']:_0x393286['containsPosition'](_0x370f9d)&&(_0x370f9d=_0x393286['start']);continue;}_0x38bc78=_0x38bc78['isBefore'](_0x393286['start'])?_0x38bc78:_0x393286['start'],_0x370f9d=_0x370f9d['isAfter'](_0x393286['end'])?_0x370f9d:_0x393286['end'],_0x4e0f9c=Object['assign']({},_0xf902e9['attributes']),_0x46f4cb?_0x393286['start']['isBefore'](_0x46f4cb['getFirstRange']()['start'])?(_0x46f4cb['removeMarkers'](),_0x46f4cb=_0xf902e9):_0xf902e9['removeMarkers']():_0x46f4cb=_0xf902e9;}}}if(_0x46f4cb)return this['_setSuggestionRange'](_0x46f4cb,this['_model']['createRange'](_0x38bc78,_0x370f9d)),_0x46f4cb;{const _0x8a5d04=_0x261f54(),_0xef71b1=this['_model']['createRange'](_0x38bc78,_0x370f9d),_0xe04c27=_0x2fbe4a['id'],_0x50f276=_0x6dff35?'deletion:'+_0x6dff35:'deletion',_0x505c9b=this['_setSuggestionData']({'id':_0x8a5d04,'type':_0x50f276,'createdAt':new Date(),'authorId':_0xe04c27,'attributes':_0x4e0f9c});return this['_addSuggestionMarker'](_0x50f276,_0x8a5d04,_0xe04c27,_0xef71b1),_0x505c9b;}}['markMultiRangeDeletion'](_0xa48d17,_0x4ed3ce='multi',_0x52b594={}){const _0x4395d8=this['editor']['plugins']['get']('Users')['me'],_0x5e6ae0=_0xa48d17['map'](_0x379011=>new _0x5702ff(_0x379011['start'],_0x379011['end'])),_0x2d8794=new Set();for(const {suggestion:_0x512df0,meta:_0x2cbc16}of this['_findSuggestions'](_0x5e6ae0,'insertion'))_0x2cbc16['isOwn']&&!_0x2cbc16['isNextTo']&&_0x2d8794['add'](_0x512df0);for(const _0x38a2d6 of _0x2d8794)if(_0x38a2d6['isMultiRange']){const _0x29d955=_0x38a2d6['getRanges']();(!_0x38a2d6['attributes']||!_0x38a2d6['attributes']['skipNestingCheck'])&&(_0x29d955['every'](_0x28553b=>_0x5e6ae0['some'](_0x21c0f6=>_0x21c0f6['containsRange'](_0x28553b,!0x0)))&&_0x38a2d6['discard']());if(_0x5e6ae0['every'](_0x2e232e=>_0x29d955['some'](_0x4eb110=>_0x4eb110['containsRange'](_0x2e232e,!0x0)))){const _0x2068d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ed3ce,'accept');return this['forceDefaultExecution'](()=>_0x2068d5(_0xa48d17,null,_0x52b594)),null;}}else{const _0x295d84=_0x38a2d6['getFirstRange']();_0x5e6ae0['some'](_0x7ca40b=>_0x7ca40b['containsRange'](_0x295d84,!0x0))&&_0x38a2d6['discard']();if(_0x5e6ae0['every'](_0x4e9601=>_0x295d84['containsRange'](_0x4e9601,!0x0))){const _0x29315c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ed3ce,'accept');return this['forceDefaultExecution'](()=>_0x29315c(_0x5e6ae0,null,_0x52b594)),null;}}const _0x5ebe0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ed3ce,'join');let _0x2487e3=null;for(const _0x266f62 of this['getSuggestions']())if(_0x266f62['author']['id']==_0x4395d8['id']&&_0x266f62['isInContent']&&'deletion'==_0x266f62['type']&&_0x266f62['subType']==_0x4ed3ce&&Xt(_0x266f62,_0x52b594)&&(_0x5ebe0e(_0x266f62['getRanges'](),_0x5e6ae0)||_0x5ebe0e(_0x5e6ae0,_0x266f62['getRanges']()))){if(_0x2487e3){if(_0x266f62['commentThread']&&_0x266f62['commentThread']['length'])continue;for(const _0x88912d of _0x266f62['getRanges']())_0x2487e3['isIntersectingWithRange'](_0x88912d)||_0x2487e3['addRange'](_0x88912d);_0x266f62['removeMarkers']();}else{_0x2487e3=_0x266f62;for(const _0x1602ce of _0x5e6ae0)_0x266f62['isIntersectingWithRange'](_0x1602ce)||_0x266f62['addRange'](_0x1602ce);}}if(_0x2487e3)return _0x2487e3;_0x2d8794['clear']();for(const {suggestion:_0x563223,meta:_0x14c568}of this['_findSuggestions'](_0x5e6ae0,'deletion'))_0x14c568['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14c568['containsRangeInObject']&&!_0x14c568['isInsideObject'])&&Xt(_0x563223,_0x52b594)&&_0x2d8794['add'](_0x563223);for(const _0x1cfeb0 of _0x2d8794){const _0x5db544=_0x1cfeb0['getRanges']();if(!_0x52b594||!_0x52b594['skipNestingCheck']){if(_0x5e6ae0['every'](_0x24a965=>_0x5db544['some'](_0x483035=>_0x483035['containsRange'](_0x24a965,!0x0))))return _0x1cfeb0;}(!_0x1cfeb0['attributes']||!_0x1cfeb0['attributes']['skipNestingCheck'])&&(_0x5db544['every'](_0x3bdd4f=>_0x5e6ae0['some'](_0x126829=>_0x126829['containsRange'](_0x3bdd4f,!0x0)))&&_0x1cfeb0['discard']());}const _0x1e0791=_0x261f54(),_0x308d77=_0x4395d8['id'],_0xe715a9='deletion:'+_0x4ed3ce,_0x35800e=this['_setSuggestionData']({'id':_0x1e0791,'type':_0xe715a9,'createdAt':new Date(),'authorId':_0x308d77,'attributes':_0x52b594});for(const _0xfb146b of _0x5e6ae0)_0xfb146b['detach'](),_0xfb146b['isCollapsed']||'$graveyard'==_0xfb146b['root']['rootName']||this['_addSuggestionMarker'](_0xe715a9,_0x1e0791,_0x308d77,_0xfb146b,o['getMultiRangeId']());return _0x35800e;}['markAttributeChange'](_0x3a7eb1,_0x2f5fdb,_0x2499e6,_0xc9fdf2,_0x4d929a){if(_0x3a7eb1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd757ef=this['editor']['plugins']['get']('Users')['me']['id'],_0x46b0ce=Array['from'](this['_suggestions']['values']())['filter'](_0x1e5b34=>'attribute'==_0x1e5b34['type']&&_0x1e5b34['data']['key']==_0x2f5fdb&&_0x1e5b34['isIntersectingWithRange'](_0x3a7eb1));if('default'===this['_trackFormatChanges']){const _0x5e7843=this['_findSuggestions'](_0x3a7eb1,'insertion')['filter'](({meta:_0x46f9ed})=>_0x46f9ed['isOwn']&&!_0x46f9ed['isInsideObject']&&!_0x46f9ed['isNextTo'])['map'](({suggestion:_0x4f12f2})=>_0x4f12f2);_0x46b0ce['unshift'](..._0x5e7843);}const _0xab3cc1=new Map([[_0x3a7eb1,_0x2499e6]]);for(const _0x22ffd8 of _0x46b0ce){const _0x583323='attribute'==_0x22ffd8['type']?_0x22ffd8['data']['oldValue']:void 0x0,_0x52413c=_0x22ffd8['getFirstRange'](),_0xe8192c=Array['from'](_0xab3cc1['keys']())['find'](_0x588fbb=>_0x588fbb['isIntersecting'](_0x52413c));if(!_0xe8192c)continue;const _0x1f3eee=_0xe8192c['getDifference'](_0x52413c);this['_isBlockAttribute'](_0x2f5fdb)&&'insertion'==_0x22ffd8['type']&&0x0!=_0x1f3eee['length']||(_0xab3cc1['delete'](_0xe8192c),_0x1f3eee['forEach'](_0x45d365=>{_0xab3cc1['set'](_0x45d365,_0x2499e6);}),'insertion'!=_0x22ffd8['type']&&_0x583323!=_0xc9fdf2&&_0xab3cc1['set'](_0xe8192c['getIntersection'](_0x52413c),_0x583323));}const _0x598ef0=[];for(const [_0x30777b,_0x224603]of _0xab3cc1){const _0x10d795=_0x261f54(),_0x11f4ae={'key':_0x2f5fdb,'oldValue':_0x224603,'newValue':_0xc9fdf2};_0x2f5fdb['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':_0x2f5fdb});const _0x3fb17f=('attribute:'+(_0x2f5fdb+'|'+Kt({'newValue':_0xc9fdf2})))['substring'](0x0,0x3c),_0xa4eaa8=this['_setSuggestionData']({'id':_0x10d795,'type':_0x3fb17f,'data':_0x11f4ae,'createdAt':new Date(),'authorId':_0xd757ef,'attributes':_0x4d929a});_0x598ef0['push'](_0xa4eaa8),this['_addSuggestionMarker'](_0x3fb17f,_0x10d795,_0xd757ef,_0x30777b);}return _0x598ef0;}['enableDefaultAttributesIntegration'](_0x126a76){this['enableCommand'](_0x126a76,(_0x5ecfe6,..._0x188e31)=>{this['_recordAttributeChanges'](()=>{_0x5ecfe6(..._0x188e31);});});}['registerBlockAttribute'](_0x2b0eb9){this['_blockAttributeKeys']['add'](_0x2b0eb9);}['registerInlineAttribute'](_0x199d0a){this['_inlineAttributeKeys']['add'](_0x199d0a);}['_getAttributeKey'](_0x2a6332){return'attribute'==_0x2a6332['type']?_0x2a6332['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5646c3,_0x390905){const _0x83945d=_0x5646c3['getFirstMarker']();this['_model']['change'](_0x4da4ac=>{_0x4da4ac['updateMarker'](_0x83945d,{'range':_0x390905});});}['_addThreadToSuggestion'](_0x2c856a){const _0x47e249=_0x2c856a['id'],_0xb1d606=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47e249)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb1d606,'threadId':_0x47e249,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4752c8=this['_commentsRepository']['getCommentThread'](_0x47e249);_0x4752c8['unbind']('isRemovable'),_0x4752c8['isRemovable']=!0x1,_0x2c856a['commentThread']=_0x4752c8;}['_checkSuggestionCorrectness'](_0x450f1c,_0x71e657,_0x3ff84f,_0x2da229){if(_0x450f1c['type']!=_0x71e657||_0x450f1c['subType']!=_0x3ff84f||_0x450f1c['creator']['id']!=_0x2da229)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ed8a5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x56c716,_0x4e9f74){const _0x3a069a=_0x56c716['getFirstRange']();if(_0x4e9f74['isEqual'](_0x3a069a))_0x56c716['removeMarkers']();else{if(_0x3a069a['containsRange'](_0x4e9f74)){const _0x24c394=this['_model']['createPositionAt'](_0x4e9f74['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x56c716,this['_model']['createRange'](_0x3a069a['start'],_0x24c394));const _0x3b5b1a=_0x261f54(),_0x399d93=_0x56c716['creator']['id'],_0x192d39=_0x56c716['type']+':'+_0x56c716['subType'];this['_setSuggestionData']({'id':_0x3b5b1a,'type':_0x192d39,'createdAt':new Date(),'authorId':_0x399d93,'data':_0x56c716['data'],'attributes':_0x56c716['attributes']});const _0x1b2799=this['_model']['createPositionAt'](_0x4e9f74['end']['parent'],'after'),_0x1add43=this['_model']['createRange'](_0x1b2799,_0x3a069a['end']);this['_addSuggestionMarker'](_0x192d39,_0x3b5b1a,_0x399d93,_0x1add43);}else{if(_0x3a069a['containsPosition'](_0x4e9f74['start'])){const _0x32f2bb=this['_model']['createPositionAt'](_0x4e9f74['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x56c716,this['_model']['createRange'](_0x3a069a['start'],_0x32f2bb));}else{const _0x42ab01=this['_model']['createPositionAt'](_0x4e9f74['end']['parent'],'after');this['_setSuggestionRange'](_0x56c716,this['_model']['createRange'](_0x42ab01,_0x3a069a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35995f){for(const {suggestion:_0x4a4313,meta:_0x2e99cf}of this['_findSuggestions'](_0x35995f,'insertion')){if(!_0x2e99cf['isOwn'])continue;const _0x3b9160=_0x4a4313['getRanges']();for(const _0x4a5fc6 of _0x3b9160)if(!_0x35995f['getDifference'](_0x4a5fc6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x28c8a2){const _0x31f372=this['editor']['plugins']['get']('Users')['getUser'](_0x28c8a2);if(!_0x31f372)throw new _0x1ed8a5('track-changes-user-not-found',this);return _0x31f372;}['_getExternalAuthor'](_0x57fc83){const _0x4347c5=this['editor']['plugins']['get']('Users'),_0xd17584=_0x6bcbd8('external:'+_0x57fc83),_0x3f24fb=_0x4347c5['getUser'](_0xd17584);return _0x3f24fb||_0x4347c5['addUser']({'id':_0xd17584,'name':_0x57fc83});}['_createSuggestion'](_0x89e01d,_0x41a388,_0x351b1f,_0x13fc0e,_0x3e7d36){const _0x1dbb5=this['_getAuthorFromId'](_0x13fc0e),_0x4c5580=this['_suggestionFactory']['buildSuggestion'](_0x89e01d,_0x41a388,_0x351b1f,_0x1dbb5,_0x3e7d36,_0x1edf39=>{this['_updateSuggestionData'](_0x351b1f,{'attributes':_0x1edf39});const _0x1a6095=this['getSuggestion'](_0x351b1f);this['_joinWithAdjacentSuggestions'](new Set([_0x1a6095])),this['_refreshSuggestionsChain'](new Set([_0x1a6095]));});return this['listenTo'](_0x4c5580,'accept',()=>{this['_updateSuggestionData'](_0x351b1f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4c5580,'discard',()=>{this['_updateSuggestionData'](_0x351b1f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x351b1f,_0x4c5580),this['_suggestionState']['set'](_0x4c5580,'notReady'),_0x4c5580;}['_splitMarkerName'](_0x431631){const _0x35c34a=_0x431631['split'](':');return{'group':_0x35c34a[0x0],'type':_0x35c34a[0x1],'subType':_0x35c34a['length']>=0x5?_0x35c34a[0x2]:null,'id':_0x35c34a['length']<0x5?_0x35c34a[0x2]:_0x35c34a[0x3],'authorId':_0x35c34a['length']<0x5?_0x35c34a[0x3]:_0x35c34a[0x4],'markerCount':0x6==_0x35c34a['length']?_0x35c34a[0x5]:null};}['_breakSuggestionMarker'](_0x5bbd80,_0xa6dde3,_0x14b57d){const _0x46ab46=_0x5bbd80['getFirstRange'](),_0x46cd7a=_0x46ab46['start'],_0x3d946b=_0x46ab46['end'];this['_setSuggestionRange'](_0x5bbd80,this['_model']['createRange'](_0x46cd7a,_0xa6dde3));const _0x2715f7=_0x261f54(),_0x1e02bc=_0x5bbd80['creator']['id'],_0x21cc38=_0x5bbd80['type']+(_0x5bbd80['subType']?':'+_0x5bbd80['subType']:'');this['_setSuggestionData']({'id':_0x2715f7,'type':_0x21cc38,'createdAt':new Date(),'authorId':_0x1e02bc,'originalSuggestionId':_0x5bbd80['id'],'attributes':_0x5bbd80['attributes'],'data':_0x5bbd80['data']});const _0xdc46b1=this['_getAttributeKey'](_0x5bbd80);('formatBlock'==_0x5bbd80['type']||_0xdc46b1&&this['_isBlockAttribute'](_0xdc46b1))&&(_0x14b57d=this['_model']['createPositionBefore'](_0x14b57d['parent'])),this['_addSuggestionMarker'](_0x21cc38,_0x2715f7,_0x1e02bc,this['_model']['createRange'](_0x14b57d,_0x3d946b));}['_findSuggestions'](_0x26675c,_0x19c47c=null){const _0x55242a=[],_0x3027b8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26675c)||(_0x26675c=[_0x26675c]);for(const _0x5ef336 of this['getSuggestions']()){if(!_0x5ef336['isInContent'])continue;if(_0x19c47c&&_0x5ef336['type']!=_0x19c47c)continue;let _0x112611=!0x1;for(const _0xc50da2 of _0x5ef336['getRanges']()){for(const _0x172905 of _0x26675c){const _0x5a000e=_0x172905['start']['isEqual'](_0xc50da2['end'])||_0x172905['end']['isEqual'](_0xc50da2['start']);if(_0x5a000e||_0x172905['getIntersection'](_0xc50da2)){const _0x4138f9=_0x172905['containsRange'](_0xc50da2)&&Gt(this['_model']['schema'],_0xc50da2['start'],_0x172905),_0x4feb61=_0xc50da2['containsRange'](_0x172905)&&Gt(this['_model']['schema'],_0x172905['start'],_0xc50da2);_0x55242a['push']({'suggestion':_0x5ef336,'meta':{'isOwn':_0x3027b8==_0x5ef336['author'],'isNextTo':_0x5a000e,'isInsideObject':_0x4138f9,'containsRangeInObject':_0x4feb61}}),_0x112611=!0x0;break;}}if(_0x112611)break;}}return _0x55242a;}['_addSuggestionMarker'](_0xb7d4b4,_0x3fb25a,_0x3e2c5d,_0x1de6d6,_0x3e05e8){this['_model']['change'](_0x50cdc2=>{let _0x39765f='suggestion:'+_0xb7d4b4+':'+_0x3fb25a+':'+_0x3e2c5d;_0x3e05e8&&(_0x39765f=_0x39765f+':'+_0x3e05e8),_0x50cdc2['addMarker'](_0x39765f,{'range':_0x1de6d6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x46e365){const _0x359c3b=_0x46e365['previous'],_0x28a53b=_0x46e365['next'];_0x46e365['previous']=null,_0x46e365['next']=null,null!=_0x359c3b&&_0x359c3b['next']==_0x46e365&&(_0x359c3b['next']=_0x28a53b),null!=_0x28a53b&&_0x28a53b['previous']==_0x46e365&&(_0x28a53b['previous']=_0x359c3b),'ready'==this['_suggestionState']['get'](_0x46e365)&&(this['_suggestionState']['set'](_0x46e365,'removed'),this['fire']('suggestionUnloaded',_0x46e365,_0x359c3b,_0x28a53b));}['_setSuggestionData'](_0x2a13ab){const _0xf13487=_0x2a13ab['id'],_0x4791f5=this['addSuggestionData'](_0x2a13ab);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x336a23=this['editor']['plugins']['get']('PendingActions'),_0x44d5c1=_0x4791f5['hasComments'],_0x4785bf=_0x4791f5['subType']?_0x4791f5['type']+':'+_0x4791f5['subType']:_0x4791f5['type'],_0x53952c=this['editor']['locale'],_0x510c48=_0x336a23['add'](c(_0x53952c,'PENDING_ACTION_SUGGESTION')),_0x28300b={'id':_0xf13487,'type':_0x4785bf,'hasComments':_0x44d5c1,'data':_0x2a13ab['data']||null,'originalSuggestionId':_0x2a13ab['originalSuggestionId']||null,'attributes':_0x4791f5['attributes']};this['_adapter']['addSuggestion'](_0x28300b)['then'](_0x10e58a=>{_0x4791f5['_saved']=!0x0,_0x336a23['remove'](_0x510c48),_0x10e58a&&_0x10e58a['createdAt']&&(this['_suggestions']['get'](_0xf13487)['createdAt']=_0x10e58a['createdAt']);})['catch'](_0x38de8d=>{throw _0x4b42ad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4791f5['discard']();}),_0x4791f5['stopListening'](),this['_suggestions']['delete'](_0x4791f5['id']),this['_suggestionState']['delete'](_0x4791f5),_0x38de8d;});}return _0x4791f5;}['_isBlockAttribute'](_0x5dce56){return this['_blockAttributeKeys']['has'](_0x5dce56);}['_updateSuggestionData'](_0xe4b4b3,_0x35887b){const _0x5f4d5a=this['editor']['plugins']['get']('PendingActions'),_0xf3b4=this['getSuggestion'](_0xe4b4b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf3b4['_saved']){const _0x59bef6=_0x5f4d5a['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe4b4b3,_0x35887b)['then'](()=>{_0x5f4d5a['remove'](_0x59bef6);});}else _0xf3b4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xe4b4b3,_0x35887b);});}}['_getSuggestionData'](_0x58977c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ed8a5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x58977c);}['_handleNewSuggestionMarker'](_0x56f3a8){const {id:_0x13a98e,type:_0x119302,subType:_0x4c0293,authorId:_0xed97c2}=this['_splitMarkerName'](_0x56f3a8),_0x27389b=this['_suggestions']['get'](_0x13a98e)||this['_createSuggestion'](_0x119302,_0x4c0293,_0x13a98e,_0xed97c2,{});switch(this['_checkSuggestionCorrectness'](_0x27389b,_0x119302,_0x4c0293,_0xed97c2),this['_suggestionState']['get'](_0x27389b)){case'notReady':this['_getSuggestionData'](_0x13a98e)['then'](_0x47edd9=>{let _0x148e8d=Promise['resolve']();_0x47edd9['hasComments']&&(_0x148e8d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x13a98e})),_0x148e8d['then'](()=>{this['addSuggestionData'](_0x47edd9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x27389b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x13a98e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x27389b,'ready'),this['fire']('suggestionLoaded',_0x27389b);break;case'ready':this['fire']('suggestionChanged',_0x27389b);}return _0x27389b['addMarkerName'](_0x56f3a8),_0x27389b;}['_refreshSuggestionsChain'](_0x456b3e){const _0x144181=Array['from'](_0x456b3e),_0x100931=_0x144181['filter'](_0x553ae2=>'attribute'==_0x553ae2['type']);this['_refreshAttributeSuggestionsChain'](_0x100931);const _0x324880=_0x144181['filter'](_0x4b51f1=>!_0x4b51f1['isMultiRange']&&'attribute'!=_0x4b51f1['type']),_0x404944=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561bb5=>!_0x561bb5['isMultiRange']&&'attribute'!=_0x561bb5['type']),_0x3c1de4=_0x404944['filter'](_0x20d600=>!_0x456b3e['has'](_0x20d600)),_0xfefb73=new Map(_0x404944['map'](_0x3f2367=>[_0x3f2367,this['_suggestionFactory']['getSuggestionCallback'](_0x3f2367['type'],_0x3f2367['subType'],'chain')])),_0x5f002=new Map(_0x404944['map'](_0x1d808=>[_0x1d808,_0x1d808['getFirstRange']()])),_0x3ad3a7=new Set(),_0x358196=new Set();for(let _0x4bb94b=0x0;_0x4bb94b<_0x324880['length'];_0x4bb94b++)_0x494631(_0x324880[_0x4bb94b],_0x324880,_0x4bb94b+0x1);for(let _0x36e1d3=0x0;_0x36e1d3<_0x324880['length'];_0x36e1d3++)_0x494631(_0x324880[_0x36e1d3],_0x3c1de4,0x0);const _0x28929d=new Set();for(let _0x5483df=0x0;_0x5483df<_0x324880['length'];_0x5483df++){const _0x3f7538=_0x324880[_0x5483df];!_0x358196['has'](_0x3f7538)&&_0x3f7538['previous']&&(_0x28929d['add'](_0x3f7538['previous']),_0x3f7538['previous']['next']===_0x3f7538&&(_0x3f7538['previous']['next']=null),_0x3f7538['previous']=null),!_0x3ad3a7['has'](_0x3f7538)&&_0x3f7538['next']&&(_0x28929d['add'](_0x3f7538['next']),_0x3f7538['next']['previous']===_0x3f7538&&(_0x3f7538['next']['previous']=null),_0x3f7538['next']=null);}function _0x494631(_0x5b5dc1,_0xd92e8,_0x5b9f61){for(let _0x1963d9=_0x5b9f61;_0x1963d9<_0xd92e8['length'];_0x1963d9++){const _0x578c6b=_0x1b2275(_0x5b5dc1,_0xd92e8[_0x1963d9]);_0x578c6b&&(_0x578c6b[0x0]['next']=_0x578c6b[0x1],_0x578c6b[0x1]['previous']=_0x578c6b[0x0],_0x3ad3a7['add'](_0x578c6b[0x0]),_0x358196['add'](_0x578c6b[0x1]));}}function _0x1b2275(_0xba578c,_0x34e84c){if(_0xba578c['author']['id']!==_0x34e84c['author']['id'])return null;const _0x2a4d1d=_0xfefb73['get'](_0xba578c)(_0xba578c,_0x34e84c,_0x5f002['get'](_0xba578c),_0x5f002['get'](_0x34e84c));if(!_0x2a4d1d)return null;return _0xfefb73['get'](_0x34e84c)(_0xba578c,_0x34e84c,_0x5f002['get'](_0xba578c),_0x5f002['get'](_0x34e84c))?_0x2a4d1d[0x1]['commentThread']&&_0x2a4d1d[0x1]['commentThread']['length']?null:_0x2a4d1d:null;}_0x28929d['size']&&this['_refreshSuggestionsChain'](_0x28929d);}['_refreshAttributeSuggestionsChain'](_0x34c905){if(0x0==_0x34c905['length'])return;const _0x384a7c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x105b0c=>'attribute'==_0x105b0c['type']&&_0x105b0c['_isDataLoaded']),_0x357e19=[],_0x46d4a0=new Map();for(const _0x910a98 of _0x384a7c){const _0x36cd02=_0x6bcbd8(_0x910a98['attributes']);_0x46d4a0['has'](_0x36cd02)||(_0x46d4a0['set'](_0x36cd02,_0x357e19['length']),_0x357e19['push']([]));const _0xa9db2=_0x46d4a0['get'](_0x36cd02);_0x357e19[_0xa9db2]['push'](_0x910a98);}!(function(){_0x357e19['sort']((_0xa3ece7,_0x4513b2)=>{const _0x564b6a=_0xa3ece7[0x0]['createdAt'],_0x53e80c=_0x4513b2[0x0]['createdAt'];return _0x564b6a==_0x53e80c?_0xa3ece7[0x0]['attributes']['groupId']<_0x4513b2[0x0]['attributes']['groupId']?-0x1:0x1:_0x564b6a<_0x53e80c?-0x1:0x1;});for(const _0x21c706 of _0x357e19)_0x21c706['sort']((_0x57838d,_0x144b8a)=>_0x57838d['id']<_0x144b8a['id']?-0x1:0x1);}());for(let _0xb94b52=0x0;_0xb94b52<_0x357e19['length'];_0xb94b52++){if(0x0==_0x357e19[_0xb94b52]['length'])continue;const _0x5b1e73=[];for(let _0x5b34a6=_0xb94b52+0x1;_0x5b34a6<_0x357e19['length'];_0x5b34a6++)0x0!=_0x357e19[_0x5b34a6]['length']&&_0x5e058b(_0x357e19[_0xb94b52],_0x357e19[_0x5b34a6])&&_0x5b1e73['push'](_0x5b34a6);for(const _0x38b0ab of _0x5b1e73)_0x357e19[_0xb94b52]=_0x357e19[_0xb94b52]['concat'](_0x357e19[_0x38b0ab]),_0x357e19[_0x38b0ab]=[];}for(const _0x191b55 of _0x357e19)for(let _0x21f7ad=0x0;_0x21f7ad<_0x191b55['length'];_0x21f7ad++){const _0x46eb8b=_0x191b55[_0x21f7ad+0x1]||null;_0x191b55[_0x21f7ad]['next']!==_0x46eb8b&&(_0x191b55[_0x21f7ad]['next']=_0x46eb8b);}for(const _0x85a9dd of _0x357e19)for(let _0x295e88=0x0;_0x295e88<_0x85a9dd['length'];_0x295e88++){const _0x3e04ff=_0x85a9dd[_0x295e88-0x1]||null;_0x85a9dd[_0x295e88]['previous']!==_0x3e04ff&&(_0x85a9dd[_0x295e88]['previous']=_0x3e04ff);}function _0x5e058b(_0x246d1f,_0x50db46){if(_0x246d1f[0x0]['attributes']['groupId']!==_0x50db46[0x0]['attributes']['groupId']&&_0x246d1f[0x0]['author']!==_0x50db46[0x0]['author'])return!0x1;if(!function(_0x1170d2,_0x3e4f93){if(!_0x1170d2['hasComments']&&!_0x3e4f93['hasComments'])return!0x0;if(_0x1170d2['hasComments']&&_0x3e4f93['hasComments'])return!0x1;if(_0x1170d2['hasComments']&&_0x3e4f93['createdAt']<_0x1170d2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e4f93['hasComments']&&_0x1170d2['createdAt']<_0x3e4f93['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x246d1f[0x0],_0x50db46[0x0]))return!0x1;const _0x1bb575=Ft(_0x246d1f[0x0]['attributes'],'groupId'),_0x21f281=Ft(_0x50db46[0x0]['attributes'],'groupId');if(!_0x2949db(_0x1bb575,_0x21f281))return!0x1;return!!_0x246d1f['every'](_0x30465b=>_0x50db46['some'](_0x236653=>_0x30465b['getFirstRange']()['isEqual'](_0x236653['getFirstRange']())))&&_0x50db46['every'](_0x228aad=>_0x246d1f['some'](_0x39d85b=>_0x228aad['getFirstRange']()['isEqual'](_0x39d85b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5bd8d8){const _0x192429=Array['from'](_0x5bd8d8),_0x9872d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f8920=_0x9872d4['filter'](_0x37a1a0=>!_0x5bd8d8['has'](_0x37a1a0)),_0x393c1a=new Map(_0x192429['map'](_0x45f3bf=>[_0x45f3bf,this['_suggestionFactory']['getSuggestionCallback'](_0x45f3bf['type'],_0x45f3bf['subType'],'join')])),_0x2d22ac=new Map(_0x9872d4['map'](_0x4cd853=>[_0x4cd853,_0x4cd853['getRanges']()]));for(let _0x19be2a=0x0;_0x19be2a<_0x192429['length'];_0x19be2a++){if(_0x514561(this,_0x192429[_0x19be2a],_0x192429,_0x19be2a+0x1))return!0x0;}for(let _0x3b9046=0x0;_0x3b9046<_0x192429['length'];_0x3b9046++){if(_0x514561(this,_0x192429[_0x3b9046],_0x4f8920,0x0))return!0x0;}return!0x1;function _0x514561(_0x5c31ca,_0x916e,_0x447f0e,_0x41dea3){for(let _0x1583b8=_0x41dea3;_0x1583b8<_0x447f0e['length'];_0x1583b8++){const _0x5935fc=_0x447f0e[_0x1583b8];if(_0x5935fc['type']!==_0x916e['type']||_0x5935fc['author']['id']!==_0x916e['author']['id']||_0x5935fc['subType']!==_0x916e['subType'])continue;if(!Qt(_0x916e,_0x5935fc))continue;if('attribute'==_0x916e['type']&&_0x916e['data']['oldValue']!=_0x5935fc['data']['oldValue'])continue;if('attribute'==_0x916e['type']&&_0x5c31ca['_isBlockAttribute'](_0x916e['data']['key']))continue;if('formatBlock'==_0x916e['type']){const _0x3fd66c=_0x5c31ca['editor']['model'],_0x1bf498=_0x916e['getContainedElement']();if(_0x1bf498&&(_0x3fd66c['schema']['isObject'](_0x1bf498)||_0x3fd66c['schema']['isLimit'](_0x1bf498)))continue;}const _0x28cc10=_0x393c1a['get'](_0x916e),_0x29f3b1=_0x2d22ac['get'](_0x916e),_0x3bf3ff=_0x2d22ac['get'](_0x5935fc),_0x12854d=_0x916e['commentThread']&&_0x916e['commentThread']['length'],_0x3a3331=_0x5935fc['commentThread']&&_0x5935fc['commentThread']['length'];if(!_0x12854d&&_0x28cc10(_0x3bf3ff,_0x29f3b1))return _0x5c31ca['_joinSuggestions'](_0x5935fc,_0x916e),_0x2d22ac['delete'](_0x916e),!0x0;if(!_0x3a3331&&_0x28cc10(_0x29f3b1,_0x3bf3ff))return _0x5c31ca['_joinSuggestions'](_0x916e,_0x5935fc),_0x2d22ac['delete'](_0x5935fc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3bc5c7,_0x3154a8){if(_0x3bc5c7['isMultiRange']){for(const _0x502bc2 of _0x3154a8['getRanges']())_0x3bc5c7['addRange'](_0x502bc2);}else{const _0x36407b=_0x3154a8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3bc5c7,this['_model']['createRange'](_0x3bc5c7['getFirstRange']()['start'],_0x36407b));}_0x3154a8['removeMarkers']();}['_getMarkerAnnouncementText'](_0xf4fca1,_0x268349,_0x2601b7){const _0x27bdb8=_0xf4fca1['startsWith']('format')||_0xf4fca1['startsWith']('attribute')?'FORMATTING':_0xf4fca1['toUpperCase']();return c(this['editor']['locale'],_0x268349+'_'+_0x27bdb8+'_SUGGESTION_ANNOUNCEMENT',_0x2601b7);}['_initAriaMarkerChangeAnnouncements'](){const _0x160ed0=this['editor'];if(!_0x160ed0['ui'])return;const {ariaLiveAnnouncer:_0x145d57}=_0x160ed0['ui'];_0x2a5fde(this['_model'],({left:_0xc764d3,entered:_0x1e30a4})=>{for(const _0x3fb5bf of _0xc764d3){const {group:_0x457a6c,type:_0x18e083}=this['_splitMarkerName'](_0x3fb5bf['name']);if('suggestion'===_0x457a6c){_0x145d57['announce'](this['_getMarkerAnnouncementText'](_0x18e083,'LEAVE'));break;}}for(const _0x3985b0 of _0x1e30a4){const {group:_0x2cf8ea,type:_0x1a02d8}=this['_splitMarkerName'](_0x3985b0['name']);if('suggestion'===_0x2cf8ea){_0x145d57['announce'](this['_getMarkerAnnouncementText'](_0x1a02d8,'ENTER',_0x307200(_0x16187e)));break;}}});}['_processAttributeChanges'](_0x35ae47){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4b62b9=this['editor'],_0x3b96c7=_0x4b62b9['model']['document']['differ']['getChanges']();if(0x0==_0x3b96c7['length'])return!0x1;const _0x15cff5=[],_0x3ece54=_0x3b96c7['filter'](_0x13707b=>'attribute'==_0x13707b['type']),_0x1e9cd3=_0x3b96c7['filter'](_0x1b9276=>'insert'==_0x1b9276['type']&&'$text'!=_0x1b9276['name']),_0x56628d=_0x3b96c7['filter'](_0xdc3748=>'remove'==_0xdc3748['type']&&'$text'!=_0xdc3748['name']);for(const _0x1f2ec1 of _0x3ece54)_0x15cff5['push']({'key':_0x1f2ec1['attributeKey'],'newValue':_0x1f2ec1['attributeNewValue'],'oldValue':_0x1f2ec1['attributeOldValue'],'range':qt(_0x1f2ec1['range'],_0x4b62b9['model'])});for(const _0xb2f587 of _0x1e9cd3){const _0x2f1ab5=_0x56628d['find'](_0x4e3a59=>_0x4e3a59['position']['isEqual'](_0xb2f587['position']));_0x2f1ab5&&_0x15cff5['push']({'key':u,'newValue':_0xb2f587['name'],'oldValue':_0x2f1ab5['name'],'range':_0x4b62b9['model']['createRangeOn'](_0xb2f587['position']['nodeAfter'])});}return 0x0!=_0x15cff5['length']&&this['_reduceExistingSuggestions'](_0x35ae47,_0x15cff5);}['_processAttributeSuggestions'](_0x171c83){let _0x3a381c=!0x1;const _0x465e2b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b6b10=>_0x3b6b10['data']['newRange']&&_0x3b6b10['name']['startsWith']('suggestion:attribute:'));for(const _0x407162 of _0x465e2b){const {subType:_0x5a8da7,id:_0x5c02b8}=this['_splitMarkerName'](_0x407162['name']),_0x45e084=_0x5a8da7['split']('|')[0x0];for(const _0x2f2a06 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f2a06['id']!=_0x5c02b8&&'attribute'==_0x2f2a06['type']&&_0x2f2a06['data']&&_0x2f2a06['data']['key']==_0x45e084&&_0x2f2a06['getFirstRange']()['isIntersecting'](_0x407162['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f2a06,_0x407162['data']['newRange'],_0x171c83),_0x3a381c=!0x0);}return _0x3a381c;}['_recordAttributeChanges'](_0xad0a99){this['_recordAttributeSuggestions']=!0x0,_0xad0a99();}['_isRegisteredAttribute'](_0x2850bd){const _0x4021f7=this['_isBlockAttribute'](_0x2850bd),_0x10b65b=this['_inlineAttributeKeys']['has'](_0x2850bd);return _0x4021f7||_0x10b65b;}['_reduceExistingSuggestions'](_0x30494d,_0x18b0f8){if(0x0==_0x18b0f8['length'])return!0x1;let _0x5a47aa=!0x1;for(const _0xdd1756 of _0x18b0f8){const _0x33c6a8=this['_findSuggestions'](_0xdd1756['range'],'attribute')['filter'](_0x24b6a3=>!_0x24b6a3['meta']['isNextTo'])['map'](_0x17f4c6=>_0x17f4c6['suggestion']),_0x2da9ad=_0x6bcbd8({'newValue':_0xdd1756['newValue']});_0x33c6a8['filter'](_0x5c342f=>{const [_0x1ca929,_0x41a72b]=_0x5c342f['subType']['split']('|');return _0x1ca929==_0xdd1756['key']&&_0x41a72b!=_0x2da9ad;})['forEach'](_0x3cada9=>{this['_reduceSuggestionAttributeRange'](_0x3cada9,_0xdd1756['range'],_0x30494d),_0x5a47aa=!0x0;});}return _0x5a47aa;}['_reduceSuggestionAttributeRange'](_0x43b599,_0xa58980,_0x1aaeb1){const _0x1cf1b1=_0x43b599['getFirstRange']()['getDifference'](_0xa58980);0x0!==_0x1cf1b1['length']?0x1!==_0x1cf1b1['length']?this['_breakSuggestionMarker'](_0x43b599,_0xa58980['start'],_0xa58980['end']):this['_setSuggestionRange'](_0x43b599,_0x1cf1b1[0x0]):_0x1aaeb1['removeMarker'](_0x43b599['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x415235){this['_editor']=_0x415235,this['_model']=_0x415235['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c6a62,_0x29390e,_0x3042b8,_0x569175,_0x542420,_0x43e097){return new o(this['_model'],{'type':_0x3c6a62,'subType':_0x29390e,'id':_0x3042b8,'author':_0x569175,'creator':_0x569175,'attributes':_0x542420,'onAttributesChange':_0x43e097,'onAccept':(..._0xd2666a)=>this['getSuggestionCallback'](_0x3c6a62,_0x29390e,'accept')(..._0xd2666a),'onDiscard':(..._0x573c78)=>this['getSuggestionCallback'](_0x3c6a62,_0x29390e,'discard')(..._0x573c78)});}['registerCustomCallback'](_0x45354a,_0x3fec62,_0x3fb0b3,_0x56b80b){const _0x32bd21=_0x45354a+':'+_0x3fec62+':'+_0x3fb0b3;this['_customCallbacks']['set'](_0x32bd21,_0x56b80b);}['getSuggestionCallback'](_0x599a5e,_0x51c013,_0xeea9ca){const _0x2e1d18=_0x599a5e+':'+_0x51c013+':'+_0xeea9ca;return this['_customCallbacks']['get'](_0x2e1d18)||this['_defaultCallbacks']['get'](_0x599a5e+':'+_0xeea9ca);}['_registerDefaultCallbacks'](){const _0x37b032=()=>!0x1,_0xc14b6e=_0x8f34b1=>{_0x8f34b1['sort']((_0x123e77,_0xfc9799)=>_0x123e77['start']['isBefore'](_0xfc9799['start'])?0x1:-0x1),this['_model']['change'](_0x1c74f3=>{for(const _0x25f879 of _0x8f34b1){let _0x2b4225;_0x2b4225=_0x25f879['end']['isAtEnd']&&_0x25f879['end']['parent']==_0x25f879['start']['nodeAfter']?_0x1c74f3['createSelection'](_0x25f879['start']['nodeAfter'],'on'):_0x1c74f3['createSelection'](_0x25f879),this['_model']['deleteContent'](_0x2b4225,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x530aef=(_0x1996f6,_0x375e22)=>{_0x375e22&&this['_model']['change'](_0x33770e=>{const {commandName:_0x2806fa,commandParams:_0x27262e=[]}=_0x375e22,_0x5271d6=_0x1996f6['map'](_0x30a235=>(Lt(_0x30a235)&&(_0x30a235=this['_model']['createRange'](_0x30a235['end'])),_0x30a235))['filter'](_0x208bcc=>'$graveyard'!==_0x208bcc['root']['rootName']);if(_0x5271d6['length']<0x1)return;const _0x18145f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x576872=>_0x5702ff['fromRange'](_0x576872));_0x33770e['setSelection'](_0x5271d6);for(const _0x27abd5 of this['_editor']['commands']['commands']())_0x27abd5['refresh']();_0x27262e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2806fa,..._0x27262e);const _0x333001=_0x18145f['filter'](_0x5f1205=>'$graveyard'!=_0x5f1205['root']['rootName']);_0x333001['length']>0x0&&_0x33770e['setSelection'](_0x333001);for(const _0x4aaaed of _0x18145f)_0x4aaaed['detach']();});},_0x5bfdd5=(_0x561a98,_0x45f56a)=>0x1==_0x561a98['length']&&0x1==_0x45f56a['length']&&_0x561a98[0x0]['end']['isEqual'](_0x45f56a[0x0]['start']),_0x3e4e68=(_0x11d010,_0x34cd52,_0x491083,_0x39523f)=>Wt(_0x11d010,_0x34cd52,_0x491083,_0x39523f)?[_0x11d010,_0x34cd52]:Wt(_0x34cd52,_0x11d010,_0x39523f,_0x491083)?[_0x34cd52,_0x11d010]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x37b032),this['_defaultCallbacks']['set']('insertion:discard',_0xc14b6e),this['_defaultCallbacks']['set']('insertion:join',_0x5bfdd5),this['_defaultCallbacks']['set']('insertion:chain',_0x3e4e68),this['_defaultCallbacks']['set']('deletion:accept',_0xc14b6e),this['_defaultCallbacks']['set']('deletion:discard',_0x37b032),this['_defaultCallbacks']['set']('deletion:join',_0x5bfdd5),this['_defaultCallbacks']['set']('deletion:chain',_0x3e4e68),this['_defaultCallbacks']['set']('formatInline:accept',_0x530aef),this['_defaultCallbacks']['set']('formatInline:discard',_0x37b032),this['_defaultCallbacks']['set']('formatInline:join',_0x5bfdd5),this['_defaultCallbacks']['set']('formatInline:chain',_0x37b032),this['_defaultCallbacks']['set']('formatBlock:accept',_0x530aef),this['_defaultCallbacks']['set']('formatBlock:discard',_0x37b032),this['_defaultCallbacks']['set']('formatBlock:join',_0x5bfdd5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x37b032),this['_defaultCallbacks']['set']('attribute:accept',_0x37b032),this['_defaultCallbacks']['set']('attribute:discard',(_0x1fd33b,_0x236d67)=>{if(!_0x236d67)return;const _0x177378=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x48ce09=>{if(_0x236d67['key']==u)for(const _0x48c83d of _0x1fd33b){const _0x1c1293=_0x48c83d['start']['nodeAfter'],_0x286b10=_0x236d67['oldValue'];_0x48ce09['rename'](_0x1c1293,_0x286b10);}else{if(_0x177378['_isBlockAttribute'](_0x236d67['key'])){for(const _0x45cd13 of _0x1fd33b)void 0x0!==_0x236d67['oldValue']?_0x48ce09['setAttribute'](_0x236d67['key'],_0x236d67['oldValue'],_0x45cd13['start']['nodeAfter']):_0x48ce09['removeAttribute'](_0x236d67['key'],_0x45cd13['start']['nodeAfter']);}else{for(const _0x211aa1 of _0x1fd33b)_0x236d67['oldValue']?_0x48ce09['setAttribute'](_0x236d67['key'],_0x236d67['oldValue'],_0x211aa1):_0x48ce09['removeAttribute'](_0x236d67['key'],_0x211aa1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5bfdd5);}}function Gt(_0x505f99,_0x3e4e7f,_0x544bef){for(const _0x1618a2 of _0x3e4e7f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1618a2['root']==_0x1618a2)return!0x1;if(!_0x544bef['containsItem'](_0x1618a2))return!0x1;if(_0x505f99['isObject'](_0x1618a2)||_0x505f99['isLimit'](_0x1618a2))return!0x0;}return!0x1;}function Lt(_0x1f1f09){return _0x1f1f09['end']['parent']==_0x1f1f09['start']['nodeAfter']&&_0x1f1f09['end']['isAtStart'];}function Jt(_0x54d8b2,_0x38ceb1,_0x4a780b,_0x318334){const _0x3f6347=_0xbc3971=>!_0xbc3971['item']['is']('$textProxy')&&!_0x318334['isObject'](_0xbc3971['item']),_0x393116=_0x54d8b2['start']['getLastMatchingPosition'](_0x3f6347),_0x140349=_0x54d8b2['end']['getLastMatchingPosition'](_0x3f6347,{'direction':'backward'});return(!_0x54d8b2['start']['isEqual'](_0x393116)||!_0x54d8b2['end']['isEqual'](_0x140349))&&(_0x393116['isBefore'](_0x140349)?_0x4a780b['updateMarker'](_0x38ceb1,{'range':_0x4a780b['createRange'](_0x393116,_0x140349)}):_0x4a780b['removeMarker'](_0x38ceb1),!0x0);}function Kt(_0x590236){return _0x6bcbd8(_0x590236);}function Ht(_0x5466ef){const _0x320cd8=_0x5466ef['start']['nodeAfter'];return _0x320cd8&&_0x320cd8['is']('element');}function qt(_0x22452c,_0x4fd3b5){return null==_0x22452c['end']['nodeBefore']&&_0x22452c['end']['parent']==_0x22452c['start']['nodeAfter']?zt(_0x22452c['start']['nodeAfter'],_0x4fd3b5):_0x22452c;}function zt(_0x1a91cf,_0x426fc6){const _0x1cebec=_0x426fc6['schema']['isObject'](_0x1a91cf)||_0x426fc6['schema']['isSelectable'](_0x1a91cf);return _0x426fc6['createRange'](_0x426fc6['createPositionAt'](_0x1a91cf,'before'),_0x1cebec?_0x426fc6['createPositionAfter'](_0x1a91cf):_0x426fc6['createPositionAt'](_0x1a91cf,'end'));}function Wt(_0x5cbd9f,_0x20017b,_0x280b64,_0x19cbc1){return!!Qt(_0x5cbd9f,_0x20017b)&&_0x280b64['end']['isEqual'](_0x19cbc1['start']);}function Qt(_0x6b1730,_0x505235){if(!_0x6b1730['_isDataLoaded']||!_0x505235['_isDataLoaded'])return!0x1;const _0x188027=new Set(Object['keys'](_0x6b1730['attributes'])),_0x3b25fb=new Set(Object['keys'](_0x505235['attributes']));if(_0x188027['delete']('groupId'),_0x3b25fb['delete']('groupId'),0x0==_0x188027['size']&&0x0==_0x3b25fb['size'])return!0x0;if(_0x188027['size']!=_0x3b25fb['size'])return!0x1;const _0x19eece={..._0x6b1730['attributes']},_0x1417ec={..._0x505235['attributes']};return delete _0x19eece['groupId'],delete _0x1417ec['groupId'],JSON['stringify'](_0x19eece)==JSON['stringify'](_0x1417ec);}function Xt(_0x4b25c5,_0x4aa178){const _0x208c91=Yt(_0x4b25c5['attributes']),_0x3e76ef=Yt(_0x4aa178);if(!_0x4b25c5['_isDataLoaded'])return!0x1;for(const _0x35054d of Object['keys'](_0x3e76ef))if(!_0x2949db(_0x208c91[_0x35054d],_0x3e76ef[_0x35054d]))return!0x1;return!0x0;}function Yt(_0xd0fbd){const _0x51a0d6=Object['assign']({},_0xd0fbd);return delete _0x51a0d6['skipNestingCheck'],delete _0x51a0d6['tablePasteChainId'],_0x51a0d6;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x55eb28(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1581aa,_0x3ca2e9,_0x3bae06,_0x3acc7c){super(),this['model']=_0x3ca2e9,this['view']=_0x3bae06,this['commentThreadController']=_0x3acc7c,this['_editor']=_0x1581aa,this['_acceptCommand']=_0x1581aa['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1581aa['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ff405,_0xff67fb)=>_0x3ff405||_0xff67fb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x54dc94=>_0x54dc94&&this['_editor']['model']['canEditAt'](_0x3ca2e9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33a129=>_0x33a129&&this['_editor']['model']['canEditAt'](_0x3ca2e9['getRanges']())),this['_pendingAction']=null,_0x3bae06['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3bae06,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3bae06,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3bae06,'change:isDirty',()=>{_0x3bae06['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 _0x5d8a76=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d8a76);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2de829{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x180716,_0x5ed470,_0x2dc35b,_0x364c1b){super(_0x180716),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5f14c1(_0x180716,c(_0x180716,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ed470['authoredAt']),this['bind']('authoredAt')['to'](_0x5ed470),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',_0x5ed470,'authoredAt',this,'descriptionParts',(_0x292643,_0x334a9e,_0x4a8ac4)=>{const _0x45e56d=_0x4a8ac4['map'](_0x309fca=>ls(_0x309fca['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x292643-0x1,_0x5ed470['author']['name'],_0x334a9e?_0x364c1b['formatDateTime'](_0x334a9e):'',new DOMParser()['parseFromString'](_0x45e56d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5e3fca(),this['focusTracker']=new _0x1ce46a(),this['keystrokes']=new _0x2983da(),this['focusCycler']=new _0x4e7d3a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5e4ea9=>_0x5e4ea9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ed470,this['_localUser']=_0x2dc35b,this['_config']=_0x364c1b,_0x364c1b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2bcf38(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x321f75}=this['_config'];this['commentsListView']=new _0x321f75(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',_0x5c7202=>_0x5c7202+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x31d5cb,_0x242572)=>_0x31d5cb||!!_0x242572);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xbc9916}=this['_config'],_0x13de8c=new _0xbc9916(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3a963=_0x13de8c['commentInputView'];return _0x13de8c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3a963,'value',(_0x383140,_0x41e13a,_0x921a85)=>!!_0x921a85||_0x383140&&!_0x41e13a),_0x3a963['on']('submit',(_0x4cfcb9,_0x48dc54)=>{this['fire']('addComment',_0x48dc54),_0x3a963['editor']['setData']('');}),_0x3a963['on']('cancel',()=>this['focus']()),_0x3a963['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x13de8c;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x76f1ba,_0x21160e,_0x34da2f,_0x150861){super(_0x76f1ba,_0x21160e,_0x34da2f,_0x150861),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3879d6=>_0x3879d6&&_0x3879d6[0x0]?_0x3879d6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1fb8d6,_0x3447bd)=>{let _0x555e7c='';for(const _0x5853b7 of _0x1fb8d6)_0x555e7c+='<p>'+ls(_0x5853b7['content'],_0x5853b7['color'])+'</p>';return _0x3447bd?_0x555e7c:ti(_0x555e7c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x150861['SuggestionView'](_0x76f1ba,_0x21160e,{'formatDateTime':_0x150861['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 _0x484852=this['bindTemplate'],_0x4080a0=[this['suggestionView']];return this['commentsListView']&&_0x4080a0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4080a0['push'](this['commentThreadInputView']),_0x4080a0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x484852['if']('isActive','ck-suggestion-wrapper--active'),_0x484852['to']('type',_0x5488c1=>'ck-suggestion-'+_0x5488c1),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':_0x484852['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4080a0};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2de829{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1bae14,_0x39ce80,_0x52f735){super(_0x1bae14),this['_model']=_0x39ce80,this['_config']=_0x52f735,this['set']('description',''),this['bind']('authoredAt')['to'](_0x39ce80),this['acceptButton']=this['_createButton'](c(_0x1bae14,'Accept\x20suggestion'),_0x5d4ded,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1bae14,'Discard\x20suggestion'),_0x3aaccb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2faec1(_0x1bae14,_0x39ce80['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5e3fca([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1ce46a(),this['keystrokes']=new _0x2983da(),this['focusCycler']=new _0x4e7d3a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1046e7=>_0x1046e7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12f695=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12f695['innerHTML']=this['description'],this['on']('change:description',(_0x3f5a76,_0x3876b1,_0x184c90)=>{_0x12f695['innerHTML']=_0x184c90;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3bf51b=this['bindTemplate'],_0x38276b=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3bf51b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3bf51b['to']('authoredAt',_0x308ace=>this['_config']['formatDateTime'](_0x308ace))}]}]},{'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']&&_0x38276b['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':_0x38276b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x59839c,_0x261517,_0x3274e7,_0xc8492f,_0x52b911){const _0x5a5a68=new _0x902b03(this['locale']);return _0x5a5a68['set']({'label':_0x59839c,'icon':_0x261517,'tooltip':!0x0,'tooltipPosition':_0x52b911}),_0x5a5a68['extendTemplate']({'attributes':{'class':_0x3274e7}}),_0x5a5a68['on']('execute',()=>{this['fire'](_0xc8492f,this['_model']['id']);}),_0x5a5a68;}['_setupKeyboardNavigation'](){const _0x3c5851=this['element'];this['keystrokes']['listenTo'](_0x3c5851);for(const _0x153f7d of this['focusables'])this['focusTracker']['add'](_0x153f7d['element']),this['keystrokes']['listenTo'](_0x153f7d['element']);this['keystrokes']['set']('enter',(_0x475d38,_0x445a01)=>{_0x3c5851===_0x475d38['target']&&(this['focusCycler']['focusFirst'](),_0x445a01());}),this['keystrokes']['set']('esc',(_0x5b2d68,_0x53b339)=>{_0x3c5851!==_0x5b2d68['target']&&(this['focus'](),_0x53b339());});}}class d extends _0x49d3a0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x23fc75,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29fdf8){super(_0x29fdf8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31a7e3=this['editor']['config'];_0x31a7e3['define']('trackChanges.SuggestionThreadView',fe),_0x31a7e3['define']('trackChanges.SuggestionView',we),_0x31a7e3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31a7e3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x224def,_0x55eaa4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x516dd9,_0x330f69]of this['_handleControllerBuffer']){const _0xf196f8=this['_suggestionToController']['has'](_0x516dd9);_0xf196f8||_0x330f69?_0xf196f8&&_0x330f69&&this['_destroyController'](_0x516dd9):this['_initializeController'](_0x516dd9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x224def,_0x55eaa4);}['init'](){const _0x5ea3b9=this['editor'],_0x35ae03=_0x5ea3b9['plugins']['get']('TrackChangesEditing'),_0x1c198f=_0x5ea3b9['plugins']['get']('Annotations'),_0x4538b4=_0x5ea3b9['plugins']['get']('EditorAnnotations'),_0xe44166=_0x5ea3b9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4538b4['addSourceCollector'](()=>{const _0x410c78=[];for(const [_0x804be,_0x168455]of Array['from'](this['_suggestionToController'])){const _0x107090=_0x804be['getAllAdjacentSuggestions'](),_0x10b44a=[];for(const _0x48eea3 of _0x107090){if(!_0x48eea3['isInContent'])continue;if(_0x48eea3['isMultiRange']){_0x10b44a['push'](..._0x48eea3['getRanges']());continue;}const _0x467d79=_0x48eea3['getFirstRange']();if(_0x10b44a['length']>0x0){const _0x59b452=_0x10b44a[0x0]['getJoined'](_0x467d79);if(_0x59b452){_0x10b44a[0x0]=_0x59b452;continue;}}_0x10b44a['push'](_0x467d79);}_0x410c78['push']([_0x168455['view'],_0x10b44a]);}return _0x410c78;}),this['listenTo'](_0x35ae03,'suggestionLoaded',(_0x1c6c04,_0x48c9c8)=>{this['listenTo'](_0x48c9c8,'change:previous',(_0x49c445,_0x434e06,_0x39f011,_0x440ebd)=>{_0x48c9c8['isInContent']&&(null==_0x39f011?(this['_updateController'](_0x440ebd['head']),this['_handleSuggestionControllerDelayed'](_0x48c9c8,!0x1)):(this['_updateController'](_0x39f011['head']),null==_0x440ebd&&this['_handleSuggestionControllerDelayed'](_0x48c9c8,!0x0)));}),null!==_0x48c9c8['previous']?this['_updateController'](_0x48c9c8['head']):this['_handleSuggestionControllerDelayed'](_0x48c9c8,!0x1);}),this['listenTo'](_0x35ae03,'suggestionUnloaded',(_0x18d742,_0x75f279,_0xad1783)=>{this['stopListening'](_0x75f279,'change:previous'),this['_handleControllerBuffer']['delete'](_0x75f279),this['_suggestionToController']['has'](_0x75f279)&&this['_destroyController'](_0x75f279),_0xad1783&&this['_updateController'](_0xad1783['head']);}),this['listenTo'](_0x35ae03,'suggestionChanged',(_0x1a7c4f,_0x296a22)=>{this['_updateController'](_0x296a22);}),this['listenTo'](_0x1c198f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xe44166,'addComment',(_0x2d5ad6,{threadId:_0x3a5dee,isFromAdapter:_0x3d958d})=>{if(_0x3d958d||!_0x35ae03['hasSuggestion'](_0x3a5dee))return;const _0x2747c4=_0x35ae03['getSuggestion'](_0x3a5dee);this['_suggestionToController']['get'](_0x2747c4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55aebf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23ad9b;for(const _0x1cf1d8 in _0x55aebf){const _0xc15414=_0x1cf1d8,_0xb3164c=_0x55aebf[_0xc15414];if('trackChangesLicenseKeyValid'==_0xb3164c||'trackChangesLicenseKeyInvalid'==_0xb3164c||'trackChangesLicenseKeyExpired'==_0xb3164c||'trackChangesLicenseKeyDomainLimit'==_0xb3164c||'trackChangesLicenseKeyNotAllowed'==_0xb3164c||'trackChangesLicenseKeyEvaluationLimit'==_0xb3164c||'trackChangesLicenseKeyTrialLimit'==_0xb3164c||'trackChangesLicenseKeyUsageLimit'==_0xb3164c){delete _0x55aebf[_0xc15414],_0x23ad9b=_0xb3164c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23ad9b&&_0x55aebf['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23ad9b&&_0x55aebf['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23ad9b&&_0x55aebf['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23ad9b&&_0x55aebf['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x30665c=this['editor']['plugins']['get']('Annotations'),_0x3ee8ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19e4dd=Array['from'](_0x30665c['activeAnnotations'],_0x1c7c5e=>_0x1c7c5e['innerView'])['filter'](_0x32c93b=>this['_viewToController']['has'](_0x32c93b)),_0x4f24eb=[];for(const _0x201613 of _0x19e4dd){const _0x478bea=this['_viewToController']['get'](_0x201613)['model']['getAllAdjacentSuggestions']();_0x4f24eb['push'](..._0x478bea['reduce']((_0x2d621b,_0x3cba21)=>[..._0x2d621b,..._0x3cba21['getMarkerNames']()],[]));}_0x3ee8ab['activeMarkers']=_0x4f24eb;}['_addUIComponentsToFactory'](){const _0xc770e9=this['editor'],_0x3bec71=_0xc770e9['locale'],_0x355253=c(_0x3bec71,'Track\x20changes'),_0x8d6b82=new _0x2469a5([{'type':'switchbutton','model':new _0x2e39d6({'withText':!0x0,'isToggleable':!0x0,'label':_0x355253,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xc770e9['plugins']['has']('TrackChangesPreview')&&_0x8d6b82['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e39d6({'withText':!0x0,'label':c(_0x3bec71,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25daeb of _0x8d6b82)if(ke(_0x25daeb)){const _0xb216a4=_0xc770e9['commands']['get'](_0x25daeb['model']['commandName']);_0x25daeb['model']['bind']('isOn','isEnabled')['to'](_0xb216a4,'value','isEnabled');}_0xc770e9['ui']['componentFactory']['add']('trackChanges',_0x2e919a=>this['_createToolbarButton'](_0x2e919a,_0x8d6b82,_0x355253)),_0xc770e9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15f72d=>this['_createMenuBarMenu'](_0x15f72d,_0x8d6b82,_0x355253));}['_createToolbarButton'](_0x489147,_0x54cb5a,_0x5886f1){const _0x3e757c=_0x47b20b(_0x489147,_0x510b2d),_0x1dea4d=this['editor']['commands']['get']('trackChanges');_0x3e757c['buttonView']['set']({'tooltip':_0x5886f1,'label':_0x5886f1,'icon':_0x2ead64}),_0x3e757c['buttonView']['bind']('isOn')['to'](_0x1dea4d,'value'),_0x3e757c['buttonView']['on']('execute',()=>{_0x1dea4d['execute'](),this['editor']['editing']['view']['focus']();}),_0x302778(_0x3e757c,_0x54cb5a,{'role':'menu'});const _0x13e93a=[];for(const _0x57729e of _0x54cb5a)ke(_0x57729e)&&_0x13e93a['push'](this['editor']['commands']['get'](_0x57729e['model']['commandName']));const _0x15218a=_0x3e757c['buttonView'];return _0x15218a['actionView']['unbind']('isEnabled'),_0x15218a['arrowView']['unbind']('isEnabled'),_0x15218a['actionView']['bind']('isEnabled')['to'](_0x1dea4d,'isEnabled'),_0x15218a['arrowView']['bind']('isEnabled')['toMany'](_0x13e93a,'isEnabled',(..._0x57094f)=>_0x57094f['some'](_0xc1c83c=>_0xc1c83c)),_0x3e757c['on']('execute',_0x1aac3f=>{this['editor']['execute'](_0x1aac3f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e757c;}['_createMenuBarMenu'](_0x9ef3ce,_0x26894e,_0xbfd7c2){const _0x3085dc=new _0x27ca8d(_0x9ef3ce),_0x153a58=this['editor']['commands']['get']('trackChanges');_0x3085dc['buttonView']['set']({'label':_0xbfd7c2,'icon':_0x2ead64});const _0x369880=new _0x3bd327(_0x9ef3ce);for(const _0x22baf5 of _0x26894e){if('separator'==_0x22baf5['type']){_0x369880['items']['add'](new _0x4b9123(_0x9ef3ce));continue;}const _0x47fbc3=new _0x38df9a(_0x9ef3ce,_0x3085dc),_0x121a84=new _0xea57e4(_0x9ef3ce),_0x52f10e=_0x22baf5['model'];_0x121a84['bind'](...Object['keys'](_0x52f10e))['to'](_0x52f10e),_0x121a84['delegate']('execute')['to'](_0x3085dc),_0x121a84['on']('execute',()=>{this['editor']['execute'](_0x52f10e['commandName']),this['editor']['editing']['view']['focus']();}),_0x47fbc3['children']['add'](_0x121a84),_0x369880['items']['add'](_0x47fbc3);}return _0x3085dc['bind']('isEnabled')['to'](_0x153a58,'isEnabled'),_0x3085dc['panelView']['children']['add'](_0x369880),_0x3085dc;}['_initializeController'](_0x4086e0){const _0x3390d9=this['editor'],_0x35fa48=_0x3390d9['config'],_0x14ba9a=_0x3390d9['plugins']['get']('Annotations'),_0x41445b=_0x3390d9['plugins']['get']('CommentsRepository'),_0x54cd15=_0x3390d9['plugins']['get']('EditorAnnotations'),_0x5ac4a4=_0x3390d9['plugins']['get'](_0x23fc75)['me'],_0x3ec99c=_0x35fa48['get']('trackChanges')['SuggestionThreadView'],_0x17010b=_0x35fa48['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b54e6,CommentThreadInputView:_0x4f61fe}=_0x3390d9['plugins']['get']('CommentsUI');let _0x47fb6c,_0x386bda,_0x4917f9;this['_annotationViews']['has'](_0x4086e0['id'])?(_0x386bda=this['_annotationViews']['get'](_0x4086e0['id']),_0x47fb6c=_0x386bda['mainView']):(_0x47fb6c=new _0x3ec99c(_0x3390d9['locale'],_0x4086e0,_0x5ac4a4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x35fa48['get']('comments.editorConfig'),'licenseKey':_0x35fa48['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x35fa48['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35fa48['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35fa48['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2ddcb8(_0x35fa48['get']('locale'),_0x3390d9['locale']),'CommentView':_0x35fa48['get']('comments')['CommentView'],'CommentsListView':_0x2b54e6,'CommentThreadInputView':_0x4f61fe,'SuggestionView':_0x17010b}),_0x47fb6c['suggestionView']['acceptButton']['on']('execute',()=>{_0x3390d9['editing']['view']['focus']();}),_0x47fb6c['suggestionView']['discardButton']['on']('execute',()=>{_0x3390d9['editing']['view']['focus']();}),_0x386bda=_0x14ba9a['createAnnotationView'](this['editor']['locale'],_0x47fb6c),_0x386bda['bind']('isDirty')['to'](_0x47fb6c,'isDirty'),_0x386bda['bind']('length')['to'](_0x47fb6c),_0x386bda['bind']('type')['to'](_0x47fb6c,'type',_0x487bf1=>'suggestion-'+_0x487bf1),_0x47fb6c['on']('escape',()=>{_0x4917f9['fire']('escape');}),this['_annotationViews']['set'](_0x4086e0['id'],_0x386bda));const _0x4f55e0=_0x41445b['createCommentThreadController'](_0x4086e0['commentThread'],_0x47fb6c),_0x335549=new pe(_0x3390d9,_0x4086e0,_0x47fb6c,_0x4f55e0),_0x1a10b2=_0x4086e0['getAllAdjacentSuggestions']()['filter'](_0x3ad9b6=>_0x3ad9b6['isInContent']);_0x47fb6c['descriptionParts']=_0x3390d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a10b2),this['_suggestionToController']['set'](_0x4086e0,_0x335549),this['_viewToController']['set'](_0x47fb6c,_0x335549),_0x4917f9=_0x14ba9a['createAnnotation']({'view':_0x386bda,'target':()=>{const _0x2114f8=[],_0x4ac413=_0x4086e0['getAllAdjacentSuggestions']()['filter'](_0x1e36f7=>_0x1e36f7['isInContent']);for(const _0x3394bd of _0x4ac413)_0x2114f8['push'](..._0x3394bd['getMarkers']());return _0x4c97e0(_0x3390d9['editing'],_0x2114f8);},'type':()=>'suggestion-'+_0x335549['view']['type']}),_0x41445b['_bindAnnotationToEditors'](_0x47fb6c,_0x4917f9),_0x14ba9a['add'](_0x4917f9),_0x54cd15['registerAnnotation'](_0x4917f9);}['_destroyController'](_0x3926fe){const _0x5716bf=this['editor']['plugins']['get']('CommentsRepository'),_0xc623f7=this['editor']['plugins']['get']('Annotations'),_0x57b295=this['_suggestionToController']['get'](_0x3926fe),_0x4138eb=_0x57b295['view'],_0x45b6d9=_0xc623f7['getByInnerView'](_0x4138eb);_0x5716bf['_unbindEditors'](_0x4138eb),_0x45b6d9&&_0xc623f7['remove'](_0x45b6d9),this['_suggestionToController']['delete'](_0x3926fe),this['_viewToController']['delete'](_0x4138eb),_0x57b295['destroy']();}['_updateController'](_0x2dfcd9){if(!_0x2dfcd9['isInContent']||!this['_suggestionToController']['has'](_0x2dfcd9))return;const _0x255599=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f27b0=this['_suggestionToController']['get'](_0x2dfcd9),_0x1a3a67=_0x2dfcd9['getAllAdjacentSuggestions']();_0x1f27b0['view']['descriptionParts']=_0x255599['descriptionFactory']['getDescriptions'](_0x1a3a67);}['destroy'](){for(const _0x53347f of this['_suggestionToController']['keys']())this['_destroyController'](_0x53347f);for(const _0x160515 of this['_annotationViews']['values']())_0x160515['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x419612){return'model'in _0x419612;}class k extends _0x49d3a0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x55610e){this['editor']['plugins']['get'](p)['adapter']=_0x55610e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x20a222){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x20a222);}['getSuggestions']({skipNotAttached:_0x3f4ace=!0x1,toJSON:_0x4a5817=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f4ace,'toJSON':_0x4a5817});}['getSuggestion'](_0x4bbda5){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4bbda5);}}const w=['Pagination'];class T extends _0x49d3a0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46519d=this['editor'];if(_0x46519d['config']['define']('trackChangesData.editorCreator',_0x49a526=>{const _0x6bb4de=_0x46519d['model']['document']['getRootNames']()['reduce']((_0x50b78c,_0x3f8e68)=>(_0x50b78c[_0x3f8e68]='',_0x50b78c),{});return _0x46519d['constructor']['create'](_0x6bb4de,_0x49a526);}),'function'!=typeof _0x46519d['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ed8a5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x6b9f4b){return N(this['editor'],!0x0,_0x6b9f4b);}['getDataWithDiscardedSuggestions'](_0x2e22cf){return N(this['editor'],!0x1,_0x2e22cf);}}class D extends _0x49d3a0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29ea63){function _0xf62bfe(_0x3ea33d){return _0x3ea33d['map'](_0x4c063c=>String['fromCharCode'](_0x4c063c))['join']('');}super(_0x29ea63),this['result']='end',_0x29ea63[_0xf62bfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf62bfe([0x76,0x69,0x65,0x77])][_0xf62bfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf62bfe([0x61,0x75,0x74,0x6f]),_0x29ea63[_0xf62bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xf62bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf62bfe([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xf62bfe([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xf62bfe([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x3f5202){return void 0x0!==_0x3f5202['getRootsAttributes'];}async function N(_0x3fced7,_0x54abec,_0x57b80f){const _0x4c45af=_0x1c3c87(_0x3fced7,w);_0x4c45af['plugins']['push'](p,D),_0x4c45af['rootsAttributes']=Ge(_0x3fced7)?_0x3fced7['getRootsAttributes']():void 0x0;const _0x2effbd=document['createDocumentFragment'](),_0x1faa06=_0x3fced7['config']['get']('trackChangesData')['editorCreator'],_0x563974=await _0x1faa06(_0x4c45af,()=>function(_0x3c2828){const _0x20c5dd=document['createElement']('div');return _0x3c2828['appendChild'](_0x20c5dd),_0x20c5dd;}(_0x2effbd));!function(_0x5c575b,_0x33c823){const _0x56fd22=_0x5c575b['model']['document']['getRootNames']()['reduce']((_0x1824b4,_0x1d975b)=>(_0x1824b4[_0x1d975b]=_0x5c575b['data']['get']({'rootName':_0x1d975b}),_0x1824b4),{}),_0x87e7df=_0x5c575b['plugins']['get']('Users')['users']['map'](_0x4a02d5=>({'id':_0x4a02d5['id'],'name':_0x4a02d5['name']})),_0x5ae7cc=_0x5c575b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3db2e9=_0x5c575b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x370ec6=_0x33c823['plugins']['get']('Users'),_0x1ee51b=_0x33c823['plugins']['get']('TrackChangesEditing'),_0x1da1ce=_0x33c823['plugins']['get']('CommentsRepository');for(const _0x497127 of _0x1da1ce['getCommentThreads']())_0x497127['remove']();for(const _0x251e10 of _0x87e7df)_0x370ec6['getUser'](_0x251e10['id'])||_0x370ec6['addUser'](_0x251e10);_0x370ec6['me']||_0x370ec6['useAnonymousUser']();for(const _0x10cbe4 of _0x3db2e9)_0x1da1ce['addCommentThread'](_0x10cbe4);for(const _0x5c8fd3 of _0x5ae7cc)_0x1ee51b['addSuggestionData'](_0x5c8fd3);_0x33c823['data']['set'](_0x56fd22);}(_0x3fced7,_0x563974),_0x563974['execute'](_0x54abec?'acceptAllSuggestions':'discardAllSuggestions');const _0xf0cdf5=Ge(_0x563974)?_0x563974['getFullData'](_0x57b80f):_0x563974['data']['get'](_0x57b80f);return await _0x563974['destroy'](),_0xf0cdf5;}class Me extends _0x2de829{['options'];constructor(_0x4e6cea,_0x4257a7){super(_0x4e6cea),this['options']=_0x4257a7,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x3bedfb,_0x2e3b97){if(!this['element'])return;const _0x4fed8e=[];for(const [_0x53bd15,_0x407e07]of _0x3bedfb){const _0x5355dd=document['createElement']('div');_0x5355dd['setAttribute']('data-ck-root-name',_0x53bd15),_0x5355dd['className']=_0x407e07['classes']+'\x20ck-track-changes-preview__root-container',_0x5355dd['innerHTML']=_0x407e07['content'],_0x4fed8e['push'](_0x5355dd);}_0x2e3b97(this['element'],_0x4fed8e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3f75d3{constructor(_0x17782d){super(_0x17782d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x575bb2=this['editor'],_0x29bddb=_0x575bb2['locale'],_0x698acd=_0x575bb2['plugins']['get']('Dialog');let _0x5855ab;const _0x894895=function(_0x20a0bd){const _0x5af00c={};if('editables'in _0x20a0bd['ui']['view']){for(const [_0x5c3c4b,_0x20b31c]of Object['entries'](_0x20a0bd['ui']['view']['editables']))_0x5af00c[_0x5c3c4b]=_0x20b31c['element'];}else _0x5af00c[_0x20a0bd['model']['document']['getRootNames']()[0x0]]=_0x20a0bd['ui']['view']['editable']['element'];return _0x5af00c;}(_0x575bb2),_0x493020=function(_0x260705){let _0x23c1ea=0x0;for(const _0x1de6e9 of Object['values'](_0x260705))_0x23c1ea=Math['max'](_0x23c1ea,_0x1de6e9['getBoundingClientRect']()['width']);let _0x10b6a5=0x0;for(const _0x31791a of Object['values'](_0x260705))_0x10b6a5+=_0x31791a['getBoundingClientRect']()['height'];const _0x5390dd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x54cd69=Math['min'](_0x10b6a5,_0x5390dd);return{'width':_0x23c1ea,'height':_0x54cd69};}(_0x894895);_0x698acd['show']({'id':'finalContentPreview','title':c(_0x29bddb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x29bddb,{'dialogRects':_0x493020}),'onHide':()=>{_0x5855ab['detachFromDom']();},'onShow':()=>{_0x575bb2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2e1e0b=>{const _0x403153=this['_standarizeRootsData'](_0x2e1e0b,_0x575bb2,_0x894895);_0x698acd['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x403153,_0x575bb2['config']['get']('trackChanges.preview.renderFunction'));}),_0x5855ab=new _0x3ac2df(_0x29bddb,[_0x698acd['view']]),_0x5855ab['attachToDom'](),_0x5855ab['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x575bb2['once']('destroy',()=>{_0x5855ab['detachFromDom']();});const _0x2b8fc9=_0x698acd['view']['headerView']['class'];_0x698acd['view']['headerView']['class']=_0x2b8fc9?_0x2b8fc9+'\x20ck-reset_all':'ck-reset_all',_0x698acd['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x698acd['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1c6aad=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x12f8db=_0x1c6aad['previewMode'],_0x46b5ab={};if('$labels'===_0x12f8db){for(const _0x4849e8 of _0x1c6aad['getMergeFieldsIds']())_0x46b5ab[_0x4849e8]=_0x1c6aad['getLabel'](_0x4849e8)||_0x4849e8;}else{const _0x2c437e='$defaultValues'===_0x12f8db?_0x1c6aad['getDefaultValues']():_0x1c6aad['getDataSetValues'](_0x12f8db,!0x0);for(const _0x190c0c of Object['entries'](_0x2c437e)){const [_0x54c664,_0xb6896e]=_0x190c0c;_0x46b5ab[_0x54c664]=null!==_0xb6896e?_0xb6896e:_0x1c6aad['getLabel'](_0x54c664)||_0x54c664;}}return{'mergeFieldsData':_0x46b5ab};}['_standarizeRootsData'](_0x37c222,_0x59709a,_0x3294ab){let _0x2c186b;if('string'==typeof _0x37c222){const _0x395c2b=_0x59709a['model']['document']['getRootNames']()[0x0];_0x2c186b={[_0x395c2b]:_0x37c222};}else _0x2c186b=_0x37c222;const _0x5e59e4=this['_fixMediaEmbeds'](_0x2c186b,_0x59709a),_0x529e46=function(_0x488f5e,_0x132366){for(const [_0x332242,_0x516df2]of _0x488f5e)_0x516df2['classes']=_0x132366[_0x332242]['classList']['value']['replace']('ck-focused','');return _0x488f5e;}(this['_sortRoots'](_0x59709a)['reduce']((_0x25527d,_0x5b05dd)=>(_0x25527d['push']([_0x5b05dd,{'content':_0x5e59e4[_0x5b05dd],'classes':''}]),_0x25527d),[]),_0x3294ab);return _0x529e46;}['_fixMediaEmbeds'](_0x313255,_0x461f02){if(!_0x461f02['plugins']['has']('MediaEmbedEditing'))return _0x313255;const _0x22c636=_0x461f02['plugins']['get']('MediaEmbedEditing');for(const [_0xcefd8c,_0x44ab44]of Object['entries'](_0x313255)){const _0x192ebd=document['createElement']('div');_0x192ebd['innerHTML']=_0x44ab44,(_0x192ebd['querySelectorAll']('figure.media')['forEach'](_0x5bc096=>{const _0x572a41=_0x5bc096['querySelector']('oembed');if(_0x572a41){const _0x49b7a9=_0x572a41['getAttribute']('url');if(_0x49b7a9){const _0x548cdd=_0x22c636['registry']['getMediaViewElement'](new _0x21a1eb(_0x461f02['editing']['view']['document']),_0x49b7a9,{'elementName':'','renderForEditingView':!0x0}),_0x5a0925=document['createElement']('div');_0x5a0925['classList']['add']('ck-media__wrapper'),_0x548cdd['render'](_0x5a0925,_0x461f02['editing']['view']['domConverter']),_0x572a41['replaceWith'](_0x5a0925);}}}),_0x313255[_0xcefd8c]=_0x192ebd['innerHTML']);}return _0x313255;}['_sortRoots'](_0x23500e){if(!function(_0x46dac4){return void 0x0!==_0x46dac4['getRootsAttributes'];}(_0x23500e))return _0x23500e['model']['document']['getRootNames']();const _0x1649d9=[],_0x1e419d=new Map();for(const _0x37f946 of _0x23500e['model']['document']['getRootNames']()){const _0x5c8827=_0x23500e['editing']['view']['getDomRoot'](_0x37f946)['getClientRects']()['item'](0x0);_0x1649d9['push'](_0x37f946),_0x1e419d['set'](_0x37f946,_0x5c8827);}return _0x1649d9['sort']((_0x551a7d,_0x1609f1)=>{const _0x37972c=_0x1e419d['get'](_0x551a7d),_0xa4b927=_0x1e419d['get'](_0x1609f1);return _0x37972c['y']-_0xa4b927['y']||_0x37972c['x']-_0xa4b927['x'];}),_0x1649d9;}}class te extends _0x49d3a0{static get['requires'](){return[T,_0x9c557b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50961e){super(_0x50961e),_0x50961e['commands']['add']('previewFinalContent',new re(this['editor'])),_0x50961e['config']['define']('trackChanges.preview.renderFunction',(_0x1db69f,_0x16fbc0)=>{for(const _0x1956e4 of _0x16fbc0)_0x1db69f['appendChild'](_0x1956e4);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};