@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250223.0 → 0.0.0-nightly-next-20250223.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/track-changes.js +1 -1
  3. package/ckeditor5-metadata.json +1 -1
  4. package/dist/index.js +3 -3
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.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 -26
  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/tablemergesplit.js +1 -1
  205. package/src/integrations/tableofcontents.js +1 -1
  206. package/src/integrations/tableproperties.js +1 -1
  207. package/src/integrations/template.js +1 -1
  208. package/src/integrations/title.js +1 -1
  209. package/src/integrations/undo.js +1 -1
  210. package/src/integrations/uploadcare.js +1 -1
  211. package/src/integrations/utils.js +1 -1
  212. package/src/suggestion.js +2 -2
  213. package/src/suggestiondescriptionfactory.js +1 -1
  214. package/src/trackchanges.js +1 -1
  215. package/src/trackchangesdata.js +1 -1
  216. package/src/trackchangesediting.js +1 -1
  217. package/src/trackchangespreview.js +1 -1
  218. package/src/trackchangesui.js +1 -1
  219. package/src/ui/suggestioncontroller.js +2 -2
  220. package/src/ui/view/basesuggestionthreadview.js +1 -1
  221. package/src/ui/view/suggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionview.js +1 -1
  223. package/src/ui/view/trackchangespreviewview.js +1 -1
  224. package/src/utils/common-translations.js +1 -1
  225. package/src/utils/utils.js +1 -1
  226. package/theme/icons/track-changes-accept.svg +0 -11
  227. package/theme/icons/track-changes-discard.svg +0 -11
  228. package/theme/icons/track-changes.svg +0 -11
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Yt,Plugin as _0x9e54d2,PendingActions as _0x53d41d,icons as _0x16f7f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ed401,ObservableMixin as _0x15a436,uid as _0x1ea020,priorities as _0xc98a7a,insertToPriorityArray as _0x4592e4,logWarning as _0x478f79,getEnvKeystrokeText as _0x25398b,FocusTracker as _0x2bb7da,KeystrokeHandler as _0x1ba224,Collection as _0x114426}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1b403d,View as _0x58bbdd,ViewCollection as _0x3b38e1,FocusCycler as _0x1f52be,ViewModel as _0x40fc25,createDropdown as _0x1a91c7,SplitButtonView as _0x231e8c,addListToDropdown as _0x1c8210,MenuBarMenuView as _0x475cee,MenuBarMenuListView as _0x5dc21b,ListSeparatorView as _0x344711,MenuBarMenuListItemView as _0x3a57e1,MenuBarMenuListItemButtonView as _0xb816cb,BodyCollection as _0x2f12e8,Dialog as _0x577700}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d693d,hashObject as _0x36ee07,surroundingMarkersDetector as _0x514565,FOCUS_ANNOTATION_KEYSTROKE as _0x223b84,AriaDescriptionView as _0x35a036,setupThreadKeyboardNavigation as _0x287042,trimHtml as _0x2a749d,UserView as _0x12797c,LateFocusButtonView as _0x3e44f9,getDateTimeFormatter as _0xe82a6e,getAllMarkersDomElementsSorted as _0x15d485,sanitizeEditorConfig as _0x105839}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x905e02,LiveRange as _0x13f7d0,LivePosition as _0x174689,DowncastWriter as _0x59be18}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x44ee02,toWidget as _0x19bee4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x33200e,set as _0x1722a1,isEqual as _0x2f114e,unset as _0x21ab56,omit as Vt}from'lodash-es';import{Delete as _0x1f1330,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xe5c81d,ShiftEnter as _0x582213}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x5d6c0a,_0x1bbdc3){super(_0x5d6c0a),this['_enabledCommands']=_0x1bbdc3,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 _0x1ca947 of this['editor']['commands']['commands']())_0x1ca947['affectsData']&&!this['_enabledCommands']['has'](_0x1ca947)&&_0x1ca947['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x28e868 of this['editor']['commands']['commands']())_0x28e868['affectsData']&&!this['_enabledCommands']['has'](_0x28e868)&&_0x28e868['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x394c2f,_0x2c1bcd){super(_0x394c2f),this['_suggestions']=_0x2c1bcd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e082f){const _0x534fff=this['_suggestions']['get'](_0x4e082f);if(!_0x534fff)throw new _0x1ed401('track-changes-accept-suggestion-not-found',this);const _0x87cdcc=_0x534fff['getRanges']();this['editor']['model']['canEditAt'](_0x87cdcc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x534fff);}}class R extends Yt{['_suggestions'];constructor(_0x43aa3d,_0xd56fcb){super(_0x43aa3d),this['_suggestions']=_0xd56fcb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x46b02a){const _0xc15871=this['_suggestions']['get'](_0x46b02a);if(!_0xc15871)throw new _0x1ed401('track-changes-discard-suggestion-not-found',this);const _0x23bd1b=_0xc15871['getRanges']();this['editor']['model']['canEditAt'](_0x23bd1b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xc15871);}}function cs(_0xcc6ea3,_0x3a009c){let _0x3f82a5='';return _0x3f82a5+=_0xcc6ea3['split']('*')['map']((_0x253cd9,_0xd6bb97)=>_0xd6bb97%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x253cd9)+'</span>':nn(_0x253cd9))['join'](''),_0x3a009c&&(_0x3f82a5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3a009c['value']+'\x22\x20title=\x22'+_0x3a009c['title']+'\x22></span>'),_0x3f82a5;}function nn(_0xba31a1){const _0x1098f8=document['createElement']('span');return _0x1098f8['innerText']=_0xba31a1,_0x1098f8['innerHTML'];}function Zt(_0x304676){return _0x304676['sort']((_0xfe187c,_0x5dc353)=>'deletion'==_0xfe187c['type']&&'deletion'!=_0x5dc353['type']?-0x1:'deletion'!=_0xfe187c['type']&&'deletion'==_0x5dc353['type']?0x1:0x0);}function to(_0x292867,_0x3c8590){let _0x1c2b55,_0x43849d=0x0;const _0x4cf05b=[],_0x20c481=_0x3c8590['schema'];for(;_0x43849d<_0x292867['length'];){const _0x11c273=_0x292867[_0x43849d],_0x3b311c=_0x292867[_0x43849d+0x1];_0x1c2b55||(_0x1c2b55=_0x3c8590['createPositionBefore'](_0x11c273)),on(_0x3c8590,_0x11c273,_0x3b311c)||(_0x4cf05b['push'](_0x3c8590['createRange'](_0x1c2b55,_0x20c481['isObject'](_0x11c273)?_0x3c8590['createPositionAfter'](_0x11c273):_0x3c8590['createPositionAt'](_0x11c273,'end'))),_0x1c2b55=null),_0x43849d++;}return _0x4cf05b;}function on(_0x3c4140,_0x2791da,_0x1e7359){if(!_0x1e7359)return!0x1;const _0x59c077=_0x3c4140['createPositionAfter'](_0x2791da),_0x8d0350=_0x3c4140['createPositionBefore'](_0x1e7359);return _0x59c077['isTouching'](_0x8d0350);}function ts(_0x42c673,_0x2b593a,_0x5db8db){for(;_0x5db8db['length'];){const _0x51dd47=_0x5db8db['splice'](0x0,0x64);_0x42c673['change'](()=>{for(const _0x763713 of _0x51dd47)_0x763713['isInContent']&&_0x2b593a['execute'](_0x763713['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x4eae79,_0x3beae9,_0x323b3b){super(_0x4eae79),this['_command']=_0x3beae9,this['_suggestions']=_0x323b3b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x26e52a=Array['from'](this['_suggestions']['values']())['some'](_0x387d8d=>_0x387d8d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x26e52a;}['execute'](){const _0x25bf88=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x459eae of _0x25bf88){const _0x3d62c0=_0x459eae['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d62c0))return;}ts(this['editor']['model'],this['_command'],_0x25bf88);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x329dea,_0x1dc6f0,_0xd397be){super(_0x329dea),this['_command']=_0x1dc6f0,this['_suggestions']=_0xd397be,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2790dc=this['editor']['model']['document']['selection'],_0x29ab9f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b203b,_0x4f7bdd){const _0x51c05d=Array['from'](_0x1b203b['getRanges']()),_0x3fd1f0=new Set();for(const _0x3d11a3 of _0x4f7bdd)if(_0x3d11a3['isInContent']){for(const _0x2aa5f0 of _0x51c05d)for(const _0x2c7a71 of _0x3d11a3['getRanges']())(_0x2aa5f0['isIntersecting'](_0x2c7a71)||_0x1b203b['isCollapsed']&&!_0x3d11a3['isMultiRange']&&_0x3d11a3['next']&&_0x2c7a71['end']['isTouching'](_0x2aa5f0['start']))&&_0x3fd1f0['add'](_0x3d11a3);}return _0x3fd1f0;}(_0x2790dc,_0x29ab9f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4646de=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x2d96a7 of _0x4646de){const _0x418d1c=_0x2d96a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x418d1c))return;}ts(this['editor']['model'],this['_command'],_0x4646de);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x15a436(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xd0b669,_0x33aa9b){super(),this['id']=_0x33aa9b['id'],this['type']=_0x33aa9b['type'],this['subType']=_0x33aa9b['subType']||null,this['author']=_0x33aa9b['author'],this['creator']=_0x33aa9b['creator']||_0x33aa9b['author'],this['isExternal']=Boolean(_0x33aa9b['attributes']&&_0x33aa9b['attributes']['@external']),this['data']=null,this['_model']=_0xd0b669,this['_onAccept']=_0x33aa9b['onAccept'],this['_onDiscard']=_0x33aa9b['onDiscard'],this['_onAttributesChange']=_0x33aa9b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x33aa9b['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 _0x44c653=this;for(;_0x44c653['previous'];)_0x44c653=_0x44c653['previous'];return _0x44c653;}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'](_0x3cec94){this['_markerNames']['add'](_0x3cec94);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a471c=>this['_model']['markers']['get'](_0x3a471c))['filter'](_0xc3397a=>_0xc3397a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2de684=>{for(const _0x159894 of this['getMarkers']())_0x2de684['removeMarker'](_0x159894);}),this['_markerNames']['clear']();}['removeMarker'](_0x4780d2){this['_model']['change'](_0x48e3c9=>{_0x48e3c9['removeMarker'](_0x4780d2);}),this['_markerNames']['delete'](_0x4780d2);}['addRange'](_0x33ed5b){const _0xe2f72c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xe2f72c),this['_model']['change'](_0x294f44=>{_0x294f44['addMarker'](_0xe2f72c,{'range':_0x33ed5b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x33c087){for(const _0x4d7c3b of this['getRanges']())if(_0x4d7c3b['isIntersecting'](_0x33c087))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x410aa0=>_0x410aa0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4fdeb3,_0x232b25)=>[..._0x4fdeb3,..._0x232b25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x201140=this['getRanges']();if(0x1!=_0x201140['length'])return null;const _0x1032cd=_0x201140[0x0],_0x219318=_0x1032cd['start']['nodeAfter'],_0x56b263=_0x1032cd['end']['nodeBefore'];return _0x219318 instanceof _0x905e02?_0x219318!=_0x56b263?null:_0x219318: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 _0x461a89=[];let _0x5bcc4e=this['head'];for(;_0x5bcc4e;)_0x461a89['push'](_0x5bcc4e),_0x5bcc4e=_0x5bcc4e['next'];return _0x461a89;}['setAttribute'](_0xf5a7e5,_0x10ab8e){const _0x4d183c=_0x33200e(this['attributes']);_0x1722a1(_0x4d183c,_0xf5a7e5,_0x10ab8e),_0x2f114e(_0x4d183c,this['attributes'])||(this['attributes']=_0x4d183c,this['_onAttributesChange'](_0x4d183c));}['removeAttribute'](_0x3592a8){const _0x39c9ee=_0x33200e(this['attributes']);_0x21ab56(_0x39c9ee,_0x3592a8),_0x2f114e(_0x39c9ee,this['attributes'])||(this['attributes']=_0x39c9ee,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 _0x1ea020()['substr'](0x1,0x5);}}function o(_0x27b1cf,_0x4b6649,_0x1d72a9){const _0x2ebd9a=_0x27b1cf['t'],t=_0x27b1cf['t'];switch(_0x4b6649){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',_0x1d72a9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d72a9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d72a9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d72a9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d72a9);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',_0x1d72a9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d72a9);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',_0x1d72a9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d72a9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d72a9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d72a9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d72a9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d72a9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1d72a9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d72a9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d72a9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d72a9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d72a9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d72a9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d72a9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d72a9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d72a9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d72a9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d72a9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d72a9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d72a9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d72a9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d72a9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d72a9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d72a9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d72a9);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'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d72a9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1d72a9);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 _0x2ebd9a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d72a9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2ebd9a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1d72a9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1d72a9);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'},_0x1d72a9);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'},_0x1d72a9);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'},_0x1d72a9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4b6649;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5effed,_0xaa9fb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5effed,this['_locale']=_0xaa9fb;}['getDescriptions'](_0x5409c1){const _0x502cd9=[],_0x48c15e=new Set(),_0x1043de=new Set();for(let _0x3b1e1d=0x0;_0x3b1e1d<_0x5409c1['length'];_0x3b1e1d++){const _0x5e64e2=_0x5409c1[_0x3b1e1d];if(!_0x5e64e2['isInContent'])continue;const _0x436d83=this['_handleCustomCallbackDescription'](_0x5e64e2);if(_0x436d83){if(null!=_0x5e64e2['subType']){if(_0x48c15e['has'](_0x5e64e2['subType']))continue;_0x48c15e['add'](_0x5e64e2['subType']);}_0x502cd9['push'](_0x436d83);}else{if('attribute'!=_0x5e64e2['type'])'insertion'!=_0x5e64e2['type']&&'deletion'!=_0x5e64e2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x502cd9,_0x5e64e2,_0x5409c1[_0x3b1e1d+0x1]);else{const _0x9e8481=_0x5e64e2['data']['key'];if(_0x1043de['has'](_0x9e8481))continue;_0x1043de['add'](_0x5e64e2['data']['key']),_0x9e8481==m?this['_handleRenameSuggestionDescription'](_0x502cd9,_0x5e64e2):this['_handleAttributeSuggestionDescription'](_0x502cd9,_0x5e64e2);}}}return this['_resolveDescriptionItems'](_0x502cd9);}['registerDescriptionCallback'](_0x35b37f){this['_customCallbacks']['push'](_0x35b37f);}['registerElementLabel'](_0x18cff3,_0x306206,_0x45c644=_0xc98a7a['normal']){'function'==typeof _0x18cff3?_0x4592e4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18cff3,'label':_0x306206,'priority':_0x45c644}):this['_itemLabels']['set'](_0x18cff3,_0x306206);}['registerAttributeLabel'](_0x3e16ab,_0x2cbfe3){this['_attributeLabels']['set'](_0x3e16ab,_0x2cbfe3);}['getItemLabel'](_0x34a5cc,_0xafda19=0x1){let _0x2550b8;for(const _0x221494 of this['_itemLabelsCallbacks'])if(_0x221494['matchingCallback'](_0x34a5cc)){_0x2550b8=_0x221494['label'];break;}return _0x2550b8||(_0x2550b8=this['_itemLabels']['get'](_0x34a5cc['name'])),_0x2550b8?_0x2550b8(_0xafda19):0x1!==_0xafda19?_0xafda19+'\x20'+_0x34a5cc['name']+'s':''+_0x34a5cc['name'];}['_addDescriptionItems'](_0x2c14eb,_0x397033){const _0x1349fa=_0x397033['getFirstRange']()['getWalker'](),_0x3e47fa='insertion'==_0x397033['type']?'add':'remove';for(const _0x51fa6f of _0x1349fa){const _0x249629=_0x51fa6f['item'],_0x43b758=_0x2c14eb[_0x2c14eb['length']-0x1];if(_0x249629['is']('$textProxy'))_0x43b758&&_0x43b758['type']['indexOf']('Container')>-0x1&&_0x2c14eb['pop'](),_0x43b758&&'text'==_0x43b758['type']?_0x43b758[_0x3e47fa]+=_0x249629['data']:_0x2c14eb['push']({'type':'text','add':'add'==_0x3e47fa?_0x249629['data']:'','remove':'remove'==_0x3e47fa?_0x249629['data']:''});else{if(this['_schema']['isObject'](_0x249629)){const _0x33fb2e=_0x249629;if(_0x43b758&&_0x43b758['type']['indexOf']('Container')>-0x1&&_0x2c14eb['pop'](),'elementEnd'==_0x51fa6f['type'])continue;_0x43b758&&_0x43b758['type']==_0x3e47fa+'Object'&&_0x43b758['element']['name']==_0x33fb2e['name']?_0x43b758['quantity']++:_0x2c14eb['push']({'type':_0x3e47fa+'Object','element':_0x33fb2e,'quantity':0x1}),_0x1349fa['skip'](_0x3d7f2b=>!('elementEnd'==_0x3d7f2b['type']&&_0x3d7f2b['item']==_0x249629));}else{if(this['_schema']['checkChild'](_0x249629,'$text')||_0x249629['is']('element','softBreak')){const _0x13ca51=_0x249629;if('add'==_0x3e47fa&&'elementStart'==_0x51fa6f['type']||'remove'==_0x3e47fa&&'elementEnd'==_0x51fa6f['type'])continue;if(_0x43b758&&-0x1==_0x43b758['type']['indexOf']('Container')){'text'==_0x43b758['type']&&(_0x43b758[_0x3e47fa]+='\x0a');continue;}let _0x1f0d86;if(_0x1f0d86='add'==_0x3e47fa?_0x13ca51['nextSibling']&&!this['_schema']['isObject'](_0x13ca51['nextSibling'])?_0x13ca51['nextSibling']:null:_0x13ca51['previousSibling']&&!this['_schema']['isObject'](_0x13ca51['previousSibling'])?_0x13ca51['previousSibling']:null,_0x13ca51['isEmpty']||_0x1f0d86&&_0x1f0d86['isEmpty']){const _0x53c698=_0x1f0d86&&_0x1f0d86['isEmpty']?_0x1f0d86:_0x13ca51;_0x43b758&&_0x43b758['type']==_0x3e47fa+'EmptyContainer'&&_0x43b758['element']['name']==_0x53c698['name']?_0x43b758['quantity']++:_0x2c14eb['push']({'type':_0x3e47fa+'EmptyContainer','element':_0x53c698,'quantity':0x1});}else _0x2c14eb['push']({'type':_0x3e47fa+'Container','element':_0x13ca51});}}}}}['_resolveDescriptionItems'](_0x199845){const _0xe5c94c=this['_locale'],_0x27d3ed=[],_0xff6bd0=[],_0x29348e=[];for(const _0x16851e of _0x199845)switch(_0x16851e['type']){case'text':if(_0x16851e['add']=_0x16851e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x16851e['remove']=_0x16851e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x16851e['add']&&''!=_0x16851e['remove']){_0x27d3ed['push']({'type':'replace','content':o(_0xe5c94c,'REPLACE_TEXT',['\x22'+_0x16851e['remove']+'\x22','\x22'+_0x16851e['add']+'\x22'])});continue;}if(null!=_0x16851e['add']['match'](/^ +$/)){_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Insert:*\x20%0',o(_0xe5c94c,'ELEMENT_SPACE',_0x16851e['add']['length']))});continue;}if(null!=_0x16851e['remove']['match'](/^ +$/)){_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Remove:*\x20%0',o(_0xe5c94c,'ELEMENT_SPACE',_0x16851e['remove']['length']))});continue;}if(''!=_0x16851e['add']){_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Insert:*\x20%0','\x22'+_0x16851e['add']+'\x22')});continue;}_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Remove:*\x20%0','\x22'+_0x16851e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Insert:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Remove:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'addContainer':_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Split:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'removeContainer':_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Merge:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'addFormat':_0xff6bd0['push'](_0x16851e['key']);continue;case'removeFormat':_0x29348e['push'](_0x16851e['key']);continue;default:_0x27d3ed['push'](_0x16851e);}if(_0xff6bd0['length']){const _0x13a292=_0xff6bd0['map'](_0x200220=>this['_attributeLabels']['has'](_0x200220)?this['_attributeLabels']['get'](_0x200220):_0x200220)['join'](',\x20');_0x27d3ed['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13a292)});}if(_0x29348e['length']){const _0x38146e=_0x29348e['map'](_0x58a858=>this['_attributeLabels']['has'](_0x58a858)?this['_attributeLabels']['get'](_0x58a858):_0x58a858)['join'](',\x20');_0x27d3ed['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x38146e)});}return _0x27d3ed;}['_handleCustomCallbackDescription'](_0x2ea8e4){for(const _0xea4a76 of this['_customCallbacks']){const _0x2e293f=_0xea4a76(_0x2ea8e4);if(_0x2e293f&&'type'in _0x2e293f)return _0x2e293f;}}['_handleAttributeSuggestionDescription'](_0x4e6b3e,_0x1793e3){const _0x2d65d0=_0x1793e3['data'],_0xaee1ef=void 0x0===_0x2d65d0['newValue']?'removeFormat':'addFormat';_0x4e6b3e['push']({'type':_0xaee1ef,'key':_0x2d65d0['key']});}['_handleRenameSuggestionDescription'](_0x4e1f2a,_0x164f55){_0x4e1f2a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x164f55['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x73a1b,_0x2c041f,_0x2ef696){if(this['_addDescriptionItems'](_0x73a1b,_0x2c041f),_0x2ef696&&_0x2ef696['getFirstRange']()&&!_0x2c041f['getFirstRange']()['end']['isEqual'](_0x2ef696['getFirstRange']()['start'])){const _0x2c054f=_0x73a1b[_0x73a1b['length']-0x1],_0x5a1779='insertion'==_0x2c041f['type']?'add':'remove';_0x2c054f&&'text'==_0x2c054f['type']&&(_0x2c054f[_0x5a1779]+='\x0a');}}}class U extends _0x9e54d2{['afterInit'](){const _0x2578c6=this['editor'],_0x24ca10=_0x2578c6['plugins']['get']('TrackChangesEditing');_0x2578c6['commands']['get']('showAIAssistant')&&_0x24ca10['enableCommand']('showAIAssistant');}}class V extends _0x9e54d2{['afterInit'](){const _0x9aa348=this['editor'],_0x4609ec=_0x9aa348['locale'];if(!_0x9aa348['plugins']['has']('AlignmentEditing'))return;const _0x278c4f=_0x9aa348['plugins']['get']('TrackChangesEditing');_0x278c4f['enableDefaultAttributesIntegration']('alignment'),_0x278c4f['registerBlockAttribute']('alignment'),_0x278c4f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4609ec,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5aa26e=this['editor'],_0x18fbf3=_0x5aa26e['locale'];_0x5aa26e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4761d2=>{if('formatBlock'!=_0x4761d2['type'])return;const {data:_0xb6cfce}=_0x4761d2;if(_0xb6cfce&&'alignment'==_0xb6cfce['commandName']){const _0x3a72b8=_0xb6cfce['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x18fbf3,'*Format:*\x20%0',function(_0x16ef70){switch(_0x16ef70){case'left':return o(_0x18fbf3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x18fbf3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x18fbf3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x18fbf3,'FORMAT_JUSTIFY_TEXT');}}(_0x3a72b8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x9e54d2{['afterInit'](){const _0x24e4b1=this['editor'],_0x573c53=_0x24e4b1['plugins']['get']('TrackChangesEditing'),_0x1567be=_0x24e4b1['locale'];for(const _0x5aa512 of ti){if(!_0x24e4b1['plugins']['has'](_0x5aa512))continue;const _0x32245a=_0x5aa512['slice'](0x0,-0x7)['toLowerCase'](),_0x12567f='FORMAT_'+_0x32245a['toUpperCase']();_0x573c53['enableDefaultAttributesIntegration'](_0x32245a),_0x573c53['registerInlineAttribute'](_0x32245a),_0x573c53['descriptionFactory']['registerAttributeLabel'](_0x32245a,o(_0x1567be,_0x12567f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eb976=this['editor'],_0x4466a3=_0x2eb976['locale'],_0x21adbb=_0x2eb976['plugins']['get']('TrackChangesEditing');function _0x38bc0b(_0x4ee8f9,_0x380b57){_0x21adbb['descriptionFactory']['registerDescriptionCallback'](_0x468f2b=>{if('formatInline'!=_0x468f2b['type'])return;const {data:_0x457c98}=_0x468f2b;return _0x457c98&&_0x457c98['commandName']===_0x4ee8f9?_0x457c98['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4466a3,'*Format:*\x20%0',_0x380b57)}:{'type':'format','content':o(_0x4466a3,'*Remove\x20format:*\x20%0',_0x380b57)}:void 0x0;});}_0x38bc0b('bold',o(_0x4466a3,'FORMAT_BOLD')),_0x38bc0b('italic',o(_0x4466a3,'FORMAT_ITALIC')),_0x38bc0b('underline',o(_0x4466a3,'FORMAT_UNDERLINE')),_0x38bc0b('code',o(_0x4466a3,'FORMAT_CODE')),_0x38bc0b('strikethrough',o(_0x4466a3,'FORMAT_STRIKETHROUGH')),_0x38bc0b('subscript',o(_0x4466a3,'FORMAT_SUBSCRIPT')),_0x38bc0b('superscript',o(_0x4466a3,'FORMAT_SUPERSCRIPT'));}}class F extends _0x9e54d2{['afterInit'](){const _0xe4adc2=this['editor'],_0x313361=_0xe4adc2['locale'];if(!_0xe4adc2['plugins']['has']('BlockQuoteEditing'))return;const _0x561e46=_0xe4adc2['plugins']['get']('TrackChangesEditing'),_0x3df3dd=this['editor']['commands']['get']('blockQuote');_0x561e46['enableCommand']('blockQuote',(_0x502959,_0x3b219c={})=>{const _0x16693e=this['editor']['model']['document']['selection'],_0x68374d=_0x3b219c&&void 0x0!==_0x3b219c['forceValue']?_0x3b219c['forceValue']:!_0x3df3dd['value'];let _0x3e6707=[];if(_0x68374d){const _0x283fa4=Array['from'](_0x16693e['getSelectedBlocks']())['filter'](_0x2f00af=>oo(_0x2f00af)||function(_0x8abbc4,_0x21ced3){const _0x5d3afe=_0x21ced3['checkChild'](_0x8abbc4['parent'],'blockQuote'),_0x599b92=_0x21ced3['checkChild'](['$root','blockQuote'],_0x8abbc4);return _0x5d3afe&&_0x599b92;}(_0x2f00af,this['editor']['model']['schema']));_0x3e6707=to(_0x283fa4,_0xe4adc2['model']);}else{const _0x50a3c0=Array['from'](_0x16693e['getSelectedBlocks']())['filter'](_0xc10a2=>oo(_0xc10a2));_0x3e6707=to(_0x50a3c0,_0xe4adc2['model']);}_0xe4adc2['model']['change'](()=>{for(const _0xba49cd of _0x3e6707)_0x561e46['markBlockFormat'](_0xba49cd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x68374d}]});});}),_0x561e46['descriptionFactory']['registerDescriptionCallback'](_0x128f84=>{const {data:_0x49d9d2}=_0x128f84;if(_0x49d9d2&&'blockQuote'==_0x49d9d2['commandName']){const _0x19b491=o(_0x313361,'ELEMENT_BLOCK_QUOTE');return _0x49d9d2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x313361,'*Set\x20format:*\x20%0',_0x19b491)}:{'type':'format','content':o(_0x313361,'*Remove\x20format:*\x20%0',_0x19b491)};}});}}function oo(_0x54f19b){return'blockQuote'==_0x54f19b['parent']['name'];}class L extends _0x9e54d2{['afterInit'](){const _0x286989=this['editor'],_0x1e9798=_0x286989['locale'],_0x2bfe93=_0x286989['plugins']['get']('TrackChangesEditing');_0x286989['plugins']['has']('BookmarkEditing')&&(_0x2bfe93['enableCommand']('insertBookmark'),_0x2bfe93['enableDefaultAttributesIntegration']('updateBookmark'),_0x2bfe93['registerBlockAttribute']('bookmarkId'),_0x2bfe93['descriptionFactory']['registerDescriptionCallback'](_0x41c999=>{if('insertion'!=_0x41c999['type']&&'deletion'!=_0x41c999['type']&&'attribute'!=_0x41c999['type'])return;const _0x2b7bae=_0x41c999['getContainedElement']();if(null==_0x2b7bae)return;if(!_0x2b7bae['is']('element','bookmark'))return;const _0x2a9916=_0x2b7bae['getAttribute']('bookmarkId');if('insertion'==_0x41c999['type'])return{'type':'insertion','content':o(_0x1e9798,'*Insert:*\x20%0','\x22'+_0x2a9916+'\x22\x20'+o(_0x1e9798,'ELEMENT_BOOKMARK'))};if('deletion'==_0x41c999['type'])return{'type':'deletion','content':o(_0x1e9798,'*Remove:*\x20%0','\x22'+_0x2a9916+'\x22\x20'+o(_0x1e9798,'ELEMENT_BOOKMARK'))};const {data:_0x46f359}=_0x41c999;if(!_0x46f359||'bookmarkId'!=_0x46f359['key'])return;return{'type':'format','content':o(_0x1e9798,'*Set\x20bookmark:*\x20%0','\x22'+_0x46f359['newValue']+'\x22')};}));}}class J extends _0x9e54d2{['afterInit'](){const _0x455fa2=this['editor'];_0x455fa2['plugins']['has']('CaseChange')&&(_0x455fa2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x455fa2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x455fa2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x9e54d2{['afterInit'](){const _0x5d988c=this['editor'];_0x5d988c['commands']['get']('ckbox')&&_0x5d988c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x9e54d2{['afterInit'](){const _0x4afbd1=this['editor'];if(!_0x4afbd1['plugins']['has']('CodeBlock'))return;const _0x5daf95=_0x4afbd1['plugins']['get']('TrackChangesEditing'),_0x1652c8=_0x4afbd1['locale'],_0x361efe=_0x4afbd1['config']['get']('codeBlock')['languages'],_0x55463d=_0x4afbd1['commands']['get']('codeBlock');_0x5daf95['enableCommand']('indentCodeBlock'),_0x5daf95['enableCommand']('outdentCodeBlock'),_0x5daf95['enableCommand']('codeBlock',(_0x35756b,_0x13d499={})=>{const _0x3042e0=_0x4afbd1['model'],_0x49d8d2=_0x4afbd1['model']['document']['selection'],_0x27b23d=_0x13d499&&void 0x0!==_0x13d499['forceValue']?_0x13d499['forceValue']:!_0x55463d['value'];let _0x18d0ca;_0x13d499['language']||(_0x13d499['language']=_0x361efe[0x0]['language']),_0x18d0ca=_0x27b23d?Array['from'](_0x49d8d2['getSelectedBlocks']())['filter'](_0x24e56e=>eo(_0x24e56e)||function(_0x72afbd,_0x357422){if(_0x72afbd['is']('rootElement')||_0x357422['isLimit'](_0x72afbd))return!0x1;return _0x357422['checkChild'](_0x72afbd['parent'],'codeBlock');}(_0x24e56e,_0x3042e0['schema'])):Array['from'](_0x49d8d2['getSelectedBlocks']())['filter'](_0x286a15=>eo(_0x286a15));const _0x2e0db1=to(_0x18d0ca,_0x3042e0);_0x3042e0['change'](()=>{for(const _0x1dbf60 of _0x2e0db1)_0x5daf95['markBlockFormat'](_0x1dbf60,{'commandName':'codeBlock','commandParams':[{..._0x13d499,'forceValue':_0x27b23d}],'formatGroupId':'blockName'});});}),(_0x5daf95['descriptionFactory']['registerElementLabel']('codeBlock',_0x244339=>o(_0x1652c8,'ELEMENT_CODE_BLOCK',_0x244339)),_0x5daf95['descriptionFactory']['registerDescriptionCallback'](_0x3a93ae=>{if('formatBlock'!=_0x3a93ae['type'])return;const _0x15089b=_0x1652c8['t'],{data:_0x14b823}=_0x3a93ae;if(!_0x14b823||'codeBlock'!=_0x14b823['commandName'])return;const _0xf37922=_0x14b823['commandParams'][0x0]['language'],_0x52d7e5=_0x15089b(_0x361efe['find'](_0xa0fd99=>_0xa0fd99['language']===_0xf37922)['label'])['toLowerCase']();return _0x14b823['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1652c8,'*Set\x20format:*\x20%0',o(_0x1652c8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52d7e5+')')}:{'type':'format','content':o(_0x1652c8,'*Remove\x20format:*\x20%0',o(_0x1652c8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x320b7d){return'codeBlock'==_0x320b7d['name'];}class z extends _0x9e54d2{['afterInit'](){const _0xb58988=this['editor'];if(!_0xb58988['plugins']['has']('CommentsEditing'))return;_0xb58988['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2953cc,_0x51586f,_0x4d822e){const _0x300001=[];for(const _0x53d45c of _0x51586f['getItems']())_0x53d45c['hasAttribute'](_0x2953cc)&&_0x300001['push'](_0x4d822e['createRangeOn'](_0x53d45c));return _0x300001;}function De(_0x311e9e,_0x4b6dab,{showActiveMarker:_0x2cb4c7=!0x0}={}){const _0x4125ad=_0x311e9e['plugins']['get']('TrackChangesEditing');return(_0x2bef8f,_0xcdeb0,_0x4e0a96)=>{if(!_0x4e0a96['consumable']['test'](_0xcdeb0['markerRange'],_0x2bef8f['name']))return;const _0x1ee818=_0xcdeb0['markerRange']['getWalker'](),_0x1e181c=_0xcdeb0['markerRange']['start'],_0x34948d=_0x311e9e['model']['schema'];let _0x30b60e=null,_0x403816=null,_0x32e3ac=!0x1,_0x5c2a00=!0x1;for(const _0x17dc79 of _0x1ee818){const _0x1cfa51=_0x17dc79['item'];_0x32e3ac=_0x32e3ac||_0x34948d['isContent'](_0x1cfa51);const _0x241f5b=_0x4e0a96['mapper']['toViewElement'](_0x1cfa51);if(_0x241f5b&&_0x241f5b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17dc79['type']&&(_0x34948d['isBlock'](_0x1cfa51)&&!_0x34948d['isLimit'](_0x1cfa51)&&(_0x1cfa51['nextSibling']||_0x1e181c['isAtEnd']?_0x30b60e&&_0x30b60e['parent']==_0x1cfa51||(_0x30b60e=_0x1cfa51,_0x3db19e(_0x17dc79['previousPosition']),_0x5c2a00=!0x0):_0x403816=_0x403816||_0x17dc79['previousPosition']));}function _0x3db19e(_0x386afd){const {authorId:_0x1afddf}=_0x4125ad['_splitMarkerName'](_0xcdeb0['markerName']),_0x3e50bb=_0x4e0a96['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b6dab,'data-author-id':_0x1afddf}),_0x19f6a6=_0x4e0a96['mapper']['toViewPosition'](_0x386afd);_0x2cb4c7&&_0x4125ad['activeMarkers']['includes'](_0xcdeb0['markerName'])&&_0x4e0a96['writer']['addClass']('ck-suggestion-marker--active',_0x3e50bb),_0x4e0a96['writer']['insert'](_0x19f6a6,_0x3e50bb),_0x4e0a96['mapper']['bindElementToMarker'](_0x3e50bb,_0xcdeb0['markerName']);}_0x32e3ac||_0x5c2a00||!_0x403816||_0x3db19e(_0x403816);};}class K extends _0x9e54d2{static get['requires'](){return[_0x1f1330];}['init'](){const _0x28be4f=this['editor'],_0x316d44=_0x28be4f['plugins']['get']('TrackChangesEditing');_0x316d44['enableCommand']('delete');const _0x2490b7=_0x28be4f['commands']['get']('deleteForward');_0x316d44['enableCommand']('deleteForward',(_0x52e21c,_0x45c156={})=>{const _0x5b0d64=_0x28be4f['model']['createSelection'](_0x28be4f['model']['document']['selection']);_0x5b0d64['isCollapsed']&&_0x28be4f['model']['modifySelection'](_0x5b0d64,{'direction':'forward','unit':_0x45c156['unit']});const _0x54dbd4=_0x5b0d64['getFirstRange'](),_0x1936c3=_0x13f7d0['fromRange'](_0x54dbd4);let _0x4d7166;_0x52e21c(_0x45c156),_0x4d7166='$graveyard'==_0x1936c3['root']['rootName']?_0x28be4f['model']['createRange'](_0x54dbd4['start']):_0x28be4f['model']['createRange'](_0x1936c3['start'],_0x1936c3['end']),_0x1936c3['detach'](),_0x28be4f['model']['enqueueChange'](_0x2490b7['buffer']['batch'],_0x39e1d8=>{_0x2490b7['buffer']['lock'](),_0x39e1d8['setSelection'](_0x39e1d8['createRange'](_0x4d7166['end'])),_0x2490b7['buffer']['unlock']();});}),_0x28be4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x28be4f,'merge'),{'priority':'high'}),_0x28be4f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x348696,_0xc294bb,_0x35b8d3)=>{_0x35b8d3['options']['showSuggestionHighlights']&&De(_0x28be4f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x348696,_0xc294bb,_0x35b8d3);},{'priority':'high'}),_0x28be4f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xf0ef9,_0xa4cc4b,_0x3e2ff5)=>{const _0xdaf8be=_0x3e2ff5['mapper']['markerNameToElements'](_0xa4cc4b['markerName']);if(_0xdaf8be){for(const _0x1ff4aa of _0xdaf8be)_0x1ff4aa['is']('uiElement')&&(_0x3e2ff5['mapper']['unbindElementFromMarkerName'](_0x1ff4aa,_0xa4cc4b['markerName']),_0x3e2ff5['writer']['remove'](_0x1ff4aa));}},{'priority':'high'});}}class W extends _0x9e54d2{['afterInit'](){const _0x38f11d=this['editor'];if(!_0x38f11d['plugins']['has']('ListEditing'))return;const _0x5c237e=_0x38f11d['locale'],_0x543e1c=_0x38f11d['plugins']['get']('TrackChangesEditing'),_0x428a24=_0x38f11d['plugins']['has']('TodoListEditing'),_0x506005=!!_0x38f11d['config']['get']('list.multiBlock');function _0x337b6c(_0x5c6a84){return{'type':'format','content':''+o(_0x5c237e,'*Set\x20format:*\x20%0',_0x5c6a84)};}function _0x367e01(_0x533806){return{'type':'format','content':''+o(_0x5c237e,'*Remove\x20format:*\x20%0',_0x533806)};}_0x543e1c['enableDefaultAttributesIntegration']('numberedList'),_0x543e1c['enableDefaultAttributesIntegration']('bulletedList'),_0x543e1c['enableDefaultAttributesIntegration']('customNumberedList'),_0x543e1c['enableDefaultAttributesIntegration']('customBulletedList'),_0x543e1c['enableDefaultAttributesIntegration']('indentList'),_0x543e1c['enableDefaultAttributesIntegration']('outdentList'),_0x543e1c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x543e1c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x543e1c['registerBlockAttribute']('listItemId'),_0x543e1c['registerBlockAttribute']('listType'),_0x543e1c['registerBlockAttribute']('listIndent'),_0x506005&&(_0x543e1c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x543e1c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x428a24&&(_0x543e1c['enableDefaultAttributesIntegration']('todoList'),_0x543e1c['enableDefaultAttributesIntegration']('checkTodoList'),_0x543e1c['registerBlockAttribute']('todoListChecked'),_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x476c7c=>{const {data:_0x3ba2b1}=_0x476c7c;if(_0x3ba2b1&&'todoListChecked'==_0x3ba2b1['key'])return{'type':'format','content':_0x3ba2b1['newValue']?o(_0x5c237e,'*Check\x20item*'):o(_0x5c237e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x154d96=>{if(_0x154d96['batch']['isUndo'])return!0x1;let _0x23d5d3=!0x1;const _0x332cbc=_0x543e1c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e5697=>'todoListChecked'===_0x543e1c['_getAttributeKey'](_0x5e5697));for(const _0x260eec of _0x332cbc){'todo'!=_0x260eec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x543e1c['_findSuggestions'](_0x260eec['getFirstRange'](),'attribute')['find'](_0x26d10b=>'listType'===_0x543e1c['_getAttributeKey'](_0x26d10b['suggestion']))||(_0x154d96['removeMarker'](_0x260eec['getFirstMarker']()),_0x23d5d3=!0x0));}return _0x23d5d3;})),_0x543e1c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5c237e,'FORMAT_INDENT'));const _0x10aafa={'type':'format','content':''};_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x5b8a03=>{const {data:_0x4a208c}=_0x5b8a03;if(!_0x4a208c||'listType'!=_0x4a208c['key'])return;let _0x516495=_0x5b8a03['head'];for(;_0x516495;){if(_0x516495['data']&&(('listStyle'==_0x516495['data']['key']||'listMarkerStyle'==_0x516495['data']['key'])&&(_0x516495['data']['newValue']&&'default'!=_0x516495['data']['newValue']||'default'!=_0x516495['data']['oldValue']&&!_0x4a208c['newValue'])||!_0x506005&&_0x516495['data']['key']==m))return _0x10aafa;_0x516495=_0x516495['next'];}if(null==_0x4a208c['newValue'])switch(_0x4a208c['oldValue']){case'bulleted':return _0x367e01(o(_0x5c237e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x367e01(o(_0x5c237e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x367e01(o(_0x5c237e,'ELEMENT_TODO_LIST'));}switch(_0x4a208c['newValue']){case'bulleted':return _0x337b6c(o(_0x5c237e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x337b6c(o(_0x5c237e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x337b6c(o(_0x5c237e,'ELEMENT_TODO_LIST'));}}),_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x56e1ef=>{const {data:_0x576c47}=_0x56e1ef;if(_0x576c47&&'listIndent'==_0x576c47['key'])return null==_0x576c47['newValue']||null==_0x576c47['oldValue']&&0x0==_0x576c47['newValue']?_0x10aafa:void 0x0;}),_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x404d9e=>{if('attribute'!=_0x404d9e['type'])return;const {data:_0xf3f3b}=_0x404d9e;if(!_0xf3f3b||'listItemId'!=_0xf3f3b['key'])return;const _0x1501eb=Te(_0x404d9e);return'newValue'==_0x1501eb?{'type':'format','content':o(_0x5c237e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1501eb?{'type':'format','content':o(_0x5c237e,'*Split:*\x20list\x20item')}:_0x10aafa;}),_0x38f11d['model']['document']['registerPostFixer'](_0xdcc87=>this['listItemIdFixer'](_0xdcc87)),_0x38f11d['model']['document']['registerPostFixer'](_0x3825d0=>this['noTrackChangesFixer'](_0x3825d0)),_0x38f11d['model']['document']['on']('change:data',(_0x14960a,_0x16c1a0)=>{if(_0x16c1a0['isUndo']||!_0x16c1a0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xfaffd1){if(_0xfaffd1['batch']['isUndo']||!_0xfaffd1['batch']['isLocal'])return!0x1;let _0x569257=!0x1;const _0x43322c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e60d9=>_0x5e60d9['data']&&'listItemId'==_0x5e60d9['data']['key'])['filter'](_0x34cf64=>_0x34cf64['data']['newValue']&&_0x34cf64['data']['oldValue']);for(const _0x1c35b5 of _0x43322c)Te(_0x1c35b5)||(_0xfaffd1['removeMarker'](_0x1c35b5['getFirstMarker']()),_0x569257=!0x0);return _0x569257;}['noTrackChangesFixer'](_0x35da0a){if(_0x35da0a['batch']['isUndo']||!_0x35da0a['batch']['isLocal'])return!0x1;const _0x5b016b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5b016b['trackChangesCommand']['value'])return!0x1;let _0x5b7783=!0x1;const _0x3d436a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5e88e7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x422e9b=>'attribute'==_0x422e9b['type'])['filter'](_0x207279=>_0x3d436a['includes'](_0x207279['attributeKey']));if(0x0==_0x5e88e7['length'])return _0x5b7783;for(const _0xece626 of _0x5e88e7){const _0x12e88c=_0x5b016b['_findSuggestions'](_0xece626['range'],'attribute')['filter'](_0x2a8001=>!_0x2a8001['meta']['isNextTo'])['map'](_0x45788c=>_0x45788c['suggestion'])['filter'](_0x566b9c=>{const _0x42a701=_0x5b016b['_getAttributeKey'](_0x566b9c);return _0x3d436a['includes'](_0x42a701);});if(_0x12e88c['length']){for(const _0x4c730e of _0x12e88c)_0x35da0a['removeMarker'](_0x4c730e['getFirstMarker']());_0x5b7783=!0x0;}}return _0x5b7783;}['assureChains'](){const _0x38ccb3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x142dff=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32fa66;const _0x14943a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f5d57=>{if(_0x1f5d57['data']['oldRange']||!_0x1f5d57['data']['newRange'])return null;if(!_0x1f5d57['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x511627}=_0x38ccb3['_splitMarkerName'](_0x1f5d57['name']);if(!_0x38ccb3['hasSuggestion'](_0x511627))return null;const _0x38016d=_0x38ccb3['getSuggestion'](_0x511627);return _0x142dff['includes'](_0x38016d['data']['key']);})['map'](_0x1844b4=>{const {id:_0x477588}=_0x38ccb3['_splitMarkerName'](_0x1844b4['name']),_0x5ce081=_0x38ccb3['getSuggestion'](_0x477588);return _0x32fa66=_0x5ce081['attributes']['groupId'],_0x5ce081['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14943a['size'])return;const _0x41a426=_0x38ccb3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c0d48=>'attribute'==_0x6c0d48['type']&&_0x6c0d48['data']&&_0x142dff['includes'](_0x6c0d48['data']['key'])&&_0x6c0d48['attributes']['groupId']!=_0x32fa66)['map'](_0x1f9806=>({'listItem':_0x1f9806['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1f9806['attributes']['groupId']})),_0x2974e3=new Set();for(const {groupId:_0x50eb5a,listItem:_0x42c94c}of _0x41a426)_0x14943a['has'](_0x42c94c)&&_0x2974e3['add'](_0x50eb5a);for(const _0x319829 of _0x38ccb3['getSuggestions']())_0x2974e3['has'](_0x319829['attributes']['groupId'])&&_0x319829['setAttribute']('groupId',_0x32fa66);}['_supportLegacySuggestions'](){const _0x3453c0=this['editor'],_0x5c58c6=_0x3453c0['locale'],_0x442170=_0x3453c0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x442170['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x557a3c,_0x4a4391){const _0x51d547=[];for(let _0x4286b1 of _0x557a3c)_0x4286b1['start']['nodeAfter']===_0x4286b1['end']['parent']&&(_0x4286b1=_0x3453c0['model']['createRange'](_0x3453c0['model']['createPositionAt'](_0x4286b1['start']['nodeAfter'],0x0))),_0x51d547['push'](_0x4286b1);_0x3453c0['model']['change'](_0x87a725=>{const _0x2e48c8=_0x3453c0['model']['document']['selection'],_0x238cb0=Array['from'](_0x2e48c8['getRanges']())['map'](_0x5d548f=>_0x13f7d0['fromRange'](_0x5d548f));_0x87a725['setSelection'](_0x51d547),_0x3453c0['commands']['get'](_0x4a4391['commandName'])['refresh'](),_0x4a4391['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3453c0['execute'](_0x4a4391['commandName'],..._0x4a4391['commandParams']),_0x87a725['setSelection'](_0x238cb0);for(const _0x461832 of _0x238cb0)_0x461832['detach']();});}),_0x442170['descriptionFactory']['registerElementLabel'](function(_0x50064a){const _0x28ae11=!_0x3453c0['model']['schema']['isObject'](_0x50064a),_0x5f5b62=_0x50064a['previousSibling'],_0x4da1ef=_0x50064a['nextSibling'],_0x57fa22=_0x50064a['getAttribute']('listItemId'),_0x38dc1f=!_0x5f5b62||_0x5f5b62['getAttribute']('listItemId')!==_0x57fa22,_0x516752=!_0x4da1ef||_0x4da1ef['getAttribute']('listItemId')!==_0x57fa22;return _0x28ae11&&Boolean(_0x57fa22)&&_0x38dc1f&&_0x516752;},_0x3043cb=>o(_0x5c58c6,'ELEMENT_LIST_ITEM',_0x3043cb));}['_registerLegacyDescription'](){const _0xa30fad=this['editor'],_0x3b6856=_0xa30fad['locale'];function _0x26260a(_0x551094){const _0x29ddea=_0xa30fad['commands']['get']('bulletedList')['value'],_0x42a5a1=_0xa30fad['commands']['get']('numberedList')['value'];return'numberedList'===_0x551094?_0x29ddea:_0x42a5a1;}_0xa30fad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e290c){if('formatBlock'!=_0x4e290c['type'])return;const {data:_0x31c05a}=_0x4e290c;if(!_0x31c05a)return;let _0x3d7ef0,_0x34d0ba,_0x2dcd10,_0x25cd4b;switch(_0x31c05a['commandName']){case'bulletedList':_0x2dcd10=_0x31c05a['commandParams'][0x0]['forceValue'],_0x25cd4b=_0x26260a(_0x31c05a['commandName']),_0x3d7ef0=_0x2dcd10?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25cd4b&&_0xa30fad['config']['get']('list.multiBlock')||(_0x3d7ef0='*Change\x20to:*\x20%0'),_0x34d0ba={'type':'format','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2dcd10=_0x31c05a['commandParams'][0x0]['forceValue'],_0x25cd4b=_0x26260a(_0x31c05a['commandName']),_0x3d7ef0=_0x2dcd10?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25cd4b&&_0xa30fad['config']['get']('list.multiBlock')||(_0x3d7ef0='*Change\x20to:*\x20%0'),_0x34d0ba={'type':'format','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d7ef0='*Indent:*\x20%0',_0x34d0ba={'type':'format','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d7ef0=function(_0x49eb30){const _0x435e23=_0x49eb30['getFirstRange']();let _0x3e86fd=_0x435e23['start']['nodeAfter'];for(;_0x3e86fd&&_0x435e23['containsItem'](_0x3e86fd);){if(_0x3e86fd['getAttribute']('listIndent')>0x0)return!0x1;_0x3e86fd=_0x3e86fd['nextSibling'];}return!0x0;}(_0x4e290c)?o(_0x3b6856,'*Format:*\x20remove\x20from\x20%0',o(_0x3b6856,function(_0x1772ee){return'ELEMENT_'+_0x1772ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e290c))):o(_0x3b6856,'*Outdent:*\x20%0',o(_0x3b6856,'ELEMENT_LIST_ITEM')),_0x34d0ba={'type':'format','content':_0x3d7ef0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31c05a['multipleBlocks']&&(_0x3d7ef0='*Merge:*\x20%0',_0x34d0ba={'type':'deletion','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_LIST_ITEM'))});}return _0x34d0ba;});}}function Te(_0xbd476d){let _0x3d6902=_0xbd476d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3d6902;){const _0x258f7b=_0x3d6902['getAttribute']('listItemId');if(!_0x258f7b)return!0x1;if(_0x258f7b==_0xbd476d['data']['newValue'])return'newValue';if(_0x258f7b==_0xbd476d['data']['oldValue'])return'oldValue';_0x3d6902=_0x3d6902['previousSibling'];}return!0x1;}class Se extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf1645b=this['editor']['config']['get']('list.properties'),_0x4b6f5d=this['editor']['plugins']['get']('TrackChangesEditing');_0xf1645b['styles']&&(_0x4b6f5d['enableDefaultAttributesIntegration']('listStyle'),_0x4b6f5d['registerBlockAttribute']('listStyle')),_0xf1645b['reversed']&&(_0x4b6f5d['enableDefaultAttributesIntegration']('listReversed'),_0x4b6f5d['registerBlockAttribute']('listReversed')),_0xf1645b['startIndex']&&(_0x4b6f5d['enableDefaultAttributesIntegration']('listStart'),_0x4b6f5d['registerBlockAttribute']('listStart'));const _0x6e47cd={'type':'format','content':''};_0x4b6f5d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x190e25=this['editor']['locale'];_0x4b6f5d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x190e25,'FORMAT_LIST_REVERSED')),_0x4b6f5d['descriptionFactory']['registerDescriptionCallback'](_0x12243b=>{const {data:_0x3c8f5b}=_0x12243b;if(_0x3c8f5b&&'listReversed'==_0x3c8f5b['key'])return null==_0x3c8f5b['newValue']||0x0==_0x3c8f5b['newValue']&&null==_0x3c8f5b['oldValue']?_0x6e47cd:void 0x0;}),_0x4b6f5d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x190e25,'FORMAT_LIST_START')),_0x4b6f5d['descriptionFactory']['registerDescriptionCallback'](_0x1ef39f=>{const {data:_0x3af1c0}=_0x1ef39f;if(_0x3af1c0&&'listStart'==_0x3af1c0['key'])return null==_0x3af1c0['newValue']||0x1==_0x3af1c0['newValue']&&null==_0x3af1c0['oldValue']?_0x6e47cd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2063ca=>{if(_0x2063ca['batch']['isUndo'])return!0x1;let _0x87d76d=!0x1;const _0x2551bc=_0x4b6f5d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x455570=>{const _0xa23cfe=_0x4b6f5d['_getAttributeKey'](_0x455570);return'listStart'==_0xa23cfe||'listReversed'==_0xa23cfe;});for(const _0x8a1706 of _0x2551bc){const _0x38e10b=_0x8a1706['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x38e10b||'customNumbered'==_0x38e10b)continue;_0x4b6f5d['_findSuggestions'](_0x8a1706['getFirstRange'](),'attribute')['find'](_0x2b92b6=>'listType'==_0x4b6f5d['_getAttributeKey'](_0x2b92b6['suggestion']))||(_0x2063ca['removeMarker'](_0x8a1706['getFirstMarker']()),_0x87d76d=!0x0);}return _0x87d76d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29ecba){const _0x3c1323=this['editor']['locale'],{data:_0x1c284a}=_0x29ecba,_0x4373a8={'type':'format','content':''};if(!_0x1c284a||'listStyle'!=_0x1c284a['key'])return;if(!_0x1c284a['oldValue'])return'default'==_0x1c284a['newValue']?_0x4373a8:{'type':'format','content':''+o(_0x3c1323,'*Set\x20format:*\x20%0',o(_0x3c1323,this['_getTranslationKeyForListStyle'](_0x1c284a['newValue'])))};if(!_0x1c284a['newValue']){if('default'==_0x1c284a['oldValue'])return _0x4373a8;let _0x1a1e18=_0x29ecba['head'];for(;_0x1a1e18;){if(_0x1a1e18['data']&&'listType'==_0x1a1e18['data']['key']&&_0x1a1e18['data']['newValue'])return _0x4373a8;_0x1a1e18=_0x1a1e18['next'];}return{'type':'format','content':''+o(_0x3c1323,'*Remove\x20format:*\x20%0',o(_0x3c1323,this['_getTranslationKeyForListStyle'](_0x1c284a['oldValue'])))};}if('default'!=_0x1c284a['newValue'])return{'type':'format','content':''+o(_0x3c1323,'*Set\x20format:*\x20%0',o(_0x3c1323,this['_getTranslationKeyForListStyle'](_0x1c284a['newValue'])))};let _0x15606b=_0x29ecba['head'];for(;_0x15606b;){if(_0x15606b['data']&&'listType'==_0x15606b['data']['key']&&_0x15606b['data']['newValue']&&_0x15606b['data']['oldValue'])return _0x4373a8;_0x15606b=_0x15606b['next'];}return{'type':'format','content':o(_0x3c1323,'*Set\x20format:*\x20%0',o(_0x3c1323,'ELEMENT_'+_0x29ecba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x134dc2=this['editor'],_0x5ded94=_0x134dc2['locale'];_0x134dc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15816e=>{if('formatBlock'!=_0x15816e['type'])return;const {data:_0x575f00}=_0x15816e;if(!_0x575f00)return;let _0x3b4e90,_0x169d74;switch(_0x575f00['commandName']){case'listStyle':_0x3b4e90='*Change\x20to:*\x20%0',_0x169d74={'type':'format','content':o(_0x5ded94,_0x3b4e90,o(_0x5ded94,this['_getTranslationKeyForListStyle'](_0x575f00['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b4e90=_0x575f00['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x169d74={'type':'format','content':o(_0x5ded94,_0x3b4e90)};break;case'listStart':_0x3b4e90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x169d74={'type':'format','content':o(_0x5ded94,_0x3b4e90,_0x575f00['commandParams'][0x0]['startIndex'])};}return _0x169d74;});}['_getTranslationKeyForListStyle'](_0x156250){return'ELEMENT_'+function(_0x4a2319){if(_e['includes'](_0x4a2319))return'bulleted';if(Re['includes'](_0x4a2319))return'numbered';return null;}(_0x156250)['toUpperCase']()+'_LIST_'+_0x156250['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x9e54d2{['afterInit'](){const _0x1bc33d=this['editor'];_0x1bc33d['commands']['get']('emoji')&&_0x1bc33d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x9e54d2{static get['requires'](){return[_0xe5c81d];}['init'](){const _0x1b9de3=this['editor'],_0x2d602f=_0x1b9de3['plugins']['get']('TrackChangesEditing'),_0x154a7a=_0x1b9de3['commands']['get']('enter');_0x2d602f['enableCommand']('enter',()=>{_0x1b9de3['model']['change'](_0x20f0d1=>{const _0x5f11f7=_0x1b9de3['model']['document']['selection'],_0x43986e=_0x5f11f7['getFirstPosition'](),_0x363dfd=_0x13f7d0['fromRange'](_0x5f11f7['getFirstRange']());if(_0x154a7a['enterBlock'](_0x20f0d1)){const _0x1b6201=_0x1b9de3['model']['createPositionAt'](_0x43986e['parent']['nextSibling'],0x0),_0x53ed0a=_0x20f0d1['createRange'](_0x43986e,_0x1b6201);_0x2d602f['markInsertion'](_0x53ed0a);}else _0x20f0d1['setSelection'](_0x20f0d1['createRange'](_0x363dfd['end']));_0x363dfd['detach'](),_0x154a7a['fire']('afterExecute',{'writer':_0x20f0d1});});}),_0x1b9de3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1b9de3,'split'),{'priority':'high'}),_0x1b9de3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3004a3,_0x29bb97,_0x234e60)=>{const _0x2ff2ff=_0x234e60['mapper']['markerNameToElements'](_0x29bb97['markerName']);if(_0x2ff2ff){for(const _0x5d62d0 of _0x2ff2ff)_0x5d62d0['hasClass']('ck-suggestion-marker-split')&&(_0x234e60['mapper']['unbindElementFromMarkerName'](_0x5d62d0,_0x29bb97['markerName']),_0x234e60['writer']['remove'](_0x5d62d0));}},{'priority':'high'}),_0x1b9de3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fa571,_0x33cb64,_0xe7d02d)=>{_0xe7d02d['options']['showSuggestionHighlights']&&De(_0x1b9de3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3fa571,_0x33cb64,_0xe7d02d);},{'priority':'high'});}}class Z extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3986fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3986fa['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3986fa['enableCommand']('findNext'),_0x3986fa['enableCommand']('findPrevious'),_0x3986fa['enableCommand']('replace'),_0x3986fa['enableCommand']('replaceAll');}['handleFindCommand'](_0x2b137b,_0x49a0be,_0x486155={}){const _0x34eb35=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2b137b(_0x13a234=>{let _0x5c9b08=('string'==typeof _0x49a0be?_0x34eb35['findByTextCallback'](_0x49a0be,_0x486155):_0x49a0be)(_0x13a234);Array['isArray'](_0x5c9b08)&&(_0x5c9b08={'results':_0x5c9b08,'searchText':'string'==typeof _0x49a0be?_0x49a0be:''});const _0x56bc4c=_0x5c9b08['results']['filter'](_0xf886c2=>!0x1===this['_isInDeletionRange'](_0xf886c2,_0x13a234['item']));return{..._0x5c9b08,'results':_0x56bc4c};},_0x486155);}['_isInDeletionRange'](_0x10943e,_0xb2bdd0){const _0x554461=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb2bdd0,_0x10943e['start']),this['editor']['model']['createPositionAt'](_0xb2bdd0,_0x10943e['end']));for(const _0x3abd4e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x554461['getIntersection'](_0x3abd4e['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 _0x9e54d2{['afterInit'](){const _0x1c0889=this['editor']['locale'],_0x29fd03=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe6d325,commandName:_0x10cdf0}of ro)this['editor']['plugins']['has'](_0xe6d325)&&(_0x29fd03['enableDefaultAttributesIntegration'](_0x10cdf0),_0x29fd03['registerInlineAttribute'](_0x10cdf0));_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c0889,'FORMAT_FONT_SIZE')),_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c0889,'FORMAT_FONT_FAMILY')),_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c0889,'FORMAT_FONT_COLOR')),_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c0889,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cec3f=this['editor'],_0x7c8533=_0x3cec3f['locale'];_0x3cec3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a271e=>{const _0x224e62=_0x7c8533['t'];if('formatInline'!=_0x2a271e['type'])return;const {data:_0x30793d}=_0x2a271e;if(null!=_0x30793d){if('fontSize'==_0x30793d['commandName']){const _0x41172c=_0x30793d['commandParams'][0x0]['value'];if(_0x41172c){const _0xcd5c32=_0x224e62(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4ee4ad=>_0x4ee4ad['model']==_0x41172c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20size:*\x20%0',_0xcd5c32)};}return{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x30793d['commandName']){const _0x264614=_0x30793d['commandParams'][0x0]['value'];return _0x264614?{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20family:*\x20%0',_0x264614)}:{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20family*')};}if('fontColor'==_0x30793d['commandName']){const _0x4d6ee2=_0x30793d['commandParams'][0x0]['value'];if(_0x4d6ee2){const _0x1da78d=_0x1b403d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x214630=>_0x214630['model']==_0x4d6ee2);let _0x5d6f39=_0x4d6ee2,_0x40efe2='';return _0x1da78d&&(_0x5d6f39=_0x1da78d['label'],_0x40efe2=_0x224e62(_0x5d6f39)['toLowerCase']()),{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20color:*\x20%0',_0x40efe2)['trim'](),'color':{'value':_0x4d6ee2,'title':_0x40efe2||_0x5d6f39}};}return{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x30793d['commandName']){const _0x47105d=_0x30793d['commandParams'][0x0]['value'];if(_0x47105d){const _0x582ade=_0x1b403d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x22b6fb=>_0x22b6fb['model']==_0x47105d);let _0x470e71=_0x47105d,_0x46ba5f='';return _0x582ade&&(_0x470e71=_0x582ade['label'],_0x46ba5f=_0x224e62(_0x470e71)['toLowerCase']()),{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20background\x20color:*\x20%0',_0x46ba5f)['trim'](),'color':{'value':_0x47105d,'title':_0x46ba5f||_0x470e71}};}return{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x9e54d2{['afterInit'](){const _0x424221=this['editor'],_0x2f701c=_0x424221['plugins']['get']('TrackChangesEditing'),_0x5a4ee5=_0x424221['commands']['get']('copyFormat'),_0x2d3f75=_0x424221['commands']['get']('pasteFormat');_0x5a4ee5&&_0x2d3f75&&(_0x2f701c['enableDefaultAttributesIntegration']('pasteFormat'),_0x2f701c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d689d=this['editor'],_0x4032f5=_0x5d689d['locale'];_0x5d689d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20805f=>{if('formatBlock'!=_0x20805f['type']&&'formatInline'!=_0x20805f['type'])return;const {data:_0x22acc0}=_0x20805f;if(_0x22acc0&&'pasteFormat'===_0x22acc0['commandName']){const _0x29a097=[],_0xbda73f=_0x22acc0['commandParams'][0x0];for(const [_0x1a4abd,_0x2689f1]of Object['entries'](_0xbda73f))_0x29a097['push'](so(_0x5d689d,_0x1a4abd,_0x2689f1));return _0x29a097['length']?{'type':'format','content':o(_0x4032f5,'*Set\x20format\x20to:*\x20%0',_0x29a097['join'](',\x20'))}:{'type':'format','content':o(_0x4032f5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x579196,_0x3a198f,_0xa4cc64){const _0x324ee2=_0x579196['locale']['t'],_0x46ad20=_0x3a198f['split'](/(?=[A-Z])/)['join']('\x20'),_0xb84ad9=_0x324ee2(_0x46ad20['charAt'](0x0)['toUpperCase']()+_0x46ad20['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa4cc64)return _0xb84ad9;if('fontColor'===_0x3a198f||'fontBackgroundColor'===_0x3a198f){const _0x11b81f=_0x1b403d(_0x579196['config']['get']('fontColor.colors'))['find'](_0x4c656d=>_0x4c656d['model']==_0xa4cc64);return _0xb84ad9+'\x20('+(_0x11b81f?_0x324ee2(_0x11b81f['label'])['toLowerCase']():_0xa4cc64)+')';}if('fontSize'===_0x3a198f&&isNaN(parseFloat(_0xa4cc64))){const _0x1b49ac=_0x579196['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x579196['config']['get']('fontSize.options'))['find'](_0x31f0e5=>_0x31f0e5['model']==_0xa4cc64);return _0xb84ad9+'\x20('+(_0x1b49ac?_0x324ee2(_0x1b49ac['title'])['toLowerCase']():_0xa4cc64)+')';}return _0xb84ad9+'\x20('+_0xa4cc64+')';}class it extends _0x9e54d2{['_headingOptions'];['afterInit'](){const _0x79ca71=this['editor'];if(!_0x79ca71['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x79ca71['config']['get']('heading.options');const _0x19ca3f=_0x79ca71['locale'],_0x71f021=_0x79ca71['plugins']['get']('TrackChangesEditing');_0x71f021['enableDefaultAttributesIntegration']('heading');for(const _0x5bbc87 of this['_headingOptions'])'paragraph'!=_0x5bbc87['model']&&_0x71f021['descriptionFactory']['registerElementLabel'](_0x5bbc87['model'],_0x4c389d=>{const _0x32238c=this['_getHeadingLevel'](_0x5bbc87['model']);return null!==_0x32238c?_0x3016b8(_0x4c389d,_0x32238c):_0x4b8ad2(_0x4c389d,_0x5bbc87['title']);});function _0x3016b8(_0x16c822,_0x5d3eec){return o(_0x19ca3f,'ELEMENT_HEADING',[_0x16c822,_0x5d3eec]);}function _0x4b8ad2(_0x1559e9,_0xaf46ed){return o(_0x19ca3f,'ELEMENT_HEADING_CUSTOM',[_0x1559e9,_0xaf46ed]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57b883=this['editor'],_0xa4e33e=_0x57b883['locale'];function _0x51887d(_0xd17410,_0x506f55){return o(_0xa4e33e,'ELEMENT_HEADING_CUSTOM',[_0xd17410,_0x506f55]);}_0x57b883['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ac9be=>{if('formatBlock'!=_0x4ac9be['type'])return;const {data:_0x37e791}=_0x4ac9be;if(_0x37e791&&'heading'==_0x37e791['commandName']){const _0x5259c6=_0x37e791['commandParams'][0x0]['value'],_0x46b729=this['_getHeadingLevel'](_0x5259c6);if(null!==_0x46b729)return{'type':'format','content':o(_0xa4e33e,'*Change\x20to:*\x20%0',(_0x4eaab0=0x1,_0x2715e2=_0x46b729,o(_0xa4e33e,'ELEMENT_HEADING',[_0x4eaab0,_0x2715e2])))};const _0x453a13=this['_headingOptions']['find'](_0x17be6b=>_0x17be6b['model']===_0x5259c6)['title'];return{'type':'format','content':o(_0xa4e33e,'*Change\x20to:*\x20%0',_0x51887d(0x1,_0x453a13))};}var _0x4eaab0,_0x2715e2;});}['_getHeadingLevel'](_0x10524e){const _0x5ed585=_0x10524e['match'](/^heading(\d+)/);if(_0x5ed585)return _0x5ed585[0x1];const _0x2c8f8d=this['_headingOptions']?.['find'](_0x11cc07=>_0x11cc07['model']==_0x10524e);if(_0x2c8f8d&&_0x2c8f8d['view']){const _0x49002c=_0x2c8f8d['view'],_0x32ac67=(_0x49002c['name']??_0x49002c)['match'](/^h(\d+)/);if(_0x32ac67)return _0x32ac67[0x1];}return null;}}class et extends _0x9e54d2{['afterInit'](){const _0x3f5578=this['editor'];if(!_0x3f5578['plugins']['has']('HighlightEditing'))return;const _0x2455d9=_0x3f5578['plugins']['get']('TrackChangesEditing'),_0x3e803f=_0x3f5578['locale'];_0x2455d9['enableDefaultAttributesIntegration']('highlight'),_0x2455d9['registerInlineAttribute']('highlight'),_0x2455d9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3e803f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dcec3=this['editor'],_0x55ed6b=_0x1dcec3['locale'];_0x1dcec3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c0202=>{if('formatInline'!=_0x2c0202['type'])return;const {data:_0x125d4e}=_0x2c0202;if(_0x125d4e&&'highlight'==_0x125d4e['commandName']){const _0x51e0d5=_0x55ed6b['t'],_0x2b4618=_0x125d4e['commandParams'][0x0]['value'];if(_0x2b4618){const _0x33e930=_0x1dcec3['config']['get']('highlight.options')['find'](_0x409857=>_0x409857['model']==_0x2b4618),_0x2e81ac=_0x51e0d5(_0x33e930['title'])['toLowerCase']();return{'type':'format','content':o(_0x55ed6b,'*Set\x20highlight:*\x20%0',_0x2e81ac),'color':{'value':_0x33e930['color'],'title':_0x33e930['title']}};}return{'type':'format','content':o(_0x55ed6b,'*Remove\x20highlight*',o(_0x55ed6b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x9e54d2{['afterInit'](){const _0x2a1000=this['editor'];if(!_0x2a1000['plugins']['has']('HorizontalLineEditing'))return;_0x2a1000['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f40d0=_0x2a1000['plugins']['get']('TrackChangesEditing'),_0x4f1316=_0x2a1000['locale'];_0x4f40d0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5a6361=>o(_0x4f1316,'ELEMENT_HORIZONTAL_LINE',_0x5a6361)),_0x2a1000['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb139c8,{writer:_0x5d003d,options:_0x326b33})=>{if(!_0x326b33['showSuggestionHighlights'])return null;const _0x3114b1=_0x5d003d['createContainerElement']('div'),_0x327bbb=_0x5d003d['createEmptyElement']('hr');return _0x5d003d['addClass']('ck-horizontal-line',_0x3114b1),_0x5d003d['insert'](_0x5d003d['createPositionAt'](_0x3114b1,0x0),_0x327bbb),_0x3114b1;},'converterPriority':'high'});}}class ot extends _0x9e54d2{['afterInit'](){const _0x5e8b32=this['editor'];if(!_0x5e8b32['plugins']['has']('HtmlEmbed'))return;const _0x1ff20d=_0x5e8b32['plugins']['get']('TrackChangesEditing'),_0x4c0bbc=_0x5e8b32['locale'];_0x1ff20d['descriptionFactory']['registerElementLabel']('rawHtml',_0x36f9f8=>o(_0x4c0bbc,'ELEMENT_HTML_EMBED',_0x36f9f8)),_0x1ff20d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1ff20d['registerBlockAttribute']('value'),_0x1ff20d['descriptionFactory']['registerDescriptionCallback'](_0x3ef501=>{if('attribute'!=_0x3ef501['type'])return;const {data:_0x4f6051}=_0x3ef501;if(_0x4f6051&&'value'==_0x4f6051['key']&&_0x3ef501['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3c3964=o(_0x4c0bbc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c0bbc,'*Change\x20%0\x20content*',_0x3c3964)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1631a2=this['editor'],_0x4156f5=_0x1631a2['locale'];_0x1631a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f3174=>{if('formatBlock'!=_0x1f3174['type'])return;const {data:_0x387f25}=_0x1f3174;if(_0x387f25&&'htmlEmbed'==_0x387f25['commandName']){const _0x194d37=o(_0x4156f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4156f5,'*Change\x20%0\x20content*',_0x194d37)};}});}}class rt extends _0x9e54d2{['afterInit'](){const _0x6c06e2=this['editor'];if(!_0x6c06e2['plugins']['has']('ImageEditing'))return;const _0xb17413=_0x6c06e2['plugins']['get']('TrackChangesEditing'),_0x4faf6d=_0x6c06e2['plugins']['get']('ImageUtils'),_0x3d3738=_0x6c06e2['locale'];_0xb17413['enableCommand']('insertImage'),_0xb17413['descriptionFactory']['registerElementLabel']('imageBlock',_0x2b3d4b=>o(_0x3d3738,'ELEMENT_IMAGE',_0x2b3d4b)),_0xb17413['descriptionFactory']['registerElementLabel']('imageInline',_0x1a91d9=>o(_0x3d3738,'ELEMENT_INLINE_IMAGE',_0x1a91d9)),_0xb17413['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d3738,'ELEMENT_CAPTION')),_0x6c06e2['plugins']['has']('ImageUploadEditing')&&_0xb17413['enableCommand']('uploadImage'),_0x6c06e2['plugins']['has']('ImageBlockEditing')&&_0x6c06e2['plugins']['has']('ImageInlineEditing')&&(_0xb17413['enableCommand']('imageTypeInline',(_0x509c6e,_0x47f88f)=>{const _0x20d6ee=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']);_0x6c06e2['model']['change'](()=>{_0xb17413['markBlockFormat'](_0x20d6ee,{'commandName':'imageTypeInline','commandParams':[_0x47f88f]},[],'convertBlockImageToInline');});}),_0xb17413['enableCommand']('imageTypeBlock',(_0x67d9bc,_0x25d432)=>{_0x6c06e2['model']['change'](_0x10ba50=>{let _0x3fd4a0=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x470046=_0x10ba50['createRangeOn'](_0x3fd4a0);const _0x48c794=_0x174689['fromPosition'](_0x470046['start'],'toPrevious'),_0x5cc28c=_0x174689['fromPosition'](_0x470046['end'],'toNext');_0xb17413['forceDefaultExecution'](()=>_0x67d9bc(_0x25d432)),_0x3fd4a0=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x470046=_0x10ba50['createRangeOn'](_0x3fd4a0);const _0x1e6a2e=_0x10ba50['createRange'](_0x48c794,_0x5cc28c);_0x48c794['detach'](),_0x5cc28c['detach'](),_0xb17413['markBlockFormat'](_0x3fd4a0,{'commandName':'imageTypeInline','commandParams':[_0x25d432]},[],'convertInlineImageToBlock'),_0x1e6a2e['start']['isBefore'](_0x470046['start'])&&_0xb17413['markInsertion'](_0x10ba50['createRange'](_0x1e6a2e['start'],_0x470046['start']),'convertInlineImageToBlock'),_0x470046['end']['isBefore'](_0x1e6a2e['end'])&&_0xb17413['markInsertion'](_0x10ba50['createRange'](_0x470046['end'],_0x1e6a2e['end']),'convertInlineImageToBlock');});}),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb17413['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b3545])=>{const _0x4d95ad=_0xb17413['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c5d5e=_0x4b3545['start'],_0x2b6961=_0x4b3545['end'];const _0x111c15=_0x6c06e2['model']['schema']['getNearestSelectionRange'](_0x2c5d5e,'backward'),_0x4e1967=_0x6c06e2['model']['schema']['getNearestSelectionRange'](_0x2b6961,'forward');_0x111c15['isCollapsed']&&(_0x2c5d5e=_0x111c15['start']),_0x4e1967['isCollapsed']&&(_0x2b6961=_0x4e1967['end']),_0x4d95ad([_0x6c06e2['model']['createRange'](_0x2c5d5e,_0x2b6961)]);}),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x184d7e),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x184d7e)),_0x6c06e2['plugins']['has']('ImageCaptionEditing')&&(_0xb17413['enableCommand']('toggleImageCaption',(_0x502558,_0x559cc2)=>{const _0x459834=_0x6c06e2['plugins']['get']('ImageCaptionUtils');let _0x5b36b5=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x2ceaaf=_0x459834['getCaptionFromImageModelElement'](_0x5b36b5);_0x6c06e2['model']['change'](()=>{if(_0x2ceaaf)return void _0xb17413['markDeletion'](_0x6c06e2['model']['createRangeOn'](_0x2ceaaf));const _0x4eb336=_0x4faf6d['isBlockImage'](_0x5b36b5);_0x502558(_0x559cc2),_0x5b36b5=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x2ceaaf=_0x459834['getCaptionFromImageModelElement'](_0x5b36b5),_0xb17413['markInsertion'](_0x6c06e2['model']['createRangeOn'](_0x2ceaaf),_0x4eb336?null:'imageCaption');});}),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x184d7e));const _0xf75e49=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x357b2f(_0x50a219,_0x1563b2){const _0x31a11a=_0xf75e49['findIndex'](({type:_0x2d2e58,subType:_0x20304c})=>_0x50a219['type']==_0x2d2e58&&_0x50a219['subType']==_0x20304c),_0x1697ea=_0xf75e49['findIndex'](({type:_0x2c3fc4,subType:_0x43038a})=>_0x1563b2['type']==_0x2c3fc4&&_0x1563b2['subType']==_0x43038a);if(_0x31a11a<0x0||_0x1697ea<0x0)return!0x1;const _0x39a88b=_0x50a219['getFirstRange'](),_0x153341=_0x1563b2['getFirstRange']();if((0x0==_0x31a11a||0x1==_0x31a11a)&&0x2==_0x1697ea&&_0x39a88b['isIntersecting'](_0x153341))return!0x0;if(0x2==_0x31a11a&&0x3==_0x1697ea){const _0x2dda15=_0xb17413['_findSuggestions'](_0x39a88b,'insertion')['filter'](({suggestion:_0x36cf81,meta:_0x4ed6e3})=>_0x4ed6e3['isOwn']&&'convertInlineImageToBlock'==_0x36cf81['subType']);if(_0x2dda15['length']>0x1&&_0x153341['end']['isEqual'](_0x39a88b['start']))return!0x0;if(0x1==_0x2dda15['length']&&(_0x39a88b['start']['isEqual'](_0x153341['end'])||_0x39a88b['end']['isEqual'](_0x153341['start'])))return!0x0;}if(0x3==_0x31a11a&&0x3==_0x1697ea&&_0x39a88b['start']['isBefore'](_0x153341['start'])){const _0x1d344d=_0x39a88b['end']['nodeAfter'],_0x2c04ab=_0x153341['start']['nodeBefore'];return _0x4faf6d['isBlockImage'](_0x1d344d)&&_0x1d344d===_0x2c04ab;}return!0x1;}function _0x184d7e(_0x509405,_0x4eef08){return _0x357b2f(_0x509405,_0x4eef08)?[_0x509405,_0x4eef08]:_0x357b2f(_0x4eef08,_0x509405)?[_0x4eef08,_0x509405]:null;}_0x6c06e2['plugins']['has']('ImageResize')&&(_0xb17413['enableDefaultAttributesIntegration']('resizeImage'),_0xb17413['registerBlockAttribute']('resizedWidth'),_0xb17413['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d3738,'FORMAT_IMAGE_SIZE'))),_0x6c06e2['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb17413['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb17413['registerBlockAttribute']('alt')),_0x6c06e2['plugins']['has']('PictureEditing')&&(_0xb17413['registerBlockAttribute']('sources'),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x1a5d22=>{if('attribute'!=_0x1a5d22['type'])return;const {data:_0x4cf9df}=_0x1a5d22;return _0x4cf9df&&'sources'==_0x4cf9df['key']?{'type':'format','content':''}:void 0x0;})),_0x6c06e2['plugins']['has']('ImageSizeAttributes')&&(_0xb17413['registerBlockAttribute']('width'),_0xb17413['registerBlockAttribute']('height'),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x324503=>{if('attribute'!=_0x324503['type'])return;const {data:_0x214c8d}=_0x324503;return!_0x214c8d||'width'!=_0x214c8d['key']&&'height'!=_0x214c8d['key']?void 0x0:{'type':'format','content':''};})),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x793c5f=>{if(!!_0xf75e49['find'](({type:_0x160042,subType:_0x4ac2d5})=>_0x793c5f['type']==_0x160042&&_0x793c5f['subType']==_0x4ac2d5))return _0x793c5f['previous']?{}:void 0x0;}),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x1b9ef3=>{if('insertion'==_0x1b9ef3['type']||'deletion'==_0x1b9ef3['type']){const _0x41d521=_0x1b9ef3['getContainedElement']();if(_0x41d521&&_0x41d521['is']('element','caption'))return{'type':'insertion'==_0x1b9ef3['type']?'addObject':'removeObject','element':_0x41d521,'quantity':0x1};}}),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x1a38b9=>'formatBlock'==_0x1a38b9['type']&&'convertInlineImageToBlock'==_0x1a38b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1a38b9['type']&&'convertBlockImageToInline'==_0x1a38b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x4dd92a=>{if('attribute'!=_0x4dd92a['type'])return;const {data:_0x180c6b}=_0x4dd92a;if(!_0x180c6b||'alt'!=_0x180c6b['key'])return;const _0x524b23=_0x180c6b['newValue'];return _0x524b23?{'type':'format','content':o(_0x3d3738,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x524b23+'\x22')}:{'type':'format','content':o(_0x3d3738,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595367=this['editor'],_0x7bac1d=_0x595367['locale'];_0x595367['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19e93f=>{if('formatBlock'!=_0x19e93f['type']&&'formatInline'!=_0x19e93f['type'])return;const {data:_0x4e2882}=_0x19e93f;if(_0x4e2882){if('imageTextAlternative'==_0x4e2882['commandName']){const _0x2c6247=_0x4e2882['commandParams'][0x0]['newValue'];return _0x2c6247?{'type':'format','content':o(_0x7bac1d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c6247+'\x22')}:{'type':'format','content':o(_0x7bac1d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e2882['commandName']){const _0x4f672f=_0x4e2882['commandParams'][0x0]['width'];return _0x4f672f?{'type':'format','content':o(_0x7bac1d,'*Set\x20image\x20width:*\x20%0',_0x4f672f)}:{'type':'format','content':o(_0x7bac1d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28e51b=this['editor']['locale'],_0x209f1b=this['editor']['plugins']['get']('TrackChangesEditing');_0x209f1b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x209f1b['registerBlockAttribute']('src'),_0x209f1b['descriptionFactory']['registerDescriptionCallback'](_0xecb4ab=>{if('attribute'!=_0xecb4ab['type'])return;const {data:_0x1a15e9}=_0xecb4ab;return _0x1a15e9&&'src'==_0x1a15e9['key']?_0x1a15e9['newValue']&&_0x1a15e9['oldValue']?{'type':'format','content':o(_0x28e51b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d4111=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d4111['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d4111['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d4111['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d4111['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ed5ca=this['editor'],_0x46029d=_0x5ed5ca['locale'];_0x5ed5ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d304a=>{if('formatBlock'!=_0x4d304a['type']&&'formatInline'!=_0x4d304a['type'])return;const {data:_0x141146}=_0x4d304a;if(!_0x141146||'replaceImageSource'!=_0x141146['commandName'])return;return{'type':'format','content':o(_0x46029d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x9e54d2{['afterInit'](){const _0x1c31c6=this['editor'];if(!_0x1c31c6['plugins']['has']('ImageStyleEditing'))return;const _0x45ce1c=_0x1c31c6['plugins']['get']('TrackChangesEditing'),_0x373d22=_0x1c31c6['plugins']['get']('ImageUtils'),_0x4664e3={};_0x45ce1c['enableCommand']('imageStyle',(_0x1346b2,_0x51c100)=>{const _0x496b11=_0x1c31c6['plugins']['get']('Users')['me'],_0x2b4994=_0x1c31c6['commands']['get']('imageStyle');let _0x627bdd=_0x373d22['getClosestSelectedImageElement'](_0x1c31c6['model']['document']['selection']),_0x598e77=_0x1c31c6['model']['createRangeOn'](_0x627bdd),_0xa784be=_0x2b4994['value'];if(_0xa784be==_0x51c100['value'])return;const _0x473428={'commandName':'imageStyle','commandParams':[_0x51c100],'formatGroupId':_0x1ea020()};_0x1c31c6['model']['change'](()=>{if(_0x45ce1c['getSuggestions']()['filter'](_0x57a856=>_0x57a856['isInContent']&&_0x496b11==_0x57a856['author']&&('formatBlock'==_0x57a856['type']||'formatInline'==_0x57a856['type'])&&('imageStylePreApply'==_0x57a856['subType']||'imageStylePostApply'==_0x57a856['subType'])&&_0x57a856['getFirstRange']()['isEqual'](_0x598e77))['forEach'](_0x476a9e=>_0x45ce1c['discardSuggestion'](_0x476a9e['head'])),_0x627bdd=_0x373d22['getClosestSelectedImageElement'](_0x1c31c6['model']['document']['selection']),_0x598e77=_0x1c31c6['model']['createRangeOn'](_0x627bdd),_0x2b4994['refresh'](),_0x1c31c6['commands']['get']('imageTypeInline')['refresh'](),_0x1c31c6['commands']['get']('imageTypeBlock')['refresh'](),_0xa784be=_0x2b4994['value'],_0xa784be!=_0x51c100['value'])return _0x373d22['isInlineImage'](_0x627bdd)&&_0x2b4994['shouldConvertImageType'](_0x51c100['value'],_0x627bdd)?(_0x1346b2({..._0x51c100,'setImageSizes':!0x1}),_0x627bdd=_0x373d22['getClosestSelectedImageElement'](_0x1c31c6['model']['document']['selection']),void _0x45ce1c['markBlockFormat'](_0x627bdd,{..._0x473428,'commandReversedParams':[{'value':_0xa784be||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x373d22['isBlockImage'](_0x627bdd)?_0x45ce1c['markBlockFormat'](_0x627bdd,_0x473428,[],'imageStylePostApply'):_0x45ce1c['markInlineFormat'](_0x598e77,_0x473428,'imageStylePostApply'));});});for(const _0x4b5c2d of _0x1c31c6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4664e3[_0x4b5c2d['name']]=_0x4b5c2d['title']['toLowerCase']();_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1efde9])=>{_0x373d22['setImageNaturalSizeAttributes'](_0x1efde9['getContainedElement']());}),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25253a,_0x5de751)=>{_0x45ce1c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25253a,{'commandName':_0x5de751['commandName'],'commandParams':_0x5de751['commandReversedParams']});}),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x22218e,_0x38b211){if(_0x5c6f2c(_0x22218e,_0x38b211))return[_0x22218e,_0x38b211];if(_0x5c6f2c(_0x38b211,_0x22218e))return[_0x38b211,_0x22218e];return null;});const _0x5dfe2d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c6f2c(_0x1838c0,_0x39ea06){const _0x4ccd07=_0x5dfe2d['findIndex'](({type:_0xd0c4ad,subType:_0x2212f8})=>_0x1838c0['type']==_0xd0c4ad&&_0x1838c0['subType']==_0x2212f8),_0x4a1ae7=_0x5dfe2d['findIndex'](({type:_0x2af2aa,subType:_0x168489})=>_0x39ea06['type']==_0x2af2aa&&_0x39ea06['subType']==_0x168489);if(_0x4ccd07<0x0||_0x4a1ae7<0x0)return!0x1;const _0xdde66e=_0x1838c0['getFirstRange'](),_0x5bf73a=_0x39ea06['getFirstRange']();if((0x0==_0x4ccd07||0x1==_0x4ccd07)&&0x2==_0x4a1ae7&&_0xdde66e['isIntersecting'](_0x5bf73a))return!0x0;if(0x2==_0x4ccd07&&0x3==_0x4a1ae7){const _0x429052=_0x45ce1c['_findSuggestions'](_0xdde66e,'insertion')['filter'](({suggestion:_0x4aaf9b,meta:_0x4f241a})=>_0x4f241a['isOwn']&&'convertInlineImageToBlock'==_0x4aaf9b['subType']);if(_0x429052['length']>0x1&&_0x5bf73a['end']['isEqual'](_0xdde66e['start']))return!0x0;if(0x1==_0x429052['length']&&(_0xdde66e['start']['isEqual'](_0x5bf73a['end'])||_0xdde66e['end']['isEqual'](_0x5bf73a['start'])))return!0x0;}if(0x3==_0x4ccd07&&0x3==_0x4a1ae7&&_0xdde66e['start']['isBefore'](_0x5bf73a['start'])){const _0x25dbf7=_0xdde66e['end']['nodeAfter'],_0xcc2e8b=_0x5bf73a['start']['nodeBefore'];return _0x373d22['isBlockImage'](_0x25dbf7)&&_0x25dbf7===_0xcc2e8b;}return!0x1;}_0x1c31c6['model']['document']['registerPostFixer'](()=>{let _0x2fde50=!0x1;const _0x4d4758=Array['from'](_0x1c31c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x144925,data:_0x16a0c2}of _0x4d4758){const {group:_0x1fdf44,type:_0x258d7c,subType:_0xce7bf5,id:_0x43db4a}=_0x45ce1c['_splitMarkerName'](_0x144925);if('suggestion'==_0x1fdf44&&_0x45ce1c['hasSuggestion'](_0x43db4a)){if('formatBlock'==_0x258d7c&&('imageStylePreApply'==_0xce7bf5||'imageStylePostApply'==_0xce7bf5)){const _0x10f4fd=_0x45ce1c['getSuggestion'](_0x43db4a);if(_0x16a0c2['newRange']){const _0x3269e4=_0x10f4fd['getFirstRange']()['getContainedElement']();if(_0x373d22['isBlockImage'](_0x3269e4))continue;_0x45ce1c['discardSuggestion'](_0x10f4fd),_0x2fde50=!0x0;}}if('insertion'==_0x258d7c&&'imageCaption'==_0xce7bf5&&!_0x16a0c2['newRange']){const _0x19d845=_0x45ce1c['getSuggestion'](_0x43db4a);_0x19d845['next']&&_0x19d845['next']['isInContent']&&(_0x45ce1c['discardSuggestion'](_0x19d845['next']),_0x2fde50=!0x0);}}}return _0x2fde50;}),this['_registerLegacyDescription'](_0x4664e3);}['_registerLegacyDescription'](_0x4fcb1e){const _0x2f625b=this['editor'],_0x3079d6=_0x2f625b['locale'];_0x2f625b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d125=>{if('formatBlock'!=_0x36d125['type']&&'formatInline'!=_0x36d125['type'])return;const {data:_0x3a64fa}=_0x36d125;if(!_0x3a64fa||'imageStyle'!=_0x3a64fa['commandName'])return;const _0x45c9df=_0x3a64fa['commandParams'][0x0]['value'];return _0x5a7463('side'===_0x45c9df?o(_0x3079d6,'FORMAT_SIDE_IMAGE'):_0x4fcb1e[_0x45c9df]||_0x45c9df);function _0x5a7463(_0x5c6249){return{'type':'format','content':o(_0x3079d6,'*Format:*\x20%0',_0x5c6249)};}});}}class ut extends _0x9e54d2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x319552){super(_0x319552),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1e270a=this['editor'],_0x1efb79=_0x1e270a['commands']['get']('importWord'),_0x1af2b7=_0x1e270a['commands']['get']('trackChanges');_0x1efb79&&(_0x1efb79['on']('execute',(_0x10355f,[,_0x1056fe])=>{this['_trackChangesValueDuringImport']=_0x1af2b7['value'],_0x1056fe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1efb79,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1efb79,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1af2b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1e270a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x337a0a,_0xe69b20){const {suggestions:_0x2768e4}=_0xe69b20,_0x238950=this['editor']['commands']['get']('trackChanges'),_0x1b08d5=_0x238950['value'];this['_trackChangesValueDuringImport']!==_0x1b08d5&&(_0x238950['execute'](),this['_trackChangesExecuted']=!0x0),_0x2768e4&&_0x2768e4['forEach'](({id:_0x52a095,type:_0x2eff51,author:_0x176890,created_at:_0x288295})=>{const _0x5c9c59={'id':_0x52a095,'type':_0x2eff51,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x176890,'createdAt':_0x288295?new Date(_0x288295):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c9c59);});}}class ft extends _0x9e54d2{['afterInit'](){const _0x3d76a7=this['editor'],_0x53a3f9=_0x3d76a7['plugins']['get']('TrackChangesEditing');if(_0x3d76a7['plugins']['has']('IndentEditing')&&(_0x53a3f9['enableCommand']('indent'),_0x53a3f9['enableCommand']('outdent')),_0x3d76a7['plugins']['has']('IndentBlock')){for(const _0x3bd9d0 of['indentBlock','outdentBlock'])_0x53a3f9['enableDefaultAttributesIntegration'](_0x3bd9d0);}const _0x59869d=_0x3d76a7['locale'];_0x53a3f9['registerBlockAttribute']('blockIndent'),_0x53a3f9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x59869d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd87d=this['editor'],_0x5a71af=_0x4bd87d['locale'],_0x13541c=_0x4bd87d['plugins']['get']('TrackChangesEditing');_0x13541c['descriptionFactory']['registerDescriptionCallback'](_0x3e90a7=>{if('formatBlock'!=_0x3e90a7['type'])return;const {data:_0x5a48d0}=_0x3e90a7;if(!_0x5a48d0)return;if('indentBlock'!=_0x5a48d0['commandName']&&'outdentBlock'!=_0x5a48d0['commandName'])return;const _0x4be518=_0x3e90a7['getItems']()[0x0],_0x11ff2a=_0x13541c['descriptionFactory']['getItemLabel'](_0x4be518);return'indentBlock'==_0x5a48d0['commandName']?{'type':'format','content':o(_0x5a71af,'*Indent:*\x20%0',_0x11ff2a)}:'outdentBlock'==_0x5a48d0['commandName']?{'type':'format','content':o(_0x5a71af,'*Outdent:*\x20%0',_0x11ff2a)}:void 0x0;});}}class ht extends _0x9e54d2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x9e54d2{['afterInit'](){const _0x1706d6=this['editor'];if(!_0x1706d6['plugins']['has']('LinkEditing'))return;const _0x207648=_0x1706d6['plugins']['get']('TrackChangesEditing'),_0x437dcd=_0x1706d6['commands']['get']('link');_0x207648['enableDefaultAttributesIntegration']('link'),_0x207648['enableDefaultAttributesIntegration']('unlink'),_0x207648['registerInlineAttribute']('linkHref');for(const _0x23f3cf of _0x437dcd['manualDecorators'])_0x207648['registerInlineAttribute'](_0x23f3cf['id']),_0x207648['descriptionFactory']['registerAttributeLabel'](_0x23f3cf['id'],'link\x20('+_0x23f3cf['label']['toLowerCase']()+')');_0x207648['descriptionFactory']['registerDescriptionCallback'](_0x5c7faf=>{if('attribute'!=_0x5c7faf['type'])return;const {data:_0x4a1a12}=_0x5c7faf;if(!_0x4a1a12||'linkHref'!=_0x4a1a12['key'])return;const _0x9c7001=_0x4a1a12['newValue'],_0x6559ba=_0x1706d6['locale'];return{'type':'format','content':null==_0x9c7001?o(_0x6559ba,'*Remove\x20link*'):o(_0x6559ba,'*Set\x20link:*\x20%0','\x22'+_0x9c7001+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ff0db=this['editor'],_0x568e0c=_0x3ff0db['locale'];_0x3ff0db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a7b8=>{if('formatInline'!=_0x47a7b8['type'])return;const {data:_0x3d4c81}=_0x47a7b8;if(_0x3d4c81){if('link'==_0x3d4c81['commandName']){const _0x57008e=_0x3d4c81['commandParams'][0x0];return{'type':'format','content':o(_0x568e0c,'*Set\x20link:*\x20%0','\x22'+_0x57008e+'\x22')};}return'unlink'==_0x3d4c81['commandName']?{'type':'format','content':o(_0x568e0c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x9e54d2{['afterInit'](){const _0x2dde35=this['editor'],_0xc6040e=_0x2dde35['locale'];if(!_0x2dde35['plugins']['has']('LegacyListEditing'))return;const _0x49c776=_0x2dde35['plugins']['get']('TrackChangesEditing'),_0x23070e=_0x2dde35['plugins']['has']('LegacyTodoListEditing');function _0x27c831(_0x46b1e7){return()=>{const _0x27437f=_0x2dde35['model']['document']['selection'],_0x528fd0=_0x2dde35['commands']['get'](_0x46b1e7);if(_0x528fd0['value'])return void _0x2dde35['execute']('paragraph',{});const _0x49044e=_0x46b1e7['slice'](0x0,-0x4),_0x16655a=function(_0xb3b757,_0x90f5c5,_0x256614){let _0x4fc2e4=Array['from'](_0xb3b757)['filter'](_0x595f3f=>function(_0x23d66d,_0xb30c67){return _0xb30c67['checkChild'](_0x23d66d['parent'],'listItem')&&!_0xb30c67['isObject'](_0x23d66d);}(_0x595f3f,_0x256614));_0x4fc2e4=_0x4fc2e4['filter'](_0x2605a8=>!_0x2605a8['is']('element','listItem')||_0x2605a8['getAttribute']('listType')!=_0x90f5c5);const _0x421eeb=new Set();for(const _0x1af02f of _0x4fc2e4)_0x1af02f['is']('element','listItem')?_0x421eeb['add'](Le(_0x1af02f)):_0x421eeb['add'](_0x1af02f);return Array['from'](_0x421eeb);}(_0x27437f['getSelectedBlocks'](),_0x49044e,_0x2dde35['model']['schema']);_0x2dde35['model']['change'](()=>{for(const _0x2919cd of _0x16655a)_0x49c776['markBlockFormat'](_0x2919cd,{'commandName':_0x46b1e7,'commandParams':[{'forceValue':!_0x528fd0['value']}],'formatGroupId':'blockName'},Ee(_0x2919cd));});};}function _0x41cb69(_0x50738f){return()=>{const _0x34e85a=function(_0x32c4fd){let _0x132cfe=Array['from'](_0x32c4fd);const _0x5d258c=_0x132cfe['findIndex'](_0x593ddf=>'listItem'!=_0x593ddf['name']);return _0x5d258c>-0x1&&(_0x132cfe=_0x132cfe['slice'](0x0,_0x5d258c)),_0x132cfe;}(_0x2dde35['model']['document']['selection']['getSelectedBlocks']()),_0xb8b4e6=_0x2dde35['model']['createRange'](_0x2dde35['model']['createPositionAt'](_0x34e85a[0x0],'before'),_0x2dde35['model']['createPositionAt'](_0x34e85a[_0x34e85a['length']-0x1],'end'));_0x2dde35['model']['change'](()=>{_0x49c776['markBlockFormat'](_0xb8b4e6,{'commandName':_0x50738f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x13d39e){const _0x1048f4=new Set();for(const _0x1c62e4 of _0x13d39e){let _0x36d7b1=_0x1c62e4['nextSibling'];for(;_0x36d7b1&&_0x36d7b1['getAttribute']('listIndent')>_0x1c62e4['getAttribute']('listIndent');)_0x1048f4['add'](_0x36d7b1),_0x36d7b1=_0x36d7b1['nextSibling'];}return Array['from'](_0x1048f4);}(_0x34e85a));});};}_0x49c776['enableCommand']('numberedList',_0x27c831('numberedList')),_0x49c776['enableCommand']('bulletedList',_0x27c831('bulletedList')),_0x23070e&&_0x49c776['enableCommand']('todoList',_0x27c831('todoList')),_0x49c776['enableCommand']('indentList',_0x41cb69('indentList')),_0x49c776['enableCommand']('outdentList',_0x41cb69('outdentList')),_0x23070e&&_0x49c776['enableCommand']('checkTodoList',()=>{const _0x17d2ae=_0x2dde35['commands']['get']('checkTodoList'),_0x4704cb=Array['from'](_0x17d2ae['_selectedElements']);_0x4704cb['filter'](_0x4b7920=>_0x4b7920['getAttribute']('todoListChecked')!=_0x17d2ae['value']),_0x2dde35['model']['change'](()=>{for(const _0x5d4c8b of _0x4704cb)_0x49c776['markBlockFormat'](_0x5d4c8b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x17d2ae['value']}]});});}),_0x49c776['descriptionFactory']['registerElementLabel']('listItem',_0x17e3d4=>o(_0xc6040e,'ELEMENT_LIST_ITEM',_0x17e3d4)),_0x49c776['descriptionFactory']['registerDescriptionCallback'](_0x3eb42=>{if('formatBlock'!=_0x3eb42['type']&&'formatInline'!=_0x3eb42['type'])return;const {data:_0x4c1ace}=_0x3eb42;if(_0x4c1ace){if('numberedList'==_0x4c1ace['commandName']||'bulletedList'==_0x4c1ace['commandName']||'todoList'==_0x4c1ace['commandName'])switch(_0x4c1ace['commandName']['replace']('List','')){case'bulleted':return _0x2af814(o(_0xc6040e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2af814(o(_0xc6040e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2af814(o(_0xc6040e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c1ace['commandName'])return{'type':'format','content':o(_0xc6040e,'*Indent:*\x20%0',o(_0xc6040e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c1ace['commandName'])return{'type':'format','content':o(_0xc6040e,'*Outdent:*\x20%0',o(_0xc6040e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c1ace['commandName'])return _0x4c1ace['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc6040e,'*Check\x20item*')}:{'type':'format','content':o(_0xc6040e,'*Uncheck\x20item*')};}function _0x2af814(_0x5d5b8a){return{'type':'format','content':o(_0xc6040e,'*Change\x20to:*\x20%0',_0x5d5b8a)};}});}}function Le(_0x285f3f){const _0x5f4b89=_0x285f3f['getAttribute']('listIndent');if(0x0==_0x5f4b89)return _0x285f3f;let _0x546af2=_0x285f3f;for(;_0x285f3f['previousSibling']&&_0x285f3f['previousSibling']['is']('element','listItem');){const _0x559ea7=_0x285f3f['previousSibling']['getAttribute']('listIndent');if(_0x559ea7==_0x5f4b89)_0x546af2=_0x285f3f['previousSibling'];else{if(_0x559ea7<_0x5f4b89)break;}_0x285f3f=_0x285f3f['previousSibling'];}return _0x546af2;}function Ee(_0x2b2e96){const _0x5204d3=[];if(_0x2b2e96['is']('element','listItem')&&_0x2b2e96['getAttribute']('listIndent')>0x0){let _0x54281d=_0x2b2e96['nextSibling'];for(;_0x54281d&&'listItem'==_0x54281d['name']&&_0x54281d['getAttribute']('listIndent')==_0x2b2e96['getAttribute']('listIndent');)_0x5204d3['push'](_0x54281d),_0x54281d=_0x54281d['nextSibling'];}return _0x5204d3;}class Q extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3c986b=this['editor']['config']['get']('list.properties'),_0x4af10b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c986b['styles']&&_0x4af10b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3c986b['reversed']&&_0x4af10b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3c986b['startIndex']&&_0x4af10b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4af10b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3e1a47,_0x6e334d={}){const _0x2453a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37719c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2453a1['markMultiRangeBlockFormat'](_0x37719c,{'commandName':'listStyle','commandParams':[{'type':_0x6e334d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x357780,_0x2c4f29={}){const _0x8862a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24153b=this['_getSuggestionBlocks'](_0x3cf65c=>_0x3cf65c['is']('element','listItem')&&'numbered'===_0x3cf65c['getAttribute']('listType'));if(_0x24153b['length']<0x1)return;const _0x3e3e1c=_0x24153b['map'](_0x5bff3e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bff3e,'before'),this['editor']['model']['createPositionAt'](_0x5bff3e,0x0)));this['editor']['model']['change'](()=>{_0x8862a5['markMultiRangeBlockFormat'](_0x3e3e1c,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c4f29['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x42ad50,_0x5b03c8={}){const _0x56b310=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2304aa=this['_getSuggestionBlocks'](_0x12c54a=>_0x12c54a['is']('element','listItem')&&'numbered'===_0x12c54a['getAttribute']('listType'));if(_0x2304aa['length']<0x1)return;const _0x5209b9=_0x2304aa['map'](_0x1878bf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1878bf,'before'),this['editor']['model']['createPositionAt'](_0x1878bf,0x0)));this['editor']['model']['change'](()=>{_0x56b310['markMultiRangeBlockFormat'](_0x5209b9,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b03c8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b9812){if('formatBlock'!=_0x5b9812['type']&&'formatInline'!=_0x5b9812['type'])return;const _0x306dae=this['editor']['locale'],{data:_0x1d1a7b}=_0x5b9812;if(!_0x1d1a7b)return;let _0x4f6726,_0x3c46c4;switch(_0x1d1a7b['commandName']){case'listStyle':_0x4f6726='*Change\x20to:*\x20%0',_0x3c46c4={'type':'format','content':o(_0x306dae,_0x4f6726,o(_0x306dae,this['_getTranslationKeyForListStyle'](_0x1d1a7b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f6726=_0x1d1a7b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c46c4={'type':'format','content':o(_0x306dae,_0x4f6726)};break;case'listStart':_0x4f6726='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c46c4={'type':'format','content':o(_0x306dae,_0x4f6726,_0x1d1a7b['commandParams'][0x0]['startIndex'])};}return _0x3c46c4;}['_getSuggestionBlocksForListStyle'](){const _0x50ae7e=this['editor']['plugins']['get']('LegacyListUtils');let _0x6b0e71=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6b0e71[0x0]?.['is']('element','listItem')&&_0x6b0e71['unshift'](..._0x50ae7e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6b0e71[_0x6b0e71['length']-0x1]?.['is']('element','listItem')&&_0x6b0e71['push'](..._0x50ae7e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6b0e71=[...new Set(_0x6b0e71)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6b0e71=_0x6b0e71['filter'](_0x228ea4=>_0x228ea4['is']('element','listItem'))),_0x6b0e71;}['_getSuggestionBlocks'](_0x428427){const _0x2230c8=this['editor']['plugins']['get']('LegacyListUtils');let _0xa25837=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x428427)['map'](_0x58f4b4=>{const _0x559868=this['editor']['model']['createPositionAt'](_0x58f4b4,0x0);return[..._0x2230c8['getSiblingNodes'](_0x559868,'backward'),..._0x2230c8['getSiblingNodes'](_0x559868,'forward')];})['flat']();return _0xa25837=[...new Set(_0xa25837)],_0xa25837;}['_getTranslationKeyForListStyle'](_0x5dae93){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5dae93)||'default')['toUpperCase']()+'_LIST_'+_0x5dae93['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x9e54d2{['afterInit'](){const _0x1610bf=this['editor'];if(!_0x1610bf['plugins']['has']('MediaEmbedEditing'))return;const _0x3a831d=_0x1610bf['plugins']['get']('TrackChangesEditing'),_0x3cb9ad=_0x1610bf['locale'];_0x3a831d['enableCommand']('mediaEmbed'),_0x3a831d['descriptionFactory']['registerElementLabel']('media',_0x5d706c=>o(_0x3cb9ad,'ELEMENT_MEDIA',_0x5d706c)),_0x1610bf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x149a13,{writer:_0x1cf269,options:_0xf62312})=>{if(_0xf62312['showSuggestionHighlights'])return _0x1cf269['createEmptyElement']('div');},'converterPriority':'high'}),_0x1610bf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f01e7,_0x6dbc5b,_0x36aefc)=>{_0x36aefc['options']['showSuggestionHighlights']&&_0x1f01e7['stop']();},{'priority':'high'});}}class pt extends _0x9e54d2{['afterInit'](){const _0x5f5d04=this['editor'];_0x5f5d04['plugins']['has']('MentionEditing')&&_0x5f5d04['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x9e54d2{['afterInit'](){const _0x52365f=this['editor'];if(!_0x52365f['plugins']['has']('MergeFieldsEditing'))return;const _0x4f7365=_0x52365f['plugins']['get']('TrackChangesEditing'),_0x4c7a23=_0x52365f['locale'];_0x4f7365['enableCommand']('insertMergeField'),_0x4f7365['enableCommand']('insertMergeFieldBlock'),_0x4f7365['enableCommand']('insertMergeFieldImage'),_0x4f7365['descriptionFactory']['registerElementLabel']('mergeField',_0x1e9012=>o(_0x4c7a23,'ELEMENT_MERGE_FIELD',_0x1e9012)),_0x4f7365['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1290a3=>o(_0x4c7a23,'ELEMENT_MERGE_FIELD',_0x1290a3)),_0x4f7365['descriptionFactory']['registerDescriptionCallback'](_0x4dd39a=>{if('insertion'!=_0x4dd39a['type']&&'deletion'!=_0x4dd39a['type'])return;const _0x10e571=_0x4dd39a['getContainedElement']();if(null==_0x10e571)return;const _0x3efb0e=_0x52365f['plugins']['get']('MergeFieldsEditing');let _0x480ee3;switch(_0x3efb0e['getMergeFieldType'](_0x10e571)){case null:return;case'image':{const _0x1d9a76=_0x3efb0e['unwrapAffixes'](_0x10e571['getAttribute']('src'));_0x480ee3=_0x3efb0e['getLabel'](_0x1d9a76)||_0x1d9a76;break;}default:{const _0x4fafeb=_0x10e571['getAttribute']('id');_0x480ee3=_0x3efb0e['getLabel'](_0x4fafeb)||_0x4fafeb;break;}}return'insertion'==_0x4dd39a['type']?{'type':'insertion','content':o(_0x4c7a23,'*Insert:*\x20%0','\x22'+_0x480ee3+'\x22\x20'+o(_0x4c7a23,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4c7a23,'*Remove:*\x20%0','\x22'+_0x480ee3+'\x22\x20'+o(_0x4c7a23,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x9e54d2{['afterInit'](){const _0x5851ee=this['editor'],_0x11e452=_0x5851ee['plugins']['get']('TrackChangesEditing');_0x5851ee['plugins']['has']('MultiLevelList')&&(_0x11e452['enableDefaultAttributesIntegration']('multiLevelList'),_0x11e452['registerBlockAttribute']('listMarkerStyle'),_0x11e452['descriptionFactory']['registerDescriptionCallback'](_0x3f90c9=>this['handleDescriptions'](_0x3f90c9)));}['handleDescriptions'](_0x2f9ae6){const _0x32d328=this['editor']['locale'],{data:_0x12e2b4}=_0x2f9ae6,_0x1aeba0={'type':'format','content':''};if(_0x12e2b4&&'listMarkerStyle'==_0x12e2b4['key']){if(!_0x12e2b4['oldValue'])return{'type':'format','content':o(_0x32d328,'*Set\x20format:*\x20%0',o(_0x32d328,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e2b4['newValue']+')'};if(!_0x12e2b4['newValue']){let _0x3f549d=_0x2f9ae6['head'];for(;_0x3f549d;){if(_0x3f549d['data']&&'listType'==_0x3f549d['data']['key']&&_0x3f549d['data']['newValue'])return _0x1aeba0;_0x3f549d=_0x3f549d['next'];}return{'type':'format','content':o(_0x32d328,'*Remove\x20format:*\x20%0',o(_0x32d328,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e2b4['oldValue']+')'};}}}}class bt extends _0x9e54d2{['afterInit'](){const _0x237838=this['editor'];if(!_0x237838['plugins']['has']('PageBreakEditing'))return;_0x237838['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b00d5=_0x237838['plugins']['get']('TrackChangesEditing'),_0x4b0182=_0x237838['locale'];_0x2b00d5['descriptionFactory']['registerElementLabel']('pageBreak',_0x535eab=>o(_0x4b0182,'ELEMENT_PAGE_BREAK',_0x535eab));}}class yt extends _0x9e54d2{['afterInit'](){const _0x17bbdc=this['editor'];if(!_0x17bbdc['plugins']['has']('Paragraph'))return;const _0x1b2cde=_0x17bbdc['locale'],_0x5a8c6b=_0x17bbdc['plugins']['get']('TrackChangesEditing');_0x5a8c6b['descriptionFactory']['registerElementLabel']('paragraph',_0x5a35ba=>o(_0x1b2cde,'ELEMENT_PARAGRAPH',_0x5a35ba)),_0x5a8c6b['enableDefaultAttributesIntegration']('paragraph'),_0x5a8c6b['enableCommand']('insertParagraph'),_0x17bbdc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x17bbdc),{'priority':'highest'}),_0x17bbdc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16f2f6,_0x290e5f,_0x4dfde4)=>{_0x4dfde4['options']['showSuggestionHighlights']&&nr(_0x17bbdc,{'showActiveMarker':!0x1})(_0x16f2f6,_0x290e5f,_0x4dfde4);},{'priority':'highest'});const _0x1bfdf4=_0x5a8c6b['descriptionFactory'];_0x1bfdf4['registerDescriptionCallback'](_0xaaffc4=>{if('insertion'!==_0xaaffc4['type'])return;const {start:_0x1c2bdc,end:_0x4ba538}=_0xaaffc4['getFirstRange']();if(!_0x1c2bdc['isTouching'](_0x4ba538)||!_0x1c2bdc['nodeAfter'])return;const _0x354a60=_0x17bbdc['model']['schema'],_0x238bcf=_0x1c2bdc['nodeAfter'];return _0x354a60['isBlock'](_0x238bcf)&&!_0x354a60['isLimit'](_0x238bcf)&&_0x354a60['checkChild'](_0x238bcf,'$text')?{'type':'insertion','content':o(_0x1b2cde,'*Insert:*\x20%0',_0x1bfdf4['getItemLabel'](_0x238bcf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b54c4=this['editor'],_0x372d29=_0x3b54c4['locale'];_0x3b54c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x160e9e=>{if('formatBlock'!=_0x160e9e['type'])return;const {data:_0x1e15d7}=_0x160e9e;return _0x1e15d7&&'paragraph'==_0x1e15d7['commandName']?{'type':'format','content':o(_0x372d29,'*Change\x20to:*\x20%0',o(_0x372d29,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5d4cae,{showActiveMarker:_0x570a39=!0x0}={}){return(_0x24082d,_0x22d6a9,_0x5dbc7c)=>{const _0x44bace=_0x5d4cae['plugins']['get']('TrackChangesEditing'),_0x61c77c=_0x22d6a9['markerRange']['start'],_0x2c7baf=_0x22d6a9['markerRange']['end'],_0x29f601=_0x5d4cae['model']['schema'];if(!_0x61c77c['isTouching'](_0x2c7baf)||!_0x61c77c['nodeAfter'])return;const _0x3d9a1b=_0x61c77c['nodeAfter'];if(_0x29f601['isBlock'](_0x3d9a1b)&&!_0x29f601['isLimit'](_0x3d9a1b)&&_0x29f601['checkChild'](_0x3d9a1b,'$text')){if(!_0x5dbc7c['consumable']['consume'](_0x22d6a9['markerRange'],_0x24082d['name']))return;const {authorId:_0x481f31}=_0x44bace['_splitMarkerName'](_0x22d6a9['markerName']),_0x371b20=_0x5dbc7c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x481f31}),_0x3db961=_0x5dbc7c['mapper']['toViewPosition'](_0x2c7baf);_0x570a39&&_0x44bace['activeMarkers']['includes'](_0x22d6a9['markerName'])&&_0x5dbc7c['writer']['addClass']('ck-suggestion-marker--active',_0x371b20),_0x5dbc7c['writer']['insert'](_0x3db961,_0x371b20),_0x5dbc7c['mapper']['bindElementToMarker'](_0x371b20,_0x22d6a9['markerName']);}};}class jt extends _0x9e54d2{['afterInit'](){const _0x489d8f=this['editor'];_0x489d8f['commands']['get']('replaceSource')&&_0x489d8f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x9e54d2{['afterInit'](){const _0x5c60e2=this['editor'];if(!_0x5c60e2['plugins']['has']('RemoveFormatEditing'))return;_0x5c60e2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e5bb3=this['editor'];_0x2e5bb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38b735=>{if('formatBlock'!=_0x38b735['type']&&'formatInline'!=_0x38b735['type'])return;const {data:_0x3f3c0e}=_0x38b735;return _0x3f3c0e&&'removeFormat'==_0x3f3c0e['commandName']?{'type':'format','content':o(_0x2e5bb3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x9e54d2{['afterInit'](){const _0x498907=this['editor'];if(!_0x498907['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56b736=_0x498907['plugins']['get']('TrackChangesEditing');_0x56b736['enableCommand']('goToPreviousRestrictedEditingException'),_0x56b736['enableCommand']('goToNextRestrictedEditingException');const _0x321b11=_0x498907['plugins']['get']('RestrictedEditingModeEditing');_0x321b11['enableCommand']('trackChanges'),_0x321b11['enableCommand']('acceptSuggestion'),_0x321b11['enableCommand']('discardSuggestion'),_0x321b11['enableCommand']('acceptAllSuggestions'),_0x321b11['enableCommand']('discardAllSuggestions'),_0x321b11['enableCommand']('acceptSelectedSuggestions'),_0x321b11['enableCommand']('discardSelectedSuggestions');}}class It extends _0x9e54d2{static get['requires'](){return[_0x582213];}['init'](){const _0x55369e=this['editor'],_0x216ce3=_0x55369e['plugins']['get']('TrackChangesEditing');_0x216ce3['enableCommand']('shiftEnter'),_0x55369e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x55369e),{'priority':'high'}),_0x55369e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x55369e),{'priority':'high'}),_0x55369e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b1056,_0x1f9d24,_0x1dab6c)=>{_0x1dab6c['options']['showSuggestionHighlights']&&je(_0x55369e,{'showActiveMarker':!0x1})(_0x1b1056,_0x1f9d24,_0x1dab6c);}),_0x216ce3['descriptionFactory']['registerElementLabel']('softBreak',_0x434aca=>o(_0x55369e['locale'],'ELEMENT_LINE_BREAK',_0x434aca));}}function je(_0x30cf5e,{showActiveMarker:_0x4433ba=!0x0}={}){return(_0x4b72cb,_0x40b2ab,_0x397d14)=>{const _0xa1d38=_0x30cf5e['plugins']['get']('TrackChangesEditing');if(!_0x397d14['consumable']['test'](_0x40b2ab['markerRange'],_0x4b72cb['name']))return;const _0x184319=_0x30cf5e['model'];for(const _0x5c84cb of _0x40b2ab['markerRange']['getItems']()){if(!_0x5c84cb['is']('element','softBreak'))continue;const _0x232ecc='deletion'==_0x40b2ab['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x32b9ff}=_0xa1d38['_splitMarkerName'](_0x40b2ab['markerName']),_0x26fb21=_0x397d14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x232ecc,'data-author-id':_0x32b9ff}),_0xa9a0b7=_0x397d14['mapper']['toViewPosition'](_0x184319['createPositionBefore'](_0x5c84cb));_0x4433ba&&_0xa1d38['activeMarkers']['includes'](_0x40b2ab['markerName'])&&_0x397d14['writer']['addClass']('ck-suggestion-marker--active',_0x26fb21),_0x397d14['writer']['insert'](_0xa9a0b7,_0x26fb21),_0x397d14['mapper']['bindElementToMarker'](_0x26fb21,_0x40b2ab['markerName']);}};}class vt extends _0x9e54d2{['afterInit'](){const _0xb1a2d5=this['editor'],_0x39a0b8=_0xb1a2d5['model'],_0x5028da=_0xb1a2d5['locale'];if(!_0xb1a2d5['plugins']['has']('StandardEditingModeEditing'))return;const _0x196fbb=_0xb1a2d5['plugins']['get']('TrackChangesEditing'),_0x245519='restrictedEditingException',_0x594f95=_0xb1a2d5['commands']['get'](_0x245519);_0x196fbb['enableCommand'](_0x245519,(_0x3f308e,_0x58db90={})=>{const _0x978250=_0x39a0b8['document']['selection'];if(_0x978250['isCollapsed'])return void _0x3f308e(_0x58db90);const _0x3f3655=void 0x0!==_0x58db90['forceValue']?_0x58db90['forceValue']:!_0x594f95['value'];_0x39a0b8['change'](()=>{const _0x5da875=Array['from'](_0x978250['getRanges']());for(const _0xca3302 of _0x5da875){const _0xa3997b=_0x3f3655?[_0xca3302]:io(_0x245519,_0xca3302,_0x39a0b8);for(const _0x5de4aa of _0xa3997b)_0x196fbb['markInlineFormat'](_0x5de4aa,{'commandName':_0x245519,'commandParams':[{'forceValue':_0x3f3655}]});}});}),_0x196fbb['descriptionFactory']['registerDescriptionCallback'](_0x13f5cb=>{if('formatBlock'!=_0x13f5cb['type']&&'formatInline'!=_0x13f5cb['type'])return;const {data:_0x4b1b17}=_0x13f5cb;return _0x4b1b17&&_0x4b1b17['commandName']==_0x245519?_0x4b1b17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5028da,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5028da,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x9e54d2{['afterInit'](){const _0x1ff090=this['editor'];if(!_0x1ff090['plugins']['has']('Style')||!_0x1ff090['plugins']['has']('DataSchema'))return;const _0x4f4d50=_0x1ff090['plugins']['get']('TrackChangesEditing'),_0x2f224e=_0x1ff090['locale'],_0x480abd=_0x1ff090['config']['get']('style')||{},_0x33ffdf=_0x1ff090['plugins']['get']('GeneralHtmlSupport'),_0x4a73be=_0x1ff090['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1ff090['plugins']['get']('DataSchema'),_0x480abd['definitions']);_0x4f4d50['enableDefaultAttributesIntegration']('style');const _0x8026fa=new Set();for(const _0x40d4c1 of _0x4a73be['block']){const _0x41e5c6=_0x33ffdf['getGhsAttributeNameForElement'](_0x40d4c1['element']);_0x8026fa['add'](_0x41e5c6);}const _0x16774a=new Set();for(const _0x62c9e9 of _0x4a73be['inline']){const _0x2d92b5=_0x33ffdf['getGhsAttributeNameForElement'](_0x62c9e9['element']);_0x16774a['add'](_0x2d92b5);for(const _0x3538d7 of _0x62c9e9['ghsAttributes'])_0x16774a['add'](_0x3538d7);}for(const _0x59e72f of _0x8026fa)_0x4f4d50['registerBlockAttribute'](_0x59e72f),_0x4f4d50['descriptionFactory']['registerAttributeLabel'](_0x59e72f,o(_0x2f224e,'FORMAT_STYLE'));for(const _0x24dfea of _0x16774a)_0x4f4d50['registerInlineAttribute'](_0x24dfea),_0x4f4d50['descriptionFactory']['registerAttributeLabel'](_0x24dfea,o(_0x2f224e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e563=this['editor'],_0x4fd625=_0x38e563['locale'];_0x38e563['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe078f7=>{if('formatBlock'!=_0xe078f7['type']&&'formatInline'!=_0xe078f7['type'])return;const {data:_0x3ea4d3}=_0xe078f7;return _0x3ea4d3&&'style'===_0x3ea4d3['commandName']?_0x3ea4d3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fd625,'*Set\x20format:*\x20%0',_0x3ea4d3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4fd625,'*Remove\x20format:*\x20%0',_0x3ea4d3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x9e54d2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x280a0a){super(_0x280a0a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1bdf13=this['editor'],_0x5b61b9=_0x1bdf13['model']['document']['selection'];if(!_0x1bdf13['plugins']['has']('TableEditing'))return;const _0x16d4bc=_0x1bdf13['locale'],_0x1e7931=_0x1bdf13['plugins']['get']('TrackChangesEditing'),_0x35c920=_0x1bdf13['plugins']['get']('TableUtils');_0x1e7931['descriptionFactory']['registerElementLabel']('table',_0x671a82=>o(_0x16d4bc,'ELEMENT_TABLE',_0x671a82)),this['_setupColumnsRowsFixing'](),_0x1e7931['enableCommand']('insertTable'),_0x1e7931['enableCommand']('selectTableRow'),_0x1e7931['enableCommand']('selectTableColumn');for(const _0x1e3aee of['insertTableRowAbove','insertTableRowBelow']){const _0x308294=_0x1bdf13['commands']['get'](_0x1e3aee);_0x1e7931['enableCommand'](_0x1e3aee,_0x1387c7=>{_0x1bdf13['model']['change'](_0x196d7b=>{_0x1387c7();const _0x870450='above'===_0x308294['order'],_0x3680e2=_0x35c920['getSelectionAffectedTableCells'](_0x5b61b9),_0x40ee42=_0x35c920['getRowIndexes'](_0x3680e2),_0x39689c=_0x870450?_0x40ee42['first']-0x1:_0x40ee42['last']+0x1,_0x66cdf1=_0x3680e2[0x0]['findAncestor']('table'),_0x5cdd97=_0x35c920['createTableWalker'](_0x66cdf1,{'startRow':_0x39689c,'endRow':_0x39689c}),_0x369dff=Array['from'](_0x5cdd97)['map'](_0x5fe9c0=>_0x196d7b['createRangeOn'](_0x5fe9c0['cell']));_0x1e7931['markMultiRangeInsertion'](_0x369dff,'tableRow');});});}for(const _0x115936 of['insertTableColumnLeft','insertTableColumnRight']){const _0x31ab56=_0x1bdf13['commands']['get'](_0x115936);_0x1e7931['enableCommand'](_0x115936,_0x34f3b0=>{_0x1bdf13['model']['change'](_0x3ff6d3=>{_0x34f3b0();const _0x509018='left'===_0x31ab56['order'],_0x35df4a=_0x35c920['getSelectionAffectedTableCells'](_0x5b61b9),_0x117816=_0x35c920['getColumnIndexes'](_0x35df4a),_0x4526f6=_0x509018?_0x117816['first']-0x1:_0x117816['last']+0x1,_0x205bf5=_0x35df4a[0x0]['findAncestor']('table'),_0x4bf418=_0x35c920['createTableWalker'](_0x205bf5,{'startRow':0x0,'column':_0x4526f6,'includeAllSlots':!0x1}),_0x34920c=Array['from'](_0x4bf418)['map'](_0x4ae363=>_0x3ff6d3['createRangeOn'](_0x4ae363['cell']));_0x1e7931['markMultiRangeInsertion'](_0x34920c,'tableColumn');});});}for(const _0x3663ac of['removeTableRow','removeTableColumn']){const _0x3b75d5=_0x3663ac['substr'](0xb),_0x1bcb3f=_0x3b75d5['toLowerCase'](),_0x3e029c=_0x1bcb3f['substr'](0x0,0x3)+'span',_0x4af55c='table'+_0x3b75d5,_0x53a9ce='min'+_0x3b75d5,_0x41664c='max'+_0x3b75d5;_0x1e7931['enableCommand'](_0x3663ac,()=>{_0x1bdf13['model']['change'](_0x4c18a9=>{const _0x20af46=_0x35c920['getSelectionAffectedTableCells'](_0x5b61b9),_0x15ea75=_0x20af46[0x0]['findAncestor']('table');let _0x443d10;if('removeTableRow'==_0x3663ac){const _0xf0e9a7=_0x35c920['getRowIndexes'](_0x20af46);_0x443d10={'startRow':_0xf0e9a7['first'],'endRow':_0xf0e9a7['last'],'includeAllSlots':!0x0};}else{const _0x463614=_0x35c920['getColumnIndexes'](_0x20af46);_0x443d10={'startColumn':_0x463614['first'],'endColumn':_0x463614['last'],'includeAllSlots':!0x0};}const _0x5ae696=_0x35c920['createTableWalker'](_0x15ea75,_0x443d10),_0x486fdb=Array['from'](_0x5ae696)['map'](({cell:_0xace090})=>_0xace090),_0x1c0db7=Ne(_0x486fdb['filter'](_0x199f26=>_0x199f26['hasAttribute'](_0x3e029c))),_0x1f64df=Ne(_0x486fdb['filter'](_0x3ffdfb=>!_0x3ffdfb['hasAttribute'](_0x3e029c)))['map'](_0x39bed3=>_0x4c18a9['createRangeOn'](_0x39bed3)),_0x3c509e=_0x1e7931['markMultiRangeDeletion'](_0x1f64df,_0x4af55c);if(_0x3c509e&&('tableRow'==_0x3c509e['subType']||'tableColumn'==_0x3c509e['subType'])){const _0x3eece9=this['_getSuggestionCoords'](_0x3c509e);for(const _0xb81aa2 of _0x1c0db7){const _0x46c981=_0x4c18a9['createRangeOn'](_0xb81aa2),_0x20703a=_0x35c920['getCellLocation'](_0xb81aa2),_0x19dbbd=_0xb81aa2['getAttribute'](_0x3e029c)-0x1,_0x5a2516=_0x3eece9[_0x53a9ce],_0x4b5883=_0x3eece9[_0x41664c];_0x5a2516<=_0x20703a[_0x1bcb3f]&&_0x20703a[_0x1bcb3f]+_0x19dbbd<=_0x4b5883&&_0x3c509e['addRange'](_0x46c981);}}});});}function _0x30bf73(_0x413877){const _0x3a6627=Array['from'](_0x5b61b9['getRanges']())['map'](_0x30a966=>_0x13f7d0['fromRange'](_0x30a966));_0x1bdf13['model']['change'](_0xddbe7b=>{const _0x2c59e1=_0xddbe7b['batch'];_0x413877=_0x413877['filter'](_0xf48b0f=>'$graveyard'!=_0xf48b0f['root']['rootName']),_0xddbe7b['setSelection'](_0x413877),_0x1bdf13['commands']['get']('removeTableRow')['refresh'](),_0x1bdf13['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1bdf13['model']['enqueueChange'](()=>{_0x1bdf13['model']['enqueueChange'](_0x2c59e1,_0x1815b5=>{const _0x4e7801=_0x3a6627['filter'](_0x4c10d5=>'$graveyard'!=_0x4c10d5['root']['rootName']);_0x4e7801['length']>0x0&&_0x1815b5['setSelection'](_0x4e7801);for(const _0x5d4b95 of _0x3a6627)_0x5d4b95['detach']();});});});}function _0x1d2123(_0xed551a){_0x1bdf13['model']['change'](_0x2ee479=>{const _0x2660fb=Array['from'](_0x5b61b9['getRanges']())['map'](_0x506501=>_0x13f7d0['fromRange'](_0x506501)),_0x351428=[];for(const _0x6724f1 of _0xed551a)for(const _0x23ca72 of _0x6724f1['getItems']({'shallow':!0x0}))_0x351428['push'](_0x23ca72);for(const _0x5d7ffc of _0x351428)'$graveyard'!=_0x5d7ffc['root']['rootName']&&(_0x2ee479['setSelection'](_0x2ee479['createPositionAt'](_0x5d7ffc,0x0)),_0x1bdf13['commands']['get']('removeTableColumn')['refresh'](),_0x1bdf13['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f725c=_0x2660fb['filter'](_0x3a8dd3=>'$graveyard'!=_0x3a8dd3['root']['rootName']);_0x1f725c['length']>0x0&&_0x2ee479['setSelection'](_0x1f725c);for(const _0x3c4cc9 of _0x2660fb)_0x3c4cc9['detach']();});}function _0x4a04e5(_0x3f8aef,_0x416bb0){return _0x416bb0['every'](_0x538603=>_0x3f8aef['some'](_0x2158e2=>_0x2158e2['end']['isEqual'](_0x538603['start'])||_0x538603['end']['isEqual'](_0x2158e2['start'])));}function _0xe57eaf(_0x433096,_0xbb0a90){return!_0x433096['some'](_0x2d3c3d=>_0xbb0a90['some'](_0x2eec3d=>_0x2d3c3d['isIntersecting'](_0x2eec3d)))&&_0x433096['some'](_0x5c41a4=>_0xbb0a90['some'](_0x5516a2=>_0x5c41a4['end']['isTouching'](_0x5516a2['start'])));}_0x1bdf13['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52ac5b,_0x16e5ab,_0x41c9cd)=>{if(!_0x41c9cd['options']['showSuggestionHighlights'])return;const _0x167bb2=_0x16e5ab['item'];if(!_0x167bb2)return;const _0x5085b0=_0x41c9cd['mapper']['toViewElement'](_0x167bb2);function _0x141f20(_0x2e889e){return Array['isArray'](_0x2e889e)?_0x2e889e:[_0x2e889e];}_0x5085b0&&'tableCell'===_0x167bb2['name']&&_0x44ee02(_0x5085b0,_0x41c9cd['writer'],(_0x525d64,_0x2b87f7,_0x5619b3)=>_0x5619b3['addClass'](_0x141f20(_0x2b87f7['classes']),_0x525d64),(_0x2ce00e,_0x43a4cb,_0x2c2687)=>_0x2c2687['removeClass'](_0x141f20(_0x43a4cb['classes']),_0x2ce00e));},{'priority':'highest'}),_0x1e7931['descriptionFactory']['registerDescriptionCallback'](_0xed4843=>{if('insertion'!=_0xed4843['type']&&'deletion'!=_0xed4843['type'])return;const _0x20f6ef=_0xed4843['getContainedElement']();if(null!=_0x20f6ef&&_0x20f6ef['is']('element','table')){if('insertion'==_0xed4843['type']){const _0x3a5938=_0xed4843['getItems']()['filter'](_0x2ffe17=>_0x2ffe17['is']('$textProxy'))['map'](_0x294825=>_0x294825['data']);if(_0x3a5938['length'])return{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a5938['join']('\x20')+'\x22'))};}if('deletion'==_0xed4843['type']){const _0x2ba29a=_0xed4843['getItems']()['filter'](_0x4639a5=>_0x4639a5['is']('$textProxy'))['map'](_0x59547d=>_0x59547d['data']);if(_0x2ba29a['length'])return{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2ba29a['join']('\x20')+'\x22'))};}}}),_0x1e7931['descriptionFactory']['registerDescriptionCallback'](_0x5e2233=>{if('tableRow'==_0x5e2233['subType']){const _0x5473a8=_0x5e2233['getItems']()['filter'](_0xa0ba=>_0xa0ba['is']('$textProxy'))['map'](_0x43fac2=>_0x43fac2['data']),_0x4de88c=this['_getSuggestionCoords'](_0x5e2233),_0x1fb0c1=_0x4de88c['maxRow']-_0x4de88c['minRow']+0x1;if('insertion'==_0x5e2233['type'])return _0x5473a8['length']?{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fb0c1,'\x22'+_0x5473a8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW',_0x1fb0c1))};if('deletion'==_0x5e2233['type'])return _0x5473a8['length']?{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fb0c1,'\x22'+_0x5473a8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW',_0x1fb0c1))};}if('tableColumn'==_0x5e2233['subType']){const _0x2a14fc=_0x5e2233['getItems']()['filter'](_0x18344f=>_0x18344f['is']('$textProxy'))['map'](_0x5d792b=>_0x5d792b['data']),_0x2a8fef=this['_getSuggestionCoords'](_0x5e2233),_0x497c2b=_0x2a8fef['maxColumn']-_0x2a8fef['minColumn']+0x1;if('insertion'==_0x5e2233['type'])return _0x2a14fc['length']?{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x497c2b,'\x22'+_0x2a14fc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN',_0x497c2b))};if('deletion'==_0x5e2233['type'])return _0x2a14fc['length']?{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x497c2b,'\x22'+_0x2a14fc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN',_0x497c2b))};}}),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x30bf73),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x30bf73),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d2123),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d2123),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a04e5),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a04e5),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe57eaf),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe57eaf);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32da39=this['editor'],_0x3bb85a=_0x32da39['model']['document']['selection'];return(_0x55d0bf,_0x5cffd9)=>{_0x32da39['model']['change'](_0x1943ae=>{const {commandName:_0x14cd58,commandParams:_0xe9657e}=_0x5cffd9;let _0x1bc0b9=_0x55d0bf[0x0]['end']['nodeBefore'];_0xe9657e&&_0xe9657e[0x0]&&!0x1===_0xe9657e[0x0]['forceValue']&&(_0x1bc0b9=_0x55d0bf[0x0]['start']['nodeAfter']);const _0x5d3233=_0x1943ae['createRangeIn'](_0x1bc0b9);if('$graveyard'==_0x5d3233['root']['rootName'])return;const _0x37c5ca=Array['from'](_0x3bb85a['getRanges']())['map'](_0x461a62=>_0x13f7d0['fromRange'](_0x461a62));_0x1943ae['setSelection'](_0x5d3233),_0x32da39['commands']['get'](_0x14cd58)['refresh'](),_0xe9657e['push']({'forceDefaultExecution':!0x0}),_0x32da39['execute'](_0x14cd58,..._0xe9657e);const _0x31ad80=_0x37c5ca['filter'](_0x265e79=>'$graveyard'!=_0x265e79['root']['rootName']);_0x31ad80['length']>0x0&&_0x1943ae['setSelection'](_0x31ad80);for(const _0x487cac of _0x37c5ca)_0x487cac['detach']();});};}['_getCoordsForCells'](_0x44b806){const _0x5121c1=this['editor']['plugins']['get']('TableUtils');let _0x4ad76d=Number['MAX_SAFE_INTEGER'],_0x21b32b=Number['MIN_SAFE_INTEGER'],_0x33f8bc=Number['MAX_SAFE_INTEGER'],_0x351ced=Number['MIN_SAFE_INTEGER'];for(const _0x4997ee of _0x44b806){if('$graveyard'==_0x4997ee['root']['rootName'])continue;const {row:_0x4cbced,column:_0x6a3029}=_0x5121c1['getCellLocation'](_0x4997ee),_0x391daf=_0x4997ee['hasAttribute']('rowspan')?_0x4997ee['getAttribute']('rowspan')-0x1:0x0,_0x262d9d=_0x4997ee['hasAttribute']('colspan')?_0x4997ee['getAttribute']('colspan')-0x1:0x0;_0x4ad76d=_0x4cbced<_0x4ad76d?_0x4cbced:_0x4ad76d,_0x21b32b=_0x4cbced+_0x391daf>_0x21b32b?_0x4cbced+_0x391daf:_0x21b32b,_0x33f8bc=_0x6a3029<_0x33f8bc?_0x6a3029:_0x33f8bc,_0x351ced=_0x6a3029+_0x262d9d>_0x351ced?_0x6a3029+_0x262d9d:_0x351ced;}return{'minRow':_0x4ad76d,'maxRow':_0x21b32b,'minColumn':_0x33f8bc,'maxColumn':_0x351ced};}['_setupColumnsRowsFixing'](){const _0x312cdc=this['editor'],_0x172fb9=_0x312cdc['plugins']['get']('TrackChangesEditing'),_0x1226f5=_0x312cdc['plugins']['get']('TableUtils');_0x312cdc['model']['document']['on']('change:data',()=>{const _0x1d6881=Array['from'](_0x312cdc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25950f,data:_0x2211cd}of _0x1d6881){const {group:_0x538ae8,id:_0x2b9cc6,subType:_0x35b4b0}=_0x172fb9['_splitMarkerName'](_0x25950f);if('suggestion'!=_0x538ae8)continue;if(null!=_0x2211cd['oldRange'])continue;const _0x200df5=_0x172fb9['getSuggestion'](_0x2b9cc6);this['_tablePostFixingSubtypes']['includes'](_0x35b4b0)&&this['_tableSuggestions']['add'](_0x200df5);}},{'priority':'low'});const _0x36444e=(_0x46d522,_0x519ed2)=>{let _0x1c5065=!0x1;const _0x4d2f89=_0x519ed2['createRangeOn'](_0x46d522),_0x5a3d50=_0x46d522['findAncestor']('table'),_0x2e0a8a=_0x1226f5['getCellLocation'](_0x46d522);for(const _0x31d5b9 of this['_tableSuggestions']){const _0x7b57df=_0x31d5b9['subType'],_0x25f316=_0x7b57df['startsWith']('tablePaste'),_0xa5537a=_0x7b57df['substr'](_0x25f316?0xa:0x5),_0x336095=_0xa5537a['toLowerCase'](),_0x559d3d=_0x336095['substr'](0x0,0x3)+'span',_0x314aa2='min'+_0xa5537a,_0x5cca29='max'+_0xa5537a;if(!_0x31d5b9['isInContent'])continue;if(_0x5a3d50!=_0x31d5b9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x31d5b9['isIntersectingWithRange'](_0x4d2f89))continue;const _0x3b2cd2=_0x46d522['hasAttribute'](_0x559d3d)?_0x46d522['getAttribute'](_0x559d3d)-0x1:0x0,_0x225857=this['_getSuggestionCoords'](_0x31d5b9),_0x116a8a=_0x225857[_0x314aa2],_0x4cf701=_0x225857[_0x5cca29];_0x116a8a<=_0x2e0a8a[_0x336095]&&_0x2e0a8a[_0x336095]+_0x3b2cd2<=_0x4cf701&&(_0x31d5b9['addRange'](_0x4d2f89),_0x1c5065=!0x0);}return _0x1c5065;};_0x312cdc['model']['document']['registerPostFixer'](_0x2b1bb2=>{let _0x14a343=!0x1;for(const _0x3b537f of _0x312cdc['model']['document']['differ']['getChanges']())if('insert'==_0x3b537f['type']){if('tableRow'==_0x3b537f['name']){for(const _0x3546dc of _0x3b537f['position']['nodeAfter']['getChildren']())_0x14a343=_0x14a343||_0x36444e(_0x3546dc,_0x2b1bb2);}else'tableCell'==_0x3b537f['name']&&(_0x14a343=_0x14a343||_0x36444e(_0x3b537f['position']['nodeAfter'],_0x2b1bb2));}return _0x14a343;});}['_getSuggestionCoords'](_0xa03a10){return this['_getCoordsForCells'](_0xa03a10['getRanges']()['map'](_0x325a=>_0x325a['start']['nodeAfter']));}}function Ne(_0x1d134e){return Array['from'](new Set(_0x1d134e)['values']());}class Nt extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0x55443a=this['editor'],_0x3b6ced=_0x55443a['model']['document']['selection'],_0x462f2f=_0x55443a['locale'];if(!_0x55443a['plugins']['has']('TableEditing'))return;const _0x21cbf2=_0x55443a['plugins']['get']('TrackChangesEditing'),_0x4b0371=_0x55443a['plugins']['get']('TableUtils'),_0x5756bc=_0x55443a['plugins']['get'](Ct);_0x5756bc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21cbf2['enableCommand']('mergeTableCells',()=>{const _0x47f737=_0x4b0371['getSelectionAffectedTableCells'](_0x55443a['model']['document']['selection']);_0x55443a['model']['change'](()=>{_0x21cbf2['markMultiRangeBlockFormat'](_0x47f737,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55443a['commands']['get']('mergeTableCells')['on']('execute',(_0x3554bf,_0x123229)=>{_0x55443a['commands']['get']('trackChanges')['value']&&(_0x123229['length']>0x0&&_0x123229[_0x123229['length']-0x1]&&_0x123229[_0x123229['length']-0x1]['forceDefaultExecution']||_0x21cbf2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3554bf['stop']());},{'priority':'highest'});for(const _0x238eb8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x501cc1=_0x55443a['commands']['get'](_0x238eb8);_0x21cbf2['enableCommand'](_0x238eb8,()=>{const _0x268cba=_0x55443a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4bf74e=>_0x4bf74e['is']('element','tableCell')),_0x23f80b=_0x501cc1['value'];_0x55443a['model']['change'](()=>{_0x21cbf2['markMultiRangeBlockFormat']([_0x268cba,_0x23f80b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x279dd8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x238e98=_0x55443a['commands']['get'](_0x279dd8);_0x21cbf2['enableCommand'](_0x279dd8,()=>{const _0x325f19=_0x4b0371['getSelectionAffectedTableCells'](_0x55443a['model']['document']['selection'])[0x0],_0x503346=_0x325f19['findAncestor']('table'),{column:_0x5736f1,row:_0x9f316b}=_0x4b0371['getCellLocation'](_0x325f19);let _0xec8466=[];if('horizontally'==_0x238e98['direction']){const _0x211f87=_0x4b0371['createTableWalker'](_0x503346,{'startRow':_0x9f316b,'endRow':_0x9f316b,'includeAllSlots':!0x0});_0xec8466=Array['from'](_0x211f87)['map'](_0x2c6ed1=>_0x2c6ed1['cell']);}else{const _0x1735be=_0x4b0371['createTableWalker'](_0x503346,{'column':_0x5736f1,'includeAllSlots':!0x0});_0xec8466=Array['from'](_0x1735be)['map'](_0x4afd12=>_0x4afd12['cell']);}_0x55443a['model']['change'](_0x208dc6=>{_0x21cbf2['markBlockFormat'](_0x208dc6['createRangeOn'](_0x325f19),{'commandName':_0x279dd8,'commandParams':[]},_0xec8466,_0x279dd8);});});}_0x21cbf2['descriptionFactory']['registerDescriptionCallback'](_0x3e6d0f=>{if('formatBlock'!=_0x3e6d0f['type']&&'formatInline'!=_0x3e6d0f['type'])return;const {data:_0x4d233d}=_0x3e6d0f;return _0x4d233d&&'mergeTableCells'==_0x4d233d['commandName']?{'type':'format','content':o(_0x462f2f,'*Merge\x20cells*')}:void 0x0;}),_0x21cbf2['descriptionFactory']['registerDescriptionCallback'](_0x548d4a=>{if('formatBlock'!=_0x548d4a['type']&&'formatInline'!=_0x548d4a['type'])return;const {data:_0x126150}=_0x548d4a;return _0x126150?'splitTableCellVertically'==_0x126150['commandName']?{'type':'format','content':o(_0x462f2f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x126150['commandName']?{'type':'format','content':o(_0x462f2f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1eb67f=_0x5756bc['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ed6b3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21cbf2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed6b3,'accept',_0x1eb67f);for(const _0x35e2ea of['splitTableCellVertically','splitTableCellHorizontally'])_0x21cbf2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35e2ea,'accept',_0x1eb67f);_0x21cbf2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xf1062=>{_0x55443a['model']['change'](_0x51415b=>{const _0x5466e7=Array['from'](_0x3b6ced['getRanges']())['map'](_0x4121bc=>_0x13f7d0['fromRange'](_0x4121bc));_0x51415b['setSelection'](_0xf1062),_0x55443a['commands']['get']('mergeTableCells')['refresh'](),_0x55443a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x412ed7=_0x5466e7['filter'](_0xd2c1e1=>'$graveyard'!=_0xd2c1e1['root']['rootName']);_0x412ed7['length']>0x0&&_0x51415b['setSelection'](_0x412ed7);for(const _0x18468e of _0x5466e7)_0x18468e['detach']();});});for(const _0x2a30c8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2de268=_0x55443a['commands']['get'](_0x2a30c8);_0x2de268['on']('set:isEnabled',(_0x124446,_0x1a3084,_0x4c2653)=>{if(_0x4c2653){const _0x46fc13=_0x55443a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2751e0=>_0x2751e0['is']('element','tableCell'));this['_areMergableCells'](_0x2de268['value'],_0x46fc13)||(_0x124446['return']=!0x1,_0x124446['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e27a3=this['editor']['commands']['get']('mergeTableCells'),_0x3b56be=this['editor']['plugins']['get']('TableUtils');if(!_0x4e27a3['isEnabled'])return!0x1;const _0x19de21=_0x3b56be['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x21a79b of _0x19de21)for(const _0x29e868 of _0x19de21)if(_0x21a79b!=_0x29e868&&!this['_areMergableCells'](_0x21a79b,_0x29e868))return!0x1;return!0x0;}['_areMergableCells'](_0x13f2b5,_0x48c283){const _0x53aeb4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x250b26=this['editor']['model']['createRangeOn'](_0x13f2b5),_0x12ee5a=this['editor']['model']['createRangeOn'](_0x48c283),_0x63ff53=new Set(),_0x109253=new Set();for(const _0x172dde of _0x53aeb4['getSuggestions']())if(('insertion'==_0x172dde['type']||'deletion'==_0x172dde['type']||'mergeTableCells'==_0x172dde['subType'])&&_0x172dde['isInContent']){for(const _0x53d472 of _0x172dde['getRanges']())_0x53d472['containsRange'](_0x250b26,!0x0)&&_0x63ff53['add'](_0x172dde['type']+':'+_0x172dde['author']['id']),_0x53d472['containsRange'](_0x12ee5a,!0x0)&&_0x109253['add'](_0x172dde['type']+':'+_0x172dde['author']['id']);}if(_0x63ff53['size']!=_0x109253['size'])return!0x1;for(const _0x29b80a of _0x63ff53)if(!_0x109253['has'](_0x29b80a))return!0x1;return!0x0;}}class Dt extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0xdb1256=this['editor'];if(!_0xdb1256['plugins']['has']('TableEditing'))return;const _0x2d2872=_0xdb1256['locale'],_0x1c7668=_0xdb1256['plugins']['get']('TrackChangesEditing');_0x1c7668['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1c7668['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1c7668['registerBlockAttribute']('headingRows'),_0x1c7668['registerBlockAttribute']('headingColumns'),_0x1c7668['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2d2872,'FORMAT_HEADER_ROW')),_0x1c7668['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2d2872,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2cd3cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xda1e79=this['editor']['plugins']['get']('TableUtils'),_0x39fce5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x240994({showActiveMarker:_0x510173=!0x0,setDataAttribute:_0x2533c5=!0x0}={}){return(_0x25580b,_0x1db060,_0x213bd1)=>{const {type:_0x215510,id:_0x118413}=_0x2cd3cb['_splitMarkerName'](_0x1db060['markerName']),_0x1845d4=_0x2cd3cb['getSuggestion'](_0x118413),_0x39dcec=_0x1845d4['data'];if('formatBlock'!=_0x1845d4['type']||!_0x39dcec||'setTableColumnHeader'!=_0x39dcec['commandName'])return;if(_0x1db060['item'])return void _0x25580b['stop']();if(!_0x213bd1['consumable']['consume'](_0x1db060['markerRange'],_0x25580b['name']))return;const _0x23b1db=_0x1db060['markerRange']['start']['nodeAfter'],_0x57e123=_0x1db060['markerRange']['end']['nodeBefore'],_0x23a2b1=_0x23b1db['parent']['parent'],{column:_0x26c920}=_0xda1e79['getCellLocation'](_0x23b1db),{column:_0x1abced}=_0xda1e79['getCellLocation'](_0x57e123);for(let _0x33aaf5=_0x26c920;_0x33aaf5<=_0x1abced;_0x33aaf5++){const _0x2ebbf7=_0xda1e79['createTableWalker'](_0x23a2b1,{'column':_0x33aaf5,'includeAllSlots':!0x1});for(const _0x341ebd of _0x2ebbf7){const _0x29e5e5=_0x341ebd['cell'],_0x4d2cbc=_0x213bd1['mapper']['toViewElement'](_0x29e5e5);_0x213bd1['writer']['addClass']('ck-suggestion-marker-'+_0x215510,_0x4d2cbc),_0x2533c5&&_0x213bd1['writer']['setAttribute']('data-suggestion',_0x118413,_0x4d2cbc),_0x213bd1['mapper']['bindElementToMarker'](_0x4d2cbc,_0x1db060['markerName']),_0x510173&&(_0x2cd3cb['activeMarkers']['includes'](_0x1db060['markerName'])?_0x213bd1['writer']['addClass']('ck-suggestion-marker--active',_0x4d2cbc):_0x213bd1['writer']['removeClass']('ck-suggestion-marker--active',_0x4d2cbc));}}};}_0x2cd3cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x39fce5),_0x2cd3cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x39fce5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x240994(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x102fe2,_0x611c6f,_0x336c43)=>{_0x336c43['options']['showSuggestionHighlights']&&_0x240994({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x102fe2,_0x611c6f,_0x336c43);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2db309,_0x2cddbd,_0x188719)=>{const {type:_0x3d5d1f,id:_0x5b0675}=_0x2cd3cb['_splitMarkerName'](_0x2cddbd['markerName']),_0x2a42ab=_0x2cd3cb['getSuggestion'](_0x5b0675),_0xb0399b=_0x2a42ab['data'];if('formatBlock'!=_0x2a42ab['type']||!_0xb0399b||'setTableColumnHeader'!=_0xb0399b['commandName'])return;const _0xaa116a=_0x188719['mapper']['markerNameToElements'](_0x2cddbd['markerName']);if(_0xaa116a){for(const _0x3db7c2 of _0xaa116a)_0x188719['writer']['removeClass']('ck-suggestion-marker-'+_0x3d5d1f,_0x3db7c2),_0x188719['writer']['removeClass']('ck-suggestion-marker--active',_0x3db7c2),_0x188719['writer']['removeAttribute']('data-suggestion',_0x3db7c2),_0x188719['mapper']['unbindElementFromMarkerName'](_0x3db7c2,_0x2cddbd['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fa9d1=this['editor'],_0xc443c3=_0x2fa9d1['locale'];function _0x275746(_0x10f3d6){return{'type':'format','content':o(_0xc443c3,'*Format:*\x20%0',_0x10f3d6)};}_0x2fa9d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe9fe87=>{if('formatBlock'!=_0xe9fe87['type'])return;const {data:_0x197b1a}=_0xe9fe87;if(_0x197b1a){if('setTableRowHeader'==_0x197b1a['commandName']){const _0x356250=_0x197b1a['commandParams'][0x0]['forceValue'];return _0x275746(o(_0xc443c3,_0x356250?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x197b1a['commandName']){const _0x16c2ae=_0x197b1a['commandParams'][0x0]['forceValue'];return _0x275746(o(_0xc443c3,_0x16c2ae?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x1566cd=>[_0x1566cd,null]));class Mt extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0x2ea61a=this['editor'];if(!_0x2ea61a['plugins']['has']('TableClipboard'))return;const _0x331651=_0x2ea61a['plugins']['get']('TrackChangesEditing'),_0x39bcf8=_0x2ea61a['plugins']['get']('TableUtils'),_0x3cdbcd=_0x2ea61a['plugins']['get'](Ct),_0x20afc1=_0x2ea61a['plugins']['get']('TableClipboard');_0x3cdbcd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2ea61a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2ea61a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x93ebff=null;_0x2ea61a['model']['on']('insertContent',(_0x287f15,_0x5023d1)=>{const [_0x17250a,_0x2e0621]=_0x5023d1,_0x5a413d=_0x5023d1[_0x5023d1['length']-0x1];_0x5a413d&&_0x5a413d['forceDefaultExecution']||_0x331651['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xe5ebe6,_0x1a2f0d,_0x26a343,_0x5d9d02,_0xde9773){if(_0x1a2f0d&&!_0x1a2f0d['is']('documentSelection'))return!0x1;const _0x3346c6=_0xde9773['getTableIfOnlyTableInContent'](_0xe5ebe6,_0x26a343);if(!_0x3346c6||!Ue(_0x3346c6,void 0x0,_0x5d9d02))return!0x1;const _0x5bdc36=_0x5d9d02['getSelectionAffectedTableCells'](_0x26a343['document']['selection']);if(!_0x5bdc36['length'])return!0x1;const _0x420523=_0x5bdc36[0x0]['findAncestor']('table'),_0xd33876=_0x5d9d02['getRowIndexes'](_0x5bdc36),_0xf566de=_0x5d9d02['getColumnIndexes'](_0x5bdc36),_0x5b0b32={'startRow':_0xd33876['first'],'endRow':_0xd33876['last'],'startColumn':_0xf566de['first'],'endColumn':_0xf566de['last']};return 0x1==_0x5bdc36['length']&&(_0x5b0b32['endRow']+=_0x5d9d02['getRows'](_0x3346c6)-0x1,_0x5b0b32['endColumn']+=_0x5d9d02['getColumns'](_0x3346c6)-0x1),Ue(_0x420523,_0x5b0b32,_0x5d9d02);}(_0x17250a,_0x2e0621,_0x2ea61a['model'],_0x39bcf8,_0x20afc1)&&(_0x287f15['stop'](),_0x93ebff={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ea61a['model']['change'](()=>{_0x2ea61a['model']['insertContent'](_0x5023d1[0x0],_0x5023d1[0x1],_0x5023d1[0x2],{'forceDefaultExecution':!0x0});const _0xf17f51=_0x1ea020(),{rowInsertionRanges:_0x4081fb,columnInsertionRanges:_0x3eb955,insertionRanges:_0x30a1e8,deletionRanges:_0x20f27e,cells:_0x1bbf28}=_0x93ebff;_0x4081fb['length']&&_0x331651['markMultiRangeInsertion'](_0x4081fb,'tablePasteRow',{'tablePasteChainId':_0xf17f51}),_0x3eb955['length']&&_0x331651['markMultiRangeInsertion'](_0x3eb955,'tablePasteColumn',{'tablePasteChainId':_0xf17f51}),_0x30a1e8['length']&&(_0x331651['markMultiRangeInsertion'](_0x30a1e8,'tablePaste',{'tablePasteChainId':_0xf17f51,'skipNestingCheck':!0x0}),_0x30a1e8['forEach'](_0x35a5c2=>_0x35a5c2['detach']?.())),_0x20f27e['length']&&(_0x331651['markMultiRangeDeletion'](_0x20f27e,'tablePaste',{'tablePasteChainId':_0xf17f51,'skipNestingCheck':!0x0}),_0x20f27e['forEach'](_0x336346=>_0x336346['detach']?.()));const _0x1d3cf2=_0x331651['markMultiRangeBlockFormat'](_0x1bbf28['map'](({element:_0x37e817})=>_0x37e817),{'formatGroupId':_0x1ea020()},[],'tablePasteCell',{'tablePasteChainId':_0xf17f51});if(_0x1d3cf2){const _0x486596=_0x1d3cf2['getMarkers'](),_0x5b54a9=[];for(const {element:_0x1448ab,attributes:_0x3638e6}of _0x1bbf28){if(!_0x3638e6)continue;const _0x681f76=_0x2ea61a['model']['createRangeOn'](_0x1448ab),_0x3caecf=_0x486596['find'](_0x1d6c0d=>_0x1d6c0d['getRange']()['isEqual'](_0x681f76));_0x3caecf&&_0x5b54a9['push']([_0x3caecf['name'],_0x3638e6]);}_0x5b54a9['length']&&_0x1d3cf2['setAttribute']('markerAttributes',Object['fromEntries'](_0x5b54a9));}_0x93ebff=null;}));},{'priority':_0xc98a7a['high']+0xa}),_0x2ea61a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3b1957,_0x4d9196)=>{const [_0x132fb5,_0x34d1bc,,_0x341d88]=_0x4d9196;if(!_0x93ebff)return;_0x3b1957['stop']();const _0x4df162=_0x132fb5['cell'],_0x4a257b=_0x34d1bc,_0x498c75=Oe(_0x4df162),_0x59374f=Oe(_0x4a257b);_0x3b1957['return']=_0x4df162;let _0x470ab2=null,_0x4400e7=null;if(_0x59374f||_0x498c75){if(_0x498c75&&!_0x59374f){_0x341d88['remove'](_0x4df162['getChild'](0x0));for(const _0x3c7340 of Array['from'](_0x4a257b['getChildren']()))_0x341d88['insert'](_0x3c7340,_0x4df162,'end');const _0x2beea9=_0x93ebff['rowInsertionIndexes']['includes'](_0x132fb5['row']),_0x31ad5d=_0x93ebff['columnInsertionIndexes']['includes'](_0x132fb5['column']);_0x2beea9||_0x31ad5d||(_0x470ab2=_0x13f7d0['fromRange'](_0x341d88['createRangeIn'](_0x4df162)));}else _0x59374f&&!_0x498c75&&(_0x4400e7=_0x341d88['createRangeIn'](_0x4df162));}else{const _0x23144d=_0x341d88['createElement']('tableCellSuggestion'),_0x49f1b4=_0x341d88['createElement']('tableCellSuggestion');_0x341d88['wrap'](_0x341d88['createRangeIn'](_0x4df162),_0x49f1b4),_0x341d88['insert'](_0x23144d,_0x4df162,0x0);for(const _0x5dfe8f of Array['from'](_0x4a257b['getChildren']()))_0x341d88['insert'](_0x5dfe8f,_0x23144d,'end');_0x470ab2=_0x13f7d0['fromRange'](_0x341d88['createRangeOn'](_0x23144d)),_0x4400e7=_0x13f7d0['fromRange'](_0x341d88['createRangeOn'](_0x49f1b4));}const _0x1529f1=Array['from'](_0x4a257b['getAttributes']())['filter'](([_0x329926])=>Be['includes'](_0x329926));_0x93ebff['cells']['push']({'element':_0x4df162,'attributes':_0x1529f1['length']?Object['fromEntries'](_0x1529f1):null}),_0x470ab2&&_0x93ebff['insertionRanges']['push'](_0x470ab2),_0x4400e7&&_0x93ebff['deletionRanges']['push'](_0x4400e7);},{'priority':'high'}),_0x39bcf8['on']('insertColumns',(_0x21dc7c,_0x7f3e82)=>{const [_0x2a88ab,_0x3d57b2={}]=_0x7f3e82;if(!_0x93ebff)return;const _0x1bd42b=_0x3d57b2['at']||0x0,_0x5e346a=_0x3d57b2['columns']||0x1;_0x93ebff['columnInsertionIndexes']=new Array(_0x5e346a)['fill'](_0x1bd42b)['map']((_0x2df790,_0x16d196)=>_0x2df790+_0x16d196);for(const {cell:_0x1fb05d}of _0x39bcf8['createTableWalker'](_0x2a88ab,{'startColumn':_0x1bd42b,'endColumn':_0x1bd42b+_0x5e346a-0x1}))_0x93ebff['columnInsertionRanges']['push'](_0x2ea61a['model']['createRangeOn'](_0x1fb05d));},{'priority':'low'}),_0x39bcf8['on']('insertRows',(_0x50ef73,_0xbc65e8)=>{const [_0x2f8ab3,_0x55925a={}]=_0xbc65e8;if(!_0x93ebff)return;const _0x14099a=_0x55925a['at']||0x0,_0x50dafb=_0x55925a['rows']||0x1;_0x93ebff['rowInsertionIndexes']=new Array(_0x50dafb)['fill'](_0x14099a)['map']((_0x779ca2,_0x3b1524)=>_0x779ca2+_0x3b1524);for(const {cell:_0x16801e}of _0x39bcf8['createTableWalker'](_0x2f8ab3,{'startRow':_0x14099a,'endRow':_0x14099a+_0x50dafb-0x1}))_0x93ebff['rowInsertionRanges']['push'](_0x2ea61a['model']['createRangeOn'](_0x16801e));},{'priority':'low'}),_0x331651['descriptionFactory']['registerDescriptionCallback'](_0x11ed7b=>{if(_0x11ed7b['subType']&&_0x11ed7b['subType']['startsWith']('tablePaste'))return _0x11ed7b['previous']?{}:{'type':'insertion','content':o(_0x2ea61a['locale'],'*Replace\x20table\x20cells*')};});const _0x355a03=()=>!0x1;for(const _0x334cd1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x331651['_suggestionFactory']['registerCustomCallback']('insertion',_0x334cd1,'join',_0x355a03),_0x331651['_suggestionFactory']['registerCustomCallback']('deletion',_0x334cd1,'join',_0x355a03),_0x331651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x334cd1,'join',_0x355a03);_0x331651['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x355a03),_0x331651['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42f3f1,_0x2ad51e,_0x429371)=>{const _0x599336=_0x42f3f1['map'](_0x4106df=>_0x4106df['getContainedElement']())['filter'](_0x2acd28=>_0x2acd28),_0x4a4c7e=new Map(_0x599336['map'](_0x443a1e=>[_0x443a1e,null]));if(_0x93ebff){for(const {element:_0xf5b00f,attributes:_0x300c69}of _0x93ebff['cells'])_0x300c69&&_0x4a4c7e['set'](_0xf5b00f,_0x300c69);}else{if(_0x429371&&_0x429371['markerAttributes'])for(const [_0x196288,_0x1dd283]of Object['entries'](_0x429371['markerAttributes'])){const _0x5e10a5=_0x2ea61a['model']['markers']['get'](_0x196288),_0x2cfc42=_0x5e10a5?_0x5e10a5['getRange']()['getContainedElement']():null;_0x2cfc42&&_0x4a4c7e['set'](_0x2cfc42,_0x1dd283);}}_0x2ea61a['model']['change'](_0x2fe338=>{for(const [_0x3f0b59,_0x378d35]of _0x4a4c7e)_0x2fe338['setAttributes']({...xe,..._0x378d35},_0x3f0b59);});});const _0xdd1f20=(_0x43e1d2,_0x5dd596)=>{_0x331651['_suggestionFactory']['registerCustomCallback'](_0x43e1d2,'tablePaste',_0x5dd596,(_0x120534,_0x3b3e7e,_0x4535c7)=>{_0x2ea61a['model']['change'](_0x1239ba=>{const _0x3c04a4=[];for(const _0x1caab2 of _0x120534){const _0x51c3c3=_0x1caab2['start']['nodeAfter'];_0x51c3c3['is']('element','tableCellSuggestion')&&_0x3c04a4['push'](_0x51c3c3);}_0x331651['_suggestionFactory']['getSuggestionCallback'](_0x43e1d2,null,_0x5dd596)(_0x120534,_0x3b3e7e,_0x4535c7);for(const _0x30d9ab of _0x3c04a4)'$graveyard'!=_0x30d9ab['root']['rootName']&&_0x1239ba['unwrap'](_0x30d9ab);});});};_0xdd1f20('insertion','accept'),_0xdd1f20('insertion','discard'),_0xdd1f20('deletion','accept'),_0xdd1f20('deletion','discard'),_0x331651['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a7a18=>{const _0x4c8d19=_0x2a7a18['map'](_0x1e7987=>_0x1e7987['getContainedElement']()),_0x44e0f6=_0x4c8d19[0x0]['findAncestor']('table'),{minRow:_0x26d020,maxRow:_0x656934}=_0x3cdbcd['_getCoordsForCells'](_0x4c8d19);_0x39bcf8['removeRows'](_0x44e0f6,{'at':_0x26d020,'rows':_0x656934-_0x26d020+0x1});}),_0x331651['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2c5df8=>{const _0x56245d=_0x2c5df8['map'](_0x151c18=>_0x151c18['getContainedElement']()),_0x47efa4=_0x56245d[0x0]['findAncestor']('table'),{minColumn:_0xa8b047,maxColumn:_0x4c2e34}=_0x3cdbcd['_getCoordsForCells'](_0x56245d);_0x39bcf8['removeColumns'](_0x47efa4,{'at':_0xa8b047,'columns':_0x4c2e34-_0xa8b047+0x1});});const _0x47804e=(_0x257fd6,_0x37cbf7)=>{if(!_0x37cbf7['subType']||!_0x37cbf7['subType']['startsWith']('tablePaste'))return;const _0x225572=_0x37cbf7['attributes']['tablePasteChainId'],_0x395b94=_0x331651['getSuggestions']()['filter'](_0x4fbd36=>_0x4fbd36['isInContent']&&_0x4fbd36['attributes']&&_0x4fbd36['attributes']['tablePasteChainId']==_0x225572);_0x395b94['length']&&_0x37cbf7['getAllAdjacentSuggestions']()['length']!=_0x395b94['length']&&_0x395b94['reduce']((_0x5f4a64,_0x2c40af)=>(_0x5f4a64['next']=_0x2c40af,_0x2c40af['previous']=_0x5f4a64,_0x2c40af));};function _0x10d4d5(_0x3384dd,_0x4a5b80=!0x0){const {id:_0x4b9934,authorId:_0x374a52}=_0x331651['_splitMarkerName'](_0x3384dd['markerName']),_0x13c108=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5becc0=_0x331651['activeMarkers']['includes'](_0x3384dd['markerName']);return _0x5becc0&&_0x13c108['push']('ck-suggestion-marker--active'),{'classes':_0x13c108,'attributes':{'data-suggestion':_0x4b9934,'data-author-id':_0x374a52},'priority':_0x5becc0&&_0x4a5b80?0xbc2:0xbb8};}_0x331651['on']('suggestionLoaded',_0x47804e,{'priority':'high'}),_0x331651['on']('suggestionUnloaded',_0x47804e,{'priority':'high'}),_0x2ea61a['model']['document']['registerPostFixer'](()=>{let _0x142d85=!0x1;const _0x4cbfb7=Array['from'](_0x2ea61a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cad14,data:_0x48fdf3}of _0x4cbfb7){const {group:_0x4cfe1b,type:_0x3b2f09,id:_0x3244f1}=_0x331651['_splitMarkerName'](_0x5cad14);if('suggestion'!=_0x4cfe1b||'deletion'!=_0x3b2f09||_0x48fdf3['oldRange'])continue;if(!_0x331651['hasSuggestion'](_0x3244f1))continue;const _0x47bf1d=_0x331651['getSuggestion'](_0x3244f1)['getRanges'](),_0x12a710=_0x2ea61a['plugins']['get']('Users')['me'];for(const _0x3e7f54 of _0x331651['getSuggestions']()){if(!_0x3e7f54['isInContent']||_0x3e7f54['author']!=_0x12a710)continue;if('formatBlock'!=_0x3e7f54['type']||'tablePasteCell'!=_0x3e7f54['subType'])continue;if(_0x3e7f54['getRanges']()['every'](_0x39f9e3=>_0x47bf1d['some'](_0x968259=>_0x968259['containsRange'](_0x39f9e3,!0x0)))){for(const _0x25fb12 of _0x3e7f54['getAllAdjacentSuggestions']())_0x25fb12['isInContent']&&(_0x25fb12['discard'](),_0x142d85=!0x0);}}}return _0x142d85;}),_0x2ea61a['model']['document']['registerPostFixer'](_0x1dca2a=>{const _0x425e3c=_0x2ea61a['commands']['get']('redo');if(!_0x425e3c||!_0x425e3c['_createdBatches']['has'](_0x1dca2a['batch']))return!0x1;let _0x1c188f=!0x1;const _0x4afca5=_0x2ea61a['plugins']['get']('Users')['me'],_0x4bca10=_0x2ea61a['model']['document']['differ']['getChanges'](),_0x370b1e=Array['from'](_0x2ea61a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x588435,data:_0x1b7c5b})=>{const {group:_0x5bc8e0,subType:_0xde7a36,authorId:_0x4fc2f3}=_0x331651['_splitMarkerName'](_0x588435);return'suggestion'==_0x5bc8e0&&'tablePaste'==_0xde7a36&&_0x4fc2f3==_0x4afca5['id']&&!_0x1b7c5b['oldRange'];});for(const _0x55e58d of _0x4bca10){if('insert'!=_0x55e58d['type']||'tableCellSuggestion'!=_0x55e58d['name']||0x1!=_0x55e58d['length'])continue;const _0x137614=_0x1dca2a['createRange'](_0x55e58d['position'],_0x55e58d['position']['getShiftedBy'](0x1));if(!_0x370b1e['find'](({data:_0x3f5b77})=>_0x3f5b77['newRange']['isEqual'](_0x137614))){for(const {name:_0x11820b,data:_0x578893}of _0x370b1e)if(_0x137614['containsRange'](_0x578893['newRange'])){_0x1dca2a['updateMarker'](_0x11820b,{'range':_0x137614}),_0x1c188f=!0x0;break;}}}return _0x1c188f;}),_0x2ea61a['model']['document']['registerPostFixer'](_0x2b44d0=>{let _0x1c04ec=!0x1;const _0x373297=_0x2ea61a['plugins']['get']('Users')['me'],_0x4be2e9=_0x331651['getSuggestions']()['filter'](_0x5031e3=>_0x5031e3['isInContent']&&_0x5031e3['author']==_0x373297),_0x426fda=new Set(),_0x461f36=new Set();for(const _0x34069a of _0x4be2e9)if('tablePaste'==_0x34069a['subType'])for(const _0x2cda4d of _0x34069a['getMarkers']()){const _0xff9dbb=_0x2cda4d['getRange']()['getContainedElement']();if(_0xff9dbb){if(_0xff9dbb['is']('element','tableCellSuggestion')&&Oe(_0xff9dbb)){_0x34069a['removeMarker'](_0x2cda4d['name']),_0x426fda['add'](_0xff9dbb),_0x1c04ec=!0x0;const _0x4759f1=_0xff9dbb['nextSibling'],_0x28fcfb=_0xff9dbb['previousSibling'],_0x2877eb=_0x4759f1&&_0x4759f1['is']('element','tableCellSuggestion'),_0x213dab=_0x28fcfb&&_0x28fcfb['is']('element','tableCellSuggestion');_0x2877eb&&!_0x426fda['has'](_0x4759f1)&&_0x461f36['add'](_0x4759f1),_0x213dab&&!_0x426fda['has'](_0x28fcfb)&&_0x461f36['add'](_0x28fcfb);}else _0xff9dbb['is']('element','paragraph')&&_0xff9dbb['isEmpty']&&(_0x34069a['removeMarker'](_0x2cda4d['name']),_0x1c04ec=!0x0);}}else{if('tablePasteCell'==_0x34069a['subType']){if(!_0x34069a['attributes']||!_0x34069a['attributes']['tablePasteChainId'])continue;const _0x7e1270=_0x34069a['attributes']['markerAttributes'];if(_0x7e1270&&Object['keys'](_0x7e1270)['length'])continue;const _0x48b408=_0x34069a['attributes']['tablePasteChainId'];let _0x1728bd=!0x0,_0xae48c7=!0x0;for(const _0x3536d0 of _0x4be2e9)if(_0x3536d0['subType']&&_0x3536d0['subType']['startsWith']('tablePaste')){if(!_0x3536d0['attributes']['tablePasteChainId']){_0xae48c7=!0x1;break;}if(_0x3536d0['id']!=_0x34069a['id']&&_0x3536d0['attributes']['tablePasteChainId']==_0x48b408){_0x1728bd=!0x1;break;}}_0xae48c7&&_0x1728bd&&(_0x34069a['removeMarkers'](),_0x1c04ec=!0x0);}}for(const _0x544f98 of _0x426fda)_0x2b44d0['remove'](_0x544f98);for(const _0x5a5e85 of _0x461f36)_0x2b44d0['unwrap'](_0x5a5e85);return _0x1c04ec;}),_0x2ea61a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x56511a=>_0x10d4d5(_0x56511a),'converterPriority':'high'}),_0x2ea61a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc355b,_0x7da0d)=>_0x7da0d['options']['showSuggestionHighlights']?_0x10d4d5(_0xc355b,!0x1):null,'converterPriority':'high'});const _0xade12b=_0x2ea61a['editing']['view'];this['listenTo'](_0xade12b['document'],'clipboardOutput',(_0x3d9e3e,_0x465634)=>{const _0x15956b=[];for(const _0x474326 of _0xade12b['createRangeIn'](_0x465634['content'])['getItems']())_0x474326['is']('element','suggestion-td')&&_0x15956b['push'](_0x474326);_0xade12b['change'](_0x1c1f0f=>{for(const _0x3651bf of _0x15956b)_0x1c1f0f['move'](_0x1c1f0f['createRangeIn'](_0x3651bf),_0x1c1f0f['createPositionBefore'](_0x3651bf)),_0x1c1f0f['remove'](_0x3651bf);});});}}function Oe(_0x43c662){if(_0x43c662['isEmpty'])return!0x0;const _0x40768f=_0x43c662['getChild'](0x0);return _0x40768f['is']('element','paragraph')&&_0x40768f['isEmpty'];}function Ue(_0x26e944,_0x53cc93={},_0x4194dc){for(const {isAnchor:_0x35884d,cellHeight:_0x1a18c4,cellWidth:_0x3f9e2a}of _0x4194dc['createTableWalker'](_0x26e944,{'includeAllSlots':!0x0,..._0x53cc93}))if(!_0x35884d||0x1!=_0x1a18c4||0x1!=_0x3f9e2a)return!0x1;return!0x0;}class $t extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55f8d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x55f8d3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55f8d3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55f8d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55f8d3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55f8d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55f8d3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22e779,_0x5b52da){const _0x10a6e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x416958=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55c73e=_0x5b52da['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3c9988=_0x416958['getColumnGroupElement'](_0x55c73e);let _0x46f7e0=_0x3c9988?_0x416958['getTableColumnsWidths'](_0x3c9988):null,_0x1022a8=_0x55c73e['getAttribute']('tableWidth')||null;const _0x1c9aac=_0x5b52da['tableWidth']||_0x1022a8,_0x59a684=_0x5b52da['columnWidths']||_0x46f7e0,_0x17c9c7=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f1898 of _0x10a6e4['getSuggestions']()){const _0x108d57=_0x3f1898['getContainedElement']();if('resizeTable'===_0x3f1898['subType']&&_0x108d57===_0x55c73e){_0x3f1898['author']!==_0x17c9c7&&_0x3f1898['discard']();const _0x455f2e=_0x3f1898['data']['commandParams'];_0x1022a8=_0x455f2e[0x0]['tableWidth'],_0x46f7e0=_0x455f2e[0x0]['columnWidths'];break;}}_0x22e779({'table':_0x55c73e,'tableWidth':_0x1c9aac,'columnWidths':_0x59a684}),_0x10a6e4['markBlockFormat'](_0x55c73e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1022a8,'columnWidths':_0x46f7e0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3ef7e9){if('formatBlock'!=_0x3ef7e9['type']&&'formatInline'!=_0x3ef7e9['type'])return;const {data:_0x1bad15}=_0x3ef7e9;if(_0x1bad15&&'resizeTable'===_0x1bad15['formatGroupId']){const _0x1e3e34='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e3e34)};}}}class Bt extends _0x9e54d2{['afterInit'](){const _0x345da9=this['editor'];_0x345da9['plugins']['has']('Template')&&_0x345da9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x9e54d2{['afterInit'](){const _0x4485e5=this['editor'];if(!_0x4485e5['commands']['get']('insertTableOfContents'))return;_0x4485e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x570ad=_0x4485e5['plugins']['get']('TrackChangesEditing'),_0x27c4c3=_0x4485e5['locale'];_0x570ad['descriptionFactory']['registerElementLabel']('tableOfContents',_0x431cfd=>o(_0x27c4c3,'ELEMENT_TABLE_OF_CONTENTS',_0x431cfd));}}class Rt extends _0x9e54d2{['afterInit'](){const _0x55f29a=this['editor'];if(!_0x55f29a['plugins']['has']('Title'))return;const _0x1f9e81=_0x55f29a['plugins']['get']('TrackChangesEditing');_0x1f9e81['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x55f29a['locale'],'ELEMENT_TITLE')),_0x55f29a['model']['document']['registerPostFixer'](_0x241f3a=>{let _0x41240b=!0x1;const _0x580590=Array['from'](_0x55f29a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a9ae9,data:_0x496890}of _0x580590){const {group:_0x31284b}=_0x1f9e81['_splitMarkerName'](_0x1a9ae9);if('suggestion'!==_0x31284b||!_0x496890['newRange'])continue;const _0x684045=_0x496890['newRange'],_0xc745f0=_0x684045['end']['nodeBefore'];if(!_0xc745f0||!_0xc745f0['is']('element','title-content'))continue;if(!_0x684045['start']['isTouching'](_0x684045['end']))continue;const _0x515833=_0x55f29a['model']['schema']['getNearestSelectionRange'](_0x684045['end'],'forward');if(_0x515833&&_0x515833['isCollapsed']){const _0x410f29=_0x241f3a['createRange'](_0x684045['start'],_0x515833['start']);_0x410f29['isEqual'](_0x684045)||(_0x241f3a['updateMarker'](_0x1a9ae9,{'range':_0x410f29}),_0x41240b=!0x0);}_0x41240b||(_0x241f3a['removeMarker'](_0x1a9ae9),_0x41240b=!0x0);}return _0x41240b;});}}class Tt extends _0x9e54d2{['afterInit'](){const _0xf50a07=this['editor'],_0x56dd51=_0xf50a07['plugins']['get']('TrackChangesEditing');_0xf50a07['plugins']['has']('Uploadcare')&&(_0x56dd51['enableCommand']('uploadcare'),_0xf50a07['plugins']['has']('UploadcareImageEdit')&&(_0x56dd51['enableCommand']('uploadcareImageEdit'),_0x56dd51['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x56dd51['registerBlockAttribute']('uploadcareImageId'),_0x56dd51['descriptionFactory']['registerDescriptionCallback'](_0x6a2e23=>{if('attribute'!=_0x6a2e23['type'])return;const {data:_0x5b1998}=_0x6a2e23;return _0x5b1998&&'uploadcareImageId'==_0x5b1998['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x9e54d2{['afterInit'](){const _0x2fae37=this['editor'],_0xf27eec=_0x2fae37['plugins']['get']('TrackChangesEditing');_0x2fae37['plugins']['has']('UndoEditing')&&(_0xf27eec['enableCommand']('undo'),_0xf27eec['enableCommand']('redo'));}}class Et extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0x3837b8=this['editor'];if(!_0x3837b8['plugins']['has']('TableCaptionEditing'))return;_0x3837b8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x9e54d2{['tableProperties'];['tableCellProperties'];constructor(_0x5df8cc){super(_0x5df8cc),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 _0x422d7e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x11cdf8 of this['tableProperties'])_0x422d7e['enableCommand'](_0x11cdf8,(_0x23cadd,_0x709c72)=>{const _0x29d4cd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x11cdf8,[_0x29d4cd],this['tableProperties'],'tableProperties',_0x23cadd,_0x709c72);});_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x422d7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x910eeb,_0x11ef09)=>this['handleDiscardAction'](this['tableProperties'],_0x910eeb,_0x11ef09)),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe3c967 of this['tableCellProperties'])_0x422d7e['enableCommand'](_0xe3c967,(_0xe6c169,_0xde3850)=>{const _0x4cf194=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe3c967,_0x4cf194,this['tableCellProperties'],'tableCellProperties',_0xe6c169,_0xde3850);});_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x422d7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x23232b,_0x49cc4b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x23232b,_0x49cc4b)),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x422d7e['descriptionFactory']['registerDescriptionCallback'](_0xd80a13=>this['handleSuggestionDescription'](_0xd80a13));}['_handlePropertyChange'](_0x2bd41d,_0x413c1c,_0x212e74,_0x1c061d,_0x59d8e3,_0x4d6f5c){const _0x4fd0bb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4d6f5c['batch'],()=>{for(const _0x71e9ff of _0x413c1c){if(this['_getSuggestion'](_0x71e9ff,_0x1c061d))_0x59d8e3(_0x4d6f5c);else{const _0x318df5={};for(const _0x48a1fd of _0x212e74){const _0x450f44=_0x71e9ff['getAttribute'](_0x48a1fd);void 0x0!==_0x450f44&&(_0x318df5[_0x48a1fd]=_0x450f44);}_0x59d8e3(_0x4d6f5c),_0x4fd0bb['markBlockFormat'](_0x71e9ff,{'commandParams':[_0x318df5]},[],_0x1c061d);}}});}['handleDiscardAction'](_0x3cd8f3,_0x4fe79d,_0x28188e){const _0x3a4985=_0x4fe79d[0x0]['start']['nodeAfter'],_0x3c133d=_0x28188e['commandParams'][0x0];this['editor']['model']['change'](_0x40b8e5=>{for(const _0x408171 of _0x3cd8f3)void 0x0!==_0x3c133d[_0x408171]?_0x40b8e5['setAttribute'](_0x408171,_0x3c133d[_0x408171],_0x3a4985):_0x40b8e5['removeAttribute'](_0x408171,_0x3a4985);});}['handleSuggestionDescription'](_0x204610){if(_0x204610['data'])switch(_0x204610['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x277b81,_0x45cd73){const _0x1d1779=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf2a654 of _0x1d1779['getSuggestions']({'skipNotAttached':!0x0})){const _0x312d21=_0xf2a654['getContainedElement']();if(_0xf2a654['subType']===_0x45cd73&&_0x312d21===_0x277b81)return _0xf2a654;}return null;}}const m='$elementName';class p extends _0x9e54d2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d693d,_0x53d41d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b7440){super(_0x4b7440),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x178e99,_0x8c32a7,_0x5788d6,_0x42a1f1)=>{this['_model']['change'](()=>{for(const _0x354d11 of[..._0x42a1f1,..._0x5788d6])this['_model']['markers']['has'](_0x354d11)&&_0x4b7440['editing']['reconvertMarker'](_0x354d11);});}),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']=_0x4b7440['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4b7440['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b7440['config']['get']('trackChanges.trackFormatChanges'),_0x4b7440['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b7440['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4b7440,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x46db24=this['editor'],_0x11ad78=(_0x2a31ff,_0x41fa11)=>{if('attribute'!=_0x2a31ff)return'ck-suggestion-marker-'+_0x2a31ff;const _0x1a6841=_0x41fa11['split']('|')[0x0];return this['_isBlockAttribute'](_0x1a6841)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x46db24['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x347806=>{const {id:_0x23a5cd,authorId:_0x13fdce,type:_0x258389,subType:_0x5db681}=this['_splitMarkerName'](_0x347806['markerName']),_0x1740a6=['ck-suggestion-marker',_0x11ad78(_0x258389,_0x5db681)];let _0x284a69=0xbb8;return this['activeMarkers']['includes'](_0x347806['markerName'])&&(_0x1740a6['push']('ck-suggestion-marker--active'),_0x284a69=0xbc2),'deletion'==_0x258389&&(_0x284a69+=0x5),{'classes':_0x1740a6,'attributes':{'data-suggestion':_0x23a5cd,'data-author-id':_0x13fdce},'priority':_0x284a69};}}),_0x46db24['conversion']['for']('dataDowncast')['add'](_0x133d85=>{_0x133d85['on']('addMarker:suggestion',(_0x19f324,_0x4bd785,_0x5c7922)=>{if(!_0x5c7922['options']['showSuggestionHighlights'])return;const _0x326941=_0x4bd785['item'];if(!_0x326941)return;const _0x5f17d4=_0x5c7922['mapper']['toViewElement'](_0x326941);_0x46db24['model']['schema']['isObject'](_0x326941)&&_0x5f17d4&&!_0x5f17d4['getCustomProperty']('widget')&&_0x5f17d4['is']('containerElement')&&_0x19bee4(_0x5f17d4,_0x5c7922['writer']);},{'priority':'high'});}),_0x46db24['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4ce735,_0x173b11)=>{if(!_0x173b11['options']['showSuggestionHighlights'])return null;const {type:_0x5df82e,subType:_0x2ed4dc}=this['_splitMarkerName'](_0x4ce735['markerName']);return{'classes':['ck-suggestion-marker',_0x11ad78(_0x5df82e,_0x2ed4dc)],'priority':0xbb8};}});const _0x41a6f9=({showActiveMarkers:_0x43c903=!0x0,isAttributeSuggestion:_0x1af3df=!0x1}={})=>(_0x3d3b6f,_0x2001ba,_0x303762)=>{if(!_0x2001ba['item'])return;const {id:_0x44312e,authorId:_0x3231a5}=this['_splitMarkerName'](_0x2001ba['markerName']);if(_0x1af3df){const _0x5729ca=this['_suggestions']['get'](_0x44312e),_0x4247a7=this['_getAttributeKey'](_0x5729ca);if(!this['_isBlockAttribute'](_0x4247a7))return;}if(_0x2001ba['item']['is']('selection'))return void _0x303762['consumable']['consume'](_0x2001ba['item'],_0x3d3b6f['name']);const _0x441b6a=_0x303762['mapper']['toViewElement'](_0x2001ba['item']);if(_0x2001ba['item']['is']('element')&&_0x46db24['model']['schema']['isBlock'](_0x2001ba['item'])&&!_0x441b6a['getCustomProperty']('addHighlight')){_0x303762['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x441b6a),_0x303762['writer']['setAttribute']('data-suggestion',_0x44312e,_0x441b6a),_0x303762['writer']['setAttribute']('data-author-id',_0x3231a5,_0x441b6a),_0x303762['mapper']['bindElementToMarker'](_0x441b6a,_0x2001ba['markerName']),_0x43c903&&(this['activeMarkers']['includes'](_0x2001ba['markerName'])?_0x303762['writer']['addClass']('ck-suggestion-marker--active',_0x441b6a):_0x303762['writer']['removeClass']('ck-suggestion-marker--active',_0x441b6a));for(const _0x4ba3fc of _0x46db24['model']['createRangeIn'](_0x2001ba['item'])['getItems']())_0x303762['consumable']['consume'](_0x4ba3fc,_0x3d3b6f['name']);_0x303762['consumable']['consume'](_0x2001ba['item'],_0x3d3b6f['name']);}};_0x46db24['conversion']['for']('dataDowncast')['add'](_0x24f2e2=>{_0x24f2e2['on']('addMarker:suggestion:formatBlock',(_0x4912e7,_0x3c4a50,_0x3e0ff9)=>{_0x3e0ff9['options']['showSuggestionHighlights']&&_0x41a6f9({'showActiveMarkers':!0x1})(_0x4912e7,_0x3c4a50,_0x3e0ff9);},{'priority':'highest'});}),_0x46db24['conversion']['for']('dataDowncast')['add'](_0x40951d=>{_0x40951d['on']('addMarker:suggestion:attribute',(_0x15759a,_0x89cf12,_0x25c283)=>{_0x25c283['options']['showSuggestionHighlights']&&_0x41a6f9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x15759a,_0x89cf12,_0x25c283);},{'priority':'highest'});}),_0x46db24['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2659a8,_0x335017)=>_0x335017['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2659a8['substr'](0xb)}}),_0x46db24['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x178ad7,{writer:_0x5d7901})=>{let _0x2bbf57='suggestion:'+_0x178ad7['getAttribute']('suggestion-type')+':'+_0x178ad7['getAttribute']('id');return _0x178ad7['getAttribute']('marker-count')&&(_0x2bbf57+=':'+_0x178ad7['getAttribute']('marker-count')),_0x5d7901['createElement']('$marker',{'data-name':_0x2bbf57});}}),_0x46db24['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x403923=>{_0x403923['on']('addMarker:suggestion:formatBlock',_0x41a6f9(),{'priority':'high'});}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x5cde32=>{_0x5cde32['on']('addMarker:suggestion:attribute',_0x41a6f9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x3e6edf=>{_0x3e6edf['on']('removeMarker:suggestion:formatBlock',(_0x54e7ac,_0xea2379,_0x248b88)=>{const _0x51dff1=_0x248b88['mapper']['markerNameToElements'](_0xea2379['markerName']);if(_0x51dff1){for(const _0x5acf80 of _0x51dff1)_0x5acf80['getCustomProperty']('addHighlight')||(_0x248b88['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5acf80),_0x248b88['writer']['removeAttribute']('data-suggestion',_0x5acf80),_0x248b88['writer']['removeAttribute']('data-author-id',_0x5acf80),_0x248b88['mapper']['unbindElementFromMarkerName'](_0x5acf80,_0xea2379['markerName']));}},{'priority':'high'});}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x1f2eae=>{_0x1f2eae['on']('removeMarker:suggestion:attribute',(_0x495c56,_0x4b831e,_0x1f3a17)=>{const _0x337f9a=_0x1f3a17['mapper']['markerNameToElements'](_0x4b831e['markerName']);if(!_0x337f9a)return;const {id:_0x9fd058}=this['_splitMarkerName'](_0x4b831e['markerName']),_0x5e30c9=this['_suggestions']['get'](_0x9fd058),_0x580399=this['_getAttributeKey'](_0x5e30c9);if(this['_isBlockAttribute'](_0x580399)){for(const _0x581087 of _0x337f9a)_0x581087['getCustomProperty']('addHighlight')||(_0x1f3a17['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x581087),_0x1f3a17['writer']['removeAttribute']('data-suggestion',_0x581087),_0x1f3a17['writer']['removeAttribute']('data-author-id',_0x581087),_0x1f3a17['mapper']['unbindElementFromMarkerName'](_0x581087,_0x4b831e['markerName']));}},{'priority':'high'});}),_0x46db24['model']['document']['registerPostFixer'](_0x3a340e=>{let _0x1d17d4=!0x1;const _0x4db0de=Array['from'](_0x46db24['model']['document']['differ']['getChangedMarkers']()),_0x3c62d6=new Set();for(const {name:_0x26e22c,data:_0x3b4706}of _0x4db0de){const {group:_0x200238,type:_0x11437f,subType:_0xb0ab8d,id:_0x49391b}=this['_splitMarkerName'](_0x26e22c);if('suggestion'!==_0x200238)continue;const _0x3183a9=this['_suggestions']['get'](_0x49391b);if(null!=_0x3b4706['newRange']){'formatInline'==_0x11437f&&(_0x1d17d4=_0x1d17d4||Lt(_0x3b4706['newRange'],_0x26e22c,_0x3a340e,_0x46db24['model']['schema']));const _0x497c99='attribute'==_0x11437f&&this['_isBlockAttribute'](_0xb0ab8d['split']('|')[0x0]);if(_0x3b4706['newRange']['isCollapsed']||'$graveyard'==_0x3b4706['newRange']['root']['rootName']||'formatBlock'==_0x11437f&&!Ht(_0x3b4706['newRange'])||_0x497c99&&!Ht(_0x3b4706['newRange'])||'deletion'==_0x11437f&&!(!Ft(_0x47999f=_0x3b4706['newRange'])&&!function(_0x2b16ac){return _0x2b16ac['start']['parent']==_0x2b16ac['end']['nodeBefore']&&_0x2b16ac['start']['isAtEnd'];}(_0x47999f)))_0x3a340e['removeMarker'](_0x26e22c),_0x1d17d4=!0x0;else{if(!_0x3183a9||!_0x3183a9['isInContent'])continue;if(_0x3b4706['newRange']&&_0x3b4706['oldRange']&&_0x3b4706['newRange']['isEqual'](_0x3b4706['oldRange']))continue;_0x3c62d6['add'](_0x3183a9);}}}var _0x47999f;return _0x3c62d6['size']>0x0&&(_0x1d17d4=!!this['_joinWithAdjacentSuggestions'](_0x3c62d6)||_0x1d17d4),_0x1d17d4;}),_0x46db24['model']['document']['registerPostFixer'](_0x599136=>{let _0x53a735=!0x1;for(const _0x2c88a7 of _0x46db24['model']['document']['differ']['getChanges']())if('insert'==_0x2c88a7['type'])for(const _0x1ae6f9 of this['_suggestions']['values']()){if(_0x1ae6f9['isMultiRange']||!_0x1ae6f9['isInContent'])continue;const _0x4cdb2d='formatBlock'==_0x1ae6f9['type'],_0x125bdb=this['_getAttributeKey'](_0x1ae6f9),_0x5f5b7d=_0x125bdb&&this['_isBlockAttribute'](_0x125bdb);if(!_0x4cdb2d&&!_0x5f5b7d)continue;const _0x1a3957=_0x1ae6f9['getFirstRange']();if(_0x1a3957['start']['parent']!=_0x1a3957['end']['parent']&&!_0x1a3957['end']['isAtEnd']){const _0x588f21=_0x46db24['model']['createPositionAt'](_0x1a3957['start']['nodeAfter'],'end'),_0x50b1e3=_0x46db24['model']['createRange'](_0x1a3957['start'],_0x588f21);_0x599136['updateMarker'](_0x1ae6f9['getFirstMarker'](),{'range':_0x50b1e3}),_0x53a735=!0x0;}}return _0x53a735;}),_0x46db24['model']['document']['registerPostFixer'](_0x49f83a=>this['_processAttributeChanges'](_0x49f83a)),_0x46db24['model']['document']['registerPostFixer'](_0x26e775=>!_0x26e775['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x26e775)),_0x46db24['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x46db24['model']['document']['on']('change:data',(_0x2720b7,_0x1121ac)=>{if(!_0x1121ac['isLocal']||_0x1121ac['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xef5e18=_0x46db24['model']['document']['differ']['getChanges']();if(0x0==_0xef5e18['length'])return;const _0x2fa731=[],_0x2cba06=_0xef5e18['filter'](_0x5d58b6=>'attribute'==_0x5d58b6['type']),_0xf78b2c=_0xef5e18['filter'](_0x1c8828=>'insert'==_0x1c8828['type']&&'$text'!=_0x1c8828['name']);for(const _0x337079 of _0x2cba06)this['_isRegisteredAttribute'](_0x337079['attributeKey'])&&_0x2fa731['push']({'key':_0x337079['attributeKey'],'newValue':_0x337079['attributeNewValue'],'oldValue':_0x337079['attributeOldValue'],'range':qt(_0x337079['range'],_0x46db24['model'])});for(const _0x4f6ebe of _0xf78b2c){if('rename'!=_0x4f6ebe['action']&&'refresh'!=_0x4f6ebe['action'])continue;const _0x1e89ae=zt(_0x4f6ebe['position']['nodeAfter'],_0x46db24['model']),_0x50e116=_0x4f6ebe['before'];'rename'==_0x4f6ebe['action']&&_0x2fa731['push']({'key':m,'newValue':_0x4f6ebe['name'],'oldValue':_0x50e116['name'],'range':_0x1e89ae});for(const [_0x548c60,_0x5904d3]of _0x50e116['attributes']){if(!this['_isRegisteredAttribute'](_0x548c60))continue;const _0x3f77b4=_0x4f6ebe['attributes']['get'](_0x548c60);_0x5904d3!==_0x3f77b4&&_0x2fa731['push']({'key':_0x548c60,'newValue':_0x3f77b4,'oldValue':_0x5904d3,'range':_0x1e89ae});}for(const [_0x3ed29b,_0x410f15]of _0x4f6ebe['attributes'])this['_isRegisteredAttribute'](_0x3ed29b)&&(_0x50e116['attributes']['has'](_0x3ed29b)||_0x2fa731['push']({'key':_0x3ed29b,'newValue':_0x410f15,'oldValue':null,'range':_0x1e89ae}));}0x0!=_0x2fa731['length']&&_0x46db24['model']['enqueueChange'](_0x1121ac,_0x342fbe=>{const _0xd86504=_0x1ea020();for(const {range:_0x4096fe,key:_0x1d04c6,oldValue:_0x4e5155,newValue:_0x103df0}of _0x2fa731)this['markAttributeChange'](_0x4096fe,_0x1d04c6,_0x4e5155,_0x103df0,{'groupId':_0xd86504});this['_reduceExistingSuggestions'](_0x342fbe,_0x2fa731);});},{'priority':'lowest'}),_0x46db24['model']['markers']['on']('update:suggestion',(_0x5a10d2,_0x4dd631,_0x1b1294)=>{if(null==_0x1b1294){const {id:_0x5afb5b}=this['_splitMarkerName'](_0x4dd631['name']),_0x221bdc=this['_suggestions']['get'](_0x5afb5b);_0x221bdc&&_0x221bdc['addMarkerName'](_0x4dd631['name']);}}),_0x46db24['model']['document']['on']('change:data',()=>{const _0x3c519c=Array['from'](_0x46db24['model']['document']['differ']['getChangedMarkers']())['filter'](_0x42a4e3=>'suggestion'===this['_splitMarkerName'](_0x42a4e3['name'])['group']);if(0x0===_0x3c519c['length'])return;_0x3c519c['sort']((_0xdd2a78,_0x577248)=>{const _0x2121d6=_0xdd2a78['data']['oldRange'],_0xfc8398=_0x577248['data']['oldRange'];return null===_0x2121d6&&null===_0xfc8398?0x0:null===_0x2121d6&&null!==_0xfc8398?-0x1:null!==_0x2121d6&&null===_0xfc8398?0x1:_0x2121d6['start']['isBefore'](_0xfc8398['start'])?-0x1:0x1;});const _0x55061f=new Set(),_0x4f3165=new Set();for(const {name:_0x5b3f88,data:_0x3f3181}of _0x3c519c){const {id:_0x46a4dd}=this['_splitMarkerName'](_0x5b3f88);if(null===_0x3f3181['oldRange']){const _0x251d60=this['_handleNewSuggestionMarker'](_0x5b3f88);_0x4f3165['add'](_0x251d60);}else{const _0x2c7bc1=this['_suggestions']['get'](_0x46a4dd);null!==_0x3f3181['newRange']||_0x2c7bc1['isInContent']?(_0x55061f['add'](_0x2c7bc1['head']),_0x4f3165['add'](_0x2c7bc1)):this['_removeSuggestion'](_0x2c7bc1);}}_0x4f3165['size']>0x0&&this['_refreshSuggestionsChain'](_0x4f3165);for(const _0x82236e of _0x55061f)this['fire']('suggestionChanged',_0x82236e);}),_0x46db24['model']['on']('applyOperation',(_0x3b2924,_0x47a132)=>{const _0x48a0e7=_0x47a132[0x0];if(!this['_suggestions']['size'])return;if(!_0x48a0e7['isDocumentOperation'])return;if(_0x48a0e7['batch']['isUndo']||!_0x48a0e7['batch']['isLocal'])return;let _0x54dd59,_0xf0619;switch(_0x48a0e7['type']){case'insert':_0x54dd59=_0x46db24['model']['createPositionAt'](_0x48a0e7['position']),_0xf0619=_0x54dd59['getShiftedBy'](_0x48a0e7['howMany']);break;case'split':_0x54dd59=_0x46db24['model']['createPositionAt'](_0x48a0e7['splitPosition']),_0xf0619=_0x46db24['model']['createPositionAt'](_0x48a0e7['moveTargetPosition']);break;case'move':_0x54dd59=_0x46db24['model']['createPositionAt'](_0x48a0e7['targetPosition']),_0xf0619=_0x54dd59['getShiftedBy'](_0x48a0e7['howMany']);break;default:return;}const _0x55ea7e=_0x46db24['model']['createRange'](_0x54dd59,_0xf0619);_0x46db24['model']['change'](()=>{for(const {suggestion:_0x372fe9,meta:_0x2f902a}of this['_findSuggestions'](_0x55ea7e)){if(_0x372fe9['isMultiRange'])continue;if('formatInline'==_0x372fe9['type'])continue;const _0x55b7cf=this['_getAttributeKey'](_0x372fe9);if(_0x55b7cf&&this['_isBlockAttribute'](_0x55b7cf)&&'split'!=_0x48a0e7['type'])continue;const _0x1f4f6f=_0x372fe9['data']&&_0x372fe9['data']['multipleBlocks'];('formatBlock'!=_0x372fe9['type']||'split'==_0x48a0e7['type']&&!_0x1f4f6f)&&(_0x2f902a['containsRangeInObject']||'insertion'==_0x372fe9['type']&&_0x2f902a['isOwn']||_0x372fe9['getFirstRange']()['containsRange'](_0x55ea7e)&&this['_breakSuggestionMarker'](_0x372fe9,_0x54dd59,_0xf0619));}});},{'priority':'lowest'}),_0x46db24['model']['on']('deleteContent',(_0x1af626,_0x1b121c)=>{const _0x27b1e9=_0x1b121c[0x0],_0x49dfbc=_0x1b121c[0x1];if(_0x49dfbc&&_0x49dfbc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x27b1e9['isCollapsed'])return;const _0x59daa9=_0x46db24['model']['schema'],{start:_0x4aa2ea,end:_0xf3f481}=_0x27b1e9['getFirstRange'](),_0x7475ee=_0x4aa2ea['nodeAfter']&&_0x59daa9['isLimit'](_0x4aa2ea['nodeAfter'])?null:_0x59daa9['getNearestSelectionRange'](_0x4aa2ea,'forward'),_0xa22fd4=_0xf3f481['nodeBefore']&&_0x59daa9['isLimit'](_0xf3f481['nodeBefore'])?null:_0x59daa9['getNearestSelectionRange'](_0xf3f481,'backward'),_0x16ce2f=_0x46db24['model']['createRange'](_0x7475ee?_0x7475ee['start']:_0x4aa2ea,_0xa22fd4?_0xa22fd4['end']:_0xf3f481);_0x46db24['model']['change'](_0x3c2ebe=>{this['markDeletion'](_0x16ce2f);const _0x2c7659=_0x46db24['model']['schema']['getNearestSelectionRange'](_0x16ce2f['start']);_0x27b1e9['is']('documentSelection')?_0x3c2ebe['setSelection'](_0x2c7659):_0x27b1e9['setTo'](_0x2c7659);}),_0x1af626['stop']();},{'priority':_0xc98a7a['normal']+0xa}),_0x46db24['model']['on']('insertContent',(_0x2a55be,_0x2b1ead)=>{const _0xab38a4=_0x2b1ead[_0x2b1ead['length']-0x1];_0xab38a4&&_0xab38a4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x46db24['model']['change'](()=>{let _0x4565ce=_0x46db24['model']['insertContent'](_0x2b1ead[0x0],_0x2b1ead[0x1],_0x2b1ead[0x2],{'forceDefaultExecution':!0x0});if(!_0x4565ce)return;_0x2a55be['return']=_0x4565ce['clone']();const _0x5f0a4b=_0x4565ce['end']['nodeBefore'],_0x1996f6=_0x46db24['model']['schema'];_0x5f0a4b&&_0x1996f6['isBlock'](_0x5f0a4b)&&!_0x1996f6['isObject'](_0x5f0a4b)&&(_0x4565ce=_0x46db24['model']['createRange'](_0x4565ce['start'],_0x46db24['model']['createPositionAt'](_0x5f0a4b,'end'))),this['markInsertion'](_0x4565ce);}),_0x2a55be['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x316842=new O(_0x46db24,this['_suggestions']);_0x46db24['commands']['add']('acceptSuggestion',_0x316842),this['enableCommand']('acceptSuggestion');const _0x44eb51=new R(_0x46db24,this['_suggestions']);_0x46db24['commands']['add']('discardSuggestion',_0x44eb51),this['enableCommand']('discardSuggestion'),_0x46db24['commands']['add']('acceptAllSuggestions',new x(_0x46db24,_0x316842,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x46db24['commands']['add']('discardAllSuggestions',new x(_0x46db24,_0x44eb51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x46db24['commands']['add']('acceptSelectedSuggestions',new E(_0x46db24,_0x316842,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x46db24['commands']['add']('discardSelectedSuggestions',new E(_0x46db24,_0x44eb51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5d2866=_0x46db24['plugins']['get']('CommentsRepository');this['listenTo'](_0x5d2866,'addComment',(_0x2b2adb,{threadId:_0x5dae85})=>{const _0x134675=this['_suggestions']['get'](_0x5dae85);_0x134675&&_0x134675['commentThread']&&0x1===_0x134675['commentThread']['length']&&this['_updateSuggestionData'](_0x5dae85,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5d2866,'removeComment',(_0x4ce5fb,{threadId:_0x5d04b1})=>{const _0x5bfd3b=this['_suggestions']['get'](_0x5d04b1);_0x5bfd3b&&_0x5bfd3b['commentThread']&&!_0x5bfd3b['commentThread']['length']&&this['_updateSuggestionData'](_0x5d04b1,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3409e4){const _0x3b11d3=_0x2e979d([0x54,0x41,0x4f,0x66,0x74,0x5a,0x56,0x65,0x58,0x43,0x4a,0x72,0x35,0x30,0x71,0x47,0x4b,0x4d,0x73,0x33,0x76,0x78,0x75,0x79,0x4c,0x50,0x6f,0x61,0x48,0x67,0x62,0x59,0x70,0x36,0x57,0x32,0x77,0x37,0x6e,0x52,0x44,0x31,0x6b,0x64,0x69,0x46,0x6a,0x34,0x63,0x55,0x49,0x39,0x53,0x42,0x68,0x6d,0x45,0x38,0x6c,0x51,0x7a,0x4e]),_0x4ccdcc=0x571699cf,_0x285c14=0x5711f99f^_0x4ccdcc,_0x553892=window[_0x2e979d([0x44,0x61,0x74,0x65])][_0x2e979d([0x6e,0x6f,0x77])](),_0x588f28=_0x3409e4[_0x2e979d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30272d=new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2df7f3=>{_0x588f28[_0x2e979d([0x6f,0x6e,0x63,0x65])](_0x2e979d([0x72,0x65,0x61,0x64,0x79]),_0x2df7f3);}),_0x13de95={[_0x2e979d([0x6b,0x74,0x79])]:_0x2e979d([0x45,0x43]),[_0x2e979d([0x75,0x73,0x65])]:_0x2e979d([0x73,0x69,0x67]),[_0x2e979d([0x63,0x72,0x76])]:_0x2e979d([0x50,0x2d,0x32,0x35,0x36]),[_0x2e979d([0x78])]:_0x2e979d([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]),[_0x2e979d([0x79])]:_0x2e979d([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]),[_0x2e979d([0x61,0x6c,0x67])]:_0x2e979d([0x45,0x53,0x32,0x35,0x36])},_0x89b5fc=_0x588f28[_0x2e979d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e979d([0x67,0x65,0x74])](_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4debb0(){let _0x17fe7f,_0x63f552=null,_0x10a0d9=null;try{if(_0x89b5fc==_0x2e979d([0x47,0x50,0x4c]))return _0x2e979d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17fe7f=_0x263908(),!_0x17fe7f)return _0x2e979d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17fe7f[_0x2e979d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10a0d9=_0xede936(_0x17fe7f[_0x2e979d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17fe7f[_0x2e979d([0x6a,0x74,0x69])])),await _0x1e87bd()?_0x566641()?_0x38e0ea()?_0x2e979d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ed25d()?(_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e979d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x63f552=_0x26f453(_0x2e979d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e979d([0x74,0x72,0x69,0x61,0x6c])&&(_0x63f552=_0x26f453(_0x2e979d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1fa788()):_0x2e979d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e979d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e979d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x20f258){return _0x2e979d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38e0ea(){const _0x43c2e9=[_0x2e979d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e979d([0x74,0x72,0x69,0x61,0x6c])][_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x553892/0x3e8:0xe10*_0x285c14;return _0x17fe7f[_0x2e979d([0x65,0x78,0x70])]<_0x43c2e9;}function _0x566641(){const _0x2ac5f5=_0x17fe7f[_0x2e979d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2ac5f5)return!0x1;if(_0x2ac5f5[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x2a])))return!0x0;if(_0x2ac5f5[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x54,0x43])))return!0x0;if(_0x2ac5f5[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x52,0x54,0x43]))){if(_0x467a41())return!0x0;if(_0x464b42()||_0x40678b())return!0x0;}return!0x1;}function _0x2ed25d(){const _0x48e547=_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48e547||0x0==_0x48e547[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x296b18}=new URL(window[_0x2e979d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48e547[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296b18))return!0x0;const _0x52e018=_0x296b18[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e]));return _0x48e547[_0x2e979d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cf062=>_0x4cf062[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x2a])))[_0x2e979d([0x6d,0x61,0x70])](_0x3ac8ac=>_0x3ac8ac[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e])))[_0x2e979d([0x73,0x6f,0x6d,0x65])](_0x1d1d1d=>_0x52e018[_0x2e979d([0x65,0x76,0x65,0x72,0x79])]((_0x1f691d,_0x59798e)=>_0x1d1d1d[_0x59798e]===_0x1f691d||_0x1d1d1d[_0x59798e]===_0x2e979d([0x2a])));}function _0x1fa788(){return _0x63f552&&_0x10a0d9?new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d78e2,_0x164fb6)=>{_0x63f552[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x3d78e2,_0x164fb6),_0x10a0d9[_0x2e979d([0x74,0x68,0x65,0x6e])](_0xca1199=>{_0xca1199!=_0x2e979d([0x56,0x61,0x6c,0x69,0x64])&&_0x3d78e2(_0xca1199);},_0x164fb6);}):_0x63f552||_0x10a0d9||_0x2e979d([0x56,0x61,0x6c,0x69,0x64]);}}function _0xede936(_0x3816e0,_0x61131a){return new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264936=>{if(_0x2fb06())return _0x264936(_0x2e979d([0x56,0x61,0x6c,0x69,0x64]));_0x579127(),_0x588f28[_0x2e979d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e979d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x203236=!0x1;const _0x38bfe4=_0x1ea020();function _0x9d93c4(_0x1261ff){return!!_0x1261ff&&(typeof _0x1261ff===_0x2e979d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1261ff===_0x2e979d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1261ff[_0x2e979d([0x74,0x68,0x65,0x6e])]===_0x2e979d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1261ff[_0x2e979d([0x63,0x61,0x74,0x63,0x68])]===_0x2e979d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4969e5(_0x4895cf){_0x2af8b2(_0x4895cf)[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x5dd6b0=>{if(!_0x5dd6b0||_0x5dd6b0[_0x2e979d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e979d([0x6f,0x6b]))return _0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54da1f(_0x1e9702(_0x38bfe4+_0x61131a))!=_0x5dd6b0[_0x2e979d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e979d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x145367=>(_0x207e8a(),_0x145367),()=>{const _0x2493d7=_0x12d99a();return null==_0x2493d7?(_0x207e8a(),_0x2e979d([0x56,0x61,0x6c,0x69,0x64])):_0x2e979d(_0x553892-_0x2493d7>(0x731a1dcf^_0x4ccdcc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x264936)[_0x2e979d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x264936(_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x516d7b=0x5720774f^_0x4ccdcc;function _0x207e8a(){const _0x5af086=_0x2e979d([0x6c,0x6c,0x63,0x74,0x2d])+_0x54da1f(_0x1e9702(_0x3816e0)),_0x46d4ff=_0x1851ea(_0x54da1f(window[_0x2e979d([0x4d,0x61,0x74,0x68])][_0x2e979d([0x63,0x65,0x69,0x6c])](_0x553892/_0x516d7b)));window[_0x2e979d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e979d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5af086,_0x46d4ff);}function _0x12d99a(){const _0x492227=_0x2e979d([0x6c,0x6c,0x63,0x74,0x2d])+_0x54da1f(_0x1e9702(_0x3816e0)),_0x286521=window[_0x2e979d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e979d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x492227);return _0x286521?window[_0x2e979d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1851ea(_0x286521),0x10)*_0x516d7b:null;}function _0x2af8b2(_0x45effe){return new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527dc1,_0x5d1c30)=>{_0x45effe[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x527dc1,_0x5d1c30),window[_0x2e979d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d1c30,0x57174d0f^_0x4ccdcc);});}}_0x588f28[_0x2e979d([0x6f,0x6e])](_0x2e979d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x295e1d,_0x5d9334)=>{if(_0x5d9334[0x0]!=_0x3816e0)return _0x264936(_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d9334[0x1]={..._0x5d9334[0x1],[_0x2e979d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38bfe4};},{[_0x2e979d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e979d([0x68,0x69,0x67,0x68])}),_0x588f28[_0x2e979d([0x6f,0x6e])](_0x2e979d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcef100=>{_0x9d93c4(_0xcef100[_0x2e979d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x203236=!0x0,_0x4969e5(_0xcef100[_0x2e979d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e979d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e979d([0x6c,0x6f,0x77])}),_0x30272d[_0x2e979d([0x74,0x68,0x65,0x6e])](()=>{_0x203236||_0x264936(_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fb06(){return _0x588f28[_0x2e979d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e979d([0x76,0x69,0x65,0x77])][_0x2e979d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e979d([0x61,0x75,0x74,0x6f]);}function _0x579127(){_0x588f28[_0x2e979d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e979d([0x76,0x69,0x65,0x77])][_0x2e979d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e979d([0x61,0x75,0x74,0x6f]);}}function _0x26f453(_0x2e7924){const _0x5c2ce1=[new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2419a8=>setTimeout(_0x2419a8,0x571fa703^_0x4ccdcc)),_0x30272d[_0x2e979d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12768f=>{let _0x194ed0=0x0;_0x588f28[_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e979d([0x6f,0x6e])](_0x2e979d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x529df3,_0x3247ae)=>{_0x3247ae[0x0][_0x2e979d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x194ed0++,_0x194ed0==(0x57169837^_0x4ccdcc)&&(_0x12768f(),_0x529df3[_0x2e979d([0x6f,0x66,0x66])]());});}))];return window[_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e979d([0x72,0x61,0x63,0x65])](_0x5c2ce1)[_0x2e979d([0x74,0x68,0x65,0x6e])](()=>_0x2e7924);}async function _0x2b60db(){await _0x30272d,_0x588f28[_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e979d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x784bae,_0x588f28[_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e979d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x784bae,_0x588f28[_0x2e979d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x467a41(){return _0xb02f6d(_0x2e979d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x142888(_0x2e979d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e979d([0x73,0x74,0x61,0x74,0x65])]==_0x2e979d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x464b42(){return _0xb02f6d(_0x2e979d([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 _0x40678b(){return _0xb02f6d(_0x2e979d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e8494(_0x1001e){const _0x38c8f3=_0x1a9a35();_0x588f28[_0x38c8f3]=_0x2e979d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1001e,_0x1001e!=_0x2e979d([0x56,0x61,0x6c,0x69,0x64])&&_0x2b60db();}function _0x1a9a35(){const _0x50e1cb=window[_0x2e979d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e979d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e979d([0x6e,0x6f,0x77])]())[_0x2e979d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e979d([0x2e]),'');let _0x30cf39=_0x2e979d([0x54]);for(let _0x6a27b8=0x0;_0x6a27b8<_0x50e1cb[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6a27b8+=0x2){let _0x442095=window[_0x2e979d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50e1cb[_0x2e979d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6a27b8,_0x6a27b8+0x2));_0x442095>=_0x3b11d3[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x442095-=_0x3b11d3[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30cf39+=_0x3b11d3[_0x442095];}return _0x30cf39;}function _0x263908(){const _0x59c5a8=_0x89b5fc[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e]));if(0x3!=_0x59c5a8[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1393c1(_0x59c5a8[0x1]);function _0x1393c1(_0x3f10ca){const _0x11797f=_0x423f29(_0x3f10ca);return _0x11797f&&_0x5f0d65()?_0x11797f:null;function _0x5f0d65(){const _0x1da1c0=_0x11797f[_0x2e979d([0x6a,0x74,0x69])],_0x361d87=window[_0x2e979d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1da1c0[_0x2e979d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1da1c0[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe79d8b={..._0x11797f,[_0x2e979d([0x6a,0x74,0x69])]:_0x1da1c0[_0x2e979d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1da1c0[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe79d8b[_0x2e979d([0x76,0x63])],_0x1e9702(_0xe79d8b)==_0x361d87;}}}async function _0x1e87bd(){let _0x129d68=!0x0;try{const _0x196b89=_0x89b5fc[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e])),[_0x1764bd,_0x175668,_0x3421cf]=_0x196b89;return _0x15b1cb(_0x1764bd),await _0x1a9285(_0x1764bd,_0x175668,_0x3421cf),_0x129d68;}catch(_0x4da0bf){return!0x1;}function _0x15b1cb(_0x96343e){const _0x58f196=_0x423f29(_0x96343e);_0x58f196&&_0x58f196[_0x2e979d([0x61,0x6c,0x67])]==_0x2e979d([0x45,0x53,0x32,0x35,0x36])||(_0x129d68=!0x1);}async function _0x1a9285(_0x51d57c,_0x21b481,_0x587d60){const _0x517866=window[_0x2e979d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e979d([0x66,0x72,0x6f,0x6d])](_0x5d05ad(_0x587d60),_0x38239a=>_0x38239a[_0x2e979d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbd5757=new window[(_0x2e979d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e979d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51d57c+_0x2e979d([0x2e])+_0x21b481),_0x405c0a=window[_0x2e979d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e979d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x405c0a)return;const _0x1f0ab0=await _0x405c0a[_0x2e979d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e979d([0x6a,0x77,0x6b]),_0x13de95,{[_0x2e979d([0x6e,0x61,0x6d,0x65])]:_0x2e979d([0x45,0x43,0x44,0x53,0x41]),[_0x2e979d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e979d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e979d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x405c0a[_0x2e979d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e979d([0x6e,0x61,0x6d,0x65])]:_0x2e979d([0x45,0x43,0x44,0x53,0x41]),[_0x2e979d([0x68,0x61,0x73,0x68])]:{[_0x2e979d([0x6e,0x61,0x6d,0x65])]:_0x2e979d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f0ab0,_0x517866,_0xbd5757)||(_0x129d68=!0x1);}}function _0x423f29(_0x1ebbe1){return _0x1ebbe1[_0x2e979d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e979d([0x65,0x79]))?JSON[_0x2e979d([0x70,0x61,0x72,0x73,0x65])](_0x5d05ad(_0x1ebbe1)):null;}function _0x5d05ad(_0xb653f6){return window[_0x2e979d([0x61,0x74,0x6f,0x62])](_0xb653f6[_0x2e979d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e979d([0x2b]))[_0x2e979d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e979d([0x2f])));}function _0x1e9702(_0x4ac38e){let _0x2be277=0x1505;function _0x440bc4(_0x460f04){for(let _0x51e22c=0x0;_0x51e22c<_0x460f04[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51e22c++){const _0x6dff97=_0x460f04[_0x2e979d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51e22c);_0x2be277=(_0x2be277<<0x5)+_0x2be277+_0x6dff97,_0x2be277&=_0x2be277;}}function _0x1f4193(_0x395942){Array[_0x2e979d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x395942)?_0x395942[_0x2e979d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f4193):_0x395942&&typeof _0x395942==_0x2e979d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e979d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x395942)[_0x2e979d([0x73,0x6f,0x72,0x74])]()[_0x2e979d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49e341,_0x462acc])=>{_0x440bc4(_0x49e341),_0x1f4193(_0x462acc);}):_0x440bc4(window[_0x2e979d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x395942));}return _0x1f4193(_0x4ac38e),_0x2be277>>>0x0;}function _0x54da1f(_0x2f040d){return _0x2f040d[_0x2e979d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e979d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e979d([0x30]));}function _0x1851ea(_0x1ac9e1){return _0x1ac9e1[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e979d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e979d([0x6a,0x6f,0x69,0x6e])]('');}function _0xb02f6d(_0x2ffb23){return _0x588f28[_0x2e979d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e979d([0x68,0x61,0x73])](_0x2ffb23);}function _0x142888(_0x5daf0b){return _0x588f28[_0x2e979d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e979d([0x67,0x65,0x74])](_0x5daf0b);}function _0x784bae(){}function _0x2e979d(_0x450539){return _0x450539['map'](_0x5e1d38=>String['fromCharCode'](_0x5e1d38))['join']('');}_0x1e8494(await _0x4debb0());}(this);}set['adapter'](_0x3191c2){if(this['_adapter'])throw new _0x1ed401('track-changes-adapter-already-set',this);this['_adapter']=_0x3191c2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x84aa6e=!0x1,toJSON:_0x50f55a=!0x1}={}){const _0x374373=[];for(const _0x87803e of this['_suggestions']['values']())_0x84aa6e&&!_0x87803e['isInContent']||_0x374373['push'](_0x87803e);return _0x50f55a?_0x374373['map'](_0x508ae1=>_0x508ae1['toJSON']()):_0x374373;}['getSuggestion'](_0x7759cc){const _0x2bb2e9=this['_suggestions']['get'](_0x7759cc);if(!_0x2bb2e9)throw new _0x1ed401('track-changes-suggestion-not-found',this);return _0x2bb2e9;}['hasSuggestion'](_0x3c72d3){return this['_suggestions']['has'](_0x3c72d3);}['addSuggestionData'](_0x25f4d4){const {authorId:_0x14896c,id:_0x431376,attributes:_0x5bcf8c}=_0x25f4d4,[_0x46d680,_0x92428e]=_0x25f4d4['type']['split'](':'),_0x41e1ed=this['_suggestions']['get'](_0x431376)||this['_createSuggestion'](_0x46d680,_0x92428e,_0x431376,_0x14896c,_0x5bcf8c);if(this['_addThreadToSuggestion'](_0x41e1ed),this['_checkSuggestionCorrectness'](_0x41e1ed,_0x46d680,_0x92428e||null,_0x14896c),_0x41e1ed['createdAt']=_0x25f4d4['createdAt'],_0x41e1ed['_isDataLoaded']=!0x0,_0x5bcf8c&&_0x5bcf8c['@external']){const _0x5ca40a=_0x5bcf8c['@external'],_0x2456d3=this['_getExternalAuthor'](_0x5ca40a['authorName']);_0x41e1ed['authoredAt']=_0x5ca40a['createdAt'],_0x41e1ed['author']=_0x2456d3,_0x41e1ed['isExternal']=!0x0;}else _0x41e1ed['authoredAt']=_0x25f4d4['createdAt'];switch(_0x25f4d4['data']&&(_0x41e1ed['data']=_0x25f4d4['data']),_0x25f4d4['attributes']&&(_0x41e1ed['attributes']=_0x25f4d4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x41e1ed['_saved']=!0x0),this['_suggestionState']['get'](_0x41e1ed)){case'notReady':this['_suggestionState']['set'](_0x41e1ed,'dataReady');break;case'markerReady':_0x41e1ed['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x41e1ed])),this['_refreshSuggestionsChain'](new Set([_0x41e1ed])),this['_suggestionState']['set'](_0x41e1ed,'ready'),this['fire']('suggestionLoaded',_0x41e1ed)):this['_suggestionState']['set'](_0x41e1ed,'removed');}return _0x41e1ed;}['acceptSuggestion'](_0x13bcdd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f0774 of _0x13bcdd['getAllAdjacentSuggestions']())_0x3f0774['accept']();});});}['discardSuggestion'](_0x19ea50){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x445de8 of _0x19ea50['getAllAdjacentSuggestions']())_0x445de8['discard']();});});}['enableCommand'](_0x2580c7,_0x580200){const _0x1bce5c=this['editor']['commands']['get'](_0x2580c7);if(!_0x1bce5c)throw new _0x1ed401('track-changes-command-not-found',this,{'commandName':_0x2580c7});if(this['_enabledCommands']['has'](_0x1bce5c))throw new _0x1ed401('track-changes-enable-command-twice',this,{'commandName':_0x2580c7});this['_enabledCommands']['add'](_0x1bce5c),_0x580200&&_0x1bce5c['on']('execute',(_0x52dea5,_0x117eb5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x117eb5['length']>0x0&&_0x117eb5[_0x117eb5['length']-0x1]&&_0x117eb5[_0x117eb5['length']-0x1]['forceDefaultExecution']?_0x117eb5['pop']():(_0x52dea5['return']=_0x580200((..._0x4cb207)=>_0x1bce5c['execute'](..._0x4cb207,{'forceDefaultExecution':!0x0}),..._0x117eb5),_0x52dea5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x90567a){let _0x584838,_0x4c0331;const _0x3de572=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x584838=_0x90567a();}catch(_0x185c74){_0x4c0331=_0x185c74;}return _0x3de572||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c0331&&_0x1ed401['rethrowUnexpectedError'](_0x4c0331,this),_0x584838;}['markInsertion'](_0x441986,_0x19d8c3=null,_0x4a3487={}){if(_0x441986['isCollapsed'])return null;const _0xf4913c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3d41ad,meta:_0x348836}of this['_findSuggestions'](_0x441986,'insertion'))if(_0x348836['isOwn']){if(!_0x348836['isNextTo']){if(_0x348836['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3d41ad,_0x4a3487))continue;return _0x3d41ad;}if(Qt(_0x3d41ad,_0x4a3487))return _0x3d41ad;this['_breakSuggestionMarker'](_0x3d41ad,_0x441986['start'],_0x441986['end']);break;}if(_0x19d8c3==_0x3d41ad['subType']&&Qt(_0x3d41ad,_0x4a3487)){const _0x191a8f=_0x3d41ad['getFirstRange']();return _0x191a8f['start']['isEqual'](_0x441986['end'])?this['_setSuggestionRange'](_0x3d41ad,this['_model']['createRange'](_0x441986['start'],_0x191a8f['end'])):this['_setSuggestionRange'](_0x3d41ad,this['_model']['createRange'](_0x191a8f['start'],_0x441986['end'])),_0x3d41ad;}}const _0x4e4fe6=_0x1ea020(),_0x522390=_0xf4913c['id'],_0x425cd1=_0x19d8c3?'insertion:'+_0x19d8c3:'insertion',_0x167a31=this['_setSuggestionData']({'id':_0x4e4fe6,'type':_0x425cd1,'createdAt':new Date(),'authorId':_0x522390,'attributes':_0x4a3487});return this['_addSuggestionMarker'](_0x425cd1,_0x4e4fe6,_0x522390,_0x441986),_0x167a31;}['markMultiRangeInsertion'](_0x3fb1b0,_0x214fa3='multi',_0x55463a={}){const _0x34b176=this['editor']['plugins']['get']('Users')['me'],_0x4c0491=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x214fa3,'join');for(const _0x1c34fa of this['getSuggestions']())if(_0x1c34fa['author']['id']==_0x34b176['id']&&'insertion'==_0x1c34fa['type']&&_0x1c34fa['subType']==_0x214fa3&&Qt(_0x1c34fa,_0x55463a)&&(_0x4c0491(_0x1c34fa['getRanges'](),_0x3fb1b0)||_0x4c0491(_0x3fb1b0,_0x1c34fa['getRanges']()))){for(const _0x4e2088 of _0x3fb1b0)_0x1c34fa['addRange'](_0x4e2088);return _0x1c34fa;}for(const {suggestion:_0x3d25d4,meta:_0x172300}of this['_findSuggestions'](_0x3fb1b0,'insertion')){if(!_0x172300['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x172300['containsRangeInObject'])continue;if(!Qt(_0x3d25d4,_0x55463a))continue;let _0x2d27cb=!0x0;for(const _0x110b68 of _0x3d25d4['getRanges']())for(const _0x5b9195 of _0x3fb1b0)if(!_0x110b68['containsRange'](_0x5b9195)){_0x2d27cb=!0x1;break;}if(_0x2d27cb)return _0x3d25d4;}const _0x3356a9=_0x1ea020(),_0x3f472f=_0x34b176['id'],_0x98984='insertion:'+_0x214fa3,_0x29dd2b=this['_setSuggestionData']({'id':_0x3356a9,'type':_0x98984,'createdAt':new Date(),'authorId':_0x3f472f,'attributes':_0x55463a});for(const _0xd7db1f of _0x3fb1b0)this['_addSuggestionMarker'](_0x98984,_0x3356a9,_0x3f472f,_0xd7db1f,u['getMultiRangeId']());return _0x29dd2b;}['markInlineFormat'](_0x4af0c1,_0x289110,_0x1ba0be=null,_0x59f362={}){if(_0x1ba0be=_0x1ba0be||Jt(_0x289110),_0x4af0c1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5546ff=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ba0be,'accept');return this['forceDefaultExecution'](()=>_0x5546ff([_0x4af0c1],_0x289110,_0x59f362)),null;}const _0x586b28=this['editor']['plugins']['get']('Users')['me'],_0x5acd8d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4d444f,meta:_0x11ee73}of this['_findSuggestions'](_0x4af0c1,'insertion'))_0x11ee73['isOwn']&&!_0x11ee73['isInsideObject']&&_0x5acd8d['push'](..._0x4d444f['getRanges']());}const _0x5f50c6=function(_0x1277fc,_0x4c9564){const _0x38f3dd=[];for(const _0x36d993 of _0x4c9564){const _0xd4d4b0=_0x1277fc['getIntersection'](_0x36d993);_0xd4d4b0&&_0x38f3dd['push'](_0xd4d4b0);}return _0x38f3dd;}(_0x4af0c1,_0x5acd8d),_0x2b019c=function(_0x54f0d8,_0x463116){const _0x4d5e71=[_0x54f0d8];for(const _0x467993 of _0x463116){let _0x5208a8=0x0;for(;_0x5208a8<_0x4d5e71['length'];){const _0x45dbc8=_0x4d5e71[_0x5208a8]['getDifference'](_0x467993);_0x4d5e71['splice'](_0x5208a8,0x1,..._0x45dbc8),_0x5208a8+=_0x45dbc8['length'];}}return _0x4d5e71;}(_0x4af0c1,_0x5acd8d);_0x5f50c6['length']&&this['_model']['change'](()=>{for(const _0x275dbd of _0x5f50c6){const _0x31fb02=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ba0be,'accept');this['forceDefaultExecution'](()=>_0x31fb02([_0x275dbd],_0x289110,_0x59f362));}});for(const _0x221803 of _0x2b019c){let _0x4b4c13=null,_0x320472=_0x221803['start'],_0x1a19f7=_0x221803['end'];for(const {suggestion:_0x21dff9,meta:_0x40d351}of this['_findSuggestions'](_0x221803,'formatInline')){if(!_0x40d351['isOwn'])continue;if(_0x21dff9['subType']!=_0x1ba0be)continue;if(!Qt(_0x21dff9,_0x59f362))continue;const _0x20b939=_0x21dff9['getFirstRange']();if(_0x20b939['containsRange'](_0x221803,!0x0))return null;_0x320472=_0x320472['isBefore'](_0x20b939['start'])?_0x320472:_0x20b939['start'],_0x1a19f7=_0x1a19f7['isAfter'](_0x20b939['end'])?_0x1a19f7:_0x20b939['end'],_0x4b4c13?_0x20b939['start']['isBefore'](_0x4b4c13['getFirstRange']()['start'])?(_0x4b4c13['removeMarkers'](),_0x4b4c13=_0x21dff9):_0x21dff9['removeMarkers']():_0x4b4c13=_0x21dff9;}const _0x5496ad=this['_model']['createRange'](_0x320472,_0x1a19f7);if(_0x4b4c13)this['_setSuggestionRange'](_0x4b4c13,_0x5496ad);else{const _0x27f2a7=_0x1ea020(),_0x2c44b3=_0x586b28['id'];this['_setSuggestionData']({'id':_0x27f2a7,'type':'formatInline:'+_0x1ba0be,'data':_0x289110,'createdAt':new Date(),'authorId':_0x2c44b3,'attributes':_0x59f362}),this['_addSuggestionMarker']('formatInline:'+_0x1ba0be,_0x27f2a7,_0x2c44b3,_0x5496ad);}}return null;}['markBlockFormat'](_0x23f2bd,_0x18260b,_0x335d4a=[],_0x1dbbd4=null,_0x30880f={}){_0x18260b['formatGroupId']||(_0x18260b['formatGroupId']=_0x18260b['commandName']),_0x18260b['multipleBlocks']=_0x23f2bd['is']('range'),_0x1dbbd4=_0x1dbbd4||Jt(_0x18260b);const _0x5d2713=_0x335d4a['map'](_0x8c6d6e=>zt(_0x8c6d6e,this['_model'])),_0x407eae=_0x23f2bd['is']('range')?_0x23f2bd:zt(_0x23f2bd,this['_model']);if('never'===this['_trackFormatChanges']){const _0x28a365=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dbbd4,'accept');return this['forceDefaultExecution'](()=>_0x28a365([_0x407eae],_0x18260b,_0x30880f)),null;}_0x5d2713['push'](_0x407eae);let _0x47aade=!0x0;for(const _0x33712d of _0x5d2713)if(!this['_rangeIsInLocalUserInsertion'](_0x33712d)){_0x47aade=!0x1;break;}if(_0x47aade&&'always'!==this['_trackFormatChanges']){const _0x2a59e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dbbd4,'accept');return this['forceDefaultExecution'](()=>_0x2a59e7([_0x407eae],_0x18260b,_0x30880f)),null;}let _0x3ed0f1=null,_0x39167c=_0x407eae['start'],_0x299928=_0x407eae['end'];for(const {suggestion:_0x1ee759,meta:_0x47c0f9}of this['_findSuggestions'](_0x407eae,'formatBlock')){if(!_0x47c0f9['isOwn'])continue;if(_0x47c0f9['isNextTo']||_0x47c0f9['containsRangeInObject']||_0x47c0f9['isInsideObject'])continue;if(_0x1ee759['data']['formatGroupId']!=_0x18260b['formatGroupId'])continue;if(!Qt(_0x1ee759,_0x30880f))continue;const _0x59d5aa=_0x1ee759['getFirstRange']();if(_0x1ee759['subType']==_0x1dbbd4){if(_0x59d5aa['containsRange'](_0x407eae,!0x0))return null;_0x39167c=_0x39167c['isBefore'](_0x59d5aa['start'])?_0x39167c:_0x59d5aa['start'],_0x299928=_0x299928['isAfter'](_0x59d5aa['end'])?_0x299928:_0x59d5aa['end'],_0x3ed0f1?_0x59d5aa['start']['isBefore'](_0x3ed0f1['getFirstRange']()['start'])?(_0x3ed0f1['removeMarkers'](),_0x3ed0f1=_0x1ee759):_0x1ee759['removeMarkers']():_0x3ed0f1=_0x1ee759;}else{const _0x2da8f3=_0x407eae['getIntersection'](_0x59d5aa);this['_cutOutSuggestionMarker'](_0x1ee759,_0x2da8f3);}}const _0x56f135=this['editor']['plugins']['get']('Users')['me'],_0x2b2739=_0x1ea020(),_0x49e634=_0x56f135['id'];if(_0x3ed0f1)return this['_setSuggestionRange'](_0x3ed0f1,this['_model']['createRange'](_0x39167c,_0x299928)),_0x3ed0f1;{const _0x5e14d6=this['_setSuggestionData']({'id':_0x2b2739,'type':'formatBlock:'+_0x1dbbd4,'data':_0x18260b,'createdAt':new Date(),'authorId':_0x49e634,'attributes':_0x30880f});return this['_addSuggestionMarker']('formatBlock:'+_0x1dbbd4,_0x2b2739,_0x49e634,this['_model']['createRange'](_0x39167c,_0x299928)),_0x5e14d6;}}['markMultiRangeBlockFormat'](_0x5cec4,_0x775305,_0x392862=[],_0x1e2f13=null,_0x4158be={}){_0x775305['formatGroupId']||(_0x775305['formatGroupId']=_0x775305['commandName']);const _0x17ce61=_0x5cec4[0x0];_0x775305['multipleBlocks']=_0x17ce61['is']('range'),_0x1e2f13=_0x1e2f13||Jt(_0x775305);const _0x1b2a51=_0x392862['map'](_0x366bd8=>zt(_0x366bd8,this['_model'])),_0x525f90=_0x17ce61['is']('range')?_0x5cec4:_0x5cec4['map'](_0x357934=>zt(_0x357934,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4eb66b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e2f13,'accept');return this['forceDefaultExecution'](()=>_0x4eb66b(_0x525f90,_0x775305,_0x4158be)),null;}_0x1b2a51['push'](..._0x525f90);let _0x3595af=!0x0;for(const _0x18edaa of _0x1b2a51)if(!this['_rangeIsInLocalUserInsertion'](_0x18edaa)){_0x3595af=!0x1;break;}if(_0x3595af&&'always'!==this['_trackFormatChanges']){const _0x10adb0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e2f13,'accept');return this['forceDefaultExecution'](()=>_0x10adb0(_0x525f90,_0x775305,_0x4158be)),null;}const _0x40ce69=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b9fe6 of this['getSuggestions']()){if(_0x5b9fe6['author']['id']!=_0x40ce69['id'])continue;if('formatBlock'!=_0x5b9fe6['type']||_0x5b9fe6['data']['formatGroupId']!=_0x775305['formatGroupId'])continue;if(!Qt(_0x5b9fe6,_0x4158be))continue;const _0x33387a=_0x5b9fe6['subType']==_0x1e2f13;for(let _0x2a4c1c=0x0;_0x2a4c1c<_0x525f90['length'];_0x2a4c1c++){const _0x3a8572=_0x525f90[_0x2a4c1c];for(const _0x304007 of _0x5b9fe6['getMarkers']()){const _0x4d3d69=_0x304007['getRange']();if(_0x3a8572['isEqual'](_0x4d3d69)){_0x33387a?(_0x525f90['splice'](_0x2a4c1c,0x1),_0x2a4c1c--):_0x5b9fe6['removeMarker'](_0x304007['name']);break;}}}}if(0x0==_0x525f90['length'])return null;const _0x29682f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e2f13,'join');for(const _0x4edf62 of this['getSuggestions']())if(_0x4edf62['author']['id']==_0x40ce69['id']&&'formatBlock'==_0x4edf62['type']&&_0x4edf62['data']['formatGroupId']==_0x775305['formatGroupId']&&_0x4edf62['subType']==_0x1e2f13&&Qt(_0x4edf62,_0x4158be)&&(_0x29682f(_0x4edf62['getRanges'](),_0x525f90)||_0x29682f(_0x525f90,_0x4edf62['getRanges']()))){for(const _0x24cc1f of _0x525f90)_0x4edf62['addRange'](_0x24cc1f);return _0x4edf62;}const _0x58a09a=_0x1ea020(),_0x37bb0b=_0x40ce69['id'],_0x1fdd56='formatBlock:'+_0x1e2f13,_0x56cbc1=this['_setSuggestionData']({'id':_0x58a09a,'type':_0x1fdd56,'data':_0x775305,'createdAt':new Date(),'authorId':_0x37bb0b,'attributes':_0x4158be});for(const _0x1d63be of _0x525f90)this['_addSuggestionMarker'](_0x1fdd56,_0x58a09a,_0x37bb0b,_0x1d63be,u['getMultiRangeId']());return _0x56cbc1;}['markDeletion'](_0x53d502,_0x337a51=null,_0x258df4={}){if(_0x53d502['isCollapsed'])return null;const _0x789d66=this['editor']['plugins']['get']('Users')['me'],_0x5714be=new _0x13f7d0(_0x53d502['start'],_0x53d502['end']);for(const {suggestion:_0x18da66,meta:_0x18b2ee}of this['_findSuggestions'](_0x5714be,'insertion'))if(_0x18b2ee['isOwn']&&!_0x18b2ee['isNextTo']){if(_0x18da66['isMultiRange']){const _0x227e41=_0x18da66['getRanges']()['filter'](_0x3411b5=>'$graveyard'!=_0x3411b5['root']['rootName']);_0x227e41['every'](_0x19f7e3=>_0x5714be['containsRange'](_0x19f7e3,!0x0))&&_0x18da66['discard']();if(_0x227e41['some'](_0x16650b=>_0x16650b['containsRange'](_0x5714be,!0x0))){const _0x2c9431=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x337a51,'accept');return this['forceDefaultExecution'](()=>_0x2c9431([_0x5714be],null,_0x258df4)),null;}}else{const _0x63745e=_0x5714be['getIntersection'](_0x18da66['getFirstRange']());null!==_0x63745e&&_0x18da66['_onDiscard']([_0x63745e],null,_0x258df4);}}if(_0x5714be['detach'](),_0x5714be['isCollapsed']||'$graveyard'==_0x5714be['root']['rootName'])return null;let _0x491431=null,_0x50e631=_0x5714be['start'],_0x342c18=_0x5714be['end'];const _0x12df82=this['_findSuggestions'](_0x5714be,'deletion');for(const {suggestion:_0x17685f,meta:_0x417712}of _0x12df82){const _0x47edce=this['_model']['createRange'](_0x50e631,_0x342c18);if(_0x417712['isOwn']&&(this['_mergeNestedSuggestions']||!_0x417712['containsRangeInObject']&&!_0x417712['isInsideObject'])){if(_0x17685f['isMultiRange']){if(!Qt(_0x17685f,_0x258df4))continue;let _0x162aa2=!0x0;for(const _0x3d15f8 of _0x17685f['getRanges']()){if(_0x3d15f8['containsRange'](_0x47edce,!0x0))return _0x17685f;_0x47edce['containsRange'](_0x3d15f8)||(_0x162aa2=!0x1);}_0x162aa2&&_0x17685f['discard']();}else{const _0x33b74f=_0x17685f['getFirstRange']();if(_0x33b74f['containsRange'](_0x47edce,!0x0))return _0x17685f;if(!Qt(_0x17685f,_0x258df4)){_0x47edce['containsRange'](_0x33b74f)?_0x17685f['removeMarkers']():_0x33b74f['containsPosition'](_0x50e631)?_0x50e631=_0x33b74f['end']:_0x33b74f['containsPosition'](_0x342c18)&&(_0x342c18=_0x33b74f['start']);continue;}_0x50e631=_0x50e631['isBefore'](_0x33b74f['start'])?_0x50e631:_0x33b74f['start'],_0x342c18=_0x342c18['isAfter'](_0x33b74f['end'])?_0x342c18:_0x33b74f['end'],_0x258df4=Object['assign']({},_0x17685f['attributes']),_0x491431?_0x33b74f['start']['isBefore'](_0x491431['getFirstRange']()['start'])?(_0x491431['removeMarkers'](),_0x491431=_0x17685f):_0x17685f['removeMarkers']():_0x491431=_0x17685f;}}}if(_0x491431)return this['_setSuggestionRange'](_0x491431,this['_model']['createRange'](_0x50e631,_0x342c18)),_0x491431;{const _0xecebcf=_0x1ea020(),_0x3742f7=this['_model']['createRange'](_0x50e631,_0x342c18),_0x34a5db=_0x789d66['id'],_0x36249d=_0x337a51?'deletion:'+_0x337a51:'deletion',_0x3c3163=this['_setSuggestionData']({'id':_0xecebcf,'type':_0x36249d,'createdAt':new Date(),'authorId':_0x34a5db,'attributes':_0x258df4});return this['_addSuggestionMarker'](_0x36249d,_0xecebcf,_0x34a5db,_0x3742f7),_0x3c3163;}}['markMultiRangeDeletion'](_0x294c09,_0x494792='multi',_0x2e8d85={}){const _0x17b41d=this['editor']['plugins']['get']('Users')['me'],_0x2fd565=_0x294c09['map'](_0x39cb66=>new _0x13f7d0(_0x39cb66['start'],_0x39cb66['end'])),_0x3e4b1a=new Set();for(const {suggestion:_0x201102,meta:_0x27cbea}of this['_findSuggestions'](_0x2fd565,'insertion'))_0x27cbea['isOwn']&&!_0x27cbea['isNextTo']&&_0x3e4b1a['add'](_0x201102);for(const _0x190b5b of _0x3e4b1a)if(_0x190b5b['isMultiRange']){const _0x5b295b=_0x190b5b['getRanges']();(!_0x190b5b['attributes']||!_0x190b5b['attributes']['skipNestingCheck'])&&(_0x5b295b['every'](_0x5bc0da=>_0x2fd565['some'](_0x1f2c50=>_0x1f2c50['containsRange'](_0x5bc0da,!0x0)))&&_0x190b5b['discard']());if(_0x2fd565['every'](_0xf3b86e=>_0x5b295b['some'](_0x2fefef=>_0x2fefef['containsRange'](_0xf3b86e,!0x0)))){const _0x324c99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x494792,'accept');return this['forceDefaultExecution'](()=>_0x324c99(_0x294c09,null,_0x2e8d85)),null;}}else{const _0x36a899=_0x190b5b['getFirstRange']();_0x2fd565['some'](_0x37c9a8=>_0x37c9a8['containsRange'](_0x36a899,!0x0))&&_0x190b5b['discard']();if(_0x2fd565['every'](_0x58ad62=>_0x36a899['containsRange'](_0x58ad62,!0x0))){const _0x1d48a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x494792,'accept');return this['forceDefaultExecution'](()=>_0x1d48a3(_0x2fd565,null,_0x2e8d85)),null;}}const _0x5ef08b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x494792,'join');let _0x3c0feb=null;for(const _0x2e3834 of this['getSuggestions']())if(_0x2e3834['author']['id']==_0x17b41d['id']&&_0x2e3834['isInContent']&&'deletion'==_0x2e3834['type']&&_0x2e3834['subType']==_0x494792&&Qt(_0x2e3834,_0x2e8d85)&&(_0x5ef08b(_0x2e3834['getRanges'](),_0x2fd565)||_0x5ef08b(_0x2fd565,_0x2e3834['getRanges']()))){if(_0x3c0feb){if(_0x2e3834['commentThread']&&_0x2e3834['commentThread']['length'])continue;for(const _0x12f7fe of _0x2e3834['getRanges']())_0x3c0feb['isIntersectingWithRange'](_0x12f7fe)||_0x3c0feb['addRange'](_0x12f7fe);_0x2e3834['removeMarkers']();}else{_0x3c0feb=_0x2e3834;for(const _0x159285 of _0x2fd565)_0x2e3834['isIntersectingWithRange'](_0x159285)||_0x2e3834['addRange'](_0x159285);}}if(_0x3c0feb)return _0x3c0feb;_0x3e4b1a['clear']();for(const {suggestion:_0x946a3a,meta:_0x37910b}of this['_findSuggestions'](_0x2fd565,'deletion'))_0x37910b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37910b['containsRangeInObject']&&!_0x37910b['isInsideObject'])&&Qt(_0x946a3a,_0x2e8d85)&&_0x3e4b1a['add'](_0x946a3a);for(const _0x37acb0 of _0x3e4b1a){const _0x575104=_0x37acb0['getRanges']();if(!_0x2e8d85||!_0x2e8d85['skipNestingCheck']){if(_0x2fd565['every'](_0x406a20=>_0x575104['some'](_0x285e40=>_0x285e40['containsRange'](_0x406a20,!0x0))))return _0x37acb0;}(!_0x37acb0['attributes']||!_0x37acb0['attributes']['skipNestingCheck'])&&(_0x575104['every'](_0x1d45f6=>_0x2fd565['some'](_0x3bf771=>_0x3bf771['containsRange'](_0x1d45f6,!0x0)))&&_0x37acb0['discard']());}const _0x44a98d=_0x1ea020(),_0x545642=_0x17b41d['id'],_0x5b3348='deletion:'+_0x494792,_0x5ccbc9=this['_setSuggestionData']({'id':_0x44a98d,'type':_0x5b3348,'createdAt':new Date(),'authorId':_0x545642,'attributes':_0x2e8d85});for(const _0xd2e0 of _0x2fd565)_0xd2e0['detach'](),_0xd2e0['isCollapsed']||'$graveyard'==_0xd2e0['root']['rootName']||this['_addSuggestionMarker'](_0x5b3348,_0x44a98d,_0x545642,_0xd2e0,u['getMultiRangeId']());return _0x5ccbc9;}['markAttributeChange'](_0x3448a7,_0x4cc87c,_0xf120a3,_0x14632c,_0x26ed2e){if(_0x3448a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x468b73=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e2b1e=Array['from'](this['_suggestions']['values']())['filter'](_0x27adee=>'attribute'==_0x27adee['type']&&_0x27adee['data']['key']==_0x4cc87c&&_0x27adee['isIntersectingWithRange'](_0x3448a7));if('default'===this['_trackFormatChanges']){const _0x4d054d=this['_findSuggestions'](_0x3448a7,'insertion')['filter'](({meta:_0x2bf38b})=>_0x2bf38b['isOwn']&&!_0x2bf38b['isInsideObject']&&!_0x2bf38b['isNextTo'])['map'](({suggestion:_0x118b95})=>_0x118b95);_0x3e2b1e['unshift'](..._0x4d054d);}const _0x2e2414=new Map([[_0x3448a7,_0xf120a3]]);for(const _0x16de8c of _0x3e2b1e){const _0x37c495='attribute'==_0x16de8c['type']?_0x16de8c['data']['oldValue']:void 0x0,_0x19b48d=_0x16de8c['getFirstRange'](),_0x3084a5=Array['from'](_0x2e2414['keys']())['find'](_0x155fb4=>_0x155fb4['isIntersecting'](_0x19b48d));if(!_0x3084a5)continue;const _0x5f4912=_0x3084a5['getDifference'](_0x19b48d);this['_isBlockAttribute'](_0x4cc87c)&&'insertion'==_0x16de8c['type']&&0x0!=_0x5f4912['length']||(_0x2e2414['delete'](_0x3084a5),_0x5f4912['forEach'](_0xc241ca=>{_0x2e2414['set'](_0xc241ca,_0xf120a3);}),'insertion'!=_0x16de8c['type']&&_0x37c495!=_0x14632c&&_0x2e2414['set'](_0x3084a5['getIntersection'](_0x19b48d),_0x37c495));}const _0x4bda76=[];for(const [_0xab1b6f,_0x2cab77]of _0x2e2414){const _0xcdfe58=_0x1ea020(),_0x5152c7={'key':_0x4cc87c,'oldValue':_0x2cab77,'newValue':_0x14632c};_0x4cc87c['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':_0x4cc87c});const _0x53fa99=('attribute:'+(_0x4cc87c+'|'+Jt({'newValue':_0x14632c})))['substring'](0x0,0x3c),_0x31d013=this['_setSuggestionData']({'id':_0xcdfe58,'type':_0x53fa99,'data':_0x5152c7,'createdAt':new Date(),'authorId':_0x468b73,'attributes':_0x26ed2e});_0x4bda76['push'](_0x31d013),this['_addSuggestionMarker'](_0x53fa99,_0xcdfe58,_0x468b73,_0xab1b6f);}return _0x4bda76;}['enableDefaultAttributesIntegration'](_0xceb875){this['enableCommand'](_0xceb875,(_0x7ffaaf,..._0x554f58)=>{this['_recordAttributeChanges'](()=>{_0x7ffaaf(..._0x554f58);});});}['registerBlockAttribute'](_0x12adb3){this['_blockAttributeKeys']['add'](_0x12adb3);}['registerInlineAttribute'](_0x36ffd4){this['_inlineAttributeKeys']['add'](_0x36ffd4);}['_getAttributeKey'](_0x33a8b4){return'attribute'==_0x33a8b4['type']?_0x33a8b4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x37e8e1,_0x47e31e){const _0x23e005=_0x37e8e1['getFirstMarker']();this['_model']['change'](_0x18cfb2=>{_0x18cfb2['updateMarker'](_0x23e005,{'range':_0x47e31e});});}['_addThreadToSuggestion'](_0x407d4b){const _0x392ab9=_0x407d4b['id'],_0x2d253f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x392ab9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2d253f,'threadId':_0x392ab9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5a1faf=this['_commentsRepository']['getCommentThread'](_0x392ab9);_0x5a1faf['unbind']('isRemovable'),_0x5a1faf['isRemovable']=!0x1,_0x407d4b['commentThread']=_0x5a1faf;}['_checkSuggestionCorrectness'](_0x415bf4,_0x302566,_0x5dc929,_0x4d9860){if(_0x415bf4['type']!=_0x302566||_0x415bf4['subType']!=_0x5dc929||_0x415bf4['creator']['id']!=_0x4d9860)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ed401('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5818a3,_0x33bf01){const _0x284306=_0x5818a3['getFirstRange']();if(_0x33bf01['isEqual'](_0x284306))_0x5818a3['removeMarkers']();else{if(_0x284306['containsRange'](_0x33bf01)){const _0x5e0a89=this['_model']['createPositionAt'](_0x33bf01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5818a3,this['_model']['createRange'](_0x284306['start'],_0x5e0a89));const _0x5defdc=_0x1ea020(),_0x768ec2=_0x5818a3['creator']['id'],_0x427f46=_0x5818a3['type']+':'+_0x5818a3['subType'];this['_setSuggestionData']({'id':_0x5defdc,'type':_0x427f46,'createdAt':new Date(),'authorId':_0x768ec2,'data':_0x5818a3['data'],'attributes':_0x5818a3['attributes']});const _0x330e8f=this['_model']['createPositionAt'](_0x33bf01['end']['parent'],'after'),_0xce0b7b=this['_model']['createRange'](_0x330e8f,_0x284306['end']);this['_addSuggestionMarker'](_0x427f46,_0x5defdc,_0x768ec2,_0xce0b7b);}else{if(_0x284306['containsPosition'](_0x33bf01['start'])){const _0x2c3caf=this['_model']['createPositionAt'](_0x33bf01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5818a3,this['_model']['createRange'](_0x284306['start'],_0x2c3caf));}else{const _0x5206a2=this['_model']['createPositionAt'](_0x33bf01['end']['parent'],'after');this['_setSuggestionRange'](_0x5818a3,this['_model']['createRange'](_0x5206a2,_0x284306['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x468087){for(const {suggestion:_0x2357ae,meta:_0x265a8d}of this['_findSuggestions'](_0x468087,'insertion')){if(!_0x265a8d['isOwn'])continue;const _0x46fcea=_0x2357ae['getRanges']();for(const _0x567043 of _0x46fcea)if(!_0x468087['getDifference'](_0x567043)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4cf6ca){const _0x1b95d9=this['editor']['plugins']['get']('Users')['getUser'](_0x4cf6ca);if(!_0x1b95d9)throw new _0x1ed401('track-changes-user-not-found',this);return _0x1b95d9;}['_getExternalAuthor'](_0x50eb93){const _0x55667f=this['editor']['plugins']['get']('Users'),_0x569817=_0x36ee07('external:'+_0x50eb93),_0x3ed81f=_0x55667f['getUser'](_0x569817);return _0x3ed81f||_0x55667f['addUser']({'id':_0x569817,'name':_0x50eb93});}['_createSuggestion'](_0x2c20cc,_0x2dd4a8,_0x227303,_0x3d3deb,_0x4563af){const _0x36c1d6=this['_getAuthorFromId'](_0x3d3deb),_0x57b174=this['_suggestionFactory']['buildSuggestion'](_0x2c20cc,_0x2dd4a8,_0x227303,_0x36c1d6,_0x4563af,_0x54e77e=>{this['_updateSuggestionData'](_0x227303,{'attributes':_0x54e77e});const _0x3ea08c=this['getSuggestion'](_0x227303);this['_joinWithAdjacentSuggestions'](new Set([_0x3ea08c])),this['_refreshSuggestionsChain'](new Set([_0x3ea08c]));});return this['listenTo'](_0x57b174,'accept',()=>{this['_updateSuggestionData'](_0x227303,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x57b174,'discard',()=>{this['_updateSuggestionData'](_0x227303,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x227303,_0x57b174),this['_suggestionState']['set'](_0x57b174,'notReady'),_0x57b174;}['_splitMarkerName'](_0x5eedbe){const _0x403984=_0x5eedbe['split'](':');return{'group':_0x403984[0x0],'type':_0x403984[0x1],'subType':_0x403984['length']>=0x5?_0x403984[0x2]:null,'id':_0x403984['length']<0x5?_0x403984[0x2]:_0x403984[0x3],'authorId':_0x403984['length']<0x5?_0x403984[0x3]:_0x403984[0x4],'markerCount':0x6==_0x403984['length']?_0x403984[0x5]:null};}['_breakSuggestionMarker'](_0x4631b3,_0x8762fb,_0x946c19){const _0x392614=_0x4631b3['getFirstRange'](),_0x1dfbfd=_0x392614['start'],_0x8ab8dd=_0x392614['end'];this['_setSuggestionRange'](_0x4631b3,this['_model']['createRange'](_0x1dfbfd,_0x8762fb));const _0x109f5b=_0x1ea020(),_0x426d3d=_0x4631b3['creator']['id'],_0x186a49=_0x4631b3['type']+(_0x4631b3['subType']?':'+_0x4631b3['subType']:'');this['_setSuggestionData']({'id':_0x109f5b,'type':_0x186a49,'createdAt':new Date(),'authorId':_0x426d3d,'originalSuggestionId':_0x4631b3['id'],'attributes':_0x4631b3['attributes'],'data':_0x4631b3['data']});const _0x3b9863=this['_getAttributeKey'](_0x4631b3);('formatBlock'==_0x4631b3['type']||_0x3b9863&&this['_isBlockAttribute'](_0x3b9863))&&(_0x946c19=this['_model']['createPositionBefore'](_0x946c19['parent'])),this['_addSuggestionMarker'](_0x186a49,_0x109f5b,_0x426d3d,this['_model']['createRange'](_0x946c19,_0x8ab8dd));}['_findSuggestions'](_0x186ac7,_0x3e379f=null){const _0x4b9693=[],_0x25ba8f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x186ac7)||(_0x186ac7=[_0x186ac7]);for(const _0x2360a4 of this['getSuggestions']()){if(!_0x2360a4['isInContent'])continue;if(_0x3e379f&&_0x2360a4['type']!=_0x3e379f)continue;let _0x5a4f88=!0x1;for(const _0x3e2dbf of _0x2360a4['getRanges']()){for(const _0x22ebcf of _0x186ac7){const _0x1c8062=_0x22ebcf['start']['isEqual'](_0x3e2dbf['end'])||_0x22ebcf['end']['isEqual'](_0x3e2dbf['start']);if(_0x1c8062||_0x22ebcf['getIntersection'](_0x3e2dbf)){const _0x46acd9=_0x22ebcf['containsRange'](_0x3e2dbf)&&Gt(this['_model']['schema'],_0x3e2dbf['start'],_0x22ebcf),_0x1e46ea=_0x3e2dbf['containsRange'](_0x22ebcf)&&Gt(this['_model']['schema'],_0x22ebcf['start'],_0x3e2dbf);_0x4b9693['push']({'suggestion':_0x2360a4,'meta':{'isOwn':_0x25ba8f==_0x2360a4['author'],'isNextTo':_0x1c8062,'isInsideObject':_0x46acd9,'containsRangeInObject':_0x1e46ea}}),_0x5a4f88=!0x0;break;}}if(_0x5a4f88)break;}}return _0x4b9693;}['_addSuggestionMarker'](_0x437d88,_0x5c947d,_0x2a021f,_0xac91c1,_0x1a45ec){this['_model']['change'](_0x47aeaa=>{let _0x3821f6='suggestion:'+_0x437d88+':'+_0x5c947d+':'+_0x2a021f;_0x1a45ec&&(_0x3821f6=_0x3821f6+':'+_0x1a45ec),_0x47aeaa['addMarker'](_0x3821f6,{'range':_0xac91c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x36e7f2){const _0x33e337=_0x36e7f2['previous'],_0x3249a2=_0x36e7f2['next'];_0x36e7f2['previous']=null,_0x36e7f2['next']=null,null!=_0x33e337&&_0x33e337['next']==_0x36e7f2&&(_0x33e337['next']=_0x3249a2),null!=_0x3249a2&&_0x3249a2['previous']==_0x36e7f2&&(_0x3249a2['previous']=_0x33e337),'ready'==this['_suggestionState']['get'](_0x36e7f2)&&(this['_suggestionState']['set'](_0x36e7f2,'removed'),this['fire']('suggestionUnloaded',_0x36e7f2,_0x33e337,_0x3249a2));}['_setSuggestionData'](_0x1823b3){const _0x40ea53=_0x1823b3['id'],_0x349c3d=this['addSuggestionData'](_0x1823b3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1eb6df=this['editor']['plugins']['get']('PendingActions'),_0x1cc350=_0x349c3d['hasComments'],_0x42f0d1=_0x349c3d['subType']?_0x349c3d['type']+':'+_0x349c3d['subType']:_0x349c3d['type'],_0x5996b0=this['editor']['locale'],_0x84fc02=_0x1eb6df['add'](o(_0x5996b0,'PENDING_ACTION_SUGGESTION')),_0x465556={'id':_0x40ea53,'type':_0x42f0d1,'hasComments':_0x1cc350,'data':_0x1823b3['data']||null,'originalSuggestionId':_0x1823b3['originalSuggestionId']||null,'attributes':_0x349c3d['attributes']};this['_adapter']['addSuggestion'](_0x465556)['then'](_0xa7ccc8=>{_0x349c3d['_saved']=!0x0,_0x1eb6df['remove'](_0x84fc02),_0xa7ccc8&&_0xa7ccc8['createdAt']&&(this['_suggestions']['get'](_0x40ea53)['createdAt']=_0xa7ccc8['createdAt']);})['catch'](_0x1365bc=>{throw _0x478f79('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x349c3d['discard']();}),_0x349c3d['stopListening'](),this['_suggestions']['delete'](_0x349c3d['id']),this['_suggestionState']['delete'](_0x349c3d),_0x1365bc;});}return _0x349c3d;}['_isBlockAttribute'](_0x1e58f6){return this['_blockAttributeKeys']['has'](_0x1e58f6);}['_updateSuggestionData'](_0x340d9e,_0x1abf9a){const _0x4695e6=this['editor']['plugins']['get']('PendingActions'),_0x198541=this['getSuggestion'](_0x340d9e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x198541['_saved']){const _0x194e2c=_0x4695e6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x340d9e,_0x1abf9a)['then'](()=>{_0x4695e6['remove'](_0x194e2c);});}else _0x198541['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x340d9e,_0x1abf9a);});}}['_getSuggestionData'](_0x53d513){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ed401('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53d513);}['_handleNewSuggestionMarker'](_0x3f835a){const {id:_0x178a85,type:_0x5f589d,subType:_0x44c749,authorId:_0x5c2068}=this['_splitMarkerName'](_0x3f835a),_0x120b98=this['_suggestions']['get'](_0x178a85)||this['_createSuggestion'](_0x5f589d,_0x44c749,_0x178a85,_0x5c2068,{});switch(this['_checkSuggestionCorrectness'](_0x120b98,_0x5f589d,_0x44c749,_0x5c2068),this['_suggestionState']['get'](_0x120b98)){case'notReady':this['_getSuggestionData'](_0x178a85)['then'](_0x594697=>{let _0x566b77=Promise['resolve']();_0x594697['hasComments']&&(_0x566b77=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x178a85})),_0x566b77['then'](()=>{this['addSuggestionData'](_0x594697)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x120b98,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x178a85,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x120b98,'ready'),this['fire']('suggestionLoaded',_0x120b98);break;case'ready':this['fire']('suggestionChanged',_0x120b98);}return _0x120b98['addMarkerName'](_0x3f835a),_0x120b98;}['_refreshSuggestionsChain'](_0x18bc2d){const _0x13fdee=Array['from'](_0x18bc2d),_0x147b7d=_0x13fdee['filter'](_0x42d4cd=>'attribute'==_0x42d4cd['type']);this['_refreshAttributeSuggestionsChain'](_0x147b7d);const _0x4bd3e9=_0x13fdee['filter'](_0x4f4cad=>!_0x4f4cad['isMultiRange']&&'attribute'!=_0x4f4cad['type']),_0x587db2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x555a49=>!_0x555a49['isMultiRange']&&'attribute'!=_0x555a49['type']),_0x42840c=_0x587db2['filter'](_0x5dcc4e=>!_0x18bc2d['has'](_0x5dcc4e)),_0xce0c60=new Map(_0x587db2['map'](_0x199964=>[_0x199964,this['_suggestionFactory']['getSuggestionCallback'](_0x199964['type'],_0x199964['subType'],'chain')])),_0x42547c=new Map(_0x587db2['map'](_0x2bfa08=>[_0x2bfa08,_0x2bfa08['getFirstRange']()])),_0x4da4fa=new Set(),_0x285dbc=new Set();for(let _0x2a4d3b=0x0;_0x2a4d3b<_0x4bd3e9['length'];_0x2a4d3b++)_0x46c9eb(_0x4bd3e9[_0x2a4d3b],_0x4bd3e9,_0x2a4d3b+0x1);for(let _0x29c764=0x0;_0x29c764<_0x4bd3e9['length'];_0x29c764++)_0x46c9eb(_0x4bd3e9[_0x29c764],_0x42840c,0x0);const _0x51a67a=new Set();for(let _0x1d2ce9=0x0;_0x1d2ce9<_0x4bd3e9['length'];_0x1d2ce9++){const _0x9fd21=_0x4bd3e9[_0x1d2ce9];!_0x285dbc['has'](_0x9fd21)&&_0x9fd21['previous']&&(_0x51a67a['add'](_0x9fd21['previous']),_0x9fd21['previous']['next']===_0x9fd21&&(_0x9fd21['previous']['next']=null),_0x9fd21['previous']=null),!_0x4da4fa['has'](_0x9fd21)&&_0x9fd21['next']&&(_0x51a67a['add'](_0x9fd21['next']),_0x9fd21['next']['previous']===_0x9fd21&&(_0x9fd21['next']['previous']=null),_0x9fd21['next']=null);}function _0x46c9eb(_0x305b4e,_0x37b238,_0xcd304a){for(let _0x6122d3=_0xcd304a;_0x6122d3<_0x37b238['length'];_0x6122d3++){const _0x34edba=_0x3cc1f8(_0x305b4e,_0x37b238[_0x6122d3]);_0x34edba&&(_0x34edba[0x0]['next']=_0x34edba[0x1],_0x34edba[0x1]['previous']=_0x34edba[0x0],_0x4da4fa['add'](_0x34edba[0x0]),_0x285dbc['add'](_0x34edba[0x1]));}}function _0x3cc1f8(_0x22dd61,_0x3c283e){if(_0x22dd61['author']['id']!==_0x3c283e['author']['id'])return null;const _0x3c1acc=_0xce0c60['get'](_0x22dd61)(_0x22dd61,_0x3c283e,_0x42547c['get'](_0x22dd61),_0x42547c['get'](_0x3c283e));if(!_0x3c1acc)return null;return _0xce0c60['get'](_0x3c283e)(_0x22dd61,_0x3c283e,_0x42547c['get'](_0x22dd61),_0x42547c['get'](_0x3c283e))?_0x3c1acc[0x1]['commentThread']&&_0x3c1acc[0x1]['commentThread']['length']?null:_0x3c1acc:null;}_0x51a67a['size']&&this['_refreshSuggestionsChain'](_0x51a67a);}['_refreshAttributeSuggestionsChain'](_0x233e26){if(0x0==_0x233e26['length'])return;const _0x5b59d3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c287c=>'attribute'==_0x6c287c['type']&&_0x6c287c['_isDataLoaded']),_0x29299c=[],_0x34fce6=new Map();for(const _0x2971c9 of _0x5b59d3){const _0x1c6e0e=_0x36ee07(_0x2971c9['attributes']);_0x34fce6['has'](_0x1c6e0e)||(_0x34fce6['set'](_0x1c6e0e,_0x29299c['length']),_0x29299c['push']([]));const _0x549dbf=_0x34fce6['get'](_0x1c6e0e);_0x29299c[_0x549dbf]['push'](_0x2971c9);}!(function(){_0x29299c['sort']((_0x32a915,_0x16e2db)=>{const _0x4d03d9=_0x32a915[0x0]['createdAt'],_0x39a022=_0x16e2db[0x0]['createdAt'];return _0x4d03d9==_0x39a022?_0x32a915[0x0]['attributes']['groupId']<_0x16e2db[0x0]['attributes']['groupId']?-0x1:0x1:_0x4d03d9<_0x39a022?-0x1:0x1;});for(const _0x132a39 of _0x29299c)_0x132a39['sort']((_0x5348df,_0x3632d8)=>_0x5348df['id']<_0x3632d8['id']?-0x1:0x1);}());for(let _0x424271=0x0;_0x424271<_0x29299c['length'];_0x424271++){if(0x0==_0x29299c[_0x424271]['length'])continue;const _0x6e4108=[];for(let _0x2fc8f4=_0x424271+0x1;_0x2fc8f4<_0x29299c['length'];_0x2fc8f4++)0x0!=_0x29299c[_0x2fc8f4]['length']&&_0x3fc556(_0x29299c[_0x424271],_0x29299c[_0x2fc8f4])&&_0x6e4108['push'](_0x2fc8f4);for(const _0x1becbf of _0x6e4108)_0x29299c[_0x424271]=_0x29299c[_0x424271]['concat'](_0x29299c[_0x1becbf]),_0x29299c[_0x1becbf]=[];}for(const _0x4c959f of _0x29299c)for(let _0x26a6bb=0x0;_0x26a6bb<_0x4c959f['length'];_0x26a6bb++){const _0x521cb2=_0x4c959f[_0x26a6bb+0x1]||null;_0x4c959f[_0x26a6bb]['next']!==_0x521cb2&&(_0x4c959f[_0x26a6bb]['next']=_0x521cb2);}for(const _0x4d943e of _0x29299c)for(let _0x22fcae=0x0;_0x22fcae<_0x4d943e['length'];_0x22fcae++){const _0x23e56e=_0x4d943e[_0x22fcae-0x1]||null;_0x4d943e[_0x22fcae]['previous']!==_0x23e56e&&(_0x4d943e[_0x22fcae]['previous']=_0x23e56e);}function _0x3fc556(_0x3efc5c,_0x580adc){if(_0x3efc5c[0x0]['attributes']['groupId']!==_0x580adc[0x0]['attributes']['groupId']&&_0x3efc5c[0x0]['author']!==_0x580adc[0x0]['author'])return!0x1;if(!function(_0x31cc21,_0xbab1af){if(!_0x31cc21['hasComments']&&!_0xbab1af['hasComments'])return!0x0;if(_0x31cc21['hasComments']&&_0xbab1af['hasComments'])return!0x1;if(_0x31cc21['hasComments']&&_0xbab1af['createdAt']<_0x31cc21['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xbab1af['hasComments']&&_0x31cc21['createdAt']<_0xbab1af['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3efc5c[0x0],_0x580adc[0x0]))return!0x1;const _0x13a370=Vt(_0x3efc5c[0x0]['attributes'],'groupId'),_0x406148=Vt(_0x580adc[0x0]['attributes'],'groupId');if(!_0x2f114e(_0x13a370,_0x406148))return!0x1;return!!_0x3efc5c['every'](_0x2ff9fb=>_0x580adc['some'](_0x1efc04=>_0x2ff9fb['getFirstRange']()['isEqual'](_0x1efc04['getFirstRange']())))&&_0x580adc['every'](_0x558893=>_0x3efc5c['some'](_0x56f327=>_0x558893['getFirstRange']()['isEqual'](_0x56f327['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x140a1e){const _0xb303c6=Array['from'](_0x140a1e),_0x23d217=this['getSuggestions']({'skipNotAttached':!0x0}),_0x359742=_0x23d217['filter'](_0x31360e=>!_0x140a1e['has'](_0x31360e)),_0x182730=new Map(_0xb303c6['map'](_0x3b9c78=>[_0x3b9c78,this['_suggestionFactory']['getSuggestionCallback'](_0x3b9c78['type'],_0x3b9c78['subType'],'join')])),_0x1e7419=new Map(_0x23d217['map'](_0xae3a3a=>[_0xae3a3a,_0xae3a3a['getRanges']()]));for(let _0x5a1416=0x0;_0x5a1416<_0xb303c6['length'];_0x5a1416++){if(_0x20eaef(this,_0xb303c6[_0x5a1416],_0xb303c6,_0x5a1416+0x1))return!0x0;}for(let _0x2d677f=0x0;_0x2d677f<_0xb303c6['length'];_0x2d677f++){if(_0x20eaef(this,_0xb303c6[_0x2d677f],_0x359742,0x0))return!0x0;}return!0x1;function _0x20eaef(_0x2e4b3f,_0x37e087,_0x51414e,_0x424e46){for(let _0x2756c1=_0x424e46;_0x2756c1<_0x51414e['length'];_0x2756c1++){const _0x1cb353=_0x51414e[_0x2756c1];if(_0x1cb353['type']!==_0x37e087['type']||_0x1cb353['author']['id']!==_0x37e087['author']['id']||_0x1cb353['subType']!==_0x37e087['subType'])continue;if(!Wt(_0x37e087,_0x1cb353))continue;if('attribute'==_0x37e087['type']&&_0x37e087['data']['oldValue']!=_0x1cb353['data']['oldValue'])continue;if('attribute'==_0x37e087['type']&&_0x2e4b3f['_isBlockAttribute'](_0x37e087['data']['key']))continue;if('formatBlock'==_0x37e087['type']){const _0x597e30=_0x2e4b3f['editor']['model'],_0x5b71e1=_0x37e087['getContainedElement']();if(_0x5b71e1&&(_0x597e30['schema']['isObject'](_0x5b71e1)||_0x597e30['schema']['isLimit'](_0x5b71e1)))continue;}const _0x574b13=_0x182730['get'](_0x37e087),_0x55c347=_0x1e7419['get'](_0x37e087),_0x5e1918=_0x1e7419['get'](_0x1cb353),_0xb521d9=_0x37e087['commentThread']&&_0x37e087['commentThread']['length'],_0x3c64ff=_0x1cb353['commentThread']&&_0x1cb353['commentThread']['length'];if(!_0xb521d9&&_0x574b13(_0x5e1918,_0x55c347))return _0x2e4b3f['_joinSuggestions'](_0x1cb353,_0x37e087),_0x1e7419['delete'](_0x37e087),!0x0;if(!_0x3c64ff&&_0x574b13(_0x55c347,_0x5e1918))return _0x2e4b3f['_joinSuggestions'](_0x37e087,_0x1cb353),_0x1e7419['delete'](_0x1cb353),!0x0;}return!0x1;}}['_joinSuggestions'](_0x270be0,_0x444dc5){if(_0x270be0['isMultiRange']){for(const _0x5a0e43 of _0x444dc5['getRanges']())_0x270be0['addRange'](_0x5a0e43);}else{const _0xa47e13=_0x444dc5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x270be0,this['_model']['createRange'](_0x270be0['getFirstRange']()['start'],_0xa47e13));}_0x444dc5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4ec7ac,_0xb3fa1d,_0x18df6b){const _0x54e677=_0x4ec7ac['startsWith']('format')||_0x4ec7ac['startsWith']('attribute')?'FORMATTING':_0x4ec7ac['toUpperCase']();return o(this['editor']['locale'],_0xb3fa1d+'_'+_0x54e677+'_SUGGESTION_ANNOUNCEMENT',_0x18df6b);}['_initAriaMarkerChangeAnnouncements'](){const _0x280708=this['editor'];if(!_0x280708['ui'])return;const {ariaLiveAnnouncer:_0x3c9f09}=_0x280708['ui'];_0x514565(this['_model'],({left:_0x5559d8,entered:_0x1605e9})=>{for(const _0x8adee of _0x5559d8){const {group:_0xf44671,type:_0x290a0}=this['_splitMarkerName'](_0x8adee['name']);if('suggestion'===_0xf44671){_0x3c9f09['announce'](this['_getMarkerAnnouncementText'](_0x290a0,'LEAVE'));break;}}for(const _0x36e180 of _0x1605e9){const {group:_0x4af237,type:_0x49306f}=this['_splitMarkerName'](_0x36e180['name']);if('suggestion'===_0x4af237){_0x3c9f09['announce'](this['_getMarkerAnnouncementText'](_0x49306f,'ENTER',_0x25398b(_0x223b84)));break;}}});}['_processAttributeChanges'](_0x3d69ff){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4510cf=this['editor'],_0x51eb22=_0x4510cf['model']['document']['differ']['getChanges']();if(0x0==_0x51eb22['length'])return!0x1;const _0x5a2418=[],_0x3b4b5c=_0x51eb22['filter'](_0x44853a=>'attribute'==_0x44853a['type']),_0x343d33=_0x51eb22['filter'](_0x3977f1=>'insert'==_0x3977f1['type']&&'$text'!=_0x3977f1['name']),_0x17c4fa=_0x51eb22['filter'](_0x103ffb=>'remove'==_0x103ffb['type']&&'$text'!=_0x103ffb['name']);for(const _0x6eb2f6 of _0x3b4b5c)_0x5a2418['push']({'key':_0x6eb2f6['attributeKey'],'newValue':_0x6eb2f6['attributeNewValue'],'oldValue':_0x6eb2f6['attributeOldValue'],'range':qt(_0x6eb2f6['range'],_0x4510cf['model'])});for(const _0x1a6261 of _0x343d33){const _0x2df696=_0x17c4fa['find'](_0x36c373=>_0x36c373['position']['isEqual'](_0x1a6261['position']));_0x2df696&&_0x5a2418['push']({'key':m,'newValue':_0x1a6261['name'],'oldValue':_0x2df696['name'],'range':_0x4510cf['model']['createRangeOn'](_0x1a6261['position']['nodeAfter'])});}return 0x0!=_0x5a2418['length']&&this['_reduceExistingSuggestions'](_0x3d69ff,_0x5a2418);}['_processAttributeSuggestions'](_0x49bb64){let _0x59bcc9=!0x1;const _0x46730a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x104bf0=>_0x104bf0['data']['newRange']&&_0x104bf0['name']['startsWith']('suggestion:attribute:'));for(const _0x5a7563 of _0x46730a){const {subType:_0x53df26,id:_0x375cb9}=this['_splitMarkerName'](_0x5a7563['name']),_0x5c2b0c=_0x53df26['split']('|')[0x0];for(const _0x50b238 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x50b238['id']!=_0x375cb9&&'attribute'==_0x50b238['type']&&_0x50b238['data']&&_0x50b238['data']['key']==_0x5c2b0c&&_0x50b238['getFirstRange']()['isIntersecting'](_0x5a7563['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x50b238,_0x5a7563['data']['newRange'],_0x49bb64),_0x59bcc9=!0x0);}return _0x59bcc9;}['_recordAttributeChanges'](_0x29a3bd){this['_recordAttributeSuggestions']=!0x0,_0x29a3bd();}['_isRegisteredAttribute'](_0x21a6eb){const _0x2ee946=this['_isBlockAttribute'](_0x21a6eb),_0x4204d=this['_inlineAttributeKeys']['has'](_0x21a6eb);return _0x2ee946||_0x4204d;}['_reduceExistingSuggestions'](_0x4f0629,_0x2e72bf){if(0x0==_0x2e72bf['length'])return!0x1;let _0x52a146=!0x1;for(const _0xe89ce4 of _0x2e72bf){const _0x21b8a=this['_findSuggestions'](_0xe89ce4['range'],'attribute')['filter'](_0x952610=>!_0x952610['meta']['isNextTo'])['map'](_0x45b106=>_0x45b106['suggestion']),_0x463f80=_0x36ee07({'newValue':_0xe89ce4['newValue']});_0x21b8a['filter'](_0x5b08ab=>{const [_0x53251a,_0x50614e]=_0x5b08ab['subType']['split']('|');return _0x53251a==_0xe89ce4['key']&&_0x50614e!=_0x463f80;})['forEach'](_0x5c3923=>{this['_reduceSuggestionAttributeRange'](_0x5c3923,_0xe89ce4['range'],_0x4f0629),_0x52a146=!0x0;});}return _0x52a146;}['_reduceSuggestionAttributeRange'](_0x42f13a,_0x43b5c0,_0x448ba9){const _0x4f2f99=_0x42f13a['getFirstRange']()['getDifference'](_0x43b5c0);0x0!==_0x4f2f99['length']?0x1!==_0x4f2f99['length']?this['_breakSuggestionMarker'](_0x42f13a,_0x43b5c0['start'],_0x43b5c0['end']):this['_setSuggestionRange'](_0x42f13a,_0x4f2f99[0x0]):_0x448ba9['removeMarker'](_0x42f13a['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x215de1){this['_editor']=_0x215de1,this['_model']=_0x215de1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x334926,_0x4c4053,_0x2e76ae,_0x5a851a,_0x7a86c7,_0x55774b){return new u(this['_model'],{'type':_0x334926,'subType':_0x4c4053,'id':_0x2e76ae,'author':_0x5a851a,'creator':_0x5a851a,'attributes':_0x7a86c7,'onAttributesChange':_0x55774b,'onAccept':(..._0x5907f3)=>this['getSuggestionCallback'](_0x334926,_0x4c4053,'accept')(..._0x5907f3),'onDiscard':(..._0x4dd673)=>this['getSuggestionCallback'](_0x334926,_0x4c4053,'discard')(..._0x4dd673)});}['registerCustomCallback'](_0x3f36d1,_0x3e8eb3,_0x4c23d7,_0x4b8ef9){const _0x91481a=_0x3f36d1+':'+_0x3e8eb3+':'+_0x4c23d7;this['_customCallbacks']['set'](_0x91481a,_0x4b8ef9);}['getSuggestionCallback'](_0x5ed9fb,_0x3f8793,_0x367a5a){const _0x46f40c=_0x5ed9fb+':'+_0x3f8793+':'+_0x367a5a;return this['_customCallbacks']['get'](_0x46f40c)||this['_defaultCallbacks']['get'](_0x5ed9fb+':'+_0x367a5a);}['_registerDefaultCallbacks'](){const _0x2f4f1e=()=>!0x1,_0x2dff4f=_0x4b963b=>{_0x4b963b['sort']((_0x2a2416,_0xa39c41)=>_0x2a2416['start']['isBefore'](_0xa39c41['start'])?0x1:-0x1),this['_model']['change'](_0x13b5d5=>{for(const _0x4b33b1 of _0x4b963b){let _0x9de338;_0x9de338=_0x4b33b1['end']['isAtEnd']&&_0x4b33b1['end']['parent']==_0x4b33b1['start']['nodeAfter']?_0x13b5d5['createSelection'](_0x4b33b1['start']['nodeAfter'],'on'):_0x13b5d5['createSelection'](_0x4b33b1),this['_model']['deleteContent'](_0x9de338,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x294d5b=(_0x3ba7d7,_0x1926f4)=>{_0x1926f4&&this['_model']['change'](_0x17346d=>{const {commandName:_0xbe1ac,commandParams:_0x3c8f48=[]}=_0x1926f4,_0x593386=_0x3ba7d7['map'](_0x54bed2=>(Ft(_0x54bed2)&&(_0x54bed2=this['_model']['createRange'](_0x54bed2['end'])),_0x54bed2))['filter'](_0x52b4d7=>'$graveyard'!==_0x52b4d7['root']['rootName']);if(_0x593386['length']<0x1)return;const _0x41b881=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x55bf8d=>_0x13f7d0['fromRange'](_0x55bf8d));_0x17346d['setSelection'](_0x593386);for(const _0x55c9ed of this['_editor']['commands']['commands']())_0x55c9ed['refresh']();_0x3c8f48['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xbe1ac,..._0x3c8f48);const _0x778731=_0x41b881['filter'](_0x42482d=>'$graveyard'!=_0x42482d['root']['rootName']);_0x778731['length']>0x0&&_0x17346d['setSelection'](_0x778731);for(const _0x46356e of _0x41b881)_0x46356e['detach']();});},_0x3df815=(_0x36cf2b,_0x5ac50f)=>0x1==_0x36cf2b['length']&&0x1==_0x5ac50f['length']&&_0x36cf2b[0x0]['end']['isEqual'](_0x5ac50f[0x0]['start']),_0xe93bb7=(_0x49f1ed,_0x48c262,_0x7b2c0f,_0x265453)=>Kt(_0x49f1ed,_0x48c262,_0x7b2c0f,_0x265453)?[_0x49f1ed,_0x48c262]:Kt(_0x48c262,_0x49f1ed,_0x265453,_0x7b2c0f)?[_0x48c262,_0x49f1ed]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f4f1e),this['_defaultCallbacks']['set']('insertion:discard',_0x2dff4f),this['_defaultCallbacks']['set']('insertion:join',_0x3df815),this['_defaultCallbacks']['set']('insertion:chain',_0xe93bb7),this['_defaultCallbacks']['set']('deletion:accept',_0x2dff4f),this['_defaultCallbacks']['set']('deletion:discard',_0x2f4f1e),this['_defaultCallbacks']['set']('deletion:join',_0x3df815),this['_defaultCallbacks']['set']('deletion:chain',_0xe93bb7),this['_defaultCallbacks']['set']('formatInline:accept',_0x294d5b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f4f1e),this['_defaultCallbacks']['set']('formatInline:join',_0x3df815),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f4f1e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x294d5b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f4f1e),this['_defaultCallbacks']['set']('formatBlock:join',_0x3df815),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f4f1e),this['_defaultCallbacks']['set']('attribute:accept',_0x2f4f1e),this['_defaultCallbacks']['set']('attribute:discard',(_0x33a1c0,_0x207a57)=>{if(!_0x207a57)return;const _0x2955b3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5303c4=>{if(_0x207a57['key']==m)for(const _0x14c52b of _0x33a1c0){const _0x1a8750=_0x14c52b['start']['nodeAfter'],_0x191cbc=_0x207a57['oldValue'];_0x5303c4['rename'](_0x1a8750,_0x191cbc);}else{if(_0x2955b3['_isBlockAttribute'](_0x207a57['key'])){for(const _0x35f103 of _0x33a1c0)void 0x0!==_0x207a57['oldValue']?_0x5303c4['setAttribute'](_0x207a57['key'],_0x207a57['oldValue'],_0x35f103['start']['nodeAfter']):_0x5303c4['removeAttribute'](_0x207a57['key'],_0x35f103['start']['nodeAfter']);}else{for(const _0x366042 of _0x33a1c0)_0x207a57['oldValue']?_0x5303c4['setAttribute'](_0x207a57['key'],_0x207a57['oldValue'],_0x366042):_0x5303c4['removeAttribute'](_0x207a57['key'],_0x366042);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3df815);}}function Gt(_0x569ff8,_0x113308,_0x307a33){for(const _0x22b10d of _0x113308['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x22b10d['root']==_0x22b10d)return!0x1;if(!_0x307a33['containsItem'](_0x22b10d))return!0x1;if(_0x569ff8['isObject'](_0x22b10d)||_0x569ff8['isLimit'](_0x22b10d))return!0x0;}return!0x1;}function Ft(_0x54ce07){return _0x54ce07['end']['parent']==_0x54ce07['start']['nodeAfter']&&_0x54ce07['end']['isAtStart'];}function Lt(_0x5e69ad,_0xf9862f,_0xe8ff6e,_0x35c330){const _0x3bcb5f=_0xeb5bd1=>!_0xeb5bd1['item']['is']('$textProxy')&&!_0x35c330['isObject'](_0xeb5bd1['item']),_0x5b1835=_0x5e69ad['start']['getLastMatchingPosition'](_0x3bcb5f),_0x2160ef=_0x5e69ad['end']['getLastMatchingPosition'](_0x3bcb5f,{'direction':'backward'});return(!_0x5e69ad['start']['isEqual'](_0x5b1835)||!_0x5e69ad['end']['isEqual'](_0x2160ef))&&(_0x5b1835['isBefore'](_0x2160ef)?_0xe8ff6e['updateMarker'](_0xf9862f,{'range':_0xe8ff6e['createRange'](_0x5b1835,_0x2160ef)}):_0xe8ff6e['removeMarker'](_0xf9862f),!0x0);}function Jt(_0x3fb264){return _0x36ee07(_0x3fb264);}function Ht(_0x6990af){const _0x5b98df=_0x6990af['start']['nodeAfter'];return _0x5b98df&&_0x5b98df['is']('element');}function qt(_0x23f7a7,_0x588b0f){return null==_0x23f7a7['end']['nodeBefore']&&_0x23f7a7['end']['parent']==_0x23f7a7['start']['nodeAfter']?zt(_0x23f7a7['start']['nodeAfter'],_0x588b0f):_0x23f7a7;}function zt(_0x1ca635,_0x5215a6){const _0xff2b38=_0x5215a6['schema']['isObject'](_0x1ca635)||_0x5215a6['schema']['isSelectable'](_0x1ca635);return _0x5215a6['createRange'](_0x5215a6['createPositionAt'](_0x1ca635,'before'),_0xff2b38?_0x5215a6['createPositionAfter'](_0x1ca635):_0x5215a6['createPositionAt'](_0x1ca635,'end'));}function Kt(_0x9c1b95,_0x275062,_0x45b207,_0x2d0874){return!!Wt(_0x9c1b95,_0x275062)&&_0x45b207['end']['isEqual'](_0x2d0874['start']);}function Wt(_0x24bb09,_0x1529ef){if(!_0x24bb09['_isDataLoaded']||!_0x1529ef['_isDataLoaded'])return!0x1;const _0x1f71af=new Set(Object['keys'](_0x24bb09['attributes'])),_0x9a666c=new Set(Object['keys'](_0x1529ef['attributes']));if(_0x1f71af['delete']('groupId'),_0x9a666c['delete']('groupId'),0x0==_0x1f71af['size']&&0x0==_0x9a666c['size'])return!0x0;if(_0x1f71af['size']!=_0x9a666c['size'])return!0x1;const _0x456a40={..._0x24bb09['attributes']},_0x540396={..._0x1529ef['attributes']};return delete _0x456a40['groupId'],delete _0x540396['groupId'],JSON['stringify'](_0x456a40)==JSON['stringify'](_0x540396);}function Qt(_0x1f3866,_0x13aa30){const _0x5d7954=Xt(_0x1f3866['attributes']),_0x43e5ca=Xt(_0x13aa30);if(!_0x1f3866['_isDataLoaded'])return!0x1;for(const _0x5ef52d of Object['keys'](_0x43e5ca))if(!_0x2f114e(_0x5d7954[_0x5ef52d],_0x43e5ca[_0x5ef52d]))return!0x1;return!0x0;}function Xt(_0x5b7345){const _0x2bc94d=Object['assign']({},_0x5b7345);return delete _0x2bc94d['skipNestingCheck'],delete _0x2bc94d['tablePasteChainId'],_0x2bc94d;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x15a436(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ff1b8,_0x1d9902,_0x35540b,_0x4004aa){super(),this['model']=_0x1d9902,this['view']=_0x35540b,this['commentThreadController']=_0x4004aa,this['_editor']=_0x5ff1b8,this['_acceptCommand']=_0x5ff1b8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ff1b8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x11ef35,_0x1dec26)=>_0x11ef35||_0x1dec26),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32e90f=>_0x32e90f&&this['_editor']['model']['canEditAt'](_0x1d9902['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e80ec=>_0x3e80ec&&this['_editor']['model']['canEditAt'](_0x1d9902['getRanges']())),this['_pendingAction']=null,_0x35540b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x35540b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x35540b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x35540b,'change:isDirty',()=>{_0x35540b['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 _0x4ecc72=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4ecc72);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x58bbdd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2e0428,_0x4ba26f,_0x5bfa21,_0x8b25a3){super(_0x2e0428),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x35a036(_0x2e0428,o(_0x2e0428,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4ba26f['authoredAt']),this['bind']('authoredAt')['to'](_0x4ba26f),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',_0x4ba26f,'authoredAt',this,'descriptionParts',(_0x15041b,_0x2751df,_0x27710b)=>{const _0x48da68=_0x27710b['map'](_0x3370bd=>cs(_0x3370bd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x15041b-0x1,_0x4ba26f['author']['name'],_0x2751df?_0x8b25a3['formatDateTime'](_0x2751df):'',new DOMParser()['parseFromString'](_0x48da68,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3b38e1(),this['focusTracker']=new _0x2bb7da(),this['keystrokes']=new _0x1ba224(),this['focusCycler']=new _0x1f52be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6ebd92=>_0x6ebd92['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4ba26f,this['_localUser']=_0x5bfa21,this['_config']=_0x8b25a3,_0x8b25a3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x287042(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3a8573}=this['_config'];this['commentsListView']=new _0x3a8573(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',_0x423063=>_0x423063+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e8a8b,_0xd00151)=>_0x4e8a8b||!!_0xd00151);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x542205}=this['_config'],_0x40ea58=new _0x542205(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8718a4=_0x40ea58['commentInputView'];return _0x40ea58['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x8718a4,'value',(_0x423739,_0x16b919,_0x50bfce)=>!!_0x50bfce||_0x423739&&!_0x16b919),_0x8718a4['on']('submit',(_0x1366b7,_0x1f4f0f)=>{this['fire']('addComment',_0x1f4f0f),_0x8718a4['editor']['setData']('');}),_0x8718a4['on']('cancel',()=>this['focus']()),_0x8718a4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x40ea58;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x330031,_0x36c2df,_0x19cb90,_0x32b399){super(_0x330031,_0x36c2df,_0x19cb90,_0x32b399),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xfb2bc8=>_0xfb2bc8&&_0xfb2bc8[0x0]?_0xfb2bc8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4fbb4f,_0x5118b1)=>{let _0x3c93ad='';for(const _0x41d341 of _0x4fbb4f)_0x3c93ad+='<p>'+cs(_0x41d341['content'],_0x41d341['color'])+'</p>';return _0x5118b1?_0x3c93ad:_0x2a749d(_0x3c93ad,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x32b399['SuggestionView'](_0x330031,_0x36c2df,{'formatDateTime':_0x32b399['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 _0x5e7a0e=this['bindTemplate'],_0x1e28a5=[this['suggestionView']];return this['commentsListView']&&_0x1e28a5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1e28a5['push'](this['commentThreadInputView']),_0x1e28a5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5e7a0e['if']('isActive','ck-suggestion-wrapper--active'),_0x5e7a0e['to']('type',_0x4fc9a6=>'ck-suggestion-'+_0x4fc9a6),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':_0x5e7a0e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1e28a5};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x58bbdd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40ab12,_0x3becb3,_0x50cfa8){super(_0x40ab12),this['_model']=_0x3becb3,this['_config']=_0x50cfa8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3becb3),this['acceptButton']=this['_createButton'](o(_0x40ab12,'Accept\x20suggestion'),_0x16f7f7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x40ab12,'Discard\x20suggestion'),_0x16f7f7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x12797c(_0x40ab12,_0x3becb3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3b38e1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2bb7da(),this['keystrokes']=new _0x1ba224(),this['focusCycler']=new _0x1f52be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5cd435=>_0x5cd435['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2b1947=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2b1947['innerHTML']=this['description'],this['on']('change:description',(_0x1199e4,_0x8ef403,_0x5494c0)=>{_0x2b1947['innerHTML']=_0x5494c0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xc37a8e=this['bindTemplate'],_0xfde449=[{'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':_0xc37a8e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xc37a8e['to']('authoredAt',_0x2b42ca=>this['_config']['formatDateTime'](_0x2b42ca))}]}]},{'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']&&_0xfde449['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':_0xfde449}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4dbbca,_0x56f393,_0x3015a5,_0x5e245e,_0x2ad08f){const _0x3e23b8=new _0x3e44f9(this['locale']);return _0x3e23b8['set']({'label':_0x4dbbca,'icon':_0x56f393,'tooltip':!0x0,'tooltipPosition':_0x2ad08f}),_0x3e23b8['extendTemplate']({'attributes':{'class':_0x3015a5}}),_0x3e23b8['on']('execute',()=>{this['fire'](_0x5e245e,this['_model']['id']);}),_0x3e23b8;}['_setupKeyboardNavigation'](){const _0x41c8fd=this['element'];this['keystrokes']['listenTo'](_0x41c8fd);for(const _0x2cc3b1 of this['focusables'])this['focusTracker']['add'](_0x2cc3b1['element']),this['keystrokes']['listenTo'](_0x2cc3b1['element']);this['keystrokes']['set']('enter',(_0x226b77,_0x322140)=>{_0x41c8fd===_0x226b77['target']&&(this['focusCycler']['focusFirst'](),_0x322140());}),this['keystrokes']['set']('esc',(_0x5ca85a,_0x43300f)=>{_0x41c8fd!==_0x5ca85a['target']&&(this['focus'](),_0x43300f());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x9e54d2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d693d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x486746){super(_0x486746),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1fed6f=this['editor']['config'];_0x1fed6f['define']('trackChanges.SuggestionThreadView',pe),_0x1fed6f['define']('trackChanges.SuggestionView',fe),_0x1fed6f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1fed6f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x596b45,_0x3e2fc0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x9be8c2,_0x4f7bcf]of this['_handleControllerBuffer']){const _0x2b571c=this['_suggestionToController']['has'](_0x9be8c2);_0x2b571c||_0x4f7bcf?_0x2b571c&&_0x4f7bcf&&this['_destroyController'](_0x9be8c2):this['_initializeController'](_0x9be8c2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x596b45,_0x3e2fc0);}['init'](){const _0x10f38f=this['editor'],_0x2a7788=_0x10f38f['plugins']['get']('TrackChangesEditing'),_0xeaa020=_0x10f38f['plugins']['get']('Annotations'),_0x1cc8d7=_0x10f38f['plugins']['get']('EditorAnnotations'),_0x3d844=_0x10f38f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1cc8d7['addSourceCollector'](()=>{const _0x1f3f28=[];for(const [_0x20e38f,_0x43f4c2]of Array['from'](this['_suggestionToController'])){const _0x375193=_0x20e38f['getAllAdjacentSuggestions'](),_0xe18dca=[];for(const _0x3fcaaf of _0x375193){if(!_0x3fcaaf['isInContent'])continue;if(_0x3fcaaf['isMultiRange']){_0xe18dca['push'](..._0x3fcaaf['getRanges']());continue;}const _0x2ba9a5=_0x3fcaaf['getFirstRange']();if(_0xe18dca['length']>0x0){const _0x38294=_0xe18dca[0x0]['getJoined'](_0x2ba9a5);if(_0x38294){_0xe18dca[0x0]=_0x38294;continue;}}_0xe18dca['push'](_0x2ba9a5);}_0x1f3f28['push']([_0x43f4c2['view'],_0xe18dca]);}return _0x1f3f28;}),this['listenTo'](_0x2a7788,'suggestionLoaded',(_0x4ffc36,_0x35a9c7)=>{this['listenTo'](_0x35a9c7,'change:previous',(_0x4346e2,_0x539339,_0x295936,_0x44248f)=>{_0x35a9c7['isInContent']&&(null==_0x295936?(this['_updateController'](_0x44248f['head']),this['_handleSuggestionControllerDelayed'](_0x35a9c7,!0x1)):(this['_updateController'](_0x295936['head']),null==_0x44248f&&this['_handleSuggestionControllerDelayed'](_0x35a9c7,!0x0)));}),null!==_0x35a9c7['previous']?this['_updateController'](_0x35a9c7['head']):this['_handleSuggestionControllerDelayed'](_0x35a9c7,!0x1);}),this['listenTo'](_0x2a7788,'suggestionUnloaded',(_0x4e6471,_0x42b143,_0x5b9a09)=>{this['stopListening'](_0x42b143,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42b143),this['_suggestionToController']['has'](_0x42b143)&&this['_destroyController'](_0x42b143),_0x5b9a09&&this['_updateController'](_0x5b9a09['head']);}),this['listenTo'](_0x2a7788,'suggestionChanged',(_0x5f4d75,_0x5a5894)=>{this['_updateController'](_0x5a5894);}),this['listenTo'](_0xeaa020,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3d844,'addComment',(_0x3e7cf4,{threadId:_0x20a118,isFromAdapter:_0x4635df})=>{if(_0x4635df||!_0x2a7788['hasSuggestion'](_0x20a118))return;const _0x393abe=_0x2a7788['getSuggestion'](_0x20a118);this['_suggestionToController']['get'](_0x393abe)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42ce85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f90f0;for(const _0x1beaf3 in _0x42ce85){const _0x46d417=_0x1beaf3,_0x1faa3b=_0x42ce85[_0x46d417];if('trackChangesLicenseKeyValid'==_0x1faa3b||'trackChangesLicenseKeyInvalid'==_0x1faa3b||'trackChangesLicenseKeyExpired'==_0x1faa3b||'trackChangesLicenseKeyDomainLimit'==_0x1faa3b||'trackChangesLicenseKeyNotAllowed'==_0x1faa3b||'trackChangesLicenseKeyEvaluationLimit'==_0x1faa3b||'trackChangesLicenseKeyTrialLimit'==_0x1faa3b||'trackChangesLicenseKeyUsageLimit'==_0x1faa3b){delete _0x42ce85[_0x46d417],_0x3f90f0=_0x1faa3b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3f90f0&&_0x42ce85['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3f90f0&&_0x42ce85['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3f90f0&&_0x42ce85['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a1b2e=this['editor']['plugins']['get']('Annotations'),_0x2b9da7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32d7a8=Array['from'](_0x2a1b2e['activeAnnotations'],_0x4e4501=>_0x4e4501['innerView'])['filter'](_0x2c3f78=>this['_viewToController']['has'](_0x2c3f78)),_0x36a8fb=[];for(const _0x3ad23a of _0x32d7a8){const _0xd8ce4a=this['_viewToController']['get'](_0x3ad23a)['model']['getAllAdjacentSuggestions']();_0x36a8fb['push'](..._0xd8ce4a['reduce']((_0x5bedb7,_0x5a239d)=>[..._0x5bedb7,..._0x5a239d['getMarkerNames']()],[]));}_0x2b9da7['activeMarkers']=_0x36a8fb;}['_addUIComponentsToFactory'](){const _0x35a80a=this['editor'],_0x3e3742=_0x35a80a['locale'],_0x2a53bc=o(_0x3e3742,'Track\x20changes'),_0x55132b=new _0x114426([{'type':'switchbutton','model':new _0x40fc25({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a53bc,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35a80a['plugins']['has']('TrackChangesPreview')&&_0x55132b['addMany']([{'type':'separator'},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x342460 of _0x55132b)if(ke(_0x342460)){const _0x51883e=_0x35a80a['commands']['get'](_0x342460['model']['commandName']);_0x342460['model']['bind']('isOn','isEnabled')['to'](_0x51883e,'value','isEnabled');}_0x35a80a['ui']['componentFactory']['add']('trackChanges',_0x5dff45=>this['_createToolbarButton'](_0x5dff45,_0x55132b,_0x2a53bc)),_0x35a80a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x45d994=>this['_createMenuBarMenu'](_0x45d994,_0x55132b,_0x2a53bc));}['_createToolbarButton'](_0x2dea4b,_0x6ed9ff,_0x51301a){const _0x4fff7f=_0x1a91c7(_0x2dea4b,_0x231e8c),_0x5d1a84=this['editor']['commands']['get']('trackChanges');_0x4fff7f['buttonView']['set']({'tooltip':_0x51301a,'label':_0x51301a,'icon':we}),_0x4fff7f['buttonView']['bind']('isOn')['to'](_0x5d1a84,'value'),_0x4fff7f['buttonView']['on']('execute',()=>{_0x5d1a84['execute'](),this['editor']['editing']['view']['focus']();}),_0x1c8210(_0x4fff7f,_0x6ed9ff,{'role':'menu'});const _0x20492e=[];for(const _0x3cf809 of _0x6ed9ff)ke(_0x3cf809)&&_0x20492e['push'](this['editor']['commands']['get'](_0x3cf809['model']['commandName']));const _0x20fda1=_0x4fff7f['buttonView'];return _0x20fda1['actionView']['unbind']('isEnabled'),_0x20fda1['arrowView']['unbind']('isEnabled'),_0x20fda1['actionView']['bind']('isEnabled')['to'](_0x5d1a84,'isEnabled'),_0x20fda1['arrowView']['bind']('isEnabled')['toMany'](_0x20492e,'isEnabled',(..._0x77ac42)=>_0x77ac42['some'](_0xef7573=>_0xef7573)),_0x4fff7f['on']('execute',_0x3cbf03=>{this['editor']['execute'](_0x3cbf03['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fff7f;}['_createMenuBarMenu'](_0x4ab01d,_0x516d04,_0x59d2fe){const _0x303c16=new _0x475cee(_0x4ab01d),_0x401da8=this['editor']['commands']['get']('trackChanges');_0x303c16['buttonView']['set']({'label':_0x59d2fe,'icon':we});const _0x34aa4a=new _0x5dc21b(_0x4ab01d);for(const _0x361fd3 of _0x516d04){if('separator'==_0x361fd3['type']){_0x34aa4a['items']['add'](new _0x344711(_0x4ab01d));continue;}const _0x207da8=new _0x3a57e1(_0x4ab01d,_0x303c16),_0x1b35ca=new _0xb816cb(_0x4ab01d),_0x47ccab=_0x361fd3['model'];_0x1b35ca['bind'](...Object['keys'](_0x47ccab))['to'](_0x47ccab),_0x1b35ca['delegate']('execute')['to'](_0x303c16),_0x1b35ca['on']('execute',()=>{this['editor']['execute'](_0x47ccab['commandName']),this['editor']['editing']['view']['focus']();}),_0x207da8['children']['add'](_0x1b35ca),_0x34aa4a['items']['add'](_0x207da8);}return _0x303c16['bind']('isEnabled')['to'](_0x401da8,'isEnabled'),_0x303c16['panelView']['children']['add'](_0x34aa4a),_0x303c16;}['_initializeController'](_0x4c360b){const _0x56c2b8=this['editor'],_0x322741=_0x56c2b8['config'],_0x4dc123=_0x56c2b8['plugins']['get']('Annotations'),_0x3ba958=_0x56c2b8['plugins']['get']('CommentsRepository'),_0x378395=_0x56c2b8['plugins']['get']('EditorAnnotations'),_0x524350=_0x56c2b8['plugins']['get'](_0x4d693d)['me'],_0x4a72b5=_0x322741['get']('trackChanges')['SuggestionThreadView'],_0x224f33=_0x322741['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51c9af,CommentThreadInputView:_0x23fa95}=_0x56c2b8['plugins']['get']('CommentsUI');let _0x1c11ea,_0x39172b,_0x395ab0;this['_annotationViews']['has'](_0x4c360b['id'])?(_0x39172b=this['_annotationViews']['get'](_0x4c360b['id']),_0x1c11ea=_0x39172b['mainView']):(_0x1c11ea=new _0x4a72b5(_0x56c2b8['locale'],_0x4c360b,_0x524350,{'disableComments':this['_disableComments'],'editorConfig':{..._0x322741['get']('comments.editorConfig'),'licenseKey':_0x322741['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x322741['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x322741['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x322741['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xe82a6e(_0x322741['get']('locale')),'CommentView':_0x322741['get']('comments')['CommentView'],'CommentsListView':_0x51c9af,'CommentThreadInputView':_0x23fa95,'SuggestionView':_0x224f33}),_0x1c11ea['suggestionView']['acceptButton']['on']('execute',()=>{_0x56c2b8['editing']['view']['focus']();}),_0x1c11ea['suggestionView']['discardButton']['on']('execute',()=>{_0x56c2b8['editing']['view']['focus']();}),_0x39172b=_0x4dc123['createAnnotationView'](this['editor']['locale'],_0x1c11ea),_0x39172b['bind']('isDirty')['to'](_0x1c11ea,'isDirty'),_0x39172b['bind']('length')['to'](_0x1c11ea),_0x39172b['bind']('type')['to'](_0x1c11ea,'type',_0x423bf2=>'suggestion-'+_0x423bf2),_0x1c11ea['on']('escape',()=>{_0x395ab0['fire']('escape');}),this['_annotationViews']['set'](_0x4c360b['id'],_0x39172b));const _0x10f99d=_0x3ba958['createCommentThreadController'](_0x4c360b['commentThread'],_0x1c11ea),_0x5023c4=new Ce(_0x56c2b8,_0x4c360b,_0x1c11ea,_0x10f99d),_0x304198=_0x4c360b['getAllAdjacentSuggestions']()['filter'](_0x579f3a=>_0x579f3a['isInContent']);_0x1c11ea['descriptionParts']=_0x56c2b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x304198),this['_suggestionToController']['set'](_0x4c360b,_0x5023c4),this['_viewToController']['set'](_0x1c11ea,_0x5023c4),_0x395ab0=_0x4dc123['createAnnotation']({'view':_0x39172b,'target':()=>{const _0x5a51cf=[],_0x5113bc=_0x4c360b['getAllAdjacentSuggestions']()['filter'](_0x339fa6=>_0x339fa6['isInContent']);for(const _0x2dfeed of _0x5113bc)_0x5a51cf['push'](..._0x2dfeed['getMarkers']());return _0x15d485(_0x56c2b8['editing'],_0x5a51cf);},'type':()=>'suggestion-'+_0x5023c4['view']['type']}),_0x3ba958['_bindAnnotationToEditors'](_0x1c11ea,_0x395ab0),_0x4dc123['add'](_0x395ab0),_0x378395['registerAnnotation'](_0x395ab0);}['_destroyController'](_0x576012){const _0x6f55e9=this['editor']['plugins']['get']('CommentsRepository'),_0x1444cb=this['editor']['plugins']['get']('Annotations'),_0x3dbf1e=this['_suggestionToController']['get'](_0x576012),_0x2823d4=_0x3dbf1e['view'],_0x344770=_0x1444cb['getByInnerView'](_0x2823d4);_0x6f55e9['_unbindEditors'](_0x2823d4),_0x344770&&_0x1444cb['remove'](_0x344770),this['_suggestionToController']['delete'](_0x576012),this['_viewToController']['delete'](_0x2823d4),_0x3dbf1e['destroy']();}['_updateController'](_0xd0e1ef){if(!_0xd0e1ef['isInContent']||!this['_suggestionToController']['has'](_0xd0e1ef))return;const _0x521517=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fd2e8=this['_suggestionToController']['get'](_0xd0e1ef),_0x198034=_0xd0e1ef['getAllAdjacentSuggestions']();_0x3fd2e8['view']['descriptionParts']=_0x521517['descriptionFactory']['getDescriptions'](_0x198034);}['destroy'](){for(const _0x14d2bd of this['_suggestionToController']['keys']())this['_destroyController'](_0x14d2bd);for(const _0x53c7bd of this['_annotationViews']['values']())_0x53c7bd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3e5d6a){return'model'in _0x3e5d6a;}class k extends _0x9e54d2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x47b5ea){this['editor']['plugins']['get'](p)['adapter']=_0x47b5ea;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x355f17){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x355f17);}['getSuggestions']({skipNotAttached:_0xde2774=!0x1,toJSON:_0x3d6dbd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xde2774,'toJSON':_0x3d6dbd});}['getSuggestion'](_0x553da1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x553da1);}}const w=['Pagination'];class T extends _0x9e54d2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x79fe49=this['editor'];if(_0x79fe49['config']['define']('trackChangesData.editorCreator',_0x22d9d0=>{const _0x2d034c=_0x79fe49['model']['document']['getRootNames']()['reduce']((_0x69ed30,_0x3d7b95)=>(_0x69ed30[_0x3d7b95]='',_0x69ed30),{});return _0x79fe49['constructor']['create'](_0x2d034c,_0x22d9d0);}),'function'!=typeof _0x79fe49['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ed401('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x25aa50){return N(this['editor'],!0x0,_0x25aa50);}['getDataWithDiscardedSuggestions'](_0x3c9e5f){return N(this['editor'],!0x1,_0x3c9e5f);}}class D extends _0x9e54d2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x305fe5){function _0x148273(_0x5e9ae3){return _0x5e9ae3['map'](_0x51c911=>String['fromCharCode'](_0x51c911))['join']('');}super(_0x305fe5),this['result']='end',_0x305fe5[_0x148273([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x148273([0x76,0x69,0x65,0x77])][_0x148273([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x148273([0x61,0x75,0x74,0x6f]),_0x305fe5[_0x148273([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x148273([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x148273([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x148273([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x148273([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x460dfc){return void 0x0!==_0x460dfc['getRootsAttributes'];}async function N(_0x502caf,_0x47a3bb,_0xc4eda5){const _0x478723=_0x105839(_0x502caf,w);_0x478723['plugins']['push'](p,D),_0x478723['rootsAttributes']=Fe(_0x502caf)?_0x502caf['getRootsAttributes']():void 0x0;const _0x43c18c=document['createDocumentFragment'](),_0x512c1e=_0x502caf['config']['get']('trackChangesData')['editorCreator'],_0x14e9c4=await _0x512c1e(_0x478723,()=>function(_0x4b2ec0){const _0x484fd6=document['createElement']('div');return _0x4b2ec0['appendChild'](_0x484fd6),_0x484fd6;}(_0x43c18c));!function(_0x13ecf2,_0x253789){const _0x4462e6=_0x13ecf2['model']['document']['getRootNames']()['reduce']((_0x19baf6,_0x5119e5)=>(_0x19baf6[_0x5119e5]=_0x13ecf2['data']['get']({'rootName':_0x5119e5}),_0x19baf6),{}),_0x3831aa=_0x13ecf2['plugins']['get']('Users')['users']['map'](_0x4c78f6=>({'id':_0x4c78f6['id'],'name':_0x4c78f6['name']})),_0x1f3557=_0x13ecf2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x53bc74=_0x13ecf2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4b55ae=_0x253789['plugins']['get']('Users'),_0xa3ddb5=_0x253789['plugins']['get']('TrackChangesEditing'),_0x47bcf5=_0x253789['plugins']['get']('CommentsRepository');for(const _0x23677d of _0x47bcf5['getCommentThreads']())_0x23677d['remove']();for(const _0x58c8fa of _0x3831aa)_0x4b55ae['getUser'](_0x58c8fa['id'])||_0x4b55ae['addUser'](_0x58c8fa);_0x4b55ae['me']||_0x4b55ae['useAnonymousUser']();for(const _0x303bee of _0x53bc74)_0x47bcf5['addCommentThread'](_0x303bee);for(const _0x40be44 of _0x1f3557)_0xa3ddb5['addSuggestionData'](_0x40be44);_0x253789['data']['set'](_0x4462e6);}(_0x502caf,_0x14e9c4),_0x14e9c4['execute'](_0x47a3bb?'acceptAllSuggestions':'discardAllSuggestions');const _0x149b3f=Fe(_0x14e9c4)?_0x14e9c4['getFullData'](_0xc4eda5):_0x14e9c4['data']['get'](_0xc4eda5);return await _0x14e9c4['destroy'](),_0x149b3f;}class Me extends _0x58bbdd{['options'];constructor(_0x126d29,_0x1b85ef){super(_0x126d29),this['options']=_0x1b85ef,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'](_0x2aa5f4,_0x5bef58){if(!this['element'])return;const _0x4c917c=[];for(const [_0x1d701d,_0x2ff7be]of _0x2aa5f4){const _0x676cb6=document['createElement']('div');_0x676cb6['setAttribute']('data-ck-root-name',_0x1d701d),_0x676cb6['className']=_0x2ff7be['classes']+'\x20ck-track-changes-preview__root-container',_0x676cb6['innerHTML']=_0x2ff7be['content'],_0x4c917c['push'](_0x676cb6);}_0x5bef58(this['element'],_0x4c917c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x27fa14){super(_0x27fa14),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x28aac1=this['editor'],_0x103ac7=_0x28aac1['locale'],_0x1cfc2f=_0x28aac1['plugins']['get']('Dialog');let _0x1d007b;const _0x2475fb=function(_0x5c13df){const _0x4995ee={};if('editables'in _0x5c13df['ui']['view']){for(const [_0x1b7411,_0x1d974a]of Object['entries'](_0x5c13df['ui']['view']['editables']))_0x4995ee[_0x1b7411]=_0x1d974a['element'];}else _0x4995ee[_0x5c13df['model']['document']['getRootNames']()[0x0]]=_0x5c13df['ui']['view']['editable']['element'];return _0x4995ee;}(_0x28aac1),_0x242699=function(_0x657f5a){let _0x4496fa=0x0;for(const _0xcf7e4 of Object['values'](_0x657f5a))_0x4496fa=Math['max'](_0x4496fa,_0xcf7e4['getBoundingClientRect']()['width']);let _0x314c9f=0x0;for(const _0x5e3a82 of Object['values'](_0x657f5a))_0x314c9f+=_0x5e3a82['getBoundingClientRect']()['height'];const _0x151ae3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3ee97e=Math['min'](_0x314c9f,_0x151ae3);return{'width':_0x4496fa,'height':_0x3ee97e};}(_0x2475fb);_0x1cfc2f['show']({'id':'finalContentPreview','title':o(_0x103ac7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x103ac7,{'dialogRects':_0x242699}),'onHide':()=>{_0x1d007b['detachFromDom']();},'onShow':()=>{_0x28aac1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4448c8=>{const _0x117b95=this['_standarizeRootsData'](_0x4448c8,_0x28aac1,_0x2475fb);_0x1cfc2f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x117b95,_0x28aac1['config']['get']('trackChanges.preview.renderFunction'));}),_0x1d007b=new _0x2f12e8(_0x103ac7,[_0x1cfc2f['view']]),_0x1d007b['attachToDom'](),_0x1d007b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x28aac1['once']('destroy',()=>{_0x1d007b['detachFromDom']();});const _0x2c564b=_0x1cfc2f['view']['headerView']['class'];_0x1cfc2f['view']['headerView']['class']=_0x2c564b?_0x2c564b+'\x20ck-reset_all':'ck-reset_all',_0x1cfc2f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1cfc2f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5550b4=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x17160b=_0x5550b4['previewMode'],_0x438a5a={};if('$labels'===_0x17160b){for(const _0x2fb43d of _0x5550b4['getMergeFieldsIds']())_0x438a5a[_0x2fb43d]=_0x5550b4['getLabel'](_0x2fb43d)||_0x2fb43d;}else{const _0x38c735='$defaultValues'===_0x17160b?_0x5550b4['getDefaultValues']():_0x5550b4['getDataSetValues'](_0x17160b,!0x0);for(const _0x2e26c4 of Object['entries'](_0x38c735)){const [_0x183de6,_0x5b134f]=_0x2e26c4;_0x438a5a[_0x183de6]=null!==_0x5b134f?_0x5b134f:_0x5550b4['getLabel'](_0x183de6)||_0x183de6;}}return{'mergeFieldsData':_0x438a5a};}['_standarizeRootsData'](_0x3a8b1a,_0x175d35,_0x45535c){let _0x5d9590;if('string'==typeof _0x3a8b1a){const _0x51e02c=_0x175d35['model']['document']['getRootNames']()[0x0];_0x5d9590={[_0x51e02c]:_0x3a8b1a};}else _0x5d9590=_0x3a8b1a;const _0x5263cf=this['_fixMediaEmbeds'](_0x5d9590,_0x175d35),_0x51828d=function(_0x38d5f4,_0x480bd8){for(const [_0x614eb,_0x59d544]of _0x38d5f4)_0x59d544['classes']=_0x480bd8[_0x614eb]['classList']['value']['replace']('ck-focused','');return _0x38d5f4;}(this['_sortRoots'](_0x175d35)['reduce']((_0x14d53c,_0x25a29f)=>(_0x14d53c['push']([_0x25a29f,{'content':_0x5263cf[_0x25a29f],'classes':''}]),_0x14d53c),[]),_0x45535c);return _0x51828d;}['_fixMediaEmbeds'](_0x2b0f44,_0x5396c5){if(!_0x5396c5['plugins']['has']('MediaEmbedEditing'))return _0x2b0f44;const _0x419e87=_0x5396c5['plugins']['get']('MediaEmbedEditing');for(const [_0xbfd55a,_0x2f75c7]of Object['entries'](_0x2b0f44)){const _0x471afb=document['createElement']('div');_0x471afb['innerHTML']=_0x2f75c7,(_0x471afb['querySelectorAll']('figure.media')['forEach'](_0x1fecdc=>{const _0x180659=_0x1fecdc['querySelector']('oembed');if(_0x180659){const _0x4e87a5=_0x180659['getAttribute']('url');if(_0x4e87a5){const _0x2c404b=_0x419e87['registry']['getMediaViewElement'](new _0x59be18(_0x5396c5['editing']['view']['document']),_0x4e87a5,{'elementName':'','renderForEditingView':!0x0}),_0x29ab70=document['createElement']('div');_0x29ab70['classList']['add']('ck-media__wrapper'),_0x2c404b['render'](_0x29ab70,_0x5396c5['editing']['view']['domConverter']),_0x180659['replaceWith'](_0x29ab70);}}}),_0x2b0f44[_0xbfd55a]=_0x471afb['innerHTML']);}return _0x2b0f44;}['_sortRoots'](_0xedbf2b){if(!function(_0x17ec5d){return void 0x0!==_0x17ec5d['getRootsAttributes'];}(_0xedbf2b))return _0xedbf2b['model']['document']['getRootNames']();const _0x651531=[],_0x10d298=new Map();for(const _0x577823 of _0xedbf2b['model']['document']['getRootNames']()){const _0xc3d946=_0xedbf2b['editing']['view']['getDomRoot'](_0x577823)['getClientRects']()['item'](0x0);_0x651531['push'](_0x577823),_0x10d298['set'](_0x577823,_0xc3d946);}return _0x651531['sort']((_0x52d054,_0x3bcf11)=>{const _0x535c68=_0x10d298['get'](_0x52d054),_0x331427=_0x10d298['get'](_0x3bcf11);return _0x535c68['y']-_0x331427['y']||_0x535c68['x']-_0x331427['x'];}),_0x651531;}}class te extends _0x9e54d2{static get['requires'](){return[T,_0x577700];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x558de4){super(_0x558de4),_0x558de4['commands']['add']('previewFinalContent',new re(this['editor'])),_0x558de4['config']['define']('trackChanges.preview.renderFunction',(_0x5ce374,_0x52fd05)=>{for(const _0x4f7a47 of _0x52fd05)_0x5ce374['appendChild'](_0x4f7a47);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x1be8bb,Plugin as _0x6c1265,PendingActions as _0x5eab3f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x23f583,ObservableMixin as _0x14d963,uid as _0x2e4cf8,priorities as _0x5c654c,insertToPriorityArray as _0x355cf6,logWarning as _0x5785ad,getEnvKeystrokeText as _0x555a8d,FocusTracker as _0x59ff65,KeystrokeHandler as _0x533439,Collection as _0x32b111}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4f23dc,IconCancel as _0x2134e4,IconTrackChanges as _0x416010}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1cad9e,View as _0x3ded66,ViewCollection as _0x18791b,FocusCycler as _0x2a6fc3,ViewModel as _0x151401,createDropdown as _0x16e7d6,SplitButtonView as _0x4f2c47,addListToDropdown as _0xe86ee5,MenuBarMenuView as _0x13656b,MenuBarMenuListView as _0x10270c,ListSeparatorView as _0x58c26c,MenuBarMenuListItemView as _0x48bdf3,MenuBarMenuListItemButtonView as _0x2b5be6,BodyCollection as _0x50507a,Dialog as _0x5ef560}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x229cdc,hashObject as _0x43427f,surroundingMarkersDetector as _0x4d10c8,FOCUS_ANNOTATION_KEYSTROKE as _0x33e0bf,AriaDescriptionView as _0x213327,setupThreadKeyboardNavigation as _0x4e2a6f,trimHtml as ti,UserView as _0x45f651,LateFocusButtonView as _0x5288cc,getDateTimeFormatter as _0x12e153,getAllMarkersDomElementsSorted as _0x23738e,sanitizeEditorConfig as _0x16010f}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5498fb,LiveRange as _0x26d742,LivePosition as _0x9e232c,DowncastWriter as _0x318b26}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4305d4,toWidget as _0x4ae5f9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1fe656,set as _0x29a785,isEqual as _0x25c893,unset as _0x2278fa,omit as Vt}from'es-toolkit/compat';import{Delete as _0x5b6aa4,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5d5e4a,ShiftEnter as _0xef751d}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x1be8bb{['_enabledCommands'];constructor(_0x130690,_0x518b40){super(_0x130690),this['_enabledCommands']=_0x518b40,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 _0x41469d of this['editor']['commands']['commands']())_0x41469d['affectsData']&&!this['_enabledCommands']['has'](_0x41469d)&&_0x41469d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5d35b7 of this['editor']['commands']['commands']())_0x5d35b7['affectsData']&&!this['_enabledCommands']['has'](_0x5d35b7)&&_0x5d35b7['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1be8bb{['_suggestions'];constructor(_0x2c955d,_0x5a7cc6){super(_0x2c955d),this['_suggestions']=_0x5a7cc6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2b811d){const _0x4bef5d=this['_suggestions']['get'](_0x2b811d);if(!_0x4bef5d)throw new _0x23f583('track-changes-accept-suggestion-not-found',this);const _0x50e389=_0x4bef5d['getRanges']();this['editor']['model']['canEditAt'](_0x50e389)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4bef5d);}}class R extends _0x1be8bb{['_suggestions'];constructor(_0x5c6427,_0x4d258f){super(_0x5c6427),this['_suggestions']=_0x4d258f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xdc856d){const _0x7baec9=this['_suggestions']['get'](_0xdc856d);if(!_0x7baec9)throw new _0x23f583('track-changes-discard-suggestion-not-found',this);const _0x186375=_0x7baec9['getRanges']();this['editor']['model']['canEditAt'](_0x186375)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x7baec9);}}function ls(_0x20a1ba,_0xd059c){let _0x1f45f5='';return _0x1f45f5+=_0x20a1ba['split']('*')['map']((_0x11b279,_0x1d479f)=>_0x1d479f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x11b279)+'</span>':nn(_0x11b279))['join'](''),_0xd059c&&(_0x1f45f5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xd059c['value']+'\x22\x20title=\x22'+_0xd059c['title']+'\x22></span>'),_0x1f45f5;}function nn(_0x41a702){const _0x5f4cf9=document['createElement']('span');return _0x5f4cf9['innerText']=_0x41a702,_0x5f4cf9['innerHTML'];}function ts(_0x4d1112){return _0x4d1112['sort']((_0x5b0e99,_0x472d50)=>'deletion'==_0x5b0e99['type']&&'deletion'!=_0x472d50['type']?-0x1:'deletion'!=_0x5b0e99['type']&&'deletion'==_0x472d50['type']?0x1:0x0);}function Zt(_0x39aee8,_0x18a6fe){let _0x103e3a,_0x42adb7=0x0;const _0x50728c=[],_0x2bc459=_0x18a6fe['schema'];for(;_0x42adb7<_0x39aee8['length'];){const _0xb27348=_0x39aee8[_0x42adb7],_0x3f2bc0=_0x39aee8[_0x42adb7+0x1];_0x103e3a||(_0x103e3a=_0x18a6fe['createPositionBefore'](_0xb27348)),on(_0x18a6fe,_0xb27348,_0x3f2bc0)||(_0x50728c['push'](_0x18a6fe['createRange'](_0x103e3a,_0x2bc459['isObject'](_0xb27348)?_0x18a6fe['createPositionAfter'](_0xb27348):_0x18a6fe['createPositionAt'](_0xb27348,'end'))),_0x103e3a=null),_0x42adb7++;}return _0x50728c;}function on(_0x2e8462,_0x4f469e,_0x101c1b){if(!_0x101c1b)return!0x1;const _0x2e1253=_0x2e8462['createPositionAfter'](_0x4f469e),_0x41ed5a=_0x2e8462['createPositionBefore'](_0x101c1b);return _0x2e1253['isTouching'](_0x41ed5a);}function rs(_0x4d5e6a,_0x18f7ae,_0x281a3d){for(;_0x281a3d['length'];){const _0x23cd74=_0x281a3d['splice'](0x0,0x64);_0x4d5e6a['change'](()=>{for(const _0x3759c7 of _0x23cd74)_0x3759c7['isInContent']&&_0x18f7ae['execute'](_0x3759c7['id']);});}}class x extends _0x1be8bb{['_command'];['_suggestions'];constructor(_0x489c31,_0x1de3ca,_0x310156){super(_0x489c31),this['_command']=_0x1de3ca,this['_suggestions']=_0x310156,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2945af=Array['from'](this['_suggestions']['values']())['some'](_0x278817=>_0x278817['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2945af;}['execute'](){const _0x2fe5bc=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2e29cc of _0x2fe5bc){const _0x123acd=_0x2e29cc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x123acd))return;}rs(this['editor']['model'],this['_command'],_0x2fe5bc);}}class E extends _0x1be8bb{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11435e,_0x281cc7,_0x1f616f){super(_0x11435e),this['_command']=_0x281cc7,this['_suggestions']=_0x1f616f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3c97cf=this['editor']['model']['document']['selection'],_0x2ad208=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b00ce,_0x1da741){const _0x3a4d85=Array['from'](_0x1b00ce['getRanges']()),_0x160f2e=new Set();for(const _0x1e7310 of _0x1da741)if(_0x1e7310['isInContent']){for(const _0x82d4e0 of _0x3a4d85)for(const _0x42ab7c of _0x1e7310['getRanges']())(_0x82d4e0['isIntersecting'](_0x42ab7c)||_0x1b00ce['isCollapsed']&&!_0x1e7310['isMultiRange']&&_0x1e7310['next']&&_0x42ab7c['end']['isTouching'](_0x82d4e0['start']))&&_0x160f2e['add'](_0x1e7310);}return _0x160f2e;}(_0x3c97cf,_0x2ad208),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2522e8=ts(Array['from'](this['_selectedSuggestions']));for(const _0x519850 of _0x2522e8){const _0x233bb3=_0x519850['getRanges']();if(!this['editor']['model']['canEditAt'](_0x233bb3))return;}rs(this['editor']['model'],this['_command'],_0x2522e8);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x14d963(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x384413,_0x43d614){super(),this['id']=_0x43d614['id'],this['type']=_0x43d614['type'],this['subType']=_0x43d614['subType']||null,this['author']=_0x43d614['author'],this['creator']=_0x43d614['creator']||_0x43d614['author'],this['isExternal']=Boolean(_0x43d614['attributes']&&_0x43d614['attributes']['@external']),this['data']=null,this['_model']=_0x384413,this['_onAccept']=_0x43d614['onAccept'],this['_onDiscard']=_0x43d614['onDiscard'],this['_onAttributesChange']=_0x43d614['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x43d614['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 _0x30c860=this;for(;_0x30c860['previous'];)_0x30c860=_0x30c860['previous'];return _0x30c860;}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'](_0x7bac0c){this['_markerNames']['add'](_0x7bac0c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1759ab=>this['_model']['markers']['get'](_0x1759ab))['filter'](_0x4c16e0=>_0x4c16e0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32d008=>{for(const _0x443645 of this['getMarkers']())_0x32d008['removeMarker'](_0x443645);}),this['_markerNames']['clear']();}['removeMarker'](_0xae77c9){this['_model']['change'](_0x2494aa=>{_0x2494aa['removeMarker'](_0xae77c9);}),this['_markerNames']['delete'](_0xae77c9);}['addRange'](_0x1427e2){const _0x1d359d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1d359d),this['_model']['change'](_0xc6340b=>{_0xc6340b['addMarker'](_0x1d359d,{'range':_0x1427e2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38c501){for(const _0x186e36 of this['getRanges']())if(_0x186e36['isIntersecting'](_0x38c501))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3648f4=>_0x3648f4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x553bde,_0x3e485f)=>[..._0x553bde,..._0x3e485f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4de6e8=this['getRanges']();if(0x1!=_0x4de6e8['length'])return null;const _0x1fbe5f=_0x4de6e8[0x0],_0x439c2b=_0x1fbe5f['start']['nodeAfter'],_0x12d0a7=_0x1fbe5f['end']['nodeBefore'];return _0x439c2b instanceof _0x5498fb?_0x439c2b!=_0x12d0a7?null:_0x439c2b: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 _0x29a456=[];let _0x23637a=this['head'];for(;_0x23637a;)_0x29a456['push'](_0x23637a),_0x23637a=_0x23637a['next'];return _0x29a456;}['setAttribute'](_0x326ccf,_0x6c953e){const _0x2560ea=_0x1fe656(this['attributes']);_0x29a785(_0x2560ea,_0x326ccf,_0x6c953e),_0x25c893(_0x2560ea,this['attributes'])||(this['attributes']=_0x2560ea,this['_onAttributesChange'](_0x2560ea));}['removeAttribute'](_0x5db8d6){const _0xdcb2de=_0x1fe656(this['attributes']);_0x2278fa(_0xdcb2de,_0x5db8d6),_0x25c893(_0xdcb2de,this['attributes'])||(this['attributes']=_0xdcb2de,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 _0x2e4cf8()['substr'](0x1,0x5);}}function c(_0x18e26a,_0x5db877,_0x252980){const _0x1864c8=_0x18e26a['t'],t=_0x18e26a['t'];switch(_0x5db877){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',_0x252980);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x252980);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x252980);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x252980);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x252980);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',_0x252980);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x252980);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',_0x252980);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x252980);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x252980);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x252980);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x252980);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x252980);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x252980);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x252980);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x252980);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x252980);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x252980);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x252980);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x252980);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x252980);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x252980);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x252980);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x252980);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'},_0x252980);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x252980);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x252980);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x252980);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x252980);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x252980);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'},_0x252980);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x252980);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x252980);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x252980);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x252980);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'},_0x252980);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x252980);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'},_0x252980);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'},_0x252980);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x252980);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'},_0x252980);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x252980);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'},_0x252980);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x252980);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x252980);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'},_0x252980);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x252980);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 _0x1864c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x252980);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1864c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x252980);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x252980);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'},_0x252980);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'},_0x252980);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'},_0x252980);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5db877;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x13e721,_0x5949c4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x13e721,this['_locale']=_0x5949c4;}['getDescriptions'](_0x2887fa){const _0x1f0365=[],_0x37dfde=new Set(),_0x3a94ab=new Set();for(let _0x36fe9d=0x0;_0x36fe9d<_0x2887fa['length'];_0x36fe9d++){const _0x165e1e=_0x2887fa[_0x36fe9d];if(!_0x165e1e['isInContent'])continue;const _0x270291=this['_handleCustomCallbackDescription'](_0x165e1e);if(_0x270291){if(null!=_0x165e1e['subType']){if(_0x37dfde['has'](_0x165e1e['subType']))continue;_0x37dfde['add'](_0x165e1e['subType']);}_0x1f0365['push'](_0x270291);}else{if('attribute'!=_0x165e1e['type'])'insertion'!=_0x165e1e['type']&&'deletion'!=_0x165e1e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1f0365,_0x165e1e,_0x2887fa[_0x36fe9d+0x1]);else{const _0x86c1fc=_0x165e1e['data']['key'];if(_0x3a94ab['has'](_0x86c1fc))continue;_0x3a94ab['add'](_0x165e1e['data']['key']),_0x86c1fc==u?this['_handleRenameSuggestionDescription'](_0x1f0365,_0x165e1e):this['_handleAttributeSuggestionDescription'](_0x1f0365,_0x165e1e);}}}return this['_resolveDescriptionItems'](_0x1f0365);}['registerDescriptionCallback'](_0x5ae33d){this['_customCallbacks']['push'](_0x5ae33d);}['registerElementLabel'](_0x15bd59,_0x3a2360,_0x36f51d=_0x5c654c['normal']){'function'==typeof _0x15bd59?_0x355cf6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x15bd59,'label':_0x3a2360,'priority':_0x36f51d}):this['_itemLabels']['set'](_0x15bd59,_0x3a2360);}['registerAttributeLabel'](_0x36d5f2,_0xeb0b33){this['_attributeLabels']['set'](_0x36d5f2,_0xeb0b33);}['getItemLabel'](_0x2fe3ff,_0xad0bdc=0x1){let _0x5c9c8e;for(const _0x56be3b of this['_itemLabelsCallbacks'])if(_0x56be3b['matchingCallback'](_0x2fe3ff)){_0x5c9c8e=_0x56be3b['label'];break;}return _0x5c9c8e||(_0x5c9c8e=this['_itemLabels']['get'](_0x2fe3ff['name'])),_0x5c9c8e?_0x5c9c8e(_0xad0bdc):0x1!==_0xad0bdc?_0xad0bdc+'\x20'+_0x2fe3ff['name']+'s':''+_0x2fe3ff['name'];}['_addDescriptionItems'](_0x2fb85c,_0x130ecd){const _0x2324be=_0x130ecd['getFirstRange']()['getWalker'](),_0xecf7c4='insertion'==_0x130ecd['type']?'add':'remove';for(const _0x59968c of _0x2324be){const _0x73354=_0x59968c['item'],_0x46027b=_0x2fb85c[_0x2fb85c['length']-0x1];if(_0x73354['is']('$textProxy'))_0x46027b&&_0x46027b['type']['indexOf']('Container')>-0x1&&_0x2fb85c['pop'](),_0x46027b&&'text'==_0x46027b['type']?_0x46027b[_0xecf7c4]+=_0x73354['data']:_0x2fb85c['push']({'type':'text','add':'add'==_0xecf7c4?_0x73354['data']:'','remove':'remove'==_0xecf7c4?_0x73354['data']:''});else{if(this['_schema']['isObject'](_0x73354)){const _0x4b08ad=_0x73354;if(_0x46027b&&_0x46027b['type']['indexOf']('Container')>-0x1&&_0x2fb85c['pop'](),'elementEnd'==_0x59968c['type'])continue;_0x46027b&&_0x46027b['type']==_0xecf7c4+'Object'&&_0x46027b['element']['name']==_0x4b08ad['name']?_0x46027b['quantity']++:_0x2fb85c['push']({'type':_0xecf7c4+'Object','element':_0x4b08ad,'quantity':0x1}),_0x2324be['skip'](_0x4aa14b=>!('elementEnd'==_0x4aa14b['type']&&_0x4aa14b['item']==_0x73354));}else{if(this['_schema']['checkChild'](_0x73354,'$text')||_0x73354['is']('element','softBreak')){const _0x218616=_0x73354;if('add'==_0xecf7c4&&'elementStart'==_0x59968c['type']||'remove'==_0xecf7c4&&'elementEnd'==_0x59968c['type'])continue;if(_0x46027b&&-0x1==_0x46027b['type']['indexOf']('Container')){'text'==_0x46027b['type']&&(_0x46027b[_0xecf7c4]+='\x0a');continue;}let _0x119bee;if(_0x119bee='add'==_0xecf7c4?_0x218616['nextSibling']&&!this['_schema']['isObject'](_0x218616['nextSibling'])?_0x218616['nextSibling']:null:_0x218616['previousSibling']&&!this['_schema']['isObject'](_0x218616['previousSibling'])?_0x218616['previousSibling']:null,_0x218616['isEmpty']||_0x119bee&&_0x119bee['isEmpty']){const _0x104413=_0x119bee&&_0x119bee['isEmpty']?_0x119bee:_0x218616;_0x46027b&&_0x46027b['type']==_0xecf7c4+'EmptyContainer'&&_0x46027b['element']['name']==_0x104413['name']?_0x46027b['quantity']++:_0x2fb85c['push']({'type':_0xecf7c4+'EmptyContainer','element':_0x104413,'quantity':0x1});}else _0x2fb85c['push']({'type':_0xecf7c4+'Container','element':_0x218616});}}}}}['_resolveDescriptionItems'](_0x2f6960){const _0x3b0367=this['_locale'],_0x4519b3=[],_0x3f8170=[],_0x536ea3=[];for(const _0x37809a of _0x2f6960)switch(_0x37809a['type']){case'text':if(_0x37809a['add']=_0x37809a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37809a['remove']=_0x37809a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37809a['add']&&''!=_0x37809a['remove']){_0x4519b3['push']({'type':'replace','content':c(_0x3b0367,'REPLACE_TEXT',['\x22'+_0x37809a['remove']+'\x22','\x22'+_0x37809a['add']+'\x22'])});continue;}if(null!=_0x37809a['add']['match'](/^ +$/)){_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Insert:*\x20%0',c(_0x3b0367,'ELEMENT_SPACE',_0x37809a['add']['length']))});continue;}if(null!=_0x37809a['remove']['match'](/^ +$/)){_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Remove:*\x20%0',c(_0x3b0367,'ELEMENT_SPACE',_0x37809a['remove']['length']))});continue;}if(''!=_0x37809a['add']){_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Insert:*\x20%0','\x22'+_0x37809a['add']+'\x22')});continue;}_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Remove:*\x20%0','\x22'+_0x37809a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Insert:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Remove:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'addContainer':_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Split:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'removeContainer':_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Merge:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'addFormat':_0x3f8170['push'](_0x37809a['key']);continue;case'removeFormat':_0x536ea3['push'](_0x37809a['key']);continue;default:_0x4519b3['push'](_0x37809a);}if(_0x3f8170['length']){const _0x3122c0=_0x3f8170['map'](_0x37365f=>this['_attributeLabels']['has'](_0x37365f)?this['_attributeLabels']['get'](_0x37365f):_0x37365f)['join'](',\x20');_0x4519b3['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3122c0)});}if(_0x536ea3['length']){const _0x1c8aa4=_0x536ea3['map'](_0x4198f9=>this['_attributeLabels']['has'](_0x4198f9)?this['_attributeLabels']['get'](_0x4198f9):_0x4198f9)['join'](',\x20');_0x4519b3['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c8aa4)});}return _0x4519b3;}['_handleCustomCallbackDescription'](_0x16f9a6){for(const _0x5c3c40 of this['_customCallbacks']){const _0x545eab=_0x5c3c40(_0x16f9a6);if(_0x545eab&&'type'in _0x545eab)return _0x545eab;}}['_handleAttributeSuggestionDescription'](_0x11adbc,_0x50a65a){const _0x193bc3=_0x50a65a['data'],_0xfeac1c=void 0x0===_0x193bc3['newValue']?'removeFormat':'addFormat';_0x11adbc['push']({'type':_0xfeac1c,'key':_0x193bc3['key']});}['_handleRenameSuggestionDescription'](_0x3adda8,_0xb09616){_0x3adda8['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb09616['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x16bc45,_0x4c0f00,_0x2c8951){if(this['_addDescriptionItems'](_0x16bc45,_0x4c0f00),_0x2c8951&&_0x2c8951['getFirstRange']()&&!_0x4c0f00['getFirstRange']()['end']['isEqual'](_0x2c8951['getFirstRange']()['start'])){const _0x2b6309=_0x16bc45[_0x16bc45['length']-0x1],_0x412f33='insertion'==_0x4c0f00['type']?'add':'remove';_0x2b6309&&'text'==_0x2b6309['type']&&(_0x2b6309[_0x412f33]+='\x0a');}}}class U extends _0x6c1265{['afterInit'](){const _0x61103c=this['editor'],_0xb9b5f7=_0x61103c['plugins']['get']('TrackChangesEditing');_0x61103c['commands']['get']('showAIAssistant')&&_0xb9b5f7['enableCommand']('showAIAssistant');}}class V extends _0x6c1265{['afterInit'](){const _0x37765f=this['editor'],_0x246011=_0x37765f['locale'];if(!_0x37765f['plugins']['has']('AlignmentEditing'))return;const _0x3794bc=_0x37765f['plugins']['get']('TrackChangesEditing');_0x3794bc['enableDefaultAttributesIntegration']('alignment'),_0x3794bc['registerBlockAttribute']('alignment'),_0x3794bc['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x246011,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5923e5=this['editor'],_0x5571c2=_0x5923e5['locale'];_0x5923e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5e26=>{if('formatBlock'!=_0x4e5e26['type'])return;const {data:_0x5d5bfc}=_0x4e5e26;if(_0x5d5bfc&&'alignment'==_0x5d5bfc['commandName']){const _0x576ecb=_0x5d5bfc['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5571c2,'*Format:*\x20%0',function(_0x4b72cd){switch(_0x4b72cd){case'left':return c(_0x5571c2,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5571c2,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5571c2,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5571c2,'FORMAT_JUSTIFY_TEXT');}}(_0x576ecb))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x6c1265{['afterInit'](){const _0x36155e=this['editor'],_0x28393f=_0x36155e['plugins']['get']('TrackChangesEditing'),_0xab05e1=_0x36155e['locale'];for(const _0x1dd2ee of Yt){if(!_0x36155e['plugins']['has'](_0x1dd2ee))continue;const _0x174932=_0x1dd2ee['slice'](0x0,-0x7)['toLowerCase'](),_0x3049e7='FORMAT_'+_0x174932['toUpperCase']();_0x28393f['enableDefaultAttributesIntegration'](_0x174932),_0x28393f['registerInlineAttribute'](_0x174932),_0x28393f['descriptionFactory']['registerAttributeLabel'](_0x174932,c(_0xab05e1,_0x3049e7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d3300=this['editor'],_0x31e73a=_0x4d3300['locale'],_0x4e1b76=_0x4d3300['plugins']['get']('TrackChangesEditing');function _0xa8b90(_0x9a206f,_0x2844c7){_0x4e1b76['descriptionFactory']['registerDescriptionCallback'](_0x52bd3f=>{if('formatInline'!=_0x52bd3f['type'])return;const {data:_0x35ec91}=_0x52bd3f;return _0x35ec91&&_0x35ec91['commandName']===_0x9a206f?_0x35ec91['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x31e73a,'*Format:*\x20%0',_0x2844c7)}:{'type':'format','content':c(_0x31e73a,'*Remove\x20format:*\x20%0',_0x2844c7)}:void 0x0;});}_0xa8b90('bold',c(_0x31e73a,'FORMAT_BOLD')),_0xa8b90('italic',c(_0x31e73a,'FORMAT_ITALIC')),_0xa8b90('underline',c(_0x31e73a,'FORMAT_UNDERLINE')),_0xa8b90('code',c(_0x31e73a,'FORMAT_CODE')),_0xa8b90('strikethrough',c(_0x31e73a,'FORMAT_STRIKETHROUGH')),_0xa8b90('subscript',c(_0x31e73a,'FORMAT_SUBSCRIPT')),_0xa8b90('superscript',c(_0x31e73a,'FORMAT_SUPERSCRIPT'));}}class G extends _0x6c1265{['afterInit'](){const _0x1d4d43=this['editor'],_0x24c76c=_0x1d4d43['locale'];if(!_0x1d4d43['plugins']['has']('BlockQuoteEditing'))return;const _0x567d57=_0x1d4d43['plugins']['get']('TrackChangesEditing'),_0x1755d2=this['editor']['commands']['get']('blockQuote');_0x567d57['enableCommand']('blockQuote',(_0x778182,_0x44bbcd={})=>{const _0x5bcfd9=this['editor']['model']['document']['selection'],_0x18009d=_0x44bbcd&&void 0x0!==_0x44bbcd['forceValue']?_0x44bbcd['forceValue']:!_0x1755d2['value'];let _0x24778d=[];if(_0x18009d){const _0x20c011=Array['from'](_0x5bcfd9['getSelectedBlocks']())['filter'](_0x23e4d0=>to(_0x23e4d0)||function(_0x5ad965,_0x2fe183){const _0x27d3cd=_0x2fe183['checkChild'](_0x5ad965['parent'],'blockQuote'),_0x57d5d6=_0x2fe183['checkChild'](['$root','blockQuote'],_0x5ad965);return _0x27d3cd&&_0x57d5d6;}(_0x23e4d0,this['editor']['model']['schema']));_0x24778d=Zt(_0x20c011,_0x1d4d43['model']);}else{const _0x14a664=Array['from'](_0x5bcfd9['getSelectedBlocks']())['filter'](_0x239c5e=>to(_0x239c5e));_0x24778d=Zt(_0x14a664,_0x1d4d43['model']);}_0x1d4d43['model']['change'](()=>{for(const _0x2a1a76 of _0x24778d)_0x567d57['markBlockFormat'](_0x2a1a76,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18009d}]});});}),_0x567d57['descriptionFactory']['registerDescriptionCallback'](_0x51d2ef=>{const {data:_0x25ffda}=_0x51d2ef;if(_0x25ffda&&'blockQuote'==_0x25ffda['commandName']){const _0x51c432=c(_0x24c76c,'ELEMENT_BLOCK_QUOTE');return _0x25ffda['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x24c76c,'*Set\x20format:*\x20%0',_0x51c432)}:{'type':'format','content':c(_0x24c76c,'*Remove\x20format:*\x20%0',_0x51c432)};}});}}function to(_0x5a4239){return'blockQuote'==_0x5a4239['parent']['name'];}class L extends _0x6c1265{['afterInit'](){const _0x32629a=this['editor'],_0x2ef25e=_0x32629a['locale'],_0x5a8c5d=_0x32629a['plugins']['get']('TrackChangesEditing');_0x32629a['plugins']['has']('BookmarkEditing')&&(_0x5a8c5d['enableCommand']('insertBookmark'),_0x5a8c5d['enableDefaultAttributesIntegration']('updateBookmark'),_0x5a8c5d['registerBlockAttribute']('bookmarkId'),_0x5a8c5d['descriptionFactory']['registerDescriptionCallback'](_0x303a0f=>{if('insertion'!=_0x303a0f['type']&&'deletion'!=_0x303a0f['type']&&'attribute'!=_0x303a0f['type'])return;const _0x15d945=_0x303a0f['getContainedElement']();if(null==_0x15d945)return;if(!_0x15d945['is']('element','bookmark'))return;const _0x520a6b=_0x15d945['getAttribute']('bookmarkId');if('insertion'==_0x303a0f['type'])return{'type':'insertion','content':c(_0x2ef25e,'*Insert:*\x20%0','\x22'+_0x520a6b+'\x22\x20'+c(_0x2ef25e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x303a0f['type'])return{'type':'deletion','content':c(_0x2ef25e,'*Remove:*\x20%0','\x22'+_0x520a6b+'\x22\x20'+c(_0x2ef25e,'ELEMENT_BOOKMARK'))};const {data:_0x413584}=_0x303a0f;if(!_0x413584||'bookmarkId'!=_0x413584['key'])return;return{'type':'format','content':c(_0x2ef25e,'*Set\x20bookmark:*\x20%0','\x22'+_0x413584['newValue']+'\x22')};}));}}class J extends _0x6c1265{['afterInit'](){const _0xb82874=this['editor'];_0xb82874['plugins']['has']('CaseChange')&&(_0xb82874['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xb82874['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xb82874['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x6c1265{['afterInit'](){const _0x19d57a=this['editor'];_0x19d57a['commands']['get']('ckbox')&&_0x19d57a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x6c1265{['afterInit'](){const _0x6790b8=this['editor'];if(!_0x6790b8['plugins']['has']('CodeBlock'))return;const _0x29a0c6=_0x6790b8['plugins']['get']('TrackChangesEditing'),_0x39f35a=_0x6790b8['locale'],_0x505b55=_0x6790b8['config']['get']('codeBlock')['languages'],_0xaa7967=_0x6790b8['commands']['get']('codeBlock');_0x29a0c6['enableCommand']('indentCodeBlock'),_0x29a0c6['enableCommand']('outdentCodeBlock'),_0x29a0c6['enableCommand']('codeBlock',(_0x5502bd,_0x25d80b={})=>{const _0x4ff589=_0x6790b8['model'],_0x2a1892=_0x6790b8['model']['document']['selection'],_0x398334=_0x25d80b&&void 0x0!==_0x25d80b['forceValue']?_0x25d80b['forceValue']:!_0xaa7967['value'];let _0x15657d;_0x25d80b['language']||(_0x25d80b['language']=_0x505b55[0x0]['language']),_0x15657d=_0x398334?Array['from'](_0x2a1892['getSelectedBlocks']())['filter'](_0x10d3d4=>oo(_0x10d3d4)||function(_0x271e59,_0x3e3de5){if(_0x271e59['is']('rootElement')||_0x3e3de5['isLimit'](_0x271e59))return!0x1;return _0x3e3de5['checkChild'](_0x271e59['parent'],'codeBlock');}(_0x10d3d4,_0x4ff589['schema'])):Array['from'](_0x2a1892['getSelectedBlocks']())['filter'](_0x370fe7=>oo(_0x370fe7));const _0x41d432=Zt(_0x15657d,_0x4ff589);_0x4ff589['change'](()=>{for(const _0x11b368 of _0x41d432)_0x29a0c6['markBlockFormat'](_0x11b368,{'commandName':'codeBlock','commandParams':[{..._0x25d80b,'forceValue':_0x398334}],'formatGroupId':'blockName'});});}),(_0x29a0c6['descriptionFactory']['registerElementLabel']('codeBlock',_0x42cc27=>c(_0x39f35a,'ELEMENT_CODE_BLOCK',_0x42cc27)),_0x29a0c6['descriptionFactory']['registerDescriptionCallback'](_0xcbdbf6=>{if('formatBlock'!=_0xcbdbf6['type'])return;const _0x16d703=_0x39f35a['t'],{data:_0x14c10c}=_0xcbdbf6;if(!_0x14c10c||'codeBlock'!=_0x14c10c['commandName'])return;const _0x1b8c37=_0x14c10c['commandParams'][0x0]['language'],_0x33c40d=_0x16d703(_0x505b55['find'](_0x20055d=>_0x20055d['language']===_0x1b8c37)['label'])['toLowerCase']();return _0x14c10c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x39f35a,'*Set\x20format:*\x20%0',c(_0x39f35a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33c40d+')')}:{'type':'format','content':c(_0x39f35a,'*Remove\x20format:*\x20%0',c(_0x39f35a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x393186){return'codeBlock'==_0x393186['name'];}class q extends _0x6c1265{['afterInit'](){const _0x19ac0d=this['editor'];if(!_0x19ac0d['plugins']['has']('CommentsEditing'))return;_0x19ac0d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x59fd96,_0x4954ac,_0x5d3542){const _0xa28f6c=[];for(const _0x46ff2d of _0x4954ac['getItems']())_0x46ff2d['hasAttribute'](_0x59fd96)&&_0xa28f6c['push'](_0x5d3542['createRangeOn'](_0x46ff2d));return _0xa28f6c;}function De(_0x251fe2,_0x39ec10,{showActiveMarker:_0x3966f3=!0x0}={}){const _0x22539d=_0x251fe2['plugins']['get']('TrackChangesEditing');return(_0x31a6ea,_0x476f4d,_0x5ba5bc)=>{if(!_0x5ba5bc['consumable']['test'](_0x476f4d['markerRange'],_0x31a6ea['name']))return;const _0x42107e=_0x476f4d['markerRange']['getWalker'](),_0x21a1ff=_0x476f4d['markerRange']['start'],_0x1e3c3a=_0x251fe2['model']['schema'];let _0x8340fa=null,_0xe13414=null,_0x3f3dec=!0x1,_0x3fbc75=!0x1;for(const _0x289fba of _0x42107e){const _0x39b4ee=_0x289fba['item'];_0x3f3dec=_0x3f3dec||_0x1e3c3a['isContent'](_0x39b4ee);const _0x523e26=_0x5ba5bc['mapper']['toViewElement'](_0x39b4ee);if(_0x523e26&&_0x523e26['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x289fba['type']&&(_0x1e3c3a['isBlock'](_0x39b4ee)&&!_0x1e3c3a['isLimit'](_0x39b4ee)&&(_0x39b4ee['nextSibling']||_0x21a1ff['isAtEnd']?_0x8340fa&&_0x8340fa['parent']==_0x39b4ee||(_0x8340fa=_0x39b4ee,_0x23efad(_0x289fba['previousPosition']),_0x3fbc75=!0x0):_0xe13414=_0xe13414||_0x289fba['previousPosition']));}function _0x23efad(_0x28c6ae){const {authorId:_0x1b0fc3}=_0x22539d['_splitMarkerName'](_0x476f4d['markerName']),_0x5c7ab7=_0x5ba5bc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39ec10,'data-author-id':_0x1b0fc3}),_0x2f309b=_0x5ba5bc['mapper']['toViewPosition'](_0x28c6ae);_0x3966f3&&_0x22539d['activeMarkers']['includes'](_0x476f4d['markerName'])&&_0x5ba5bc['writer']['addClass']('ck-suggestion-marker--active',_0x5c7ab7),_0x5ba5bc['writer']['insert'](_0x2f309b,_0x5c7ab7),_0x5ba5bc['mapper']['bindElementToMarker'](_0x5c7ab7,_0x476f4d['markerName']);}_0x3f3dec||_0x3fbc75||!_0xe13414||_0x23efad(_0xe13414);};}class z extends _0x6c1265{static get['requires'](){return[_0x5b6aa4];}['init'](){const _0x20fd77=this['editor'],_0x80c7cd=_0x20fd77['plugins']['get']('TrackChangesEditing');_0x80c7cd['enableCommand']('delete');const _0x4fb94f=_0x20fd77['commands']['get']('deleteForward');_0x80c7cd['enableCommand']('deleteForward',(_0x4bf93d,_0x445943={})=>{const _0x3b19bf=_0x20fd77['model']['createSelection'](_0x20fd77['model']['document']['selection']);_0x3b19bf['isCollapsed']&&_0x20fd77['model']['modifySelection'](_0x3b19bf,{'direction':'forward','unit':_0x445943['unit']});const _0x445c18=_0x3b19bf['getFirstRange'](),_0x1617c1=_0x26d742['fromRange'](_0x445c18);let _0x27004f;_0x4bf93d(_0x445943),_0x27004f='$graveyard'==_0x1617c1['root']['rootName']?_0x20fd77['model']['createRange'](_0x445c18['start']):_0x20fd77['model']['createRange'](_0x1617c1['start'],_0x1617c1['end']),_0x1617c1['detach'](),_0x20fd77['model']['enqueueChange'](_0x4fb94f['buffer']['batch'],_0x2e5eb0=>{_0x4fb94f['buffer']['lock'](),_0x2e5eb0['setSelection'](_0x2e5eb0['createRange'](_0x27004f['end'])),_0x4fb94f['buffer']['unlock']();});}),_0x20fd77['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x20fd77,'merge'),{'priority':'high'}),_0x20fd77['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x19fdb5,_0x51f16a,_0x58c245)=>{_0x58c245['options']['showSuggestionHighlights']&&De(_0x20fd77,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x19fdb5,_0x51f16a,_0x58c245);},{'priority':'high'}),_0x20fd77['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57b65c,_0x54b801,_0x2915ae)=>{const _0x539da7=_0x2915ae['mapper']['markerNameToElements'](_0x54b801['markerName']);if(_0x539da7){for(const _0x1a655f of _0x539da7)_0x1a655f['is']('uiElement')&&(_0x2915ae['mapper']['unbindElementFromMarkerName'](_0x1a655f,_0x54b801['markerName']),_0x2915ae['writer']['remove'](_0x1a655f));}},{'priority':'high'});}}class W extends _0x6c1265{['afterInit'](){const _0x58b526=this['editor'];if(!_0x58b526['plugins']['has']('ListEditing'))return;const _0x5ce235=_0x58b526['locale'],_0x2f6fb0=_0x58b526['plugins']['get']('TrackChangesEditing'),_0x124727=_0x58b526['plugins']['has']('TodoListEditing'),_0x466c97=!!_0x58b526['config']['get']('list.multiBlock');function _0x529b4d(_0x265820){return{'type':'format','content':''+c(_0x5ce235,'*Set\x20format:*\x20%0',_0x265820)};}function _0x5db116(_0x1959ee){return{'type':'format','content':''+c(_0x5ce235,'*Remove\x20format:*\x20%0',_0x1959ee)};}_0x2f6fb0['enableDefaultAttributesIntegration']('numberedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('bulletedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('customNumberedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('customBulletedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('indentList'),_0x2f6fb0['enableDefaultAttributesIntegration']('outdentList'),_0x2f6fb0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2f6fb0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f6fb0['registerBlockAttribute']('listItemId'),_0x2f6fb0['registerBlockAttribute']('listType'),_0x2f6fb0['registerBlockAttribute']('listIndent'),_0x466c97&&(_0x2f6fb0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2f6fb0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x124727&&(_0x2f6fb0['enableDefaultAttributesIntegration']('todoList'),_0x2f6fb0['enableDefaultAttributesIntegration']('checkTodoList'),_0x2f6fb0['registerBlockAttribute']('todoListChecked'),_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x5cddba=>{const {data:_0x546bc4}=_0x5cddba;if(_0x546bc4&&'todoListChecked'==_0x546bc4['key'])return{'type':'format','content':_0x546bc4['newValue']?c(_0x5ce235,'*Check\x20item*'):c(_0x5ce235,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1fe74d=>{if(_0x1fe74d['batch']['isUndo'])return!0x1;let _0x45a63e=!0x1;const _0x1503c8=_0x2f6fb0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cfe7b=>'todoListChecked'===_0x2f6fb0['_getAttributeKey'](_0x4cfe7b));for(const _0x712d75 of _0x1503c8){'todo'!=_0x712d75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2f6fb0['_findSuggestions'](_0x712d75['getFirstRange'](),'attribute')['find'](_0x3abada=>'listType'===_0x2f6fb0['_getAttributeKey'](_0x3abada['suggestion']))||(_0x1fe74d['removeMarker'](_0x712d75['getFirstMarker']()),_0x45a63e=!0x0));}return _0x45a63e;})),_0x2f6fb0['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5ce235,'FORMAT_INDENT'));const _0x2e644e={'type':'format','content':''};_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x5a08b4=>{const {data:_0x364194}=_0x5a08b4;if(!_0x364194||'listType'!=_0x364194['key'])return;let _0x420f7f=_0x5a08b4['head'];for(;_0x420f7f;){if(_0x420f7f['data']&&(('listStyle'==_0x420f7f['data']['key']||'listMarkerStyle'==_0x420f7f['data']['key'])&&(_0x420f7f['data']['newValue']&&'default'!=_0x420f7f['data']['newValue']||'default'!=_0x420f7f['data']['oldValue']&&!_0x364194['newValue'])||!_0x466c97&&_0x420f7f['data']['key']==u))return _0x2e644e;_0x420f7f=_0x420f7f['next'];}if(null==_0x364194['newValue'])switch(_0x364194['oldValue']){case'bulleted':return _0x5db116(c(_0x5ce235,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5db116(c(_0x5ce235,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5db116(c(_0x5ce235,'ELEMENT_TODO_LIST'));}switch(_0x364194['newValue']){case'bulleted':return _0x529b4d(c(_0x5ce235,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x529b4d(c(_0x5ce235,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x529b4d(c(_0x5ce235,'ELEMENT_TODO_LIST'));}}),_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x985ffb=>{const {data:_0xd9055e}=_0x985ffb;if(_0xd9055e&&'listIndent'==_0xd9055e['key'])return null==_0xd9055e['newValue']||null==_0xd9055e['oldValue']&&0x0==_0xd9055e['newValue']?_0x2e644e:void 0x0;}),_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x306b63=>{if('attribute'!=_0x306b63['type'])return;const {data:_0x5cf449}=_0x306b63;if(!_0x5cf449||'listItemId'!=_0x5cf449['key'])return;const _0x2c3c2c=Te(_0x306b63);return'newValue'==_0x2c3c2c?{'type':'format','content':c(_0x5ce235,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2c3c2c?{'type':'format','content':c(_0x5ce235,'*Split:*\x20list\x20item')}:_0x2e644e;}),_0x58b526['model']['document']['registerPostFixer'](_0x576d37=>this['listItemIdFixer'](_0x576d37)),_0x58b526['model']['document']['registerPostFixer'](_0x368204=>this['noTrackChangesFixer'](_0x368204)),_0x58b526['model']['document']['on']('change:data',(_0x299353,_0x378e28)=>{if(_0x378e28['isUndo']||!_0x378e28['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x48fa05){if(_0x48fa05['batch']['isUndo']||!_0x48fa05['batch']['isLocal'])return!0x1;let _0xde099e=!0x1;const _0x4c7f81=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2076b4=>_0x2076b4['data']&&'listItemId'==_0x2076b4['data']['key'])['filter'](_0x461d0b=>_0x461d0b['data']['newValue']&&_0x461d0b['data']['oldValue']);for(const _0x32e545 of _0x4c7f81)Te(_0x32e545)||(_0x48fa05['removeMarker'](_0x32e545['getFirstMarker']()),_0xde099e=!0x0);return _0xde099e;}['noTrackChangesFixer'](_0x39d419){if(_0x39d419['batch']['isUndo']||!_0x39d419['batch']['isLocal'])return!0x1;const _0x42189d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x42189d['trackChangesCommand']['value'])return!0x1;let _0x76c5cf=!0x1;const _0x1693e8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1da195=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2f4576=>'attribute'==_0x2f4576['type'])['filter'](_0x4c2d0a=>_0x1693e8['includes'](_0x4c2d0a['attributeKey']));if(0x0==_0x1da195['length'])return _0x76c5cf;for(const _0xfd022 of _0x1da195){const _0x45e531=_0x42189d['_findSuggestions'](_0xfd022['range'],'attribute')['filter'](_0x45e9f8=>!_0x45e9f8['meta']['isNextTo'])['map'](_0x4fd044=>_0x4fd044['suggestion'])['filter'](_0x335b6c=>{const _0x11c0c0=_0x42189d['_getAttributeKey'](_0x335b6c);return _0x1693e8['includes'](_0x11c0c0);});if(_0x45e531['length']){for(const _0x31e148 of _0x45e531)_0x39d419['removeMarker'](_0x31e148['getFirstMarker']());_0x76c5cf=!0x0;}}return _0x76c5cf;}['assureChains'](){const _0x4cf4fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x134c91=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e7fca;const _0x5bef40=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e238d=>{if(_0x2e238d['data']['oldRange']||!_0x2e238d['data']['newRange'])return null;if(!_0x2e238d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5368d8}=_0x4cf4fb['_splitMarkerName'](_0x2e238d['name']);if(!_0x4cf4fb['hasSuggestion'](_0x5368d8))return null;const _0x195a64=_0x4cf4fb['getSuggestion'](_0x5368d8);return _0x134c91['includes'](_0x195a64['data']['key']);})['map'](_0xe39465=>{const {id:_0x1d7438}=_0x4cf4fb['_splitMarkerName'](_0xe39465['name']),_0x118c53=_0x4cf4fb['getSuggestion'](_0x1d7438);return _0x4e7fca=_0x118c53['attributes']['groupId'],_0x118c53['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5bef40['size'])return;const _0x19e540=_0x4cf4fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x595b8f=>'attribute'==_0x595b8f['type']&&_0x595b8f['data']&&_0x134c91['includes'](_0x595b8f['data']['key'])&&_0x595b8f['attributes']['groupId']!=_0x4e7fca)['map'](_0x49197d=>({'listItem':_0x49197d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x49197d['attributes']['groupId']})),_0xb22009=new Set();for(const {groupId:_0x175ee4,listItem:_0x36fa1b}of _0x19e540)_0x5bef40['has'](_0x36fa1b)&&_0xb22009['add'](_0x175ee4);for(const _0x55d53e of _0x4cf4fb['getSuggestions']())_0xb22009['has'](_0x55d53e['attributes']['groupId'])&&_0x55d53e['setAttribute']('groupId',_0x4e7fca);}['_supportLegacySuggestions'](){const _0x1fc979=this['editor'],_0x54ab3f=_0x1fc979['locale'],_0x43bf17=_0x1fc979['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x43bf17['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5d92e3,_0x1bc6eb){const _0x5f0fe7=[];for(let _0x3326c1 of _0x5d92e3)_0x3326c1['start']['nodeAfter']===_0x3326c1['end']['parent']&&(_0x3326c1=_0x1fc979['model']['createRange'](_0x1fc979['model']['createPositionAt'](_0x3326c1['start']['nodeAfter'],0x0))),_0x5f0fe7['push'](_0x3326c1);_0x1fc979['model']['change'](_0x56e783=>{const _0x7efb0f=_0x1fc979['model']['document']['selection'],_0x347985=Array['from'](_0x7efb0f['getRanges']())['map'](_0x401178=>_0x26d742['fromRange'](_0x401178));_0x56e783['setSelection'](_0x5f0fe7),_0x1fc979['commands']['get'](_0x1bc6eb['commandName'])['refresh'](),_0x1bc6eb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1fc979['execute'](_0x1bc6eb['commandName'],..._0x1bc6eb['commandParams']),_0x56e783['setSelection'](_0x347985);for(const _0x4134ad of _0x347985)_0x4134ad['detach']();});}),_0x43bf17['descriptionFactory']['registerElementLabel'](function(_0x10152f){const _0x55ecf1=!_0x1fc979['model']['schema']['isObject'](_0x10152f),_0x4c923d=_0x10152f['previousSibling'],_0x85f4e7=_0x10152f['nextSibling'],_0x54f875=_0x10152f['getAttribute']('listItemId'),_0x2312f6=!_0x4c923d||_0x4c923d['getAttribute']('listItemId')!==_0x54f875,_0x296321=!_0x85f4e7||_0x85f4e7['getAttribute']('listItemId')!==_0x54f875;return _0x55ecf1&&Boolean(_0x54f875)&&_0x2312f6&&_0x296321;},_0x59b655=>c(_0x54ab3f,'ELEMENT_LIST_ITEM',_0x59b655));}['_registerLegacyDescription'](){const _0x2db3c1=this['editor'],_0x33ee4d=_0x2db3c1['locale'];function _0x3b2901(_0x5f26b6){const _0x2a2731=_0x2db3c1['commands']['get']('bulletedList')['value'],_0xe4398e=_0x2db3c1['commands']['get']('numberedList')['value'];return'numberedList'===_0x5f26b6?_0x2a2731:_0xe4398e;}_0x2db3c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x34e3cd){if('formatBlock'!=_0x34e3cd['type'])return;const {data:_0x2550ac}=_0x34e3cd;if(!_0x2550ac)return;let _0xb83324,_0x2f19a9,_0x2fb955,_0x587f26;switch(_0x2550ac['commandName']){case'bulletedList':_0x2fb955=_0x2550ac['commandParams'][0x0]['forceValue'],_0x587f26=_0x3b2901(_0x2550ac['commandName']),_0xb83324=_0x2fb955?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x587f26&&_0x2db3c1['config']['get']('list.multiBlock')||(_0xb83324='*Change\x20to:*\x20%0'),_0x2f19a9={'type':'format','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2fb955=_0x2550ac['commandParams'][0x0]['forceValue'],_0x587f26=_0x3b2901(_0x2550ac['commandName']),_0xb83324=_0x2fb955?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x587f26&&_0x2db3c1['config']['get']('list.multiBlock')||(_0xb83324='*Change\x20to:*\x20%0'),_0x2f19a9={'type':'format','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xb83324='*Indent:*\x20%0',_0x2f19a9={'type':'format','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xb83324=function(_0x30e5fb){const _0x10bbe0=_0x30e5fb['getFirstRange']();let _0x316b0e=_0x10bbe0['start']['nodeAfter'];for(;_0x316b0e&&_0x10bbe0['containsItem'](_0x316b0e);){if(_0x316b0e['getAttribute']('listIndent')>0x0)return!0x1;_0x316b0e=_0x316b0e['nextSibling'];}return!0x0;}(_0x34e3cd)?c(_0x33ee4d,'*Format:*\x20remove\x20from\x20%0',c(_0x33ee4d,function(_0x80c4eb){return'ELEMENT_'+_0x80c4eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x34e3cd))):c(_0x33ee4d,'*Outdent:*\x20%0',c(_0x33ee4d,'ELEMENT_LIST_ITEM')),_0x2f19a9={'type':'format','content':_0xb83324};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2550ac['multipleBlocks']&&(_0xb83324='*Merge:*\x20%0',_0x2f19a9={'type':'deletion','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_LIST_ITEM'))});}return _0x2f19a9;});}}function Te(_0x24510b){let _0x80b9f9=_0x24510b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x80b9f9;){const _0x4929f8=_0x80b9f9['getAttribute']('listItemId');if(!_0x4929f8)return!0x1;if(_0x4929f8==_0x24510b['data']['newValue'])return'newValue';if(_0x4929f8==_0x24510b['data']['oldValue'])return'oldValue';_0x80b9f9=_0x80b9f9['previousSibling'];}return!0x1;}class Se extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x510241=this['editor']['config']['get']('list.properties'),_0x28773a=this['editor']['plugins']['get']('TrackChangesEditing');_0x510241['styles']&&(_0x28773a['enableDefaultAttributesIntegration']('listStyle'),_0x28773a['registerBlockAttribute']('listStyle')),_0x510241['reversed']&&(_0x28773a['enableDefaultAttributesIntegration']('listReversed'),_0x28773a['registerBlockAttribute']('listReversed')),_0x510241['startIndex']&&(_0x28773a['enableDefaultAttributesIntegration']('listStart'),_0x28773a['registerBlockAttribute']('listStart'));const _0x2b66e7={'type':'format','content':''};_0x28773a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x260e15=this['editor']['locale'];_0x28773a['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x260e15,'FORMAT_LIST_REVERSED')),_0x28773a['descriptionFactory']['registerDescriptionCallback'](_0x512e27=>{const {data:_0x4d5c0e}=_0x512e27;if(_0x4d5c0e&&'listReversed'==_0x4d5c0e['key'])return null==_0x4d5c0e['newValue']||0x0==_0x4d5c0e['newValue']&&null==_0x4d5c0e['oldValue']?_0x2b66e7:void 0x0;}),_0x28773a['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x260e15,'FORMAT_LIST_START')),_0x28773a['descriptionFactory']['registerDescriptionCallback'](_0xe26b67=>{const {data:_0x1b15ff}=_0xe26b67;if(_0x1b15ff&&'listStart'==_0x1b15ff['key'])return null==_0x1b15ff['newValue']||0x1==_0x1b15ff['newValue']&&null==_0x1b15ff['oldValue']?_0x2b66e7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b467e=>{if(_0x1b467e['batch']['isUndo'])return!0x1;let _0x32edcb=!0x1;const _0x2d7616=_0x28773a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bdc22=>{const _0x13c30d=_0x28773a['_getAttributeKey'](_0x4bdc22);return'listStart'==_0x13c30d||'listReversed'==_0x13c30d;});for(const _0x3f7969 of _0x2d7616){const _0x4e3476=_0x3f7969['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e3476||'customNumbered'==_0x4e3476)continue;_0x28773a['_findSuggestions'](_0x3f7969['getFirstRange'](),'attribute')['find'](_0xb2174=>'listType'==_0x28773a['_getAttributeKey'](_0xb2174['suggestion']))||(_0x1b467e['removeMarker'](_0x3f7969['getFirstMarker']()),_0x32edcb=!0x0);}return _0x32edcb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e2dde){const _0x19b180=this['editor']['locale'],{data:_0x18d057}=_0x5e2dde,_0x53d417={'type':'format','content':''};if(!_0x18d057||'listStyle'!=_0x18d057['key'])return;if(!_0x18d057['oldValue'])return'default'==_0x18d057['newValue']?_0x53d417:{'type':'format','content':''+c(_0x19b180,'*Set\x20format:*\x20%0',c(_0x19b180,this['_getTranslationKeyForListStyle'](_0x18d057['newValue'])))};if(!_0x18d057['newValue']){if('default'==_0x18d057['oldValue'])return _0x53d417;let _0xe1bc43=_0x5e2dde['head'];for(;_0xe1bc43;){if(_0xe1bc43['data']&&'listType'==_0xe1bc43['data']['key']&&_0xe1bc43['data']['newValue'])return _0x53d417;_0xe1bc43=_0xe1bc43['next'];}return{'type':'format','content':''+c(_0x19b180,'*Remove\x20format:*\x20%0',c(_0x19b180,this['_getTranslationKeyForListStyle'](_0x18d057['oldValue'])))};}if('default'!=_0x18d057['newValue'])return{'type':'format','content':''+c(_0x19b180,'*Set\x20format:*\x20%0',c(_0x19b180,this['_getTranslationKeyForListStyle'](_0x18d057['newValue'])))};let _0x153a03=_0x5e2dde['head'];for(;_0x153a03;){if(_0x153a03['data']&&'listType'==_0x153a03['data']['key']&&_0x153a03['data']['newValue']&&_0x153a03['data']['oldValue'])return _0x53d417;_0x153a03=_0x153a03['next'];}return{'type':'format','content':c(_0x19b180,'*Set\x20format:*\x20%0',c(_0x19b180,'ELEMENT_'+_0x5e2dde['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x379a0b=this['editor'],_0x23ee85=_0x379a0b['locale'];_0x379a0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b6940=>{if('formatBlock'!=_0x2b6940['type'])return;const {data:_0x43102b}=_0x2b6940;if(!_0x43102b)return;let _0x5b068d,_0x40a060;switch(_0x43102b['commandName']){case'listStyle':_0x5b068d='*Change\x20to:*\x20%0',_0x40a060={'type':'format','content':c(_0x23ee85,_0x5b068d,c(_0x23ee85,this['_getTranslationKeyForListStyle'](_0x43102b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5b068d=_0x43102b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40a060={'type':'format','content':c(_0x23ee85,_0x5b068d)};break;case'listStart':_0x5b068d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40a060={'type':'format','content':c(_0x23ee85,_0x5b068d,_0x43102b['commandParams'][0x0]['startIndex'])};}return _0x40a060;});}['_getTranslationKeyForListStyle'](_0x28f595){return'ELEMENT_'+function(_0x4b1004){if(_e['includes'](_0x4b1004))return'bulleted';if(Re['includes'](_0x4b1004))return'numbered';return null;}(_0x28f595)['toUpperCase']()+'_LIST_'+_0x28f595['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x6c1265{['afterInit'](){const _0x4e6a1d=this['editor'];_0x4e6a1d['commands']['get']('emoji')&&_0x4e6a1d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x6c1265{static get['requires'](){return[_0x5d5e4a];}['init'](){const _0x4a3609=this['editor'],_0x452934=_0x4a3609['plugins']['get']('TrackChangesEditing'),_0x53f934=_0x4a3609['commands']['get']('enter');_0x452934['enableCommand']('enter',()=>{_0x4a3609['model']['change'](_0x5213b4=>{const _0x51fb67=_0x4a3609['model']['document']['selection'],_0x292f2f=_0x51fb67['getFirstPosition'](),_0x5d1f83=_0x26d742['fromRange'](_0x51fb67['getFirstRange']());if(_0x53f934['enterBlock'](_0x5213b4)){const _0x57d28e=_0x4a3609['model']['createPositionAt'](_0x292f2f['parent']['nextSibling'],0x0),_0x1f50a2=_0x5213b4['createRange'](_0x292f2f,_0x57d28e);_0x452934['markInsertion'](_0x1f50a2);}else _0x5213b4['setSelection'](_0x5213b4['createRange'](_0x5d1f83['end']));_0x5d1f83['detach'](),_0x53f934['fire']('afterExecute',{'writer':_0x5213b4});});}),_0x4a3609['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4a3609,'split'),{'priority':'high'}),_0x4a3609['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x409260,_0x457b91,_0x47c24c)=>{const _0x600cd4=_0x47c24c['mapper']['markerNameToElements'](_0x457b91['markerName']);if(_0x600cd4){for(const _0x4272c2 of _0x600cd4)_0x4272c2['hasClass']('ck-suggestion-marker-split')&&(_0x47c24c['mapper']['unbindElementFromMarkerName'](_0x4272c2,_0x457b91['markerName']),_0x47c24c['writer']['remove'](_0x4272c2));}},{'priority':'high'}),_0x4a3609['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x362bed,_0x3db1d3,_0x278484)=>{_0x278484['options']['showSuggestionHighlights']&&De(_0x4a3609,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x362bed,_0x3db1d3,_0x278484);},{'priority':'high'});}}class Z extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f8bab=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f8bab['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f8bab['enableCommand']('findNext'),_0x1f8bab['enableCommand']('findPrevious'),_0x1f8bab['enableCommand']('replace'),_0x1f8bab['enableCommand']('replaceAll');}['handleFindCommand'](_0x266dec,_0xe72587,_0x1db73b={}){const _0x192def=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x266dec(_0x559dc5=>{let _0x465804=('string'==typeof _0xe72587?_0x192def['findByTextCallback'](_0xe72587,_0x1db73b):_0xe72587)(_0x559dc5);Array['isArray'](_0x465804)&&(_0x465804={'results':_0x465804,'searchText':'string'==typeof _0xe72587?_0xe72587:''});const _0x2df44a=_0x465804['results']['filter'](_0x1dc0a9=>!0x1===this['_isInDeletionRange'](_0x1dc0a9,_0x559dc5['item']));return{..._0x465804,'results':_0x2df44a};},_0x1db73b);}['_isInDeletionRange'](_0x42a54b,_0x4d3a6b){const _0xdf3db4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d3a6b,_0x42a54b['start']),this['editor']['model']['createPositionAt'](_0x4d3a6b,_0x42a54b['end']));for(const _0x34d76e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xdf3db4['getIntersection'](_0x34d76e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x6c1265{['afterInit'](){const _0x5d5f62=this['editor']['locale'],_0x2fbd9b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x54fb34,commandName:_0x49ac86}of eo)this['editor']['plugins']['has'](_0x54fb34)&&(_0x2fbd9b['enableDefaultAttributesIntegration'](_0x49ac86),_0x2fbd9b['registerInlineAttribute'](_0x49ac86));_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5d5f62,'FORMAT_FONT_SIZE')),_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5d5f62,'FORMAT_FONT_FAMILY')),_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5d5f62,'FORMAT_FONT_COLOR')),_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5d5f62,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e982=this['editor'],_0x2b62fd=_0x56e982['locale'];_0x56e982['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22618c=>{const _0xa79c2d=_0x2b62fd['t'];if('formatInline'!=_0x22618c['type'])return;const {data:_0x467ea3}=_0x22618c;if(null!=_0x467ea3){if('fontSize'==_0x467ea3['commandName']){const _0x2d26a8=_0x467ea3['commandParams'][0x0]['value'];if(_0x2d26a8){const _0x18caee=_0xa79c2d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x457a29=>_0x457a29['model']==_0x2d26a8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20size:*\x20%0',_0x18caee)};}return{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x467ea3['commandName']){const _0x4bd7f4=_0x467ea3['commandParams'][0x0]['value'];return _0x4bd7f4?{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20family:*\x20%0',_0x4bd7f4)}:{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x467ea3['commandName']){const _0xc4aec=_0x467ea3['commandParams'][0x0]['value'];if(_0xc4aec){const _0x374915=_0x1cad9e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c88d7=>_0x5c88d7['model']==_0xc4aec);let _0x42e5a6=_0xc4aec,_0x32c8f7='';return _0x374915&&(_0x42e5a6=_0x374915['label'],_0x32c8f7=_0xa79c2d(_0x42e5a6)['toLowerCase']()),{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20color:*\x20%0',_0x32c8f7)['trim'](),'color':{'value':_0xc4aec,'title':_0x32c8f7||_0x42e5a6}};}return{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x467ea3['commandName']){const _0x2bdadb=_0x467ea3['commandParams'][0x0]['value'];if(_0x2bdadb){const _0x55111a=_0x1cad9e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x588e86=>_0x588e86['model']==_0x2bdadb);let _0x3d5411=_0x2bdadb,_0x5c226d='';return _0x55111a&&(_0x3d5411=_0x55111a['label'],_0x5c226d=_0xa79c2d(_0x3d5411)['toLowerCase']()),{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c226d)['trim'](),'color':{'value':_0x2bdadb,'title':_0x5c226d||_0x3d5411}};}return{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x6c1265{['afterInit'](){const _0x189f79=this['editor'],_0xa5b6a3=_0x189f79['plugins']['get']('TrackChangesEditing'),_0x175748=_0x189f79['commands']['get']('copyFormat'),_0x33716b=_0x189f79['commands']['get']('pasteFormat');_0x175748&&_0x33716b&&(_0xa5b6a3['enableDefaultAttributesIntegration']('pasteFormat'),_0xa5b6a3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4b5db8=this['editor'],_0x25f0db=_0x4b5db8['locale'];_0x4b5db8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41903e=>{if('formatBlock'!=_0x41903e['type']&&'formatInline'!=_0x41903e['type'])return;const {data:_0x3a1552}=_0x41903e;if(_0x3a1552&&'pasteFormat'===_0x3a1552['commandName']){const _0x504814=[],_0x2c32af=_0x3a1552['commandParams'][0x0];for(const [_0x407f9e,_0x1c65d8]of Object['entries'](_0x2c32af))_0x504814['push'](ro(_0x4b5db8,_0x407f9e,_0x1c65d8));return _0x504814['length']?{'type':'format','content':c(_0x25f0db,'*Set\x20format\x20to:*\x20%0',_0x504814['join'](',\x20'))}:{'type':'format','content':c(_0x25f0db,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x578476,_0xc93467,_0x42fd40){const _0x59990d=_0x578476['locale']['t'],_0x578cdf=_0xc93467['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d3de3=_0x59990d(_0x578cdf['charAt'](0x0)['toUpperCase']()+_0x578cdf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42fd40)return _0x1d3de3;if('fontColor'===_0xc93467||'fontBackgroundColor'===_0xc93467){const _0x23d5d2=_0x1cad9e(_0x578476['config']['get']('fontColor.colors'))['find'](_0x35ceab=>_0x35ceab['model']==_0x42fd40);return _0x1d3de3+'\x20('+(_0x23d5d2?_0x59990d(_0x23d5d2['label'])['toLowerCase']():_0x42fd40)+')';}if('fontSize'===_0xc93467&&isNaN(parseFloat(_0x42fd40))){const _0x5a5aee=_0x578476['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x578476['config']['get']('fontSize.options'))['find'](_0x5edc98=>_0x5edc98['model']==_0x42fd40);return _0x1d3de3+'\x20('+(_0x5a5aee?_0x59990d(_0x5a5aee['title'])['toLowerCase']():_0x42fd40)+')';}return _0x1d3de3+'\x20('+_0x42fd40+')';}class nt extends _0x6c1265{['_headingOptions'];['afterInit'](){const _0x439da9=this['editor'];if(!_0x439da9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x439da9['config']['get']('heading.options');const _0x3e5b71=_0x439da9['locale'],_0x44d54b=_0x439da9['plugins']['get']('TrackChangesEditing');_0x44d54b['enableDefaultAttributesIntegration']('heading');for(const _0x78a1ca of this['_headingOptions'])'paragraph'!=_0x78a1ca['model']&&_0x44d54b['descriptionFactory']['registerElementLabel'](_0x78a1ca['model'],_0x4f0d0b=>{const _0x154f2e=this['_getHeadingLevel'](_0x78a1ca['model']);return null!==_0x154f2e?_0x30e1e8(_0x4f0d0b,_0x154f2e):_0x422ad5(_0x4f0d0b,_0x78a1ca['title']);});function _0x30e1e8(_0x48e017,_0x22cd15){return c(_0x3e5b71,'ELEMENT_HEADING',[_0x48e017,_0x22cd15]);}function _0x422ad5(_0x460673,_0x295384){return c(_0x3e5b71,'ELEMENT_HEADING_CUSTOM',[_0x460673,_0x295384]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21564d=this['editor'],_0x234256=_0x21564d['locale'];function _0x12c284(_0x1b572e,_0x1d324d){return c(_0x234256,'ELEMENT_HEADING_CUSTOM',[_0x1b572e,_0x1d324d]);}_0x21564d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225d4b=>{if('formatBlock'!=_0x225d4b['type'])return;const {data:_0x1e5f9f}=_0x225d4b;if(_0x1e5f9f&&'heading'==_0x1e5f9f['commandName']){const _0x54076d=_0x1e5f9f['commandParams'][0x0]['value'],_0x103b9e=this['_getHeadingLevel'](_0x54076d);if(null!==_0x103b9e)return{'type':'format','content':c(_0x234256,'*Change\x20to:*\x20%0',(_0x107ccf=0x1,_0x4fd7a6=_0x103b9e,c(_0x234256,'ELEMENT_HEADING',[_0x107ccf,_0x4fd7a6])))};const _0x331d15=this['_headingOptions']['find'](_0x2e19a7=>_0x2e19a7['model']===_0x54076d)['title'];return{'type':'format','content':c(_0x234256,'*Change\x20to:*\x20%0',_0x12c284(0x1,_0x331d15))};}var _0x107ccf,_0x4fd7a6;});}['_getHeadingLevel'](_0x38a451){const _0x4d3c4d=_0x38a451['match'](/^heading(\d+)/);if(_0x4d3c4d)return _0x4d3c4d[0x1];const _0x438812=this['_headingOptions']?.['find'](_0x4fafe1=>_0x4fafe1['model']==_0x38a451);if(_0x438812&&_0x438812['view']){const _0x432576=_0x438812['view'],_0x442365=(_0x432576['name']??_0x432576)['match'](/^h(\d+)/);if(_0x442365)return _0x442365[0x1];}return null;}}class it extends _0x6c1265{['afterInit'](){const _0x98a823=this['editor'];if(!_0x98a823['plugins']['has']('HighlightEditing'))return;const _0x65cd98=_0x98a823['plugins']['get']('TrackChangesEditing'),_0x209fd8=_0x98a823['locale'];_0x65cd98['enableDefaultAttributesIntegration']('highlight'),_0x65cd98['registerInlineAttribute']('highlight'),_0x65cd98['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x209fd8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4038e4=this['editor'],_0x20b3ef=_0x4038e4['locale'];_0x4038e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb0fc=>{if('formatInline'!=_0x2eb0fc['type'])return;const {data:_0x4b9485}=_0x2eb0fc;if(_0x4b9485&&'highlight'==_0x4b9485['commandName']){const _0x311a3e=_0x20b3ef['t'],_0x28e46f=_0x4b9485['commandParams'][0x0]['value'];if(_0x28e46f){const _0x21260c=_0x4038e4['config']['get']('highlight.options')['find'](_0x5ea58f=>_0x5ea58f['model']==_0x28e46f),_0x487a76=_0x311a3e(_0x21260c['title'])['toLowerCase']();return{'type':'format','content':c(_0x20b3ef,'*Set\x20highlight:*\x20%0',_0x487a76),'color':{'value':_0x21260c['color'],'title':_0x21260c['title']}};}return{'type':'format','content':c(_0x20b3ef,'*Remove\x20highlight*',c(_0x20b3ef,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x6c1265{['afterInit'](){const _0x5467b5=this['editor'];if(!_0x5467b5['plugins']['has']('HorizontalLineEditing'))return;_0x5467b5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31f393=_0x5467b5['plugins']['get']('TrackChangesEditing'),_0x526fd8=_0x5467b5['locale'];_0x31f393['descriptionFactory']['registerElementLabel']('horizontalLine',_0xeb6065=>c(_0x526fd8,'ELEMENT_HORIZONTAL_LINE',_0xeb6065)),_0x5467b5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x22fba3,{writer:_0x509294,options:_0x196395})=>{if(!_0x196395['showSuggestionHighlights'])return null;const _0x4dcd23=_0x509294['createContainerElement']('div'),_0x2f3c8e=_0x509294['createEmptyElement']('hr');return _0x509294['addClass']('ck-horizontal-line',_0x4dcd23),_0x509294['insert'](_0x509294['createPositionAt'](_0x4dcd23,0x0),_0x2f3c8e),_0x4dcd23;},'converterPriority':'high'});}}class ot extends _0x6c1265{['afterInit'](){const _0x4e9e49=this['editor'];if(!_0x4e9e49['plugins']['has']('HtmlEmbed'))return;const _0x30a213=_0x4e9e49['plugins']['get']('TrackChangesEditing'),_0x14e80d=_0x4e9e49['locale'];_0x30a213['descriptionFactory']['registerElementLabel']('rawHtml',_0x17ba57=>c(_0x14e80d,'ELEMENT_HTML_EMBED',_0x17ba57)),_0x30a213['enableDefaultAttributesIntegration']('htmlEmbed'),_0x30a213['registerBlockAttribute']('value'),_0x30a213['descriptionFactory']['registerDescriptionCallback'](_0x3ec203=>{if('attribute'!=_0x3ec203['type'])return;const {data:_0x429fb9}=_0x3ec203;if(_0x429fb9&&'value'==_0x429fb9['key']&&_0x3ec203['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2d562e=c(_0x14e80d,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x14e80d,'*Change\x20%0\x20content*',_0x2d562e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ff859=this['editor'],_0x9d187f=_0x2ff859['locale'];_0x2ff859['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24504a=>{if('formatBlock'!=_0x24504a['type'])return;const {data:_0x33448e}=_0x24504a;if(_0x33448e&&'htmlEmbed'==_0x33448e['commandName']){const _0x4f7952=c(_0x9d187f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x9d187f,'*Change\x20%0\x20content*',_0x4f7952)};}});}}class rt extends _0x6c1265{['afterInit'](){const _0x496e94=this['editor'];if(!_0x496e94['plugins']['has']('ImageEditing'))return;const _0x1f0fc8=_0x496e94['plugins']['get']('TrackChangesEditing'),_0x2f7429=_0x496e94['plugins']['get']('ImageUtils'),_0x256293=_0x496e94['locale'];_0x1f0fc8['enableCommand']('insertImage'),_0x1f0fc8['descriptionFactory']['registerElementLabel']('imageBlock',_0x45db27=>c(_0x256293,'ELEMENT_IMAGE',_0x45db27)),_0x1f0fc8['descriptionFactory']['registerElementLabel']('imageInline',_0x48ca55=>c(_0x256293,'ELEMENT_INLINE_IMAGE',_0x48ca55)),_0x1f0fc8['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x256293,'ELEMENT_CAPTION')),_0x496e94['plugins']['has']('ImageUploadEditing')&&_0x1f0fc8['enableCommand']('uploadImage'),_0x496e94['plugins']['has']('ImageBlockEditing')&&_0x496e94['plugins']['has']('ImageInlineEditing')&&(_0x1f0fc8['enableCommand']('imageTypeInline',(_0x28476b,_0x505af8)=>{const _0x53d7ce=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']);_0x496e94['model']['change'](()=>{_0x1f0fc8['markBlockFormat'](_0x53d7ce,{'commandName':'imageTypeInline','commandParams':[_0x505af8]},[],'convertBlockImageToInline');});}),_0x1f0fc8['enableCommand']('imageTypeBlock',(_0x5c72c3,_0x574a80)=>{_0x496e94['model']['change'](_0x4cb1e1=>{let _0x3caafb=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x2703a7=_0x4cb1e1['createRangeOn'](_0x3caafb);const _0x52d433=_0x9e232c['fromPosition'](_0x2703a7['start'],'toPrevious'),_0x24b20e=_0x9e232c['fromPosition'](_0x2703a7['end'],'toNext');_0x1f0fc8['forceDefaultExecution'](()=>_0x5c72c3(_0x574a80)),_0x3caafb=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x2703a7=_0x4cb1e1['createRangeOn'](_0x3caafb);const _0x47f3bc=_0x4cb1e1['createRange'](_0x52d433,_0x24b20e);_0x52d433['detach'](),_0x24b20e['detach'](),_0x1f0fc8['markBlockFormat'](_0x3caafb,{'commandName':'imageTypeInline','commandParams':[_0x574a80]},[],'convertInlineImageToBlock'),_0x47f3bc['start']['isBefore'](_0x2703a7['start'])&&_0x1f0fc8['markInsertion'](_0x4cb1e1['createRange'](_0x47f3bc['start'],_0x2703a7['start']),'convertInlineImageToBlock'),_0x2703a7['end']['isBefore'](_0x47f3bc['end'])&&_0x1f0fc8['markInsertion'](_0x4cb1e1['createRange'](_0x2703a7['end'],_0x47f3bc['end']),'convertInlineImageToBlock');});}),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1f0fc8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3f76a2])=>{const _0x23816c=_0x1f0fc8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a96b6=_0x3f76a2['start'],_0x23a6d1=_0x3f76a2['end'];const _0x2903e1=_0x496e94['model']['schema']['getNearestSelectionRange'](_0x4a96b6,'backward'),_0x1c5686=_0x496e94['model']['schema']['getNearestSelectionRange'](_0x23a6d1,'forward');_0x2903e1['isCollapsed']&&(_0x4a96b6=_0x2903e1['start']),_0x1c5686['isCollapsed']&&(_0x23a6d1=_0x1c5686['end']),_0x23816c([_0x496e94['model']['createRange'](_0x4a96b6,_0x23a6d1)]);}),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1c9f69),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1c9f69)),_0x496e94['plugins']['has']('ImageCaptionEditing')&&(_0x1f0fc8['enableCommand']('toggleImageCaption',(_0x7bbf73,_0x2acb05)=>{const _0x5cbce1=_0x496e94['plugins']['get']('ImageCaptionUtils');let _0x57a15b=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x303702=_0x5cbce1['getCaptionFromImageModelElement'](_0x57a15b);_0x496e94['model']['change'](()=>{if(_0x303702)return void _0x1f0fc8['markDeletion'](_0x496e94['model']['createRangeOn'](_0x303702));const _0x44c8d4=_0x2f7429['isBlockImage'](_0x57a15b);_0x7bbf73(_0x2acb05),_0x57a15b=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x303702=_0x5cbce1['getCaptionFromImageModelElement'](_0x57a15b),_0x1f0fc8['markInsertion'](_0x496e94['model']['createRangeOn'](_0x303702),_0x44c8d4?null:'imageCaption');});}),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1c9f69));const _0x1d2a42=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e0103(_0x7bb388,_0x5507d8){const _0x5d5187=_0x1d2a42['findIndex'](({type:_0x1d5531,subType:_0xc876a6})=>_0x7bb388['type']==_0x1d5531&&_0x7bb388['subType']==_0xc876a6),_0x57531f=_0x1d2a42['findIndex'](({type:_0x79103b,subType:_0x5c27f0})=>_0x5507d8['type']==_0x79103b&&_0x5507d8['subType']==_0x5c27f0);if(_0x5d5187<0x0||_0x57531f<0x0)return!0x1;const _0x30cb91=_0x7bb388['getFirstRange'](),_0x3140c2=_0x5507d8['getFirstRange']();if((0x0==_0x5d5187||0x1==_0x5d5187)&&0x2==_0x57531f&&_0x30cb91['isIntersecting'](_0x3140c2))return!0x0;if(0x2==_0x5d5187&&0x3==_0x57531f){const _0xcb8f25=_0x1f0fc8['_findSuggestions'](_0x30cb91,'insertion')['filter'](({suggestion:_0x935fa8,meta:_0x7e50b})=>_0x7e50b['isOwn']&&'convertInlineImageToBlock'==_0x935fa8['subType']);if(_0xcb8f25['length']>0x1&&_0x3140c2['end']['isEqual'](_0x30cb91['start']))return!0x0;if(0x1==_0xcb8f25['length']&&(_0x30cb91['start']['isEqual'](_0x3140c2['end'])||_0x30cb91['end']['isEqual'](_0x3140c2['start'])))return!0x0;}if(0x3==_0x5d5187&&0x3==_0x57531f&&_0x30cb91['start']['isBefore'](_0x3140c2['start'])){const _0x74a3e1=_0x30cb91['end']['nodeAfter'],_0x19704b=_0x3140c2['start']['nodeBefore'];return _0x2f7429['isBlockImage'](_0x74a3e1)&&_0x74a3e1===_0x19704b;}return!0x1;}function _0x1c9f69(_0x48d2fb,_0x4a6c19){return _0x2e0103(_0x48d2fb,_0x4a6c19)?[_0x48d2fb,_0x4a6c19]:_0x2e0103(_0x4a6c19,_0x48d2fb)?[_0x4a6c19,_0x48d2fb]:null;}_0x496e94['plugins']['has']('ImageResize')&&(_0x1f0fc8['enableDefaultAttributesIntegration']('resizeImage'),_0x1f0fc8['registerBlockAttribute']('resizedWidth'),_0x1f0fc8['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x256293,'FORMAT_IMAGE_SIZE'))),_0x496e94['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1f0fc8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1f0fc8['registerBlockAttribute']('alt')),_0x496e94['plugins']['has']('PictureEditing')&&(_0x1f0fc8['registerBlockAttribute']('sources'),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x274475=>{if('attribute'!=_0x274475['type'])return;const {data:_0x3f9194}=_0x274475;return _0x3f9194&&'sources'==_0x3f9194['key']?{'type':'format','content':''}:void 0x0;})),_0x496e94['plugins']['has']('ImageSizeAttributes')&&(_0x1f0fc8['registerBlockAttribute']('width'),_0x1f0fc8['registerBlockAttribute']('height'),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x4215a0=>{if('attribute'!=_0x4215a0['type'])return;const {data:_0x2a306e}=_0x4215a0;return!_0x2a306e||'width'!=_0x2a306e['key']&&'height'!=_0x2a306e['key']?void 0x0:{'type':'format','content':''};})),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x2389b5=>{if(!!_0x1d2a42['find'](({type:_0x3e357b,subType:_0x57b6a6})=>_0x2389b5['type']==_0x3e357b&&_0x2389b5['subType']==_0x57b6a6))return _0x2389b5['previous']?{}:void 0x0;}),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x5ce9f3=>{if('insertion'==_0x5ce9f3['type']||'deletion'==_0x5ce9f3['type']){const _0xe647dd=_0x5ce9f3['getContainedElement']();if(_0xe647dd&&_0xe647dd['is']('element','caption'))return{'type':'insertion'==_0x5ce9f3['type']?'addObject':'removeObject','element':_0xe647dd,'quantity':0x1};}}),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x4f37a6=>'formatBlock'==_0x4f37a6['type']&&'convertInlineImageToBlock'==_0x4f37a6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4f37a6['type']&&'convertBlockImageToInline'==_0x4f37a6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x21a6cc=>{if('attribute'!=_0x21a6cc['type'])return;const {data:_0x270aa9}=_0x21a6cc;if(!_0x270aa9||'alt'!=_0x270aa9['key'])return;const _0x57a58f=_0x270aa9['newValue'];return _0x57a58f?{'type':'format','content':c(_0x256293,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57a58f+'\x22')}:{'type':'format','content':c(_0x256293,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x162481=this['editor'],_0xc1aa65=_0x162481['locale'];_0x162481['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x319586=>{if('formatBlock'!=_0x319586['type']&&'formatInline'!=_0x319586['type'])return;const {data:_0x567c33}=_0x319586;if(_0x567c33){if('imageTextAlternative'==_0x567c33['commandName']){const _0x175e90=_0x567c33['commandParams'][0x0]['newValue'];return _0x175e90?{'type':'format','content':c(_0xc1aa65,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x175e90+'\x22')}:{'type':'format','content':c(_0xc1aa65,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x567c33['commandName']){const _0x272da8=_0x567c33['commandParams'][0x0]['width'];return _0x272da8?{'type':'format','content':c(_0xc1aa65,'*Set\x20image\x20width:*\x20%0',_0x272da8)}:{'type':'format','content':c(_0xc1aa65,'*Reset\x20image\x20width*')};}}});}}class at extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2d9141=this['editor']['locale'],_0x352996=this['editor']['plugins']['get']('TrackChangesEditing');_0x352996['enableDefaultAttributesIntegration']('replaceImageSource'),_0x352996['registerBlockAttribute']('src'),_0x352996['descriptionFactory']['registerDescriptionCallback'](_0x59d66a=>{if('attribute'!=_0x59d66a['type'])return;const {data:_0x16747}=_0x59d66a;return _0x16747&&'src'==_0x16747['key']?_0x16747['newValue']&&_0x16747['oldValue']?{'type':'format','content':c(_0x2d9141,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c9f17=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c9f17['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5c9f17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c9f17['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5c9f17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x179b9e=this['editor'],_0x4e6b00=_0x179b9e['locale'];_0x179b9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52c4b0=>{if('formatBlock'!=_0x52c4b0['type']&&'formatInline'!=_0x52c4b0['type'])return;const {data:_0x3d5589}=_0x52c4b0;if(!_0x3d5589||'replaceImageSource'!=_0x3d5589['commandName'])return;return{'type':'format','content':c(_0x4e6b00,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x6c1265{['afterInit'](){const _0x43e61f=this['editor'];if(!_0x43e61f['plugins']['has']('ImageStyleEditing'))return;const _0x253fb0=_0x43e61f['plugins']['get']('TrackChangesEditing'),_0x2c0652=_0x43e61f['plugins']['get']('ImageUtils'),_0xec13b5={};_0x253fb0['enableCommand']('imageStyle',(_0x1af186,_0x10d0a0)=>{const _0x1d5bd7=_0x43e61f['plugins']['get']('Users')['me'],_0x7a3236=_0x43e61f['commands']['get']('imageStyle');let _0x195069=_0x2c0652['getClosestSelectedImageElement'](_0x43e61f['model']['document']['selection']),_0x5f3d5e=_0x43e61f['model']['createRangeOn'](_0x195069),_0x3364cb=_0x7a3236['value'];if(_0x3364cb==_0x10d0a0['value'])return;const _0x485bb8={'commandName':'imageStyle','commandParams':[_0x10d0a0],'formatGroupId':_0x2e4cf8()};_0x43e61f['model']['change'](()=>{if(_0x253fb0['getSuggestions']()['filter'](_0x16192b=>_0x16192b['isInContent']&&_0x1d5bd7==_0x16192b['author']&&('formatBlock'==_0x16192b['type']||'formatInline'==_0x16192b['type'])&&('imageStylePreApply'==_0x16192b['subType']||'imageStylePostApply'==_0x16192b['subType'])&&_0x16192b['getFirstRange']()['isEqual'](_0x5f3d5e))['forEach'](_0x407b30=>_0x253fb0['discardSuggestion'](_0x407b30['head'])),_0x195069=_0x2c0652['getClosestSelectedImageElement'](_0x43e61f['model']['document']['selection']),_0x5f3d5e=_0x43e61f['model']['createRangeOn'](_0x195069),_0x7a3236['refresh'](),_0x43e61f['commands']['get']('imageTypeInline')['refresh'](),_0x43e61f['commands']['get']('imageTypeBlock')['refresh'](),_0x3364cb=_0x7a3236['value'],_0x3364cb!=_0x10d0a0['value'])return _0x2c0652['isInlineImage'](_0x195069)&&_0x7a3236['shouldConvertImageType'](_0x10d0a0['value'],_0x195069)?(_0x1af186({..._0x10d0a0,'setImageSizes':!0x1}),_0x195069=_0x2c0652['getClosestSelectedImageElement'](_0x43e61f['model']['document']['selection']),void _0x253fb0['markBlockFormat'](_0x195069,{..._0x485bb8,'commandReversedParams':[{'value':_0x3364cb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c0652['isBlockImage'](_0x195069)?_0x253fb0['markBlockFormat'](_0x195069,_0x485bb8,[],'imageStylePostApply'):_0x253fb0['markInlineFormat'](_0x5f3d5e,_0x485bb8,'imageStylePostApply'));});});for(const _0x507681 of _0x43e61f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xec13b5[_0x507681['name']]=_0x507681['title']['toLowerCase']();_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x329797])=>{_0x2c0652['setImageNaturalSizeAttributes'](_0x329797['getContainedElement']());}),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x246c2d,_0x179fd0)=>{_0x253fb0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x246c2d,{'commandName':_0x179fd0['commandName'],'commandParams':_0x179fd0['commandReversedParams']});}),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x309426,_0x5f0ed7){if(_0x61ec06(_0x309426,_0x5f0ed7))return[_0x309426,_0x5f0ed7];if(_0x61ec06(_0x5f0ed7,_0x309426))return[_0x5f0ed7,_0x309426];return null;});const _0x2a2f62=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x61ec06(_0x41f429,_0x5df8a1){const _0x109bbc=_0x2a2f62['findIndex'](({type:_0x567ea8,subType:_0x4ddcd5})=>_0x41f429['type']==_0x567ea8&&_0x41f429['subType']==_0x4ddcd5),_0x1a9154=_0x2a2f62['findIndex'](({type:_0x19ecc7,subType:_0xee00bc})=>_0x5df8a1['type']==_0x19ecc7&&_0x5df8a1['subType']==_0xee00bc);if(_0x109bbc<0x0||_0x1a9154<0x0)return!0x1;const _0x4891d8=_0x41f429['getFirstRange'](),_0x5a3ed9=_0x5df8a1['getFirstRange']();if((0x0==_0x109bbc||0x1==_0x109bbc)&&0x2==_0x1a9154&&_0x4891d8['isIntersecting'](_0x5a3ed9))return!0x0;if(0x2==_0x109bbc&&0x3==_0x1a9154){const _0xb8ba96=_0x253fb0['_findSuggestions'](_0x4891d8,'insertion')['filter'](({suggestion:_0xc4e117,meta:_0x4c2454})=>_0x4c2454['isOwn']&&'convertInlineImageToBlock'==_0xc4e117['subType']);if(_0xb8ba96['length']>0x1&&_0x5a3ed9['end']['isEqual'](_0x4891d8['start']))return!0x0;if(0x1==_0xb8ba96['length']&&(_0x4891d8['start']['isEqual'](_0x5a3ed9['end'])||_0x4891d8['end']['isEqual'](_0x5a3ed9['start'])))return!0x0;}if(0x3==_0x109bbc&&0x3==_0x1a9154&&_0x4891d8['start']['isBefore'](_0x5a3ed9['start'])){const _0x424996=_0x4891d8['end']['nodeAfter'],_0x107d97=_0x5a3ed9['start']['nodeBefore'];return _0x2c0652['isBlockImage'](_0x424996)&&_0x424996===_0x107d97;}return!0x1;}_0x43e61f['model']['document']['registerPostFixer'](()=>{let _0x48ab24=!0x1;const _0x667396=Array['from'](_0x43e61f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ba775,data:_0x38b92b}of _0x667396){const {group:_0xef327,type:_0xbd6db2,subType:_0x43f10b,id:_0x202a4d}=_0x253fb0['_splitMarkerName'](_0x2ba775);if('suggestion'==_0xef327&&_0x253fb0['hasSuggestion'](_0x202a4d)){if('formatBlock'==_0xbd6db2&&('imageStylePreApply'==_0x43f10b||'imageStylePostApply'==_0x43f10b)){const _0x481e1f=_0x253fb0['getSuggestion'](_0x202a4d);if(_0x38b92b['newRange']){const _0x49e953=_0x481e1f['getFirstRange']()['getContainedElement']();if(_0x2c0652['isBlockImage'](_0x49e953))continue;_0x253fb0['discardSuggestion'](_0x481e1f),_0x48ab24=!0x0;}}if('insertion'==_0xbd6db2&&'imageCaption'==_0x43f10b&&!_0x38b92b['newRange']){const _0x35a78d=_0x253fb0['getSuggestion'](_0x202a4d);_0x35a78d['next']&&_0x35a78d['next']['isInContent']&&(_0x253fb0['discardSuggestion'](_0x35a78d['next']),_0x48ab24=!0x0);}}}return _0x48ab24;}),this['_registerLegacyDescription'](_0xec13b5);}['_registerLegacyDescription'](_0x257a03){const _0x2ff82e=this['editor'],_0x593171=_0x2ff82e['locale'];_0x2ff82e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46f453=>{if('formatBlock'!=_0x46f453['type']&&'formatInline'!=_0x46f453['type'])return;const {data:_0x3ee658}=_0x46f453;if(!_0x3ee658||'imageStyle'!=_0x3ee658['commandName'])return;const _0xe442ac=_0x3ee658['commandParams'][0x0]['value'];return _0x22d42c('side'===_0xe442ac?c(_0x593171,'FORMAT_SIDE_IMAGE'):_0x257a03[_0xe442ac]||_0xe442ac);function _0x22d42c(_0x2b219f){return{'type':'format','content':c(_0x593171,'*Format:*\x20%0',_0x2b219f)};}});}}class ut extends _0x6c1265{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4d0326){super(_0x4d0326),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x598edd=this['editor'],_0x29c235=_0x598edd['commands']['get']('importWord'),_0x4f6f51=_0x598edd['commands']['get']('trackChanges');_0x29c235&&(_0x29c235['on']('execute',(_0x32058a,[,_0xeba361])=>{this['_trackChangesValueDuringImport']=_0x4f6f51['value'],_0xeba361['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29c235,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29c235,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f6f51['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x598edd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x352dac,_0x5ee7da){const {suggestions:_0x48c914}=_0x5ee7da,_0x14c89f=this['editor']['commands']['get']('trackChanges'),_0x56a98f=_0x14c89f['value'];this['_trackChangesValueDuringImport']!==_0x56a98f&&(_0x14c89f['execute'](),this['_trackChangesExecuted']=!0x0),_0x48c914&&_0x48c914['forEach'](({id:_0x2a092c,type:_0x114cd9,author:_0x5de81a,created_at:_0xeb8dc8})=>{const _0xb79a7e={'id':_0x2a092c,'type':_0x114cd9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5de81a,'createdAt':_0xeb8dc8?new Date(_0xeb8dc8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb79a7e);});}}class ft extends _0x6c1265{['afterInit'](){const _0x3b9cee=this['editor'],_0x12a881=_0x3b9cee['plugins']['get']('TrackChangesEditing');if(_0x3b9cee['plugins']['has']('IndentEditing')&&(_0x12a881['enableCommand']('indent'),_0x12a881['enableCommand']('outdent')),_0x3b9cee['plugins']['has']('IndentBlock')){for(const _0x2ed347 of['indentBlock','outdentBlock'])_0x12a881['enableDefaultAttributesIntegration'](_0x2ed347);}const _0x13be81=_0x3b9cee['locale'];_0x12a881['registerBlockAttribute']('blockIndent'),_0x12a881['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x13be81,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8508ee=this['editor'],_0x2e1db0=_0x8508ee['locale'],_0x56748b=_0x8508ee['plugins']['get']('TrackChangesEditing');_0x56748b['descriptionFactory']['registerDescriptionCallback'](_0x3f2fb4=>{if('formatBlock'!=_0x3f2fb4['type'])return;const {data:_0x25947d}=_0x3f2fb4;if(!_0x25947d)return;if('indentBlock'!=_0x25947d['commandName']&&'outdentBlock'!=_0x25947d['commandName'])return;const _0x5d08c7=_0x3f2fb4['getItems']()[0x0],_0x363ab2=_0x56748b['descriptionFactory']['getItemLabel'](_0x5d08c7);return'indentBlock'==_0x25947d['commandName']?{'type':'format','content':c(_0x2e1db0,'*Indent:*\x20%0',_0x363ab2)}:'outdentBlock'==_0x25947d['commandName']?{'type':'format','content':c(_0x2e1db0,'*Outdent:*\x20%0',_0x363ab2)}:void 0x0;});}}class ht extends _0x6c1265{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x6c1265{['afterInit'](){const _0x233a72=this['editor'];if(!_0x233a72['plugins']['has']('LinkEditing'))return;const _0x2cdc90=_0x233a72['plugins']['get']('TrackChangesEditing'),_0x2ce49b=_0x233a72['commands']['get']('link');_0x2cdc90['enableDefaultAttributesIntegration']('link'),_0x2cdc90['enableDefaultAttributesIntegration']('unlink'),_0x2cdc90['registerInlineAttribute']('linkHref');for(const _0xb2921f of _0x2ce49b['manualDecorators'])_0x2cdc90['registerInlineAttribute'](_0xb2921f['id']),_0x2cdc90['descriptionFactory']['registerAttributeLabel'](_0xb2921f['id'],'link\x20('+_0xb2921f['label']['toLowerCase']()+')');_0x2cdc90['descriptionFactory']['registerDescriptionCallback'](_0x18f813=>{if('attribute'!=_0x18f813['type'])return;const {data:_0x577f20}=_0x18f813;if(!_0x577f20||'linkHref'!=_0x577f20['key'])return;const _0x1d8b07=_0x577f20['newValue'],_0x15f6bb=_0x233a72['locale'];return{'type':'format','content':null==_0x1d8b07?c(_0x15f6bb,'*Remove\x20link*'):c(_0x15f6bb,'*Set\x20link:*\x20%0','\x22'+_0x1d8b07+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x61026d=this['editor'],_0x1ecd62=_0x61026d['locale'];_0x61026d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474397=>{if('formatInline'!=_0x474397['type'])return;const {data:_0x4f440c}=_0x474397;if(_0x4f440c){if('link'==_0x4f440c['commandName']){const _0xb38c9e=_0x4f440c['commandParams'][0x0];return{'type':'format','content':c(_0x1ecd62,'*Set\x20link:*\x20%0','\x22'+_0xb38c9e+'\x22')};}return'unlink'==_0x4f440c['commandName']?{'type':'format','content':c(_0x1ecd62,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x6c1265{['afterInit'](){const _0x231eb4=this['editor'],_0x5ac1b9=_0x231eb4['locale'];if(!_0x231eb4['plugins']['has']('LegacyListEditing'))return;const _0x238839=_0x231eb4['plugins']['get']('TrackChangesEditing'),_0x5747af=_0x231eb4['plugins']['has']('LegacyTodoListEditing');function _0x407873(_0x59e237){return()=>{const _0x2a2417=_0x231eb4['model']['document']['selection'],_0x440b98=_0x231eb4['commands']['get'](_0x59e237);if(_0x440b98['value'])return void _0x231eb4['execute']('paragraph',{});const _0x48005d=_0x59e237['slice'](0x0,-0x4),_0x3ffb58=function(_0x396677,_0x3e57e1,_0x55061f){let _0x29897e=Array['from'](_0x396677)['filter'](_0x531f18=>function(_0x40c909,_0x2d916d){return _0x2d916d['checkChild'](_0x40c909['parent'],'listItem')&&!_0x2d916d['isObject'](_0x40c909);}(_0x531f18,_0x55061f));_0x29897e=_0x29897e['filter'](_0x1e51ce=>!_0x1e51ce['is']('element','listItem')||_0x1e51ce['getAttribute']('listType')!=_0x3e57e1);const _0x1b7af1=new Set();for(const _0x1519c5 of _0x29897e)_0x1519c5['is']('element','listItem')?_0x1b7af1['add'](Le(_0x1519c5)):_0x1b7af1['add'](_0x1519c5);return Array['from'](_0x1b7af1);}(_0x2a2417['getSelectedBlocks'](),_0x48005d,_0x231eb4['model']['schema']);_0x231eb4['model']['change'](()=>{for(const _0x48e3e9 of _0x3ffb58)_0x238839['markBlockFormat'](_0x48e3e9,{'commandName':_0x59e237,'commandParams':[{'forceValue':!_0x440b98['value']}],'formatGroupId':'blockName'},Ee(_0x48e3e9));});};}function _0x16c6f2(_0x24287a){return()=>{const _0x2d872f=function(_0x20a462){let _0x550eae=Array['from'](_0x20a462);const _0x582b46=_0x550eae['findIndex'](_0x5ce1ed=>'listItem'!=_0x5ce1ed['name']);return _0x582b46>-0x1&&(_0x550eae=_0x550eae['slice'](0x0,_0x582b46)),_0x550eae;}(_0x231eb4['model']['document']['selection']['getSelectedBlocks']()),_0x596005=_0x231eb4['model']['createRange'](_0x231eb4['model']['createPositionAt'](_0x2d872f[0x0],'before'),_0x231eb4['model']['createPositionAt'](_0x2d872f[_0x2d872f['length']-0x1],'end'));_0x231eb4['model']['change'](()=>{_0x238839['markBlockFormat'](_0x596005,{'commandName':_0x24287a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16c3d6){const _0x5b1859=new Set();for(const _0x4b685b of _0x16c3d6){let _0x4cf68b=_0x4b685b['nextSibling'];for(;_0x4cf68b&&_0x4cf68b['getAttribute']('listIndent')>_0x4b685b['getAttribute']('listIndent');)_0x5b1859['add'](_0x4cf68b),_0x4cf68b=_0x4cf68b['nextSibling'];}return Array['from'](_0x5b1859);}(_0x2d872f));});};}_0x238839['enableCommand']('numberedList',_0x407873('numberedList')),_0x238839['enableCommand']('bulletedList',_0x407873('bulletedList')),_0x5747af&&_0x238839['enableCommand']('todoList',_0x407873('todoList')),_0x238839['enableCommand']('indentList',_0x16c6f2('indentList')),_0x238839['enableCommand']('outdentList',_0x16c6f2('outdentList')),_0x5747af&&_0x238839['enableCommand']('checkTodoList',()=>{const _0x5d01b0=_0x231eb4['commands']['get']('checkTodoList'),_0x4e8984=Array['from'](_0x5d01b0['_selectedElements']);_0x4e8984['filter'](_0x22fcf2=>_0x22fcf2['getAttribute']('todoListChecked')!=_0x5d01b0['value']),_0x231eb4['model']['change'](()=>{for(const _0x1d82c2 of _0x4e8984)_0x238839['markBlockFormat'](_0x1d82c2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d01b0['value']}]});});}),_0x238839['descriptionFactory']['registerElementLabel']('listItem',_0x501cb5=>c(_0x5ac1b9,'ELEMENT_LIST_ITEM',_0x501cb5)),_0x238839['descriptionFactory']['registerDescriptionCallback'](_0x47ca02=>{if('formatBlock'!=_0x47ca02['type']&&'formatInline'!=_0x47ca02['type'])return;const {data:_0x45acc3}=_0x47ca02;if(_0x45acc3){if('numberedList'==_0x45acc3['commandName']||'bulletedList'==_0x45acc3['commandName']||'todoList'==_0x45acc3['commandName'])switch(_0x45acc3['commandName']['replace']('List','')){case'bulleted':return _0x451994(c(_0x5ac1b9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x451994(c(_0x5ac1b9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x451994(c(_0x5ac1b9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x45acc3['commandName'])return{'type':'format','content':c(_0x5ac1b9,'*Indent:*\x20%0',c(_0x5ac1b9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x45acc3['commandName'])return{'type':'format','content':c(_0x5ac1b9,'*Outdent:*\x20%0',c(_0x5ac1b9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x45acc3['commandName'])return _0x45acc3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5ac1b9,'*Check\x20item*')}:{'type':'format','content':c(_0x5ac1b9,'*Uncheck\x20item*')};}function _0x451994(_0x1523b7){return{'type':'format','content':c(_0x5ac1b9,'*Change\x20to:*\x20%0',_0x1523b7)};}});}}function Le(_0x3d3d43){const _0x2d9cd7=_0x3d3d43['getAttribute']('listIndent');if(0x0==_0x2d9cd7)return _0x3d3d43;let _0x117c79=_0x3d3d43;for(;_0x3d3d43['previousSibling']&&_0x3d3d43['previousSibling']['is']('element','listItem');){const _0x31167b=_0x3d3d43['previousSibling']['getAttribute']('listIndent');if(_0x31167b==_0x2d9cd7)_0x117c79=_0x3d3d43['previousSibling'];else{if(_0x31167b<_0x2d9cd7)break;}_0x3d3d43=_0x3d3d43['previousSibling'];}return _0x117c79;}function Ee(_0x43d134){const _0x8c5a00=[];if(_0x43d134['is']('element','listItem')&&_0x43d134['getAttribute']('listIndent')>0x0){let _0x512492=_0x43d134['nextSibling'];for(;_0x512492&&'listItem'==_0x512492['name']&&_0x512492['getAttribute']('listIndent')==_0x43d134['getAttribute']('listIndent');)_0x8c5a00['push'](_0x512492),_0x512492=_0x512492['nextSibling'];}return _0x8c5a00;}class Q extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x440e7a=this['editor']['config']['get']('list.properties'),_0x2a5644=this['editor']['plugins']['get']('TrackChangesEditing');_0x440e7a['styles']&&_0x2a5644['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x440e7a['reversed']&&_0x2a5644['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x440e7a['startIndex']&&_0x2a5644['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2a5644['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35411a,_0x27d60a={}){const _0x3b9122=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18391=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b9122['markMultiRangeBlockFormat'](_0x18391,{'commandName':'listStyle','commandParams':[{'type':_0x27d60a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d8781,_0x4dc466={}){const _0x98322=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3066ac=this['_getSuggestionBlocks'](_0x418040=>_0x418040['is']('element','listItem')&&'numbered'===_0x418040['getAttribute']('listType'));if(_0x3066ac['length']<0x1)return;const _0x2abe24=_0x3066ac['map'](_0xf41780=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf41780,'before'),this['editor']['model']['createPositionAt'](_0xf41780,0x0)));this['editor']['model']['change'](()=>{_0x98322['markMultiRangeBlockFormat'](_0x2abe24,{'commandName':'listReversed','commandParams':[{'reversed':_0x4dc466['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4cbd50,_0x385569={}){const _0xa31f62=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3482ca=this['_getSuggestionBlocks'](_0x5e2fd6=>_0x5e2fd6['is']('element','listItem')&&'numbered'===_0x5e2fd6['getAttribute']('listType'));if(_0x3482ca['length']<0x1)return;const _0x2463f3=_0x3482ca['map'](_0x53ae97=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53ae97,'before'),this['editor']['model']['createPositionAt'](_0x53ae97,0x0)));this['editor']['model']['change'](()=>{_0xa31f62['markMultiRangeBlockFormat'](_0x2463f3,{'commandName':'listStart','commandParams':[{'startIndex':_0x385569['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2adb8f){if('formatBlock'!=_0x2adb8f['type']&&'formatInline'!=_0x2adb8f['type'])return;const _0x344459=this['editor']['locale'],{data:_0x437d15}=_0x2adb8f;if(!_0x437d15)return;let _0x2bd4f3,_0x2db2b1;switch(_0x437d15['commandName']){case'listStyle':_0x2bd4f3='*Change\x20to:*\x20%0',_0x2db2b1={'type':'format','content':c(_0x344459,_0x2bd4f3,c(_0x344459,this['_getTranslationKeyForListStyle'](_0x437d15['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2bd4f3=_0x437d15['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2db2b1={'type':'format','content':c(_0x344459,_0x2bd4f3)};break;case'listStart':_0x2bd4f3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2db2b1={'type':'format','content':c(_0x344459,_0x2bd4f3,_0x437d15['commandParams'][0x0]['startIndex'])};}return _0x2db2b1;}['_getSuggestionBlocksForListStyle'](){const _0x5e5238=this['editor']['plugins']['get']('LegacyListUtils');let _0x28033a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x28033a[0x0]?.['is']('element','listItem')&&_0x28033a['unshift'](..._0x5e5238['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x28033a[_0x28033a['length']-0x1]?.['is']('element','listItem')&&_0x28033a['push'](..._0x5e5238['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x28033a=[...new Set(_0x28033a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x28033a=_0x28033a['filter'](_0x2cb00d=>_0x2cb00d['is']('element','listItem'))),_0x28033a;}['_getSuggestionBlocks'](_0xabbfc7){const _0x588608=this['editor']['plugins']['get']('LegacyListUtils');let _0x35c1db=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xabbfc7)['map'](_0x562a43=>{const _0x1ebb09=this['editor']['model']['createPositionAt'](_0x562a43,0x0);return[..._0x588608['getSiblingNodes'](_0x1ebb09,'backward'),..._0x588608['getSiblingNodes'](_0x1ebb09,'forward')];})['flat']();return _0x35c1db=[...new Set(_0x35c1db)],_0x35c1db;}['_getTranslationKeyForListStyle'](_0x4430ff){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4430ff)||'default')['toUpperCase']()+'_LIST_'+_0x4430ff['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x6c1265{['afterInit'](){const _0x2560a3=this['editor'];if(!_0x2560a3['plugins']['has']('MediaEmbedEditing'))return;const _0x4fe43b=_0x2560a3['plugins']['get']('TrackChangesEditing'),_0x365c95=_0x2560a3['locale'];_0x4fe43b['enableCommand']('mediaEmbed'),_0x4fe43b['descriptionFactory']['registerElementLabel']('media',_0xaeb4a5=>c(_0x365c95,'ELEMENT_MEDIA',_0xaeb4a5)),_0x2560a3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xb181d0,{writer:_0x415ebb,options:_0x42f70c})=>{if(_0x42f70c['showSuggestionHighlights'])return _0x415ebb['createEmptyElement']('div');},'converterPriority':'high'}),_0x2560a3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4c25bf,_0x30a01f,_0x176954)=>{_0x176954['options']['showSuggestionHighlights']&&_0x4c25bf['stop']();},{'priority':'high'});}}class pt extends _0x6c1265{['afterInit'](){const _0x519836=this['editor'];_0x519836['plugins']['has']('MentionEditing')&&_0x519836['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x6c1265{['afterInit'](){const _0xa88ddd=this['editor'];if(!_0xa88ddd['plugins']['has']('MergeFieldsEditing'))return;const _0x5eb080=_0xa88ddd['plugins']['get']('TrackChangesEditing'),_0x3c792a=_0xa88ddd['locale'];_0x5eb080['enableCommand']('insertMergeField'),_0x5eb080['enableCommand']('insertMergeFieldBlock'),_0x5eb080['enableCommand']('insertMergeFieldImage'),_0x5eb080['descriptionFactory']['registerElementLabel']('mergeField',_0x1e6168=>c(_0x3c792a,'ELEMENT_MERGE_FIELD',_0x1e6168)),_0x5eb080['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2a54b2=>c(_0x3c792a,'ELEMENT_MERGE_FIELD',_0x2a54b2)),_0x5eb080['descriptionFactory']['registerDescriptionCallback'](_0x480918=>{if('insertion'!=_0x480918['type']&&'deletion'!=_0x480918['type'])return;const _0x2b67e4=_0x480918['getContainedElement']();if(null==_0x2b67e4)return;const _0x1caff7=_0xa88ddd['plugins']['get']('MergeFieldsEditing');let _0x3575de;switch(_0x1caff7['getMergeFieldType'](_0x2b67e4)){case null:return;case'image':{const _0x14b5ac=_0x1caff7['unwrapAffixes'](_0x2b67e4['getAttribute']('src'));_0x3575de=_0x1caff7['getLabel'](_0x14b5ac)||_0x14b5ac;break;}default:{const _0x115962=_0x2b67e4['getAttribute']('id');_0x3575de=_0x1caff7['getLabel'](_0x115962)||_0x115962;break;}}return'insertion'==_0x480918['type']?{'type':'insertion','content':c(_0x3c792a,'*Insert:*\x20%0','\x22'+_0x3575de+'\x22\x20'+c(_0x3c792a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3c792a,'*Remove:*\x20%0','\x22'+_0x3575de+'\x22\x20'+c(_0x3c792a,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x6c1265{['afterInit'](){const _0x3c314b=this['editor'],_0x2809c0=_0x3c314b['plugins']['get']('TrackChangesEditing');_0x3c314b['plugins']['has']('MultiLevelList')&&(_0x2809c0['enableDefaultAttributesIntegration']('multiLevelList'),_0x2809c0['registerBlockAttribute']('listMarkerStyle'),_0x2809c0['descriptionFactory']['registerDescriptionCallback'](_0x235dcf=>this['handleDescriptions'](_0x235dcf)));}['handleDescriptions'](_0x101148){const _0x1b72ed=this['editor']['locale'],{data:_0x46f6b1}=_0x101148,_0x4aa8ed={'type':'format','content':''};if(_0x46f6b1&&'listMarkerStyle'==_0x46f6b1['key']){if(!_0x46f6b1['oldValue'])return{'type':'format','content':c(_0x1b72ed,'*Set\x20format:*\x20%0',c(_0x1b72ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46f6b1['newValue']+')'};if(!_0x46f6b1['newValue']){let _0x577bc7=_0x101148['head'];for(;_0x577bc7;){if(_0x577bc7['data']&&'listType'==_0x577bc7['data']['key']&&_0x577bc7['data']['newValue'])return _0x4aa8ed;_0x577bc7=_0x577bc7['next'];}return{'type':'format','content':c(_0x1b72ed,'*Remove\x20format:*\x20%0',c(_0x1b72ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46f6b1['oldValue']+')'};}}}}class bt extends _0x6c1265{['afterInit'](){const _0x159c0b=this['editor'];if(!_0x159c0b['plugins']['has']('PageBreakEditing'))return;_0x159c0b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x509747=_0x159c0b['plugins']['get']('TrackChangesEditing'),_0x1cf6b0=_0x159c0b['locale'];_0x509747['descriptionFactory']['registerElementLabel']('pageBreak',_0x127cdc=>c(_0x1cf6b0,'ELEMENT_PAGE_BREAK',_0x127cdc));}}class yt extends _0x6c1265{['afterInit'](){const _0x58e048=this['editor'];if(!_0x58e048['plugins']['has']('Paragraph'))return;const _0x41d050=_0x58e048['locale'],_0x16635b=_0x58e048['plugins']['get']('TrackChangesEditing');_0x16635b['descriptionFactory']['registerElementLabel']('paragraph',_0xe5d99c=>c(_0x41d050,'ELEMENT_PARAGRAPH',_0xe5d99c)),_0x16635b['enableDefaultAttributesIntegration']('paragraph'),_0x16635b['enableCommand']('insertParagraph'),_0x58e048['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58e048),{'priority':'highest'}),_0x58e048['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1afa9d,_0x1d5423,_0x218c5e)=>{_0x218c5e['options']['showSuggestionHighlights']&&nr(_0x58e048,{'showActiveMarker':!0x1})(_0x1afa9d,_0x1d5423,_0x218c5e);},{'priority':'highest'});const _0x3ae675=_0x16635b['descriptionFactory'];_0x3ae675['registerDescriptionCallback'](_0x502c82=>{if('insertion'!==_0x502c82['type'])return;const {start:_0x20ea99,end:_0x5bac3d}=_0x502c82['getFirstRange']();if(!_0x20ea99['isTouching'](_0x5bac3d)||!_0x20ea99['nodeAfter'])return;const _0x49bda4=_0x58e048['model']['schema'],_0x3835f2=_0x20ea99['nodeAfter'];return _0x49bda4['isBlock'](_0x3835f2)&&!_0x49bda4['isLimit'](_0x3835f2)&&_0x49bda4['checkChild'](_0x3835f2,'$text')?{'type':'insertion','content':c(_0x41d050,'*Insert:*\x20%0',_0x3ae675['getItemLabel'](_0x3835f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41473e=this['editor'],_0x282a48=_0x41473e['locale'];_0x41473e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fec68=>{if('formatBlock'!=_0x3fec68['type'])return;const {data:_0x820f2c}=_0x3fec68;return _0x820f2c&&'paragraph'==_0x820f2c['commandName']?{'type':'format','content':c(_0x282a48,'*Change\x20to:*\x20%0',c(_0x282a48,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b0b03,{showActiveMarker:_0x26c64c=!0x0}={}){return(_0x3afa5b,_0x5f3175,_0x452cbe)=>{const _0x2646a8=_0x3b0b03['plugins']['get']('TrackChangesEditing'),_0x1b2193=_0x5f3175['markerRange']['start'],_0x22ba32=_0x5f3175['markerRange']['end'],_0x48d978=_0x3b0b03['model']['schema'];if(!_0x1b2193['isTouching'](_0x22ba32)||!_0x1b2193['nodeAfter'])return;const _0x1c6900=_0x1b2193['nodeAfter'];if(_0x48d978['isBlock'](_0x1c6900)&&!_0x48d978['isLimit'](_0x1c6900)&&_0x48d978['checkChild'](_0x1c6900,'$text')){if(!_0x452cbe['consumable']['consume'](_0x5f3175['markerRange'],_0x3afa5b['name']))return;const {authorId:_0x429c0c}=_0x2646a8['_splitMarkerName'](_0x5f3175['markerName']),_0x4d7bf3=_0x452cbe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x429c0c}),_0x3bc81b=_0x452cbe['mapper']['toViewPosition'](_0x22ba32);_0x26c64c&&_0x2646a8['activeMarkers']['includes'](_0x5f3175['markerName'])&&_0x452cbe['writer']['addClass']('ck-suggestion-marker--active',_0x4d7bf3),_0x452cbe['writer']['insert'](_0x3bc81b,_0x4d7bf3),_0x452cbe['mapper']['bindElementToMarker'](_0x4d7bf3,_0x5f3175['markerName']);}};}class jt extends _0x6c1265{['afterInit'](){const _0x235a02=this['editor'];_0x235a02['commands']['get']('replaceSource')&&_0x235a02['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x6c1265{['afterInit'](){const _0x4e199d=this['editor'];if(!_0x4e199d['plugins']['has']('RemoveFormatEditing'))return;_0x4e199d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aeb40=this['editor'];_0x3aeb40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f36d6=>{if('formatBlock'!=_0x1f36d6['type']&&'formatInline'!=_0x1f36d6['type'])return;const {data:_0x5e645f}=_0x1f36d6;return _0x5e645f&&'removeFormat'==_0x5e645f['commandName']?{'type':'format','content':c(_0x3aeb40['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x6c1265{['afterInit'](){const _0x52511f=this['editor'];if(!_0x52511f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x453661=_0x52511f['plugins']['get']('TrackChangesEditing');_0x453661['enableCommand']('goToPreviousRestrictedEditingException'),_0x453661['enableCommand']('goToNextRestrictedEditingException');const _0x4adb98=_0x52511f['plugins']['get']('RestrictedEditingModeEditing');_0x4adb98['enableCommand']('trackChanges'),_0x4adb98['enableCommand']('acceptSuggestion'),_0x4adb98['enableCommand']('discardSuggestion'),_0x4adb98['enableCommand']('acceptAllSuggestions'),_0x4adb98['enableCommand']('discardAllSuggestions'),_0x4adb98['enableCommand']('acceptSelectedSuggestions'),_0x4adb98['enableCommand']('discardSelectedSuggestions');}}class It extends _0x6c1265{static get['requires'](){return[_0xef751d];}['init'](){const _0x1b0d50=this['editor'],_0x187d3f=_0x1b0d50['plugins']['get']('TrackChangesEditing');_0x187d3f['enableCommand']('shiftEnter'),_0x1b0d50['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1b0d50),{'priority':'high'}),_0x1b0d50['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1b0d50),{'priority':'high'}),_0x1b0d50['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc681d2,_0x524199,_0x467d2d)=>{_0x467d2d['options']['showSuggestionHighlights']&&je(_0x1b0d50,{'showActiveMarker':!0x1})(_0xc681d2,_0x524199,_0x467d2d);}),_0x187d3f['descriptionFactory']['registerElementLabel']('softBreak',_0x139a14=>c(_0x1b0d50['locale'],'ELEMENT_LINE_BREAK',_0x139a14));}}function je(_0x211d43,{showActiveMarker:_0x3ab2c0=!0x0}={}){return(_0x1cd7f6,_0x43dfae,_0x527e25)=>{const _0x2c6a39=_0x211d43['plugins']['get']('TrackChangesEditing');if(!_0x527e25['consumable']['test'](_0x43dfae['markerRange'],_0x1cd7f6['name']))return;const _0x323fec=_0x211d43['model'];for(const _0x5555dc of _0x43dfae['markerRange']['getItems']()){if(!_0x5555dc['is']('element','softBreak'))continue;const _0x2b307c='deletion'==_0x43dfae['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x22ecf6}=_0x2c6a39['_splitMarkerName'](_0x43dfae['markerName']),_0x9999a7=_0x527e25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b307c,'data-author-id':_0x22ecf6}),_0x4b2596=_0x527e25['mapper']['toViewPosition'](_0x323fec['createPositionBefore'](_0x5555dc));_0x3ab2c0&&_0x2c6a39['activeMarkers']['includes'](_0x43dfae['markerName'])&&_0x527e25['writer']['addClass']('ck-suggestion-marker--active',_0x9999a7),_0x527e25['writer']['insert'](_0x4b2596,_0x9999a7),_0x527e25['mapper']['bindElementToMarker'](_0x9999a7,_0x43dfae['markerName']);}};}class _t extends _0x6c1265{['afterInit'](){const _0x4904ae=this['editor'],_0x4b1b49=_0x4904ae['model'],_0x41484c=_0x4904ae['locale'];if(!_0x4904ae['plugins']['has']('StandardEditingModeEditing'))return;const _0x4fb045=_0x4904ae['plugins']['get']('TrackChangesEditing'),_0x2259d4='restrictedEditingException',_0x4c5de2=_0x4904ae['commands']['get'](_0x2259d4);_0x4fb045['enableCommand'](_0x2259d4,(_0x56d055,_0x4b4858={})=>{const _0x46bb75=_0x4b1b49['document']['selection'];if(_0x46bb75['isCollapsed'])return void _0x56d055(_0x4b4858);const _0x32eede=void 0x0!==_0x4b4858['forceValue']?_0x4b4858['forceValue']:!_0x4c5de2['value'];_0x4b1b49['change'](()=>{const _0x475bac=Array['from'](_0x46bb75['getRanges']());for(const _0x4783b8 of _0x475bac){const _0x5194e6=_0x32eede?[_0x4783b8]:io(_0x2259d4,_0x4783b8,_0x4b1b49);for(const _0x501b7c of _0x5194e6)_0x4fb045['markInlineFormat'](_0x501b7c,{'commandName':_0x2259d4,'commandParams':[{'forceValue':_0x32eede}]});}});}),_0x4fb045['descriptionFactory']['registerDescriptionCallback'](_0x587f38=>{if('formatBlock'!=_0x587f38['type']&&'formatInline'!=_0x587f38['type'])return;const {data:_0x182bee}=_0x587f38;return _0x182bee&&_0x182bee['commandName']==_0x2259d4?_0x182bee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41484c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x41484c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x6c1265{['afterInit'](){const _0x5c9b1c=this['editor'];if(!_0x5c9b1c['plugins']['has']('Style')||!_0x5c9b1c['plugins']['has']('DataSchema'))return;const _0x4e4238=_0x5c9b1c['plugins']['get']('TrackChangesEditing'),_0x1810a1=_0x5c9b1c['locale'],_0x204c8f=_0x5c9b1c['config']['get']('style')||{},_0x25e638=_0x5c9b1c['plugins']['get']('GeneralHtmlSupport'),_0x4114d7=_0x5c9b1c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5c9b1c['plugins']['get']('DataSchema'),_0x204c8f['definitions']);_0x4e4238['enableDefaultAttributesIntegration']('style');const _0x5d3612=new Set();for(const _0x58762c of _0x4114d7['block']){const _0x1d44a8=_0x25e638['getGhsAttributeNameForElement'](_0x58762c['element']);_0x5d3612['add'](_0x1d44a8);}const _0x59e8d3=new Set();for(const _0x2914a8 of _0x4114d7['inline']){const _0x488af4=_0x25e638['getGhsAttributeNameForElement'](_0x2914a8['element']);_0x59e8d3['add'](_0x488af4);for(const _0x2bb8aa of _0x2914a8['ghsAttributes'])_0x59e8d3['add'](_0x2bb8aa);}for(const _0x2b5155 of _0x5d3612)_0x4e4238['registerBlockAttribute'](_0x2b5155),_0x4e4238['descriptionFactory']['registerAttributeLabel'](_0x2b5155,c(_0x1810a1,'FORMAT_STYLE'));for(const _0x452a1c of _0x59e8d3)_0x4e4238['registerInlineAttribute'](_0x452a1c),_0x4e4238['descriptionFactory']['registerAttributeLabel'](_0x452a1c,c(_0x1810a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49c2e6=this['editor'],_0x17ad47=_0x49c2e6['locale'];_0x49c2e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23b941=>{if('formatBlock'!=_0x23b941['type']&&'formatInline'!=_0x23b941['type'])return;const {data:_0x2b3bb9}=_0x23b941;return _0x2b3bb9&&'style'===_0x2b3bb9['commandName']?_0x2b3bb9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x17ad47,'*Set\x20format:*\x20%0',_0x2b3bb9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x17ad47,'*Remove\x20format:*\x20%0',_0x2b3bb9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x6c1265{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x437b1c){super(_0x437b1c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3e92fb=this['editor'],_0x29750c=_0x3e92fb['model']['document']['selection'];if(!_0x3e92fb['plugins']['has']('TableEditing'))return;const _0x433662=_0x3e92fb['locale'],_0x1520cd=_0x3e92fb['plugins']['get']('TrackChangesEditing'),_0x779dd8=_0x3e92fb['plugins']['get']('TableUtils');_0x1520cd['descriptionFactory']['registerElementLabel']('table',_0x89bc=>c(_0x433662,'ELEMENT_TABLE',_0x89bc)),this['_setupColumnsRowsFixing'](),_0x1520cd['enableCommand']('insertTable'),_0x1520cd['enableCommand']('selectTableRow'),_0x1520cd['enableCommand']('selectTableColumn');for(const _0x474495 of['insertTableRowAbove','insertTableRowBelow']){const _0x5b2fa5=_0x3e92fb['commands']['get'](_0x474495);_0x1520cd['enableCommand'](_0x474495,_0x2bffee=>{_0x3e92fb['model']['change'](_0x37de5b=>{_0x2bffee();const _0x2d1219='above'===_0x5b2fa5['order'],_0x4ee343=_0x779dd8['getSelectionAffectedTableCells'](_0x29750c),_0x1e0213=_0x779dd8['getRowIndexes'](_0x4ee343),_0x405085=_0x2d1219?_0x1e0213['first']-0x1:_0x1e0213['last']+0x1,_0xdba984=_0x4ee343[0x0]['findAncestor']('table'),_0x12c4e4=_0x779dd8['createTableWalker'](_0xdba984,{'startRow':_0x405085,'endRow':_0x405085}),_0x2c927b=Array['from'](_0x12c4e4)['map'](_0x11d138=>_0x37de5b['createRangeOn'](_0x11d138['cell']));_0x1520cd['markMultiRangeInsertion'](_0x2c927b,'tableRow');});});}for(const _0x26aae1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1ffae7=_0x3e92fb['commands']['get'](_0x26aae1);_0x1520cd['enableCommand'](_0x26aae1,_0xc0ec45=>{_0x3e92fb['model']['change'](_0x191115=>{_0xc0ec45();const _0x1a7f3c='left'===_0x1ffae7['order'],_0x5e7d56=_0x779dd8['getSelectionAffectedTableCells'](_0x29750c),_0x5d9328=_0x779dd8['getColumnIndexes'](_0x5e7d56),_0x4b58d1=_0x1a7f3c?_0x5d9328['first']-0x1:_0x5d9328['last']+0x1,_0x2d50c4=_0x5e7d56[0x0]['findAncestor']('table'),_0x1d1859=_0x779dd8['createTableWalker'](_0x2d50c4,{'startRow':0x0,'column':_0x4b58d1,'includeAllSlots':!0x1}),_0x374950=Array['from'](_0x1d1859)['map'](_0x484810=>_0x191115['createRangeOn'](_0x484810['cell']));_0x1520cd['markMultiRangeInsertion'](_0x374950,'tableColumn');});});}for(const _0x46bf2f of['removeTableRow','removeTableColumn']){const _0x5204d3=_0x46bf2f['substr'](0xb),_0x5777d6=_0x5204d3['toLowerCase'](),_0x3f116a=_0x5777d6['substr'](0x0,0x3)+'span',_0x364ef9='table'+_0x5204d3,_0x1e3d0d='min'+_0x5204d3,_0x295bab='max'+_0x5204d3;_0x1520cd['enableCommand'](_0x46bf2f,()=>{_0x3e92fb['model']['change'](_0x5d7434=>{const _0x14b7fd=_0x779dd8['getSelectionAffectedTableCells'](_0x29750c),_0x53537f=_0x14b7fd[0x0]['findAncestor']('table');let _0x170834;if('removeTableRow'==_0x46bf2f){const _0x52855c=_0x779dd8['getRowIndexes'](_0x14b7fd);_0x170834={'startRow':_0x52855c['first'],'endRow':_0x52855c['last'],'includeAllSlots':!0x0};}else{const _0x206736=_0x779dd8['getColumnIndexes'](_0x14b7fd);_0x170834={'startColumn':_0x206736['first'],'endColumn':_0x206736['last'],'includeAllSlots':!0x0};}const _0x473ed8=_0x779dd8['createTableWalker'](_0x53537f,_0x170834),_0x38ab55=Array['from'](_0x473ed8)['map'](({cell:_0x4077a2})=>_0x4077a2),_0x5c6f0c=Ne(_0x38ab55['filter'](_0x34a319=>_0x34a319['hasAttribute'](_0x3f116a))),_0x88cff7=Ne(_0x38ab55['filter'](_0x2e977a=>!_0x2e977a['hasAttribute'](_0x3f116a)))['map'](_0x42b291=>_0x5d7434['createRangeOn'](_0x42b291)),_0x32829d=_0x1520cd['markMultiRangeDeletion'](_0x88cff7,_0x364ef9);if(_0x32829d&&('tableRow'==_0x32829d['subType']||'tableColumn'==_0x32829d['subType'])){const _0x3b2890=this['_getSuggestionCoords'](_0x32829d);for(const _0x161d66 of _0x5c6f0c){const _0x4ce990=_0x5d7434['createRangeOn'](_0x161d66),_0x1f5598=_0x779dd8['getCellLocation'](_0x161d66),_0x20f77f=_0x161d66['getAttribute'](_0x3f116a)-0x1,_0x3e4702=_0x3b2890[_0x1e3d0d],_0x5d4361=_0x3b2890[_0x295bab];_0x3e4702<=_0x1f5598[_0x5777d6]&&_0x1f5598[_0x5777d6]+_0x20f77f<=_0x5d4361&&_0x32829d['addRange'](_0x4ce990);}}});});}function _0xf22089(_0x2064d3){const _0x7a4ef8=Array['from'](_0x29750c['getRanges']())['map'](_0x73e5da=>_0x26d742['fromRange'](_0x73e5da));_0x3e92fb['model']['change'](_0x3e3011=>{const _0xa938c3=_0x3e3011['batch'];_0x2064d3=_0x2064d3['filter'](_0x2001af=>'$graveyard'!=_0x2001af['root']['rootName']),_0x3e3011['setSelection'](_0x2064d3),_0x3e92fb['commands']['get']('removeTableRow')['refresh'](),_0x3e92fb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3e92fb['model']['enqueueChange'](()=>{_0x3e92fb['model']['enqueueChange'](_0xa938c3,_0x2ba2c9=>{const _0x17d310=_0x7a4ef8['filter'](_0xc7bc00=>'$graveyard'!=_0xc7bc00['root']['rootName']);_0x17d310['length']>0x0&&_0x2ba2c9['setSelection'](_0x17d310);for(const _0x382bb7 of _0x7a4ef8)_0x382bb7['detach']();});});});}function _0x12b427(_0xf7edc5){_0x3e92fb['model']['change'](_0x45706c=>{const _0xfd2a74=Array['from'](_0x29750c['getRanges']())['map'](_0x303077=>_0x26d742['fromRange'](_0x303077)),_0x5ed6f1=[];for(const _0x510e5a of _0xf7edc5)for(const _0x2996f3 of _0x510e5a['getItems']({'shallow':!0x0}))_0x5ed6f1['push'](_0x2996f3);for(const _0x3b74a1 of _0x5ed6f1)'$graveyard'!=_0x3b74a1['root']['rootName']&&(_0x45706c['setSelection'](_0x45706c['createPositionAt'](_0x3b74a1,0x0)),_0x3e92fb['commands']['get']('removeTableColumn')['refresh'](),_0x3e92fb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x27f995=_0xfd2a74['filter'](_0x314bf7=>'$graveyard'!=_0x314bf7['root']['rootName']);_0x27f995['length']>0x0&&_0x45706c['setSelection'](_0x27f995);for(const _0x18c425 of _0xfd2a74)_0x18c425['detach']();});}function _0x781ac2(_0x2912cc,_0xbae273){return _0xbae273['every'](_0x5e3eac=>_0x2912cc['some'](_0x15278c=>_0x15278c['end']['isEqual'](_0x5e3eac['start'])||_0x5e3eac['end']['isEqual'](_0x15278c['start'])));}function _0x1fbd5f(_0x54f4da,_0x559b5f){return!_0x54f4da['some'](_0x3cb925=>_0x559b5f['some'](_0x532ca7=>_0x3cb925['isIntersecting'](_0x532ca7)))&&_0x54f4da['some'](_0x3133b7=>_0x559b5f['some'](_0x4bea55=>_0x3133b7['end']['isTouching'](_0x4bea55['start'])));}_0x3e92fb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cdac0,_0x25de3d,_0x4b33dc)=>{if(!_0x4b33dc['options']['showSuggestionHighlights'])return;const _0x3b0275=_0x25de3d['item'];if(!_0x3b0275)return;const _0x53f2eb=_0x4b33dc['mapper']['toViewElement'](_0x3b0275);function _0x47e8f7(_0x58a28c){return Array['isArray'](_0x58a28c)?_0x58a28c:[_0x58a28c];}_0x53f2eb&&'tableCell'===_0x3b0275['name']&&_0x4305d4(_0x53f2eb,_0x4b33dc['writer'],(_0x4d7596,_0x4a48b2,_0x29b4b8)=>_0x29b4b8['addClass'](_0x47e8f7(_0x4a48b2['classes']),_0x4d7596),(_0x1d7487,_0x43331e,_0x15d77b)=>_0x15d77b['removeClass'](_0x47e8f7(_0x43331e['classes']),_0x1d7487));},{'priority':'highest'}),_0x1520cd['descriptionFactory']['registerDescriptionCallback'](_0x34d5b9=>{if('insertion'!=_0x34d5b9['type']&&'deletion'!=_0x34d5b9['type'])return;const _0x4a83d4=_0x34d5b9['getContainedElement']();if(null!=_0x4a83d4&&_0x4a83d4['is']('element','table')){if('insertion'==_0x34d5b9['type']){const _0x1af9f3=_0x34d5b9['getItems']()['filter'](_0x3e4bf6=>_0x3e4bf6['is']('$textProxy'))['map'](_0x4844a9=>_0x4844a9['data']);if(_0x1af9f3['length'])return{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1af9f3['join']('\x20')+'\x22'))};}if('deletion'==_0x34d5b9['type']){const _0x27e905=_0x34d5b9['getItems']()['filter'](_0x5ba370=>_0x5ba370['is']('$textProxy'))['map'](_0xdf20ed=>_0xdf20ed['data']);if(_0x27e905['length'])return{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27e905['join']('\x20')+'\x22'))};}}}),_0x1520cd['descriptionFactory']['registerDescriptionCallback'](_0x8ecec9=>{if('tableRow'==_0x8ecec9['subType']){const _0x596cb5=_0x8ecec9['getItems']()['filter'](_0x19c74d=>_0x19c74d['is']('$textProxy'))['map'](_0x2cfc31=>_0x2cfc31['data']),_0x126b2d=this['_getSuggestionCoords'](_0x8ecec9),_0x4b9bdf=_0x126b2d['maxRow']-_0x126b2d['minRow']+0x1;if('insertion'==_0x8ecec9['type'])return _0x596cb5['length']?{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b9bdf,'\x22'+_0x596cb5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW',_0x4b9bdf))};if('deletion'==_0x8ecec9['type'])return _0x596cb5['length']?{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b9bdf,'\x22'+_0x596cb5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW',_0x4b9bdf))};}if('tableColumn'==_0x8ecec9['subType']){const _0x2de39c=_0x8ecec9['getItems']()['filter'](_0x37e3ad=>_0x37e3ad['is']('$textProxy'))['map'](_0x924bf=>_0x924bf['data']),_0x31456c=this['_getSuggestionCoords'](_0x8ecec9),_0x40b5f1=_0x31456c['maxColumn']-_0x31456c['minColumn']+0x1;if('insertion'==_0x8ecec9['type'])return _0x2de39c['length']?{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40b5f1,'\x22'+_0x2de39c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN',_0x40b5f1))};if('deletion'==_0x8ecec9['type'])return _0x2de39c['length']?{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40b5f1,'\x22'+_0x2de39c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN',_0x40b5f1))};}}),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf22089),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf22089),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x12b427),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x12b427),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x781ac2),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x781ac2),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1fbd5f),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1fbd5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x45db7b=this['editor'],_0x329313=_0x45db7b['model']['document']['selection'];return(_0x48fa03,_0x5d8c27)=>{_0x45db7b['model']['change'](_0x54a617=>{const {commandName:_0xa4d6f0,commandParams:_0x434a5b}=_0x5d8c27;let _0x539b14=_0x48fa03[0x0]['end']['nodeBefore'];_0x434a5b&&_0x434a5b[0x0]&&!0x1===_0x434a5b[0x0]['forceValue']&&(_0x539b14=_0x48fa03[0x0]['start']['nodeAfter']);const _0x5294dc=_0x54a617['createRangeIn'](_0x539b14);if('$graveyard'==_0x5294dc['root']['rootName'])return;const _0x1f658c=Array['from'](_0x329313['getRanges']())['map'](_0x543268=>_0x26d742['fromRange'](_0x543268));_0x54a617['setSelection'](_0x5294dc),_0x45db7b['commands']['get'](_0xa4d6f0)['refresh'](),_0x434a5b['push']({'forceDefaultExecution':!0x0}),_0x45db7b['execute'](_0xa4d6f0,..._0x434a5b);const _0x4ca6c8=_0x1f658c['filter'](_0x2205a5=>'$graveyard'!=_0x2205a5['root']['rootName']);_0x4ca6c8['length']>0x0&&_0x54a617['setSelection'](_0x4ca6c8);for(const _0xfaa8d of _0x1f658c)_0xfaa8d['detach']();});};}['_getCoordsForCells'](_0x563370){const _0x3fb1c9=this['editor']['plugins']['get']('TableUtils');let _0x3fb02f=Number['MAX_SAFE_INTEGER'],_0x115863=Number['MIN_SAFE_INTEGER'],_0xa41318=Number['MAX_SAFE_INTEGER'],_0x93bef7=Number['MIN_SAFE_INTEGER'];for(const _0x260909 of _0x563370){if('$graveyard'==_0x260909['root']['rootName'])continue;const {row:_0x41316f,column:_0x1db193}=_0x3fb1c9['getCellLocation'](_0x260909),_0xb9dfe8=_0x260909['hasAttribute']('rowspan')?_0x260909['getAttribute']('rowspan')-0x1:0x0,_0x3c510a=_0x260909['hasAttribute']('colspan')?_0x260909['getAttribute']('colspan')-0x1:0x0;_0x3fb02f=_0x41316f<_0x3fb02f?_0x41316f:_0x3fb02f,_0x115863=_0x41316f+_0xb9dfe8>_0x115863?_0x41316f+_0xb9dfe8:_0x115863,_0xa41318=_0x1db193<_0xa41318?_0x1db193:_0xa41318,_0x93bef7=_0x1db193+_0x3c510a>_0x93bef7?_0x1db193+_0x3c510a:_0x93bef7;}return{'minRow':_0x3fb02f,'maxRow':_0x115863,'minColumn':_0xa41318,'maxColumn':_0x93bef7};}['_setupColumnsRowsFixing'](){const _0x25f6a3=this['editor'],_0x590c0f=_0x25f6a3['plugins']['get']('TrackChangesEditing'),_0x4de92e=_0x25f6a3['plugins']['get']('TableUtils');_0x25f6a3['model']['document']['on']('change:data',()=>{const _0x3476cd=Array['from'](_0x25f6a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32b1c9,data:_0x5ce66b}of _0x3476cd){const {group:_0x44162a,id:_0x2f992b,subType:_0x5c1d18}=_0x590c0f['_splitMarkerName'](_0x32b1c9);if('suggestion'!=_0x44162a)continue;if(null!=_0x5ce66b['oldRange'])continue;const _0x3745cf=_0x590c0f['getSuggestion'](_0x2f992b);this['_tablePostFixingSubtypes']['includes'](_0x5c1d18)&&this['_tableSuggestions']['add'](_0x3745cf);}},{'priority':'low'});const _0x5c8355=(_0x32ad45,_0x3c8c61)=>{let _0x5d0c0b=!0x1;const _0x5d6318=_0x3c8c61['createRangeOn'](_0x32ad45),_0x4f6aaf=_0x32ad45['findAncestor']('table'),_0x2a37ba=_0x4de92e['getCellLocation'](_0x32ad45);for(const _0xd33bc0 of this['_tableSuggestions']){const _0x4bdacb=_0xd33bc0['subType'],_0x4de22f=_0x4bdacb['startsWith']('tablePaste'),_0x1fcf5b=_0x4bdacb['substr'](_0x4de22f?0xa:0x5),_0x48667c=_0x1fcf5b['toLowerCase'](),_0xf36dfe=_0x48667c['substr'](0x0,0x3)+'span',_0x58ac57='min'+_0x1fcf5b,_0x1a813b='max'+_0x1fcf5b;if(!_0xd33bc0['isInContent'])continue;if(_0x4f6aaf!=_0xd33bc0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xd33bc0['isIntersectingWithRange'](_0x5d6318))continue;const _0x232c06=_0x32ad45['hasAttribute'](_0xf36dfe)?_0x32ad45['getAttribute'](_0xf36dfe)-0x1:0x0,_0x527c7a=this['_getSuggestionCoords'](_0xd33bc0),_0x3e0701=_0x527c7a[_0x58ac57],_0x1d552f=_0x527c7a[_0x1a813b];_0x3e0701<=_0x2a37ba[_0x48667c]&&_0x2a37ba[_0x48667c]+_0x232c06<=_0x1d552f&&(_0xd33bc0['addRange'](_0x5d6318),_0x5d0c0b=!0x0);}return _0x5d0c0b;};_0x25f6a3['model']['document']['registerPostFixer'](_0x205b0c=>{let _0x537a93=!0x1;for(const _0x3ffd4f of _0x25f6a3['model']['document']['differ']['getChanges']())if('insert'==_0x3ffd4f['type']){if('tableRow'==_0x3ffd4f['name']){for(const _0x162a73 of _0x3ffd4f['position']['nodeAfter']['getChildren']())_0x537a93=_0x537a93||_0x5c8355(_0x162a73,_0x205b0c);}else'tableCell'==_0x3ffd4f['name']&&(_0x537a93=_0x537a93||_0x5c8355(_0x3ffd4f['position']['nodeAfter'],_0x205b0c));}return _0x537a93;});}['_getSuggestionCoords'](_0x52c4b1){return this['_getCoordsForCells'](_0x52c4b1['getRanges']()['map'](_0x572416=>_0x572416['start']['nodeAfter']));}}function Ne(_0x297979){return Array['from'](new Set(_0x297979)['values']());}class Nt extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0x51898e=this['editor'],_0xa9e151=_0x51898e['model']['document']['selection'],_0x2d9c1c=_0x51898e['locale'];if(!_0x51898e['plugins']['has']('TableEditing'))return;const _0x4d90a6=_0x51898e['plugins']['get']('TrackChangesEditing'),_0x2d57cd=_0x51898e['plugins']['get']('TableUtils'),_0x26ddec=_0x51898e['plugins']['get'](Ct);_0x26ddec['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4d90a6['enableCommand']('mergeTableCells',()=>{const _0x36b578=_0x2d57cd['getSelectionAffectedTableCells'](_0x51898e['model']['document']['selection']);_0x51898e['model']['change'](()=>{_0x4d90a6['markMultiRangeBlockFormat'](_0x36b578,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x51898e['commands']['get']('mergeTableCells')['on']('execute',(_0x267242,_0x453484)=>{_0x51898e['commands']['get']('trackChanges')['value']&&(_0x453484['length']>0x0&&_0x453484[_0x453484['length']-0x1]&&_0x453484[_0x453484['length']-0x1]['forceDefaultExecution']||_0x4d90a6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x267242['stop']());},{'priority':'highest'});for(const _0x3339bf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x423c75=_0x51898e['commands']['get'](_0x3339bf);_0x4d90a6['enableCommand'](_0x3339bf,()=>{const _0x2228da=_0x51898e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b4804=>_0x3b4804['is']('element','tableCell')),_0x47b55a=_0x423c75['value'];_0x51898e['model']['change'](()=>{_0x4d90a6['markMultiRangeBlockFormat']([_0x2228da,_0x47b55a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x441e20 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4dcc6d=_0x51898e['commands']['get'](_0x441e20);_0x4d90a6['enableCommand'](_0x441e20,()=>{const _0x1750d6=_0x2d57cd['getSelectionAffectedTableCells'](_0x51898e['model']['document']['selection'])[0x0],_0x5c956c=_0x1750d6['findAncestor']('table'),{column:_0x3a22e7,row:_0xfbbfee}=_0x2d57cd['getCellLocation'](_0x1750d6);let _0x46d4ba=[];if('horizontally'==_0x4dcc6d['direction']){const _0x4c07fd=_0x2d57cd['createTableWalker'](_0x5c956c,{'startRow':_0xfbbfee,'endRow':_0xfbbfee,'includeAllSlots':!0x0});_0x46d4ba=Array['from'](_0x4c07fd)['map'](_0x5f3f12=>_0x5f3f12['cell']);}else{const _0x14b5f1=_0x2d57cd['createTableWalker'](_0x5c956c,{'column':_0x3a22e7,'includeAllSlots':!0x0});_0x46d4ba=Array['from'](_0x14b5f1)['map'](_0x328369=>_0x328369['cell']);}_0x51898e['model']['change'](_0x2d2b87=>{_0x4d90a6['markBlockFormat'](_0x2d2b87['createRangeOn'](_0x1750d6),{'commandName':_0x441e20,'commandParams':[]},_0x46d4ba,_0x441e20);});});}_0x4d90a6['descriptionFactory']['registerDescriptionCallback'](_0x2ac2a9=>{if('formatBlock'!=_0x2ac2a9['type']&&'formatInline'!=_0x2ac2a9['type'])return;const {data:_0x31e008}=_0x2ac2a9;return _0x31e008&&'mergeTableCells'==_0x31e008['commandName']?{'type':'format','content':c(_0x2d9c1c,'*Merge\x20cells*')}:void 0x0;}),_0x4d90a6['descriptionFactory']['registerDescriptionCallback'](_0x43a753=>{if('formatBlock'!=_0x43a753['type']&&'formatInline'!=_0x43a753['type'])return;const {data:_0xcaed0f}=_0x43a753;return _0xcaed0f?'splitTableCellVertically'==_0xcaed0f['commandName']?{'type':'format','content':c(_0x2d9c1c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xcaed0f['commandName']?{'type':'format','content':c(_0x2d9c1c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x330daf=_0x26ddec['_acceptFormatSuggestionCallbackFactory']();for(const _0x4759a6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4d90a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4759a6,'accept',_0x330daf);for(const _0x188894 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4d90a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x188894,'accept',_0x330daf);_0x4d90a6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x23e5d7=>{_0x51898e['model']['change'](_0x28ee9d=>{const _0x22225d=Array['from'](_0xa9e151['getRanges']())['map'](_0x12fc69=>_0x26d742['fromRange'](_0x12fc69));_0x28ee9d['setSelection'](_0x23e5d7),_0x51898e['commands']['get']('mergeTableCells')['refresh'](),_0x51898e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x16bb15=_0x22225d['filter'](_0x373b53=>'$graveyard'!=_0x373b53['root']['rootName']);_0x16bb15['length']>0x0&&_0x28ee9d['setSelection'](_0x16bb15);for(const _0x396ff7 of _0x22225d)_0x396ff7['detach']();});});for(const _0x2f8927 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x118e2d=_0x51898e['commands']['get'](_0x2f8927);_0x118e2d['on']('set:isEnabled',(_0x28b36b,_0x420f00,_0x8d41e8)=>{if(_0x8d41e8){const _0x303be0=_0x51898e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3652f2=>_0x3652f2['is']('element','tableCell'));this['_areMergableCells'](_0x118e2d['value'],_0x303be0)||(_0x28b36b['return']=!0x1,_0x28b36b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4b38ff=this['editor']['commands']['get']('mergeTableCells'),_0x1dfd7b=this['editor']['plugins']['get']('TableUtils');if(!_0x4b38ff['isEnabled'])return!0x1;const _0x5e46bf=_0x1dfd7b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11a092 of _0x5e46bf)for(const _0x21d943 of _0x5e46bf)if(_0x11a092!=_0x21d943&&!this['_areMergableCells'](_0x11a092,_0x21d943))return!0x1;return!0x0;}['_areMergableCells'](_0x1fcf5f,_0x168991){const _0x19da1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351524=this['editor']['model']['createRangeOn'](_0x1fcf5f),_0x4bfc0e=this['editor']['model']['createRangeOn'](_0x168991),_0x24875e=new Set(),_0x375d96=new Set();for(const _0x1c275c of _0x19da1c['getSuggestions']())if(('insertion'==_0x1c275c['type']||'deletion'==_0x1c275c['type']||'mergeTableCells'==_0x1c275c['subType'])&&_0x1c275c['isInContent']){for(const _0x218f96 of _0x1c275c['getRanges']())_0x218f96['containsRange'](_0x351524,!0x0)&&_0x24875e['add'](_0x1c275c['type']+':'+_0x1c275c['author']['id']),_0x218f96['containsRange'](_0x4bfc0e,!0x0)&&_0x375d96['add'](_0x1c275c['type']+':'+_0x1c275c['author']['id']);}if(_0x24875e['size']!=_0x375d96['size'])return!0x1;for(const _0x1c57a1 of _0x24875e)if(!_0x375d96['has'](_0x1c57a1))return!0x1;return!0x0;}}class Dt extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a68c0=this['editor'];if(!_0x2a68c0['plugins']['has']('TableEditing'))return;const _0x5c04f1=_0x2a68c0['locale'],_0x1e3889=_0x2a68c0['plugins']['get']('TrackChangesEditing');_0x1e3889['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1e3889['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1e3889['registerBlockAttribute']('headingRows'),_0x1e3889['registerBlockAttribute']('headingColumns'),_0x1e3889['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5c04f1,'FORMAT_HEADER_ROW')),_0x1e3889['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5c04f1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x451327=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f500a=this['editor']['plugins']['get']('TableUtils'),_0x2a2fd0=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5c8868({showActiveMarker:_0x426787=!0x0,setDataAttribute:_0x39f66a=!0x0}={}){return(_0x1d310f,_0x1e84a4,_0x1426f8)=>{const {type:_0x7376f4,id:_0x3e1621}=_0x451327['_splitMarkerName'](_0x1e84a4['markerName']),_0x5a623f=_0x451327['getSuggestion'](_0x3e1621),_0x552ae3=_0x5a623f['data'];if('formatBlock'!=_0x5a623f['type']||!_0x552ae3||'setTableColumnHeader'!=_0x552ae3['commandName'])return;if(_0x1e84a4['item'])return void _0x1d310f['stop']();if(!_0x1426f8['consumable']['consume'](_0x1e84a4['markerRange'],_0x1d310f['name']))return;const _0xc8a193=_0x1e84a4['markerRange']['start']['nodeAfter'],_0x1af485=_0x1e84a4['markerRange']['end']['nodeBefore'],_0x66b003=_0xc8a193['parent']['parent'],{column:_0x58b8a4}=_0x1f500a['getCellLocation'](_0xc8a193),{column:_0x5e4954}=_0x1f500a['getCellLocation'](_0x1af485);for(let _0x245ea7=_0x58b8a4;_0x245ea7<=_0x5e4954;_0x245ea7++){const _0x298a98=_0x1f500a['createTableWalker'](_0x66b003,{'column':_0x245ea7,'includeAllSlots':!0x1});for(const _0x5ee6c3 of _0x298a98){const _0x219669=_0x5ee6c3['cell'],_0x331dad=_0x1426f8['mapper']['toViewElement'](_0x219669);_0x1426f8['writer']['addClass']('ck-suggestion-marker-'+_0x7376f4,_0x331dad),_0x39f66a&&_0x1426f8['writer']['setAttribute']('data-suggestion',_0x3e1621,_0x331dad),_0x1426f8['mapper']['bindElementToMarker'](_0x331dad,_0x1e84a4['markerName']),_0x426787&&(_0x451327['activeMarkers']['includes'](_0x1e84a4['markerName'])?_0x1426f8['writer']['addClass']('ck-suggestion-marker--active',_0x331dad):_0x1426f8['writer']['removeClass']('ck-suggestion-marker--active',_0x331dad));}}};}_0x451327['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2a2fd0),_0x451327['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2a2fd0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c8868(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4900f9,_0x17fe2d,_0x69e1bc)=>{_0x69e1bc['options']['showSuggestionHighlights']&&_0x5c8868({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4900f9,_0x17fe2d,_0x69e1bc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3672f5,_0x49c955,_0x3a94ed)=>{const {type:_0x2a2b9e,id:_0x25931b}=_0x451327['_splitMarkerName'](_0x49c955['markerName']),_0x2b9de3=_0x451327['getSuggestion'](_0x25931b),_0x912c3a=_0x2b9de3['data'];if('formatBlock'!=_0x2b9de3['type']||!_0x912c3a||'setTableColumnHeader'!=_0x912c3a['commandName'])return;const _0x40c5d6=_0x3a94ed['mapper']['markerNameToElements'](_0x49c955['markerName']);if(_0x40c5d6){for(const _0x5b76c9 of _0x40c5d6)_0x3a94ed['writer']['removeClass']('ck-suggestion-marker-'+_0x2a2b9e,_0x5b76c9),_0x3a94ed['writer']['removeClass']('ck-suggestion-marker--active',_0x5b76c9),_0x3a94ed['writer']['removeAttribute']('data-suggestion',_0x5b76c9),_0x3a94ed['mapper']['unbindElementFromMarkerName'](_0x5b76c9,_0x49c955['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a0f8d=this['editor'],_0x4dd6e0=_0x4a0f8d['locale'];function _0x18ecb5(_0x24fdfb){return{'type':'format','content':c(_0x4dd6e0,'*Format:*\x20%0',_0x24fdfb)};}_0x4a0f8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9bb4=>{if('formatBlock'!=_0x3c9bb4['type'])return;const {data:_0x59be0d}=_0x3c9bb4;if(_0x59be0d){if('setTableRowHeader'==_0x59be0d['commandName']){const _0x152323=_0x59be0d['commandParams'][0x0]['forceValue'];return _0x18ecb5(c(_0x4dd6e0,_0x152323?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59be0d['commandName']){const _0x481f78=_0x59be0d['commandParams'][0x0]['forceValue'];return _0x18ecb5(c(_0x4dd6e0,_0x481f78?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5e362f=>[_0x5e362f,null]));class Mt extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0xb430d6=this['editor'];if(!_0xb430d6['plugins']['has']('TableClipboard'))return;const _0x23a1ee=_0xb430d6['plugins']['get']('TrackChangesEditing'),_0x42993b=_0xb430d6['plugins']['get']('TableUtils'),_0x1c18b6=_0xb430d6['plugins']['get'](Ct),_0x486ed9=_0xb430d6['plugins']['get']('TableClipboard');_0x1c18b6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb430d6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb430d6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x15c7f0=null;_0xb430d6['model']['on']('insertContent',(_0x28638e,_0x496c44)=>{const [_0x474583,_0x4dc51f]=_0x496c44,_0x3202e6=_0x496c44[_0x496c44['length']-0x1];_0x3202e6&&_0x3202e6['forceDefaultExecution']||_0x23a1ee['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xce92,_0x3dec32,_0x17dbe5,_0x1fe43a,_0x298ac0){if(_0x3dec32&&!_0x3dec32['is']('documentSelection'))return!0x1;const _0x237753=_0x298ac0['getTableIfOnlyTableInContent'](_0xce92,_0x17dbe5);if(!_0x237753||!Ue(_0x237753,void 0x0,_0x1fe43a))return!0x1;const _0xa25967=_0x1fe43a['getSelectionAffectedTableCells'](_0x17dbe5['document']['selection']);if(!_0xa25967['length'])return!0x1;const _0x1a1338=_0xa25967[0x0]['findAncestor']('table'),_0x31709b=_0x1fe43a['getRowIndexes'](_0xa25967),_0x126377=_0x1fe43a['getColumnIndexes'](_0xa25967),_0x30a651={'startRow':_0x31709b['first'],'endRow':_0x31709b['last'],'startColumn':_0x126377['first'],'endColumn':_0x126377['last']};return 0x1==_0xa25967['length']&&(_0x30a651['endRow']+=_0x1fe43a['getRows'](_0x237753)-0x1,_0x30a651['endColumn']+=_0x1fe43a['getColumns'](_0x237753)-0x1),Ue(_0x1a1338,_0x30a651,_0x1fe43a);}(_0x474583,_0x4dc51f,_0xb430d6['model'],_0x42993b,_0x486ed9)&&(_0x28638e['stop'](),_0x15c7f0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb430d6['model']['change'](()=>{_0xb430d6['model']['insertContent'](_0x496c44[0x0],_0x496c44[0x1],_0x496c44[0x2],{'forceDefaultExecution':!0x0});const _0x305d88=_0x2e4cf8(),{rowInsertionRanges:_0x1061ab,columnInsertionRanges:_0xb97a94,insertionRanges:_0x5378b5,deletionRanges:_0x80f045,cells:_0x56882a}=_0x15c7f0;_0x1061ab['length']&&_0x23a1ee['markMultiRangeInsertion'](_0x1061ab,'tablePasteRow',{'tablePasteChainId':_0x305d88}),_0xb97a94['length']&&_0x23a1ee['markMultiRangeInsertion'](_0xb97a94,'tablePasteColumn',{'tablePasteChainId':_0x305d88}),_0x5378b5['length']&&(_0x23a1ee['markMultiRangeInsertion'](_0x5378b5,'tablePaste',{'tablePasteChainId':_0x305d88,'skipNestingCheck':!0x0}),_0x5378b5['forEach'](_0x1eaf32=>_0x1eaf32['detach']?.())),_0x80f045['length']&&(_0x23a1ee['markMultiRangeDeletion'](_0x80f045,'tablePaste',{'tablePasteChainId':_0x305d88,'skipNestingCheck':!0x0}),_0x80f045['forEach'](_0x16562d=>_0x16562d['detach']?.()));const _0x277011=_0x23a1ee['markMultiRangeBlockFormat'](_0x56882a['map'](({element:_0x584efa})=>_0x584efa),{'formatGroupId':_0x2e4cf8()},[],'tablePasteCell',{'tablePasteChainId':_0x305d88});if(_0x277011){const _0x4b966c=_0x277011['getMarkers'](),_0x2f8ec9=[];for(const {element:_0xd4316c,attributes:_0x43d7f1}of _0x56882a){if(!_0x43d7f1)continue;const _0x477861=_0xb430d6['model']['createRangeOn'](_0xd4316c),_0x8a192=_0x4b966c['find'](_0x62bc14=>_0x62bc14['getRange']()['isEqual'](_0x477861));_0x8a192&&_0x2f8ec9['push']([_0x8a192['name'],_0x43d7f1]);}_0x2f8ec9['length']&&_0x277011['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f8ec9));}_0x15c7f0=null;}));},{'priority':_0x5c654c['high']+0xa}),_0xb430d6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14a19f,_0x1de90c)=>{const [_0x345cfe,_0x2beb6e,,_0x21690c]=_0x1de90c;if(!_0x15c7f0)return;_0x14a19f['stop']();const _0x361157=_0x345cfe['cell'],_0x3a814e=_0x2beb6e,_0x3fe81e=Oe(_0x361157),_0x284eb8=Oe(_0x3a814e);_0x14a19f['return']=_0x361157;let _0x267e1d=null,_0x192f23=null;if(_0x284eb8||_0x3fe81e){if(_0x3fe81e&&!_0x284eb8){_0x21690c['remove'](_0x361157['getChild'](0x0));for(const _0x1707f9 of Array['from'](_0x3a814e['getChildren']()))_0x21690c['insert'](_0x1707f9,_0x361157,'end');const _0x48a9a8=_0x15c7f0['rowInsertionIndexes']['includes'](_0x345cfe['row']),_0x1fc0ea=_0x15c7f0['columnInsertionIndexes']['includes'](_0x345cfe['column']);_0x48a9a8||_0x1fc0ea||(_0x267e1d=_0x26d742['fromRange'](_0x21690c['createRangeIn'](_0x361157)));}else _0x284eb8&&!_0x3fe81e&&(_0x192f23=_0x21690c['createRangeIn'](_0x361157));}else{const _0x117942=_0x21690c['createElement']('tableCellSuggestion'),_0x838e40=_0x21690c['createElement']('tableCellSuggestion');_0x21690c['wrap'](_0x21690c['createRangeIn'](_0x361157),_0x838e40),_0x21690c['insert'](_0x117942,_0x361157,0x0);for(const _0xc03678 of Array['from'](_0x3a814e['getChildren']()))_0x21690c['insert'](_0xc03678,_0x117942,'end');_0x267e1d=_0x26d742['fromRange'](_0x21690c['createRangeOn'](_0x117942)),_0x192f23=_0x26d742['fromRange'](_0x21690c['createRangeOn'](_0x838e40));}const _0x50b219=Array['from'](_0x3a814e['getAttributes']())['filter'](([_0xafbbd2])=>Be['includes'](_0xafbbd2));_0x15c7f0['cells']['push']({'element':_0x361157,'attributes':_0x50b219['length']?Object['fromEntries'](_0x50b219):null}),_0x267e1d&&_0x15c7f0['insertionRanges']['push'](_0x267e1d),_0x192f23&&_0x15c7f0['deletionRanges']['push'](_0x192f23);},{'priority':'high'}),_0x42993b['on']('insertColumns',(_0x31a96d,_0x1fce7b)=>{const [_0xf651b,_0x202505={}]=_0x1fce7b;if(!_0x15c7f0)return;const _0x4e1c0b=_0x202505['at']||0x0,_0x25c916=_0x202505['columns']||0x1;_0x15c7f0['columnInsertionIndexes']=new Array(_0x25c916)['fill'](_0x4e1c0b)['map']((_0x1ad969,_0x5d3730)=>_0x1ad969+_0x5d3730);for(const {cell:_0xb3394e}of _0x42993b['createTableWalker'](_0xf651b,{'startColumn':_0x4e1c0b,'endColumn':_0x4e1c0b+_0x25c916-0x1}))_0x15c7f0['columnInsertionRanges']['push'](_0xb430d6['model']['createRangeOn'](_0xb3394e));},{'priority':'low'}),_0x42993b['on']('insertRows',(_0x3555ec,_0x37e40e)=>{const [_0x7f756a,_0x49c6bb={}]=_0x37e40e;if(!_0x15c7f0)return;const _0x5e7289=_0x49c6bb['at']||0x0,_0x29eb9d=_0x49c6bb['rows']||0x1;_0x15c7f0['rowInsertionIndexes']=new Array(_0x29eb9d)['fill'](_0x5e7289)['map']((_0x26585a,_0x1fc472)=>_0x26585a+_0x1fc472);for(const {cell:_0x98a9b8}of _0x42993b['createTableWalker'](_0x7f756a,{'startRow':_0x5e7289,'endRow':_0x5e7289+_0x29eb9d-0x1}))_0x15c7f0['rowInsertionRanges']['push'](_0xb430d6['model']['createRangeOn'](_0x98a9b8));},{'priority':'low'}),_0x23a1ee['descriptionFactory']['registerDescriptionCallback'](_0x544ec7=>{if(_0x544ec7['subType']&&_0x544ec7['subType']['startsWith']('tablePaste'))return _0x544ec7['previous']?{}:{'type':'insertion','content':c(_0xb430d6['locale'],'*Replace\x20table\x20cells*')};});const _0x1ea938=()=>!0x1;for(const _0x33c3ac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x23a1ee['_suggestionFactory']['registerCustomCallback']('insertion',_0x33c3ac,'join',_0x1ea938),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('deletion',_0x33c3ac,'join',_0x1ea938),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33c3ac,'join',_0x1ea938);_0x23a1ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1ea938),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x532ba7,_0x386fba,_0x3f9a4d)=>{const _0x495aa1=_0x532ba7['map'](_0x2b0a96=>_0x2b0a96['getContainedElement']())['filter'](_0x33c94f=>_0x33c94f),_0x4f3cca=new Map(_0x495aa1['map'](_0x4ec322=>[_0x4ec322,null]));if(_0x15c7f0){for(const {element:_0x14c7aa,attributes:_0xf3343e}of _0x15c7f0['cells'])_0xf3343e&&_0x4f3cca['set'](_0x14c7aa,_0xf3343e);}else{if(_0x3f9a4d&&_0x3f9a4d['markerAttributes'])for(const [_0x1b062c,_0x52e0fa]of Object['entries'](_0x3f9a4d['markerAttributes'])){const _0x4ec84e=_0xb430d6['model']['markers']['get'](_0x1b062c),_0x493a04=_0x4ec84e?_0x4ec84e['getRange']()['getContainedElement']():null;_0x493a04&&_0x4f3cca['set'](_0x493a04,_0x52e0fa);}}_0xb430d6['model']['change'](_0x2578c7=>{for(const [_0x3a577a,_0x462b43]of _0x4f3cca)_0x2578c7['setAttributes']({...xe,..._0x462b43},_0x3a577a);});});const _0x815f87=(_0x5e7f72,_0x3072d5)=>{_0x23a1ee['_suggestionFactory']['registerCustomCallback'](_0x5e7f72,'tablePaste',_0x3072d5,(_0x372a1e,_0x533469,_0x2d6005)=>{_0xb430d6['model']['change'](_0x238055=>{const _0x57904b=[];for(const _0x304be0 of _0x372a1e){const _0xbbd082=_0x304be0['start']['nodeAfter'];_0xbbd082['is']('element','tableCellSuggestion')&&_0x57904b['push'](_0xbbd082);}_0x23a1ee['_suggestionFactory']['getSuggestionCallback'](_0x5e7f72,null,_0x3072d5)(_0x372a1e,_0x533469,_0x2d6005);for(const _0xea5f9b of _0x57904b)'$graveyard'!=_0xea5f9b['root']['rootName']&&_0x238055['unwrap'](_0xea5f9b);});});};_0x815f87('insertion','accept'),_0x815f87('insertion','discard'),_0x815f87('deletion','accept'),_0x815f87('deletion','discard'),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b54d1=>{const _0x590795=_0x4b54d1['map'](_0xee5a79=>_0xee5a79['getContainedElement']()),_0x379620=_0x590795[0x0]['findAncestor']('table'),{minRow:_0x4736ee,maxRow:_0xc5910a}=_0x1c18b6['_getCoordsForCells'](_0x590795);_0x42993b['removeRows'](_0x379620,{'at':_0x4736ee,'rows':_0xc5910a-_0x4736ee+0x1});}),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x295ef5=>{const _0x3a4df2=_0x295ef5['map'](_0x25b36b=>_0x25b36b['getContainedElement']()),_0x41691a=_0x3a4df2[0x0]['findAncestor']('table'),{minColumn:_0x483943,maxColumn:_0x352ef0}=_0x1c18b6['_getCoordsForCells'](_0x3a4df2);_0x42993b['removeColumns'](_0x41691a,{'at':_0x483943,'columns':_0x352ef0-_0x483943+0x1});});const _0x461308=(_0x4c0add,_0x1c4ce5)=>{if(!_0x1c4ce5['subType']||!_0x1c4ce5['subType']['startsWith']('tablePaste'))return;const _0x2dcb81=_0x1c4ce5['attributes']['tablePasteChainId'],_0x11693f=_0x23a1ee['getSuggestions']()['filter'](_0x22f86e=>_0x22f86e['isInContent']&&_0x22f86e['attributes']&&_0x22f86e['attributes']['tablePasteChainId']==_0x2dcb81);_0x11693f['length']&&_0x1c4ce5['getAllAdjacentSuggestions']()['length']!=_0x11693f['length']&&_0x11693f['reduce']((_0x1db118,_0x3da166)=>(_0x1db118['next']=_0x3da166,_0x3da166['previous']=_0x1db118,_0x3da166));};function _0x3a6af7(_0x11a70c,_0xbcfa4d=!0x0){const {id:_0x3850f0,authorId:_0x1a0e1d}=_0x23a1ee['_splitMarkerName'](_0x11a70c['markerName']),_0x45351d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x18eee0=_0x23a1ee['activeMarkers']['includes'](_0x11a70c['markerName']);return _0x18eee0&&_0x45351d['push']('ck-suggestion-marker--active'),{'classes':_0x45351d,'attributes':{'data-suggestion':_0x3850f0,'data-author-id':_0x1a0e1d},'priority':_0x18eee0&&_0xbcfa4d?0xbc2:0xbb8};}_0x23a1ee['on']('suggestionLoaded',_0x461308,{'priority':'high'}),_0x23a1ee['on']('suggestionUnloaded',_0x461308,{'priority':'high'}),_0xb430d6['model']['document']['registerPostFixer'](()=>{let _0x4645ee=!0x1;const _0x4f3e25=Array['from'](_0xb430d6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x350eed,data:_0x1196f0}of _0x4f3e25){const {group:_0x2a404a,type:_0x3b754a,id:_0x681a26}=_0x23a1ee['_splitMarkerName'](_0x350eed);if('suggestion'!=_0x2a404a||'deletion'!=_0x3b754a||_0x1196f0['oldRange'])continue;if(!_0x23a1ee['hasSuggestion'](_0x681a26))continue;const _0x32269c=_0x23a1ee['getSuggestion'](_0x681a26)['getRanges'](),_0x218c0a=_0xb430d6['plugins']['get']('Users')['me'];for(const _0x2f32d5 of _0x23a1ee['getSuggestions']()){if(!_0x2f32d5['isInContent']||_0x2f32d5['author']!=_0x218c0a)continue;if('formatBlock'!=_0x2f32d5['type']||'tablePasteCell'!=_0x2f32d5['subType'])continue;if(_0x2f32d5['getRanges']()['every'](_0x4567f5=>_0x32269c['some'](_0xc744f9=>_0xc744f9['containsRange'](_0x4567f5,!0x0)))){for(const _0x46e0db of _0x2f32d5['getAllAdjacentSuggestions']())_0x46e0db['isInContent']&&(_0x46e0db['discard'](),_0x4645ee=!0x0);}}}return _0x4645ee;}),_0xb430d6['model']['document']['registerPostFixer'](_0x54eafa=>{const _0x29756e=_0xb430d6['commands']['get']('redo');if(!_0x29756e||!_0x29756e['_createdBatches']['has'](_0x54eafa['batch']))return!0x1;let _0x51798f=!0x1;const _0x3cf173=_0xb430d6['plugins']['get']('Users')['me'],_0x4ad1cd=_0xb430d6['model']['document']['differ']['getChanges'](),_0x3fe3c6=Array['from'](_0xb430d6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2411cb,data:_0xa97cc5})=>{const {group:_0x52fb07,subType:_0x367940,authorId:_0x57e17d}=_0x23a1ee['_splitMarkerName'](_0x2411cb);return'suggestion'==_0x52fb07&&'tablePaste'==_0x367940&&_0x57e17d==_0x3cf173['id']&&!_0xa97cc5['oldRange'];});for(const _0x440701 of _0x4ad1cd){if('insert'!=_0x440701['type']||'tableCellSuggestion'!=_0x440701['name']||0x1!=_0x440701['length'])continue;const _0x475d3b=_0x54eafa['createRange'](_0x440701['position'],_0x440701['position']['getShiftedBy'](0x1));if(!_0x3fe3c6['find'](({data:_0x5b4aa6})=>_0x5b4aa6['newRange']['isEqual'](_0x475d3b))){for(const {name:_0x211e22,data:_0x167476}of _0x3fe3c6)if(_0x475d3b['containsRange'](_0x167476['newRange'])){_0x54eafa['updateMarker'](_0x211e22,{'range':_0x475d3b}),_0x51798f=!0x0;break;}}}return _0x51798f;}),_0xb430d6['model']['document']['registerPostFixer'](_0xd2f166=>{let _0x1c7121=!0x1;const _0x1f9852=_0xb430d6['plugins']['get']('Users')['me'],_0x1556ac=_0x23a1ee['getSuggestions']()['filter'](_0x40f46b=>_0x40f46b['isInContent']&&_0x40f46b['author']==_0x1f9852),_0x2e8f99=new Set(),_0x30c84b=new Set();for(const _0x12bda2 of _0x1556ac)if('tablePaste'==_0x12bda2['subType'])for(const _0x588456 of _0x12bda2['getMarkers']()){const _0x20ba51=_0x588456['getRange']()['getContainedElement']();if(_0x20ba51){if(_0x20ba51['is']('element','tableCellSuggestion')&&Oe(_0x20ba51)){_0x12bda2['removeMarker'](_0x588456['name']),_0x2e8f99['add'](_0x20ba51),_0x1c7121=!0x0;const _0x4aa9ad=_0x20ba51['nextSibling'],_0x3f4c26=_0x20ba51['previousSibling'],_0xa806a5=_0x4aa9ad&&_0x4aa9ad['is']('element','tableCellSuggestion'),_0x1e9d0a=_0x3f4c26&&_0x3f4c26['is']('element','tableCellSuggestion');_0xa806a5&&!_0x2e8f99['has'](_0x4aa9ad)&&_0x30c84b['add'](_0x4aa9ad),_0x1e9d0a&&!_0x2e8f99['has'](_0x3f4c26)&&_0x30c84b['add'](_0x3f4c26);}else _0x20ba51['is']('element','paragraph')&&_0x20ba51['isEmpty']&&(_0x12bda2['removeMarker'](_0x588456['name']),_0x1c7121=!0x0);}}else{if('tablePasteCell'==_0x12bda2['subType']){if(!_0x12bda2['attributes']||!_0x12bda2['attributes']['tablePasteChainId'])continue;const _0x26acb6=_0x12bda2['attributes']['markerAttributes'];if(_0x26acb6&&Object['keys'](_0x26acb6)['length'])continue;const _0x2c8009=_0x12bda2['attributes']['tablePasteChainId'];let _0x47e672=!0x0,_0x5b4eb8=!0x0;for(const _0x3bf45d of _0x1556ac)if(_0x3bf45d['subType']&&_0x3bf45d['subType']['startsWith']('tablePaste')){if(!_0x3bf45d['attributes']['tablePasteChainId']){_0x5b4eb8=!0x1;break;}if(_0x3bf45d['id']!=_0x12bda2['id']&&_0x3bf45d['attributes']['tablePasteChainId']==_0x2c8009){_0x47e672=!0x1;break;}}_0x5b4eb8&&_0x47e672&&(_0x12bda2['removeMarkers'](),_0x1c7121=!0x0);}}for(const _0xb22a8e of _0x2e8f99)_0xd2f166['remove'](_0xb22a8e);for(const _0x2a18e5 of _0x30c84b)_0xd2f166['unwrap'](_0x2a18e5);return _0x1c7121;}),_0xb430d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xdc82f6=>_0x3a6af7(_0xdc82f6),'converterPriority':'high'}),_0xb430d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc38385,_0x5741ec)=>_0x5741ec['options']['showSuggestionHighlights']?_0x3a6af7(_0xc38385,!0x1):null,'converterPriority':'high'});const _0x48b3af=_0xb430d6['editing']['view'];this['listenTo'](_0x48b3af['document'],'clipboardOutput',(_0x1b9626,_0x61e97)=>{const _0x239ff5=[];for(const _0x5d1462 of _0x48b3af['createRangeIn'](_0x61e97['content'])['getItems']())_0x5d1462['is']('element','suggestion-td')&&_0x239ff5['push'](_0x5d1462);_0x48b3af['change'](_0x540f72=>{for(const _0x57b971 of _0x239ff5)_0x540f72['move'](_0x540f72['createRangeIn'](_0x57b971),_0x540f72['createPositionBefore'](_0x57b971)),_0x540f72['remove'](_0x57b971);});});}}function Oe(_0x509db1){if(_0x509db1['isEmpty'])return!0x0;const _0x3b500b=_0x509db1['getChild'](0x0);return _0x3b500b['is']('element','paragraph')&&_0x3b500b['isEmpty'];}function Ue(_0x13404b,_0x5c2aad={},_0x5348fe){for(const {isAnchor:_0x5b77d4,cellHeight:_0x2680e5,cellWidth:_0x1138b6}of _0x5348fe['createTableWalker'](_0x13404b,{'includeAllSlots':!0x0,..._0x5c2aad}))if(!_0x5b77d4||0x1!=_0x2680e5||0x1!=_0x1138b6)return!0x1;return!0x0;}class $t extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c3175=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c3175['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c3175['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c3175['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c3175['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c3175['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c3175['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5799b8,_0x5d330c){const _0x4c91d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cfb5c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3c47b2=_0x5d330c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x41e339=_0x2cfb5c['getColumnGroupElement'](_0x3c47b2);let _0x15a6b0=_0x41e339?_0x2cfb5c['getTableColumnsWidths'](_0x41e339):null,_0xb2f320=_0x3c47b2['getAttribute']('tableWidth')||null;const _0xa30361=_0x5d330c['tableWidth']||_0xb2f320,_0x1d82cd=_0x5d330c['columnWidths']||_0x15a6b0,_0x4c6d6a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e504b of _0x4c91d9['getSuggestions']()){const _0x2d3ec7=_0x3e504b['getContainedElement']();if('resizeTable'===_0x3e504b['subType']&&_0x2d3ec7===_0x3c47b2){_0x3e504b['author']!==_0x4c6d6a&&_0x3e504b['discard']();const _0x1f542b=_0x3e504b['data']['commandParams'];_0xb2f320=_0x1f542b[0x0]['tableWidth'],_0x15a6b0=_0x1f542b[0x0]['columnWidths'];break;}}_0x5799b8({'table':_0x3c47b2,'tableWidth':_0xa30361,'columnWidths':_0x1d82cd}),_0x4c91d9['markBlockFormat'](_0x3c47b2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb2f320,'columnWidths':_0x15a6b0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3b596e){if('formatBlock'!=_0x3b596e['type']&&'formatInline'!=_0x3b596e['type'])return;const {data:_0x325f96}=_0x3b596e;if(_0x325f96&&'resizeTable'===_0x325f96['formatGroupId']){const _0x377a4b='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x377a4b)};}}}class Bt extends _0x6c1265{['afterInit'](){const _0x126c5f=this['editor'];_0x126c5f['plugins']['has']('Template')&&_0x126c5f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x6c1265{['afterInit'](){const _0x52e6ef=this['editor'];if(!_0x52e6ef['commands']['get']('insertTableOfContents'))return;_0x52e6ef['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd6231b=_0x52e6ef['plugins']['get']('TrackChangesEditing'),_0x350a2e=_0x52e6ef['locale'];_0xd6231b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x36350d=>c(_0x350a2e,'ELEMENT_TABLE_OF_CONTENTS',_0x36350d));}}class Rt extends _0x6c1265{['afterInit'](){const _0x57de7b=this['editor'];if(!_0x57de7b['plugins']['has']('Title'))return;const _0x561b6b=_0x57de7b['plugins']['get']('TrackChangesEditing');_0x561b6b['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x57de7b['locale'],'ELEMENT_TITLE')),_0x57de7b['model']['document']['registerPostFixer'](_0x29b872=>{let _0x178b60=!0x1;const _0x335afe=Array['from'](_0x57de7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21326e,data:_0x5d07bc}of _0x335afe){const {group:_0x2b9a7d}=_0x561b6b['_splitMarkerName'](_0x21326e);if('suggestion'!==_0x2b9a7d||!_0x5d07bc['newRange'])continue;const _0x5badcd=_0x5d07bc['newRange'],_0x27345=_0x5badcd['end']['nodeBefore'];if(!_0x27345||!_0x27345['is']('element','title-content'))continue;if(!_0x5badcd['start']['isTouching'](_0x5badcd['end']))continue;const _0x54fe2b=_0x57de7b['model']['schema']['getNearestSelectionRange'](_0x5badcd['end'],'forward');if(_0x54fe2b&&_0x54fe2b['isCollapsed']){const _0x1f4875=_0x29b872['createRange'](_0x5badcd['start'],_0x54fe2b['start']);_0x1f4875['isEqual'](_0x5badcd)||(_0x29b872['updateMarker'](_0x21326e,{'range':_0x1f4875}),_0x178b60=!0x0);}_0x178b60||(_0x29b872['removeMarker'](_0x21326e),_0x178b60=!0x0);}return _0x178b60;});}}class xt extends _0x6c1265{['afterInit'](){const _0x3d67e3=this['editor'],_0x30cef6=_0x3d67e3['plugins']['get']('TrackChangesEditing');_0x3d67e3['plugins']['has']('Uploadcare')&&(_0x30cef6['enableCommand']('uploadcare'),_0x3d67e3['plugins']['has']('UploadcareImageEdit')&&(_0x30cef6['enableCommand']('uploadcareImageEdit'),_0x30cef6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x30cef6['registerBlockAttribute']('uploadcareImageId'),_0x30cef6['descriptionFactory']['registerDescriptionCallback'](_0x532ebc=>{if('attribute'!=_0x532ebc['type'])return;const {data:_0xf44746}=_0x532ebc;return _0xf44746&&'uploadcareImageId'==_0xf44746['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x6c1265{['afterInit'](){const _0x41dc1e=this['editor'],_0x4a8d9d=_0x41dc1e['plugins']['get']('TrackChangesEditing');_0x41dc1e['plugins']['has']('UndoEditing')&&(_0x4a8d9d['enableCommand']('undo'),_0x4a8d9d['enableCommand']('redo'));}}class Et extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0x499fde=this['editor'];if(!_0x499fde['plugins']['has']('TableCaptionEditing'))return;_0x499fde['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x6c1265{['tableProperties'];['tableCellProperties'];constructor(_0xd4741b){super(_0xd4741b),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 _0xbcbc60=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2e53a8 of this['tableProperties'])_0xbcbc60['enableCommand'](_0x2e53a8,(_0x5077da,_0x27f8cb)=>{const _0x1be36f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2e53a8,[_0x1be36f],this['tableProperties'],'tableProperties',_0x5077da,_0x27f8cb);});_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xbcbc60['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39d6d2,_0x3cb8c6)=>this['handleDiscardAction'](this['tableProperties'],_0x39d6d2,_0x3cb8c6)),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x25591f of this['tableCellProperties'])_0xbcbc60['enableCommand'](_0x25591f,(_0x15b185,_0x723ce5)=>{const _0x539e0d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x25591f,_0x539e0d,this['tableCellProperties'],'tableCellProperties',_0x15b185,_0x723ce5);});_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xbcbc60['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x27afdd,_0x54d63e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x27afdd,_0x54d63e)),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xbcbc60['descriptionFactory']['registerDescriptionCallback'](_0x2ae7ee=>this['handleSuggestionDescription'](_0x2ae7ee));}['_handlePropertyChange'](_0x25a56e,_0x3e2b98,_0x7b52a6,_0x4d5957,_0x451380,_0x3df710){const _0x2c4838=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3df710['batch'],()=>{for(const _0x2f9fa6 of _0x3e2b98){if(this['_getSuggestion'](_0x2f9fa6,_0x4d5957))_0x451380(_0x3df710);else{const _0x264e09={};for(const _0xd433c0 of _0x7b52a6){const _0x40fb0a=_0x2f9fa6['getAttribute'](_0xd433c0);void 0x0!==_0x40fb0a&&(_0x264e09[_0xd433c0]=_0x40fb0a);}_0x451380(_0x3df710),_0x2c4838['markBlockFormat'](_0x2f9fa6,{'commandParams':[_0x264e09]},[],_0x4d5957);}}});}['handleDiscardAction'](_0x505fe2,_0x463e8d,_0x4a1326){const _0x9187ba=_0x463e8d[0x0]['start']['nodeAfter'],_0x1d19f3=_0x4a1326['commandParams'][0x0];this['editor']['model']['change'](_0x32fc29=>{for(const _0x3dce8a of _0x505fe2)void 0x0!==_0x1d19f3[_0x3dce8a]?_0x32fc29['setAttribute'](_0x3dce8a,_0x1d19f3[_0x3dce8a],_0x9187ba):_0x32fc29['removeAttribute'](_0x3dce8a,_0x9187ba);});}['handleSuggestionDescription'](_0x337cd9){if(_0x337cd9['data'])switch(_0x337cd9['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'](_0x4d35dc,_0x14fd47){const _0x7f034a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x492507 of _0x7f034a['getSuggestions']({'skipNotAttached':!0x0})){const _0x213800=_0x492507['getContainedElement']();if(_0x492507['subType']===_0x14fd47&&_0x213800===_0x4d35dc)return _0x492507;}return null;}}const u='$elementName';class p extends _0x6c1265{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x229cdc,_0x5eab3f,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,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2812d3){super(_0x2812d3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4722aa,_0x554adb,_0x8ed36b,_0x590d4c)=>{this['_model']['change'](()=>{for(const _0x16c566 of[..._0x590d4c,..._0x8ed36b])this['_model']['markers']['has'](_0x16c566)&&_0x2812d3['editing']['reconvertMarker'](_0x16c566);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2812d3['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(),_0x2812d3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2812d3['config']['get']('trackChanges.trackFormatChanges'),_0x2812d3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2812d3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2812d3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x34cc01=this['editor'],_0x1a79a9=(_0x2b4b2c,_0x4697cb)=>{if('attribute'!=_0x2b4b2c)return'ck-suggestion-marker-'+_0x2b4b2c;const _0x5a221f=_0x4697cb['split']('|')[0x0];return this['_isBlockAttribute'](_0x5a221f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x34cc01['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xa970aa=>{const {id:_0x42c845,authorId:_0x44a699,type:_0x37e0c2,subType:_0x33d1cb}=this['_splitMarkerName'](_0xa970aa['markerName']),_0x13625e=['ck-suggestion-marker',_0x1a79a9(_0x37e0c2,_0x33d1cb)];let _0x1f3f98=0xbb8;return this['activeMarkers']['includes'](_0xa970aa['markerName'])&&(_0x13625e['push']('ck-suggestion-marker--active'),_0x1f3f98=0xbc2),'deletion'==_0x37e0c2&&(_0x1f3f98+=0x5),{'classes':_0x13625e,'attributes':{'data-suggestion':_0x42c845,'data-author-id':_0x44a699},'priority':_0x1f3f98};}}),_0x34cc01['conversion']['for']('dataDowncast')['add'](_0x1b439d=>{_0x1b439d['on']('addMarker:suggestion',(_0x42e90a,_0x2469f2,_0x5852ba)=>{if(!_0x5852ba['options']['showSuggestionHighlights'])return;const _0x3fa635=_0x2469f2['item'];if(!_0x3fa635)return;const _0xf72c8d=_0x5852ba['mapper']['toViewElement'](_0x3fa635);_0x34cc01['model']['schema']['isObject'](_0x3fa635)&&_0xf72c8d&&!_0xf72c8d['getCustomProperty']('widget')&&_0xf72c8d['is']('containerElement')&&_0x4ae5f9(_0xf72c8d,_0x5852ba['writer']);},{'priority':'high'});}),_0x34cc01['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5435a5,_0x315074)=>{if(!_0x315074['options']['showSuggestionHighlights'])return null;const {type:_0x28435e,subType:_0x1771fc}=this['_splitMarkerName'](_0x5435a5['markerName']);return{'classes':['ck-suggestion-marker',_0x1a79a9(_0x28435e,_0x1771fc)],'priority':0xbb8};}});const _0x209304=({showActiveMarkers:_0x2da851=!0x0,isAttributeSuggestion:_0x1dbca2=!0x1}={})=>(_0x19e630,_0x378658,_0x35f754)=>{if(!_0x378658['item'])return;const {id:_0x40b856,authorId:_0x28f462}=this['_splitMarkerName'](_0x378658['markerName']);if(_0x1dbca2){const _0x15b3e4=this['_suggestions']['get'](_0x40b856),_0x39394a=this['_getAttributeKey'](_0x15b3e4);if(!this['_isBlockAttribute'](_0x39394a))return;}if(_0x378658['item']['is']('selection'))return void _0x35f754['consumable']['consume'](_0x378658['item'],_0x19e630['name']);const _0x484c8d=_0x35f754['mapper']['toViewElement'](_0x378658['item']);if(_0x378658['item']['is']('element')&&_0x34cc01['model']['schema']['isBlock'](_0x378658['item'])&&!_0x484c8d['getCustomProperty']('addHighlight')){_0x35f754['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x484c8d),_0x35f754['writer']['setAttribute']('data-suggestion',_0x40b856,_0x484c8d),_0x35f754['writer']['setAttribute']('data-author-id',_0x28f462,_0x484c8d),_0x35f754['mapper']['bindElementToMarker'](_0x484c8d,_0x378658['markerName']),_0x2da851&&(this['activeMarkers']['includes'](_0x378658['markerName'])?_0x35f754['writer']['addClass']('ck-suggestion-marker--active',_0x484c8d):_0x35f754['writer']['removeClass']('ck-suggestion-marker--active',_0x484c8d));for(const _0x5a78b0 of _0x34cc01['model']['createRangeIn'](_0x378658['item'])['getItems']())_0x35f754['consumable']['consume'](_0x5a78b0,_0x19e630['name']);_0x35f754['consumable']['consume'](_0x378658['item'],_0x19e630['name']);}};_0x34cc01['conversion']['for']('dataDowncast')['add'](_0x177de4=>{_0x177de4['on']('addMarker:suggestion:formatBlock',(_0x46adb9,_0x4eb6f0,_0x20728d)=>{_0x20728d['options']['showSuggestionHighlights']&&_0x209304({'showActiveMarkers':!0x1})(_0x46adb9,_0x4eb6f0,_0x20728d);},{'priority':'highest'});}),_0x34cc01['conversion']['for']('dataDowncast')['add'](_0x56fe23=>{_0x56fe23['on']('addMarker:suggestion:attribute',(_0x433b02,_0x2335e1,_0x549810)=>{_0x549810['options']['showSuggestionHighlights']&&_0x209304({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x433b02,_0x2335e1,_0x549810);},{'priority':'highest'});}),_0x34cc01['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xc7a5d7,_0x51e209)=>_0x51e209['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xc7a5d7['substr'](0xb)}}),_0x34cc01['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x56f926,{writer:_0x2ec6c6})=>{let _0x15fe6f='suggestion:'+_0x56f926['getAttribute']('suggestion-type')+':'+_0x56f926['getAttribute']('id');return _0x56f926['getAttribute']('marker-count')&&(_0x15fe6f+=':'+_0x56f926['getAttribute']('marker-count')),_0x2ec6c6['createElement']('$marker',{'data-name':_0x15fe6f});}}),_0x34cc01['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x3d085d=>{_0x3d085d['on']('addMarker:suggestion:formatBlock',_0x209304(),{'priority':'high'});}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x1cddf3=>{_0x1cddf3['on']('addMarker:suggestion:attribute',_0x209304({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x234be5=>{_0x234be5['on']('removeMarker:suggestion:formatBlock',(_0x3c41c6,_0xe22112,_0x472fb3)=>{const _0x306db9=_0x472fb3['mapper']['markerNameToElements'](_0xe22112['markerName']);if(_0x306db9){for(const _0x59b3fc of _0x306db9)_0x59b3fc['getCustomProperty']('addHighlight')||(_0x472fb3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59b3fc),_0x472fb3['writer']['removeAttribute']('data-suggestion',_0x59b3fc),_0x472fb3['writer']['removeAttribute']('data-author-id',_0x59b3fc),_0x472fb3['mapper']['unbindElementFromMarkerName'](_0x59b3fc,_0xe22112['markerName']));}},{'priority':'high'});}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x29b0c3=>{_0x29b0c3['on']('removeMarker:suggestion:attribute',(_0x16c2fd,_0x3efcab,_0x139db6)=>{const _0x9163aa=_0x139db6['mapper']['markerNameToElements'](_0x3efcab['markerName']);if(!_0x9163aa)return;const {id:_0x4dfd0b}=this['_splitMarkerName'](_0x3efcab['markerName']),_0x3614c7=this['_suggestions']['get'](_0x4dfd0b),_0x1881b7=this['_getAttributeKey'](_0x3614c7);if(this['_isBlockAttribute'](_0x1881b7)){for(const _0xc2000f of _0x9163aa)_0xc2000f['getCustomProperty']('addHighlight')||(_0x139db6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc2000f),_0x139db6['writer']['removeAttribute']('data-suggestion',_0xc2000f),_0x139db6['writer']['removeAttribute']('data-author-id',_0xc2000f),_0x139db6['mapper']['unbindElementFromMarkerName'](_0xc2000f,_0x3efcab['markerName']));}},{'priority':'high'});}),_0x34cc01['model']['document']['registerPostFixer'](_0x2cd235=>{let _0x5d77ec=!0x1;const _0x456a3a=Array['from'](_0x34cc01['model']['document']['differ']['getChangedMarkers']()),_0x340bcb=new Set();for(const {name:_0x280d30,data:_0x3751d8}of _0x456a3a){const {group:_0x2068da,type:_0x2513fb,subType:_0x3c1fad,id:_0x12e338}=this['_splitMarkerName'](_0x280d30);if('suggestion'!==_0x2068da)continue;const _0x1417e7=this['_suggestions']['get'](_0x12e338);if(null!=_0x3751d8['newRange']){'formatInline'==_0x2513fb&&(_0x5d77ec=_0x5d77ec||Lt(_0x3751d8['newRange'],_0x280d30,_0x2cd235,_0x34cc01['model']['schema']));const _0x188ae5='attribute'==_0x2513fb&&this['_isBlockAttribute'](_0x3c1fad['split']('|')[0x0]);if(_0x3751d8['newRange']['isCollapsed']||'$graveyard'==_0x3751d8['newRange']['root']['rootName']||'formatBlock'==_0x2513fb&&!Kt(_0x3751d8['newRange'])||_0x188ae5&&!Kt(_0x3751d8['newRange'])||'deletion'==_0x2513fb&&!(!Gt(_0x473b3d=_0x3751d8['newRange'])&&!function(_0x3e9f9c){return _0x3e9f9c['start']['parent']==_0x3e9f9c['end']['nodeBefore']&&_0x3e9f9c['start']['isAtEnd'];}(_0x473b3d)))_0x2cd235['removeMarker'](_0x280d30),_0x5d77ec=!0x0;else{if(!_0x1417e7||!_0x1417e7['isInContent'])continue;if(_0x3751d8['newRange']&&_0x3751d8['oldRange']&&_0x3751d8['newRange']['isEqual'](_0x3751d8['oldRange']))continue;_0x340bcb['add'](_0x1417e7);}}}var _0x473b3d;return _0x340bcb['size']>0x0&&(_0x5d77ec=!!this['_joinWithAdjacentSuggestions'](_0x340bcb)||_0x5d77ec),_0x5d77ec;}),_0x34cc01['model']['document']['registerPostFixer'](_0x44f58c=>{let _0x3d443a=!0x1;for(const _0x333ae6 of _0x34cc01['model']['document']['differ']['getChanges']())if('insert'==_0x333ae6['type'])for(const _0x3cd0cd of this['_suggestions']['values']()){if(_0x3cd0cd['isMultiRange']||!_0x3cd0cd['isInContent'])continue;const _0x9487fd='formatBlock'==_0x3cd0cd['type'],_0x56618b=this['_getAttributeKey'](_0x3cd0cd),_0x1ee781=_0x56618b&&this['_isBlockAttribute'](_0x56618b);if(!_0x9487fd&&!_0x1ee781)continue;const _0x50de50=_0x3cd0cd['getFirstRange']();if(_0x50de50['start']['parent']!=_0x50de50['end']['parent']&&!_0x50de50['end']['isAtEnd']){const _0x439fab=_0x34cc01['model']['createPositionAt'](_0x50de50['start']['nodeAfter'],'end'),_0x530844=_0x34cc01['model']['createRange'](_0x50de50['start'],_0x439fab);_0x44f58c['updateMarker'](_0x3cd0cd['getFirstMarker'](),{'range':_0x530844}),_0x3d443a=!0x0;}}return _0x3d443a;}),_0x34cc01['model']['document']['registerPostFixer'](_0xe7ea23=>this['_processAttributeChanges'](_0xe7ea23)),_0x34cc01['model']['document']['registerPostFixer'](_0x3694ee=>!_0x3694ee['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3694ee)),_0x34cc01['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x34cc01['model']['document']['on']('change:data',(_0x2c4055,_0x42a290)=>{if(!_0x42a290['isLocal']||_0x42a290['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f5b9c=_0x34cc01['model']['document']['differ']['getChanges']();if(0x0==_0x1f5b9c['length'])return;const _0x327f5e=[],_0x2fa71f=_0x1f5b9c['filter'](_0x2a7d49=>'attribute'==_0x2a7d49['type']),_0x1ebfff=_0x1f5b9c['filter'](_0x14b1b6=>'insert'==_0x14b1b6['type']&&'$text'!=_0x14b1b6['name']);for(const _0x223581 of _0x2fa71f)this['_isRegisteredAttribute'](_0x223581['attributeKey'])&&_0x327f5e['push']({'key':_0x223581['attributeKey'],'newValue':_0x223581['attributeNewValue'],'oldValue':_0x223581['attributeOldValue'],'range':Ht(_0x223581['range'],_0x34cc01['model'])});for(const _0x5a8da5 of _0x1ebfff){if('rename'!=_0x5a8da5['action']&&'refresh'!=_0x5a8da5['action'])continue;const _0x21ac79=qt(_0x5a8da5['position']['nodeAfter'],_0x34cc01['model']),_0x47674f=_0x5a8da5['before'];'rename'==_0x5a8da5['action']&&_0x327f5e['push']({'key':u,'newValue':_0x5a8da5['name'],'oldValue':_0x47674f['name'],'range':_0x21ac79});for(const [_0x574c3a,_0x5d2973]of _0x47674f['attributes']){if(!this['_isRegisteredAttribute'](_0x574c3a))continue;const _0x42c09c=_0x5a8da5['attributes']['get'](_0x574c3a);_0x5d2973!==_0x42c09c&&_0x327f5e['push']({'key':_0x574c3a,'newValue':_0x42c09c,'oldValue':_0x5d2973,'range':_0x21ac79});}for(const [_0x2805e8,_0x5598d1]of _0x5a8da5['attributes'])this['_isRegisteredAttribute'](_0x2805e8)&&(_0x47674f['attributes']['has'](_0x2805e8)||_0x327f5e['push']({'key':_0x2805e8,'newValue':_0x5598d1,'oldValue':null,'range':_0x21ac79}));}0x0!=_0x327f5e['length']&&_0x34cc01['model']['enqueueChange'](_0x42a290,_0x172bf4=>{const _0x15b83c=_0x2e4cf8();for(const {range:_0x581dcf,key:_0x4e13de,oldValue:_0x247e8f,newValue:_0x56bc74}of _0x327f5e)this['markAttributeChange'](_0x581dcf,_0x4e13de,_0x247e8f,_0x56bc74,{'groupId':_0x15b83c});this['_reduceExistingSuggestions'](_0x172bf4,_0x327f5e);});},{'priority':'lowest'}),_0x34cc01['model']['markers']['on']('update:suggestion',(_0xf44a40,_0x5bee75,_0x36a81f)=>{if(null==_0x36a81f){const {id:_0x3b3e47}=this['_splitMarkerName'](_0x5bee75['name']),_0x5c4a2e=this['_suggestions']['get'](_0x3b3e47);_0x5c4a2e&&_0x5c4a2e['addMarkerName'](_0x5bee75['name']);}}),_0x34cc01['model']['document']['on']('change:data',()=>{const _0x3b73ad=Array['from'](_0x34cc01['model']['document']['differ']['getChangedMarkers']())['filter'](_0x372bfd=>'suggestion'===this['_splitMarkerName'](_0x372bfd['name'])['group']);if(0x0===_0x3b73ad['length'])return;_0x3b73ad['sort']((_0x1af7a6,_0x2993f1)=>{const _0x4b1ba3=_0x1af7a6['data']['oldRange'],_0x4d421c=_0x2993f1['data']['oldRange'];return null===_0x4b1ba3&&null===_0x4d421c?0x0:null===_0x4b1ba3&&null!==_0x4d421c?-0x1:null!==_0x4b1ba3&&null===_0x4d421c?0x1:_0x4b1ba3['start']['isBefore'](_0x4d421c['start'])?-0x1:0x1;});const _0x42bad5=new Set(),_0x5a48a4=new Set();for(const {name:_0xdd6f46,data:_0x1dfee5}of _0x3b73ad){const {id:_0xc398d5}=this['_splitMarkerName'](_0xdd6f46);if(null===_0x1dfee5['oldRange']){const _0x5835b2=this['_handleNewSuggestionMarker'](_0xdd6f46);_0x5a48a4['add'](_0x5835b2);}else{const _0x319b8b=this['_suggestions']['get'](_0xc398d5);null!==_0x1dfee5['newRange']||_0x319b8b['isInContent']?(_0x42bad5['add'](_0x319b8b['head']),_0x5a48a4['add'](_0x319b8b)):this['_removeSuggestion'](_0x319b8b);}}_0x5a48a4['size']>0x0&&this['_refreshSuggestionsChain'](_0x5a48a4);for(const _0x5d17cf of _0x42bad5)this['fire']('suggestionChanged',_0x5d17cf);}),_0x34cc01['model']['on']('applyOperation',(_0x5f034e,_0x4f98da)=>{const _0xebcd99=_0x4f98da[0x0];if(!this['_suggestions']['size'])return;if(!_0xebcd99['isDocumentOperation'])return;if(_0xebcd99['batch']['isUndo']||!_0xebcd99['batch']['isLocal'])return;let _0x80619f,_0x8b3fad;switch(_0xebcd99['type']){case'insert':_0x80619f=_0x34cc01['model']['createPositionAt'](_0xebcd99['position']),_0x8b3fad=_0x80619f['getShiftedBy'](_0xebcd99['howMany']);break;case'split':_0x80619f=_0x34cc01['model']['createPositionAt'](_0xebcd99['splitPosition']),_0x8b3fad=_0x34cc01['model']['createPositionAt'](_0xebcd99['moveTargetPosition']);break;case'move':_0x80619f=_0x34cc01['model']['createPositionAt'](_0xebcd99['targetPosition']),_0x8b3fad=_0x80619f['getShiftedBy'](_0xebcd99['howMany']);break;default:return;}const _0x30ebe8=_0x34cc01['model']['createRange'](_0x80619f,_0x8b3fad);_0x34cc01['model']['change'](()=>{for(const {suggestion:_0xc10769,meta:_0x543ff3}of this['_findSuggestions'](_0x30ebe8)){if(_0xc10769['isMultiRange'])continue;if('formatInline'==_0xc10769['type'])continue;const _0x264c7c=this['_getAttributeKey'](_0xc10769);if(_0x264c7c&&this['_isBlockAttribute'](_0x264c7c)&&'split'!=_0xebcd99['type'])continue;const _0xa74983=_0xc10769['data']&&_0xc10769['data']['multipleBlocks'];('formatBlock'!=_0xc10769['type']||'split'==_0xebcd99['type']&&!_0xa74983)&&(_0x543ff3['containsRangeInObject']||'insertion'==_0xc10769['type']&&_0x543ff3['isOwn']||_0xc10769['getFirstRange']()['containsRange'](_0x30ebe8)&&this['_breakSuggestionMarker'](_0xc10769,_0x80619f,_0x8b3fad));}});},{'priority':'lowest'}),_0x34cc01['model']['on']('deleteContent',(_0x427fc6,_0x31b377)=>{const _0x4d11c0=_0x31b377[0x0],_0x532d44=_0x31b377[0x1];if(_0x532d44&&_0x532d44['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d11c0['isCollapsed'])return;const _0x434629=_0x34cc01['model']['schema'],{start:_0x3f7d93,end:_0x65f800}=_0x4d11c0['getFirstRange'](),_0x4e376c=_0x3f7d93['nodeAfter']&&_0x434629['isLimit'](_0x3f7d93['nodeAfter'])?null:_0x434629['getNearestSelectionRange'](_0x3f7d93,'forward'),_0x5de40c=_0x65f800['nodeBefore']&&_0x434629['isLimit'](_0x65f800['nodeBefore'])?null:_0x434629['getNearestSelectionRange'](_0x65f800,'backward'),_0x219b88=_0x34cc01['model']['createRange'](_0x4e376c?_0x4e376c['start']:_0x3f7d93,_0x5de40c?_0x5de40c['end']:_0x65f800);_0x34cc01['model']['change'](_0x3d5e20=>{this['markDeletion'](_0x219b88);const _0x56e4d7=_0x34cc01['model']['schema']['getNearestSelectionRange'](_0x219b88['start']);_0x4d11c0['is']('documentSelection')?_0x3d5e20['setSelection'](_0x56e4d7):_0x4d11c0['setTo'](_0x56e4d7);}),_0x427fc6['stop']();},{'priority':_0x5c654c['normal']+0xa}),_0x34cc01['model']['on']('insertContent',(_0x5a305c,_0x3eeae8)=>{const _0x33933f=_0x3eeae8[_0x3eeae8['length']-0x1];_0x33933f&&_0x33933f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x34cc01['model']['change'](()=>{let _0x4cfe5f=_0x34cc01['model']['insertContent'](_0x3eeae8[0x0],_0x3eeae8[0x1],_0x3eeae8[0x2],{'forceDefaultExecution':!0x0});if(!_0x4cfe5f)return;_0x5a305c['return']=_0x4cfe5f['clone']();const _0x123a19=_0x4cfe5f['end']['nodeBefore'],_0x16482e=_0x34cc01['model']['schema'];_0x123a19&&_0x16482e['isBlock'](_0x123a19)&&!_0x16482e['isObject'](_0x123a19)&&(_0x4cfe5f=_0x34cc01['model']['createRange'](_0x4cfe5f['start'],_0x34cc01['model']['createPositionAt'](_0x123a19,'end'))),this['markInsertion'](_0x4cfe5f);}),_0x5a305c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5df5b5=new O(_0x34cc01,this['_suggestions']);_0x34cc01['commands']['add']('acceptSuggestion',_0x5df5b5),this['enableCommand']('acceptSuggestion');const _0x43d3e8=new R(_0x34cc01,this['_suggestions']);_0x34cc01['commands']['add']('discardSuggestion',_0x43d3e8),this['enableCommand']('discardSuggestion'),_0x34cc01['commands']['add']('acceptAllSuggestions',new x(_0x34cc01,_0x5df5b5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x34cc01['commands']['add']('discardAllSuggestions',new x(_0x34cc01,_0x43d3e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x34cc01['commands']['add']('acceptSelectedSuggestions',new E(_0x34cc01,_0x5df5b5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x34cc01['commands']['add']('discardSelectedSuggestions',new E(_0x34cc01,_0x43d3e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a1f2c=_0x34cc01['plugins']['get']('CommentsRepository');this['listenTo'](_0x5a1f2c,'addComment',(_0x2dd347,{threadId:_0x204c8a})=>{const _0x236d75=this['_suggestions']['get'](_0x204c8a);_0x236d75&&_0x236d75['commentThread']&&0x1===_0x236d75['commentThread']['length']&&this['_updateSuggestionData'](_0x204c8a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a1f2c,'removeComment',(_0x5d7e30,{threadId:_0x303703})=>{const _0x508c30=this['_suggestions']['get'](_0x303703);_0x508c30&&_0x508c30['commentThread']&&!_0x508c30['commentThread']['length']&&this['_updateSuggestionData'](_0x303703,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ca15a){const _0x2d823b=_0x2e894([0x66,0x62,0x4c,0x73,0x78,0x72,0x36,0x76,0x38,0x30,0x4b,0x57,0x34,0x46,0x35,0x67,0x4d,0x39,0x53,0x6c,0x32,0x65,0x6d,0x79,0x54,0x56,0x75,0x51,0x63,0x50,0x31,0x45,0x6a,0x74,0x7a,0x6b,0x41,0x47,0x44,0x42,0x4e,0x6e,0x43,0x61,0x48,0x71,0x4f,0x6f,0x64,0x55,0x49,0x58,0x33,0x37,0x77,0x69,0x59,0x68,0x52,0x70,0x4a,0x5a]),_0x214d05=0x1d28ae3a,_0x232274=0x1d2fce6a^_0x214d05,_0x358daf=window[_0x2e894([0x44,0x61,0x74,0x65])][_0x2e894([0x6e,0x6f,0x77])](),_0x52a48b=_0x4ca15a[_0x2e894([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x471dbb=new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44788a=>{_0x52a48b[_0x2e894([0x6f,0x6e,0x63,0x65])](_0x2e894([0x72,0x65,0x61,0x64,0x79]),_0x44788a);}),_0xb4a662={[_0x2e894([0x6b,0x74,0x79])]:_0x2e894([0x45,0x43]),[_0x2e894([0x75,0x73,0x65])]:_0x2e894([0x73,0x69,0x67]),[_0x2e894([0x63,0x72,0x76])]:_0x2e894([0x50,0x2d,0x32,0x35,0x36]),[_0x2e894([0x78])]:_0x2e894([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]),[_0x2e894([0x79])]:_0x2e894([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]),[_0x2e894([0x61,0x6c,0x67])]:_0x2e894([0x45,0x53,0x32,0x35,0x36])},_0x36d2ef=_0x52a48b[_0x2e894([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e894([0x67,0x65,0x74])](_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6a0c30(){let _0x1d533f,_0x4a9df2=null,_0x5cc4ee=null;try{if(_0x36d2ef==_0x2e894([0x47,0x50,0x4c]))return _0x2e894([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d533f=_0x8f8ddd(),!_0x1d533f)return _0x2e894([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d533f[_0x2e894([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5cc4ee=_0x3d1aa3(_0x1d533f[_0x2e894([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d533f[_0x2e894([0x6a,0x74,0x69])])),await _0x49de3d()?_0x1b3a1b()?_0x1dc0b6()?_0x2e894([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cb44f()?(_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e894([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a9df2=_0xccaafd(_0x2e894([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e894([0x74,0x72,0x69,0x61,0x6c])&&(_0x4a9df2=_0xccaafd(_0x2e894([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a64f1()):_0x2e894([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e894([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e894([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1e5a4f){return _0x2e894([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dc0b6(){const _0x514509=[_0x2e894([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e894([0x74,0x72,0x69,0x61,0x6c])][_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x358daf/0x3e8:0xe10*_0x232274;return _0x1d533f[_0x2e894([0x65,0x78,0x70])]<_0x514509;}function _0x1b3a1b(){const _0x509409=_0x1d533f[_0x2e894([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x509409)return!0x1;if(_0x509409[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x2a])))return!0x0;if(_0x509409[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x54,0x43])))return!0x0;if(_0x509409[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x52,0x54,0x43]))){if(_0x356049())return!0x0;if(_0x3d60cf()||_0x311d73())return!0x0;}return!0x1;}function _0x3cb44f(){const _0xb5d59a=_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb5d59a||0x0==_0xb5d59a[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x119789}=new URL(window[_0x2e894([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb5d59a[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119789))return!0x0;const _0x2c6494=_0x119789[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e]));return _0xb5d59a[_0x2e894([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3350=>_0x4a3350[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x2a])))[_0x2e894([0x6d,0x61,0x70])](_0x4c5b00=>_0x4c5b00[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e])))[_0x2e894([0x73,0x6f,0x6d,0x65])](_0x405274=>_0x2c6494[_0x2e894([0x65,0x76,0x65,0x72,0x79])]((_0x200e5d,_0x4d3246)=>_0x405274[_0x4d3246]===_0x200e5d||_0x405274[_0x4d3246]===_0x2e894([0x2a])));}function _0x5a64f1(){return _0x4a9df2&&_0x5cc4ee?new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ce05a,_0x50c87c)=>{_0x4a9df2[_0x2e894([0x74,0x68,0x65,0x6e])](_0x1ce05a,_0x50c87c),_0x5cc4ee[_0x2e894([0x74,0x68,0x65,0x6e])](_0x39d531=>{_0x39d531!=_0x2e894([0x56,0x61,0x6c,0x69,0x64])&&_0x1ce05a(_0x39d531);},_0x50c87c);}):_0x4a9df2||_0x5cc4ee||_0x2e894([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d1aa3(_0x1f4643,_0x17b182){return new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x80e52a=>{if(_0x32e4ac())return _0x80e52a(_0x2e894([0x56,0x61,0x6c,0x69,0x64]));_0x491b0d(),_0x52a48b[_0x2e894([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e894([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x77125f=!0x1;const _0x472f11=_0x2e4cf8();function _0x591e65(_0xd004fa){return!!_0xd004fa&&(typeof _0xd004fa===_0x2e894([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd004fa===_0x2e894([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd004fa[_0x2e894([0x74,0x68,0x65,0x6e])]===_0x2e894([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd004fa[_0x2e894([0x63,0x61,0x74,0x63,0x68])]===_0x2e894([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9de29d(_0x557828){_0x76313c(_0x557828)[_0x2e894([0x74,0x68,0x65,0x6e])](_0x575a69=>{if(!_0x575a69||_0x575a69[_0x2e894([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e894([0x6f,0x6b]))return _0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34619a(_0x1cde07(_0x472f11+_0x17b182))!=_0x575a69[_0x2e894([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e894([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e894([0x74,0x68,0x65,0x6e])](_0x47b944=>(_0x59435a(),_0x47b944),()=>{const _0x5d296d=_0x1025df();return null==_0x5d296d?(_0x59435a(),_0x2e894([0x56,0x61,0x6c,0x69,0x64])):_0x2e894(_0x358daf-_0x5d296d>(0x39242a3a^_0x214d05)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e894([0x74,0x68,0x65,0x6e])](_0x80e52a)[_0x2e894([0x63,0x61,0x74,0x63,0x68])](()=>{_0x80e52a(_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f36ab=0x1d1e40ba^_0x214d05;function _0x59435a(){const _0x2b7479=_0x2e894([0x6c,0x6c,0x63,0x74,0x2d])+_0x34619a(_0x1cde07(_0x1f4643)),_0x48e36c=_0x1409b2(_0x34619a(window[_0x2e894([0x4d,0x61,0x74,0x68])][_0x2e894([0x63,0x65,0x69,0x6c])](_0x358daf/_0x2f36ab)));window[_0x2e894([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e894([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b7479,_0x48e36c);}function _0x1025df(){const _0x338010=_0x2e894([0x6c,0x6c,0x63,0x74,0x2d])+_0x34619a(_0x1cde07(_0x1f4643)),_0x38f9ce=window[_0x2e894([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e894([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x338010);return _0x38f9ce?window[_0x2e894([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1409b2(_0x38f9ce),0x10)*_0x2f36ab:null;}function _0x76313c(_0x1b3694){return new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2adad3,_0x7214b1)=>{_0x1b3694[_0x2e894([0x74,0x68,0x65,0x6e])](_0x2adad3,_0x7214b1),window[_0x2e894([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7214b1,0x1d297afa^_0x214d05);});}}_0x52a48b[_0x2e894([0x6f,0x6e])](_0x2e894([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x330133,_0x4c4ff6)=>{if(_0x4c4ff6[0x0]!=_0x1f4643)return _0x80e52a(_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c4ff6[0x1]={..._0x4c4ff6[0x1],[_0x2e894([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x472f11};},{[_0x2e894([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e894([0x68,0x69,0x67,0x68])}),_0x52a48b[_0x2e894([0x6f,0x6e])](_0x2e894([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xba08d9=>{_0x591e65(_0xba08d9[_0x2e894([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x77125f=!0x0,_0x9de29d(_0xba08d9[_0x2e894([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e894([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e894([0x6c,0x6f,0x77])}),_0x471dbb[_0x2e894([0x74,0x68,0x65,0x6e])](()=>{_0x77125f||_0x80e52a(_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32e4ac(){return _0x52a48b[_0x2e894([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e894([0x76,0x69,0x65,0x77])][_0x2e894([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e894([0x61,0x75,0x74,0x6f]);}function _0x491b0d(){_0x52a48b[_0x2e894([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e894([0x76,0x69,0x65,0x77])][_0x2e894([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e894([0x61,0x75,0x74,0x6f]);}}function _0xccaafd(_0x3c4d37){const _0x47b789=[new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58c840=>setTimeout(_0x58c840,0x1d2190f6^_0x214d05)),_0x471dbb[_0x2e894([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35633c=>{let _0x19b4bc=0x0;_0x52a48b[_0x2e894([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e894([0x6f,0x6e])](_0x2e894([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2701b2,_0x4babaf)=>{_0x4babaf[0x0][_0x2e894([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19b4bc++,_0x19b4bc==(0x1d28afc2^_0x214d05)&&(_0x35633c(),_0x2701b2[_0x2e894([0x6f,0x66,0x66])]());});}))];return window[_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e894([0x72,0x61,0x63,0x65])](_0x47b789)[_0x2e894([0x74,0x68,0x65,0x6e])](()=>_0x3c4d37);}async function _0x582f76(){await _0x471dbb,_0x52a48b[_0x2e894([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e894([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46f228,_0x52a48b[_0x2e894([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e894([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46f228,_0x52a48b[_0x2e894([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e894([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x356049(){return _0x2fbe5a(_0x2e894([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb2bd4c(_0x2e894([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e894([0x73,0x74,0x61,0x74,0x65])]==_0x2e894([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d60cf(){return _0x2fbe5a(_0x2e894([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 _0x311d73(){return _0x2fbe5a(_0x2e894([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4dcb9b(_0x401f1e){const _0x22a3ee=_0x4c37fc();_0x52a48b[_0x22a3ee]=_0x2e894([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x401f1e,_0x401f1e!=_0x2e894([0x56,0x61,0x6c,0x69,0x64])&&_0x582f76();}function _0x4c37fc(){const _0x51ff0e=window[_0x2e894([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e894([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e894([0x6e,0x6f,0x77])]())[_0x2e894([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e894([0x2e]),'');let _0x11cb6c=_0x2e894([0x66]);for(let _0x3c2f0e=0x0;_0x3c2f0e<_0x51ff0e[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c2f0e+=0x2){let _0x11016b=window[_0x2e894([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ff0e[_0x2e894([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c2f0e,_0x3c2f0e+0x2));_0x11016b>=_0x2d823b[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11016b-=_0x2d823b[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11cb6c+=_0x2d823b[_0x11016b];}return _0x11cb6c;}function _0x8f8ddd(){const _0x45a2ae=_0x36d2ef[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e]));if(0x3!=_0x45a2ae[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc9ec1d(_0x45a2ae[0x1]);function _0xc9ec1d(_0x1e6382){const _0x26492e=_0x1c8dee(_0x1e6382);return _0x26492e&&_0x20b98b()?_0x26492e:null;function _0x20b98b(){const _0x3ad1ce=_0x26492e[_0x2e894([0x6a,0x74,0x69])],_0x163560=window[_0x2e894([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ad1ce[_0x2e894([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ad1ce[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b193e={..._0x26492e,[_0x2e894([0x6a,0x74,0x69])]:_0x3ad1ce[_0x2e894([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ad1ce[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b193e[_0x2e894([0x76,0x63])],_0x1cde07(_0x4b193e)==_0x163560;}}}async function _0x49de3d(){let _0x43c1b1=!0x0;try{const _0x1cd913=_0x36d2ef[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e])),[_0x14f9d8,_0x49bb46,_0x658af2]=_0x1cd913;return _0x12f587(_0x14f9d8),await _0x6db78b(_0x14f9d8,_0x49bb46,_0x658af2),_0x43c1b1;}catch(_0x4deee6){return!0x1;}function _0x12f587(_0x4e0b7f){const _0x59df29=_0x1c8dee(_0x4e0b7f);_0x59df29&&_0x59df29[_0x2e894([0x61,0x6c,0x67])]==_0x2e894([0x45,0x53,0x32,0x35,0x36])||(_0x43c1b1=!0x1);}async function _0x6db78b(_0x2a3d4e,_0x33b317,_0xf45b36){const _0x212535=window[_0x2e894([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e894([0x66,0x72,0x6f,0x6d])](_0x5cfbec(_0xf45b36),_0x3e0358=>_0x3e0358[_0x2e894([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x316afb=new window[(_0x2e894([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e894([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a3d4e+_0x2e894([0x2e])+_0x33b317),_0x6b8928=window[_0x2e894([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e894([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6b8928)return;const _0x766bda=await _0x6b8928[_0x2e894([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e894([0x6a,0x77,0x6b]),_0xb4a662,{[_0x2e894([0x6e,0x61,0x6d,0x65])]:_0x2e894([0x45,0x43,0x44,0x53,0x41]),[_0x2e894([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e894([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e894([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6b8928[_0x2e894([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e894([0x6e,0x61,0x6d,0x65])]:_0x2e894([0x45,0x43,0x44,0x53,0x41]),[_0x2e894([0x68,0x61,0x73,0x68])]:{[_0x2e894([0x6e,0x61,0x6d,0x65])]:_0x2e894([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x766bda,_0x212535,_0x316afb)||(_0x43c1b1=!0x1);}}function _0x1c8dee(_0x2b6c86){return _0x2b6c86[_0x2e894([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e894([0x65,0x79]))?JSON[_0x2e894([0x70,0x61,0x72,0x73,0x65])](_0x5cfbec(_0x2b6c86)):null;}function _0x5cfbec(_0x291668){return window[_0x2e894([0x61,0x74,0x6f,0x62])](_0x291668[_0x2e894([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e894([0x2b]))[_0x2e894([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e894([0x2f])));}function _0x1cde07(_0x3dc7a2){let _0x3df7b2=0x1505;function _0x1d57ed(_0x1e4964){for(let _0x503a97=0x0;_0x503a97<_0x1e4964[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x503a97++){const _0x500106=_0x1e4964[_0x2e894([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x503a97);_0x3df7b2=(_0x3df7b2<<0x5)+_0x3df7b2+_0x500106,_0x3df7b2&=_0x3df7b2;}}function _0x485087(_0x2fb077){Array[_0x2e894([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fb077)?_0x2fb077[_0x2e894([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x485087):_0x2fb077&&typeof _0x2fb077==_0x2e894([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e894([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fb077)[_0x2e894([0x73,0x6f,0x72,0x74])]()[_0x2e894([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cd13e,_0x12e65c])=>{_0x1d57ed(_0x2cd13e),_0x485087(_0x12e65c);}):_0x1d57ed(window[_0x2e894([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fb077));}return _0x485087(_0x3dc7a2),_0x3df7b2>>>0x0;}function _0x34619a(_0xc4aa06){return _0xc4aa06[_0x2e894([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e894([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e894([0x30]));}function _0x1409b2(_0x242fa5){return _0x242fa5[_0x2e894([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e894([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e894([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fbe5a(_0x1bc2cc){return _0x52a48b[_0x2e894([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e894([0x68,0x61,0x73])](_0x1bc2cc);}function _0xb2bd4c(_0x68f132){return _0x52a48b[_0x2e894([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e894([0x67,0x65,0x74])](_0x68f132);}function _0x46f228(){}function _0x2e894(_0x39042f){return _0x39042f['map'](_0x19c4aa=>String['fromCharCode'](_0x19c4aa))['join']('');}_0x4dcb9b(await _0x6a0c30());}(this);}set['adapter'](_0x4c4e7d){if(this['_adapter'])throw new _0x23f583('track-changes-adapter-already-set',this);this['_adapter']=_0x4c4e7d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x246e86=!0x1,toJSON:_0x2c4107=!0x1}={}){const _0x514a6c=[];for(const _0x5b4d6a of this['_suggestions']['values']())_0x246e86&&!_0x5b4d6a['isInContent']||_0x514a6c['push'](_0x5b4d6a);return _0x2c4107?_0x514a6c['map'](_0x38cc44=>_0x38cc44['toJSON']()):_0x514a6c;}['getSuggestion'](_0x131bc4){const _0x5426e2=this['_suggestions']['get'](_0x131bc4);if(!_0x5426e2)throw new _0x23f583('track-changes-suggestion-not-found',this);return _0x5426e2;}['hasSuggestion'](_0x18dabb){return this['_suggestions']['has'](_0x18dabb);}['addSuggestionData'](_0x397281){const {authorId:_0x263320,id:_0x2ff77a,attributes:_0x639533}=_0x397281,[_0x4caa6d,_0x59ef5f]=_0x397281['type']['split'](':'),_0x34da54=this['_suggestions']['get'](_0x2ff77a)||this['_createSuggestion'](_0x4caa6d,_0x59ef5f,_0x2ff77a,_0x263320,_0x639533);if(this['_addThreadToSuggestion'](_0x34da54),this['_checkSuggestionCorrectness'](_0x34da54,_0x4caa6d,_0x59ef5f||null,_0x263320),_0x34da54['createdAt']=_0x397281['createdAt'],_0x34da54['_isDataLoaded']=!0x0,_0x639533&&_0x639533['@external']){const _0x1afa6d=_0x639533['@external'],_0x53f0a2=this['_getExternalAuthor'](_0x1afa6d['authorName']);_0x34da54['authoredAt']=_0x1afa6d['createdAt'],_0x34da54['author']=_0x53f0a2,_0x34da54['isExternal']=!0x0;}else _0x34da54['authoredAt']=_0x397281['createdAt'];switch(_0x397281['data']&&(_0x34da54['data']=_0x397281['data']),_0x397281['attributes']&&(_0x34da54['attributes']=_0x397281['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x34da54['_saved']=!0x0),this['_suggestionState']['get'](_0x34da54)){case'notReady':this['_suggestionState']['set'](_0x34da54,'dataReady');break;case'markerReady':_0x34da54['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x34da54])),this['_refreshSuggestionsChain'](new Set([_0x34da54])),this['_suggestionState']['set'](_0x34da54,'ready'),this['fire']('suggestionLoaded',_0x34da54)):this['_suggestionState']['set'](_0x34da54,'removed');}return _0x34da54;}['acceptSuggestion'](_0x58c66e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x514843 of _0x58c66e['getAllAdjacentSuggestions']())_0x514843['accept']();});});}['discardSuggestion'](_0x4a3572){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2906ba of _0x4a3572['getAllAdjacentSuggestions']())_0x2906ba['discard']();});});}['enableCommand'](_0x136a61,_0x2aa93a){const _0x5403b6=this['editor']['commands']['get'](_0x136a61);if(!_0x5403b6)throw new _0x23f583('track-changes-command-not-found',this,{'commandName':_0x136a61});if(this['_enabledCommands']['has'](_0x5403b6))throw new _0x23f583('track-changes-enable-command-twice',this,{'commandName':_0x136a61});this['_enabledCommands']['add'](_0x5403b6),_0x2aa93a&&_0x5403b6['on']('execute',(_0x268f3c,_0x87aad9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x87aad9['length']>0x0&&_0x87aad9[_0x87aad9['length']-0x1]&&_0x87aad9[_0x87aad9['length']-0x1]['forceDefaultExecution']?_0x87aad9['pop']():(_0x268f3c['return']=_0x2aa93a((..._0x21e857)=>_0x5403b6['execute'](..._0x21e857,{'forceDefaultExecution':!0x0}),..._0x87aad9),_0x268f3c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x55869d){let _0x19c808,_0x5e0734;const _0x4ad712=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x19c808=_0x55869d();}catch(_0xaa9b40){_0x5e0734=_0xaa9b40;}return _0x4ad712||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e0734&&_0x23f583['rethrowUnexpectedError'](_0x5e0734,this),_0x19c808;}['markInsertion'](_0x52409b,_0x87e189=null,_0x148055={}){if(_0x52409b['isCollapsed'])return null;const _0x58261e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4138d1,meta:_0x478890}of this['_findSuggestions'](_0x52409b,'insertion'))if(_0x478890['isOwn']){if(!_0x478890['isNextTo']){if(_0x478890['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4138d1,_0x148055))continue;return _0x4138d1;}if(Qt(_0x4138d1,_0x148055))return _0x4138d1;this['_breakSuggestionMarker'](_0x4138d1,_0x52409b['start'],_0x52409b['end']);break;}if(_0x87e189==_0x4138d1['subType']&&Qt(_0x4138d1,_0x148055)){const _0x574292=_0x4138d1['getFirstRange']();return _0x574292['start']['isEqual'](_0x52409b['end'])?this['_setSuggestionRange'](_0x4138d1,this['_model']['createRange'](_0x52409b['start'],_0x574292['end'])):this['_setSuggestionRange'](_0x4138d1,this['_model']['createRange'](_0x574292['start'],_0x52409b['end'])),_0x4138d1;}}const _0x22b586=_0x2e4cf8(),_0x332e20=_0x58261e['id'],_0x34e25b=_0x87e189?'insertion:'+_0x87e189:'insertion',_0x3a56a3=this['_setSuggestionData']({'id':_0x22b586,'type':_0x34e25b,'createdAt':new Date(),'authorId':_0x332e20,'attributes':_0x148055});return this['_addSuggestionMarker'](_0x34e25b,_0x22b586,_0x332e20,_0x52409b),_0x3a56a3;}['markMultiRangeInsertion'](_0x5b30f3,_0x3979bd='multi',_0x265478={}){const _0x5df9de=this['editor']['plugins']['get']('Users')['me'],_0x5e66c4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3979bd,'join');for(const _0x569e10 of this['getSuggestions']())if(_0x569e10['author']['id']==_0x5df9de['id']&&'insertion'==_0x569e10['type']&&_0x569e10['subType']==_0x3979bd&&Qt(_0x569e10,_0x265478)&&(_0x5e66c4(_0x569e10['getRanges'](),_0x5b30f3)||_0x5e66c4(_0x5b30f3,_0x569e10['getRanges']()))){for(const _0x49bbff of _0x5b30f3)_0x569e10['addRange'](_0x49bbff);return _0x569e10;}for(const {suggestion:_0x244489,meta:_0x43470e}of this['_findSuggestions'](_0x5b30f3,'insertion')){if(!_0x43470e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x43470e['containsRangeInObject'])continue;if(!Qt(_0x244489,_0x265478))continue;let _0x2e18d6=!0x0;for(const _0x282740 of _0x244489['getRanges']())for(const _0x175eed of _0x5b30f3)if(!_0x282740['containsRange'](_0x175eed)){_0x2e18d6=!0x1;break;}if(_0x2e18d6)return _0x244489;}const _0x396a2a=_0x2e4cf8(),_0x42e8ef=_0x5df9de['id'],_0x493315='insertion:'+_0x3979bd,_0x142ad6=this['_setSuggestionData']({'id':_0x396a2a,'type':_0x493315,'createdAt':new Date(),'authorId':_0x42e8ef,'attributes':_0x265478});for(const _0x406907 of _0x5b30f3)this['_addSuggestionMarker'](_0x493315,_0x396a2a,_0x42e8ef,_0x406907,o['getMultiRangeId']());return _0x142ad6;}['markInlineFormat'](_0x4e0dd5,_0x39ece9,_0x5859a8=null,_0x47f8b1={}){if(_0x5859a8=_0x5859a8||Jt(_0x39ece9),_0x4e0dd5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xe2b785=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5859a8,'accept');return this['forceDefaultExecution'](()=>_0xe2b785([_0x4e0dd5],_0x39ece9,_0x47f8b1)),null;}const _0x123b9c=this['editor']['plugins']['get']('Users')['me'],_0x566a33=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x46dd54,meta:_0x3e607c}of this['_findSuggestions'](_0x4e0dd5,'insertion'))_0x3e607c['isOwn']&&!_0x3e607c['isInsideObject']&&_0x566a33['push'](..._0x46dd54['getRanges']());}const _0x4856f4=function(_0x15b8a7,_0x8693fe){const _0x423e48=[];for(const _0x2ed0b9 of _0x8693fe){const _0x18f4d9=_0x15b8a7['getIntersection'](_0x2ed0b9);_0x18f4d9&&_0x423e48['push'](_0x18f4d9);}return _0x423e48;}(_0x4e0dd5,_0x566a33),_0x453ffa=function(_0x2d002e,_0x423096){const _0x5687d8=[_0x2d002e];for(const _0x2911b8 of _0x423096){let _0x794ef4=0x0;for(;_0x794ef4<_0x5687d8['length'];){const _0x37520d=_0x5687d8[_0x794ef4]['getDifference'](_0x2911b8);_0x5687d8['splice'](_0x794ef4,0x1,..._0x37520d),_0x794ef4+=_0x37520d['length'];}}return _0x5687d8;}(_0x4e0dd5,_0x566a33);_0x4856f4['length']&&this['_model']['change'](()=>{for(const _0xebc113 of _0x4856f4){const _0x2825a3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5859a8,'accept');this['forceDefaultExecution'](()=>_0x2825a3([_0xebc113],_0x39ece9,_0x47f8b1));}});for(const _0x37e5cd of _0x453ffa){let _0x7991d3=null,_0x21ab49=_0x37e5cd['start'],_0x1457ac=_0x37e5cd['end'];for(const {suggestion:_0x102106,meta:_0x77a916}of this['_findSuggestions'](_0x37e5cd,'formatInline')){if(!_0x77a916['isOwn'])continue;if(_0x102106['subType']!=_0x5859a8)continue;if(!Qt(_0x102106,_0x47f8b1))continue;const _0x2d9684=_0x102106['getFirstRange']();if(_0x2d9684['containsRange'](_0x37e5cd,!0x0))return null;_0x21ab49=_0x21ab49['isBefore'](_0x2d9684['start'])?_0x21ab49:_0x2d9684['start'],_0x1457ac=_0x1457ac['isAfter'](_0x2d9684['end'])?_0x1457ac:_0x2d9684['end'],_0x7991d3?_0x2d9684['start']['isBefore'](_0x7991d3['getFirstRange']()['start'])?(_0x7991d3['removeMarkers'](),_0x7991d3=_0x102106):_0x102106['removeMarkers']():_0x7991d3=_0x102106;}const _0x294636=this['_model']['createRange'](_0x21ab49,_0x1457ac);if(_0x7991d3)this['_setSuggestionRange'](_0x7991d3,_0x294636);else{const _0x52a1bc=_0x2e4cf8(),_0x144068=_0x123b9c['id'];this['_setSuggestionData']({'id':_0x52a1bc,'type':'formatInline:'+_0x5859a8,'data':_0x39ece9,'createdAt':new Date(),'authorId':_0x144068,'attributes':_0x47f8b1}),this['_addSuggestionMarker']('formatInline:'+_0x5859a8,_0x52a1bc,_0x144068,_0x294636);}}return null;}['markBlockFormat'](_0x2cf718,_0x29a2da,_0x5e660c=[],_0x3fa810=null,_0x1b9df2={}){_0x29a2da['formatGroupId']||(_0x29a2da['formatGroupId']=_0x29a2da['commandName']),_0x29a2da['multipleBlocks']=_0x2cf718['is']('range'),_0x3fa810=_0x3fa810||Jt(_0x29a2da);const _0x2f5b5e=_0x5e660c['map'](_0x535378=>qt(_0x535378,this['_model'])),_0x5a45ad=_0x2cf718['is']('range')?_0x2cf718:qt(_0x2cf718,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5da650=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fa810,'accept');return this['forceDefaultExecution'](()=>_0x5da650([_0x5a45ad],_0x29a2da,_0x1b9df2)),null;}_0x2f5b5e['push'](_0x5a45ad);let _0x3405d9=!0x0;for(const _0x58d089 of _0x2f5b5e)if(!this['_rangeIsInLocalUserInsertion'](_0x58d089)){_0x3405d9=!0x1;break;}if(_0x3405d9&&'always'!==this['_trackFormatChanges']){const _0x14af40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fa810,'accept');return this['forceDefaultExecution'](()=>_0x14af40([_0x5a45ad],_0x29a2da,_0x1b9df2)),null;}let _0xf28b1e=null,_0x29ee41=_0x5a45ad['start'],_0x1faa9c=_0x5a45ad['end'];for(const {suggestion:_0x11cb99,meta:_0x30fa5f}of this['_findSuggestions'](_0x5a45ad,'formatBlock')){if(!_0x30fa5f['isOwn'])continue;if(_0x30fa5f['isNextTo']||_0x30fa5f['containsRangeInObject']||_0x30fa5f['isInsideObject'])continue;if(_0x11cb99['data']['formatGroupId']!=_0x29a2da['formatGroupId'])continue;if(!Qt(_0x11cb99,_0x1b9df2))continue;const _0x5cc5d0=_0x11cb99['getFirstRange']();if(_0x11cb99['subType']==_0x3fa810){if(_0x5cc5d0['containsRange'](_0x5a45ad,!0x0))return null;_0x29ee41=_0x29ee41['isBefore'](_0x5cc5d0['start'])?_0x29ee41:_0x5cc5d0['start'],_0x1faa9c=_0x1faa9c['isAfter'](_0x5cc5d0['end'])?_0x1faa9c:_0x5cc5d0['end'],_0xf28b1e?_0x5cc5d0['start']['isBefore'](_0xf28b1e['getFirstRange']()['start'])?(_0xf28b1e['removeMarkers'](),_0xf28b1e=_0x11cb99):_0x11cb99['removeMarkers']():_0xf28b1e=_0x11cb99;}else{const _0xdff21a=_0x5a45ad['getIntersection'](_0x5cc5d0);this['_cutOutSuggestionMarker'](_0x11cb99,_0xdff21a);}}const _0x177d37=this['editor']['plugins']['get']('Users')['me'],_0x447329=_0x2e4cf8(),_0x671508=_0x177d37['id'];if(_0xf28b1e)return this['_setSuggestionRange'](_0xf28b1e,this['_model']['createRange'](_0x29ee41,_0x1faa9c)),_0xf28b1e;{const _0x254451=this['_setSuggestionData']({'id':_0x447329,'type':'formatBlock:'+_0x3fa810,'data':_0x29a2da,'createdAt':new Date(),'authorId':_0x671508,'attributes':_0x1b9df2});return this['_addSuggestionMarker']('formatBlock:'+_0x3fa810,_0x447329,_0x671508,this['_model']['createRange'](_0x29ee41,_0x1faa9c)),_0x254451;}}['markMultiRangeBlockFormat'](_0x54d3ab,_0x736395,_0x3e328f=[],_0x3c2a81=null,_0x4720ad={}){_0x736395['formatGroupId']||(_0x736395['formatGroupId']=_0x736395['commandName']);const _0x39c830=_0x54d3ab[0x0];_0x736395['multipleBlocks']=_0x39c830['is']('range'),_0x3c2a81=_0x3c2a81||Jt(_0x736395);const _0x312722=_0x3e328f['map'](_0x10eccb=>qt(_0x10eccb,this['_model'])),_0x3ddc92=_0x39c830['is']('range')?_0x54d3ab:_0x54d3ab['map'](_0x4d7a36=>qt(_0x4d7a36,this['_model']));if('never'===this['_trackFormatChanges']){const _0xd7e31a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2a81,'accept');return this['forceDefaultExecution'](()=>_0xd7e31a(_0x3ddc92,_0x736395,_0x4720ad)),null;}_0x312722['push'](..._0x3ddc92);let _0x4f546c=!0x0;for(const _0x1263e0 of _0x312722)if(!this['_rangeIsInLocalUserInsertion'](_0x1263e0)){_0x4f546c=!0x1;break;}if(_0x4f546c&&'always'!==this['_trackFormatChanges']){const _0x1575dc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2a81,'accept');return this['forceDefaultExecution'](()=>_0x1575dc(_0x3ddc92,_0x736395,_0x4720ad)),null;}const _0x62aa80=this['editor']['plugins']['get']('Users')['me'];for(const _0x363c75 of this['getSuggestions']()){if(_0x363c75['author']['id']!=_0x62aa80['id'])continue;if('formatBlock'!=_0x363c75['type']||_0x363c75['data']['formatGroupId']!=_0x736395['formatGroupId'])continue;if(!Qt(_0x363c75,_0x4720ad))continue;const _0x2aad91=_0x363c75['subType']==_0x3c2a81;for(let _0x2434e1=0x0;_0x2434e1<_0x3ddc92['length'];_0x2434e1++){const _0x3478c0=_0x3ddc92[_0x2434e1];for(const _0x2f76a8 of _0x363c75['getMarkers']()){const _0x17ae7c=_0x2f76a8['getRange']();if(_0x3478c0['isEqual'](_0x17ae7c)){_0x2aad91?(_0x3ddc92['splice'](_0x2434e1,0x1),_0x2434e1--):_0x363c75['removeMarker'](_0x2f76a8['name']);break;}}}}if(0x0==_0x3ddc92['length'])return null;const _0x13e66c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2a81,'join');for(const _0x1429b8 of this['getSuggestions']())if(_0x1429b8['author']['id']==_0x62aa80['id']&&'formatBlock'==_0x1429b8['type']&&_0x1429b8['data']['formatGroupId']==_0x736395['formatGroupId']&&_0x1429b8['subType']==_0x3c2a81&&Qt(_0x1429b8,_0x4720ad)&&(_0x13e66c(_0x1429b8['getRanges'](),_0x3ddc92)||_0x13e66c(_0x3ddc92,_0x1429b8['getRanges']()))){for(const _0x37d43d of _0x3ddc92)_0x1429b8['addRange'](_0x37d43d);return _0x1429b8;}const _0x5a9376=_0x2e4cf8(),_0x591aee=_0x62aa80['id'],_0x20b7b9='formatBlock:'+_0x3c2a81,_0x2c2a2e=this['_setSuggestionData']({'id':_0x5a9376,'type':_0x20b7b9,'data':_0x736395,'createdAt':new Date(),'authorId':_0x591aee,'attributes':_0x4720ad});for(const _0x2067b1 of _0x3ddc92)this['_addSuggestionMarker'](_0x20b7b9,_0x5a9376,_0x591aee,_0x2067b1,o['getMultiRangeId']());return _0x2c2a2e;}['markDeletion'](_0x384ba6,_0x5f5482=null,_0xe761a0={}){if(_0x384ba6['isCollapsed'])return null;const _0x23d9f9=this['editor']['plugins']['get']('Users')['me'],_0x2ea3f4=new _0x26d742(_0x384ba6['start'],_0x384ba6['end']);for(const {suggestion:_0x57656e,meta:_0x587816}of this['_findSuggestions'](_0x2ea3f4,'insertion'))if(_0x587816['isOwn']&&!_0x587816['isNextTo']){if(_0x57656e['isMultiRange']){const _0x1896d3=_0x57656e['getRanges']()['filter'](_0x55fa4b=>'$graveyard'!=_0x55fa4b['root']['rootName']);_0x1896d3['every'](_0x95bf0a=>_0x2ea3f4['containsRange'](_0x95bf0a,!0x0))&&_0x57656e['discard']();if(_0x1896d3['some'](_0x674735=>_0x674735['containsRange'](_0x2ea3f4,!0x0))){const _0x1f6a1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f5482,'accept');return this['forceDefaultExecution'](()=>_0x1f6a1e([_0x2ea3f4],null,_0xe761a0)),null;}}else{const _0x5e9b80=_0x2ea3f4['getIntersection'](_0x57656e['getFirstRange']());null!==_0x5e9b80&&_0x57656e['_onDiscard']([_0x5e9b80],null,_0xe761a0);}}if(_0x2ea3f4['detach'](),_0x2ea3f4['isCollapsed']||'$graveyard'==_0x2ea3f4['root']['rootName'])return null;let _0x3e3562=null,_0x4fe25f=_0x2ea3f4['start'],_0x1a950a=_0x2ea3f4['end'];const _0x6aed1f=this['_findSuggestions'](_0x2ea3f4,'deletion');for(const {suggestion:_0x42fc6,meta:_0x4e4bb6}of _0x6aed1f){const _0x25cb7c=this['_model']['createRange'](_0x4fe25f,_0x1a950a);if(_0x4e4bb6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e4bb6['containsRangeInObject']&&!_0x4e4bb6['isInsideObject'])){if(_0x42fc6['isMultiRange']){if(!Qt(_0x42fc6,_0xe761a0))continue;let _0x5c5a70=!0x0;for(const _0x4c6550 of _0x42fc6['getRanges']()){if(_0x4c6550['containsRange'](_0x25cb7c,!0x0))return _0x42fc6;_0x25cb7c['containsRange'](_0x4c6550)||(_0x5c5a70=!0x1);}_0x5c5a70&&_0x42fc6['discard']();}else{const _0x4197b3=_0x42fc6['getFirstRange']();if(_0x4197b3['containsRange'](_0x25cb7c,!0x0))return _0x42fc6;if(!Qt(_0x42fc6,_0xe761a0)){_0x25cb7c['containsRange'](_0x4197b3)?_0x42fc6['removeMarkers']():_0x4197b3['containsPosition'](_0x4fe25f)?_0x4fe25f=_0x4197b3['end']:_0x4197b3['containsPosition'](_0x1a950a)&&(_0x1a950a=_0x4197b3['start']);continue;}_0x4fe25f=_0x4fe25f['isBefore'](_0x4197b3['start'])?_0x4fe25f:_0x4197b3['start'],_0x1a950a=_0x1a950a['isAfter'](_0x4197b3['end'])?_0x1a950a:_0x4197b3['end'],_0xe761a0=Object['assign']({},_0x42fc6['attributes']),_0x3e3562?_0x4197b3['start']['isBefore'](_0x3e3562['getFirstRange']()['start'])?(_0x3e3562['removeMarkers'](),_0x3e3562=_0x42fc6):_0x42fc6['removeMarkers']():_0x3e3562=_0x42fc6;}}}if(_0x3e3562)return this['_setSuggestionRange'](_0x3e3562,this['_model']['createRange'](_0x4fe25f,_0x1a950a)),_0x3e3562;{const _0x2a06b8=_0x2e4cf8(),_0x67e4d=this['_model']['createRange'](_0x4fe25f,_0x1a950a),_0xadc638=_0x23d9f9['id'],_0x2168a9=_0x5f5482?'deletion:'+_0x5f5482:'deletion',_0x358e9c=this['_setSuggestionData']({'id':_0x2a06b8,'type':_0x2168a9,'createdAt':new Date(),'authorId':_0xadc638,'attributes':_0xe761a0});return this['_addSuggestionMarker'](_0x2168a9,_0x2a06b8,_0xadc638,_0x67e4d),_0x358e9c;}}['markMultiRangeDeletion'](_0x2be1b5,_0x62b593='multi',_0x27780f={}){const _0x2accc3=this['editor']['plugins']['get']('Users')['me'],_0xb2775b=_0x2be1b5['map'](_0x3c6302=>new _0x26d742(_0x3c6302['start'],_0x3c6302['end'])),_0x384d02=new Set();for(const {suggestion:_0x1aaa43,meta:_0x2f2a27}of this['_findSuggestions'](_0xb2775b,'insertion'))_0x2f2a27['isOwn']&&!_0x2f2a27['isNextTo']&&_0x384d02['add'](_0x1aaa43);for(const _0x46b76b of _0x384d02)if(_0x46b76b['isMultiRange']){const _0x5f14ca=_0x46b76b['getRanges']();(!_0x46b76b['attributes']||!_0x46b76b['attributes']['skipNestingCheck'])&&(_0x5f14ca['every'](_0x22274e=>_0xb2775b['some'](_0x12d7eb=>_0x12d7eb['containsRange'](_0x22274e,!0x0)))&&_0x46b76b['discard']());if(_0xb2775b['every'](_0x33234e=>_0x5f14ca['some'](_0x56f124=>_0x56f124['containsRange'](_0x33234e,!0x0)))){const _0xc6cdab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x62b593,'accept');return this['forceDefaultExecution'](()=>_0xc6cdab(_0x2be1b5,null,_0x27780f)),null;}}else{const _0x46bab3=_0x46b76b['getFirstRange']();_0xb2775b['some'](_0x3e872c=>_0x3e872c['containsRange'](_0x46bab3,!0x0))&&_0x46b76b['discard']();if(_0xb2775b['every'](_0x2132b8=>_0x46bab3['containsRange'](_0x2132b8,!0x0))){const _0x4b9f1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x62b593,'accept');return this['forceDefaultExecution'](()=>_0x4b9f1e(_0xb2775b,null,_0x27780f)),null;}}const _0x4bf817=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x62b593,'join');let _0x5d0f9d=null;for(const _0x7b179 of this['getSuggestions']())if(_0x7b179['author']['id']==_0x2accc3['id']&&_0x7b179['isInContent']&&'deletion'==_0x7b179['type']&&_0x7b179['subType']==_0x62b593&&Qt(_0x7b179,_0x27780f)&&(_0x4bf817(_0x7b179['getRanges'](),_0xb2775b)||_0x4bf817(_0xb2775b,_0x7b179['getRanges']()))){if(_0x5d0f9d){if(_0x7b179['commentThread']&&_0x7b179['commentThread']['length'])continue;for(const _0x2e3da0 of _0x7b179['getRanges']())_0x5d0f9d['isIntersectingWithRange'](_0x2e3da0)||_0x5d0f9d['addRange'](_0x2e3da0);_0x7b179['removeMarkers']();}else{_0x5d0f9d=_0x7b179;for(const _0x1ff431 of _0xb2775b)_0x7b179['isIntersectingWithRange'](_0x1ff431)||_0x7b179['addRange'](_0x1ff431);}}if(_0x5d0f9d)return _0x5d0f9d;_0x384d02['clear']();for(const {suggestion:_0x257358,meta:_0x45ea17}of this['_findSuggestions'](_0xb2775b,'deletion'))_0x45ea17['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45ea17['containsRangeInObject']&&!_0x45ea17['isInsideObject'])&&Qt(_0x257358,_0x27780f)&&_0x384d02['add'](_0x257358);for(const _0x27c83f of _0x384d02){const _0x2e2521=_0x27c83f['getRanges']();if(!_0x27780f||!_0x27780f['skipNestingCheck']){if(_0xb2775b['every'](_0x4f0521=>_0x2e2521['some'](_0x5839f2=>_0x5839f2['containsRange'](_0x4f0521,!0x0))))return _0x27c83f;}(!_0x27c83f['attributes']||!_0x27c83f['attributes']['skipNestingCheck'])&&(_0x2e2521['every'](_0xe8a43c=>_0xb2775b['some'](_0x1f3592=>_0x1f3592['containsRange'](_0xe8a43c,!0x0)))&&_0x27c83f['discard']());}const _0x42c11c=_0x2e4cf8(),_0xca591d=_0x2accc3['id'],_0x10ee2a='deletion:'+_0x62b593,_0x59fd46=this['_setSuggestionData']({'id':_0x42c11c,'type':_0x10ee2a,'createdAt':new Date(),'authorId':_0xca591d,'attributes':_0x27780f});for(const _0x5660be of _0xb2775b)_0x5660be['detach'](),_0x5660be['isCollapsed']||'$graveyard'==_0x5660be['root']['rootName']||this['_addSuggestionMarker'](_0x10ee2a,_0x42c11c,_0xca591d,_0x5660be,o['getMultiRangeId']());return _0x59fd46;}['markAttributeChange'](_0x303983,_0x11286c,_0x541676,_0x348de6,_0x186323){if(_0x303983['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x441686=this['editor']['plugins']['get']('Users')['me']['id'],_0x291684=Array['from'](this['_suggestions']['values']())['filter'](_0x22af6f=>'attribute'==_0x22af6f['type']&&_0x22af6f['data']['key']==_0x11286c&&_0x22af6f['isIntersectingWithRange'](_0x303983));if('default'===this['_trackFormatChanges']){const _0x9b9d2d=this['_findSuggestions'](_0x303983,'insertion')['filter'](({meta:_0x5e9fad})=>_0x5e9fad['isOwn']&&!_0x5e9fad['isInsideObject']&&!_0x5e9fad['isNextTo'])['map'](({suggestion:_0x37a3ec})=>_0x37a3ec);_0x291684['unshift'](..._0x9b9d2d);}const _0xfb51c7=new Map([[_0x303983,_0x541676]]);for(const _0x3cc6cb of _0x291684){const _0x2e70d8='attribute'==_0x3cc6cb['type']?_0x3cc6cb['data']['oldValue']:void 0x0,_0xb4b5f0=_0x3cc6cb['getFirstRange'](),_0x2d5cbb=Array['from'](_0xfb51c7['keys']())['find'](_0x29fe96=>_0x29fe96['isIntersecting'](_0xb4b5f0));if(!_0x2d5cbb)continue;const _0x26c49b=_0x2d5cbb['getDifference'](_0xb4b5f0);this['_isBlockAttribute'](_0x11286c)&&'insertion'==_0x3cc6cb['type']&&0x0!=_0x26c49b['length']||(_0xfb51c7['delete'](_0x2d5cbb),_0x26c49b['forEach'](_0x32b81a=>{_0xfb51c7['set'](_0x32b81a,_0x541676);}),'insertion'!=_0x3cc6cb['type']&&_0x2e70d8!=_0x348de6&&_0xfb51c7['set'](_0x2d5cbb['getIntersection'](_0xb4b5f0),_0x2e70d8));}const _0x263d1e=[];for(const [_0xadc845,_0x50efca]of _0xfb51c7){const _0x46b9be=_0x2e4cf8(),_0x76b2e4={'key':_0x11286c,'oldValue':_0x50efca,'newValue':_0x348de6};_0x11286c['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':_0x11286c});const _0x68b296=('attribute:'+(_0x11286c+'|'+Jt({'newValue':_0x348de6})))['substring'](0x0,0x3c),_0x61eea8=this['_setSuggestionData']({'id':_0x46b9be,'type':_0x68b296,'data':_0x76b2e4,'createdAt':new Date(),'authorId':_0x441686,'attributes':_0x186323});_0x263d1e['push'](_0x61eea8),this['_addSuggestionMarker'](_0x68b296,_0x46b9be,_0x441686,_0xadc845);}return _0x263d1e;}['enableDefaultAttributesIntegration'](_0x56faac){this['enableCommand'](_0x56faac,(_0x394f21,..._0x463ffb)=>{this['_recordAttributeChanges'](()=>{_0x394f21(..._0x463ffb);});});}['registerBlockAttribute'](_0x39d9c8){this['_blockAttributeKeys']['add'](_0x39d9c8);}['registerInlineAttribute'](_0x137d1b){this['_inlineAttributeKeys']['add'](_0x137d1b);}['_getAttributeKey'](_0x3c3561){return'attribute'==_0x3c3561['type']?_0x3c3561['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x58db1e,_0x624130){const _0x2be626=_0x58db1e['getFirstMarker']();this['_model']['change'](_0xd041c=>{_0xd041c['updateMarker'](_0x2be626,{'range':_0x624130});});}['_addThreadToSuggestion'](_0x181a52){const _0x45970b=_0x181a52['id'],_0x4183ab=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45970b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4183ab,'threadId':_0x45970b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x178c54=this['_commentsRepository']['getCommentThread'](_0x45970b);_0x178c54['unbind']('isRemovable'),_0x178c54['isRemovable']=!0x1,_0x181a52['commentThread']=_0x178c54;}['_checkSuggestionCorrectness'](_0x21fb12,_0xaba65,_0x4acd38,_0x29b5b6){if(_0x21fb12['type']!=_0xaba65||_0x21fb12['subType']!=_0x4acd38||_0x21fb12['creator']['id']!=_0x29b5b6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x23f583('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e3204,_0x42c822){const _0x5064cb=_0x5e3204['getFirstRange']();if(_0x42c822['isEqual'](_0x5064cb))_0x5e3204['removeMarkers']();else{if(_0x5064cb['containsRange'](_0x42c822)){const _0x198445=this['_model']['createPositionAt'](_0x42c822['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e3204,this['_model']['createRange'](_0x5064cb['start'],_0x198445));const _0xe3f0e3=_0x2e4cf8(),_0x2a6ba4=_0x5e3204['creator']['id'],_0x4bb309=_0x5e3204['type']+':'+_0x5e3204['subType'];this['_setSuggestionData']({'id':_0xe3f0e3,'type':_0x4bb309,'createdAt':new Date(),'authorId':_0x2a6ba4,'data':_0x5e3204['data'],'attributes':_0x5e3204['attributes']});const _0x52dc04=this['_model']['createPositionAt'](_0x42c822['end']['parent'],'after'),_0x5b062b=this['_model']['createRange'](_0x52dc04,_0x5064cb['end']);this['_addSuggestionMarker'](_0x4bb309,_0xe3f0e3,_0x2a6ba4,_0x5b062b);}else{if(_0x5064cb['containsPosition'](_0x42c822['start'])){const _0x3d51ff=this['_model']['createPositionAt'](_0x42c822['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e3204,this['_model']['createRange'](_0x5064cb['start'],_0x3d51ff));}else{const _0x2a2e5c=this['_model']['createPositionAt'](_0x42c822['end']['parent'],'after');this['_setSuggestionRange'](_0x5e3204,this['_model']['createRange'](_0x2a2e5c,_0x5064cb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2acebe){for(const {suggestion:_0x2d3e2c,meta:_0x52c448}of this['_findSuggestions'](_0x2acebe,'insertion')){if(!_0x52c448['isOwn'])continue;const _0x523d8d=_0x2d3e2c['getRanges']();for(const _0x848bde of _0x523d8d)if(!_0x2acebe['getDifference'](_0x848bde)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2f0cbd){const _0xb26cc2=this['editor']['plugins']['get']('Users')['getUser'](_0x2f0cbd);if(!_0xb26cc2)throw new _0x23f583('track-changes-user-not-found',this);return _0xb26cc2;}['_getExternalAuthor'](_0x101d4d){const _0x533e28=this['editor']['plugins']['get']('Users'),_0x51430f=_0x43427f('external:'+_0x101d4d),_0x3f432b=_0x533e28['getUser'](_0x51430f);return _0x3f432b||_0x533e28['addUser']({'id':_0x51430f,'name':_0x101d4d});}['_createSuggestion'](_0x2606f1,_0x137298,_0x4c55da,_0x26921b,_0x3f9862){const _0x2b8f2a=this['_getAuthorFromId'](_0x26921b),_0x4ec6c6=this['_suggestionFactory']['buildSuggestion'](_0x2606f1,_0x137298,_0x4c55da,_0x2b8f2a,_0x3f9862,_0x42c667=>{this['_updateSuggestionData'](_0x4c55da,{'attributes':_0x42c667});const _0x5e1713=this['getSuggestion'](_0x4c55da);this['_joinWithAdjacentSuggestions'](new Set([_0x5e1713])),this['_refreshSuggestionsChain'](new Set([_0x5e1713]));});return this['listenTo'](_0x4ec6c6,'accept',()=>{this['_updateSuggestionData'](_0x4c55da,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4ec6c6,'discard',()=>{this['_updateSuggestionData'](_0x4c55da,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c55da,_0x4ec6c6),this['_suggestionState']['set'](_0x4ec6c6,'notReady'),_0x4ec6c6;}['_splitMarkerName'](_0x54ee90){const _0xbe9456=_0x54ee90['split'](':');return{'group':_0xbe9456[0x0],'type':_0xbe9456[0x1],'subType':_0xbe9456['length']>=0x5?_0xbe9456[0x2]:null,'id':_0xbe9456['length']<0x5?_0xbe9456[0x2]:_0xbe9456[0x3],'authorId':_0xbe9456['length']<0x5?_0xbe9456[0x3]:_0xbe9456[0x4],'markerCount':0x6==_0xbe9456['length']?_0xbe9456[0x5]:null};}['_breakSuggestionMarker'](_0x63e591,_0x5a9976,_0x33de6a){const _0x10290d=_0x63e591['getFirstRange'](),_0x4c2f45=_0x10290d['start'],_0x419648=_0x10290d['end'];this['_setSuggestionRange'](_0x63e591,this['_model']['createRange'](_0x4c2f45,_0x5a9976));const _0x37f596=_0x2e4cf8(),_0x464629=_0x63e591['creator']['id'],_0x5cfa83=_0x63e591['type']+(_0x63e591['subType']?':'+_0x63e591['subType']:'');this['_setSuggestionData']({'id':_0x37f596,'type':_0x5cfa83,'createdAt':new Date(),'authorId':_0x464629,'originalSuggestionId':_0x63e591['id'],'attributes':_0x63e591['attributes'],'data':_0x63e591['data']});const _0x5d5dbd=this['_getAttributeKey'](_0x63e591);('formatBlock'==_0x63e591['type']||_0x5d5dbd&&this['_isBlockAttribute'](_0x5d5dbd))&&(_0x33de6a=this['_model']['createPositionBefore'](_0x33de6a['parent'])),this['_addSuggestionMarker'](_0x5cfa83,_0x37f596,_0x464629,this['_model']['createRange'](_0x33de6a,_0x419648));}['_findSuggestions'](_0x440ea5,_0x118640=null){const _0x1254e2=[],_0x43b7e6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x440ea5)||(_0x440ea5=[_0x440ea5]);for(const _0x57b939 of this['getSuggestions']()){if(!_0x57b939['isInContent'])continue;if(_0x118640&&_0x57b939['type']!=_0x118640)continue;let _0xd74618=!0x1;for(const _0x10ab73 of _0x57b939['getRanges']()){for(const _0x1c8b22 of _0x440ea5){const _0x25b904=_0x1c8b22['start']['isEqual'](_0x10ab73['end'])||_0x1c8b22['end']['isEqual'](_0x10ab73['start']);if(_0x25b904||_0x1c8b22['getIntersection'](_0x10ab73)){const _0x34f461=_0x1c8b22['containsRange'](_0x10ab73)&&Pt(this['_model']['schema'],_0x10ab73['start'],_0x1c8b22),_0x1b5730=_0x10ab73['containsRange'](_0x1c8b22)&&Pt(this['_model']['schema'],_0x1c8b22['start'],_0x10ab73);_0x1254e2['push']({'suggestion':_0x57b939,'meta':{'isOwn':_0x43b7e6==_0x57b939['author'],'isNextTo':_0x25b904,'isInsideObject':_0x34f461,'containsRangeInObject':_0x1b5730}}),_0xd74618=!0x0;break;}}if(_0xd74618)break;}}return _0x1254e2;}['_addSuggestionMarker'](_0x1b9d11,_0x4832a0,_0x1aa3bc,_0x12f5b3,_0x41dbb3){this['_model']['change'](_0x4bf79d=>{let _0x4c2ddc='suggestion:'+_0x1b9d11+':'+_0x4832a0+':'+_0x1aa3bc;_0x41dbb3&&(_0x4c2ddc=_0x4c2ddc+':'+_0x41dbb3),_0x4bf79d['addMarker'](_0x4c2ddc,{'range':_0x12f5b3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x440b09){const _0x5b34da=_0x440b09['previous'],_0x2c0714=_0x440b09['next'];_0x440b09['previous']=null,_0x440b09['next']=null,null!=_0x5b34da&&_0x5b34da['next']==_0x440b09&&(_0x5b34da['next']=_0x2c0714),null!=_0x2c0714&&_0x2c0714['previous']==_0x440b09&&(_0x2c0714['previous']=_0x5b34da),'ready'==this['_suggestionState']['get'](_0x440b09)&&(this['_suggestionState']['set'](_0x440b09,'removed'),this['fire']('suggestionUnloaded',_0x440b09,_0x5b34da,_0x2c0714));}['_setSuggestionData'](_0x1a50de){const _0x3fc907=_0x1a50de['id'],_0x3b97e1=this['addSuggestionData'](_0x1a50de);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x511303=this['editor']['plugins']['get']('PendingActions'),_0x549910=_0x3b97e1['hasComments'],_0x3a6464=_0x3b97e1['subType']?_0x3b97e1['type']+':'+_0x3b97e1['subType']:_0x3b97e1['type'],_0x153ac5=this['editor']['locale'],_0x4b13f4=_0x511303['add'](c(_0x153ac5,'PENDING_ACTION_SUGGESTION')),_0x17ebca={'id':_0x3fc907,'type':_0x3a6464,'hasComments':_0x549910,'data':_0x1a50de['data']||null,'originalSuggestionId':_0x1a50de['originalSuggestionId']||null,'attributes':_0x3b97e1['attributes']};this['_adapter']['addSuggestion'](_0x17ebca)['then'](_0x625928=>{_0x3b97e1['_saved']=!0x0,_0x511303['remove'](_0x4b13f4),_0x625928&&_0x625928['createdAt']&&(this['_suggestions']['get'](_0x3fc907)['createdAt']=_0x625928['createdAt']);})['catch'](_0x37b93d=>{throw _0x5785ad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b97e1['discard']();}),_0x3b97e1['stopListening'](),this['_suggestions']['delete'](_0x3b97e1['id']),this['_suggestionState']['delete'](_0x3b97e1),_0x37b93d;});}return _0x3b97e1;}['_isBlockAttribute'](_0x20f42a){return this['_blockAttributeKeys']['has'](_0x20f42a);}['_updateSuggestionData'](_0x49fddf,_0x64ea6f){const _0xebdd98=this['editor']['plugins']['get']('PendingActions'),_0x4eef00=this['getSuggestion'](_0x49fddf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4eef00['_saved']){const _0x3dd868=_0xebdd98['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49fddf,_0x64ea6f)['then'](()=>{_0xebdd98['remove'](_0x3dd868);});}else _0x4eef00['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49fddf,_0x64ea6f);});}}['_getSuggestionData'](_0x546797){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x23f583('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x546797);}['_handleNewSuggestionMarker'](_0xc67ad6){const {id:_0x3002e1,type:_0x396f68,subType:_0x23e334,authorId:_0x386dc9}=this['_splitMarkerName'](_0xc67ad6),_0x50b3c2=this['_suggestions']['get'](_0x3002e1)||this['_createSuggestion'](_0x396f68,_0x23e334,_0x3002e1,_0x386dc9,{});switch(this['_checkSuggestionCorrectness'](_0x50b3c2,_0x396f68,_0x23e334,_0x386dc9),this['_suggestionState']['get'](_0x50b3c2)){case'notReady':this['_getSuggestionData'](_0x3002e1)['then'](_0x2ee7c5=>{let _0x45e458=Promise['resolve']();_0x2ee7c5['hasComments']&&(_0x45e458=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3002e1})),_0x45e458['then'](()=>{this['addSuggestionData'](_0x2ee7c5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50b3c2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3002e1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50b3c2,'ready'),this['fire']('suggestionLoaded',_0x50b3c2);break;case'ready':this['fire']('suggestionChanged',_0x50b3c2);}return _0x50b3c2['addMarkerName'](_0xc67ad6),_0x50b3c2;}['_refreshSuggestionsChain'](_0x4904a8){const _0x548482=Array['from'](_0x4904a8),_0x5c6b30=_0x548482['filter'](_0x52eb33=>'attribute'==_0x52eb33['type']);this['_refreshAttributeSuggestionsChain'](_0x5c6b30);const _0x23d4f8=_0x548482['filter'](_0xefa6e6=>!_0xefa6e6['isMultiRange']&&'attribute'!=_0xefa6e6['type']),_0x209deb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x428842=>!_0x428842['isMultiRange']&&'attribute'!=_0x428842['type']),_0x5857a0=_0x209deb['filter'](_0x89ac80=>!_0x4904a8['has'](_0x89ac80)),_0x33f06b=new Map(_0x209deb['map'](_0x55b6f1=>[_0x55b6f1,this['_suggestionFactory']['getSuggestionCallback'](_0x55b6f1['type'],_0x55b6f1['subType'],'chain')])),_0x5534d5=new Map(_0x209deb['map'](_0x267004=>[_0x267004,_0x267004['getFirstRange']()])),_0x5d3670=new Set(),_0x39e12c=new Set();for(let _0xc63dde=0x0;_0xc63dde<_0x23d4f8['length'];_0xc63dde++)_0x5b5a90(_0x23d4f8[_0xc63dde],_0x23d4f8,_0xc63dde+0x1);for(let _0x3ca327=0x0;_0x3ca327<_0x23d4f8['length'];_0x3ca327++)_0x5b5a90(_0x23d4f8[_0x3ca327],_0x5857a0,0x0);const _0x5ce4cd=new Set();for(let _0x427eab=0x0;_0x427eab<_0x23d4f8['length'];_0x427eab++){const _0x151980=_0x23d4f8[_0x427eab];!_0x39e12c['has'](_0x151980)&&_0x151980['previous']&&(_0x5ce4cd['add'](_0x151980['previous']),_0x151980['previous']['next']===_0x151980&&(_0x151980['previous']['next']=null),_0x151980['previous']=null),!_0x5d3670['has'](_0x151980)&&_0x151980['next']&&(_0x5ce4cd['add'](_0x151980['next']),_0x151980['next']['previous']===_0x151980&&(_0x151980['next']['previous']=null),_0x151980['next']=null);}function _0x5b5a90(_0x2aebad,_0x30b8c2,_0x45a411){for(let _0x5464cd=_0x45a411;_0x5464cd<_0x30b8c2['length'];_0x5464cd++){const _0x5ac639=_0x26a56f(_0x2aebad,_0x30b8c2[_0x5464cd]);_0x5ac639&&(_0x5ac639[0x0]['next']=_0x5ac639[0x1],_0x5ac639[0x1]['previous']=_0x5ac639[0x0],_0x5d3670['add'](_0x5ac639[0x0]),_0x39e12c['add'](_0x5ac639[0x1]));}}function _0x26a56f(_0x217f72,_0x24d2de){if(_0x217f72['author']['id']!==_0x24d2de['author']['id'])return null;const _0x3501dc=_0x33f06b['get'](_0x217f72)(_0x217f72,_0x24d2de,_0x5534d5['get'](_0x217f72),_0x5534d5['get'](_0x24d2de));if(!_0x3501dc)return null;return _0x33f06b['get'](_0x24d2de)(_0x217f72,_0x24d2de,_0x5534d5['get'](_0x217f72),_0x5534d5['get'](_0x24d2de))?_0x3501dc[0x1]['commentThread']&&_0x3501dc[0x1]['commentThread']['length']?null:_0x3501dc:null;}_0x5ce4cd['size']&&this['_refreshSuggestionsChain'](_0x5ce4cd);}['_refreshAttributeSuggestionsChain'](_0xb917b9){if(0x0==_0xb917b9['length'])return;const _0x4032b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3eb2d0=>'attribute'==_0x3eb2d0['type']&&_0x3eb2d0['_isDataLoaded']),_0x2608c5=[],_0x11e453=new Map();for(const _0x1d2d04 of _0x4032b8){const _0x2d87ae=_0x43427f(_0x1d2d04['attributes']);_0x11e453['has'](_0x2d87ae)||(_0x11e453['set'](_0x2d87ae,_0x2608c5['length']),_0x2608c5['push']([]));const _0x46e4bd=_0x11e453['get'](_0x2d87ae);_0x2608c5[_0x46e4bd]['push'](_0x1d2d04);}!(function(){_0x2608c5['sort']((_0x512e0a,_0x5d8ca3)=>{const _0x377c45=_0x512e0a[0x0]['createdAt'],_0xa7ab32=_0x5d8ca3[0x0]['createdAt'];return _0x377c45==_0xa7ab32?_0x512e0a[0x0]['attributes']['groupId']<_0x5d8ca3[0x0]['attributes']['groupId']?-0x1:0x1:_0x377c45<_0xa7ab32?-0x1:0x1;});for(const _0x3bee32 of _0x2608c5)_0x3bee32['sort']((_0x16e054,_0x928b22)=>_0x16e054['id']<_0x928b22['id']?-0x1:0x1);}());for(let _0x376681=0x0;_0x376681<_0x2608c5['length'];_0x376681++){if(0x0==_0x2608c5[_0x376681]['length'])continue;const _0x227507=[];for(let _0x18b8c7=_0x376681+0x1;_0x18b8c7<_0x2608c5['length'];_0x18b8c7++)0x0!=_0x2608c5[_0x18b8c7]['length']&&_0x1eefbe(_0x2608c5[_0x376681],_0x2608c5[_0x18b8c7])&&_0x227507['push'](_0x18b8c7);for(const _0x3935ff of _0x227507)_0x2608c5[_0x376681]=_0x2608c5[_0x376681]['concat'](_0x2608c5[_0x3935ff]),_0x2608c5[_0x3935ff]=[];}for(const _0x447f1a of _0x2608c5)for(let _0x44ba5a=0x0;_0x44ba5a<_0x447f1a['length'];_0x44ba5a++){const _0x5df4a3=_0x447f1a[_0x44ba5a+0x1]||null;_0x447f1a[_0x44ba5a]['next']!==_0x5df4a3&&(_0x447f1a[_0x44ba5a]['next']=_0x5df4a3);}for(const _0xbbdf0f of _0x2608c5)for(let _0x4e60f0=0x0;_0x4e60f0<_0xbbdf0f['length'];_0x4e60f0++){const _0x48bc19=_0xbbdf0f[_0x4e60f0-0x1]||null;_0xbbdf0f[_0x4e60f0]['previous']!==_0x48bc19&&(_0xbbdf0f[_0x4e60f0]['previous']=_0x48bc19);}function _0x1eefbe(_0x53f85d,_0x301db3){if(_0x53f85d[0x0]['attributes']['groupId']!==_0x301db3[0x0]['attributes']['groupId']&&_0x53f85d[0x0]['author']!==_0x301db3[0x0]['author'])return!0x1;if(!function(_0x44b1a9,_0x572ee5){if(!_0x44b1a9['hasComments']&&!_0x572ee5['hasComments'])return!0x0;if(_0x44b1a9['hasComments']&&_0x572ee5['hasComments'])return!0x1;if(_0x44b1a9['hasComments']&&_0x572ee5['createdAt']<_0x44b1a9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x572ee5['hasComments']&&_0x44b1a9['createdAt']<_0x572ee5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x53f85d[0x0],_0x301db3[0x0]))return!0x1;const _0x4e49c8=Vt(_0x53f85d[0x0]['attributes'],'groupId'),_0x2928aa=Vt(_0x301db3[0x0]['attributes'],'groupId');if(!_0x25c893(_0x4e49c8,_0x2928aa))return!0x1;return!!_0x53f85d['every'](_0x395727=>_0x301db3['some'](_0x57a2b4=>_0x395727['getFirstRange']()['isEqual'](_0x57a2b4['getFirstRange']())))&&_0x301db3['every'](_0x27721b=>_0x53f85d['some'](_0x5d3f79=>_0x27721b['getFirstRange']()['isEqual'](_0x5d3f79['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fcadd){const _0x2bfd83=Array['from'](_0x1fcadd),_0x232405=this['getSuggestions']({'skipNotAttached':!0x0}),_0xbd653a=_0x232405['filter'](_0x471500=>!_0x1fcadd['has'](_0x471500)),_0x288e0a=new Map(_0x2bfd83['map'](_0x3bd07b=>[_0x3bd07b,this['_suggestionFactory']['getSuggestionCallback'](_0x3bd07b['type'],_0x3bd07b['subType'],'join')])),_0x526169=new Map(_0x232405['map'](_0x33c866=>[_0x33c866,_0x33c866['getRanges']()]));for(let _0x46d2d5=0x0;_0x46d2d5<_0x2bfd83['length'];_0x46d2d5++){if(_0x239d75(this,_0x2bfd83[_0x46d2d5],_0x2bfd83,_0x46d2d5+0x1))return!0x0;}for(let _0x14d992=0x0;_0x14d992<_0x2bfd83['length'];_0x14d992++){if(_0x239d75(this,_0x2bfd83[_0x14d992],_0xbd653a,0x0))return!0x0;}return!0x1;function _0x239d75(_0x9820bd,_0x194c63,_0x2368dd,_0x2816b5){for(let _0x4b5dad=_0x2816b5;_0x4b5dad<_0x2368dd['length'];_0x4b5dad++){const _0xc198e9=_0x2368dd[_0x4b5dad];if(_0xc198e9['type']!==_0x194c63['type']||_0xc198e9['author']['id']!==_0x194c63['author']['id']||_0xc198e9['subType']!==_0x194c63['subType'])continue;if(!Wt(_0x194c63,_0xc198e9))continue;if('attribute'==_0x194c63['type']&&_0x194c63['data']['oldValue']!=_0xc198e9['data']['oldValue'])continue;if('attribute'==_0x194c63['type']&&_0x9820bd['_isBlockAttribute'](_0x194c63['data']['key']))continue;if('formatBlock'==_0x194c63['type']){const _0xfb74b9=_0x9820bd['editor']['model'],_0x2be562=_0x194c63['getContainedElement']();if(_0x2be562&&(_0xfb74b9['schema']['isObject'](_0x2be562)||_0xfb74b9['schema']['isLimit'](_0x2be562)))continue;}const _0xf95aea=_0x288e0a['get'](_0x194c63),_0x36b5a5=_0x526169['get'](_0x194c63),_0x5a4562=_0x526169['get'](_0xc198e9),_0x5d90d8=_0x194c63['commentThread']&&_0x194c63['commentThread']['length'],_0x51ae24=_0xc198e9['commentThread']&&_0xc198e9['commentThread']['length'];if(!_0x5d90d8&&_0xf95aea(_0x5a4562,_0x36b5a5))return _0x9820bd['_joinSuggestions'](_0xc198e9,_0x194c63),_0x526169['delete'](_0x194c63),!0x0;if(!_0x51ae24&&_0xf95aea(_0x36b5a5,_0x5a4562))return _0x9820bd['_joinSuggestions'](_0x194c63,_0xc198e9),_0x526169['delete'](_0xc198e9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1148da,_0x1a45d9){if(_0x1148da['isMultiRange']){for(const _0x5c3b68 of _0x1a45d9['getRanges']())_0x1148da['addRange'](_0x5c3b68);}else{const _0x422fb3=_0x1a45d9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1148da,this['_model']['createRange'](_0x1148da['getFirstRange']()['start'],_0x422fb3));}_0x1a45d9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x136474,_0x38ea1a,_0x105d40){const _0x4b867b=_0x136474['startsWith']('format')||_0x136474['startsWith']('attribute')?'FORMATTING':_0x136474['toUpperCase']();return c(this['editor']['locale'],_0x38ea1a+'_'+_0x4b867b+'_SUGGESTION_ANNOUNCEMENT',_0x105d40);}['_initAriaMarkerChangeAnnouncements'](){const _0xd42a70=this['editor'];if(!_0xd42a70['ui'])return;const {ariaLiveAnnouncer:_0x316680}=_0xd42a70['ui'];_0x4d10c8(this['_model'],({left:_0x5ca1a8,entered:_0x428b2d})=>{for(const _0x58fb2f of _0x5ca1a8){const {group:_0x14f998,type:_0x609a87}=this['_splitMarkerName'](_0x58fb2f['name']);if('suggestion'===_0x14f998){_0x316680['announce'](this['_getMarkerAnnouncementText'](_0x609a87,'LEAVE'));break;}}for(const _0x51ef37 of _0x428b2d){const {group:_0x45013e,type:_0x215edf}=this['_splitMarkerName'](_0x51ef37['name']);if('suggestion'===_0x45013e){_0x316680['announce'](this['_getMarkerAnnouncementText'](_0x215edf,'ENTER',_0x555a8d(_0x33e0bf)));break;}}});}['_processAttributeChanges'](_0x505685){if(this['_recordAttributeSuggestions'])return!0x1;const _0x289e92=this['editor'],_0x3a8e9a=_0x289e92['model']['document']['differ']['getChanges']();if(0x0==_0x3a8e9a['length'])return!0x1;const _0x216f3b=[],_0x2e70ac=_0x3a8e9a['filter'](_0x911f70=>'attribute'==_0x911f70['type']),_0x10d7df=_0x3a8e9a['filter'](_0x4d9fb0=>'insert'==_0x4d9fb0['type']&&'$text'!=_0x4d9fb0['name']),_0x2f7301=_0x3a8e9a['filter'](_0x5c98b5=>'remove'==_0x5c98b5['type']&&'$text'!=_0x5c98b5['name']);for(const _0x1066c3 of _0x2e70ac)_0x216f3b['push']({'key':_0x1066c3['attributeKey'],'newValue':_0x1066c3['attributeNewValue'],'oldValue':_0x1066c3['attributeOldValue'],'range':Ht(_0x1066c3['range'],_0x289e92['model'])});for(const _0x720c9f of _0x10d7df){const _0x1013ab=_0x2f7301['find'](_0x188e74=>_0x188e74['position']['isEqual'](_0x720c9f['position']));_0x1013ab&&_0x216f3b['push']({'key':u,'newValue':_0x720c9f['name'],'oldValue':_0x1013ab['name'],'range':_0x289e92['model']['createRangeOn'](_0x720c9f['position']['nodeAfter'])});}return 0x0!=_0x216f3b['length']&&this['_reduceExistingSuggestions'](_0x505685,_0x216f3b);}['_processAttributeSuggestions'](_0x31df56){let _0xa91d05=!0x1;const _0x2611b7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10ae99=>_0x10ae99['data']['newRange']&&_0x10ae99['name']['startsWith']('suggestion:attribute:'));for(const _0x2100b8 of _0x2611b7){const {subType:_0x4cb79e,id:_0x37bc96}=this['_splitMarkerName'](_0x2100b8['name']),_0x19d2a6=_0x4cb79e['split']('|')[0x0];for(const _0x1d9c8a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d9c8a['id']!=_0x37bc96&&'attribute'==_0x1d9c8a['type']&&_0x1d9c8a['data']&&_0x1d9c8a['data']['key']==_0x19d2a6&&_0x1d9c8a['getFirstRange']()['isIntersecting'](_0x2100b8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d9c8a,_0x2100b8['data']['newRange'],_0x31df56),_0xa91d05=!0x0);}return _0xa91d05;}['_recordAttributeChanges'](_0x2070cb){this['_recordAttributeSuggestions']=!0x0,_0x2070cb();}['_isRegisteredAttribute'](_0x54d715){const _0x2b5935=this['_isBlockAttribute'](_0x54d715),_0x1f7806=this['_inlineAttributeKeys']['has'](_0x54d715);return _0x2b5935||_0x1f7806;}['_reduceExistingSuggestions'](_0x4952e2,_0x3868ff){if(0x0==_0x3868ff['length'])return!0x1;let _0x352efa=!0x1;for(const _0x4d335c of _0x3868ff){const _0x2b1339=this['_findSuggestions'](_0x4d335c['range'],'attribute')['filter'](_0xbb0b27=>!_0xbb0b27['meta']['isNextTo'])['map'](_0x902425=>_0x902425['suggestion']),_0x18ff60=_0x43427f({'newValue':_0x4d335c['newValue']});_0x2b1339['filter'](_0x5add5a=>{const [_0x15ce47,_0x562bb1]=_0x5add5a['subType']['split']('|');return _0x15ce47==_0x4d335c['key']&&_0x562bb1!=_0x18ff60;})['forEach'](_0xa6bc72=>{this['_reduceSuggestionAttributeRange'](_0xa6bc72,_0x4d335c['range'],_0x4952e2),_0x352efa=!0x0;});}return _0x352efa;}['_reduceSuggestionAttributeRange'](_0x2e1c3f,_0xcb5b59,_0x5aef97){const _0xdb361c=_0x2e1c3f['getFirstRange']()['getDifference'](_0xcb5b59);0x0!==_0xdb361c['length']?0x1!==_0xdb361c['length']?this['_breakSuggestionMarker'](_0x2e1c3f,_0xcb5b59['start'],_0xcb5b59['end']):this['_setSuggestionRange'](_0x2e1c3f,_0xdb361c[0x0]):_0x5aef97['removeMarker'](_0x2e1c3f['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x255dca){this['_editor']=_0x255dca,this['_model']=_0x255dca['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2fa681,_0x59e223,_0x30cccc,_0x1c3074,_0x2ed792,_0x70bff9){return new o(this['_model'],{'type':_0x2fa681,'subType':_0x59e223,'id':_0x30cccc,'author':_0x1c3074,'creator':_0x1c3074,'attributes':_0x2ed792,'onAttributesChange':_0x70bff9,'onAccept':(..._0x5ba426)=>this['getSuggestionCallback'](_0x2fa681,_0x59e223,'accept')(..._0x5ba426),'onDiscard':(..._0x831f56)=>this['getSuggestionCallback'](_0x2fa681,_0x59e223,'discard')(..._0x831f56)});}['registerCustomCallback'](_0x369fb1,_0x106154,_0x92e299,_0x45dafb){const _0x4d2aa3=_0x369fb1+':'+_0x106154+':'+_0x92e299;this['_customCallbacks']['set'](_0x4d2aa3,_0x45dafb);}['getSuggestionCallback'](_0xe46a90,_0x4cb596,_0x4d6032){const _0x11aba5=_0xe46a90+':'+_0x4cb596+':'+_0x4d6032;return this['_customCallbacks']['get'](_0x11aba5)||this['_defaultCallbacks']['get'](_0xe46a90+':'+_0x4d6032);}['_registerDefaultCallbacks'](){const _0xfb8d03=()=>!0x1,_0x2cc021=_0x29e830=>{_0x29e830['sort']((_0x5287bb,_0x4df5d4)=>_0x5287bb['start']['isBefore'](_0x4df5d4['start'])?0x1:-0x1),this['_model']['change'](_0x3b111f=>{for(const _0x170a94 of _0x29e830){let _0x426540;_0x426540=_0x170a94['end']['isAtEnd']&&_0x170a94['end']['parent']==_0x170a94['start']['nodeAfter']?_0x3b111f['createSelection'](_0x170a94['start']['nodeAfter'],'on'):_0x3b111f['createSelection'](_0x170a94),this['_model']['deleteContent'](_0x426540,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf8eebb=(_0x2083c2,_0x4b85b5)=>{_0x4b85b5&&this['_model']['change'](_0x5ea2c4=>{const {commandName:_0x376312,commandParams:_0xbaaa11=[]}=_0x4b85b5,_0x21f835=_0x2083c2['map'](_0x18a105=>(Gt(_0x18a105)&&(_0x18a105=this['_model']['createRange'](_0x18a105['end'])),_0x18a105))['filter'](_0x19e88e=>'$graveyard'!==_0x19e88e['root']['rootName']);if(_0x21f835['length']<0x1)return;const _0x28ea9b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x163b25=>_0x26d742['fromRange'](_0x163b25));_0x5ea2c4['setSelection'](_0x21f835);for(const _0x4dd868 of this['_editor']['commands']['commands']())_0x4dd868['refresh']();_0xbaaa11['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x376312,..._0xbaaa11);const _0x3cb7b1=_0x28ea9b['filter'](_0x300b8a=>'$graveyard'!=_0x300b8a['root']['rootName']);_0x3cb7b1['length']>0x0&&_0x5ea2c4['setSelection'](_0x3cb7b1);for(const _0x48c0ef of _0x28ea9b)_0x48c0ef['detach']();});},_0x438eb4=(_0x3f6d03,_0x161a03)=>0x1==_0x3f6d03['length']&&0x1==_0x161a03['length']&&_0x3f6d03[0x0]['end']['isEqual'](_0x161a03[0x0]['start']),_0x46a7b3=(_0x3fae2e,_0x41921e,_0x352ae0,_0x318f1e)=>zt(_0x3fae2e,_0x41921e,_0x352ae0,_0x318f1e)?[_0x3fae2e,_0x41921e]:zt(_0x41921e,_0x3fae2e,_0x318f1e,_0x352ae0)?[_0x41921e,_0x3fae2e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xfb8d03),this['_defaultCallbacks']['set']('insertion:discard',_0x2cc021),this['_defaultCallbacks']['set']('insertion:join',_0x438eb4),this['_defaultCallbacks']['set']('insertion:chain',_0x46a7b3),this['_defaultCallbacks']['set']('deletion:accept',_0x2cc021),this['_defaultCallbacks']['set']('deletion:discard',_0xfb8d03),this['_defaultCallbacks']['set']('deletion:join',_0x438eb4),this['_defaultCallbacks']['set']('deletion:chain',_0x46a7b3),this['_defaultCallbacks']['set']('formatInline:accept',_0xf8eebb),this['_defaultCallbacks']['set']('formatInline:discard',_0xfb8d03),this['_defaultCallbacks']['set']('formatInline:join',_0x438eb4),this['_defaultCallbacks']['set']('formatInline:chain',_0xfb8d03),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf8eebb),this['_defaultCallbacks']['set']('formatBlock:discard',_0xfb8d03),this['_defaultCallbacks']['set']('formatBlock:join',_0x438eb4),this['_defaultCallbacks']['set']('formatBlock:chain',_0xfb8d03),this['_defaultCallbacks']['set']('attribute:accept',_0xfb8d03),this['_defaultCallbacks']['set']('attribute:discard',(_0x340c99,_0x135b63)=>{if(!_0x135b63)return;const _0x1bce45=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3d44eb=>{if(_0x135b63['key']==u)for(const _0xe46387 of _0x340c99){const _0xc2474f=_0xe46387['start']['nodeAfter'],_0x96090f=_0x135b63['oldValue'];_0x3d44eb['rename'](_0xc2474f,_0x96090f);}else{if(_0x1bce45['_isBlockAttribute'](_0x135b63['key'])){for(const _0x4ba4ab of _0x340c99)void 0x0!==_0x135b63['oldValue']?_0x3d44eb['setAttribute'](_0x135b63['key'],_0x135b63['oldValue'],_0x4ba4ab['start']['nodeAfter']):_0x3d44eb['removeAttribute'](_0x135b63['key'],_0x4ba4ab['start']['nodeAfter']);}else{for(const _0x7065e4 of _0x340c99)_0x135b63['oldValue']?_0x3d44eb['setAttribute'](_0x135b63['key'],_0x135b63['oldValue'],_0x7065e4):_0x3d44eb['removeAttribute'](_0x135b63['key'],_0x7065e4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x438eb4);}}function Pt(_0x3dcc55,_0xa0ad21,_0x356617){for(const _0x5c6aa2 of _0xa0ad21['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5c6aa2['root']==_0x5c6aa2)return!0x1;if(!_0x356617['containsItem'](_0x5c6aa2))return!0x1;if(_0x3dcc55['isObject'](_0x5c6aa2)||_0x3dcc55['isLimit'](_0x5c6aa2))return!0x0;}return!0x1;}function Gt(_0x4c14ce){return _0x4c14ce['end']['parent']==_0x4c14ce['start']['nodeAfter']&&_0x4c14ce['end']['isAtStart'];}function Lt(_0x1c989d,_0x3f13bd,_0x42d31f,_0x18eaac){const _0x27ca66=_0x57ede1=>!_0x57ede1['item']['is']('$textProxy')&&!_0x18eaac['isObject'](_0x57ede1['item']),_0x827f52=_0x1c989d['start']['getLastMatchingPosition'](_0x27ca66),_0x4bceba=_0x1c989d['end']['getLastMatchingPosition'](_0x27ca66,{'direction':'backward'});return(!_0x1c989d['start']['isEqual'](_0x827f52)||!_0x1c989d['end']['isEqual'](_0x4bceba))&&(_0x827f52['isBefore'](_0x4bceba)?_0x42d31f['updateMarker'](_0x3f13bd,{'range':_0x42d31f['createRange'](_0x827f52,_0x4bceba)}):_0x42d31f['removeMarker'](_0x3f13bd),!0x0);}function Jt(_0x529728){return _0x43427f(_0x529728);}function Kt(_0x158158){const _0x1a46b9=_0x158158['start']['nodeAfter'];return _0x1a46b9&&_0x1a46b9['is']('element');}function Ht(_0x482554,_0xea0ada){return null==_0x482554['end']['nodeBefore']&&_0x482554['end']['parent']==_0x482554['start']['nodeAfter']?qt(_0x482554['start']['nodeAfter'],_0xea0ada):_0x482554;}function qt(_0x6feda6,_0x487fb8){const _0x4ad09e=_0x487fb8['schema']['isObject'](_0x6feda6)||_0x487fb8['schema']['isSelectable'](_0x6feda6);return _0x487fb8['createRange'](_0x487fb8['createPositionAt'](_0x6feda6,'before'),_0x4ad09e?_0x487fb8['createPositionAfter'](_0x6feda6):_0x487fb8['createPositionAt'](_0x6feda6,'end'));}function zt(_0xc6d331,_0x3c5efc,_0xa0bbe6,_0x152487){return!!Wt(_0xc6d331,_0x3c5efc)&&_0xa0bbe6['end']['isEqual'](_0x152487['start']);}function Wt(_0x48ba54,_0x566789){if(!_0x48ba54['_isDataLoaded']||!_0x566789['_isDataLoaded'])return!0x1;const _0x50177c=new Set(Object['keys'](_0x48ba54['attributes'])),_0x469cb9=new Set(Object['keys'](_0x566789['attributes']));if(_0x50177c['delete']('groupId'),_0x469cb9['delete']('groupId'),0x0==_0x50177c['size']&&0x0==_0x469cb9['size'])return!0x0;if(_0x50177c['size']!=_0x469cb9['size'])return!0x1;const _0x22577b={..._0x48ba54['attributes']},_0x5eee4b={..._0x566789['attributes']};return delete _0x22577b['groupId'],delete _0x5eee4b['groupId'],JSON['stringify'](_0x22577b)==JSON['stringify'](_0x5eee4b);}function Qt(_0x5edd36,_0x2043db){const _0x4a3f36=Xt(_0x5edd36['attributes']),_0x2d6586=Xt(_0x2043db);if(!_0x5edd36['_isDataLoaded'])return!0x1;for(const _0x3f7eb6 of Object['keys'](_0x2d6586))if(!_0x25c893(_0x4a3f36[_0x3f7eb6],_0x2d6586[_0x3f7eb6]))return!0x1;return!0x0;}function Xt(_0x5898e5){const _0x2ea4c8=Object['assign']({},_0x5898e5);return delete _0x2ea4c8['skipNestingCheck'],delete _0x2ea4c8['tablePasteChainId'],_0x2ea4c8;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x14d963(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x58e1c4,_0x51b146,_0x2f3bbc,_0x2681ca){super(),this['model']=_0x51b146,this['view']=_0x2f3bbc,this['commentThreadController']=_0x2681ca,this['_editor']=_0x58e1c4,this['_acceptCommand']=_0x58e1c4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x58e1c4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f6d55,_0xc91d91)=>_0x1f6d55||_0xc91d91),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x20bab7=>_0x20bab7&&this['_editor']['model']['canEditAt'](_0x51b146['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56d3fa=>_0x56d3fa&&this['_editor']['model']['canEditAt'](_0x51b146['getRanges']())),this['_pendingAction']=null,_0x2f3bbc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2f3bbc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2f3bbc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2f3bbc,'change:isDirty',()=>{_0x2f3bbc['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 _0x50a558=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x50a558);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3ded66{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x34f2e3,_0x59803f,_0x12456d,_0x3271c3){super(_0x34f2e3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x213327(_0x34f2e3,c(_0x34f2e3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x59803f['authoredAt']),this['bind']('authoredAt')['to'](_0x59803f),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',_0x59803f,'authoredAt',this,'descriptionParts',(_0x4af8b9,_0x5ae2ec,_0x589f7a)=>{const _0x10e359=_0x589f7a['map'](_0x4a3b68=>ls(_0x4a3b68['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4af8b9-0x1,_0x59803f['author']['name'],_0x5ae2ec?_0x3271c3['formatDateTime'](_0x5ae2ec):'',new DOMParser()['parseFromString'](_0x10e359,'text/html')['body']['textContent']]);}),this['focusables']=new _0x18791b(),this['focusTracker']=new _0x59ff65(),this['keystrokes']=new _0x533439(),this['focusCycler']=new _0x2a6fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5d4cb6=>_0x5d4cb6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x59803f,this['_localUser']=_0x12456d,this['_config']=_0x3271c3,_0x3271c3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4e2a6f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4c9a56}=this['_config'];this['commentsListView']=new _0x4c9a56(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',_0x247e52=>_0x247e52+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1b92ca,_0x5909b5)=>_0x1b92ca||!!_0x5909b5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x55826d}=this['_config'],_0x32855b=new _0x55826d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x504e2b=_0x32855b['commentInputView'];return _0x32855b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x504e2b,'value',(_0xca3342,_0x51b9c6,_0x1399e1)=>!!_0x1399e1||_0xca3342&&!_0x51b9c6),_0x504e2b['on']('submit',(_0x37e4e2,_0x3f0a39)=>{this['fire']('addComment',_0x3f0a39),_0x504e2b['editor']['setData']('');}),_0x504e2b['on']('cancel',()=>this['focus']()),_0x504e2b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32855b;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x449e87,_0xe1e08d,_0x26b925,_0x46b81a){super(_0x449e87,_0xe1e08d,_0x26b925,_0x46b81a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xe49269=>_0xe49269&&_0xe49269[0x0]?_0xe49269[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b6192,_0xb068f)=>{let _0xca86f4='';for(const _0x4eb9d9 of _0x4b6192)_0xca86f4+='<p>'+ls(_0x4eb9d9['content'],_0x4eb9d9['color'])+'</p>';return _0xb068f?_0xca86f4:ti(_0xca86f4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46b81a['SuggestionView'](_0x449e87,_0xe1e08d,{'formatDateTime':_0x46b81a['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 _0x2e1239=this['bindTemplate'],_0x32b715=[this['suggestionView']];return this['commentsListView']&&_0x32b715['push'](this['commentsListView']),this['commentThreadInputView']&&_0x32b715['push'](this['commentThreadInputView']),_0x32b715['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e1239['if']('isActive','ck-suggestion-wrapper--active'),_0x2e1239['to']('type',_0x592ccb=>'ck-suggestion-'+_0x592ccb),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':_0x2e1239['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x32b715};}['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 _0x3ded66{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x264d90,_0x1b6ec9,_0x1c05fc){super(_0x264d90),this['_model']=_0x1b6ec9,this['_config']=_0x1c05fc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1b6ec9),this['acceptButton']=this['_createButton'](c(_0x264d90,'Accept\x20suggestion'),_0x4f23dc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x264d90,'Discard\x20suggestion'),_0x2134e4,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x45f651(_0x264d90,_0x1b6ec9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x18791b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x59ff65(),this['keystrokes']=new _0x533439(),this['focusCycler']=new _0x2a6fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1d2cc1=>_0x1d2cc1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12777f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12777f['innerHTML']=this['description'],this['on']('change:description',(_0x367331,_0x433f7b,_0x7cd24d)=>{_0x12777f['innerHTML']=_0x7cd24d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e4afb=this['bindTemplate'],_0x28f790=[{'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':_0x5e4afb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e4afb['to']('authoredAt',_0x498abe=>this['_config']['formatDateTime'](_0x498abe))}]}]},{'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']&&_0x28f790['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':_0x28f790}]};}['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'](_0x42923b,_0x41ee13,_0x4463c7,_0x1c41bf,_0x4dc3d3){const _0x5907df=new _0x5288cc(this['locale']);return _0x5907df['set']({'label':_0x42923b,'icon':_0x41ee13,'tooltip':!0x0,'tooltipPosition':_0x4dc3d3}),_0x5907df['extendTemplate']({'attributes':{'class':_0x4463c7}}),_0x5907df['on']('execute',()=>{this['fire'](_0x1c41bf,this['_model']['id']);}),_0x5907df;}['_setupKeyboardNavigation'](){const _0x2adc45=this['element'];this['keystrokes']['listenTo'](_0x2adc45);for(const _0x198385 of this['focusables'])this['focusTracker']['add'](_0x198385['element']),this['keystrokes']['listenTo'](_0x198385['element']);this['keystrokes']['set']('enter',(_0x38b7de,_0xdbd181)=>{_0x2adc45===_0x38b7de['target']&&(this['focusCycler']['focusFirst'](),_0xdbd181());}),this['keystrokes']['set']('esc',(_0x1ae759,_0x5cd512)=>{_0x2adc45!==_0x1ae759['target']&&(this['focus'](),_0x5cd512());});}}class d extends _0x6c1265{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x229cdc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x826a30){super(_0x826a30),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c4e07=this['editor']['config'];_0x3c4e07['define']('trackChanges.SuggestionThreadView',fe),_0x3c4e07['define']('trackChanges.SuggestionView',we),_0x3c4e07['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c4e07['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x37b5aa,_0x3edf76){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3134a6,_0x1ea4ca]of this['_handleControllerBuffer']){const _0x5c70fc=this['_suggestionToController']['has'](_0x3134a6);_0x5c70fc||_0x1ea4ca?_0x5c70fc&&_0x1ea4ca&&this['_destroyController'](_0x3134a6):this['_initializeController'](_0x3134a6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x37b5aa,_0x3edf76);}['init'](){const _0x4e276b=this['editor'],_0x27b67b=_0x4e276b['plugins']['get']('TrackChangesEditing'),_0xfaab92=_0x4e276b['plugins']['get']('Annotations'),_0x32dcd7=_0x4e276b['plugins']['get']('EditorAnnotations'),_0x3847a6=_0x4e276b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32dcd7['addSourceCollector'](()=>{const _0x1a84d5=[];for(const [_0x25b1b4,_0xff4a16]of Array['from'](this['_suggestionToController'])){const _0x2ee176=_0x25b1b4['getAllAdjacentSuggestions'](),_0x187270=[];for(const _0x208b41 of _0x2ee176){if(!_0x208b41['isInContent'])continue;if(_0x208b41['isMultiRange']){_0x187270['push'](..._0x208b41['getRanges']());continue;}const _0x33e2f3=_0x208b41['getFirstRange']();if(_0x187270['length']>0x0){const _0xb122f7=_0x187270[0x0]['getJoined'](_0x33e2f3);if(_0xb122f7){_0x187270[0x0]=_0xb122f7;continue;}}_0x187270['push'](_0x33e2f3);}_0x1a84d5['push']([_0xff4a16['view'],_0x187270]);}return _0x1a84d5;}),this['listenTo'](_0x27b67b,'suggestionLoaded',(_0x58f77e,_0x1971af)=>{this['listenTo'](_0x1971af,'change:previous',(_0x52efcd,_0x23f217,_0x21c779,_0x1c4232)=>{_0x1971af['isInContent']&&(null==_0x21c779?(this['_updateController'](_0x1c4232['head']),this['_handleSuggestionControllerDelayed'](_0x1971af,!0x1)):(this['_updateController'](_0x21c779['head']),null==_0x1c4232&&this['_handleSuggestionControllerDelayed'](_0x1971af,!0x0)));}),null!==_0x1971af['previous']?this['_updateController'](_0x1971af['head']):this['_handleSuggestionControllerDelayed'](_0x1971af,!0x1);}),this['listenTo'](_0x27b67b,'suggestionUnloaded',(_0x4c5abb,_0x4491ed,_0x245105)=>{this['stopListening'](_0x4491ed,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4491ed),this['_suggestionToController']['has'](_0x4491ed)&&this['_destroyController'](_0x4491ed),_0x245105&&this['_updateController'](_0x245105['head']);}),this['listenTo'](_0x27b67b,'suggestionChanged',(_0x23d856,_0x38f78d)=>{this['_updateController'](_0x38f78d);}),this['listenTo'](_0xfaab92,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3847a6,'addComment',(_0x1298c8,{threadId:_0x1d3fdc,isFromAdapter:_0x3f1404})=>{if(_0x3f1404||!_0x27b67b['hasSuggestion'](_0x1d3fdc))return;const _0x57e83e=_0x27b67b['getSuggestion'](_0x1d3fdc);this['_suggestionToController']['get'](_0x57e83e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e5d82=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x467d13;for(const _0x3641a0 in _0x5e5d82){const _0x57a6ce=_0x3641a0,_0x26b29a=_0x5e5d82[_0x57a6ce];if('trackChangesLicenseKeyValid'==_0x26b29a||'trackChangesLicenseKeyInvalid'==_0x26b29a||'trackChangesLicenseKeyExpired'==_0x26b29a||'trackChangesLicenseKeyDomainLimit'==_0x26b29a||'trackChangesLicenseKeyNotAllowed'==_0x26b29a||'trackChangesLicenseKeyEvaluationLimit'==_0x26b29a||'trackChangesLicenseKeyTrialLimit'==_0x26b29a||'trackChangesLicenseKeyUsageLimit'==_0x26b29a){delete _0x5e5d82[_0x57a6ce],_0x467d13=_0x26b29a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x467d13&&_0x5e5d82['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x467d13&&_0x5e5d82['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x467d13&&_0x5e5d82['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x574f01=this['editor']['plugins']['get']('Annotations'),_0x4beab5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22f96f=Array['from'](_0x574f01['activeAnnotations'],_0x4eb383=>_0x4eb383['innerView'])['filter'](_0x1c684f=>this['_viewToController']['has'](_0x1c684f)),_0x554ef8=[];for(const _0x125147 of _0x22f96f){const _0x39a035=this['_viewToController']['get'](_0x125147)['model']['getAllAdjacentSuggestions']();_0x554ef8['push'](..._0x39a035['reduce']((_0x3aa20f,_0x2f8fca)=>[..._0x3aa20f,..._0x2f8fca['getMarkerNames']()],[]));}_0x4beab5['activeMarkers']=_0x554ef8;}['_addUIComponentsToFactory'](){const _0x5e1adb=this['editor'],_0x54827e=_0x5e1adb['locale'],_0x795784=c(_0x54827e,'Track\x20changes'),_0x2317ee=new _0x32b111([{'type':'switchbutton','model':new _0x151401({'withText':!0x0,'isToggleable':!0x0,'label':_0x795784,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5e1adb['plugins']['has']('TrackChangesPreview')&&_0x2317ee['addMany']([{'type':'separator'},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x53e550 of _0x2317ee)if(ke(_0x53e550)){const _0xa9f533=_0x5e1adb['commands']['get'](_0x53e550['model']['commandName']);_0x53e550['model']['bind']('isOn','isEnabled')['to'](_0xa9f533,'value','isEnabled');}_0x5e1adb['ui']['componentFactory']['add']('trackChanges',_0x1e1c95=>this['_createToolbarButton'](_0x1e1c95,_0x2317ee,_0x795784)),_0x5e1adb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b1e9f=>this['_createMenuBarMenu'](_0x5b1e9f,_0x2317ee,_0x795784));}['_createToolbarButton'](_0x18bd0f,_0xd8c0af,_0x72c58f){const _0x5c32d3=_0x16e7d6(_0x18bd0f,_0x4f2c47),_0x455e9e=this['editor']['commands']['get']('trackChanges');_0x5c32d3['buttonView']['set']({'tooltip':_0x72c58f,'label':_0x72c58f,'icon':_0x416010}),_0x5c32d3['buttonView']['bind']('isOn')['to'](_0x455e9e,'value'),_0x5c32d3['buttonView']['on']('execute',()=>{_0x455e9e['execute'](),this['editor']['editing']['view']['focus']();}),_0xe86ee5(_0x5c32d3,_0xd8c0af,{'role':'menu'});const _0x397c5d=[];for(const _0x162069 of _0xd8c0af)ke(_0x162069)&&_0x397c5d['push'](this['editor']['commands']['get'](_0x162069['model']['commandName']));const _0x2d8573=_0x5c32d3['buttonView'];return _0x2d8573['actionView']['unbind']('isEnabled'),_0x2d8573['arrowView']['unbind']('isEnabled'),_0x2d8573['actionView']['bind']('isEnabled')['to'](_0x455e9e,'isEnabled'),_0x2d8573['arrowView']['bind']('isEnabled')['toMany'](_0x397c5d,'isEnabled',(..._0x1ab353)=>_0x1ab353['some'](_0x46d75a=>_0x46d75a)),_0x5c32d3['on']('execute',_0x425ba5=>{this['editor']['execute'](_0x425ba5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c32d3;}['_createMenuBarMenu'](_0x3c8073,_0x192367,_0x5636f7){const _0xc1658f=new _0x13656b(_0x3c8073),_0x5d164f=this['editor']['commands']['get']('trackChanges');_0xc1658f['buttonView']['set']({'label':_0x5636f7,'icon':_0x416010});const _0x3f99c1=new _0x10270c(_0x3c8073);for(const _0x41ba2e of _0x192367){if('separator'==_0x41ba2e['type']){_0x3f99c1['items']['add'](new _0x58c26c(_0x3c8073));continue;}const _0x950ea0=new _0x48bdf3(_0x3c8073,_0xc1658f),_0x543afb=new _0x2b5be6(_0x3c8073),_0x49af92=_0x41ba2e['model'];_0x543afb['bind'](...Object['keys'](_0x49af92))['to'](_0x49af92),_0x543afb['delegate']('execute')['to'](_0xc1658f),_0x543afb['on']('execute',()=>{this['editor']['execute'](_0x49af92['commandName']),this['editor']['editing']['view']['focus']();}),_0x950ea0['children']['add'](_0x543afb),_0x3f99c1['items']['add'](_0x950ea0);}return _0xc1658f['bind']('isEnabled')['to'](_0x5d164f,'isEnabled'),_0xc1658f['panelView']['children']['add'](_0x3f99c1),_0xc1658f;}['_initializeController'](_0x179d1a){const _0x12fcc4=this['editor'],_0x3edf1d=_0x12fcc4['config'],_0xfbd2aa=_0x12fcc4['plugins']['get']('Annotations'),_0x44c0fe=_0x12fcc4['plugins']['get']('CommentsRepository'),_0x54f0df=_0x12fcc4['plugins']['get']('EditorAnnotations'),_0x276dad=_0x12fcc4['plugins']['get'](_0x229cdc)['me'],_0x1aaff5=_0x3edf1d['get']('trackChanges')['SuggestionThreadView'],_0x1bffdf=_0x3edf1d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x22948d,CommentThreadInputView:_0x5affbf}=_0x12fcc4['plugins']['get']('CommentsUI');let _0x144b60,_0x5863df,_0x3307fc;this['_annotationViews']['has'](_0x179d1a['id'])?(_0x5863df=this['_annotationViews']['get'](_0x179d1a['id']),_0x144b60=_0x5863df['mainView']):(_0x144b60=new _0x1aaff5(_0x12fcc4['locale'],_0x179d1a,_0x276dad,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3edf1d['get']('comments.editorConfig'),'licenseKey':_0x3edf1d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3edf1d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3edf1d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3edf1d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x12e153(_0x3edf1d['get']('locale')),'CommentView':_0x3edf1d['get']('comments')['CommentView'],'CommentsListView':_0x22948d,'CommentThreadInputView':_0x5affbf,'SuggestionView':_0x1bffdf}),_0x144b60['suggestionView']['acceptButton']['on']('execute',()=>{_0x12fcc4['editing']['view']['focus']();}),_0x144b60['suggestionView']['discardButton']['on']('execute',()=>{_0x12fcc4['editing']['view']['focus']();}),_0x5863df=_0xfbd2aa['createAnnotationView'](this['editor']['locale'],_0x144b60),_0x5863df['bind']('isDirty')['to'](_0x144b60,'isDirty'),_0x5863df['bind']('length')['to'](_0x144b60),_0x5863df['bind']('type')['to'](_0x144b60,'type',_0xfa14e5=>'suggestion-'+_0xfa14e5),_0x144b60['on']('escape',()=>{_0x3307fc['fire']('escape');}),this['_annotationViews']['set'](_0x179d1a['id'],_0x5863df));const _0x310852=_0x44c0fe['createCommentThreadController'](_0x179d1a['commentThread'],_0x144b60),_0x5f47cc=new pe(_0x12fcc4,_0x179d1a,_0x144b60,_0x310852),_0x145def=_0x179d1a['getAllAdjacentSuggestions']()['filter'](_0x53d87f=>_0x53d87f['isInContent']);_0x144b60['descriptionParts']=_0x12fcc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x145def),this['_suggestionToController']['set'](_0x179d1a,_0x5f47cc),this['_viewToController']['set'](_0x144b60,_0x5f47cc),_0x3307fc=_0xfbd2aa['createAnnotation']({'view':_0x5863df,'target':()=>{const _0x305956=[],_0x11a0f0=_0x179d1a['getAllAdjacentSuggestions']()['filter'](_0xa961b2=>_0xa961b2['isInContent']);for(const _0xd87005 of _0x11a0f0)_0x305956['push'](..._0xd87005['getMarkers']());return _0x23738e(_0x12fcc4['editing'],_0x305956);},'type':()=>'suggestion-'+_0x5f47cc['view']['type']}),_0x44c0fe['_bindAnnotationToEditors'](_0x144b60,_0x3307fc),_0xfbd2aa['add'](_0x3307fc),_0x54f0df['registerAnnotation'](_0x3307fc);}['_destroyController'](_0x2d27d4){const _0x583e82=this['editor']['plugins']['get']('CommentsRepository'),_0x442bc7=this['editor']['plugins']['get']('Annotations'),_0x175111=this['_suggestionToController']['get'](_0x2d27d4),_0x598964=_0x175111['view'],_0x818a1e=_0x442bc7['getByInnerView'](_0x598964);_0x583e82['_unbindEditors'](_0x598964),_0x818a1e&&_0x442bc7['remove'](_0x818a1e),this['_suggestionToController']['delete'](_0x2d27d4),this['_viewToController']['delete'](_0x598964),_0x175111['destroy']();}['_updateController'](_0x3366c7){if(!_0x3366c7['isInContent']||!this['_suggestionToController']['has'](_0x3366c7))return;const _0x46642a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x203274=this['_suggestionToController']['get'](_0x3366c7),_0x1e53e1=_0x3366c7['getAllAdjacentSuggestions']();_0x203274['view']['descriptionParts']=_0x46642a['descriptionFactory']['getDescriptions'](_0x1e53e1);}['destroy'](){for(const _0x4e2901 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4e2901);for(const _0x979005 of this['_annotationViews']['values']())_0x979005['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xa93134){return'model'in _0xa93134;}class k extends _0x6c1265{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2dbc3b){this['editor']['plugins']['get'](p)['adapter']=_0x2dbc3b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x31d092){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x31d092);}['getSuggestions']({skipNotAttached:_0xf9b23=!0x1,toJSON:_0x413e7e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xf9b23,'toJSON':_0x413e7e});}['getSuggestion'](_0x404581){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x404581);}}const w=['Pagination'];class T extends _0x6c1265{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c5534=this['editor'];if(_0x4c5534['config']['define']('trackChangesData.editorCreator',_0x2cc40b=>{const _0x28928e=_0x4c5534['model']['document']['getRootNames']()['reduce']((_0x5809b2,_0x4580c2)=>(_0x5809b2[_0x4580c2]='',_0x5809b2),{});return _0x4c5534['constructor']['create'](_0x28928e,_0x2cc40b);}),'function'!=typeof _0x4c5534['config']['get']('trackChangesData')['editorCreator'])throw new _0x23f583('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44acee){return N(this['editor'],!0x0,_0x44acee);}['getDataWithDiscardedSuggestions'](_0x294e8d){return N(this['editor'],!0x1,_0x294e8d);}}class D extends _0x6c1265{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bce28){function _0x2825b5(_0x516b40){return _0x516b40['map'](_0x21159f=>String['fromCharCode'](_0x21159f))['join']('');}super(_0x5bce28),this['result']='end',_0x5bce28[_0x2825b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2825b5([0x76,0x69,0x65,0x77])][_0x2825b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2825b5([0x61,0x75,0x74,0x6f]),_0x5bce28[_0x2825b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2825b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2825b5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2825b5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2825b5([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x5ac479){return void 0x0!==_0x5ac479['getRootsAttributes'];}async function N(_0x22852f,_0x8126d,_0x3f2542){const _0x17dc18=_0x16010f(_0x22852f,w);_0x17dc18['plugins']['push'](p,D),_0x17dc18['rootsAttributes']=Fe(_0x22852f)?_0x22852f['getRootsAttributes']():void 0x0;const _0x59bf36=document['createDocumentFragment'](),_0x19d3b5=_0x22852f['config']['get']('trackChangesData')['editorCreator'],_0x2edf22=await _0x19d3b5(_0x17dc18,()=>function(_0x112604){const _0xc350ad=document['createElement']('div');return _0x112604['appendChild'](_0xc350ad),_0xc350ad;}(_0x59bf36));!function(_0x562a25,_0x3561a4){const _0x8a002e=_0x562a25['model']['document']['getRootNames']()['reduce']((_0x4a17db,_0x2c4320)=>(_0x4a17db[_0x2c4320]=_0x562a25['data']['get']({'rootName':_0x2c4320}),_0x4a17db),{}),_0x2279d7=_0x562a25['plugins']['get']('Users')['users']['map'](_0x307f67=>({'id':_0x307f67['id'],'name':_0x307f67['name']})),_0x35c663=_0x562a25['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x74bdb5=_0x562a25['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e21ab=_0x3561a4['plugins']['get']('Users'),_0x15f20b=_0x3561a4['plugins']['get']('TrackChangesEditing'),_0x2a3f33=_0x3561a4['plugins']['get']('CommentsRepository');for(const _0x54bea3 of _0x2a3f33['getCommentThreads']())_0x54bea3['remove']();for(const _0x309dd7 of _0x2279d7)_0x5e21ab['getUser'](_0x309dd7['id'])||_0x5e21ab['addUser'](_0x309dd7);_0x5e21ab['me']||_0x5e21ab['useAnonymousUser']();for(const _0xa10157 of _0x74bdb5)_0x2a3f33['addCommentThread'](_0xa10157);for(const _0x152722 of _0x35c663)_0x15f20b['addSuggestionData'](_0x152722);_0x3561a4['data']['set'](_0x8a002e);}(_0x22852f,_0x2edf22),_0x2edf22['execute'](_0x8126d?'acceptAllSuggestions':'discardAllSuggestions');const _0x57be65=Fe(_0x2edf22)?_0x2edf22['getFullData'](_0x3f2542):_0x2edf22['data']['get'](_0x3f2542);return await _0x2edf22['destroy'](),_0x57be65;}class Me extends _0x3ded66{['options'];constructor(_0x5cda3f,_0x1ee13b){super(_0x5cda3f),this['options']=_0x1ee13b,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'](_0x16d239,_0x59b479){if(!this['element'])return;const _0x265d1d=[];for(const [_0x3fe05b,_0x3d7711]of _0x16d239){const _0x5dd9e9=document['createElement']('div');_0x5dd9e9['setAttribute']('data-ck-root-name',_0x3fe05b),_0x5dd9e9['className']=_0x3d7711['classes']+'\x20ck-track-changes-preview__root-container',_0x5dd9e9['innerHTML']=_0x3d7711['content'],_0x265d1d['push'](_0x5dd9e9);}_0x59b479(this['element'],_0x265d1d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1be8bb{constructor(_0x10b679){super(_0x10b679),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x21dc75=this['editor'],_0x317840=_0x21dc75['locale'],_0x1c3fe7=_0x21dc75['plugins']['get']('Dialog');let _0xd95cbd;const _0x105318=function(_0x29272a){const _0x122584={};if('editables'in _0x29272a['ui']['view']){for(const [_0x2d5bd9,_0x27354c]of Object['entries'](_0x29272a['ui']['view']['editables']))_0x122584[_0x2d5bd9]=_0x27354c['element'];}else _0x122584[_0x29272a['model']['document']['getRootNames']()[0x0]]=_0x29272a['ui']['view']['editable']['element'];return _0x122584;}(_0x21dc75),_0x2a9055=function(_0x5cde05){let _0x52a848=0x0;for(const _0x576bfd of Object['values'](_0x5cde05))_0x52a848=Math['max'](_0x52a848,_0x576bfd['getBoundingClientRect']()['width']);let _0x4a5ebb=0x0;for(const _0x3ada5f of Object['values'](_0x5cde05))_0x4a5ebb+=_0x3ada5f['getBoundingClientRect']()['height'];const _0xb466ac=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x162dd6=Math['min'](_0x4a5ebb,_0xb466ac);return{'width':_0x52a848,'height':_0x162dd6};}(_0x105318);_0x1c3fe7['show']({'id':'finalContentPreview','title':c(_0x317840,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x317840,{'dialogRects':_0x2a9055}),'onHide':()=>{_0xd95cbd['detachFromDom']();},'onShow':()=>{_0x21dc75['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1e16bf=>{const _0x5e1ee2=this['_standarizeRootsData'](_0x1e16bf,_0x21dc75,_0x105318);_0x1c3fe7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5e1ee2,_0x21dc75['config']['get']('trackChanges.preview.renderFunction'));}),_0xd95cbd=new _0x50507a(_0x317840,[_0x1c3fe7['view']]),_0xd95cbd['attachToDom'](),_0xd95cbd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x21dc75['once']('destroy',()=>{_0xd95cbd['detachFromDom']();});const _0x1ea3b1=_0x1c3fe7['view']['headerView']['class'];_0x1c3fe7['view']['headerView']['class']=_0x1ea3b1?_0x1ea3b1+'\x20ck-reset_all':'ck-reset_all',_0x1c3fe7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1c3fe7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x50995a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xbcf2ca=_0x50995a['previewMode'],_0x100072={};if('$labels'===_0xbcf2ca){for(const _0x452492 of _0x50995a['getMergeFieldsIds']())_0x100072[_0x452492]=_0x50995a['getLabel'](_0x452492)||_0x452492;}else{const _0x141b9b='$defaultValues'===_0xbcf2ca?_0x50995a['getDefaultValues']():_0x50995a['getDataSetValues'](_0xbcf2ca,!0x0);for(const _0x116d76 of Object['entries'](_0x141b9b)){const [_0x3f58e5,_0x18a12f]=_0x116d76;_0x100072[_0x3f58e5]=null!==_0x18a12f?_0x18a12f:_0x50995a['getLabel'](_0x3f58e5)||_0x3f58e5;}}return{'mergeFieldsData':_0x100072};}['_standarizeRootsData'](_0x3c87db,_0x32d0ca,_0x19e483){let _0x53ad9c;if('string'==typeof _0x3c87db){const _0x12cfe6=_0x32d0ca['model']['document']['getRootNames']()[0x0];_0x53ad9c={[_0x12cfe6]:_0x3c87db};}else _0x53ad9c=_0x3c87db;const _0x2aaf3a=this['_fixMediaEmbeds'](_0x53ad9c,_0x32d0ca),_0x15d2ce=function(_0x225f81,_0x22bd05){for(const [_0x3e5635,_0x4120e6]of _0x225f81)_0x4120e6['classes']=_0x22bd05[_0x3e5635]['classList']['value']['replace']('ck-focused','');return _0x225f81;}(this['_sortRoots'](_0x32d0ca)['reduce']((_0xc350ea,_0x29184e)=>(_0xc350ea['push']([_0x29184e,{'content':_0x2aaf3a[_0x29184e],'classes':''}]),_0xc350ea),[]),_0x19e483);return _0x15d2ce;}['_fixMediaEmbeds'](_0x3d9582,_0x3ea7a5){if(!_0x3ea7a5['plugins']['has']('MediaEmbedEditing'))return _0x3d9582;const _0x2622d6=_0x3ea7a5['plugins']['get']('MediaEmbedEditing');for(const [_0xfab27c,_0x16a76a]of Object['entries'](_0x3d9582)){const _0x2d3bdf=document['createElement']('div');_0x2d3bdf['innerHTML']=_0x16a76a,(_0x2d3bdf['querySelectorAll']('figure.media')['forEach'](_0x3e48ec=>{const _0x396fe3=_0x3e48ec['querySelector']('oembed');if(_0x396fe3){const _0x491a7e=_0x396fe3['getAttribute']('url');if(_0x491a7e){const _0x22aa85=_0x2622d6['registry']['getMediaViewElement'](new _0x318b26(_0x3ea7a5['editing']['view']['document']),_0x491a7e,{'elementName':'','renderForEditingView':!0x0}),_0x86163b=document['createElement']('div');_0x86163b['classList']['add']('ck-media__wrapper'),_0x22aa85['render'](_0x86163b,_0x3ea7a5['editing']['view']['domConverter']),_0x396fe3['replaceWith'](_0x86163b);}}}),_0x3d9582[_0xfab27c]=_0x2d3bdf['innerHTML']);}return _0x3d9582;}['_sortRoots'](_0x1e3d9f){if(!function(_0x44f4ba){return void 0x0!==_0x44f4ba['getRootsAttributes'];}(_0x1e3d9f))return _0x1e3d9f['model']['document']['getRootNames']();const _0x1f4c27=[],_0x2e5c2b=new Map();for(const _0x4576b0 of _0x1e3d9f['model']['document']['getRootNames']()){const _0x1474e2=_0x1e3d9f['editing']['view']['getDomRoot'](_0x4576b0)['getClientRects']()['item'](0x0);_0x1f4c27['push'](_0x4576b0),_0x2e5c2b['set'](_0x4576b0,_0x1474e2);}return _0x1f4c27['sort']((_0x444ca0,_0x4360b1)=>{const _0x1ebf0a=_0x2e5c2b['get'](_0x444ca0),_0xc6ec8c=_0x2e5c2b['get'](_0x4360b1);return _0x1ebf0a['y']-_0xc6ec8c['y']||_0x1ebf0a['x']-_0xc6ec8c['x'];}),_0x1f4c27;}}class te extends _0x6c1265{static get['requires'](){return[T,_0x5ef560];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50e7c3){super(_0x50e7c3),_0x50e7c3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x50e7c3['config']['define']('trackChanges.preview.renderFunction',(_0xb81e32,_0xafd0c1)=>{for(const _0x19e5e2 of _0xafd0c1)_0xb81e32['appendChild'](_0x19e5e2);});}}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};