@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250901.0 → 0.0.0-nightly-20250902.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 (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x218d32,Plugin as _0x342976,PendingActions as _0x596aee}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2dc02a,ObservableMixin as _0x25ca34,uid as _0x1229f3,priorities as _0x133bbd,insertToPriorityArray as _0x232d2b,toArray as _0x223b6d,logWarning as _0x2ae079,getEnvKeystrokeText as _0x3c28ea,FocusTracker as _0x575649,KeystrokeHandler as _0xf4582f,Collection as _0xa11cab}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x41ae11,IconCancel as _0x1dee67,IconTrackChanges as _0x186a9f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x212ef4,View as _0x4d14fe,ViewCollection as _0x46c175,FocusCycler as _0x5e25da,UIModel as _0x193a18,createDropdown as _0x41d2af,SplitButtonView as _0x26c4e3,addListToDropdown as _0x47aa92,MenuBarMenuView as _0x2d17d4,MenuBarMenuListView as _0x56cb65,ListSeparatorView as _0x24b2b7,MenuBarMenuListItemView as _0x31e70e,MenuBarMenuListItemButtonView as _0x3e7885,BodyCollection as _0x5ee352,Dialog as _0x237b7b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5341d3,hashObject as _0x21c96b,surroundingMarkersDetector as _0x3e750b,FOCUS_ANNOTATION_KEYSTROKE as _0x4fdd99,AriaDescriptionView as _0x40fbb9,setupThreadKeyboardNavigation as _0x168934,trimHtml as _0x4d5569,UserView as _0x269dd4,LateFocusButtonView as _0x1c73bb,getDateTimeFormatter as _0x2b61cf,getAllMarkersDomElementsSorted as _0x5d62c2,sanitizeEditorConfig as _0x1e5152}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1f6e62,ModelLiveRange as _0x150f02,ModelLivePosition as _0x21c458,ViewDowncastWriter as _0x1242f4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x54e9b5,toWidget as _0x25315b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x329940,set as _0x526d77,isEqual as _0x5228ee,unset as _0x542bc6,omit as Ut}from'es-toolkit/compat';import{Delete as _0x1a56ba,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x591b0f}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x394e84}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x218d32{['_enabledCommands'];constructor(_0x20aac2,_0x1437aa){super(_0x20aac2),this['_enabledCommands']=_0x1437aa,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 _0x1f7c34 of this['editor']['commands']['commands']())_0x1f7c34['affectsData']&&!this['_enabledCommands']['has'](_0x1f7c34)&&_0x1f7c34['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x22c92f of this['editor']['commands']['commands']())_0x22c92f['affectsData']&&!this['_enabledCommands']['has'](_0x22c92f)&&_0x22c92f['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x218d32{['_suggestions'];constructor(_0x2f6406,_0x151caa){super(_0x2f6406),this['_suggestions']=_0x151caa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x133916){const _0x4848a1=this['_suggestions']['get'](_0x133916);if(!_0x4848a1)throw new _0x2dc02a('track-changes-accept-suggestion-not-found',this);const _0x4601be=_0x4848a1['getRanges']();this['editor']['model']['canEditAt'](_0x4601be)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4848a1);}}class $ extends _0x218d32{['_suggestions'];constructor(_0x346700,_0x9161fb){super(_0x346700),this['_suggestions']=_0x9161fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c4eb4){const _0x405752=this['_suggestions']['get'](_0x5c4eb4);if(!_0x405752)throw new _0x2dc02a('track-changes-discard-suggestion-not-found',this);const _0x48e1bd=_0x405752['getRanges']();this['editor']['model']['canEditAt'](_0x48e1bd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x405752);}}function ls(_0x476e58,_0x1689a6){let _0x3fe978='';return _0x3fe978+=_0x476e58['split']('*')['map']((_0x3587de,_0x4d4e93)=>_0x4d4e93%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x3587de)+'</span>':Zt(_0x3587de))['join'](''),_0x1689a6&&(_0x3fe978+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1689a6['value']+'\x22\x20title=\x22'+_0x1689a6['title']+'\x22></span>'),_0x3fe978;}function Zt(_0x4b547b){const _0xd5d648=document['createElement']('span');return _0xd5d648['innerText']=_0x4b547b,_0xd5d648['innerHTML'];}function ts(_0x3001d0){return _0x3001d0['sort']((_0x23b87a,_0x3f5a20)=>'attribute'===_0x23b87a['type']&&'attribute'!==_0x3f5a20['type']?-0x1:'attribute'!==_0x23b87a['type']&&'attribute'===_0x3f5a20['type']?0x1:'deletion'==_0x23b87a['type']&&'deletion'!=_0x3f5a20['type']?-0x1:'deletion'!=_0x23b87a['type']&&'deletion'==_0x3f5a20['type']?0x1:0x0);}function to(_0x5442e0,_0x404a38){let _0x193ac5,_0x36e961=0x0;const _0x5befde=[],_0x2fe4c5=_0x404a38['schema'];for(;_0x36e961<_0x5442e0['length'];){const _0x50b1a0=_0x5442e0[_0x36e961],_0x48672f=_0x5442e0[_0x36e961+0x1];_0x193ac5||(_0x193ac5=_0x404a38['createPositionBefore'](_0x50b1a0)),tn(_0x404a38,_0x50b1a0,_0x48672f)||(_0x5befde['push'](_0x404a38['createRange'](_0x193ac5,_0x2fe4c5['isObject'](_0x50b1a0)?_0x404a38['createPositionAfter'](_0x50b1a0):_0x404a38['createPositionAt'](_0x50b1a0,'end'))),_0x193ac5=null),_0x36e961++;}return _0x5befde;}function tn(_0x54fd5,_0xf4e84f,_0xd65c70){if(!_0xd65c70)return!0x1;const _0x10f1a3=_0x54fd5['createPositionAfter'](_0xf4e84f),_0x58e345=_0x54fd5['createPositionBefore'](_0xd65c70);return _0x10f1a3['isTouching'](_0x58e345);}function rs(_0x576879,_0x44a551,_0x137a11){for(;_0x137a11['length'];){const _0x1b6fe2=_0x137a11['splice'](0x0,0x64);_0x576879['change'](()=>{for(const _0x1ad72b of _0x1b6fe2)_0x1ad72b['isInContent']&&_0x44a551['execute'](_0x1ad72b['id']);});}}class M extends _0x218d32{['_command'];['_suggestions'];constructor(_0x11d023,_0x3d9fc0,_0x1ec7df){super(_0x11d023),this['_command']=_0x3d9fc0,this['_suggestions']=_0x1ec7df,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xc81bd2=Array['from'](this['_suggestions']['values']())['some'](_0x10c635=>_0x10c635['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xc81bd2;}['execute'](){const _0x2e88d9=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1ae4e6 of _0x2e88d9){const _0x39b022=_0x1ae4e6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x39b022))return;}rs(this['editor']['model'],this['_command'],_0x2e88d9);}}class B extends _0x218d32{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x55f8be,_0x455bf9,_0x45da47){super(_0x55f8be),this['_command']=_0x455bf9,this['_suggestions']=_0x45da47,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3001a7=this['editor']['model']['document']['selection'],_0x334530=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x6c7cce,_0x44d98c){const _0xe4a93a=Array['from'](_0x6c7cce['getRanges']()),_0x2ffb96=new Set();for(const _0x3d2cd0 of _0x44d98c)if(_0x3d2cd0['isInContent']){for(const _0x190124 of _0xe4a93a)for(const _0x4d0664 of _0x3d2cd0['getRanges']())(_0x190124['isIntersecting'](_0x4d0664)||_0x6c7cce['isCollapsed']&&!_0x3d2cd0['isMultiRange']&&_0x3d2cd0['next']&&_0x4d0664['end']['isTouching'](_0x190124['start']))&&_0x2ffb96['add'](_0x3d2cd0);}return _0x2ffb96;}(_0x3001a7,_0x334530),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x41a336=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1eed53 of _0x41a336){const _0x35f3a3=_0x1eed53['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35f3a3))return;}rs(this['editor']['model'],this['_command'],_0x41a336);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x25ca34(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xab731b,_0x841d){super(),this['id']=_0x841d['id'],this['type']=_0x841d['type'],this['subType']=_0x841d['subType']||null,this['author']=_0x841d['author'],this['creator']=_0x841d['creator']||_0x841d['author'],this['isExternal']=Boolean(_0x841d['attributes']&&_0x841d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x841d['originalSuggestionId']||null,this['_model']=_0xab731b,this['_onAccept']=_0x841d['onAccept'],this['_onDiscard']=_0x841d['onDiscard'],this['_onAttributesChange']=_0x841d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x841d['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 _0x1c92d4=this;for(;_0x1c92d4['previous'];)_0x1c92d4=_0x1c92d4['previous'];return _0x1c92d4;}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'](_0xcd7e10){this['_markerNames']['add'](_0xcd7e10);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x33cac7=>this['_model']['markers']['get'](_0x33cac7))['filter'](_0x3c7a84=>_0x3c7a84);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xce1175=>{for(const _0x14dabe of this['getMarkers']())_0xce1175['removeMarker'](_0x14dabe);}),this['_markerNames']['clear']();}['removeMarker'](_0x88f9c8){this['_model']['change'](_0x29f112=>{_0x29f112['removeMarker'](_0x88f9c8);}),this['_markerNames']['delete'](_0x88f9c8);}['addRange'](_0x174170){const _0x4ae493='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4ae493),this['_model']['change'](_0x8b7794=>{_0x8b7794['addMarker'](_0x4ae493,{'range':_0x174170,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1651dd){for(const _0x1031bd of this['getRanges']())if(_0x1031bd['isIntersecting'](_0x1651dd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3b0222=>_0x3b0222['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x87160e,_0x4b95e5)=>[..._0x87160e,..._0x4b95e5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x18cd54=this['getRanges']();if(0x1!=_0x18cd54['length'])return null;const _0x3e4043=_0x18cd54[0x0],_0x1ded92=_0x3e4043['start']['nodeAfter'],_0x19ab6c=_0x3e4043['end']['nodeBefore'];return _0x1ded92 instanceof _0x1f6e62?_0x1ded92!=_0x19ab6c?null:_0x1ded92: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 _0xbbd2a3=[];let _0xc4f1b5=this['head'];for(;_0xc4f1b5;)_0xbbd2a3['push'](_0xc4f1b5),_0xc4f1b5=_0xc4f1b5['next'];return _0xbbd2a3;}['setAttribute'](_0x392c15,_0xf30ba9){const _0x7b41a7=_0x329940(this['attributes']);_0x526d77(_0x7b41a7,_0x392c15,_0xf30ba9),_0x5228ee(_0x7b41a7,this['attributes'])||(this['attributes']=_0x7b41a7,this['_onAttributesChange'](_0x7b41a7));}['removeAttribute'](_0x3cca77){const _0x104825=_0x329940(this['attributes']);_0x542bc6(_0x104825,_0x3cca77),_0x5228ee(_0x104825,this['attributes'])||(this['attributes']=_0x104825,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 _0x1229f3()['substr'](0x1,0x5);}}function o(_0x461816,_0x4da266,_0x33b2bc){const _0xdbc653=_0x461816['t'],t=_0x461816['t'];switch(_0x4da266){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',_0x33b2bc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33b2bc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33b2bc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33b2bc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33b2bc);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',_0x33b2bc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33b2bc);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',_0x33b2bc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33b2bc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33b2bc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33b2bc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33b2bc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33b2bc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33b2bc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33b2bc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33b2bc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33b2bc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33b2bc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33b2bc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33b2bc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33b2bc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33b2bc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33b2bc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33b2bc);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x33b2bc);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'},_0x33b2bc);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x33b2bc);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x33b2bc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33b2bc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33b2bc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33b2bc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33b2bc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33b2bc);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'},_0x33b2bc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33b2bc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33b2bc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33b2bc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33b2bc);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'},_0x33b2bc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33b2bc);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'},_0x33b2bc);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x33b2bc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33b2bc);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'},_0x33b2bc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33b2bc);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'},_0x33b2bc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33b2bc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33b2bc);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'},_0x33b2bc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33b2bc);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 _0xdbc653({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33b2bc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xdbc653({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33b2bc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33b2bc);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'},_0x33b2bc);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'},_0x33b2bc);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'},_0x33b2bc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4da266;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x657448,_0x2c69c0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x657448,this['_locale']=_0x2c69c0;}['getDescriptions'](_0x502324){const _0x3781bb=[],_0x2393b8=new Set(),_0x515733=new Set();for(let _0x33be49=0x0;_0x33be49<_0x502324['length'];_0x33be49++){const _0x3e4cb8=_0x502324[_0x33be49];if(!_0x3e4cb8['isInContent'])continue;const _0x21c5b4=this['_handleCustomCallbackDescription'](_0x3e4cb8);if(_0x21c5b4){if(null!=_0x3e4cb8['subType']){if(_0x2393b8['has'](_0x3e4cb8['subType']))continue;_0x2393b8['add'](_0x3e4cb8['subType']);}_0x3781bb['push'](_0x21c5b4);}else{if('attribute'==_0x3e4cb8['type']){const _0x48df3c=_0x3e4cb8['data']['key'];if(_0x515733['has'](_0x48df3c))continue;_0x515733['add'](_0x3e4cb8['data']['key']),_0x48df3c==m?this['_handleRenameSuggestionDescription'](_0x3781bb,_0x3e4cb8):this['_handleAttributeSuggestionDescription'](_0x3781bb,_0x3e4cb8);continue;}'insertion'!=_0x3e4cb8['type']&&'deletion'!=_0x3e4cb8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3781bb,_0x3e4cb8,_0x502324[_0x33be49+0x1]);}}return this['_resolveDescriptionItems'](_0x3781bb);}['registerDescriptionCallback'](_0x3d4cc5){this['_customCallbacks']['push'](_0x3d4cc5);}['registerElementLabel'](_0x9b43ea,_0x1f3381,_0x11ff4e=_0x133bbd['normal']){'function'==typeof _0x9b43ea?_0x232d2b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x9b43ea,'label':_0x1f3381,'priority':_0x11ff4e}):this['_itemLabels']['set'](_0x9b43ea,_0x1f3381);}['registerAttributeLabel'](_0x475223,_0x815395){this['_attributeLabels']['set'](_0x475223,_0x815395);}['getItemLabel'](_0x3550a4,_0x507434=0x1){let _0xca3087;for(const _0x4d7b49 of this['_itemLabelsCallbacks'])if(_0x4d7b49['matchingCallback'](_0x3550a4)){_0xca3087=_0x4d7b49['label'];break;}return _0xca3087||(_0xca3087=this['_itemLabels']['get'](_0x3550a4['name'])),_0xca3087?_0xca3087(_0x507434):0x1!==_0x507434?_0x507434+'\x20'+_0x3550a4['name']+'s':''+_0x3550a4['name'];}['_addDescriptionItems'](_0x51b017,_0x12253b){const _0x4de252=_0x12253b['getFirstRange']()['getWalker'](),_0x486caa='insertion'==_0x12253b['type']?'add':'remove';for(const _0x2c5e47 of _0x4de252){const _0x572790=_0x2c5e47['item'],_0x220bb5=_0x51b017[_0x51b017['length']-0x1];if(_0x572790['is']('$textProxy'))_0x220bb5&&_0x220bb5['type']['indexOf']('Container')>-0x1&&_0x51b017['pop'](),_0x220bb5&&'text'==_0x220bb5['type']?_0x220bb5[_0x486caa]+=_0x572790['data']:_0x51b017['push']({'type':'text','add':'add'==_0x486caa?_0x572790['data']:'','remove':'remove'==_0x486caa?_0x572790['data']:''});else{if(this['_schema']['isObject'](_0x572790)){const _0x341eba=_0x572790;if(_0x220bb5&&_0x220bb5['type']['indexOf']('Container')>-0x1&&_0x51b017['pop'](),'elementEnd'==_0x2c5e47['type'])continue;_0x220bb5&&_0x220bb5['type']==_0x486caa+'Object'&&_0x220bb5['element']['name']==_0x341eba['name']?_0x220bb5['quantity']++:_0x51b017['push']({'type':_0x486caa+'Object','element':_0x341eba,'quantity':0x1}),_0x4de252['skip'](_0x29e834=>!('elementEnd'==_0x29e834['type']&&_0x29e834['item']==_0x572790));}else{if(this['_schema']['checkChild'](_0x572790,'$text')||_0x572790['is']('element','softBreak')){const _0x3dd943=_0x572790;if('add'==_0x486caa&&'elementStart'==_0x2c5e47['type']||'remove'==_0x486caa&&'elementEnd'==_0x2c5e47['type'])continue;if(_0x220bb5&&-0x1==_0x220bb5['type']['indexOf']('Container')){'text'==_0x220bb5['type']&&(_0x220bb5[_0x486caa]+='\x0a');continue;}let _0x4e3f3a;if(_0x4e3f3a='add'==_0x486caa?_0x3dd943['nextSibling']&&!this['_schema']['isObject'](_0x3dd943['nextSibling'])?_0x3dd943['nextSibling']:null:_0x3dd943['previousSibling']&&!this['_schema']['isObject'](_0x3dd943['previousSibling'])?_0x3dd943['previousSibling']:null,_0x3dd943['isEmpty']||_0x4e3f3a&&_0x4e3f3a['isEmpty']){const _0x4c2159=_0x4e3f3a&&_0x4e3f3a['isEmpty']?_0x4e3f3a:_0x3dd943;_0x220bb5&&_0x220bb5['type']==_0x486caa+'EmptyContainer'&&_0x220bb5['element']['name']==_0x4c2159['name']?_0x220bb5['quantity']++:_0x51b017['push']({'type':_0x486caa+'EmptyContainer','element':_0x4c2159,'quantity':0x1});}else _0x51b017['push']({'type':_0x486caa+'Container','element':_0x3dd943});}}}}}['_resolveDescriptionItems'](_0x382e61){const _0x42a73d=this['_locale'],_0x37f1f4=[],_0x1d0fe5=[],_0x50a542=[];for(const _0x47fd6c of _0x382e61)switch(_0x47fd6c['type']){case'text':if(_0x47fd6c['add']=_0x47fd6c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47fd6c['remove']=_0x47fd6c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47fd6c['add']&&''!=_0x47fd6c['remove']){_0x37f1f4['push']({'type':'replace','content':o(_0x42a73d,'REPLACE_TEXT',['\x22'+_0x47fd6c['remove']+'\x22','\x22'+_0x47fd6c['add']+'\x22'])});continue;}if(null!=_0x47fd6c['add']['match'](/^ +$/)){_0x37f1f4['push']({'type':'insertion','content':o(_0x42a73d,'*Insert:*\x20%0',o(_0x42a73d,'ELEMENT_SPACE',_0x47fd6c['add']['length']))});continue;}if(null!=_0x47fd6c['remove']['match'](/^ +$/)){_0x37f1f4['push']({'type':'deletion','content':o(_0x42a73d,'*Remove:*\x20%0',o(_0x42a73d,'ELEMENT_SPACE',_0x47fd6c['remove']['length']))});continue;}if(''!=_0x47fd6c['add']){_0x37f1f4['push']({'type':'insertion','content':o(_0x42a73d,'*Insert:*\x20%0','\x22'+_0x47fd6c['add']+'\x22')});continue;}_0x37f1f4['push']({'type':'deletion','content':o(_0x42a73d,'*Remove:*\x20%0','\x22'+_0x47fd6c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x37f1f4['push']({'type':'insertion','content':o(_0x42a73d,'*Insert:*\x20%0',this['getItemLabel'](_0x47fd6c['element'],_0x47fd6c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x37f1f4['push']({'type':'deletion','content':o(_0x42a73d,'*Remove:*\x20%0',this['getItemLabel'](_0x47fd6c['element'],_0x47fd6c['quantity']))});continue;case'addContainer':_0x37f1f4['push']({'type':'insertion','content':o(_0x42a73d,'*Split:*\x20%0',this['getItemLabel'](_0x47fd6c['element'],_0x47fd6c['quantity']))});continue;case'removeContainer':_0x37f1f4['push']({'type':'deletion','content':o(_0x42a73d,'*Merge:*\x20%0',this['getItemLabel'](_0x47fd6c['element'],_0x47fd6c['quantity']))});continue;case'addFormat':_0x1d0fe5['push'](_0x47fd6c['key']);continue;case'removeFormat':_0x50a542['push'](_0x47fd6c['key']);continue;default:_0x37f1f4['push'](_0x47fd6c);}if(_0x1d0fe5['length']){const _0xa21a=_0x1d0fe5['map'](_0x5339e1=>this['_attributeLabels']['has'](_0x5339e1)?this['_attributeLabels']['get'](_0x5339e1):_0x5339e1)['join'](',\x20');_0x37f1f4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xa21a)});}if(_0x50a542['length']){const _0x5e2eec=_0x50a542['map'](_0x911df9=>this['_attributeLabels']['has'](_0x911df9)?this['_attributeLabels']['get'](_0x911df9):_0x911df9)['join'](',\x20');_0x37f1f4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5e2eec)});}return _0x37f1f4;}['_handleCustomCallbackDescription'](_0x446391){for(const _0x4a0de5 of this['_customCallbacks']){const _0xad8460=_0x4a0de5(_0x446391);if(_0xad8460&&'type'in _0xad8460)return _0xad8460;}}['_handleAttributeSuggestionDescription'](_0x586dab,_0x5a5908){const _0x134a17=_0x5a5908['data'],_0x39926a=void 0x0===_0x134a17['newValue']?'removeFormat':'addFormat';_0x586dab['push']({'type':_0x39926a,'key':_0x134a17['key']});}['_handleRenameSuggestionDescription'](_0x47aa0e,_0x3431f5){_0x47aa0e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3431f5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x34a4b3,_0x3d3440,_0x47b40f){if(this['_addDescriptionItems'](_0x34a4b3,_0x3d3440),_0x47b40f&&_0x47b40f['getFirstRange']()&&!_0x3d3440['getFirstRange']()['end']['isEqual'](_0x47b40f['getFirstRange']()['start'])){const _0x59fd86=_0x34a4b3[_0x34a4b3['length']-0x1],_0x239062='insertion'==_0x3d3440['type']?'add':'remove';_0x59fd86&&'text'==_0x59fd86['type']&&(_0x59fd86[_0x239062]+='\x0a');}}}class O extends _0x342976{['afterInit'](){const _0x255b00=this['editor'],_0x400a8a=_0x255b00['plugins']['get']('TrackChangesEditing');_0x255b00['commands']['get']('showAIAssistant')&&_0x400a8a['enableCommand']('showAIAssistant');}}class E extends _0x342976{['afterInit'](){const _0x103774=this['editor'],_0xe952fe=_0x103774['locale'];if(!_0x103774['plugins']['has']('AlignmentEditing'))return;const _0x1a3aef=_0x103774['plugins']['get']('TrackChangesEditing');_0x1a3aef['enableDefaultAttributesIntegration']('alignment'),_0x1a3aef['registerBlockAttribute']('alignment'),_0x1a3aef['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xe952fe,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10f532=this['editor'],_0xf846f0=_0x10f532['locale'];_0x10f532['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdac2ba=>{if('formatBlock'!=_0xdac2ba['type'])return;const {data:_0x1a99eb}=_0xdac2ba;if(_0x1a99eb&&'alignment'==_0x1a99eb['commandName']){const _0x4176ab=_0x1a99eb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xf846f0,'*Format:*\x20%0',function(_0x55843e){switch(_0x55843e){case'left':return o(_0xf846f0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xf846f0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xf846f0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xf846f0,'FORMAT_JUSTIFY_TEXT');}}(_0x4176ab))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x342976{['afterInit'](){const _0x59ee40=this['editor'],_0x8a4533=_0x59ee40['plugins']['get']('TrackChangesEditing'),_0x5362e8=_0x59ee40['locale'];for(const _0x52684d of ti){if(!_0x59ee40['plugins']['has'](_0x52684d))continue;const _0x250c8d=_0x52684d['slice'](0x0,-0x7)['toLowerCase'](),_0x3905b1='FORMAT_'+_0x250c8d['toUpperCase']();_0x8a4533['enableDefaultAttributesIntegration'](_0x250c8d),_0x8a4533['registerInlineAttribute'](_0x250c8d),_0x8a4533['descriptionFactory']['registerAttributeLabel'](_0x250c8d,o(_0x5362e8,_0x3905b1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190bc0=this['editor'],_0x17d839=_0x190bc0['locale'],_0x581b7b=_0x190bc0['plugins']['get']('TrackChangesEditing');function _0x43d1e4(_0x3de011,_0x30324f){_0x581b7b['descriptionFactory']['registerDescriptionCallback'](_0x3dc2a9=>{if('formatInline'!=_0x3dc2a9['type'])return;const {data:_0x3ac2c7}=_0x3dc2a9;return _0x3ac2c7&&_0x3ac2c7['commandName']===_0x3de011?_0x3ac2c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17d839,'*Format:*\x20%0',_0x30324f)}:{'type':'format','content':o(_0x17d839,'*Remove\x20format:*\x20%0',_0x30324f)}:void 0x0;});}_0x43d1e4('bold',o(_0x17d839,'FORMAT_BOLD')),_0x43d1e4('italic',o(_0x17d839,'FORMAT_ITALIC')),_0x43d1e4('underline',o(_0x17d839,'FORMAT_UNDERLINE')),_0x43d1e4('code',o(_0x17d839,'FORMAT_CODE')),_0x43d1e4('strikethrough',o(_0x17d839,'FORMAT_STRIKETHROUGH')),_0x43d1e4('subscript',o(_0x17d839,'FORMAT_SUBSCRIPT')),_0x43d1e4('superscript',o(_0x17d839,'FORMAT_SUPERSCRIPT'));}}class U extends _0x342976{['afterInit'](){const _0x3d35f9=this['editor'],_0x2c1528=_0x3d35f9['locale'];if(!_0x3d35f9['plugins']['has']('BlockQuoteEditing'))return;const _0x2fdbd5=_0x3d35f9['plugins']['get']('TrackChangesEditing'),_0x4eb50d=this['editor']['commands']['get']('blockQuote');_0x2fdbd5['enableCommand']('blockQuote',(_0xbed934,_0x3538cf={})=>{const _0x3ba957=this['editor']['model']['document']['selection'],_0x122e75=_0x3538cf&&void 0x0!==_0x3538cf['forceValue']?_0x3538cf['forceValue']:!_0x4eb50d['value'];let _0x1c6404=[];if(_0x122e75){const _0x21e6c8=Array['from'](_0x3ba957['getSelectedBlocks']())['filter'](_0x4a3c4d=>oo(_0x4a3c4d)||function(_0x32cc53,_0x2d5bb0){const _0x525eea=_0x2d5bb0['checkChild'](_0x32cc53['parent'],'blockQuote'),_0x5d80b6=_0x2d5bb0['checkChild'](['$root','blockQuote'],_0x32cc53);return _0x525eea&&_0x5d80b6;}(_0x4a3c4d,this['editor']['model']['schema']));_0x1c6404=to(_0x21e6c8,_0x3d35f9['model']);}else{const _0x13f14d=Array['from'](_0x3ba957['getSelectedBlocks']())['filter'](_0x36930a=>oo(_0x36930a));_0x1c6404=to(_0x13f14d,_0x3d35f9['model']);}_0x3d35f9['model']['change'](()=>{for(const _0x2af68f of _0x1c6404)_0x2fdbd5['markBlockFormat'](_0x2af68f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x122e75}]});});}),_0x2fdbd5['descriptionFactory']['registerDescriptionCallback'](_0x3728cf=>{const {data:_0x8f1fe7}=_0x3728cf;if(_0x8f1fe7&&'blockQuote'==_0x8f1fe7['commandName']){const _0x4690ff=o(_0x2c1528,'ELEMENT_BLOCK_QUOTE');return _0x8f1fe7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c1528,'*Set\x20format:*\x20%0',_0x4690ff)}:{'type':'format','content':o(_0x2c1528,'*Remove\x20format:*\x20%0',_0x4690ff)};}});}}function oo(_0x5992c6){return'blockQuote'==_0x5992c6['parent']['name'];}class V extends _0x342976{['afterInit'](){const _0x1cecf6=this['editor'],_0x8757a6=_0x1cecf6['locale'],_0x3b3980=_0x1cecf6['plugins']['get']('TrackChangesEditing');_0x1cecf6['plugins']['has']('BookmarkEditing')&&(_0x3b3980['enableCommand']('insertBookmark'),_0x3b3980['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b3980['registerBlockAttribute']('bookmarkId'),_0x3b3980['descriptionFactory']['registerDescriptionCallback'](_0xe496ee=>{if('insertion'!=_0xe496ee['type']&&'deletion'!=_0xe496ee['type']&&'attribute'!=_0xe496ee['type'])return;const _0x362498=_0xe496ee['getContainedElement']();if(null==_0x362498)return;if(!_0x362498['is']('element','bookmark'))return;const _0x170a6b=_0x362498['getAttribute']('bookmarkId');if('insertion'==_0xe496ee['type'])return{'type':'insertion','content':o(_0x8757a6,'*Insert:*\x20%0','\x22'+_0x170a6b+'\x22\x20'+o(_0x8757a6,'ELEMENT_BOOKMARK'))};if('deletion'==_0xe496ee['type'])return{'type':'deletion','content':o(_0x8757a6,'*Remove:*\x20%0','\x22'+_0x170a6b+'\x22\x20'+o(_0x8757a6,'ELEMENT_BOOKMARK'))};const {data:_0xe5a76}=_0xe496ee;if(!_0xe5a76||'bookmarkId'!=_0xe5a76['key'])return;return{'type':'format','content':o(_0x8757a6,'*Set\x20bookmark:*\x20%0','\x22'+_0xe5a76['newValue']+'\x22')};}));}}class F extends _0x342976{['afterInit'](){const _0x12d270=this['editor'];_0x12d270['plugins']['has']('CaseChange')&&(_0x12d270['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12d270['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12d270['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x342976{['afterInit'](){const _0xdd5aa=this['editor'];_0xdd5aa['commands']['get']('ckbox')&&_0xdd5aa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x342976{['afterInit'](){const _0x1a0085=this['editor'];if(!_0x1a0085['plugins']['has']('CodeBlock'))return;const _0xdfcaf1=_0x1a0085['plugins']['get']('TrackChangesEditing'),_0x2554e2=_0x1a0085['locale'],_0x310068=_0x1a0085['config']['get']('codeBlock')['languages'],_0x2f702f=_0x1a0085['commands']['get']('codeBlock');_0xdfcaf1['enableCommand']('indentCodeBlock'),_0xdfcaf1['enableCommand']('outdentCodeBlock'),_0xdfcaf1['enableCommand']('codeBlock',(_0x1df050,_0x29c93a={})=>{const _0x131c3e=_0x1a0085['model'],_0x4abe49=_0x1a0085['model']['document']['selection'],_0x191fd3=_0x29c93a&&void 0x0!==_0x29c93a['forceValue']?_0x29c93a['forceValue']:!_0x2f702f['value'];let _0x1e443d;_0x29c93a['language']||(_0x29c93a['language']=_0x310068[0x0]['language']),_0x1e443d=_0x191fd3?Array['from'](_0x4abe49['getSelectedBlocks']())['filter'](_0x5c94ca=>co(_0x5c94ca)||function(_0x17614f,_0x5d670a){if(_0x17614f['is']('rootElement')||_0x5d670a['isLimit'](_0x17614f))return!0x1;return _0x5d670a['checkChild'](_0x17614f['parent'],'codeBlock');}(_0x5c94ca,_0x131c3e['schema'])):Array['from'](_0x4abe49['getSelectedBlocks']())['filter'](_0xce619d=>co(_0xce619d));const _0x4fe24c=to(_0x1e443d,_0x131c3e);_0x131c3e['change'](()=>{for(const _0x598366 of _0x4fe24c)_0xdfcaf1['markBlockFormat'](_0x598366,{'commandName':'codeBlock','commandParams':[{..._0x29c93a,'forceValue':_0x191fd3}],'formatGroupId':'blockName'});});}),(_0xdfcaf1['descriptionFactory']['registerElementLabel']('codeBlock',_0x2da3c7=>o(_0x2554e2,'ELEMENT_CODE_BLOCK',_0x2da3c7)),_0xdfcaf1['descriptionFactory']['registerDescriptionCallback'](_0x2b59df=>{if('formatBlock'!=_0x2b59df['type'])return;const _0x42d4c3=_0x2554e2['t'],{data:_0x5a1be7}=_0x2b59df;if(!_0x5a1be7||'codeBlock'!=_0x5a1be7['commandName'])return;const _0x3b0e90=_0x5a1be7['commandParams'][0x0]['language'],_0x32a6aa=_0x42d4c3(_0x310068['find'](_0x26d955=>_0x26d955['language']===_0x3b0e90)['label'])['toLowerCase']();return _0x5a1be7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2554e2,'*Set\x20format:*\x20%0',o(_0x2554e2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x32a6aa+')')}:{'type':'format','content':o(_0x2554e2,'*Remove\x20format:*\x20%0',o(_0x2554e2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5ade65){return'codeBlock'==_0x5ade65['name'];}class J extends _0x342976{['afterInit'](){const _0x2e99f3=this['editor'];if(!_0x2e99f3['plugins']['has']('CommentsEditing'))return;_0x2e99f3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1f18e3,_0x254177,_0x40986d){const _0x18f46a=[];for(const _0x2e4521 of _0x254177['getItems']())_0x2e4521['hasAttribute'](_0x1f18e3)&&_0x18f46a['push'](_0x40986d['createRangeOn'](_0x2e4521));return _0x18f46a;}function De(_0x52c41c,_0x55c745,{showActiveMarker:_0x3606ef=!0x0}={}){const _0x61be78=_0x52c41c['plugins']['get']('TrackChangesEditing');return(_0x434269,_0x3596e0,_0x4d25e4)=>{if(!_0x4d25e4['consumable']['test'](_0x3596e0['markerRange'],_0x434269['name']))return;const _0x14976c=_0x3596e0['markerRange']['getWalker'](),_0x1e6ff0=_0x3596e0['markerRange']['start'],_0x27d13f=_0x52c41c['model']['schema'];let _0xa47e0f=null,_0x4cee4c=null,_0xe39d1=!0x1,_0x2bccd2=!0x1;for(const _0x3040c8 of _0x14976c){const _0x54072d=_0x3040c8['item'];_0xe39d1=_0xe39d1||_0x27d13f['isContent'](_0x54072d);const _0x363661=_0x4d25e4['mapper']['toViewElement'](_0x54072d);if(_0x363661&&_0x363661['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3040c8['type']&&(_0x27d13f['isBlock'](_0x54072d)&&!_0x27d13f['isLimit'](_0x54072d)&&(_0x54072d['nextSibling']||_0x1e6ff0['isAtEnd']?_0xa47e0f&&_0xa47e0f['parent']==_0x54072d||(_0xa47e0f=_0x54072d,_0xcad2db(_0x3040c8['previousPosition']),_0x2bccd2=!0x0):_0x4cee4c=_0x4cee4c||_0x3040c8['previousPosition']));}function _0xcad2db(_0x47c02f){const {id:_0x640145,authorId:_0x5e713c}=_0x61be78['_splitMarkerName'](_0x3596e0['markerName']),_0x310346=_0x4d25e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55c745,'data-suggestion':_0x640145,'data-author-id':_0x5e713c}),_0x248bd1=_0x4d25e4['mapper']['toViewPosition'](_0x47c02f);_0x3606ef&&_0x61be78['activeMarkers']['includes'](_0x3596e0['markerName'])&&_0x4d25e4['writer']['addClass']('ck-suggestion-marker--active',_0x310346),_0x4d25e4['writer']['insert'](_0x248bd1,_0x310346),_0x4d25e4['mapper']['bindElementToMarker'](_0x310346,_0x3596e0['markerName']);}_0xe39d1||_0x2bccd2||!_0x4cee4c||_0xcad2db(_0x4cee4c);};}class K extends _0x342976{static get['requires'](){return[_0x1a56ba];}['init'](){const _0x218ab7=this['editor'],_0x514ef0=_0x218ab7['plugins']['get']('TrackChangesEditing');_0x514ef0['enableCommand']('delete');const _0x4f0d9b=_0x218ab7['commands']['get']('deleteForward');_0x514ef0['enableCommand']('deleteForward',(_0x33c20d,_0x1bbca8={})=>{const _0x197c0e=_0x218ab7['model']['createSelection'](_0x218ab7['model']['document']['selection']);_0x197c0e['isCollapsed']&&_0x218ab7['model']['modifySelection'](_0x197c0e,{'direction':'forward','unit':_0x1bbca8['unit']});const _0x480bee=_0x197c0e['getFirstRange'](),_0x31d515=_0x150f02['fromRange'](_0x480bee);let _0x2f7859;_0x33c20d(_0x1bbca8),_0x2f7859='$graveyard'==_0x31d515['root']['rootName']?_0x218ab7['model']['createRange'](_0x480bee['start']):_0x218ab7['model']['createRange'](_0x31d515['start'],_0x31d515['end']),_0x31d515['detach'](),_0x218ab7['model']['enqueueChange'](_0x4f0d9b['buffer']['batch'],_0x22d217=>{_0x4f0d9b['buffer']['lock'](),_0x22d217['setSelection'](_0x22d217['createRange'](_0x2f7859['end'])),_0x4f0d9b['buffer']['unlock']();});}),_0x218ab7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x218ab7,'merge'),{'priority':'high'}),_0x218ab7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5d5a26,_0x42a079,_0x396870)=>{_0x396870['options']['showSuggestionHighlights']&&De(_0x218ab7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5d5a26,_0x42a079,_0x396870);},{'priority':'high'}),_0x218ab7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4544de,_0x3e7fe7,_0x15c6ba)=>{const _0x28ad39=_0x15c6ba['mapper']['markerNameToElements'](_0x3e7fe7['markerName']);if(_0x28ad39){for(const _0x593729 of _0x28ad39)_0x593729['is']('uiElement')&&(_0x15c6ba['mapper']['unbindElementFromMarkerName'](_0x593729,_0x3e7fe7['markerName']),_0x15c6ba['writer']['remove'](_0x593729));}},{'priority':'high'});}}class H extends _0x342976{['afterInit'](){const _0x2feeab=this['editor'];if(!_0x2feeab['plugins']['has']('ListEditing'))return;const _0x1032db=_0x2feeab['locale'],_0x41c1b4=_0x2feeab['plugins']['get']('TrackChangesEditing'),_0x437959=_0x2feeab['plugins']['has']('TodoListEditing'),_0x4a7baf=!!_0x2feeab['config']['get']('list.multiBlock');function _0x2bf499(_0x1075ea){return{'type':'format','content':''+o(_0x1032db,'*Set\x20format:*\x20%0',_0x1075ea)};}function _0x277916(_0x1370b6){return{'type':'format','content':''+o(_0x1032db,'*Remove\x20format:*\x20%0',_0x1370b6)};}_0x41c1b4['enableDefaultAttributesIntegration']('numberedList'),_0x41c1b4['enableDefaultAttributesIntegration']('bulletedList'),_0x41c1b4['enableDefaultAttributesIntegration']('customNumberedList'),_0x41c1b4['enableDefaultAttributesIntegration']('customBulletedList'),_0x41c1b4['enableDefaultAttributesIntegration']('indentList'),_0x41c1b4['enableDefaultAttributesIntegration']('outdentList'),_0x41c1b4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x41c1b4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x41c1b4['registerBlockAttribute']('listItemId'),_0x41c1b4['registerBlockAttribute']('listType'),_0x41c1b4['registerBlockAttribute']('listIndent'),_0x4a7baf&&(_0x41c1b4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x41c1b4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x437959&&(_0x41c1b4['enableDefaultAttributesIntegration']('todoList'),_0x41c1b4['enableDefaultAttributesIntegration']('checkTodoList'),_0x41c1b4['registerBlockAttribute']('todoListChecked'),_0x41c1b4['descriptionFactory']['registerDescriptionCallback'](_0x4f709b=>{const {data:_0x435e0c}=_0x4f709b;if(_0x435e0c&&'todoListChecked'==_0x435e0c['key'])return{'type':'format','content':_0x435e0c['newValue']?o(_0x1032db,'*Check\x20item*'):o(_0x1032db,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x50801f=>{if(_0x50801f['batch']['isUndo'])return!0x1;let _0x3334ba=!0x1;const _0x521d21=_0x41c1b4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc09276=>'todoListChecked'===_0x41c1b4['_getAttributeKey'](_0xc09276));for(const _0x3aa44c of _0x521d21){'todo'!=_0x3aa44c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x41c1b4['_findSuggestions'](_0x3aa44c['getFirstRange'](),'attribute')['find'](_0x133635=>'listType'===_0x41c1b4['_getAttributeKey'](_0x133635['suggestion']))||(_0x50801f['removeMarker'](_0x3aa44c['getFirstMarker']()),_0x3334ba=!0x0));}return _0x3334ba;})),_0x41c1b4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1032db,'FORMAT_INDENT'));const _0x58cff1={'type':'format','content':''};_0x41c1b4['descriptionFactory']['registerDescriptionCallback'](_0x22fd81=>{const {data:_0x42975a}=_0x22fd81;if(!_0x42975a||'listType'!=_0x42975a['key'])return;let _0x28335d=_0x22fd81['head'];for(;_0x28335d;){if(_0x28335d['data']&&(('listStyle'==_0x28335d['data']['key']||'listMarkerStyle'==_0x28335d['data']['key'])&&(_0x28335d['data']['newValue']&&'default'!=_0x28335d['data']['newValue']||'default'!=_0x28335d['data']['oldValue']&&!_0x42975a['newValue'])||!_0x4a7baf&&_0x28335d['data']['key']==m))return _0x58cff1;_0x28335d=_0x28335d['next'];}if(null==_0x42975a['newValue'])switch(_0x42975a['oldValue']){case'bulleted':return _0x277916(o(_0x1032db,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x277916(o(_0x1032db,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x277916(o(_0x1032db,'ELEMENT_TODO_LIST'));}switch(_0x42975a['newValue']){case'bulleted':return _0x2bf499(o(_0x1032db,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bf499(o(_0x1032db,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bf499(o(_0x1032db,'ELEMENT_TODO_LIST'));}}),_0x41c1b4['descriptionFactory']['registerDescriptionCallback'](_0x47e68f=>{const {data:_0x56bf61}=_0x47e68f;if(_0x56bf61&&'listIndent'==_0x56bf61['key'])return null==_0x56bf61['newValue']||null==_0x56bf61['oldValue']&&0x0==_0x56bf61['newValue']?_0x58cff1:void 0x0;}),_0x41c1b4['descriptionFactory']['registerDescriptionCallback'](_0x272cf7=>{if('attribute'!=_0x272cf7['type'])return;const {data:_0x512438}=_0x272cf7;if(!_0x512438||'listItemId'!=_0x512438['key'])return;const _0x2fcccc=Te(_0x272cf7);return'newValue'==_0x2fcccc?{'type':'format','content':o(_0x1032db,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2fcccc?{'type':'format','content':o(_0x1032db,'*Split:*\x20list\x20item')}:_0x58cff1;}),_0x2feeab['model']['document']['registerPostFixer'](_0x1bac85=>this['listItemIdFixer'](_0x1bac85)),_0x2feeab['model']['document']['registerPostFixer'](_0x459d73=>this['noTrackChangesFixer'](_0x459d73)),_0x2feeab['model']['document']['on']('change:data',(_0x8fc01b,_0x5a959e)=>{if(_0x5a959e['isUndo']||!_0x5a959e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x547234){if(_0x547234['batch']['isUndo']||!_0x547234['batch']['isLocal'])return!0x1;let _0x5c2a22=!0x1;const _0x30f318=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x193dc9=>_0x193dc9['data']&&'listItemId'==_0x193dc9['data']['key'])['filter'](_0x236d27=>_0x236d27['data']['newValue']&&_0x236d27['data']['oldValue']);for(const _0xef44f4 of _0x30f318)Te(_0xef44f4)||(_0x547234['removeMarker'](_0xef44f4['getFirstMarker']()),_0x5c2a22=!0x0);return _0x5c2a22;}['noTrackChangesFixer'](_0x4ee0e9){if(_0x4ee0e9['batch']['isUndo']||!_0x4ee0e9['batch']['isLocal'])return!0x1;const _0x5ea90b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5ea90b['trackChangesCommand']['value'])return!0x1;let _0xf02cb=!0x1;const _0x14b503=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2cc256=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x324ef6=>'attribute'==_0x324ef6['type'])['filter'](_0xee3acc=>_0x14b503['includes'](_0xee3acc['attributeKey']));if(0x0==_0x2cc256['length'])return _0xf02cb;for(const _0x4260da of _0x2cc256){const _0x351a87=_0x5ea90b['_findSuggestions'](_0x4260da['range'],'attribute')['filter'](_0x45b30f=>!_0x45b30f['meta']['isNextTo'])['map'](_0x37ffcb=>_0x37ffcb['suggestion'])['filter'](_0x49455c=>{const _0x14be97=_0x5ea90b['_getAttributeKey'](_0x49455c);return _0x14b503['includes'](_0x14be97);});if(_0x351a87['length']){for(const _0x239036 of _0x351a87)_0x4ee0e9['removeMarker'](_0x239036['getFirstMarker']());_0xf02cb=!0x0;}}return _0xf02cb;}['assureChains'](){const _0x50ffd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d8f0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2fc49b;const _0x386c73=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5743f2=>{if(_0x5743f2['data']['oldRange']||!_0x5743f2['data']['newRange'])return null;if(!_0x5743f2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x178da7}=_0x50ffd9['_splitMarkerName'](_0x5743f2['name']);if(!_0x50ffd9['hasSuggestion'](_0x178da7))return null;const _0x4d6c30=_0x50ffd9['getSuggestion'](_0x178da7);return _0x2d8f0d['includes'](_0x4d6c30['data']['key']);})['map'](_0x40c4a9=>{const {id:_0x519177}=_0x50ffd9['_splitMarkerName'](_0x40c4a9['name']),_0x41689b=_0x50ffd9['getSuggestion'](_0x519177);return _0x2fc49b=_0x41689b['attributes']['groupId'],_0x41689b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x386c73['size'])return;const _0x9affb8=_0x50ffd9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x306867=>'attribute'==_0x306867['type']&&_0x306867['data']&&_0x2d8f0d['includes'](_0x306867['data']['key'])&&_0x306867['attributes']['groupId']!=_0x2fc49b)['map'](_0x2243d2=>({'listItem':_0x2243d2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2243d2['attributes']['groupId']})),_0x5cdad3=new Set();for(const {groupId:_0x316d1d,listItem:_0x5c2ecf}of _0x9affb8)_0x386c73['has'](_0x5c2ecf)&&_0x5cdad3['add'](_0x316d1d);for(const _0x4f6e09 of _0x50ffd9['getSuggestions']())_0x5cdad3['has'](_0x4f6e09['attributes']['groupId'])&&_0x4f6e09['setAttribute']('groupId',_0x2fc49b);}['_supportLegacySuggestions'](){const _0x4f510d=this['editor'],_0x4efd2c=_0x4f510d['locale'],_0x6d473=_0x4f510d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x6d473['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5c8771,_0x1c9f18){const _0x14fe87=[];for(let _0xee903b of _0x5c8771)_0xee903b['start']['nodeAfter']===_0xee903b['end']['parent']&&(_0xee903b=_0x4f510d['model']['createRange'](_0x4f510d['model']['createPositionAt'](_0xee903b['start']['nodeAfter'],0x0))),_0x14fe87['push'](_0xee903b);_0x4f510d['model']['change'](_0xd74523=>{const _0x5d00f2=_0x4f510d['model']['document']['selection'],_0x1627c6=Array['from'](_0x5d00f2['getRanges']())['map'](_0x19d28d=>_0x150f02['fromRange'](_0x19d28d));_0xd74523['setSelection'](_0x14fe87),_0x4f510d['commands']['get'](_0x1c9f18['commandName'])['refresh'](),_0x1c9f18['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4f510d['execute'](_0x1c9f18['commandName'],..._0x1c9f18['commandParams']),_0xd74523['setSelection'](_0x1627c6);for(const _0x18fe3a of _0x1627c6)_0x18fe3a['detach']();});}),_0x6d473['descriptionFactory']['registerElementLabel'](function(_0x16ca96){const _0x2b4d37=!_0x4f510d['model']['schema']['isObject'](_0x16ca96),_0x5d5efd=_0x16ca96['previousSibling'],_0x2a1cdc=_0x16ca96['nextSibling'],_0x26fb5b=_0x16ca96['getAttribute']('listItemId'),_0x114cf3=!_0x5d5efd||_0x5d5efd['getAttribute']('listItemId')!==_0x26fb5b,_0x5c098a=!_0x2a1cdc||_0x2a1cdc['getAttribute']('listItemId')!==_0x26fb5b;return _0x2b4d37&&Boolean(_0x26fb5b)&&_0x114cf3&&_0x5c098a;},_0x4c3254=>o(_0x4efd2c,'ELEMENT_LIST_ITEM',_0x4c3254));}['_registerLegacyDescription'](){const _0x1cf2cd=this['editor'],_0x35dc6a=_0x1cf2cd['locale'];function _0x437bcd(_0x58ce13){const _0x4a8490=_0x1cf2cd['commands']['get']('bulletedList')['value'],_0x5aca6f=_0x1cf2cd['commands']['get']('numberedList')['value'];return'numberedList'===_0x58ce13?_0x4a8490:_0x5aca6f;}_0x1cf2cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x354be8){if('formatBlock'!=_0x354be8['type'])return;const {data:_0x35d93f}=_0x354be8;if(!_0x35d93f)return;let _0x2a1e3b,_0x105b65,_0x4e7a4f,_0xde6a82;switch(_0x35d93f['commandName']){case'bulletedList':_0x4e7a4f=_0x35d93f['commandParams'][0x0]['forceValue'],_0xde6a82=_0x437bcd(_0x35d93f['commandName']),_0x2a1e3b=_0x4e7a4f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xde6a82&&_0x1cf2cd['config']['get']('list.multiBlock')||(_0x2a1e3b='*Change\x20to:*\x20%0'),_0x105b65={'type':'format','content':o(_0x35dc6a,_0x2a1e3b,o(_0x35dc6a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4e7a4f=_0x35d93f['commandParams'][0x0]['forceValue'],_0xde6a82=_0x437bcd(_0x35d93f['commandName']),_0x2a1e3b=_0x4e7a4f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xde6a82&&_0x1cf2cd['config']['get']('list.multiBlock')||(_0x2a1e3b='*Change\x20to:*\x20%0'),_0x105b65={'type':'format','content':o(_0x35dc6a,_0x2a1e3b,o(_0x35dc6a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2a1e3b='*Indent:*\x20%0',_0x105b65={'type':'format','content':o(_0x35dc6a,_0x2a1e3b,o(_0x35dc6a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2a1e3b=function(_0x428954){const _0x3f7d7c=_0x428954['getFirstRange']();let _0x414ab8=_0x3f7d7c['start']['nodeAfter'];for(;_0x414ab8&&_0x3f7d7c['containsItem'](_0x414ab8);){if(_0x414ab8['getAttribute']('listIndent')>0x0)return!0x1;_0x414ab8=_0x414ab8['nextSibling'];}return!0x0;}(_0x354be8)?o(_0x35dc6a,'*Format:*\x20remove\x20from\x20%0',o(_0x35dc6a,function(_0x46489b){return'ELEMENT_'+_0x46489b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x354be8))):o(_0x35dc6a,'*Outdent:*\x20%0',o(_0x35dc6a,'ELEMENT_LIST_ITEM')),_0x105b65={'type':'format','content':_0x2a1e3b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x35d93f['multipleBlocks']&&(_0x2a1e3b='*Merge:*\x20%0',_0x105b65={'type':'deletion','content':o(_0x35dc6a,_0x2a1e3b,o(_0x35dc6a,'ELEMENT_LIST_ITEM'))});}return _0x105b65;});}}function Te(_0xed119f){let _0x476ec2=_0xed119f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x476ec2;){const _0xb6ea3b=_0x476ec2['getAttribute']('listItemId');if(!_0xb6ea3b)return!0x1;if(_0xb6ea3b==_0xed119f['data']['newValue'])return'newValue';if(_0xb6ea3b==_0xed119f['data']['oldValue'])return'oldValue';_0x476ec2=_0x476ec2['previousSibling'];}return!0x1;}class q extends _0x342976{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1fcc89=this['editor']['config']['get']('list.properties'),_0x3e00a0=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fcc89['styles']&&(_0x3e00a0['enableDefaultAttributesIntegration']('listStyle'),_0x3e00a0['registerBlockAttribute']('listStyle')),_0x1fcc89['reversed']&&(_0x3e00a0['enableDefaultAttributesIntegration']('listReversed'),_0x3e00a0['registerBlockAttribute']('listReversed')),_0x1fcc89['startIndex']&&(_0x3e00a0['enableDefaultAttributesIntegration']('listStart'),_0x3e00a0['registerBlockAttribute']('listStart'));const _0x5aa346={'type':'format','content':''};_0x3e00a0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c7def=this['editor']['locale'];_0x3e00a0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c7def,'FORMAT_LIST_REVERSED')),_0x3e00a0['descriptionFactory']['registerDescriptionCallback'](_0x1af0a3=>{const {data:_0x47d878}=_0x1af0a3;if(_0x47d878&&'listReversed'==_0x47d878['key'])return null==_0x47d878['newValue']||0x0==_0x47d878['newValue']&&null==_0x47d878['oldValue']?_0x5aa346:void 0x0;}),_0x3e00a0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c7def,'FORMAT_LIST_START')),_0x3e00a0['descriptionFactory']['registerDescriptionCallback'](_0x35e46b=>{const {data:_0x328c64}=_0x35e46b;if(_0x328c64&&'listStart'==_0x328c64['key'])return null==_0x328c64['newValue']||0x1==_0x328c64['newValue']&&null==_0x328c64['oldValue']?_0x5aa346:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5dba14=>{if(_0x5dba14['batch']['isUndo'])return!0x1;let _0x1931c7=!0x1;const _0x46ac02=_0x3e00a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x316a83=>{const _0x584a4d=_0x3e00a0['_getAttributeKey'](_0x316a83);return'listStart'==_0x584a4d||'listReversed'==_0x584a4d;});for(const _0x1d4a54 of _0x46ac02){const _0x336c4c=_0x1d4a54['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x336c4c||'customNumbered'==_0x336c4c)continue;_0x3e00a0['_findSuggestions'](_0x1d4a54['getFirstRange'](),'attribute')['find'](_0x1c3878=>'listType'==_0x3e00a0['_getAttributeKey'](_0x1c3878['suggestion']))||(_0x5dba14['removeMarker'](_0x1d4a54['getFirstMarker']()),_0x1931c7=!0x0);}return _0x1931c7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa7e3a7){const _0x494430=this['editor']['locale'],{data:_0x3c1b1d}=_0xa7e3a7,_0x3ad9ff={'type':'format','content':''};if(!_0x3c1b1d||'listStyle'!=_0x3c1b1d['key'])return;if(!_0x3c1b1d['oldValue'])return'default'==_0x3c1b1d['newValue']?_0x3ad9ff:{'type':'format','content':''+o(_0x494430,'*Set\x20format:*\x20%0',o(_0x494430,this['_getTranslationKeyForListStyle'](_0x3c1b1d['newValue'])))};if(!_0x3c1b1d['newValue']){if('default'==_0x3c1b1d['oldValue'])return _0x3ad9ff;let _0x163cc6=_0xa7e3a7['head'];for(;_0x163cc6;){if(_0x163cc6['data']&&'listType'==_0x163cc6['data']['key']&&_0x163cc6['data']['newValue'])return _0x3ad9ff;_0x163cc6=_0x163cc6['next'];}return{'type':'format','content':''+o(_0x494430,'*Remove\x20format:*\x20%0',o(_0x494430,this['_getTranslationKeyForListStyle'](_0x3c1b1d['oldValue'])))};}if('default'!=_0x3c1b1d['newValue'])return{'type':'format','content':''+o(_0x494430,'*Set\x20format:*\x20%0',o(_0x494430,this['_getTranslationKeyForListStyle'](_0x3c1b1d['newValue'])))};let _0x1c6f30=_0xa7e3a7['head'];for(;_0x1c6f30;){if(_0x1c6f30['data']&&'listType'==_0x1c6f30['data']['key']&&_0x1c6f30['data']['newValue']&&_0x1c6f30['data']['oldValue'])return _0x3ad9ff;_0x1c6f30=_0x1c6f30['next'];}return{'type':'format','content':o(_0x494430,'*Set\x20format:*\x20%0',o(_0x494430,'ELEMENT_'+_0xa7e3a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x317d50=this['editor'],_0x4f3b16=_0x317d50['locale'];_0x317d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27cc32=>{if('formatBlock'!=_0x27cc32['type'])return;const {data:_0x5ce1cb}=_0x27cc32;if(!_0x5ce1cb)return;let _0x18fbe9,_0x34a1a9;switch(_0x5ce1cb['commandName']){case'listStyle':_0x18fbe9='*Change\x20to:*\x20%0',_0x34a1a9={'type':'format','content':o(_0x4f3b16,_0x18fbe9,o(_0x4f3b16,this['_getTranslationKeyForListStyle'](_0x5ce1cb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18fbe9=_0x5ce1cb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x34a1a9={'type':'format','content':o(_0x4f3b16,_0x18fbe9)};break;case'listStart':_0x18fbe9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x34a1a9={'type':'format','content':o(_0x4f3b16,_0x18fbe9,_0x5ce1cb['commandParams'][0x0]['startIndex'])};}return _0x34a1a9;});}['_getTranslationKeyForListStyle'](_0x4c5997){return'ELEMENT_'+function(_0x70801e){if(Se['includes'](_0x70801e))return'bulleted';if(_e['includes'](_0x70801e))return'numbered';return null;}(_0x4c5997)['toUpperCase']()+'_LIST_'+_0x4c5997['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x342976{['afterInit'](){const _0x1c9216=this['editor'];_0x1c9216['commands']['get']('emoji')&&_0x1c9216['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x342976{static get['requires'](){return[_0x591b0f];}['init'](){const _0x55e6ce=this['editor'],_0x2d95e2=_0x55e6ce['plugins']['get']('TrackChangesEditing'),_0x3c7050=_0x55e6ce['commands']['get']('enter');_0x2d95e2['enableCommand']('enter',()=>{_0x55e6ce['model']['change'](_0x16c933=>{const _0x4ab13=_0x55e6ce['model']['document']['selection'],_0x47c537=_0x4ab13['getFirstPosition'](),_0x4da3bb=_0x150f02['fromRange'](_0x4ab13['getFirstRange']());if(_0x3c7050['enterBlock'](_0x16c933)){const _0x548713=_0x55e6ce['model']['createPositionAt'](_0x47c537['parent']['nextSibling'],0x0),_0x2a4e28=_0x16c933['createRange'](_0x47c537,_0x548713);_0x2d95e2['markInsertion'](_0x2a4e28);}else _0x16c933['setSelection'](_0x16c933['createRange'](_0x4da3bb['end']));_0x4da3bb['detach'](),_0x3c7050['fire']('afterExecute',{'writer':_0x16c933});});}),_0x55e6ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x55e6ce,'split'),{'priority':'high'}),_0x55e6ce['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52f2b0,_0x3a638a,_0x334543)=>{const _0x5d883f=_0x334543['mapper']['markerNameToElements'](_0x3a638a['markerName']);if(_0x5d883f){for(const _0x183b57 of _0x5d883f)_0x183b57['hasClass']('ck-suggestion-marker-split')&&(_0x334543['mapper']['unbindElementFromMarkerName'](_0x183b57,_0x3a638a['markerName']),_0x334543['writer']['remove'](_0x183b57));}},{'priority':'high'}),_0x55e6ce['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x328101,_0x274310,_0x535452)=>{_0x535452['options']['showSuggestionHighlights']&&De(_0x55e6ce,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x328101,_0x274310,_0x535452);},{'priority':'high'});}}class Q extends _0x342976{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xb3e894=this['editor']['plugins']['get']('TrackChangesEditing');_0xb3e894['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xb3e894['enableCommand']('findNext'),_0xb3e894['enableCommand']('findPrevious'),_0xb3e894['enableCommand']('replace'),_0xb3e894['enableCommand']('replaceAll');}['handleFindCommand'](_0x21eedd,_0x4cb147,_0x119d27={}){const _0x142088=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21eedd(_0xc057c1=>{let _0x113896=('string'==typeof _0x4cb147?_0x142088['findByTextCallback'](_0x4cb147,_0x119d27):_0x4cb147)(_0xc057c1);Array['isArray'](_0x113896)&&(_0x113896={'results':_0x113896,'searchText':'string'==typeof _0x4cb147?_0x4cb147:''});const _0xd11f4=_0x113896['results']['filter'](_0x28b686=>!0x1===this['_isInDeletionRange'](_0x28b686,_0xc057c1['item']));return{..._0x113896,'results':_0xd11f4};},_0x119d27);}['_isInDeletionRange'](_0x455632,_0x3d2687){const _0x285830=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d2687,_0x455632['start']),this['editor']['model']['createPositionAt'](_0x3d2687,_0x455632['end']));for(const _0x3695e9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x285830['getIntersection'](_0x3695e9['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x342976{['afterInit'](){const _0x55f324=this['editor']['locale'],_0x50e730=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x43691a,commandName:_0x48afde}of eo)this['editor']['plugins']['has'](_0x43691a)&&(_0x50e730['enableDefaultAttributesIntegration'](_0x48afde),_0x50e730['registerInlineAttribute'](_0x48afde));_0x50e730['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x55f324,'FORMAT_FONT_SIZE')),_0x50e730['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x55f324,'FORMAT_FONT_FAMILY')),_0x50e730['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x55f324,'FORMAT_FONT_COLOR')),_0x50e730['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x55f324,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b8f83=this['editor'],_0x3c8ec4=_0x5b8f83['locale'];_0x5b8f83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4af5b6=>{const _0x258627=_0x3c8ec4['t'];if('formatInline'!=_0x4af5b6['type'])return;const {data:_0x1d6ea3}=_0x4af5b6;if(null!=_0x1d6ea3){if('fontSize'==_0x1d6ea3['commandName']){const _0x4751ec=_0x1d6ea3['commandParams'][0x0]['value'];if(_0x4751ec){const _0x7b521=_0x258627(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x227995=>_0x227995['model']==_0x4751ec)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3c8ec4,'*Set\x20font\x20size:*\x20%0',_0x7b521)};}return{'type':'format','content':o(_0x3c8ec4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d6ea3['commandName']){const _0x506fb6=_0x1d6ea3['commandParams'][0x0]['value'];return _0x506fb6?{'type':'format','content':o(_0x3c8ec4,'*Set\x20font\x20family:*\x20%0',_0x506fb6)}:{'type':'format','content':o(_0x3c8ec4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d6ea3['commandName']){const _0x4e5389=_0x1d6ea3['commandParams'][0x0]['value'];if(_0x4e5389){const _0x1bec19=_0x212ef4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2754b7=>_0x2754b7['model']==_0x4e5389);let _0x38bf90=_0x4e5389,_0x28764f='';return _0x1bec19&&(_0x38bf90=_0x1bec19['label'],_0x28764f=_0x258627(_0x38bf90)['toLowerCase']()),{'type':'format','content':o(_0x3c8ec4,'*Set\x20font\x20color:*\x20%0',_0x28764f)['trim'](),'color':{'value':_0x4e5389,'title':_0x28764f||_0x38bf90}};}return{'type':'format','content':o(_0x3c8ec4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d6ea3['commandName']){const _0x258e94=_0x1d6ea3['commandParams'][0x0]['value'];if(_0x258e94){const _0xc2ddc7=_0x212ef4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42a6ad=>_0x42a6ad['model']==_0x258e94);let _0x30396c=_0x258e94,_0x26e5d8='';return _0xc2ddc7&&(_0x30396c=_0xc2ddc7['label'],_0x26e5d8=_0x258627(_0x30396c)['toLowerCase']()),{'type':'format','content':o(_0x3c8ec4,'*Set\x20font\x20background\x20color:*\x20%0',_0x26e5d8)['trim'](),'color':{'value':_0x258e94,'title':_0x26e5d8||_0x30396c}};}return{'type':'format','content':o(_0x3c8ec4,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x342976{['afterInit'](){const _0x2142bf=this['editor'],_0x1719a7=_0x2142bf['plugins']['get']('TrackChangesEditing'),_0x543974=_0x2142bf['commands']['get']('copyFormat'),_0x2b5c0b=_0x2142bf['commands']['get']('pasteFormat');_0x543974&&_0x2b5c0b&&(_0x1719a7['enableDefaultAttributesIntegration']('pasteFormat'),_0x1719a7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xa0e1e8=this['editor'],_0x2deb92=_0xa0e1e8['locale'];_0xa0e1e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d82f5=>{if('formatBlock'!=_0x4d82f5['type']&&'formatInline'!=_0x4d82f5['type'])return;const {data:_0x44013f}=_0x4d82f5;if(_0x44013f&&'pasteFormat'===_0x44013f['commandName']){const _0x14c35e=[],_0x4ffc9a=_0x44013f['commandParams'][0x0];for(const [_0x3126cd,_0x400b89]of Object['entries'](_0x4ffc9a))_0x14c35e['push'](ro(_0xa0e1e8,_0x3126cd,_0x400b89));return _0x14c35e['length']?{'type':'format','content':o(_0x2deb92,'*Set\x20format\x20to:*\x20%0',_0x14c35e['join'](',\x20'))}:{'type':'format','content':o(_0x2deb92,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2c7369,_0x7620bc,_0x387313){const _0x4ddaf0=_0x2c7369['locale']['t'],_0xaaff4=_0x7620bc['split'](/(?=[A-Z])/)['join']('\x20'),_0x47f288=_0x4ddaf0(_0xaaff4['charAt'](0x0)['toUpperCase']()+_0xaaff4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x387313)return _0x47f288;if('fontColor'===_0x7620bc||'fontBackgroundColor'===_0x7620bc){const _0xe46e70=_0x212ef4(_0x2c7369['config']['get']('fontColor.colors'))['find'](_0x43e996=>_0x43e996['model']==_0x387313);return _0x47f288+'\x20('+(_0xe46e70?_0x4ddaf0(_0xe46e70['label'])['toLowerCase']():_0x387313)+')';}if('fontSize'===_0x7620bc&&isNaN(parseFloat(_0x387313))){const _0x1a9ccc=_0x2c7369['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2c7369['config']['get']('fontSize.options'))['find'](_0x5735cf=>_0x5735cf['model']==_0x387313);return _0x47f288+'\x20('+(_0x1a9ccc?_0x4ddaf0(_0x1a9ccc['title'])['toLowerCase']():_0x387313)+')';}return _0x47f288+'\x20('+_0x387313+')';}class Z extends _0x342976{['_headingOptions'];['afterInit'](){const _0xb77088=this['editor'];if(!_0xb77088['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb77088['config']['get']('heading.options');const _0xbdb40e=_0xb77088['locale'],_0x35e80b=_0xb77088['plugins']['get']('TrackChangesEditing');_0x35e80b['enableDefaultAttributesIntegration']('heading');for(const _0x44937b of this['_headingOptions'])'paragraph'!=_0x44937b['model']&&_0x35e80b['descriptionFactory']['registerElementLabel'](_0x44937b['model'],_0x5dc29f=>{const _0x3f6d21=this['_getHeadingLevel'](_0x44937b['model']);return null!==_0x3f6d21?_0x228173(_0x5dc29f,_0x3f6d21):_0x2d2ac5(_0x5dc29f,_0x44937b['title']);});function _0x228173(_0x1e2988,_0x1bec73){return o(_0xbdb40e,'ELEMENT_HEADING',[_0x1e2988,_0x1bec73]);}function _0x2d2ac5(_0x15a4ed,_0x196f6b){return o(_0xbdb40e,'ELEMENT_HEADING_CUSTOM',[_0x15a4ed,_0x196f6b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1035bb=this['editor'],_0x3e4971=_0x1035bb['locale'];function _0x3b00e4(_0x9b6ae6,_0x39a90f){return o(_0x3e4971,'ELEMENT_HEADING_CUSTOM',[_0x9b6ae6,_0x39a90f]);}_0x1035bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458fc0=>{if('formatBlock'!=_0x458fc0['type'])return;const {data:_0x1f5a08}=_0x458fc0;if(_0x1f5a08&&'heading'==_0x1f5a08['commandName']){const _0x55d9b8=_0x1f5a08['commandParams'][0x0]['value'],_0x15d325=this['_getHeadingLevel'](_0x55d9b8);if(null!==_0x15d325)return{'type':'format','content':o(_0x3e4971,'*Change\x20to:*\x20%0',(_0x2404e8=0x1,_0x1e1104=_0x15d325,o(_0x3e4971,'ELEMENT_HEADING',[_0x2404e8,_0x1e1104])))};const _0x11f7d1=this['_headingOptions']['find'](_0x4637d6=>_0x4637d6['model']===_0x55d9b8)['title'];return{'type':'format','content':o(_0x3e4971,'*Change\x20to:*\x20%0',_0x3b00e4(0x1,_0x11f7d1))};}var _0x2404e8,_0x1e1104;});}['_getHeadingLevel'](_0x466ab0){const _0x5742c4=_0x466ab0['match'](/^heading(\d+)/);if(_0x5742c4)return _0x5742c4[0x1];const _0x38f992=this['_headingOptions']?.['find'](_0x3d2953=>_0x3d2953['model']==_0x466ab0);if(_0x38f992&&_0x38f992['view']){const _0x128f96=_0x38f992['view'],_0xed6711=(_0x128f96['name']??_0x128f96)['match'](/^h(\d+)/);if(_0xed6711)return _0xed6711[0x1];}return null;}}class tt extends _0x342976{['afterInit'](){const _0x2cf077=this['editor'];if(!_0x2cf077['plugins']['has']('HighlightEditing'))return;const _0x3c68bd=_0x2cf077['plugins']['get']('TrackChangesEditing'),_0x3d1bcb=_0x2cf077['locale'];_0x3c68bd['enableDefaultAttributesIntegration']('highlight'),_0x3c68bd['registerInlineAttribute']('highlight'),_0x3c68bd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3d1bcb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4624b=this['editor'],_0x58c70c=_0x4624b['locale'];_0x4624b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4708a3=>{if('formatInline'!=_0x4708a3['type'])return;const {data:_0x58c8ca}=_0x4708a3;if(_0x58c8ca&&'highlight'==_0x58c8ca['commandName']){const _0x37513d=_0x58c70c['t'],_0x509998=_0x58c8ca['commandParams'][0x0]['value'];if(_0x509998){const _0x43be0a=_0x4624b['config']['get']('highlight.options')['find'](_0x2cfadc=>_0x2cfadc['model']==_0x509998),_0x3d7bbe=_0x37513d(_0x43be0a['title'])['toLowerCase']();return{'type':'format','content':o(_0x58c70c,'*Set\x20highlight:*\x20%0',_0x3d7bbe),'color':{'value':_0x43be0a['color'],'title':_0x43be0a['title']}};}return{'type':'format','content':o(_0x58c70c,'*Remove\x20highlight*',o(_0x58c70c,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x342976{['afterInit'](){const _0x396e2d=this['editor'];if(!_0x396e2d['plugins']['has']('HorizontalLineEditing'))return;_0x396e2d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x45b455=_0x396e2d['plugins']['get']('TrackChangesEditing'),_0x16a142=_0x396e2d['locale'];_0x45b455['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3a9b16=>o(_0x16a142,'ELEMENT_HORIZONTAL_LINE',_0x3a9b16)),_0x396e2d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x61f09c,{writer:_0x12deaa,options:_0x4fa71f})=>{if(!_0x4fa71f['showSuggestionHighlights'])return null;const _0x1e990c=_0x12deaa['createContainerElement']('div'),_0x1f8461=_0x12deaa['createEmptyElement']('hr');return _0x12deaa['addClass']('ck-horizontal-line',_0x1e990c),_0x12deaa['insert'](_0x12deaa['createPositionAt'](_0x1e990c,0x0),_0x1f8461),_0x1e990c;},'converterPriority':'high'});}}class nt extends _0x342976{['afterInit'](){const _0x176a5c=this['editor'];if(!_0x176a5c['plugins']['has']('HtmlEmbed'))return;const _0x2d74bb=_0x176a5c['plugins']['get']('TrackChangesEditing'),_0x3968a8=_0x176a5c['locale'];_0x2d74bb['descriptionFactory']['registerElementLabel']('rawHtml',_0x433e99=>o(_0x3968a8,'ELEMENT_HTML_EMBED',_0x433e99)),_0x2d74bb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d74bb['registerBlockAttribute']('value'),_0x2d74bb['descriptionFactory']['registerDescriptionCallback'](_0x416ab0=>{if('attribute'!=_0x416ab0['type'])return;const {data:_0x44a6ca}=_0x416ab0;if(_0x44a6ca&&'value'==_0x44a6ca['key']&&_0x416ab0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x209f27=o(_0x3968a8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3968a8,'*Change\x20%0\x20content*',_0x209f27)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49cd42=this['editor'],_0x585d07=_0x49cd42['locale'];_0x49cd42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ae4a=>{if('formatBlock'!=_0x41ae4a['type'])return;const {data:_0x4f7864}=_0x41ae4a;if(_0x4f7864&&'htmlEmbed'==_0x4f7864['commandName']){const _0x249979=o(_0x585d07,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x585d07,'*Change\x20%0\x20content*',_0x249979)};}});}}class et extends _0x342976{['afterInit'](){const _0x59f0a3=this['editor'];if(!_0x59f0a3['plugins']['has']('ImageEditing'))return;const _0x2435fb=_0x59f0a3['plugins']['get']('TrackChangesEditing'),_0x4c884f=_0x59f0a3['plugins']['get']('ImageUtils'),_0x4d6f63=_0x59f0a3['locale'];_0x2435fb['enableCommand']('insertImage'),_0x2435fb['descriptionFactory']['registerElementLabel']('imageBlock',_0x5dcf00=>o(_0x4d6f63,'ELEMENT_IMAGE',_0x5dcf00)),_0x2435fb['descriptionFactory']['registerElementLabel']('imageInline',_0x38779a=>o(_0x4d6f63,'ELEMENT_INLINE_IMAGE',_0x38779a)),_0x2435fb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4d6f63,'ELEMENT_CAPTION')),_0x59f0a3['plugins']['has']('ImageUploadEditing')&&_0x2435fb['enableCommand']('uploadImage'),_0x59f0a3['plugins']['has']('ImageBlockEditing')&&_0x59f0a3['plugins']['has']('ImageInlineEditing')&&(_0x2435fb['enableCommand']('imageTypeInline',(_0x206d46,_0x54c6af)=>{const _0x5d34e0=_0x4c884f['getClosestSelectedImageElement'](_0x59f0a3['model']['document']['selection']);_0x59f0a3['model']['change'](()=>{_0x2435fb['markBlockFormat'](_0x5d34e0,{'commandName':'imageTypeInline','commandParams':[_0x54c6af]},[],'convertBlockImageToInline');});}),_0x2435fb['enableCommand']('imageTypeBlock',(_0x1d76c6,_0x28b4f3)=>{_0x59f0a3['model']['change'](_0x28a81d=>{let _0x2ba8b0=_0x4c884f['getClosestSelectedImageElement'](_0x59f0a3['model']['document']['selection']),_0x1c57e0=_0x28a81d['createRangeOn'](_0x2ba8b0);const _0x156233=_0x21c458['fromPosition'](_0x1c57e0['start'],'toPrevious'),_0x2bc766=_0x21c458['fromPosition'](_0x1c57e0['end'],'toNext');_0x2435fb['forceDefaultExecution'](()=>_0x1d76c6(_0x28b4f3)),_0x2ba8b0=_0x4c884f['getClosestSelectedImageElement'](_0x59f0a3['model']['document']['selection']),_0x1c57e0=_0x28a81d['createRangeOn'](_0x2ba8b0);const _0x3fee06=_0x28a81d['createRange'](_0x156233,_0x2bc766);_0x156233['detach'](),_0x2bc766['detach'](),_0x2435fb['markBlockFormat'](_0x2ba8b0,{'commandName':'imageTypeInline','commandParams':[_0x28b4f3]},[],'convertInlineImageToBlock'),_0x3fee06['start']['isBefore'](_0x1c57e0['start'])&&_0x2435fb['markInsertion'](_0x28a81d['createRange'](_0x3fee06['start'],_0x1c57e0['start']),'convertInlineImageToBlock'),_0x1c57e0['end']['isBefore'](_0x3fee06['end'])&&_0x2435fb['markInsertion'](_0x28a81d['createRange'](_0x1c57e0['end'],_0x3fee06['end']),'convertInlineImageToBlock');});}),_0x2435fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2435fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2435fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2435fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2435fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2435fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x411e89])=>{const _0x42769a=_0x2435fb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d4f18=_0x411e89['start'],_0x1e9607=_0x411e89['end'];const _0x2e069b=_0x59f0a3['model']['schema']['getNearestSelectionRange'](_0x5d4f18,'backward'),_0x50676a=_0x59f0a3['model']['schema']['getNearestSelectionRange'](_0x1e9607,'forward');_0x2e069b['isCollapsed']&&(_0x5d4f18=_0x2e069b['start']),_0x50676a['isCollapsed']&&(_0x1e9607=_0x50676a['end']),_0x42769a([_0x59f0a3['model']['createRange'](_0x5d4f18,_0x1e9607)]);}),_0x2435fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x39323c),_0x2435fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x39323c)),_0x59f0a3['plugins']['has']('ImageCaptionEditing')&&(_0x2435fb['enableCommand']('toggleImageCaption',(_0x448fb6,_0x5b4ee5)=>{const _0x430ac5=_0x59f0a3['plugins']['get']('ImageCaptionUtils');let _0x4770a3=_0x4c884f['getClosestSelectedImageElement'](_0x59f0a3['model']['document']['selection']),_0x572bb3=_0x430ac5['getCaptionFromImageModelElement'](_0x4770a3);_0x59f0a3['model']['change'](()=>{if(_0x572bb3)return void _0x2435fb['markDeletion'](_0x59f0a3['model']['createRangeOn'](_0x572bb3));const _0x402d51=_0x4c884f['isBlockImage'](_0x4770a3);_0x448fb6(_0x5b4ee5),_0x4770a3=_0x4c884f['getClosestSelectedImageElement'](_0x59f0a3['model']['document']['selection']),_0x572bb3=_0x430ac5['getCaptionFromImageModelElement'](_0x4770a3),_0x2435fb['markInsertion'](_0x59f0a3['model']['createRangeOn'](_0x572bb3),_0x402d51?null:'imageCaption');});}),_0x2435fb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x39323c));const _0x21382a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x357cfb(_0x43bfb2,_0x44b555){const _0x5c0ac6=_0x21382a['findIndex'](({type:_0xfbd445,subType:_0x19c04e})=>_0x43bfb2['type']==_0xfbd445&&_0x43bfb2['subType']==_0x19c04e),_0xb7173=_0x21382a['findIndex'](({type:_0x95ab52,subType:_0x53e0ad})=>_0x44b555['type']==_0x95ab52&&_0x44b555['subType']==_0x53e0ad);if(_0x5c0ac6<0x0||_0xb7173<0x0)return!0x1;const _0x247176=_0x43bfb2['getFirstRange'](),_0x4a995f=_0x44b555['getFirstRange']();if((0x0==_0x5c0ac6||0x1==_0x5c0ac6)&&0x2==_0xb7173&&_0x247176['isIntersecting'](_0x4a995f))return!0x0;if(0x2==_0x5c0ac6&&0x3==_0xb7173){const _0x94b18b=_0x2435fb['_findSuggestions'](_0x247176,'insertion')['filter'](({suggestion:_0x57752b,meta:_0x273add})=>_0x273add['isOwn']&&'convertInlineImageToBlock'==_0x57752b['subType']);if(_0x94b18b['length']>0x1&&_0x4a995f['end']['isEqual'](_0x247176['start']))return!0x0;if(0x1==_0x94b18b['length']&&(_0x247176['start']['isEqual'](_0x4a995f['end'])||_0x247176['end']['isEqual'](_0x4a995f['start'])))return!0x0;}if(0x3==_0x5c0ac6&&0x3==_0xb7173&&_0x247176['start']['isBefore'](_0x4a995f['start'])){const _0x32c660=_0x247176['end']['nodeAfter'],_0x4b06f7=_0x4a995f['start']['nodeBefore'];return _0x4c884f['isBlockImage'](_0x32c660)&&_0x32c660===_0x4b06f7;}return!0x1;}function _0x39323c(_0x2fd159,_0x2b7ecf){return _0x357cfb(_0x2fd159,_0x2b7ecf)?[_0x2fd159,_0x2b7ecf]:_0x357cfb(_0x2b7ecf,_0x2fd159)?[_0x2b7ecf,_0x2fd159]:null;}_0x59f0a3['plugins']['has']('ImageResize')&&(_0x2435fb['enableDefaultAttributesIntegration']('resizeImage'),_0x2435fb['registerBlockAttribute']('resizedWidth'),_0x2435fb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4d6f63,'FORMAT_IMAGE_SIZE'))),_0x59f0a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2435fb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2435fb['registerBlockAttribute']('alt')),_0x59f0a3['plugins']['has']('PictureEditing')&&(_0x2435fb['registerBlockAttribute']('sources'),_0x2435fb['descriptionFactory']['registerDescriptionCallback'](_0x36b6d7=>{if('attribute'!=_0x36b6d7['type'])return;const {data:_0x174500}=_0x36b6d7;return _0x174500&&'sources'==_0x174500['key']?{'type':'format','content':''}:void 0x0;})),_0x59f0a3['plugins']['has']('ImageSizeAttributes')&&(_0x2435fb['registerBlockAttribute']('width'),_0x2435fb['registerBlockAttribute']('height'),_0x2435fb['descriptionFactory']['registerDescriptionCallback'](_0x5d0206=>{if('attribute'!=_0x5d0206['type'])return;const {data:_0x1a2226}=_0x5d0206;return!_0x1a2226||'width'!=_0x1a2226['key']&&'height'!=_0x1a2226['key']?void 0x0:{'type':'format','content':''};})),_0x2435fb['descriptionFactory']['registerDescriptionCallback'](_0xa7dc08=>{if(!!_0x21382a['find'](({type:_0x594978,subType:_0x1fadcd})=>_0xa7dc08['type']==_0x594978&&_0xa7dc08['subType']==_0x1fadcd))return _0xa7dc08['previous']?{}:void 0x0;}),_0x2435fb['descriptionFactory']['registerDescriptionCallback'](_0x57e55e=>{if('insertion'==_0x57e55e['type']||'deletion'==_0x57e55e['type']){const _0x52ba6d=_0x57e55e['getContainedElement']();if(_0x52ba6d&&_0x52ba6d['is']('element','caption'))return{'type':'insertion'==_0x57e55e['type']?'addObject':'removeObject','element':_0x52ba6d,'quantity':0x1};}}),_0x2435fb['descriptionFactory']['registerDescriptionCallback'](_0x3650a7=>'formatBlock'==_0x3650a7['type']&&'convertInlineImageToBlock'==_0x3650a7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3650a7['type']&&'convertBlockImageToInline'==_0x3650a7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2435fb['descriptionFactory']['registerDescriptionCallback'](_0x2f9361=>{if('attribute'!=_0x2f9361['type'])return;const {data:_0x257329}=_0x2f9361;if(!_0x257329||'alt'!=_0x257329['key'])return;const _0x7a7082=_0x257329['newValue'];return _0x7a7082?{'type':'format','content':o(_0x4d6f63,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7a7082+'\x22')}:{'type':'format','content':o(_0x4d6f63,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46fae2=this['editor'],_0xe6d40a=_0x46fae2['locale'];_0x46fae2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a5dc0=>{if('formatBlock'!=_0x5a5dc0['type']&&'formatInline'!=_0x5a5dc0['type'])return;const {data:_0x44bebc}=_0x5a5dc0;if(_0x44bebc){if('imageTextAlternative'==_0x44bebc['commandName']){const _0x3306f9=_0x44bebc['commandParams'][0x0]['newValue'];return _0x3306f9?{'type':'format','content':o(_0xe6d40a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3306f9+'\x22')}:{'type':'format','content':o(_0xe6d40a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x44bebc['commandName']){const _0x2c359e=_0x44bebc['commandParams'][0x0]['width'];return _0x2c359e?{'type':'format','content':o(_0xe6d40a,'*Set\x20image\x20width:*\x20%0',_0x2c359e)}:{'type':'format','content':o(_0xe6d40a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x342976{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xefb8fa=this['editor']['locale'],_0x21af94=this['editor']['plugins']['get']('TrackChangesEditing');_0x21af94['enableDefaultAttributesIntegration']('replaceImageSource'),_0x21af94['registerBlockAttribute']('src'),_0x21af94['descriptionFactory']['registerDescriptionCallback'](_0x9147bb=>{if('attribute'!=_0x9147bb['type'])return;const {data:_0x370b91}=_0x9147bb;return _0x370b91&&'src'==_0x370b91['key']?_0x370b91['newValue']&&_0x370b91['oldValue']?{'type':'format','content':o(_0xefb8fa,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd00331=this['editor']['plugins']['get']('TrackChangesEditing');_0xd00331['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xd00331['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd00331['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xd00331['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b586=this['editor'],_0x2f3890=_0x38b586['locale'];_0x38b586['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d94f0=>{if('formatBlock'!=_0x1d94f0['type']&&'formatInline'!=_0x1d94f0['type'])return;const {data:_0x2182de}=_0x1d94f0;if(!_0x2182de||'replaceImageSource'!=_0x2182de['commandName'])return;return{'type':'format','content':o(_0x2f3890,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x342976{['afterInit'](){const _0x428a31=this['editor'];if(!_0x428a31['plugins']['has']('ImageStyleEditing'))return;const _0x12681d=_0x428a31['plugins']['get']('TrackChangesEditing'),_0x55b044=_0x428a31['plugins']['get']('ImageUtils'),_0x4b8efa={};_0x12681d['enableCommand']('imageStyle',(_0x2a1702,_0x151787)=>{const _0x25a44f=_0x428a31['plugins']['get']('Users')['me'],_0x13c9a6=_0x428a31['commands']['get']('imageStyle');let _0x42e724=_0x55b044['getClosestSelectedImageElement'](_0x428a31['model']['document']['selection']),_0x46d55e=_0x428a31['model']['createRangeOn'](_0x42e724),_0x3b79cf=_0x13c9a6['value'];if(_0x3b79cf==_0x151787['value'])return;const _0x4485c7={'commandName':'imageStyle','commandParams':[_0x151787],'formatGroupId':_0x1229f3()};_0x428a31['model']['change'](()=>{if(_0x12681d['getSuggestions']()['filter'](_0x5c25b2=>_0x5c25b2['isInContent']&&_0x25a44f==_0x5c25b2['author']&&('formatBlock'==_0x5c25b2['type']||'formatInline'==_0x5c25b2['type'])&&('imageStylePreApply'==_0x5c25b2['subType']||'imageStylePostApply'==_0x5c25b2['subType'])&&_0x5c25b2['getFirstRange']()['isEqual'](_0x46d55e))['forEach'](_0x4c5657=>_0x12681d['discardSuggestion'](_0x4c5657['head'])),_0x42e724=_0x55b044['getClosestSelectedImageElement'](_0x428a31['model']['document']['selection']),_0x46d55e=_0x428a31['model']['createRangeOn'](_0x42e724),_0x13c9a6['refresh'](),_0x428a31['commands']['get']('imageTypeInline')['refresh'](),_0x428a31['commands']['get']('imageTypeBlock')['refresh'](),_0x3b79cf=_0x13c9a6['value'],_0x3b79cf!=_0x151787['value'])return _0x55b044['isInlineImage'](_0x42e724)&&_0x13c9a6['shouldConvertImageType'](_0x151787['value'],_0x42e724)?(_0x2a1702({..._0x151787,'setImageSizes':!0x1}),_0x42e724=_0x55b044['getClosestSelectedImageElement'](_0x428a31['model']['document']['selection']),void _0x12681d['markBlockFormat'](_0x42e724,{..._0x4485c7,'commandReversedParams':[{'value':_0x3b79cf||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x55b044['isBlockImage'](_0x42e724)?_0x12681d['markBlockFormat'](_0x42e724,_0x4485c7,[],'imageStylePostApply'):_0x12681d['markInlineFormat'](_0x46d55e,_0x4485c7,'imageStylePostApply'));});});for(const _0x51db39 of _0x428a31['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4b8efa[_0x51db39['name']]=_0x51db39['title']['toLowerCase']();_0x12681d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x12681d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x12681d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x12681d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e8f1c])=>{_0x55b044['setImageNaturalSizeAttributes'](_0x3e8f1c['getContainedElement']());}),_0x12681d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x227e87,_0x39c270)=>{_0x12681d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x227e87,{'commandName':_0x39c270['commandName'],'commandParams':_0x39c270['commandReversedParams']});}),_0x12681d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x495cf9,_0xbe3c5f){if(_0x251939(_0x495cf9,_0xbe3c5f))return[_0x495cf9,_0xbe3c5f];if(_0x251939(_0xbe3c5f,_0x495cf9))return[_0xbe3c5f,_0x495cf9];return null;});const _0x19ca0c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x251939(_0x48e9a4,_0x391a3f){const _0x215dd4=_0x19ca0c['findIndex'](({type:_0x1aff70,subType:_0x2dc048})=>_0x48e9a4['type']==_0x1aff70&&_0x48e9a4['subType']==_0x2dc048),_0x572cd2=_0x19ca0c['findIndex'](({type:_0x2dd302,subType:_0x11adea})=>_0x391a3f['type']==_0x2dd302&&_0x391a3f['subType']==_0x11adea);if(_0x215dd4<0x0||_0x572cd2<0x0)return!0x1;const _0x29349b=_0x48e9a4['getFirstRange'](),_0x5686ee=_0x391a3f['getFirstRange']();if((0x0==_0x215dd4||0x1==_0x215dd4)&&0x2==_0x572cd2&&_0x29349b['isIntersecting'](_0x5686ee))return!0x0;if(0x2==_0x215dd4&&0x3==_0x572cd2){const _0x1eb44e=_0x12681d['_findSuggestions'](_0x29349b,'insertion')['filter'](({suggestion:_0x276879,meta:_0x46a17e})=>_0x46a17e['isOwn']&&'convertInlineImageToBlock'==_0x276879['subType']);if(_0x1eb44e['length']>0x1&&_0x5686ee['end']['isEqual'](_0x29349b['start']))return!0x0;if(0x1==_0x1eb44e['length']&&(_0x29349b['start']['isEqual'](_0x5686ee['end'])||_0x29349b['end']['isEqual'](_0x5686ee['start'])))return!0x0;}if(0x3==_0x215dd4&&0x3==_0x572cd2&&_0x29349b['start']['isBefore'](_0x5686ee['start'])){const _0x956fa7=_0x29349b['end']['nodeAfter'],_0x58b4bb=_0x5686ee['start']['nodeBefore'];return _0x55b044['isBlockImage'](_0x956fa7)&&_0x956fa7===_0x58b4bb;}return!0x1;}_0x428a31['model']['document']['registerPostFixer'](()=>{let _0x7aedf1=!0x1;const _0x4cb8cb=Array['from'](_0x428a31['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1835ef,data:_0x202d45}of _0x4cb8cb){const {group:_0x4bab19,type:_0x1dae94,subType:_0x2ce68a,id:_0x2232ad}=_0x12681d['_splitMarkerName'](_0x1835ef);if('suggestion'==_0x4bab19&&_0x12681d['hasSuggestion'](_0x2232ad)){if('formatBlock'==_0x1dae94&&('imageStylePreApply'==_0x2ce68a||'imageStylePostApply'==_0x2ce68a)){const _0xd3e7f9=_0x12681d['getSuggestion'](_0x2232ad);if(_0x202d45['newRange']){const _0x18d3c7=_0xd3e7f9['getFirstRange']()['getContainedElement']();if(_0x55b044['isBlockImage'](_0x18d3c7))continue;_0x12681d['discardSuggestion'](_0xd3e7f9),_0x7aedf1=!0x0;}}if('insertion'==_0x1dae94&&'imageCaption'==_0x2ce68a&&!_0x202d45['newRange']){const _0x589f47=_0x12681d['getSuggestion'](_0x2232ad);_0x589f47['next']&&_0x589f47['next']['isInContent']&&(_0x12681d['discardSuggestion'](_0x589f47['next']),_0x7aedf1=!0x0);}}}return _0x7aedf1;}),this['_registerLegacyDescription'](_0x4b8efa);}['_registerLegacyDescription'](_0x509c98){const _0x4c1560=this['editor'],_0x5dbe4b=_0x4c1560['locale'];_0x4c1560['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x226bae=>{if('formatBlock'!=_0x226bae['type']&&'formatInline'!=_0x226bae['type'])return;const {data:_0xb88ed9}=_0x226bae;if(!_0xb88ed9||'imageStyle'!=_0xb88ed9['commandName'])return;const _0x56ae49=_0xb88ed9['commandParams'][0x0]['value'];return _0x4b91d4('side'===_0x56ae49?o(_0x5dbe4b,'FORMAT_SIDE_IMAGE'):_0x509c98[_0x56ae49]||_0x56ae49);function _0x4b91d4(_0x565dfe){return{'type':'format','content':o(_0x5dbe4b,'*Format:*\x20%0',_0x565dfe)};}});}}class rt extends _0x342976{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x285ded){super(_0x285ded),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58111e=this['editor'],_0x191c6b=_0x58111e['commands']['get']('importWord'),_0x4e6521=_0x58111e['commands']['get']('trackChanges');_0x191c6b&&(_0x191c6b['on']('execute',(_0x4e4d32,[,_0x5eb8e5])=>{this['_trackChangesValueDuringImport']=_0x4e6521['value'],_0x5eb8e5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x191c6b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x191c6b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e6521['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58111e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15ed42,_0x13ceec){const {suggestions:_0xb2832f}=_0x13ceec,_0x1bf311=this['editor']['commands']['get']('trackChanges'),_0x10a6c9=_0x1bf311['value'];this['_trackChangesValueDuringImport']!==_0x10a6c9&&(_0x1bf311['execute'](),this['_trackChangesExecuted']=!0x0),_0xb2832f&&_0xb2832f['forEach'](({id:_0x2ffdff,type:_0x5b297a,author:_0x42c4b3,created_at:_0xea1b38})=>{const _0x315eb3={'id':_0x2ffdff,'type':_0x5b297a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x42c4b3,'createdAt':_0xea1b38?new Date(_0xea1b38):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x315eb3);});}}class at extends _0x342976{['afterInit'](){const _0x538fb8=this['editor'],_0x423298=_0x538fb8['plugins']['get']('TrackChangesEditing');if(_0x538fb8['plugins']['has']('IndentEditing')&&(_0x423298['enableCommand']('indent'),_0x423298['enableCommand']('outdent')),_0x538fb8['plugins']['has']('IndentBlock')){for(const _0x76f60b of['indentBlock','outdentBlock'])_0x423298['enableDefaultAttributesIntegration'](_0x76f60b);}const _0x3ee450=_0x538fb8['locale'];_0x423298['registerBlockAttribute']('blockIndent'),_0x423298['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3ee450,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x570797=this['editor'],_0x4a6efe=_0x570797['locale'],_0x115a7d=_0x570797['plugins']['get']('TrackChangesEditing');_0x115a7d['descriptionFactory']['registerDescriptionCallback'](_0x5cd179=>{if('formatBlock'!=_0x5cd179['type'])return;const {data:_0x42a406}=_0x5cd179;if(!_0x42a406)return;if('indentBlock'!=_0x42a406['commandName']&&'outdentBlock'!=_0x42a406['commandName'])return;const _0x52030f=_0x5cd179['getItems']()[0x0],_0x28d7bc=_0x115a7d['descriptionFactory']['getItemLabel'](_0x52030f);return'indentBlock'==_0x42a406['commandName']?{'type':'format','content':o(_0x4a6efe,'*Indent:*\x20%0',_0x28d7bc)}:'outdentBlock'==_0x42a406['commandName']?{'type':'format','content':o(_0x4a6efe,'*Outdent:*\x20%0',_0x28d7bc)}:void 0x0;});}}class ct extends _0x342976{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x342976{['afterInit'](){const _0x1f20dd=this['editor'];if(!_0x1f20dd['plugins']['has']('LinkEditing'))return;const _0x2dd732=_0x1f20dd['plugins']['get']('TrackChangesEditing'),_0x3db163=_0x1f20dd['commands']['get']('link');_0x2dd732['enableDefaultAttributesIntegration']('link'),_0x2dd732['enableDefaultAttributesIntegration']('unlink'),_0x2dd732['registerInlineAttribute']('linkHref');for(const _0x2e071e of _0x3db163['manualDecorators'])_0x2dd732['registerInlineAttribute'](_0x2e071e['id']),_0x2dd732['descriptionFactory']['registerAttributeLabel'](_0x2e071e['id'],'link\x20('+_0x2e071e['label']['toLowerCase']()+')');_0x2dd732['descriptionFactory']['registerDescriptionCallback'](_0x2c521=>{if('attribute'!=_0x2c521['type'])return;const {data:_0x5ef77c}=_0x2c521;if(!_0x5ef77c||'linkHref'!=_0x5ef77c['key'])return;const _0x447719=_0x5ef77c['newValue'],_0x52f3a1=_0x1f20dd['locale'];return{'type':'format','content':null==_0x447719?o(_0x52f3a1,'*Remove\x20link*'):o(_0x52f3a1,'*Set\x20link:*\x20%0','\x22'+_0x447719+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x510fea=this['editor'],_0x244fc1=_0x510fea['locale'];_0x510fea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x285035=>{if('formatInline'!=_0x285035['type'])return;const {data:_0x3c612b}=_0x285035;if(_0x3c612b){if('link'==_0x3c612b['commandName']){const _0x3d847e=_0x3c612b['commandParams'][0x0];return{'type':'format','content':o(_0x244fc1,'*Set\x20link:*\x20%0','\x22'+_0x3d847e+'\x22')};}return'unlink'==_0x3c612b['commandName']?{'type':'format','content':o(_0x244fc1,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x342976{['afterInit'](){const _0x5ceb46=this['editor'],_0x58d71c=_0x5ceb46['locale'];if(!_0x5ceb46['plugins']['has']('LegacyListEditing'))return;const _0x796371=_0x5ceb46['plugins']['get']('TrackChangesEditing'),_0x1a7543=_0x5ceb46['plugins']['has']('LegacyTodoListEditing');function _0x4b709e(_0x272a88){return()=>{const _0x381cd7=_0x5ceb46['model']['document']['selection'],_0x2fa018=_0x5ceb46['commands']['get'](_0x272a88);if(_0x2fa018['value'])return void _0x5ceb46['execute']('paragraph',{});const _0x23bc32=_0x272a88['slice'](0x0,-0x4),_0x3aa384=function(_0x2e6e05,_0x4fe99c,_0x2e0977){let _0x48ecde=Array['from'](_0x2e6e05)['filter'](_0x3a0430=>function(_0x1e487d,_0xcb745){return _0xcb745['checkChild'](_0x1e487d['parent'],'listItem')&&!_0xcb745['isObject'](_0x1e487d);}(_0x3a0430,_0x2e0977));_0x48ecde=_0x48ecde['filter'](_0x1b7918=>!_0x1b7918['is']('element','listItem')||_0x1b7918['getAttribute']('listType')!=_0x4fe99c);const _0x5b2958=new Set();for(const _0x1bd7e3 of _0x48ecde)_0x1bd7e3['is']('element','listItem')?_0x5b2958['add'](Le(_0x1bd7e3)):_0x5b2958['add'](_0x1bd7e3);return Array['from'](_0x5b2958);}(_0x381cd7['getSelectedBlocks'](),_0x23bc32,_0x5ceb46['model']['schema']);_0x5ceb46['model']['change'](()=>{for(const _0x1e30a2 of _0x3aa384)_0x796371['markBlockFormat'](_0x1e30a2,{'commandName':_0x272a88,'commandParams':[{'forceValue':!_0x2fa018['value']}],'formatGroupId':'blockName'},Ee(_0x1e30a2));});};}function _0x2fbf19(_0x2e7f6c){return()=>{const _0x3c805d=function(_0xbf8c0d){let _0x5b95d6=Array['from'](_0xbf8c0d);const _0x439ec9=_0x5b95d6['findIndex'](_0x2f5749=>'listItem'!=_0x2f5749['name']);return _0x439ec9>-0x1&&(_0x5b95d6=_0x5b95d6['slice'](0x0,_0x439ec9)),_0x5b95d6;}(_0x5ceb46['model']['document']['selection']['getSelectedBlocks']()),_0x2953cd=_0x5ceb46['model']['createRange'](_0x5ceb46['model']['createPositionAt'](_0x3c805d[0x0],'before'),_0x5ceb46['model']['createPositionAt'](_0x3c805d[_0x3c805d['length']-0x1],'end'));_0x5ceb46['model']['change'](()=>{_0x796371['markBlockFormat'](_0x2953cd,{'commandName':_0x2e7f6c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x19154c){const _0x5cf312=new Set();for(const _0x4bc9e1 of _0x19154c){let _0x327148=_0x4bc9e1['nextSibling'];for(;_0x327148&&_0x327148['getAttribute']('listIndent')>_0x4bc9e1['getAttribute']('listIndent');)_0x5cf312['add'](_0x327148),_0x327148=_0x327148['nextSibling'];}return Array['from'](_0x5cf312);}(_0x3c805d));});};}_0x796371['enableCommand']('numberedList',_0x4b709e('numberedList')),_0x796371['enableCommand']('bulletedList',_0x4b709e('bulletedList')),_0x1a7543&&_0x796371['enableCommand']('todoList',_0x4b709e('todoList')),_0x796371['enableCommand']('indentList',_0x2fbf19('indentList')),_0x796371['enableCommand']('outdentList',_0x2fbf19('outdentList')),_0x1a7543&&_0x796371['enableCommand']('checkTodoList',()=>{const _0x30e6b2=_0x5ceb46['commands']['get']('checkTodoList'),_0x51e789=Array['from'](_0x30e6b2['_selectedElements']);_0x51e789['filter'](_0x8b8a0d=>_0x8b8a0d['getAttribute']('todoListChecked')!=_0x30e6b2['value']),_0x5ceb46['model']['change'](()=>{for(const _0x325a47 of _0x51e789)_0x796371['markBlockFormat'](_0x325a47,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x30e6b2['value']}]});});}),_0x796371['descriptionFactory']['registerElementLabel']('listItem',_0x60b4bf=>o(_0x58d71c,'ELEMENT_LIST_ITEM',_0x60b4bf)),_0x796371['descriptionFactory']['registerDescriptionCallback'](_0x1af702=>{if('formatBlock'!=_0x1af702['type']&&'formatInline'!=_0x1af702['type'])return;const {data:_0x5683b8}=_0x1af702;if(_0x5683b8){if('numberedList'==_0x5683b8['commandName']||'bulletedList'==_0x5683b8['commandName']||'todoList'==_0x5683b8['commandName'])switch(_0x5683b8['commandName']['replace']('List','')){case'bulleted':return _0xe8279b(o(_0x58d71c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe8279b(o(_0x58d71c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe8279b(o(_0x58d71c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5683b8['commandName'])return{'type':'format','content':o(_0x58d71c,'*Indent:*\x20%0',o(_0x58d71c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5683b8['commandName'])return{'type':'format','content':o(_0x58d71c,'*Outdent:*\x20%0',o(_0x58d71c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5683b8['commandName'])return _0x5683b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58d71c,'*Check\x20item*')}:{'type':'format','content':o(_0x58d71c,'*Uncheck\x20item*')};}function _0xe8279b(_0x28fec9){return{'type':'format','content':o(_0x58d71c,'*Change\x20to:*\x20%0',_0x28fec9)};}});}}function Le(_0x255651){const _0x3618a2=_0x255651['getAttribute']('listIndent');if(0x0==_0x3618a2)return _0x255651;let _0x5cead6=_0x255651;for(;_0x255651['previousSibling']&&_0x255651['previousSibling']['is']('element','listItem');){const _0x94954f=_0x255651['previousSibling']['getAttribute']('listIndent');if(_0x94954f==_0x3618a2)_0x5cead6=_0x255651['previousSibling'];else{if(_0x94954f<_0x3618a2)break;}_0x255651=_0x255651['previousSibling'];}return _0x5cead6;}function Ee(_0x5e324e){const _0x12e3d6=[];if(_0x5e324e['is']('element','listItem')&&_0x5e324e['getAttribute']('listIndent')>0x0){let _0x55523e=_0x5e324e['nextSibling'];for(;_0x55523e&&'listItem'==_0x55523e['name']&&_0x55523e['getAttribute']('listIndent')==_0x5e324e['getAttribute']('listIndent');)_0x12e3d6['push'](_0x55523e),_0x55523e=_0x55523e['nextSibling'];}return _0x12e3d6;}class ht extends _0x342976{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x350473=this['editor']['config']['get']('list.properties'),_0x30bfab=this['editor']['plugins']['get']('TrackChangesEditing');_0x350473['styles']&&_0x30bfab['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x350473['reversed']&&_0x30bfab['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x350473['startIndex']&&_0x30bfab['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30bfab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x52cb58,_0x5a3089={}){const _0x5d6789=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b9144=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d6789['markMultiRangeBlockFormat'](_0x2b9144,{'commandName':'listStyle','commandParams':[{'type':_0x5a3089['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3ea8f3,_0xf20895={}){const _0x88a891=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b18b3=this['_getSuggestionBlocks'](_0x53724e=>_0x53724e['is']('element','listItem')&&'numbered'===_0x53724e['getAttribute']('listType'));if(_0x4b18b3['length']<0x1)return;const _0x2e48d6=_0x4b18b3['map'](_0x57b7be=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57b7be,'before'),this['editor']['model']['createPositionAt'](_0x57b7be,0x0)));this['editor']['model']['change'](()=>{_0x88a891['markMultiRangeBlockFormat'](_0x2e48d6,{'commandName':'listReversed','commandParams':[{'reversed':_0xf20895['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3212fa,_0x1894eb={}){const _0x2ef27f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x286fa2=this['_getSuggestionBlocks'](_0x25a224=>_0x25a224['is']('element','listItem')&&'numbered'===_0x25a224['getAttribute']('listType'));if(_0x286fa2['length']<0x1)return;const _0x3f3f1b=_0x286fa2['map'](_0x571fdf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x571fdf,'before'),this['editor']['model']['createPositionAt'](_0x571fdf,0x0)));this['editor']['model']['change'](()=>{_0x2ef27f['markMultiRangeBlockFormat'](_0x3f3f1b,{'commandName':'listStart','commandParams':[{'startIndex':_0x1894eb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4ef5c3){if('formatBlock'!=_0x4ef5c3['type']&&'formatInline'!=_0x4ef5c3['type'])return;const _0xdc1ce7=this['editor']['locale'],{data:_0x93b485}=_0x4ef5c3;if(!_0x93b485)return;let _0x1cddd2,_0x5c832e;switch(_0x93b485['commandName']){case'listStyle':_0x1cddd2='*Change\x20to:*\x20%0',_0x5c832e={'type':'format','content':o(_0xdc1ce7,_0x1cddd2,o(_0xdc1ce7,this['_getTranslationKeyForListStyle'](_0x93b485['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cddd2=_0x93b485['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c832e={'type':'format','content':o(_0xdc1ce7,_0x1cddd2)};break;case'listStart':_0x1cddd2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c832e={'type':'format','content':o(_0xdc1ce7,_0x1cddd2,_0x93b485['commandParams'][0x0]['startIndex'])};}return _0x5c832e;}['_getSuggestionBlocksForListStyle'](){const _0x53e289=this['editor']['plugins']['get']('LegacyListUtils');let _0x4681e3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4681e3[0x0]?.['is']('element','listItem')&&_0x4681e3['unshift'](..._0x53e289['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4681e3[_0x4681e3['length']-0x1]?.['is']('element','listItem')&&_0x4681e3['push'](..._0x53e289['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4681e3=[...new Set(_0x4681e3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4681e3=_0x4681e3['filter'](_0x28c371=>_0x28c371['is']('element','listItem'))),_0x4681e3;}['_getSuggestionBlocks'](_0x54b661){const _0x4aa737=this['editor']['plugins']['get']('LegacyListUtils');let _0x1722d7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x54b661)['map'](_0x1e738a=>{const _0x2e0302=this['editor']['model']['createPositionAt'](_0x1e738a,0x0);return[..._0x4aa737['getSiblingNodes'](_0x2e0302,'backward'),..._0x4aa737['getSiblingNodes'](_0x2e0302,'forward')];})['flat']();return _0x1722d7=[...new Set(_0x1722d7)],_0x1722d7;}['_getTranslationKeyForListStyle'](_0x303cd7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x303cd7)||'default')['toUpperCase']()+'_LIST_'+_0x303cd7['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x342976{['afterInit'](){const _0x14d0ac=this['editor'];if(!_0x14d0ac['plugins']['has']('MediaEmbedEditing'))return;const _0x4b83f0=_0x14d0ac['plugins']['get']('TrackChangesEditing'),_0x250e3a=_0x14d0ac['locale'];_0x4b83f0['enableCommand']('mediaEmbed'),_0x4b83f0['descriptionFactory']['registerElementLabel']('media',_0xa84ee0=>o(_0x250e3a,'ELEMENT_MEDIA',_0xa84ee0)),_0x14d0ac['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x37790a,{writer:_0x43a549,options:_0x2cc441})=>{if(_0x2cc441['showSuggestionHighlights'])return _0x43a549['createEmptyElement']('div');},'converterPriority':'high'}),_0x14d0ac['data']['downcastDispatcher']['on']('attribute:url:media',(_0x52429f,_0x5bbe7a,_0x4054a9)=>{_0x4054a9['options']['showSuggestionHighlights']&&_0x52429f['stop']();},{'priority':'high'});}}class lt extends _0x342976{['afterInit'](){const _0x9edd55=this['editor'];_0x9edd55['plugins']['has']('MentionEditing')&&_0x9edd55['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x342976{['afterInit'](){const _0x5b1ede=this['editor'];if(!_0x5b1ede['plugins']['has']('MergeFieldsEditing'))return;const _0x26ffac=_0x5b1ede['plugins']['get']('TrackChangesEditing'),_0x43c990=_0x5b1ede['locale'];_0x26ffac['enableCommand']('insertMergeField'),_0x26ffac['enableCommand']('insertMergeFieldBlock'),_0x26ffac['enableCommand']('insertMergeFieldImage'),_0x26ffac['descriptionFactory']['registerElementLabel']('mergeField',_0x5cb55f=>o(_0x43c990,'ELEMENT_MERGE_FIELD',_0x5cb55f)),_0x26ffac['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x32d29a=>o(_0x43c990,'ELEMENT_MERGE_FIELD',_0x32d29a)),_0x26ffac['descriptionFactory']['registerDescriptionCallback'](_0x4afd3a=>{if('insertion'!=_0x4afd3a['type']&&'deletion'!=_0x4afd3a['type'])return;const _0xe7e85d=_0x4afd3a['getContainedElement']();if(null==_0xe7e85d)return;const _0xde69b9=_0x5b1ede['plugins']['get']('MergeFieldsEditing');let _0x58a2c9;switch(_0xde69b9['getMergeFieldType'](_0xe7e85d)){case null:return;case'image':{const _0x34191f=_0xde69b9['unwrapAffixes'](_0xe7e85d['getAttribute']('src'));_0x58a2c9=_0xde69b9['getLabel'](_0x34191f)||_0x34191f;break;}default:{const _0x34051d=_0xe7e85d['getAttribute']('id');_0x58a2c9=_0xde69b9['getLabel'](_0x34051d)||_0x34051d;break;}}return'insertion'==_0x4afd3a['type']?{'type':'insertion','content':o(_0x43c990,'*Insert:*\x20%0','\x22'+_0x58a2c9+'\x22\x20'+o(_0x43c990,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x43c990,'*Remove:*\x20%0','\x22'+_0x58a2c9+'\x22\x20'+o(_0x43c990,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x342976{['afterInit'](){const _0x3d5ca9=this['editor'],_0x1e2321=_0x3d5ca9['plugins']['get']('TrackChangesEditing');_0x3d5ca9['plugins']['has']('MultiLevelList')&&(_0x1e2321['enableDefaultAttributesIntegration']('multiLevelList'),_0x1e2321['registerBlockAttribute']('listMarkerStyle'),_0x1e2321['descriptionFactory']['registerDescriptionCallback'](_0x5d5410=>this['handleDescriptions'](_0x5d5410)));}['handleDescriptions'](_0x169af6){const _0x1aae44=this['editor']['locale'],{data:_0x53c76f}=_0x169af6,_0x390b83={'type':'format','content':''};if(_0x53c76f&&'listMarkerStyle'==_0x53c76f['key']){if(!_0x53c76f['oldValue'])return{'type':'format','content':o(_0x1aae44,'*Set\x20format:*\x20%0',o(_0x1aae44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c76f['newValue']+')'};if(!_0x53c76f['newValue']){let _0x52b4e2=_0x169af6['head'];for(;_0x52b4e2;){if(_0x52b4e2['data']&&'listType'==_0x52b4e2['data']['key']&&_0x52b4e2['data']['newValue'])return _0x390b83;_0x52b4e2=_0x52b4e2['next'];}return{'type':'format','content':o(_0x1aae44,'*Remove\x20format:*\x20%0',o(_0x1aae44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c76f['oldValue']+')'};}}}}class pt extends _0x342976{['afterInit'](){const _0x11caa8=this['editor'];if(!_0x11caa8['plugins']['has']('PageBreakEditing'))return;_0x11caa8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40d289=_0x11caa8['plugins']['get']('TrackChangesEditing'),_0x25a9a0=_0x11caa8['locale'];_0x40d289['descriptionFactory']['registerElementLabel']('pageBreak',_0x520244=>o(_0x25a9a0,'ELEMENT_PAGE_BREAK',_0x520244));}}class kt extends _0x342976{['afterInit'](){const _0x190e97=this['editor'];if(!_0x190e97['plugins']['has']('Paragraph'))return;const _0x5c64d4=_0x190e97['locale'],_0x31ac92=_0x190e97['plugins']['get']('TrackChangesEditing');_0x31ac92['descriptionFactory']['registerElementLabel']('paragraph',_0x1cdcd7=>o(_0x5c64d4,'ELEMENT_PARAGRAPH',_0x1cdcd7)),_0x31ac92['enableDefaultAttributesIntegration']('paragraph'),_0x31ac92['enableCommand']('insertParagraph'),_0x190e97['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x190e97),{'priority':'highest'}),_0x190e97['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x536057,_0x379103,_0x4cc085)=>{_0x4cc085['options']['showSuggestionHighlights']&&nr(_0x190e97,{'showActiveMarker':!0x1})(_0x536057,_0x379103,_0x4cc085);},{'priority':'highest'});const _0x5d51d1=_0x31ac92['descriptionFactory'];_0x5d51d1['registerDescriptionCallback'](_0x1b7573=>{if('insertion'!==_0x1b7573['type'])return;const {start:_0x105a4e,end:_0x264154}=_0x1b7573['getFirstRange']();if(!_0x105a4e['isTouching'](_0x264154)||!_0x105a4e['nodeAfter'])return;const _0x61bffc=_0x190e97['model']['schema'],_0x228551=_0x105a4e['nodeAfter'];return _0x61bffc['isBlock'](_0x228551)&&!_0x61bffc['isLimit'](_0x228551)&&_0x61bffc['checkChild'](_0x228551,'$text')?{'type':'insertion','content':o(_0x5c64d4,'*Insert:*\x20%0',_0x5d51d1['getItemLabel'](_0x228551,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292fef=this['editor'],_0x3336db=_0x292fef['locale'];_0x292fef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2616b9=>{if('formatBlock'!=_0x2616b9['type'])return;const {data:_0x2a2f2b}=_0x2616b9;return _0x2a2f2b&&'paragraph'==_0x2a2f2b['commandName']?{'type':'format','content':o(_0x3336db,'*Change\x20to:*\x20%0',o(_0x3336db,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5e321d,{showActiveMarker:_0x404e7e=!0x0}={}){return(_0x33083c,_0x5ab408,_0x2ba792)=>{const _0xa8ec7b=_0x5e321d['plugins']['get']('TrackChangesEditing'),_0x1e84ea=_0x5ab408['markerRange']['start'],_0x4c77d3=_0x5ab408['markerRange']['end'],_0x3270a8=_0x5e321d['model']['schema'];if(!_0x1e84ea['isTouching'](_0x4c77d3)||!_0x1e84ea['nodeAfter'])return;const _0x30bd71=_0x1e84ea['nodeAfter'];if(_0x3270a8['isBlock'](_0x30bd71)&&!_0x3270a8['isLimit'](_0x30bd71)&&_0x3270a8['checkChild'](_0x30bd71,'$text')){if(!_0x2ba792['consumable']['consume'](_0x5ab408['markerRange'],_0x33083c['name']))return;const {id:_0x216611,authorId:_0x22ef1b}=_0xa8ec7b['_splitMarkerName'](_0x5ab408['markerName']),_0x3af014=_0x2ba792['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x216611,'data-author-id':_0x22ef1b}),_0x171d61=_0x2ba792['mapper']['toViewPosition'](_0x4c77d3);_0x404e7e&&_0xa8ec7b['activeMarkers']['includes'](_0x5ab408['markerName'])&&_0x2ba792['writer']['addClass']('ck-suggestion-marker--active',_0x3af014),_0x2ba792['writer']['insert'](_0x171d61,_0x3af014),_0x2ba792['mapper']['bindElementToMarker'](_0x3af014,_0x5ab408['markerName']);}};}class wt extends _0x342976{['afterInit'](){const _0x1bc7e8=this['editor'];_0x1bc7e8['commands']['get']('replaceSource')&&_0x1bc7e8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x342976{['afterInit'](){const _0x42a4d7=this['editor'];if(!_0x42a4d7['plugins']['has']('RemoveFormatEditing'))return;_0x42a4d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32ee36=this['editor'];_0x32ee36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdd2511=>{if('formatBlock'!=_0xdd2511['type']&&'formatInline'!=_0xdd2511['type'])return;const {data:_0x4ab5f6}=_0xdd2511;return _0x4ab5f6&&'removeFormat'==_0x4ab5f6['commandName']?{'type':'format','content':o(_0x32ee36['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x342976{['afterInit'](){const _0x2972a6=this['editor'];if(!_0x2972a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27ea9c=_0x2972a6['plugins']['get']('TrackChangesEditing');_0x27ea9c['enableCommand']('goToPreviousRestrictedEditingException'),_0x27ea9c['enableCommand']('goToNextRestrictedEditingException');const _0x1175de=_0x2972a6['plugins']['get']('RestrictedEditingModeEditing');_0x1175de['enableCommand']('trackChanges'),_0x1175de['enableCommand']('acceptSuggestion'),_0x1175de['enableCommand']('discardSuggestion'),_0x1175de['enableCommand']('acceptAllSuggestions'),_0x1175de['enableCommand']('discardAllSuggestions'),_0x1175de['enableCommand']('acceptSelectedSuggestions'),_0x1175de['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x342976{['afterInit'](){const _0x52bbd1=this['editor'];if(!_0x52bbd1['plugins']['has']('ShiftEnter'))return;const _0x1be9e8=_0x52bbd1['plugins']['get']('TrackChangesEditing');_0x1be9e8['enableCommand']('shiftEnter'),_0x52bbd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x52bbd1),{'priority':'high'}),_0x52bbd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x52bbd1),{'priority':'high'}),_0x52bbd1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1104d9,_0x3a9d0d,_0x1e7d40)=>{_0x1e7d40['options']['showSuggestionHighlights']&&je(_0x52bbd1,{'showActiveMarker':!0x1})(_0x1104d9,_0x3a9d0d,_0x1e7d40);}),_0x1be9e8['descriptionFactory']['registerElementLabel']('softBreak',_0x2e16be=>o(_0x52bbd1['locale'],'ELEMENT_LINE_BREAK',_0x2e16be));}}function je(_0x2f977d,{showActiveMarker:_0x18ec96=!0x0}={}){return(_0x3d263e,_0xc3d8a0,_0x4be948)=>{const _0x4d3515=_0x2f977d['plugins']['get']('TrackChangesEditing');if(!_0x4be948['consumable']['test'](_0xc3d8a0['markerRange'],_0x3d263e['name']))return;const _0xefa090=_0x2f977d['model'];for(const _0x396f91 of _0xc3d8a0['markerRange']['getItems']()){if(!_0x396f91['is']('element','softBreak'))continue;const _0x1886f9='deletion'==_0xc3d8a0['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x266294,authorId:_0x702483}=_0x4d3515['_splitMarkerName'](_0xc3d8a0['markerName']),_0x2b5b3a=_0x4be948['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1886f9,'data-suggestion':_0x266294,'data-author-id':_0x702483}),_0x4bdb40=_0x4be948['mapper']['toViewPosition'](_0xefa090['createPositionBefore'](_0x396f91));_0x18ec96&&_0x4d3515['activeMarkers']['includes'](_0xc3d8a0['markerName'])&&_0x4be948['writer']['addClass']('ck-suggestion-marker--active',_0x2b5b3a),_0x4be948['writer']['insert'](_0x4bdb40,_0x2b5b3a),_0x4be948['mapper']['bindElementToMarker'](_0x2b5b3a,_0xc3d8a0['markerName']);}};}class St extends _0x342976{['afterInit'](){const _0x2f56b6=this['editor'],_0x5be5c3=_0x2f56b6['model'],_0x3aad24=_0x2f56b6['locale'];if(!_0x2f56b6['plugins']['has']('StandardEditingModeEditing'))return;const _0x866051=_0x2f56b6['plugins']['get']('TrackChangesEditing'),_0x3386b3='restrictedEditingException',_0x3eece5=_0x2f56b6['commands']['get'](_0x3386b3);_0x866051['enableCommand'](_0x3386b3,(_0xa059d0,_0xe35d0b={})=>{const _0x55df3a=_0x5be5c3['document']['selection'];if(_0x55df3a['isCollapsed'])return void _0xa059d0(_0xe35d0b);const _0x5b0768=void 0x0!==_0xe35d0b['forceValue']?_0xe35d0b['forceValue']:!_0x3eece5['value'];_0x5be5c3['change'](()=>{const _0x5dff91=Array['from'](_0x55df3a['getRanges']());for(const _0x4a97cd of _0x5dff91){const _0x37cf6a=_0x5b0768?[_0x4a97cd]:io(_0x3386b3,_0x4a97cd,_0x5be5c3);for(const _0x44f550 of _0x37cf6a)_0x866051['markInlineFormat'](_0x44f550,{'commandName':_0x3386b3,'commandParams':[{'forceValue':_0x5b0768}]});}});}),_0x866051['descriptionFactory']['registerDescriptionCallback'](_0x3c57dd=>{if('formatBlock'!=_0x3c57dd['type']&&'formatInline'!=_0x3c57dd['type'])return;const {data:_0x393348}=_0x3c57dd;return _0x393348&&_0x393348['commandName']==_0x3386b3?_0x393348['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3aad24,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3aad24,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x342976{['afterInit'](){const _0x5d6fcf=this['editor'];if(!_0x5d6fcf['plugins']['has']('Style')||!_0x5d6fcf['plugins']['has']('DataSchema'))return;const _0x2c3f26=_0x5d6fcf['plugins']['get']('TrackChangesEditing'),_0xea45bf=_0x5d6fcf['locale'],_0x5c8747=_0x5d6fcf['config']['get']('style')||{},_0x43b789=_0x5d6fcf['plugins']['get']('GeneralHtmlSupport'),_0x55cf99=_0x5d6fcf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5d6fcf['plugins']['get']('DataSchema'),_0x5c8747['definitions']);_0x2c3f26['enableDefaultAttributesIntegration']('style');const _0x133205=new Set();for(const _0x918cf2 of _0x55cf99['block']){const _0x36de50=_0x43b789['getGhsAttributeNameForElement'](_0x918cf2['element']);_0x133205['add'](_0x36de50);}const _0x115743=new Set();for(const _0xc92f6f of _0x55cf99['inline']){const _0x4f9cff=_0x43b789['getGhsAttributeNameForElement'](_0xc92f6f['element']);_0x115743['add'](_0x4f9cff);for(const _0x1d0b45 of _0xc92f6f['ghsAttributes'])_0x115743['add'](_0x1d0b45);}for(const _0x733dba of _0x133205)_0x2c3f26['registerBlockAttribute'](_0x733dba),_0x2c3f26['descriptionFactory']['registerAttributeLabel'](_0x733dba,o(_0xea45bf,'FORMAT_STYLE'));for(const _0x599adc of _0x115743)_0x2c3f26['registerInlineAttribute'](_0x599adc),_0x2c3f26['descriptionFactory']['registerAttributeLabel'](_0x599adc,o(_0xea45bf,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3756d4=this['editor'],_0x5b55c3=_0x3756d4['locale'];_0x3756d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b48e=>{if('formatBlock'!=_0x13b48e['type']&&'formatInline'!=_0x13b48e['type'])return;const {data:_0x5a0b18}=_0x13b48e;return _0x5a0b18&&'style'===_0x5a0b18['commandName']?_0x5a0b18['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b55c3,'*Set\x20format:*\x20%0',_0x5a0b18['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5b55c3,'*Remove\x20format:*\x20%0',_0x5a0b18['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x342976{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x158e51){super(_0x158e51),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2742ea=this['editor'],_0x45a473=_0x2742ea['model']['document']['selection'];if(!_0x2742ea['plugins']['has']('TableEditing'))return;const _0x181e73=_0x2742ea['locale'],_0x5d74a5=_0x2742ea['plugins']['get']('TrackChangesEditing'),_0xf21ea0=_0x2742ea['plugins']['get']('TableUtils');_0x5d74a5['descriptionFactory']['registerElementLabel']('table',_0xcb6387=>o(_0x181e73,'ELEMENT_TABLE',_0xcb6387)),this['_setupColumnsRowsFixing'](),_0x5d74a5['enableCommand']('insertTable'),_0x5d74a5['enableCommand']('selectTableRow'),_0x5d74a5['enableCommand']('selectTableColumn');for(const _0x191d7b of['insertTableRowAbove','insertTableRowBelow']){const _0xa1c3f=_0x2742ea['commands']['get'](_0x191d7b);_0x5d74a5['enableCommand'](_0x191d7b,_0x4baf27=>{_0x2742ea['model']['change'](_0x446aa4=>{_0x4baf27();const _0xe90a1d='above'===_0xa1c3f['order'],_0x16ff2d=_0xf21ea0['getSelectionAffectedTableCells'](_0x45a473),_0x40a7fa=_0xf21ea0['getRowIndexes'](_0x16ff2d),_0x16b88c=_0xe90a1d?_0x40a7fa['first']-0x1:_0x40a7fa['last']+0x1,_0x3f47ed=_0x16ff2d[0x0]['findAncestor']('table'),_0x1a8fb7=_0xf21ea0['createTableWalker'](_0x3f47ed,{'startRow':_0x16b88c,'endRow':_0x16b88c}),_0x1f8d17=Array['from'](_0x1a8fb7)['map'](_0xb30bac=>_0x446aa4['createRangeOn'](_0xb30bac['cell']));_0x5d74a5['markMultiRangeInsertion'](_0x1f8d17,'tableRow');});});}for(const _0x521c27 of['insertTableColumnLeft','insertTableColumnRight']){const _0x31da84=_0x2742ea['commands']['get'](_0x521c27);_0x5d74a5['enableCommand'](_0x521c27,_0x138ac8=>{_0x2742ea['model']['change'](_0x4fe34e=>{_0x138ac8();const _0x114a64='left'===_0x31da84['order'],_0xbc3710=_0xf21ea0['getSelectionAffectedTableCells'](_0x45a473),_0x52487b=_0xf21ea0['getColumnIndexes'](_0xbc3710),_0x2b3549=_0x114a64?_0x52487b['first']-0x1:_0x52487b['last']+0x1,_0x506e93=_0xbc3710[0x0]['findAncestor']('table'),_0xfdcdf1=_0xf21ea0['createTableWalker'](_0x506e93,{'startRow':0x0,'column':_0x2b3549,'includeAllSlots':!0x1}),_0xbe2ff8=Array['from'](_0xfdcdf1)['map'](_0x4612c2=>_0x4fe34e['createRangeOn'](_0x4612c2['cell']));_0x5d74a5['markMultiRangeInsertion'](_0xbe2ff8,'tableColumn');});});}for(const _0x4b7adb of['removeTableRow','removeTableColumn']){const _0x3c729e=_0x4b7adb['substr'](0xb),_0x5eefd0=_0x3c729e['toLowerCase'](),_0xdec6b6=_0x5eefd0['substr'](0x0,0x3)+'span',_0x387674='table'+_0x3c729e,_0x10fd65='min'+_0x3c729e,_0x205b2f='max'+_0x3c729e;_0x5d74a5['enableCommand'](_0x4b7adb,()=>{_0x2742ea['model']['change'](_0x13dbb6=>{const _0xffb49=_0xf21ea0['getSelectionAffectedTableCells'](_0x45a473),_0x3e6a75=_0xffb49[0x0]['findAncestor']('table');let _0x1d42a4;if('removeTableRow'==_0x4b7adb){const _0x24c789=_0xf21ea0['getRowIndexes'](_0xffb49);_0x1d42a4={'startRow':_0x24c789['first'],'endRow':_0x24c789['last'],'includeAllSlots':!0x0};}else{const _0x2381f3=_0xf21ea0['getColumnIndexes'](_0xffb49);_0x1d42a4={'startColumn':_0x2381f3['first'],'endColumn':_0x2381f3['last'],'includeAllSlots':!0x0};}const _0x1e903b=_0xf21ea0['createTableWalker'](_0x3e6a75,_0x1d42a4),_0x559418=Array['from'](_0x1e903b)['map'](({cell:_0x2aee39})=>_0x2aee39),_0x5dce9e=Ne(_0x559418['filter'](_0x4795a6=>_0x4795a6['hasAttribute'](_0xdec6b6))),_0x52b678=Ne(_0x559418['filter'](_0xcde8a9=>!_0xcde8a9['hasAttribute'](_0xdec6b6)))['map'](_0x24bc31=>_0x13dbb6['createRangeOn'](_0x24bc31)),_0x2adbfe=_0x5d74a5['markMultiRangeDeletion'](_0x52b678,_0x387674);if(_0x2adbfe&&('tableRow'==_0x2adbfe['subType']||'tableColumn'==_0x2adbfe['subType'])){const _0x4b5c2a=this['_getSuggestionCoords'](_0x2adbfe);for(const _0xbfc78d of _0x5dce9e){const _0x4e3a02=_0x13dbb6['createRangeOn'](_0xbfc78d),_0x26f4cb=_0xf21ea0['getCellLocation'](_0xbfc78d),_0x3419db=_0xbfc78d['getAttribute'](_0xdec6b6)-0x1,_0x8280c7=_0x4b5c2a[_0x10fd65],_0x2c04e2=_0x4b5c2a[_0x205b2f];_0x8280c7<=_0x26f4cb[_0x5eefd0]&&_0x26f4cb[_0x5eefd0]+_0x3419db<=_0x2c04e2&&_0x2adbfe['addRange'](_0x4e3a02);}}});});}function _0x2e6730(_0x2756c7){const _0x117562=Array['from'](_0x45a473['getRanges']())['map'](_0x41ef4b=>_0x150f02['fromRange'](_0x41ef4b));_0x2742ea['model']['change'](_0x4f33b9=>{const _0x559121=_0x4f33b9['batch'];_0x2756c7=_0x2756c7['filter'](_0x4d0803=>'$graveyard'!=_0x4d0803['root']['rootName']),_0x4f33b9['setSelection'](_0x2756c7),_0x2742ea['commands']['get']('removeTableRow')['refresh'](),_0x2742ea['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2742ea['model']['enqueueChange'](()=>{_0x2742ea['model']['enqueueChange'](_0x559121,_0x2be5a6=>{const _0x93149f=_0x117562['filter'](_0x158773=>'$graveyard'!=_0x158773['root']['rootName']);_0x93149f['length']>0x0&&_0x2be5a6['setSelection'](_0x93149f);for(const _0x15ce45 of _0x117562)_0x15ce45['detach']();});});});}function _0xc017a(_0x412ab8){_0x2742ea['model']['change'](_0x2bd7d6=>{const _0x21f932=Array['from'](_0x45a473['getRanges']())['map'](_0x493cb5=>_0x150f02['fromRange'](_0x493cb5)),_0x4be8db=[];for(const _0x3a2ad8 of _0x412ab8)for(const _0x46c583 of _0x3a2ad8['getItems']({'shallow':!0x0}))_0x4be8db['push'](_0x46c583);for(const _0x37d99d of _0x4be8db)'$graveyard'!=_0x37d99d['root']['rootName']&&(_0x2bd7d6['setSelection'](_0x2bd7d6['createPositionAt'](_0x37d99d,0x0)),_0x2742ea['commands']['get']('removeTableColumn')['refresh'](),_0x2742ea['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x608527=_0x21f932['filter'](_0x5a2945=>'$graveyard'!=_0x5a2945['root']['rootName']);_0x608527['length']>0x0&&_0x2bd7d6['setSelection'](_0x608527);for(const _0x52a523 of _0x21f932)_0x52a523['detach']();});}function _0x282c37(_0x151d83,_0x5d7c04){return _0x5d7c04['every'](_0x3d566d=>_0x151d83['some'](_0x52bced=>_0x52bced['end']['isEqual'](_0x3d566d['start'])||_0x3d566d['end']['isEqual'](_0x52bced['start'])));}function _0x17b5a9(_0x353711,_0x2fae75){return!_0x353711['some'](_0x20a4b3=>_0x2fae75['some'](_0x2048c5=>_0x20a4b3['isIntersecting'](_0x2048c5)))&&_0x353711['some'](_0x24920c=>_0x2fae75['some'](_0x14b326=>_0x24920c['end']['isTouching'](_0x14b326['start'])));}_0x2742ea['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27ef3b,_0x5c892c,_0x32c593)=>{if(!_0x32c593['options']['showSuggestionHighlights'])return;const _0x273cd5=_0x5c892c['item'];if(!_0x273cd5||!_0x273cd5['is']('element','tableCell'))return;const _0x142557=_0x32c593['mapper']['toViewElement'](_0x273cd5);if(_0x142557){const {id:_0x9c3312,authorId:_0x1a3a17}=_0x5d74a5['_splitMarkerName'](_0x5c892c['markerName']);_0x54e9b5(_0x142557,_0x32c593['writer'],(_0x2ebf28,_0x3c53a4,_0x463856)=>{_0x463856['addClass'](_0x223b6d(_0x3c53a4['classes']),_0x2ebf28),_0x463856['setAttribute']('data-suggestion-id',_0x9c3312,_0x2ebf28),_0x463856['setAttribute']('data-author-id',_0x1a3a17,_0x2ebf28);},(_0x5733e7,_0x160906,_0x3ffcd0)=>{_0x3ffcd0['removeClass'](_0x223b6d(_0x160906['classes']),_0x5733e7),_0x3ffcd0['removeAttribute']('data-suggestion-id',_0x5733e7),_0x3ffcd0['removeAttribute']('data-author-id',_0x5733e7);});}},{'priority':'highest'}),_0x5d74a5['descriptionFactory']['registerDescriptionCallback'](_0x130dcd=>{if('insertion'!=_0x130dcd['type']&&'deletion'!=_0x130dcd['type'])return;const _0x591748=_0x130dcd['getContainedElement']();if(null!=_0x591748&&_0x591748['is']('element','table')){if('insertion'==_0x130dcd['type']){const _0x43fa19=_0x130dcd['getItems']()['filter'](_0x58ca08=>_0x58ca08['is']('$textProxy'))['map'](_0x3b45c4=>_0x3b45c4['data']);if(_0x43fa19['length'])return{'type':'insertion','content':o(_0x181e73,'*Insert:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x43fa19['join']('\x20')+'\x22'))};}if('deletion'==_0x130dcd['type']){const _0xa6d9b4=_0x130dcd['getItems']()['filter'](_0x3d7547=>_0x3d7547['is']('$textProxy'))['map'](_0x16ffb1=>_0x16ffb1['data']);if(_0xa6d9b4['length'])return{'type':'deletion','content':o(_0x181e73,'*Remove:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xa6d9b4['join']('\x20')+'\x22'))};}}}),_0x5d74a5['descriptionFactory']['registerDescriptionCallback'](_0x437de3=>{if('tableRow'==_0x437de3['subType']){const _0x364365=_0x437de3['getItems']()['filter'](_0xe1d93e=>_0xe1d93e['is']('$textProxy'))['map'](_0x3d0620=>_0x3d0620['data']),_0x4c7892=this['_getSuggestionCoords'](_0x437de3),_0x535805=_0x4c7892['maxRow']-_0x4c7892['minRow']+0x1;if('insertion'==_0x437de3['type'])return _0x364365['length']?{'type':'insertion','content':o(_0x181e73,'*Insert:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x535805,'\x22'+_0x364365['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x181e73,'*Insert:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_ROW',_0x535805))};if('deletion'==_0x437de3['type'])return _0x364365['length']?{'type':'deletion','content':o(_0x181e73,'*Remove:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x535805,'\x22'+_0x364365['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x181e73,'*Remove:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_ROW',_0x535805))};}if('tableColumn'==_0x437de3['subType']){const _0x573246=_0x437de3['getItems']()['filter'](_0x17309f=>_0x17309f['is']('$textProxy'))['map'](_0x51dcaa=>_0x51dcaa['data']),_0x447d61=this['_getSuggestionCoords'](_0x437de3),_0x13665d=_0x447d61['maxColumn']-_0x447d61['minColumn']+0x1;if('insertion'==_0x437de3['type'])return _0x573246['length']?{'type':'insertion','content':o(_0x181e73,'*Insert:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13665d,'\x22'+_0x573246['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x181e73,'*Insert:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_COLUMN',_0x13665d))};if('deletion'==_0x437de3['type'])return _0x573246['length']?{'type':'deletion','content':o(_0x181e73,'*Remove:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13665d,'\x22'+_0x573246['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x181e73,'*Remove:*\x20%0',o(_0x181e73,'ELEMENT_TABLE_COLUMN',_0x13665d))};}}),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e6730),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e6730),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xc017a),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xc017a),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x282c37),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x282c37),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x17b5a9),_0x5d74a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x17b5a9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5bed1f=this['editor'],_0x4166e7=_0x5bed1f['model']['document']['selection'];return(_0x4435c8,_0x412d83)=>{_0x5bed1f['model']['change'](_0x1da8b1=>{const {commandName:_0x5992e9,commandParams:_0x53179d}=_0x412d83;let _0x547d1b=_0x4435c8[0x0]['end']['nodeBefore'];_0x53179d&&_0x53179d[0x0]&&!0x1===_0x53179d[0x0]['forceValue']&&(_0x547d1b=_0x4435c8[0x0]['start']['nodeAfter']);const _0xb8eb9a=_0x1da8b1['createRangeIn'](_0x547d1b);if('$graveyard'==_0xb8eb9a['root']['rootName'])return;const _0x136d95=Array['from'](_0x4166e7['getRanges']())['map'](_0x326cab=>_0x150f02['fromRange'](_0x326cab));_0x1da8b1['setSelection'](_0xb8eb9a),_0x5bed1f['commands']['get'](_0x5992e9)['refresh'](),_0x53179d['push']({'forceDefaultExecution':!0x0}),_0x5bed1f['execute'](_0x5992e9,..._0x53179d);const _0x5918a8=_0x136d95['filter'](_0x5cf170=>'$graveyard'!=_0x5cf170['root']['rootName']);_0x5918a8['length']>0x0&&_0x1da8b1['setSelection'](_0x5918a8);for(const _0x9ff713 of _0x136d95)_0x9ff713['detach']();});};}['_getCoordsForCells'](_0x4f0ea3){const _0x5640da=this['editor']['plugins']['get']('TableUtils');let _0x152069=Number['MAX_SAFE_INTEGER'],_0xdf3bba=Number['MIN_SAFE_INTEGER'],_0x35f7dd=Number['MAX_SAFE_INTEGER'],_0x40423a=Number['MIN_SAFE_INTEGER'];for(const _0x12a306 of _0x4f0ea3){if('$graveyard'==_0x12a306['root']['rootName'])continue;const {row:_0x4f5254,column:_0x28a28d}=_0x5640da['getCellLocation'](_0x12a306),_0x1e8878=_0x12a306['hasAttribute']('rowspan')?_0x12a306['getAttribute']('rowspan')-0x1:0x0,_0x33019f=_0x12a306['hasAttribute']('colspan')?_0x12a306['getAttribute']('colspan')-0x1:0x0;_0x152069=_0x4f5254<_0x152069?_0x4f5254:_0x152069,_0xdf3bba=_0x4f5254+_0x1e8878>_0xdf3bba?_0x4f5254+_0x1e8878:_0xdf3bba,_0x35f7dd=_0x28a28d<_0x35f7dd?_0x28a28d:_0x35f7dd,_0x40423a=_0x28a28d+_0x33019f>_0x40423a?_0x28a28d+_0x33019f:_0x40423a;}return{'minRow':_0x152069,'maxRow':_0xdf3bba,'minColumn':_0x35f7dd,'maxColumn':_0x40423a};}['_setupColumnsRowsFixing'](){const _0x1dc433=this['editor'],_0x2352c3=_0x1dc433['plugins']['get']('TrackChangesEditing'),_0x2896e4=_0x1dc433['plugins']['get']('TableUtils');_0x1dc433['model']['document']['on']('change:data',()=>{const _0xf69258=Array['from'](_0x1dc433['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc67489,data:_0x23ed68}of _0xf69258){const {group:_0xef0895,id:_0x35f3d0,subType:_0x5220ed}=_0x2352c3['_splitMarkerName'](_0xc67489);if('suggestion'!=_0xef0895)continue;if(null!=_0x23ed68['oldRange'])continue;const _0x49ebb7=_0x2352c3['getSuggestion'](_0x35f3d0);this['_tablePostFixingSubtypes']['includes'](_0x5220ed)&&this['_tableSuggestions']['add'](_0x49ebb7);}},{'priority':'low'});const _0x42eb36=(_0x4a1606,_0x4c2417)=>{let _0x294203=!0x1;const _0x4fce7d=_0x4c2417['createRangeOn'](_0x4a1606),_0x309698=_0x4a1606['findAncestor']('table'),_0x274937=_0x2896e4['getCellLocation'](_0x4a1606);for(const _0x1a303e of this['_tableSuggestions']){const _0x5edb0a=_0x1a303e['subType'],_0x2b8ab4=_0x5edb0a['startsWith']('tablePaste'),_0x3c369e=_0x5edb0a['substr'](_0x2b8ab4?0xa:0x5),_0x2a1fd8=_0x3c369e['toLowerCase'](),_0x31e8d6=_0x2a1fd8['substr'](0x0,0x3)+'span',_0x52f339='min'+_0x3c369e,_0x31b72b='max'+_0x3c369e;if(!_0x1a303e['isInContent'])continue;if(_0x309698!=_0x1a303e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1a303e['isIntersectingWithRange'](_0x4fce7d))continue;const _0x2a80b4=_0x4a1606['hasAttribute'](_0x31e8d6)?_0x4a1606['getAttribute'](_0x31e8d6)-0x1:0x0,_0x2ba8c4=this['_getSuggestionCoords'](_0x1a303e),_0x6261a3=_0x2ba8c4[_0x52f339],_0x1594c4=_0x2ba8c4[_0x31b72b];_0x6261a3<=_0x274937[_0x2a1fd8]&&_0x274937[_0x2a1fd8]+_0x2a80b4<=_0x1594c4&&(_0x1a303e['addRange'](_0x4fce7d),_0x294203=!0x0);}return _0x294203;};_0x1dc433['model']['document']['registerPostFixer'](_0x4e527f=>{let _0x5d02ad=!0x1;for(const _0x3e2c1f of _0x1dc433['model']['document']['differ']['getChanges']())if('insert'==_0x3e2c1f['type']){if('tableRow'==_0x3e2c1f['name']){for(const _0x5ed811 of _0x3e2c1f['position']['nodeAfter']['getChildren']())_0x5d02ad=_0x5d02ad||_0x42eb36(_0x5ed811,_0x4e527f);}else'tableCell'==_0x3e2c1f['name']&&(_0x5d02ad=_0x5d02ad||_0x42eb36(_0x3e2c1f['position']['nodeAfter'],_0x4e527f));}return _0x5d02ad;});}['_getSuggestionCoords'](_0xb05bda){return this['_getCoordsForCells'](_0xb05bda['getRanges']()['map'](_0x255bd7=>_0x255bd7['start']['nodeAfter']));}}function Ne(_0x122bb6){return Array['from'](new Set(_0x122bb6)['values']());}class _t extends _0x342976{static get['requires'](){return[At];}['afterInit'](){const _0x4badb1=this['editor'],_0xc30da7=_0x4badb1['model']['document']['selection'],_0x126785=_0x4badb1['locale'];if(!_0x4badb1['plugins']['has']('TableEditing'))return;const _0x1c0ee3=_0x4badb1['plugins']['get']('TrackChangesEditing'),_0x524ba2=_0x4badb1['plugins']['get']('TableUtils'),_0x3fca26=_0x4badb1['plugins']['get'](At);_0x3fca26['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c0ee3['enableCommand']('mergeTableCells',()=>{const _0x4411e1=_0x524ba2['getSelectionAffectedTableCells'](_0x4badb1['model']['document']['selection']);_0x4badb1['model']['change'](()=>{_0x1c0ee3['markMultiRangeBlockFormat'](_0x4411e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4badb1['commands']['get']('mergeTableCells')['on']('execute',(_0x3067d0,_0x2ab5d7)=>{_0x4badb1['commands']['get']('trackChanges')['value']&&(_0x2ab5d7['length']>0x0&&_0x2ab5d7[_0x2ab5d7['length']-0x1]&&_0x2ab5d7[_0x2ab5d7['length']-0x1]['forceDefaultExecution']||_0x1c0ee3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3067d0['stop']());},{'priority':'highest'});for(const _0x512450 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x90459c=_0x4badb1['commands']['get'](_0x512450);_0x1c0ee3['enableCommand'](_0x512450,()=>{const _0x568547=_0x4badb1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4646b6=>_0x4646b6['is']('element','tableCell')),_0x9d8622=_0x90459c['value'];_0x4badb1['model']['change'](()=>{_0x1c0ee3['markMultiRangeBlockFormat']([_0x568547,_0x9d8622],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x11a368 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xfd6dcf=_0x4badb1['commands']['get'](_0x11a368);_0x1c0ee3['enableCommand'](_0x11a368,()=>{const _0x47e8b6=_0x524ba2['getSelectionAffectedTableCells'](_0x4badb1['model']['document']['selection'])[0x0],_0x47ba36=_0x47e8b6['findAncestor']('table'),{column:_0x2a35f2,row:_0x6af60d}=_0x524ba2['getCellLocation'](_0x47e8b6);let _0x3f4f95=[];if('horizontally'==_0xfd6dcf['direction']){const _0x57df5c=_0x524ba2['createTableWalker'](_0x47ba36,{'startRow':_0x6af60d,'endRow':_0x6af60d,'includeAllSlots':!0x0});_0x3f4f95=Array['from'](_0x57df5c)['map'](_0x73f886=>_0x73f886['cell']);}else{const _0xe877dd=_0x524ba2['createTableWalker'](_0x47ba36,{'column':_0x2a35f2,'includeAllSlots':!0x0});_0x3f4f95=Array['from'](_0xe877dd)['map'](_0x2b742d=>_0x2b742d['cell']);}_0x4badb1['model']['change'](_0x533ab4=>{_0x1c0ee3['markBlockFormat'](_0x533ab4['createRangeOn'](_0x47e8b6),{'commandName':_0x11a368,'commandParams':[]},_0x3f4f95,_0x11a368);});});}_0x1c0ee3['descriptionFactory']['registerDescriptionCallback'](_0x4d0521=>{if('formatBlock'!=_0x4d0521['type']&&'formatInline'!=_0x4d0521['type'])return;const {data:_0x56e7e1}=_0x4d0521;return _0x56e7e1&&'mergeTableCells'==_0x56e7e1['commandName']?{'type':'format','content':o(_0x126785,'*Merge\x20cells*')}:void 0x0;}),_0x1c0ee3['descriptionFactory']['registerDescriptionCallback'](_0xa7ce2f=>{if('formatBlock'!=_0xa7ce2f['type']&&'formatInline'!=_0xa7ce2f['type'])return;const {data:_0x1807a1}=_0xa7ce2f;return _0x1807a1?'splitTableCellVertically'==_0x1807a1['commandName']?{'type':'format','content':o(_0x126785,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1807a1['commandName']?{'type':'format','content':o(_0x126785,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2e7a08=_0x3fca26['_acceptFormatSuggestionCallbackFactory']();for(const _0x4e8a72 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c0ee3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e8a72,'accept',_0x2e7a08);for(const _0xa2fea3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c0ee3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa2fea3,'accept',_0x2e7a08);_0x1c0ee3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x32e399=>{_0x4badb1['model']['change'](_0x3f1997=>{const _0x3d88d1=Array['from'](_0xc30da7['getRanges']())['map'](_0x15449a=>_0x150f02['fromRange'](_0x15449a));_0x3f1997['setSelection'](_0x32e399),_0x4badb1['commands']['get']('mergeTableCells')['refresh'](),_0x4badb1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x51a16f=_0x3d88d1['filter'](_0x16a78d=>'$graveyard'!=_0x16a78d['root']['rootName']);_0x51a16f['length']>0x0&&_0x3f1997['setSelection'](_0x51a16f);for(const _0x57b925 of _0x3d88d1)_0x57b925['detach']();});});for(const _0x109215 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ad92c=_0x4badb1['commands']['get'](_0x109215);_0x3ad92c['on']('set:isEnabled',(_0xf18f71,_0x513bf9,_0x5c27a1)=>{if(_0x5c27a1){const _0x4da0d0=_0x4badb1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f0629=>_0x4f0629['is']('element','tableCell'));this['_areMergableCells'](_0x3ad92c['value'],_0x4da0d0)||(_0xf18f71['return']=!0x1,_0xf18f71['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x537615=this['editor']['commands']['get']('mergeTableCells'),_0x276d63=this['editor']['plugins']['get']('TableUtils');if(!_0x537615['isEnabled'])return!0x1;const _0x23ce95=_0x276d63['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x59266d of _0x23ce95)for(const _0x3ddf9d of _0x23ce95)if(_0x59266d!=_0x3ddf9d&&!this['_areMergableCells'](_0x59266d,_0x3ddf9d))return!0x1;return!0x0;}['_areMergableCells'](_0x9bad89,_0x266087){const _0x5ee563=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bd9ea=this['editor']['model']['createRangeOn'](_0x9bad89),_0x4fb176=this['editor']['model']['createRangeOn'](_0x266087),_0x110297=new Set(),_0x29cb20=new Set();for(const _0x53a066 of _0x5ee563['getSuggestions']())if(('insertion'==_0x53a066['type']||'deletion'==_0x53a066['type']||'mergeTableCells'==_0x53a066['subType'])&&_0x53a066['isInContent']){for(const _0x9ce0ca of _0x53a066['getRanges']())_0x9ce0ca['containsRange'](_0x2bd9ea,!0x0)&&_0x110297['add'](_0x53a066['type']+':'+_0x53a066['author']['id']),_0x9ce0ca['containsRange'](_0x4fb176,!0x0)&&_0x29cb20['add'](_0x53a066['type']+':'+_0x53a066['author']['id']);}if(_0x110297['size']!=_0x29cb20['size'])return!0x1;for(const _0x44d319 of _0x110297)if(!_0x29cb20['has'](_0x44d319))return!0x1;return!0x0;}}class Ct extends _0x342976{static get['requires'](){return[At];}['afterInit'](){const _0x131764=this['editor'];if(!_0x131764['plugins']['has']('TableEditing'))return;const _0x26d21e=_0x131764['locale'],_0x3d7089=_0x131764['plugins']['get']('TrackChangesEditing');_0x3d7089['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d7089['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d7089['registerBlockAttribute']('headingRows'),_0x3d7089['registerBlockAttribute']('headingColumns'),_0x3d7089['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x26d21e,'FORMAT_HEADER_ROW')),_0x3d7089['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x26d21e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f15ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x406340=this['editor']['plugins']['get']('TableUtils'),_0x12410e=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x48d998({showActiveMarker:_0x60a37a=!0x0,setDataAttribute:_0x4d9b47=!0x0}={}){return(_0x45738e,_0x3e592d,_0x7f0608)=>{const {type:_0x18e887,id:_0x163fdf}=_0x2f15ae['_splitMarkerName'](_0x3e592d['markerName']),_0x3f6d09=_0x2f15ae['getSuggestion'](_0x163fdf),_0x274d59=_0x3f6d09['data'];if('formatBlock'!=_0x3f6d09['type']||!_0x274d59||'setTableColumnHeader'!=_0x274d59['commandName'])return;if(_0x3e592d['item'])return void _0x45738e['stop']();if(!_0x7f0608['consumable']['consume'](_0x3e592d['markerRange'],_0x45738e['name']))return;const _0x2747c5=_0x3e592d['markerRange']['start']['nodeAfter'],_0x25e4e3=_0x3e592d['markerRange']['end']['nodeBefore'],_0x24c2c8=_0x2747c5['parent']['parent'],{column:_0x1f91e6}=_0x406340['getCellLocation'](_0x2747c5),{column:_0x8cac24}=_0x406340['getCellLocation'](_0x25e4e3);for(let _0xe3d2c0=_0x1f91e6;_0xe3d2c0<=_0x8cac24;_0xe3d2c0++){const _0x456d6a=_0x406340['createTableWalker'](_0x24c2c8,{'column':_0xe3d2c0,'includeAllSlots':!0x1});for(const _0x1e25c4 of _0x456d6a){const _0x1691ac=_0x1e25c4['cell'],_0x1b41f6=_0x7f0608['mapper']['toViewElement'](_0x1691ac);_0x7f0608['writer']['addClass']('ck-suggestion-marker-'+_0x18e887,_0x1b41f6),_0x4d9b47&&_0x7f0608['writer']['setAttribute']('data-suggestion',_0x163fdf,_0x1b41f6),_0x7f0608['mapper']['bindElementToMarker'](_0x1b41f6,_0x3e592d['markerName']),_0x60a37a&&(_0x2f15ae['activeMarkers']['includes'](_0x3e592d['markerName'])?_0x7f0608['writer']['addClass']('ck-suggestion-marker--active',_0x1b41f6):_0x7f0608['writer']['removeClass']('ck-suggestion-marker--active',_0x1b41f6));}}};}_0x2f15ae['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x12410e),_0x2f15ae['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x12410e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x48d998(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22ee29,_0x279ec0,_0x715de9)=>{_0x715de9['options']['showSuggestionHighlights']&&_0x48d998({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x22ee29,_0x279ec0,_0x715de9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x566640,_0x2b2e7c,_0x5ea158)=>{const {type:_0x588880,id:_0x274037}=_0x2f15ae['_splitMarkerName'](_0x2b2e7c['markerName']),_0x2c74f1=_0x2f15ae['getSuggestion'](_0x274037),_0x182bda=_0x2c74f1['data'];if('formatBlock'!=_0x2c74f1['type']||!_0x182bda||'setTableColumnHeader'!=_0x182bda['commandName'])return;const _0x4d4f42=_0x5ea158['mapper']['markerNameToElements'](_0x2b2e7c['markerName']);if(_0x4d4f42){for(const _0x4952ab of _0x4d4f42)_0x5ea158['writer']['removeClass']('ck-suggestion-marker-'+_0x588880,_0x4952ab),_0x5ea158['writer']['removeClass']('ck-suggestion-marker--active',_0x4952ab),_0x5ea158['writer']['removeAttribute']('data-suggestion',_0x4952ab),_0x5ea158['mapper']['unbindElementFromMarkerName'](_0x4952ab,_0x2b2e7c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21a191=this['editor'],_0x4c131b=_0x21a191['locale'];function _0x1053bf(_0x446ce9){return{'type':'format','content':o(_0x4c131b,'*Format:*\x20%0',_0x446ce9)};}_0x21a191['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8ac10d=>{if('formatBlock'!=_0x8ac10d['type'])return;const {data:_0x5d29bf}=_0x8ac10d;if(_0x5d29bf){if('setTableRowHeader'==_0x5d29bf['commandName']){const _0x12783e=_0x5d29bf['commandParams'][0x0]['forceValue'];return _0x1053bf(o(_0x4c131b,_0x12783e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5d29bf['commandName']){const _0x31dc24=_0x5d29bf['commandParams'][0x0]['forceValue'];return _0x1053bf(o(_0x4c131b,_0x31dc24?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x342976{['afterInit'](){const _0x5296f8=this['editor'],_0x2ee8ec=_0x5296f8['locale'],_0x45a8ae=_0x5296f8['plugins']['get']('TrackChangesEditing');function _0x144464(_0x16c518){return{'type':'format','content':''+o(_0x2ee8ec,'*Set\x20table\x20type:*\x20%0',_0x16c518)};}_0x5296f8['plugins']['has']('TableLayout')&&(_0x45a8ae['enableCommand']('insertTableLayout'),_0x45a8ae['enableDefaultAttributesIntegration']('tableType'),_0x45a8ae['registerBlockAttribute']('tableType'),_0x45a8ae['descriptionFactory']['registerElementLabel'](_0xf1ca05=>_0xf1ca05['is']('element','table')&&'layout'===_0xf1ca05['getAttribute']('tableType'),_0x16ac71=>o(_0x2ee8ec,'ELEMENT_LAYOUT_TABLE',_0x16ac71)),_0x45a8ae['descriptionFactory']['registerDescriptionCallback'](_0x588bbe=>{const {data:_0x25727b}=_0x588bbe;if(_0x25727b&&'tableType'==_0x25727b['key'])switch(_0x25727b['newValue']){case'layout':return _0x144464(o(_0x2ee8ec,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x144464(o(_0x2ee8ec,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x27a93a=>[_0x27a93a,null]));class Nt extends _0x342976{static get['requires'](){return[At];}['afterInit'](){const _0x17133b=this['editor'];if(!_0x17133b['plugins']['has']('TableClipboard'))return;const _0x1b9f7f=_0x17133b['plugins']['get']('TrackChangesEditing'),_0x6cace3=_0x17133b['plugins']['get']('TableUtils'),_0x194c65=_0x17133b['plugins']['get'](At),_0x103457=_0x17133b['plugins']['get']('TableClipboard'),_0x416e5e=_0x17133b['plugins']['get']('TableSelection'),_0x4ab02d=_0x17133b['plugins']['get'](_0x394e84);_0x194c65['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17133b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17133b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1f66b0=null,_0x52f5b3=!0x1;_0x4ab02d['on']('contentInsertion',(_0x3e74e,_0x5122e9)=>{_0x52f5b3='paste'===_0x5122e9['method'];}),_0x17133b['model']['on']('insertContent',(_0x3739dd,_0x211d29)=>{if(!_0x52f5b3&&null===_0x416e5e['getSelectedTableCells']())return;const [_0x602ce0,_0x2819d1]=_0x211d29,_0x479b09=_0x211d29[_0x211d29['length']-0x1];_0x479b09&&_0x479b09['forceDefaultExecution']||_0x1b9f7f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3261bb,_0xb3c8c2,_0x2ada6f,_0x4fcda8,_0xd3263b){if(_0xb3c8c2&&!_0xb3c8c2['is']('documentSelection'))return!0x1;const _0x4ca7aa=_0xd3263b['getTableIfOnlyTableInContent'](_0x3261bb,_0x2ada6f);if(!_0x4ca7aa||!Ue(_0x4ca7aa,void 0x0,_0x4fcda8))return!0x1;const _0x3644fb=_0x4fcda8['getSelectionAffectedTableCells'](_0x2ada6f['document']['selection']);if(!_0x3644fb['length'])return!0x1;const _0x2a5174=_0x3644fb[0x0]['findAncestor']('table'),_0x5bedf7=_0x4fcda8['getRowIndexes'](_0x3644fb),_0x5b9fec=_0x4fcda8['getColumnIndexes'](_0x3644fb),_0x350b0e={'startRow':_0x5bedf7['first'],'endRow':_0x5bedf7['last'],'startColumn':_0x5b9fec['first'],'endColumn':_0x5b9fec['last']};return 0x1==_0x3644fb['length']&&(_0x350b0e['endRow']+=_0x4fcda8['getRows'](_0x4ca7aa)-0x1,_0x350b0e['endColumn']+=_0x4fcda8['getColumns'](_0x4ca7aa)-0x1),Ue(_0x2a5174,_0x350b0e,_0x4fcda8);}(_0x602ce0,_0x2819d1,_0x17133b['model'],_0x6cace3,_0x103457)&&(_0x3739dd['stop'](),_0x1f66b0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17133b['model']['change'](()=>{_0x17133b['model']['insertContent'](_0x211d29[0x0],_0x211d29[0x1],_0x211d29[0x2],{'forceDefaultExecution':!0x0});const _0x505877=_0x1229f3(),{rowInsertionRanges:_0xb5d46d,columnInsertionRanges:_0x134d11,insertionRanges:_0x22639a,deletionRanges:_0x694bc6,cells:_0x400ebc}=_0x1f66b0;_0xb5d46d['length']&&_0x1b9f7f['markMultiRangeInsertion'](_0xb5d46d,'tablePasteRow',{'tablePasteChainId':_0x505877}),_0x134d11['length']&&_0x1b9f7f['markMultiRangeInsertion'](_0x134d11,'tablePasteColumn',{'tablePasteChainId':_0x505877}),_0x22639a['length']&&(_0x1b9f7f['markMultiRangeInsertion'](_0x22639a,'tablePaste',{'tablePasteChainId':_0x505877,'skipNestingCheck':!0x0}),_0x22639a['forEach'](_0x21b2db=>_0x21b2db['detach']?.())),_0x694bc6['length']&&(_0x1b9f7f['markMultiRangeDeletion'](_0x694bc6,'tablePaste',{'tablePasteChainId':_0x505877,'skipNestingCheck':!0x0}),_0x694bc6['forEach'](_0x323b90=>_0x323b90['detach']?.()));const _0x414c1c=_0x1b9f7f['markMultiRangeBlockFormat'](_0x400ebc['map'](({element:_0x33ef28})=>_0x33ef28),{'formatGroupId':_0x1229f3()},[],'tablePasteCell',{'tablePasteChainId':_0x505877});if(_0x414c1c){const _0x2d48fd=_0x414c1c['getMarkers'](),_0x11faf8=[];for(const {element:_0x4a2cdd,attributes:_0x629c56}of _0x400ebc){if(!_0x629c56)continue;const _0x3e1552=_0x17133b['model']['createRangeOn'](_0x4a2cdd),_0x4a08d2=_0x2d48fd['find'](_0x58ec42=>_0x58ec42['getRange']()['isEqual'](_0x3e1552));_0x4a08d2&&_0x11faf8['push']([_0x4a08d2['name'],_0x629c56]);}_0x11faf8['length']&&_0x414c1c['setAttribute']('markerAttributes',Object['fromEntries'](_0x11faf8));}_0x1f66b0=null;}));},{'priority':_0x133bbd['high']+0xa}),_0x4ab02d['on']('contentInsertion',()=>{_0x52f5b3=!0x1;},{'priority':'lowest'}),_0x17133b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x56798c,_0x45e4f9)=>{const [_0x342a94,_0x5518b4,,_0x5a2eca]=_0x45e4f9;if(!_0x1f66b0)return;_0x56798c['stop']();const _0x4bec84=_0x342a94['cell'],_0x5094fb=_0x5518b4,_0x511e99=Oe(_0x4bec84),_0x5cde16=Oe(_0x5094fb);_0x56798c['return']=_0x4bec84;let _0x2c9339=null,_0x3fca15=null;if(_0x5cde16||_0x511e99){if(_0x511e99&&!_0x5cde16){_0x5a2eca['remove'](_0x4bec84['getChild'](0x0));for(const _0x287636 of Array['from'](_0x5094fb['getChildren']()))_0x5a2eca['insert'](_0x287636,_0x4bec84,'end');const _0x5ea480=_0x1f66b0['rowInsertionIndexes']['includes'](_0x342a94['row']),_0x8d6af1=_0x1f66b0['columnInsertionIndexes']['includes'](_0x342a94['column']);_0x5ea480||_0x8d6af1||(_0x2c9339=_0x150f02['fromRange'](_0x5a2eca['createRangeIn'](_0x4bec84)));}else _0x5cde16&&!_0x511e99&&(_0x3fca15=_0x5a2eca['createRangeIn'](_0x4bec84));}else{const _0x22b861=_0x5a2eca['createElement']('tableCellSuggestion'),_0x17cc00=_0x5a2eca['createElement']('tableCellSuggestion');_0x5a2eca['wrap'](_0x5a2eca['createRangeIn'](_0x4bec84),_0x17cc00),_0x5a2eca['insert'](_0x22b861,_0x4bec84,0x0);for(const _0x13707d of Array['from'](_0x5094fb['getChildren']()))_0x5a2eca['insert'](_0x13707d,_0x22b861,'end');_0x2c9339=_0x150f02['fromRange'](_0x5a2eca['createRangeOn'](_0x22b861)),_0x3fca15=_0x150f02['fromRange'](_0x5a2eca['createRangeOn'](_0x17cc00));}const _0x41ec2c=Array['from'](_0x5094fb['getAttributes']())['filter'](([_0x210145])=>Be['includes'](_0x210145));_0x1f66b0['cells']['push']({'element':_0x4bec84,'attributes':_0x41ec2c['length']?Object['fromEntries'](_0x41ec2c):null}),_0x2c9339&&_0x1f66b0['insertionRanges']['push'](_0x2c9339),_0x3fca15&&_0x1f66b0['deletionRanges']['push'](_0x3fca15);},{'priority':'high'}),_0x6cace3['on']('insertColumns',(_0xc571cc,_0x1e7d7c)=>{const [_0x342767,_0x2a4817={}]=_0x1e7d7c;if(!_0x1f66b0)return;const _0x1eb28b=_0x2a4817['at']||0x0,_0xb64875=_0x2a4817['columns']||0x1;_0x1f66b0['columnInsertionIndexes']=new Array(_0xb64875)['fill'](_0x1eb28b)['map']((_0x371db1,_0x3b2504)=>_0x371db1+_0x3b2504);for(const {cell:_0x5018fd}of _0x6cace3['createTableWalker'](_0x342767,{'startColumn':_0x1eb28b,'endColumn':_0x1eb28b+_0xb64875-0x1}))_0x1f66b0['columnInsertionRanges']['push'](_0x17133b['model']['createRangeOn'](_0x5018fd));},{'priority':'low'}),_0x6cace3['on']('insertRows',(_0x2b72af,_0x10141f)=>{const [_0x8848f1,_0x2a9d65={}]=_0x10141f;if(!_0x1f66b0)return;const _0x38ae58=_0x2a9d65['at']||0x0,_0x5bcf0d=_0x2a9d65['rows']||0x1;_0x1f66b0['rowInsertionIndexes']=new Array(_0x5bcf0d)['fill'](_0x38ae58)['map']((_0x305a8b,_0x1ff52b)=>_0x305a8b+_0x1ff52b);for(const {cell:_0x1676e1}of _0x6cace3['createTableWalker'](_0x8848f1,{'startRow':_0x38ae58,'endRow':_0x38ae58+_0x5bcf0d-0x1}))_0x1f66b0['rowInsertionRanges']['push'](_0x17133b['model']['createRangeOn'](_0x1676e1));},{'priority':'low'}),_0x1b9f7f['descriptionFactory']['registerDescriptionCallback'](_0x30253a=>{if(_0x30253a['subType']&&_0x30253a['subType']['startsWith']('tablePaste'))return _0x30253a['previous']?{}:{'type':'insertion','content':o(_0x17133b['locale'],'*Replace\x20table\x20cells*')};});const _0x4b504e=()=>!0x1;for(const _0xcd9f86 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1b9f7f['_suggestionFactory']['registerCustomCallback']('insertion',_0xcd9f86,'join',_0x4b504e),_0x1b9f7f['_suggestionFactory']['registerCustomCallback']('deletion',_0xcd9f86,'join',_0x4b504e),_0x1b9f7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcd9f86,'join',_0x4b504e);_0x1b9f7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4b504e),_0x1b9f7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4762b0,_0x3644f3,_0x2b49ff)=>{const _0x584b84=_0x4762b0['map'](_0x54b14e=>_0x54b14e['getContainedElement']())['filter'](_0x2268ff=>_0x2268ff),_0x2506a9=new Map(_0x584b84['map'](_0x4c3108=>[_0x4c3108,null]));if(_0x1f66b0){for(const {element:_0x3c2c63,attributes:_0x3f821e}of _0x1f66b0['cells'])_0x3f821e&&_0x2506a9['set'](_0x3c2c63,_0x3f821e);}else{if(_0x2b49ff&&_0x2b49ff['markerAttributes'])for(const [_0x3247a4,_0xedf93e]of Object['entries'](_0x2b49ff['markerAttributes'])){const _0xe5c553=_0x17133b['model']['markers']['get'](_0x3247a4),_0x5a36e7=_0xe5c553?_0xe5c553['getRange']()['getContainedElement']():null;_0x5a36e7&&_0x2506a9['set'](_0x5a36e7,_0xedf93e);}}_0x17133b['model']['change'](_0x568c9c=>{for(const [_0x33918b,_0x23c481]of _0x2506a9)_0x568c9c['setAttributes']({...xe,..._0x23c481},_0x33918b);});});const _0x3c8607=(_0x391694,_0xd68c17)=>{_0x1b9f7f['_suggestionFactory']['registerCustomCallback'](_0x391694,'tablePaste',_0xd68c17,(_0x509635,_0x3f2adc,_0x1a0129)=>{_0x17133b['model']['change'](_0x36bbb6=>{const _0x349d7c=[];for(const _0x9164ec of _0x509635){const _0x45fa7a=_0x9164ec['start']['nodeAfter'];_0x45fa7a['is']('element','tableCellSuggestion')&&_0x349d7c['push'](_0x45fa7a);}_0x1b9f7f['_suggestionFactory']['getSuggestionCallback'](_0x391694,null,_0xd68c17)(_0x509635,_0x3f2adc,_0x1a0129);for(const _0x2e6d48 of _0x349d7c)'$graveyard'!=_0x2e6d48['root']['rootName']&&_0x36bbb6['unwrap'](_0x2e6d48);});});};_0x3c8607('insertion','accept'),_0x3c8607('insertion','discard'),_0x3c8607('deletion','accept'),_0x3c8607('deletion','discard'),_0x1b9f7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5a9a89=>{const _0x4bbe52=_0x5a9a89['map'](_0x3d605b=>_0x3d605b['getContainedElement']()),_0x2f610c=_0x4bbe52[0x0]['findAncestor']('table'),{minRow:_0x2a1cbf,maxRow:_0x52041c}=_0x194c65['_getCoordsForCells'](_0x4bbe52);_0x6cace3['removeRows'](_0x2f610c,{'at':_0x2a1cbf,'rows':_0x52041c-_0x2a1cbf+0x1});}),_0x1b9f7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1872c3=>{const _0x4278d4=_0x1872c3['map'](_0xb0936=>_0xb0936['getContainedElement']()),_0x457839=_0x4278d4[0x0]['findAncestor']('table'),{minColumn:_0x58c0ec,maxColumn:_0x1ded46}=_0x194c65['_getCoordsForCells'](_0x4278d4);_0x6cace3['removeColumns'](_0x457839,{'at':_0x58c0ec,'columns':_0x1ded46-_0x58c0ec+0x1});});const _0x48948f=(_0x99a3a,_0x414edd)=>{if(!_0x414edd['subType']||!_0x414edd['subType']['startsWith']('tablePaste'))return;const _0x4dbae5=_0x414edd['attributes']['tablePasteChainId'],_0x161523=_0x1b9f7f['getSuggestions']()['filter'](_0x48b15e=>_0x48b15e['isInContent']&&_0x48b15e['attributes']&&_0x48b15e['attributes']['tablePasteChainId']==_0x4dbae5);_0x161523['length']&&_0x414edd['getAllAdjacentSuggestions']()['length']!=_0x161523['length']&&_0x161523['reduce']((_0x3766ce,_0xf218a8)=>(_0x3766ce['next']=_0xf218a8,_0xf218a8['previous']=_0x3766ce,_0xf218a8));};function _0x552fa1(_0x2deb52,_0x51c773=!0x0){const {id:_0x5c68a7,authorId:_0x2b3a2d}=_0x1b9f7f['_splitMarkerName'](_0x2deb52['markerName']),_0x513150=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x46659c=_0x1b9f7f['activeMarkers']['includes'](_0x2deb52['markerName']);return _0x46659c&&_0x513150['push']('ck-suggestion-marker--active'),{'classes':_0x513150,'attributes':{'data-suggestion':_0x5c68a7,'data-author-id':_0x2b3a2d},'priority':_0x46659c&&_0x51c773?0xbc2:0xbb8};}_0x1b9f7f['on']('suggestionLoaded',_0x48948f,{'priority':'high'}),_0x1b9f7f['on']('suggestionUnloaded',_0x48948f,{'priority':'high'}),_0x17133b['model']['document']['registerPostFixer'](()=>{let _0xf29d9c=!0x1;const _0x279e7c=Array['from'](_0x17133b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55797c,data:_0x40f022}of _0x279e7c){const {group:_0x58239e,type:_0x502857,id:_0x249fd3}=_0x1b9f7f['_splitMarkerName'](_0x55797c);if('suggestion'!=_0x58239e||'deletion'!=_0x502857||_0x40f022['oldRange'])continue;if(!_0x1b9f7f['hasSuggestion'](_0x249fd3))continue;const _0xee77a6=_0x1b9f7f['getSuggestion'](_0x249fd3)['getRanges'](),_0x2bb1e2=_0x17133b['plugins']['get']('Users')['me'];for(const _0x21fc2e of _0x1b9f7f['getSuggestions']()){if(!_0x21fc2e['isInContent']||_0x21fc2e['author']!=_0x2bb1e2)continue;if('formatBlock'!=_0x21fc2e['type']||'tablePasteCell'!=_0x21fc2e['subType'])continue;if(_0x21fc2e['getRanges']()['every'](_0xeaeedf=>_0xee77a6['some'](_0xa1a99b=>_0xa1a99b['containsRange'](_0xeaeedf,!0x0)))){for(const _0x5cbef6 of _0x21fc2e['getAllAdjacentSuggestions']())_0x5cbef6['isInContent']&&(_0x5cbef6['discard'](),_0xf29d9c=!0x0);}}}return _0xf29d9c;}),_0x17133b['model']['document']['registerPostFixer'](_0x2050b3=>{const _0x3243ca=_0x17133b['commands']['get']('redo');if(!_0x3243ca||!_0x3243ca['_createdBatches']['has'](_0x2050b3['batch']))return!0x1;let _0x561cb1=!0x1;const _0x3fd6d8=_0x17133b['plugins']['get']('Users')['me'],_0x428a43=_0x17133b['model']['document']['differ']['getChanges'](),_0xfe0a2c=Array['from'](_0x17133b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2233ab,data:_0x30d983})=>{const {group:_0x18c310,subType:_0x2dbc92,authorId:_0x2f71c6}=_0x1b9f7f['_splitMarkerName'](_0x2233ab);return'suggestion'==_0x18c310&&'tablePaste'==_0x2dbc92&&_0x2f71c6==_0x3fd6d8['id']&&!_0x30d983['oldRange'];});for(const _0x315b85 of _0x428a43){if('insert'!=_0x315b85['type']||'tableCellSuggestion'!=_0x315b85['name']||0x1!=_0x315b85['length'])continue;const _0x5d9af4=_0x2050b3['createRange'](_0x315b85['position'],_0x315b85['position']['getShiftedBy'](0x1));if(!_0xfe0a2c['find'](({data:_0x4b24c4})=>_0x4b24c4['newRange']['isEqual'](_0x5d9af4))){for(const {name:_0x4dc506,data:_0x4164d4}of _0xfe0a2c)if(_0x5d9af4['containsRange'](_0x4164d4['newRange'])){_0x2050b3['updateMarker'](_0x4dc506,{'range':_0x5d9af4}),_0x561cb1=!0x0;break;}}}return _0x561cb1;}),_0x17133b['model']['document']['registerPostFixer'](_0x442306=>{let _0x29a211=!0x1;const _0x49f7d8=_0x17133b['plugins']['get']('Users')['me'],_0x5053cc=_0x1b9f7f['getSuggestions']()['filter'](_0x5c55b4=>_0x5c55b4['isInContent']&&_0x5c55b4['author']==_0x49f7d8),_0x2809ee=new Set(),_0x4b0dc4=new Set();for(const _0xae62f6 of _0x5053cc)if('tablePaste'==_0xae62f6['subType'])for(const _0x5a36d5 of _0xae62f6['getMarkers']()){const _0x4ec432=_0x5a36d5['getRange']()['getContainedElement']();if(_0x4ec432){if(_0x4ec432['is']('element','tableCellSuggestion')&&Oe(_0x4ec432)){_0xae62f6['removeMarker'](_0x5a36d5['name']),_0x2809ee['add'](_0x4ec432),_0x29a211=!0x0;const _0x1c8681=_0x4ec432['nextSibling'],_0x2def33=_0x4ec432['previousSibling'],_0x1138af=_0x1c8681&&_0x1c8681['is']('element','tableCellSuggestion'),_0x2a1166=_0x2def33&&_0x2def33['is']('element','tableCellSuggestion');_0x1138af&&!_0x2809ee['has'](_0x1c8681)&&_0x4b0dc4['add'](_0x1c8681),_0x2a1166&&!_0x2809ee['has'](_0x2def33)&&_0x4b0dc4['add'](_0x2def33);}else _0x4ec432['is']('element','paragraph')&&_0x4ec432['isEmpty']&&(_0xae62f6['removeMarker'](_0x5a36d5['name']),_0x29a211=!0x0);}}else{if('tablePasteCell'==_0xae62f6['subType']){if(!_0xae62f6['attributes']||!_0xae62f6['attributes']['tablePasteChainId'])continue;const _0x427901=_0xae62f6['attributes']['markerAttributes'];if(_0x427901&&Object['keys'](_0x427901)['length'])continue;const _0xfb56e3=_0xae62f6['attributes']['tablePasteChainId'];let _0x5c8df7=!0x0,_0x1807b8=!0x0;for(const _0x4a49c9 of _0x5053cc)if(_0x4a49c9['subType']&&_0x4a49c9['subType']['startsWith']('tablePaste')){if(!_0x4a49c9['attributes']['tablePasteChainId']){_0x1807b8=!0x1;break;}if(_0x4a49c9['id']!=_0xae62f6['id']&&_0x4a49c9['attributes']['tablePasteChainId']==_0xfb56e3){_0x5c8df7=!0x1;break;}}_0x1807b8&&_0x5c8df7&&(_0xae62f6['removeMarkers'](),_0x29a211=!0x0);}}for(const _0x443b53 of _0x2809ee)_0x442306['remove'](_0x443b53);for(const _0x1c6ebf of _0x4b0dc4)_0x442306['unwrap'](_0x1c6ebf);return _0x29a211;}),_0x17133b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5bf5d9=>_0x552fa1(_0x5bf5d9),'converterPriority':'high'}),_0x17133b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5affa6,_0x302e27)=>_0x302e27['options']['showSuggestionHighlights']?_0x552fa1(_0x5affa6,!0x1):null,'converterPriority':'high'});const _0x37a7c1=_0x17133b['editing']['view'];this['listenTo'](_0x37a7c1['document'],'clipboardOutput',(_0x174794,_0x357288)=>{const _0x4bd737=[];for(const _0x28ae54 of _0x37a7c1['createRangeIn'](_0x357288['content'])['getItems']())_0x28ae54['is']('element','suggestion-td')&&_0x4bd737['push'](_0x28ae54);_0x37a7c1['change'](_0x584371=>{for(const _0x2984b7 of _0x4bd737)_0x584371['move'](_0x584371['createRangeIn'](_0x2984b7),_0x584371['createPositionBefore'](_0x2984b7)),_0x584371['remove'](_0x2984b7);});});}}function Oe(_0x2246f6){if(_0x2246f6['isEmpty'])return!0x0;const _0x18d30e=_0x2246f6['getChild'](0x0);return _0x18d30e['is']('element','paragraph')&&_0x18d30e['isEmpty'];}function Ue(_0x5b41e0,_0x481b4a={},_0x469194){for(const {isAnchor:_0x4597a4,cellHeight:_0x5dbb59,cellWidth:_0x38c01c}of _0x469194['createTableWalker'](_0x5b41e0,{'includeAllSlots':!0x0,..._0x481b4a}))if(!_0x4597a4||0x1!=_0x5dbb59||0x1!=_0x38c01c)return!0x1;return!0x0;}class Dt extends _0x342976{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x35985d=this['editor']['plugins']['get']('TrackChangesEditing');_0x35985d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x35985d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x35985d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35985d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x35985d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x35985d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x554f71,_0x521f3b){const _0x2c087b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36d993=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a23eb=_0x521f3b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d003e=_0x36d993['getColumnGroupElement'](_0x1a23eb);let _0x2da6cd=_0x3d003e?_0x36d993['getTableColumnsWidths'](_0x3d003e):null,_0x2c8b88=_0x1a23eb['getAttribute']('tableWidth')||null;const _0x2252c0=_0x521f3b['tableWidth']||_0x2c8b88,_0x1db4ce=_0x521f3b['columnWidths']||_0x2da6cd,_0x2f7881=this['editor']['plugins']['get']('Users')['me'];for(const _0x110f96 of _0x2c087b['getSuggestions']()){const _0x40f9a5=_0x110f96['getContainedElement']();if('resizeTable'===_0x110f96['subType']&&_0x40f9a5===_0x1a23eb){_0x110f96['author']!==_0x2f7881&&_0x110f96['discard']();const _0x8d2c67=_0x110f96['data']['commandParams'];_0x2c8b88=_0x8d2c67[0x0]['tableWidth'],_0x2da6cd=_0x8d2c67[0x0]['columnWidths'];break;}}_0x554f71({'table':_0x1a23eb,'tableWidth':_0x2252c0,'columnWidths':_0x1db4ce}),_0x2c087b['markBlockFormat'](_0x1a23eb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c8b88,'columnWidths':_0x2da6cd}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58b26d){if('formatBlock'!=_0x58b26d['type']&&'formatInline'!=_0x58b26d['type'])return;const {data:_0x993996}=_0x58b26d;if(_0x993996&&'resizeTable'===_0x993996['formatGroupId']){const _0x4b82f4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4b82f4)};}}}class $t extends _0x342976{['afterInit'](){const _0xebadcd=this['editor'];_0xebadcd['plugins']['has']('Template')&&_0xebadcd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x342976{['afterInit'](){const _0x5e1e60=this['editor'];if(!_0x5e1e60['commands']['get']('insertTableOfContents'))return;_0x5e1e60['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x48b41e=_0x5e1e60['plugins']['get']('TrackChangesEditing'),_0x943f7=_0x5e1e60['locale'];_0x48b41e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5a5d53=>o(_0x943f7,'ELEMENT_TABLE_OF_CONTENTS',_0x5a5d53));}}class Bt extends _0x342976{['afterInit'](){const _0x54e627=this['editor'];if(!_0x54e627['plugins']['has']('Title'))return;const _0x7b6153=_0x54e627['plugins']['get']('TrackChangesEditing');_0x7b6153['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x54e627['locale'],'ELEMENT_TITLE')),_0x54e627['model']['document']['registerPostFixer'](_0x122736=>{let _0x54f238=!0x1;const _0x2210cb=Array['from'](_0x54e627['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x453255,data:_0x44c8f7}of _0x2210cb){const {group:_0x2475fc}=_0x7b6153['_splitMarkerName'](_0x453255);if('suggestion'!==_0x2475fc||!_0x44c8f7['newRange'])continue;const _0x88a2d7=_0x44c8f7['newRange'],_0x173a9e=_0x88a2d7['end']['nodeBefore'];if(!_0x173a9e||!_0x173a9e['is']('element','title-content'))continue;if(!_0x88a2d7['start']['isTouching'](_0x88a2d7['end']))continue;const _0xc51bb4=_0x54e627['model']['schema']['getNearestSelectionRange'](_0x88a2d7['end'],'forward');if(_0xc51bb4&&_0xc51bb4['isCollapsed']){const _0x12bbd3=_0x122736['createRange'](_0x88a2d7['start'],_0xc51bb4['start']);_0x12bbd3['isEqual'](_0x88a2d7)||(_0x122736['updateMarker'](_0x453255,{'range':_0x12bbd3}),_0x54f238=!0x0);}_0x54f238||(_0x122736['removeMarker'](_0x453255),_0x54f238=!0x0);}return _0x54f238;});}}class Tt extends _0x342976{['afterInit'](){const _0x4e3312=this['editor'],_0x57d20b=_0x4e3312['plugins']['get']('TrackChangesEditing');_0x4e3312['plugins']['has']('Uploadcare')&&(_0x57d20b['enableCommand']('uploadcare'),_0x4e3312['plugins']['has']('UploadcareImageEdit')&&(_0x57d20b['enableCommand']('uploadcareImageEdit'),_0x57d20b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x57d20b['registerBlockAttribute']('uploadcareImageId'),_0x57d20b['descriptionFactory']['registerDescriptionCallback'](_0x3bb85e=>{if('attribute'!=_0x3bb85e['type'])return;const {data:_0x619c73}=_0x3bb85e;return _0x619c73&&'uploadcareImageId'==_0x619c73['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x342976{['afterInit'](){const _0x2cfb4c=this['editor'],_0x21749d=_0x2cfb4c['plugins']['get']('TrackChangesEditing');_0x2cfb4c['plugins']['has']('UndoEditing')&&(_0x21749d['enableCommand']('undo'),_0x21749d['enableCommand']('redo'));}}class Ot extends _0x342976{static get['requires'](){return[At];}['afterInit'](){const _0x26e456=this['editor'];if(!_0x26e456['plugins']['has']('TableCaptionEditing'))return;_0x26e456['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x342976{['tableProperties'];['tableCellProperties'];constructor(_0x301a2b){super(_0x301a2b),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 _0x197c23=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x25231f of this['tableProperties'])_0x197c23['enableCommand'](_0x25231f,(_0x3e54c6,_0x472108)=>{const _0x32432a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x25231f,[_0x32432a],this['tableProperties'],'tableProperties',_0x3e54c6,_0x472108);});_0x197c23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x197c23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x197c23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x583676,_0x1fb6ee)=>this['handleDiscardAction'](this['tableProperties'],_0x583676,_0x1fb6ee)),_0x197c23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x15d923 of this['tableCellProperties'])_0x197c23['enableCommand'](_0x15d923,(_0x1f03c3,_0xf8365f)=>{const _0x2411de=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x15d923,_0x2411de,this['tableCellProperties'],'tableCellProperties',_0x1f03c3,_0xf8365f);});_0x197c23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x197c23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x197c23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b00c1,_0x5e9400)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b00c1,_0x5e9400)),_0x197c23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x197c23['descriptionFactory']['registerDescriptionCallback'](_0x306a49=>this['handleSuggestionDescription'](_0x306a49)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x40c57c,_0x51e90e,_0x4b97a7,_0x593a99,_0x2d989e,_0x3cc76f){const _0x15a429=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3cc76f['batch'],()=>{for(const _0x2c6d25 of _0x51e90e){if(this['_getSuggestion'](_0x2c6d25,_0x593a99))_0x2d989e(_0x3cc76f);else{const _0x27cc6c={};for(const _0x46d85 of _0x4b97a7){const _0x17a5c5=_0x2c6d25['getAttribute'](_0x46d85);void 0x0!==_0x17a5c5&&(_0x27cc6c[_0x46d85]=_0x17a5c5);}_0x2d989e(_0x3cc76f),_0x15a429['markBlockFormat'](_0x2c6d25,{'commandParams':[_0x27cc6c]},[],_0x593a99);}}});}['handleDiscardAction'](_0x442e07,_0x227fbe,_0x3a6f9c){const _0x458a46=_0x227fbe[0x0]['start']['nodeAfter'],_0x53addf=_0x3a6f9c['commandParams'][0x0];this['editor']['model']['change'](_0x56d885=>{for(const _0x482b8b of _0x442e07)void 0x0!==_0x53addf[_0x482b8b]?_0x56d885['setAttribute'](_0x482b8b,_0x53addf[_0x482b8b],_0x458a46):_0x56d885['removeAttribute'](_0x482b8b,_0x458a46);});}['handleSuggestionDescription'](_0x44af76){if(_0x44af76['data'])switch(_0x44af76['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'](_0x445d45,_0x1a7c66){const _0x53d9f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b2d9a of _0x53d9f9['getSuggestions']({'skipNotAttached':!0x0})){const _0x3e4a5f=_0x5b2d9a['getContainedElement']();if(_0x5b2d9a['subType']===_0x1a7c66&&_0x3e4a5f===_0x445d45)return _0x5b2d9a;}return null;}['_registerTablePropertiesAttributes'](){const _0x1cf9e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3b13=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2d538e of _0x1b3b13){const _0x50307a=_0x2d538e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1cf9e3['registerBlockAttribute'](_0x2d538e),_0x1cf9e3['descriptionFactory']['registerAttributeLabel'](_0x2d538e,o(this['editor']['locale'],'FORMAT_'+_0x50307a));}}}class Rt extends _0x342976{['afterInit'](){const _0x20f0e2=this['editor'];if(!_0x20f0e2['plugins']['has']('LineHeight'))return;const _0x14cdce=_0x20f0e2['plugins']['get']('TrackChangesEditing'),_0x52b01a=_0x20f0e2['locale'];_0x14cdce['enableDefaultAttributesIntegration']('lineHeight'),_0x14cdce['registerBlockAttribute']('lineHeight'),_0x14cdce['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52b01a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x342976{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5341d3,_0x596aee,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2740ee){super(_0x2740ee),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xaf63f4,_0x3fdfeb,_0x1f2cde,_0x5e7dc0)=>{this['_model']['change'](()=>{for(const _0x4160d1 of[..._0x5e7dc0,..._0x1f2cde])this['_model']['markers']['has'](_0x4160d1)&&_0x2740ee['editing']['reconvertMarker'](_0x4160d1);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2740ee['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(),_0x2740ee['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2740ee['config']['get']('trackChanges.trackFormatChanges'),_0x2740ee['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2740ee['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2740ee,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x148c53=this['editor'],_0x255e65=(_0x281888,_0x671e7d)=>{if('attribute'!=_0x281888)return'ck-suggestion-marker-'+_0x281888;const _0x401b51=_0x671e7d['split']('|')[0x0];return this['_isBlockAttribute'](_0x401b51)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x148c53['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x324df2=>{const {id:_0x210c4a,authorId:_0x3a70db,type:_0x540f94,subType:_0x4d5a80}=this['_splitMarkerName'](_0x324df2['markerName']),_0x58017c=['ck-suggestion-marker',_0x255e65(_0x540f94,_0x4d5a80)];let _0xce6c05=0xbb8;return this['activeMarkers']['includes'](_0x324df2['markerName'])&&(_0x58017c['push']('ck-suggestion-marker--active'),_0xce6c05=0xbc2),'deletion'==_0x540f94&&(_0xce6c05+=0x5),{'classes':_0x58017c,'attributes':{'data-suggestion':_0x210c4a,'data-author-id':_0x3a70db},'priority':_0xce6c05};}}),_0x148c53['conversion']['for']('dataDowncast')['add'](_0x12505b=>{_0x12505b['on']('addMarker:suggestion',(_0x4cc756,_0x59d69d,_0x2bb353)=>{if(!_0x2bb353['options']['showSuggestionHighlights'])return;const _0xf0e88=_0x59d69d['item'];if(!_0xf0e88)return;const _0x1712c7=_0x2bb353['mapper']['toViewElement'](_0xf0e88);_0x148c53['model']['schema']['isObject'](_0xf0e88)&&_0x1712c7&&!_0x1712c7['getCustomProperty']('widget')&&_0x1712c7['is']('containerElement')&&_0x25315b(_0x1712c7,_0x2bb353['writer']);},{'priority':'high'});}),_0x148c53['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2db635,_0x43c021)=>{if(!_0x43c021['options']['showSuggestionHighlights'])return null;const {id:_0x4ca9a2,authorId:_0x15270e,type:_0x4eec60,subType:_0x23cc35}=this['_splitMarkerName'](_0x2db635['markerName']);return{'classes':['ck-suggestion-marker',_0x255e65(_0x4eec60,_0x23cc35)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4ca9a2,'data-author-id':_0x15270e}};}});const _0x5ed61e=({showActiveMarkers:_0x38abb3=!0x0,isAttributeSuggestion:_0x140412=!0x1}={})=>(_0x231bf9,_0x4d768e,_0x2103d2)=>{if(!_0x4d768e['item'])return;const {id:_0x532aaf,authorId:_0x1297aa}=this['_splitMarkerName'](_0x4d768e['markerName']);if(_0x140412){const _0x49bb86=this['_suggestions']['get'](_0x532aaf),_0x4f928f=this['_getAttributeKey'](_0x49bb86);if(!this['_isBlockAttribute'](_0x4f928f))return;}if(_0x4d768e['item']['is']('selection'))return void _0x2103d2['consumable']['consume'](_0x4d768e['item'],_0x231bf9['name']);const _0x43701f=_0x2103d2['mapper']['toViewElement'](_0x4d768e['item']);if(_0x4d768e['item']['is']('element')&&_0x148c53['model']['schema']['isBlock'](_0x4d768e['item'])&&!_0x43701f['getCustomProperty']('addHighlight')){_0x2103d2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x43701f),_0x2103d2['writer']['setAttribute']('data-suggestion',_0x532aaf,_0x43701f),_0x2103d2['writer']['setAttribute']('data-author-id',_0x1297aa,_0x43701f),_0x2103d2['mapper']['bindElementToMarker'](_0x43701f,_0x4d768e['markerName']),_0x38abb3&&(this['activeMarkers']['includes'](_0x4d768e['markerName'])?_0x2103d2['writer']['addClass']('ck-suggestion-marker--active',_0x43701f):_0x2103d2['writer']['removeClass']('ck-suggestion-marker--active',_0x43701f));for(const _0xf0f0a3 of _0x148c53['model']['createRangeIn'](_0x4d768e['item'])['getItems']())_0x2103d2['consumable']['consume'](_0xf0f0a3,_0x231bf9['name']);_0x2103d2['consumable']['consume'](_0x4d768e['item'],_0x231bf9['name']);}};_0x148c53['conversion']['for']('dataDowncast')['add'](_0xf2283b=>{_0xf2283b['on']('addMarker:suggestion:formatBlock',(_0x558b0c,_0x30c196,_0x130908)=>{_0x130908['options']['showSuggestionHighlights']&&_0x5ed61e({'showActiveMarkers':!0x1})(_0x558b0c,_0x30c196,_0x130908);},{'priority':'highest'});}),_0x148c53['conversion']['for']('dataDowncast')['add'](_0x2e260e=>{_0x2e260e['on']('addMarker:suggestion:attribute',(_0x1524f1,_0x3f1733,_0x1e7ed6)=>{_0x1e7ed6['options']['showSuggestionHighlights']&&_0x5ed61e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1524f1,_0x3f1733,_0x1e7ed6);},{'priority':'highest'});}),_0x148c53['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x503d18,_0x1862e5)=>{if(_0x1862e5['options']['showSuggestionHighlights']){const {id:_0x5294e3,authorId:_0x1f9369}=this['_splitMarkerName'](_0x503d18);return _0x503d18['includes'](':split')||_0x503d18['includes'](':merge')?{'group':'suggestion','name':_0x503d18['substr'](0xb),'attributes':{'data-suggestion':_0x5294e3,'data-author-id':_0x1f9369}}:null;}return{'group':'suggestion','name':_0x503d18['substr'](0xb)};}}),_0x148c53['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39c8c6,{writer:_0x45759f})=>{let _0x20a4d1='suggestion:'+_0x39c8c6['getAttribute']('suggestion-type')+':'+_0x39c8c6['getAttribute']('id');return _0x39c8c6['getAttribute']('marker-count')&&(_0x20a4d1+=':'+_0x39c8c6['getAttribute']('marker-count')),_0x45759f['createElement']('$marker',{'data-name':_0x20a4d1});}}),_0x148c53['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x148c53['conversion']['for']('editingDowncast')['add'](_0x35280c=>{_0x35280c['on']('addMarker:suggestion:formatBlock',_0x5ed61e(),{'priority':'high'});}),_0x148c53['conversion']['for']('editingDowncast')['add'](_0x2fa5d9=>{_0x2fa5d9['on']('addMarker:suggestion:attribute',_0x5ed61e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x148c53['conversion']['for']('editingDowncast')['add'](_0x4084bf=>{_0x4084bf['on']('removeMarker:suggestion:formatBlock',(_0x3ab9cc,_0x3c27d7,_0x3295)=>{const _0x19b429=_0x3295['mapper']['markerNameToElements'](_0x3c27d7['markerName']);if(_0x19b429){for(const _0x2c3359 of _0x19b429)_0x2c3359['getCustomProperty']('addHighlight')||(_0x3295['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c3359),_0x3295['writer']['removeAttribute']('data-suggestion',_0x2c3359),_0x3295['writer']['removeAttribute']('data-author-id',_0x2c3359),_0x3295['mapper']['unbindElementFromMarkerName'](_0x2c3359,_0x3c27d7['markerName']));}},{'priority':'high'});}),_0x148c53['conversion']['for']('editingDowncast')['add'](_0x90202=>{_0x90202['on']('removeMarker:suggestion:attribute',(_0x3d92f5,_0x3f2317,_0x473dab)=>{const _0x289126=_0x473dab['mapper']['markerNameToElements'](_0x3f2317['markerName']);if(!_0x289126)return;const {id:_0x3c24ad}=this['_splitMarkerName'](_0x3f2317['markerName']),_0x2eef3b=this['_suggestions']['get'](_0x3c24ad),_0x4bb4f0=this['_getAttributeKey'](_0x2eef3b);if(this['_isBlockAttribute'](_0x4bb4f0)){for(const _0x1b8cc7 of _0x289126)_0x1b8cc7['getCustomProperty']('addHighlight')||(_0x473dab['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1b8cc7),_0x473dab['writer']['removeAttribute']('data-suggestion',_0x1b8cc7),_0x473dab['writer']['removeAttribute']('data-author-id',_0x1b8cc7),_0x473dab['mapper']['unbindElementFromMarkerName'](_0x1b8cc7,_0x3f2317['markerName']));}},{'priority':'high'});}),_0x148c53['model']['document']['registerPostFixer'](_0x821a65=>{let _0x29fa8e=!0x1;const _0x56dcbc=Array['from'](_0x148c53['model']['document']['differ']['getChangedMarkers']()),_0x2b8ce1=new Set();for(const {name:_0x165ca0,data:_0x55aadf}of _0x56dcbc){const {group:_0x2b7ad1,type:_0x17ff6c,subType:_0x1f2f36,id:_0x4835af}=this['_splitMarkerName'](_0x165ca0);if('suggestion'!==_0x2b7ad1)continue;const _0x1b9b48=_0x1f2f36?'suggestion:'+_0x17ff6c+':'+_0x1f2f36+':'+_0x4835af:'suggestion:'+_0x17ff6c+':'+_0x4835af,_0x297635=_0x148c53['model']['markers']['getMarkersGroup'](_0x1b9b48),_0x23454d=_0x148c53['model']['markers']['get'](_0x165ca0),_0x3d946f=this['_suggestions']['get'](_0x4835af);if(null!=_0x55aadf['newRange']){'formatInline'==_0x17ff6c&&(_0x29fa8e=_0x29fa8e||Gt(_0x55aadf['newRange'],_0x165ca0,_0x821a65,_0x148c53['model']['schema']));const _0x581f46='attribute'==_0x17ff6c&&this['_isBlockAttribute'](_0x1f2f36['split']('|')[0x0]),_0x8231c8='attribute'==_0x17ff6c&&this['_isInlineAttribute'](_0x1f2f36['split']('|')[0x0]);if(_0x55aadf['newRange']['isCollapsed']||'$graveyard'==_0x55aadf['newRange']['root']['rootName']||'formatBlock'==_0x17ff6c&&!Jt(_0x55aadf['newRange'])||_0x581f46&&!Jt(_0x55aadf['newRange'])||_0x8231c8&&Kt(_0x55aadf['newRange'])||'deletion'==_0x17ff6c&&Kt(_0x55aadf['newRange'])||_0x23454d&&Ht(_0x23454d,_0x297635))_0x821a65['removeMarker'](_0x165ca0),_0x29fa8e=!0x0;else{if(!_0x3d946f||!_0x3d946f['isInContent'])continue;if(_0x55aadf['newRange']&&_0x55aadf['oldRange']&&_0x55aadf['newRange']['isEqual'](_0x55aadf['oldRange']))continue;_0x2b8ce1['add'](_0x3d946f);}}}return _0x2b8ce1['size']>0x0&&(_0x29fa8e=!!this['_joinWithAdjacentSuggestions'](_0x2b8ce1)||_0x29fa8e),_0x29fa8e;}),_0x148c53['model']['document']['registerPostFixer'](_0x2e62c3=>{let _0x173b91=!0x1;for(const _0x3d1fe0 of _0x148c53['model']['document']['differ']['getChanges']())if('insert'==_0x3d1fe0['type'])for(const _0x4874e1 of this['_suggestions']['values']()){if(_0x4874e1['isMultiRange']||!_0x4874e1['isInContent'])continue;const _0xfe0ddc='formatBlock'==_0x4874e1['type'],_0x518078=this['_getAttributeKey'](_0x4874e1),_0xc75003=_0x518078&&this['_isBlockAttribute'](_0x518078);if(!_0xfe0ddc&&!_0xc75003)continue;const _0x456b5c=_0x4874e1['getFirstRange']();if(_0x456b5c['start']['parent']!=_0x456b5c['end']['parent']&&!_0x456b5c['end']['isAtEnd']){const _0x4a7302=_0x148c53['model']['createPositionAt'](_0x456b5c['start']['nodeAfter'],'end'),_0x4e66ab=_0x148c53['model']['createRange'](_0x456b5c['start'],_0x4a7302);_0x2e62c3['updateMarker'](_0x4874e1['getFirstMarker'](),{'range':_0x4e66ab}),_0x173b91=!0x0;}}return _0x173b91;}),_0x148c53['model']['document']['registerPostFixer'](_0x7ba556=>this['_processAttributeChanges'](_0x7ba556)),_0x148c53['model']['document']['registerPostFixer'](_0x651b03=>!_0x651b03['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x651b03)),_0x148c53['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x148c53['model']['document']['on']('change:data',(_0x3430d5,_0x11e9d8)=>{if(!_0x11e9d8['isLocal']||_0x11e9d8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x173c82=_0x148c53['model']['document']['differ']['getChanges']();if(0x0==_0x173c82['length'])return;const _0x5800cf=[],_0x5d58ea=_0x173c82['filter'](_0x52e476=>'attribute'==_0x52e476['type']),_0x3d253f=_0x173c82['filter'](_0x5b70ee=>'insert'==_0x5b70ee['type']&&'$text'!=_0x5b70ee['name']);for(const _0x3d1ab4 of _0x5d58ea)this['_isRegisteredAttribute'](_0x3d1ab4['attributeKey'])&&_0x5800cf['push']({'key':_0x3d1ab4['attributeKey'],'newValue':_0x3d1ab4['attributeNewValue'],'oldValue':_0x3d1ab4['attributeOldValue'],'range':qt(_0x3d1ab4['range'],_0x148c53['model'])});for(const _0x22d50e of _0x3d253f){if('rename'!=_0x22d50e['action']&&'refresh'!=_0x22d50e['action'])continue;const _0x44796c=zt(_0x22d50e['position']['nodeAfter'],_0x148c53['model']),_0x2cf3a2=_0x22d50e['before'];'rename'==_0x22d50e['action']&&_0x5800cf['push']({'key':m,'newValue':_0x22d50e['name'],'oldValue':_0x2cf3a2['name'],'range':_0x44796c});for(const [_0x11bfde,_0xfc5d27]of _0x2cf3a2['attributes']){if(!this['_isRegisteredAttribute'](_0x11bfde))continue;const _0x5cf468=_0x22d50e['attributes']['get'](_0x11bfde);_0xfc5d27!==_0x5cf468&&_0x5800cf['push']({'key':_0x11bfde,'newValue':_0x5cf468,'oldValue':_0xfc5d27,'range':_0x44796c});}for(const [_0x31af5d,_0x7c1637]of _0x22d50e['attributes'])this['_isRegisteredAttribute'](_0x31af5d)&&(_0x2cf3a2['attributes']['has'](_0x31af5d)||_0x5800cf['push']({'key':_0x31af5d,'newValue':_0x7c1637,'oldValue':null,'range':_0x44796c}));}0x0!=_0x5800cf['length']&&_0x148c53['model']['enqueueChange'](_0x11e9d8,_0x4233bd=>{const _0x272837=_0x1229f3();for(const {range:_0x50ae69,key:_0x390f5a,oldValue:_0x57c817,newValue:_0x1882cd}of _0x5800cf)this['markAttributeChange'](_0x50ae69,_0x390f5a,_0x57c817,_0x1882cd,{'groupId':_0x272837});this['_reduceExistingSuggestions'](_0x4233bd,_0x5800cf);});},{'priority':'lowest'}),_0x148c53['model']['markers']['on']('update:suggestion',(_0x1d4d13,_0x3f3c49,_0x148dc9)=>{if(null==_0x148dc9){const {id:_0x159263}=this['_splitMarkerName'](_0x3f3c49['name']),_0x20561f=this['_suggestions']['get'](_0x159263);_0x20561f&&_0x20561f['addMarkerName'](_0x3f3c49['name']);}}),_0x148c53['model']['document']['on']('change:data',()=>{const _0x3e72ef=Array['from'](_0x148c53['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5f204b=>'suggestion'===this['_splitMarkerName'](_0x5f204b['name'])['group']);if(0x0===_0x3e72ef['length'])return;_0x3e72ef['sort']((_0x471061,_0x478d14)=>{const _0x433acf=_0x471061['data']['oldRange'],_0x2753e2=_0x478d14['data']['oldRange'];return null===_0x433acf&&null===_0x2753e2?0x0:null===_0x433acf&&null!==_0x2753e2?-0x1:null!==_0x433acf&&null===_0x2753e2?0x1:_0x433acf['start']['isBefore'](_0x2753e2['start'])?-0x1:0x1;});const _0x11ad5c=new Set(),_0x33f292=new Set();for(const {name:_0x2be5c7,data:_0x22734c}of _0x3e72ef){const {id:_0x2dff26}=this['_splitMarkerName'](_0x2be5c7);if(null===_0x22734c['oldRange']){const _0x409aad=this['_handleNewSuggestionMarker'](_0x2be5c7);_0x33f292['add'](_0x409aad);}else{const _0x57d65c=this['_suggestions']['get'](_0x2dff26);null!==_0x22734c['newRange']||_0x57d65c['isInContent']?(_0x11ad5c['add'](_0x57d65c['head']),_0x33f292['add'](_0x57d65c)):this['_removeSuggestion'](_0x57d65c);}}_0x33f292['size']>0x0&&this['_refreshSuggestionsChain'](_0x33f292);for(const _0x177be3 of _0x11ad5c)this['fire']('suggestionChanged',_0x177be3);}),_0x148c53['model']['on']('applyOperation',(_0x2fb88e,_0x2b9786)=>{const _0x2c0d01=_0x2b9786[0x0];if(!this['_suggestions']['size'])return;if(!_0x2c0d01['isDocumentOperation'])return;if(_0x2c0d01['batch']['isUndo']||!_0x2c0d01['batch']['isLocal'])return;let _0x322c76,_0x22b5f6;switch(_0x2c0d01['type']){case'insert':_0x322c76=_0x148c53['model']['createPositionAt'](_0x2c0d01['position']),_0x22b5f6=_0x322c76['getShiftedBy'](_0x2c0d01['howMany']);break;case'split':_0x322c76=_0x148c53['model']['createPositionAt'](_0x2c0d01['splitPosition']),_0x22b5f6=_0x148c53['model']['createPositionAt'](_0x2c0d01['moveTargetPosition']);break;case'move':_0x322c76=_0x148c53['model']['createPositionAt'](_0x2c0d01['targetPosition']),_0x22b5f6=_0x322c76['getShiftedBy'](_0x2c0d01['howMany']);break;default:return;}const _0x5491c2=_0x148c53['model']['createRange'](_0x322c76,_0x22b5f6);_0x148c53['model']['change'](()=>{for(const {suggestion:_0x5ad65a,meta:_0x5de59a}of this['_findSuggestions'](_0x5491c2)){if(_0x5ad65a['isMultiRange'])continue;if('formatInline'==_0x5ad65a['type'])continue;const _0xbb3d72=this['_getAttributeKey'](_0x5ad65a);if(_0xbb3d72&&this['_isBlockAttribute'](_0xbb3d72)&&'split'!=_0x2c0d01['type'])continue;const _0x2969cb=_0x5ad65a['data']&&_0x5ad65a['data']['multipleBlocks'];('formatBlock'!=_0x5ad65a['type']||'split'==_0x2c0d01['type']&&!_0x2969cb)&&(_0x5de59a['containsRangeInObject']||'insertion'==_0x5ad65a['type']&&_0x5de59a['isOwn']||_0x5ad65a['getFirstRange']()['containsRange'](_0x5491c2)&&this['_breakSuggestionMarker'](_0x5ad65a,_0x322c76,_0x22b5f6));}});},{'priority':'lowest'}),_0x148c53['model']['on']('deleteContent',(_0x411b5f,_0x1ae050)=>{const _0x1a7da4=_0x1ae050[0x0],_0x5814ac=_0x1ae050[0x1];if(_0x5814ac&&_0x5814ac['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a7da4['isCollapsed'])return;const _0x412838=_0x148c53['model']['schema'],{start:_0x328305,end:_0x5b84ce}=_0x1a7da4['getFirstRange'](),_0x385e88=_0x328305['nodeAfter']&&_0x412838['isLimit'](_0x328305['nodeAfter'])?null:_0x412838['getNearestSelectionRange'](_0x328305,'forward'),_0x45a562=_0x5b84ce['nodeBefore']&&_0x412838['isLimit'](_0x5b84ce['nodeBefore'])?null:_0x412838['getNearestSelectionRange'](_0x5b84ce,'backward'),_0xa6121c=_0x148c53['model']['createRange'](_0x385e88?_0x385e88['start']:_0x328305,_0x45a562?_0x45a562['end']:_0x5b84ce);_0x148c53['model']['change'](_0x233964=>{this['markDeletion'](_0xa6121c);const _0x429a0e=_0x148c53['model']['schema']['getNearestSelectionRange'](_0xa6121c['start']);_0x1a7da4['is']('documentSelection')?_0x233964['setSelection'](_0x429a0e):_0x1a7da4['setTo'](_0x429a0e);}),_0x411b5f['stop']();},{'priority':_0x133bbd['normal']+0xa}),_0x148c53['model']['on']('insertContent',(_0xd880ce,_0x37f716)=>{const _0x4a819a=_0x37f716[_0x37f716['length']-0x1];_0x4a819a&&_0x4a819a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x148c53['model']['change'](()=>{let _0x2a07f1=_0x148c53['model']['insertContent'](_0x37f716[0x0],_0x37f716[0x1],_0x37f716[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a07f1)return;_0xd880ce['return']=_0x2a07f1['clone']();const _0x4497d2=_0x2a07f1['end']['nodeBefore'],_0x478cc2=_0x148c53['model']['schema'];_0x4497d2&&_0x478cc2['isBlock'](_0x4497d2)&&!_0x478cc2['isObject'](_0x4497d2)&&(_0x2a07f1=_0x148c53['model']['createRange'](_0x2a07f1['start'],_0x148c53['model']['createPositionAt'](_0x4497d2,'end'))),this['markInsertion'](_0x2a07f1);}),_0xd880ce['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1ed52e=new D(_0x148c53,this['_suggestions']);_0x148c53['commands']['add']('acceptSuggestion',_0x1ed52e),this['enableCommand']('acceptSuggestion');const _0xaef77a=new $(_0x148c53,this['_suggestions']);_0x148c53['commands']['add']('discardSuggestion',_0xaef77a),this['enableCommand']('discardSuggestion'),_0x148c53['commands']['add']('acceptAllSuggestions',new M(_0x148c53,_0x1ed52e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x148c53['commands']['add']('discardAllSuggestions',new M(_0x148c53,_0xaef77a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x148c53['commands']['add']('acceptSelectedSuggestions',new B(_0x148c53,_0x1ed52e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x148c53['commands']['add']('discardSelectedSuggestions',new B(_0x148c53,_0xaef77a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x214bba=_0x148c53['plugins']['get']('CommentsRepository');this['listenTo'](_0x214bba,'addComment',(_0xb8d645,{threadId:_0x1ee212})=>{const _0x56efaf=this['_suggestions']['get'](_0x1ee212);_0x56efaf&&_0x56efaf['commentThread']&&0x1===_0x56efaf['commentThread']['length']&&this['_updateSuggestionData'](_0x1ee212,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x214bba,'removeComment',(_0x922432,{threadId:_0x18a3f3})=>{const _0x2f985b=this['_suggestions']['get'](_0x18a3f3);_0x2f985b&&_0x2f985b['commentThread']&&!_0x2f985b['commentThread']['length']&&this['_updateSuggestionData'](_0x18a3f3,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x816044){const _0x40ab6f=_0xc02b6d([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x5f3f5c=0x6b0f5e6f,_0x26a24f=0x6b082c4f^_0x5f3f5c,_0x1275bc=window[_0xc02b6d([0x44,0x61,0x74,0x65])][_0xc02b6d([0x6e,0x6f,0x77])](),_0x1a4c99=_0x816044[_0xc02b6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55b5fb=new window[(_0xc02b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4741ce=>{_0x1a4c99[_0xc02b6d([0x6f,0x6e,0x63,0x65])](_0xc02b6d([0x72,0x65,0x61,0x64,0x79]),_0x4741ce);}),_0x5acbda={[_0xc02b6d([0x6b,0x74,0x79])]:_0xc02b6d([0x45,0x43]),[_0xc02b6d([0x75,0x73,0x65])]:_0xc02b6d([0x73,0x69,0x67]),[_0xc02b6d([0x63,0x72,0x76])]:_0xc02b6d([0x50,0x2d,0x32,0x35,0x36]),[_0xc02b6d([0x78])]:_0xc02b6d([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]),[_0xc02b6d([0x79])]:_0xc02b6d([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]),[_0xc02b6d([0x61,0x6c,0x67])]:_0xc02b6d([0x45,0x53,0x32,0x35,0x36])},_0x5cbb7e=_0x1a4c99[_0xc02b6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc02b6d([0x67,0x65,0x74])](_0xc02b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3351c4(){let _0x1893c5,_0x59184c=null,_0x2cce4b=null;try{if(_0x5cbb7e==_0xc02b6d([0x47,0x50,0x4c]))return _0xc02b6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1893c5=_0x4bada1(),!_0x1893c5)return _0xc02b6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1893c5[_0xc02b6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cce4b=_0x5899ce(_0x1893c5[_0xc02b6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1893c5[_0xc02b6d([0x6a,0x74,0x69])])),await _0x47c1cc()?_0x44d9c5()?_0x384968()?_0xc02b6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4257c6()?(_0x1893c5[_0xc02b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc02b6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59184c=_0x180e35(_0xc02b6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1893c5[_0xc02b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc02b6d([0x74,0x72,0x69,0x61,0x6c])&&(_0x59184c=_0x180e35(_0xc02b6d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49acb5()):_0xc02b6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc02b6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc02b6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc02b6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x384968(){const _0x4f0674=[_0xc02b6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc02b6d([0x74,0x72,0x69,0x61,0x6c])][_0xc02b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1893c5[_0xc02b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1275bc/0x3e8:0xe10*_0x26a24f;return _0x1893c5[_0xc02b6d([0x65,0x78,0x70])]<_0x4f0674;}function _0x44d9c5(){const _0x148ddd=_0x1893c5[_0xc02b6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x148ddd)return!0x1;if(_0x148ddd[_0xc02b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc02b6d([0x2a])))return!0x0;if(_0x148ddd[_0xc02b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc02b6d([0x54,0x43])))return!0x0;if(_0x148ddd[_0xc02b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc02b6d([0x52,0x54,0x43]))){if(_0x521b2b())return!0x0;if(_0x3faf2e()||_0x434c40())return!0x0;}return!0x1;}function _0x4257c6(){const _0x2be1f8=_0x1893c5[_0xc02b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2be1f8||0x0==_0x2be1f8[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11ad4c}=new URL(window[_0xc02b6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2be1f8[_0xc02b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ad4c))return!0x0;const _0x3b47d4=_0x11ad4c[_0xc02b6d([0x73,0x70,0x6c,0x69,0x74])](_0xc02b6d([0x2e]));return _0x2be1f8[_0xc02b6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50170a=>_0x50170a[_0xc02b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc02b6d([0x2a])))[_0xc02b6d([0x6d,0x61,0x70])](_0x59ee8a=>_0x59ee8a[_0xc02b6d([0x73,0x70,0x6c,0x69,0x74])](_0xc02b6d([0x2e])))[_0xc02b6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a2f4d=>_0x5a2f4d[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b47d4[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc02b6d([0x6d,0x61,0x70])](_0x30379b=>Array(_0x3b47d4[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30379b[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc02b6d([0x66,0x69,0x6c,0x6c])](_0x30379b[0x0]===_0xc02b6d([0x2a])?_0xc02b6d([0x2a]):'')[_0xc02b6d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30379b))[_0xc02b6d([0x73,0x6f,0x6d,0x65])](_0x3e52fe=>_0x3b47d4[_0xc02b6d([0x65,0x76,0x65,0x72,0x79])]((_0x53c447,_0x4df55a)=>_0x3e52fe[_0x4df55a]===_0x53c447||_0x3e52fe[_0x4df55a]===_0xc02b6d([0x2a])));}function _0x49acb5(){return _0x59184c&&_0x2cce4b?new window[(_0xc02b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bfcca,_0x32f6b7)=>{_0x59184c[_0xc02b6d([0x74,0x68,0x65,0x6e])](_0x2bfcca,_0x32f6b7),_0x2cce4b[_0xc02b6d([0x74,0x68,0x65,0x6e])](_0x3df379=>{_0x3df379!=_0xc02b6d([0x56,0x61,0x6c,0x69,0x64])&&_0x2bfcca(_0x3df379);},_0x32f6b7);}):_0x59184c||_0x2cce4b||_0xc02b6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5899ce(_0x388b11,_0x4b5bbd){return new window[(_0xc02b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27f6f8=>{if(_0x4a0750())return _0x27f6f8(_0xc02b6d([0x56,0x61,0x6c,0x69,0x64]));_0x119094(),_0x1a4c99[_0xc02b6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc02b6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45ced3=!0x1;const _0x32cb03=_0x1229f3();function _0x20a3ff(_0x2cb1b3){return!!_0x2cb1b3&&(typeof _0x2cb1b3===_0xc02b6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cb1b3===_0xc02b6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cb1b3[_0xc02b6d([0x74,0x68,0x65,0x6e])]===_0xc02b6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cb1b3[_0xc02b6d([0x63,0x61,0x74,0x63,0x68])]===_0xc02b6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x366ae1(_0x352836){_0x2a337a(_0x352836)[_0xc02b6d([0x74,0x68,0x65,0x6e])](_0x1e44c4=>{if(!_0x1e44c4||_0x1e44c4[_0xc02b6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc02b6d([0x6f,0x6b]))return _0xc02b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4226e9(_0x1330bc(_0x32cb03+_0x4b5bbd))!=_0x1e44c4[_0xc02b6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc02b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc02b6d([0x56,0x61,0x6c,0x69,0x64]);})[_0xc02b6d([0x74,0x68,0x65,0x6e])](_0x3c4ed0=>(_0x3b167a(),_0x3c4ed0),()=>{const _0x1991e5=_0x2bbf61();return null==_0x1991e5?(_0x3b167a(),_0xc02b6d([0x56,0x61,0x6c,0x69,0x64])):_0xc02b6d(_0x1275bc-_0x1991e5>(0x4f03da6f^_0x5f3f5c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc02b6d([0x74,0x68,0x65,0x6e])](_0x27f6f8)[_0xc02b6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27f6f8(_0xc02b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c17e3=0x6b39b0ef^_0x5f3f5c;function _0x3b167a(){const _0x41d480=_0xc02b6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4226e9(_0x1330bc(_0x388b11)),_0x3b87da=_0x59211d(_0x4226e9(window[_0xc02b6d([0x4d,0x61,0x74,0x68])][_0xc02b6d([0x63,0x65,0x69,0x6c])](_0x1275bc/_0x2c17e3)));window[_0xc02b6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc02b6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41d480,_0x3b87da);}function _0x2bbf61(){const _0x5d2ab8=_0xc02b6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4226e9(_0x1330bc(_0x388b11)),_0x106a83=window[_0xc02b6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc02b6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d2ab8);return _0x106a83?window[_0xc02b6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59211d(_0x106a83),0x10)*_0x2c17e3:null;}function _0x2a337a(_0x4c3a29){return new window[(_0xc02b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dd596,_0xe341dd)=>{_0x4c3a29[_0xc02b6d([0x74,0x68,0x65,0x6e])](_0x5dd596,_0xe341dd),window[_0xc02b6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe341dd,0x6b0e8aaf^_0x5f3f5c);});}}_0x1a4c99[_0xc02b6d([0x6f,0x6e])](_0xc02b6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43c86a,_0x2b1a08)=>{if(_0x2b1a08[0x0]!=_0x388b11)return _0x27f6f8(_0xc02b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b1a08[0x1]={..._0x2b1a08[0x1],[_0xc02b6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32cb03};},{[_0xc02b6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc02b6d([0x68,0x69,0x67,0x68])}),_0x1a4c99[_0xc02b6d([0x6f,0x6e])](_0xc02b6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3de2be=>{_0x20a3ff(_0x3de2be[_0xc02b6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45ced3=!0x0,_0x366ae1(_0x3de2be[_0xc02b6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc02b6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc02b6d([0x6c,0x6f,0x77])}),_0x55b5fb[_0xc02b6d([0x74,0x68,0x65,0x6e])](()=>{_0x45ced3||_0x27f6f8(_0xc02b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a0750(){return _0x1a4c99[_0xc02b6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc02b6d([0x76,0x69,0x65,0x77])][_0xc02b6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc02b6d([0x61,0x75,0x74,0x6f]);}function _0x119094(){_0x1a4c99[_0xc02b6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc02b6d([0x76,0x69,0x65,0x77])][_0xc02b6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc02b6d([0x61,0x75,0x74,0x6f]);}}function _0x180e35(_0x5cd4e5){const _0x4ef873=[new window[(_0xc02b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ca823=>setTimeout(_0x5ca823,0x6b0660a3^_0x5f3f5c)),_0x55b5fb[_0xc02b6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc02b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1367a6=>{let _0x540413=0x0;_0x1a4c99[_0xc02b6d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc02b6d([0x6f,0x6e])](_0xc02b6d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x139748,_0x5b81af)=>{_0x5b81af[0x0][_0xc02b6d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x540413++,_0x540413==(0x6b0f5f97^_0x5f3f5c)&&(_0x1367a6(),_0x139748[_0xc02b6d([0x6f,0x66,0x66])]());});}))];return window[_0xc02b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc02b6d([0x72,0x61,0x63,0x65])](_0x4ef873)[_0xc02b6d([0x74,0x68,0x65,0x6e])](()=>_0x5cd4e5);}async function _0x43936f(){await _0x55b5fb,_0x1a4c99[_0xc02b6d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc02b6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d585,_0x1a4c99[_0xc02b6d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc02b6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d585,_0x1a4c99[_0xc02b6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc02b6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x521b2b(){return _0x367352(_0xc02b6d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x213311(_0xc02b6d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc02b6d([0x73,0x74,0x61,0x74,0x65])]==_0xc02b6d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3faf2e(){return _0x367352(_0xc02b6d([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 _0x434c40(){return _0x367352(_0xc02b6d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14e571(_0x3b8b95){const _0x4ef036=_0x3ce4db();_0x1a4c99[_0x4ef036]=_0xc02b6d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b8b95,_0x3b8b95!=_0xc02b6d([0x56,0x61,0x6c,0x69,0x64])&&_0x43936f();}function _0x3ce4db(){const _0x697172=window[_0xc02b6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc02b6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc02b6d([0x6e,0x6f,0x77])]())[_0xc02b6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc02b6d([0x2e]),'');let _0x529341=_0xc02b6d([0x67]);for(let _0x13f93e=0x0;_0x13f93e<_0x697172[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13f93e+=0x2){let _0x52fcf3=window[_0xc02b6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x697172[_0xc02b6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13f93e,_0x13f93e+0x2));_0x52fcf3>=_0x40ab6f[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52fcf3-=_0x40ab6f[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x529341+=_0x40ab6f[_0x52fcf3];}return _0x529341;}function _0x4bada1(){const _0x18debe=_0x5cbb7e[_0xc02b6d([0x73,0x70,0x6c,0x69,0x74])](_0xc02b6d([0x2e]));if(0x3!=_0x18debe[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2beb6a(_0x18debe[0x1]);function _0x2beb6a(_0x3f6424){const _0x19d488=_0x31a71d(_0x3f6424);return _0x19d488&&_0x22a3bd()?_0x19d488:null;function _0x22a3bd(){const _0x2bf046=_0x19d488[_0xc02b6d([0x6a,0x74,0x69])],_0x3f11aa=window[_0xc02b6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bf046[_0xc02b6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bf046[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ba29d={..._0x19d488,[_0xc02b6d([0x6a,0x74,0x69])]:_0x2bf046[_0xc02b6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bf046[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ba29d[_0xc02b6d([0x76,0x63])],_0x1330bc(_0x3ba29d)==_0x3f11aa;}}}async function _0x47c1cc(){let _0x3460cc=!0x0;try{const _0x2a02f6=_0x5cbb7e[_0xc02b6d([0x73,0x70,0x6c,0x69,0x74])](_0xc02b6d([0x2e])),[_0x2f55b7,_0x34e09c,_0x451b00]=_0x2a02f6;return _0x19e8bc(_0x2f55b7),await _0x436b6e(_0x2f55b7,_0x34e09c,_0x451b00),_0x3460cc;}catch{return!0x1;}function _0x19e8bc(_0x1d1634){const _0x555429=_0x31a71d(_0x1d1634);_0x555429&&_0x555429[_0xc02b6d([0x61,0x6c,0x67])]==_0xc02b6d([0x45,0x53,0x32,0x35,0x36])||(_0x3460cc=!0x1);}async function _0x436b6e(_0x2564f7,_0x472229,_0x16a213){const _0x54f5b5=window[_0xc02b6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc02b6d([0x66,0x72,0x6f,0x6d])](_0x35aa4f(_0x16a213),_0x15ada9=>_0x15ada9[_0xc02b6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29b16f=new window[(_0xc02b6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc02b6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2564f7+_0xc02b6d([0x2e])+_0x472229),_0x1f150e=window[_0xc02b6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc02b6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f150e)return;const _0x4981db=await _0x1f150e[_0xc02b6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc02b6d([0x6a,0x77,0x6b]),_0x5acbda,{[_0xc02b6d([0x6e,0x61,0x6d,0x65])]:_0xc02b6d([0x45,0x43,0x44,0x53,0x41]),[_0xc02b6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc02b6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc02b6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f150e[_0xc02b6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc02b6d([0x6e,0x61,0x6d,0x65])]:_0xc02b6d([0x45,0x43,0x44,0x53,0x41]),[_0xc02b6d([0x68,0x61,0x73,0x68])]:{[_0xc02b6d([0x6e,0x61,0x6d,0x65])]:_0xc02b6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4981db,_0x54f5b5,_0x29b16f)||(_0x3460cc=!0x1);}}function _0x31a71d(_0xa210f7){return _0xa210f7[_0xc02b6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc02b6d([0x65,0x79]))?JSON[_0xc02b6d([0x70,0x61,0x72,0x73,0x65])](_0x35aa4f(_0xa210f7)):null;}function _0x35aa4f(_0x5b7f60){return window[_0xc02b6d([0x61,0x74,0x6f,0x62])](_0x5b7f60[_0xc02b6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc02b6d([0x2b]))[_0xc02b6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc02b6d([0x2f])));}function _0x1330bc(_0x5f000e){let _0x3e1ccb=0x1505;function _0x1ea6a6(_0x495d01){for(let _0x2f4142=0x0;_0x2f4142<_0x495d01[_0xc02b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f4142++){const _0x3ceeca=_0x495d01[_0xc02b6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f4142);_0x3e1ccb=(_0x3e1ccb<<0x5)+_0x3e1ccb+_0x3ceeca,_0x3e1ccb&=_0x3e1ccb;}}function _0x591d89(_0x50bba3){Array[_0xc02b6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50bba3)?_0x50bba3[_0xc02b6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x591d89):_0x50bba3&&typeof _0x50bba3==_0xc02b6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc02b6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50bba3)[_0xc02b6d([0x73,0x6f,0x72,0x74])]()[_0xc02b6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x68944,_0x4f5b3e])=>{_0x1ea6a6(_0x68944),_0x591d89(_0x4f5b3e);}):_0x1ea6a6(window[_0xc02b6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50bba3));}return _0x591d89(_0x5f000e),_0x3e1ccb>>>0x0;}function _0x4226e9(_0xb98386){return _0xb98386[_0xc02b6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc02b6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc02b6d([0x30]));}function _0x59211d(_0xfe8bc1){return _0xfe8bc1[_0xc02b6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc02b6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc02b6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x367352(_0x1972e4){return _0x1a4c99[_0xc02b6d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc02b6d([0x68,0x61,0x73])](_0x1972e4);}function _0x213311(_0x23046a){return _0x1a4c99[_0xc02b6d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc02b6d([0x67,0x65,0x74])](_0x23046a);}function _0x1d585(){}function _0xc02b6d(_0x5bf93c){return _0x5bf93c['map'](_0x52240a=>String['fromCharCode'](_0x52240a))['join']('');}_0x14e571(await _0x3351c4());}(this);}set['adapter'](_0x17311c){if(this['_adapter'])throw new _0x2dc02a('track-changes-adapter-already-set',this);this['_adapter']=_0x17311c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4fef35=!0x1,toJSON:_0x49d5ad=!0x1}={}){const _0x459e42=[];for(const _0x3a2b1d of this['_suggestions']['values']())_0x4fef35&&!_0x3a2b1d['isInContent']||_0x459e42['push'](_0x3a2b1d);return _0x49d5ad?_0x459e42['map'](_0x552a24=>_0x552a24['toJSON']()):_0x459e42;}['getSuggestion'](_0x18f7b4){const _0x403936=this['_suggestions']['get'](_0x18f7b4);if(!_0x403936)throw new _0x2dc02a('track-changes-suggestion-not-found',this);return _0x403936;}['hasSuggestion'](_0x327c2d){return this['_suggestions']['has'](_0x327c2d);}['addSuggestionData'](_0x2971c5){const {authorId:_0x206095,id:_0xa9b5b8,originalSuggestionId:_0xa37572,attributes:_0x20957a}=_0x2971c5,[_0x17828f,_0x182684]=_0x2971c5['type']['split'](':'),_0x4bbf36=this['_suggestions']['get'](_0xa9b5b8)||this['_createSuggestion'](_0x17828f,_0x182684,_0xa9b5b8,_0x206095,_0x20957a,_0xa37572);if(this['_addThreadToSuggestion'](_0x4bbf36),this['_checkSuggestionCorrectness'](_0x4bbf36,_0x17828f,_0x182684||null,_0x206095),_0x4bbf36['createdAt']=_0x2971c5['createdAt'],_0x4bbf36['_isDataLoaded']=!0x0,_0x20957a&&_0x20957a['@external']){const _0x55d5e2=_0x20957a['@external'],_0x5156ae=this['_getExternalAuthor'](_0x55d5e2['authorName']);_0x4bbf36['authoredAt']=_0x55d5e2['createdAt'],_0x4bbf36['author']=_0x5156ae,_0x4bbf36['isExternal']=!0x0;}else _0x4bbf36['authoredAt']=_0x2971c5['createdAt'];switch(_0x2971c5['data']&&(_0x4bbf36['data']=_0x2971c5['data']),_0x2971c5['attributes']&&(_0x4bbf36['attributes']=_0x2971c5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4bbf36['_saved']=!0x0),this['_suggestionState']['get'](_0x4bbf36)){case'notReady':this['_suggestionState']['set'](_0x4bbf36,'dataReady');break;case'markerReady':_0x4bbf36['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4bbf36])),this['_refreshSuggestionsChain'](new Set([_0x4bbf36])),this['_suggestionState']['set'](_0x4bbf36,'ready'),this['fire']('suggestionLoaded',_0x4bbf36)):this['_suggestionState']['set'](_0x4bbf36,'removed');}return _0x4bbf36;}['acceptSuggestion'](_0x23ebf5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d2ce5 of _0x23ebf5['getAllAdjacentSuggestions']())_0x3d2ce5['accept']();});});}['discardSuggestion'](_0x115366){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x360a87 of _0x115366['getAllAdjacentSuggestions']())_0x360a87['discard']();});});}['enableCommand'](_0x487efa,_0x44788c){const _0x5ad836=this['editor']['commands']['get'](_0x487efa);if(!_0x5ad836)throw new _0x2dc02a('track-changes-command-not-found',this,{'commandName':_0x487efa});if(this['_enabledCommands']['has'](_0x5ad836))throw new _0x2dc02a('track-changes-enable-command-twice',this,{'commandName':_0x487efa});this['_enabledCommands']['add'](_0x5ad836),_0x44788c&&_0x5ad836['on']('execute',(_0x396343,_0x20b440)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20b440['length']>0x0&&_0x20b440[_0x20b440['length']-0x1]&&_0x20b440[_0x20b440['length']-0x1]['forceDefaultExecution']?_0x20b440['pop']():(_0x396343['return']=_0x44788c((..._0x192a58)=>_0x5ad836['execute'](..._0x192a58,{'forceDefaultExecution':!0x0}),..._0x20b440),_0x396343['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x55c1d6){let _0x328875,_0x1aa63a;const _0x2c5eee=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x328875=_0x55c1d6();}catch(_0x4d1e45){_0x1aa63a=_0x4d1e45;}return _0x2c5eee||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1aa63a&&_0x2dc02a['rethrowUnexpectedError'](_0x1aa63a,this),_0x328875;}['markInsertion'](_0x2199b2,_0x3107ca=null,_0xac2259={}){if(_0x2199b2['isCollapsed'])return null;const _0x31f664=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xac2259['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22cfb7,meta:_0x2703aa}of this['_findSuggestions'](_0x2199b2,'insertion'))if(_0x2703aa['isOwn']){if(!_0x2703aa['isNextTo']){if(_0x2703aa['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x22cfb7,_0xac2259))continue;return _0x22cfb7;}if(Xt(_0x22cfb7,_0xac2259))return _0x22cfb7;this['_breakSuggestionMarker'](_0x22cfb7,_0x2199b2['start'],_0x2199b2['end']);break;}if(_0x3107ca==_0x22cfb7['subType']&&Xt(_0x22cfb7,_0xac2259)){const _0x1fc1a6=_0x22cfb7['getFirstRange']();return _0x1fc1a6['start']['isEqual'](_0x2199b2['end'])?this['_setSuggestionRange'](_0x22cfb7,this['_model']['createRange'](_0x2199b2['start'],_0x1fc1a6['end'])):this['_setSuggestionRange'](_0x22cfb7,this['_model']['createRange'](_0x1fc1a6['start'],_0x2199b2['end'])),_0x22cfb7;}}const _0x3350d2=_0x1229f3(),_0x3114e2=_0x31f664['id'],_0x3e5198=_0x3107ca?'insertion:'+_0x3107ca:'insertion',_0x2bbff8=this['_setSuggestionData']({'id':_0x3350d2,'type':_0x3e5198,'createdAt':new Date(),'authorId':_0x3114e2,'attributes':_0xac2259});return this['_addSuggestionMarker'](_0x3e5198,_0x3350d2,_0x3114e2,_0x2199b2),_0x2bbff8;}['markMultiRangeInsertion'](_0x34e9a4,_0x3927cd='multi',_0x5b1e2b={}){const _0x148efd=this['editor']['plugins']['get']('Users')['me'],_0x12b181=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3927cd,'join');this['_trackingSessionId']&&(_0x5b1e2b['trackingSessionId']=this['_trackingSessionId']);for(const _0x3486f0 of this['getSuggestions']())if(_0x3486f0['author']['id']==_0x148efd['id']&&'insertion'==_0x3486f0['type']&&_0x3486f0['subType']==_0x3927cd&&Xt(_0x3486f0,_0x5b1e2b)&&(_0x12b181(_0x3486f0['getRanges'](),_0x34e9a4)||_0x12b181(_0x34e9a4,_0x3486f0['getRanges']()))){for(const _0x4f419f of _0x34e9a4)_0x3486f0['addRange'](_0x4f419f);return _0x3486f0;}for(const {suggestion:_0x4bef2d,meta:_0x89de39}of this['_findSuggestions'](_0x34e9a4,'insertion')){if(!_0x89de39['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x89de39['containsRangeInObject'])continue;if(!Xt(_0x4bef2d,_0x5b1e2b))continue;let _0x54745c=!0x0;for(const _0x3a07c1 of _0x4bef2d['getRanges']())for(const _0x4ace20 of _0x34e9a4)if(!_0x3a07c1['containsRange'](_0x4ace20)){_0x54745c=!0x1;break;}if(_0x54745c)return _0x4bef2d;}const _0x344d6c=_0x1229f3(),_0x2bb813=_0x148efd['id'],_0x2f9f84='insertion:'+_0x3927cd,_0x4749d4=this['_setSuggestionData']({'id':_0x344d6c,'type':_0x2f9f84,'createdAt':new Date(),'authorId':_0x2bb813,'attributes':_0x5b1e2b});for(const _0x5b6660 of _0x34e9a4)this['_addSuggestionMarker'](_0x2f9f84,_0x344d6c,_0x2bb813,_0x5b6660,T['getMultiRangeId']());return _0x4749d4;}['markInlineFormat'](_0x40ac24,_0x3cd4b6,_0x3bcd16=null,_0x32e19d={}){if(_0x3bcd16=_0x3bcd16||Lt(_0x3cd4b6),_0x40ac24['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x32e19d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11b6eb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3bcd16,'accept');return this['forceDefaultExecution'](()=>_0x11b6eb([_0x40ac24],_0x3cd4b6,_0x32e19d)),null;}const _0x5d22ad=this['editor']['plugins']['get']('Users')['me'],_0x2af67b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x49602b,meta:_0x3c81ca}of this['_findSuggestions'](_0x40ac24,'insertion'))_0x3c81ca['isOwn']&&!_0x3c81ca['isInsideObject']&&_0x2af67b['push'](..._0x49602b['getRanges']());}const _0x327adb=function(_0x4681a3,_0x4f4278){const _0x582353=[];for(const _0x29150a of _0x4f4278){const _0x21108b=_0x4681a3['getIntersection'](_0x29150a);_0x21108b&&_0x582353['push'](_0x21108b);}return _0x582353;}(_0x40ac24,_0x2af67b),_0x3f18c0=function(_0x3a3365,_0x3fafda){const _0x1539df=[_0x3a3365];for(const _0x400ef3 of _0x3fafda){let _0x52cadf=0x0;for(;_0x52cadf<_0x1539df['length'];){const _0x4bffb8=_0x1539df[_0x52cadf]['getDifference'](_0x400ef3);_0x1539df['splice'](_0x52cadf,0x1,..._0x4bffb8),_0x52cadf+=_0x4bffb8['length'];}}return _0x1539df;}(_0x40ac24,_0x2af67b);_0x327adb['length']&&this['_model']['change'](()=>{for(const _0x2c6d59 of _0x327adb){const _0x53af09=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3bcd16,'accept');this['forceDefaultExecution'](()=>_0x53af09([_0x2c6d59],_0x3cd4b6,_0x32e19d));}});for(const _0x3baf42 of _0x3f18c0){let _0x3832eb=null,_0x241f9c=_0x3baf42['start'],_0x54e84a=_0x3baf42['end'];for(const {suggestion:_0x5d566d,meta:_0x356984}of this['_findSuggestions'](_0x3baf42,'formatInline')){if(!_0x356984['isOwn'])continue;if(_0x5d566d['subType']!=_0x3bcd16)continue;if(!Xt(_0x5d566d,_0x32e19d))continue;const _0x52632f=_0x5d566d['getFirstRange']();if(_0x52632f['containsRange'](_0x3baf42,!0x0))return null;_0x241f9c=_0x241f9c['isBefore'](_0x52632f['start'])?_0x241f9c:_0x52632f['start'],_0x54e84a=_0x54e84a['isAfter'](_0x52632f['end'])?_0x54e84a:_0x52632f['end'],_0x3832eb?_0x52632f['start']['isBefore'](_0x3832eb['getFirstRange']()['start'])?(_0x3832eb['removeMarkers'](),_0x3832eb=_0x5d566d):_0x5d566d['removeMarkers']():_0x3832eb=_0x5d566d;}const _0x1fdf03=this['_model']['createRange'](_0x241f9c,_0x54e84a);if(_0x3832eb)this['_setSuggestionRange'](_0x3832eb,_0x1fdf03);else{const _0x4fb92c=_0x1229f3(),_0x3189bb=_0x5d22ad['id'];this['_setSuggestionData']({'id':_0x4fb92c,'type':'formatInline:'+_0x3bcd16,'data':_0x3cd4b6,'createdAt':new Date(),'authorId':_0x3189bb,'attributes':_0x32e19d}),this['_addSuggestionMarker']('formatInline:'+_0x3bcd16,_0x4fb92c,_0x3189bb,_0x1fdf03);}}return null;}['markBlockFormat'](_0x3200a2,_0x4d0cf2,_0x6a85c9=[],_0x5f2153=null,_0x43a68f={}){_0x4d0cf2['formatGroupId']||(_0x4d0cf2['formatGroupId']=_0x4d0cf2['commandName']),_0x4d0cf2['multipleBlocks']=_0x3200a2['is']('range'),_0x5f2153=_0x5f2153||Lt(_0x4d0cf2);const _0x46cdfa=_0x6a85c9['map'](_0xf953bf=>zt(_0xf953bf,this['_model'])),_0x5884eb=_0x3200a2['is']('range')?_0x3200a2:zt(_0x3200a2,this['_model']);if(this['_trackingSessionId']&&(_0x43a68f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x345322=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5f2153,'accept');return this['forceDefaultExecution'](()=>_0x345322([_0x5884eb],_0x4d0cf2,_0x43a68f)),null;}_0x46cdfa['push'](_0x5884eb);let _0x1e5e60=!0x0;for(const _0x3f11ce of _0x46cdfa)if(!this['_rangeIsInLocalUserInsertion'](_0x3f11ce)){_0x1e5e60=!0x1;break;}if(_0x1e5e60&&'always'!==this['_trackFormatChanges']){const _0x1bfeb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5f2153,'accept');return this['forceDefaultExecution'](()=>_0x1bfeb6([_0x5884eb],_0x4d0cf2,_0x43a68f)),null;}let _0x35a0fb=null,_0x5782da=_0x5884eb['start'],_0x3eba51=_0x5884eb['end'];for(const {suggestion:_0x26e0e3,meta:_0x36870c}of this['_findSuggestions'](_0x5884eb,'formatBlock')){if(!_0x36870c['isOwn'])continue;if(_0x36870c['isNextTo']||_0x36870c['containsRangeInObject']||_0x36870c['isInsideObject'])continue;if(_0x26e0e3['data']['formatGroupId']!=_0x4d0cf2['formatGroupId'])continue;if(!Xt(_0x26e0e3,_0x43a68f))continue;const _0x20214d=_0x26e0e3['getFirstRange']();if(_0x26e0e3['subType']==_0x5f2153){if(_0x20214d['containsRange'](_0x5884eb,!0x0))return null;_0x5782da=_0x5782da['isBefore'](_0x20214d['start'])?_0x5782da:_0x20214d['start'],_0x3eba51=_0x3eba51['isAfter'](_0x20214d['end'])?_0x3eba51:_0x20214d['end'],_0x35a0fb?_0x20214d['start']['isBefore'](_0x35a0fb['getFirstRange']()['start'])?(_0x35a0fb['removeMarkers'](),_0x35a0fb=_0x26e0e3):_0x26e0e3['removeMarkers']():_0x35a0fb=_0x26e0e3;}else{const _0x48729d=_0x5884eb['getIntersection'](_0x20214d);this['_cutOutSuggestionMarker'](_0x26e0e3,_0x48729d);}}const _0xd5384e=this['editor']['plugins']['get']('Users')['me'],_0x4e206=_0x1229f3(),_0x1c661d=_0xd5384e['id'];if(_0x35a0fb)return this['_setSuggestionRange'](_0x35a0fb,this['_model']['createRange'](_0x5782da,_0x3eba51)),_0x35a0fb;{const _0x29c046=this['_setSuggestionData']({'id':_0x4e206,'type':'formatBlock:'+_0x5f2153,'data':_0x4d0cf2,'createdAt':new Date(),'authorId':_0x1c661d,'attributes':_0x43a68f});return this['_addSuggestionMarker']('formatBlock:'+_0x5f2153,_0x4e206,_0x1c661d,this['_model']['createRange'](_0x5782da,_0x3eba51)),_0x29c046;}}['markMultiRangeBlockFormat'](_0x1c9c9e,_0x4d2d2d,_0x5fdfeb=[],_0x71de8e=null,_0x93c511={}){_0x4d2d2d['formatGroupId']||(_0x4d2d2d['formatGroupId']=_0x4d2d2d['commandName']);const _0xb7e0f0=_0x1c9c9e[0x0];_0x4d2d2d['multipleBlocks']=_0xb7e0f0['is']('range'),_0x71de8e=_0x71de8e||Lt(_0x4d2d2d);const _0x4613c8=_0x5fdfeb['map'](_0xf31dff=>zt(_0xf31dff,this['_model'])),_0x3480c1=_0xb7e0f0['is']('range')?_0x1c9c9e:_0x1c9c9e['map'](_0x5a1fc9=>zt(_0x5a1fc9,this['_model']));if(this['_trackingSessionId']&&(_0x93c511['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d7ad8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x71de8e,'accept');return this['forceDefaultExecution'](()=>_0x1d7ad8(_0x3480c1,_0x4d2d2d,_0x93c511)),null;}_0x4613c8['push'](..._0x3480c1);let _0x19a413=!0x0;for(const _0x28e543 of _0x4613c8)if(!this['_rangeIsInLocalUserInsertion'](_0x28e543)){_0x19a413=!0x1;break;}if(_0x19a413&&'always'!==this['_trackFormatChanges']){const _0x225b03=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x71de8e,'accept');return this['forceDefaultExecution'](()=>_0x225b03(_0x3480c1,_0x4d2d2d,_0x93c511)),null;}const _0x1d6c40=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f6a94 of this['getSuggestions']()){const _0x4d3e90=_0x1f6a94['data'];if(_0x1f6a94['author']['id']!=_0x1d6c40['id'])continue;if('formatBlock'!=_0x1f6a94['type']||_0x4d3e90['formatGroupId']!=_0x4d2d2d['formatGroupId'])continue;if(!Xt(_0x1f6a94,_0x93c511))continue;const _0x7df4bd=_0x1f6a94['subType']==_0x71de8e;for(let _0x4c02d9=0x0;_0x4c02d9<_0x3480c1['length'];_0x4c02d9++){const _0x4ea8d4=_0x3480c1[_0x4c02d9];for(const _0x25e4cd of _0x1f6a94['getMarkers']()){const _0x88999a=_0x25e4cd['getRange']();if(_0x4ea8d4['isEqual'](_0x88999a)){_0x7df4bd?(_0x3480c1['splice'](_0x4c02d9,0x1),_0x4c02d9--):_0x1f6a94['removeMarker'](_0x25e4cd['name']);break;}}}}if(0x0==_0x3480c1['length'])return null;const _0x68f176=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x71de8e,'join');for(const _0x528bcb of this['getSuggestions']()){const _0x5c7ec8=_0x528bcb['data'];if(_0x528bcb['author']['id']==_0x1d6c40['id']&&('formatBlock'==_0x528bcb['type']&&_0x5c7ec8['formatGroupId']==_0x4d2d2d['formatGroupId']&&_0x528bcb['subType']==_0x71de8e&&Xt(_0x528bcb,_0x93c511)&&(_0x68f176(_0x528bcb['getRanges'](),_0x3480c1)||_0x68f176(_0x3480c1,_0x528bcb['getRanges']())))){for(const _0x340b45 of _0x3480c1)_0x528bcb['addRange'](_0x340b45);return _0x528bcb;}}const _0x44f9c7=_0x1229f3(),_0xff318e=_0x1d6c40['id'],_0x25fdf0='formatBlock:'+_0x71de8e,_0x1ff064=this['_setSuggestionData']({'id':_0x44f9c7,'type':_0x25fdf0,'data':_0x4d2d2d,'createdAt':new Date(),'authorId':_0xff318e,'attributes':_0x93c511});for(const _0x1c2092 of _0x3480c1)this['_addSuggestionMarker'](_0x25fdf0,_0x44f9c7,_0xff318e,_0x1c2092,T['getMultiRangeId']());return _0x1ff064;}['markDeletion'](_0x3e74f0,_0x155f62=null,_0x12244e={}){if(_0x3e74f0['isCollapsed'])return null;const _0x3c165d=this['editor']['plugins']['get']('Users')['me'],_0x4182dc=new _0x150f02(_0x3e74f0['start'],_0x3e74f0['end']);this['_trackingSessionId']&&(_0x12244e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x59dd00,meta:_0x4302be}of this['_findSuggestions'](_0x4182dc,'insertion'))if(_0x4302be['isOwn']&&!_0x4302be['isNextTo']){if(_0x59dd00['isMultiRange']){const _0x597295=_0x59dd00['getRanges']()['filter'](_0x4cd542=>'$graveyard'!=_0x4cd542['root']['rootName']);_0x597295['every'](_0x37db5e=>_0x4182dc['containsRange'](_0x37db5e,!0x0))&&_0x59dd00['discard']();if(_0x597295['some'](_0xa6e9d=>_0xa6e9d['containsRange'](_0x4182dc,!0x0))){const _0x1671c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x155f62,'accept');return this['forceDefaultExecution'](()=>_0x1671c0([_0x4182dc],null,_0x12244e)),null;}}else{const _0x200f03=_0x4182dc['getIntersection'](_0x59dd00['getFirstRange']());null!==_0x200f03&&_0x59dd00['_onDiscard']([_0x200f03],null,_0x12244e);}}if(_0x4182dc['detach'](),_0x4182dc['isCollapsed']||'$graveyard'==_0x4182dc['root']['rootName'])return null;let _0x17b2b7=null,_0x284a0c=_0x4182dc['start'],_0x28bff1=_0x4182dc['end'];const _0x238a57=this['_findSuggestions'](_0x4182dc,'deletion');for(const {suggestion:_0x3ebe6f,meta:_0x4e1fa4}of _0x238a57){const _0x633d2e=this['_model']['createRange'](_0x284a0c,_0x28bff1);if(_0x4e1fa4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e1fa4['containsRangeInObject']&&!_0x4e1fa4['isInsideObject'])){if(_0x3ebe6f['isMultiRange']){if(!Xt(_0x3ebe6f,_0x12244e))continue;let _0x50e7a0=!0x0;for(const _0x1f36b8 of _0x3ebe6f['getRanges']()){if(_0x1f36b8['containsRange'](_0x633d2e,!0x0))return _0x3ebe6f;_0x633d2e['containsRange'](_0x1f36b8)||(_0x50e7a0=!0x1);}_0x50e7a0&&_0x3ebe6f['discard']();}else{const _0x50aaf2=_0x3ebe6f['getFirstRange']();if(_0x50aaf2['containsRange'](_0x633d2e,!0x0))return _0x3ebe6f;if(!Xt(_0x3ebe6f,_0x12244e)){_0x633d2e['containsRange'](_0x50aaf2)?_0x3ebe6f['removeMarkers']():_0x50aaf2['containsPosition'](_0x284a0c)?_0x284a0c=_0x50aaf2['end']:_0x50aaf2['containsPosition'](_0x28bff1)&&(_0x28bff1=_0x50aaf2['start']);continue;}_0x284a0c=_0x284a0c['isBefore'](_0x50aaf2['start'])?_0x284a0c:_0x50aaf2['start'],_0x28bff1=_0x28bff1['isAfter'](_0x50aaf2['end'])?_0x28bff1:_0x50aaf2['end'],_0x12244e=Object['assign']({},_0x3ebe6f['attributes']),_0x17b2b7?_0x50aaf2['start']['isBefore'](_0x17b2b7['getFirstRange']()['start'])?(_0x17b2b7['removeMarkers'](),_0x17b2b7=_0x3ebe6f):_0x3ebe6f['removeMarkers']():_0x17b2b7=_0x3ebe6f;}}}if(_0x17b2b7)return this['_setSuggestionRange'](_0x17b2b7,this['_model']['createRange'](_0x284a0c,_0x28bff1)),_0x17b2b7;{const _0x85aafa=_0x1229f3(),_0x177db8=this['_model']['createRange'](_0x284a0c,_0x28bff1),_0x3f8f6e=_0x3c165d['id'],_0x5de3de=_0x155f62?'deletion:'+_0x155f62:'deletion',_0x2aaa77=this['_setSuggestionData']({'id':_0x85aafa,'type':_0x5de3de,'createdAt':new Date(),'authorId':_0x3f8f6e,'attributes':_0x12244e});return this['_addSuggestionMarker'](_0x5de3de,_0x85aafa,_0x3f8f6e,_0x177db8),_0x2aaa77;}}['markMultiRangeDeletion'](_0x5c0fc1,_0x2811ef='multi',_0x5a84f2={}){const _0x1a6696=this['editor']['plugins']['get']('Users')['me'],_0x3d8b69=_0x5c0fc1['map'](_0x2ce0ab=>new _0x150f02(_0x2ce0ab['start'],_0x2ce0ab['end'])),_0x45030e=new Set();this['_trackingSessionId']&&(_0x5a84f2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x45d65d,meta:_0x4d3fe8}of this['_findSuggestions'](_0x3d8b69,'insertion'))_0x4d3fe8['isOwn']&&!_0x4d3fe8['isNextTo']&&_0x45030e['add'](_0x45d65d);for(const _0x3863f9 of _0x45030e)if(_0x3863f9['isMultiRange']){const _0x2d588e=_0x3863f9['getRanges']();(!_0x3863f9['attributes']||!_0x3863f9['attributes']['skipNestingCheck'])&&(_0x2d588e['every'](_0x93bea1=>_0x3d8b69['some'](_0x1a75cb=>_0x1a75cb['containsRange'](_0x93bea1,!0x0)))&&_0x3863f9['discard']());if(_0x3d8b69['every'](_0x43b0f0=>_0x2d588e['some'](_0x271de2=>_0x271de2['containsRange'](_0x43b0f0,!0x0)))){const _0x3cccd0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2811ef,'accept');return this['forceDefaultExecution'](()=>_0x3cccd0(_0x5c0fc1,null,_0x5a84f2)),null;}}else{const _0x35c3e0=_0x3863f9['getFirstRange']();_0x3d8b69['some'](_0x594de8=>_0x594de8['containsRange'](_0x35c3e0,!0x0))&&_0x3863f9['discard']();if(_0x3d8b69['every'](_0x3e1702=>_0x35c3e0['containsRange'](_0x3e1702,!0x0))){const _0x6f4a98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2811ef,'accept');return this['forceDefaultExecution'](()=>_0x6f4a98(_0x3d8b69,null,_0x5a84f2)),null;}}const _0x483a17=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2811ef,'join');let _0x3c1993=null;for(const _0x562438 of this['getSuggestions']())if(_0x562438['author']['id']==_0x1a6696['id']&&_0x562438['isInContent']&&'deletion'==_0x562438['type']&&_0x562438['subType']==_0x2811ef&&Xt(_0x562438,_0x5a84f2)&&(_0x483a17(_0x562438['getRanges'](),_0x3d8b69)||_0x483a17(_0x3d8b69,_0x562438['getRanges']()))){if(_0x3c1993){if(_0x562438['commentThread']&&_0x562438['commentThread']['length'])continue;for(const _0x584343 of _0x562438['getRanges']())_0x3c1993['isIntersectingWithRange'](_0x584343)||_0x3c1993['addRange'](_0x584343);_0x562438['removeMarkers']();}else{_0x3c1993=_0x562438;for(const _0x21e83b of _0x3d8b69)_0x562438['isIntersectingWithRange'](_0x21e83b)||_0x562438['addRange'](_0x21e83b);}}if(_0x3c1993)return _0x3c1993;_0x45030e['clear']();for(const {suggestion:_0x5b513e,meta:_0x516b16}of this['_findSuggestions'](_0x3d8b69,'deletion'))_0x516b16['isOwn']&&(this['_mergeNestedSuggestions']||!_0x516b16['containsRangeInObject']&&!_0x516b16['isInsideObject'])&&Xt(_0x5b513e,_0x5a84f2)&&_0x45030e['add'](_0x5b513e);for(const _0x5264e0 of _0x45030e){const _0x5ace89=_0x5264e0['getRanges']();if(!_0x5a84f2||!_0x5a84f2['skipNestingCheck']){if(_0x3d8b69['every'](_0x4d3780=>_0x5ace89['some'](_0xdbff89=>_0xdbff89['containsRange'](_0x4d3780,!0x0))))return _0x5264e0;}(!_0x5264e0['attributes']||!_0x5264e0['attributes']['skipNestingCheck'])&&(_0x5ace89['every'](_0x1bac0e=>_0x3d8b69['some'](_0x175b90=>_0x175b90['containsRange'](_0x1bac0e,!0x0)))&&_0x5264e0['discard']());}const _0xdcca57=_0x1229f3(),_0x24d2b8=_0x1a6696['id'],_0x53948b='deletion:'+_0x2811ef,_0x5ba941=this['_setSuggestionData']({'id':_0xdcca57,'type':_0x53948b,'createdAt':new Date(),'authorId':_0x24d2b8,'attributes':_0x5a84f2});for(const _0x378083 of _0x3d8b69)_0x378083['detach'](),_0x378083['isCollapsed']||'$graveyard'==_0x378083['root']['rootName']||this['_addSuggestionMarker'](_0x53948b,_0xdcca57,_0x24d2b8,_0x378083,T['getMultiRangeId']());return _0x5ba941;}['markAttributeChange'](_0x513eea,_0x840472,_0x105797,_0x4f427b,_0x2126e6){if(_0x513eea['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x50c305=this['editor']['plugins']['get']('Users')['me']['id'],_0x54129f=Array['from'](this['_suggestions']['values']())['filter'](_0x5331b6=>'attribute'==_0x5331b6['type']&&_0x5331b6['data']['key']==_0x840472&&_0x5331b6['isIntersectingWithRange'](_0x513eea));if(this['_trackingSessionId']&&(_0x2126e6['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1574d6=this['_findSuggestions'](_0x513eea,'insertion')['filter'](({meta:_0x32755b})=>_0x32755b['isOwn']&&!_0x32755b['isInsideObject']&&!_0x32755b['isNextTo'])['map'](({suggestion:_0x3b118f})=>_0x3b118f);_0x54129f['unshift'](..._0x1574d6);}const _0x354dde=new Map([[_0x513eea,_0x105797]]);for(const _0x232eaf of _0x54129f){const _0x1d4427='attribute'==_0x232eaf['type']?_0x232eaf['data']['oldValue']:void 0x0,_0x143031=_0x232eaf['getFirstRange'](),_0x136f5e=Array['from'](_0x354dde['keys']())['find'](_0xf18b8f=>_0xf18b8f['isIntersecting'](_0x143031));if(!_0x136f5e)continue;const _0x9dcb47=_0x136f5e['getDifference'](_0x143031);this['_isBlockAttribute'](_0x840472)&&'insertion'==_0x232eaf['type']&&0x0!=_0x9dcb47['length']||(_0x354dde['delete'](_0x136f5e),_0x9dcb47['forEach'](_0x419b6b=>{_0x354dde['set'](_0x419b6b,_0x105797);}),'insertion'!=_0x232eaf['type']&&_0x1d4427!=_0x4f427b&&_0x354dde['set'](_0x136f5e['getIntersection'](_0x143031),_0x1d4427));}const _0x4c0768=[];for(const [_0xe7e6d2,_0xdd8a56]of _0x354dde){const _0xcc1147=_0x1229f3(),_0x13533b={'key':_0x840472,'oldValue':_0xdd8a56,'newValue':_0x4f427b};_0x840472['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':_0x840472});const _0x3c4990=('attribute:'+(_0x840472+'|'+Lt({'newValue':_0x4f427b})))['substring'](0x0,0x3c),_0x5d40a7=this['_setSuggestionData']({'id':_0xcc1147,'type':_0x3c4990,'data':_0x13533b,'createdAt':new Date(),'authorId':_0x50c305,'attributes':_0x2126e6});_0x4c0768['push'](_0x5d40a7),this['_addSuggestionMarker'](_0x3c4990,_0xcc1147,_0x50c305,_0xe7e6d2);}return _0x4c0768;}['enableDefaultAttributesIntegration'](_0x208d3f){this['enableCommand'](_0x208d3f,(_0x3e5e7a,..._0x1771be)=>{this['recordAttributeChanges'](()=>{_0x3e5e7a(..._0x1771be);});});}['registerBlockAttribute'](_0x4fb2f7){this['_blockAttributeKeys']['add'](_0x4fb2f7);}['registerInlineAttribute'](_0x4caee6){this['_inlineAttributeKeys']['add'](_0x4caee6);}['startTrackingSession'](_0x5a0410){return this['_trackingSessionId']=void 0x0!==_0x5a0410?_0x5a0410:_0x1229f3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x18eb16){return'attribute'==_0x18eb16['type']?_0x18eb16['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3aa531,_0x41e8d0){const _0x9e19e0=_0x3aa531['getFirstMarker']();this['_model']['change'](_0x12e07b=>{_0x12e07b['updateMarker'](_0x9e19e0,{'range':_0x41e8d0});});}['_addThreadToSuggestion'](_0x55d099){const _0x3c4937=_0x55d099['id'],_0x499f17=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c4937)||this['_commentsRepository']['addCommentThread']({'channelId':_0x499f17,'threadId':_0x3c4937,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x54e1de=this['_commentsRepository']['getCommentThread'](_0x3c4937);_0x54e1de['unbind']('isRemovable'),_0x54e1de['isRemovable']=!0x1,_0x55d099['commentThread']=_0x54e1de;}['_checkSuggestionCorrectness'](_0x367d04,_0x2290df,_0x2e17fc,_0x315e31){if(_0x367d04['type']!=_0x2290df||_0x367d04['subType']!=_0x2e17fc||_0x367d04['creator']['id']!=_0x315e31)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2dc02a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35559c,_0x3602a4){const _0x57202e=_0x35559c['getFirstRange']();if(_0x3602a4['isEqual'](_0x57202e))_0x35559c['removeMarkers']();else{if(_0x57202e['containsRange'](_0x3602a4)){const _0x29664b=this['_model']['createPositionAt'](_0x3602a4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35559c,this['_model']['createRange'](_0x57202e['start'],_0x29664b));const _0x2bbc09=_0x1229f3(),_0x1e7bd8=_0x35559c['creator']['id'],_0x27539b=_0x35559c['type']+':'+_0x35559c['subType'];this['_setSuggestionData']({'id':_0x2bbc09,'type':_0x27539b,'createdAt':new Date(),'authorId':_0x1e7bd8,'data':_0x35559c['data'],'attributes':_0x35559c['attributes']});const _0x145a33=this['_model']['createPositionAt'](_0x3602a4['end']['parent'],'after'),_0x27f40c=this['_model']['createRange'](_0x145a33,_0x57202e['end']);this['_addSuggestionMarker'](_0x27539b,_0x2bbc09,_0x1e7bd8,_0x27f40c);}else{if(_0x57202e['containsPosition'](_0x3602a4['start'])){const _0x2b82d7=this['_model']['createPositionAt'](_0x3602a4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35559c,this['_model']['createRange'](_0x57202e['start'],_0x2b82d7));}else{const _0x2cb846=this['_model']['createPositionAt'](_0x3602a4['end']['parent'],'after');this['_setSuggestionRange'](_0x35559c,this['_model']['createRange'](_0x2cb846,_0x57202e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3fda57){for(const {suggestion:_0x227bfe,meta:_0x950c3c}of this['_findSuggestions'](_0x3fda57,'insertion')){if(!_0x950c3c['isOwn'])continue;const _0x30a2f2=_0x227bfe['getRanges']();for(const _0x144233 of _0x30a2f2)if(!_0x3fda57['getDifference'](_0x144233)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1ea21b){return this['editor']['plugins']['get']('Users')['getUser'](_0x1ea21b);}['_getExternalAuthor'](_0x19494a){const _0x587b62=this['editor']['plugins']['get']('Users'),_0x20fb39=_0x21c96b('external:'+_0x19494a),_0x4f59e7=_0x587b62['getUser'](_0x20fb39);return _0x4f59e7||_0x587b62['addUser']({'id':_0x20fb39,'name':_0x19494a});}['_createSuggestion'](_0x4a981e,_0x2863ce,_0x41149c,_0x43adc5,_0x479fdf,_0x47c195){const _0x1704b2=this['_getAuthorFromId'](_0x43adc5);if(!_0x1704b2)throw new _0x2dc02a('track-changes-user-not-found',this,{'authorId':_0x43adc5,'suggestionId':_0x41149c});const _0x4dd964=this['_suggestionFactory']['buildSuggestion'](_0x4a981e,_0x2863ce,_0x41149c,_0x1704b2,_0x479fdf,_0x47dffa=>{this['_updateSuggestionData'](_0x41149c,{'attributes':_0x47dffa});const _0x1c1673=this['getSuggestion'](_0x41149c);this['_joinWithAdjacentSuggestions'](new Set([_0x1c1673])),this['_refreshSuggestionsChain'](new Set([_0x1c1673]));},_0x47c195);return this['listenTo'](_0x4dd964,'accept',()=>{this['_updateSuggestionData'](_0x41149c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4dd964,'discard',()=>{this['_updateSuggestionData'](_0x41149c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x41149c,_0x4dd964),this['_suggestionState']['set'](_0x4dd964,'notReady'),_0x4dd964;}['_splitMarkerName'](_0x132cf3){const _0x188372=_0x132cf3['split'](':');return{'group':_0x188372[0x0],'type':_0x188372[0x1],'subType':_0x188372['length']>=0x5?_0x188372[0x2]:null,'id':_0x188372['length']<0x5?_0x188372[0x2]:_0x188372[0x3],'authorId':_0x188372['length']<0x5?_0x188372[0x3]:_0x188372[0x4],'markerCount':0x6==_0x188372['length']?_0x188372[0x5]:null};}['_breakSuggestionMarker'](_0x45e8c1,_0x40ebd1,_0x1da9b8){const _0x1c7c50=_0x45e8c1['getFirstRange'](),_0x7bb693=_0x1c7c50['start'],_0x7c4d7e=_0x1c7c50['end'];this['_setSuggestionRange'](_0x45e8c1,this['_model']['createRange'](_0x7bb693,_0x40ebd1));const _0x4096de=_0x1229f3(),_0x2314d7=_0x45e8c1['creator']['id'],_0x35f817=_0x45e8c1['type']+(_0x45e8c1['subType']?':'+_0x45e8c1['subType']:'');this['_setSuggestionData']({'id':_0x4096de,'type':_0x35f817,'createdAt':new Date(),'authorId':_0x2314d7,'originalSuggestionId':_0x45e8c1['_originalSuggestionId']||_0x45e8c1['id'],'attributes':_0x45e8c1['attributes'],'data':_0x45e8c1['data']});const _0x58186b=this['_getAttributeKey'](_0x45e8c1);('formatBlock'==_0x45e8c1['type']||_0x58186b&&this['_isBlockAttribute'](_0x58186b))&&(_0x1da9b8=this['_model']['createPositionBefore'](_0x1da9b8['parent'])),this['_addSuggestionMarker'](_0x35f817,_0x4096de,_0x2314d7,this['_model']['createRange'](_0x1da9b8,_0x7c4d7e));}['_findSuggestions'](_0x40d871,_0x58727e=null){const _0x16ef45=[],_0x34120a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x40d871)||(_0x40d871=[_0x40d871]);for(const _0x181954 of this['getSuggestions']()){if(!_0x181954['isInContent'])continue;if(_0x58727e&&_0x181954['type']!=_0x58727e)continue;let _0x47c9df=!0x1;for(const _0x1eecc8 of _0x181954['getRanges']()){for(const _0x580331 of _0x40d871){const _0x2ef9f9=_0x580331['start']['isEqual'](_0x1eecc8['end'])||_0x580331['end']['isEqual'](_0x1eecc8['start']);if(_0x2ef9f9||_0x580331['getIntersection'](_0x1eecc8)){const _0x546096=_0x580331['containsRange'](_0x1eecc8)&&Ft(this['_model']['schema'],_0x1eecc8['start'],_0x580331),_0xa4c9fe=_0x1eecc8['containsRange'](_0x580331)&&Ft(this['_model']['schema'],_0x580331['start'],_0x1eecc8);_0x16ef45['push']({'suggestion':_0x181954,'meta':{'isOwn':_0x34120a==_0x181954['author'],'isNextTo':_0x2ef9f9,'isInsideObject':_0x546096,'containsRangeInObject':_0xa4c9fe}}),_0x47c9df=!0x0;break;}}if(_0x47c9df)break;}}return _0x16ef45;}['_addSuggestionMarker'](_0x2b3e82,_0x3facbc,_0x9de0d8,_0x150550,_0x2ab970){this['_model']['change'](_0x8cb4e=>{let _0x14d18c='suggestion:'+_0x2b3e82+':'+_0x3facbc+':'+_0x9de0d8;_0x2ab970&&(_0x14d18c=_0x14d18c+':'+_0x2ab970),_0x8cb4e['addMarker'](_0x14d18c,{'range':_0x150550,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x397d1f){const _0x2d5d61=_0x397d1f['previous'],_0x486249=_0x397d1f['next'];_0x397d1f['previous']=null,_0x397d1f['next']=null,null!=_0x2d5d61&&_0x2d5d61['next']==_0x397d1f&&(_0x2d5d61['next']=_0x486249),null!=_0x486249&&_0x486249['previous']==_0x397d1f&&(_0x486249['previous']=_0x2d5d61),'ready'==this['_suggestionState']['get'](_0x397d1f)&&(this['_suggestionState']['set'](_0x397d1f,'removed'),this['fire']('suggestionUnloaded',_0x397d1f,_0x2d5d61,_0x486249));}['_setSuggestionData'](_0x1ebe3e){const _0x74b8b1=_0x1ebe3e['id'],_0x3b02c=this['addSuggestionData'](_0x1ebe3e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4c911b=this['editor']['plugins']['get']('PendingActions'),_0x21069b=_0x3b02c['hasComments'],_0x483359=_0x3b02c['subType']?_0x3b02c['type']+':'+_0x3b02c['subType']:_0x3b02c['type'],_0x39e914=this['editor']['locale'],_0x11eae0=_0x4c911b['add'](o(_0x39e914,'PENDING_ACTION_SUGGESTION')),_0x2df7a2={'id':_0x74b8b1,'type':_0x483359,'hasComments':_0x21069b,'data':_0x1ebe3e['data']||null,'originalSuggestionId':_0x1ebe3e['originalSuggestionId']||null,'attributes':_0x3b02c['attributes']};this['_adapter']['addSuggestion'](_0x2df7a2)['then'](_0x15778e=>{_0x3b02c['_saved']=!0x0,_0x4c911b['remove'](_0x11eae0),_0x15778e&&_0x15778e['createdAt']&&(this['_suggestions']['get'](_0x74b8b1)['createdAt']=_0x15778e['createdAt']);})['catch'](_0x5c3295=>{throw _0x2ae079('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b02c['discard']();}),_0x3b02c['stopListening'](),this['_suggestions']['delete'](_0x3b02c['id']),this['_suggestionState']['delete'](_0x3b02c),_0x5c3295;});}return _0x3b02c;}['_isBlockAttribute'](_0x130297){return this['_blockAttributeKeys']['has'](_0x130297);}['_isInlineAttribute'](_0x152cc8){return this['_inlineAttributeKeys']['has'](_0x152cc8);}['_updateSuggestionData'](_0x1b611b,_0x5a4ae8){const _0x3586eb=this['editor']['plugins']['get']('PendingActions'),_0x4559aa=this['getSuggestion'](_0x1b611b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4559aa['_saved']){const _0x4ceacc=_0x3586eb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1b611b,_0x5a4ae8)['then'](()=>{_0x3586eb['remove'](_0x4ceacc);});}else _0x4559aa['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1b611b,_0x5a4ae8);});}}['_getSuggestionData'](_0x26dc72){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2dc02a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26dc72);}['_handleNewSuggestionMarker'](_0x18d224){const {id:_0x4edff0,type:_0x205ed1,subType:_0x3c26d5,authorId:_0xf7db7b}=this['_splitMarkerName'](_0x18d224),_0x419839=this['_suggestions']['get'](_0x4edff0)||this['_createSuggestion'](_0x205ed1,_0x3c26d5,_0x4edff0,_0xf7db7b,{});switch(this['_checkSuggestionCorrectness'](_0x419839,_0x205ed1,_0x3c26d5,_0xf7db7b),this['_suggestionState']['get'](_0x419839)){case'notReady':this['_getSuggestionData'](_0x4edff0)['then'](_0x3926f8=>{let _0x3831e9=Promise['resolve']();_0x3926f8['hasComments']&&(_0x3831e9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4edff0})),_0x3831e9['then'](()=>{this['addSuggestionData'](_0x3926f8)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x419839,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4edff0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x419839,'ready'),this['fire']('suggestionLoaded',_0x419839);break;case'ready':this['fire']('suggestionChanged',_0x419839);}return _0x419839['addMarkerName'](_0x18d224),_0x419839;}['_refreshSuggestionsChain'](_0x6eb15){const _0x5414d3=Array['from'](_0x6eb15),_0x827d7f=_0x5414d3['filter'](_0xdac5c8=>'attribute'==_0xdac5c8['type']);this['_refreshAttributeSuggestionsChain'](_0x827d7f);const _0x47d331=_0x5414d3['filter'](_0x41f673=>!_0x41f673['isMultiRange']&&'attribute'!=_0x41f673['type']),_0x3899c6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x223b32=>!_0x223b32['isMultiRange']&&'attribute'!=_0x223b32['type']),_0x240a63=_0x3899c6['filter'](_0x50d754=>!_0x6eb15['has'](_0x50d754)),_0x3dfb0f=new Map(_0x3899c6['map'](_0x46c005=>[_0x46c005,this['_suggestionFactory']['getSuggestionCallback'](_0x46c005['type'],_0x46c005['subType'],'chain')])),_0x1786cc=new Map(_0x3899c6['map'](_0x7e6bf9=>[_0x7e6bf9,_0x7e6bf9['getFirstRange']()])),_0x29be25=new Set(),_0x2532da=new Set();for(let _0x3ede0a=0x0;_0x3ede0a<_0x47d331['length'];_0x3ede0a++)_0x159457(_0x47d331[_0x3ede0a],_0x47d331,_0x3ede0a+0x1);for(let _0x51e19=0x0;_0x51e19<_0x47d331['length'];_0x51e19++)_0x159457(_0x47d331[_0x51e19],_0x240a63,0x0);const _0xb1ceff=new Set();for(let _0x3c40f0=0x0;_0x3c40f0<_0x47d331['length'];_0x3c40f0++){const _0x2e0b62=_0x47d331[_0x3c40f0];!_0x2532da['has'](_0x2e0b62)&&_0x2e0b62['previous']&&(_0xb1ceff['add'](_0x2e0b62['previous']),_0x2e0b62['previous']['next']===_0x2e0b62&&(_0x2e0b62['previous']['next']=null),_0x2e0b62['previous']=null),!_0x29be25['has'](_0x2e0b62)&&_0x2e0b62['next']&&(_0xb1ceff['add'](_0x2e0b62['next']),_0x2e0b62['next']['previous']===_0x2e0b62&&(_0x2e0b62['next']['previous']=null),_0x2e0b62['next']=null);}function _0x159457(_0x44e918,_0x34577c,_0x5b79a6){for(let _0x4062c0=_0x5b79a6;_0x4062c0<_0x34577c['length'];_0x4062c0++){const _0x58955a=_0x1f65a4(_0x44e918,_0x34577c[_0x4062c0]);_0x58955a&&(_0x58955a[0x0]['next']=_0x58955a[0x1],_0x58955a[0x1]['previous']=_0x58955a[0x0],_0x29be25['add'](_0x58955a[0x0]),_0x2532da['add'](_0x58955a[0x1]));}}function _0x1f65a4(_0x3e7348,_0xe900af){if(_0x3e7348['author']['id']!==_0xe900af['author']['id'])return null;const _0x4fb555=_0x3dfb0f['get'](_0x3e7348)(_0x3e7348,_0xe900af,_0x1786cc['get'](_0x3e7348),_0x1786cc['get'](_0xe900af));if(!_0x4fb555)return null;return _0x3dfb0f['get'](_0xe900af)(_0x3e7348,_0xe900af,_0x1786cc['get'](_0x3e7348),_0x1786cc['get'](_0xe900af))?_0x4fb555[0x1]['commentThread']&&_0x4fb555[0x1]['commentThread']['length']?null:_0x4fb555:null;}_0xb1ceff['size']&&this['_refreshSuggestionsChain'](_0xb1ceff);}['_refreshAttributeSuggestionsChain'](_0x42f613){if(0x0==_0x42f613['length'])return;const _0x3b8dce=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23ae14=>'attribute'==_0x23ae14['type']&&_0x23ae14['_isDataLoaded']),_0x290544=[],_0x2cada9=new Map();for(const _0x3f3535 of _0x3b8dce){const _0x130080=_0x21c96b(_0x3f3535['attributes']);_0x2cada9['has'](_0x130080)||(_0x2cada9['set'](_0x130080,_0x290544['length']),_0x290544['push']([]));const _0x475999=_0x2cada9['get'](_0x130080);_0x290544[_0x475999]['push'](_0x3f3535);}!(function(){_0x290544['sort']((_0x26d8c9,_0x34405a)=>{const _0x1561d2=_0x26d8c9[0x0]['createdAt'],_0x1bd5b5=_0x34405a[0x0]['createdAt'];return _0x1561d2==_0x1bd5b5?_0x26d8c9[0x0]['attributes']['groupId']<_0x34405a[0x0]['attributes']['groupId']?-0x1:0x1:_0x1561d2<_0x1bd5b5?-0x1:0x1;});for(const _0xc98a4d of _0x290544)_0xc98a4d['sort']((_0x4e3e49,_0x33285b)=>_0x4e3e49['id']<_0x33285b['id']?-0x1:0x1);}());for(let _0x4f69a2=0x0;_0x4f69a2<_0x290544['length'];_0x4f69a2++){if(0x0==_0x290544[_0x4f69a2]['length'])continue;const _0x4b819d=[];for(let _0x1e8339=_0x4f69a2+0x1;_0x1e8339<_0x290544['length'];_0x1e8339++)0x0!=_0x290544[_0x1e8339]['length']&&_0x111e9d(_0x290544[_0x4f69a2],_0x290544[_0x1e8339])&&_0x4b819d['push'](_0x1e8339);for(const _0x21210d of _0x4b819d)_0x290544[_0x4f69a2]=_0x290544[_0x4f69a2]['concat'](_0x290544[_0x21210d]),_0x290544[_0x21210d]=[];}for(const _0x54003c of _0x290544)for(let _0x45f9b9=0x0;_0x45f9b9<_0x54003c['length'];_0x45f9b9++){const _0x536d64=_0x54003c[_0x45f9b9+0x1]||null;_0x54003c[_0x45f9b9]['next']!==_0x536d64&&(_0x54003c[_0x45f9b9]['next']=_0x536d64);}for(const _0x350591 of _0x290544)for(let _0x236f10=0x0;_0x236f10<_0x350591['length'];_0x236f10++){const _0x3072de=_0x350591[_0x236f10-0x1]||null;_0x350591[_0x236f10]['previous']!==_0x3072de&&(_0x350591[_0x236f10]['previous']=_0x3072de);}function _0x111e9d(_0x3a50fd,_0x43f52b){if(_0x3a50fd[0x0]['attributes']['groupId']!==_0x43f52b[0x0]['attributes']['groupId']&&_0x3a50fd[0x0]['author']!==_0x43f52b[0x0]['author'])return!0x1;if(!function(_0x21ae5e,_0x1a564e){if(!_0x21ae5e['hasComments']&&!_0x1a564e['hasComments'])return!0x0;if(_0x21ae5e['hasComments']&&_0x1a564e['hasComments'])return!0x1;if(_0x21ae5e['hasComments']&&_0x1a564e['createdAt']<_0x21ae5e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1a564e['hasComments']&&_0x21ae5e['createdAt']<_0x1a564e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a50fd[0x0],_0x43f52b[0x0]))return!0x1;const _0x47f124=Ut(_0x3a50fd[0x0]['attributes'],['groupId','trackingSessionId']),_0x219690=Ut(_0x43f52b[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5228ee(_0x47f124,_0x219690))return!0x1;if(_0x3a50fd[0x0]['attributes']['groupId']==_0x43f52b[0x0]['attributes']['groupId'])return!0x0;if(_0x3a50fd[0x0]['attributes']['trackingSessionId']!==_0x43f52b[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3a50fd['every'](_0x2d1e36=>_0x43f52b['some'](_0x1c2d13=>_0x2d1e36['getFirstRange']()['isEqual'](_0x1c2d13['getFirstRange']())))&&_0x43f52b['every'](_0xace485=>_0x3a50fd['some'](_0x151bd7=>_0xace485['getFirstRange']()['isEqual'](_0x151bd7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3e17ac){const _0xa45479=Array['from'](_0x3e17ac),_0x313cda=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4e6115=_0x313cda['filter'](_0x2205ea=>!_0x3e17ac['has'](_0x2205ea)),_0x5b0d65=new Map(_0xa45479['map'](_0xcf55f5=>[_0xcf55f5,this['_suggestionFactory']['getSuggestionCallback'](_0xcf55f5['type'],_0xcf55f5['subType'],'join')])),_0x7135f0=new Map(_0x313cda['map'](_0x4f3ff7=>[_0x4f3ff7,_0x4f3ff7['getRanges']()]));for(let _0x4d9c82=0x0;_0x4d9c82<_0xa45479['length'];_0x4d9c82++){if(_0x393ecb(this,_0xa45479[_0x4d9c82],_0xa45479,_0x4d9c82+0x1))return!0x0;}for(let _0x50b7dc=0x0;_0x50b7dc<_0xa45479['length'];_0x50b7dc++){if(_0x393ecb(this,_0xa45479[_0x50b7dc],_0x4e6115,0x0))return!0x0;}return!0x1;function _0x393ecb(_0x589699,_0x2dae4d,_0x37f690,_0x1cd111){for(let _0x1d933d=_0x1cd111;_0x1d933d<_0x37f690['length'];_0x1d933d++){const _0x4606ed=_0x37f690[_0x1d933d];if(_0x4606ed['type']!==_0x2dae4d['type']||_0x4606ed['author']['id']!==_0x2dae4d['author']['id']||_0x4606ed['subType']!==_0x2dae4d['subType'])continue;if(!Qt(_0x2dae4d,_0x4606ed))continue;if('attribute'==_0x2dae4d['type']&&_0x2dae4d['data']['oldValue']!=_0x4606ed['data']['oldValue'])continue;if('attribute'==_0x2dae4d['type']&&_0x589699['_isBlockAttribute'](_0x2dae4d['data']['key']))continue;if('formatBlock'==_0x2dae4d['type']){const _0x25e56c=_0x589699['editor']['model'],_0x3efbd6=_0x2dae4d['getContainedElement']();if(_0x3efbd6&&(_0x25e56c['schema']['isObject'](_0x3efbd6)||_0x25e56c['schema']['isLimit'](_0x3efbd6)))continue;}const _0x1b8d66=_0x5b0d65['get'](_0x2dae4d),_0x216fd0=_0x7135f0['get'](_0x2dae4d),_0x5eae78=_0x7135f0['get'](_0x4606ed),_0x32b470=_0x2dae4d['commentThread']&&_0x2dae4d['commentThread']['length'],_0x421dc2=_0x4606ed['commentThread']&&_0x4606ed['commentThread']['length'];if(!_0x32b470&&_0x1b8d66(_0x5eae78,_0x216fd0))return _0x589699['_joinSuggestions'](_0x4606ed,_0x2dae4d),_0x7135f0['delete'](_0x2dae4d),!0x0;if(!_0x421dc2&&_0x1b8d66(_0x216fd0,_0x5eae78))return _0x589699['_joinSuggestions'](_0x2dae4d,_0x4606ed),_0x7135f0['delete'](_0x4606ed),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5dffca,_0x1282e){if(_0x5dffca['isMultiRange']){for(const _0x5960de of _0x1282e['getRanges']())_0x5dffca['addRange'](_0x5960de);}else{const _0x4a702a=_0x1282e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5dffca,this['_model']['createRange'](_0x5dffca['getFirstRange']()['start'],_0x4a702a));}_0x1282e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4837e2,_0x1cdd00,_0x2b8990){const _0x60e9f2=_0x4837e2['startsWith']('format')||_0x4837e2['startsWith']('attribute')?'FORMATTING':_0x4837e2['toUpperCase']();return o(this['editor']['locale'],_0x1cdd00+'_'+_0x60e9f2+'_SUGGESTION_ANNOUNCEMENT',_0x2b8990);}['_initAriaMarkerChangeAnnouncements'](){const _0x2b7cc0=this['editor'];if(!_0x2b7cc0['ui'])return;const {ariaLiveAnnouncer:_0x26f2c3}=_0x2b7cc0['ui'];_0x3e750b(this['_model'],({left:_0x1464cd,entered:_0x23494f})=>{for(const _0x525141 of _0x1464cd){const {group:_0x3aa6d3,type:_0xe90868}=this['_splitMarkerName'](_0x525141['name']);if('suggestion'===_0x3aa6d3){_0x26f2c3['announce'](this['_getMarkerAnnouncementText'](_0xe90868,'LEAVE'));break;}}for(const _0x39763c of _0x23494f){const {group:_0x1b6ddb,type:_0x3b3986}=this['_splitMarkerName'](_0x39763c['name']);if('suggestion'===_0x1b6ddb){_0x26f2c3['announce'](this['_getMarkerAnnouncementText'](_0x3b3986,'ENTER',_0x3c28ea(_0x4fdd99)));break;}}});}['_processAttributeChanges'](_0x895cd4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x31072f=this['editor'],_0x7ac0e2=_0x31072f['model']['document']['differ']['getChanges']();if(0x0==_0x7ac0e2['length'])return!0x1;const _0x48bf36=[],_0x28e280=_0x7ac0e2['filter'](_0x2591f0=>'attribute'==_0x2591f0['type']),_0x562573=_0x7ac0e2['filter'](_0x1857b8=>'insert'==_0x1857b8['type']&&'$text'!=_0x1857b8['name']),_0x25bd04=_0x7ac0e2['filter'](_0x4fa8bd=>'remove'==_0x4fa8bd['type']&&'$text'!=_0x4fa8bd['name']);for(const _0x30df97 of _0x28e280)_0x48bf36['push']({'key':_0x30df97['attributeKey'],'newValue':_0x30df97['attributeNewValue'],'oldValue':_0x30df97['attributeOldValue'],'range':qt(_0x30df97['range'],_0x31072f['model'])});for(const _0x34ec7b of _0x562573){const _0x4e26b4=_0x25bd04['find'](_0x203cde=>_0x203cde['position']['isEqual'](_0x34ec7b['position']));_0x4e26b4&&_0x48bf36['push']({'key':m,'newValue':_0x34ec7b['name'],'oldValue':_0x4e26b4['name'],'range':_0x31072f['model']['createRangeOn'](_0x34ec7b['position']['nodeAfter'])});}return 0x0!=_0x48bf36['length']&&this['_reduceExistingSuggestions'](_0x895cd4,_0x48bf36);}['_processAttributeSuggestions'](_0x593966){let _0x433255=!0x1;const _0x45839d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4450ae=>_0x4450ae['data']['newRange']&&_0x4450ae['name']['startsWith']('suggestion:attribute:'));for(const _0x50780b of _0x45839d){const {subType:_0x3ca9a4,id:_0x47116e}=this['_splitMarkerName'](_0x50780b['name']),_0x217c3b=_0x3ca9a4['split']('|')[0x0];for(const _0x27e057 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27e057['id']!=_0x47116e&&'attribute'==_0x27e057['type']&&_0x27e057['data']&&_0x27e057['data']['key']==_0x217c3b&&_0x27e057['getFirstRange']()['isIntersecting'](_0x50780b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27e057,_0x50780b['data']['newRange'],_0x593966),_0x433255=!0x0);}return _0x433255;}['recordAttributeChanges'](_0x4b08dc){this['_recordAttributeSuggestions']=!0x0,_0x4b08dc();}['_isRegisteredAttribute'](_0x400e33){const _0x1c333f=this['_isBlockAttribute'](_0x400e33),_0x1cc23b=this['_isInlineAttribute'](_0x400e33);return _0x1c333f||_0x1cc23b;}['_reduceExistingSuggestions'](_0x19f927,_0x5f1e0b){if(0x0==_0x5f1e0b['length'])return!0x1;let _0x721177=!0x1;for(const _0x2382d4 of _0x5f1e0b){const _0x2bfdb9=this['_findSuggestions'](_0x2382d4['range'],'attribute')['filter'](_0xa6bce5=>!_0xa6bce5['meta']['isNextTo'])['map'](_0x36b7f2=>_0x36b7f2['suggestion']),_0x37fe45=_0x21c96b({'newValue':_0x2382d4['newValue']});_0x2bfdb9['filter'](_0x5071ed=>{const [_0x3b949a,_0x217c71]=_0x5071ed['subType']['split']('|');return _0x3b949a==_0x2382d4['key']&&_0x217c71!=_0x37fe45;})['forEach'](_0x375368=>{this['_reduceSuggestionAttributeRange'](_0x375368,_0x2382d4['range'],_0x19f927),_0x721177=!0x0;});}return _0x721177;}['_reduceSuggestionAttributeRange'](_0x13a31e,_0x75f925,_0x3a1617){const _0x24c197=_0x13a31e['getFirstRange']()['getDifference'](_0x75f925);0x0!==_0x24c197['length']?0x1!==_0x24c197['length']?this['_breakSuggestionMarker'](_0x13a31e,_0x75f925['start'],_0x75f925['end']):this['_setSuggestionRange'](_0x13a31e,_0x24c197[0x0]):_0x3a1617['removeMarker'](_0x13a31e['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bc9b8){this['_editor']=_0x1bc9b8,this['_model']=_0x1bc9b8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2fb516,_0x186488,_0x37e814,_0x40c306,_0xded529,_0x22960a,_0x1d3539){return new T(this['_model'],{'type':_0x2fb516,'subType':_0x186488,'id':_0x37e814,'originalSuggestionId':_0x1d3539,'author':_0x40c306,'creator':_0x40c306,'attributes':_0xded529,'onAttributesChange':_0x22960a,'onAccept':(..._0x365e83)=>this['getSuggestionCallback'](_0x2fb516,_0x186488,'accept')(..._0x365e83),'onDiscard':(..._0x226a1f)=>this['getSuggestionCallback'](_0x2fb516,_0x186488,'discard')(..._0x226a1f)});}['registerCustomCallback'](_0x4d93dd,_0x5c9aaa,_0x5bef5a,_0x125dd4){const _0x34230d=_0x4d93dd+':'+_0x5c9aaa+':'+_0x5bef5a;this['_customCallbacks']['set'](_0x34230d,_0x125dd4);}['getSuggestionCallback'](_0xb4e1ea,_0x19eb30,_0x4c425e){const _0x2f42d4=_0xb4e1ea+':'+_0x19eb30+':'+_0x4c425e;return this['_customCallbacks']['get'](_0x2f42d4)||this['_defaultCallbacks']['get'](_0xb4e1ea+':'+_0x4c425e);}['_registerDefaultCallbacks'](){const _0x4f7ec8=()=>!0x1,_0x255919=_0x4269c7=>{_0x4269c7['sort']((_0x3e8bee,_0x386e84)=>_0x3e8bee['start']['isBefore'](_0x386e84['start'])?0x1:-0x1),this['_model']['change'](_0x49dbf8=>{for(const _0x101cb7 of _0x4269c7){let _0x12cd8e;_0x12cd8e=_0x101cb7['end']['isAtEnd']&&_0x101cb7['end']['parent']==_0x101cb7['start']['nodeAfter']?_0x49dbf8['createSelection'](_0x101cb7['start']['nodeAfter'],'on'):_0x49dbf8['createSelection'](_0x101cb7),this['_model']['deleteContent'](_0x12cd8e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3fa692=(_0x5179e3,_0x193ebb)=>{_0x193ebb&&this['_model']['change'](_0x101206=>{const {commandName:_0x5ded26,commandParams:_0x5c4939=[]}=_0x193ebb,_0x247bb3=_0x5179e3['map'](_0x59f331=>(Pt(_0x59f331)&&(_0x59f331=this['_model']['createRange'](_0x59f331['end'])),_0x59f331))['filter'](_0x1e3f64=>'$graveyard'!==_0x1e3f64['root']['rootName']);if(_0x247bb3['length']<0x1)return;const _0x465676=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd3b32e=>_0x150f02['fromRange'](_0xd3b32e));_0x101206['setSelection'](_0x247bb3);for(const _0x2afd0a of this['_editor']['commands']['commands']())_0x2afd0a['refresh']();_0x5c4939['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ded26,..._0x5c4939);const _0x5408c5=_0x465676['filter'](_0x46d769=>'$graveyard'!=_0x46d769['root']['rootName']);_0x5408c5['length']>0x0&&_0x101206['setSelection'](_0x5408c5);for(const _0x5f4109 of _0x465676)_0x5f4109['detach']();});},_0x52d6b5=(_0x392335,_0x4005ef)=>0x1==_0x392335['length']&&0x1==_0x4005ef['length']&&_0x392335[0x0]['end']['isEqual'](_0x4005ef[0x0]['start']),_0x5f2d77=(_0x9a4785,_0x50c9f7,_0x3b597e,_0x347b5e)=>Wt(_0x9a4785,_0x50c9f7,_0x3b597e,_0x347b5e)?[_0x9a4785,_0x50c9f7]:Wt(_0x50c9f7,_0x9a4785,_0x347b5e,_0x3b597e)?[_0x50c9f7,_0x9a4785]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4f7ec8),this['_defaultCallbacks']['set']('insertion:discard',_0x255919),this['_defaultCallbacks']['set']('insertion:join',_0x52d6b5),this['_defaultCallbacks']['set']('insertion:chain',_0x5f2d77),this['_defaultCallbacks']['set']('deletion:accept',_0x255919),this['_defaultCallbacks']['set']('deletion:discard',_0x4f7ec8),this['_defaultCallbacks']['set']('deletion:join',_0x52d6b5),this['_defaultCallbacks']['set']('deletion:chain',_0x5f2d77),this['_defaultCallbacks']['set']('formatInline:accept',_0x3fa692),this['_defaultCallbacks']['set']('formatInline:discard',_0x4f7ec8),this['_defaultCallbacks']['set']('formatInline:join',_0x52d6b5),this['_defaultCallbacks']['set']('formatInline:chain',_0x4f7ec8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3fa692),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4f7ec8),this['_defaultCallbacks']['set']('formatBlock:join',_0x52d6b5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4f7ec8),this['_defaultCallbacks']['set']('attribute:accept',_0x4f7ec8),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c6e47,_0x144f9f)=>{if(!_0x144f9f)return;const _0x382fb4=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x18253f=>{if(_0x144f9f['key']==m)for(const _0x126ca3 of _0x2c6e47){const _0x59c094=_0x126ca3['start']['nodeAfter'],_0xe8850=_0x144f9f['oldValue'];_0x18253f['rename'](_0x59c094,_0xe8850);}else{if(_0x382fb4['_isBlockAttribute'](_0x144f9f['key'])){for(const _0x5eecf5 of _0x2c6e47)void 0x0!==_0x144f9f['oldValue']?_0x18253f['setAttribute'](_0x144f9f['key'],_0x144f9f['oldValue'],_0x5eecf5['start']['nodeAfter']):_0x18253f['removeAttribute'](_0x144f9f['key'],_0x5eecf5['start']['nodeAfter']);}else{for(const _0x234426 of _0x2c6e47)_0x144f9f['oldValue']?_0x18253f['setAttribute'](_0x144f9f['key'],_0x144f9f['oldValue'],_0x234426):_0x18253f['removeAttribute'](_0x144f9f['key'],_0x234426);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52d6b5);}}function Ft(_0x41ac24,_0x5f3fee,_0x436278){for(const _0xe0d33c of _0x5f3fee['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe0d33c['root']==_0xe0d33c)return!0x1;if(!_0x436278['containsItem'](_0xe0d33c))return!0x1;if(_0x41ac24['isObject'](_0xe0d33c)||_0x41ac24['isLimit'](_0xe0d33c))return!0x0;}return!0x1;}function Pt(_0x54a2ce){return _0x54a2ce['end']['parent']==_0x54a2ce['start']['nodeAfter']&&_0x54a2ce['end']['isAtStart'];}function Gt(_0x1627e7,_0x11a36e,_0x1c7590,_0xa2c09d){const _0x102e6=_0x3011e7=>!_0x3011e7['item']['is']('$textProxy')&&!_0xa2c09d['isObject'](_0x3011e7['item']),_0x179d18=_0x1627e7['start']['getLastMatchingPosition'](_0x102e6),_0x32ed7d=_0x1627e7['end']['getLastMatchingPosition'](_0x102e6,{'direction':'backward'});return(!_0x1627e7['start']['isEqual'](_0x179d18)||!_0x1627e7['end']['isEqual'](_0x32ed7d))&&(_0x179d18['isBefore'](_0x32ed7d)?_0x1c7590['updateMarker'](_0x11a36e,{'range':_0x1c7590['createRange'](_0x179d18,_0x32ed7d)}):_0x1c7590['removeMarker'](_0x11a36e),!0x0);}function Lt(_0x362d82){return _0x21c96b(_0x362d82);}function Jt(_0x5c7f86){const _0x42ac38=_0x5c7f86['start']['nodeAfter'];return _0x42ac38&&_0x42ac38['is']('element');}function Kt(_0x58fcfa){return Pt(_0x58fcfa)||function(_0x2aa31b){return _0x2aa31b['start']['parent']==_0x2aa31b['end']['nodeBefore']&&_0x2aa31b['start']['isAtEnd'];}(_0x58fcfa);}function Ht(_0x3f2c66,_0x3a722c){try{const _0x2c97df=_0x3f2c66['getRange']();for(const _0x12a0eb of _0x3a722c)if(_0x3f2c66!==_0x12a0eb&&_0x2c97df&&_0x2c97df['isIntersecting'](_0x12a0eb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x5029e8,_0x329ae4){return null==_0x5029e8['end']['nodeBefore']&&_0x5029e8['end']['parent']==_0x5029e8['start']['nodeAfter']?zt(_0x5029e8['start']['nodeAfter'],_0x329ae4):_0x5029e8;}function zt(_0x203997,_0x33d4c8){const _0x59cfdd=_0x33d4c8['schema']['isObject'](_0x203997)||_0x33d4c8['schema']['isSelectable'](_0x203997);return _0x33d4c8['createRange'](_0x33d4c8['createPositionAt'](_0x203997,'before'),_0x59cfdd?_0x33d4c8['createPositionAfter'](_0x203997):_0x33d4c8['createPositionAt'](_0x203997,'end'));}function Wt(_0x3acca7,_0x588640,_0x319c12,_0x30c132){return!!Qt(_0x3acca7,_0x588640)&&_0x319c12['end']['isEqual'](_0x30c132['start']);}function Qt(_0x388138,_0x8f52e){if(!_0x388138['_isDataLoaded']||!_0x8f52e['_isDataLoaded'])return!0x1;const _0x409502=new Set(Object['keys'](_0x388138['attributes'])),_0x122397=new Set(Object['keys'](_0x8f52e['attributes']));if(_0x409502['delete']('groupId'),_0x122397['delete']('groupId'),0x0==_0x409502['size']&&0x0==_0x122397['size'])return!0x0;if(_0x409502['size']!=_0x122397['size'])return!0x1;const _0x51f97c={..._0x388138['attributes']},_0x4e6323={..._0x8f52e['attributes']};return delete _0x51f97c['groupId'],delete _0x4e6323['groupId'],JSON['stringify'](_0x51f97c)==JSON['stringify'](_0x4e6323);}function Xt(_0x22d62f,_0x3b9776){const _0x3c0853=Yt(_0x22d62f['attributes']),_0x1fa18f=Yt(_0x3b9776);if(!_0x22d62f['_isDataLoaded'])return!0x1;for(const _0x591b17 of Object['keys'](_0x1fa18f))if(!_0x5228ee(_0x3c0853[_0x591b17],_0x1fa18f[_0x591b17]))return!0x1;return!0x0;}function Yt(_0x39de1f){const _0x323250=Object['assign']({},_0x39de1f);return delete _0x323250['skipNestingCheck'],delete _0x323250['tablePasteChainId'],_0x323250;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x25ca34(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x43cc75,_0x589c31,_0x5eccde,_0x483837){super(),this['model']=_0x589c31,this['view']=_0x5eccde,this['commentThreadController']=_0x483837,this['_editor']=_0x43cc75,this['_acceptCommand']=_0x43cc75['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x43cc75['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x45df51,_0x472cf1)=>_0x45df51||_0x472cf1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2b5bdd=>_0x2b5bdd&&this['_editor']['model']['canEditAt'](_0x589c31['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42a35f=>_0x42a35f&&this['_editor']['model']['canEditAt'](_0x589c31['getRanges']())),this['_pendingAction']=null,_0x5eccde['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5eccde,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5eccde,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5eccde,'change:isDirty',()=>{_0x5eccde['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 _0x31bd32=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x31bd32);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4d14fe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x6f1bbd,_0x46a3b3,_0x4c0ac1,_0x5327d8){super(_0x6f1bbd),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x40fbb9(_0x6f1bbd,o(_0x6f1bbd,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x46a3b3['authoredAt']),this['bind']('authoredAt')['to'](_0x46a3b3),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',_0x46a3b3,'authoredAt',this,'descriptionParts',(_0x55e6b0,_0x126e99,_0x146c5a)=>{const _0x5f54b4=_0x146c5a['map'](_0x5a6aee=>ls(_0x5a6aee['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55e6b0-0x1,_0x46a3b3['author']['name'],_0x126e99?_0x5327d8['formatDateTime'](_0x126e99):'',new DOMParser()['parseFromString'](_0x5f54b4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x46c175(),this['focusTracker']=new _0x575649(),this['keystrokes']=new _0xf4582f(),this['focusCycler']=new _0x5e25da({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x137b59=>_0x137b59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x46a3b3,this['_localUser']=_0x4c0ac1,this['_config']=_0x5327d8,_0x5327d8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x168934(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3c626a}=this['_config'];this['commentsListView']=new _0x3c626a(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',_0x499e40=>_0x499e40+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x6f1e32,_0x397ca8)=>_0x6f1e32||!!_0x397ca8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3c4c59}=this['_config'],_0x1260c4=new _0x3c4c59(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ec3c1=_0x1260c4['commentInputView'];return _0x1260c4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4ec3c1,'value',(_0x406d19,_0x33eed7,_0x13d256)=>!!_0x13d256||_0x406d19&&!_0x33eed7),_0x4ec3c1['on']('submit',(_0x5525c9,_0x13254b)=>{this['fire']('addComment',_0x13254b),_0x4ec3c1['editor']['setData']('');}),_0x4ec3c1['on']('cancel',()=>this['focus']()),_0x4ec3c1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1260c4;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5ca22c,_0x377a29,_0x37376b,_0x400b23){super(_0x5ca22c,_0x377a29,_0x37376b,_0x400b23),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5922e6=>_0x5922e6&&_0x5922e6[0x0]?_0x5922e6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5edade,_0x242b55)=>{let _0x1f43e8='';for(const _0x2e372d of _0x5edade)_0x1f43e8+='<p>'+ls(_0x2e372d['content'],_0x2e372d['color'])+'</p>';return _0x242b55?_0x1f43e8:_0x4d5569(_0x1f43e8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x400b23['SuggestionView'](_0x5ca22c,_0x377a29,{'formatDateTime':_0x400b23['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 _0x2207bd=this['bindTemplate'],_0x4e50f6=[this['suggestionView']];return this['commentsListView']&&_0x4e50f6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4e50f6['push'](this['commentThreadInputView']),_0x4e50f6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2207bd['if']('isActive','ck-suggestion-wrapper--active'),_0x2207bd['to']('type',_0x525f07=>'ck-suggestion-'+_0x525f07),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':_0x2207bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4e50f6};}['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 _0x4d14fe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1947d2,_0x8edb1,_0x1532f0){super(_0x1947d2),this['_model']=_0x8edb1,this['_config']=_0x1532f0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x8edb1),this['acceptButton']=this['_createButton'](o(_0x1947d2,'Accept\x20suggestion'),_0x41ae11,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1947d2,'Discard\x20suggestion'),_0x1dee67,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x269dd4(_0x1947d2,_0x8edb1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x46c175([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x575649(),this['keystrokes']=new _0xf4582f(),this['focusCycler']=new _0x5e25da({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x8eda90=>_0x8eda90['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2e2338=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2e2338['innerHTML']=this['description'],this['on']('change:description',(_0x12d91f,_0x55186c,_0x1b9091)=>{_0x2e2338['innerHTML']=_0x1b9091;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2e7f3f=this['bindTemplate'],_0x3f64a6=[{'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':_0x2e7f3f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e7f3f['to']('authoredAt',_0x4444f7=>this['_config']['formatDateTime'](_0x4444f7))}]}]},{'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']&&_0x3f64a6['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':_0x3f64a6}]};}['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'](_0x510e8a,_0x3cd594,_0x1750da,_0x4b8850,_0x3ca235){const _0x266d0b=new _0x1c73bb(this['locale']);return _0x266d0b['set']({'label':_0x510e8a,'icon':_0x3cd594,'tooltip':!0x0,'tooltipPosition':_0x3ca235}),_0x266d0b['extendTemplate']({'attributes':{'class':_0x1750da}}),_0x266d0b['on']('execute',()=>{this['fire'](_0x4b8850,this['_model']['id']);}),_0x266d0b;}['_setupKeyboardNavigation'](){const _0xa423a4=this['element'];this['keystrokes']['listenTo'](_0xa423a4);for(const _0x3a7712 of this['focusables'])this['focusTracker']['add'](_0x3a7712['element']),this['keystrokes']['listenTo'](_0x3a7712['element']);this['keystrokes']['set']('enter',(_0x360276,_0x2b3ea2)=>{_0xa423a4===_0x360276['target']&&(this['focusCycler']['focusFirst'](),_0x2b3ea2());}),this['keystrokes']['set']('esc',(_0x5823cb,_0x2c5b65)=>{_0xa423a4!==_0x5823cb['target']&&(this['focus'](),_0x2c5b65());});}}class u extends _0x342976{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5341d3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5979f2){super(_0x5979f2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x34ef78=this['editor']['config'];_0x34ef78['define']('trackChanges.SuggestionThreadView',fe),_0x34ef78['define']('trackChanges.SuggestionView',we),_0x34ef78['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x34ef78['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x464d4a,_0x3f68be){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4f08dd,_0x56b7b5]of this['_handleControllerBuffer']){const _0x14a40a=this['_suggestionToController']['has'](_0x4f08dd);_0x14a40a||_0x56b7b5?_0x14a40a&&_0x56b7b5&&this['_destroyController'](_0x4f08dd):this['_initializeController'](_0x4f08dd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x464d4a,_0x3f68be);}['init'](){const _0x18c501=this['editor'],_0xa83dd5=_0x18c501['plugins']['get']('TrackChangesEditing'),_0x4d04bf=_0x18c501['plugins']['get']('Annotations'),_0x2b3678=_0x18c501['plugins']['get']('EditorAnnotations'),_0x184d80=_0x18c501['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b3678['addSourceCollector'](()=>{const _0x364162=[];for(const [_0x5bc372,_0x58575d]of Array['from'](this['_suggestionToController'])){const _0x5e432d=_0x5bc372['getAllAdjacentSuggestions'](),_0x517397=[];for(const _0x5ae77e of _0x5e432d){if(!_0x5ae77e['isInContent'])continue;if(_0x5ae77e['isMultiRange']){_0x517397['push'](..._0x5ae77e['getRanges']());continue;}const _0x36df4f=_0x5ae77e['getFirstRange']();if(_0x517397['length']>0x0){const _0x1783b8=_0x517397[0x0]['getJoined'](_0x36df4f);if(_0x1783b8){_0x517397[0x0]=_0x1783b8;continue;}}_0x517397['push'](_0x36df4f);}_0x364162['push']([_0x58575d['view'],_0x517397]);}return _0x364162;}),this['listenTo'](_0xa83dd5,'suggestionLoaded',(_0x23b79d,_0x517980)=>{this['listenTo'](_0x517980,'change:previous',(_0x29fb01,_0x33c5fb,_0x323386,_0x4e58ea)=>{_0x517980['isInContent']&&(null==_0x323386?(this['_updateController'](_0x4e58ea['head']),this['_handleSuggestionControllerDelayed'](_0x517980,!0x1)):(this['_updateController'](_0x323386['head']),null==_0x4e58ea&&this['_handleSuggestionControllerDelayed'](_0x517980,!0x0)));}),null!==_0x517980['previous']?this['_updateController'](_0x517980['head']):this['_handleSuggestionControllerDelayed'](_0x517980,!0x1);}),this['listenTo'](_0xa83dd5,'suggestionUnloaded',(_0x50369b,_0x547460,_0x90993)=>{this['stopListening'](_0x547460,'change:previous'),this['_handleControllerBuffer']['delete'](_0x547460),this['_suggestionToController']['has'](_0x547460)&&this['_destroyController'](_0x547460),_0x90993&&this['_updateController'](_0x90993['head']);}),this['listenTo'](_0xa83dd5,'suggestionChanged',(_0x53847e,_0x52b53d)=>{this['_updateController'](_0x52b53d);}),this['listenTo'](_0x4d04bf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x184d80,'addComment',(_0x2f87a8,{threadId:_0x19a934,isFromAdapter:_0x15958f})=>{if(_0x15958f||!_0xa83dd5['hasSuggestion'](_0x19a934))return;const _0xda9667=_0xa83dd5['getSuggestion'](_0x19a934);this['_suggestionToController']['get'](_0xda9667)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a707c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x52ef11;for(const _0x302f8c in _0x4a707c){const _0x12d1c4=_0x302f8c,_0x29008a=_0x4a707c[_0x12d1c4];if('trackChangesLicenseKeyValid'==_0x29008a||'trackChangesLicenseKeyInvalid'==_0x29008a||'trackChangesLicenseKeyExpired'==_0x29008a||'trackChangesLicenseKeyDomainLimit'==_0x29008a||'trackChangesLicenseKeyNotAllowed'==_0x29008a||'trackChangesLicenseKeyEvaluationLimit'==_0x29008a||'trackChangesLicenseKeyTrialLimit'==_0x29008a||'trackChangesLicenseKeyUsageLimit'==_0x29008a){delete _0x4a707c[_0x12d1c4],_0x52ef11=_0x29008a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x52ef11&&_0x4a707c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x52ef11&&_0x4a707c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x52ef11&&_0x4a707c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x52ef11&&_0x4a707c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x52ef11&&_0x4a707c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x52ef11&&_0x4a707c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x52ef11&&_0x4a707c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3b2389){const _0x3395dd=this['_suggestionToController']['get'](_0x3b2389);if(!_0x3395dd)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3395dd['view'])||null;}['getSuggestionForAnnotation'](_0x124d01){const _0x24db55=this['_viewToController']['get'](_0x124d01['innerView']);return _0x24db55?_0x24db55['model']:null;}['_refreshActiveMarkers'](){const _0x168384=this['editor']['plugins']['get']('Annotations'),_0x5b9bce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a7bba=Array['from'](_0x168384['activeAnnotations'],_0x9902d5=>_0x9902d5['innerView'])['filter'](_0x5476b8=>this['_viewToController']['has'](_0x5476b8)),_0x4c64f7=[];for(const _0x3415d0 of _0x2a7bba){const _0x7bfa1a=this['_viewToController']['get'](_0x3415d0)['model']['getAllAdjacentSuggestions']();_0x4c64f7['push'](..._0x7bfa1a['reduce']((_0x592a98,_0x52a9be)=>[..._0x592a98,..._0x52a9be['getMarkerNames']()],[]));}_0x5b9bce['activeMarkers']=_0x4c64f7;}['_addUIComponentsToFactory'](){const _0x594218=this['editor'],_0x4b9902=_0x594218['locale'],_0x33e9b9=o(_0x4b9902,'Track\x20changes'),_0x4bac22=new _0xa11cab([{'type':'switchbutton','model':new _0x193a18({'withText':!0x0,'isToggleable':!0x0,'label':_0x33e9b9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x193a18({'withText':!0x0,'label':o(_0x4b9902,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x193a18({'withText':!0x0,'label':o(_0x4b9902,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x193a18({'withText':!0x0,'label':o(_0x4b9902,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x193a18({'withText':!0x0,'label':o(_0x4b9902,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x594218['plugins']['has']('TrackChangesPreview')&&_0x4bac22['addMany']([{'type':'separator'},{'type':'button','model':new _0x193a18({'withText':!0x0,'label':o(_0x4b9902,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3b1876 of _0x4bac22)if(ke(_0x3b1876)){const _0xfba84c=_0x594218['commands']['get'](_0x3b1876['model']['commandName']);_0x3b1876['model']['bind']('isOn','isEnabled')['to'](_0xfba84c,'value','isEnabled');}_0x594218['ui']['componentFactory']['add']('trackChanges',_0x5b3b5e=>this['_createToolbarButton'](_0x5b3b5e,_0x4bac22,_0x33e9b9)),_0x594218['ui']['componentFactory']['add']('menuBar:trackChanges',_0x45d40b=>this['_createMenuBarMenu'](_0x45d40b,_0x4bac22,_0x33e9b9));}['_createToolbarButton'](_0x3ccb5f,_0x5bab95,_0x4b6044){const _0x42f600=_0x41d2af(_0x3ccb5f,_0x26c4e3),_0x2dc69e=this['editor']['commands']['get']('trackChanges');_0x42f600['buttonView']['set']({'tooltip':_0x4b6044,'label':_0x4b6044,'icon':_0x186a9f}),_0x42f600['buttonView']['bind']('isOn')['to'](_0x2dc69e,'value'),_0x42f600['buttonView']['on']('execute',()=>{_0x2dc69e['execute'](),this['editor']['editing']['view']['focus']();}),_0x47aa92(_0x42f600,_0x5bab95,{'role':'menu'});const _0x139238=[];for(const _0x47d57e of _0x5bab95)ke(_0x47d57e)&&_0x139238['push'](this['editor']['commands']['get'](_0x47d57e['model']['commandName']));const _0x292bae=_0x42f600['buttonView'];return _0x292bae['actionView']['unbind']('isEnabled'),_0x292bae['arrowView']['unbind']('isEnabled'),_0x292bae['actionView']['bind']('isEnabled')['to'](_0x2dc69e,'isEnabled'),_0x292bae['arrowView']['bind']('isEnabled')['toMany'](_0x139238,'isEnabled',(..._0x1f9933)=>_0x1f9933['some'](_0x39c0a0=>_0x39c0a0)),_0x42f600['on']('execute',_0x1d4a86=>{this['editor']['execute'](_0x1d4a86['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42f600;}['_createMenuBarMenu'](_0x3771fb,_0x456916,_0x5a3d7b){const _0x3b255b=new _0x2d17d4(_0x3771fb),_0x28d8c8=this['editor']['commands']['get']('trackChanges');_0x3b255b['buttonView']['set']({'label':_0x5a3d7b,'icon':_0x186a9f});const _0x51461f=new _0x56cb65(_0x3771fb);for(const _0x2e98dd of _0x456916){if('separator'==_0x2e98dd['type']){_0x51461f['items']['add'](new _0x24b2b7(_0x3771fb));continue;}const _0x23c31f=new _0x31e70e(_0x3771fb,_0x3b255b),_0x2c1124=new _0x3e7885(_0x3771fb),_0x2ed64a=_0x2e98dd['model'];_0x2c1124['bind'](...Object['keys'](_0x2ed64a))['to'](_0x2ed64a),_0x2c1124['delegate']('execute')['to'](_0x3b255b),_0x2c1124['on']('execute',()=>{this['editor']['execute'](_0x2ed64a['commandName']),this['editor']['editing']['view']['focus']();}),_0x23c31f['children']['add'](_0x2c1124),_0x51461f['items']['add'](_0x23c31f);}return _0x3b255b['bind']('isEnabled')['to'](_0x28d8c8,'isEnabled'),_0x3b255b['panelView']['children']['add'](_0x51461f),_0x3b255b;}['_initializeController'](_0x414b4f){const _0x4cf1d5=this['editor'],_0x4a9015=_0x4cf1d5['config'],_0x348d6d=_0x4cf1d5['plugins']['get']('Annotations'),_0x2266d5=_0x4cf1d5['plugins']['get']('CommentsRepository'),_0x2d9fa0=_0x4cf1d5['plugins']['get']('EditorAnnotations'),_0x3209fc=_0x4cf1d5['plugins']['get'](_0x5341d3)['me'],_0x279c22=_0x4a9015['get']('trackChanges')['SuggestionThreadView'],_0x133c88=_0x4a9015['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2226e7,CommentThreadInputView:_0x1d82c0}=_0x4cf1d5['plugins']['get']('CommentsUI');let _0x3aad32,_0x2f1517,_0x31cbf3;this['_annotationViews']['has'](_0x414b4f['id'])?(_0x2f1517=this['_annotationViews']['get'](_0x414b4f['id']),_0x3aad32=_0x2f1517['mainView']):(_0x3aad32=new _0x279c22(_0x4cf1d5['locale'],_0x414b4f,_0x3209fc,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a9015['get']('comments.editorConfig'),'licenseKey':_0x4a9015['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a9015['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a9015['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a9015['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b61cf(_0x4a9015['get']('locale'),_0x4cf1d5['locale']),'CommentView':_0x4a9015['get']('comments')['CommentView'],'CommentsListView':_0x2226e7,'CommentThreadInputView':_0x1d82c0,'SuggestionView':_0x133c88}),_0x3aad32['suggestionView']['acceptButton']['on']('execute',()=>{_0x4cf1d5['editing']['view']['focus']();}),_0x3aad32['suggestionView']['discardButton']['on']('execute',()=>{_0x4cf1d5['editing']['view']['focus']();}),_0x2f1517=_0x348d6d['createAnnotationView'](this['editor']['locale'],_0x3aad32),_0x2f1517['bind']('isDirty')['to'](_0x3aad32,'isDirty'),_0x2f1517['bind']('length')['to'](_0x3aad32),_0x2f1517['bind']('type')['to'](_0x3aad32,'type',_0x41e885=>'suggestion-'+_0x41e885),_0x3aad32['on']('escape',()=>{_0x31cbf3['fire']('escape');}),this['_annotationViews']['set'](_0x414b4f['id'],_0x2f1517));const _0x599c94=_0x2266d5['createCommentThreadController'](_0x414b4f['commentThread'],_0x3aad32),_0x3c2f71=new pe(_0x4cf1d5,_0x414b4f,_0x3aad32,_0x599c94),_0x2e5bc6=_0x414b4f['getAllAdjacentSuggestions']()['filter'](_0x57cd28=>_0x57cd28['isInContent']);_0x3aad32['descriptionParts']=_0x4cf1d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2e5bc6),this['_suggestionToController']['set'](_0x414b4f,_0x3c2f71),this['_viewToController']['set'](_0x3aad32,_0x3c2f71);const _0x4b0e31=()=>{const _0x7d501a=[],_0x32d85b=_0x414b4f['getAllAdjacentSuggestions']()['filter'](_0x16215b=>_0x16215b['isInContent']);for(const _0x3b7a4d of _0x32d85b)_0x7d501a['push'](..._0x3b7a4d['getMarkers']());return _0x5d62c2(_0x4cf1d5['editing'],_0x7d501a);};_0x31cbf3=_0x348d6d['createAnnotation']({'view':_0x2f1517,'target':_0x4b0e31,'type':()=>'suggestion-'+_0x3c2f71['view']['type'],'isVisible':!!_0x4b0e31()}),_0x2266d5['_bindAnnotationToEditors'](_0x3aad32,_0x31cbf3),_0x348d6d['add'](_0x31cbf3),_0x2d9fa0['registerAnnotation'](_0x31cbf3);}['_destroyController'](_0x2770e8){const _0x46aa92=this['editor']['plugins']['get']('CommentsRepository'),_0x19c453=this['editor']['plugins']['get']('Annotations'),_0x2cadfd=this['_suggestionToController']['get'](_0x2770e8),_0x13a6bc=_0x2cadfd['view'],_0x212e0e=_0x19c453['getByInnerView'](_0x13a6bc);_0x46aa92['_unbindEditors'](_0x13a6bc),_0x212e0e&&_0x19c453['remove'](_0x212e0e),this['_suggestionToController']['delete'](_0x2770e8),this['_viewToController']['delete'](_0x13a6bc),_0x2cadfd['destroy']();}['_updateController'](_0x4406a0){if(!_0x4406a0['isInContent']||!this['_suggestionToController']['has'](_0x4406a0))return;const _0x2136e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1137f8=this['_suggestionToController']['get'](_0x4406a0),_0x196d96=_0x4406a0['getAllAdjacentSuggestions']();_0x1137f8['view']['descriptionParts']=_0x2136e0['descriptionFactory']['getDescriptions'](_0x196d96);}['destroy'](){for(const _0x4b95f2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4b95f2);for(const _0x11b2ac of this['_annotationViews']['values']())_0x11b2ac['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x52a29d){return'model'in _0x52a29d;}class Fe extends _0x342976{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4cbe43){this['editor']['plugins']['get'](d)['adapter']=_0x4cbe43;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x33e40b){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x33e40b);}['getSuggestions']({skipNotAttached:_0x14c4c5=!0x1,toJSON:_0x83a949=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x14c4c5,'toJSON':_0x83a949});}['getSuggestion'](_0x5546b7){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5546b7);}}const p=['Pagination'];class re extends _0x342976{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c122e=this['editor'];if(_0x3c122e['config']['define']('trackChangesData.editorCreator',_0x34a5f2=>{const _0x3629a7=_0x3c122e['model']['document']['getRootNames']()['reduce']((_0x4e48c6,_0x2b7d1d)=>(_0x4e48c6[_0x2b7d1d]='',_0x4e48c6),{});return _0x3c122e['constructor']['create'](_0x3629a7,_0x34a5f2);}),'function'!=typeof _0x3c122e['config']['get']('trackChangesData')['editorCreator'])throw new _0x2dc02a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x19f097){return P(this['editor'],!0x0,_0x19f097);}['getDataWithDiscardedSuggestions'](_0x4499df){return P(this['editor'],!0x1,_0x4499df);}}class Ge extends _0x342976{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ce87c){function _0x4916d1(_0x11ca8b){return _0x11ca8b['map'](_0x92d4dd=>String['fromCharCode'](_0x92d4dd))['join']('');}super(_0x5ce87c),this['result']='end',_0x5ce87c[_0x4916d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4916d1([0x76,0x69,0x65,0x77])][_0x4916d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4916d1([0x61,0x75,0x74,0x6f]),_0x5ce87c[_0x4916d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4916d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4916d1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4916d1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4916d1([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 He(_0x1018b0){return void 0x0!==_0x1018b0['getRootsAttributes'];}async function P(_0x338f8d,_0x1f774a,_0x5ce41a){const _0x560e0b=_0x1e5152(_0x338f8d,p);_0x560e0b['plugins']['push'](d,Ge),_0x560e0b['rootsAttributes']=He(_0x338f8d)?_0x338f8d['getRootsAttributes']():void 0x0;const _0x4f0a8b=document['createDocumentFragment'](),_0x3a33d2=_0x338f8d['config']['get']('trackChangesData')['editorCreator'],_0x5a7312=await _0x3a33d2(_0x560e0b,()=>function(_0x3763f3){const _0x33ac4f=document['createElement']('div');return _0x3763f3['appendChild'](_0x33ac4f),_0x33ac4f;}(_0x4f0a8b));!function(_0x31512e,_0x4289d1){const _0x94118d=_0x31512e['model']['document']['getRootNames']()['reduce']((_0x43f75d,_0x4dee2b)=>(_0x43f75d[_0x4dee2b]=_0x31512e['data']['get']({'rootName':_0x4dee2b}),_0x43f75d),{}),_0x39cc82=_0x31512e['plugins']['get']('Users')['users']['map'](_0x3c42cb=>({'id':_0x3c42cb['id'],'name':_0x3c42cb['name']})),_0x20d07d=_0x31512e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x521439=_0x31512e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5f46ab=_0x4289d1['plugins']['get']('Users'),_0x8eb983=_0x4289d1['plugins']['get']('TrackChangesEditing'),_0x38f5c6=_0x4289d1['plugins']['get']('CommentsRepository');for(const _0x103ac4 of _0x38f5c6['getCommentThreads']())_0x103ac4['remove']();for(const _0x328deb of _0x39cc82)_0x5f46ab['getUser'](_0x328deb['id'])||_0x5f46ab['addUser'](_0x328deb);_0x5f46ab['me']||_0x5f46ab['useAnonymousUser']();for(const _0x3d4657 of _0x521439)_0x38f5c6['addCommentThread'](_0x3d4657);for(const _0xf7296e of _0x20d07d)_0x8eb983['addSuggestionData'](_0xf7296e);_0x4289d1['data']['set'](_0x94118d);}(_0x338f8d,_0x5a7312),_0x5a7312['execute'](_0x1f774a?'acceptAllSuggestions':'discardAllSuggestions');const _0x189da9=He(_0x5a7312)?_0x5a7312['getFullData'](_0x5ce41a):_0x5a7312['data']['get'](_0x5ce41a);return await _0x5a7312['destroy'](),_0x189da9;}class Me extends _0x4d14fe{['options'];constructor(_0x3bc129,_0x23a26b){super(_0x3bc129),this['options']=_0x23a26b,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'](_0x189d09,_0x11e980){if(!this['element'])return;const _0x28e0a8=[];for(const [_0x5a2e3e,_0x120d09]of _0x189d09){const _0x571530=document['createElement']('div');_0x571530['setAttribute']('data-ck-root-name',_0x5a2e3e),_0x571530['className']=_0x120d09['classes']+'\x20ck-track-changes-preview__root-container',_0x571530['innerHTML']=_0x120d09['content'],_0x28e0a8['push'](_0x571530);}_0x11e980(this['element'],_0x28e0a8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x218d32{constructor(_0x2cd7f4){super(_0x2cd7f4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e66ee=this['editor'],_0x35e7f5=_0x3e66ee['locale'],_0x104cf2=_0x3e66ee['plugins']['get']('Dialog');let _0x1fbc27;const _0x90749a=function(_0x1fee0a){const _0x4bc589={};if('editables'in _0x1fee0a['ui']['view']){for(const [_0x2deda1,_0x131975]of Object['entries'](_0x1fee0a['ui']['view']['editables']))_0x4bc589[_0x2deda1]=_0x131975['element'];}else _0x4bc589[_0x1fee0a['model']['document']['getRootNames']()[0x0]]=_0x1fee0a['ui']['view']['editable']['element'];return _0x4bc589;}(_0x3e66ee),_0x312da6=function(_0x5ce7a9){let _0x37b8b0=0x0;for(const _0x5eb27d of Object['values'](_0x5ce7a9))_0x37b8b0=Math['max'](_0x37b8b0,_0x5eb27d['getBoundingClientRect']()['width']);let _0x23db46=0x0;for(const _0x1f27f4 of Object['values'](_0x5ce7a9))_0x23db46+=_0x1f27f4['getBoundingClientRect']()['height'];const _0x38430e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x440e91=Math['min'](_0x23db46,_0x38430e);return{'width':_0x37b8b0,'height':_0x440e91};}(_0x90749a);_0x104cf2['show']({'id':'finalContentPreview','title':o(_0x35e7f5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x35e7f5,{'dialogRects':_0x312da6}),'onHide':()=>{_0x1fbc27['detachFromDom']();},'onShow':()=>{_0x3e66ee['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xae284b=>{const _0x13f09d=this['_standarizeRootsData'](_0xae284b,_0x3e66ee,_0x90749a);_0x104cf2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x13f09d,_0x3e66ee['config']['get']('trackChanges.preview.renderFunction'));}),_0x1fbc27=new _0x5ee352(_0x35e7f5,[_0x104cf2['view']]),_0x1fbc27['attachToDom'](),_0x1fbc27['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e66ee['once']('destroy',()=>{_0x1fbc27['detachFromDom']();});const _0x55b1eb=_0x104cf2['view']['headerView']['class'];_0x104cf2['view']['headerView']['class']=_0x55b1eb?_0x55b1eb+'\x20ck-reset_all':'ck-reset_all',_0x104cf2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x104cf2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4c680e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2ce4b0=_0x4c680e['previewMode'],_0x4e1e70={};if('$labels'===_0x2ce4b0){for(const _0x49c958 of _0x4c680e['getMergeFieldsIds']())_0x4e1e70[_0x49c958]=_0x4c680e['getLabel'](_0x49c958)||_0x49c958;}else{const _0xb10566='$defaultValues'===_0x2ce4b0?_0x4c680e['getDefaultValues']():_0x4c680e['getDataSetValues'](_0x2ce4b0,!0x0);for(const _0x5878bc of Object['entries'](_0xb10566)){const [_0x459a57,_0x1571cd]=_0x5878bc;_0x4e1e70[_0x459a57]=null!==_0x1571cd?_0x1571cd:_0x4c680e['getLabel'](_0x459a57)||_0x459a57;}}return{'mergeFieldsData':_0x4e1e70};}['_standarizeRootsData'](_0x56c10f,_0x425302,_0x13ecf0){let _0x2944af;if('string'==typeof _0x56c10f){const _0x23b4e7=_0x425302['model']['document']['getRootNames']()[0x0];_0x2944af={[_0x23b4e7]:_0x56c10f};}else _0x2944af=_0x56c10f;const _0x8a94b3=this['_fixMediaEmbeds'](_0x2944af,_0x425302),_0x524b09=function(_0x30b467,_0x3b925f){for(const [_0x2f924c,_0x1dde89]of _0x30b467)_0x1dde89['classes']=_0x3b925f[_0x2f924c]['classList']['value']['replace']('ck-focused','');return _0x30b467;}(this['_sortRoots'](_0x425302)['reduce']((_0x1efbc8,_0x8d7648)=>(_0x1efbc8['push']([_0x8d7648,{'content':_0x8a94b3[_0x8d7648],'classes':''}]),_0x1efbc8),[]),_0x13ecf0);return _0x524b09;}['_fixMediaEmbeds'](_0x36631a,_0xd97e7c){if(!_0xd97e7c['plugins']['has']('MediaEmbedEditing'))return _0x36631a;const _0x3ef4b9=_0xd97e7c['plugins']['get']('MediaEmbedEditing');for(const [_0x27201a,_0x32581f]of Object['entries'](_0x36631a)){const _0x81061d=document['createElement']('div');_0x81061d['innerHTML']=_0x32581f,(_0x81061d['querySelectorAll']('figure.media')['forEach'](_0x2e608f=>{const _0x2315dc=_0x2e608f['querySelector']('oembed');if(_0x2315dc){const _0x51610d=_0x2315dc['getAttribute']('url');if(_0x51610d){const _0x21763c=_0x3ef4b9['registry']['getMediaViewElement'](new _0x1242f4(_0xd97e7c['editing']['view']['document']),_0x51610d,{'elementName':'','renderForEditingView':!0x0}),_0x2e526d=document['createElement']('div');_0x2e526d['classList']['add']('ck-media__wrapper'),_0x21763c['render'](_0x2e526d,_0xd97e7c['editing']['view']['domConverter']),_0x2315dc['replaceWith'](_0x2e526d);}}}),_0x36631a[_0x27201a]=_0x81061d['innerHTML']);}return _0x36631a;}['_sortRoots'](_0x559ab4){if(!function(_0xabf1b6){return void 0x0!==_0xabf1b6['getRootsAttributes'];}(_0x559ab4))return _0x559ab4['model']['document']['getRootNames']();const _0xd9e971=[],_0x44db4d=new Map();for(const _0x1869ee of _0x559ab4['model']['document']['getRootNames']()){const _0x4a86d5=_0x559ab4['editing']['view']['getDomRoot'](_0x1869ee)['getClientRects']()['item'](0x0);_0xd9e971['push'](_0x1869ee),_0x44db4d['set'](_0x1869ee,_0x4a86d5);}return _0xd9e971['sort']((_0x3cddd0,_0x25a322)=>{const _0x1a6896=_0x44db4d['get'](_0x3cddd0),_0x2810b5=_0x44db4d['get'](_0x25a322);return _0x1a6896['y']-_0x2810b5['y']||_0x1a6896['x']-_0x2810b5['x'];}),_0xd9e971;}}class $e extends _0x342976{static get['requires'](){return[re,_0x237b7b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54a1a8){super(_0x54a1a8),_0x54a1a8['commands']['add']('previewFinalContent',new te(this['editor'])),_0x54a1a8['config']['define']('trackChanges.preview.renderFunction',(_0x2bdfa7,_0x229676)=>{for(const _0x37db33 of _0x229676)_0x2bdfa7['appendChild'](_0x37db33);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x4e9be7,Plugin as _0x2eaa3f,PendingActions as _0x2c2606}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x372022,ObservableMixin as _0x2bf28b,uid as _0x191a50,priorities as _0x4d0a93,insertToPriorityArray as _0x1396de,toArray as _0x41c331,logWarning as _0x24dafe,getEnvKeystrokeText as _0x2030bd,FocusTracker as _0x4472f9,KeystrokeHandler as _0x2eb762,Collection as _0x4ea7e1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x116892,IconCancel as _0x2092bd,IconTrackChanges as _0xd8d0d6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x100aed,View as _0x12b39f,ViewCollection as _0x305073,FocusCycler as _0x51faa7,UIModel as _0x5b57fc,createDropdown as _0x4a9766,SplitButtonView as _0x5a68b1,addListToDropdown as _0x1cb880,MenuBarMenuView as _0x5d8d62,MenuBarMenuListView as _0x4d82f5,ListSeparatorView as _0x2e1dff,MenuBarMenuListItemView as _0x657c8c,MenuBarMenuListItemButtonView as _0x265e12,BodyCollection as _0x1d5eba,Dialog as _0x4b72b9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1ad4d7,hashObject as _0x594282,surroundingMarkersDetector as _0x51abfb,FOCUS_ANNOTATION_KEYSTROKE as _0x5c3721,AriaDescriptionView as _0x1bcefb,setupThreadKeyboardNavigation as _0x732271,trimHtml as _0x5ea94a,UserView as _0x4c185a,LateFocusButtonView as _0x3908cc,getDateTimeFormatter as _0x4a9f0f,getAllMarkersDomElementsSorted as _0x1fc656,sanitizeEditorConfig as _0x4ddb27}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x38b6ff,ModelLiveRange as _0x3ba60d,ModelLivePosition as _0x2075ef,ViewDowncastWriter as _0x58a202}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x42efa8,toWidget as _0x5c7901}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4e0051,set as _0x1ed8de,isEqual as _0x35253f,unset as _0x5c39f4,omit as Ut}from'es-toolkit/compat';import{Delete as _0x447ca1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4518bd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x81b91f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x4e9be7{['_enabledCommands'];constructor(_0x3c746b,_0x4a1741){super(_0x3c746b),this['_enabledCommands']=_0x4a1741,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 _0x506b7f of this['editor']['commands']['commands']())_0x506b7f['affectsData']&&!this['_enabledCommands']['has'](_0x506b7f)&&_0x506b7f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1b328e of this['editor']['commands']['commands']())_0x1b328e['affectsData']&&!this['_enabledCommands']['has'](_0x1b328e)&&_0x1b328e['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x4e9be7{['_suggestions'];constructor(_0x3b6567,_0x4278f1){super(_0x3b6567),this['_suggestions']=_0x4278f1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9c7517){const _0x11affb=this['_suggestions']['get'](_0x9c7517);if(!_0x11affb)throw new _0x372022('track-changes-accept-suggestion-not-found',this);const _0x59ef69=_0x11affb['getRanges']();this['editor']['model']['canEditAt'](_0x59ef69)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x11affb);}}class $ extends _0x4e9be7{['_suggestions'];constructor(_0x17eae1,_0x528ca0){super(_0x17eae1),this['_suggestions']=_0x528ca0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x573a74){const _0x26de6f=this['_suggestions']['get'](_0x573a74);if(!_0x26de6f)throw new _0x372022('track-changes-discard-suggestion-not-found',this);const _0x556674=_0x26de6f['getRanges']();this['editor']['model']['canEditAt'](_0x556674)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x26de6f);}}function ls(_0x53a5c2,_0x289f34){let _0x2a8c5f='';return _0x2a8c5f+=_0x53a5c2['split']('*')['map']((_0x52d198,_0x556235)=>_0x556235%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x52d198)+'</span>':Zt(_0x52d198))['join'](''),_0x289f34&&(_0x2a8c5f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x289f34['value']+'\x22\x20title=\x22'+_0x289f34['title']+'\x22></span>'),_0x2a8c5f;}function Zt(_0x2fcc87){const _0x21eba3=document['createElement']('span');return _0x21eba3['innerText']=_0x2fcc87,_0x21eba3['innerHTML'];}function ts(_0x11b8c2){return _0x11b8c2['sort']((_0x282cc9,_0x336c59)=>'attribute'===_0x282cc9['type']&&'attribute'!==_0x336c59['type']?-0x1:'attribute'!==_0x282cc9['type']&&'attribute'===_0x336c59['type']?0x1:'deletion'==_0x282cc9['type']&&'deletion'!=_0x336c59['type']?-0x1:'deletion'!=_0x282cc9['type']&&'deletion'==_0x336c59['type']?0x1:0x0);}function to(_0x13bcbc,_0x1af7ff){let _0x420972,_0x4a20f2=0x0;const _0x529af7=[],_0x2e8568=_0x1af7ff['schema'];for(;_0x4a20f2<_0x13bcbc['length'];){const _0x4696ea=_0x13bcbc[_0x4a20f2],_0x1b6fcb=_0x13bcbc[_0x4a20f2+0x1];_0x420972||(_0x420972=_0x1af7ff['createPositionBefore'](_0x4696ea)),tn(_0x1af7ff,_0x4696ea,_0x1b6fcb)||(_0x529af7['push'](_0x1af7ff['createRange'](_0x420972,_0x2e8568['isObject'](_0x4696ea)?_0x1af7ff['createPositionAfter'](_0x4696ea):_0x1af7ff['createPositionAt'](_0x4696ea,'end'))),_0x420972=null),_0x4a20f2++;}return _0x529af7;}function tn(_0x58205b,_0x2d1ed8,_0x4277d5){if(!_0x4277d5)return!0x1;const _0x3f7520=_0x58205b['createPositionAfter'](_0x2d1ed8),_0x1000be=_0x58205b['createPositionBefore'](_0x4277d5);return _0x3f7520['isTouching'](_0x1000be);}function rs(_0x2bda41,_0x2fe5a0,_0x2b33f3){for(;_0x2b33f3['length'];){const _0x5d783e=_0x2b33f3['splice'](0x0,0x64);_0x2bda41['change'](()=>{for(const _0x129c2b of _0x5d783e)_0x129c2b['isInContent']&&_0x2fe5a0['execute'](_0x129c2b['id']);});}}class M extends _0x4e9be7{['_command'];['_suggestions'];constructor(_0x587072,_0x2df87c,_0x24af36){super(_0x587072),this['_command']=_0x2df87c,this['_suggestions']=_0x24af36,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4ada5a=Array['from'](this['_suggestions']['values']())['some'](_0x59e43f=>_0x59e43f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4ada5a;}['execute'](){const _0x534e45=ts(Array['from'](this['_suggestions']['values']()));for(const _0x10e139 of _0x534e45){const _0x3d984f=_0x10e139['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d984f))return;}rs(this['editor']['model'],this['_command'],_0x534e45);}}class B extends _0x4e9be7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x134855,_0x35de2a,_0x555bbe){super(_0x134855),this['_command']=_0x35de2a,this['_suggestions']=_0x555bbe,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x454d23=this['editor']['model']['document']['selection'],_0x40bab0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x399cd2,_0x25099d){const _0x4bcdbd=Array['from'](_0x399cd2['getRanges']()),_0x8af2f8=new Set();for(const _0x112ba2 of _0x25099d)if(_0x112ba2['isInContent']){for(const _0x12ecff of _0x4bcdbd)for(const _0x45270e of _0x112ba2['getRanges']())(_0x12ecff['isIntersecting'](_0x45270e)||_0x399cd2['isCollapsed']&&!_0x112ba2['isMultiRange']&&_0x112ba2['next']&&_0x45270e['end']['isTouching'](_0x12ecff['start']))&&_0x8af2f8['add'](_0x112ba2);}return _0x8af2f8;}(_0x454d23,_0x40bab0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x45a809=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5d3752 of _0x45a809){const _0x481e71=_0x5d3752['getRanges']();if(!this['editor']['model']['canEditAt'](_0x481e71))return;}rs(this['editor']['model'],this['_command'],_0x45a809);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x2bf28b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4bdc66,_0x307eb1){super(),this['id']=_0x307eb1['id'],this['type']=_0x307eb1['type'],this['subType']=_0x307eb1['subType']||null,this['author']=_0x307eb1['author'],this['creator']=_0x307eb1['creator']||_0x307eb1['author'],this['isExternal']=Boolean(_0x307eb1['attributes']&&_0x307eb1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x307eb1['originalSuggestionId']||null,this['_model']=_0x4bdc66,this['_onAccept']=_0x307eb1['onAccept'],this['_onDiscard']=_0x307eb1['onDiscard'],this['_onAttributesChange']=_0x307eb1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x307eb1['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 _0x1fbcec=this;for(;_0x1fbcec['previous'];)_0x1fbcec=_0x1fbcec['previous'];return _0x1fbcec;}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'](_0x2d248b){this['_markerNames']['add'](_0x2d248b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x298c1a=>this['_model']['markers']['get'](_0x298c1a))['filter'](_0x564944=>_0x564944);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x35d4df=>{for(const _0x27fbc1 of this['getMarkers']())_0x35d4df['removeMarker'](_0x27fbc1);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d5634){this['_model']['change'](_0x25cfeb=>{_0x25cfeb['removeMarker'](_0x1d5634);}),this['_markerNames']['delete'](_0x1d5634);}['addRange'](_0x2e1f6b){const _0x4c3281='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4c3281),this['_model']['change'](_0x31bbd0=>{_0x31bbd0['addMarker'](_0x4c3281,{'range':_0x2e1f6b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1ec552){for(const _0x27b358 of this['getRanges']())if(_0x27b358['isIntersecting'](_0x1ec552))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x372919=>_0x372919['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x15fbd6,_0x32f6e8)=>[..._0x15fbd6,..._0x32f6e8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x222b92=this['getRanges']();if(0x1!=_0x222b92['length'])return null;const _0xfb9250=_0x222b92[0x0],_0x61135d=_0xfb9250['start']['nodeAfter'],_0x36447c=_0xfb9250['end']['nodeBefore'];return _0x61135d instanceof _0x38b6ff?_0x61135d!=_0x36447c?null:_0x61135d: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 _0x2b5a4e=[];let _0x45c7a6=this['head'];for(;_0x45c7a6;)_0x2b5a4e['push'](_0x45c7a6),_0x45c7a6=_0x45c7a6['next'];return _0x2b5a4e;}['setAttribute'](_0x3733b6,_0x515abf){const _0xa4db6b=_0x4e0051(this['attributes']);_0x1ed8de(_0xa4db6b,_0x3733b6,_0x515abf),_0x35253f(_0xa4db6b,this['attributes'])||(this['attributes']=_0xa4db6b,this['_onAttributesChange'](_0xa4db6b));}['removeAttribute'](_0x59d662){const _0x147ab2=_0x4e0051(this['attributes']);_0x5c39f4(_0x147ab2,_0x59d662),_0x35253f(_0x147ab2,this['attributes'])||(this['attributes']=_0x147ab2,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 _0x191a50()['substr'](0x1,0x5);}}function o(_0x24b975,_0xa24a75,_0x2f61ed){const _0x49069c=_0x24b975['t'],t=_0x24b975['t'];switch(_0xa24a75){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',_0x2f61ed);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f61ed);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f61ed);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f61ed);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f61ed);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',_0x2f61ed);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f61ed);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',_0x2f61ed);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f61ed);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f61ed);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f61ed);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f61ed);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f61ed);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2f61ed);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f61ed);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f61ed);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f61ed);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f61ed);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f61ed);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f61ed);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f61ed);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f61ed);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f61ed);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f61ed);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2f61ed);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'},_0x2f61ed);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2f61ed);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2f61ed);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f61ed);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f61ed);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f61ed);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f61ed);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f61ed);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'},_0x2f61ed);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f61ed);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f61ed);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f61ed);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f61ed);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'},_0x2f61ed);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f61ed);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'},_0x2f61ed);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x2f61ed);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f61ed);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'},_0x2f61ed);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f61ed);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'},_0x2f61ed);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f61ed);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f61ed);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'},_0x2f61ed);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2f61ed);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 _0x49069c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2f61ed);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x49069c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2f61ed);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2f61ed);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'},_0x2f61ed);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'},_0x2f61ed);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'},_0x2f61ed);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xa24a75;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xddd711,_0xfa7711){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xddd711,this['_locale']=_0xfa7711;}['getDescriptions'](_0x5d7930){const _0x4ac6fd=[],_0x4b16a4=new Set(),_0x307d4c=new Set();for(let _0x1e3346=0x0;_0x1e3346<_0x5d7930['length'];_0x1e3346++){const _0x55b1fd=_0x5d7930[_0x1e3346];if(!_0x55b1fd['isInContent'])continue;const _0xfc9bca=this['_handleCustomCallbackDescription'](_0x55b1fd);if(_0xfc9bca){if(null!=_0x55b1fd['subType']){if(_0x4b16a4['has'](_0x55b1fd['subType']))continue;_0x4b16a4['add'](_0x55b1fd['subType']);}_0x4ac6fd['push'](_0xfc9bca);}else{if('attribute'==_0x55b1fd['type']){const _0x3f6a09=_0x55b1fd['data']['key'];if(_0x307d4c['has'](_0x3f6a09))continue;_0x307d4c['add'](_0x55b1fd['data']['key']),_0x3f6a09==m?this['_handleRenameSuggestionDescription'](_0x4ac6fd,_0x55b1fd):this['_handleAttributeSuggestionDescription'](_0x4ac6fd,_0x55b1fd);continue;}'insertion'!=_0x55b1fd['type']&&'deletion'!=_0x55b1fd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ac6fd,_0x55b1fd,_0x5d7930[_0x1e3346+0x1]);}}return this['_resolveDescriptionItems'](_0x4ac6fd);}['registerDescriptionCallback'](_0x18a9fa){this['_customCallbacks']['push'](_0x18a9fa);}['registerElementLabel'](_0x3c9acf,_0x4a780a,_0x3b6add=_0x4d0a93['normal']){'function'==typeof _0x3c9acf?_0x1396de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3c9acf,'label':_0x4a780a,'priority':_0x3b6add}):this['_itemLabels']['set'](_0x3c9acf,_0x4a780a);}['registerAttributeLabel'](_0x3f07b7,_0x4680ba){this['_attributeLabels']['set'](_0x3f07b7,_0x4680ba);}['getItemLabel'](_0xb7f0b0,_0x3f5d3f=0x1){let _0x1c82a6;for(const _0x436d7a of this['_itemLabelsCallbacks'])if(_0x436d7a['matchingCallback'](_0xb7f0b0)){_0x1c82a6=_0x436d7a['label'];break;}return _0x1c82a6||(_0x1c82a6=this['_itemLabels']['get'](_0xb7f0b0['name'])),_0x1c82a6?_0x1c82a6(_0x3f5d3f):0x1!==_0x3f5d3f?_0x3f5d3f+'\x20'+_0xb7f0b0['name']+'s':''+_0xb7f0b0['name'];}['_addDescriptionItems'](_0x56c1e0,_0x51ff65){const _0xc53aa5=_0x51ff65['getFirstRange']()['getWalker'](),_0x5d02ff='insertion'==_0x51ff65['type']?'add':'remove';for(const _0x1c8869 of _0xc53aa5){const _0x5977a1=_0x1c8869['item'],_0x5081f7=_0x56c1e0[_0x56c1e0['length']-0x1];if(_0x5977a1['is']('$textProxy'))_0x5081f7&&_0x5081f7['type']['indexOf']('Container')>-0x1&&_0x56c1e0['pop'](),_0x5081f7&&'text'==_0x5081f7['type']?_0x5081f7[_0x5d02ff]+=_0x5977a1['data']:_0x56c1e0['push']({'type':'text','add':'add'==_0x5d02ff?_0x5977a1['data']:'','remove':'remove'==_0x5d02ff?_0x5977a1['data']:''});else{if(this['_schema']['isObject'](_0x5977a1)){const _0xbacd11=_0x5977a1;if(_0x5081f7&&_0x5081f7['type']['indexOf']('Container')>-0x1&&_0x56c1e0['pop'](),'elementEnd'==_0x1c8869['type'])continue;_0x5081f7&&_0x5081f7['type']==_0x5d02ff+'Object'&&_0x5081f7['element']['name']==_0xbacd11['name']?_0x5081f7['quantity']++:_0x56c1e0['push']({'type':_0x5d02ff+'Object','element':_0xbacd11,'quantity':0x1}),_0xc53aa5['skip'](_0x1f7e07=>!('elementEnd'==_0x1f7e07['type']&&_0x1f7e07['item']==_0x5977a1));}else{if(this['_schema']['checkChild'](_0x5977a1,'$text')||_0x5977a1['is']('element','softBreak')){const _0x168d32=_0x5977a1;if('add'==_0x5d02ff&&'elementStart'==_0x1c8869['type']||'remove'==_0x5d02ff&&'elementEnd'==_0x1c8869['type'])continue;if(_0x5081f7&&-0x1==_0x5081f7['type']['indexOf']('Container')){'text'==_0x5081f7['type']&&(_0x5081f7[_0x5d02ff]+='\x0a');continue;}let _0x1d2164;if(_0x1d2164='add'==_0x5d02ff?_0x168d32['nextSibling']&&!this['_schema']['isObject'](_0x168d32['nextSibling'])?_0x168d32['nextSibling']:null:_0x168d32['previousSibling']&&!this['_schema']['isObject'](_0x168d32['previousSibling'])?_0x168d32['previousSibling']:null,_0x168d32['isEmpty']||_0x1d2164&&_0x1d2164['isEmpty']){const _0x32192f=_0x1d2164&&_0x1d2164['isEmpty']?_0x1d2164:_0x168d32;_0x5081f7&&_0x5081f7['type']==_0x5d02ff+'EmptyContainer'&&_0x5081f7['element']['name']==_0x32192f['name']?_0x5081f7['quantity']++:_0x56c1e0['push']({'type':_0x5d02ff+'EmptyContainer','element':_0x32192f,'quantity':0x1});}else _0x56c1e0['push']({'type':_0x5d02ff+'Container','element':_0x168d32});}}}}}['_resolveDescriptionItems'](_0xab51ed){const _0x4f4e52=this['_locale'],_0x48da0e=[],_0xab3acc=[],_0x23076a=[];for(const _0xc8859 of _0xab51ed)switch(_0xc8859['type']){case'text':if(_0xc8859['add']=_0xc8859['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xc8859['remove']=_0xc8859['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xc8859['add']&&''!=_0xc8859['remove']){_0x48da0e['push']({'type':'replace','content':o(_0x4f4e52,'REPLACE_TEXT',['\x22'+_0xc8859['remove']+'\x22','\x22'+_0xc8859['add']+'\x22'])});continue;}if(null!=_0xc8859['add']['match'](/^ +$/)){_0x48da0e['push']({'type':'insertion','content':o(_0x4f4e52,'*Insert:*\x20%0',o(_0x4f4e52,'ELEMENT_SPACE',_0xc8859['add']['length']))});continue;}if(null!=_0xc8859['remove']['match'](/^ +$/)){_0x48da0e['push']({'type':'deletion','content':o(_0x4f4e52,'*Remove:*\x20%0',o(_0x4f4e52,'ELEMENT_SPACE',_0xc8859['remove']['length']))});continue;}if(''!=_0xc8859['add']){_0x48da0e['push']({'type':'insertion','content':o(_0x4f4e52,'*Insert:*\x20%0','\x22'+_0xc8859['add']+'\x22')});continue;}_0x48da0e['push']({'type':'deletion','content':o(_0x4f4e52,'*Remove:*\x20%0','\x22'+_0xc8859['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48da0e['push']({'type':'insertion','content':o(_0x4f4e52,'*Insert:*\x20%0',this['getItemLabel'](_0xc8859['element'],_0xc8859['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48da0e['push']({'type':'deletion','content':o(_0x4f4e52,'*Remove:*\x20%0',this['getItemLabel'](_0xc8859['element'],_0xc8859['quantity']))});continue;case'addContainer':_0x48da0e['push']({'type':'insertion','content':o(_0x4f4e52,'*Split:*\x20%0',this['getItemLabel'](_0xc8859['element'],_0xc8859['quantity']))});continue;case'removeContainer':_0x48da0e['push']({'type':'deletion','content':o(_0x4f4e52,'*Merge:*\x20%0',this['getItemLabel'](_0xc8859['element'],_0xc8859['quantity']))});continue;case'addFormat':_0xab3acc['push'](_0xc8859['key']);continue;case'removeFormat':_0x23076a['push'](_0xc8859['key']);continue;default:_0x48da0e['push'](_0xc8859);}if(_0xab3acc['length']){const _0x54ba76=_0xab3acc['map'](_0xbc4cc3=>this['_attributeLabels']['has'](_0xbc4cc3)?this['_attributeLabels']['get'](_0xbc4cc3):_0xbc4cc3)['join'](',\x20');_0x48da0e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x54ba76)});}if(_0x23076a['length']){const _0x577f3d=_0x23076a['map'](_0x57466c=>this['_attributeLabels']['has'](_0x57466c)?this['_attributeLabels']['get'](_0x57466c):_0x57466c)['join'](',\x20');_0x48da0e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x577f3d)});}return _0x48da0e;}['_handleCustomCallbackDescription'](_0x5294a8){for(const _0xf70619 of this['_customCallbacks']){const _0x4b2939=_0xf70619(_0x5294a8);if(_0x4b2939&&'type'in _0x4b2939)return _0x4b2939;}}['_handleAttributeSuggestionDescription'](_0x177064,_0x161f84){const _0x263109=_0x161f84['data'],_0x18ff2d=void 0x0===_0x263109['newValue']?'removeFormat':'addFormat';_0x177064['push']({'type':_0x18ff2d,'key':_0x263109['key']});}['_handleRenameSuggestionDescription'](_0x2a231f,_0x2f41ae){_0x2a231f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2f41ae['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x417fca,_0x499a69,_0x16c451){if(this['_addDescriptionItems'](_0x417fca,_0x499a69),_0x16c451&&_0x16c451['getFirstRange']()&&!_0x499a69['getFirstRange']()['end']['isEqual'](_0x16c451['getFirstRange']()['start'])){const _0x174a51=_0x417fca[_0x417fca['length']-0x1],_0x5e6d10='insertion'==_0x499a69['type']?'add':'remove';_0x174a51&&'text'==_0x174a51['type']&&(_0x174a51[_0x5e6d10]+='\x0a');}}}class O extends _0x2eaa3f{['afterInit'](){const _0x5960a7=this['editor'],_0x59f4c2=_0x5960a7['plugins']['get']('TrackChangesEditing');_0x5960a7['commands']['get']('showAIAssistant')&&_0x59f4c2['enableCommand']('showAIAssistant');}}class E extends _0x2eaa3f{['afterInit'](){const _0x342367=this['editor'],_0x5c34f4=_0x342367['locale'];if(!_0x342367['plugins']['has']('AlignmentEditing'))return;const _0x14286d=_0x342367['plugins']['get']('TrackChangesEditing');_0x14286d['enableDefaultAttributesIntegration']('alignment'),_0x14286d['registerBlockAttribute']('alignment'),_0x14286d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5c34f4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4eb7ae=this['editor'],_0x3217dd=_0x4eb7ae['locale'];_0x4eb7ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c0e45=>{if('formatBlock'!=_0x2c0e45['type'])return;const {data:_0x40c8a8}=_0x2c0e45;if(_0x40c8a8&&'alignment'==_0x40c8a8['commandName']){const _0xec70b3=_0x40c8a8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3217dd,'*Format:*\x20%0',function(_0x52be77){switch(_0x52be77){case'left':return o(_0x3217dd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3217dd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3217dd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3217dd,'FORMAT_JUSTIFY_TEXT');}}(_0xec70b3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x2eaa3f{['afterInit'](){const _0x3aac6b=this['editor'],_0x2a4c3a=_0x3aac6b['plugins']['get']('TrackChangesEditing'),_0x46b341=_0x3aac6b['locale'];for(const _0x57a533 of ti){if(!_0x3aac6b['plugins']['has'](_0x57a533))continue;const _0x2d4cb5=_0x57a533['slice'](0x0,-0x7)['toLowerCase'](),_0x38f77f='FORMAT_'+_0x2d4cb5['toUpperCase']();_0x2a4c3a['enableDefaultAttributesIntegration'](_0x2d4cb5),_0x2a4c3a['registerInlineAttribute'](_0x2d4cb5),_0x2a4c3a['descriptionFactory']['registerAttributeLabel'](_0x2d4cb5,o(_0x46b341,_0x38f77f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ce1fb=this['editor'],_0x57c215=_0x3ce1fb['locale'],_0x59df6d=_0x3ce1fb['plugins']['get']('TrackChangesEditing');function _0x4d48e8(_0x14bb89,_0x5e8833){_0x59df6d['descriptionFactory']['registerDescriptionCallback'](_0x53dc34=>{if('formatInline'!=_0x53dc34['type'])return;const {data:_0x3b1149}=_0x53dc34;return _0x3b1149&&_0x3b1149['commandName']===_0x14bb89?_0x3b1149['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57c215,'*Format:*\x20%0',_0x5e8833)}:{'type':'format','content':o(_0x57c215,'*Remove\x20format:*\x20%0',_0x5e8833)}:void 0x0;});}_0x4d48e8('bold',o(_0x57c215,'FORMAT_BOLD')),_0x4d48e8('italic',o(_0x57c215,'FORMAT_ITALIC')),_0x4d48e8('underline',o(_0x57c215,'FORMAT_UNDERLINE')),_0x4d48e8('code',o(_0x57c215,'FORMAT_CODE')),_0x4d48e8('strikethrough',o(_0x57c215,'FORMAT_STRIKETHROUGH')),_0x4d48e8('subscript',o(_0x57c215,'FORMAT_SUBSCRIPT')),_0x4d48e8('superscript',o(_0x57c215,'FORMAT_SUPERSCRIPT'));}}class U extends _0x2eaa3f{['afterInit'](){const _0xfe5deb=this['editor'],_0x22462f=_0xfe5deb['locale'];if(!_0xfe5deb['plugins']['has']('BlockQuoteEditing'))return;const _0x2c713b=_0xfe5deb['plugins']['get']('TrackChangesEditing'),_0x8d239b=this['editor']['commands']['get']('blockQuote');_0x2c713b['enableCommand']('blockQuote',(_0x4ab69c,_0xcc7077={})=>{const _0x318054=this['editor']['model']['document']['selection'],_0x4f5e1f=_0xcc7077&&void 0x0!==_0xcc7077['forceValue']?_0xcc7077['forceValue']:!_0x8d239b['value'];let _0x46d14a=[];if(_0x4f5e1f){const _0x445b9b=Array['from'](_0x318054['getSelectedBlocks']())['filter'](_0x51ec00=>oo(_0x51ec00)||function(_0x3ce3d6,_0x4d2484){const _0x343bee=_0x4d2484['checkChild'](_0x3ce3d6['parent'],'blockQuote'),_0x5885a6=_0x4d2484['checkChild'](['$root','blockQuote'],_0x3ce3d6);return _0x343bee&&_0x5885a6;}(_0x51ec00,this['editor']['model']['schema']));_0x46d14a=to(_0x445b9b,_0xfe5deb['model']);}else{const _0x24338b=Array['from'](_0x318054['getSelectedBlocks']())['filter'](_0x3275f0=>oo(_0x3275f0));_0x46d14a=to(_0x24338b,_0xfe5deb['model']);}_0xfe5deb['model']['change'](()=>{for(const _0x2ab848 of _0x46d14a)_0x2c713b['markBlockFormat'](_0x2ab848,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4f5e1f}]});});}),_0x2c713b['descriptionFactory']['registerDescriptionCallback'](_0x4bb415=>{const {data:_0x48fc82}=_0x4bb415;if(_0x48fc82&&'blockQuote'==_0x48fc82['commandName']){const _0x5d5cfd=o(_0x22462f,'ELEMENT_BLOCK_QUOTE');return _0x48fc82['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22462f,'*Set\x20format:*\x20%0',_0x5d5cfd)}:{'type':'format','content':o(_0x22462f,'*Remove\x20format:*\x20%0',_0x5d5cfd)};}});}}function oo(_0x3c6902){return'blockQuote'==_0x3c6902['parent']['name'];}class V extends _0x2eaa3f{['afterInit'](){const _0x39077c=this['editor'],_0x26bfc6=_0x39077c['locale'],_0x5c3389=_0x39077c['plugins']['get']('TrackChangesEditing');_0x39077c['plugins']['has']('BookmarkEditing')&&(_0x5c3389['enableCommand']('insertBookmark'),_0x5c3389['enableDefaultAttributesIntegration']('updateBookmark'),_0x5c3389['registerBlockAttribute']('bookmarkId'),_0x5c3389['descriptionFactory']['registerDescriptionCallback'](_0x554971=>{if('insertion'!=_0x554971['type']&&'deletion'!=_0x554971['type']&&'attribute'!=_0x554971['type'])return;const _0x4bae39=_0x554971['getContainedElement']();if(null==_0x4bae39)return;if(!_0x4bae39['is']('element','bookmark'))return;const _0x3fdd24=_0x4bae39['getAttribute']('bookmarkId');if('insertion'==_0x554971['type'])return{'type':'insertion','content':o(_0x26bfc6,'*Insert:*\x20%0','\x22'+_0x3fdd24+'\x22\x20'+o(_0x26bfc6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x554971['type'])return{'type':'deletion','content':o(_0x26bfc6,'*Remove:*\x20%0','\x22'+_0x3fdd24+'\x22\x20'+o(_0x26bfc6,'ELEMENT_BOOKMARK'))};const {data:_0x1a5796}=_0x554971;if(!_0x1a5796||'bookmarkId'!=_0x1a5796['key'])return;return{'type':'format','content':o(_0x26bfc6,'*Set\x20bookmark:*\x20%0','\x22'+_0x1a5796['newValue']+'\x22')};}));}}class F extends _0x2eaa3f{['afterInit'](){const _0x31753d=this['editor'];_0x31753d['plugins']['has']('CaseChange')&&(_0x31753d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x31753d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x31753d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2eaa3f{['afterInit'](){const _0x449d7f=this['editor'];_0x449d7f['commands']['get']('ckbox')&&_0x449d7f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2eaa3f{['afterInit'](){const _0x260f31=this['editor'];if(!_0x260f31['plugins']['has']('CodeBlock'))return;const _0x5e4cd9=_0x260f31['plugins']['get']('TrackChangesEditing'),_0x4f4abb=_0x260f31['locale'],_0x5daac3=_0x260f31['config']['get']('codeBlock')['languages'],_0x363477=_0x260f31['commands']['get']('codeBlock');_0x5e4cd9['enableCommand']('indentCodeBlock'),_0x5e4cd9['enableCommand']('outdentCodeBlock'),_0x5e4cd9['enableCommand']('codeBlock',(_0x8870fc,_0x46be27={})=>{const _0x323d89=_0x260f31['model'],_0x12c992=_0x260f31['model']['document']['selection'],_0x564689=_0x46be27&&void 0x0!==_0x46be27['forceValue']?_0x46be27['forceValue']:!_0x363477['value'];let _0x1810ef;_0x46be27['language']||(_0x46be27['language']=_0x5daac3[0x0]['language']),_0x1810ef=_0x564689?Array['from'](_0x12c992['getSelectedBlocks']())['filter'](_0x5b60c3=>co(_0x5b60c3)||function(_0x1a4c36,_0x242e49){if(_0x1a4c36['is']('rootElement')||_0x242e49['isLimit'](_0x1a4c36))return!0x1;return _0x242e49['checkChild'](_0x1a4c36['parent'],'codeBlock');}(_0x5b60c3,_0x323d89['schema'])):Array['from'](_0x12c992['getSelectedBlocks']())['filter'](_0x31be9f=>co(_0x31be9f));const _0x16a71d=to(_0x1810ef,_0x323d89);_0x323d89['change'](()=>{for(const _0x53d6bc of _0x16a71d)_0x5e4cd9['markBlockFormat'](_0x53d6bc,{'commandName':'codeBlock','commandParams':[{..._0x46be27,'forceValue':_0x564689}],'formatGroupId':'blockName'});});}),(_0x5e4cd9['descriptionFactory']['registerElementLabel']('codeBlock',_0x5af8e9=>o(_0x4f4abb,'ELEMENT_CODE_BLOCK',_0x5af8e9)),_0x5e4cd9['descriptionFactory']['registerDescriptionCallback'](_0x8c94e=>{if('formatBlock'!=_0x8c94e['type'])return;const _0x372b80=_0x4f4abb['t'],{data:_0x1ebfc0}=_0x8c94e;if(!_0x1ebfc0||'codeBlock'!=_0x1ebfc0['commandName'])return;const _0x454485=_0x1ebfc0['commandParams'][0x0]['language'],_0x12c7dd=_0x372b80(_0x5daac3['find'](_0x1b4ff9=>_0x1b4ff9['language']===_0x454485)['label'])['toLowerCase']();return _0x1ebfc0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f4abb,'*Set\x20format:*\x20%0',o(_0x4f4abb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x12c7dd+')')}:{'type':'format','content':o(_0x4f4abb,'*Remove\x20format:*\x20%0',o(_0x4f4abb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x285829){return'codeBlock'==_0x285829['name'];}class J extends _0x2eaa3f{['afterInit'](){const _0x45f647=this['editor'];if(!_0x45f647['plugins']['has']('CommentsEditing'))return;_0x45f647['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x409c4d,_0x572d91,_0x53eae9){const _0x1f7678=[];for(const _0x3f1608 of _0x572d91['getItems']())_0x3f1608['hasAttribute'](_0x409c4d)&&_0x1f7678['push'](_0x53eae9['createRangeOn'](_0x3f1608));return _0x1f7678;}function De(_0x34adf6,_0x53feb4,{showActiveMarker:_0x4bcf90=!0x0}={}){const _0x211020=_0x34adf6['plugins']['get']('TrackChangesEditing');return(_0x41d9c7,_0x43d5cc,_0x4d2d73)=>{if(!_0x4d2d73['consumable']['test'](_0x43d5cc['markerRange'],_0x41d9c7['name']))return;const _0x145b50=_0x43d5cc['markerRange']['getWalker'](),_0x324357=_0x43d5cc['markerRange']['start'],_0x327151=_0x34adf6['model']['schema'];let _0x5866a7=null,_0x3928d9=null,_0x207e7e=!0x1,_0x3b3b7a=!0x1;for(const _0x457cff of _0x145b50){const _0x3f24c9=_0x457cff['item'];_0x207e7e=_0x207e7e||_0x327151['isContent'](_0x3f24c9);const _0x1686f1=_0x4d2d73['mapper']['toViewElement'](_0x3f24c9);if(_0x1686f1&&_0x1686f1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x457cff['type']&&(_0x327151['isBlock'](_0x3f24c9)&&!_0x327151['isLimit'](_0x3f24c9)&&(_0x3f24c9['nextSibling']||_0x324357['isAtEnd']?_0x5866a7&&_0x5866a7['parent']==_0x3f24c9||(_0x5866a7=_0x3f24c9,_0x257359(_0x457cff['previousPosition']),_0x3b3b7a=!0x0):_0x3928d9=_0x3928d9||_0x457cff['previousPosition']));}function _0x257359(_0xbd42ae){const {id:_0x50d916,authorId:_0x38ce48}=_0x211020['_splitMarkerName'](_0x43d5cc['markerName']),_0x974a3b=_0x4d2d73['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53feb4,'data-suggestion':_0x50d916,'data-author-id':_0x38ce48}),_0x4fed0c=_0x4d2d73['mapper']['toViewPosition'](_0xbd42ae);_0x4bcf90&&_0x211020['activeMarkers']['includes'](_0x43d5cc['markerName'])&&_0x4d2d73['writer']['addClass']('ck-suggestion-marker--active',_0x974a3b),_0x4d2d73['writer']['insert'](_0x4fed0c,_0x974a3b),_0x4d2d73['mapper']['bindElementToMarker'](_0x974a3b,_0x43d5cc['markerName']);}_0x207e7e||_0x3b3b7a||!_0x3928d9||_0x257359(_0x3928d9);};}class K extends _0x2eaa3f{static get['requires'](){return[_0x447ca1];}['init'](){const _0x10682d=this['editor'],_0x2369eb=_0x10682d['plugins']['get']('TrackChangesEditing');_0x2369eb['enableCommand']('delete');const _0x4012c2=_0x10682d['commands']['get']('deleteForward');_0x2369eb['enableCommand']('deleteForward',(_0x3581c6,_0xedd98d={})=>{const _0x1e6ca7=_0x10682d['model']['createSelection'](_0x10682d['model']['document']['selection']);_0x1e6ca7['isCollapsed']&&_0x10682d['model']['modifySelection'](_0x1e6ca7,{'direction':'forward','unit':_0xedd98d['unit']});const _0x59a4df=_0x1e6ca7['getFirstRange'](),_0x407069=_0x3ba60d['fromRange'](_0x59a4df);let _0xd9006a;_0x3581c6(_0xedd98d),_0xd9006a='$graveyard'==_0x407069['root']['rootName']?_0x10682d['model']['createRange'](_0x59a4df['start']):_0x10682d['model']['createRange'](_0x407069['start'],_0x407069['end']),_0x407069['detach'](),_0x10682d['model']['enqueueChange'](_0x4012c2['buffer']['batch'],_0x18ffbd=>{_0x4012c2['buffer']['lock'](),_0x18ffbd['setSelection'](_0x18ffbd['createRange'](_0xd9006a['end'])),_0x4012c2['buffer']['unlock']();});}),_0x10682d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x10682d,'merge'),{'priority':'high'}),_0x10682d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2fde0e,_0x54dfa9,_0x13d6e8)=>{_0x13d6e8['options']['showSuggestionHighlights']&&De(_0x10682d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2fde0e,_0x54dfa9,_0x13d6e8);},{'priority':'high'}),_0x10682d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x56d8cc,_0x422158,_0x20991a)=>{const _0x19b36a=_0x20991a['mapper']['markerNameToElements'](_0x422158['markerName']);if(_0x19b36a){for(const _0x3c941d of _0x19b36a)_0x3c941d['is']('uiElement')&&(_0x20991a['mapper']['unbindElementFromMarkerName'](_0x3c941d,_0x422158['markerName']),_0x20991a['writer']['remove'](_0x3c941d));}},{'priority':'high'});}}class H extends _0x2eaa3f{['afterInit'](){const _0x2f2003=this['editor'];if(!_0x2f2003['plugins']['has']('ListEditing'))return;const _0x193f73=_0x2f2003['locale'],_0x25174c=_0x2f2003['plugins']['get']('TrackChangesEditing'),_0x97ca85=_0x2f2003['plugins']['has']('TodoListEditing'),_0x533d26=!!_0x2f2003['config']['get']('list.multiBlock');function _0x32d24b(_0x445f5d){return{'type':'format','content':''+o(_0x193f73,'*Set\x20format:*\x20%0',_0x445f5d)};}function _0x10fb57(_0x49ab3e){return{'type':'format','content':''+o(_0x193f73,'*Remove\x20format:*\x20%0',_0x49ab3e)};}_0x25174c['enableDefaultAttributesIntegration']('numberedList'),_0x25174c['enableDefaultAttributesIntegration']('bulletedList'),_0x25174c['enableDefaultAttributesIntegration']('customNumberedList'),_0x25174c['enableDefaultAttributesIntegration']('customBulletedList'),_0x25174c['enableDefaultAttributesIntegration']('indentList'),_0x25174c['enableDefaultAttributesIntegration']('outdentList'),_0x25174c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25174c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x25174c['registerBlockAttribute']('listItemId'),_0x25174c['registerBlockAttribute']('listType'),_0x25174c['registerBlockAttribute']('listIndent'),_0x533d26&&(_0x25174c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25174c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x97ca85&&(_0x25174c['enableDefaultAttributesIntegration']('todoList'),_0x25174c['enableDefaultAttributesIntegration']('checkTodoList'),_0x25174c['registerBlockAttribute']('todoListChecked'),_0x25174c['descriptionFactory']['registerDescriptionCallback'](_0x2e01e9=>{const {data:_0x123b47}=_0x2e01e9;if(_0x123b47&&'todoListChecked'==_0x123b47['key'])return{'type':'format','content':_0x123b47['newValue']?o(_0x193f73,'*Check\x20item*'):o(_0x193f73,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x373ae8=>{if(_0x373ae8['batch']['isUndo'])return!0x1;let _0x4215bc=!0x1;const _0x1f37f0=_0x25174c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36d65f=>'todoListChecked'===_0x25174c['_getAttributeKey'](_0x36d65f));for(const _0x1a35fe of _0x1f37f0){'todo'!=_0x1a35fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25174c['_findSuggestions'](_0x1a35fe['getFirstRange'](),'attribute')['find'](_0x4e35fc=>'listType'===_0x25174c['_getAttributeKey'](_0x4e35fc['suggestion']))||(_0x373ae8['removeMarker'](_0x1a35fe['getFirstMarker']()),_0x4215bc=!0x0));}return _0x4215bc;})),_0x25174c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x193f73,'FORMAT_INDENT'));const _0x78aa8d={'type':'format','content':''};_0x25174c['descriptionFactory']['registerDescriptionCallback'](_0x296887=>{const {data:_0x128f09}=_0x296887;if(!_0x128f09||'listType'!=_0x128f09['key'])return;let _0x2f16e6=_0x296887['head'];for(;_0x2f16e6;){if(_0x2f16e6['data']&&(('listStyle'==_0x2f16e6['data']['key']||'listMarkerStyle'==_0x2f16e6['data']['key'])&&(_0x2f16e6['data']['newValue']&&'default'!=_0x2f16e6['data']['newValue']||'default'!=_0x2f16e6['data']['oldValue']&&!_0x128f09['newValue'])||!_0x533d26&&_0x2f16e6['data']['key']==m))return _0x78aa8d;_0x2f16e6=_0x2f16e6['next'];}if(null==_0x128f09['newValue'])switch(_0x128f09['oldValue']){case'bulleted':return _0x10fb57(o(_0x193f73,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10fb57(o(_0x193f73,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10fb57(o(_0x193f73,'ELEMENT_TODO_LIST'));}switch(_0x128f09['newValue']){case'bulleted':return _0x32d24b(o(_0x193f73,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32d24b(o(_0x193f73,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32d24b(o(_0x193f73,'ELEMENT_TODO_LIST'));}}),_0x25174c['descriptionFactory']['registerDescriptionCallback'](_0x191135=>{const {data:_0x235646}=_0x191135;if(_0x235646&&'listIndent'==_0x235646['key'])return null==_0x235646['newValue']||null==_0x235646['oldValue']&&0x0==_0x235646['newValue']?_0x78aa8d:void 0x0;}),_0x25174c['descriptionFactory']['registerDescriptionCallback'](_0x3ea395=>{if('attribute'!=_0x3ea395['type'])return;const {data:_0x56e8c4}=_0x3ea395;if(!_0x56e8c4||'listItemId'!=_0x56e8c4['key'])return;const _0x3abc15=Te(_0x3ea395);return'newValue'==_0x3abc15?{'type':'format','content':o(_0x193f73,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3abc15?{'type':'format','content':o(_0x193f73,'*Split:*\x20list\x20item')}:_0x78aa8d;}),_0x2f2003['model']['document']['registerPostFixer'](_0xb1d677=>this['listItemIdFixer'](_0xb1d677)),_0x2f2003['model']['document']['registerPostFixer'](_0x45c3fd=>this['noTrackChangesFixer'](_0x45c3fd)),_0x2f2003['model']['document']['on']('change:data',(_0x120244,_0x31aba5)=>{if(_0x31aba5['isUndo']||!_0x31aba5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6ac270){if(_0x6ac270['batch']['isUndo']||!_0x6ac270['batch']['isLocal'])return!0x1;let _0x52865e=!0x1;const _0x584882=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44e9f3=>_0x44e9f3['data']&&'listItemId'==_0x44e9f3['data']['key'])['filter'](_0x5eacbe=>_0x5eacbe['data']['newValue']&&_0x5eacbe['data']['oldValue']);for(const _0x123a06 of _0x584882)Te(_0x123a06)||(_0x6ac270['removeMarker'](_0x123a06['getFirstMarker']()),_0x52865e=!0x0);return _0x52865e;}['noTrackChangesFixer'](_0x31ffaf){if(_0x31ffaf['batch']['isUndo']||!_0x31ffaf['batch']['isLocal'])return!0x1;const _0xbccb31=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xbccb31['trackChangesCommand']['value'])return!0x1;let _0x4288b5=!0x1;const _0x30e5f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x407eff=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4e23c3=>'attribute'==_0x4e23c3['type'])['filter'](_0x4a6ed6=>_0x30e5f8['includes'](_0x4a6ed6['attributeKey']));if(0x0==_0x407eff['length'])return _0x4288b5;for(const _0x58bbfd of _0x407eff){const _0xa09575=_0xbccb31['_findSuggestions'](_0x58bbfd['range'],'attribute')['filter'](_0x564a63=>!_0x564a63['meta']['isNextTo'])['map'](_0x49096b=>_0x49096b['suggestion'])['filter'](_0x360d5d=>{const _0xd3cc57=_0xbccb31['_getAttributeKey'](_0x360d5d);return _0x30e5f8['includes'](_0xd3cc57);});if(_0xa09575['length']){for(const _0x31f958 of _0xa09575)_0x31ffaf['removeMarker'](_0x31f958['getFirstMarker']());_0x4288b5=!0x0;}}return _0x4288b5;}['assureChains'](){const _0x56460e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bb8ec=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2fbf9e;const _0x5af877=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x33638c=>{if(_0x33638c['data']['oldRange']||!_0x33638c['data']['newRange'])return null;if(!_0x33638c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x8c0a29}=_0x56460e['_splitMarkerName'](_0x33638c['name']);if(!_0x56460e['hasSuggestion'](_0x8c0a29))return null;const _0x16768a=_0x56460e['getSuggestion'](_0x8c0a29);return _0x5bb8ec['includes'](_0x16768a['data']['key']);})['map'](_0x5327ab=>{const {id:_0x24fac8}=_0x56460e['_splitMarkerName'](_0x5327ab['name']),_0x51086a=_0x56460e['getSuggestion'](_0x24fac8);return _0x2fbf9e=_0x51086a['attributes']['groupId'],_0x51086a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5af877['size'])return;const _0x4548b5=_0x56460e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b10b=>'attribute'==_0x17b10b['type']&&_0x17b10b['data']&&_0x5bb8ec['includes'](_0x17b10b['data']['key'])&&_0x17b10b['attributes']['groupId']!=_0x2fbf9e)['map'](_0x182e04=>({'listItem':_0x182e04['getFirstRange']()['start']['nodeAfter'],'groupId':_0x182e04['attributes']['groupId']})),_0x4bb746=new Set();for(const {groupId:_0x5920c3,listItem:_0x4777e6}of _0x4548b5)_0x5af877['has'](_0x4777e6)&&_0x4bb746['add'](_0x5920c3);for(const _0x161b40 of _0x56460e['getSuggestions']())_0x4bb746['has'](_0x161b40['attributes']['groupId'])&&_0x161b40['setAttribute']('groupId',_0x2fbf9e);}['_supportLegacySuggestions'](){const _0x96d100=this['editor'],_0x32b461=_0x96d100['locale'],_0x44e5de=_0x96d100['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x44e5de['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2eb24f,_0x54ab5c){const _0x13db1f=[];for(let _0xd9cf07 of _0x2eb24f)_0xd9cf07['start']['nodeAfter']===_0xd9cf07['end']['parent']&&(_0xd9cf07=_0x96d100['model']['createRange'](_0x96d100['model']['createPositionAt'](_0xd9cf07['start']['nodeAfter'],0x0))),_0x13db1f['push'](_0xd9cf07);_0x96d100['model']['change'](_0x2bf237=>{const _0x6dcd33=_0x96d100['model']['document']['selection'],_0x5a3762=Array['from'](_0x6dcd33['getRanges']())['map'](_0x306b90=>_0x3ba60d['fromRange'](_0x306b90));_0x2bf237['setSelection'](_0x13db1f),_0x96d100['commands']['get'](_0x54ab5c['commandName'])['refresh'](),_0x54ab5c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x96d100['execute'](_0x54ab5c['commandName'],..._0x54ab5c['commandParams']),_0x2bf237['setSelection'](_0x5a3762);for(const _0x4aaf41 of _0x5a3762)_0x4aaf41['detach']();});}),_0x44e5de['descriptionFactory']['registerElementLabel'](function(_0x355f48){const _0x578858=!_0x96d100['model']['schema']['isObject'](_0x355f48),_0x51c083=_0x355f48['previousSibling'],_0x3acfc2=_0x355f48['nextSibling'],_0x58d523=_0x355f48['getAttribute']('listItemId'),_0x1384d7=!_0x51c083||_0x51c083['getAttribute']('listItemId')!==_0x58d523,_0x17f226=!_0x3acfc2||_0x3acfc2['getAttribute']('listItemId')!==_0x58d523;return _0x578858&&Boolean(_0x58d523)&&_0x1384d7&&_0x17f226;},_0x30f4cf=>o(_0x32b461,'ELEMENT_LIST_ITEM',_0x30f4cf));}['_registerLegacyDescription'](){const _0xa0a0c9=this['editor'],_0x232792=_0xa0a0c9['locale'];function _0xfd7f5c(_0xfd422a){const _0x55db8a=_0xa0a0c9['commands']['get']('bulletedList')['value'],_0x2aa66e=_0xa0a0c9['commands']['get']('numberedList')['value'];return'numberedList'===_0xfd422a?_0x55db8a:_0x2aa66e;}_0xa0a0c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a524d){if('formatBlock'!=_0x4a524d['type'])return;const {data:_0x36957a}=_0x4a524d;if(!_0x36957a)return;let _0x39ce45,_0x6a5f44,_0x23d640,_0x5ae633;switch(_0x36957a['commandName']){case'bulletedList':_0x23d640=_0x36957a['commandParams'][0x0]['forceValue'],_0x5ae633=_0xfd7f5c(_0x36957a['commandName']),_0x39ce45=_0x23d640?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5ae633&&_0xa0a0c9['config']['get']('list.multiBlock')||(_0x39ce45='*Change\x20to:*\x20%0'),_0x6a5f44={'type':'format','content':o(_0x232792,_0x39ce45,o(_0x232792,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x23d640=_0x36957a['commandParams'][0x0]['forceValue'],_0x5ae633=_0xfd7f5c(_0x36957a['commandName']),_0x39ce45=_0x23d640?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5ae633&&_0xa0a0c9['config']['get']('list.multiBlock')||(_0x39ce45='*Change\x20to:*\x20%0'),_0x6a5f44={'type':'format','content':o(_0x232792,_0x39ce45,o(_0x232792,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39ce45='*Indent:*\x20%0',_0x6a5f44={'type':'format','content':o(_0x232792,_0x39ce45,o(_0x232792,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39ce45=function(_0x3bc9b2){const _0x5d6505=_0x3bc9b2['getFirstRange']();let _0x3e0be1=_0x5d6505['start']['nodeAfter'];for(;_0x3e0be1&&_0x5d6505['containsItem'](_0x3e0be1);){if(_0x3e0be1['getAttribute']('listIndent')>0x0)return!0x1;_0x3e0be1=_0x3e0be1['nextSibling'];}return!0x0;}(_0x4a524d)?o(_0x232792,'*Format:*\x20remove\x20from\x20%0',o(_0x232792,function(_0x129810){return'ELEMENT_'+_0x129810['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a524d))):o(_0x232792,'*Outdent:*\x20%0',o(_0x232792,'ELEMENT_LIST_ITEM')),_0x6a5f44={'type':'format','content':_0x39ce45};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x36957a['multipleBlocks']&&(_0x39ce45='*Merge:*\x20%0',_0x6a5f44={'type':'deletion','content':o(_0x232792,_0x39ce45,o(_0x232792,'ELEMENT_LIST_ITEM'))});}return _0x6a5f44;});}}function Te(_0x5838a9){let _0x4b0f56=_0x5838a9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b0f56;){const _0x3aadbb=_0x4b0f56['getAttribute']('listItemId');if(!_0x3aadbb)return!0x1;if(_0x3aadbb==_0x5838a9['data']['newValue'])return'newValue';if(_0x3aadbb==_0x5838a9['data']['oldValue'])return'oldValue';_0x4b0f56=_0x4b0f56['previousSibling'];}return!0x1;}class q extends _0x2eaa3f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4ebe55=this['editor']['config']['get']('list.properties'),_0x1347f5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ebe55['styles']&&(_0x1347f5['enableDefaultAttributesIntegration']('listStyle'),_0x1347f5['registerBlockAttribute']('listStyle')),_0x4ebe55['reversed']&&(_0x1347f5['enableDefaultAttributesIntegration']('listReversed'),_0x1347f5['registerBlockAttribute']('listReversed')),_0x4ebe55['startIndex']&&(_0x1347f5['enableDefaultAttributesIntegration']('listStart'),_0x1347f5['registerBlockAttribute']('listStart'));const _0x22e84b={'type':'format','content':''};_0x1347f5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1ba74d=this['editor']['locale'];_0x1347f5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1ba74d,'FORMAT_LIST_REVERSED')),_0x1347f5['descriptionFactory']['registerDescriptionCallback'](_0x18a57a=>{const {data:_0x151207}=_0x18a57a;if(_0x151207&&'listReversed'==_0x151207['key'])return null==_0x151207['newValue']||0x0==_0x151207['newValue']&&null==_0x151207['oldValue']?_0x22e84b:void 0x0;}),_0x1347f5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1ba74d,'FORMAT_LIST_START')),_0x1347f5['descriptionFactory']['registerDescriptionCallback'](_0x2982e4=>{const {data:_0x139832}=_0x2982e4;if(_0x139832&&'listStart'==_0x139832['key'])return null==_0x139832['newValue']||0x1==_0x139832['newValue']&&null==_0x139832['oldValue']?_0x22e84b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x92484c=>{if(_0x92484c['batch']['isUndo'])return!0x1;let _0xd4a136=!0x1;const _0x39239a=_0x1347f5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47ee79=>{const _0x43d72c=_0x1347f5['_getAttributeKey'](_0x47ee79);return'listStart'==_0x43d72c||'listReversed'==_0x43d72c;});for(const _0x42a656 of _0x39239a){const _0x55efac=_0x42a656['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x55efac||'customNumbered'==_0x55efac)continue;_0x1347f5['_findSuggestions'](_0x42a656['getFirstRange'](),'attribute')['find'](_0x5394d3=>'listType'==_0x1347f5['_getAttributeKey'](_0x5394d3['suggestion']))||(_0x92484c['removeMarker'](_0x42a656['getFirstMarker']()),_0xd4a136=!0x0);}return _0xd4a136;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x357f59){const _0x196cd7=this['editor']['locale'],{data:_0x884fb6}=_0x357f59,_0x4e21de={'type':'format','content':''};if(!_0x884fb6||'listStyle'!=_0x884fb6['key'])return;if(!_0x884fb6['oldValue'])return'default'==_0x884fb6['newValue']?_0x4e21de:{'type':'format','content':''+o(_0x196cd7,'*Set\x20format:*\x20%0',o(_0x196cd7,this['_getTranslationKeyForListStyle'](_0x884fb6['newValue'])))};if(!_0x884fb6['newValue']){if('default'==_0x884fb6['oldValue'])return _0x4e21de;let _0x3ddfae=_0x357f59['head'];for(;_0x3ddfae;){if(_0x3ddfae['data']&&'listType'==_0x3ddfae['data']['key']&&_0x3ddfae['data']['newValue'])return _0x4e21de;_0x3ddfae=_0x3ddfae['next'];}return{'type':'format','content':''+o(_0x196cd7,'*Remove\x20format:*\x20%0',o(_0x196cd7,this['_getTranslationKeyForListStyle'](_0x884fb6['oldValue'])))};}if('default'!=_0x884fb6['newValue'])return{'type':'format','content':''+o(_0x196cd7,'*Set\x20format:*\x20%0',o(_0x196cd7,this['_getTranslationKeyForListStyle'](_0x884fb6['newValue'])))};let _0x5a69dc=_0x357f59['head'];for(;_0x5a69dc;){if(_0x5a69dc['data']&&'listType'==_0x5a69dc['data']['key']&&_0x5a69dc['data']['newValue']&&_0x5a69dc['data']['oldValue'])return _0x4e21de;_0x5a69dc=_0x5a69dc['next'];}return{'type':'format','content':o(_0x196cd7,'*Set\x20format:*\x20%0',o(_0x196cd7,'ELEMENT_'+_0x357f59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4722cf=this['editor'],_0x140ee1=_0x4722cf['locale'];_0x4722cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbecb18=>{if('formatBlock'!=_0xbecb18['type'])return;const {data:_0x3a9108}=_0xbecb18;if(!_0x3a9108)return;let _0x42cfe2,_0x2e7a6b;switch(_0x3a9108['commandName']){case'listStyle':_0x42cfe2='*Change\x20to:*\x20%0',_0x2e7a6b={'type':'format','content':o(_0x140ee1,_0x42cfe2,o(_0x140ee1,this['_getTranslationKeyForListStyle'](_0x3a9108['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42cfe2=_0x3a9108['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e7a6b={'type':'format','content':o(_0x140ee1,_0x42cfe2)};break;case'listStart':_0x42cfe2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e7a6b={'type':'format','content':o(_0x140ee1,_0x42cfe2,_0x3a9108['commandParams'][0x0]['startIndex'])};}return _0x2e7a6b;});}['_getTranslationKeyForListStyle'](_0x257ffd){return'ELEMENT_'+function(_0x1056b7){if(Se['includes'](_0x1056b7))return'bulleted';if(_e['includes'](_0x1056b7))return'numbered';return null;}(_0x257ffd)['toUpperCase']()+'_LIST_'+_0x257ffd['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x2eaa3f{['afterInit'](){const _0xfc933a=this['editor'];_0xfc933a['commands']['get']('emoji')&&_0xfc933a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x2eaa3f{static get['requires'](){return[_0x4518bd];}['init'](){const _0xab9e0c=this['editor'],_0x440098=_0xab9e0c['plugins']['get']('TrackChangesEditing'),_0x5e977e=_0xab9e0c['commands']['get']('enter');_0x440098['enableCommand']('enter',()=>{_0xab9e0c['model']['change'](_0x40fcd0=>{const _0x1747cb=_0xab9e0c['model']['document']['selection'],_0x5db67d=_0x1747cb['getFirstPosition'](),_0x2444ee=_0x3ba60d['fromRange'](_0x1747cb['getFirstRange']());if(_0x5e977e['enterBlock'](_0x40fcd0)){const _0x3dea99=_0xab9e0c['model']['createPositionAt'](_0x5db67d['parent']['nextSibling'],0x0),_0x33c8c8=_0x40fcd0['createRange'](_0x5db67d,_0x3dea99);_0x440098['markInsertion'](_0x33c8c8);}else _0x40fcd0['setSelection'](_0x40fcd0['createRange'](_0x2444ee['end']));_0x2444ee['detach'](),_0x5e977e['fire']('afterExecute',{'writer':_0x40fcd0});});}),_0xab9e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xab9e0c,'split'),{'priority':'high'}),_0xab9e0c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4b64d4,_0x3309a0,_0x5a28e0)=>{const _0x5ab83d=_0x5a28e0['mapper']['markerNameToElements'](_0x3309a0['markerName']);if(_0x5ab83d){for(const _0x4f1893 of _0x5ab83d)_0x4f1893['hasClass']('ck-suggestion-marker-split')&&(_0x5a28e0['mapper']['unbindElementFromMarkerName'](_0x4f1893,_0x3309a0['markerName']),_0x5a28e0['writer']['remove'](_0x4f1893));}},{'priority':'high'}),_0xab9e0c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x552cc2,_0x9b006a,_0x35b4a)=>{_0x35b4a['options']['showSuggestionHighlights']&&De(_0xab9e0c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x552cc2,_0x9b006a,_0x35b4a);},{'priority':'high'});}}class Q extends _0x2eaa3f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x20578c=this['editor']['plugins']['get']('TrackChangesEditing');_0x20578c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x20578c['enableCommand']('findNext'),_0x20578c['enableCommand']('findPrevious'),_0x20578c['enableCommand']('replace'),_0x20578c['enableCommand']('replaceAll');}['handleFindCommand'](_0x48bb48,_0x39a711,_0x8d02c6={}){const _0x42da2e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48bb48(_0xfde493=>{let _0x2bcd4e=('string'==typeof _0x39a711?_0x42da2e['findByTextCallback'](_0x39a711,_0x8d02c6):_0x39a711)(_0xfde493);Array['isArray'](_0x2bcd4e)&&(_0x2bcd4e={'results':_0x2bcd4e,'searchText':'string'==typeof _0x39a711?_0x39a711:''});const _0x520493=_0x2bcd4e['results']['filter'](_0x3114e4=>!0x1===this['_isInDeletionRange'](_0x3114e4,_0xfde493['item']));return{..._0x2bcd4e,'results':_0x520493};},_0x8d02c6);}['_isInDeletionRange'](_0xe8a901,_0x170ff7){const _0x4dd5d1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x170ff7,_0xe8a901['start']),this['editor']['model']['createPositionAt'](_0x170ff7,_0xe8a901['end']));for(const _0x20488f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4dd5d1['getIntersection'](_0x20488f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x2eaa3f{['afterInit'](){const _0x16ee17=this['editor']['locale'],_0x49855e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1a9671,commandName:_0x119ed2}of eo)this['editor']['plugins']['has'](_0x1a9671)&&(_0x49855e['enableDefaultAttributesIntegration'](_0x119ed2),_0x49855e['registerInlineAttribute'](_0x119ed2));_0x49855e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x16ee17,'FORMAT_FONT_SIZE')),_0x49855e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x16ee17,'FORMAT_FONT_FAMILY')),_0x49855e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x16ee17,'FORMAT_FONT_COLOR')),_0x49855e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x16ee17,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b1b4=this['editor'],_0x591cad=_0x33b1b4['locale'];_0x33b1b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea4237=>{const _0x37bba2=_0x591cad['t'];if('formatInline'!=_0xea4237['type'])return;const {data:_0x285fe1}=_0xea4237;if(null!=_0x285fe1){if('fontSize'==_0x285fe1['commandName']){const _0x6d45c5=_0x285fe1['commandParams'][0x0]['value'];if(_0x6d45c5){const _0x23a16f=_0x37bba2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1f2e76=>_0x1f2e76['model']==_0x6d45c5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x591cad,'*Set\x20font\x20size:*\x20%0',_0x23a16f)};}return{'type':'format','content':o(_0x591cad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x285fe1['commandName']){const _0x559463=_0x285fe1['commandParams'][0x0]['value'];return _0x559463?{'type':'format','content':o(_0x591cad,'*Set\x20font\x20family:*\x20%0',_0x559463)}:{'type':'format','content':o(_0x591cad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x285fe1['commandName']){const _0x555584=_0x285fe1['commandParams'][0x0]['value'];if(_0x555584){const _0x3ff9b6=_0x100aed(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a00b9=>_0x5a00b9['model']==_0x555584);let _0xf367d1=_0x555584,_0x41f590='';return _0x3ff9b6&&(_0xf367d1=_0x3ff9b6['label'],_0x41f590=_0x37bba2(_0xf367d1)['toLowerCase']()),{'type':'format','content':o(_0x591cad,'*Set\x20font\x20color:*\x20%0',_0x41f590)['trim'](),'color':{'value':_0x555584,'title':_0x41f590||_0xf367d1}};}return{'type':'format','content':o(_0x591cad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x285fe1['commandName']){const _0x258904=_0x285fe1['commandParams'][0x0]['value'];if(_0x258904){const _0x458f8f=_0x100aed(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x57492c=>_0x57492c['model']==_0x258904);let _0x3870c0=_0x258904,_0x50bd33='';return _0x458f8f&&(_0x3870c0=_0x458f8f['label'],_0x50bd33=_0x37bba2(_0x3870c0)['toLowerCase']()),{'type':'format','content':o(_0x591cad,'*Set\x20font\x20background\x20color:*\x20%0',_0x50bd33)['trim'](),'color':{'value':_0x258904,'title':_0x50bd33||_0x3870c0}};}return{'type':'format','content':o(_0x591cad,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x2eaa3f{['afterInit'](){const _0x2ecc37=this['editor'],_0x588e6f=_0x2ecc37['plugins']['get']('TrackChangesEditing'),_0x155e4a=_0x2ecc37['commands']['get']('copyFormat'),_0x24e4a4=_0x2ecc37['commands']['get']('pasteFormat');_0x155e4a&&_0x24e4a4&&(_0x588e6f['enableDefaultAttributesIntegration']('pasteFormat'),_0x588e6f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2941b5=this['editor'],_0x587640=_0x2941b5['locale'];_0x2941b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ba0c6=>{if('formatBlock'!=_0x5ba0c6['type']&&'formatInline'!=_0x5ba0c6['type'])return;const {data:_0x259878}=_0x5ba0c6;if(_0x259878&&'pasteFormat'===_0x259878['commandName']){const _0x42d4e6=[],_0x263e23=_0x259878['commandParams'][0x0];for(const [_0x55e460,_0x51ae69]of Object['entries'](_0x263e23))_0x42d4e6['push'](ro(_0x2941b5,_0x55e460,_0x51ae69));return _0x42d4e6['length']?{'type':'format','content':o(_0x587640,'*Set\x20format\x20to:*\x20%0',_0x42d4e6['join'](',\x20'))}:{'type':'format','content':o(_0x587640,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b399f,_0x3e9d46,_0x3625fa){const _0x1817eb=_0x1b399f['locale']['t'],_0x2c0946=_0x3e9d46['split'](/(?=[A-Z])/)['join']('\x20'),_0x40c0b1=_0x1817eb(_0x2c0946['charAt'](0x0)['toUpperCase']()+_0x2c0946['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3625fa)return _0x40c0b1;if('fontColor'===_0x3e9d46||'fontBackgroundColor'===_0x3e9d46){const _0x1b150a=_0x100aed(_0x1b399f['config']['get']('fontColor.colors'))['find'](_0x59d759=>_0x59d759['model']==_0x3625fa);return _0x40c0b1+'\x20('+(_0x1b150a?_0x1817eb(_0x1b150a['label'])['toLowerCase']():_0x3625fa)+')';}if('fontSize'===_0x3e9d46&&isNaN(parseFloat(_0x3625fa))){const _0xef9552=_0x1b399f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b399f['config']['get']('fontSize.options'))['find'](_0x5c7321=>_0x5c7321['model']==_0x3625fa);return _0x40c0b1+'\x20('+(_0xef9552?_0x1817eb(_0xef9552['title'])['toLowerCase']():_0x3625fa)+')';}return _0x40c0b1+'\x20('+_0x3625fa+')';}class Z extends _0x2eaa3f{['_headingOptions'];['afterInit'](){const _0x92a6c7=this['editor'];if(!_0x92a6c7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x92a6c7['config']['get']('heading.options');const _0x48c51e=_0x92a6c7['locale'],_0xadf237=_0x92a6c7['plugins']['get']('TrackChangesEditing');_0xadf237['enableDefaultAttributesIntegration']('heading');for(const _0x6a712 of this['_headingOptions'])'paragraph'!=_0x6a712['model']&&_0xadf237['descriptionFactory']['registerElementLabel'](_0x6a712['model'],_0x24f097=>{const _0x2ef4e9=this['_getHeadingLevel'](_0x6a712['model']);return null!==_0x2ef4e9?_0x35dd5f(_0x24f097,_0x2ef4e9):_0x29d0da(_0x24f097,_0x6a712['title']);});function _0x35dd5f(_0x27472a,_0x5b81db){return o(_0x48c51e,'ELEMENT_HEADING',[_0x27472a,_0x5b81db]);}function _0x29d0da(_0x423fc2,_0x1d7b47){return o(_0x48c51e,'ELEMENT_HEADING_CUSTOM',[_0x423fc2,_0x1d7b47]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x415e89=this['editor'],_0x201a36=_0x415e89['locale'];function _0x33e095(_0x204c33,_0x37b9be){return o(_0x201a36,'ELEMENT_HEADING_CUSTOM',[_0x204c33,_0x37b9be]);}_0x415e89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6697e0=>{if('formatBlock'!=_0x6697e0['type'])return;const {data:_0x9510ab}=_0x6697e0;if(_0x9510ab&&'heading'==_0x9510ab['commandName']){const _0x567157=_0x9510ab['commandParams'][0x0]['value'],_0x365953=this['_getHeadingLevel'](_0x567157);if(null!==_0x365953)return{'type':'format','content':o(_0x201a36,'*Change\x20to:*\x20%0',(_0x52e27e=0x1,_0x59025f=_0x365953,o(_0x201a36,'ELEMENT_HEADING',[_0x52e27e,_0x59025f])))};const _0x296e16=this['_headingOptions']['find'](_0x590846=>_0x590846['model']===_0x567157)['title'];return{'type':'format','content':o(_0x201a36,'*Change\x20to:*\x20%0',_0x33e095(0x1,_0x296e16))};}var _0x52e27e,_0x59025f;});}['_getHeadingLevel'](_0x42fd50){const _0x4d53bb=_0x42fd50['match'](/^heading(\d+)/);if(_0x4d53bb)return _0x4d53bb[0x1];const _0x5c5797=this['_headingOptions']?.['find'](_0x517b92=>_0x517b92['model']==_0x42fd50);if(_0x5c5797&&_0x5c5797['view']){const _0x440634=_0x5c5797['view'],_0x1c2cce=(_0x440634['name']??_0x440634)['match'](/^h(\d+)/);if(_0x1c2cce)return _0x1c2cce[0x1];}return null;}}class tt extends _0x2eaa3f{['afterInit'](){const _0x13b5fb=this['editor'];if(!_0x13b5fb['plugins']['has']('HighlightEditing'))return;const _0x489476=_0x13b5fb['plugins']['get']('TrackChangesEditing'),_0x20e49a=_0x13b5fb['locale'];_0x489476['enableDefaultAttributesIntegration']('highlight'),_0x489476['registerInlineAttribute']('highlight'),_0x489476['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x20e49a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b3a58=this['editor'],_0x424878=_0x1b3a58['locale'];_0x1b3a58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x311b83=>{if('formatInline'!=_0x311b83['type'])return;const {data:_0x3fd47b}=_0x311b83;if(_0x3fd47b&&'highlight'==_0x3fd47b['commandName']){const _0x228531=_0x424878['t'],_0x1fda17=_0x3fd47b['commandParams'][0x0]['value'];if(_0x1fda17){const _0x201f8d=_0x1b3a58['config']['get']('highlight.options')['find'](_0x2ab0b1=>_0x2ab0b1['model']==_0x1fda17),_0xd96d10=_0x228531(_0x201f8d['title'])['toLowerCase']();return{'type':'format','content':o(_0x424878,'*Set\x20highlight:*\x20%0',_0xd96d10),'color':{'value':_0x201f8d['color'],'title':_0x201f8d['title']}};}return{'type':'format','content':o(_0x424878,'*Remove\x20highlight*',o(_0x424878,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2eaa3f{['afterInit'](){const _0x3dbd4b=this['editor'];if(!_0x3dbd4b['plugins']['has']('HorizontalLineEditing'))return;_0x3dbd4b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x22189d=_0x3dbd4b['plugins']['get']('TrackChangesEditing'),_0x45cbcf=_0x3dbd4b['locale'];_0x22189d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x197dff=>o(_0x45cbcf,'ELEMENT_HORIZONTAL_LINE',_0x197dff)),_0x3dbd4b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4eb18a,{writer:_0x2fb892,options:_0x3adfca})=>{if(!_0x3adfca['showSuggestionHighlights'])return null;const _0x52fcd8=_0x2fb892['createContainerElement']('div'),_0x4056b5=_0x2fb892['createEmptyElement']('hr');return _0x2fb892['addClass']('ck-horizontal-line',_0x52fcd8),_0x2fb892['insert'](_0x2fb892['createPositionAt'](_0x52fcd8,0x0),_0x4056b5),_0x52fcd8;},'converterPriority':'high'});}}class nt extends _0x2eaa3f{['afterInit'](){const _0x5cadc3=this['editor'];if(!_0x5cadc3['plugins']['has']('HtmlEmbed'))return;const _0x65f515=_0x5cadc3['plugins']['get']('TrackChangesEditing'),_0x2f5ed5=_0x5cadc3['locale'];_0x65f515['descriptionFactory']['registerElementLabel']('rawHtml',_0x700e72=>o(_0x2f5ed5,'ELEMENT_HTML_EMBED',_0x700e72)),_0x65f515['enableDefaultAttributesIntegration']('htmlEmbed'),_0x65f515['registerBlockAttribute']('value'),_0x65f515['descriptionFactory']['registerDescriptionCallback'](_0x17f457=>{if('attribute'!=_0x17f457['type'])return;const {data:_0x23d5c0}=_0x17f457;if(_0x23d5c0&&'value'==_0x23d5c0['key']&&_0x17f457['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x442368=o(_0x2f5ed5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f5ed5,'*Change\x20%0\x20content*',_0x442368)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f9b4=this['editor'],_0x237bfa=_0x18f9b4['locale'];_0x18f9b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f6d72=>{if('formatBlock'!=_0x3f6d72['type'])return;const {data:_0x5d76fe}=_0x3f6d72;if(_0x5d76fe&&'htmlEmbed'==_0x5d76fe['commandName']){const _0x1a767c=o(_0x237bfa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x237bfa,'*Change\x20%0\x20content*',_0x1a767c)};}});}}class et extends _0x2eaa3f{['afterInit'](){const _0x4368bd=this['editor'];if(!_0x4368bd['plugins']['has']('ImageEditing'))return;const _0x440fc8=_0x4368bd['plugins']['get']('TrackChangesEditing'),_0x349bb5=_0x4368bd['plugins']['get']('ImageUtils'),_0x550613=_0x4368bd['locale'];_0x440fc8['enableCommand']('insertImage'),_0x440fc8['descriptionFactory']['registerElementLabel']('imageBlock',_0x57de55=>o(_0x550613,'ELEMENT_IMAGE',_0x57de55)),_0x440fc8['descriptionFactory']['registerElementLabel']('imageInline',_0x29f64a=>o(_0x550613,'ELEMENT_INLINE_IMAGE',_0x29f64a)),_0x440fc8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x550613,'ELEMENT_CAPTION')),_0x4368bd['plugins']['has']('ImageUploadEditing')&&_0x440fc8['enableCommand']('uploadImage'),_0x4368bd['plugins']['has']('ImageBlockEditing')&&_0x4368bd['plugins']['has']('ImageInlineEditing')&&(_0x440fc8['enableCommand']('imageTypeInline',(_0x4b6339,_0x439ad9)=>{const _0x2057b9=_0x349bb5['getClosestSelectedImageElement'](_0x4368bd['model']['document']['selection']);_0x4368bd['model']['change'](()=>{_0x440fc8['markBlockFormat'](_0x2057b9,{'commandName':'imageTypeInline','commandParams':[_0x439ad9]},[],'convertBlockImageToInline');});}),_0x440fc8['enableCommand']('imageTypeBlock',(_0x39af2e,_0xa02d18)=>{_0x4368bd['model']['change'](_0x52433e=>{let _0x1c3a3a=_0x349bb5['getClosestSelectedImageElement'](_0x4368bd['model']['document']['selection']),_0x526725=_0x52433e['createRangeOn'](_0x1c3a3a);const _0x2692bd=_0x2075ef['fromPosition'](_0x526725['start'],'toPrevious'),_0x48c87f=_0x2075ef['fromPosition'](_0x526725['end'],'toNext');_0x440fc8['forceDefaultExecution'](()=>_0x39af2e(_0xa02d18)),_0x1c3a3a=_0x349bb5['getClosestSelectedImageElement'](_0x4368bd['model']['document']['selection']),_0x526725=_0x52433e['createRangeOn'](_0x1c3a3a);const _0x5eed75=_0x52433e['createRange'](_0x2692bd,_0x48c87f);_0x2692bd['detach'](),_0x48c87f['detach'](),_0x440fc8['markBlockFormat'](_0x1c3a3a,{'commandName':'imageTypeInline','commandParams':[_0xa02d18]},[],'convertInlineImageToBlock'),_0x5eed75['start']['isBefore'](_0x526725['start'])&&_0x440fc8['markInsertion'](_0x52433e['createRange'](_0x5eed75['start'],_0x526725['start']),'convertInlineImageToBlock'),_0x526725['end']['isBefore'](_0x5eed75['end'])&&_0x440fc8['markInsertion'](_0x52433e['createRange'](_0x526725['end'],_0x5eed75['end']),'convertInlineImageToBlock');});}),_0x440fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x440fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x440fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x440fc8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x440fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x440fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x320da0])=>{const _0x56ea6d=_0x440fc8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xb520ae=_0x320da0['start'],_0x3a251d=_0x320da0['end'];const _0x3b8dbe=_0x4368bd['model']['schema']['getNearestSelectionRange'](_0xb520ae,'backward'),_0x589ea9=_0x4368bd['model']['schema']['getNearestSelectionRange'](_0x3a251d,'forward');_0x3b8dbe['isCollapsed']&&(_0xb520ae=_0x3b8dbe['start']),_0x589ea9['isCollapsed']&&(_0x3a251d=_0x589ea9['end']),_0x56ea6d([_0x4368bd['model']['createRange'](_0xb520ae,_0x3a251d)]);}),_0x440fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x32e414),_0x440fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x32e414)),_0x4368bd['plugins']['has']('ImageCaptionEditing')&&(_0x440fc8['enableCommand']('toggleImageCaption',(_0x45646b,_0xd6ab05)=>{const _0x435ea3=_0x4368bd['plugins']['get']('ImageCaptionUtils');let _0x1828fc=_0x349bb5['getClosestSelectedImageElement'](_0x4368bd['model']['document']['selection']),_0x3f1c85=_0x435ea3['getCaptionFromImageModelElement'](_0x1828fc);_0x4368bd['model']['change'](()=>{if(_0x3f1c85)return void _0x440fc8['markDeletion'](_0x4368bd['model']['createRangeOn'](_0x3f1c85));const _0x23f835=_0x349bb5['isBlockImage'](_0x1828fc);_0x45646b(_0xd6ab05),_0x1828fc=_0x349bb5['getClosestSelectedImageElement'](_0x4368bd['model']['document']['selection']),_0x3f1c85=_0x435ea3['getCaptionFromImageModelElement'](_0x1828fc),_0x440fc8['markInsertion'](_0x4368bd['model']['createRangeOn'](_0x3f1c85),_0x23f835?null:'imageCaption');});}),_0x440fc8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x32e414));const _0x319567=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c3a37(_0x32606d,_0x198cb3){const _0x318bb2=_0x319567['findIndex'](({type:_0x124364,subType:_0xc30867})=>_0x32606d['type']==_0x124364&&_0x32606d['subType']==_0xc30867),_0x5d795e=_0x319567['findIndex'](({type:_0x3928f2,subType:_0x11ebb3})=>_0x198cb3['type']==_0x3928f2&&_0x198cb3['subType']==_0x11ebb3);if(_0x318bb2<0x0||_0x5d795e<0x0)return!0x1;const _0x1cb604=_0x32606d['getFirstRange'](),_0x2530e1=_0x198cb3['getFirstRange']();if((0x0==_0x318bb2||0x1==_0x318bb2)&&0x2==_0x5d795e&&_0x1cb604['isIntersecting'](_0x2530e1))return!0x0;if(0x2==_0x318bb2&&0x3==_0x5d795e){const _0x1766c3=_0x440fc8['_findSuggestions'](_0x1cb604,'insertion')['filter'](({suggestion:_0x551571,meta:_0x2a3836})=>_0x2a3836['isOwn']&&'convertInlineImageToBlock'==_0x551571['subType']);if(_0x1766c3['length']>0x1&&_0x2530e1['end']['isEqual'](_0x1cb604['start']))return!0x0;if(0x1==_0x1766c3['length']&&(_0x1cb604['start']['isEqual'](_0x2530e1['end'])||_0x1cb604['end']['isEqual'](_0x2530e1['start'])))return!0x0;}if(0x3==_0x318bb2&&0x3==_0x5d795e&&_0x1cb604['start']['isBefore'](_0x2530e1['start'])){const _0x496190=_0x1cb604['end']['nodeAfter'],_0x95d032=_0x2530e1['start']['nodeBefore'];return _0x349bb5['isBlockImage'](_0x496190)&&_0x496190===_0x95d032;}return!0x1;}function _0x32e414(_0x4386b9,_0x1a989e){return _0x1c3a37(_0x4386b9,_0x1a989e)?[_0x4386b9,_0x1a989e]:_0x1c3a37(_0x1a989e,_0x4386b9)?[_0x1a989e,_0x4386b9]:null;}_0x4368bd['plugins']['has']('ImageResize')&&(_0x440fc8['enableDefaultAttributesIntegration']('resizeImage'),_0x440fc8['registerBlockAttribute']('resizedWidth'),_0x440fc8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x550613,'FORMAT_IMAGE_SIZE'))),_0x4368bd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x440fc8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x440fc8['registerBlockAttribute']('alt')),_0x4368bd['plugins']['has']('PictureEditing')&&(_0x440fc8['registerBlockAttribute']('sources'),_0x440fc8['descriptionFactory']['registerDescriptionCallback'](_0x298e45=>{if('attribute'!=_0x298e45['type'])return;const {data:_0x3a2011}=_0x298e45;return _0x3a2011&&'sources'==_0x3a2011['key']?{'type':'format','content':''}:void 0x0;})),_0x4368bd['plugins']['has']('ImageSizeAttributes')&&(_0x440fc8['registerBlockAttribute']('width'),_0x440fc8['registerBlockAttribute']('height'),_0x440fc8['descriptionFactory']['registerDescriptionCallback'](_0x1718bc=>{if('attribute'!=_0x1718bc['type'])return;const {data:_0x33345a}=_0x1718bc;return!_0x33345a||'width'!=_0x33345a['key']&&'height'!=_0x33345a['key']?void 0x0:{'type':'format','content':''};})),_0x440fc8['descriptionFactory']['registerDescriptionCallback'](_0x8aff1b=>{if(!!_0x319567['find'](({type:_0x13eb04,subType:_0x3dfc3a})=>_0x8aff1b['type']==_0x13eb04&&_0x8aff1b['subType']==_0x3dfc3a))return _0x8aff1b['previous']?{}:void 0x0;}),_0x440fc8['descriptionFactory']['registerDescriptionCallback'](_0xeac873=>{if('insertion'==_0xeac873['type']||'deletion'==_0xeac873['type']){const _0x57476c=_0xeac873['getContainedElement']();if(_0x57476c&&_0x57476c['is']('element','caption'))return{'type':'insertion'==_0xeac873['type']?'addObject':'removeObject','element':_0x57476c,'quantity':0x1};}}),_0x440fc8['descriptionFactory']['registerDescriptionCallback'](_0x3c1dd3=>'formatBlock'==_0x3c1dd3['type']&&'convertInlineImageToBlock'==_0x3c1dd3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c1dd3['type']&&'convertBlockImageToInline'==_0x3c1dd3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x440fc8['descriptionFactory']['registerDescriptionCallback'](_0x211337=>{if('attribute'!=_0x211337['type'])return;const {data:_0x49e89d}=_0x211337;if(!_0x49e89d||'alt'!=_0x49e89d['key'])return;const _0x12b327=_0x49e89d['newValue'];return _0x12b327?{'type':'format','content':o(_0x550613,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12b327+'\x22')}:{'type':'format','content':o(_0x550613,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x164e96=this['editor'],_0x257426=_0x164e96['locale'];_0x164e96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x880c0e=>{if('formatBlock'!=_0x880c0e['type']&&'formatInline'!=_0x880c0e['type'])return;const {data:_0x2b180c}=_0x880c0e;if(_0x2b180c){if('imageTextAlternative'==_0x2b180c['commandName']){const _0x3260e0=_0x2b180c['commandParams'][0x0]['newValue'];return _0x3260e0?{'type':'format','content':o(_0x257426,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3260e0+'\x22')}:{'type':'format','content':o(_0x257426,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b180c['commandName']){const _0x21e406=_0x2b180c['commandParams'][0x0]['width'];return _0x21e406?{'type':'format','content':o(_0x257426,'*Set\x20image\x20width:*\x20%0',_0x21e406)}:{'type':'format','content':o(_0x257426,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2eaa3f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4d6d9e=this['editor']['locale'],_0x34379c=this['editor']['plugins']['get']('TrackChangesEditing');_0x34379c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34379c['registerBlockAttribute']('src'),_0x34379c['descriptionFactory']['registerDescriptionCallback'](_0x5b0513=>{if('attribute'!=_0x5b0513['type'])return;const {data:_0x5f4708}=_0x5b0513;return _0x5f4708&&'src'==_0x5f4708['key']?_0x5f4708['newValue']&&_0x5f4708['oldValue']?{'type':'format','content':o(_0x4d6d9e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x37859c=this['editor']['plugins']['get']('TrackChangesEditing');_0x37859c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x37859c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37859c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x37859c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b2e5c=this['editor'],_0x5aaf76=_0x2b2e5c['locale'];_0x2b2e5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5155ca=>{if('formatBlock'!=_0x5155ca['type']&&'formatInline'!=_0x5155ca['type'])return;const {data:_0x17a46c}=_0x5155ca;if(!_0x17a46c||'replaceImageSource'!=_0x17a46c['commandName'])return;return{'type':'format','content':o(_0x5aaf76,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x2eaa3f{['afterInit'](){const _0x5b3091=this['editor'];if(!_0x5b3091['plugins']['has']('ImageStyleEditing'))return;const _0x214fc6=_0x5b3091['plugins']['get']('TrackChangesEditing'),_0x548366=_0x5b3091['plugins']['get']('ImageUtils'),_0xdd2cdc={};_0x214fc6['enableCommand']('imageStyle',(_0x11ea8f,_0x43b341)=>{const _0x381172=_0x5b3091['plugins']['get']('Users')['me'],_0xde3096=_0x5b3091['commands']['get']('imageStyle');let _0x5f302e=_0x548366['getClosestSelectedImageElement'](_0x5b3091['model']['document']['selection']),_0x55e7a7=_0x5b3091['model']['createRangeOn'](_0x5f302e),_0x4eb39b=_0xde3096['value'];if(_0x4eb39b==_0x43b341['value'])return;const _0x3605da={'commandName':'imageStyle','commandParams':[_0x43b341],'formatGroupId':_0x191a50()};_0x5b3091['model']['change'](()=>{if(_0x214fc6['getSuggestions']()['filter'](_0x10e9b8=>_0x10e9b8['isInContent']&&_0x381172==_0x10e9b8['author']&&('formatBlock'==_0x10e9b8['type']||'formatInline'==_0x10e9b8['type'])&&('imageStylePreApply'==_0x10e9b8['subType']||'imageStylePostApply'==_0x10e9b8['subType'])&&_0x10e9b8['getFirstRange']()['isEqual'](_0x55e7a7))['forEach'](_0x5aaf63=>_0x214fc6['discardSuggestion'](_0x5aaf63['head'])),_0x5f302e=_0x548366['getClosestSelectedImageElement'](_0x5b3091['model']['document']['selection']),_0x55e7a7=_0x5b3091['model']['createRangeOn'](_0x5f302e),_0xde3096['refresh'](),_0x5b3091['commands']['get']('imageTypeInline')['refresh'](),_0x5b3091['commands']['get']('imageTypeBlock')['refresh'](),_0x4eb39b=_0xde3096['value'],_0x4eb39b!=_0x43b341['value'])return _0x548366['isInlineImage'](_0x5f302e)&&_0xde3096['shouldConvertImageType'](_0x43b341['value'],_0x5f302e)?(_0x11ea8f({..._0x43b341,'setImageSizes':!0x1}),_0x5f302e=_0x548366['getClosestSelectedImageElement'](_0x5b3091['model']['document']['selection']),void _0x214fc6['markBlockFormat'](_0x5f302e,{..._0x3605da,'commandReversedParams':[{'value':_0x4eb39b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x548366['isBlockImage'](_0x5f302e)?_0x214fc6['markBlockFormat'](_0x5f302e,_0x3605da,[],'imageStylePostApply'):_0x214fc6['markInlineFormat'](_0x55e7a7,_0x3605da,'imageStylePostApply'));});});for(const _0x287705 of _0x5b3091['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xdd2cdc[_0x287705['name']]=_0x287705['title']['toLowerCase']();_0x214fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x214fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x214fc6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x214fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x167387])=>{_0x548366['setImageNaturalSizeAttributes'](_0x167387['getContainedElement']());}),_0x214fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1cf2a0,_0x473601)=>{_0x214fc6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1cf2a0,{'commandName':_0x473601['commandName'],'commandParams':_0x473601['commandReversedParams']});}),_0x214fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x40d9ae,_0x5b4295){if(_0x1a3709(_0x40d9ae,_0x5b4295))return[_0x40d9ae,_0x5b4295];if(_0x1a3709(_0x5b4295,_0x40d9ae))return[_0x5b4295,_0x40d9ae];return null;});const _0x1dca70=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a3709(_0x59798e,_0x2c28bc){const _0x47a4b5=_0x1dca70['findIndex'](({type:_0x81f0bb,subType:_0x4cd10e})=>_0x59798e['type']==_0x81f0bb&&_0x59798e['subType']==_0x4cd10e),_0x3c3bbd=_0x1dca70['findIndex'](({type:_0x25c748,subType:_0x3a39d8})=>_0x2c28bc['type']==_0x25c748&&_0x2c28bc['subType']==_0x3a39d8);if(_0x47a4b5<0x0||_0x3c3bbd<0x0)return!0x1;const _0x5efa52=_0x59798e['getFirstRange'](),_0x1a8fb7=_0x2c28bc['getFirstRange']();if((0x0==_0x47a4b5||0x1==_0x47a4b5)&&0x2==_0x3c3bbd&&_0x5efa52['isIntersecting'](_0x1a8fb7))return!0x0;if(0x2==_0x47a4b5&&0x3==_0x3c3bbd){const _0x556bce=_0x214fc6['_findSuggestions'](_0x5efa52,'insertion')['filter'](({suggestion:_0x1ac403,meta:_0x2c016f})=>_0x2c016f['isOwn']&&'convertInlineImageToBlock'==_0x1ac403['subType']);if(_0x556bce['length']>0x1&&_0x1a8fb7['end']['isEqual'](_0x5efa52['start']))return!0x0;if(0x1==_0x556bce['length']&&(_0x5efa52['start']['isEqual'](_0x1a8fb7['end'])||_0x5efa52['end']['isEqual'](_0x1a8fb7['start'])))return!0x0;}if(0x3==_0x47a4b5&&0x3==_0x3c3bbd&&_0x5efa52['start']['isBefore'](_0x1a8fb7['start'])){const _0x36e782=_0x5efa52['end']['nodeAfter'],_0x273e31=_0x1a8fb7['start']['nodeBefore'];return _0x548366['isBlockImage'](_0x36e782)&&_0x36e782===_0x273e31;}return!0x1;}_0x5b3091['model']['document']['registerPostFixer'](()=>{let _0x1ef2e2=!0x1;const _0x142e1e=Array['from'](_0x5b3091['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f3929,data:_0x3a8300}of _0x142e1e){const {group:_0x45218f,type:_0x1c360c,subType:_0x5e08d6,id:_0x4dcf5c}=_0x214fc6['_splitMarkerName'](_0x2f3929);if('suggestion'==_0x45218f&&_0x214fc6['hasSuggestion'](_0x4dcf5c)){if('formatBlock'==_0x1c360c&&('imageStylePreApply'==_0x5e08d6||'imageStylePostApply'==_0x5e08d6)){const _0x219da6=_0x214fc6['getSuggestion'](_0x4dcf5c);if(_0x3a8300['newRange']){const _0x4e267a=_0x219da6['getFirstRange']()['getContainedElement']();if(_0x548366['isBlockImage'](_0x4e267a))continue;_0x214fc6['discardSuggestion'](_0x219da6),_0x1ef2e2=!0x0;}}if('insertion'==_0x1c360c&&'imageCaption'==_0x5e08d6&&!_0x3a8300['newRange']){const _0x1212a9=_0x214fc6['getSuggestion'](_0x4dcf5c);_0x1212a9['next']&&_0x1212a9['next']['isInContent']&&(_0x214fc6['discardSuggestion'](_0x1212a9['next']),_0x1ef2e2=!0x0);}}}return _0x1ef2e2;}),this['_registerLegacyDescription'](_0xdd2cdc);}['_registerLegacyDescription'](_0x4fee22){const _0xc06cc0=this['editor'],_0x2ef27e=_0xc06cc0['locale'];_0xc06cc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37e09e=>{if('formatBlock'!=_0x37e09e['type']&&'formatInline'!=_0x37e09e['type'])return;const {data:_0x796399}=_0x37e09e;if(!_0x796399||'imageStyle'!=_0x796399['commandName'])return;const _0x6fdc55=_0x796399['commandParams'][0x0]['value'];return _0x4c7152('side'===_0x6fdc55?o(_0x2ef27e,'FORMAT_SIDE_IMAGE'):_0x4fee22[_0x6fdc55]||_0x6fdc55);function _0x4c7152(_0xdd9e1d){return{'type':'format','content':o(_0x2ef27e,'*Format:*\x20%0',_0xdd9e1d)};}});}}class rt extends _0x2eaa3f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x536e60){super(_0x536e60),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2b9b17=this['editor'],_0x4d2a19=_0x2b9b17['commands']['get']('importWord'),_0x50fd7d=_0x2b9b17['commands']['get']('trackChanges');_0x4d2a19&&(_0x4d2a19['on']('execute',(_0x6b999d,[,_0x363abe])=>{this['_trackChangesValueDuringImport']=_0x50fd7d['value'],_0x363abe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4d2a19,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4d2a19,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x50fd7d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2b9b17['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x116721,_0x2c0eb2){const {suggestions:_0x4e1132}=_0x2c0eb2,_0x9dd2fc=this['editor']['commands']['get']('trackChanges'),_0x3d5004=_0x9dd2fc['value'];this['_trackChangesValueDuringImport']!==_0x3d5004&&(_0x9dd2fc['execute'](),this['_trackChangesExecuted']=!0x0),_0x4e1132&&_0x4e1132['forEach'](({id:_0x16ab8f,type:_0x13d555,author:_0x3219df,created_at:_0x3b1aed})=>{const _0x16a953={'id':_0x16ab8f,'type':_0x13d555,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3219df,'createdAt':_0x3b1aed?new Date(_0x3b1aed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x16a953);});}}class at extends _0x2eaa3f{['afterInit'](){const _0x13e09a=this['editor'],_0x56db53=_0x13e09a['plugins']['get']('TrackChangesEditing');if(_0x13e09a['plugins']['has']('IndentEditing')&&(_0x56db53['enableCommand']('indent'),_0x56db53['enableCommand']('outdent')),_0x13e09a['plugins']['has']('IndentBlock')){for(const _0x32051e of['indentBlock','outdentBlock'])_0x56db53['enableDefaultAttributesIntegration'](_0x32051e);}const _0x4d0b44=_0x13e09a['locale'];_0x56db53['registerBlockAttribute']('blockIndent'),_0x56db53['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4d0b44,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x324f87=this['editor'],_0x52be29=_0x324f87['locale'],_0xfad801=_0x324f87['plugins']['get']('TrackChangesEditing');_0xfad801['descriptionFactory']['registerDescriptionCallback'](_0x280c10=>{if('formatBlock'!=_0x280c10['type'])return;const {data:_0x521aee}=_0x280c10;if(!_0x521aee)return;if('indentBlock'!=_0x521aee['commandName']&&'outdentBlock'!=_0x521aee['commandName'])return;const _0x119ec6=_0x280c10['getItems']()[0x0],_0x440c4d=_0xfad801['descriptionFactory']['getItemLabel'](_0x119ec6);return'indentBlock'==_0x521aee['commandName']?{'type':'format','content':o(_0x52be29,'*Indent:*\x20%0',_0x440c4d)}:'outdentBlock'==_0x521aee['commandName']?{'type':'format','content':o(_0x52be29,'*Outdent:*\x20%0',_0x440c4d)}:void 0x0;});}}class ct extends _0x2eaa3f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x2eaa3f{['afterInit'](){const _0x4db4e3=this['editor'];if(!_0x4db4e3['plugins']['has']('LinkEditing'))return;const _0x4c800a=_0x4db4e3['plugins']['get']('TrackChangesEditing'),_0x7346e7=_0x4db4e3['commands']['get']('link');_0x4c800a['enableDefaultAttributesIntegration']('link'),_0x4c800a['enableDefaultAttributesIntegration']('unlink'),_0x4c800a['registerInlineAttribute']('linkHref');for(const _0x1c4d5c of _0x7346e7['manualDecorators'])_0x4c800a['registerInlineAttribute'](_0x1c4d5c['id']),_0x4c800a['descriptionFactory']['registerAttributeLabel'](_0x1c4d5c['id'],'link\x20('+_0x1c4d5c['label']['toLowerCase']()+')');_0x4c800a['descriptionFactory']['registerDescriptionCallback'](_0x13f72b=>{if('attribute'!=_0x13f72b['type'])return;const {data:_0x490afe}=_0x13f72b;if(!_0x490afe||'linkHref'!=_0x490afe['key'])return;const _0x5f3520=_0x490afe['newValue'],_0x2a95e2=_0x4db4e3['locale'];return{'type':'format','content':null==_0x5f3520?o(_0x2a95e2,'*Remove\x20link*'):o(_0x2a95e2,'*Set\x20link:*\x20%0','\x22'+_0x5f3520+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319226=this['editor'],_0x2f79c1=_0x319226['locale'];_0x319226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402475=>{if('formatInline'!=_0x402475['type'])return;const {data:_0x581fdd}=_0x402475;if(_0x581fdd){if('link'==_0x581fdd['commandName']){const _0x30d588=_0x581fdd['commandParams'][0x0];return{'type':'format','content':o(_0x2f79c1,'*Set\x20link:*\x20%0','\x22'+_0x30d588+'\x22')};}return'unlink'==_0x581fdd['commandName']?{'type':'format','content':o(_0x2f79c1,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2eaa3f{['afterInit'](){const _0x3cb694=this['editor'],_0x30d5da=_0x3cb694['locale'];if(!_0x3cb694['plugins']['has']('LegacyListEditing'))return;const _0x4e1712=_0x3cb694['plugins']['get']('TrackChangesEditing'),_0x46068c=_0x3cb694['plugins']['has']('LegacyTodoListEditing');function _0x548815(_0x376e4a){return()=>{const _0x35c798=_0x3cb694['model']['document']['selection'],_0x1ed4a8=_0x3cb694['commands']['get'](_0x376e4a);if(_0x1ed4a8['value'])return void _0x3cb694['execute']('paragraph',{});const _0x8e77=_0x376e4a['slice'](0x0,-0x4),_0x18e667=function(_0xde5356,_0x182bc4,_0x3d8d28){let _0x4b8d83=Array['from'](_0xde5356)['filter'](_0x46c612=>function(_0x2074a3,_0x429034){return _0x429034['checkChild'](_0x2074a3['parent'],'listItem')&&!_0x429034['isObject'](_0x2074a3);}(_0x46c612,_0x3d8d28));_0x4b8d83=_0x4b8d83['filter'](_0x34650b=>!_0x34650b['is']('element','listItem')||_0x34650b['getAttribute']('listType')!=_0x182bc4);const _0x395f4c=new Set();for(const _0x3bbd67 of _0x4b8d83)_0x3bbd67['is']('element','listItem')?_0x395f4c['add'](Le(_0x3bbd67)):_0x395f4c['add'](_0x3bbd67);return Array['from'](_0x395f4c);}(_0x35c798['getSelectedBlocks'](),_0x8e77,_0x3cb694['model']['schema']);_0x3cb694['model']['change'](()=>{for(const _0x4ce88a of _0x18e667)_0x4e1712['markBlockFormat'](_0x4ce88a,{'commandName':_0x376e4a,'commandParams':[{'forceValue':!_0x1ed4a8['value']}],'formatGroupId':'blockName'},Ee(_0x4ce88a));});};}function _0x26e799(_0x15ebac){return()=>{const _0x16c9f8=function(_0x7a73a4){let _0x319f2e=Array['from'](_0x7a73a4);const _0x39a04e=_0x319f2e['findIndex'](_0x359509=>'listItem'!=_0x359509['name']);return _0x39a04e>-0x1&&(_0x319f2e=_0x319f2e['slice'](0x0,_0x39a04e)),_0x319f2e;}(_0x3cb694['model']['document']['selection']['getSelectedBlocks']()),_0x571630=_0x3cb694['model']['createRange'](_0x3cb694['model']['createPositionAt'](_0x16c9f8[0x0],'before'),_0x3cb694['model']['createPositionAt'](_0x16c9f8[_0x16c9f8['length']-0x1],'end'));_0x3cb694['model']['change'](()=>{_0x4e1712['markBlockFormat'](_0x571630,{'commandName':_0x15ebac,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ec1d7){const _0x45146c=new Set();for(const _0x2ea41d of _0x4ec1d7){let _0x5315da=_0x2ea41d['nextSibling'];for(;_0x5315da&&_0x5315da['getAttribute']('listIndent')>_0x2ea41d['getAttribute']('listIndent');)_0x45146c['add'](_0x5315da),_0x5315da=_0x5315da['nextSibling'];}return Array['from'](_0x45146c);}(_0x16c9f8));});};}_0x4e1712['enableCommand']('numberedList',_0x548815('numberedList')),_0x4e1712['enableCommand']('bulletedList',_0x548815('bulletedList')),_0x46068c&&_0x4e1712['enableCommand']('todoList',_0x548815('todoList')),_0x4e1712['enableCommand']('indentList',_0x26e799('indentList')),_0x4e1712['enableCommand']('outdentList',_0x26e799('outdentList')),_0x46068c&&_0x4e1712['enableCommand']('checkTodoList',()=>{const _0x2e0df8=_0x3cb694['commands']['get']('checkTodoList'),_0x3eafc1=Array['from'](_0x2e0df8['_selectedElements']);_0x3eafc1['filter'](_0x28ecd1=>_0x28ecd1['getAttribute']('todoListChecked')!=_0x2e0df8['value']),_0x3cb694['model']['change'](()=>{for(const _0x5309d1 of _0x3eafc1)_0x4e1712['markBlockFormat'](_0x5309d1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2e0df8['value']}]});});}),_0x4e1712['descriptionFactory']['registerElementLabel']('listItem',_0xb16ec4=>o(_0x30d5da,'ELEMENT_LIST_ITEM',_0xb16ec4)),_0x4e1712['descriptionFactory']['registerDescriptionCallback'](_0x4f5144=>{if('formatBlock'!=_0x4f5144['type']&&'formatInline'!=_0x4f5144['type'])return;const {data:_0xa797b5}=_0x4f5144;if(_0xa797b5){if('numberedList'==_0xa797b5['commandName']||'bulletedList'==_0xa797b5['commandName']||'todoList'==_0xa797b5['commandName'])switch(_0xa797b5['commandName']['replace']('List','')){case'bulleted':return _0x2aa317(o(_0x30d5da,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2aa317(o(_0x30d5da,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2aa317(o(_0x30d5da,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa797b5['commandName'])return{'type':'format','content':o(_0x30d5da,'*Indent:*\x20%0',o(_0x30d5da,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa797b5['commandName'])return{'type':'format','content':o(_0x30d5da,'*Outdent:*\x20%0',o(_0x30d5da,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa797b5['commandName'])return _0xa797b5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30d5da,'*Check\x20item*')}:{'type':'format','content':o(_0x30d5da,'*Uncheck\x20item*')};}function _0x2aa317(_0x236b77){return{'type':'format','content':o(_0x30d5da,'*Change\x20to:*\x20%0',_0x236b77)};}});}}function Le(_0x19e3ab){const _0x152690=_0x19e3ab['getAttribute']('listIndent');if(0x0==_0x152690)return _0x19e3ab;let _0x2faaa9=_0x19e3ab;for(;_0x19e3ab['previousSibling']&&_0x19e3ab['previousSibling']['is']('element','listItem');){const _0x3fbf19=_0x19e3ab['previousSibling']['getAttribute']('listIndent');if(_0x3fbf19==_0x152690)_0x2faaa9=_0x19e3ab['previousSibling'];else{if(_0x3fbf19<_0x152690)break;}_0x19e3ab=_0x19e3ab['previousSibling'];}return _0x2faaa9;}function Ee(_0x552bc5){const _0x3a18ae=[];if(_0x552bc5['is']('element','listItem')&&_0x552bc5['getAttribute']('listIndent')>0x0){let _0xcbd4d2=_0x552bc5['nextSibling'];for(;_0xcbd4d2&&'listItem'==_0xcbd4d2['name']&&_0xcbd4d2['getAttribute']('listIndent')==_0x552bc5['getAttribute']('listIndent');)_0x3a18ae['push'](_0xcbd4d2),_0xcbd4d2=_0xcbd4d2['nextSibling'];}return _0x3a18ae;}class ht extends _0x2eaa3f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b991f=this['editor']['config']['get']('list.properties'),_0x53b361=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b991f['styles']&&_0x53b361['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b991f['reversed']&&_0x53b361['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b991f['startIndex']&&_0x53b361['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x53b361['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3701a6,_0xc69bfa={}){const _0x2624e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f5666=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2624e1['markMultiRangeBlockFormat'](_0x5f5666,{'commandName':'listStyle','commandParams':[{'type':_0xc69bfa['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d7186,_0x2da3fd={}){const _0x78eff9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8d7884=this['_getSuggestionBlocks'](_0x10d1b3=>_0x10d1b3['is']('element','listItem')&&'numbered'===_0x10d1b3['getAttribute']('listType'));if(_0x8d7884['length']<0x1)return;const _0x96398b=_0x8d7884['map'](_0x520d01=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x520d01,'before'),this['editor']['model']['createPositionAt'](_0x520d01,0x0)));this['editor']['model']['change'](()=>{_0x78eff9['markMultiRangeBlockFormat'](_0x96398b,{'commandName':'listReversed','commandParams':[{'reversed':_0x2da3fd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xe68a8c,_0x2e72bc={}){const _0x4200ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52c0ac=this['_getSuggestionBlocks'](_0x1233bf=>_0x1233bf['is']('element','listItem')&&'numbered'===_0x1233bf['getAttribute']('listType'));if(_0x52c0ac['length']<0x1)return;const _0xe4479d=_0x52c0ac['map'](_0x524406=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x524406,'before'),this['editor']['model']['createPositionAt'](_0x524406,0x0)));this['editor']['model']['change'](()=>{_0x4200ac['markMultiRangeBlockFormat'](_0xe4479d,{'commandName':'listStart','commandParams':[{'startIndex':_0x2e72bc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x487ed8){if('formatBlock'!=_0x487ed8['type']&&'formatInline'!=_0x487ed8['type'])return;const _0x5d02b1=this['editor']['locale'],{data:_0xc3b5c}=_0x487ed8;if(!_0xc3b5c)return;let _0x9b5e9f,_0x750f95;switch(_0xc3b5c['commandName']){case'listStyle':_0x9b5e9f='*Change\x20to:*\x20%0',_0x750f95={'type':'format','content':o(_0x5d02b1,_0x9b5e9f,o(_0x5d02b1,this['_getTranslationKeyForListStyle'](_0xc3b5c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9b5e9f=_0xc3b5c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x750f95={'type':'format','content':o(_0x5d02b1,_0x9b5e9f)};break;case'listStart':_0x9b5e9f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x750f95={'type':'format','content':o(_0x5d02b1,_0x9b5e9f,_0xc3b5c['commandParams'][0x0]['startIndex'])};}return _0x750f95;}['_getSuggestionBlocksForListStyle'](){const _0x572c6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x3fbd08=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3fbd08[0x0]?.['is']('element','listItem')&&_0x3fbd08['unshift'](..._0x572c6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3fbd08[_0x3fbd08['length']-0x1]?.['is']('element','listItem')&&_0x3fbd08['push'](..._0x572c6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3fbd08=[...new Set(_0x3fbd08)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3fbd08=_0x3fbd08['filter'](_0x5c005f=>_0x5c005f['is']('element','listItem'))),_0x3fbd08;}['_getSuggestionBlocks'](_0xb2d96d){const _0x400add=this['editor']['plugins']['get']('LegacyListUtils');let _0x18d73e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb2d96d)['map'](_0x4c1ee0=>{const _0xb12d45=this['editor']['model']['createPositionAt'](_0x4c1ee0,0x0);return[..._0x400add['getSiblingNodes'](_0xb12d45,'backward'),..._0x400add['getSiblingNodes'](_0xb12d45,'forward')];})['flat']();return _0x18d73e=[...new Set(_0x18d73e)],_0x18d73e;}['_getTranslationKeyForListStyle'](_0x39889d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39889d)||'default')['toUpperCase']()+'_LIST_'+_0x39889d['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x2eaa3f{['afterInit'](){const _0x2f9198=this['editor'];if(!_0x2f9198['plugins']['has']('MediaEmbedEditing'))return;const _0x26702a=_0x2f9198['plugins']['get']('TrackChangesEditing'),_0x50dde2=_0x2f9198['locale'];_0x26702a['enableCommand']('mediaEmbed'),_0x26702a['descriptionFactory']['registerElementLabel']('media',_0x2775bf=>o(_0x50dde2,'ELEMENT_MEDIA',_0x2775bf)),_0x2f9198['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x12746c,{writer:_0x4cee7c,options:_0x3c4d7b})=>{if(_0x3c4d7b['showSuggestionHighlights'])return _0x4cee7c['createEmptyElement']('div');},'converterPriority':'high'}),_0x2f9198['data']['downcastDispatcher']['on']('attribute:url:media',(_0x252e13,_0x4d9401,_0x4bcec6)=>{_0x4bcec6['options']['showSuggestionHighlights']&&_0x252e13['stop']();},{'priority':'high'});}}class lt extends _0x2eaa3f{['afterInit'](){const _0x6777e8=this['editor'];_0x6777e8['plugins']['has']('MentionEditing')&&_0x6777e8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2eaa3f{['afterInit'](){const _0x3136a9=this['editor'];if(!_0x3136a9['plugins']['has']('MergeFieldsEditing'))return;const _0x1a8ada=_0x3136a9['plugins']['get']('TrackChangesEditing'),_0x51b8d2=_0x3136a9['locale'];_0x1a8ada['enableCommand']('insertMergeField'),_0x1a8ada['enableCommand']('insertMergeFieldBlock'),_0x1a8ada['enableCommand']('insertMergeFieldImage'),_0x1a8ada['descriptionFactory']['registerElementLabel']('mergeField',_0x133980=>o(_0x51b8d2,'ELEMENT_MERGE_FIELD',_0x133980)),_0x1a8ada['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2f5ec4=>o(_0x51b8d2,'ELEMENT_MERGE_FIELD',_0x2f5ec4)),_0x1a8ada['descriptionFactory']['registerDescriptionCallback'](_0x4d96f4=>{if('insertion'!=_0x4d96f4['type']&&'deletion'!=_0x4d96f4['type'])return;const _0x1e384f=_0x4d96f4['getContainedElement']();if(null==_0x1e384f)return;const _0x38a0ad=_0x3136a9['plugins']['get']('MergeFieldsEditing');let _0x39a3df;switch(_0x38a0ad['getMergeFieldType'](_0x1e384f)){case null:return;case'image':{const _0x68d87c=_0x38a0ad['unwrapAffixes'](_0x1e384f['getAttribute']('src'));_0x39a3df=_0x38a0ad['getLabel'](_0x68d87c)||_0x68d87c;break;}default:{const _0x93ecb2=_0x1e384f['getAttribute']('id');_0x39a3df=_0x38a0ad['getLabel'](_0x93ecb2)||_0x93ecb2;break;}}return'insertion'==_0x4d96f4['type']?{'type':'insertion','content':o(_0x51b8d2,'*Insert:*\x20%0','\x22'+_0x39a3df+'\x22\x20'+o(_0x51b8d2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x51b8d2,'*Remove:*\x20%0','\x22'+_0x39a3df+'\x22\x20'+o(_0x51b8d2,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x2eaa3f{['afterInit'](){const _0x3a02e1=this['editor'],_0x16290c=_0x3a02e1['plugins']['get']('TrackChangesEditing');_0x3a02e1['plugins']['has']('MultiLevelList')&&(_0x16290c['enableDefaultAttributesIntegration']('multiLevelList'),_0x16290c['registerBlockAttribute']('listMarkerStyle'),_0x16290c['descriptionFactory']['registerDescriptionCallback'](_0xca6e0a=>this['handleDescriptions'](_0xca6e0a)));}['handleDescriptions'](_0x234a46){const _0xa2ad71=this['editor']['locale'],{data:_0x211890}=_0x234a46,_0x3b4f37={'type':'format','content':''};if(_0x211890&&'listMarkerStyle'==_0x211890['key']){if(!_0x211890['oldValue'])return{'type':'format','content':o(_0xa2ad71,'*Set\x20format:*\x20%0',o(_0xa2ad71,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x211890['newValue']+')'};if(!_0x211890['newValue']){let _0x1f726a=_0x234a46['head'];for(;_0x1f726a;){if(_0x1f726a['data']&&'listType'==_0x1f726a['data']['key']&&_0x1f726a['data']['newValue'])return _0x3b4f37;_0x1f726a=_0x1f726a['next'];}return{'type':'format','content':o(_0xa2ad71,'*Remove\x20format:*\x20%0',o(_0xa2ad71,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x211890['oldValue']+')'};}}}}class pt extends _0x2eaa3f{['afterInit'](){const _0x196ec1=this['editor'];if(!_0x196ec1['plugins']['has']('PageBreakEditing'))return;_0x196ec1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f0ef9=_0x196ec1['plugins']['get']('TrackChangesEditing'),_0x3a4019=_0x196ec1['locale'];_0x3f0ef9['descriptionFactory']['registerElementLabel']('pageBreak',_0x411eae=>o(_0x3a4019,'ELEMENT_PAGE_BREAK',_0x411eae));}}class kt extends _0x2eaa3f{['afterInit'](){const _0x21b3d6=this['editor'];if(!_0x21b3d6['plugins']['has']('Paragraph'))return;const _0xf6b3b1=_0x21b3d6['locale'],_0x17facb=_0x21b3d6['plugins']['get']('TrackChangesEditing');_0x17facb['descriptionFactory']['registerElementLabel']('paragraph',_0x5cf5e9=>o(_0xf6b3b1,'ELEMENT_PARAGRAPH',_0x5cf5e9)),_0x17facb['enableDefaultAttributesIntegration']('paragraph'),_0x17facb['enableCommand']('insertParagraph'),_0x21b3d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x21b3d6),{'priority':'highest'}),_0x21b3d6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ff021,_0x9cff0a,_0x5cadb8)=>{_0x5cadb8['options']['showSuggestionHighlights']&&nr(_0x21b3d6,{'showActiveMarker':!0x1})(_0x4ff021,_0x9cff0a,_0x5cadb8);},{'priority':'highest'});const _0x58239a=_0x17facb['descriptionFactory'];_0x58239a['registerDescriptionCallback'](_0xccf3f=>{if('insertion'!==_0xccf3f['type'])return;const {start:_0x550656,end:_0x5c34ed}=_0xccf3f['getFirstRange']();if(!_0x550656['isTouching'](_0x5c34ed)||!_0x550656['nodeAfter'])return;const _0x3e7a9b=_0x21b3d6['model']['schema'],_0x51217f=_0x550656['nodeAfter'];return _0x3e7a9b['isBlock'](_0x51217f)&&!_0x3e7a9b['isLimit'](_0x51217f)&&_0x3e7a9b['checkChild'](_0x51217f,'$text')?{'type':'insertion','content':o(_0xf6b3b1,'*Insert:*\x20%0',_0x58239a['getItemLabel'](_0x51217f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c735e=this['editor'],_0x2f4c09=_0x2c735e['locale'];_0x2c735e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52358a=>{if('formatBlock'!=_0x52358a['type'])return;const {data:_0x53fbaa}=_0x52358a;return _0x53fbaa&&'paragraph'==_0x53fbaa['commandName']?{'type':'format','content':o(_0x2f4c09,'*Change\x20to:*\x20%0',o(_0x2f4c09,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x31b032,{showActiveMarker:_0x3b2266=!0x0}={}){return(_0x2cb921,_0x55d6fd,_0x7574c5)=>{const _0x3aca64=_0x31b032['plugins']['get']('TrackChangesEditing'),_0x10e36a=_0x55d6fd['markerRange']['start'],_0xba81ab=_0x55d6fd['markerRange']['end'],_0x2d4670=_0x31b032['model']['schema'];if(!_0x10e36a['isTouching'](_0xba81ab)||!_0x10e36a['nodeAfter'])return;const _0xfe2013=_0x10e36a['nodeAfter'];if(_0x2d4670['isBlock'](_0xfe2013)&&!_0x2d4670['isLimit'](_0xfe2013)&&_0x2d4670['checkChild'](_0xfe2013,'$text')){if(!_0x7574c5['consumable']['consume'](_0x55d6fd['markerRange'],_0x2cb921['name']))return;const {id:_0x148b72,authorId:_0x493892}=_0x3aca64['_splitMarkerName'](_0x55d6fd['markerName']),_0x1701cb=_0x7574c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x148b72,'data-author-id':_0x493892}),_0x5fc0aa=_0x7574c5['mapper']['toViewPosition'](_0xba81ab);_0x3b2266&&_0x3aca64['activeMarkers']['includes'](_0x55d6fd['markerName'])&&_0x7574c5['writer']['addClass']('ck-suggestion-marker--active',_0x1701cb),_0x7574c5['writer']['insert'](_0x5fc0aa,_0x1701cb),_0x7574c5['mapper']['bindElementToMarker'](_0x1701cb,_0x55d6fd['markerName']);}};}class wt extends _0x2eaa3f{['afterInit'](){const _0x49c386=this['editor'];_0x49c386['commands']['get']('replaceSource')&&_0x49c386['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x2eaa3f{['afterInit'](){const _0x49e0ae=this['editor'];if(!_0x49e0ae['plugins']['has']('RemoveFormatEditing'))return;_0x49e0ae['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2123e6=this['editor'];_0x2123e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54f3ba=>{if('formatBlock'!=_0x54f3ba['type']&&'formatInline'!=_0x54f3ba['type'])return;const {data:_0x48d975}=_0x54f3ba;return _0x48d975&&'removeFormat'==_0x48d975['commandName']?{'type':'format','content':o(_0x2123e6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2eaa3f{['afterInit'](){const _0x1603cd=this['editor'];if(!_0x1603cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x986897=_0x1603cd['plugins']['get']('TrackChangesEditing');_0x986897['enableCommand']('goToPreviousRestrictedEditingException'),_0x986897['enableCommand']('goToNextRestrictedEditingException');const _0x3e3a44=_0x1603cd['plugins']['get']('RestrictedEditingModeEditing');_0x3e3a44['enableCommand']('trackChanges'),_0x3e3a44['enableCommand']('acceptSuggestion'),_0x3e3a44['enableCommand']('discardSuggestion'),_0x3e3a44['enableCommand']('acceptAllSuggestions'),_0x3e3a44['enableCommand']('discardAllSuggestions'),_0x3e3a44['enableCommand']('acceptSelectedSuggestions'),_0x3e3a44['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2eaa3f{['afterInit'](){const _0x5cd3e4=this['editor'];if(!_0x5cd3e4['plugins']['has']('ShiftEnter'))return;const _0x37f52e=_0x5cd3e4['plugins']['get']('TrackChangesEditing');_0x37f52e['enableCommand']('shiftEnter'),_0x5cd3e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5cd3e4),{'priority':'high'}),_0x5cd3e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5cd3e4),{'priority':'high'}),_0x5cd3e4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8bd3c9,_0x436123,_0x1258e7)=>{_0x1258e7['options']['showSuggestionHighlights']&&je(_0x5cd3e4,{'showActiveMarker':!0x1})(_0x8bd3c9,_0x436123,_0x1258e7);}),_0x37f52e['descriptionFactory']['registerElementLabel']('softBreak',_0x5b45d7=>o(_0x5cd3e4['locale'],'ELEMENT_LINE_BREAK',_0x5b45d7));}}function je(_0x330e6a,{showActiveMarker:_0xfdd124=!0x0}={}){return(_0x5e67bb,_0x578305,_0x323169)=>{const _0x4ec63a=_0x330e6a['plugins']['get']('TrackChangesEditing');if(!_0x323169['consumable']['test'](_0x578305['markerRange'],_0x5e67bb['name']))return;const _0x334ce9=_0x330e6a['model'];for(const _0x29e3a1 of _0x578305['markerRange']['getItems']()){if(!_0x29e3a1['is']('element','softBreak'))continue;const _0x14b4f0='deletion'==_0x578305['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3d5b1e,authorId:_0x3eadc1}=_0x4ec63a['_splitMarkerName'](_0x578305['markerName']),_0xaa91fb=_0x323169['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14b4f0,'data-suggestion':_0x3d5b1e,'data-author-id':_0x3eadc1}),_0x4f2356=_0x323169['mapper']['toViewPosition'](_0x334ce9['createPositionBefore'](_0x29e3a1));_0xfdd124&&_0x4ec63a['activeMarkers']['includes'](_0x578305['markerName'])&&_0x323169['writer']['addClass']('ck-suggestion-marker--active',_0xaa91fb),_0x323169['writer']['insert'](_0x4f2356,_0xaa91fb),_0x323169['mapper']['bindElementToMarker'](_0xaa91fb,_0x578305['markerName']);}};}class St extends _0x2eaa3f{['afterInit'](){const _0x2bc719=this['editor'],_0xc9e80f=_0x2bc719['model'],_0x3d1962=_0x2bc719['locale'];if(!_0x2bc719['plugins']['has']('StandardEditingModeEditing'))return;const _0x4e0768=_0x2bc719['plugins']['get']('TrackChangesEditing'),_0x532aff='restrictedEditingException',_0x1d3b9c=_0x2bc719['commands']['get'](_0x532aff);_0x4e0768['enableCommand'](_0x532aff,(_0x289ea8,_0x539cec={})=>{const _0x15d076=_0xc9e80f['document']['selection'];if(_0x15d076['isCollapsed'])return void _0x289ea8(_0x539cec);const _0x488221=void 0x0!==_0x539cec['forceValue']?_0x539cec['forceValue']:!_0x1d3b9c['value'];_0xc9e80f['change'](()=>{const _0x27dba4=Array['from'](_0x15d076['getRanges']());for(const _0x4b289b of _0x27dba4){const _0x128fd6=_0x488221?[_0x4b289b]:io(_0x532aff,_0x4b289b,_0xc9e80f);for(const _0x352c58 of _0x128fd6)_0x4e0768['markInlineFormat'](_0x352c58,{'commandName':_0x532aff,'commandParams':[{'forceValue':_0x488221}]});}});}),_0x4e0768['descriptionFactory']['registerDescriptionCallback'](_0x1cacb3=>{if('formatBlock'!=_0x1cacb3['type']&&'formatInline'!=_0x1cacb3['type'])return;const {data:_0x279bce}=_0x1cacb3;return _0x279bce&&_0x279bce['commandName']==_0x532aff?_0x279bce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d1962,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3d1962,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2eaa3f{['afterInit'](){const _0x5d9674=this['editor'];if(!_0x5d9674['plugins']['has']('Style')||!_0x5d9674['plugins']['has']('DataSchema'))return;const _0x2827be=_0x5d9674['plugins']['get']('TrackChangesEditing'),_0x4cd9ed=_0x5d9674['locale'],_0x44f08c=_0x5d9674['config']['get']('style')||{},_0x27afa1=_0x5d9674['plugins']['get']('GeneralHtmlSupport'),_0x198c3e=_0x5d9674['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5d9674['plugins']['get']('DataSchema'),_0x44f08c['definitions']);_0x2827be['enableDefaultAttributesIntegration']('style');const _0x58138c=new Set();for(const _0x19295c of _0x198c3e['block']){const _0x42a716=_0x27afa1['getGhsAttributeNameForElement'](_0x19295c['element']);_0x58138c['add'](_0x42a716);}const _0x4c2d47=new Set();for(const _0x5b0234 of _0x198c3e['inline']){const _0xd5ab07=_0x27afa1['getGhsAttributeNameForElement'](_0x5b0234['element']);_0x4c2d47['add'](_0xd5ab07);for(const _0x41fce5 of _0x5b0234['ghsAttributes'])_0x4c2d47['add'](_0x41fce5);}for(const _0x5070ec of _0x58138c)_0x2827be['registerBlockAttribute'](_0x5070ec),_0x2827be['descriptionFactory']['registerAttributeLabel'](_0x5070ec,o(_0x4cd9ed,'FORMAT_STYLE'));for(const _0xe48448 of _0x4c2d47)_0x2827be['registerInlineAttribute'](_0xe48448),_0x2827be['descriptionFactory']['registerAttributeLabel'](_0xe48448,o(_0x4cd9ed,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x419c6a=this['editor'],_0x52dca9=_0x419c6a['locale'];_0x419c6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d7055=>{if('formatBlock'!=_0x2d7055['type']&&'formatInline'!=_0x2d7055['type'])return;const {data:_0x349200}=_0x2d7055;return _0x349200&&'style'===_0x349200['commandName']?_0x349200['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52dca9,'*Set\x20format:*\x20%0',_0x349200['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x52dca9,'*Remove\x20format:*\x20%0',_0x349200['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x2eaa3f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x27522f){super(_0x27522f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xcc54c9=this['editor'],_0x355057=_0xcc54c9['model']['document']['selection'];if(!_0xcc54c9['plugins']['has']('TableEditing'))return;const _0x4e0b97=_0xcc54c9['locale'],_0x290227=_0xcc54c9['plugins']['get']('TrackChangesEditing'),_0x27c94e=_0xcc54c9['plugins']['get']('TableUtils');_0x290227['descriptionFactory']['registerElementLabel']('table',_0x25e910=>o(_0x4e0b97,'ELEMENT_TABLE',_0x25e910)),this['_setupColumnsRowsFixing'](),_0x290227['enableCommand']('insertTable'),_0x290227['enableCommand']('selectTableRow'),_0x290227['enableCommand']('selectTableColumn');for(const _0x7cfb0 of['insertTableRowAbove','insertTableRowBelow']){const _0x2927ee=_0xcc54c9['commands']['get'](_0x7cfb0);_0x290227['enableCommand'](_0x7cfb0,_0xac7113=>{_0xcc54c9['model']['change'](_0x246377=>{_0xac7113();const _0x5d76bc='above'===_0x2927ee['order'],_0x5b6744=_0x27c94e['getSelectionAffectedTableCells'](_0x355057),_0xc929b=_0x27c94e['getRowIndexes'](_0x5b6744),_0x278e10=_0x5d76bc?_0xc929b['first']-0x1:_0xc929b['last']+0x1,_0x47f0a8=_0x5b6744[0x0]['findAncestor']('table'),_0x5c7c50=_0x27c94e['createTableWalker'](_0x47f0a8,{'startRow':_0x278e10,'endRow':_0x278e10}),_0x35b28d=Array['from'](_0x5c7c50)['map'](_0xa58fc0=>_0x246377['createRangeOn'](_0xa58fc0['cell']));_0x290227['markMultiRangeInsertion'](_0x35b28d,'tableRow');});});}for(const _0x598fbc of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e4bc3=_0xcc54c9['commands']['get'](_0x598fbc);_0x290227['enableCommand'](_0x598fbc,_0x2b3072=>{_0xcc54c9['model']['change'](_0xc14f8e=>{_0x2b3072();const _0x1e4b9a='left'===_0x5e4bc3['order'],_0x5a8a02=_0x27c94e['getSelectionAffectedTableCells'](_0x355057),_0x20b395=_0x27c94e['getColumnIndexes'](_0x5a8a02),_0x4896ec=_0x1e4b9a?_0x20b395['first']-0x1:_0x20b395['last']+0x1,_0x21d19e=_0x5a8a02[0x0]['findAncestor']('table'),_0x498ea7=_0x27c94e['createTableWalker'](_0x21d19e,{'startRow':0x0,'column':_0x4896ec,'includeAllSlots':!0x1}),_0x732525=Array['from'](_0x498ea7)['map'](_0x436407=>_0xc14f8e['createRangeOn'](_0x436407['cell']));_0x290227['markMultiRangeInsertion'](_0x732525,'tableColumn');});});}for(const _0x5bfcbf of['removeTableRow','removeTableColumn']){const _0x342d0e=_0x5bfcbf['substr'](0xb),_0x5812b3=_0x342d0e['toLowerCase'](),_0x430a00=_0x5812b3['substr'](0x0,0x3)+'span',_0xccf34d='table'+_0x342d0e,_0x45fcfd='min'+_0x342d0e,_0x6f5d4d='max'+_0x342d0e;_0x290227['enableCommand'](_0x5bfcbf,()=>{_0xcc54c9['model']['change'](_0x120000=>{const _0x369344=_0x27c94e['getSelectionAffectedTableCells'](_0x355057),_0x54f212=_0x369344[0x0]['findAncestor']('table');let _0x533ca8;if('removeTableRow'==_0x5bfcbf){const _0x23bc51=_0x27c94e['getRowIndexes'](_0x369344);_0x533ca8={'startRow':_0x23bc51['first'],'endRow':_0x23bc51['last'],'includeAllSlots':!0x0};}else{const _0x5839aa=_0x27c94e['getColumnIndexes'](_0x369344);_0x533ca8={'startColumn':_0x5839aa['first'],'endColumn':_0x5839aa['last'],'includeAllSlots':!0x0};}const _0x1d310b=_0x27c94e['createTableWalker'](_0x54f212,_0x533ca8),_0x442516=Array['from'](_0x1d310b)['map'](({cell:_0x16bc52})=>_0x16bc52),_0x32292e=Ne(_0x442516['filter'](_0x41ed04=>_0x41ed04['hasAttribute'](_0x430a00))),_0x22a1e0=Ne(_0x442516['filter'](_0x3f4ded=>!_0x3f4ded['hasAttribute'](_0x430a00)))['map'](_0x2c16e9=>_0x120000['createRangeOn'](_0x2c16e9)),_0x351b5e=_0x290227['markMultiRangeDeletion'](_0x22a1e0,_0xccf34d);if(_0x351b5e&&('tableRow'==_0x351b5e['subType']||'tableColumn'==_0x351b5e['subType'])){const _0x4a61a6=this['_getSuggestionCoords'](_0x351b5e);for(const _0x2b6c7b of _0x32292e){const _0x14340e=_0x120000['createRangeOn'](_0x2b6c7b),_0x50b1df=_0x27c94e['getCellLocation'](_0x2b6c7b),_0x51786b=_0x2b6c7b['getAttribute'](_0x430a00)-0x1,_0x251c57=_0x4a61a6[_0x45fcfd],_0x4473de=_0x4a61a6[_0x6f5d4d];_0x251c57<=_0x50b1df[_0x5812b3]&&_0x50b1df[_0x5812b3]+_0x51786b<=_0x4473de&&_0x351b5e['addRange'](_0x14340e);}}});});}function _0xcb8d3f(_0x26426e){const _0x38e8e9=Array['from'](_0x355057['getRanges']())['map'](_0x4823d7=>_0x3ba60d['fromRange'](_0x4823d7));_0xcc54c9['model']['change'](_0x33d2ee=>{const _0x4b613b=_0x33d2ee['batch'];_0x26426e=_0x26426e['filter'](_0x5bf7fc=>'$graveyard'!=_0x5bf7fc['root']['rootName']),_0x33d2ee['setSelection'](_0x26426e),_0xcc54c9['commands']['get']('removeTableRow')['refresh'](),_0xcc54c9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xcc54c9['model']['enqueueChange'](()=>{_0xcc54c9['model']['enqueueChange'](_0x4b613b,_0x4ab8ff=>{const _0x2b35cf=_0x38e8e9['filter'](_0x4853ef=>'$graveyard'!=_0x4853ef['root']['rootName']);_0x2b35cf['length']>0x0&&_0x4ab8ff['setSelection'](_0x2b35cf);for(const _0x432514 of _0x38e8e9)_0x432514['detach']();});});});}function _0x2210f3(_0x59c260){_0xcc54c9['model']['change'](_0x6832fd=>{const _0x1af20e=Array['from'](_0x355057['getRanges']())['map'](_0x4e3481=>_0x3ba60d['fromRange'](_0x4e3481)),_0x4b5e14=[];for(const _0x175a59 of _0x59c260)for(const _0x29ee0d of _0x175a59['getItems']({'shallow':!0x0}))_0x4b5e14['push'](_0x29ee0d);for(const _0x87b01 of _0x4b5e14)'$graveyard'!=_0x87b01['root']['rootName']&&(_0x6832fd['setSelection'](_0x6832fd['createPositionAt'](_0x87b01,0x0)),_0xcc54c9['commands']['get']('removeTableColumn')['refresh'](),_0xcc54c9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e5913=_0x1af20e['filter'](_0xba7019=>'$graveyard'!=_0xba7019['root']['rootName']);_0x3e5913['length']>0x0&&_0x6832fd['setSelection'](_0x3e5913);for(const _0x360aa4 of _0x1af20e)_0x360aa4['detach']();});}function _0x48ef17(_0x20bccd,_0x49fa8e){return _0x49fa8e['every'](_0x3f11d0=>_0x20bccd['some'](_0x257336=>_0x257336['end']['isEqual'](_0x3f11d0['start'])||_0x3f11d0['end']['isEqual'](_0x257336['start'])));}function _0x13c635(_0x513e54,_0x179b27){return!_0x513e54['some'](_0x2ef6f1=>_0x179b27['some'](_0x34c363=>_0x2ef6f1['isIntersecting'](_0x34c363)))&&_0x513e54['some'](_0x49156b=>_0x179b27['some'](_0x4d7242=>_0x49156b['end']['isTouching'](_0x4d7242['start'])));}_0xcc54c9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x397dc7,_0x1fe87d,_0x3d509b)=>{if(!_0x3d509b['options']['showSuggestionHighlights'])return;const _0x20dcee=_0x1fe87d['item'];if(!_0x20dcee||!_0x20dcee['is']('element','tableCell'))return;const _0x2fb288=_0x3d509b['mapper']['toViewElement'](_0x20dcee);if(_0x2fb288){const {id:_0x2e485b,authorId:_0x556327}=_0x290227['_splitMarkerName'](_0x1fe87d['markerName']);_0x42efa8(_0x2fb288,_0x3d509b['writer'],(_0x4345ce,_0x4687c1,_0x495904)=>{_0x495904['addClass'](_0x41c331(_0x4687c1['classes']),_0x4345ce),_0x495904['setAttribute']('data-suggestion-id',_0x2e485b,_0x4345ce),_0x495904['setAttribute']('data-author-id',_0x556327,_0x4345ce);},(_0x1deb9c,_0x32ebfd,_0x4868)=>{_0x4868['removeClass'](_0x41c331(_0x32ebfd['classes']),_0x1deb9c),_0x4868['removeAttribute']('data-suggestion-id',_0x1deb9c),_0x4868['removeAttribute']('data-author-id',_0x1deb9c);});}},{'priority':'highest'}),_0x290227['descriptionFactory']['registerDescriptionCallback'](_0x500ce1=>{if('insertion'!=_0x500ce1['type']&&'deletion'!=_0x500ce1['type'])return;const _0x2b649e=_0x500ce1['getContainedElement']();if(null!=_0x2b649e&&_0x2b649e['is']('element','table')){if('insertion'==_0x500ce1['type']){const _0x514ea9=_0x500ce1['getItems']()['filter'](_0x2cf69c=>_0x2cf69c['is']('$textProxy'))['map'](_0x1b3ec4=>_0x1b3ec4['data']);if(_0x514ea9['length'])return{'type':'insertion','content':o(_0x4e0b97,'*Insert:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x514ea9['join']('\x20')+'\x22'))};}if('deletion'==_0x500ce1['type']){const _0x36be3f=_0x500ce1['getItems']()['filter'](_0x2942f8=>_0x2942f8['is']('$textProxy'))['map'](_0x4c1754=>_0x4c1754['data']);if(_0x36be3f['length'])return{'type':'deletion','content':o(_0x4e0b97,'*Remove:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36be3f['join']('\x20')+'\x22'))};}}}),_0x290227['descriptionFactory']['registerDescriptionCallback'](_0x5a53ce=>{if('tableRow'==_0x5a53ce['subType']){const _0x9df4bc=_0x5a53ce['getItems']()['filter'](_0x3c0a6f=>_0x3c0a6f['is']('$textProxy'))['map'](_0x43d8fd=>_0x43d8fd['data']),_0x3add64=this['_getSuggestionCoords'](_0x5a53ce),_0x304345=_0x3add64['maxRow']-_0x3add64['minRow']+0x1;if('insertion'==_0x5a53ce['type'])return _0x9df4bc['length']?{'type':'insertion','content':o(_0x4e0b97,'*Insert:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x304345,'\x22'+_0x9df4bc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e0b97,'*Insert:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_ROW',_0x304345))};if('deletion'==_0x5a53ce['type'])return _0x9df4bc['length']?{'type':'deletion','content':o(_0x4e0b97,'*Remove:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x304345,'\x22'+_0x9df4bc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e0b97,'*Remove:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_ROW',_0x304345))};}if('tableColumn'==_0x5a53ce['subType']){const _0xff3f26=_0x5a53ce['getItems']()['filter'](_0x25fd7d=>_0x25fd7d['is']('$textProxy'))['map'](_0x5afe29=>_0x5afe29['data']),_0x5909d6=this['_getSuggestionCoords'](_0x5a53ce),_0x49e3b5=_0x5909d6['maxColumn']-_0x5909d6['minColumn']+0x1;if('insertion'==_0x5a53ce['type'])return _0xff3f26['length']?{'type':'insertion','content':o(_0x4e0b97,'*Insert:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x49e3b5,'\x22'+_0xff3f26['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e0b97,'*Insert:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_COLUMN',_0x49e3b5))};if('deletion'==_0x5a53ce['type'])return _0xff3f26['length']?{'type':'deletion','content':o(_0x4e0b97,'*Remove:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x49e3b5,'\x22'+_0xff3f26['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e0b97,'*Remove:*\x20%0',o(_0x4e0b97,'ELEMENT_TABLE_COLUMN',_0x49e3b5))};}}),_0x290227['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xcb8d3f),_0x290227['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xcb8d3f),_0x290227['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2210f3),_0x290227['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2210f3),_0x290227['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x48ef17),_0x290227['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x48ef17),_0x290227['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x13c635),_0x290227['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x13c635);}['_acceptFormatSuggestionCallbackFactory'](){const _0x317da9=this['editor'],_0x24a17d=_0x317da9['model']['document']['selection'];return(_0x50e082,_0x3edc3d)=>{_0x317da9['model']['change'](_0x3d67c1=>{const {commandName:_0x5699ac,commandParams:_0x1792aa}=_0x3edc3d;let _0x5d5b89=_0x50e082[0x0]['end']['nodeBefore'];_0x1792aa&&_0x1792aa[0x0]&&!0x1===_0x1792aa[0x0]['forceValue']&&(_0x5d5b89=_0x50e082[0x0]['start']['nodeAfter']);const _0x44c3fc=_0x3d67c1['createRangeIn'](_0x5d5b89);if('$graveyard'==_0x44c3fc['root']['rootName'])return;const _0x275dd3=Array['from'](_0x24a17d['getRanges']())['map'](_0x3e3fa5=>_0x3ba60d['fromRange'](_0x3e3fa5));_0x3d67c1['setSelection'](_0x44c3fc),_0x317da9['commands']['get'](_0x5699ac)['refresh'](),_0x1792aa['push']({'forceDefaultExecution':!0x0}),_0x317da9['execute'](_0x5699ac,..._0x1792aa);const _0xc6faf9=_0x275dd3['filter'](_0x558c36=>'$graveyard'!=_0x558c36['root']['rootName']);_0xc6faf9['length']>0x0&&_0x3d67c1['setSelection'](_0xc6faf9);for(const _0x5a3323 of _0x275dd3)_0x5a3323['detach']();});};}['_getCoordsForCells'](_0x96faa6){const _0x202bcd=this['editor']['plugins']['get']('TableUtils');let _0x4167cd=Number['MAX_SAFE_INTEGER'],_0x4d4a38=Number['MIN_SAFE_INTEGER'],_0x24182b=Number['MAX_SAFE_INTEGER'],_0x1167d5=Number['MIN_SAFE_INTEGER'];for(const _0x3f8776 of _0x96faa6){if('$graveyard'==_0x3f8776['root']['rootName'])continue;const {row:_0x5e49b0,column:_0x5a889f}=_0x202bcd['getCellLocation'](_0x3f8776),_0x30bebc=_0x3f8776['hasAttribute']('rowspan')?_0x3f8776['getAttribute']('rowspan')-0x1:0x0,_0x388ecd=_0x3f8776['hasAttribute']('colspan')?_0x3f8776['getAttribute']('colspan')-0x1:0x0;_0x4167cd=_0x5e49b0<_0x4167cd?_0x5e49b0:_0x4167cd,_0x4d4a38=_0x5e49b0+_0x30bebc>_0x4d4a38?_0x5e49b0+_0x30bebc:_0x4d4a38,_0x24182b=_0x5a889f<_0x24182b?_0x5a889f:_0x24182b,_0x1167d5=_0x5a889f+_0x388ecd>_0x1167d5?_0x5a889f+_0x388ecd:_0x1167d5;}return{'minRow':_0x4167cd,'maxRow':_0x4d4a38,'minColumn':_0x24182b,'maxColumn':_0x1167d5};}['_setupColumnsRowsFixing'](){const _0x3bb17c=this['editor'],_0x49e3a4=_0x3bb17c['plugins']['get']('TrackChangesEditing'),_0x538ec6=_0x3bb17c['plugins']['get']('TableUtils');_0x3bb17c['model']['document']['on']('change:data',()=>{const _0x46766b=Array['from'](_0x3bb17c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x973732,data:_0x300959}of _0x46766b){const {group:_0xf144,id:_0x17541c,subType:_0xdf9b46}=_0x49e3a4['_splitMarkerName'](_0x973732);if('suggestion'!=_0xf144)continue;if(null!=_0x300959['oldRange'])continue;const _0x2fcd8c=_0x49e3a4['getSuggestion'](_0x17541c);this['_tablePostFixingSubtypes']['includes'](_0xdf9b46)&&this['_tableSuggestions']['add'](_0x2fcd8c);}},{'priority':'low'});const _0x1ab62c=(_0x3333c0,_0x4a8f93)=>{let _0x4d3f0b=!0x1;const _0x7e8bfc=_0x4a8f93['createRangeOn'](_0x3333c0),_0x6afd3d=_0x3333c0['findAncestor']('table'),_0x1e5081=_0x538ec6['getCellLocation'](_0x3333c0);for(const _0x4a20d7 of this['_tableSuggestions']){const _0x34d5a6=_0x4a20d7['subType'],_0x3565c4=_0x34d5a6['startsWith']('tablePaste'),_0x287aad=_0x34d5a6['substr'](_0x3565c4?0xa:0x5),_0x2abae8=_0x287aad['toLowerCase'](),_0xaaa6ce=_0x2abae8['substr'](0x0,0x3)+'span',_0x12ce73='min'+_0x287aad,_0x187140='max'+_0x287aad;if(!_0x4a20d7['isInContent'])continue;if(_0x6afd3d!=_0x4a20d7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4a20d7['isIntersectingWithRange'](_0x7e8bfc))continue;const _0x4196f8=_0x3333c0['hasAttribute'](_0xaaa6ce)?_0x3333c0['getAttribute'](_0xaaa6ce)-0x1:0x0,_0x3aeb0a=this['_getSuggestionCoords'](_0x4a20d7),_0x381ea6=_0x3aeb0a[_0x12ce73],_0x32775b=_0x3aeb0a[_0x187140];_0x381ea6<=_0x1e5081[_0x2abae8]&&_0x1e5081[_0x2abae8]+_0x4196f8<=_0x32775b&&(_0x4a20d7['addRange'](_0x7e8bfc),_0x4d3f0b=!0x0);}return _0x4d3f0b;};_0x3bb17c['model']['document']['registerPostFixer'](_0x301143=>{let _0x534bdd=!0x1;for(const _0xb989ce of _0x3bb17c['model']['document']['differ']['getChanges']())if('insert'==_0xb989ce['type']){if('tableRow'==_0xb989ce['name']){for(const _0x2639ad of _0xb989ce['position']['nodeAfter']['getChildren']())_0x534bdd=_0x534bdd||_0x1ab62c(_0x2639ad,_0x301143);}else'tableCell'==_0xb989ce['name']&&(_0x534bdd=_0x534bdd||_0x1ab62c(_0xb989ce['position']['nodeAfter'],_0x301143));}return _0x534bdd;});}['_getSuggestionCoords'](_0x8e99c1){return this['_getCoordsForCells'](_0x8e99c1['getRanges']()['map'](_0x564f11=>_0x564f11['start']['nodeAfter']));}}function Ne(_0x69dbc4){return Array['from'](new Set(_0x69dbc4)['values']());}class _t extends _0x2eaa3f{static get['requires'](){return[At];}['afterInit'](){const _0x463dc5=this['editor'],_0x112c21=_0x463dc5['model']['document']['selection'],_0x3028db=_0x463dc5['locale'];if(!_0x463dc5['plugins']['has']('TableEditing'))return;const _0x202a0=_0x463dc5['plugins']['get']('TrackChangesEditing'),_0xf723b6=_0x463dc5['plugins']['get']('TableUtils'),_0x1dfdbc=_0x463dc5['plugins']['get'](At);_0x1dfdbc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x202a0['enableCommand']('mergeTableCells',()=>{const _0x3f33b4=_0xf723b6['getSelectionAffectedTableCells'](_0x463dc5['model']['document']['selection']);_0x463dc5['model']['change'](()=>{_0x202a0['markMultiRangeBlockFormat'](_0x3f33b4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x463dc5['commands']['get']('mergeTableCells')['on']('execute',(_0x4fc0a0,_0x3fe6b6)=>{_0x463dc5['commands']['get']('trackChanges')['value']&&(_0x3fe6b6['length']>0x0&&_0x3fe6b6[_0x3fe6b6['length']-0x1]&&_0x3fe6b6[_0x3fe6b6['length']-0x1]['forceDefaultExecution']||_0x202a0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4fc0a0['stop']());},{'priority':'highest'});for(const _0x269e3d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a61f3=_0x463dc5['commands']['get'](_0x269e3d);_0x202a0['enableCommand'](_0x269e3d,()=>{const _0xe0aefd=_0x463dc5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44033=>_0x44033['is']('element','tableCell')),_0x420898=_0x5a61f3['value'];_0x463dc5['model']['change'](()=>{_0x202a0['markMultiRangeBlockFormat']([_0xe0aefd,_0x420898],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5e54f5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x573dd9=_0x463dc5['commands']['get'](_0x5e54f5);_0x202a0['enableCommand'](_0x5e54f5,()=>{const _0x31b5a1=_0xf723b6['getSelectionAffectedTableCells'](_0x463dc5['model']['document']['selection'])[0x0],_0x5980e1=_0x31b5a1['findAncestor']('table'),{column:_0x586053,row:_0x4ddb08}=_0xf723b6['getCellLocation'](_0x31b5a1);let _0x50e096=[];if('horizontally'==_0x573dd9['direction']){const _0x51005e=_0xf723b6['createTableWalker'](_0x5980e1,{'startRow':_0x4ddb08,'endRow':_0x4ddb08,'includeAllSlots':!0x0});_0x50e096=Array['from'](_0x51005e)['map'](_0x4b4f8b=>_0x4b4f8b['cell']);}else{const _0x6709a2=_0xf723b6['createTableWalker'](_0x5980e1,{'column':_0x586053,'includeAllSlots':!0x0});_0x50e096=Array['from'](_0x6709a2)['map'](_0x1eab8c=>_0x1eab8c['cell']);}_0x463dc5['model']['change'](_0x1e351d=>{_0x202a0['markBlockFormat'](_0x1e351d['createRangeOn'](_0x31b5a1),{'commandName':_0x5e54f5,'commandParams':[]},_0x50e096,_0x5e54f5);});});}_0x202a0['descriptionFactory']['registerDescriptionCallback'](_0x15e8df=>{if('formatBlock'!=_0x15e8df['type']&&'formatInline'!=_0x15e8df['type'])return;const {data:_0xf822ee}=_0x15e8df;return _0xf822ee&&'mergeTableCells'==_0xf822ee['commandName']?{'type':'format','content':o(_0x3028db,'*Merge\x20cells*')}:void 0x0;}),_0x202a0['descriptionFactory']['registerDescriptionCallback'](_0x1babcb=>{if('formatBlock'!=_0x1babcb['type']&&'formatInline'!=_0x1babcb['type'])return;const {data:_0x10a814}=_0x1babcb;return _0x10a814?'splitTableCellVertically'==_0x10a814['commandName']?{'type':'format','content':o(_0x3028db,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x10a814['commandName']?{'type':'format','content':o(_0x3028db,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x57ffa7=_0x1dfdbc['_acceptFormatSuggestionCallbackFactory']();for(const _0x407cae of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x202a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x407cae,'accept',_0x57ffa7);for(const _0xe1264 of['splitTableCellVertically','splitTableCellHorizontally'])_0x202a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe1264,'accept',_0x57ffa7);_0x202a0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x34bbff=>{_0x463dc5['model']['change'](_0x2ad7a6=>{const _0x34ba44=Array['from'](_0x112c21['getRanges']())['map'](_0x383f2b=>_0x3ba60d['fromRange'](_0x383f2b));_0x2ad7a6['setSelection'](_0x34bbff),_0x463dc5['commands']['get']('mergeTableCells')['refresh'](),_0x463dc5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x49a658=_0x34ba44['filter'](_0x8289bd=>'$graveyard'!=_0x8289bd['root']['rootName']);_0x49a658['length']>0x0&&_0x2ad7a6['setSelection'](_0x49a658);for(const _0x5ae8ab of _0x34ba44)_0x5ae8ab['detach']();});});for(const _0x44ae31 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5efcde=_0x463dc5['commands']['get'](_0x44ae31);_0x5efcde['on']('set:isEnabled',(_0x67999b,_0x5c34c0,_0x1eb9a2)=>{if(_0x1eb9a2){const _0x2c942c=_0x463dc5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23f1e2=>_0x23f1e2['is']('element','tableCell'));this['_areMergableCells'](_0x5efcde['value'],_0x2c942c)||(_0x67999b['return']=!0x1,_0x67999b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x27ef2d=this['editor']['commands']['get']('mergeTableCells'),_0x3d6541=this['editor']['plugins']['get']('TableUtils');if(!_0x27ef2d['isEnabled'])return!0x1;const _0x542065=_0x3d6541['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1935b5 of _0x542065)for(const _0x49d33f of _0x542065)if(_0x1935b5!=_0x49d33f&&!this['_areMergableCells'](_0x1935b5,_0x49d33f))return!0x1;return!0x0;}['_areMergableCells'](_0x4006c1,_0x3b6902){const _0x4a285b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x438ea0=this['editor']['model']['createRangeOn'](_0x4006c1),_0x5afe6b=this['editor']['model']['createRangeOn'](_0x3b6902),_0x4fddea=new Set(),_0x50b2e2=new Set();for(const _0x536a02 of _0x4a285b['getSuggestions']())if(('insertion'==_0x536a02['type']||'deletion'==_0x536a02['type']||'mergeTableCells'==_0x536a02['subType'])&&_0x536a02['isInContent']){for(const _0xb43e67 of _0x536a02['getRanges']())_0xb43e67['containsRange'](_0x438ea0,!0x0)&&_0x4fddea['add'](_0x536a02['type']+':'+_0x536a02['author']['id']),_0xb43e67['containsRange'](_0x5afe6b,!0x0)&&_0x50b2e2['add'](_0x536a02['type']+':'+_0x536a02['author']['id']);}if(_0x4fddea['size']!=_0x50b2e2['size'])return!0x1;for(const _0x2e2f4b of _0x4fddea)if(!_0x50b2e2['has'](_0x2e2f4b))return!0x1;return!0x0;}}class Ct extends _0x2eaa3f{static get['requires'](){return[At];}['afterInit'](){const _0x23dbf8=this['editor'];if(!_0x23dbf8['plugins']['has']('TableEditing'))return;const _0x3d191b=_0x23dbf8['locale'],_0x555f3e=_0x23dbf8['plugins']['get']('TrackChangesEditing');_0x555f3e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x555f3e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x555f3e['registerBlockAttribute']('headingRows'),_0x555f3e['registerBlockAttribute']('headingColumns'),_0x555f3e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3d191b,'FORMAT_HEADER_ROW')),_0x555f3e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3d191b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe29ecd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2dae40=this['editor']['plugins']['get']('TableUtils'),_0x8e2bb6=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1013e1({showActiveMarker:_0x5f59fa=!0x0,setDataAttribute:_0x5857bb=!0x0}={}){return(_0x5ae0df,_0x264e7f,_0x12880c)=>{const {type:_0x2f7631,id:_0x17af66}=_0xe29ecd['_splitMarkerName'](_0x264e7f['markerName']),_0x40b9ca=_0xe29ecd['getSuggestion'](_0x17af66),_0x2ef5d0=_0x40b9ca['data'];if('formatBlock'!=_0x40b9ca['type']||!_0x2ef5d0||'setTableColumnHeader'!=_0x2ef5d0['commandName'])return;if(_0x264e7f['item'])return void _0x5ae0df['stop']();if(!_0x12880c['consumable']['consume'](_0x264e7f['markerRange'],_0x5ae0df['name']))return;const _0x1f637b=_0x264e7f['markerRange']['start']['nodeAfter'],_0x16ede3=_0x264e7f['markerRange']['end']['nodeBefore'],_0x49b664=_0x1f637b['parent']['parent'],{column:_0x2cd8a}=_0x2dae40['getCellLocation'](_0x1f637b),{column:_0x96c8f0}=_0x2dae40['getCellLocation'](_0x16ede3);for(let _0x28f6a8=_0x2cd8a;_0x28f6a8<=_0x96c8f0;_0x28f6a8++){const _0x5ddca5=_0x2dae40['createTableWalker'](_0x49b664,{'column':_0x28f6a8,'includeAllSlots':!0x1});for(const _0x57301e of _0x5ddca5){const _0x306b1d=_0x57301e['cell'],_0x20a4ec=_0x12880c['mapper']['toViewElement'](_0x306b1d);_0x12880c['writer']['addClass']('ck-suggestion-marker-'+_0x2f7631,_0x20a4ec),_0x5857bb&&_0x12880c['writer']['setAttribute']('data-suggestion',_0x17af66,_0x20a4ec),_0x12880c['mapper']['bindElementToMarker'](_0x20a4ec,_0x264e7f['markerName']),_0x5f59fa&&(_0xe29ecd['activeMarkers']['includes'](_0x264e7f['markerName'])?_0x12880c['writer']['addClass']('ck-suggestion-marker--active',_0x20a4ec):_0x12880c['writer']['removeClass']('ck-suggestion-marker--active',_0x20a4ec));}}};}_0xe29ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8e2bb6),_0xe29ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8e2bb6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1013e1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1426a5,_0x166ba9,_0x289d81)=>{_0x289d81['options']['showSuggestionHighlights']&&_0x1013e1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1426a5,_0x166ba9,_0x289d81);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ab7cf,_0x2c5eec,_0x1b5a45)=>{const {type:_0x1b17a2,id:_0x10d1bf}=_0xe29ecd['_splitMarkerName'](_0x2c5eec['markerName']),_0x1593e3=_0xe29ecd['getSuggestion'](_0x10d1bf),_0x5707d3=_0x1593e3['data'];if('formatBlock'!=_0x1593e3['type']||!_0x5707d3||'setTableColumnHeader'!=_0x5707d3['commandName'])return;const _0xef4293=_0x1b5a45['mapper']['markerNameToElements'](_0x2c5eec['markerName']);if(_0xef4293){for(const _0x28cf61 of _0xef4293)_0x1b5a45['writer']['removeClass']('ck-suggestion-marker-'+_0x1b17a2,_0x28cf61),_0x1b5a45['writer']['removeClass']('ck-suggestion-marker--active',_0x28cf61),_0x1b5a45['writer']['removeAttribute']('data-suggestion',_0x28cf61),_0x1b5a45['mapper']['unbindElementFromMarkerName'](_0x28cf61,_0x2c5eec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ec84=this['editor'],_0x3bd0ae=_0x58ec84['locale'];function _0x3c8d7f(_0x335de3){return{'type':'format','content':o(_0x3bd0ae,'*Format:*\x20%0',_0x335de3)};}_0x58ec84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3064df=>{if('formatBlock'!=_0x3064df['type'])return;const {data:_0x5d784d}=_0x3064df;if(_0x5d784d){if('setTableRowHeader'==_0x5d784d['commandName']){const _0x2dc598=_0x5d784d['commandParams'][0x0]['forceValue'];return _0x3c8d7f(o(_0x3bd0ae,_0x2dc598?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5d784d['commandName']){const _0x542b6d=_0x5d784d['commandParams'][0x0]['forceValue'];return _0x3c8d7f(o(_0x3bd0ae,_0x542b6d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x2eaa3f{['afterInit'](){const _0x1cfb43=this['editor'],_0x4ac35f=_0x1cfb43['locale'],_0x10457e=_0x1cfb43['plugins']['get']('TrackChangesEditing');function _0x19af7b(_0x5cd407){return{'type':'format','content':''+o(_0x4ac35f,'*Set\x20table\x20type:*\x20%0',_0x5cd407)};}_0x1cfb43['plugins']['has']('TableLayout')&&(_0x10457e['enableCommand']('insertTableLayout'),_0x10457e['enableDefaultAttributesIntegration']('tableType'),_0x10457e['registerBlockAttribute']('tableType'),_0x10457e['descriptionFactory']['registerElementLabel'](_0x1ffe57=>_0x1ffe57['is']('element','table')&&'layout'===_0x1ffe57['getAttribute']('tableType'),_0x25fabf=>o(_0x4ac35f,'ELEMENT_LAYOUT_TABLE',_0x25fabf)),_0x10457e['descriptionFactory']['registerDescriptionCallback'](_0x30ebab=>{const {data:_0x48aeb0}=_0x30ebab;if(_0x48aeb0&&'tableType'==_0x48aeb0['key'])switch(_0x48aeb0['newValue']){case'layout':return _0x19af7b(o(_0x4ac35f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x19af7b(o(_0x4ac35f,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x1c304c=>[_0x1c304c,null]));class Nt extends _0x2eaa3f{static get['requires'](){return[At];}['afterInit'](){const _0x43da50=this['editor'];if(!_0x43da50['plugins']['has']('TableClipboard'))return;const _0x4c17bc=_0x43da50['plugins']['get']('TrackChangesEditing'),_0xfb2b04=_0x43da50['plugins']['get']('TableUtils'),_0x2efe21=_0x43da50['plugins']['get'](At),_0x1fc0a6=_0x43da50['plugins']['get']('TableClipboard'),_0xb00f71=_0x43da50['plugins']['get']('TableSelection'),_0x5aeef4=_0x43da50['plugins']['get'](_0x81b91f);_0x2efe21['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43da50['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43da50['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3de887=null,_0x565c04=!0x1;_0x5aeef4['on']('contentInsertion',(_0x327814,_0x3deddf)=>{_0x565c04='paste'===_0x3deddf['method'];}),_0x43da50['model']['on']('insertContent',(_0x43fadc,_0x2acaf0)=>{if(!_0x565c04&&null===_0xb00f71['getSelectedTableCells']())return;const [_0x1efbaf,_0x2a9447]=_0x2acaf0,_0x26ea9c=_0x2acaf0[_0x2acaf0['length']-0x1];_0x26ea9c&&_0x26ea9c['forceDefaultExecution']||_0x4c17bc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xa9dfc0,_0x1500cc,_0x3eb83c,_0x2eced7,_0x963957){if(_0x1500cc&&!_0x1500cc['is']('documentSelection'))return!0x1;const _0x386bf0=_0x963957['getTableIfOnlyTableInContent'](_0xa9dfc0,_0x3eb83c);if(!_0x386bf0||!Ue(_0x386bf0,void 0x0,_0x2eced7))return!0x1;const _0xd98c0f=_0x2eced7['getSelectionAffectedTableCells'](_0x3eb83c['document']['selection']);if(!_0xd98c0f['length'])return!0x1;const _0x2a7547=_0xd98c0f[0x0]['findAncestor']('table'),_0x292ba6=_0x2eced7['getRowIndexes'](_0xd98c0f),_0x4d353e=_0x2eced7['getColumnIndexes'](_0xd98c0f),_0x4777cf={'startRow':_0x292ba6['first'],'endRow':_0x292ba6['last'],'startColumn':_0x4d353e['first'],'endColumn':_0x4d353e['last']};return 0x1==_0xd98c0f['length']&&(_0x4777cf['endRow']+=_0x2eced7['getRows'](_0x386bf0)-0x1,_0x4777cf['endColumn']+=_0x2eced7['getColumns'](_0x386bf0)-0x1),Ue(_0x2a7547,_0x4777cf,_0x2eced7);}(_0x1efbaf,_0x2a9447,_0x43da50['model'],_0xfb2b04,_0x1fc0a6)&&(_0x43fadc['stop'](),_0x3de887={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43da50['model']['change'](()=>{_0x43da50['model']['insertContent'](_0x2acaf0[0x0],_0x2acaf0[0x1],_0x2acaf0[0x2],{'forceDefaultExecution':!0x0});const _0x115f78=_0x191a50(),{rowInsertionRanges:_0x419fc9,columnInsertionRanges:_0x502ab0,insertionRanges:_0x2e0cf9,deletionRanges:_0x26a9e1,cells:_0x2db76f}=_0x3de887;_0x419fc9['length']&&_0x4c17bc['markMultiRangeInsertion'](_0x419fc9,'tablePasteRow',{'tablePasteChainId':_0x115f78}),_0x502ab0['length']&&_0x4c17bc['markMultiRangeInsertion'](_0x502ab0,'tablePasteColumn',{'tablePasteChainId':_0x115f78}),_0x2e0cf9['length']&&(_0x4c17bc['markMultiRangeInsertion'](_0x2e0cf9,'tablePaste',{'tablePasteChainId':_0x115f78,'skipNestingCheck':!0x0}),_0x2e0cf9['forEach'](_0x2270e9=>_0x2270e9['detach']?.())),_0x26a9e1['length']&&(_0x4c17bc['markMultiRangeDeletion'](_0x26a9e1,'tablePaste',{'tablePasteChainId':_0x115f78,'skipNestingCheck':!0x0}),_0x26a9e1['forEach'](_0x2e9c3=>_0x2e9c3['detach']?.()));const _0x38b60b=_0x4c17bc['markMultiRangeBlockFormat'](_0x2db76f['map'](({element:_0x3a3edc})=>_0x3a3edc),{'formatGroupId':_0x191a50()},[],'tablePasteCell',{'tablePasteChainId':_0x115f78});if(_0x38b60b){const _0x1217ab=_0x38b60b['getMarkers'](),_0x3c9cff=[];for(const {element:_0x50ee68,attributes:_0x2814f3}of _0x2db76f){if(!_0x2814f3)continue;const _0x16e6af=_0x43da50['model']['createRangeOn'](_0x50ee68),_0x49d09d=_0x1217ab['find'](_0x5671d0=>_0x5671d0['getRange']()['isEqual'](_0x16e6af));_0x49d09d&&_0x3c9cff['push']([_0x49d09d['name'],_0x2814f3]);}_0x3c9cff['length']&&_0x38b60b['setAttribute']('markerAttributes',Object['fromEntries'](_0x3c9cff));}_0x3de887=null;}));},{'priority':_0x4d0a93['high']+0xa}),_0x5aeef4['on']('contentInsertion',()=>{_0x565c04=!0x1;},{'priority':'lowest'}),_0x43da50['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1a89aa,_0x333496)=>{const [_0xbec335,_0x475266,,_0x2b25ba]=_0x333496;if(!_0x3de887)return;_0x1a89aa['stop']();const _0x286540=_0xbec335['cell'],_0x2d513e=_0x475266,_0x107a77=Oe(_0x286540),_0x2413ee=Oe(_0x2d513e);_0x1a89aa['return']=_0x286540;let _0xaeb3a6=null,_0x31cb92=null;if(_0x2413ee||_0x107a77){if(_0x107a77&&!_0x2413ee){_0x2b25ba['remove'](_0x286540['getChild'](0x0));for(const _0x507b82 of Array['from'](_0x2d513e['getChildren']()))_0x2b25ba['insert'](_0x507b82,_0x286540,'end');const _0x63de98=_0x3de887['rowInsertionIndexes']['includes'](_0xbec335['row']),_0x105608=_0x3de887['columnInsertionIndexes']['includes'](_0xbec335['column']);_0x63de98||_0x105608||(_0xaeb3a6=_0x3ba60d['fromRange'](_0x2b25ba['createRangeIn'](_0x286540)));}else _0x2413ee&&!_0x107a77&&(_0x31cb92=_0x2b25ba['createRangeIn'](_0x286540));}else{const _0x1191ac=_0x2b25ba['createElement']('tableCellSuggestion'),_0x1a3fc2=_0x2b25ba['createElement']('tableCellSuggestion');_0x2b25ba['wrap'](_0x2b25ba['createRangeIn'](_0x286540),_0x1a3fc2),_0x2b25ba['insert'](_0x1191ac,_0x286540,0x0);for(const _0x53e6af of Array['from'](_0x2d513e['getChildren']()))_0x2b25ba['insert'](_0x53e6af,_0x1191ac,'end');_0xaeb3a6=_0x3ba60d['fromRange'](_0x2b25ba['createRangeOn'](_0x1191ac)),_0x31cb92=_0x3ba60d['fromRange'](_0x2b25ba['createRangeOn'](_0x1a3fc2));}const _0x1f7c7b=Array['from'](_0x2d513e['getAttributes']())['filter'](([_0x5794ba])=>Be['includes'](_0x5794ba));_0x3de887['cells']['push']({'element':_0x286540,'attributes':_0x1f7c7b['length']?Object['fromEntries'](_0x1f7c7b):null}),_0xaeb3a6&&_0x3de887['insertionRanges']['push'](_0xaeb3a6),_0x31cb92&&_0x3de887['deletionRanges']['push'](_0x31cb92);},{'priority':'high'}),_0xfb2b04['on']('insertColumns',(_0x14965a,_0x29f11e)=>{const [_0x268d06,_0x48dae4={}]=_0x29f11e;if(!_0x3de887)return;const _0x19c966=_0x48dae4['at']||0x0,_0x4d902e=_0x48dae4['columns']||0x1;_0x3de887['columnInsertionIndexes']=new Array(_0x4d902e)['fill'](_0x19c966)['map']((_0x5eb425,_0x4d02bf)=>_0x5eb425+_0x4d02bf);for(const {cell:_0x3945eb}of _0xfb2b04['createTableWalker'](_0x268d06,{'startColumn':_0x19c966,'endColumn':_0x19c966+_0x4d902e-0x1}))_0x3de887['columnInsertionRanges']['push'](_0x43da50['model']['createRangeOn'](_0x3945eb));},{'priority':'low'}),_0xfb2b04['on']('insertRows',(_0x4dd1d1,_0x1ad7a0)=>{const [_0x3df890,_0x105dd5={}]=_0x1ad7a0;if(!_0x3de887)return;const _0x15c5f3=_0x105dd5['at']||0x0,_0x31d70a=_0x105dd5['rows']||0x1;_0x3de887['rowInsertionIndexes']=new Array(_0x31d70a)['fill'](_0x15c5f3)['map']((_0x570dc4,_0x29e9b4)=>_0x570dc4+_0x29e9b4);for(const {cell:_0x5cd5ce}of _0xfb2b04['createTableWalker'](_0x3df890,{'startRow':_0x15c5f3,'endRow':_0x15c5f3+_0x31d70a-0x1}))_0x3de887['rowInsertionRanges']['push'](_0x43da50['model']['createRangeOn'](_0x5cd5ce));},{'priority':'low'}),_0x4c17bc['descriptionFactory']['registerDescriptionCallback'](_0x33ed20=>{if(_0x33ed20['subType']&&_0x33ed20['subType']['startsWith']('tablePaste'))return _0x33ed20['previous']?{}:{'type':'insertion','content':o(_0x43da50['locale'],'*Replace\x20table\x20cells*')};});const _0x3be878=()=>!0x1;for(const _0x33ce7b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c17bc['_suggestionFactory']['registerCustomCallback']('insertion',_0x33ce7b,'join',_0x3be878),_0x4c17bc['_suggestionFactory']['registerCustomCallback']('deletion',_0x33ce7b,'join',_0x3be878),_0x4c17bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33ce7b,'join',_0x3be878);_0x4c17bc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3be878),_0x4c17bc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58f037,_0x58a3e6,_0x2c579b)=>{const _0x1a3337=_0x58f037['map'](_0x4dbf99=>_0x4dbf99['getContainedElement']())['filter'](_0x53c10b=>_0x53c10b),_0x381f07=new Map(_0x1a3337['map'](_0x42b51b=>[_0x42b51b,null]));if(_0x3de887){for(const {element:_0xb9a155,attributes:_0x110068}of _0x3de887['cells'])_0x110068&&_0x381f07['set'](_0xb9a155,_0x110068);}else{if(_0x2c579b&&_0x2c579b['markerAttributes'])for(const [_0xb1e4f2,_0xdba1fe]of Object['entries'](_0x2c579b['markerAttributes'])){const _0x1cb613=_0x43da50['model']['markers']['get'](_0xb1e4f2),_0x50884a=_0x1cb613?_0x1cb613['getRange']()['getContainedElement']():null;_0x50884a&&_0x381f07['set'](_0x50884a,_0xdba1fe);}}_0x43da50['model']['change'](_0x1d0564=>{for(const [_0x5dd4e8,_0x45f830]of _0x381f07)_0x1d0564['setAttributes']({...xe,..._0x45f830},_0x5dd4e8);});});const _0x4ec59=(_0x416968,_0x41c13e)=>{_0x4c17bc['_suggestionFactory']['registerCustomCallback'](_0x416968,'tablePaste',_0x41c13e,(_0x230f3c,_0x225da6,_0x14d9db)=>{_0x43da50['model']['change'](_0x554fb8=>{const _0x2b5721=[];for(const _0xd68727 of _0x230f3c){const _0x12235b=_0xd68727['start']['nodeAfter'];_0x12235b['is']('element','tableCellSuggestion')&&_0x2b5721['push'](_0x12235b);}_0x4c17bc['_suggestionFactory']['getSuggestionCallback'](_0x416968,null,_0x41c13e)(_0x230f3c,_0x225da6,_0x14d9db);for(const _0x3801b7 of _0x2b5721)'$graveyard'!=_0x3801b7['root']['rootName']&&_0x554fb8['unwrap'](_0x3801b7);});});};_0x4ec59('insertion','accept'),_0x4ec59('insertion','discard'),_0x4ec59('deletion','accept'),_0x4ec59('deletion','discard'),_0x4c17bc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x51daf0=>{const _0x1ce5f3=_0x51daf0['map'](_0x4d64cb=>_0x4d64cb['getContainedElement']()),_0x1ccdd8=_0x1ce5f3[0x0]['findAncestor']('table'),{minRow:_0x3a030b,maxRow:_0x47b03a}=_0x2efe21['_getCoordsForCells'](_0x1ce5f3);_0xfb2b04['removeRows'](_0x1ccdd8,{'at':_0x3a030b,'rows':_0x47b03a-_0x3a030b+0x1});}),_0x4c17bc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x390228=>{const _0x5bc4fc=_0x390228['map'](_0x505e01=>_0x505e01['getContainedElement']()),_0x26acbb=_0x5bc4fc[0x0]['findAncestor']('table'),{minColumn:_0x57c38a,maxColumn:_0x5bfdb6}=_0x2efe21['_getCoordsForCells'](_0x5bc4fc);_0xfb2b04['removeColumns'](_0x26acbb,{'at':_0x57c38a,'columns':_0x5bfdb6-_0x57c38a+0x1});});const _0x31e42a=(_0x42e2e6,_0x28ae30)=>{if(!_0x28ae30['subType']||!_0x28ae30['subType']['startsWith']('tablePaste'))return;const _0x594a44=_0x28ae30['attributes']['tablePasteChainId'],_0x5d3ed5=_0x4c17bc['getSuggestions']()['filter'](_0x2ab4ad=>_0x2ab4ad['isInContent']&&_0x2ab4ad['attributes']&&_0x2ab4ad['attributes']['tablePasteChainId']==_0x594a44);_0x5d3ed5['length']&&_0x28ae30['getAllAdjacentSuggestions']()['length']!=_0x5d3ed5['length']&&_0x5d3ed5['reduce']((_0x360db2,_0xc5fdd3)=>(_0x360db2['next']=_0xc5fdd3,_0xc5fdd3['previous']=_0x360db2,_0xc5fdd3));};function _0x5786d6(_0x24d09d,_0xa7e75e=!0x0){const {id:_0x33aea1,authorId:_0x1a7401}=_0x4c17bc['_splitMarkerName'](_0x24d09d['markerName']),_0x7668b3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1b18fd=_0x4c17bc['activeMarkers']['includes'](_0x24d09d['markerName']);return _0x1b18fd&&_0x7668b3['push']('ck-suggestion-marker--active'),{'classes':_0x7668b3,'attributes':{'data-suggestion':_0x33aea1,'data-author-id':_0x1a7401},'priority':_0x1b18fd&&_0xa7e75e?0xbc2:0xbb8};}_0x4c17bc['on']('suggestionLoaded',_0x31e42a,{'priority':'high'}),_0x4c17bc['on']('suggestionUnloaded',_0x31e42a,{'priority':'high'}),_0x43da50['model']['document']['registerPostFixer'](()=>{let _0x1e7aa3=!0x1;const _0x2363e1=Array['from'](_0x43da50['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x371448,data:_0x1ee22d}of _0x2363e1){const {group:_0x4a32a6,type:_0x8b2a48,id:_0x542001}=_0x4c17bc['_splitMarkerName'](_0x371448);if('suggestion'!=_0x4a32a6||'deletion'!=_0x8b2a48||_0x1ee22d['oldRange'])continue;if(!_0x4c17bc['hasSuggestion'](_0x542001))continue;const _0x4fd98f=_0x4c17bc['getSuggestion'](_0x542001)['getRanges'](),_0x58b4cf=_0x43da50['plugins']['get']('Users')['me'];for(const _0x2c22b3 of _0x4c17bc['getSuggestions']()){if(!_0x2c22b3['isInContent']||_0x2c22b3['author']!=_0x58b4cf)continue;if('formatBlock'!=_0x2c22b3['type']||'tablePasteCell'!=_0x2c22b3['subType'])continue;if(_0x2c22b3['getRanges']()['every'](_0x1ed2fa=>_0x4fd98f['some'](_0x2457a6=>_0x2457a6['containsRange'](_0x1ed2fa,!0x0)))){for(const _0x3690bb of _0x2c22b3['getAllAdjacentSuggestions']())_0x3690bb['isInContent']&&(_0x3690bb['discard'](),_0x1e7aa3=!0x0);}}}return _0x1e7aa3;}),_0x43da50['model']['document']['registerPostFixer'](_0x2cedb4=>{const _0x52c020=_0x43da50['commands']['get']('redo');if(!_0x52c020||!_0x52c020['_createdBatches']['has'](_0x2cedb4['batch']))return!0x1;let _0x3193c7=!0x1;const _0x2f77eb=_0x43da50['plugins']['get']('Users')['me'],_0xd7286f=_0x43da50['model']['document']['differ']['getChanges'](),_0x50d852=Array['from'](_0x43da50['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xcf4b50,data:_0x1f0bec})=>{const {group:_0x20aaed,subType:_0x238c55,authorId:_0x51ad6e}=_0x4c17bc['_splitMarkerName'](_0xcf4b50);return'suggestion'==_0x20aaed&&'tablePaste'==_0x238c55&&_0x51ad6e==_0x2f77eb['id']&&!_0x1f0bec['oldRange'];});for(const _0x47d7a4 of _0xd7286f){if('insert'!=_0x47d7a4['type']||'tableCellSuggestion'!=_0x47d7a4['name']||0x1!=_0x47d7a4['length'])continue;const _0x2629fe=_0x2cedb4['createRange'](_0x47d7a4['position'],_0x47d7a4['position']['getShiftedBy'](0x1));if(!_0x50d852['find'](({data:_0x27029f})=>_0x27029f['newRange']['isEqual'](_0x2629fe))){for(const {name:_0x11d308,data:_0x535e1a}of _0x50d852)if(_0x2629fe['containsRange'](_0x535e1a['newRange'])){_0x2cedb4['updateMarker'](_0x11d308,{'range':_0x2629fe}),_0x3193c7=!0x0;break;}}}return _0x3193c7;}),_0x43da50['model']['document']['registerPostFixer'](_0xdfbfc7=>{let _0x54ac50=!0x1;const _0x135c91=_0x43da50['plugins']['get']('Users')['me'],_0x289d0b=_0x4c17bc['getSuggestions']()['filter'](_0x547648=>_0x547648['isInContent']&&_0x547648['author']==_0x135c91),_0x153c42=new Set(),_0x59d52e=new Set();for(const _0x52266b of _0x289d0b)if('tablePaste'==_0x52266b['subType'])for(const _0x5ea658 of _0x52266b['getMarkers']()){const _0x33b0dd=_0x5ea658['getRange']()['getContainedElement']();if(_0x33b0dd){if(_0x33b0dd['is']('element','tableCellSuggestion')&&Oe(_0x33b0dd)){_0x52266b['removeMarker'](_0x5ea658['name']),_0x153c42['add'](_0x33b0dd),_0x54ac50=!0x0;const _0x2d007a=_0x33b0dd['nextSibling'],_0x2a7e75=_0x33b0dd['previousSibling'],_0x59c170=_0x2d007a&&_0x2d007a['is']('element','tableCellSuggestion'),_0x390862=_0x2a7e75&&_0x2a7e75['is']('element','tableCellSuggestion');_0x59c170&&!_0x153c42['has'](_0x2d007a)&&_0x59d52e['add'](_0x2d007a),_0x390862&&!_0x153c42['has'](_0x2a7e75)&&_0x59d52e['add'](_0x2a7e75);}else _0x33b0dd['is']('element','paragraph')&&_0x33b0dd['isEmpty']&&(_0x52266b['removeMarker'](_0x5ea658['name']),_0x54ac50=!0x0);}}else{if('tablePasteCell'==_0x52266b['subType']){if(!_0x52266b['attributes']||!_0x52266b['attributes']['tablePasteChainId'])continue;const _0xad9c9f=_0x52266b['attributes']['markerAttributes'];if(_0xad9c9f&&Object['keys'](_0xad9c9f)['length'])continue;const _0x1ad6a3=_0x52266b['attributes']['tablePasteChainId'];let _0x3f1250=!0x0,_0x18d654=!0x0;for(const _0x36989a of _0x289d0b)if(_0x36989a['subType']&&_0x36989a['subType']['startsWith']('tablePaste')){if(!_0x36989a['attributes']['tablePasteChainId']){_0x18d654=!0x1;break;}if(_0x36989a['id']!=_0x52266b['id']&&_0x36989a['attributes']['tablePasteChainId']==_0x1ad6a3){_0x3f1250=!0x1;break;}}_0x18d654&&_0x3f1250&&(_0x52266b['removeMarkers'](),_0x54ac50=!0x0);}}for(const _0x24a075 of _0x153c42)_0xdfbfc7['remove'](_0x24a075);for(const _0x503702 of _0x59d52e)_0xdfbfc7['unwrap'](_0x503702);return _0x54ac50;}),_0x43da50['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a0332=>_0x5786d6(_0x5a0332),'converterPriority':'high'}),_0x43da50['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c860a,_0x3c7a14)=>_0x3c7a14['options']['showSuggestionHighlights']?_0x5786d6(_0x4c860a,!0x1):null,'converterPriority':'high'});const _0x22292c=_0x43da50['editing']['view'];this['listenTo'](_0x22292c['document'],'clipboardOutput',(_0x16de69,_0x6bc83b)=>{const _0x3c950b=[];for(const _0x2c693d of _0x22292c['createRangeIn'](_0x6bc83b['content'])['getItems']())_0x2c693d['is']('element','suggestion-td')&&_0x3c950b['push'](_0x2c693d);_0x22292c['change'](_0x43d1cc=>{for(const _0x4c2a37 of _0x3c950b)_0x43d1cc['move'](_0x43d1cc['createRangeIn'](_0x4c2a37),_0x43d1cc['createPositionBefore'](_0x4c2a37)),_0x43d1cc['remove'](_0x4c2a37);});});}}function Oe(_0x2f4d9c){if(_0x2f4d9c['isEmpty'])return!0x0;const _0x3e539d=_0x2f4d9c['getChild'](0x0);return _0x3e539d['is']('element','paragraph')&&_0x3e539d['isEmpty'];}function Ue(_0x492d11,_0x52bc78={},_0x582404){for(const {isAnchor:_0x3af640,cellHeight:_0x4611e9,cellWidth:_0x3d254c}of _0x582404['createTableWalker'](_0x492d11,{'includeAllSlots':!0x0,..._0x52bc78}))if(!_0x3af640||0x1!=_0x4611e9||0x1!=_0x3d254c)return!0x1;return!0x0;}class Dt extends _0x2eaa3f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2639a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2639a2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2639a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2639a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2639a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2639a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2639a2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x19f580,_0x8863aa){const _0x4d20ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d4de=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x25da19=_0x8863aa['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34808d=_0x16d4de['getColumnGroupElement'](_0x25da19);let _0x5b9b26=_0x34808d?_0x16d4de['getTableColumnsWidths'](_0x34808d):null,_0x15fc93=_0x25da19['getAttribute']('tableWidth')||null;const _0x146d7f=_0x8863aa['tableWidth']||_0x15fc93,_0x55363d=_0x8863aa['columnWidths']||_0x5b9b26,_0x593c1a=this['editor']['plugins']['get']('Users')['me'];for(const _0x22d040 of _0x4d20ee['getSuggestions']()){const _0x9192dd=_0x22d040['getContainedElement']();if('resizeTable'===_0x22d040['subType']&&_0x9192dd===_0x25da19){_0x22d040['author']!==_0x593c1a&&_0x22d040['discard']();const _0x5dc388=_0x22d040['data']['commandParams'];_0x15fc93=_0x5dc388[0x0]['tableWidth'],_0x5b9b26=_0x5dc388[0x0]['columnWidths'];break;}}_0x19f580({'table':_0x25da19,'tableWidth':_0x146d7f,'columnWidths':_0x55363d}),_0x4d20ee['markBlockFormat'](_0x25da19,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15fc93,'columnWidths':_0x5b9b26}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x37e877){if('formatBlock'!=_0x37e877['type']&&'formatInline'!=_0x37e877['type'])return;const {data:_0xa3e2c6}=_0x37e877;if(_0xa3e2c6&&'resizeTable'===_0xa3e2c6['formatGroupId']){const _0x21e4d7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21e4d7)};}}}class $t extends _0x2eaa3f{['afterInit'](){const _0x4e27d3=this['editor'];_0x4e27d3['plugins']['has']('Template')&&_0x4e27d3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2eaa3f{['afterInit'](){const _0x411485=this['editor'];if(!_0x411485['commands']['get']('insertTableOfContents'))return;_0x411485['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x17d46c=_0x411485['plugins']['get']('TrackChangesEditing'),_0x3c9ca3=_0x411485['locale'];_0x17d46c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x358111=>o(_0x3c9ca3,'ELEMENT_TABLE_OF_CONTENTS',_0x358111));}}class Bt extends _0x2eaa3f{['afterInit'](){const _0x40ebd5=this['editor'];if(!_0x40ebd5['plugins']['has']('Title'))return;const _0x493fd9=_0x40ebd5['plugins']['get']('TrackChangesEditing');_0x493fd9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x40ebd5['locale'],'ELEMENT_TITLE')),_0x40ebd5['model']['document']['registerPostFixer'](_0x398eec=>{let _0x509b7b=!0x1;const _0x4b0fad=Array['from'](_0x40ebd5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa52d9d,data:_0x146f4e}of _0x4b0fad){const {group:_0x31121b}=_0x493fd9['_splitMarkerName'](_0xa52d9d);if('suggestion'!==_0x31121b||!_0x146f4e['newRange'])continue;const _0x5a4d3b=_0x146f4e['newRange'],_0x7eae2=_0x5a4d3b['end']['nodeBefore'];if(!_0x7eae2||!_0x7eae2['is']('element','title-content'))continue;if(!_0x5a4d3b['start']['isTouching'](_0x5a4d3b['end']))continue;const _0x428577=_0x40ebd5['model']['schema']['getNearestSelectionRange'](_0x5a4d3b['end'],'forward');if(_0x428577&&_0x428577['isCollapsed']){const _0x66f20e=_0x398eec['createRange'](_0x5a4d3b['start'],_0x428577['start']);_0x66f20e['isEqual'](_0x5a4d3b)||(_0x398eec['updateMarker'](_0xa52d9d,{'range':_0x66f20e}),_0x509b7b=!0x0);}_0x509b7b||(_0x398eec['removeMarker'](_0xa52d9d),_0x509b7b=!0x0);}return _0x509b7b;});}}class Tt extends _0x2eaa3f{['afterInit'](){const _0x57514e=this['editor'],_0xa3ef69=_0x57514e['plugins']['get']('TrackChangesEditing');_0x57514e['plugins']['has']('Uploadcare')&&(_0xa3ef69['enableCommand']('uploadcare'),_0x57514e['plugins']['has']('UploadcareImageEdit')&&(_0xa3ef69['enableCommand']('uploadcareImageEdit'),_0xa3ef69['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xa3ef69['registerBlockAttribute']('uploadcareImageId'),_0xa3ef69['descriptionFactory']['registerDescriptionCallback'](_0x56b813=>{if('attribute'!=_0x56b813['type'])return;const {data:_0xfd5b43}=_0x56b813;return _0xfd5b43&&'uploadcareImageId'==_0xfd5b43['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2eaa3f{['afterInit'](){const _0x3b9c0c=this['editor'],_0x58369d=_0x3b9c0c['plugins']['get']('TrackChangesEditing');_0x3b9c0c['plugins']['has']('UndoEditing')&&(_0x58369d['enableCommand']('undo'),_0x58369d['enableCommand']('redo'));}}class Ot extends _0x2eaa3f{static get['requires'](){return[At];}['afterInit'](){const _0x5bd735=this['editor'];if(!_0x5bd735['plugins']['has']('TableCaptionEditing'))return;_0x5bd735['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x2eaa3f{['tableProperties'];['tableCellProperties'];constructor(_0x36d898){super(_0x36d898),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 _0x5b4982=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x12a751 of this['tableProperties'])_0x5b4982['enableCommand'](_0x12a751,(_0x39f4cc,_0x2a7aa1)=>{const _0x191de0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x12a751,[_0x191de0],this['tableProperties'],'tableProperties',_0x39f4cc,_0x2a7aa1);});_0x5b4982['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5b4982['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b4982['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x374b77,_0x1dd5b7)=>this['handleDiscardAction'](this['tableProperties'],_0x374b77,_0x1dd5b7)),_0x5b4982['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4d04d8 of this['tableCellProperties'])_0x5b4982['enableCommand'](_0x4d04d8,(_0x42ae82,_0x587dba)=>{const _0x41557b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4d04d8,_0x41557b,this['tableCellProperties'],'tableCellProperties',_0x42ae82,_0x587dba);});_0x5b4982['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5b4982['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b4982['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x183761,_0xd64f4c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x183761,_0xd64f4c)),_0x5b4982['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5b4982['descriptionFactory']['registerDescriptionCallback'](_0x10dbfa=>this['handleSuggestionDescription'](_0x10dbfa)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x474bb4,_0x7f38e4,_0x1a38ec,_0x4e1270,_0x28bb08,_0x26f4a5){const _0x5df7e7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x26f4a5['batch'],()=>{for(const _0xd4872b of _0x7f38e4){if(this['_getSuggestion'](_0xd4872b,_0x4e1270))_0x28bb08(_0x26f4a5);else{const _0x4900b9={};for(const _0x29db5f of _0x1a38ec){const _0xd6833d=_0xd4872b['getAttribute'](_0x29db5f);void 0x0!==_0xd6833d&&(_0x4900b9[_0x29db5f]=_0xd6833d);}_0x28bb08(_0x26f4a5),_0x5df7e7['markBlockFormat'](_0xd4872b,{'commandParams':[_0x4900b9]},[],_0x4e1270);}}});}['handleDiscardAction'](_0x2eb08a,_0xe68f33,_0x5da66e){const _0x57cdb8=_0xe68f33[0x0]['start']['nodeAfter'],_0x28b84d=_0x5da66e['commandParams'][0x0];this['editor']['model']['change'](_0x2c2fb7=>{for(const _0x5bcae6 of _0x2eb08a)void 0x0!==_0x28b84d[_0x5bcae6]?_0x2c2fb7['setAttribute'](_0x5bcae6,_0x28b84d[_0x5bcae6],_0x57cdb8):_0x2c2fb7['removeAttribute'](_0x5bcae6,_0x57cdb8);});}['handleSuggestionDescription'](_0x29624a){if(_0x29624a['data'])switch(_0x29624a['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'](_0x542fd5,_0x261545){const _0x559e49=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38f6ad of _0x559e49['getSuggestions']({'skipNotAttached':!0x0})){const _0x803fbc=_0x38f6ad['getContainedElement']();if(_0x38f6ad['subType']===_0x261545&&_0x803fbc===_0x542fd5)return _0x38f6ad;}return null;}['_registerTablePropertiesAttributes'](){const _0x44813d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x190f1a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3c3173 of _0x190f1a){const _0x101301=_0x3c3173['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x44813d['registerBlockAttribute'](_0x3c3173),_0x44813d['descriptionFactory']['registerAttributeLabel'](_0x3c3173,o(this['editor']['locale'],'FORMAT_'+_0x101301));}}}class Rt extends _0x2eaa3f{['afterInit'](){const _0x15110c=this['editor'];if(!_0x15110c['plugins']['has']('LineHeight'))return;const _0x4c90f5=_0x15110c['plugins']['get']('TrackChangesEditing'),_0x15c60d=_0x15110c['locale'];_0x4c90f5['enableDefaultAttributesIntegration']('lineHeight'),_0x4c90f5['registerBlockAttribute']('lineHeight'),_0x4c90f5['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x15c60d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2eaa3f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1ad4d7,_0x2c2606,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c0e5e){super(_0x3c0e5e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x254f73,_0x50bb0f,_0x171af8,_0x3e1db6)=>{this['_model']['change'](()=>{for(const _0x1879cf of[..._0x3e1db6,..._0x171af8])this['_model']['markers']['has'](_0x1879cf)&&_0x3c0e5e['editing']['reconvertMarker'](_0x1879cf);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3c0e5e['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(),_0x3c0e5e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3c0e5e['config']['get']('trackChanges.trackFormatChanges'),_0x3c0e5e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3c0e5e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x3c0e5e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4fc883=this['editor'],_0x45922c=(_0x3050ef,_0x4b99ab)=>{if('attribute'!=_0x3050ef)return'ck-suggestion-marker-'+_0x3050ef;const _0x39bbfa=_0x4b99ab['split']('|')[0x0];return this['_isBlockAttribute'](_0x39bbfa)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4fc883['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x48904d=>{const {id:_0x250621,authorId:_0x20525c,type:_0x428753,subType:_0x3cd063}=this['_splitMarkerName'](_0x48904d['markerName']),_0x57a785=['ck-suggestion-marker',_0x45922c(_0x428753,_0x3cd063)];let _0x2ba84c=0xbb8;return this['activeMarkers']['includes'](_0x48904d['markerName'])&&(_0x57a785['push']('ck-suggestion-marker--active'),_0x2ba84c=0xbc2),'deletion'==_0x428753&&(_0x2ba84c+=0x5),{'classes':_0x57a785,'attributes':{'data-suggestion':_0x250621,'data-author-id':_0x20525c},'priority':_0x2ba84c};}}),_0x4fc883['conversion']['for']('dataDowncast')['add'](_0x187011=>{_0x187011['on']('addMarker:suggestion',(_0x161c44,_0x36a67f,_0x2ff936)=>{if(!_0x2ff936['options']['showSuggestionHighlights'])return;const _0x51acc7=_0x36a67f['item'];if(!_0x51acc7)return;const _0x32427f=_0x2ff936['mapper']['toViewElement'](_0x51acc7);_0x4fc883['model']['schema']['isObject'](_0x51acc7)&&_0x32427f&&!_0x32427f['getCustomProperty']('widget')&&_0x32427f['is']('containerElement')&&_0x5c7901(_0x32427f,_0x2ff936['writer']);},{'priority':'high'});}),_0x4fc883['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x205ad7,_0x50c73e)=>{if(!_0x50c73e['options']['showSuggestionHighlights'])return null;const {id:_0x3e0018,authorId:_0x145dc4,type:_0x56f822,subType:_0x14295d}=this['_splitMarkerName'](_0x205ad7['markerName']);return{'classes':['ck-suggestion-marker',_0x45922c(_0x56f822,_0x14295d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3e0018,'data-author-id':_0x145dc4}};}});const _0x354f54=({showActiveMarkers:_0x222714=!0x0,isAttributeSuggestion:_0x42d77e=!0x1}={})=>(_0x3fb8e5,_0x43f6f1,_0x38cbb7)=>{if(!_0x43f6f1['item'])return;const {id:_0x1de0f9,authorId:_0x1e018e}=this['_splitMarkerName'](_0x43f6f1['markerName']);if(_0x42d77e){const _0x4a5ea8=this['_suggestions']['get'](_0x1de0f9),_0x5c347d=this['_getAttributeKey'](_0x4a5ea8);if(!this['_isBlockAttribute'](_0x5c347d))return;}if(_0x43f6f1['item']['is']('selection'))return void _0x38cbb7['consumable']['consume'](_0x43f6f1['item'],_0x3fb8e5['name']);const _0x26e952=_0x38cbb7['mapper']['toViewElement'](_0x43f6f1['item']);if(_0x43f6f1['item']['is']('element')&&_0x4fc883['model']['schema']['isBlock'](_0x43f6f1['item'])&&!_0x26e952['getCustomProperty']('addHighlight')){_0x38cbb7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x26e952),_0x38cbb7['writer']['setAttribute']('data-suggestion',_0x1de0f9,_0x26e952),_0x38cbb7['writer']['setAttribute']('data-author-id',_0x1e018e,_0x26e952),_0x38cbb7['mapper']['bindElementToMarker'](_0x26e952,_0x43f6f1['markerName']),_0x222714&&(this['activeMarkers']['includes'](_0x43f6f1['markerName'])?_0x38cbb7['writer']['addClass']('ck-suggestion-marker--active',_0x26e952):_0x38cbb7['writer']['removeClass']('ck-suggestion-marker--active',_0x26e952));for(const _0x34bb43 of _0x4fc883['model']['createRangeIn'](_0x43f6f1['item'])['getItems']())_0x38cbb7['consumable']['consume'](_0x34bb43,_0x3fb8e5['name']);_0x38cbb7['consumable']['consume'](_0x43f6f1['item'],_0x3fb8e5['name']);}};_0x4fc883['conversion']['for']('dataDowncast')['add'](_0x55ed8e=>{_0x55ed8e['on']('addMarker:suggestion:formatBlock',(_0x5130db,_0x2f8c3f,_0x4cc7d0)=>{_0x4cc7d0['options']['showSuggestionHighlights']&&_0x354f54({'showActiveMarkers':!0x1})(_0x5130db,_0x2f8c3f,_0x4cc7d0);},{'priority':'highest'});}),_0x4fc883['conversion']['for']('dataDowncast')['add'](_0xb874f7=>{_0xb874f7['on']('addMarker:suggestion:attribute',(_0x3dd394,_0x303a07,_0x1f441b)=>{_0x1f441b['options']['showSuggestionHighlights']&&_0x354f54({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3dd394,_0x303a07,_0x1f441b);},{'priority':'highest'});}),_0x4fc883['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x53754f,_0x17f052)=>{if(_0x17f052['options']['showSuggestionHighlights']){const {id:_0x1ddc3a,authorId:_0x2e9fec}=this['_splitMarkerName'](_0x53754f);return _0x53754f['includes'](':split')||_0x53754f['includes'](':merge')?{'group':'suggestion','name':_0x53754f['substr'](0xb),'attributes':{'data-suggestion':_0x1ddc3a,'data-author-id':_0x2e9fec}}:null;}return{'group':'suggestion','name':_0x53754f['substr'](0xb)};}}),_0x4fc883['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3cabcd,{writer:_0x50fb52})=>{let _0x5f4adf='suggestion:'+_0x3cabcd['getAttribute']('suggestion-type')+':'+_0x3cabcd['getAttribute']('id');return _0x3cabcd['getAttribute']('marker-count')&&(_0x5f4adf+=':'+_0x3cabcd['getAttribute']('marker-count')),_0x50fb52['createElement']('$marker',{'data-name':_0x5f4adf});}}),_0x4fc883['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4fc883['conversion']['for']('editingDowncast')['add'](_0x522785=>{_0x522785['on']('addMarker:suggestion:formatBlock',_0x354f54(),{'priority':'high'});}),_0x4fc883['conversion']['for']('editingDowncast')['add'](_0x170b65=>{_0x170b65['on']('addMarker:suggestion:attribute',_0x354f54({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4fc883['conversion']['for']('editingDowncast')['add'](_0x2d794c=>{_0x2d794c['on']('removeMarker:suggestion:formatBlock',(_0x4cfbe7,_0x4faad4,_0x1b2766)=>{const _0x10b068=_0x1b2766['mapper']['markerNameToElements'](_0x4faad4['markerName']);if(_0x10b068){for(const _0x60d84d of _0x10b068)_0x60d84d['getCustomProperty']('addHighlight')||(_0x1b2766['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x60d84d),_0x1b2766['writer']['removeAttribute']('data-suggestion',_0x60d84d),_0x1b2766['writer']['removeAttribute']('data-author-id',_0x60d84d),_0x1b2766['mapper']['unbindElementFromMarkerName'](_0x60d84d,_0x4faad4['markerName']));}},{'priority':'high'});}),_0x4fc883['conversion']['for']('editingDowncast')['add'](_0x43098f=>{_0x43098f['on']('removeMarker:suggestion:attribute',(_0x3b56d6,_0x2bb5a2,_0x50e16f)=>{const _0x14fcbe=_0x50e16f['mapper']['markerNameToElements'](_0x2bb5a2['markerName']);if(!_0x14fcbe)return;const {id:_0x45808f}=this['_splitMarkerName'](_0x2bb5a2['markerName']),_0x115575=this['_suggestions']['get'](_0x45808f),_0x2bc0c1=this['_getAttributeKey'](_0x115575);if(this['_isBlockAttribute'](_0x2bc0c1)){for(const _0x51287f of _0x14fcbe)_0x51287f['getCustomProperty']('addHighlight')||(_0x50e16f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x51287f),_0x50e16f['writer']['removeAttribute']('data-suggestion',_0x51287f),_0x50e16f['writer']['removeAttribute']('data-author-id',_0x51287f),_0x50e16f['mapper']['unbindElementFromMarkerName'](_0x51287f,_0x2bb5a2['markerName']));}},{'priority':'high'});}),_0x4fc883['model']['document']['registerPostFixer'](_0x516060=>{let _0x5bec68=!0x1;const _0x297eb2=Array['from'](_0x4fc883['model']['document']['differ']['getChangedMarkers']()),_0x131d94=new Set();for(const {name:_0xb64e52,data:_0x316a30}of _0x297eb2){const {group:_0xb36a36,type:_0x2a53dc,subType:_0x344941,id:_0x52fc55}=this['_splitMarkerName'](_0xb64e52);if('suggestion'!==_0xb36a36)continue;const _0x564384=_0x344941?'suggestion:'+_0x2a53dc+':'+_0x344941+':'+_0x52fc55:'suggestion:'+_0x2a53dc+':'+_0x52fc55,_0x2e6af9=_0x4fc883['model']['markers']['getMarkersGroup'](_0x564384),_0x201fb8=_0x4fc883['model']['markers']['get'](_0xb64e52),_0x168e2f=this['_suggestions']['get'](_0x52fc55);if(null!=_0x316a30['newRange']){'formatInline'==_0x2a53dc&&(_0x5bec68=_0x5bec68||Gt(_0x316a30['newRange'],_0xb64e52,_0x516060,_0x4fc883['model']['schema']));const _0x1acbe5='attribute'==_0x2a53dc&&this['_isBlockAttribute'](_0x344941['split']('|')[0x0]),_0x6979e9='attribute'==_0x2a53dc&&this['_isInlineAttribute'](_0x344941['split']('|')[0x0]);if(_0x316a30['newRange']['isCollapsed']||'$graveyard'==_0x316a30['newRange']['root']['rootName']||'formatBlock'==_0x2a53dc&&!Jt(_0x316a30['newRange'])||_0x1acbe5&&!Jt(_0x316a30['newRange'])||_0x6979e9&&Kt(_0x316a30['newRange'])||'deletion'==_0x2a53dc&&Kt(_0x316a30['newRange'])||_0x201fb8&&Ht(_0x201fb8,_0x2e6af9))_0x516060['removeMarker'](_0xb64e52),_0x5bec68=!0x0;else{if(!_0x168e2f||!_0x168e2f['isInContent'])continue;if(_0x316a30['newRange']&&_0x316a30['oldRange']&&_0x316a30['newRange']['isEqual'](_0x316a30['oldRange']))continue;_0x131d94['add'](_0x168e2f);}}}return _0x131d94['size']>0x0&&(_0x5bec68=!!this['_joinWithAdjacentSuggestions'](_0x131d94)||_0x5bec68),_0x5bec68;}),_0x4fc883['model']['document']['registerPostFixer'](_0x3067b7=>{let _0x4fbb3e=!0x1;for(const _0x37193f of _0x4fc883['model']['document']['differ']['getChanges']())if('insert'==_0x37193f['type'])for(const _0x30a83a of this['_suggestions']['values']()){if(_0x30a83a['isMultiRange']||!_0x30a83a['isInContent'])continue;const _0x281e04='formatBlock'==_0x30a83a['type'],_0x1b3708=this['_getAttributeKey'](_0x30a83a),_0x3ba4c0=_0x1b3708&&this['_isBlockAttribute'](_0x1b3708);if(!_0x281e04&&!_0x3ba4c0)continue;const _0x32bca2=_0x30a83a['getFirstRange']();if(_0x32bca2['start']['parent']!=_0x32bca2['end']['parent']&&!_0x32bca2['end']['isAtEnd']){const _0x13006f=_0x4fc883['model']['createPositionAt'](_0x32bca2['start']['nodeAfter'],'end'),_0x23ca69=_0x4fc883['model']['createRange'](_0x32bca2['start'],_0x13006f);_0x3067b7['updateMarker'](_0x30a83a['getFirstMarker'](),{'range':_0x23ca69}),_0x4fbb3e=!0x0;}}return _0x4fbb3e;}),_0x4fc883['model']['document']['registerPostFixer'](_0x35d2f7=>this['_processAttributeChanges'](_0x35d2f7)),_0x4fc883['model']['document']['registerPostFixer'](_0x4db0ad=>!_0x4db0ad['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4db0ad)),_0x4fc883['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4fc883['model']['document']['on']('change:data',(_0x14f902,_0x10ceed)=>{if(!_0x10ceed['isLocal']||_0x10ceed['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x24a638=_0x4fc883['model']['document']['differ']['getChanges']();if(0x0==_0x24a638['length'])return;const _0x5be9c6=[],_0x47c943=_0x24a638['filter'](_0x2f765a=>'attribute'==_0x2f765a['type']),_0x35e24a=_0x24a638['filter'](_0x5cc261=>'insert'==_0x5cc261['type']&&'$text'!=_0x5cc261['name']);for(const _0x385b03 of _0x47c943)this['_isRegisteredAttribute'](_0x385b03['attributeKey'])&&_0x5be9c6['push']({'key':_0x385b03['attributeKey'],'newValue':_0x385b03['attributeNewValue'],'oldValue':_0x385b03['attributeOldValue'],'range':qt(_0x385b03['range'],_0x4fc883['model'])});for(const _0x5d515d of _0x35e24a){if('rename'!=_0x5d515d['action']&&'refresh'!=_0x5d515d['action'])continue;const _0xaca6e7=zt(_0x5d515d['position']['nodeAfter'],_0x4fc883['model']),_0x1ad261=_0x5d515d['before'];'rename'==_0x5d515d['action']&&_0x5be9c6['push']({'key':m,'newValue':_0x5d515d['name'],'oldValue':_0x1ad261['name'],'range':_0xaca6e7});for(const [_0x5bbc8b,_0x2c2bb4]of _0x1ad261['attributes']){if(!this['_isRegisteredAttribute'](_0x5bbc8b))continue;const _0x1724a7=_0x5d515d['attributes']['get'](_0x5bbc8b);_0x2c2bb4!==_0x1724a7&&_0x5be9c6['push']({'key':_0x5bbc8b,'newValue':_0x1724a7,'oldValue':_0x2c2bb4,'range':_0xaca6e7});}for(const [_0xf145ab,_0x55135f]of _0x5d515d['attributes'])this['_isRegisteredAttribute'](_0xf145ab)&&(_0x1ad261['attributes']['has'](_0xf145ab)||_0x5be9c6['push']({'key':_0xf145ab,'newValue':_0x55135f,'oldValue':null,'range':_0xaca6e7}));}0x0!=_0x5be9c6['length']&&_0x4fc883['model']['enqueueChange'](_0x10ceed,_0x35fad7=>{const _0x360d3b=_0x191a50();for(const {range:_0x331723,key:_0x3c0ddc,oldValue:_0x269964,newValue:_0x522fbc}of _0x5be9c6)this['markAttributeChange'](_0x331723,_0x3c0ddc,_0x269964,_0x522fbc,{'groupId':_0x360d3b});this['_reduceExistingSuggestions'](_0x35fad7,_0x5be9c6);});},{'priority':'lowest'}),_0x4fc883['model']['markers']['on']('update:suggestion',(_0x142d1d,_0x5f29cd,_0x88d8e0)=>{if(null==_0x88d8e0){const {id:_0x5e6cdb}=this['_splitMarkerName'](_0x5f29cd['name']),_0x49dd04=this['_suggestions']['get'](_0x5e6cdb);_0x49dd04&&_0x49dd04['addMarkerName'](_0x5f29cd['name']);}}),_0x4fc883['model']['document']['on']('change:data',()=>{const _0x14ddc2=Array['from'](_0x4fc883['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd45a5=>'suggestion'===this['_splitMarkerName'](_0xd45a5['name'])['group']);if(0x0===_0x14ddc2['length'])return;_0x14ddc2['sort']((_0x4c769d,_0x225a37)=>{const _0x34c138=_0x4c769d['data']['oldRange'],_0x2e66ea=_0x225a37['data']['oldRange'];return null===_0x34c138&&null===_0x2e66ea?0x0:null===_0x34c138&&null!==_0x2e66ea?-0x1:null!==_0x34c138&&null===_0x2e66ea?0x1:_0x34c138['start']['isBefore'](_0x2e66ea['start'])?-0x1:0x1;});const _0x3522d9=new Set(),_0x68621=new Set();for(const {name:_0x470b0e,data:_0x33f2ef}of _0x14ddc2){const {id:_0x401acf}=this['_splitMarkerName'](_0x470b0e);if(null===_0x33f2ef['oldRange']){const _0x2fd1d4=this['_handleNewSuggestionMarker'](_0x470b0e);_0x68621['add'](_0x2fd1d4);}else{const _0x5531c3=this['_suggestions']['get'](_0x401acf);null!==_0x33f2ef['newRange']||_0x5531c3['isInContent']?(_0x3522d9['add'](_0x5531c3['head']),_0x68621['add'](_0x5531c3)):this['_removeSuggestion'](_0x5531c3);}}_0x68621['size']>0x0&&this['_refreshSuggestionsChain'](_0x68621);for(const _0x356562 of _0x3522d9)this['fire']('suggestionChanged',_0x356562);}),_0x4fc883['model']['on']('applyOperation',(_0x48008e,_0x274f01)=>{const _0x188f71=_0x274f01[0x0];if(!this['_suggestions']['size'])return;if(!_0x188f71['isDocumentOperation'])return;if(_0x188f71['batch']['isUndo']||!_0x188f71['batch']['isLocal'])return;let _0x7efb33,_0x49a6e1;switch(_0x188f71['type']){case'insert':_0x7efb33=_0x4fc883['model']['createPositionAt'](_0x188f71['position']),_0x49a6e1=_0x7efb33['getShiftedBy'](_0x188f71['howMany']);break;case'split':_0x7efb33=_0x4fc883['model']['createPositionAt'](_0x188f71['splitPosition']),_0x49a6e1=_0x4fc883['model']['createPositionAt'](_0x188f71['moveTargetPosition']);break;case'move':_0x7efb33=_0x4fc883['model']['createPositionAt'](_0x188f71['targetPosition']),_0x49a6e1=_0x7efb33['getShiftedBy'](_0x188f71['howMany']);break;default:return;}const _0xf098df=_0x4fc883['model']['createRange'](_0x7efb33,_0x49a6e1);_0x4fc883['model']['change'](()=>{for(const {suggestion:_0x214954,meta:_0x1a5ace}of this['_findSuggestions'](_0xf098df)){if(_0x214954['isMultiRange'])continue;if('formatInline'==_0x214954['type'])continue;const _0x50308f=this['_getAttributeKey'](_0x214954);if(_0x50308f&&this['_isBlockAttribute'](_0x50308f)&&'split'!=_0x188f71['type'])continue;const _0x3d15e2=_0x214954['data']&&_0x214954['data']['multipleBlocks'];('formatBlock'!=_0x214954['type']||'split'==_0x188f71['type']&&!_0x3d15e2)&&(_0x1a5ace['containsRangeInObject']||'insertion'==_0x214954['type']&&_0x1a5ace['isOwn']||_0x214954['getFirstRange']()['containsRange'](_0xf098df)&&this['_breakSuggestionMarker'](_0x214954,_0x7efb33,_0x49a6e1));}});},{'priority':'lowest'}),_0x4fc883['model']['on']('deleteContent',(_0x55bc66,_0x1aee8b)=>{const _0x1566e6=_0x1aee8b[0x0],_0x175a6d=_0x1aee8b[0x1];if(_0x175a6d&&_0x175a6d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1566e6['isCollapsed'])return;const _0x445719=_0x4fc883['model']['schema'],{start:_0x14a96e,end:_0x441fc5}=_0x1566e6['getFirstRange'](),_0xab6091=_0x14a96e['nodeAfter']&&_0x445719['isLimit'](_0x14a96e['nodeAfter'])?null:_0x445719['getNearestSelectionRange'](_0x14a96e,'forward'),_0x1a500e=_0x441fc5['nodeBefore']&&_0x445719['isLimit'](_0x441fc5['nodeBefore'])?null:_0x445719['getNearestSelectionRange'](_0x441fc5,'backward'),_0xe759c4=_0x4fc883['model']['createRange'](_0xab6091?_0xab6091['start']:_0x14a96e,_0x1a500e?_0x1a500e['end']:_0x441fc5);_0x4fc883['model']['change'](_0x2d2e8e=>{this['markDeletion'](_0xe759c4);const _0x298eb3=_0x4fc883['model']['schema']['getNearestSelectionRange'](_0xe759c4['start']);_0x1566e6['is']('documentSelection')?_0x2d2e8e['setSelection'](_0x298eb3):_0x1566e6['setTo'](_0x298eb3);}),_0x55bc66['stop']();},{'priority':_0x4d0a93['normal']+0xa}),_0x4fc883['model']['on']('insertContent',(_0x4ab69a,_0x32af06)=>{const _0x65da43=_0x32af06[_0x32af06['length']-0x1];_0x65da43&&_0x65da43['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4fc883['model']['change'](()=>{let _0x1a3cde=_0x4fc883['model']['insertContent'](_0x32af06[0x0],_0x32af06[0x1],_0x32af06[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a3cde)return;_0x4ab69a['return']=_0x1a3cde['clone']();const _0x157185=_0x1a3cde['end']['nodeBefore'],_0x58fa9a=_0x4fc883['model']['schema'];_0x157185&&_0x58fa9a['isBlock'](_0x157185)&&!_0x58fa9a['isObject'](_0x157185)&&(_0x1a3cde=_0x4fc883['model']['createRange'](_0x1a3cde['start'],_0x4fc883['model']['createPositionAt'](_0x157185,'end'))),this['markInsertion'](_0x1a3cde);}),_0x4ab69a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x48846a=new D(_0x4fc883,this['_suggestions']);_0x4fc883['commands']['add']('acceptSuggestion',_0x48846a),this['enableCommand']('acceptSuggestion');const _0x2e9772=new $(_0x4fc883,this['_suggestions']);_0x4fc883['commands']['add']('discardSuggestion',_0x2e9772),this['enableCommand']('discardSuggestion'),_0x4fc883['commands']['add']('acceptAllSuggestions',new M(_0x4fc883,_0x48846a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4fc883['commands']['add']('discardAllSuggestions',new M(_0x4fc883,_0x2e9772,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4fc883['commands']['add']('acceptSelectedSuggestions',new B(_0x4fc883,_0x48846a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4fc883['commands']['add']('discardSelectedSuggestions',new B(_0x4fc883,_0x2e9772,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x39ed66=_0x4fc883['plugins']['get']('CommentsRepository');this['listenTo'](_0x39ed66,'addComment',(_0xbbe362,{threadId:_0x40d7ea})=>{const _0x5719d6=this['_suggestions']['get'](_0x40d7ea);_0x5719d6&&_0x5719d6['commentThread']&&0x1===_0x5719d6['commentThread']['length']&&this['_updateSuggestionData'](_0x40d7ea,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x39ed66,'removeComment',(_0x904b00,{threadId:_0x27b2ec})=>{const _0x3a5051=this['_suggestions']['get'](_0x27b2ec);_0x3a5051&&_0x3a5051['commentThread']&&!_0x3a5051['commentThread']['length']&&this['_updateSuggestionData'](_0x27b2ec,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x568990){const _0x4ee5ad=_0xc27fbe([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x35b650=0x6b0f5e6f,_0x1d4a18=0x6b082c57^_0x35b650,_0xea1419=window[_0xc27fbe([0x44,0x61,0x74,0x65])][_0xc27fbe([0x6e,0x6f,0x77])](),_0x208d71=_0x568990[_0xc27fbe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1aa47=new window[(_0xc27fbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e4166=>{_0x208d71[_0xc27fbe([0x6f,0x6e,0x63,0x65])](_0xc27fbe([0x72,0x65,0x61,0x64,0x79]),_0x4e4166);}),_0x1ae024={[_0xc27fbe([0x6b,0x74,0x79])]:_0xc27fbe([0x45,0x43]),[_0xc27fbe([0x75,0x73,0x65])]:_0xc27fbe([0x73,0x69,0x67]),[_0xc27fbe([0x63,0x72,0x76])]:_0xc27fbe([0x50,0x2d,0x32,0x35,0x36]),[_0xc27fbe([0x78])]:_0xc27fbe([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]),[_0xc27fbe([0x79])]:_0xc27fbe([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]),[_0xc27fbe([0x61,0x6c,0x67])]:_0xc27fbe([0x45,0x53,0x32,0x35,0x36])},_0x2bcccf=_0x208d71[_0xc27fbe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc27fbe([0x67,0x65,0x74])](_0xc27fbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3eff37(){let _0x17f31b,_0x53897d=null,_0x1d4f9d=null;try{if(_0x2bcccf==_0xc27fbe([0x47,0x50,0x4c]))return _0xc27fbe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17f31b=_0x5c3650(),!_0x17f31b)return _0xc27fbe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17f31b[_0xc27fbe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d4f9d=_0x5ed68e(_0x17f31b[_0xc27fbe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17f31b[_0xc27fbe([0x6a,0x74,0x69])])),await _0x169e58()?_0x4a0a92()?_0x36c6f7()?_0xc27fbe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18c35e()?(_0x17f31b[_0xc27fbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc27fbe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53897d=_0x3b9890(_0xc27fbe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17f31b[_0xc27fbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc27fbe([0x74,0x72,0x69,0x61,0x6c])&&(_0x53897d=_0x3b9890(_0xc27fbe([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f76e5()):_0xc27fbe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc27fbe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc27fbe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc27fbe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36c6f7(){const _0x258979=[_0xc27fbe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc27fbe([0x74,0x72,0x69,0x61,0x6c])][_0xc27fbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17f31b[_0xc27fbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xea1419/0x3e8:0xe10*_0x1d4a18;return _0x17f31b[_0xc27fbe([0x65,0x78,0x70])]<_0x258979;}function _0x4a0a92(){const _0x4293f9=_0x17f31b[_0xc27fbe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4293f9)return!0x1;if(_0x4293f9[_0xc27fbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc27fbe([0x2a])))return!0x0;if(_0x4293f9[_0xc27fbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc27fbe([0x54,0x43])))return!0x0;if(_0x4293f9[_0xc27fbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc27fbe([0x52,0x54,0x43]))){if(_0xc623c7())return!0x0;if(_0x207e14()||_0x359d0e())return!0x0;}return!0x1;}function _0x18c35e(){const _0x3ad6ec=_0x17f31b[_0xc27fbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ad6ec||0x0==_0x3ad6ec[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x512a76}=new URL(window[_0xc27fbe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ad6ec[_0xc27fbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512a76))return!0x0;const _0x119b16=_0x512a76[_0xc27fbe([0x73,0x70,0x6c,0x69,0x74])](_0xc27fbe([0x2e]));return _0x3ad6ec[_0xc27fbe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20791d=>_0x20791d[_0xc27fbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc27fbe([0x2a])))[_0xc27fbe([0x6d,0x61,0x70])](_0x1fdd23=>_0x1fdd23[_0xc27fbe([0x73,0x70,0x6c,0x69,0x74])](_0xc27fbe([0x2e])))[_0xc27fbe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2567d0=>_0x2567d0[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x119b16[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc27fbe([0x6d,0x61,0x70])](_0x38efc4=>Array(_0x119b16[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38efc4[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc27fbe([0x66,0x69,0x6c,0x6c])](_0x38efc4[0x0]===_0xc27fbe([0x2a])?_0xc27fbe([0x2a]):'')[_0xc27fbe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38efc4))[_0xc27fbe([0x73,0x6f,0x6d,0x65])](_0x30782d=>_0x119b16[_0xc27fbe([0x65,0x76,0x65,0x72,0x79])]((_0x2b21ff,_0x4a7036)=>_0x30782d[_0x4a7036]===_0x2b21ff||_0x30782d[_0x4a7036]===_0xc27fbe([0x2a])));}function _0x2f76e5(){return _0x53897d&&_0x1d4f9d?new window[(_0xc27fbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41b33b,_0x3cda34)=>{_0x53897d[_0xc27fbe([0x74,0x68,0x65,0x6e])](_0x41b33b,_0x3cda34),_0x1d4f9d[_0xc27fbe([0x74,0x68,0x65,0x6e])](_0x5d9ddf=>{_0x5d9ddf!=_0xc27fbe([0x56,0x61,0x6c,0x69,0x64])&&_0x41b33b(_0x5d9ddf);},_0x3cda34);}):_0x53897d||_0x1d4f9d||_0xc27fbe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ed68e(_0x175622,_0x316406){return new window[(_0xc27fbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe62fb7=>{if(_0x5cbe53())return _0xe62fb7(_0xc27fbe([0x56,0x61,0x6c,0x69,0x64]));_0x4fd750(),_0x208d71[_0xc27fbe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc27fbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1364dd=!0x1;const _0xe419c9=_0x191a50();function _0x46a52e(_0x2a4540){return!!_0x2a4540&&(typeof _0x2a4540===_0xc27fbe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a4540===_0xc27fbe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a4540[_0xc27fbe([0x74,0x68,0x65,0x6e])]===_0xc27fbe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a4540[_0xc27fbe([0x63,0x61,0x74,0x63,0x68])]===_0xc27fbe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e7d2e(_0x2db865){_0x7aa02f(_0x2db865)[_0xc27fbe([0x74,0x68,0x65,0x6e])](_0x4ba5b8=>{if(!_0x4ba5b8||_0x4ba5b8[_0xc27fbe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc27fbe([0x6f,0x6b]))return _0xc27fbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2984b6(_0x5a798a(_0xe419c9+_0x316406))!=_0x4ba5b8[_0xc27fbe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc27fbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc27fbe([0x56,0x61,0x6c,0x69,0x64]);})[_0xc27fbe([0x74,0x68,0x65,0x6e])](_0x21f10d=>(_0x36b5fb(),_0x21f10d),()=>{const _0x5ae690=_0x2b48a7();return null==_0x5ae690?(_0x36b5fb(),_0xc27fbe([0x56,0x61,0x6c,0x69,0x64])):_0xc27fbe(_0xea1419-_0x5ae690>(0x4f03da6f^_0x35b650)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc27fbe([0x74,0x68,0x65,0x6e])](_0xe62fb7)[_0xc27fbe([0x63,0x61,0x74,0x63,0x68])](()=>{_0xe62fb7(_0xc27fbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x490493=0x6b39b0ef^_0x35b650;function _0x36b5fb(){const _0x463762=_0xc27fbe([0x6c,0x6c,0x63,0x74,0x2d])+_0x2984b6(_0x5a798a(_0x175622)),_0x406ce8=_0x1528f4(_0x2984b6(window[_0xc27fbe([0x4d,0x61,0x74,0x68])][_0xc27fbe([0x63,0x65,0x69,0x6c])](_0xea1419/_0x490493)));window[_0xc27fbe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc27fbe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x463762,_0x406ce8);}function _0x2b48a7(){const _0x186bf8=_0xc27fbe([0x6c,0x6c,0x63,0x74,0x2d])+_0x2984b6(_0x5a798a(_0x175622)),_0x519b85=window[_0xc27fbe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc27fbe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x186bf8);return _0x519b85?window[_0xc27fbe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1528f4(_0x519b85),0x10)*_0x490493:null;}function _0x7aa02f(_0x5b4f5b){return new window[(_0xc27fbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fbf7b,_0x10af57)=>{_0x5b4f5b[_0xc27fbe([0x74,0x68,0x65,0x6e])](_0x3fbf7b,_0x10af57),window[_0xc27fbe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10af57,0x6b0e8aaf^_0x35b650);});}}_0x208d71[_0xc27fbe([0x6f,0x6e])](_0xc27fbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12bd41,_0xbea7b3)=>{if(_0xbea7b3[0x0]!=_0x175622)return _0xe62fb7(_0xc27fbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbea7b3[0x1]={..._0xbea7b3[0x1],[_0xc27fbe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe419c9};},{[_0xc27fbe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc27fbe([0x68,0x69,0x67,0x68])}),_0x208d71[_0xc27fbe([0x6f,0x6e])](_0xc27fbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f04b6=>{_0x46a52e(_0x1f04b6[_0xc27fbe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1364dd=!0x0,_0x5e7d2e(_0x1f04b6[_0xc27fbe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc27fbe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc27fbe([0x6c,0x6f,0x77])}),_0x1aa47[_0xc27fbe([0x74,0x68,0x65,0x6e])](()=>{_0x1364dd||_0xe62fb7(_0xc27fbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cbe53(){return _0x208d71[_0xc27fbe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc27fbe([0x76,0x69,0x65,0x77])][_0xc27fbe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc27fbe([0x61,0x75,0x74,0x6f]);}function _0x4fd750(){_0x208d71[_0xc27fbe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc27fbe([0x76,0x69,0x65,0x77])][_0xc27fbe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc27fbe([0x61,0x75,0x74,0x6f]);}}function _0x3b9890(_0xaefb94){const _0x254070=[new window[(_0xc27fbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2af1eb=>setTimeout(_0x2af1eb,0x6b0660a3^_0x35b650)),_0x1aa47[_0xc27fbe([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc27fbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f7699=>{let _0x43dc5a=0x0;_0x208d71[_0xc27fbe([0x6d,0x6f,0x64,0x65,0x6c])][_0xc27fbe([0x6f,0x6e])](_0xc27fbe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29f952,_0x1fe4bd)=>{_0x1fe4bd[0x0][_0xc27fbe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43dc5a++,_0x43dc5a==(0x6b0f5f97^_0x35b650)&&(_0x7f7699(),_0x29f952[_0xc27fbe([0x6f,0x66,0x66])]());});}))];return window[_0xc27fbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc27fbe([0x72,0x61,0x63,0x65])](_0x254070)[_0xc27fbe([0x74,0x68,0x65,0x6e])](()=>_0xaefb94);}async function _0x16d2e7(){await _0x1aa47,_0x208d71[_0xc27fbe([0x6d,0x6f,0x64,0x65,0x6c])][_0xc27fbe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31e174,_0x208d71[_0xc27fbe([0x6d,0x6f,0x64,0x65,0x6c])][_0xc27fbe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31e174,_0x208d71[_0xc27fbe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc27fbe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc623c7(){return _0x1bf0d3(_0xc27fbe([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52a250(_0xc27fbe([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc27fbe([0x73,0x74,0x61,0x74,0x65])]==_0xc27fbe([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x207e14(){return _0x1bf0d3(_0xc27fbe([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 _0x359d0e(){return _0x1bf0d3(_0xc27fbe([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4524c2(_0x524d3d){const _0x2c7031=_0xbd9390();_0x208d71[_0x2c7031]=_0xc27fbe([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x524d3d,_0x524d3d!=_0xc27fbe([0x56,0x61,0x6c,0x69,0x64])&&_0x16d2e7();}function _0xbd9390(){const _0x2d6c2a=window[_0xc27fbe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc27fbe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc27fbe([0x6e,0x6f,0x77])]())[_0xc27fbe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc27fbe([0x2e]),'');let _0x168e00=_0xc27fbe([0x67]);for(let _0x46ec7b=0x0;_0x46ec7b<_0x2d6c2a[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ec7b+=0x2){let _0x26b672=window[_0xc27fbe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d6c2a[_0xc27fbe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46ec7b,_0x46ec7b+0x2));_0x26b672>=_0x4ee5ad[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26b672-=_0x4ee5ad[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x168e00+=_0x4ee5ad[_0x26b672];}return _0x168e00;}function _0x5c3650(){const _0x119db9=_0x2bcccf[_0xc27fbe([0x73,0x70,0x6c,0x69,0x74])](_0xc27fbe([0x2e]));if(0x3!=_0x119db9[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x234ea7(_0x119db9[0x1]);function _0x234ea7(_0x44d1ff){const _0x554f7b=_0x36c417(_0x44d1ff);return _0x554f7b&&_0x30c095()?_0x554f7b:null;function _0x30c095(){const _0x43a5dd=_0x554f7b[_0xc27fbe([0x6a,0x74,0x69])],_0x444a84=window[_0xc27fbe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43a5dd[_0xc27fbe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43a5dd[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x186966={..._0x554f7b,[_0xc27fbe([0x6a,0x74,0x69])]:_0x43a5dd[_0xc27fbe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43a5dd[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x186966[_0xc27fbe([0x76,0x63])],_0x5a798a(_0x186966)==_0x444a84;}}}async function _0x169e58(){let _0x5edff7=!0x0;try{const _0x431ff2=_0x2bcccf[_0xc27fbe([0x73,0x70,0x6c,0x69,0x74])](_0xc27fbe([0x2e])),[_0xefe9b7,_0xd5461c,_0x246233]=_0x431ff2;return _0x207300(_0xefe9b7),await _0x5c7e42(_0xefe9b7,_0xd5461c,_0x246233),_0x5edff7;}catch{return!0x1;}function _0x207300(_0x79d935){const _0x2d01e7=_0x36c417(_0x79d935);_0x2d01e7&&_0x2d01e7[_0xc27fbe([0x61,0x6c,0x67])]==_0xc27fbe([0x45,0x53,0x32,0x35,0x36])||(_0x5edff7=!0x1);}async function _0x5c7e42(_0x5ed867,_0x57ee2e,_0x477fb0){const _0x574c24=window[_0xc27fbe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc27fbe([0x66,0x72,0x6f,0x6d])](_0x38cf69(_0x477fb0),_0x4afc8f=>_0x4afc8f[_0xc27fbe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe0de68=new window[(_0xc27fbe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc27fbe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ed867+_0xc27fbe([0x2e])+_0x57ee2e),_0x4b1ac0=window[_0xc27fbe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc27fbe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1ac0)return;const _0x285da4=await _0x4b1ac0[_0xc27fbe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc27fbe([0x6a,0x77,0x6b]),_0x1ae024,{[_0xc27fbe([0x6e,0x61,0x6d,0x65])]:_0xc27fbe([0x45,0x43,0x44,0x53,0x41]),[_0xc27fbe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc27fbe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc27fbe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1ac0[_0xc27fbe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc27fbe([0x6e,0x61,0x6d,0x65])]:_0xc27fbe([0x45,0x43,0x44,0x53,0x41]),[_0xc27fbe([0x68,0x61,0x73,0x68])]:{[_0xc27fbe([0x6e,0x61,0x6d,0x65])]:_0xc27fbe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x285da4,_0x574c24,_0xe0de68)||(_0x5edff7=!0x1);}}function _0x36c417(_0xff4b1b){return _0xff4b1b[_0xc27fbe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc27fbe([0x65,0x79]))?JSON[_0xc27fbe([0x70,0x61,0x72,0x73,0x65])](_0x38cf69(_0xff4b1b)):null;}function _0x38cf69(_0x3ece00){return window[_0xc27fbe([0x61,0x74,0x6f,0x62])](_0x3ece00[_0xc27fbe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc27fbe([0x2b]))[_0xc27fbe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc27fbe([0x2f])));}function _0x5a798a(_0x1cadc5){let _0x59450c=0x1505;function _0x56135c(_0x3cc722){for(let _0x1bfbea=0x0;_0x1bfbea<_0x3cc722[_0xc27fbe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bfbea++){const _0x228b13=_0x3cc722[_0xc27fbe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bfbea);_0x59450c=(_0x59450c<<0x5)+_0x59450c+_0x228b13,_0x59450c&=_0x59450c;}}function _0x47573a(_0x4a2f81){Array[_0xc27fbe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a2f81)?_0x4a2f81[_0xc27fbe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47573a):_0x4a2f81&&typeof _0x4a2f81==_0xc27fbe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc27fbe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a2f81)[_0xc27fbe([0x73,0x6f,0x72,0x74])]()[_0xc27fbe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d7549,_0x216329])=>{_0x56135c(_0x5d7549),_0x47573a(_0x216329);}):_0x56135c(window[_0xc27fbe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a2f81));}return _0x47573a(_0x1cadc5),_0x59450c>>>0x0;}function _0x2984b6(_0x294c7c){return _0x294c7c[_0xc27fbe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc27fbe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc27fbe([0x30]));}function _0x1528f4(_0x1a6c7c){return _0x1a6c7c[_0xc27fbe([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc27fbe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc27fbe([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bf0d3(_0xcaa05){return _0x208d71[_0xc27fbe([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc27fbe([0x68,0x61,0x73])](_0xcaa05);}function _0x52a250(_0x522717){return _0x208d71[_0xc27fbe([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc27fbe([0x67,0x65,0x74])](_0x522717);}function _0x31e174(){}function _0xc27fbe(_0x1e5625){return _0x1e5625['map'](_0x25bbe0=>String['fromCharCode'](_0x25bbe0))['join']('');}_0x4524c2(await _0x3eff37());}(this);}set['adapter'](_0x37e12c){if(this['_adapter'])throw new _0x372022('track-changes-adapter-already-set',this);this['_adapter']=_0x37e12c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5b5e45=!0x1,toJSON:_0x147291=!0x1}={}){const _0x178786=[];for(const _0x506a9a of this['_suggestions']['values']())_0x5b5e45&&!_0x506a9a['isInContent']||_0x178786['push'](_0x506a9a);return _0x147291?_0x178786['map'](_0x1de718=>_0x1de718['toJSON']()):_0x178786;}['getSuggestion'](_0x361a69){const _0x53b723=this['_suggestions']['get'](_0x361a69);if(!_0x53b723)throw new _0x372022('track-changes-suggestion-not-found',this);return _0x53b723;}['hasSuggestion'](_0x54f3cf){return this['_suggestions']['has'](_0x54f3cf);}['addSuggestionData'](_0x281f82){const {authorId:_0x504ec1,id:_0x45fc7d,originalSuggestionId:_0x1f273e,attributes:_0x5504b2}=_0x281f82,[_0x55420e,_0x16d31a]=_0x281f82['type']['split'](':'),_0xc4b345=this['_suggestions']['get'](_0x45fc7d)||this['_createSuggestion'](_0x55420e,_0x16d31a,_0x45fc7d,_0x504ec1,_0x5504b2,_0x1f273e);if(this['_addThreadToSuggestion'](_0xc4b345),this['_checkSuggestionCorrectness'](_0xc4b345,_0x55420e,_0x16d31a||null,_0x504ec1),_0xc4b345['createdAt']=_0x281f82['createdAt'],_0xc4b345['_isDataLoaded']=!0x0,_0x5504b2&&_0x5504b2['@external']){const _0x35ed92=_0x5504b2['@external'],_0x26a209=this['_getExternalAuthor'](_0x35ed92['authorName']);_0xc4b345['authoredAt']=_0x35ed92['createdAt'],_0xc4b345['author']=_0x26a209,_0xc4b345['isExternal']=!0x0;}else _0xc4b345['authoredAt']=_0x281f82['createdAt'];switch(_0x281f82['data']&&(_0xc4b345['data']=_0x281f82['data']),_0x281f82['attributes']&&(_0xc4b345['attributes']=_0x281f82['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xc4b345['_saved']=!0x0),this['_suggestionState']['get'](_0xc4b345)){case'notReady':this['_suggestionState']['set'](_0xc4b345,'dataReady');break;case'markerReady':_0xc4b345['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xc4b345])),this['_refreshSuggestionsChain'](new Set([_0xc4b345])),this['_suggestionState']['set'](_0xc4b345,'ready'),this['fire']('suggestionLoaded',_0xc4b345)):this['_suggestionState']['set'](_0xc4b345,'removed');}return _0xc4b345;}['acceptSuggestion'](_0x59dfca){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x503d91 of _0x59dfca['getAllAdjacentSuggestions']())_0x503d91['accept']();});});}['discardSuggestion'](_0x2d85c1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b6418 of _0x2d85c1['getAllAdjacentSuggestions']())_0x4b6418['discard']();});});}['enableCommand'](_0x58c263,_0x4843a7){const _0x1b7413=this['editor']['commands']['get'](_0x58c263);if(!_0x1b7413)throw new _0x372022('track-changes-command-not-found',this,{'commandName':_0x58c263});if(this['_enabledCommands']['has'](_0x1b7413))throw new _0x372022('track-changes-enable-command-twice',this,{'commandName':_0x58c263});this['_enabledCommands']['add'](_0x1b7413),_0x4843a7&&_0x1b7413['on']('execute',(_0x15878a,_0x3cabb3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3cabb3['length']>0x0&&_0x3cabb3[_0x3cabb3['length']-0x1]&&_0x3cabb3[_0x3cabb3['length']-0x1]['forceDefaultExecution']?_0x3cabb3['pop']():(_0x15878a['return']=_0x4843a7((..._0x278db6)=>_0x1b7413['execute'](..._0x278db6,{'forceDefaultExecution':!0x0}),..._0x3cabb3),_0x15878a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4ad02c){let _0x208613,_0x3ed70c;const _0x3a9112=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x208613=_0x4ad02c();}catch(_0x2c21e9){_0x3ed70c=_0x2c21e9;}return _0x3a9112||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ed70c&&_0x372022['rethrowUnexpectedError'](_0x3ed70c,this),_0x208613;}['markInsertion'](_0x340b66,_0x55d9f1=null,_0x169d84={}){if(_0x340b66['isCollapsed'])return null;const _0xef9368=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x169d84['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2801c7,meta:_0x2e0768}of this['_findSuggestions'](_0x340b66,'insertion'))if(_0x2e0768['isOwn']){if(!_0x2e0768['isNextTo']){if(_0x2e0768['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2801c7,_0x169d84))continue;return _0x2801c7;}if(Xt(_0x2801c7,_0x169d84))return _0x2801c7;this['_breakSuggestionMarker'](_0x2801c7,_0x340b66['start'],_0x340b66['end']);break;}if(_0x55d9f1==_0x2801c7['subType']&&Xt(_0x2801c7,_0x169d84)){const _0x358fb8=_0x2801c7['getFirstRange']();return _0x358fb8['start']['isEqual'](_0x340b66['end'])?this['_setSuggestionRange'](_0x2801c7,this['_model']['createRange'](_0x340b66['start'],_0x358fb8['end'])):this['_setSuggestionRange'](_0x2801c7,this['_model']['createRange'](_0x358fb8['start'],_0x340b66['end'])),_0x2801c7;}}const _0x5c649c=_0x191a50(),_0x56e245=_0xef9368['id'],_0xdd1d8a=_0x55d9f1?'insertion:'+_0x55d9f1:'insertion',_0x2d6d39=this['_setSuggestionData']({'id':_0x5c649c,'type':_0xdd1d8a,'createdAt':new Date(),'authorId':_0x56e245,'attributes':_0x169d84});return this['_addSuggestionMarker'](_0xdd1d8a,_0x5c649c,_0x56e245,_0x340b66),_0x2d6d39;}['markMultiRangeInsertion'](_0x546997,_0x4fcb97='multi',_0x30ea8d={}){const _0x581e9e=this['editor']['plugins']['get']('Users')['me'],_0x2704e3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4fcb97,'join');this['_trackingSessionId']&&(_0x30ea8d['trackingSessionId']=this['_trackingSessionId']);for(const _0x77e601 of this['getSuggestions']())if(_0x77e601['author']['id']==_0x581e9e['id']&&'insertion'==_0x77e601['type']&&_0x77e601['subType']==_0x4fcb97&&Xt(_0x77e601,_0x30ea8d)&&(_0x2704e3(_0x77e601['getRanges'](),_0x546997)||_0x2704e3(_0x546997,_0x77e601['getRanges']()))){for(const _0xd6a70f of _0x546997)_0x77e601['addRange'](_0xd6a70f);return _0x77e601;}for(const {suggestion:_0x5f0235,meta:_0x5c8b1c}of this['_findSuggestions'](_0x546997,'insertion')){if(!_0x5c8b1c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5c8b1c['containsRangeInObject'])continue;if(!Xt(_0x5f0235,_0x30ea8d))continue;let _0x3d51fd=!0x0;for(const _0x20c20e of _0x5f0235['getRanges']())for(const _0x1e2565 of _0x546997)if(!_0x20c20e['containsRange'](_0x1e2565)){_0x3d51fd=!0x1;break;}if(_0x3d51fd)return _0x5f0235;}const _0x3dc6ba=_0x191a50(),_0x1e8509=_0x581e9e['id'],_0x257db7='insertion:'+_0x4fcb97,_0x1f40c7=this['_setSuggestionData']({'id':_0x3dc6ba,'type':_0x257db7,'createdAt':new Date(),'authorId':_0x1e8509,'attributes':_0x30ea8d});for(const _0x115744 of _0x546997)this['_addSuggestionMarker'](_0x257db7,_0x3dc6ba,_0x1e8509,_0x115744,T['getMultiRangeId']());return _0x1f40c7;}['markInlineFormat'](_0x2750ea,_0x4e8315,_0x4ad305=null,_0xc683ec={}){if(_0x4ad305=_0x4ad305||Lt(_0x4e8315),_0x2750ea['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xc683ec['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x386444=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ad305,'accept');return this['forceDefaultExecution'](()=>_0x386444([_0x2750ea],_0x4e8315,_0xc683ec)),null;}const _0x5be0ce=this['editor']['plugins']['get']('Users')['me'],_0x40c4b4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1100a9,meta:_0x377d72}of this['_findSuggestions'](_0x2750ea,'insertion'))_0x377d72['isOwn']&&!_0x377d72['isInsideObject']&&_0x40c4b4['push'](..._0x1100a9['getRanges']());}const _0x5a02fe=function(_0x11e4bc,_0x2e911b){const _0x2576d8=[];for(const _0x1a9fed of _0x2e911b){const _0x2b2a5b=_0x11e4bc['getIntersection'](_0x1a9fed);_0x2b2a5b&&_0x2576d8['push'](_0x2b2a5b);}return _0x2576d8;}(_0x2750ea,_0x40c4b4),_0x383421=function(_0x36dd41,_0x3f37d3){const _0x376d84=[_0x36dd41];for(const _0x2dd45e of _0x3f37d3){let _0x3e938f=0x0;for(;_0x3e938f<_0x376d84['length'];){const _0x2f56ed=_0x376d84[_0x3e938f]['getDifference'](_0x2dd45e);_0x376d84['splice'](_0x3e938f,0x1,..._0x2f56ed),_0x3e938f+=_0x2f56ed['length'];}}return _0x376d84;}(_0x2750ea,_0x40c4b4);_0x5a02fe['length']&&this['_model']['change'](()=>{for(const _0x573cf0 of _0x5a02fe){const _0x2aecaa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ad305,'accept');this['forceDefaultExecution'](()=>_0x2aecaa([_0x573cf0],_0x4e8315,_0xc683ec));}});for(const _0x1f150f of _0x383421){let _0x292246=null,_0x3313aa=_0x1f150f['start'],_0x595c39=_0x1f150f['end'];for(const {suggestion:_0x58afc4,meta:_0x26ccb4}of this['_findSuggestions'](_0x1f150f,'formatInline')){if(!_0x26ccb4['isOwn'])continue;if(_0x58afc4['subType']!=_0x4ad305)continue;if(!Xt(_0x58afc4,_0xc683ec))continue;const _0x265ad4=_0x58afc4['getFirstRange']();if(_0x265ad4['containsRange'](_0x1f150f,!0x0))return null;_0x3313aa=_0x3313aa['isBefore'](_0x265ad4['start'])?_0x3313aa:_0x265ad4['start'],_0x595c39=_0x595c39['isAfter'](_0x265ad4['end'])?_0x595c39:_0x265ad4['end'],_0x292246?_0x265ad4['start']['isBefore'](_0x292246['getFirstRange']()['start'])?(_0x292246['removeMarkers'](),_0x292246=_0x58afc4):_0x58afc4['removeMarkers']():_0x292246=_0x58afc4;}const _0x3db3de=this['_model']['createRange'](_0x3313aa,_0x595c39);if(_0x292246)this['_setSuggestionRange'](_0x292246,_0x3db3de);else{const _0x28d870=_0x191a50(),_0x3050a6=_0x5be0ce['id'];this['_setSuggestionData']({'id':_0x28d870,'type':'formatInline:'+_0x4ad305,'data':_0x4e8315,'createdAt':new Date(),'authorId':_0x3050a6,'attributes':_0xc683ec}),this['_addSuggestionMarker']('formatInline:'+_0x4ad305,_0x28d870,_0x3050a6,_0x3db3de);}}return null;}['markBlockFormat'](_0x53f302,_0x168b98,_0x2c11d9=[],_0xf23b12=null,_0x5110d3={}){_0x168b98['formatGroupId']||(_0x168b98['formatGroupId']=_0x168b98['commandName']),_0x168b98['multipleBlocks']=_0x53f302['is']('range'),_0xf23b12=_0xf23b12||Lt(_0x168b98);const _0x252ce4=_0x2c11d9['map'](_0x49fa1a=>zt(_0x49fa1a,this['_model'])),_0x42b0aa=_0x53f302['is']('range')?_0x53f302:zt(_0x53f302,this['_model']);if(this['_trackingSessionId']&&(_0x5110d3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x44a011=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf23b12,'accept');return this['forceDefaultExecution'](()=>_0x44a011([_0x42b0aa],_0x168b98,_0x5110d3)),null;}_0x252ce4['push'](_0x42b0aa);let _0x366ee1=!0x0;for(const _0x4c4e43 of _0x252ce4)if(!this['_rangeIsInLocalUserInsertion'](_0x4c4e43)){_0x366ee1=!0x1;break;}if(_0x366ee1&&'always'!==this['_trackFormatChanges']){const _0x55f98e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf23b12,'accept');return this['forceDefaultExecution'](()=>_0x55f98e([_0x42b0aa],_0x168b98,_0x5110d3)),null;}let _0x213fe7=null,_0x136af3=_0x42b0aa['start'],_0x2e1deb=_0x42b0aa['end'];for(const {suggestion:_0x116c7,meta:_0x42a761}of this['_findSuggestions'](_0x42b0aa,'formatBlock')){if(!_0x42a761['isOwn'])continue;if(_0x42a761['isNextTo']||_0x42a761['containsRangeInObject']||_0x42a761['isInsideObject'])continue;if(_0x116c7['data']['formatGroupId']!=_0x168b98['formatGroupId'])continue;if(!Xt(_0x116c7,_0x5110d3))continue;const _0x31f23b=_0x116c7['getFirstRange']();if(_0x116c7['subType']==_0xf23b12){if(_0x31f23b['containsRange'](_0x42b0aa,!0x0))return null;_0x136af3=_0x136af3['isBefore'](_0x31f23b['start'])?_0x136af3:_0x31f23b['start'],_0x2e1deb=_0x2e1deb['isAfter'](_0x31f23b['end'])?_0x2e1deb:_0x31f23b['end'],_0x213fe7?_0x31f23b['start']['isBefore'](_0x213fe7['getFirstRange']()['start'])?(_0x213fe7['removeMarkers'](),_0x213fe7=_0x116c7):_0x116c7['removeMarkers']():_0x213fe7=_0x116c7;}else{const _0x31c47c=_0x42b0aa['getIntersection'](_0x31f23b);this['_cutOutSuggestionMarker'](_0x116c7,_0x31c47c);}}const _0x27a810=this['editor']['plugins']['get']('Users')['me'],_0x33f8a8=_0x191a50(),_0x395e9b=_0x27a810['id'];if(_0x213fe7)return this['_setSuggestionRange'](_0x213fe7,this['_model']['createRange'](_0x136af3,_0x2e1deb)),_0x213fe7;{const _0x269b24=this['_setSuggestionData']({'id':_0x33f8a8,'type':'formatBlock:'+_0xf23b12,'data':_0x168b98,'createdAt':new Date(),'authorId':_0x395e9b,'attributes':_0x5110d3});return this['_addSuggestionMarker']('formatBlock:'+_0xf23b12,_0x33f8a8,_0x395e9b,this['_model']['createRange'](_0x136af3,_0x2e1deb)),_0x269b24;}}['markMultiRangeBlockFormat'](_0x10a4f5,_0x46eaca,_0x4a3089=[],_0xbf8a53=null,_0x4d2401={}){_0x46eaca['formatGroupId']||(_0x46eaca['formatGroupId']=_0x46eaca['commandName']);const _0x19313f=_0x10a4f5[0x0];_0x46eaca['multipleBlocks']=_0x19313f['is']('range'),_0xbf8a53=_0xbf8a53||Lt(_0x46eaca);const _0x313580=_0x4a3089['map'](_0x1db109=>zt(_0x1db109,this['_model'])),_0x481dd5=_0x19313f['is']('range')?_0x10a4f5:_0x10a4f5['map'](_0x31e61d=>zt(_0x31e61d,this['_model']));if(this['_trackingSessionId']&&(_0x4d2401['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x133d27=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbf8a53,'accept');return this['forceDefaultExecution'](()=>_0x133d27(_0x481dd5,_0x46eaca,_0x4d2401)),null;}_0x313580['push'](..._0x481dd5);let _0x44677e=!0x0;for(const _0x594615 of _0x313580)if(!this['_rangeIsInLocalUserInsertion'](_0x594615)){_0x44677e=!0x1;break;}if(_0x44677e&&'always'!==this['_trackFormatChanges']){const _0x9c8421=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbf8a53,'accept');return this['forceDefaultExecution'](()=>_0x9c8421(_0x481dd5,_0x46eaca,_0x4d2401)),null;}const _0x5e7603=this['editor']['plugins']['get']('Users')['me'];for(const _0x3be378 of this['getSuggestions']()){const _0x337d02=_0x3be378['data'];if(_0x3be378['author']['id']!=_0x5e7603['id'])continue;if('formatBlock'!=_0x3be378['type']||_0x337d02['formatGroupId']!=_0x46eaca['formatGroupId'])continue;if(!Xt(_0x3be378,_0x4d2401))continue;const _0x39c260=_0x3be378['subType']==_0xbf8a53;for(let _0x11e245=0x0;_0x11e245<_0x481dd5['length'];_0x11e245++){const _0x5c4cd5=_0x481dd5[_0x11e245];for(const _0x5efa41 of _0x3be378['getMarkers']()){const _0xcc9a5f=_0x5efa41['getRange']();if(_0x5c4cd5['isEqual'](_0xcc9a5f)){_0x39c260?(_0x481dd5['splice'](_0x11e245,0x1),_0x11e245--):_0x3be378['removeMarker'](_0x5efa41['name']);break;}}}}if(0x0==_0x481dd5['length'])return null;const _0x3d3e86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbf8a53,'join');for(const _0x1d124b of this['getSuggestions']()){const _0x50e6f6=_0x1d124b['data'];if(_0x1d124b['author']['id']==_0x5e7603['id']&&('formatBlock'==_0x1d124b['type']&&_0x50e6f6['formatGroupId']==_0x46eaca['formatGroupId']&&_0x1d124b['subType']==_0xbf8a53&&Xt(_0x1d124b,_0x4d2401)&&(_0x3d3e86(_0x1d124b['getRanges'](),_0x481dd5)||_0x3d3e86(_0x481dd5,_0x1d124b['getRanges']())))){for(const _0x1f2871 of _0x481dd5)_0x1d124b['addRange'](_0x1f2871);return _0x1d124b;}}const _0x42f5f8=_0x191a50(),_0x295222=_0x5e7603['id'],_0x130017='formatBlock:'+_0xbf8a53,_0x340e02=this['_setSuggestionData']({'id':_0x42f5f8,'type':_0x130017,'data':_0x46eaca,'createdAt':new Date(),'authorId':_0x295222,'attributes':_0x4d2401});for(const _0x160c55 of _0x481dd5)this['_addSuggestionMarker'](_0x130017,_0x42f5f8,_0x295222,_0x160c55,T['getMultiRangeId']());return _0x340e02;}['markDeletion'](_0x50177a,_0x376fcc=null,_0xb1640e={}){if(_0x50177a['isCollapsed'])return null;const _0x14f7f1=this['editor']['plugins']['get']('Users')['me'],_0x2d2177=new _0x3ba60d(_0x50177a['start'],_0x50177a['end']);this['_trackingSessionId']&&(_0xb1640e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1838e0,meta:_0x18038a}of this['_findSuggestions'](_0x2d2177,'insertion'))if(_0x18038a['isOwn']&&!_0x18038a['isNextTo']){if(_0x1838e0['isMultiRange']){const _0x2a77e2=_0x1838e0['getRanges']()['filter'](_0x59d1a3=>'$graveyard'!=_0x59d1a3['root']['rootName']);_0x2a77e2['every'](_0x28e786=>_0x2d2177['containsRange'](_0x28e786,!0x0))&&_0x1838e0['discard']();if(_0x2a77e2['some'](_0x11b60d=>_0x11b60d['containsRange'](_0x2d2177,!0x0))){const _0x128838=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x376fcc,'accept');return this['forceDefaultExecution'](()=>_0x128838([_0x2d2177],null,_0xb1640e)),null;}}else{const _0x213d65=_0x2d2177['getIntersection'](_0x1838e0['getFirstRange']());null!==_0x213d65&&_0x1838e0['_onDiscard']([_0x213d65],null,_0xb1640e);}}if(_0x2d2177['detach'](),_0x2d2177['isCollapsed']||'$graveyard'==_0x2d2177['root']['rootName'])return null;let _0x33e475=null,_0x56f2bb=_0x2d2177['start'],_0x2e7aea=_0x2d2177['end'];const _0x594916=this['_findSuggestions'](_0x2d2177,'deletion');for(const {suggestion:_0x523e41,meta:_0x4c7d4a}of _0x594916){const _0x2a11de=this['_model']['createRange'](_0x56f2bb,_0x2e7aea);if(_0x4c7d4a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c7d4a['containsRangeInObject']&&!_0x4c7d4a['isInsideObject'])){if(_0x523e41['isMultiRange']){if(!Xt(_0x523e41,_0xb1640e))continue;let _0x552473=!0x0;for(const _0x3794a7 of _0x523e41['getRanges']()){if(_0x3794a7['containsRange'](_0x2a11de,!0x0))return _0x523e41;_0x2a11de['containsRange'](_0x3794a7)||(_0x552473=!0x1);}_0x552473&&_0x523e41['discard']();}else{const _0x4d1b80=_0x523e41['getFirstRange']();if(_0x4d1b80['containsRange'](_0x2a11de,!0x0))return _0x523e41;if(!Xt(_0x523e41,_0xb1640e)){_0x2a11de['containsRange'](_0x4d1b80)?_0x523e41['removeMarkers']():_0x4d1b80['containsPosition'](_0x56f2bb)?_0x56f2bb=_0x4d1b80['end']:_0x4d1b80['containsPosition'](_0x2e7aea)&&(_0x2e7aea=_0x4d1b80['start']);continue;}_0x56f2bb=_0x56f2bb['isBefore'](_0x4d1b80['start'])?_0x56f2bb:_0x4d1b80['start'],_0x2e7aea=_0x2e7aea['isAfter'](_0x4d1b80['end'])?_0x2e7aea:_0x4d1b80['end'],_0xb1640e=Object['assign']({},_0x523e41['attributes']),_0x33e475?_0x4d1b80['start']['isBefore'](_0x33e475['getFirstRange']()['start'])?(_0x33e475['removeMarkers'](),_0x33e475=_0x523e41):_0x523e41['removeMarkers']():_0x33e475=_0x523e41;}}}if(_0x33e475)return this['_setSuggestionRange'](_0x33e475,this['_model']['createRange'](_0x56f2bb,_0x2e7aea)),_0x33e475;{const _0xf41127=_0x191a50(),_0xcf8351=this['_model']['createRange'](_0x56f2bb,_0x2e7aea),_0x4dccdb=_0x14f7f1['id'],_0x5080ba=_0x376fcc?'deletion:'+_0x376fcc:'deletion',_0xd8678f=this['_setSuggestionData']({'id':_0xf41127,'type':_0x5080ba,'createdAt':new Date(),'authorId':_0x4dccdb,'attributes':_0xb1640e});return this['_addSuggestionMarker'](_0x5080ba,_0xf41127,_0x4dccdb,_0xcf8351),_0xd8678f;}}['markMultiRangeDeletion'](_0x3e752f,_0x25e32d='multi',_0x14f385={}){const _0x2283a6=this['editor']['plugins']['get']('Users')['me'],_0x276d5c=_0x3e752f['map'](_0x3026b4=>new _0x3ba60d(_0x3026b4['start'],_0x3026b4['end'])),_0x3f722d=new Set();this['_trackingSessionId']&&(_0x14f385['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b658b,meta:_0x538c33}of this['_findSuggestions'](_0x276d5c,'insertion'))_0x538c33['isOwn']&&!_0x538c33['isNextTo']&&_0x3f722d['add'](_0x5b658b);for(const _0x26ed45 of _0x3f722d)if(_0x26ed45['isMultiRange']){const _0x5be948=_0x26ed45['getRanges']();(!_0x26ed45['attributes']||!_0x26ed45['attributes']['skipNestingCheck'])&&(_0x5be948['every'](_0xea6f26=>_0x276d5c['some'](_0x49c979=>_0x49c979['containsRange'](_0xea6f26,!0x0)))&&_0x26ed45['discard']());if(_0x276d5c['every'](_0x5dd8f9=>_0x5be948['some'](_0x2d617c=>_0x2d617c['containsRange'](_0x5dd8f9,!0x0)))){const _0x25aa55=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25e32d,'accept');return this['forceDefaultExecution'](()=>_0x25aa55(_0x3e752f,null,_0x14f385)),null;}}else{const _0x4d5f6c=_0x26ed45['getFirstRange']();_0x276d5c['some'](_0x34223e=>_0x34223e['containsRange'](_0x4d5f6c,!0x0))&&_0x26ed45['discard']();if(_0x276d5c['every'](_0x4d2a7b=>_0x4d5f6c['containsRange'](_0x4d2a7b,!0x0))){const _0x3b8231=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25e32d,'accept');return this['forceDefaultExecution'](()=>_0x3b8231(_0x276d5c,null,_0x14f385)),null;}}const _0x1d2db9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25e32d,'join');let _0x7804a3=null;for(const _0x5a7aa2 of this['getSuggestions']())if(_0x5a7aa2['author']['id']==_0x2283a6['id']&&_0x5a7aa2['isInContent']&&'deletion'==_0x5a7aa2['type']&&_0x5a7aa2['subType']==_0x25e32d&&Xt(_0x5a7aa2,_0x14f385)&&(_0x1d2db9(_0x5a7aa2['getRanges'](),_0x276d5c)||_0x1d2db9(_0x276d5c,_0x5a7aa2['getRanges']()))){if(_0x7804a3){if(_0x5a7aa2['commentThread']&&_0x5a7aa2['commentThread']['length'])continue;for(const _0xc49820 of _0x5a7aa2['getRanges']())_0x7804a3['isIntersectingWithRange'](_0xc49820)||_0x7804a3['addRange'](_0xc49820);_0x5a7aa2['removeMarkers']();}else{_0x7804a3=_0x5a7aa2;for(const _0x5244e4 of _0x276d5c)_0x5a7aa2['isIntersectingWithRange'](_0x5244e4)||_0x5a7aa2['addRange'](_0x5244e4);}}if(_0x7804a3)return _0x7804a3;_0x3f722d['clear']();for(const {suggestion:_0x1ed412,meta:_0x3c43ed}of this['_findSuggestions'](_0x276d5c,'deletion'))_0x3c43ed['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c43ed['containsRangeInObject']&&!_0x3c43ed['isInsideObject'])&&Xt(_0x1ed412,_0x14f385)&&_0x3f722d['add'](_0x1ed412);for(const _0x284c3a of _0x3f722d){const _0x5240cf=_0x284c3a['getRanges']();if(!_0x14f385||!_0x14f385['skipNestingCheck']){if(_0x276d5c['every'](_0x2963a0=>_0x5240cf['some'](_0x5a875b=>_0x5a875b['containsRange'](_0x2963a0,!0x0))))return _0x284c3a;}(!_0x284c3a['attributes']||!_0x284c3a['attributes']['skipNestingCheck'])&&(_0x5240cf['every'](_0x121600=>_0x276d5c['some'](_0x309db1=>_0x309db1['containsRange'](_0x121600,!0x0)))&&_0x284c3a['discard']());}const _0x7d3dbb=_0x191a50(),_0x44b9fa=_0x2283a6['id'],_0x1da5ad='deletion:'+_0x25e32d,_0x4d1bee=this['_setSuggestionData']({'id':_0x7d3dbb,'type':_0x1da5ad,'createdAt':new Date(),'authorId':_0x44b9fa,'attributes':_0x14f385});for(const _0x4ff430 of _0x276d5c)_0x4ff430['detach'](),_0x4ff430['isCollapsed']||'$graveyard'==_0x4ff430['root']['rootName']||this['_addSuggestionMarker'](_0x1da5ad,_0x7d3dbb,_0x44b9fa,_0x4ff430,T['getMultiRangeId']());return _0x4d1bee;}['markAttributeChange'](_0x1553c8,_0x33c67a,_0x5a3f66,_0xd029c,_0x4198e0){if(_0x1553c8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5486=this['editor']['plugins']['get']('Users')['me']['id'],_0x2de2df=Array['from'](this['_suggestions']['values']())['filter'](_0x5107cd=>'attribute'==_0x5107cd['type']&&_0x5107cd['data']['key']==_0x33c67a&&_0x5107cd['isIntersectingWithRange'](_0x1553c8));if(this['_trackingSessionId']&&(_0x4198e0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2be732=this['_findSuggestions'](_0x1553c8,'insertion')['filter'](({meta:_0x4973c8})=>_0x4973c8['isOwn']&&!_0x4973c8['isInsideObject']&&!_0x4973c8['isNextTo'])['map'](({suggestion:_0x4e26be})=>_0x4e26be);_0x2de2df['unshift'](..._0x2be732);}const _0x444e6e=new Map([[_0x1553c8,_0x5a3f66]]);for(const _0x525c86 of _0x2de2df){const _0x18d415='attribute'==_0x525c86['type']?_0x525c86['data']['oldValue']:void 0x0,_0x4982f2=_0x525c86['getFirstRange'](),_0x5f006b=Array['from'](_0x444e6e['keys']())['find'](_0x562cac=>_0x562cac['isIntersecting'](_0x4982f2));if(!_0x5f006b)continue;const _0x44aef6=_0x5f006b['getDifference'](_0x4982f2);this['_isBlockAttribute'](_0x33c67a)&&'insertion'==_0x525c86['type']&&0x0!=_0x44aef6['length']||(_0x444e6e['delete'](_0x5f006b),_0x44aef6['forEach'](_0x5112a7=>{_0x444e6e['set'](_0x5112a7,_0x5a3f66);}),'insertion'!=_0x525c86['type']&&_0x18d415!=_0xd029c&&_0x444e6e['set'](_0x5f006b['getIntersection'](_0x4982f2),_0x18d415));}const _0x533026=[];for(const [_0x9234a4,_0x495cf0]of _0x444e6e){const _0xba6eb1=_0x191a50(),_0x4e3a8f={'key':_0x33c67a,'oldValue':_0x495cf0,'newValue':_0xd029c};_0x33c67a['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':_0x33c67a});const _0x101d82=('attribute:'+(_0x33c67a+'|'+Lt({'newValue':_0xd029c})))['substring'](0x0,0x3c),_0x556903=this['_setSuggestionData']({'id':_0xba6eb1,'type':_0x101d82,'data':_0x4e3a8f,'createdAt':new Date(),'authorId':_0x5486,'attributes':_0x4198e0});_0x533026['push'](_0x556903),this['_addSuggestionMarker'](_0x101d82,_0xba6eb1,_0x5486,_0x9234a4);}return _0x533026;}['enableDefaultAttributesIntegration'](_0x301bcd){this['enableCommand'](_0x301bcd,(_0x1c04a9,..._0x46101d)=>{this['recordAttributeChanges'](()=>{_0x1c04a9(..._0x46101d);});});}['registerBlockAttribute'](_0x6639bc){this['_blockAttributeKeys']['add'](_0x6639bc);}['registerInlineAttribute'](_0x9bbdcd){this['_inlineAttributeKeys']['add'](_0x9bbdcd);}['startTrackingSession'](_0x5d9f6b){return this['_trackingSessionId']=void 0x0!==_0x5d9f6b?_0x5d9f6b:_0x191a50(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4fbf39){return'attribute'==_0x4fbf39['type']?_0x4fbf39['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1bf1ed,_0x20bd8c){const _0x184509=_0x1bf1ed['getFirstMarker']();this['_model']['change'](_0x26afc6=>{_0x26afc6['updateMarker'](_0x184509,{'range':_0x20bd8c});});}['_addThreadToSuggestion'](_0x550e7e){const _0x421264=_0x550e7e['id'],_0x56106d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x421264)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56106d,'threadId':_0x421264,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1810ed=this['_commentsRepository']['getCommentThread'](_0x421264);_0x1810ed['unbind']('isRemovable'),_0x1810ed['isRemovable']=!0x1,_0x550e7e['commentThread']=_0x1810ed;}['_checkSuggestionCorrectness'](_0xbc85ae,_0x36c511,_0x549224,_0x292af8){if(_0xbc85ae['type']!=_0x36c511||_0xbc85ae['subType']!=_0x549224||_0xbc85ae['creator']['id']!=_0x292af8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x372022('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x39f7f7,_0x249a4d){const _0x1449b5=_0x39f7f7['getFirstRange']();if(_0x249a4d['isEqual'](_0x1449b5))_0x39f7f7['removeMarkers']();else{if(_0x1449b5['containsRange'](_0x249a4d)){const _0x109fa8=this['_model']['createPositionAt'](_0x249a4d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x39f7f7,this['_model']['createRange'](_0x1449b5['start'],_0x109fa8));const _0x591e38=_0x191a50(),_0x264af7=_0x39f7f7['creator']['id'],_0x4c8c9e=_0x39f7f7['type']+':'+_0x39f7f7['subType'];this['_setSuggestionData']({'id':_0x591e38,'type':_0x4c8c9e,'createdAt':new Date(),'authorId':_0x264af7,'data':_0x39f7f7['data'],'attributes':_0x39f7f7['attributes']});const _0x218cb1=this['_model']['createPositionAt'](_0x249a4d['end']['parent'],'after'),_0x4cdb30=this['_model']['createRange'](_0x218cb1,_0x1449b5['end']);this['_addSuggestionMarker'](_0x4c8c9e,_0x591e38,_0x264af7,_0x4cdb30);}else{if(_0x1449b5['containsPosition'](_0x249a4d['start'])){const _0x42b30a=this['_model']['createPositionAt'](_0x249a4d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x39f7f7,this['_model']['createRange'](_0x1449b5['start'],_0x42b30a));}else{const _0x3d804d=this['_model']['createPositionAt'](_0x249a4d['end']['parent'],'after');this['_setSuggestionRange'](_0x39f7f7,this['_model']['createRange'](_0x3d804d,_0x1449b5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xfa557c){for(const {suggestion:_0x3a53dd,meta:_0x17dbf7}of this['_findSuggestions'](_0xfa557c,'insertion')){if(!_0x17dbf7['isOwn'])continue;const _0x159a28=_0x3a53dd['getRanges']();for(const _0x5b6da4 of _0x159a28)if(!_0xfa557c['getDifference'](_0x5b6da4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3765c9){return this['editor']['plugins']['get']('Users')['getUser'](_0x3765c9);}['_getExternalAuthor'](_0x4963b7){const _0x48b2ea=this['editor']['plugins']['get']('Users'),_0x3c518c=_0x594282('external:'+_0x4963b7),_0x34b710=_0x48b2ea['getUser'](_0x3c518c);return _0x34b710||_0x48b2ea['addUser']({'id':_0x3c518c,'name':_0x4963b7});}['_createSuggestion'](_0x2ab0a2,_0x5305d3,_0x232138,_0x3fbce6,_0x14b868,_0x3003c2){const _0x1566ac=this['_getAuthorFromId'](_0x3fbce6);if(!_0x1566ac)throw new _0x372022('track-changes-user-not-found',this,{'authorId':_0x3fbce6,'suggestionId':_0x232138});const _0x1472c3=this['_suggestionFactory']['buildSuggestion'](_0x2ab0a2,_0x5305d3,_0x232138,_0x1566ac,_0x14b868,_0x4ae25c=>{this['_updateSuggestionData'](_0x232138,{'attributes':_0x4ae25c});const _0x545a48=this['getSuggestion'](_0x232138);this['_joinWithAdjacentSuggestions'](new Set([_0x545a48])),this['_refreshSuggestionsChain'](new Set([_0x545a48]));},_0x3003c2);return this['listenTo'](_0x1472c3,'accept',()=>{this['_updateSuggestionData'](_0x232138,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1472c3,'discard',()=>{this['_updateSuggestionData'](_0x232138,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x232138,_0x1472c3),this['_suggestionState']['set'](_0x1472c3,'notReady'),_0x1472c3;}['_splitMarkerName'](_0x7f020c){const _0x1cd1a8=_0x7f020c['split'](':');return{'group':_0x1cd1a8[0x0],'type':_0x1cd1a8[0x1],'subType':_0x1cd1a8['length']>=0x5?_0x1cd1a8[0x2]:null,'id':_0x1cd1a8['length']<0x5?_0x1cd1a8[0x2]:_0x1cd1a8[0x3],'authorId':_0x1cd1a8['length']<0x5?_0x1cd1a8[0x3]:_0x1cd1a8[0x4],'markerCount':0x6==_0x1cd1a8['length']?_0x1cd1a8[0x5]:null};}['_breakSuggestionMarker'](_0x2bad12,_0x42948c,_0x533cad){const _0x3e0f29=_0x2bad12['getFirstRange'](),_0x5d44f5=_0x3e0f29['start'],_0x10fc5c=_0x3e0f29['end'];this['_setSuggestionRange'](_0x2bad12,this['_model']['createRange'](_0x5d44f5,_0x42948c));const _0x35a242=_0x191a50(),_0x1fdfe3=_0x2bad12['creator']['id'],_0xcd2356=_0x2bad12['type']+(_0x2bad12['subType']?':'+_0x2bad12['subType']:'');this['_setSuggestionData']({'id':_0x35a242,'type':_0xcd2356,'createdAt':new Date(),'authorId':_0x1fdfe3,'originalSuggestionId':_0x2bad12['_originalSuggestionId']||_0x2bad12['id'],'attributes':_0x2bad12['attributes'],'data':_0x2bad12['data']});const _0x2f9f9c=this['_getAttributeKey'](_0x2bad12);('formatBlock'==_0x2bad12['type']||_0x2f9f9c&&this['_isBlockAttribute'](_0x2f9f9c))&&(_0x533cad=this['_model']['createPositionBefore'](_0x533cad['parent'])),this['_addSuggestionMarker'](_0xcd2356,_0x35a242,_0x1fdfe3,this['_model']['createRange'](_0x533cad,_0x10fc5c));}['_findSuggestions'](_0x277d1c,_0x53907e=null){const _0x22dc5a=[],_0xefd54c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x277d1c)||(_0x277d1c=[_0x277d1c]);for(const _0x8f273d of this['getSuggestions']()){if(!_0x8f273d['isInContent'])continue;if(_0x53907e&&_0x8f273d['type']!=_0x53907e)continue;let _0x243bd7=!0x1;for(const _0x38fa36 of _0x8f273d['getRanges']()){for(const _0x47902e of _0x277d1c){const _0x4b42d1=_0x47902e['start']['isEqual'](_0x38fa36['end'])||_0x47902e['end']['isEqual'](_0x38fa36['start']);if(_0x4b42d1||_0x47902e['getIntersection'](_0x38fa36)){const _0x181444=_0x47902e['containsRange'](_0x38fa36)&&Ft(this['_model']['schema'],_0x38fa36['start'],_0x47902e),_0x3e3996=_0x38fa36['containsRange'](_0x47902e)&&Ft(this['_model']['schema'],_0x47902e['start'],_0x38fa36);_0x22dc5a['push']({'suggestion':_0x8f273d,'meta':{'isOwn':_0xefd54c==_0x8f273d['author'],'isNextTo':_0x4b42d1,'isInsideObject':_0x181444,'containsRangeInObject':_0x3e3996}}),_0x243bd7=!0x0;break;}}if(_0x243bd7)break;}}return _0x22dc5a;}['_addSuggestionMarker'](_0x22bf44,_0x1a57be,_0x11f486,_0x186110,_0x18130d){this['_model']['change'](_0x142845=>{let _0x98d6d4='suggestion:'+_0x22bf44+':'+_0x1a57be+':'+_0x11f486;_0x18130d&&(_0x98d6d4=_0x98d6d4+':'+_0x18130d),_0x142845['addMarker'](_0x98d6d4,{'range':_0x186110,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x50d6e2){const _0x257307=_0x50d6e2['previous'],_0x47adea=_0x50d6e2['next'];_0x50d6e2['previous']=null,_0x50d6e2['next']=null,null!=_0x257307&&_0x257307['next']==_0x50d6e2&&(_0x257307['next']=_0x47adea),null!=_0x47adea&&_0x47adea['previous']==_0x50d6e2&&(_0x47adea['previous']=_0x257307),'ready'==this['_suggestionState']['get'](_0x50d6e2)&&(this['_suggestionState']['set'](_0x50d6e2,'removed'),this['fire']('suggestionUnloaded',_0x50d6e2,_0x257307,_0x47adea));}['_setSuggestionData'](_0x45fbc8){const _0x52ca3a=_0x45fbc8['id'],_0x89a80d=this['addSuggestionData'](_0x45fbc8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1537c1=this['editor']['plugins']['get']('PendingActions'),_0x483e48=_0x89a80d['hasComments'],_0x85ac13=_0x89a80d['subType']?_0x89a80d['type']+':'+_0x89a80d['subType']:_0x89a80d['type'],_0x53ef04=this['editor']['locale'],_0x2d89ec=_0x1537c1['add'](o(_0x53ef04,'PENDING_ACTION_SUGGESTION')),_0x37aa82={'id':_0x52ca3a,'type':_0x85ac13,'hasComments':_0x483e48,'data':_0x45fbc8['data']||null,'originalSuggestionId':_0x45fbc8['originalSuggestionId']||null,'attributes':_0x89a80d['attributes']};this['_adapter']['addSuggestion'](_0x37aa82)['then'](_0x5c7abc=>{_0x89a80d['_saved']=!0x0,_0x1537c1['remove'](_0x2d89ec),_0x5c7abc&&_0x5c7abc['createdAt']&&(this['_suggestions']['get'](_0x52ca3a)['createdAt']=_0x5c7abc['createdAt']);})['catch'](_0x2643d9=>{throw _0x24dafe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x89a80d['discard']();}),_0x89a80d['stopListening'](),this['_suggestions']['delete'](_0x89a80d['id']),this['_suggestionState']['delete'](_0x89a80d),_0x2643d9;});}return _0x89a80d;}['_isBlockAttribute'](_0x58eb09){return this['_blockAttributeKeys']['has'](_0x58eb09);}['_isInlineAttribute'](_0x18de72){return this['_inlineAttributeKeys']['has'](_0x18de72);}['_updateSuggestionData'](_0x452d5b,_0x3048e1){const _0x1464d6=this['editor']['plugins']['get']('PendingActions'),_0x1d6203=this['getSuggestion'](_0x452d5b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d6203['_saved']){const _0x4ff8e5=_0x1464d6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x452d5b,_0x3048e1)['then'](()=>{_0x1464d6['remove'](_0x4ff8e5);});}else _0x1d6203['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x452d5b,_0x3048e1);});}}['_getSuggestionData'](_0x79942f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x372022('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x79942f);}['_handleNewSuggestionMarker'](_0x4b0e15){const {id:_0x338e04,type:_0x58362b,subType:_0x42db0,authorId:_0x198769}=this['_splitMarkerName'](_0x4b0e15),_0x22861d=this['_suggestions']['get'](_0x338e04)||this['_createSuggestion'](_0x58362b,_0x42db0,_0x338e04,_0x198769,{});switch(this['_checkSuggestionCorrectness'](_0x22861d,_0x58362b,_0x42db0,_0x198769),this['_suggestionState']['get'](_0x22861d)){case'notReady':this['_getSuggestionData'](_0x338e04)['then'](_0x51c3be=>{let _0x15e620=Promise['resolve']();_0x51c3be['hasComments']&&(_0x15e620=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x338e04})),_0x15e620['then'](()=>{this['addSuggestionData'](_0x51c3be)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x22861d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x338e04,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x22861d,'ready'),this['fire']('suggestionLoaded',_0x22861d);break;case'ready':this['fire']('suggestionChanged',_0x22861d);}return _0x22861d['addMarkerName'](_0x4b0e15),_0x22861d;}['_refreshSuggestionsChain'](_0x241d65){const _0x3de94e=Array['from'](_0x241d65),_0xb4c7f7=_0x3de94e['filter'](_0x56452e=>'attribute'==_0x56452e['type']);this['_refreshAttributeSuggestionsChain'](_0xb4c7f7);const _0x13da43=_0x3de94e['filter'](_0x10c480=>!_0x10c480['isMultiRange']&&'attribute'!=_0x10c480['type']),_0x17e4ff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x534dda=>!_0x534dda['isMultiRange']&&'attribute'!=_0x534dda['type']),_0x58971f=_0x17e4ff['filter'](_0x32c3ac=>!_0x241d65['has'](_0x32c3ac)),_0x1f3899=new Map(_0x17e4ff['map'](_0x3cece9=>[_0x3cece9,this['_suggestionFactory']['getSuggestionCallback'](_0x3cece9['type'],_0x3cece9['subType'],'chain')])),_0x33df97=new Map(_0x17e4ff['map'](_0xd272ab=>[_0xd272ab,_0xd272ab['getFirstRange']()])),_0xa3dd59=new Set(),_0x5b92d4=new Set();for(let _0x131a7a=0x0;_0x131a7a<_0x13da43['length'];_0x131a7a++)_0x28a72b(_0x13da43[_0x131a7a],_0x13da43,_0x131a7a+0x1);for(let _0x70b87=0x0;_0x70b87<_0x13da43['length'];_0x70b87++)_0x28a72b(_0x13da43[_0x70b87],_0x58971f,0x0);const _0x563448=new Set();for(let _0x11c253=0x0;_0x11c253<_0x13da43['length'];_0x11c253++){const _0x44247d=_0x13da43[_0x11c253];!_0x5b92d4['has'](_0x44247d)&&_0x44247d['previous']&&(_0x563448['add'](_0x44247d['previous']),_0x44247d['previous']['next']===_0x44247d&&(_0x44247d['previous']['next']=null),_0x44247d['previous']=null),!_0xa3dd59['has'](_0x44247d)&&_0x44247d['next']&&(_0x563448['add'](_0x44247d['next']),_0x44247d['next']['previous']===_0x44247d&&(_0x44247d['next']['previous']=null),_0x44247d['next']=null);}function _0x28a72b(_0x29fbc7,_0x1a9ecf,_0x15261f){for(let _0x38c844=_0x15261f;_0x38c844<_0x1a9ecf['length'];_0x38c844++){const _0x42bede=_0x55745f(_0x29fbc7,_0x1a9ecf[_0x38c844]);_0x42bede&&(_0x42bede[0x0]['next']=_0x42bede[0x1],_0x42bede[0x1]['previous']=_0x42bede[0x0],_0xa3dd59['add'](_0x42bede[0x0]),_0x5b92d4['add'](_0x42bede[0x1]));}}function _0x55745f(_0x4a866e,_0x46c728){if(_0x4a866e['author']['id']!==_0x46c728['author']['id'])return null;const _0x42484e=_0x1f3899['get'](_0x4a866e)(_0x4a866e,_0x46c728,_0x33df97['get'](_0x4a866e),_0x33df97['get'](_0x46c728));if(!_0x42484e)return null;return _0x1f3899['get'](_0x46c728)(_0x4a866e,_0x46c728,_0x33df97['get'](_0x4a866e),_0x33df97['get'](_0x46c728))?_0x42484e[0x1]['commentThread']&&_0x42484e[0x1]['commentThread']['length']?null:_0x42484e:null;}_0x563448['size']&&this['_refreshSuggestionsChain'](_0x563448);}['_refreshAttributeSuggestionsChain'](_0x4ae3bc){if(0x0==_0x4ae3bc['length'])return;const _0x15edd5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10f176=>'attribute'==_0x10f176['type']&&_0x10f176['_isDataLoaded']),_0x36a04e=[],_0x44d4ca=new Map();for(const _0x494d33 of _0x15edd5){const _0x25c28a=_0x594282(_0x494d33['attributes']);_0x44d4ca['has'](_0x25c28a)||(_0x44d4ca['set'](_0x25c28a,_0x36a04e['length']),_0x36a04e['push']([]));const _0x1b49be=_0x44d4ca['get'](_0x25c28a);_0x36a04e[_0x1b49be]['push'](_0x494d33);}!(function(){_0x36a04e['sort']((_0x22a080,_0x1d3379)=>{const _0x4b4cf5=_0x22a080[0x0]['createdAt'],_0x467f3a=_0x1d3379[0x0]['createdAt'];return _0x4b4cf5==_0x467f3a?_0x22a080[0x0]['attributes']['groupId']<_0x1d3379[0x0]['attributes']['groupId']?-0x1:0x1:_0x4b4cf5<_0x467f3a?-0x1:0x1;});for(const _0x554348 of _0x36a04e)_0x554348['sort']((_0x5bdd7b,_0x2ce9f5)=>_0x5bdd7b['id']<_0x2ce9f5['id']?-0x1:0x1);}());for(let _0x4c3c9c=0x0;_0x4c3c9c<_0x36a04e['length'];_0x4c3c9c++){if(0x0==_0x36a04e[_0x4c3c9c]['length'])continue;const _0x4bdf50=[];for(let _0x276573=_0x4c3c9c+0x1;_0x276573<_0x36a04e['length'];_0x276573++)0x0!=_0x36a04e[_0x276573]['length']&&_0x3b730e(_0x36a04e[_0x4c3c9c],_0x36a04e[_0x276573])&&_0x4bdf50['push'](_0x276573);for(const _0x577ea7 of _0x4bdf50)_0x36a04e[_0x4c3c9c]=_0x36a04e[_0x4c3c9c]['concat'](_0x36a04e[_0x577ea7]),_0x36a04e[_0x577ea7]=[];}for(const _0x228c1b of _0x36a04e)for(let _0x41bbd9=0x0;_0x41bbd9<_0x228c1b['length'];_0x41bbd9++){const _0x1a61e5=_0x228c1b[_0x41bbd9+0x1]||null;_0x228c1b[_0x41bbd9]['next']!==_0x1a61e5&&(_0x228c1b[_0x41bbd9]['next']=_0x1a61e5);}for(const _0x1b3e96 of _0x36a04e)for(let _0x4e4bbf=0x0;_0x4e4bbf<_0x1b3e96['length'];_0x4e4bbf++){const _0x4bcd8f=_0x1b3e96[_0x4e4bbf-0x1]||null;_0x1b3e96[_0x4e4bbf]['previous']!==_0x4bcd8f&&(_0x1b3e96[_0x4e4bbf]['previous']=_0x4bcd8f);}function _0x3b730e(_0x582bc9,_0x1fdd2c){if(_0x582bc9[0x0]['attributes']['groupId']!==_0x1fdd2c[0x0]['attributes']['groupId']&&_0x582bc9[0x0]['author']!==_0x1fdd2c[0x0]['author'])return!0x1;if(!function(_0x4abcda,_0x15da40){if(!_0x4abcda['hasComments']&&!_0x15da40['hasComments'])return!0x0;if(_0x4abcda['hasComments']&&_0x15da40['hasComments'])return!0x1;if(_0x4abcda['hasComments']&&_0x15da40['createdAt']<_0x4abcda['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x15da40['hasComments']&&_0x4abcda['createdAt']<_0x15da40['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x582bc9[0x0],_0x1fdd2c[0x0]))return!0x1;const _0xb1a0c0=Ut(_0x582bc9[0x0]['attributes'],['groupId','trackingSessionId']),_0x2ec27d=Ut(_0x1fdd2c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x35253f(_0xb1a0c0,_0x2ec27d))return!0x1;if(_0x582bc9[0x0]['attributes']['groupId']==_0x1fdd2c[0x0]['attributes']['groupId'])return!0x0;if(_0x582bc9[0x0]['attributes']['trackingSessionId']!==_0x1fdd2c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x582bc9['every'](_0x3be895=>_0x1fdd2c['some'](_0x20c6f6=>_0x3be895['getFirstRange']()['isEqual'](_0x20c6f6['getFirstRange']())))&&_0x1fdd2c['every'](_0x34dedc=>_0x582bc9['some'](_0x2e986e=>_0x34dedc['getFirstRange']()['isEqual'](_0x2e986e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x40513f){const _0x3cf62c=Array['from'](_0x40513f),_0x3c2a57=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3d3dad=_0x3c2a57['filter'](_0x35656f=>!_0x40513f['has'](_0x35656f)),_0x3cead2=new Map(_0x3cf62c['map'](_0x35c2bd=>[_0x35c2bd,this['_suggestionFactory']['getSuggestionCallback'](_0x35c2bd['type'],_0x35c2bd['subType'],'join')])),_0x53aa63=new Map(_0x3c2a57['map'](_0x3473d8=>[_0x3473d8,_0x3473d8['getRanges']()]));for(let _0x3a495f=0x0;_0x3a495f<_0x3cf62c['length'];_0x3a495f++){if(_0x3daa39(this,_0x3cf62c[_0x3a495f],_0x3cf62c,_0x3a495f+0x1))return!0x0;}for(let _0x319b46=0x0;_0x319b46<_0x3cf62c['length'];_0x319b46++){if(_0x3daa39(this,_0x3cf62c[_0x319b46],_0x3d3dad,0x0))return!0x0;}return!0x1;function _0x3daa39(_0x2aa0ed,_0x201f47,_0x318f38,_0x55d638){for(let _0xf54272=_0x55d638;_0xf54272<_0x318f38['length'];_0xf54272++){const _0x1fa377=_0x318f38[_0xf54272];if(_0x1fa377['type']!==_0x201f47['type']||_0x1fa377['author']['id']!==_0x201f47['author']['id']||_0x1fa377['subType']!==_0x201f47['subType'])continue;if(!Qt(_0x201f47,_0x1fa377))continue;if('attribute'==_0x201f47['type']&&_0x201f47['data']['oldValue']!=_0x1fa377['data']['oldValue'])continue;if('attribute'==_0x201f47['type']&&_0x2aa0ed['_isBlockAttribute'](_0x201f47['data']['key']))continue;if('formatBlock'==_0x201f47['type']){const _0xe6b480=_0x2aa0ed['editor']['model'],_0x4f31b9=_0x201f47['getContainedElement']();if(_0x4f31b9&&(_0xe6b480['schema']['isObject'](_0x4f31b9)||_0xe6b480['schema']['isLimit'](_0x4f31b9)))continue;}const _0x3c7549=_0x3cead2['get'](_0x201f47),_0x1fca57=_0x53aa63['get'](_0x201f47),_0x219d5=_0x53aa63['get'](_0x1fa377),_0x27e869=_0x201f47['commentThread']&&_0x201f47['commentThread']['length'],_0x31de74=_0x1fa377['commentThread']&&_0x1fa377['commentThread']['length'];if(!_0x27e869&&_0x3c7549(_0x219d5,_0x1fca57))return _0x2aa0ed['_joinSuggestions'](_0x1fa377,_0x201f47),_0x53aa63['delete'](_0x201f47),!0x0;if(!_0x31de74&&_0x3c7549(_0x1fca57,_0x219d5))return _0x2aa0ed['_joinSuggestions'](_0x201f47,_0x1fa377),_0x53aa63['delete'](_0x1fa377),!0x0;}return!0x1;}}['_joinSuggestions'](_0x9740d5,_0x50d462){if(_0x9740d5['isMultiRange']){for(const _0x1059fe of _0x50d462['getRanges']())_0x9740d5['addRange'](_0x1059fe);}else{const _0x2a8b97=_0x50d462['getFirstRange']()['end'];this['_setSuggestionRange'](_0x9740d5,this['_model']['createRange'](_0x9740d5['getFirstRange']()['start'],_0x2a8b97));}_0x50d462['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5aa5d5,_0x235c27,_0x3235f7){const _0xa326=_0x5aa5d5['startsWith']('format')||_0x5aa5d5['startsWith']('attribute')?'FORMATTING':_0x5aa5d5['toUpperCase']();return o(this['editor']['locale'],_0x235c27+'_'+_0xa326+'_SUGGESTION_ANNOUNCEMENT',_0x3235f7);}['_initAriaMarkerChangeAnnouncements'](){const _0x5239fc=this['editor'];if(!_0x5239fc['ui'])return;const {ariaLiveAnnouncer:_0x484149}=_0x5239fc['ui'];_0x51abfb(this['_model'],({left:_0x2df882,entered:_0x23e666})=>{for(const _0x40161a of _0x2df882){const {group:_0x3403bb,type:_0x3ff793}=this['_splitMarkerName'](_0x40161a['name']);if('suggestion'===_0x3403bb){_0x484149['announce'](this['_getMarkerAnnouncementText'](_0x3ff793,'LEAVE'));break;}}for(const _0x5bbc18 of _0x23e666){const {group:_0x58474f,type:_0x228a64}=this['_splitMarkerName'](_0x5bbc18['name']);if('suggestion'===_0x58474f){_0x484149['announce'](this['_getMarkerAnnouncementText'](_0x228a64,'ENTER',_0x2030bd(_0x5c3721)));break;}}});}['_processAttributeChanges'](_0x32a672){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1b8bbf=this['editor'],_0x19bce4=_0x1b8bbf['model']['document']['differ']['getChanges']();if(0x0==_0x19bce4['length'])return!0x1;const _0x5123c7=[],_0x4ecf1c=_0x19bce4['filter'](_0x2e5378=>'attribute'==_0x2e5378['type']),_0x470164=_0x19bce4['filter'](_0x40f496=>'insert'==_0x40f496['type']&&'$text'!=_0x40f496['name']),_0x4e8282=_0x19bce4['filter'](_0x3ecfab=>'remove'==_0x3ecfab['type']&&'$text'!=_0x3ecfab['name']);for(const _0x425d8e of _0x4ecf1c)_0x5123c7['push']({'key':_0x425d8e['attributeKey'],'newValue':_0x425d8e['attributeNewValue'],'oldValue':_0x425d8e['attributeOldValue'],'range':qt(_0x425d8e['range'],_0x1b8bbf['model'])});for(const _0x645f90 of _0x470164){const _0x464802=_0x4e8282['find'](_0xeeb6=>_0xeeb6['position']['isEqual'](_0x645f90['position']));_0x464802&&_0x5123c7['push']({'key':m,'newValue':_0x645f90['name'],'oldValue':_0x464802['name'],'range':_0x1b8bbf['model']['createRangeOn'](_0x645f90['position']['nodeAfter'])});}return 0x0!=_0x5123c7['length']&&this['_reduceExistingSuggestions'](_0x32a672,_0x5123c7);}['_processAttributeSuggestions'](_0x43bd65){let _0x8cd703=!0x1;const _0x1b138a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x339496=>_0x339496['data']['newRange']&&_0x339496['name']['startsWith']('suggestion:attribute:'));for(const _0x47a68d of _0x1b138a){const {subType:_0x5f0a8b,id:_0x1c81bd}=this['_splitMarkerName'](_0x47a68d['name']),_0x373856=_0x5f0a8b['split']('|')[0x0];for(const _0x570f43 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x570f43['id']!=_0x1c81bd&&'attribute'==_0x570f43['type']&&_0x570f43['data']&&_0x570f43['data']['key']==_0x373856&&_0x570f43['getFirstRange']()['isIntersecting'](_0x47a68d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x570f43,_0x47a68d['data']['newRange'],_0x43bd65),_0x8cd703=!0x0);}return _0x8cd703;}['recordAttributeChanges'](_0x380d18){this['_recordAttributeSuggestions']=!0x0,_0x380d18();}['_isRegisteredAttribute'](_0x191131){const _0x471ba9=this['_isBlockAttribute'](_0x191131),_0x2fb8e1=this['_isInlineAttribute'](_0x191131);return _0x471ba9||_0x2fb8e1;}['_reduceExistingSuggestions'](_0x40b4da,_0x5e6353){if(0x0==_0x5e6353['length'])return!0x1;let _0x27470f=!0x1;for(const _0x41f7f1 of _0x5e6353){const _0x231153=this['_findSuggestions'](_0x41f7f1['range'],'attribute')['filter'](_0x34397b=>!_0x34397b['meta']['isNextTo'])['map'](_0x5e8d71=>_0x5e8d71['suggestion']),_0x13c899=_0x594282({'newValue':_0x41f7f1['newValue']});_0x231153['filter'](_0x7f8336=>{const [_0x4e96d9,_0x5ce7ea]=_0x7f8336['subType']['split']('|');return _0x4e96d9==_0x41f7f1['key']&&_0x5ce7ea!=_0x13c899;})['forEach'](_0x408577=>{this['_reduceSuggestionAttributeRange'](_0x408577,_0x41f7f1['range'],_0x40b4da),_0x27470f=!0x0;});}return _0x27470f;}['_reduceSuggestionAttributeRange'](_0x1e8e28,_0x1f817a,_0x1f06b1){const _0xc229f4=_0x1e8e28['getFirstRange']()['getDifference'](_0x1f817a);0x0!==_0xc229f4['length']?0x1!==_0xc229f4['length']?this['_breakSuggestionMarker'](_0x1e8e28,_0x1f817a['start'],_0x1f817a['end']):this['_setSuggestionRange'](_0x1e8e28,_0xc229f4[0x0]):_0x1f06b1['removeMarker'](_0x1e8e28['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xdaa9fe){this['_editor']=_0xdaa9fe,this['_model']=_0xdaa9fe['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x32533b,_0x157ffa,_0x3c1194,_0x26fe5d,_0x287c74,_0x48d61d,_0x254a33){return new T(this['_model'],{'type':_0x32533b,'subType':_0x157ffa,'id':_0x3c1194,'originalSuggestionId':_0x254a33,'author':_0x26fe5d,'creator':_0x26fe5d,'attributes':_0x287c74,'onAttributesChange':_0x48d61d,'onAccept':(..._0x28d119)=>this['getSuggestionCallback'](_0x32533b,_0x157ffa,'accept')(..._0x28d119),'onDiscard':(..._0x3425f5)=>this['getSuggestionCallback'](_0x32533b,_0x157ffa,'discard')(..._0x3425f5)});}['registerCustomCallback'](_0x1f81cd,_0x477b2c,_0x40084c,_0x31b1a8){const _0x3fe9bb=_0x1f81cd+':'+_0x477b2c+':'+_0x40084c;this['_customCallbacks']['set'](_0x3fe9bb,_0x31b1a8);}['getSuggestionCallback'](_0x2438e4,_0x4fd09b,_0x5976fe){const _0x3603ea=_0x2438e4+':'+_0x4fd09b+':'+_0x5976fe;return this['_customCallbacks']['get'](_0x3603ea)||this['_defaultCallbacks']['get'](_0x2438e4+':'+_0x5976fe);}['_registerDefaultCallbacks'](){const _0x1b71f0=()=>!0x1,_0x13de71=_0x9bbfbe=>{_0x9bbfbe['sort']((_0xa47197,_0x1c8c7d)=>_0xa47197['start']['isBefore'](_0x1c8c7d['start'])?0x1:-0x1),this['_model']['change'](_0x3f0a84=>{for(const _0xa593c7 of _0x9bbfbe){let _0x45a1c4;_0x45a1c4=_0xa593c7['end']['isAtEnd']&&_0xa593c7['end']['parent']==_0xa593c7['start']['nodeAfter']?_0x3f0a84['createSelection'](_0xa593c7['start']['nodeAfter'],'on'):_0x3f0a84['createSelection'](_0xa593c7),this['_model']['deleteContent'](_0x45a1c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5f2ce4=(_0x1ebe15,_0x414d0a)=>{_0x414d0a&&this['_model']['change'](_0x4a8af3=>{const {commandName:_0x51237e,commandParams:_0x1617f9=[]}=_0x414d0a,_0x1417cb=_0x1ebe15['map'](_0x511464=>(Pt(_0x511464)&&(_0x511464=this['_model']['createRange'](_0x511464['end'])),_0x511464))['filter'](_0x5e2844=>'$graveyard'!==_0x5e2844['root']['rootName']);if(_0x1417cb['length']<0x1)return;const _0x7c35a2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1ffca3=>_0x3ba60d['fromRange'](_0x1ffca3));_0x4a8af3['setSelection'](_0x1417cb);for(const _0x47c8b4 of this['_editor']['commands']['commands']())_0x47c8b4['refresh']();_0x1617f9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51237e,..._0x1617f9);const _0x44596d=_0x7c35a2['filter'](_0x9c0d47=>'$graveyard'!=_0x9c0d47['root']['rootName']);_0x44596d['length']>0x0&&_0x4a8af3['setSelection'](_0x44596d);for(const _0x4bc445 of _0x7c35a2)_0x4bc445['detach']();});},_0x4c622b=(_0x54b1fc,_0x4f5708)=>0x1==_0x54b1fc['length']&&0x1==_0x4f5708['length']&&_0x54b1fc[0x0]['end']['isEqual'](_0x4f5708[0x0]['start']),_0x41ee94=(_0x2e5a36,_0x1e3300,_0x525c9c,_0x50dc87)=>Wt(_0x2e5a36,_0x1e3300,_0x525c9c,_0x50dc87)?[_0x2e5a36,_0x1e3300]:Wt(_0x1e3300,_0x2e5a36,_0x50dc87,_0x525c9c)?[_0x1e3300,_0x2e5a36]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1b71f0),this['_defaultCallbacks']['set']('insertion:discard',_0x13de71),this['_defaultCallbacks']['set']('insertion:join',_0x4c622b),this['_defaultCallbacks']['set']('insertion:chain',_0x41ee94),this['_defaultCallbacks']['set']('deletion:accept',_0x13de71),this['_defaultCallbacks']['set']('deletion:discard',_0x1b71f0),this['_defaultCallbacks']['set']('deletion:join',_0x4c622b),this['_defaultCallbacks']['set']('deletion:chain',_0x41ee94),this['_defaultCallbacks']['set']('formatInline:accept',_0x5f2ce4),this['_defaultCallbacks']['set']('formatInline:discard',_0x1b71f0),this['_defaultCallbacks']['set']('formatInline:join',_0x4c622b),this['_defaultCallbacks']['set']('formatInline:chain',_0x1b71f0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5f2ce4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1b71f0),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c622b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1b71f0),this['_defaultCallbacks']['set']('attribute:accept',_0x1b71f0),this['_defaultCallbacks']['set']('attribute:discard',(_0x41fa03,_0x5c3a3b)=>{if(!_0x5c3a3b)return;const _0x32865a=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x458911=>{if(_0x5c3a3b['key']==m)for(const _0x19022e of _0x41fa03){const _0x419596=_0x19022e['start']['nodeAfter'],_0xd87985=_0x5c3a3b['oldValue'];_0x458911['rename'](_0x419596,_0xd87985);}else{if(_0x32865a['_isBlockAttribute'](_0x5c3a3b['key'])){for(const _0x3776c4 of _0x41fa03)void 0x0!==_0x5c3a3b['oldValue']?_0x458911['setAttribute'](_0x5c3a3b['key'],_0x5c3a3b['oldValue'],_0x3776c4['start']['nodeAfter']):_0x458911['removeAttribute'](_0x5c3a3b['key'],_0x3776c4['start']['nodeAfter']);}else{for(const _0x2b2b7c of _0x41fa03)_0x5c3a3b['oldValue']?_0x458911['setAttribute'](_0x5c3a3b['key'],_0x5c3a3b['oldValue'],_0x2b2b7c):_0x458911['removeAttribute'](_0x5c3a3b['key'],_0x2b2b7c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c622b);}}function Ft(_0x447755,_0x25b23c,_0x1c4cd8){for(const _0x331fc6 of _0x25b23c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x331fc6['root']==_0x331fc6)return!0x1;if(!_0x1c4cd8['containsItem'](_0x331fc6))return!0x1;if(_0x447755['isObject'](_0x331fc6)||_0x447755['isLimit'](_0x331fc6))return!0x0;}return!0x1;}function Pt(_0x1855da){return _0x1855da['end']['parent']==_0x1855da['start']['nodeAfter']&&_0x1855da['end']['isAtStart'];}function Gt(_0x3db6fa,_0x5c67c8,_0x44756e,_0x57b4fc){const _0x3822ee=_0x26125b=>!_0x26125b['item']['is']('$textProxy')&&!_0x57b4fc['isObject'](_0x26125b['item']),_0x5e9030=_0x3db6fa['start']['getLastMatchingPosition'](_0x3822ee),_0x4ca0b0=_0x3db6fa['end']['getLastMatchingPosition'](_0x3822ee,{'direction':'backward'});return(!_0x3db6fa['start']['isEqual'](_0x5e9030)||!_0x3db6fa['end']['isEqual'](_0x4ca0b0))&&(_0x5e9030['isBefore'](_0x4ca0b0)?_0x44756e['updateMarker'](_0x5c67c8,{'range':_0x44756e['createRange'](_0x5e9030,_0x4ca0b0)}):_0x44756e['removeMarker'](_0x5c67c8),!0x0);}function Lt(_0x3e4cb5){return _0x594282(_0x3e4cb5);}function Jt(_0x48ee8c){const _0x30c45f=_0x48ee8c['start']['nodeAfter'];return _0x30c45f&&_0x30c45f['is']('element');}function Kt(_0x43df3f){return Pt(_0x43df3f)||function(_0xd108ee){return _0xd108ee['start']['parent']==_0xd108ee['end']['nodeBefore']&&_0xd108ee['start']['isAtEnd'];}(_0x43df3f);}function Ht(_0x47f44e,_0x12ce48){try{const _0x2bb195=_0x47f44e['getRange']();for(const _0x5583dd of _0x12ce48)if(_0x47f44e!==_0x5583dd&&_0x2bb195&&_0x2bb195['isIntersecting'](_0x5583dd['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x8fa556,_0x32d181){return null==_0x8fa556['end']['nodeBefore']&&_0x8fa556['end']['parent']==_0x8fa556['start']['nodeAfter']?zt(_0x8fa556['start']['nodeAfter'],_0x32d181):_0x8fa556;}function zt(_0x116aab,_0x4fe423){const _0x1b1a53=_0x4fe423['schema']['isObject'](_0x116aab)||_0x4fe423['schema']['isSelectable'](_0x116aab);return _0x4fe423['createRange'](_0x4fe423['createPositionAt'](_0x116aab,'before'),_0x1b1a53?_0x4fe423['createPositionAfter'](_0x116aab):_0x4fe423['createPositionAt'](_0x116aab,'end'));}function Wt(_0x9fc97,_0x56e8f8,_0x3c1615,_0x379a8e){return!!Qt(_0x9fc97,_0x56e8f8)&&_0x3c1615['end']['isEqual'](_0x379a8e['start']);}function Qt(_0x380e5c,_0x1a5a15){if(!_0x380e5c['_isDataLoaded']||!_0x1a5a15['_isDataLoaded'])return!0x1;const _0x537f3a=new Set(Object['keys'](_0x380e5c['attributes'])),_0x369447=new Set(Object['keys'](_0x1a5a15['attributes']));if(_0x537f3a['delete']('groupId'),_0x369447['delete']('groupId'),0x0==_0x537f3a['size']&&0x0==_0x369447['size'])return!0x0;if(_0x537f3a['size']!=_0x369447['size'])return!0x1;const _0x58af6e={..._0x380e5c['attributes']},_0x29f803={..._0x1a5a15['attributes']};return delete _0x58af6e['groupId'],delete _0x29f803['groupId'],JSON['stringify'](_0x58af6e)==JSON['stringify'](_0x29f803);}function Xt(_0x4eeb4b,_0x1cbd24){const _0x4223e8=Yt(_0x4eeb4b['attributes']),_0x5200bc=Yt(_0x1cbd24);if(!_0x4eeb4b['_isDataLoaded'])return!0x1;for(const _0x59bcec of Object['keys'](_0x5200bc))if(!_0x35253f(_0x4223e8[_0x59bcec],_0x5200bc[_0x59bcec]))return!0x1;return!0x0;}function Yt(_0x8eb225){const _0x55bec9=Object['assign']({},_0x8eb225);return delete _0x55bec9['skipNestingCheck'],delete _0x55bec9['tablePasteChainId'],_0x55bec9;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x2bf28b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5db2ce,_0x308e6b,_0x2ae876,_0x1c2b90){super(),this['model']=_0x308e6b,this['view']=_0x2ae876,this['commentThreadController']=_0x1c2b90,this['_editor']=_0x5db2ce,this['_acceptCommand']=_0x5db2ce['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5db2ce['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x211650,_0x1cceb7)=>_0x211650||_0x1cceb7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x14fbad=>_0x14fbad&&this['_editor']['model']['canEditAt'](_0x308e6b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x18ea68=>_0x18ea68&&this['_editor']['model']['canEditAt'](_0x308e6b['getRanges']())),this['_pendingAction']=null,_0x2ae876['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ae876,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ae876,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ae876,'change:isDirty',()=>{_0x2ae876['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 _0x866fa1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x866fa1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x12b39f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x104a32,_0x336ec0,_0xf3de79,_0x280d67){super(_0x104a32),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1bcefb(_0x104a32,o(_0x104a32,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x336ec0['authoredAt']),this['bind']('authoredAt')['to'](_0x336ec0),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',_0x336ec0,'authoredAt',this,'descriptionParts',(_0x2848e6,_0x13392b,_0x546655)=>{const _0x3506ba=_0x546655['map'](_0xe9302=>ls(_0xe9302['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2848e6-0x1,_0x336ec0['author']['name'],_0x13392b?_0x280d67['formatDateTime'](_0x13392b):'',new DOMParser()['parseFromString'](_0x3506ba,'text/html')['body']['textContent']]);}),this['focusables']=new _0x305073(),this['focusTracker']=new _0x4472f9(),this['keystrokes']=new _0x2eb762(),this['focusCycler']=new _0x51faa7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ed216=>_0x3ed216['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x336ec0,this['_localUser']=_0xf3de79,this['_config']=_0x280d67,_0x280d67['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x732271(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3491d2}=this['_config'];this['commentsListView']=new _0x3491d2(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',_0x59bfa1=>_0x59bfa1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1483a0,_0x2e9906)=>_0x1483a0||!!_0x2e9906);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x10ccb4}=this['_config'],_0x433f40=new _0x10ccb4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3ab4eb=_0x433f40['commentInputView'];return _0x433f40['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3ab4eb,'value',(_0x4bcd1d,_0x2186d0,_0x20c886)=>!!_0x20c886||_0x4bcd1d&&!_0x2186d0),_0x3ab4eb['on']('submit',(_0x3c4c73,_0xf1a48b)=>{this['fire']('addComment',_0xf1a48b),_0x3ab4eb['editor']['setData']('');}),_0x3ab4eb['on']('cancel',()=>this['focus']()),_0x3ab4eb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x433f40;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x22464b,_0x463a04,_0x195681,_0x58c67a){super(_0x22464b,_0x463a04,_0x195681,_0x58c67a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x130591=>_0x130591&&_0x130591[0x0]?_0x130591[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x135efc,_0x3e8fc8)=>{let _0x55c6fd='';for(const _0xef1ad9 of _0x135efc)_0x55c6fd+='<p>'+ls(_0xef1ad9['content'],_0xef1ad9['color'])+'</p>';return _0x3e8fc8?_0x55c6fd:_0x5ea94a(_0x55c6fd,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x58c67a['SuggestionView'](_0x22464b,_0x463a04,{'formatDateTime':_0x58c67a['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 _0x27252b=this['bindTemplate'],_0x5e3941=[this['suggestionView']];return this['commentsListView']&&_0x5e3941['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e3941['push'](this['commentThreadInputView']),_0x5e3941['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x27252b['if']('isActive','ck-suggestion-wrapper--active'),_0x27252b['to']('type',_0x5a66ca=>'ck-suggestion-'+_0x5a66ca),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':_0x27252b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e3941};}['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 _0x12b39f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x34dec9,_0xa3419d,_0x26ea1b){super(_0x34dec9),this['_model']=_0xa3419d,this['_config']=_0x26ea1b,this['set']('description',''),this['bind']('authoredAt')['to'](_0xa3419d),this['acceptButton']=this['_createButton'](o(_0x34dec9,'Accept\x20suggestion'),_0x116892,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x34dec9,'Discard\x20suggestion'),_0x2092bd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4c185a(_0x34dec9,_0xa3419d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x305073([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4472f9(),this['keystrokes']=new _0x2eb762(),this['focusCycler']=new _0x51faa7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c34db=>_0x3c34db['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x352ba7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x352ba7['innerHTML']=this['description'],this['on']('change:description',(_0x3e7ec3,_0x3a2227,_0x1efa7c)=>{_0x352ba7['innerHTML']=_0x1efa7c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4c2390=this['bindTemplate'],_0x69b132=[{'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':_0x4c2390['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4c2390['to']('authoredAt',_0xff6f8f=>this['_config']['formatDateTime'](_0xff6f8f))}]}]},{'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']&&_0x69b132['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':_0x69b132}]};}['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'](_0x44513a,_0x1d2c64,_0x299164,_0x2cbb5d,_0x18df25){const _0x28436e=new _0x3908cc(this['locale']);return _0x28436e['set']({'label':_0x44513a,'icon':_0x1d2c64,'tooltip':!0x0,'tooltipPosition':_0x18df25}),_0x28436e['extendTemplate']({'attributes':{'class':_0x299164}}),_0x28436e['on']('execute',()=>{this['fire'](_0x2cbb5d,this['_model']['id']);}),_0x28436e;}['_setupKeyboardNavigation'](){const _0x582489=this['element'];this['keystrokes']['listenTo'](_0x582489);for(const _0x30c3e2 of this['focusables'])this['focusTracker']['add'](_0x30c3e2['element']),this['keystrokes']['listenTo'](_0x30c3e2['element']);this['keystrokes']['set']('enter',(_0x5c74f1,_0x44f40e)=>{_0x582489===_0x5c74f1['target']&&(this['focusCycler']['focusFirst'](),_0x44f40e());}),this['keystrokes']['set']('esc',(_0x2dab5a,_0x4943eb)=>{_0x582489!==_0x2dab5a['target']&&(this['focus'](),_0x4943eb());});}}class u extends _0x2eaa3f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1ad4d7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59de08){super(_0x59de08),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b2646=this['editor']['config'];_0x3b2646['define']('trackChanges.SuggestionThreadView',fe),_0x3b2646['define']('trackChanges.SuggestionView',we),_0x3b2646['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b2646['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2023e5,_0x4813bd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xc13215,_0x36ec60]of this['_handleControllerBuffer']){const _0xf3e777=this['_suggestionToController']['has'](_0xc13215);_0xf3e777||_0x36ec60?_0xf3e777&&_0x36ec60&&this['_destroyController'](_0xc13215):this['_initializeController'](_0xc13215);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2023e5,_0x4813bd);}['init'](){const _0x254891=this['editor'],_0x5ad2a7=_0x254891['plugins']['get']('TrackChangesEditing'),_0x34827d=_0x254891['plugins']['get']('Annotations'),_0x561c33=_0x254891['plugins']['get']('EditorAnnotations'),_0x5340d9=_0x254891['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x561c33['addSourceCollector'](()=>{const _0x372a92=[];for(const [_0x48fce2,_0x236ad0]of Array['from'](this['_suggestionToController'])){const _0x5dbcdc=_0x48fce2['getAllAdjacentSuggestions'](),_0x1238f8=[];for(const _0x553598 of _0x5dbcdc){if(!_0x553598['isInContent'])continue;if(_0x553598['isMultiRange']){_0x1238f8['push'](..._0x553598['getRanges']());continue;}const _0x96c3f6=_0x553598['getFirstRange']();if(_0x1238f8['length']>0x0){const _0x5487f2=_0x1238f8[0x0]['getJoined'](_0x96c3f6);if(_0x5487f2){_0x1238f8[0x0]=_0x5487f2;continue;}}_0x1238f8['push'](_0x96c3f6);}_0x372a92['push']([_0x236ad0['view'],_0x1238f8]);}return _0x372a92;}),this['listenTo'](_0x5ad2a7,'suggestionLoaded',(_0x4e12dc,_0x31007f)=>{this['listenTo'](_0x31007f,'change:previous',(_0xc8734d,_0x3ff725,_0x1da415,_0x121040)=>{_0x31007f['isInContent']&&(null==_0x1da415?(this['_updateController'](_0x121040['head']),this['_handleSuggestionControllerDelayed'](_0x31007f,!0x1)):(this['_updateController'](_0x1da415['head']),null==_0x121040&&this['_handleSuggestionControllerDelayed'](_0x31007f,!0x0)));}),null!==_0x31007f['previous']?this['_updateController'](_0x31007f['head']):this['_handleSuggestionControllerDelayed'](_0x31007f,!0x1);}),this['listenTo'](_0x5ad2a7,'suggestionUnloaded',(_0x4bf727,_0x14a228,_0x3db2c5)=>{this['stopListening'](_0x14a228,'change:previous'),this['_handleControllerBuffer']['delete'](_0x14a228),this['_suggestionToController']['has'](_0x14a228)&&this['_destroyController'](_0x14a228),_0x3db2c5&&this['_updateController'](_0x3db2c5['head']);}),this['listenTo'](_0x5ad2a7,'suggestionChanged',(_0x56d081,_0x5f221a)=>{this['_updateController'](_0x5f221a);}),this['listenTo'](_0x34827d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5340d9,'addComment',(_0x96b6e4,{threadId:_0x16659f,isFromAdapter:_0x141a51})=>{if(_0x141a51||!_0x5ad2a7['hasSuggestion'](_0x16659f))return;const _0x82d30d=_0x5ad2a7['getSuggestion'](_0x16659f);this['_suggestionToController']['get'](_0x82d30d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x561d86=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x583d69;for(const _0x1408f2 in _0x561d86){const _0x3735e3=_0x1408f2,_0x396d91=_0x561d86[_0x3735e3];if('trackChangesLicenseKeyValid'==_0x396d91||'trackChangesLicenseKeyInvalid'==_0x396d91||'trackChangesLicenseKeyExpired'==_0x396d91||'trackChangesLicenseKeyDomainLimit'==_0x396d91||'trackChangesLicenseKeyNotAllowed'==_0x396d91||'trackChangesLicenseKeyEvaluationLimit'==_0x396d91||'trackChangesLicenseKeyTrialLimit'==_0x396d91||'trackChangesLicenseKeyUsageLimit'==_0x396d91){delete _0x561d86[_0x3735e3],_0x583d69=_0x396d91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x583d69&&_0x561d86['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x583d69&&_0x561d86['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x583d69&&_0x561d86['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x583d69&&_0x561d86['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x583d69&&_0x561d86['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x583d69&&_0x561d86['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x583d69&&_0x561d86['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x500387){const _0x3b14cc=this['_suggestionToController']['get'](_0x500387);if(!_0x3b14cc)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3b14cc['view'])||null;}['getSuggestionForAnnotation'](_0x9a53fb){const _0x3abd0c=this['_viewToController']['get'](_0x9a53fb['innerView']);return _0x3abd0c?_0x3abd0c['model']:null;}['_refreshActiveMarkers'](){const _0x773baa=this['editor']['plugins']['get']('Annotations'),_0x23b4eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x304f25=Array['from'](_0x773baa['activeAnnotations'],_0x3fea51=>_0x3fea51['innerView'])['filter'](_0x585244=>this['_viewToController']['has'](_0x585244)),_0x2835cc=[];for(const _0x3b39c2 of _0x304f25){const _0x4df102=this['_viewToController']['get'](_0x3b39c2)['model']['getAllAdjacentSuggestions']();_0x2835cc['push'](..._0x4df102['reduce']((_0x427417,_0x3c08eb)=>[..._0x427417,..._0x3c08eb['getMarkerNames']()],[]));}_0x23b4eb['activeMarkers']=_0x2835cc;}['_addUIComponentsToFactory'](){const _0x1bdfe0=this['editor'],_0xa0df3b=_0x1bdfe0['locale'],_0x4f0378=o(_0xa0df3b,'Track\x20changes'),_0x2fbb56=new _0x4ea7e1([{'type':'switchbutton','model':new _0x5b57fc({'withText':!0x0,'isToggleable':!0x0,'label':_0x4f0378,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5b57fc({'withText':!0x0,'label':o(_0xa0df3b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b57fc({'withText':!0x0,'label':o(_0xa0df3b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b57fc({'withText':!0x0,'label':o(_0xa0df3b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b57fc({'withText':!0x0,'label':o(_0xa0df3b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1bdfe0['plugins']['has']('TrackChangesPreview')&&_0x2fbb56['addMany']([{'type':'separator'},{'type':'button','model':new _0x5b57fc({'withText':!0x0,'label':o(_0xa0df3b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3fd347 of _0x2fbb56)if(ke(_0x3fd347)){const _0x1e31f1=_0x1bdfe0['commands']['get'](_0x3fd347['model']['commandName']);_0x3fd347['model']['bind']('isOn','isEnabled')['to'](_0x1e31f1,'value','isEnabled');}_0x1bdfe0['ui']['componentFactory']['add']('trackChanges',_0xa28e26=>this['_createToolbarButton'](_0xa28e26,_0x2fbb56,_0x4f0378)),_0x1bdfe0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1846de=>this['_createMenuBarMenu'](_0x1846de,_0x2fbb56,_0x4f0378));}['_createToolbarButton'](_0x19e752,_0x2f987e,_0x38fd0d){const _0x4e0a93=_0x4a9766(_0x19e752,_0x5a68b1),_0x4cfad3=this['editor']['commands']['get']('trackChanges');_0x4e0a93['buttonView']['set']({'tooltip':_0x38fd0d,'label':_0x38fd0d,'icon':_0xd8d0d6}),_0x4e0a93['buttonView']['bind']('isOn')['to'](_0x4cfad3,'value'),_0x4e0a93['buttonView']['on']('execute',()=>{_0x4cfad3['execute'](),this['editor']['editing']['view']['focus']();}),_0x1cb880(_0x4e0a93,_0x2f987e,{'role':'menu'});const _0x4c69d3=[];for(const _0x2ed904 of _0x2f987e)ke(_0x2ed904)&&_0x4c69d3['push'](this['editor']['commands']['get'](_0x2ed904['model']['commandName']));const _0x361ff9=_0x4e0a93['buttonView'];return _0x361ff9['actionView']['unbind']('isEnabled'),_0x361ff9['arrowView']['unbind']('isEnabled'),_0x361ff9['actionView']['bind']('isEnabled')['to'](_0x4cfad3,'isEnabled'),_0x361ff9['arrowView']['bind']('isEnabled')['toMany'](_0x4c69d3,'isEnabled',(..._0x546211)=>_0x546211['some'](_0x557239=>_0x557239)),_0x4e0a93['on']('execute',_0x19a7d8=>{this['editor']['execute'](_0x19a7d8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e0a93;}['_createMenuBarMenu'](_0x7b280,_0x7ad547,_0x3a436d){const _0x33b409=new _0x5d8d62(_0x7b280),_0x4510d8=this['editor']['commands']['get']('trackChanges');_0x33b409['buttonView']['set']({'label':_0x3a436d,'icon':_0xd8d0d6});const _0xc72626=new _0x4d82f5(_0x7b280);for(const _0x373501 of _0x7ad547){if('separator'==_0x373501['type']){_0xc72626['items']['add'](new _0x2e1dff(_0x7b280));continue;}const _0x1ecaff=new _0x657c8c(_0x7b280,_0x33b409),_0xa1f294=new _0x265e12(_0x7b280),_0x25c2bb=_0x373501['model'];_0xa1f294['bind'](...Object['keys'](_0x25c2bb))['to'](_0x25c2bb),_0xa1f294['delegate']('execute')['to'](_0x33b409),_0xa1f294['on']('execute',()=>{this['editor']['execute'](_0x25c2bb['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ecaff['children']['add'](_0xa1f294),_0xc72626['items']['add'](_0x1ecaff);}return _0x33b409['bind']('isEnabled')['to'](_0x4510d8,'isEnabled'),_0x33b409['panelView']['children']['add'](_0xc72626),_0x33b409;}['_initializeController'](_0x37e7f2){const _0x1379a4=this['editor'],_0x23a5a6=_0x1379a4['config'],_0x155230=_0x1379a4['plugins']['get']('Annotations'),_0x4e765b=_0x1379a4['plugins']['get']('CommentsRepository'),_0x526a47=_0x1379a4['plugins']['get']('EditorAnnotations'),_0x1145d3=_0x1379a4['plugins']['get'](_0x1ad4d7)['me'],_0x174a36=_0x23a5a6['get']('trackChanges')['SuggestionThreadView'],_0x9cb73e=_0x23a5a6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x336492,CommentThreadInputView:_0x1444bf}=_0x1379a4['plugins']['get']('CommentsUI');let _0x31545d,_0x362f69,_0x181e22;this['_annotationViews']['has'](_0x37e7f2['id'])?(_0x362f69=this['_annotationViews']['get'](_0x37e7f2['id']),_0x31545d=_0x362f69['mainView']):(_0x31545d=new _0x174a36(_0x1379a4['locale'],_0x37e7f2,_0x1145d3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x23a5a6['get']('comments.editorConfig'),'licenseKey':_0x23a5a6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x23a5a6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x23a5a6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x23a5a6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4a9f0f(_0x23a5a6['get']('locale'),_0x1379a4['locale']),'CommentView':_0x23a5a6['get']('comments')['CommentView'],'CommentsListView':_0x336492,'CommentThreadInputView':_0x1444bf,'SuggestionView':_0x9cb73e}),_0x31545d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1379a4['editing']['view']['focus']();}),_0x31545d['suggestionView']['discardButton']['on']('execute',()=>{_0x1379a4['editing']['view']['focus']();}),_0x362f69=_0x155230['createAnnotationView'](this['editor']['locale'],_0x31545d),_0x362f69['bind']('isDirty')['to'](_0x31545d,'isDirty'),_0x362f69['bind']('length')['to'](_0x31545d),_0x362f69['bind']('type')['to'](_0x31545d,'type',_0x10497f=>'suggestion-'+_0x10497f),_0x31545d['on']('escape',()=>{_0x181e22['fire']('escape');}),this['_annotationViews']['set'](_0x37e7f2['id'],_0x362f69));const _0x25a37e=_0x4e765b['createCommentThreadController'](_0x37e7f2['commentThread'],_0x31545d),_0x4b2816=new pe(_0x1379a4,_0x37e7f2,_0x31545d,_0x25a37e),_0x12ffdd=_0x37e7f2['getAllAdjacentSuggestions']()['filter'](_0x1f3fbb=>_0x1f3fbb['isInContent']);_0x31545d['descriptionParts']=_0x1379a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x12ffdd),this['_suggestionToController']['set'](_0x37e7f2,_0x4b2816),this['_viewToController']['set'](_0x31545d,_0x4b2816);const _0x383018=()=>{const _0x16f6dd=[],_0x3f4385=_0x37e7f2['getAllAdjacentSuggestions']()['filter'](_0x381460=>_0x381460['isInContent']);for(const _0x3234ee of _0x3f4385)_0x16f6dd['push'](..._0x3234ee['getMarkers']());return _0x1fc656(_0x1379a4['editing'],_0x16f6dd);};_0x181e22=_0x155230['createAnnotation']({'view':_0x362f69,'target':_0x383018,'type':()=>'suggestion-'+_0x4b2816['view']['type'],'isVisible':!!_0x383018()}),_0x4e765b['_bindAnnotationToEditors'](_0x31545d,_0x181e22),_0x155230['add'](_0x181e22),_0x526a47['registerAnnotation'](_0x181e22);}['_destroyController'](_0x5ce5a6){const _0x14736a=this['editor']['plugins']['get']('CommentsRepository'),_0xb5ccf1=this['editor']['plugins']['get']('Annotations'),_0x15aa63=this['_suggestionToController']['get'](_0x5ce5a6),_0x33bc7b=_0x15aa63['view'],_0x169a7f=_0xb5ccf1['getByInnerView'](_0x33bc7b);_0x14736a['_unbindEditors'](_0x33bc7b),_0x169a7f&&_0xb5ccf1['remove'](_0x169a7f),this['_suggestionToController']['delete'](_0x5ce5a6),this['_viewToController']['delete'](_0x33bc7b),_0x15aa63['destroy']();}['_updateController'](_0x79f001){if(!_0x79f001['isInContent']||!this['_suggestionToController']['has'](_0x79f001))return;const _0x5e6b15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46646d=this['_suggestionToController']['get'](_0x79f001),_0x3c386f=_0x79f001['getAllAdjacentSuggestions']();_0x46646d['view']['descriptionParts']=_0x5e6b15['descriptionFactory']['getDescriptions'](_0x3c386f);}['destroy'](){for(const _0x339b4d of this['_suggestionToController']['keys']())this['_destroyController'](_0x339b4d);for(const _0x2c2d04 of this['_annotationViews']['values']())_0x2c2d04['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x10caaf){return'model'in _0x10caaf;}class Fe extends _0x2eaa3f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2e5642){this['editor']['plugins']['get'](d)['adapter']=_0x2e5642;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x146cf4){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x146cf4);}['getSuggestions']({skipNotAttached:_0x298883=!0x1,toJSON:_0x3c892b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x298883,'toJSON':_0x3c892b});}['getSuggestion'](_0xed039f){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xed039f);}}const p=['Pagination'];class re extends _0x2eaa3f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xdab2e8=this['editor'];if(_0xdab2e8['config']['define']('trackChangesData.editorCreator',_0x5dfd29=>{const _0x54aa61=_0xdab2e8['model']['document']['getRootNames']()['reduce']((_0x121161,_0x25edff)=>(_0x121161[_0x25edff]='',_0x121161),{});return _0xdab2e8['constructor']['create'](_0x54aa61,_0x5dfd29);}),'function'!=typeof _0xdab2e8['config']['get']('trackChangesData')['editorCreator'])throw new _0x372022('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x19a849){return P(this['editor'],!0x0,_0x19a849);}['getDataWithDiscardedSuggestions'](_0x2f58e0){return P(this['editor'],!0x1,_0x2f58e0);}}class Ge extends _0x2eaa3f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cb26f){function _0x3e0c67(_0x4f510a){return _0x4f510a['map'](_0xf752d0=>String['fromCharCode'](_0xf752d0))['join']('');}super(_0x4cb26f),this['result']='end',_0x4cb26f[_0x3e0c67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0c67([0x76,0x69,0x65,0x77])][_0x3e0c67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e0c67([0x61,0x75,0x74,0x6f]),_0x4cb26f[_0x3e0c67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3e0c67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e0c67([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3e0c67([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3e0c67([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 He(_0x8d5303){return void 0x0!==_0x8d5303['getRootsAttributes'];}async function P(_0x1b7276,_0x737d33,_0x1165be){const _0x36dac2=_0x4ddb27(_0x1b7276,p);_0x36dac2['plugins']['push'](d,Ge),_0x36dac2['rootsAttributes']=He(_0x1b7276)?_0x1b7276['getRootsAttributes']():void 0x0;const _0x3c56de=document['createDocumentFragment'](),_0x34175d=_0x1b7276['config']['get']('trackChangesData')['editorCreator'],_0x39370c=await _0x34175d(_0x36dac2,()=>function(_0x245a9f){const _0xc8b118=document['createElement']('div');return _0x245a9f['appendChild'](_0xc8b118),_0xc8b118;}(_0x3c56de));!function(_0x274403,_0x4a8214){const _0xb094b5=_0x274403['model']['document']['getRootNames']()['reduce']((_0x1f2c47,_0x1039f3)=>(_0x1f2c47[_0x1039f3]=_0x274403['data']['get']({'rootName':_0x1039f3}),_0x1f2c47),{}),_0x5a6479=_0x274403['plugins']['get']('Users')['users']['map'](_0x37e503=>({'id':_0x37e503['id'],'name':_0x37e503['name']})),_0x527d0d=_0x274403['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x48f7d4=_0x274403['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x468143=_0x4a8214['plugins']['get']('Users'),_0x75d337=_0x4a8214['plugins']['get']('TrackChangesEditing'),_0xbdd80f=_0x4a8214['plugins']['get']('CommentsRepository');for(const _0x2f2726 of _0xbdd80f['getCommentThreads']())_0x2f2726['remove']();for(const _0x4f7d38 of _0x5a6479)_0x468143['getUser'](_0x4f7d38['id'])||_0x468143['addUser'](_0x4f7d38);_0x468143['me']||_0x468143['useAnonymousUser']();for(const _0x11f24a of _0x48f7d4)_0xbdd80f['addCommentThread'](_0x11f24a);for(const _0x3107a8 of _0x527d0d)_0x75d337['addSuggestionData'](_0x3107a8);_0x4a8214['data']['set'](_0xb094b5);}(_0x1b7276,_0x39370c),_0x39370c['execute'](_0x737d33?'acceptAllSuggestions':'discardAllSuggestions');const _0x2c0902=He(_0x39370c)?_0x39370c['getFullData'](_0x1165be):_0x39370c['data']['get'](_0x1165be);return await _0x39370c['destroy'](),_0x2c0902;}class Me extends _0x12b39f{['options'];constructor(_0x142a97,_0x2e6463){super(_0x142a97),this['options']=_0x2e6463,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'](_0x1888e5,_0x15441e){if(!this['element'])return;const _0x20ab2d=[];for(const [_0x233df6,_0x32edf3]of _0x1888e5){const _0x5cf06f=document['createElement']('div');_0x5cf06f['setAttribute']('data-ck-root-name',_0x233df6),_0x5cf06f['className']=_0x32edf3['classes']+'\x20ck-track-changes-preview__root-container',_0x5cf06f['innerHTML']=_0x32edf3['content'],_0x20ab2d['push'](_0x5cf06f);}_0x15441e(this['element'],_0x20ab2d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4e9be7{constructor(_0x3d2a58){super(_0x3d2a58),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x16d475=this['editor'],_0xa29f5d=_0x16d475['locale'],_0x5bfbad=_0x16d475['plugins']['get']('Dialog');let _0x362a59;const _0x579653=function(_0x196afa){const _0x220087={};if('editables'in _0x196afa['ui']['view']){for(const [_0x4168f4,_0x3db9ab]of Object['entries'](_0x196afa['ui']['view']['editables']))_0x220087[_0x4168f4]=_0x3db9ab['element'];}else _0x220087[_0x196afa['model']['document']['getRootNames']()[0x0]]=_0x196afa['ui']['view']['editable']['element'];return _0x220087;}(_0x16d475),_0x309f0b=function(_0x2596dd){let _0x53ed9f=0x0;for(const _0x4dfe80 of Object['values'](_0x2596dd))_0x53ed9f=Math['max'](_0x53ed9f,_0x4dfe80['getBoundingClientRect']()['width']);let _0x3c7aaf=0x0;for(const _0x470066 of Object['values'](_0x2596dd))_0x3c7aaf+=_0x470066['getBoundingClientRect']()['height'];const _0xe04207=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xadc8b7=Math['min'](_0x3c7aaf,_0xe04207);return{'width':_0x53ed9f,'height':_0xadc8b7};}(_0x579653);_0x5bfbad['show']({'id':'finalContentPreview','title':o(_0xa29f5d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xa29f5d,{'dialogRects':_0x309f0b}),'onHide':()=>{_0x362a59['detachFromDom']();},'onShow':()=>{_0x16d475['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x549f4f=>{const _0x50dd0a=this['_standarizeRootsData'](_0x549f4f,_0x16d475,_0x579653);_0x5bfbad['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x50dd0a,_0x16d475['config']['get']('trackChanges.preview.renderFunction'));}),_0x362a59=new _0x1d5eba(_0xa29f5d,[_0x5bfbad['view']]),_0x362a59['attachToDom'](),_0x362a59['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x16d475['once']('destroy',()=>{_0x362a59['detachFromDom']();});const _0x588c12=_0x5bfbad['view']['headerView']['class'];_0x5bfbad['view']['headerView']['class']=_0x588c12?_0x588c12+'\x20ck-reset_all':'ck-reset_all',_0x5bfbad['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5bfbad['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5b42ef=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2392e1=_0x5b42ef['previewMode'],_0x24dea2={};if('$labels'===_0x2392e1){for(const _0x2c9ba9 of _0x5b42ef['getMergeFieldsIds']())_0x24dea2[_0x2c9ba9]=_0x5b42ef['getLabel'](_0x2c9ba9)||_0x2c9ba9;}else{const _0x1c3b00='$defaultValues'===_0x2392e1?_0x5b42ef['getDefaultValues']():_0x5b42ef['getDataSetValues'](_0x2392e1,!0x0);for(const _0x29413f of Object['entries'](_0x1c3b00)){const [_0x1ae937,_0x3dfd1d]=_0x29413f;_0x24dea2[_0x1ae937]=null!==_0x3dfd1d?_0x3dfd1d:_0x5b42ef['getLabel'](_0x1ae937)||_0x1ae937;}}return{'mergeFieldsData':_0x24dea2};}['_standarizeRootsData'](_0x33a41d,_0x53343c,_0xfaf45f){let _0x4f0c26;if('string'==typeof _0x33a41d){const _0x444c07=_0x53343c['model']['document']['getRootNames']()[0x0];_0x4f0c26={[_0x444c07]:_0x33a41d};}else _0x4f0c26=_0x33a41d;const _0x232960=this['_fixMediaEmbeds'](_0x4f0c26,_0x53343c),_0x5db221=function(_0x163dc8,_0x5719b8){for(const [_0x4051a6,_0x187107]of _0x163dc8)_0x187107['classes']=_0x5719b8[_0x4051a6]['classList']['value']['replace']('ck-focused','');return _0x163dc8;}(this['_sortRoots'](_0x53343c)['reduce']((_0x5942a7,_0x5e2725)=>(_0x5942a7['push']([_0x5e2725,{'content':_0x232960[_0x5e2725],'classes':''}]),_0x5942a7),[]),_0xfaf45f);return _0x5db221;}['_fixMediaEmbeds'](_0x44dd51,_0x52f594){if(!_0x52f594['plugins']['has']('MediaEmbedEditing'))return _0x44dd51;const _0xfd0cfd=_0x52f594['plugins']['get']('MediaEmbedEditing');for(const [_0x53b233,_0x1de3e0]of Object['entries'](_0x44dd51)){const _0x4e92ef=document['createElement']('div');_0x4e92ef['innerHTML']=_0x1de3e0,(_0x4e92ef['querySelectorAll']('figure.media')['forEach'](_0x48541f=>{const _0x44a298=_0x48541f['querySelector']('oembed');if(_0x44a298){const _0x2b3053=_0x44a298['getAttribute']('url');if(_0x2b3053){const _0x22fbe4=_0xfd0cfd['registry']['getMediaViewElement'](new _0x58a202(_0x52f594['editing']['view']['document']),_0x2b3053,{'elementName':'','renderForEditingView':!0x0}),_0x525e15=document['createElement']('div');_0x525e15['classList']['add']('ck-media__wrapper'),_0x22fbe4['render'](_0x525e15,_0x52f594['editing']['view']['domConverter']),_0x44a298['replaceWith'](_0x525e15);}}}),_0x44dd51[_0x53b233]=_0x4e92ef['innerHTML']);}return _0x44dd51;}['_sortRoots'](_0x4b0000){if(!function(_0x27fb08){return void 0x0!==_0x27fb08['getRootsAttributes'];}(_0x4b0000))return _0x4b0000['model']['document']['getRootNames']();const _0x522f27=[],_0x2816a7=new Map();for(const _0x168fd0 of _0x4b0000['model']['document']['getRootNames']()){const _0x4e92d8=_0x4b0000['editing']['view']['getDomRoot'](_0x168fd0)['getClientRects']()['item'](0x0);_0x522f27['push'](_0x168fd0),_0x2816a7['set'](_0x168fd0,_0x4e92d8);}return _0x522f27['sort']((_0x1ca615,_0x4e820a)=>{const _0x585761=_0x2816a7['get'](_0x1ca615),_0x571047=_0x2816a7['get'](_0x4e820a);return _0x585761['y']-_0x571047['y']||_0x585761['x']-_0x571047['x'];}),_0x522f27;}}class $e extends _0x2eaa3f{static get['requires'](){return[re,_0x4b72b9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x432957){super(_0x432957),_0x432957['commands']['add']('previewFinalContent',new te(this['editor'])),_0x432957['config']['define']('trackChanges.preview.renderFunction',(_0x248465,_0x2f8b12)=>{for(const _0x2eb7aa of _0x2f8b12)_0x248465['appendChild'](_0x2eb7aa);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};